https://gcc.gnu.org/bugzilla/show_bug.cgi?id=14295
--- Comment #13 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Created attachment 60556 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60556&action=edit Patch which adds the simplified copy prop for agg This fixes the testcase and has been bootstrapped and tested on x86_64 (other targets might have some testcase failures due to SRA no longer needed to do the copy prop). Just like the copy prop for zeroing, this only handles the previous memory setting statement. I have an idea of how to improve this not just for the final copy. I had a patch which handled call arguments but I want to make it more generic.