]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
x86: Avoid GLRO(dl_x86_cpu_features)
authorH.J. Lu <hjl.tools@gmail.com>
Sun, 8 Jun 2025 23:45:57 +0000 (07:45 +0800)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 9 Jun 2025 05:03:13 +0000 (13:03 +0800)
In init_cpu_features, replace GLRO(dl_x86_cpu_features) with
cpu_features to avoid an extra load.

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
Reviewed-by: Florian Weimer <fweimer@redhat.com>
sysdeps/x86/cpu-features.c

index e50f1d6932772ade15fcdc7957b0f72caba0a2d9..b7d150613527a1a7b6f98e7076b1e74d885238ea 100644 (file)
@@ -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))
        {