Skip to content

Commit 09b67c9

Browse files
committed
comment
1 parent 04da1b8 commit 09b67c9

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
@@ -55,6 +55,9 @@ static bool isPoison(DataFlowSolver &solver, Value value) {
5555
return false;
5656
const ConstantIntRanges &inferredRange =
5757
maybeInferredRange->getValue().getValue();
58+
59+
// Only generate poison if both signed and unsigned ranges are guranteed to be
60+
// poison.
5861
return inferredRange.isSignedPoison() && inferredRange.isUnsignedPoison();
5962
}
6063

0 commit comments

Comments
 (0)