mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-29 14:20:29 +00:00
[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
This commit is contained in:
parent
6f9480ccb5
commit
787ec54204
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user