[Bug tree-optimization/103680] Jump threading and switch corrupts profile
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Dec 10 02:12:17 GMT 2025
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103680
--- Comment #18 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #16)
> Created attachment 63025 [details]
> 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)
> ```
This shows up in assign_dfs_numbers in dominance.ii.
More information about the Gcc-bugs
mailing list