https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82831
--- Comment #9 from Martin Liška <marxin at gcc dot gnu.org> --- (In reply to Eric Botcazou from comment #8) > > Thanks for working this out! The patch looks good to me. > > No, I disagree, the patch only papers over the problem. > > > 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? > > Yes, that's what needs to be investigated and probably fixed. Hi Eric. I'm also not happy about the patch. Can you please help me with the bbro pass. I know you have some skill. Do you think problem is in traces how are traced (more precisely why are the problematic blocks selected as hot)? Or merging of the traces? I know it's problematic to reproduce as it happens in profiled bootstrap, but I would appreciate any help ;)