Skip to content

Commit 73c7ba2

Browse files
committed
[VPlan] Strip bad assert in VPTransformState::get (NFC)
The assert only currently holds by chance, as vputils::isSingleScalar handles a lot more recipes.
1 parent 912cc5f commit 73c7ba2

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

llvm/lib/Transforms/Vectorize/VPlan.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -308,11 +308,6 @@ Value *VPTransformState::get(const VPValue *Def, bool NeedsScalar) {
308308
VPLane LastLane(IsSingleScalar ? 0 : VF.getFixedValue() - 1);
309309
// Check if there is a scalar value for the selected lane.
310310
if (!hasScalarValue(Def, LastLane)) {
311-
// At the moment, VPWidenIntOrFpInductionRecipes, VPScalarIVStepsRecipes and
312-
// VPExpandSCEVRecipes can also be a single scalar.
313-
assert((isa<VPWidenIntOrFpInductionRecipe, VPScalarIVStepsRecipe,
314-
VPExpandSCEVRecipe>(Def->getDefiningRecipe())) &&
315-
"unexpected recipe found to be invariant");
316311
IsSingleScalar = true;
317312
LastLane = 0;
318313
}

0 commit comments

Comments
 (0)