diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2011-10-21 01:23:41 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2011-10-21 01:23:41 +0000 |
commit | ec0e5475fdb9d7d3a4d8206d84f469bc83be1cf1 (patch) | |
tree | 94150d27c7cc616860195b675a59fa92287112c3 /lib/CodeGen/SelectionDAG | |
parent | ed8db320af68556de5fcfe2cbec688003acc33f5 (diff) | |
download | external_llvm-ec0e5475fdb9d7d3a4d8206d84f469bc83be1cf1.zip external_llvm-ec0e5475fdb9d7d3a4d8206d84f469bc83be1cf1.tar.gz external_llvm-ec0e5475fdb9d7d3a4d8206d84f469bc83be1cf1.tar.bz2 |
Remove a now dead function, fixing -Wunused-function warnings from
Clang.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142631 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG')
-rw-r--r-- | lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp b/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp index 1729910..8ecbf34 100644 --- a/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp +++ b/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp @@ -2752,26 +2752,6 @@ void RegReductionPQBase::AddPseudoTwoAddrDeps() { } } -/// LimitedSumOfUnscheduledPredsOfSuccs - Compute the sum of the unscheduled -/// predecessors of the successors of the SUnit SU. Stop when the provided -/// limit is exceeded. -static unsigned LimitedSumOfUnscheduledPredsOfSuccs(const SUnit *SU, - unsigned Limit) { - unsigned Sum = 0; - for (SUnit::const_succ_iterator I = SU->Succs.begin(), E = SU->Succs.end(); - I != E; ++I) { - const SUnit *SuccSU = I->getSUnit(); - for (SUnit::const_pred_iterator II = SuccSU->Preds.begin(), - EE = SuccSU->Preds.end(); II != EE; ++II) { - SUnit *PredSU = II->getSUnit(); - if (!PredSU->isScheduled) - if (++Sum > Limit) - return Sum; - } - } - return Sum; -} - //===----------------------------------------------------------------------===// // Public Constructor Functions //===----------------------------------------------------------------------===// |