summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-02-25 02:03:40 +0000
committerChris Lattner <sabre@nondot.org>2006-02-25 02:03:40 +0000
commit28a0b8bec745115d6f228909e1b2b67b7a916e35 (patch)
treed7f213c156523b64d9fb6b5a04ec4c70945e2a96 /llvm/lib
parent525522e42902ac9cfdc9d7f22f4ab61fa2023271 (diff)
downloadbcm5719-llvm-28a0b8bec745115d6f228909e1b2b67b7a916e35.tar.gz
bcm5719-llvm-28a0b8bec745115d6f228909e1b2b67b7a916e35.zip
Remove debugging printout :)
Add a minor compile time win, no codegen change. llvm-svn: 26368
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/VirtRegMap.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/VirtRegMap.cpp b/llvm/lib/CodeGen/VirtRegMap.cpp
index 0c5fcc5a938..144780129dc 100644
--- a/llvm/lib/CodeGen/VirtRegMap.cpp
+++ b/llvm/lib/CodeGen/VirtRegMap.cpp
@@ -419,8 +419,12 @@ namespace {
// register.
if (Op.PhysRegReused == PhysReg) {
// Yup, use the reload register that we didn't use before.
- return GetRegForReload(Op.AssignedPhysReg, MI,
- Spills, MaybeDeadStores);
+ unsigned NewReg = Op.AssignedPhysReg;
+
+ // Remove the record for the previous reuse. We know it can never be
+ // invalidated now.
+ Reuses.erase(Reuses.begin()+ro);
+ return GetRegForReload(NewReg, MI, Spills, MaybeDeadStores);
} else {
// Otherwise, we might also have a problem if a previously reused
// value aliases the new register. If so, codegen the previous reload
@@ -487,9 +491,6 @@ void LocalSpiller::RewriteMBB(MachineBasicBlock &MBB, const VirtRegMap &VRM) {
bool *PhysRegsUsed = MBB.getParent()->getUsedPhysregs();
- if (MBB.getBasicBlock()->getName() == "endif.3.i")
- std::cerr << "HERE\n";
-
for (MachineBasicBlock::iterator MII = MBB.begin(), E = MBB.end();
MII != E; ) {
MachineInstr &MI = *MII;
OpenPOWER on IntegriCloud