https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122597
--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> --- A pass like IPA reference or ICF could replace another variable with its constant initializer if besides initializing it is only read from.
