aboutsummaryrefslogtreecommitdiff
path: root/gcc/params.def
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2019-10-03 17:08:21 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2019-10-03 15:08:21 +0000
commit2925cad2151842daa387950e62d989090e47c91d (patch)
tree56cbd7caf486ca7dff683542ddbc56465b543189 /gcc/params.def
parentebf8247e7b8d944e75ebcb406a992b24425fc712 (diff)
downloadgcc-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/params.def')
-rw-r--r--gcc/params.def10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/params.def b/gcc/params.def
index 80f73b8..4cb48d9 100644
--- a/gcc/params.def
+++ b/gcc/params.def
@@ -102,6 +102,16 @@ DEFPARAM (PARAM_MAX_INLINE_INSNS_SMALL,
"The maximum number of instructions when automatically inlining small functions.",
0, 0, 0)
+DEFPARAM (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
+ "inline-heuristics-hint-percent",
+ "The scale (in percents) applied to inline-insns-single and auto limits when heuristics hints that inlining is very profitable with -O3 and -Ofast.",
+ 1600, 100, 1000000)
+
+DEFPARAM (PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2,
+ "inline-heuristics-hint-percent-O2",
+ "The scale (in percents) applied to inline-insns-single and auto limits when heuristics hints that inlining is very profitable.",
+ 200, 100, 1000000)
+
DEFPARAM (PARAM_MAX_INLINE_INSNS_SIZE,
"max-inline-insns-size",
"The maximum number of instructions when inlining for size.",