aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/DataStructure/TopDownClosure.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-10-17 20:53:12 +0000
committerChris Lattner <sabre@nondot.org>2002-10-17 20:53:12 +0000
commit97e7f083f2b89a008bd426a10d890bad5db416e0 (patch)
tree5848b9aa0a698d22bf6350987d5346cc3c3c9f39 /lib/Analysis/DataStructure/TopDownClosure.cpp
parentcf15db34d3c0eecdc78fa958a73891b897cd2b02 (diff)
Remove more obsolete code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4221 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/DataStructure/TopDownClosure.cpp')
-rw-r--r--lib/Analysis/DataStructure/TopDownClosure.cpp31
1 files changed, 0 insertions, 31 deletions
diff --git a/lib/Analysis/DataStructure/TopDownClosure.cpp b/lib/Analysis/DataStructure/TopDownClosure.cpp
index 5312bba198..30634e72ab 100644
--- a/lib/Analysis/DataStructure/TopDownClosure.cpp
+++ b/lib/Analysis/DataStructure/TopDownClosure.cpp
@@ -42,36 +42,6 @@ bool TDDataStructures::run(Module &M) {
return false;
}
-#if 0
-
-// MergeGlobalNodes - Merge all existing global nodes with globals
-// inlined from the callee or with globals from the GlobalsGraph.
-//
-static void MergeGlobalNodes(DSGraph &Graph,
- map<Value*, DSNodeHandle> &OldValMap) {
- map<Value*, DSNodeHandle> &ValMap = Graph.getValueMap();
- for (map<Value*, DSNodeHandle>::iterator I = ValMap.begin(), E = ValMap.end();
- I != E; ++I)
- if (GlobalValue* GV = dyn_cast<GlobalValue>(I->first)) {
- map<Value*, DSNodeHandle>:: iterator NHI = OldValMap.find(GV);
- if (NHI != OldValMap.end()) // was it inlined from the callee?
- I->second->mergeWith(NHI->second);
- else // get it from the GlobalsGraph
- I->second->mergeWith(Graph.cloneGlobalInto(GV));
- }
-
- // Add unused inlined global nodes into the value map
- for (map<Value*, DSNodeHandle>::iterator I = OldValMap.begin(),
- E = OldValMap.end(); I != E; ++I)
- if (isa<GlobalValue>(I->first)) {
- DSNodeHandle &NH = ValMap[I->first]; // If global is not in ValMap...
- if (NH == 0)
- NH = I->second; // Add the one just inlined.
- }
-}
-
-#endif
-
/// ResolveCallSite - This method is used to link the actual arguments together
/// with the formal arguments for a function call in the top-down closure. This
/// method assumes that the call site arguments have been mapped into nodes
@@ -167,7 +137,6 @@ DSGraph &TDDataStructures::calculateGraph(Function &F) {
ResolveCallSite(*Graph, CallSite);
}
}
-
// Recompute the Incomplete markers and eliminate unreachable nodes.
Graph->maskIncompleteMarkers();