[llvm-commits] CVS: llvm/lib/Transforms/IPO/InlineSimple.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun Nov 7 13:47:00 PST 2004
Changes in directory llvm/lib/Transforms/IPO:
InlineSimple.cpp updated: 1.65 -> 1.66
---
Log message:
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.
---
Diffs of the changes: (+1 -1)
Index: llvm/lib/Transforms/IPO/InlineSimple.cpp
diff -u llvm/lib/Transforms/IPO/InlineSimple.cpp:1.65 llvm/lib/Transforms/IPO/InlineSimple.cpp:1.66
--- llvm/lib/Transforms/IPO/InlineSimple.cpp:1.65 Sun Sep 19 23:43:34 2004
+++ llvm/lib/Transforms/IPO/InlineSimple.cpp Sun Nov 7 15:46:47 2004
@@ -193,7 +193,7 @@
// 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];
More information about the llvm-commits
mailing list