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

John Criswell criswell at uiuc.edu
Wed Dec 22 08:51:53 PST 2010


Author: criswell
Date: Wed Dec 22 10:51:52 2010
New Revision: 122411

URL: http://llvm.org/viewvc/llvm-project?rev=122411&view=rev
Log:
Do not add DSNodes to the local DSGraphs for newly added pools.  This somehow
causes memory exhaustion.

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

Modified: poolalloc/trunk/lib/PoolAllocate/PoolAllocate.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/PoolAllocate/PoolAllocate.cpp?rev=122411&r1=122410&r2=122411&view=diff
==============================================================================
--- poolalloc/trunk/lib/PoolAllocate/PoolAllocate.cpp (original)
+++ poolalloc/trunk/lib/PoolAllocate/PoolAllocate.cpp Wed Dec 22 10:51:52 2010
@@ -1155,9 +1155,18 @@
       if (!IsMain) {
         PoolDesc = new AllocaInst(PoolDescType, 0, "PD", InsertPoint);
 
+#if 0
+        //
         // Create a node in DSG to represent the new alloca.
+        //
+        // Note:
+        //  Disable this for now.  Other passes don't look up DSNodes for pool
+        //  handles, and doing this seems to blow up memory consumption.  So,
+        //  for now, don't do this.
+        //
         DSNode *NewNode = DSG->addObjectToGraph(PoolDesc);
         NewNode->setModifiedMarker()->setReadMarker();  // This is M/R
+#endif
       } else {
         PoolDesc = CreateGlobalPool(Pool.PoolSize, Pool.PoolAlignment,
                                     "PoolForMain", InsertPoint);





More information about the llvm-commits mailing list