https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97077
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed|2020-09-17 00:00:00 |2021-12-10 --- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Maybe we need to realize the induction variable __for_begin is constant memory so the read from it will be optimized away. That might help.