[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
Jeff Cohen
jeffc at jolt-lang.org
Wed Sep 28 19:00:01 PDT 2005
Changes in directory llvm/lib/CodeGen/SelectionDAG:
ScheduleDAG.cpp updated: 1.24 -> 1.25
---
Log message:
Silence VC++ redeclaration warnings.
---
Diffs of the changes: (+6 -4)
ScheduleDAG.cpp | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
Index: llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp:1.24 llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp:1.25
--- llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp:1.24 Tue Sep 27 12:32:45 2005
+++ llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp Wed Sep 28 20:59:49 2005
@@ -548,7 +548,8 @@
unsigned Slot = NotFound;
// Compare against those previously scheduled operands
- for (unsigned j = i + 1; j < N; j++) {
+ unsigned j = i + 1;
+ for (; j < N; j++) {
// Get following instruction
ScheduleInfo *Other = Ordering[j];
@@ -573,7 +574,7 @@
SI->Slot = Slot;
// Insert sort based on slot
- unsigned j = i + 1;
+ j = i + 1;
for (; j < N; j++) {
// Get following instruction
ScheduleInfo *Other = Ordering[j];
@@ -602,7 +603,8 @@
unsigned Slot = NotFound;
// Compare against those previously scheduled operands
- for (unsigned j = i; 0 < j--;) {
+ unsigned j = i;
+ for (; 0 < j--;) {
// Get following instruction
ScheduleInfo *Other = Ordering[j];
@@ -627,7 +629,7 @@
SI->Slot = Slot;
// Insert sort based on slot
- unsigned j = i;
+ j = i;
for (; 0 < j--;) {
// Get following instruction
ScheduleInfo *Other = Ordering[j];
More information about the llvm-commits
mailing list