mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-05 19:57:44 +00:00
MIsched: cleanup code. Use isBoundaryNode().
llvm-svn: 173775
This commit is contained in:
parent
2153efb5eb
commit
c7578b11dd
@ -587,17 +587,19 @@ void ScheduleDAGMI::findRootsAndBiasEdges(SmallVectorImpl<SUnit*> &TopRoots,
|
||||
for (std::vector<SUnit>::iterator
|
||||
I = SUnits.begin(), E = SUnits.end(); I != E; ++I) {
|
||||
SUnit *SU = &(*I);
|
||||
assert(!SU->isBoundaryNode() && "Boundary node should not be in SUnits");
|
||||
|
||||
// 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)
|
||||
if (!I->NumPredsLeft)
|
||||
TopRoots.push_back(SU);
|
||||
// A SUnit is ready to bottom schedule if it has no successors.
|
||||
if (!I->NumSuccsLeft && SU != &ExitSU)
|
||||
if (!I->NumSuccsLeft)
|
||||
BotRoots.push_back(SU);
|
||||
}
|
||||
ExitSU.biasCriticalPath();
|
||||
}
|
||||
|
||||
/// Identify DAG roots and setup scheduler queues.
|
||||
|
Loading…
x
Reference in New Issue
Block a user