https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69368
--- Comment #15 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Note the dead code is there since r204391. Perhaps we need goto done; vs. goto done2;, so that for MEM_REF/TARGET_MEM_REF we bypass this check?