From: Jan Hubicka Date: Thu, 2 Oct 2025 13:25:08 +0000 (+0200) Subject: Fix handling of uninitialized counts in merge_blocks X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=14010053dac93f64e34b4b71804bec7ec984b595;p=thirdparty%2Fgcc.git Fix handling of uninitialized counts in merge_blocks gcc/ChangeLog: * cfghooks.cc (merge_blocks): Fix typo in the previous change. Co-authored-by: H.J. Lu --- diff --git a/gcc/cfghooks.cc b/gcc/cfghooks.cc index 8b3346898aa..25bc5d4b273 100644 --- a/gcc/cfghooks.cc +++ b/gcc/cfghooks.cc @@ -819,7 +819,7 @@ merge_blocks (basic_block a, basic_block b) /* Pick the more reliable count. If both qualities agrees, pick the larger one since turning mistakely hot code to cold is more harmful. */ - if (a->count.initialized_p ()) + if (!a->count.initialized_p ()) a->count = b->count; else if (a->count.quality () < b->count.quality ()) a->count = b->count;