[Bug tree-optimization/103680] Jump threading and switch corrupts profile
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Dec 10 01:43:07 GMT 2025
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103680
--- Comment #17 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Created attachment 63026
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=63026&action=edit
fnsplit/inlining causes invalid count
Compile this at `-O2 -fno-exceptions` and you get in inline:
```
;; Invalid sum of incoming counts 233216728 (estimated locally, freq 0.2172),
should be 153923040 (estimated locally, freq 0.1434)
```
if we turn off partial inlining (-fno-partial-inlining), it does not show up.
More information about the Gcc-bugs
mailing list