aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-06-21 19:18:17 +0000
committerDan Gohman <gohman@apple.com>2008-06-21 19:18:17 +0000
commit94d7a5f8156e62532870fbaf197377b34e52ff2a (patch)
tree1dd752a40251eb875de5187342991e2508e8d6e2 /lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp
parent3627e34486db088661bc7fb6c0dde6a18a543217 (diff)
downloadexternal_llvm-94d7a5f8156e62532870fbaf197377b34e52ff2a.tar.gz
external_llvm-94d7a5f8156e62532870fbaf197377b34e52ff2a.tar.bz2
external_llvm-94d7a5f8156e62532870fbaf197377b34e52ff2a.zip
Remove ScheduleDAG's SUnitMap altogether. Instead, use SDNode's NodeId
field, which is otherwise unused after instruction selection, as an index into the SUnit array. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52583 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp')
-rw-r--r--lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp b/lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp
index 909588cad5..ab6e92db46 100644
--- a/lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp
+++ b/lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp
@@ -94,7 +94,7 @@ void ScheduleDAGList::Schedule() {
// Build scheduling units.
BuildSchedUnits();
- AvailableQueue->initNodes(SUnitMap, SUnits);
+ AvailableQueue->initNodes(SUnits);
ListScheduleTopDown();
@@ -320,8 +320,7 @@ public:
LatencyPriorityQueue() : Queue(latency_sort(this)) {
}
- void initNodes(DenseMap<SDNode*, SUnit*> &sumap,
- std::vector<SUnit> &sunits) {
+ void initNodes(std::vector<SUnit> &sunits) {
SUnits = &sunits;
// Calculate node priorities.
CalculatePriorities();