forked from OSchip/llvm-project
GlobalISel: Improve dead instruction debug printing
This was printing the "Is dead" on a separate line from the instruction, which was harder to follow.
This commit is contained in:
parent
bdb25b3ce5
commit
517caca359
|
@ -284,7 +284,7 @@ Legalizer::legalizeMachineFunction(MachineFunction &MF, const LegalizerInfo &LI,
|
|||
WrapperObserver)) {
|
||||
WorkListObserver.printNewInstrs();
|
||||
for (auto *DeadMI : DeadInstructions) {
|
||||
LLVM_DEBUG(dbgs() << *DeadMI << "Is dead\n");
|
||||
LLVM_DEBUG(dbgs() << "Is dead: " << *DeadMI);
|
||||
RemoveDeadInstFromLists(DeadMI);
|
||||
DeadMI->eraseFromParentAndMarkDBGValuesForRemoval();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue