[Bug target/93737] inline memmove for insertion into small arrays

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Feb 14 08:00:00 GMT 2020


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

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
On GIMPLE we're more into canonicalization which means we avoid this kind of
expansion and thus at the moment limit it to single load/store cases.  But
in principle we could apply the same costing as we later do during RTL
expansion (note a memcpy/memmove is easier to handle for VN / alias-analysis
than decomposed operation).

Note memmove can be generally expanded inline if you perform all loads
before the first store at the expense of requiring a temporary register
for each load.


More information about the Gcc-bugs mailing list