summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2010-03-09 22:17:06 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2010-03-09 22:17:06 +0000
commit74a684222d45b4d9eb3986a10c92c9ec67378568 (patch)
treeef440ea93ba1f8de07a6663f8265526cd0cebee5
parentdff4b4c5a7cc894d3b4b6c6e779ea8f47fa50630 (diff)
downloadllvm-74a684222d45b4d9eb3986a10c92c9ec67378568.tar.gz
llvm-74a684222d45b4d9eb3986a10c92c9ec67378568.tar.bz2
llvm-74a684222d45b4d9eb3986a10c92c9ec67378568.tar.xz
Permit inlining into huge functions. This heuristic is ancient, and inlining
can sometimes help reduce function size. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98088 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Analysis/InlineCost.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/Analysis/InlineCost.cpp b/lib/Analysis/InlineCost.cpp
index ca50a1721e..140e7daa6d 100644
--- a/lib/Analysis/InlineCost.cpp
+++ b/lib/Analysis/InlineCost.cpp
@@ -352,11 +352,6 @@ InlineCost InlineCostAnalyzer::getInlineCost(CallSite CS,
// Calls usually take a long time, so they make the inlining gain smaller.
InlineCost += CalleeFI.Metrics.NumCalls * InlineConstants::CallPenalty;
- // Don't inline into something too big, which would make it bigger.
- // "size" here is the number of basic blocks, not instructions.
- //
- InlineCost += Caller->size()/15;
-
// Look at the size of the callee. Each instruction counts as 5.
InlineCost += CalleeFI.Metrics.NumInsts*InlineConstants::InstrCost;