1
0
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:
Andrew V. Tischenko 2018-02-26 09:43:21 +00:00
parent 910a58d557
commit 2e806a1d4c
2 changed files with 4 additions and 4 deletions

View File

@ -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);
}
});

View File

@ -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);