https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108653

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Created attachment 62366
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62366&action=edit
Patch which does a simple DSE inside forwprop

Now this does not fix SRA directly. It does fix up the IR before hand. 
Note there is white space issues with the patch.

I wonder if we can expose the SRA issue with a slightly different code though;
let me see; maybe with more decls.

Note SRA should most likely ignore `a = a;` statements as they do nothing.

Reply via email to