mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
MachineScheduler: enable biasCriticalPath for all DAGs.
llvm-svn: 173318
This commit is contained in:
parent
35ccc52ff0
commit
11bf0a77ff
@ -563,6 +563,10 @@ void ScheduleDAGMI::releaseRoots() {
|
||||
for (std::vector<SUnit>::iterator
|
||||
I = SUnits.begin(), E = SUnits.end(); I != E; ++I) {
|
||||
SUnit *SU = &(*I);
|
||||
|
||||
// Order predecessors so DFSResult follows the critical path.
|
||||
SU->biasCriticalPath();
|
||||
|
||||
// A SUnit is ready to top schedule if it has no predecessors.
|
||||
if (!I->NumPredsLeft && SU != &EntrySU)
|
||||
SchedImpl->releaseTopNode(SU);
|
||||
|
Loading…
Reference in New Issue
Block a user