https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83575
--- Comment #5 from Jan Hubicka <hubicka at gcc dot gnu.org> --- Once BB order is finalized we should not move them across partitions. The problem seems to start with loop2_unroll which for some reason introduce blocks of count 0 that looks like a misupdate of profile, this seems to trigger some bug in bb-reorder with profile absent. I will try to take a look.