[Mlir-commits] [mlir] [MLIR][Affine] Fix isTilingValid missing anti-dependence when lb == ub < 0 (PR #192858)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Thu Apr 23 07:09:18 PDT 2026


================
@@ -557,7 +557,7 @@ bool mlir::affine::isTilingValid(ArrayRef<AffineForOp> loops) {
                               OpPrintingFlags().skipRegions());
         for (const DependenceComponent &depComp : depComps) {
           if (depComp.lb.has_value() && depComp.ub.has_value() &&
-              *depComp.lb < *depComp.ub && *depComp.ub < 0) {
+              *depComp.ub < 0) {
----------------
Mountagha wrote:

Good point, Thanks. Updated the check to use lb <= ub together with ub < 0.

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


More information about the Mlir-commits mailing list