Don't use the isPending flag to mean what the isAvailable flag means.
authorDan Gohman <gohman@apple.com>
Mon, 17 Nov 2008 16:37:30 +0000 (16:37 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 17 Nov 2008 16:37:30 +0000 (16:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59445 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/LatencyPriorityQueue.cpp
lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp

index 6c8edf10ffb6c013337fa99a8e7491dc676d4aa6..ae73f2026859cfdfaea1e3f948b0082ee9610ee3 100644 (file)
@@ -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;
index fb013752816b776c5861985fa021c426c38c98b0..f22812fa46a2188ebf09ae33b5d8078963f365b3 100644 (file)
@@ -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;
     }
   }