[llvm-commits] [llvm] r79966 - /llvm/trunk/lib/Transforms/IPO/Inliner.cpp

Dale Johannesen dalej at apple.com
Mon Aug 24 18:13:58 PDT 2009


Author: johannes
Date: Mon Aug 24 20:13:58 2009
New Revision: 79966

URL: http://llvm.org/viewvc/llvm-project?rev=79966&view=rev
Log:
Allow multiple occurrences of -inline-threshold on
the command line.  This gives llvm-gcc developers
a way to control inlining (documented as "not intended
for end users").


Modified:
    llvm/trunk/lib/Transforms/IPO/Inliner.cpp

Modified: llvm/trunk/lib/Transforms/IPO/Inliner.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/Inliner.cpp?rev=79966&r1=79965&r2=79966&view=diff

==============================================================================
--- llvm/trunk/lib/Transforms/IPO/Inliner.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/Inliner.cpp Mon Aug 24 20:13:58 2009
@@ -33,7 +33,7 @@
 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) 





More information about the llvm-commits mailing list