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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rguenth at gcc dot gnu.org

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Having memcpy in the IL is preventing SRA.  There's probably no type
suitable for the single load/store memcpy inlining done by
gimple_fold_builtin_memory_op.

We could try to fold all memcpy to aggregate char[] array assignments,
at least when a decl is involved on either side with the idea to
eventually elide TREE_ADDRESSABLE.  But we need to make sure this
doesn't pessimize RTL expansion or other code dealing with memcpy but
not aggregate array copy.

SRA could handle memcpy and friends transparently iff it were to locally
compute its own idea of TREE_ADDRESSABLE.

Reply via email to