[llvm] [LAA] Prepare to handle diff type sizes (NFC) (PR #122318)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 20 02:09:11 PDT 2025
================
@@ -2111,8 +2113,23 @@ MemoryDepChecker::getDependenceDistanceStrideAndSize(
return Dependence::Unknown;
}
+ // When the distance is possibly zero, we're reading/writing the same memory
+ // location: if the store sizes are not equal, fail with an unknown
+ // dependence.
+ TypeSize AStoreSz = DL.getTypeStoreSize(ATy);
+ TypeSize BStoreSz = DL.getTypeStoreSize(BTy);
----------------
fhahn wrote:
why get the size again, it's already in TypeByteSize, no?
https://github.com/llvm/llvm-project/pull/122318
More information about the llvm-commits
mailing list