[llvm-commits] CVS: llvm/include/llvm/CodeGen/IGNode.h
Vikram Adve
vadve at psmith.cs.uiuc.edu
Thu Sep 19 19:56:01 PDT 2002
Changes in directory llvm/include/llvm/CodeGen:
IGNode.h updated: 1.9 -> 1.10
---
Log message:
Add method IGNode::getCombinedDegree to count the sum of the degrees
of two nodes, excluding duplicates.
---
Diffs of the changes:
Index: llvm/include/llvm/CodeGen/IGNode.h
diff -u llvm/include/llvm/CodeGen/IGNode.h:1.9 llvm/include/llvm/CodeGen/IGNode.h:1.10
--- llvm/include/llvm/CodeGen/IGNode.h:1.9 Mon Apr 29 12:41:31 2002
+++ llvm/include/llvm/CodeGen/IGNode.h Thu Sep 19 19:55:04 2002
@@ -72,6 +72,9 @@
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)
More information about the llvm-commits
mailing list