[llvm] [LV] Support strided load with a stride of -1 (PR #128718)
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Mon May 12 09:27:45 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;
----------------
alexey-bataev wrote:
1. SmallDenseMap
2. Better to map to a value (or SCEV) to support runtime strides, no?
https://github.com/llvm/llvm-project/pull/128718
More information about the llvm-commits
mailing list