summaryrefslogtreecommitdiff
path: root/lib/Transforms/IPO/Inliner.cpp
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/IPO/Inliner.cpp
parent6da12e6767100d3f874c2e05aae74e4fe24357b1 (diff)
downloadllvm-0ca2f28458ae9122f413a4092ddcee33a9dd21c6.tar.gz
llvm-0ca2f28458ae9122f413a4092ddcee33a9dd21c6.tar.bz2
llvm-0ca2f28458ae9122f413a4092ddcee33a9dd21c6.tar.xz
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/IPO/Inliner.cpp')
-rw-r--r--lib/Transforms/IPO/Inliner.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Transforms/IPO/Inliner.cpp b/lib/Transforms/IPO/Inliner.cpp
index 4d4af72757..b785bb0a93 100644
--- a/lib/Transforms/IPO/Inliner.cpp
+++ b/lib/Transforms/IPO/Inliner.cpp
@@ -420,17 +420,17 @@ bool Inliner::runOnSCC(CallGraphSCC &SCC) {
continue;
++NumInlined;
- // If inlining this function devirtualized any call sites, throw them
+ // If inlining this function gave us any new call sites, throw them
// onto our worklist to process. They are useful inline candidates.
- if (!InlineInfo.DevirtualizedCalls.empty()) {
+ if (!InlineInfo.InlinedCalls.empty()) {
// Create a new inline history entry for this, so that we remember
// that these new callsites came about due to inlining Callee.
int NewHistoryID = InlineHistory.size();
InlineHistory.push_back(std::make_pair(Callee, InlineHistoryID));
- for (unsigned i = 0, e = InlineInfo.DevirtualizedCalls.size();
+ for (unsigned i = 0, e = InlineInfo.InlinedCalls.size();
i != e; ++i) {
- Value *Ptr = InlineInfo.DevirtualizedCalls[i];
+ Value *Ptr = InlineInfo.InlinedCalls[i];
CallSites.push_back(std::make_pair(CallSite(Ptr), NewHistoryID));
}
}