We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac8de1e commit 0329fadCopy full SHA for 0329fad
mlir/lib/Dialect/Arith/Transforms/UnsignedWhenEquivalent.cpp
@@ -30,6 +30,9 @@ using namespace mlir::dataflow;
30
/// Succeeds when a value is statically non-negative in that it has a lower
31
/// bound on its value (if it is treated as signed) and that bound is
32
/// non-negative.
33
+// TODO: IntegerRangeAnalysis internally assumes index is 64bit and this pattern
34
+// relies on this. These transformations may not be valid for 32bit index,
35
+// need more investigation.
36
static LogicalResult staticallyNonNegative(DataFlowSolver &solver, Value v) {
37
auto *result = solver.lookupState<IntegerValueRangeLattice>(v);
38
if (!result || result->getValue().isUninitialized())
0 commit comments