Skip to content

Commit 7abb0d1

Browse files
committed
Fix cost model check
1 parent 6c24983 commit 7abb0d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/CodeGen/BasicTTIImpl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2504,7 +2504,7 @@ class BasicTTIImplBase : public TargetTransformInfoImplCRTPBase<T> {
25042504
return (LT.first * 2);
25052505
else
25062506
return (LT.first * 1);
2507-
} else if (!TLI->isOperationExpand(ISD, LT.second)) {
2507+
} else if (TLI->isOperationCustom(ISD, LT.second)) {
25082508
// If the operation is custom lowered then assume
25092509
// that the code is twice as expensive.
25102510
return (LT.first * 2);

0 commit comments

Comments
 (0)