]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix typo in afdo_calculate_branch_prob
authorJan Hubicka <hubicka@ucw.cz>
Thu, 5 Jun 2025 16:10:16 +0000 (18:10 +0200)
committerJan Hubicka <hubicka@ucw.cz>
Thu, 5 Jun 2025 16:10:16 +0000 (18:10 +0200)
gcc/ChangeLog:

* auto-profile.cc (afdo_calculate_branch_prob): Fix typo
in previous patch.

gcc/auto-profile.cc

index 91b1e97f5bb4c992450fa4ef21057a638b9c4ceb..8940d1f28253039431b0fc96a8d77703c42b4f6e 100644 (file)
@@ -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 ())