[Mlir-commits] [mlir] [mlir][OpenACC] Fix tile clause element bounds for descending loops (PR #227185)
Razvan Lupusoru
llvmlistbot at llvm.org
Mon Sep 28 21:15:25 PDT 2026
================
@@ -196,24 +196,53 @@ mlir::acc::tileACCLoops(mlir::acc::LoopOp tileLoop,
}
}
- // Compute the element-loop upper bounds min(origUB, origIV + scaledStep).
+ // Compute each element-loop upper bound by clamping the tile's far edge,
+ // origIV + scaledStep, to origUB. An ascending loop takes
+ // min(origUB, edge - 1), a descending one max(origUB, edge + 1).
----------------
razvanlupusoru wrote:
This comment noting the -+ 1 - is that only true for inclusive bounds?
https://github.com/llvm/llvm-project/pull/227185
More information about the Mlir-commits
mailing list