mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-21 02:24:22 +00:00
MachineScheduler: enable biasCriticalPath for all DAGs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173318 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -563,6 +563,10 @@ void ScheduleDAGMI::releaseRoots() {
|
|||||||
for (std::vector<SUnit>::iterator
|
for (std::vector<SUnit>::iterator
|
||||||
I = SUnits.begin(), E = SUnits.end(); I != E; ++I) {
|
I = SUnits.begin(), E = SUnits.end(); I != E; ++I) {
|
||||||
SUnit *SU = &(*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.
|
// A SUnit is ready to top schedule if it has no predecessors.
|
||||||
if (!I->NumPredsLeft && SU != &EntrySU)
|
if (!I->NumPredsLeft && SU != &EntrySU)
|
||||||
SchedImpl->releaseTopNode(SU);
|
SchedImpl->releaseTopNode(SU);
|
||||||
|
Reference in New Issue
Block a user