https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124087
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #2) > Note if you manually prop `s0->stp_ulGrant[s2]` into where aa is used. clang > does not optimize it either. > > That is basically what GCC is doing but not undoing it. Looks like before GCC 4.9.0, GCC didn't prop the address into aa. So GCC didn't need to undo it. So laddress only acts on ADDR_EXPR rather than everything.
