Avoid quadratic behaviour of early inliner.
authorJan Hubicka <jh@suse.cz>
Thu, 21 Nov 2019 08:15:47 +0000 (09:15 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Thu, 21 Nov 2019 08:15:47 +0000 (08:15 +0000)
commit49e26500723ff8d18ebec8057d1e686ad91113f9
treeb3376b2e4fda39fd3b42de5e16b74341d785944b
parentd2bcf46cd03bcc3ebdd9102e53022b6fb03202f7
Avoid quadratic behaviour of early inliner.

* ipa-inline.c (want_early_inline_function_p): Do not estimate
edge growth when callee function is very large.
* ipa-inline.h (estimate_min_edge_growth): New.

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