https://gcc.gnu.org/bugzilla/show_bug.cgi?id=31043
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|other |middle-end
Status|UNCONFIRMED |NEW
Keywords| |missed-optimization
Ever confirmed|0 |1
Severity|normal |enhancement
Last reconfirmed| |2021-08-24
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
No compilers I tried actually do this merging.
-fmerge-all-constants will do it at link time though.