https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106422
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Someone is not checking can_duplicate_block_p before calling duplicate_block. Most likely exposed by r13-1753-g26cea5f108e0fa which rejects blocks which have a return twice function at the end.