[llvm] [LAA] Prepare to handle diff type sizes v2 (PR #161238)

Igor Kirillov via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 1 03:02:34 PDT 2025


================
@@ -2090,14 +2090,12 @@ MemoryDepChecker::getDependenceDistanceStrideAndSize(
     return MemoryDepChecker::Dependence::Unknown;
   }
 
-  TypeSize AStoreSz = DL.getTypeStoreSize(ATy);
-  TypeSize BStoreSz = DL.getTypeStoreSize(BTy);
-
-  // If store sizes are not the same, set TypeByteSize to zero, so we can check
-  // it in the caller isDependent.
   uint64_t ASz = DL.getTypeAllocSize(ATy);
   uint64_t BSz = DL.getTypeAllocSize(BTy);
-  uint64_t TypeByteSize = (AStoreSz == BStoreSz) ? BSz : 0;
+
+  // Both the source and sink sizes are neeeded in dependence checks, depending
----------------
igogo-x86 wrote:

`neeeded` typo

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


More information about the llvm-commits mailing list