[PATCH v2 0/1] sysdeps/x86: prefer EVEX on Hygon by setting Prefer_No_AVX512

Jiamei Xie xiejiamei@hygon.cn
Tue Oct 14 09:21:20 GMT 2025


This patch biases the ifunc selector on Hygon model 0x7 to prefer EVEX
over AVX512, by enabling the Prefer_No_AVX512 flag.

In our tests, AVX-512 variants on Hygon model 0x7 often perform worse
than EVEX, so this change attempts to guide the selector toward the
better-performing path for that specific model.

---
v1: https://patchwork.ozlabs.org/project/glibc/cover/20251013130222.123330-1-xiejiamei@hygon.cn/

Changes in v2:
 * Do both the vendor ID check and the model check
 * Wrap lines not longer than 79 characters.
 * Reword commit msg and comment.

Xie jiamei (1):
  sysdeps/x86: set Prefer_No_AVX512 for Hygon model 0x7

 sysdeps/x86/cpu-features.c | 5 +++++
 1 file changed, 5 insertions(+)

-- 
2.17.1




More information about the Libc-alpha mailing list