Annotate VirtRegRewriter debug output with slot indexes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123333 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jakob Stoklund Olesen
2011-01-12 22:28:48 +00:00
parent fc69c370e1
commit 7fd747ba24
2 changed files with 6 additions and 2 deletions

View File

@@ -171,6 +171,10 @@ namespace llvm {
r2iMap_.erase(I); r2iMap_.erase(I);
} }
SlotIndexes *getSlotIndexes() const {
return indexes_;
}
SlotIndex getZeroIndex() const { SlotIndex getZeroIndex() const {
return indexes_->getZeroIndex(); return indexes_->getZeroIndex();
} }

View File

@@ -1133,7 +1133,7 @@ bool LocalRewriter::runOnMachineFunction(MachineFunction &MF, VirtRegMap &vrm,
<< MF.getFunction()->getName() << "':\n"); << MF.getFunction()->getName() << "':\n");
DEBUG(dbgs() << "**** Machine Instrs (NOTE! Does not include spills and" DEBUG(dbgs() << "**** Machine Instrs (NOTE! Does not include spills and"
" reloads!) ****\n"); " reloads!) ****\n");
DEBUG(MF.dump()); DEBUG(MF.print(dbgs(), LIs->getSlotIndexes()));
// Spills - Keep track of which spilled values are available in physregs // Spills - Keep track of which spilled values are available in physregs
// so that we can choose to reuse the physregs instead of emitting // so that we can choose to reuse the physregs instead of emitting
@@ -1184,7 +1184,7 @@ bool LocalRewriter::runOnMachineFunction(MachineFunction &MF, VirtRegMap &vrm,
} }
DEBUG(dbgs() << "**** Post Machine Instrs ****\n"); DEBUG(dbgs() << "**** Post Machine Instrs ****\n");
DEBUG(MF.dump()); DEBUG(MF.print(dbgs(), LIs->getSlotIndexes()));
// Mark unused spill slots. // Mark unused spill slots.
MachineFrameInfo *MFI = MF.getFrameInfo(); MachineFrameInfo *MFI = MF.getFrameInfo();