From: H.J. Lu Date: Sun, 8 Jun 2025 23:45:57 +0000 (+0800) Subject: x86: Avoid GLRO(dl_x86_cpu_features) X-Git-Tag: glibc-2.42~153 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0a027674a10337cb22ad4e056637616ea1611324;p=thirdparty%2Fglibc.git x86: Avoid GLRO(dl_x86_cpu_features) In init_cpu_features, replace GLRO(dl_x86_cpu_features) with cpu_features to avoid an extra load. Signed-off-by: H.J. Lu Reviewed-by: Florian Weimer --- diff --git a/sysdeps/x86/cpu-features.c b/sysdeps/x86/cpu-features.c index e50f1d6932..b7d1506135 100644 --- a/sysdeps/x86/cpu-features.c +++ b/sysdeps/x86/cpu-features.c @@ -1256,7 +1256,7 @@ no_cpuid: #endif if (MINIMUM_X86_ISA_LEVEL >= AVX_X86_ISA_LEVEL - || (GLRO(dl_x86_cpu_features).xsave_state_size != 0)) + || cpu_features->xsave_state_size != 0) { if (CPU_FEATURE_USABLE_P (cpu_features, XSAVEC)) {