From 6fb88ff622ca2d12229870e9b0b3781bb930d2ad Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Thu, 5 Jun 2025 18:10:16 +0200 Subject: [PATCH] Fix typo in afdo_calculate_branch_prob gcc/ChangeLog: * auto-profile.cc (afdo_calculate_branch_prob): Fix typo in previous patch. --- 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 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 ()) -- 2.47.2