[llvm-commits] [poolalloc] r123540 - /poolalloc/trunk/lib/PoolAllocate/TransformFunctionBody.cpp

Arushi Aggarwal aggarwa4 at illinois.edu
Sat Jan 15 08:05:16 PST 2011


Author: aggarwa4
Date: Sat Jan 15 10:05:16 2011
New Revision: 123540

URL: http://llvm.org/viewvc/llvm-project?rev=123540&view=rev
Log:
Enable checking of graphs in DEBUG mode.

Modified:
    poolalloc/trunk/lib/PoolAllocate/TransformFunctionBody.cpp

Modified: poolalloc/trunk/lib/PoolAllocate/TransformFunctionBody.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/PoolAllocate/TransformFunctionBody.cpp?rev=123540&r1=123539&r2=123540&view=diff
==============================================================================
--- poolalloc/trunk/lib/PoolAllocate/TransformFunctionBody.cpp (original)
+++ poolalloc/trunk/lib/PoolAllocate/TransformFunctionBody.cpp Sat Jan 15 10:05:16 2011
@@ -996,8 +996,7 @@
 
 #ifndef NDEBUG
     // Verify that all potential callees at call site have the same DS graph.
-#if 0
-    DSCallGraph::callee_iterator E = PAInfo.getCallGraph().callee_end(OrigInst);
+    DSCallGraph::callee_iterator E = Graphs.getCallGraph().callee_end(OrigInst);
     for (; I != E; ++I) {
       const Function * F = *I;
       assert (F);
@@ -1005,7 +1004,6 @@
         assert(CalleeGraph == Graphs.getDSGraph(**I) &&
                "Callees at call site do not have a common graph!");
     }
-#endif
 #endif    
 
     // Find the DS nodes for the arguments that need to be added, if any.





More information about the llvm-commits mailing list