https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110841
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |NEW Last reconfirmed| |2023-08-07 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Confirmed. The change in loop ch causes a missing removing a redundant load from happening which causes a missing jump threading which is able to remove the loop and the call to foo.