https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121210
--- Comment #1 from Jan Hubicka <hubicka at gcc dot gnu.org> --- The problem here is that the funciton is inlined into function with guessed profile while it has AFDO profile. Inline scaling should change "globally 0 auto FDO" to "guessed" but it did not. I guess it is bug in handling AFDO 0s - they are quite annoying. I will try to figure out how this happen, but testcase would be welcome. Honza