Skip to content

Commit dc0784a

Browse files
committed
comment
1 parent f728ddc commit dc0784a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ static bool isPoison(DataFlowSolver &solver, Value value) {
5454
return false;
5555
const ConstantIntRanges &inferredRange =
5656
maybeInferredRange->getValue().getValue();
57+
58+
// Only generate poison if both signed and unsigned ranges are guranteed to be
59+
// poison.
5760
return inferredRange.isSignedPoison() && inferredRange.isUnsignedPoison();
5861
}
5962

0 commit comments

Comments
 (0)