From d124c38993acedc9a473b249108b2ed349be343f Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 18 Jul 2002 01:58:24 +0000 Subject: [PATCH] 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 --- lib/Analysis/DataStructure/BottomUpClosure.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Analysis/DataStructure/BottomUpClosure.cpp b/lib/Analysis/DataStructure/BottomUpClosure.cpp index c8e9fc3e33e..ed468e31430 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. //