Skip to content

Commit 67382a4

Browse files
committed
assert negative stride
1 parent d8b703b commit 67382a4

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
@@ -1718,7 +1718,7 @@ class VPVectorEndPointerRecipe : public VPRecipeWithIRFlags,
17181718
: VPRecipeWithIRFlags(VPDef::VPVectorEndPointerSC,
17191719
ArrayRef<VPValue *>({Ptr, VF}), GEPFlags, DL),
17201720
IndexedTy(IndexedTy), Stride(Stride) {
1721-
assert(Stride != 0 && "Stride cannot be zero");
1721+
assert(Stride < 0 && "Stride must be negative");
17221722
}
17231723

17241724
VP_CLASSOF_IMPL(VPDef::VPVectorEndPointerSC)

0 commit comments

Comments
 (0)