[llvm] [SLP] Update analyzeRtStrideCandidate() to correctly handle revectorization (PR #191878)

Mikhail Gudim via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 23 12:08:31 PDT 2026


================
@@ -7453,14 +7453,17 @@ bool BoUpSLP::analyzeRtStrideCandidate(ArrayRef<Value *> PointerOps,
     if (Sz % NumOffsets != 0)
       return false;
     VecSz = Sz / NumOffsets;
+  }
----------------
mgudim wrote:

there is no test for `isVectorTy() = true` , `NumOffsets == 1`

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


More information about the llvm-commits mailing list