[llvm] [LAA] Support backward dependences with non-constant distance. (PR #91525)

Eli Friedman via llvm-commits llvm-commits at lists.llvm.org
Wed May 8 12:48:48 PDT 2024


================
@@ -314,6 +316,11 @@ class MemoryDepChecker {
   /// RecordDependences is true.
   SmallVector<Dependence, 8> Dependences;
 
+  /// The maximum width of a target's vector registers. Is used to decide if a
+  /// backwards dependence with non-constant stride should be classified as
+  /// backwards-vectorizable or unknown (triggering a runtime check).
+  unsigned MaxTargetVectorWidthInBits = 0;
----------------
efriedma-quic wrote:

How does this interact with interleaving?

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


More information about the llvm-commits mailing list