]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix profile_probability quality of switch
authorJan Hubicka <hubicka@ucw.cz>
Wed, 28 May 2025 10:23:48 +0000 (12:23 +0200)
committerJan Hubicka <hubicka@ucw.cz>
Wed, 28 May 2025 10:23:48 +0000 (12:23 +0200)
commit8058e1f8857d580698c29590273e72c61de2c121
tree82aed3c8ef776d524eb593bfaaceabff5739902f
parentaa1b47aa41af2a6a094035bd446504cf352c4d71
Fix profile_probability quality of switch

This fixes ages old bug I noticed only now where switch cases, in situation
prediction is completely missing, gets all equal probability that should be
GUESSED instead of ADJUSTED.

gcc/ChangeLog:

* predict.cc (set_even_probabilities): Set quality to guessed.
gcc/predict.cc