[llvm] r286653 - MachineScheduler: Dump EntrySU/ExitSU if possible
Matthias Braun via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 11 14:37:28 PST 2016
Author: matze
Date: Fri Nov 11 16:37:28 2016
New Revision: 286653
URL: http://llvm.org/viewvc/llvm-project?rev=286653&view=rev
Log:
MachineScheduler: Dump EntrySU/ExitSU if possible
Modified:
llvm/trunk/lib/CodeGen/MachineScheduler.cpp
Modified: llvm/trunk/lib/CodeGen/MachineScheduler.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineScheduler.cpp?rev=286653&r1=286652&r2=286653&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineScheduler.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineScheduler.cpp Fri Nov 11 16:37:28 2016
@@ -689,8 +689,14 @@ void ScheduleDAGMI::schedule() {
// This may initialize a DFSResult to be used for queue priority.
SchedImpl->initialize(this);
- DEBUG(for (unsigned su = 0, e = SUnits.size(); su != e; ++su)
- SUnits[su].dumpAll(this));
+ DEBUG(
+ if (EntrySU.getInstr() != nullptr)
+ EntrySU.dumpAll(this);
+ for (unsigned su = 0, e = SUnits.size(); su != e; ++su)
+ SUnits[su].dumpAll(this);
+ if (ExitSU.getInstr() != nullptr)
+ ExitSU.dumpAll(this);
+ );
if (ViewMISchedDAGs) viewGraph();
// Initialize ready queues now that the DAG and priority data are finalized.
@@ -1084,6 +1090,8 @@ void ScheduleDAGMILive::schedule() {
SchedImpl->initialize(this);
DEBUG(
+ if (EntrySU.getInstr() != nullptr)
+ EntrySU.dumpAll(this);
for (const SUnit &SU : SUnits) {
SU.dumpAll(this);
if (ShouldTrackPressure) {
@@ -1092,6 +1100,8 @@ void ScheduleDAGMILive::schedule() {
}
dbgs() << '\n';
}
+ if (ExitSU.getInstr() != nullptr)
+ ExitSU.dumpAll(this);
);
if (ViewMISchedDAGs) viewGraph();
More information about the llvm-commits
mailing list