https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97503
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 49409 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49409&action=edit gcc11-pr97503.patch While that is something that can and often is done during ifcvt, I think for various architectures we can do it at the GIMPLE level too, as done in this patch (untested so far).