Print physreg names symbolically in dumps
authorChris Lattner <sabre@nondot.org>
Mon, 21 Aug 2006 23:03:54 +0000 (23:03 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 21 Aug 2006 23:03:54 +0000 (23:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29805 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/LiveIntervalAnalysis.cpp

index f1f608d27134f67a34e9e2e213804e92a1124e2b..e5128558e34675194da070595003954eb12bb7f8 100644 (file)
@@ -735,8 +735,9 @@ void LiveIntervals::joinIntervalsInMachineBB(MachineBasicBlock *MBB) {
       assert(SrcInt.reg == SrcReg && DestInt.reg == DestReg &&
              "Register mapping is horribly broken!");
 
-      DEBUG(std::cerr << "\t\tInspecting " << SrcInt << " and " << DestInt
-                      << ": ");
+      DEBUG(std::cerr << "\t\tInspecting "; SrcInt.print(std::cerr, mri_);
+            std::cerr << " and "; DestInt.print(std::cerr, mri_);
+            std::cerr << ": ");
 
       // If two intervals contain a single value and are joined by a copy, it
       // does not matter if the intervals overlap, they can always be joined.