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

Arushi Aggarwal aggarwa4 at illinois.edu
Thu Nov 11 14:40:33 PST 2010


Author: aggarwa4
Date: Thu Nov 11 16:40:32 2010
New Revision: 118850

URL: http://llvm.org/viewvc/llvm-project?rev=118850&view=rev
Log:
Making the function verifyCallees to run only in DEBUG case

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=118850&r1=118849&r2=118850&view=diff
==============================================================================
--- poolalloc/trunk/lib/DSA/EquivClassGraphs.cpp (original)
+++ poolalloc/trunk/lib/DSA/EquivClassGraphs.cpp Thu Nov 11 16:40:32 2010
@@ -45,7 +45,8 @@
   //update the EQ class from indirect calls
   buildIndirectFunctionSets();
   mergeGraphsByGlobalECs();
-  verifyMerging();
+
+  DEBUG(verifyMerging());
   bool result = runOnModuleInternal(M);  
   // CBU contains the correct call graph.
   // Restore it, so that subsequent passes and clients can get it.
@@ -53,6 +54,8 @@
   return result;
 }
 
+// Verifies that all the functions in an equivalence calss have been merged. 
+// This is required by to be true by poolallocation.
 void
 EquivBUDataStructures::verifyMerging() {
   





More information about the llvm-commits mailing list