[llvm-commits] CVS: llvm/lib/CodeGen/LiveIntervalAnalysis.cpp

Chris Lattner lattner at cs.uiuc.edu
Mon Aug 21 15:56:44 PDT 2006



Changes in directory llvm/lib/CodeGen:

LiveIntervalAnalysis.cpp updated: 1.163 -> 1.164
---
Log message:

Print debug info as:

*** Register mapping ***
  reg 1024 -> %reg1028
  reg 1026 -> EAX
  reg 1027 -> %reg1028

instead of:

*** Register mapping ***
  reg 1024 -> reg 1028
  reg 1026 -> reg 15
  reg 1027 -> reg 1028



---
Diffs of the changes:  (+5 -2)

 LiveIntervalAnalysis.cpp |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)


Index: llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
diff -u llvm/lib/CodeGen/LiveIntervalAnalysis.cpp:1.163 llvm/lib/CodeGen/LiveIntervalAnalysis.cpp:1.164
--- llvm/lib/CodeGen/LiveIntervalAnalysis.cpp:1.163	Fri Jul 21 16:15:20 2006
+++ llvm/lib/CodeGen/LiveIntervalAnalysis.cpp	Mon Aug 21 17:56:29 2006
@@ -820,8 +820,11 @@
 
   DEBUG(std::cerr << "*** Register mapping ***\n");
   DEBUG(for (int i = 0, e = r2rMap_.size(); i != e; ++i)
-          if (r2rMap_[i])
-             std::cerr << "  reg " << i << " -> reg " << r2rMap_[i] << "\n");
+          if (r2rMap_[i]) {
+            std::cerr << "  reg " << i << " -> ";
+            printRegName(r2rMap_[i]);
+            std::cerr << "\n";
+          });
 }
 
 /// Return true if the two specified registers belong to different register






More information about the llvm-commits mailing list