Teach TargetRegisterInfo how to cram stack slot indexes in with the virtual and
physical register numbers. This makes the hack used in LiveInterval official, and lets LiveInterval be oblivious of stack slots. The isPhysicalRegister() and isVirtualRegister() predicates don't know about this, so when a variable may contain a stack slot, isStackSlot() should always be tested first. llvm-svn: 123128
This commit is contained in:
@@ -650,12 +650,7 @@ void LiveRange::dump() const {
|
||||
}
|
||||
|
||||
void LiveInterval::print(raw_ostream &OS, const TargetRegisterInfo *TRI) const {
|
||||
if (isStackSlot())
|
||||
OS << "SS#" << getStackSlotIndex();
|
||||
else
|
||||
OS << PrintReg(reg, TRI);
|
||||
|
||||
OS << ',' << weight;
|
||||
OS << PrintReg(reg, TRI) << ',' << weight;
|
||||
|
||||
if (empty())
|
||||
OS << " EMPTY";
|
||||
|
||||
Reference in New Issue
Block a user