From 4e9083260bd3910b4ed374804f3b8e722b5de54d Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Fri, 5 Feb 2010 07:32:37 +0000 Subject: [PATCH] Tweak inliner thresholds to match llvm-gcc, see r95321. llvm-svn: 95379 --- clang/lib/Frontend/Backend.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/clang/lib/Frontend/Backend.cpp b/clang/lib/Frontend/Backend.cpp index 1045f241bcdf..f5291a9525e7 100644 --- a/clang/lib/Frontend/Backend.cpp +++ b/clang/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; }