aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-03-01 08:09:51 +0000
committerChris Lattner <sabre@nondot.org>2008-03-01 08:09:51 +0000
commit9774be3b21e4b1b9dfb246c67d595b4979724368 (patch)
treef608674b6ab967c40bcef8288920f5b309d58587
parentfc887458eba5b0e2c9153e007ef97332913c9747 (diff)
downloadexternal_llvm-9774be3b21e4b1b9dfb246c67d595b4979724368.zip
external_llvm-9774be3b21e4b1b9dfb246c67d595b4979724368.tar.gz
external_llvm-9774be3b21e4b1b9dfb246c67d595b4979724368.tar.bz2
allow specified inline threshold to be negative, as the value is
itself sometimes negative. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47786 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Transforms/IPO/Inliner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/IPO/Inliner.cpp b/lib/Transforms/IPO/Inliner.cpp
index 7ad7dc4..acd3604 100644
--- a/lib/Transforms/IPO/Inliner.cpp
+++ b/lib/Transforms/IPO/Inliner.cpp
@@ -31,7 +31,7 @@ STATISTIC(NumInlined, "Number of functions inlined");
STATISTIC(NumDeleted, "Number of functions deleted because all callers found");
namespace {
- cl::opt<unsigned> // FIXME: 200 is VERY conservative
+ cl::opt<int> // FIXME: 200 is VERY conservative
InlineLimit("inline-threshold", cl::Hidden, cl::init(200),
cl::desc("Control the amount of inlining to perform (default = 200)"));
}