From 198be22cec33455127f151a23a7b68e41de49db9 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 21 Oct 2002 19:47:18 +0000 Subject: - Add "ResolvingCaller" to the CallSite record. This keeps track of which function was finally able to resolve the function call. Adding this allows the TD pass to actually work right! - Temporarily disable dead node pruning. This will be reenabled soon. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4252 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/DataStructure/BottomUpClosure.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/Analysis/DataStructure/BottomUpClosure.cpp') diff --git a/lib/Analysis/DataStructure/BottomUpClosure.cpp b/lib/Analysis/DataStructure/BottomUpClosure.cpp index 53b997f69a..73786c96c5 100644 --- a/lib/Analysis/DataStructure/BottomUpClosure.cpp +++ b/lib/Analysis/DataStructure/BottomUpClosure.cpp @@ -143,7 +143,9 @@ DSGraph &BUDataStructures::calculateGraph(Function &F) { // 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. - CallSites[&FI].push_back(Call); + std::vector &CallSitesForFunc = CallSites[&FI]; + CallSitesForFunc.push_back(Call); + CallSitesForFunc.back().setResolvingCaller(&F); // Clone the callee's graph into the current graph, keeping // track of where scalars in the old graph _used_ to point, -- cgit v1.2.3