https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95699
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 48749 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48749&action=edit gcc11-pr95699.patch Untested patch to improve the minmax optimization.