Skip to content

Commit 0cccb2d

Browse files
committed
harden assertion
1 parent 68f81ee commit 0cccb2d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3548,6 +3548,8 @@ void VPInterleaveRecipe::execute(VPTransformState &State) {
35483548
// Vectorize the interleaved store group.
35493549
Value *MaskForGaps =
35503550
createBitMaskForGaps(State.Builder, State.VF.getKnownMinValue(), *Group);
3551+
assert(((MaskForGaps != nullptr) == NeedsMaskForGaps) &&
3552+
"Mismatch between NeedsMaskForGaps and MaskForGaps");
35513553
assert((!MaskForGaps || !State.VF.isScalable()) &&
35523554
"masking gaps for scalable vectors is not yet supported.");
35533555
ArrayRef<VPValue *> StoredValues = getStoredValues();

0 commit comments

Comments
 (0)