mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-07 11:33:44 +00:00
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
This commit is contained in:
parent
ef89bbb436
commit
79328661fa
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user