diff options
author | Chris Lattner <sabre@nondot.org> | 2010-05-01 01:26:13 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-05-01 01:26:13 +0000 |
commit | c2432b9d441dfbe98863b308a6f9dc65b6adc3d9 (patch) | |
tree | 420e00c46fc04e0bc094fd134635c734af549995 /llvm/lib/Transforms/Utils/InlineFunction.cpp | |
parent | fc8d9ee6c392a3d4badf588ee0415fac23494a4c (diff) | |
download | bcm5719-llvm-c2432b9d441dfbe98863b308a6f9dc65b6adc3d9.tar.gz bcm5719-llvm-c2432b9d441dfbe98863b308a6f9dc65b6adc3d9.zip |
rename InlineInfo.DevirtualizedCalls -> InlinedCalls to
reflect that it includes all inlined calls now, not just
devirtualized ones.
llvm-svn: 102824
Diffstat (limited to 'llvm/lib/Transforms/Utils/InlineFunction.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/InlineFunction.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/Transforms/Utils/InlineFunction.cpp b/llvm/lib/Transforms/Utils/InlineFunction.cpp index c30f51444b4..91390bc7bec 100644 --- a/llvm/lib/Transforms/Utils/InlineFunction.cpp +++ b/llvm/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 |