]> git.ipfire.org Git - thirdparty/glibc.git/commit
x86: Remove AVX str{n}casecmp
authorNoah Goldstein <goldstein.w.n@gmail.com>
Wed, 23 Mar 2022 21:57:46 +0000 (16:57 -0500)
committerNoah Goldstein <goldstein.w.n@gmail.com>
Fri, 25 Mar 2022 18:16:51 +0000 (13:16 -0500)
commit305769b2a15c2e96f9e1b5195d3c4e0d6f0f4b68
tree8e50dbbcc10a3ce3b4a460b53d8a363c125b03d1
parent84e7c46df4086873eae28a1fb87d2cf5388b1e16
x86: Remove AVX str{n}casecmp

The rational is:

1. SSE42 has nearly identical logic so any benefit is minimal (3.4%
   regression on Tigerlake using SSE42 versus AVX across the
   benchtest suite).
2. AVX2 version covers the majority of targets that previously
   prefered it.
3. The targets where AVX would still be best (SnB and IVB) are
   becoming outdated.

All in all the saving the code size is worth it.

All string/memory tests pass.
Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
sysdeps/x86_64/multiarch/Makefile
sysdeps/x86_64/multiarch/ifunc-impl-list.c
sysdeps/x86_64/multiarch/ifunc-strcasecmp.h
sysdeps/x86_64/multiarch/strcasecmp_l-avx.S [deleted file]
sysdeps/x86_64/multiarch/strcmp-sse42.S
sysdeps/x86_64/multiarch/strncase_l-avx.S [deleted file]