Skip to content

Commit 145e8aa

Browse files
authored
[LV][EVL] Add dead EVL mask into ToErase for consistency. nfc (#153761)
1 parent 2cb2d76 commit 145e8aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2291,7 +2291,7 @@ static void transformRecipestoEVLRecipes(VPlan &Plan, VPValue &EVL) {
22912291
}
22922292
// Remove dead EVL mask.
22932293
if (EVLMask->getNumUsers() == 0)
2294-
EVLMask->getDefiningRecipe()->eraseFromParent();
2294+
ToErase.push_back(EVLMask->getDefiningRecipe());
22952295

22962296
for (VPRecipeBase *R : reverse(ToErase)) {
22972297
SmallVector<VPValue *> PossiblyDead(R->operands());

0 commit comments

Comments
 (0)