Skip to content

Commit a6798a4

Browse files
Update mlir/lib/Dialect/Arith/Transforms/IntRangeOptimizations.cpp
Co-authored-by: Jakub Kuderski <[email protected]>
1 parent eabdc70 commit a6798a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Dialect/Arith/Transforms/IntRangeOptimizations.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ struct MaterializeKnownConstantValues : public RewritePattern {
140140
llvm::any_of(block.getArguments(), needsReplacing);
141141
}
142142
}
143-
if (!(hasConstantResults || hasConstantRegionArgs))
143+
if (!hasConstantResults && !hasConstantRegionArgs)
144144
return failure();
145145

146146
bool replacedAll = (op->getNumResults() != 0);

0 commit comments

Comments
 (0)