https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122824
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Created attachment 62897 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62897&action=edit Semi-reduced testcase for the missing opt Compile at `-O2 -fno-tree-sra` to notice that fre1 does not optimize the above. If we used s->c directly instead of the taking the address, fre1 does optimize this.
