ipa-inline-analysis.c (do_estimate_growth_1): Add support for capping the growth...
authorJan Hubicka <hubicka@ucw.cz>
Sat, 9 Nov 2019 17:52:56 +0000 (18:52 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sat, 9 Nov 2019 17:52:56 +0000 (17:52 +0000)
commit49d9c9d283caf5918add61e5f6b35c9cd437e8b6
tree0db402ab020b3a5690e4253c117311e4c15806b2
parente3bd08dde17aa654c1aecade0807251e082c702c
ipa-inline-analysis.c (do_estimate_growth_1): Add support for capping the growth cumulated.

* ipa-inline-analysis.c (do_estimate_growth_1): Add support for
capping the growth cumulated.
(offline_size): Break out from ...
(estimate_growth): ... here.
(check_callers): Add N, OFFLINE and MIN_SIZE and KNOWN_EDGE
parameters.
(growth_likely_positive): Turn to ...
(growth_positive_p): Re-implement.
* ipa-inline.h (growth_likely_positive): Remove.
(growth_positive_p): Declare.
* ipa-inline.c (want_inline_small_function_p): Use
growth_positive_p.
(want_inline_function_to_all_callers_p): Likewise.

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