[llvm-commits] [llvm] r118118 - /llvm/trunk/tools/opt/opt.cpp
Jakob Stoklund Olesen
stoklund at 2pi.dk
Tue Nov 2 16:40:29 PDT 2010
Author: stoklund
Date: Tue Nov 2 18:40:28 2010
New Revision: 118118
URL: http://llvm.org/viewvc/llvm-project?rev=118118&view=rev
Log:
Tweak the opt -O2 / opt -O3 inliner thresholds to be the same as llvm-gcc and
clang are using.
Modified:
llvm/trunk/tools/opt/opt.cpp
Modified: llvm/trunk/tools/opt/opt.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/opt/opt.cpp?rev=118118&r1=118117&r2=118118&view=diff
==============================================================================
--- llvm/trunk/tools/opt/opt.cpp (original)
+++ llvm/trunk/tools/opt/opt.cpp Tue Nov 2 18:40:28 2010
@@ -355,9 +355,9 @@
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();
More information about the llvm-commits
mailing list