[llvm] [SLPVectorizer] Widen constant strided loads. (PR #162324)

Alexey Bataev via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 27 06:26:56 PDT 2025


================
@@ -6921,36 +6920,105 @@ bool BoUpSLP::isStridedLoad(ArrayRef<Value *> PointerOps, Type *ScalarTy,
 }
 
 bool BoUpSLP::analyzeConstantStrideCandidate(
-    const ArrayRef<Value *> PointerOps, Type *ScalarTy, Align Alignment,
+    ArrayRef<Value *> PointerOps, Type *ElemTy, Align Alignment,
     const SmallVectorImpl<unsigned> &SortedIndices, const int64_t Diff,
     Value *Ptr0, Value *PtrN, StridedPtrInfo &SPtrInfo) const {
-  const size_t Sz = PointerOps.size();
-  if (!isStridedLoad(PointerOps, ScalarTy, Alignment, Diff, Sz))
-    return false;
+  const unsigned Sz = PointerOps.size();
----------------
alexey-bataev wrote:

Restore original code

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


More information about the llvm-commits mailing list