[llvm-commits] [poolalloc] r120726 - /poolalloc/trunk/lib/DSA/EquivClassGraphs.cpp

Arushi Aggarwal aggarwa4 at illinois.edu
Thu Dec 2 11:07:07 PST 2010


Author: aggarwa4
Date: Thu Dec  2 13:07:07 2010
New Revision: 120726

URL: http://llvm.org/viewvc/llvm-project?rev=120726&view=rev
Log:
We must do formGlobalECs after we build indirect
sets to make sure that the functions, that are being
called from a single call site, get added to the same
EC

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

Modified: poolalloc/trunk/lib/DSA/EquivClassGraphs.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/DSA/EquivClassGraphs.cpp?rev=120726&r1=120725&r2=120726&view=diff
==============================================================================
--- poolalloc/trunk/lib/DSA/EquivClassGraphs.cpp (original)
+++ poolalloc/trunk/lib/DSA/EquivClassGraphs.cpp Thu Dec  2 13:07:07 2010
@@ -52,6 +52,7 @@
 
   //update the EQ class from indirect calls
   buildIndirectFunctionSets();
+  formGlobalECs();
   mergeGraphsByGlobalECs();
   
   //remove all the DSGraph, that still have references
@@ -65,6 +66,7 @@
       i!=e;i++) {
     delete (*i);
   }
+  DEBUG(verifyMerging());
 
   formGlobalECs();
 
@@ -77,7 +79,6 @@
     }
   }*/
   
-  DEBUG(verifyMerging());
   bool result = runOnModuleInternal(M); 
   
   // CBU contains the correct call graph.





More information about the llvm-commits mailing list