[Bug tree-optimization/103680] Jump threading and switch corrupts profile
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Dec 9 23:39:55 GMT 2025
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103680
--- Comment #16 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Created attachment 63025
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=63025&action=edit
unconditional tail call with a call afterwards
profile_estimate gets this right away:
```
;; Invalid sum of incoming counts 1073741824 (estimated locally, freq
1.0000), should be 966367642 (estimated locally, freq 0.9000)
```
What is odd we (LLVM does not either) figure out this is just an infinite loop.
More information about the Gcc-bugs
mailing list