Re: [PATCH] x86: handle the tail in rep_movs_alternative() with an overlapping store
From: Linus Torvalds
Date: Thu Mar 20 2025 - 17:17:43 EST
On Thu, 20 Mar 2025 at 12:33, Mateusz Guzik <mjguzik@xxxxxxxxx> wrote:
>
> I have a recollection that handling the tail after rep movsq with an
> overlapping store was suffering a penalty big enough to warrant a
> "normal" copy instead, avoiding the just written to area.
Ahh. Good point. The rep movsq might indeed end up having odd effects
with subsequent aliasing memory operations.
Consider myself convinced.
Linus