glibc/sysdeps
H.J. Lu 3ec5d83d2a x86-64: Avoid rep movsb with short distance [BZ #27130]
When copying with "rep movsb", if the distance between source and
destination is N*4GB + [1..63] with N >= 0, performance may be very
slow.  This patch updates memmove-vec-unaligned-erms.S for AVX and
AVX512 versions with the distance in RCX:

	cmpl	$63, %ecx
	// Don't use "rep movsb" if ECX <= 63
	jbe	L(Don't use rep movsb")
	Use "rep movsb"

Benchtests data with bench-memcpy, bench-memcpy-large, bench-memcpy-random
and bench-memcpy-walk on Skylake, Ice Lake and Tiger Lake show that its
performance impact is within noise range as "rep movsb" is only used for
data size >= 4KB.
2021-01-04 07:58:57 -08:00
..
aarch64 aarch64: fix stack missing after sp is updated 2021-01-04 15:37:06 +00:00
alpha Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
arc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
arm Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
csky Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
generic Move generic nan-pseudo-number.h to ldbl-96 2021-01-04 14:51:52 +05:30
gnu Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
hppa Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
htl Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
hurd Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
i386 Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
ia64 Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
ieee754 Drop nan-pseudo-number.h usage from tests 2021-01-04 20:49:56 +05:30
m68k Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
mach Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
microblaze Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
mips Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
nios2 Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
nptl Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
posix Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
powerpc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
pthread Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
riscv Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
s390 Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
sh Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
sparc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
unix Update copyright dates not handled by scripts/update-copyrights. 2021-01-02 12:17:34 -08:00
wordsize-32 Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
wordsize-64 Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
x86 Drop nan-pseudo-number.h usage from tests 2021-01-04 20:49:56 +05:30
x86_64 x86-64: Avoid rep movsb with short distance [BZ #27130] 2021-01-04 07:58:57 -08:00