[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


================
@@ -2186,11 +2182,14 @@ MemoryDepChecker::isDependent(const MemAccessInfo &A, unsigned AIdx,
   // If MinNumIter is 4 (Say if a user forces the vectorization factor to be 4),
   // the minimum distance needed is 28, which is greater than distance. It is
   // not safe to do vectorization.
+  //
+  // We use MaxStride (maximum of src and sink strides), to get conservative
----------------
fhahn wrote:

```suggestion
  // We use MaxStride (maximum of src and sink strides) to get a conservative
```

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


More information about the llvm-commits mailing list