https://gcc.gnu.org/bugzilla/show_bug.cgi?id=40073
--- Comment #15 from Richard Biener <rguenth at gcc dot gnu.org> --- The pattern recognizer could apply some of these tricks. I'd rather not have GIMPLE narrow the operations and putting in MIN/MAX ops to make the code not undefined...