[llvm-branch-commits] [llvm] [LV] isScalarWithPredication to check for interleaved accesses (PR #194579)

Gaƫtan Bossu via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue May 5 02:25:55 PDT 2026


================
@@ -488,8 +489,8 @@ int LoopVectorizationLegality::isConsecutivePtr(Type *AccessTy,
   int Stride = getPtrStride(PSE, AccessTy, Ptr, TheLoop, *DT, Strides,
                             AllowRuntimeSCEVChecks, false)
                    .value_or(0);
-  if (Stride == 1 || Stride == -1)
-    return Stride;
+  if (Stride == int(InterleaveFactor) || Stride == -int(InterleaveFactor))
----------------
gbossu wrote:

Done in https://github.com/llvm/llvm-project/pull/195243

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


More information about the llvm-branch-commits mailing list