[llvm-commits] [llvm] r59702 - /llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp
Dan Gohman
gohman at apple.com
Wed Nov 19 19:32:45 PST 2008
Author: djg
Date: Wed Nov 19 21:32:45 2008
New Revision: 59702
URL: http://llvm.org/viewvc/llvm-project?rev=59702&view=rev
Log:
Remove a remnant of list-burr's fast mode.
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp?rev=59702&r1=59701&r2=59702&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp Wed Nov 19 21:32:45 2008
@@ -1185,15 +1185,6 @@
bool operator()(const SUnit* left, const SUnit* right) const;
};
- struct bu_ls_rr_fast_sort : public std::binary_function<SUnit*, SUnit*, bool>{
- RegReductionPriorityQueue<bu_ls_rr_fast_sort> *SPQ;
- bu_ls_rr_fast_sort(RegReductionPriorityQueue<bu_ls_rr_fast_sort> *spq)
- : SPQ(spq) {}
- bu_ls_rr_fast_sort(const bu_ls_rr_fast_sort &RHS) : SPQ(RHS.SPQ) {}
-
- bool operator()(const SUnit* left, const SUnit* right) const;
- };
-
struct td_ls_rr_sort : public std::binary_function<SUnit*, SUnit*, bool> {
RegReductionPriorityQueue<td_ls_rr_sort> *SPQ;
td_ls_rr_sort(RegReductionPriorityQueue<td_ls_rr_sort> *spq) : SPQ(spq) {}
@@ -1454,17 +1445,6 @@
return (left->NodeQueueId > right->NodeQueueId);
}
-bool
-bu_ls_rr_fast_sort::operator()(const SUnit *left, const SUnit *right) const {
- unsigned LPriority = SPQ->getNodePriority(left);
- unsigned RPriority = SPQ->getNodePriority(right);
- if (LPriority != RPriority)
- return LPriority > RPriority;
- assert(left->NodeQueueId && right->NodeQueueId &&
- "NodeQueueId cannot be zero");
- return (left->NodeQueueId > right->NodeQueueId);
-}
-
template<class SF>
bool
RegReductionPriorityQueue<SF>::canClobber(const SUnit *SU, const SUnit *Op) {
More information about the llvm-commits
mailing list