[Mlir-commits] [mlir] [mlir][scf]: Add value bound for the computed upper bound of for loop (PR #126426)

Amir Bishara llvmlistbot at llvm.org
Sun Feb 9 23:52:14 PST 2025


================
@@ -93,9 +99,14 @@ struct ForOpInterface
     auto forOp = cast<ForOp>(op);
 
     if (value == forOp.getInductionVar()) {
-      // TODO: Take into account step size.
       cstr.bound(value) >= forOp.getLowerBound();
       cstr.bound(value) < forOp.getUpperBound();
+      AffineExpr tripCountMinusOne =
----------------
amirBish wrote:

Agree, mentioned the comments and added a lit test for the mentioned case 👍 .

https://github.com/llvm/llvm-project/pull/126426


More information about the Mlir-commits mailing list