Skip to content

Commit dc23234

Browse files
committed
[VPlan] Remove dead code in VPWidenPHIRecipe::print (NFC).
All incoming models for VPWidenPHIRecipe are modled in VPlan, remove code trying to print the orignial phi.
1 parent 8c97ddf commit dc23234

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3626,16 +3626,6 @@ void VPWidenPHIRecipe::print(raw_ostream &O, const Twine &Indent,
36263626
VPSlotTracker &SlotTracker) const {
36273627
O << Indent << "WIDEN-PHI ";
36283628

3629-
auto *OriginalPhi = cast<PHINode>(getUnderlyingValue());
3630-
// Unless all incoming values are modeled in VPlan print the original PHI
3631-
// directly.
3632-
// TODO: Remove once all VPWidenPHIRecipe instances keep all relevant incoming
3633-
// values as VPValues.
3634-
if (getNumOperands() != OriginalPhi->getNumOperands()) {
3635-
O << VPlanIngredient(OriginalPhi);
3636-
return;
3637-
}
3638-
36393629
printAsOperand(O, SlotTracker);
36403630
O << " = phi ";
36413631
printOperands(O, SlotTracker);

0 commit comments

Comments
 (0)