aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/DataStructure/TopDownClosure.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-10-17 20:09:52 +0000
committerChris Lattner <sabre@nondot.org>2002-10-17 20:09:52 +0000
commitcf15db34d3c0eecdc78fa958a73891b897cd2b02 (patch)
tree8b35e449e7b9cd3993c67ae0e41c61b0a163a8f1 /lib/Analysis/DataStructure/TopDownClosure.cpp
parent1a33e3175893a1edcb2d255d24f2127c3a14fbf8 (diff)
* Make the DSGraph cloner automatically merge global nodes
* BUClosure doesn't have to worry about global nodes * TDClosure now works with global nodes * Reenable DNE on TD pass, now that globals work right git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4220 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/DataStructure/TopDownClosure.cpp')
-rw-r--r--lib/Analysis/DataStructure/TopDownClosure.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/Analysis/DataStructure/TopDownClosure.cpp b/lib/Analysis/DataStructure/TopDownClosure.cpp
index 8d4b93a294..5312bba198 100644
--- a/lib/Analysis/DataStructure/TopDownClosure.cpp
+++ b/lib/Analysis/DataStructure/TopDownClosure.cpp
@@ -165,13 +165,6 @@ DSGraph &TDDataStructures::calculateGraph(Function &F) {
}
ResolveCallSite(*Graph, CallSite);
-
-#if 0
- // If its not a self-recursive call, merge global nodes in the inlined
- // graph with the corresponding global nodes in the current graph
- if (&caller != &callee)
- MergeGlobalNodes(calleeGraph, OldValMap);
-#endif
}
}
@@ -180,9 +173,7 @@ DSGraph &TDDataStructures::calculateGraph(Function &F) {
Graph->maskIncompleteMarkers();
Graph->markIncompleteNodes(/*markFormals*/ !F.hasInternalLinkage()
/*&& FIXME: NEED TO CHECK IF ALL CALLERS FOUND!*/);
-#if 0
Graph->removeDeadNodes(/*KeepAllGlobals*/ false, /*KeepCalls*/ false);
-#endif
DEBUG(std::cerr << " [TD] Done inlining callers for: " << F.getName() << " ["
<< Graph->getGraphSize() << "+" << Graph->getFunctionCalls().size()