Hi, > On 26 Aug 2026, at 4:29 pm, [email protected] wrote: > > + if (flag_branch_probabilities > + && profile_status_for_fn (cfun) == PROFILE_READ) > + FOR_EACH_BB_FN (bb, cfun) > + if (bb->count.ipa ().nonzero_p ()) > + guess_unmeasured_edge_probabilities (bb); > +
IMO, Since we want to do it only for computed goto, we should check computed_goto_p (). We don't want to do it for all nonzero. Thanks, Kugan
