summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/DataStructure/TopDownClosure.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-01-22 16:56:13 +0000
committerChris Lattner <sabre@nondot.org>2004-01-22 16:56:13 +0000
commit80f89ea522b944af25ac149266be17af5d79492c (patch)
tree55950187209e94b432333b99d669d94ddd97bad8 /llvm/lib/Analysis/DataStructure/TopDownClosure.cpp
parent5750d46ccd30299a8035452f77b52474dcdb999c (diff)
downloadbcm5719-llvm-80f89ea522b944af25ac149266be17af5d79492c.tar.gz
bcm5719-llvm-80f89ea522b944af25ac149266be17af5d79492c.zip
Eliminated the CompletedNodes argument to the cloneReachable* methods. This
map was only used to implement a marginal GlobalsGraph optimization, and it actually slows the analysis down (due to the overhead of keeping it), so just eliminate it entirely. llvm-svn: 10955
Diffstat (limited to 'llvm/lib/Analysis/DataStructure/TopDownClosure.cpp')
-rw-r--r--llvm/lib/Analysis/DataStructure/TopDownClosure.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/DataStructure/TopDownClosure.cpp b/llvm/lib/Analysis/DataStructure/TopDownClosure.cpp
index 6912af437b7..10513d6c417 100644
--- a/llvm/lib/Analysis/DataStructure/TopDownClosure.cpp
+++ b/llvm/lib/Analysis/DataStructure/TopDownClosure.cpp
@@ -288,9 +288,8 @@ void TDDataStructures::inlineGraphIntoCallees(DSGraph &Graph) {
<< &FunctionCalls[i] << "\n");
DSGraph::NodeMapTy NodeMapInCallee; // map from nodes to clones in callee
- DSGraph::NodeMapTy CompletedMap; // unused map for nodes not to do
CalleeGraph.cloneReachableSubgraph(Graph, RootNodeSet,
- NodeMapInCallee, CompletedMap,
+ NodeMapInCallee,
DSGraph::StripModRefBits |
DSGraph::KeepAllocaBit);
OpenPOWER on IntegriCloud