aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2025-10-02 15:25:08 +0200
committerJan Hubicka <jh@suse.cz>2025-10-02 15:25:41 +0200
commit14010053dac93f64e34b4b71804bec7ec984b595 (patch)
tree330ec68644bfdc9f37202f975ba913eb158f43a6 /gcc
parentc34ccc8ba23aa7cbf5e2d88186abf0c384a675a3 (diff)
downloadgcc-14010053dac93f64e34b4b71804bec7ec984b595.zip
gcc-14010053dac93f64e34b4b71804bec7ec984b595.tar.gz
gcc-14010053dac93f64e34b4b71804bec7ec984b595.tar.bz2
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 <hjl.tools@gmail.com>
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cfghooks.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cfghooks.cc b/gcc/cfghooks.cc
index 8b33468..25bc5d4 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;