summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit46520a25a435f6548e3a19e99ae153108a5037af (patch)
treed41f5c89d88078eb95eb8a2561a751a7428d5cc5 /llvm/lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp
parenta4db3352f9c0c8ff6d25962904f2d57a82734057 (diff)
downloadbcm5719-llvm-46520a25a435f6548e3a19e99ae153108a5037af.tar.gz
bcm5719-llvm-46520a25a435f6548e3a19e99ae153108a5037af.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. llvm-svn: 52583
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp b/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp
index 909588cad54..ab6e92db46e 100644
--- a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp
+++ b/llvm/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();
OpenPOWER on IntegriCloud