[llvm] [DA] Fix the check between Subscript and Size after delinearization (PR #151326)

Ryotaro Kasuga via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 31 05:16:31 PDT 2025


================
@@ -1111,9 +1111,9 @@ bool DependenceInfo::isKnownPredicate(ICmpInst::Predicate Pred, const SCEV *X,
   }
 }
 
-/// Compare to see if S is less than Size, using isKnownNegative(S - max(Size, 1))
----------------
kasuga-fj wrote:

The rationale for using max here isn't entirely clear, but `S < max(Size, 1)` doesn't imply `S < Size`.

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


More information about the llvm-commits mailing list