[cfe-commits] r95379 - /cfe/trunk/lib/Frontend/Backend.cpp

Daniel Dunbar daniel at zuster.org
Thu Feb 4 23:32:38 PST 2010


Author: ddunbar
Date: Fri Feb  5 01:32:37 2010
New Revision: 95379

URL: http://llvm.org/viewvc/llvm-project?rev=95379&view=rev
Log:
Tweak inliner thresholds to match llvm-gcc, see r95321.

Modified:
    cfe/trunk/lib/Frontend/Backend.cpp

Modified: cfe/trunk/lib/Frontend/Backend.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/Backend.cpp?rev=95379&r1=95378&r2=95379&view=diff

==============================================================================
--- cfe/trunk/lib/Frontend/Backend.cpp (original)
+++ cfe/trunk/lib/Frontend/Backend.cpp Fri Feb  5 01:32:37 2010
@@ -343,11 +343,11 @@
     // Set the inline threshold following llvm-gcc.
     //
     // FIXME: Derive these constants in a principled fashion.
-    unsigned Threshold = 200;
+    unsigned Threshold = 225;
     if (CodeGenOpts.OptimizeSize)
-      Threshold = 50;
+      Threshold = 75;
     else if (OptLevel > 2)
-      Threshold = 250;
+      Threshold = 275;
     InliningPass = createFunctionInliningPass(Threshold);
     break;
   }





More information about the cfe-commits mailing list