]> git.ipfire.org Git - thirdparty/gcc.git/commit
Remove max_count computation from ipa-inline
authorJan Hubicka <hubicka@ucw.cz>
Mon, 13 Oct 2025 10:13:51 +0000 (12:13 +0200)
committerJan Hubicka <hubicka@ucw.cz>
Mon, 13 Oct 2025 11:14:33 +0000 (13:14 +0200)
commit7dbb61de21e5576f876c5b8fcde39def7d2b2b13
treefdfc25c00b4c4806777a5e8ace37efbb3cf88b89
parent8adda950933de309048d6a99d805bb674ffdbadb
Remove max_count computation from ipa-inline

Ipa inline computes max_count which used to be applied later to compute badness
before it was converted to sreal.  Now it is only used in couple of places to see
if any IPA profile is presents at all.  This patch replaces this by more specific
flag has_nonzero_ipa_profile.

gcc/ChangeLog:

* ipa-inline.cc (max_count): Remove.
(has_nonzero_ipa_profile): New.
(inline_small_functions): Update.
(dump_inline_stats): Update.
gcc/ipa-inline.cc