diff options
author | Chris Lattner <sabre@nondot.org> | 2002-10-21 19:47:18 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-10-21 19:47:18 +0000 |
commit | 198be22cec33455127f151a23a7b68e41de49db9 (patch) | |
tree | af3a8a2bf5dd55f5570ec9e091c2715444b7ada1 /lib/Analysis/DataStructure/BottomUpClosure.cpp | |
parent | eff0da9d33b0067044638b9e53edf462a96e6eab (diff) |
- 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
Diffstat (limited to 'lib/Analysis/DataStructure/BottomUpClosure.cpp')
-rw-r--r-- | lib/Analysis/DataStructure/BottomUpClosure.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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<DSCallSite> &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, |