aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/Utils
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-05-01 01:26:13 +0000
committerChris Lattner <sabre@nondot.org>2010-05-01 01:26:13 +0000
commit0ca2f28458ae9122f413a4092ddcee33a9dd21c6 (patch)
tree465981912f7b0a91582dc7e26dd00ce71d8a1dc6 /lib/Transforms/Utils
parent6da12e6767100d3f874c2e05aae74e4fe24357b1 (diff)
downloadexternal_llvm-0ca2f28458ae9122f413a4092ddcee33a9dd21c6.zip
external_llvm-0ca2f28458ae9122f413a4092ddcee33a9dd21c6.tar.gz
external_llvm-0ca2f28458ae9122f413a4092ddcee33a9dd21c6.tar.bz2
rename InlineInfo.DevirtualizedCalls -> InlinedCalls to
reflect that it includes all inlined calls now, not just devirtualized ones. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102824 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils')
-rw-r--r--lib/Transforms/Utils/InlineFunction.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/Transforms/Utils/InlineFunction.cpp b/lib/Transforms/Utils/InlineFunction.cpp
index c30f514..91390bc 100644
--- a/lib/Transforms/Utils/InlineFunction.cpp
+++ b/lib/Transforms/Utils/InlineFunction.cpp
@@ -201,7 +201,11 @@ static void UpdateCallGraphAfterInlining(CallSite CS,
// add. Check for this case.
Instruction *NewCall = dyn_cast<Instruction>(VMI->second);
if (NewCall == 0) continue;
-
+
+ // Remember that this call site got inlined for the client of
+ // InlineFunction.
+ IFI.InlinedCalls.push_back(NewCall);
+
// It's possible that inlining the callsite will cause it to go from an
// indirect to a direct call by resolving a function pointer. If this
// happens, set the callee of the new call site to a more precise
@@ -212,14 +216,10 @@ static void UpdateCallGraphAfterInlining(CallSite CS,
// Indirect call site resolved to direct call.
CallerNode->addCalledFunction(CallSite::get(NewCall), CG[F]);
- // Remember that this callsite got devirtualized for the client of
- // InlineFunction.
- IFI.DevirtualizedCalls.push_back(NewCall);
continue;
}
CallerNode->addCalledFunction(CallSite::get(NewCall), I->second);
- IFI.DevirtualizedCalls.push_back(NewCall);
}
// Update the call graph by deleting the edge from Callee to Caller. We must