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

Arushi Aggarwal aggarwa4 at illinois.edu
Fri Sep 10 15:28:42 PDT 2010


Author: aggarwa4
Date: Fri Sep 10 17:28:42 2010
New Revision: 113649

URL: http://llvm.org/viewvc/llvm-project?rev=113649&view=rev
Log:
The pool allocation algorithm was missing functions that were not part of any global EC. The function now goes over these functions, and checks if they need pools passed to them.

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=113649&r1=113648&r2=113649&view=diff
==============================================================================
--- poolalloc/trunk/lib/PoolAllocate/PoolAllocate.cpp (original)
+++ poolalloc/trunk/lib/PoolAllocate/PoolAllocate.cpp Fri Sep 10 17:28:42 2010
@@ -743,7 +743,9 @@
   for (Module::iterator I = M.begin(), E = M.end(); I != E; ++I) {
     if (!I->isDeclaration() && Graphs->hasDSGraph(*I)) {
       if (FunctionInfo.find (I) == FunctionInfo.end()) {
-        FunctionInfo.insert(std::make_pair(I, FuncInfo(*I)));
+        std::vector<const Function *> Functions;
+        Functions.push_back(I);
+        FindFunctionPoolArgs (Functions);
       }
     }
   }





More information about the llvm-commits mailing list