From: Jan Hubicka Date: Thu, 5 Jun 2025 16:10:16 +0000 (+0200) Subject: Fix typo in afdo_calculate_branch_prob X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6fb88ff622ca2d12229870e9b0b3781bb930d2ad;p=thirdparty%2Fgcc.git Fix typo in afdo_calculate_branch_prob gcc/ChangeLog: * auto-profile.cc (afdo_calculate_branch_prob): Fix typo in previous patch. --- diff --git a/gcc/auto-profile.cc b/gcc/auto-profile.cc index 91b1e97f5bb..8940d1f2825 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 ())