Increase default inlining aggressiveness in partial
authorDale Johannesen <dalej@apple.com>
Sun, 11 Jan 2009 23:11:00 +0000 (23:11 +0000)
committerDale Johannesen <dalej@apple.com>
Sun, 11 Jan 2009 23:11:00 +0000 (23:11 +0000)
compensation for turning off gcc's inliner.  This gets
us closer to the amount of inlining we were getting before.
It is not a win on everything, of course, but seems to
gain overall.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62058 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/IPO/Inliner.cpp

index 639f3a84cb5f21b92f6db2fc983ecdb1fae70e1a..65c0ace60637a187ae9277b5802b40c3f9c17558 100644 (file)
@@ -31,8 +31,8 @@ STATISTIC(NumInlined, "Number of functions inlined");
 STATISTIC(NumDeleted, "Number of functions deleted because all callers found");
 
 static cl::opt<int>
-InlineLimit("inline-threshold", cl::Hidden, cl::init(200),
-        cl::desc("Control the amount of inlining to perform (default = 200)"));
+InlineLimit("inline-threshold", cl::Hidden, cl::init(400),
+        cl::desc("Control the amount of inlining to perform (default = 400)"));
 
 Inliner::Inliner(void *ID) 
   : CallGraphSCCPass(ID), InlineThreshold(InlineLimit) {}