mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-14 07:31:47 +00:00
VERY large functions that are only called from one place are not really
exciting to inline. Only inline medium or small sized functions with a single call site. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17588 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fd93c7db80
commit
ae18963a70
@ -193,7 +193,7 @@ int SimpleInliner::getInlineCost(CallSite CS) {
|
|||||||
// make it almost guaranteed to be inlined.
|
// make it almost guaranteed to be inlined.
|
||||||
//
|
//
|
||||||
if (Callee->hasInternalLinkage() && Callee->hasOneUse())
|
if (Callee->hasInternalLinkage() && Callee->hasOneUse())
|
||||||
InlineCost -= 30000;
|
InlineCost -= 5000;
|
||||||
|
|
||||||
// Get information about the callee...
|
// Get information about the callee...
|
||||||
FunctionInfo &CalleeFI = CachedFunctionInfo[Callee];
|
FunctionInfo &CalleeFI = CachedFunctionInfo[Callee];
|
||||||
|
Loading…
Reference in New Issue
Block a user