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

Ryotaro Kasuga via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 30 06:06:50 PDT 2025


================
@@ -1126,17 +1126,32 @@ bool DependenceInfo::isKnownLessThan(const SCEV *S, const SCEV *Size) const {
   Size = SE->getTruncateOrZeroExtend(Size, MaxType);
----------------
kasuga-fj wrote:

Although this may not be directly related to the change, this might be incorrect, as `Size` can be negative at this point.


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


More information about the llvm-commits mailing list