https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94423
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> --- Comment on attachment 48151 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48151 gcc10-pr94423.patch If one replaces a SSA_NAME_OCCURS_IN_ABNORMAL_PHI def with another SSA name one has to set SSA_NAME_OCCURS_IN_ABNORMAL_PHI on it. I suppose lhs is released afterwards?