mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 19:12:56 +02:00
The final step to close D41278 [MachineCombiner] Improve debug output (NFC).
Differential Revision: https://reviews.llvm.org/D41278 llvm-svn: 326074
This commit is contained in:
parent
910a58d557
commit
2e806a1d4c
@ -559,14 +559,12 @@ bool MachineCombiner::combineInstructions(MachineBasicBlock *MBB) {
|
||||
dbgs() << "\tFor the Pattern (" << (int)P << ") these instructions could be removed\n";
|
||||
for (auto const *InstrPtr : DelInstrs) {
|
||||
dbgs() << "\t\t" << STI->getSchedInfoStr(*InstrPtr) << ": ";
|
||||
InstrPtr->print(dbgs(), false, false, TII);
|
||||
dbgs() << "\n";
|
||||
InstrPtr->print(dbgs(), false, false, false, TII);
|
||||
}
|
||||
dbgs() << "\tThese instructions could replace the removed ones\n";
|
||||
for (auto const *InstrPtr : InsInstrs) {
|
||||
dbgs() << "\t\t" << STI->getSchedInfoStr(*InstrPtr) << ": ";
|
||||
InstrPtr->print(dbgs(), false, false, TII);
|
||||
dbgs() << "\n";
|
||||
InstrPtr->print(dbgs(), false, false, false, TII);
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -1235,6 +1235,8 @@ void MachineInstr::print(raw_ostream &OS, bool IsStandalone, bool SkipOpers,
|
||||
if (const MachineFunction *MF = getMFIfAvailable(*this)) {
|
||||
F = &MF->getFunction();
|
||||
M = F->getParent();
|
||||
if (!TII)
|
||||
TII = MF->getSubtarget().getInstrInfo();
|
||||
}
|
||||
|
||||
ModuleSlotTracker MST(M);
|
||||
|
Loading…
Reference in New Issue
Block a user