diff options
author | Francis Visoiu Mistrih <francisvm@yahoo.com> | 2018-02-08 23:42:27 +0000 |
---|---|---|
committer | Francis Visoiu Mistrih <francisvm@yahoo.com> | 2018-02-08 23:42:27 +0000 |
commit | d65438d0ca7cf1e03a27767dbf2e455ac0b9b154 (patch) | |
tree | dc67b185fe6f440bce12c1748bad100c75269ca5 /llvm/lib/CodeGen/MachineScheduler.cpp | |
parent | 9849f595b9f92914263f80cdb8c48ec78499ba0b (diff) | |
download | bcm5719-llvm-d65438d0ca7cf1e03a27767dbf2e455ac0b9b154.tar.gz bcm5719-llvm-d65438d0ca7cf1e03a27767dbf2e455ac0b9b154.zip |
[CodeGen] Move printing '\n' from MachineInstr::print to MachineBasicBlock::print
MBB.print wasn't printing it, but the MIRPrinter is printing it. The
goal is to unify that as much as possible.
llvm-svn: 324681
Diffstat (limited to 'llvm/lib/CodeGen/MachineScheduler.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineScheduler.cpp | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/MachineScheduler.cpp b/llvm/lib/CodeGen/MachineScheduler.cpp index f37479ea964..c0a4f65d886 100644 --- a/llvm/lib/CodeGen/MachineScheduler.cpp +++ b/llvm/lib/CodeGen/MachineScheduler.cpp @@ -549,9 +549,13 @@ void MachineSchedulerBase::scheduleRegions(ScheduleDAGInstrs &Scheduler, } DEBUG(dbgs() << "********** MI Scheduling **********\n"); DEBUG(dbgs() << MF->getName() << ":" << printMBBReference(*MBB) << " " - << MBB->getName() << "\n From: " << *I << " To: "; - if (RegionEnd != MBB->end()) dbgs() << *RegionEnd; - else dbgs() << "End"; + << MBB->getName() << "\n From: " << *I << '\n' + << " To: "; + if (RegionEnd != MBB->end()) { + dbgs() << *RegionEnd << '\n'; + } else { + dbgs() << "End"; + } dbgs() << " RegionInstrs: " << NumRegionInstrs << '\n'); if (DumpCriticalPathLength) { errs() << MF->getName(); @@ -1133,7 +1137,7 @@ void ScheduleDAGMILive::updatePressureDiffs( DEBUG( dbgs() << " UpdateRegP: SU(" << SU.NodeNum << ") " << printReg(Reg, TRI) << ':' << PrintLaneMask(P.LaneMask) - << ' ' << *SU.getInstr(); + << ' ' << *SU.getInstr() << '\n'; dbgs() << " to "; PDiff.dump(*TRI); ); @@ -1170,7 +1174,7 @@ void ScheduleDAGMILive::updatePressureDiffs( PDiff.addPressureChange(Reg, true, &MRI); DEBUG( dbgs() << " UpdateRegP: SU(" << SU->NodeNum << ") " - << *SU->getInstr(); + << *SU->getInstr() << '\n'; dbgs() << " to "; PDiff.dump(*TRI); ); @@ -3334,7 +3338,8 @@ SUnit *PostGenericScheduler::pickNode(bool &IsTopNode) { IsTopNode = true; Top.removeReady(SU); - DEBUG(dbgs() << "Scheduling SU(" << SU->NodeNum << ") " << *SU->getInstr()); + DEBUG(dbgs() << "Scheduling SU(" << SU->NodeNum << ") " << *SU->getInstr() + << '\n'); return SU; } |