Currently afdo_propagate_edge will turn precise 0 to autofdo 0 because it thinks
auto-profile claims some samples has been executed in the given basic block, while
this is only a consequence of < being defined by
0 (predise) < 0 (autofdo)
gcc/ChangeLog:
* auto-profile.cc (afdo_propagate_edge): Fix handling of precize 0
counts.
changed = true;
}
else if (is_bb_annotated (bb, *annotated_bb)
+ /* We do not want to consider 0 (afdo) > 0 (precise) */
+ && total_known_count.nonzero_p ()
&& bb->count < total_known_count)
{
if (dump_file)