[llvm] [LV] Support strided load with a stride of -1 (PR #128718)

Mel Chen via llvm-commits llvm-commits at lists.llvm.org
Wed May 21 01:15:28 PDT 2025


================
@@ -1718,6 +1737,9 @@ class LoopVectorizationCostModel {
         Ops, [this, VF](Value *V) { return this->needsExtract(V, VF); }));
   }
 
+  /// The mapping of memory access instructions to their stride values.
+  DenseMap<Instruction *, int64_t> StrideInfo;
----------------
Mel-Chen wrote:

Removed the change. I think we will need a map that maps to a SCEV for runtime strides.

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


More information about the llvm-commits mailing list