[llvm-commits] [poolalloc] r124186 - /poolalloc/trunk/lib/DSA/BottomUpClosure.cpp

Arushi Aggarwal aggarwa4 at illinois.edu
Tue Jan 25 05:56:12 PST 2011


Author: aggarwa4
Date: Tue Jan 25 07:56:12 2011
New Revision: 124186

URL: http://llvm.org/viewvc/llvm-project?rev=124186&view=rev
Log:
Make sure we get the graph again, after we 
calculate the graph for callees, as the graph 
might have changed. This can happen in EQBU when
graphs of functions have been merged.

Modified:
    poolalloc/trunk/lib/DSA/BottomUpClosure.cpp

Modified: poolalloc/trunk/lib/DSA/BottomUpClosure.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/DSA/BottomUpClosure.cpp?rev=124186&r1=124185&r2=124186&view=diff
==============================================================================
--- poolalloc/trunk/lib/DSA/BottomUpClosure.cpp (original)
+++ poolalloc/trunk/lib/DSA/BottomUpClosure.cpp Tue Jan 25 07:56:12 2011
@@ -382,9 +382,10 @@
 	  << F->getName() << "\n");
     Stack.pop_back();
     DEBUG(errs() << "  [BU] Calculating graph for: " << F->getName()<< "\n");
-    calculateGraph(Graph);
+    DSGraph* G = getOrCreateGraph(F);
+    calculateGraph(G);
     DEBUG(errs() << "  [BU] Done inlining: " << F->getName() << " ["
-	  << Graph->getGraphSize() << "+" << Graph->getAuxFunctionCalls().size()
+	  << G->getGraphSize() << "+" << G->getAuxFunctionCalls().size()
 	  << "]\n");
 
     if (MaxSCC < 1) MaxSCC = 1;
@@ -392,7 +393,7 @@
     //
     // Should we revisit the graph?  Only do it if there are now new resolvable
     // callees.
-    getAllAuxCallees(Graph, CalleeFunctions);
+    getAllAuxCallees(G, CalleeFunctions);
     if (!CalleeFunctions.empty()) {
       DEBUG(errs() << "Recalculating " << F->getName() << " due to new knowledge\n");
       ValMap.erase(F);





More information about the llvm-commits mailing list