https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112844
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- With -Os you ask the code to be small. So, while internally the hint is still present in edge probabilities, -Os is considered more important and certain code changes based on the probabilities aren't done if they are known or expected to result in larger code.