mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-26 04:34:41 +00:00
Don't use the isPending flag to mean what the isAvailable flag means.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59445 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
69e3bd10ec
commit
6560c000a1
@ -150,7 +150,7 @@ void LatencyPriorityQueue::ScheduledNode(SUnit *SU) {
|
||||
/// scheduled will make this node available, so it is better than some other
|
||||
/// node of the same priority that will not make a node available.
|
||||
void LatencyPriorityQueue::AdjustPriorityOfUnscheduledPreds(SUnit *SU) {
|
||||
if (SU->isPending) return; // All preds scheduled.
|
||||
if (SU->isAvailable) return; // All preds scheduled.
|
||||
|
||||
SUnit *OnlyAvailablePred = getSingleUnscheduledPred(SU);
|
||||
if (OnlyAvailablePred == 0 || !OnlyAvailablePred->isAvailable) return;
|
||||
|
@ -164,7 +164,7 @@ void ScheduleDAGList::ListScheduleTopDown() {
|
||||
// It is available if it has no predecessors.
|
||||
if (SUnits[i].Preds.empty()) {
|
||||
AvailableQueue->push(&SUnits[i]);
|
||||
SUnits[i].isAvailable = SUnits[i].isPending = true;
|
||||
SUnits[i].isAvailable = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user