================
@@ -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
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits