Optimize updating of badness after applying inline
authorJan Hubicka <jh@suse.cz>
Wed, 20 Nov 2019 11:46:41 +0000 (12:46 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Wed, 20 Nov 2019 11:46:41 +0000 (11:46 +0000)
commit041cb6154cfd31dd249fec8cfcc6833e09e5cd06
tree2fa13516e17fc4666b63160f4d7bb4df367f850c
parent140ee00a961fda084c1b4b3f0e7e489a917858f7
Optimize updating of badness after applying inline

        * ipa-inline.c (wrapper_heuristics_may_apply): Break out from ...
(edge_badness): ... here.
(inline_small_functions): Use monotonicity of badness calculation
to avoid redundant updates.

From-SVN: r278496
gcc/ChangeLog
gcc/ipa-inline.c