]> git.ipfire.org Git - thirdparty/gcc.git/commit
Avoid updating hot bb threshold in call speculation code
authorJan Hubicka <jh@suse.cz>
Sat, 11 Dec 2021 19:45:02 +0000 (20:45 +0100)
committerJan Hubicka <jh@suse.cz>
Sat, 11 Dec 2021 19:45:02 +0000 (20:45 +0100)
commit2f217f7218b621fd7d7fb7ac59b2ddf2e027ed4a
tree1232900151990ceb18aeba3ceade3fe706ebe88e
parentc87ff8758676307d4366d8a6113b04feae1861c7
Avoid updating hot bb threshold in call speculation code

This patch removes apparently forgotten debugging hack (which got in during
the speculative call patchset) which reduces hot bb threshold.  This does not
make sense since it is set and reset randomly as the summaries are processed.
One problem is that we set the BB threshold to make certain BBs hot and hten
unrolling or vectorization may reduce it to some fraction of the count that
makes it cold.  We may want to add some buffer and divide the value by,
say 32, but that shoulid be done independently of speculative calls.

gcc/ChangeLog:

2021-12-11  Jan Hubicka  <hubicka@ucw.cz>

* ipa-profile.c (ipa_profile): Do not update hot bb threshold.
gcc/ipa-profile.c