https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68930
Jan Hubicka <hubicka at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rguenther at suse dot de --- Comment #1 from Jan Hubicka <hubicka at gcc dot gnu.org> --- Actually applying it just after inlining is probably going to miss the transform, too, because there will be extra copy of the whole aggregate. What about making the info about known constant values of aggregates available to GVN? It should be able to do the desired cleanup.