diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-04-24 18:42:47 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-04-24 18:42:47 +0000 |
commit | 79328661fac885d060a09351867d420c2ff8467a (patch) | |
tree | 544b38d9d19321e34ca18cb13eb71db3bd60f829 /lib/Transforms/Utils/InlineCost.cpp | |
parent | ef89bbb436bfeae2dac47d5f463772a4aed2158a (diff) |
Adjust inline cost computation to be less aggressive.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50222 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/InlineCost.cpp')
-rw-r--r-- | lib/Transforms/Utils/InlineCost.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/Utils/InlineCost.cpp b/lib/Transforms/Utils/InlineCost.cpp index 16f12646bd..c87e4b80f0 100644 --- a/lib/Transforms/Utils/InlineCost.cpp +++ b/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; |