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

John Criswell criswell at uiuc.edu
Thu Jul 10 08:35:39 PDT 2008


Author: criswell
Date: Thu Jul 10 10:35:39 2008
New Revision: 53409

URL: http://llvm.org/viewvc/llvm-project?rev=53409&view=rev
Log:
Instead of merging all heap DSNodes, simply make them all type-unknown.
This should help reduce the number of incomplete/unknown nodes.

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

Modified: poolalloc/trunk/lib/PoolAllocate/PASimple.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/PoolAllocate/PASimple.cpp?rev=53409&r1=53408&r2=53409&view=diff

==============================================================================
--- poolalloc/trunk/lib/PoolAllocate/PASimple.cpp (original)
+++ poolalloc/trunk/lib/PoolAllocate/PASimple.cpp Thu Jul 10 10:35:39 2008
@@ -92,8 +92,7 @@
   }
 
   for (unsigned i = 0; i < HeapNodes.size(); ++i)
-    for (unsigned j = i+1; j < HeapNodes.size(); ++j)
-      HeapNodes[i].mergeWith (HeapNodes[j]);
+    HeapNodes[i].getNode()->foldNodeCompletely();
   return;
 }
 





More information about the llvm-commits mailing list