diff options
-rw-r--r-- | lib/CodeGen/RegAlloc/IGNode.h | 3 | ||||
-rw-r--r-- | lib/Target/SparcV9/RegAlloc/IGNode.h | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/lib/CodeGen/RegAlloc/IGNode.h b/lib/CodeGen/RegAlloc/IGNode.h index bcf850f68b..edb178f5bc 100644 --- a/lib/CodeGen/RegAlloc/IGNode.h +++ b/lib/CodeGen/RegAlloc/IGNode.h @@ -72,6 +72,9 @@ public: inline unsigned getNumOfNeighbors() const { return AdjList.size(); } + // Get the number of unique neighbors if these two nodes are merged + unsigned getCombinedDegree(const IGNode* otherNode) const; + inline bool isOnStack() const { return OnStack; } // remove form IG and pushes on to stack (reduce the degree of neighbors) diff --git a/lib/Target/SparcV9/RegAlloc/IGNode.h b/lib/Target/SparcV9/RegAlloc/IGNode.h index bcf850f68b..edb178f5bc 100644 --- a/lib/Target/SparcV9/RegAlloc/IGNode.h +++ b/lib/Target/SparcV9/RegAlloc/IGNode.h @@ -72,6 +72,9 @@ public: inline unsigned getNumOfNeighbors() const { return AdjList.size(); } + // Get the number of unique neighbors if these two nodes are merged + unsigned getCombinedDegree(const IGNode* otherNode) const; + inline bool isOnStack() const { return OnStack; } // remove form IG and pushes on to stack (reduce the degree of neighbors) |