]> git.ipfire.org Git - thirdparty/gcc.git/commit
Handle auto-fdo 0 more carefully
authorJan Hubicka <hubicka@ucw.cz>
Wed, 28 May 2025 12:26:11 +0000 (14:26 +0200)
committerJan Hubicka <hubicka@ucw.cz>
Wed, 28 May 2025 12:26:11 +0000 (14:26 +0200)
commit17f7b6250628c31182fd4f71c9ecdeca9568ffd1
treeb1dc53589735af50708418988c7ba23f9541c27e
parenta4dc4001999a8b504cde468618af12c9b870589b
Handle auto-fdo 0 more carefully

This patch fixes few other places where auto-fdo 0 should be be treated as
actual 0 (i.e. probably never executed).  Overall I think we should end up
combining static profile with auto-fdo profile where auto-fdo has 0 counts,
but that is something that should be benchmarked and first it is neccessary to
get something benchmarkeable out of auto-FDO.

gcc/ChangeLog:

* cgraph.cc (cgraph_edge::maybe_hot_p): For auto-fdo turn 0
to non-zero.
* ipa-cp.cc (cs_interesting_for_ipcp_p): Do not trust
auto-fdo 0.
* profile-count.cc (profile_count::adjust_for_ipa_scaling): Likewise.
(profile_count::from_gcov_type): Fix formating.
gcc/cgraph.cc
gcc/ipa-cp.cc
gcc/profile-count.cc