https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108789
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|c |middle-end --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- The middle-end is not adding a SAVE_EXPR in the const case which causes the duplication which is not optimized back.