1
0
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:
Andrew Trick 2013-01-24 02:09:57 +00:00
parent 35ccc52ff0
commit 11bf0a77ff

View File

@ -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);