https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105091
--- Comment #15 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:b75f996e846d079251f3a6134617f0405c3ed535 commit r12-7932-gb75f996e846d079251f3a6134617f0405c3ed535 Author: Richard Biener <rguent...@suse.de> Date: Thu Mar 31 08:20:43 2022 +0200 rtl-optimization/105091 - wrong DSE with missed TREE_ADDRESSABLE When expanding an aggregate copy into a memcpy call RTL expansion uses mark_addressable to ensure the base object is addressable but that function doesn't handle TARGET_MEM_REF bases. Fixed as follows. 2022-03-31 Richard Biener <rguent...@suse.de> PR rtl-optimization/105091 * gimple-expr.cc (mark_addressable): Handle TARGET_MEM_REF bases.