[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
Evan Cheng
evan.cheng at apple.com
Wed Jan 25 01:13:53 PST 2006
Changes in directory llvm/lib/CodeGen/SelectionDAG:
ScheduleDAG.cpp updated: 1.57 -> 1.58
---
Log message:
Keep track of bottom / top element of a set of flagged nodes.
---
Diffs of the changes: (+6 -1)
ScheduleDAG.cpp | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletion(-)
Index: llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp:1.57 llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp:1.58
--- llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp:1.57 Mon Jan 23 01:01:07 2006
+++ llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp Wed Jan 25 03:13:41 2006
@@ -86,7 +86,7 @@
if (Op.getValueType() != MVT::Flag) break;
// Add to node group
NodeGroup::Add(getNI(Op.Val), NI);
- // Let evryone else know
+ // Let everyone else know
HasGroups = true;
}
}
@@ -464,6 +464,7 @@
// Merge the two lists
DGroup->group_insert(DGroup->group_end(),
UGroup->group_begin(), UGroup->group_end());
+ DGroup->Bottom = UGroup->Bottom;
} else if (DGroup) {
// Make user member of definers group
U->Group = DGroup;
@@ -476,6 +477,7 @@
DGroup->addPending(-CountInternalUses(DNI, U));
}
DGroup->group_push_back(U);
+ DGroup->Bottom = U;
} else if (UGroup) {
// Make definer member of users group
D->Group = UGroup;
@@ -488,11 +490,14 @@
UGroup->addPending(-CountInternalUses(D, UNI));
}
UGroup->group_insert(UGroup->group_begin(), D);
+ UGroup->Top = D;
} else {
D->Group = U->Group = DGroup = new NodeGroup();
DGroup->addPending(D->Node->use_size() + U->Node->use_size() -
CountInternalUses(D, U));
DGroup->group_push_back(D);
DGroup->group_push_back(U);
+ DGroup->Top = D;
+ DGroup->Bottom = U;
}
}
More information about the llvm-commits
mailing list