[llvm] [VectorUtils] Use temporary PSE in collectConstStrideAccesses. (PR #199793)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Thu May 28 06:49:38 PDT 2026


================
@@ -1358,8 +1355,9 @@ bool InterleavedAccessInfo::isStrided(int Stride) {
 }
 
 void InterleavedAccessInfo::collectConstStrideAccesses(
+    PredicatedScalarEvolution &PSE,
     MapVector<Instruction *, StrideDescriptor> &AccessStrideInfo,
-    const DenseMap<Value*, const SCEV*> &Strides) {
+    const DenseMap<Value *, const SCEV *> &Strides) {
----------------
fhahn wrote:

Right, we are using separate PSE for the analysis that may add predicates. Those predicates will be discarded if we are sure not to use them, i.e. no interleave groups found.

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


More information about the llvm-commits mailing list