https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111349
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Created attachment 55874 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55874&action=edit testcase Currently test1_ is only able to optimize to `return a;` during fold. test1 is caught via phiopt (minmax replacement still) and then during ccp1 is simplified down to a.