[llvm] [LAA] Relax HasSameSize check on couldPrevertStoreLoadForward (PR #159537)

David Sherwood via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 3 01:34:06 PDT 2026


================
@@ -2274,10 +2277,9 @@ MemoryDepChecker::isDependent(const MemAccessInfo &A, unsigned AIdx,
 
   // Attempt to prove strided accesses independent.
   if (APDist) {
-    // If the distance between accesses and their strides are known constants,
-    // check whether the accesses interlace each other.
-    if (ConstDist > 0 && CommonStride && CommonStride > 1 && HasSameSize &&
-        areStridedAccessesIndependent(ConstDist, *CommonStride, TypeByteSize)) {
+    if (ConstDist && CommonStride && CommonStride > 1 && HasSameSize &&
----------------
david-arm wrote:

I was confused at first as to why you'd changed `ConstDist`. Looks like the change is independent of the PR as you know the type is unsigned. Happy for you to leave this change in the PR though.

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


More information about the llvm-commits mailing list