Don't print register names in LiveIntervalUnion::print().
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 5 Jun 2012 23:07:19 +0000 (23:07 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 5 Jun 2012 23:07:19 +0000 (23:07 +0000)
Soon we'll be making LiveIntervalUnions for register units as well.

This was the only place using the RepReg member, so just remove it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158038 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/LiveIntervalUnion.cpp
lib/CodeGen/LiveIntervalUnion.h
lib/CodeGen/RegAllocBase.cpp

index 60a68806c55e7cba503ef3027d293eab988c5de4..9c579aff68036b99e223c63570aae3d2cd7917a6 100644 (file)
@@ -81,7 +81,6 @@ void LiveIntervalUnion::extract(LiveInterval &VirtReg) {
 
 void
 LiveIntervalUnion::print(raw_ostream &OS, const TargetRegisterInfo *TRI) const {
-  OS << "LIU " << PrintReg(RepReg, TRI);
   if (empty()) {
     OS << " empty\n";
     return;
index dbf5ac122d5dd68eac7a2b426356e73114f20556..4925abf63901fa4d3d2fab3e2912865931049c0b 100644 (file)
@@ -60,13 +60,11 @@ public:
   class Query;
 
 private:
-  const unsigned RepReg;  // representative register number
   unsigned Tag;           // unique tag for current contents.
   LiveSegments Segments;  // union of virtual reg segments
 
 public:
-  LiveIntervalUnion(unsigned r, Allocator &a) : RepReg(r), Tag(0), Segments(a)
-    {}
+  explicit LiveIntervalUnion(Allocator &a) : Tag(0), Segments(a) {}
 
   // Iterate over all segments in the union of live virtual registers ordered
   // by their starting position.
index 3c91330ecafa2ff8ad6b96976ff5b6b40873f817..5b2ec5e5aaafd58b77c0889bc0df0342d3553f3c 100644 (file)
@@ -96,7 +96,7 @@ void RegAllocBase::LiveUnionArray::init(LiveIntervalUnion::Allocator &allocator,
   Array =
     static_cast<LiveIntervalUnion*>(malloc(sizeof(LiveIntervalUnion)*NRegs));
   for (unsigned r = 0; r != NRegs; ++r)
-    new(Array + r) LiveIntervalUnion(r, allocator);
+    new(Array + r) LiveIntervalUnion(allocator);
 }
 
 void RegAllocBase::init(VirtRegMap &vrm, LiveIntervals &lis) {