[Bug tree-optimization/103680] Jump threading and switch corrupts profile
hubicka at ucw dot cz
gcc-bugzilla@gcc.gnu.org
Fri Dec 12 16:22:32 GMT 2025
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103680
--- Comment #19 from Jan Hubicka <hubicka at ucw dot cz> ---
>
> 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.
There is no really right way to represent profile of infinite loop
unless you drop everything else to 0. So mismatches on the entry BB of
infinite loop are OK..
Honza
More information about the Gcc-bugs
mailing list