https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111336
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Xi Ruoyao from comment #4) > (In reply to Andrew Pinski from comment #3) > > Note -fwrapv or -fno-ivopts causes the issue to disappear. > > Does your patch for PR111331 work for this one too? No because it is unrelated, there was no min or max in the IR either.