https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82831
--- Comment #6 from Martin Liška <marxin at gcc dot gnu.org> --- (In reply to Jan Hubicka from comment #5) > Thanks for working this out! The patch looks good to me. I wonder how we > ended up with such contradictory block at the first place? Was it introduced > by someone between the last expensive cfg cleanup and bb-reorder? > > Honza Good question. The BB (16 and 17) are marked first as hot in bb-reorder, later then identified by expensive cfg cleanup as cold. Feel free to investigate function body.