Allow multiple occurrences of -inline-threshold on
authorDale Johannesen <dalej@apple.com>
Tue, 25 Aug 2009 01:13:58 +0000 (01:13 +0000)
committerDale Johannesen <dalej@apple.com>
Tue, 25 Aug 2009 01:13:58 +0000 (01:13 +0000)
the command line.  This gives llvm-gcc developers
a way to control inlining (documented as "not intended
for end users").

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

lib/Transforms/IPO/Inliner.cpp

index ba0372b5b15129964e24e9aa81f9fc80ac7df2bc..335baa1e9c18136c676b70acf985664986e33dae 100644 (file)
@@ -33,7 +33,7 @@ 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),
+InlineLimit("inline-threshold", cl::Hidden, cl::init(200), cl::ZeroOrMore,
         cl::desc("Control the amount of inlining to perform (default = 200)"));
 
 Inliner::Inliner(void *ID)