]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR ipa/60243 (IPA is slow on large cgraph tree)
authorJan Hubicka <hubicka@ucw.cz>
Fri, 28 Mar 2014 19:50:28 +0000 (20:50 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Fri, 28 Mar 2014 19:50:28 +0000 (19:50 +0000)
commit4cd8957f51341faaacdbc573b1698ede90895bc3
tree2fd5928dd4a0a5449b5d3be2dd387d5f444ae009
parentff76f4e2c026de44df33189825ae3f2b7d582f1a
re PR ipa/60243 (IPA is slow on large cgraph tree)

PR ipa/60243
* ipa-inline.c (want_inline_small_function_p): Short circuit large
functions; reorganize to make cheap checks first.
(inline_small_functions): Do not estimate growth when dumping;
it is expensive.
* ipa-inline.h (inline_summary): Add min_size.
(growth_likely_positive): New function.
* ipa-inline-analysis.c (dump_inline_summary): Add min_size.
(set_cond_stmt_execution_predicate): Cleanup.
(estimate_edge_size_and_time): Compute min_size.
(estimate_calls_size_and_time): Likewise.
(estimate_node_size_and_time): Likewise.
(inline_update_overall_summary): Update min_size.
(do_estimate_edge_time): Likewise.
(do_estimate_edge_size): Update.
(do_estimate_edge_hints): Update.
(growth_likely_positive): New function.

From-SVN: r208916
gcc/ChangeLog
gcc/ipa-inline-analysis.c
gcc/ipa-inline.c
gcc/ipa-inline.h