https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124402
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I think this is correct.
maybe_hot has:
if (c.reliable_p ()
|| (c.quality () == AFDO && c.nonzero_p ()))
return maybe_hot_count_p (NULL, c * scale);
I assume this is because you are checking unlikely_executed_edge_p somewhere
which just uses reliable_p for the eh edge?
But autodfo edge is not 100% reliable as it is sampling rather instrumentation
of every edge.