diff options
author | Jonas Paulsson <paulsson@linux.vnet.ibm.com> | 2018-03-05 16:31:49 +0000 |
---|---|---|
committer | Jonas Paulsson <paulsson@linux.vnet.ibm.com> | 2018-03-05 16:31:49 +0000 |
commit | bc32f7db8588cac8b322c5af630a0f458d3be385 (patch) | |
tree | e364df096956fcfdd2996c56bf3102d6c8948de4 /llvm/lib/CodeGen/MachineScheduler.cpp | |
parent | e31ab94e972f4a847f2312ffcdc71291ca7b2325 (diff) | |
download | bcm5719-llvm-bc32f7db8588cac8b322c5af630a0f458d3be385.tar.gz bcm5719-llvm-bc32f7db8588cac8b322c5af630a0f458d3be385.zip |
[MachineScheduler] Dump SUnits before calling SchedImpl->initialize()
This is a NFC simple patch that changes the DEBUG dumping in the
MachineScheduler so that the dumping of the built SUnits is done before the
SchedImpl->initialize() is called.
This is better on SystemZ, since it has a strategy that does some dumping at
the start of the region, and it is not possible to easily read it if it is
output above a long list of SU.
Review: Javed Absar
https://reviews.llvm.org/D44089
llvm-svn: 326716
Diffstat (limited to 'llvm/lib/CodeGen/MachineScheduler.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineScheduler.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/MachineScheduler.cpp b/llvm/lib/CodeGen/MachineScheduler.cpp index f37479ea964..726a3b93375 100644 --- a/llvm/lib/CodeGen/MachineScheduler.cpp +++ b/llvm/lib/CodeGen/MachineScheduler.cpp @@ -762,10 +762,6 @@ void ScheduleDAGMI::schedule() { SmallVector<SUnit*, 8> TopRoots, BotRoots; findRootsAndBiasEdges(TopRoots, BotRoots); - // Initialize the strategy before modifying the DAG. - // This may initialize a DFSResult to be used for queue priority. - SchedImpl->initialize(this); - DEBUG( if (EntrySU.getInstr() != nullptr) EntrySU.dumpAll(this); @@ -776,6 +772,10 @@ void ScheduleDAGMI::schedule() { ); if (ViewMISchedDAGs) viewGraph(); + // Initialize the strategy before modifying the DAG. + // This may initialize a DFSResult to be used for queue priority. + SchedImpl->initialize(this); + // Initialize ready queues now that the DAG and priority data are finalized. initQueues(TopRoots, BotRoots); |