[llvm-commits] [poolalloc] r75189 - /poolalloc/trunk/lib/DSA/Steensgaard.cpp
Haohui Mai
mai4 at uiuc.edu
Thu Jul 9 16:05:28 PDT 2009
Author: mai4
Date: Thu Jul 9 18:05:27 2009
New Revision: 75189
URL: http://llvm.org/viewvc/llvm-project?rev=75189&view=rev
Log:
Clone the full globals graph in steensgaard DSA.
Modified:
poolalloc/trunk/lib/DSA/Steensgaard.cpp
Modified: poolalloc/trunk/lib/DSA/Steensgaard.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/DSA/Steensgaard.cpp?rev=75189&r1=75188&r2=75189&view=diff
==============================================================================
--- poolalloc/trunk/lib/DSA/Steensgaard.cpp (original)
+++ poolalloc/trunk/lib/DSA/Steensgaard.cpp Thu Jul 9 18:05:27 2009
@@ -56,14 +56,16 @@
bool
SteensgaardDataStructures::runOnModuleInternal(Module &M) {
assert(ResultGraph == 0 && "Result graph already allocated!");
+
+ // Get a copy for the globals graph.
+ DSGraph * GG = DS->getGlobalsGraph();
+ GlobalsGraph = new DSGraph(GG, GG->getGlobalECs());
// Create a new, empty, graph...
ResultGraph = new DSGraph(GlobalECs, getTargetData());
- ResultGraph->spliceFrom(DS->getGlobalsGraph());
-
- // Get a copy for the globals graph.
- GlobalsGraph = new DSGraph(ResultGraph, ResultGraph->getGlobalECs());
ResultGraph->setGlobalsGraph(GlobalsGraph);
+// ResultGraph->spliceFrom(DS->getGlobalsGraph());
+
// Loop over the rest of the module, merging graphs for non-external functions
// into this graph.
More information about the llvm-commits
mailing list