[llvm] LAA: generalize strides over unequal type sizes (PR #108088)

David Sherwood via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 17 05:36:36 PST 2024


================
@@ -1972,30 +1969,68 @@ MemoryDepChecker::getDependenceDistanceStrideAndSize(
     return MemoryDepChecker::Dependence::IndirectUnsafe;
   }
 
-  int64_t StrideAPtrInt = *StrideAPtr;
-  int64_t StrideBPtrInt = *StrideBPtr;
-  LLVM_DEBUG(dbgs() << "LAA:  Src induction step: " << StrideAPtrInt
-                    << " Sink induction step: " << StrideBPtrInt << "\n");
+  LLVM_DEBUG(dbgs() << "LAA:  Src induction step: " << *StrideAPtr
+                    << " Sink induction step: " << *StrideBPtr << "\n");
+
+  // Note that store size is different from alloc size, which is dependent on
----------------
david-arm wrote:

I'm not sure if I understand the comment `store size is different from alloc size, which is dependent on store size`. Do you mean that alloc size could be greater than the store size?

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


More information about the llvm-commits mailing list