[PATCH] x86: Remove unused VZEROUPPER_SHORT_RETURN macro from memset

Adhemerval Zanella Netto adhemerval.zanella@linaro.org
Wed Jul 1 19:35:17 GMT 2026



On 01/07/26 04:20, RyotaSaito wrote:
> The VZEROUPPER_SHORT_RETURN macro in memset-vec-unaligned-erms.S has had
> no users since commit e59ced238482 ("x86: Optimize
> memset-vec-unaligned-erms.S") removed its last invocation, leaving both
> the VEC_SIZE > 16 definition and the "rep; ret" fallback definition in
> place.  Remove the two now-dead definitions.
> 
> Signed-off-by: RyotaSaito <saito.ryota.23@shizuoka.ac.jp>

LGTM, thanks.

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>

> ---
>  sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S | 5 -----
>  1 file changed, 5 deletions(-)
> 
> diff --git a/sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S b/sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
> index 24261608d3..b36ef27e58 100644
> --- a/sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
> +++ b/sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
> @@ -42,16 +42,11 @@
>  #ifndef VZEROUPPER
>  # if VEC_SIZE > 16
>  #  define VZEROUPPER			vzeroupper
> -#  define VZEROUPPER_SHORT_RETURN	vzeroupper; ret
>  # else
>  #  define VZEROUPPER
>  # endif
>  #endif
>  
> -#ifndef VZEROUPPER_SHORT_RETURN
> -# define VZEROUPPER_SHORT_RETURN	rep; ret
> -#endif
> -
>  #ifndef MOVQ
>  # if VEC_SIZE > 16
>  #  define MOVQ				vmovq



More information about the Libc-alpha mailing list