re PR ipa/81360 (ice in estimate_edge_growth, at ipa-inline.h:86)
authorJan Hubicka <hubicka@ucw.cz>
Tue, 30 Jan 2018 13:23:39 +0000 (14:23 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Tue, 30 Jan 2018 13:23:39 +0000 (13:23 +0000)
commit9a4841a370144afaf341b03ec9391e4916ff079d
tree6f333ac1bce377dd0fccdfd18abcef74b64907e9
parent44c945e62c87d9e01156c9cd6da93f69b984be37
re PR ipa/81360 (ice in estimate_edge_growth, at ipa-inline.h:86)

PR ipa/81360
* ipa-inline.c (can_inline_edge_p): Break out late tests to...
(can_inline_edge_by_limits_p): ... here.
(can_early_inline_edge_p, check_callers,
update_caller_keys, update_callee_keys, recursive_inlining,
add_new_edges_to_heap, speculation_useful_p,
inline_small_functions,
inline_small_functions, flatten_function,
inline_to_all_callers_1): Update.

* g++.dg/torture/pr81360.C: New testcase

From-SVN: r257184
gcc/ChangeLog
gcc/ipa-inline.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/pr81360.C [new file with mode: 0644]