[llvm] LAA: scale strides using type-size (NFC) (PR #124529)
Michael Kruse via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 19 05:27:22 PST 2025
================
@@ -1981,25 +1977,27 @@ MemoryDepChecker::getDependenceDistanceStrideAndSize(
return MemoryDepChecker::Dependence::Unknown;
}
- uint64_t TypeByteSize = DL.getTypeAllocSize(ATy);
- bool HasSameSize =
- DL.getTypeStoreSizeInBits(ATy) == DL.getTypeStoreSizeInBits(BTy);
- if (!HasSameSize)
- TypeByteSize = 0;
+ TypeSize AStoreSz = DL.getTypeStoreSize(ATy),
+ BStoreSz = DL.getTypeStoreSize(BTy);
----------------
Meinersbur wrote:
```suggestion
TypeSize AStoreSz = DL.getTypeStoreSize(ATy);
TypeSize BStoreSz = DL.getTypeStoreSize(BTy);
```
Shared declarator is not worth it and not seen anywhere else in LLVM.
https://github.com/llvm/llvm-project/pull/124529
More information about the llvm-commits
mailing list