cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT, [...]): New.
authorJan Hubicka <hubicka@gcc.gnu.org>
Wed, 2 Oct 2019 16:02:16 +0000 (16:02 +0000)
committerJan Hubicka <hubicka@gcc.gnu.org>
Wed, 2 Oct 2019 16:02:16 +0000 (16:02 +0000)
* cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
* ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
(can_inline_edge_by_limits_p): Use it.
(big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
(want_inline_small_function_p): Use O2 bounds.
(edge_badness): LIkewise.
* opts.c (default_options): Add OPT_finline_functions.
* params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
New parameters.

* g++.dg/tree-ssa/pr53844.C: Add -fno-inline-functions --param
max-inline-insns-single-O2=200.
* gcc.c-torture/execute/builtins/builtins.exp: Add
-fno-inline-functions to additional_flags.
* gcc.dg/ipa/inline-7.c: Add -fno-inline-functions.
* gcc.dg/optimize-bswapsi-5.c: Add -fno-inline-functions.
* gcc.dg/tree-ssa/ssa-thread-12.c: Add --param
early-inlining-insns-O2=14 -fno-inline-functions; revert previous
change.
* gcc.dg/winline-3.c: Use --param max-inline-insns-single-O2=1
--param inline-min-speedup-O2=100
instead of --param max-inline-insns-single=1 --param
inline-min-speedup=100

* invoke.texi (-finline-functions): Update documentation.
(max-inline-insns-single-O2, max-inline-insns-auto-O2,
inline-min-speedup-O2): Document.
(early-inlining-insns-O2): Simplify docs.

From-SVN: r276470

gcc/ChangeLog
gcc/testsuite/ChangeLog

index 4f7edd2..5f74d88 100644 (file)
@@ -1,3 +1,21 @@
+2019-10-02  Jan Hubicka  <hubicka@ucw.cz>
+
+       * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
+       MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
+       * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
+       (can_inline_edge_by_limits_p): Use it.
+       (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
+       (want_inline_small_function_p): Use O2 bounds.
+       (edge_badness): LIkewise.
+       * opts.c (default_options): Add OPT_finline_functions.
+       * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
+       PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
+       New parameters.
+       * doc/invoke.texi (-finline-functions): Update documentation.
+       (max-inline-insns-single-O2, max-inline-insns-auto-O2,
+       inline-min-speedup-O2): Document.
+       (early-inlining-insns-O2): Simplify docs.
+
 2019-10-02  Alexander Monakov  <amonakov@ispras.ru>
 
        PR rtl-optimization/87047
index d6cd8ca..d455ce6 100644 (file)
@@ -1,3 +1,19 @@
+2019-10-02  Jan Hubicka  <hubicka@ucw.cz>
+
+       * g++.dg/tree-ssa/pr53844.C: Add -fno-inline-functions --param
+       max-inline-insns-single-O2=200.
+       * gcc.c-torture/execute/builtins/builtins.exp: Add
+       -fno-inline-functions to additional_flags.
+       * gcc.dg/ipa/inline-7.c: Add -fno-inline-functions.
+       * gcc.dg/optimize-bswapsi-5.c: Add -fno-inline-functions.
+       * gcc.dg/tree-ssa/ssa-thread-12.c: Add --param
+       early-inlining-insns-O2=14 -fno-inline-functions; revert previous
+       change.
+       * gcc.dg/winline-3.c: Use --param max-inline-insns-single-O2=1
+       --param inline-min-speedup-O2=100
+       instead of --param max-inline-insns-single=1 --param
+       inline-min-speedup=100
+
 2019-10-02  Alexander Monakov  <amonakov@ispras.ru>
 
        PR rtl-optimization/87047