https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108637
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|UNCONFIRMED |RESOLVED --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- PRE removes the load/stores from/to *f . Basically the compiler is able to remove the use-after-scope usage with -O2 and above.