diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2019-10-03 17:08:21 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2019-10-03 15:08:21 +0000 |
commit | 2925cad2151842daa387950e62d989090e47c91d (patch) | |
tree | 56cbd7caf486ca7dff683542ddbc56465b543189 /gcc/doc | |
parent | ebf8247e7b8d944e75ebcb406a992b24425fc712 (diff) | |
download | gcc-2925cad2151842daa387950e62d989090e47c91d.zip gcc-2925cad2151842daa387950e62d989090e47c91d.tar.gz gcc-2925cad2151842daa387950e62d989090e47c91d.tar.bz2 |
params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT, [...]): New.
* params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
* doc/invoke.texi (inline-heuristics-hint-percent,
inline-heuristics-hint-percent-O2): Document.
* tree-inline.c (inline_insns_single, inline_insns_auto): Add new
hint attribute.
(can_inline_edge_by_limits_p): Use it.
From-SVN: r276516
Diffstat (limited to 'gcc/doc')
-rw-r--r-- | gcc/doc/invoke.texi | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 4861920..ac20e3a 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -11215,6 +11215,18 @@ function prologue and epilogue. Extra time accounted by inliner for function overhead such as time needed to 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 +very profitable (will enable later optimizations). + +For functions compiled with optimization levels +@option{-O3} and @option{-Ofast} parameter +@option{inline-heuristics-hint-percent} is applied. In other cases +@option{inline-heuristics-hint-percent-O2} is applied. + @item uninlined-thunk-insns @item uninlined-thunk-time Same as @option{--param uninlined-function-insns} and |