forked from OSchip/llvm-project
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. llvm-svn: 17588
This commit is contained in:
parent
dd157e31fd
commit
49fa1ecd04
|
@ -193,7 +193,7 @@ int SimpleInliner::getInlineCost(CallSite CS) {
|
|||
// make it almost guaranteed to be inlined.
|
||||
//
|
||||
if (Callee->hasInternalLinkage() && Callee->hasOneUse())
|
||||
InlineCost -= 30000;
|
||||
InlineCost -= 5000;
|
||||
|
||||
// Get information about the callee...
|
||||
FunctionInfo &CalleeFI = CachedFunctionInfo[Callee];
|
||||
|
|
Loading…
Reference in New Issue