diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-07-17 17:57:23 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-07-17 17:57:23 +0000 |
commit | 0ef031186ce140382bad0bb5dfe5a3b9e7bcf335 (patch) | |
tree | 2d6def8fe108d610279691c65af12ff8729c5cea /llvm/lib/CodeGen/TwoAddressInstructionPass.cpp | |
parent | 63ffaa8c18f1caabc6820505ba1ce960252c5188 (diff) | |
download | bcm5719-llvm-0ef031186ce140382bad0bb5dfe5a3b9e7bcf335.tar.gz bcm5719-llvm-0ef031186ce140382bad0bb5dfe5a3b9e7bcf335.zip |
Add some trace output to TwoAddressInstructionPass.
llvm-svn: 160380
Diffstat (limited to 'llvm/lib/CodeGen/TwoAddressInstructionPass.cpp')
-rw-r--r-- | llvm/lib/CodeGen/TwoAddressInstructionPass.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp b/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp index 36503b1c396..196e06ea519 100644 --- a/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp +++ b/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp @@ -1001,6 +1001,7 @@ TwoAddressInstructionPass::RescheduleMIBelowKill(MachineBasicBlock *MBB, LV->removeVirtualRegisterKilled(Reg, KillMI); LV->addVirtualRegisterKilled(Reg, MI); + DEBUG(dbgs() << "\trescheduled below kill: " << *KillMI); return true; } @@ -1154,6 +1155,7 @@ TwoAddressInstructionPass::RescheduleKillAboveMI(MachineBasicBlock *MBB, LV->removeVirtualRegisterKilled(Reg, KillMI); LV->addVirtualRegisterKilled(Reg, MI); + DEBUG(dbgs() << "\trescheduled kill: " << *KillMI); return true; } @@ -1185,7 +1187,8 @@ TryInstructionTransform(MachineBasicBlock::iterator &mi, if (!regBKilled && MI.getOperand(DstIdx).isDead() && DeleteUnusedInstr(mi, nmi, mbbi, Dist)) { ++NumDeletes; - return true; // Done with this instruction. + DEBUG(dbgs() << "\tdeleted unused instruction.\n"); + return true; // Done with this instruction." } if (TargetRegisterInfo::isVirtualRegister(regA)) |