https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94423
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 48151 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48151&action=edit gcc10-pr94423.patch So, either we can avoid calling replace_uses_by for the lhs SSA_NAMEs used in abnormal PHIs as this untested patch does, or perhaps could teach replace_uses_by to allow replacing such SSA_NAMEs with gimple min invariants. Though, not sure if that would be ok.