diff options
| author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-06-05 23:07:19 +0000 |
|---|---|---|
| committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-06-05 23:07:19 +0000 |
| commit | 46d229c5735a9b2fa5ddc2189e9d88e511d69665 (patch) | |
| tree | 852c85f25887304355118fb2b6b09dd7872e6739 /llvm/lib | |
| parent | 7ba769bedd02e38eacf0ca6ea06c6084c103432f (diff) | |
| download | bcm5719-llvm-46d229c5735a9b2fa5ddc2189e9d88e511d69665.tar.gz bcm5719-llvm-46d229c5735a9b2fa5ddc2189e9d88e511d69665.zip | |
Don't print register names in LiveIntervalUnion::print().
Soon we'll be making LiveIntervalUnions for register units as well.
This was the only place using the RepReg member, so just remove it.
llvm-svn: 158038
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/CodeGen/LiveIntervalUnion.cpp | 1 | ||||
| -rw-r--r-- | llvm/lib/CodeGen/LiveIntervalUnion.h | 4 | ||||
| -rw-r--r-- | llvm/lib/CodeGen/RegAllocBase.cpp | 2 |
3 files changed, 2 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalUnion.cpp b/llvm/lib/CodeGen/LiveIntervalUnion.cpp index 60a68806c55..9c579aff680 100644 --- a/llvm/lib/CodeGen/LiveIntervalUnion.cpp +++ b/llvm/lib/CodeGen/LiveIntervalUnion.cpp @@ -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; diff --git a/llvm/lib/CodeGen/LiveIntervalUnion.h b/llvm/lib/CodeGen/LiveIntervalUnion.h index dbf5ac122d5..4925abf6390 100644 --- a/llvm/lib/CodeGen/LiveIntervalUnion.h +++ b/llvm/lib/CodeGen/LiveIntervalUnion.h @@ -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. diff --git a/llvm/lib/CodeGen/RegAllocBase.cpp b/llvm/lib/CodeGen/RegAllocBase.cpp index 3c91330ecaf..5b2ec5e5aaa 100644 --- a/llvm/lib/CodeGen/RegAllocBase.cpp +++ b/llvm/lib/CodeGen/RegAllocBase.cpp @@ -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) { |

