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

Evan Cheng evan.cheng at apple.com
Sat Oct 3 23:13:54 PDT 2009


Author: evancheng
Date: Sun Oct  4 01:13:54 2009
New Revision: 83274

URL: http://llvm.org/viewvc/llvm-project?rev=83274&view=rev
Log:
Allow -inline-threshold override default threshold even if compiling to optimize for size.

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=83274&r1=83273&r2=83274&view=diff

==============================================================================
--- llvm/trunk/lib/Transforms/IPO/Inliner.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/Inliner.cpp Sun Oct  4 01:13:54 2009
@@ -192,6 +192,7 @@
   Function *Fn = CS.getCaller();
   if (Fn && !Fn->isDeclaration() &&
       Fn->hasFnAttr(Attribute::OptimizeForSize) &&
+      InlineLimit.getNumOccurrences() == 0 &&
       InlineThreshold != 50)
     CurrentThreshold = 50;
   





More information about the llvm-commits mailing list