[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp ScheduleDAGList.cpp ScheduleDAGSimple.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu Mar 9 22:35:03 PST 2006
Changes in directory llvm/lib/CodeGen/SelectionDAG:
ScheduleDAG.cpp updated: 1.73 -> 1.74
ScheduleDAGList.cpp updated: 1.35 -> 1.36
ScheduleDAGSimple.cpp updated: 1.6 -> 1.7
---
Log message:
Push PrepareNodeInfo/IdentifyGroups down the inheritance hierarchy
---
Diffs of the changes: (+10 -4)
ScheduleDAG.cpp | 4 ----
ScheduleDAGList.cpp | 5 +++++
ScheduleDAGSimple.cpp | 5 +++++
3 files changed, 10 insertions(+), 4 deletions(-)
Index: llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp:1.73 llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp:1.74
--- llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp:1.73 Tue Mar 7 22:25:44 2006
+++ llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp Fri Mar 10 00:34:51 2006
@@ -498,10 +498,6 @@
// Number the nodes
NodeCount = std::distance(DAG.allnodes_begin(), DAG.allnodes_end());
- // Set up minimum info for scheduling
- PrepareNodeInfo();
- // Construct node groups for flagged nodes
- IdentifyGroups();
Schedule();
return BB;
Index: llvm/lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp:1.35 llvm/lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp:1.36
--- llvm/lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp:1.35 Thu Mar 9 23:51:05 2006
+++ llvm/lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp Fri Mar 10 00:34:51 2006
@@ -640,6 +640,11 @@
void ScheduleDAGList::Schedule() {
DEBUG(std::cerr << "********** List Scheduling **********\n");
+ // Set up minimum info for scheduling
+ PrepareNodeInfo();
+ // Construct node groups for flagged nodes
+ IdentifyGroups();
+
// Build scheduling units.
BuildSchedUnits();
Index: llvm/lib/CodeGen/SelectionDAG/ScheduleDAGSimple.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/ScheduleDAGSimple.cpp:1.6 llvm/lib/CodeGen/SelectionDAG/ScheduleDAGSimple.cpp:1.7
--- llvm/lib/CodeGen/SelectionDAG/ScheduleDAGSimple.cpp:1.6 Thu Mar 9 01:13:00 2006
+++ llvm/lib/CodeGen/SelectionDAG/ScheduleDAGSimple.cpp Fri Mar 10 00:34:51 2006
@@ -560,6 +560,11 @@
/// Schedule - Order nodes according to selected style.
///
void ScheduleDAGSimple::Schedule() {
+ // Set up minimum info for scheduling
+ PrepareNodeInfo();
+ // Construct node groups for flagged nodes
+ IdentifyGroups();
+
// Test to see if scheduling should occur
bool ShouldSchedule = NodeCount > 3 && Heuristic != noScheduling;
// Don't waste time if is only entry and return
More information about the llvm-commits
mailing list