summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-11-17 16:37:30 +0000
committerDan Gohman <gohman@apple.com>2008-11-17 16:37:30 +0000
commit17c226b8ca6b4ac5898e929926180bc19e666669 (patch)
tree6f5f138cccb005899f43677f72065ab201879b8d /llvm/lib
parentecf2bb8724d41a72292b80c88bf35b46ec51a39f (diff)
downloadbcm5719-llvm-17c226b8ca6b4ac5898e929926180bc19e666669.tar.gz
bcm5719-llvm-17c226b8ca6b4ac5898e929926180bc19e666669.zip
Don't use the isPending flag to mean what the isAvailable flag means.
llvm-svn: 59445
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/LatencyPriorityQueue.cpp2
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LatencyPriorityQueue.cpp b/llvm/lib/CodeGen/SelectionDAG/LatencyPriorityQueue.cpp
index 6c8edf10ffb..ae73f202685 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LatencyPriorityQueue.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/LatencyPriorityQueue.cpp
@@ -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;
diff --git a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp b/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp
index fb013752816..f22812fa46a 100644
--- a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp
@@ -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;
}
}
OpenPOWER on IntegriCloud