diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-06-05 22:51:54 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-06-05 22:51:54 +0000 |
commit | b77ec7d26405125fa5685370af5f17fcc9edbecd (patch) | |
tree | f22609d0c912c4629d98f79ef81f0a1e1c4a5174 /lib/CodeGen/RegAllocBase.cpp | |
parent | 34c6f9803499c11ed2dc8479ec768d47370a2d3a (diff) | |
download | external_llvm-b77ec7d26405125fa5685370af5f17fcc9edbecd.zip external_llvm-b77ec7d26405125fa5685370af5f17fcc9edbecd.tar.gz external_llvm-b77ec7d26405125fa5685370af5f17fcc9edbecd.tar.bz2 |
Simplify LiveInterval::print().
Don't print out the register number and spill weight, making the TRI
argument unnecessary.
This allows callers to interpret the reg field. It can currently be a
virtual register, a physical register, a spill slot, or a register unit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158031 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegAllocBase.cpp')
-rw-r--r-- | lib/CodeGen/RegAllocBase.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/RegAllocBase.cpp b/lib/CodeGen/RegAllocBase.cpp index a0ef9af..3c91330 100644 --- a/lib/CodeGen/RegAllocBase.cpp +++ b/lib/CodeGen/RegAllocBase.cpp @@ -189,7 +189,7 @@ void RegAllocBase::allocatePhysRegs() { // result from splitting. DEBUG(dbgs() << "\nselectOrSplit " << MRI->getRegClass(VirtReg->reg)->getName() - << ':' << *VirtReg << '\n'); + << ':' << PrintReg(VirtReg->reg) << ' ' << *VirtReg << '\n'); typedef SmallVector<LiveInterval*, 4> VirtRegVec; VirtRegVec SplitVRegs; unsigned AvailablePhysReg = selectOrSplit(*VirtReg, SplitVRegs); |