[llvm-commits] CVS: llvm/include/llvm/Analysis/DSGraph.h

Chris Lattner lattner at cs.uiuc.edu
Thu Jan 22 10:57:01 PST 2004


Changes in directory llvm/include/llvm/Analysis:

DSGraph.h updated: 1.65 -> 1.66

---
Log message:

Eliminated the CompletedNodes argument to the cloneReachable* methods.  This
map was only used to implement a marginal GlobalsGraph optimization, and it
actually slows the analysis down (due to the overhead of keeping it), so just
eliminate it entirely.


---
Diffs of the changes:  (+2 -5)

Index: llvm/include/llvm/Analysis/DSGraph.h
diff -u llvm/include/llvm/Analysis/DSGraph.h:1.65 llvm/include/llvm/Analysis/DSGraph.h:1.66
--- llvm/include/llvm/Analysis/DSGraph.h:1.65	Thu Jan 22 09:26:52 2004
+++ llvm/include/llvm/Analysis/DSGraph.h	Thu Jan 22 10:56:13 2004
@@ -243,10 +243,8 @@
   };
 
 private:
-  void cloneReachableNodes(const DSNode*  Node,
-                           unsigned BitsToClear,
-                           NodeMapTy& OldNodeMap,
-                           NodeMapTy& CompletedNodeMap);
+  void cloneReachableNodes(const DSNode*  Node, unsigned BitsToClear,
+                           NodeMapTy& OldNodeMap);
 
 public:
   void updateFromGlobalGraph();
@@ -254,7 +252,6 @@
   void cloneReachableSubgraph(const DSGraph& G,
                               const hash_set<const DSNode*>& RootNodes,
                               NodeMapTy& OldNodeMap,
-                              NodeMapTy& CompletedNodeMap,
                               unsigned CloneFlags = 0);
 
 





More information about the llvm-commits mailing list