https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97856
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Richard Biener from comment #1) > Confirmed. basic-block reordering decides to duplicate the block: Yes there are a few other bugs where we like to duplicate the return block I have seen too.