[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sat Dec 17 17:03:58 PST 2005
Changes in directory llvm/lib/CodeGen/SelectionDAG:
ScheduleDAG.cpp updated: 1.47 -> 1.48
---
Log message:
Simplify code
---
Diffs of the changes: (+2 -7)
ScheduleDAG.cpp | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
Index: llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp:1.47 llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp:1.48
--- llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp:1.47 Wed Nov 30 22:51:06 2005
+++ llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp Sat Dec 17 19:03:46 2005
@@ -704,13 +704,8 @@
if (DAG.getEntryNode().Val != DAG.getRoot().Val)
Ordering.push_back(getNI(DAG.getEntryNode().Val));
- // FIXME - Reverse the order
- for (unsigned i = 0, N = Ordering.size(), Half = N >> 1; i < Half; i++) {
- unsigned j = N - i - 1;
- NodeInfo *tmp = Ordering[i];
- Ordering[i] = Ordering[j];
- Ordering[j] = tmp;
- }
+ // Reverse the order
+ std::reverse(Ordering.begin(), Ordering.end());
}
/// IdentifyGroups - Put flagged nodes into groups.
More information about the llvm-commits
mailing list