https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108000
--- Comment #2 from Eugene Rozenfeld <erozen at microsoft dot com> --- I actually have a fix for this, just wanted to file a simple test case. I initially ran into this failure while reviving autoprofiledbootstrap build. The failure happens while using the profile and the bug is an incorrect count comparison. Here is the patch: https://gcc.gnu.org/pipermail/gcc-patches/2022-November/606935.html I will add this test to the patch before submitting it.