[llvm-commits] [llvm] r59445 - in /llvm/trunk/lib/CodeGen/SelectionDAG: LatencyPriorityQueue.cpp ScheduleDAGList.cpp
Dan Gohman
gohman at apple.com
Mon Nov 17 08:37:30 PST 2008
Author: djg
Date: Mon Nov 17 10:37:30 2008
New Revision: 59445
URL: http://llvm.org/viewvc/llvm-project?rev=59445&view=rev
Log:
Don't use the isPending flag to mean what the isAvailable flag means.
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/LatencyPriorityQueue.cpp
llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/LatencyPriorityQueue.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/LatencyPriorityQueue.cpp?rev=59445&r1=59444&r2=59445&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/LatencyPriorityQueue.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/LatencyPriorityQueue.cpp Mon Nov 17 10:37:30 2008
@@ -150,7 +150,7 @@
/// 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;
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp?rev=59445&r1=59444&r2=59445&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp Mon Nov 17 10:37:30 2008
@@ -164,7 +164,7 @@
// 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;
}
}
More information about the llvm-commits
mailing list