[llvm-commits] [poolalloc] r119291 - /poolalloc/trunk/lib/DSA/BottomUpClosure.cpp
Arushi Aggarwal
aggarwa4 at illinois.edu
Mon Nov 15 15:58:47 PST 2010
Author: aggarwa4
Date: Mon Nov 15 17:58:47 2010
New Revision: 119291
URL: http://llvm.org/viewvc/llvm-project?rev=119291&view=rev
Log:
Since Local pass does not merge in information from the
global graph to each of the graphs, the information
might be incomplete. Hence, propogate at the beginning
of BU.
Modified:
poolalloc/trunk/lib/DSA/BottomUpClosure.cpp
Modified: poolalloc/trunk/lib/DSA/BottomUpClosure.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/DSA/BottomUpClosure.cpp?rev=119291&r1=119290&r2=119291&view=diff
==============================================================================
--- poolalloc/trunk/lib/DSA/BottomUpClosure.cpp (original)
+++ poolalloc/trunk/lib/DSA/BottomUpClosure.cpp Mon Nov 15 17:58:47 2010
@@ -83,8 +83,10 @@
// for their DSGraphs, and we want to have them if asked.
//
for (Module::iterator F = M.begin(); F != M.end(); ++F) {
- if (!(F->isDeclaration()))
- getOrCreateGraph(F);
+ if (!(F->isDeclaration())){
+ DSGraph *Graph = getOrCreateGraph(F);
+ cloneGlobalsInto(Graph);
+ }
}
//
@@ -803,8 +805,8 @@
for (unsigned x = 0; x < CalledFuncs.size(); ++x) {
const Function *Callee = CalledFuncs[x];
-
// Get the data structure graph for the called function.
+
GI = getDSGraph(*Callee); // Graph to inline
DEBUG(GI->AssertGraphOK(); GI->getGlobalsGraph()->AssertGraphOK());
DEBUG(errs() << " Inlining graph for " << Callee->getName()
More information about the llvm-commits
mailing list