https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101197
--- Comment #8 from Tamar Christina <tnfchris at gcc dot gnu.org> --- (In reply to Jakub Jelinek from comment #6) > Shouldn't that be a different PR with details? I mean, this PR is that we > should expand shorter memmove inline even if the regions do overlap. Sure, I'm still trying to create a minimal representative example (it's C++ and templated) unless just pointing at the github is enough. To be clear though, just inlining memmove at all will cover most of the distance, it's just that you require less registers.