https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102178
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- Maybe related to PR102008, see the comment I made there. Martin, maybe you can try moving late sink to before the last phiopt pass.