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

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Thu May 9 05:44:01 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;
----------------
fhahn wrote:

Updated to use allow for IC = 2 for now

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


More information about the llvm-commits mailing list