configure.py: set inline-unit-growth to 300
It has been discovered that the compiler is too conservative when deciding which functions to inline. In particular, the limiting tunable turned out to be inline-unit-growth which limits inlining in large translation units.
This commit is contained in:
@@ -776,6 +776,14 @@ warnings = [w
|
||||
|
||||
warnings = ' '.join(warnings + ['-Wno-error=deprecated-declarations'])
|
||||
|
||||
optimization_flags = [
|
||||
'--param inline-unit-growth=300',
|
||||
]
|
||||
optimization_flags = [o
|
||||
for o in optimization_flags
|
||||
if flag_supported(flag = o, compiler = args.cxx)]
|
||||
modes['release']['opt'] += ' ' + ' '.join(optimization_flags)
|
||||
|
||||
gold_linker_flag = gold_supported(compiler = args.cxx)
|
||||
|
||||
dbgflag = debug_flag(args.cxx) if args.debuginfo else ''
|
||||
|
||||
Reference in New Issue
Block a user