[llvm-commits] CVS: llvm/include/llvm/CodeGen/ScheduleDAG.h
Evan Cheng
evan.cheng at apple.com
Wed Jan 25 10:54:36 PST 2006
Changes in directory llvm/include/llvm/CodeGen:
ScheduleDAG.h updated: 1.5 -> 1.6
---
Log message:
No need to keep track of top and bottom nodes in a group since the vector is
already in order. Thanks Jim for pointing it out.
---
Diffs of the changes: (+3 -5)
ScheduleDAG.h | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
Index: llvm/include/llvm/CodeGen/ScheduleDAG.h
diff -u llvm/include/llvm/CodeGen/ScheduleDAG.h:1.5 llvm/include/llvm/CodeGen/ScheduleDAG.h:1.6
--- llvm/include/llvm/CodeGen/ScheduleDAG.h:1.5 Wed Jan 25 03:07:50 2006
+++ llvm/include/llvm/CodeGen/ScheduleDAG.h Wed Jan 25 12:54:24 2006
@@ -52,8 +52,6 @@
class NodeGroup {
private:
NIVector Members; // Group member nodes
- NodeInfo *Top;
- NodeInfo *Bottom;
NodeInfo *Dominator; // Node with highest latency
unsigned Latency; // Total latency of the group
int Pending; // Number of visits pending before
@@ -61,12 +59,12 @@
public:
// Ctor.
- NodeGroup() : Top(NULL), Bottom(NULL), Dominator(NULL), Pending(0) {}
+ NodeGroup() : Dominator(NULL), Pending(0) {}
// Accessors
inline void setDominator(NodeInfo *D) { Dominator = D; }
- inline NodeInfo *getTop() { return Top; }
- inline NodeInfo *getBottom() { return Bottom; }
+ inline NodeInfo *getTop() { return Members[0]; }
+ inline NodeInfo *getBottom() { return Members[Members.size()-1]; }
inline NodeInfo *getDominator() { return Dominator; }
inline void setLatency(unsigned L) { Latency = L; }
inline unsigned getLatency() { return Latency; }
More information about the llvm-commits
mailing list