Skip to content

Commit f7b797e

Browse files
committed
Don't bother deleting old splice
It'll get cleaned up by removeDeadRecipes anyway
1 parent c055df0 commit f7b797e

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2241,17 +2241,8 @@ static void transformRecipestoEVLRecipes(VPlan &Plan, VPValue &EVL) {
22412241
}
22422242

22432243
VPValue *HeaderMask = findHeaderMask(Plan);
2244-
if (!HeaderMask) {
2245-
// TODO: Remove this once we move transformRecipesToEVLRecipes into
2246-
// tryToBuildVPlanWithVPRecipes.
2247-
for (VPRecipeBase *R : reverse(ToErase)) {
2248-
SmallVector<VPValue *> PossiblyDead(R->operands());
2249-
R->eraseFromParent();
2250-
for (VPValue *Op : PossiblyDead)
2251-
recursivelyDeleteDeadRecipes(Op);
2252-
}
2244+
if (!HeaderMask)
22532245
return;
2254-
}
22552246

22562247
// Replace header masks with a mask equivalent to predicating by EVL:
22572248
//

0 commit comments

Comments
 (0)