aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Analysis
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-11-08 21:25:24 +0000
committerChris Lattner <sabre@nondot.org>2002-11-08 21:25:24 +0000
commit1a948a826918b63fd82a759f98f9de0a88a50444 (patch)
tree080723baa4b3253c8550ae1933ff837f63cc8fa8 /lib/Analysis
parentfb39933b75218d1763f1c4d84726aa8bd0dab6db (diff)
downloadexternal_llvm-1a948a826918b63fd82a759f98f9de0a88a50444.zip
external_llvm-1a948a826918b63fd82a759f98f9de0a88a50444.tar.gz
external_llvm-1a948a826918b63fd82a759f98f9de0a88a50444.tar.bz2
Remove gunk used by broken TD pass
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4632 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis')
-rw-r--r--lib/Analysis/DataStructure/BottomUpClosure.cpp16
1 files changed, 4 insertions, 12 deletions
diff --git a/lib/Analysis/DataStructure/BottomUpClosure.cpp b/lib/Analysis/DataStructure/BottomUpClosure.cpp
index ed9336d..b3396da 100644
--- a/lib/Analysis/DataStructure/BottomUpClosure.cpp
+++ b/lib/Analysis/DataStructure/BottomUpClosure.cpp
@@ -23,9 +23,6 @@ using namespace DS;
// our memory... here...
//
void BUDataStructures::releaseMemory() {
- // Delete all call site information
- CallSites.clear();
-
for (map<const Function*, DSGraph*>::iterator I = DSInfo.begin(),
E = DSInfo.end(); I != E; ++I)
delete I->second;
@@ -62,7 +59,10 @@ DSGraph &BUDataStructures::calculateGraph(Function &F) {
#endif
// Start resolving calls...
- std::vector<DSCallSite> &FCs = Graph->getFunctionCalls();
+ std::vector<DSCallSite> &FCs = Graph->getAuxFunctionCalls();
+
+ // Start with a copy of the original call sites...
+ FCs = Graph->getFunctionCalls();
DEBUG(std::cerr << " [BU] Inlining: " << F.getName() << "\n");
@@ -111,14 +111,6 @@ DSGraph &BUDataStructures::calculateGraph(Function &F) {
DEBUG(std::cerr << "\t\t[BU] Got graph for " << FI.getName()
<< " in: " << F.getName() << "\n");
- // Record that the original DSCallSite was a call site of FI.
- // This may or may not have been known when the DSCallSite was
- // originally created.
- std::vector<DSCallSite> &CallSitesForFunc = CallSites[&FI];
- CallSitesForFunc.push_back(Call);
- CallSitesForFunc.back().setResolvingCaller(&F);
- CallSitesForFunc.back().setCallee(0);
-
// Handle self recursion by resolving the arguments and return value
Graph->mergeInGraph(Call, GI, DSGraph::StripAllocaBit);