From: Daniel Dunbar Date: Fri, 5 Feb 2010 07:32:37 +0000 (+0000) Subject: Tweak inliner thresholds to match llvm-gcc, see r95321. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9da559868fcdd26ac0448a2943cc27af74923eb3;p=clang Tweak inliner thresholds to match llvm-gcc, see r95321. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95379 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Frontend/Backend.cpp b/lib/Frontend/Backend.cpp index 1045f241bc..f5291a9525 100644 --- a/lib/Frontend/Backend.cpp +++ b/lib/Frontend/Backend.cpp @@ -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; }