Eliminate the call to removeTriviallyDeadNodes from updateFromGlobals graph,
authorChris Lattner <sabre@nondot.org>
Wed, 28 Jan 2004 03:24:41 +0000 (03:24 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 28 Jan 2004 03:24:41 +0000 (03:24 +0000)
moving it to the start of removeDeadNodes.  This speeds up DSA by 2s on perlbmk
from 41s

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10999 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/DataStructure/DataStructure.cpp

index 0e7d3e69b9dbf155e1b2fbdf051dd7d95ddd61a2..9f8a4ef4b51801fc05371d7229aadb1a54c8612e 100644 (file)
@@ -1071,9 +1071,6 @@ void DSGraph::updateFromGlobalGraph() {
       if (It != GlobalsGraph->ScalarMap.end())
         RC.merge(getNodeForValue(*I), It->second);
     }
-  
-  // Merging global nodes leaves behind unused nodes: get rid of them now.
-  removeTriviallyDeadNodes();
 }
 
 /// cloneInto - Clone the specified DSGraph into the current graph.  The
@@ -1597,7 +1594,7 @@ void DSGraph::removeDeadNodes(unsigned Flags) {
 
   // Reduce the amount of work we have to do... remove dummy nodes left over by
   // merging...
-  //removeTriviallyDeadNodes();
+  removeTriviallyDeadNodes();
 
   TIME_REGION(X, "removeDeadNodes");