summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-04-24 18:42:47 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-04-24 18:42:47 +0000
commit608eeef5cecc8599fe9bb529f865e18c0a77a967 (patch)
tree7bea690b8d4581079d25a70353ff00007d50e01b
parent3812b7676cfee4f9c4730d425182c4fd201d4946 (diff)
downloadbcm5719-llvm-608eeef5cecc8599fe9bb529f865e18c0a77a967.tar.gz
bcm5719-llvm-608eeef5cecc8599fe9bb529f865e18c0a77a967.zip
Adjust inline cost computation to be less aggressive.
llvm-svn: 50222
-rw-r--r--llvm/lib/Transforms/Utils/InlineCost.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/InlineCost.cpp b/llvm/lib/Transforms/Utils/InlineCost.cpp
index 16f12646bdd..c87e4b80f0f 100644
--- a/llvm/lib/Transforms/Utils/InlineCost.cpp
+++ b/llvm/lib/Transforms/Utils/InlineCost.cpp
@@ -173,7 +173,7 @@ int InlineCostAnalyzer::getInlineCost(CallSite CS,
// make it almost guaranteed to be inlined.
//
if (Callee->hasInternalLinkage() && Callee->hasOneUse())
- InlineCost -= 30000;
+ InlineCost -= 15000;
// If this function uses the coldcc calling convention, prefer not to inline
// it.
@@ -236,7 +236,7 @@ int InlineCostAnalyzer::getInlineCost(CallSite CS,
// Don't inline into something too big, which would make it bigger.
//
- InlineCost += Caller->size()/20;
+ InlineCost += Caller->size()/15;
// Look at the size of the callee. Each instruction counts as 5.
InlineCost += CalleeFI.NumInsts*5;
OpenPOWER on IntegriCloud