https://gcc.gnu.org/g:6fb88ff622ca2d12229870e9b0b3781bb930d2ad
commit r16-1190-g6fb88ff622ca2d12229870e9b0b3781bb930d2ad Author: Jan Hubicka <hubi...@ucw.cz> Date: Thu Jun 5 18:10:16 2025 +0200 Fix typo in afdo_calculate_branch_prob gcc/ChangeLog: * auto-profile.cc (afdo_calculate_branch_prob): Fix typo in previous patch. Diff: --- gcc/auto-profile.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/auto-profile.cc b/gcc/auto-profile.cc index 91b1e97f5bb4..8940d1f28253 100644 --- a/gcc/auto-profile.cc +++ b/gcc/auto-profile.cc @@ -1520,7 +1520,7 @@ afdo_calculate_branch_prob (bb_set *annotated_bb) /* If probability is 1, preserve reliable static prediction (This is, for example the case of single fallthru edge or single fallthru plus unlikely EH edge.) */ - if (AFDO_EINFO (e)->get_count () == total_count () + if (AFDO_EINFO (e)->get_count () == total_count && e->probability == profile_probability::always ()) ; else if (AFDO_EINFO (e)->get_count ().nonzero_p ())