diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2025-05-28 14:18:39 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@ucw.cz> | 2025-05-28 14:19:12 +0200 |
commit | a4dc4001999a8b504cde468618af12c9b870589b (patch) | |
tree | 83fd967c74c625ba7f5584052b21a48c7f2f31de /gcc/fortran/iresolve.cc | |
parent | 33ee574a7444b238005d89fdfdf2f21f50b1fc6e (diff) | |
download | gcc-a4dc4001999a8b504cde468618af12c9b870589b.zip gcc-a4dc4001999a8b504cde468618af12c9b870589b.tar.gz gcc-a4dc4001999a8b504cde468618af12c9b870589b.tar.bz2 |
Do not recompute profile when entry block has afdo count of 0
With normal profile feedback checking entry block count to be non-zero is quite
reliable check for presence of non-0 profile in the body since the function
body can only be executed if the entry block was executed. With autofdo this
is not true, since the entry block may just execute too few times to be
recorded. As a consequence we currently drop AFDO profile quite often. This
patch fixes it.
gcc/ChangeLog:
* predict.cc (rebuild_frequencies): look harder for presence
of profile feedback.
Diffstat (limited to 'gcc/fortran/iresolve.cc')
0 files changed, 0 insertions, 0 deletions