diff options
author | Jan Hubicka <jh@suse.cz> | 2023-07-27 15:57:54 +0200 |
---|---|---|
committer | Jan Hubicka <jh@suse.cz> | 2023-07-27 15:57:54 +0200 |
commit | 499b8079a6419bb8082de062ec30772296c6700c (patch) | |
tree | 56d09a9fc2c639193c954614e5c43f8c4eae95f9 /include | |
parent | d1c072a1c3411a6fe29900750b38210af8451eeb (diff) | |
download | gcc-499b8079a6419bb8082de062ec30772296c6700c.zip gcc-499b8079a6419bb8082de062ec30772296c6700c.tar.gz gcc-499b8079a6419bb8082de062ec30772296c6700c.tar.bz2 |
Fix profile_count::apply_probability
profile_count::apply_probability misses check for uninitialized probability which leads
to completely random results on applying uninitialized probability to initialized scale.
This can make difference when i.e. inlining -fno-guess-branch-probability function
to -fguess-branch-probability one.
gcc/ChangeLog:
* profile-count.h (profile_count::apply_probability): Fix
handling of uninitialized probabilities, optimize scaling
by probability 1.
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions