[llvm] [LAA] Use MaxStride instead of CommonStride to calculate MaxVF (PR #98142)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Wed May 7 13:00:14 PDT 2025
================
@@ -2236,7 +2235,10 @@ MemoryDepChecker::isDependent(const MemAccessInfo &A, unsigned AIdx,
couldPreventStoreLoadForward(MinDistance, TypeByteSize, *CommonStride))
return Dependence::BackwardVectorizableButPreventsForwarding;
- uint64_t MaxVF = MinDepDistBytes / *CommonStride;
+ // An update to MinDepDistBytes requires an update to MaxSafeVectorWidthInBits
+ // since there is a backwards dependency. We use MaxStride to get a
+ // conservative upper bound on MaxVF.
----------------
fhahn wrote:
```suggestion
```
https://github.com/llvm/llvm-project/pull/98142
More information about the llvm-commits
mailing list