Fix debug info to not print out recently freed memory.
authorChris Lattner <sabre@nondot.org>
Wed, 27 Jul 2005 23:11:25 +0000 (23:11 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 27 Jul 2005 23:11:25 +0000 (23:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22529 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/LiveIntervalAnalysis.cpp

index b242a9c6942fd9a99e5745d84b720fd0e2b5c5ae..2050115962a607d7b8ebbb941ac4f65f02d0ff68 100644 (file)
@@ -671,6 +671,7 @@ void LiveIntervals::joinIntervalsInMachineBB(MachineBasicBlock *MBB) {
       if ((TriviallyJoinable || IntB.joinable(IntA, MIDefIdx)) &&
           !overlapsAliases(&IntA, &IntB)) {
         IntB.join(IntA, MIDefIdx);
+        DEBUG(std::cerr << "Joined.  Result = " << IntB << "\n");
 
         if (!MRegisterInfo::isPhysicalRegister(regA)) {
           r2iMap_.erase(regA);
@@ -683,7 +684,6 @@ void LiveIntervals::joinIntervalsInMachineBB(MachineBasicBlock *MBB) {
           IntA.swap(IntB);
           r2iMap_.erase(regB);
         }
-        DEBUG(std::cerr << "Joined.  Result = " << IntB << "\n");
         ++numJoins;
       } else {
         DEBUG(std::cerr << "Interference!\n");