summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/InlineCost.cpp
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
commit5fba36cc1bcc02beaf20b28ecb42e0e3e5cae050 (patch)
treea5e4347a073dc929d6cb501854f44929a9dd5575 /llvm/lib/Analysis/InlineCost.cpp
parent9d227a1d5e972edc50e32686a1ced84f8084bfe4 (diff)
downloadbcm5719-llvm-5fba36cc1bcc02beaf20b28ecb42e0e3e5cae050.tar.gz
bcm5719-llvm-5fba36cc1bcc02beaf20b28ecb42e0e3e5cae050.zip
Permit inlining into huge functions. This heuristic is ancient, and inlining
can sometimes help reduce function size. llvm-svn: 98088
Diffstat (limited to 'llvm/lib/Analysis/InlineCost.cpp')
-rw-r--r--llvm/lib/Analysis/InlineCost.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/llvm/lib/Analysis/InlineCost.cpp b/llvm/lib/Analysis/InlineCost.cpp
index ca50a1721e0..140e7daa6d3 100644
--- a/llvm/lib/Analysis/InlineCost.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud