Add some trace output to TwoAddressInstructionPass.

llvm-svn: 160380
This commit is contained in:
Jakob Stoklund Olesen 2012-07-17 17:57:23 +00:00
parent 63ffaa8c18
commit 0ef031186c
1 changed files with 4 additions and 1 deletions

View File

@ -1001,6 +1001,7 @@ TwoAddressInstructionPass::RescheduleMIBelowKill(MachineBasicBlock *MBB,
LV->removeVirtualRegisterKilled(Reg, KillMI); LV->removeVirtualRegisterKilled(Reg, KillMI);
LV->addVirtualRegisterKilled(Reg, MI); LV->addVirtualRegisterKilled(Reg, MI);
DEBUG(dbgs() << "\trescheduled below kill: " << *KillMI);
return true; return true;
} }
@ -1154,6 +1155,7 @@ TwoAddressInstructionPass::RescheduleKillAboveMI(MachineBasicBlock *MBB,
LV->removeVirtualRegisterKilled(Reg, KillMI); LV->removeVirtualRegisterKilled(Reg, KillMI);
LV->addVirtualRegisterKilled(Reg, MI); LV->addVirtualRegisterKilled(Reg, MI);
DEBUG(dbgs() << "\trescheduled kill: " << *KillMI);
return true; return true;
} }
@ -1185,7 +1187,8 @@ TryInstructionTransform(MachineBasicBlock::iterator &mi,
if (!regBKilled && MI.getOperand(DstIdx).isDead() && if (!regBKilled && MI.getOperand(DstIdx).isDead() &&
DeleteUnusedInstr(mi, nmi, mbbi, Dist)) { DeleteUnusedInstr(mi, nmi, mbbi, Dist)) {
++NumDeletes; ++NumDeletes;
return true; // Done with this instruction. DEBUG(dbgs() << "\tdeleted unused instruction.\n");
return true; // Done with this instruction."
} }
if (TargetRegisterInfo::isVirtualRegister(regA)) if (TargetRegisterInfo::isVirtualRegister(regA))