[llvm] LAA: generalize strides over unequal type sizes (PR #108088)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 17 05:53:24 PST 2024
================
@@ -2168,8 +2185,7 @@ MemoryDepChecker::isDependent(const MemAccessInfo &A, unsigned AIdx,
// We know that Dist is positive, but it may not be constant. Use the signed
// minimum for computations below, as this ensures we compute the closest
// possible dependence distance.
- uint64_t MinDistanceNeeded =
- TypeByteSize * *CommonStride * (MinNumIter - 1) + TypeByteSize;
----------------
fhahn wrote:
Changing `CommonStride` to be scaled seems like an improvement that could be split off as NFC, reducing the diff?
https://github.com/llvm/llvm-project/pull/108088
More information about the llvm-commits
mailing list