diff options
author | Chris Lattner <sabre@nondot.org> | 2004-11-07 21:46:47 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-11-07 21:46:47 +0000 |
commit | ae18963a70b45086f351a10641f2ca756063eeaf (patch) | |
tree | d3ba4ecaac382d34e4677973e26155e4a9c554f7 /lib/Transforms/IPO/InlineSimple.cpp | |
parent | fd93c7db80e847eafa762731b3b073d3e9352479 (diff) | |
download | llvm-ae18963a70b45086f351a10641f2ca756063eeaf.tar.gz llvm-ae18963a70b45086f351a10641f2ca756063eeaf.tar.bz2 llvm-ae18963a70b45086f351a10641f2ca756063eeaf.tar.xz |
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
Diffstat (limited to 'lib/Transforms/IPO/InlineSimple.cpp')
-rw-r--r-- | lib/Transforms/IPO/InlineSimple.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/IPO/InlineSimple.cpp b/lib/Transforms/IPO/InlineSimple.cpp index 6a43143d87..770f05c162 100644 --- a/lib/Transforms/IPO/InlineSimple.cpp +++ b/lib/Transforms/IPO/InlineSimple.cpp @@ -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]; |