mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-28 06:00:28 +00:00
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:
parent
fc69c370e1
commit
7fd747ba24
@ -171,6 +171,10 @@ namespace llvm {
|
||||
r2iMap_.erase(I);
|
||||
}
|
||||
|
||||
SlotIndexes *getSlotIndexes() const {
|
||||
return indexes_;
|
||||
}
|
||||
|
||||
SlotIndex getZeroIndex() const {
|
||||
return indexes_->getZeroIndex();
|
||||
}
|
||||
|
@ -1133,7 +1133,7 @@ bool LocalRewriter::runOnMachineFunction(MachineFunction &MF, VirtRegMap &vrm,
|
||||
<< MF.getFunction()->getName() << "':\n");
|
||||
DEBUG(dbgs() << "**** Machine Instrs (NOTE! Does not include spills and"
|
||||
" reloads!) ****\n");
|
||||
DEBUG(MF.dump());
|
||||
DEBUG(MF.print(dbgs(), LIs->getSlotIndexes()));
|
||||
|
||||
// Spills - Keep track of which spilled values are available in physregs
|
||||
// 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(MF.dump());
|
||||
DEBUG(MF.print(dbgs(), LIs->getSlotIndexes()));
|
||||
|
||||
// Mark unused spill slots.
|
||||
MachineFrameInfo *MFI = MF.getFrameInfo();
|
||||
|
Loading…
Reference in New Issue
Block a user