[llvm-commits] [poolalloc] r113567 - /poolalloc/trunk/lib/DSA/CompleteBottomUp.cpp
Arushi Aggarwal
aggarwa4 at illinois.edu
Thu Sep 9 17:39:41 PDT 2010
Author: aggarwa4
Date: Thu Sep 9 19:39:41 2010
New Revision: 113567
URL: http://llvm.org/viewvc/llvm-project?rev=113567&view=rev
Log:
Making sure that DSInfo is initialized with a list of all the functions in the module at the beginning of CBU.
Modified:
poolalloc/trunk/lib/DSA/CompleteBottomUp.cpp
Modified: poolalloc/trunk/lib/DSA/CompleteBottomUp.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/DSA/CompleteBottomUp.cpp?rev=113567&r1=113566&r2=113567&view=diff
==============================================================================
--- poolalloc/trunk/lib/DSA/CompleteBottomUp.cpp (original)
+++ poolalloc/trunk/lib/DSA/CompleteBottomUp.cpp Thu Sep 9 19:39:41 2010
@@ -43,6 +43,17 @@
CompleteBUDataStructures::runOnModule (Module &M) {
init(&getAnalysis<BUDataStructures>(), false, true, false, true);
+
+ //
+ // Make sure we have a DSGraph for all declared functions in the Module.
+ // formGlobalECs assumes that DSInfo is populated with a list of
+ // DSgraphs for all the functions.
+
+ for (Module::iterator F = M.begin(); F != M.end(); ++F) {
+ if (!(F->isDeclaration()))
+ getOrCreateGraph(F);
+ }
+
buildIndirectFunctionSets();
formGlobalECs();
More information about the llvm-commits
mailing list