Skip to content

Commit ef6b46a

Browse files
committed
assert negative stride
1 parent 6e68e03 commit ef6b46a

File tree

1 file changed

+1
-1
lines changed
  • llvm/lib/Transforms/Vectorize

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Vectorize/VPlan.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1720,7 +1720,7 @@ class VPVectorEndPointerRecipe : public VPRecipeWithIRFlags,
17201720
: VPRecipeWithIRFlags(VPDef::VPVectorEndPointerSC,
17211721
ArrayRef<VPValue *>({Ptr, VF}), GEPFlags, DL),
17221722
IndexedTy(IndexedTy), Stride(Stride) {
1723-
assert(Stride != 0 && "Stride cannot be zero");
1723+
assert(Stride < 0 && "Stride must be negative");
17241724
}
17251725

17261726
VP_CLASSOF_IMPL(VPDef::VPVectorEndPointerSC)

0 commit comments

Comments
 (0)