summaryrefslogtreecommitdiffstats
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
commit140153f357ae11d7c8e6164158b0d0af7a516aa1 (patch)
tree9fb7b3d045d7d04ac79939fc64d2be1bff16b57f
parentdfe041880dcec042aa738ac768ec9c18c421f1f1 (diff)
downloadbcm5719-llvm-140153f357ae11d7c8e6164158b0d0af7a516aa1.tar.gz
bcm5719-llvm-140153f357ae11d7c8e6164158b0d0af7a516aa1.zip
The graph is more accurate when I don't completely ignore the return value.
llvm-svn: 2952
-rw-r--r--llvm/lib/Analysis/DataStructure/BottomUpClosure.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/DataStructure/BottomUpClosure.cpp b/llvm/lib/Analysis/DataStructure/BottomUpClosure.cpp
index c8e9fc3e33e..ed468e31430 100644
--- a/llvm/lib/Analysis/DataStructure/BottomUpClosure.cpp
+++ b/llvm/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.
//
OpenPOWER on IntegriCloud