diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-09-28 19:24:24 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-09-28 19:24:24 +0000 |
commit | 74d2fd8dd847e0ebccef30e2c5907ff09495d518 (patch) | |
tree | 130c52db324cfdeb2013525d2076352a4225824c /lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp | |
parent | 005ac653f2c8e04fcf95afcecc58ff06b7a3b5ad (diff) | |
download | llvm-74d2fd8dd847e0ebccef30e2c5907ff09495d518.tar.gz llvm-74d2fd8dd847e0ebccef30e2c5907ff09495d518.tar.bz2 llvm-74d2fd8dd847e0ebccef30e2c5907ff09495d518.tar.xz |
Trim some unneeded fields.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42442 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp b/lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp index 33d7910507..369b05c5e9 100644 --- a/lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp +++ b/lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp @@ -116,15 +116,12 @@ void ScheduleDAGList::Schedule() { /// ReleaseSucc - Decrement the NumPredsLeft count of a successor. Add it to /// the PendingQueue if the count reaches zero. void ScheduleDAGList::ReleaseSucc(SUnit *SuccSU, bool isChain) { - if (!isChain) - SuccSU->NumPredsLeft--; - else - SuccSU->NumChainPredsLeft--; + SuccSU->NumPredsLeft--; - assert(SuccSU->NumPredsLeft >= 0 && SuccSU->NumChainPredsLeft >= 0 && + assert(SuccSU->NumPredsLeft >= 0 && "List scheduling internal error"); - if ((SuccSU->NumPredsLeft + SuccSU->NumChainPredsLeft) == 0) { + if (SuccSU->NumPredsLeft == 0) { // Compute how many cycles it will be before this actually becomes // available. This is the max of the start time of all predecessors plus // their latencies. @@ -276,7 +273,7 @@ void ScheduleDAGList::ListScheduleTopDown() { // Verify that all SUnits were scheduled. bool AnyNotSched = false; for (unsigned i = 0, e = SUnits.size(); i != e; ++i) { - if (SUnits[i].NumPredsLeft != 0 || SUnits[i].NumChainPredsLeft != 0) { + if (SUnits[i].NumPredsLeft != 0) { if (!AnyNotSched) cerr << "*** List scheduling failed! ***\n"; SUnits[i].dump(&DAG); |