]> granicus.if.org Git - clang/commitdiff
Tweak inliner thresholds to match llvm-gcc, see r95321.
authorDaniel Dunbar <daniel@zuster.org>
Fri, 5 Feb 2010 07:32:37 +0000 (07:32 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Fri, 5 Feb 2010 07:32:37 +0000 (07:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95379 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Frontend/Backend.cpp

index 1045f241bcdf1a0587b9b764100b50c4134a216c..f5291a9525e716305fc92e2bc313af0487ab63b4 100644 (file)
@@ -343,11 +343,11 @@ void BackendConsumer::CreatePasses() {
     // 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;
   }