[llvm-commits] [poolalloc] r119466 - /poolalloc/trunk/lib/DSA/CompleteBottomUp.cpp
Arushi Aggarwal
aggarwa4 at illinois.edu
Tue Nov 16 22:09:55 PST 2010
Author: aggarwa4
Date: Wed Nov 17 00:09:55 2010
New Revision: 119466
URL: http://llvm.org/viewvc/llvm-project?rev=119466&view=rev
Log:
Clone information from globals back to each graph.
formGlobalECs might have changed flags in the globals
graph.
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=119466&r1=119465&r2=119466&view=diff
==============================================================================
--- poolalloc/trunk/lib/DSA/CompleteBottomUp.cpp (original)
+++ poolalloc/trunk/lib/DSA/CompleteBottomUp.cpp Wed Nov 17 00:09:55 2010
@@ -68,6 +68,14 @@
}
}
+ for (Module::iterator F = M.begin(); F != M.end(); ++F) {
+ if (!(F->isDeclaration())) {
+ if (DSGraph * Graph = getOrCreateGraph(F)) {
+ cloneGlobalsInto (Graph);
+ }
+ }
+ }
+
//
// Do bottom-up propagation.
//
More information about the llvm-commits
mailing list