mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-16 14:31:59 +00:00
Add method IGNode::getCombinedDegree to count the sum of the degrees
of two nodes, excluding duplicates. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3848 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
57e14bd757
commit
0efb50761d
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user