mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
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
This commit is contained in:
parent
930f5efac0
commit
e6c6cec82b
@ -355,9 +355,9 @@ void AddOptimizationPasses(PassManagerBase &MPM, PassManagerBase &FPM,
|
|||||||
if (DisableInline) {
|
if (DisableInline) {
|
||||||
// No inlining pass
|
// No inlining pass
|
||||||
} else if (OptLevel) {
|
} else if (OptLevel) {
|
||||||
unsigned Threshold = 200;
|
unsigned Threshold = 225;
|
||||||
if (OptLevel > 2)
|
if (OptLevel > 2)
|
||||||
Threshold = 250;
|
Threshold = 275;
|
||||||
InliningPass = createFunctionInliningPass(Threshold);
|
InliningPass = createFunctionInliningPass(Threshold);
|
||||||
} else {
|
} else {
|
||||||
InliningPass = createAlwaysInlinerPass();
|
InliningPass = createAlwaysInlinerPass();
|
||||||
|
Loading…
Reference in New Issue
Block a user