From: Jakob Stoklund Olesen Date: Tue, 2 Nov 2010 23:40:28 +0000 (+0000) Subject: Tweak the opt -O2 / opt -O3 inliner thresholds to be the same as llvm-gcc and X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e6c6cec82bee4f419645577bffbc1f56d4c90f34;p=oota-llvm.git Tweak the opt -O2 / opt -O3 inliner thresholds to be the same as llvm-gcc and clang are using. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118118 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp index 50f327f8940..b4c96820b5a 100644 --- a/tools/opt/opt.cpp +++ b/tools/opt/opt.cpp @@ -355,9 +355,9 @@ void AddOptimizationPasses(PassManagerBase &MPM, PassManagerBase &FPM, if (DisableInline) { // No inlining pass } else if (OptLevel) { - unsigned Threshold = 200; + unsigned Threshold = 225; if (OptLevel > 2) - Threshold = 250; + Threshold = 275; InliningPass = createFunctionInliningPass(Threshold); } else { InliningPass = createAlwaysInlinerPass();