Changes in directory llvm/lib/CodeGen:
VirtRegMap.cpp updated: 1.56 -> 1.57 --- Log message: Remove debugging printout :) Add a minor compile time win, no codegen change. --- Diffs of the changes: (+6 -5) VirtRegMap.cpp | 11 ++++++----- 1 files changed, 6 insertions(+), 5 deletions(-) Index: llvm/lib/CodeGen/VirtRegMap.cpp diff -u llvm/lib/CodeGen/VirtRegMap.cpp:1.56 llvm/lib/CodeGen/VirtRegMap.cpp:1.57 --- llvm/lib/CodeGen/VirtRegMap.cpp:1.56 Fri Feb 24 19:51:33 2006 +++ llvm/lib/CodeGen/VirtRegMap.cpp Fri Feb 24 20:03:40 2006 @@ -419,8 +419,12 @@ // 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 @@ 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; _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits