From 78a502caec5371cf5d107c3a6cf944bac0aaeb7c Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Thu, 14 Nov 2019 13:08:57 +0100 Subject: Add Optimization keyword for param_max_inline_insns_auto param. 2019-11-14 Martin Liska * ipa-cp.c (devirtualization_time_bonus): Use opt_for_fn of a callee to get value of the param. * ipa-inline.c (inline_insns_auto): Use proper opt_for_fn. * opts.c (maybe_default_option): Do not overwrite param value if optimization level does not match. Note that params usually have default value set via Init() keyword. * params.opt: Remove -param=max-inline-insns-auto-O2. * cif-code.def (MAX_INLINE_INSNS_AUTO_O2_LIMIT): Remove. * doc/invoke.texi: Remove documentation of max-inline-insns-auto-O2. 2019-11-14 Martin Liska * c-c++-common/asan/memcmp-1.c: Update expected backtrace. From-SVN: r278218 --- gcc/doc/invoke.texi | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'gcc/doc') diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 69f057e..fe79ca2 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -11283,16 +11283,11 @@ applied. In other cases @option{max-inline-insns-single-O2} is applied. @item max-inline-insns-auto -@item max-inline-insns-auto-O2 When you use @option{-finline-functions} (included in @option{-O3}), a lot of functions that would otherwise not be considered for inlining by the compiler are investigated. To those functions, a different (more restrictive) limit compared to functions declared inline can -be applied. - -For functions compiled with optimization levels -@option{-O3} and @option{-Ofast} parameter @option{max-inline-insns-auto} is -applied. In other cases @option{max-inline-insns-auto-O2} is applied. +be applied (@option{--param max-inline-insns-auto}). @item max-inline-insns-small This is bound applied to calls which are considered relevant with @@ -11313,8 +11308,8 @@ execute function prologue and epilogue @item inline-heuristics-hint-percent @item inline-heuristics-hint-percent-O2 The scale (in percents) applied to @option{inline-insns-single}, -@option{inline-insns-single-O2}, @option{inline-insns-auto}, -@option{inline-insns-auto-O2} when inline heuristics hints that inlining is +@option{inline-insns-single-O2}, @option{inline-insns-auto} +when inline heuristics hints that inlining is very profitable (will enable later optimizations). For functions compiled with optimization levels -- cgit v1.1