aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2012-07-17 17:57:23 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2012-07-17 17:57:23 +0000
commita532bcec2f8b766ec2b623c715fab662e2d2e31d (patch)
tree424b4c31cf26d86e71f673b8d983bc472fe51cda /lib
parentde39671ebb1151b15bb7f3703fdc78061c68763e (diff)
downloadexternal_llvm-a532bcec2f8b766ec2b623c715fab662e2d2e31d.zip
external_llvm-a532bcec2f8b766ec2b623c715fab662e2d2e31d.tar.gz
external_llvm-a532bcec2f8b766ec2b623c715fab662e2d2e31d.tar.bz2
Add some trace output to TwoAddressInstructionPass.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160380 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/TwoAddressInstructionPass.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/CodeGen/TwoAddressInstructionPass.cpp b/lib/CodeGen/TwoAddressInstructionPass.cpp
index 36503b1..196e06e 100644
--- a/lib/CodeGen/TwoAddressInstructionPass.cpp
+++ b/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))