projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd93c7d
)
VERY large functions that are only called from one place are not really
author
Chris Lattner
<sabre@nondot.org>
Sun, 7 Nov 2004 21:46:47 +0000
(21:46 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sun, 7 Nov 2004 21:46:47 +0000
(21:46 +0000)
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
lib/Transforms/IPO/InlineSimple.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/IPO/InlineSimple.cpp
b/lib/Transforms/IPO/InlineSimple.cpp
index 6a43143d87b8657742f893c17081a8e556b6fdac..770f05c162a0875a7044868fdb87a9716aee7c40 100644
(file)
--- 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 -=
30
000;
+ InlineCost -=
5
000;
// Get information about the callee...
FunctionInfo &CalleeFI = CachedFunctionInfo[Callee];