aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/DataStructure/BottomUpClosure.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-07-18 01:58:24 +0000
committerChris Lattner <sabre@nondot.org>2002-07-18 01:58:24 +0000
commitd124c38993acedc9a473b249108b2ed349be343f (patch)
treed83a48be9fed62d74c2e75799cb4881a2b3dbcd0 /lib/Analysis/DataStructure/BottomUpClosure.cpp
parent0b5909e6ae3d31c3e6c1379f61d7b038f225a620 (diff)
The graph is more accurate when I don't completely ignore the return value.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2952 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/DataStructure/BottomUpClosure.cpp')
-rw-r--r--lib/Analysis/DataStructure/BottomUpClosure.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Analysis/DataStructure/BottomUpClosure.cpp b/lib/Analysis/DataStructure/BottomUpClosure.cpp
index c8e9fc3e33..ed468e3143 100644
--- a/lib/Analysis/DataStructure/BottomUpClosure.cpp
+++ b/lib/Analysis/DataStructure/BottomUpClosure.cpp
@@ -151,6 +151,9 @@ DSGraph &BUDataStructures::calculateGraph(Function &F) {
ResolveArguments(Call, FI, OldValMap);
+ if (Call[0]) // Handle the return value if present
+ RetVal->mergeWith(Call[0]);
+
// Merge global value nodes in the inlined graph with the global
// value nodes in the current graph if there are duplicates.
//