diff options
author | Evan Cheng <evan.cheng@apple.com> | 2006-01-25 18:54:24 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2006-01-25 18:54:24 +0000 |
commit | 46c01cfe9f1c6900ea63df9c79094d0826fd9ecc (patch) | |
tree | 2c9254704aa535b7c4e8b3bbabae20c6a82cb767 /include/llvm/CodeGen/ScheduleDAG.h | |
parent | 0577a22c678bd5e31047e6b8038c6917202271ee (diff) | |
download | llvm-46c01cfe9f1c6900ea63df9c79094d0826fd9ecc.tar.gz llvm-46c01cfe9f1c6900ea63df9c79094d0826fd9ecc.tar.bz2 llvm-46c01cfe9f1c6900ea63df9c79094d0826fd9ecc.tar.xz |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25608 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/ScheduleDAG.h')
-rw-r--r-- | include/llvm/CodeGen/ScheduleDAG.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/include/llvm/CodeGen/ScheduleDAG.h b/include/llvm/CodeGen/ScheduleDAG.h index 09ff2752ed..edfe73fd39 100644 --- a/include/llvm/CodeGen/ScheduleDAG.h +++ b/include/llvm/CodeGen/ScheduleDAG.h @@ -52,8 +52,6 @@ namespace llvm { 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 @@ namespace llvm { 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; } |