mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-16 08:29:43 +00:00
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158038 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
05b46f05c3
commit
2fd0923593
@ -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;
|
||||
|
@ -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.
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user