[COMMITTED] x86: Revert "x86: Lower non-temporal copy threshold for Hygon"
Adhemerval Zanella
adhemerval.zanella@linaro.org
Fri May 22 13:04:05 GMT 2026
This version was superseeded by 213ffdfbbae6d4cb4e8dd4a9e3e57c69127620c4.
---
sysdeps/x86/dl-cacheinfo.h | 7 -------
1 file changed, 7 deletions(-)
diff --git a/sysdeps/x86/dl-cacheinfo.h b/sysdeps/x86/dl-cacheinfo.h
index bc5abb8a6ed..d45565b9737 100644
--- a/sysdeps/x86/dl-cacheinfo.h
+++ b/sysdeps/x86/dl-cacheinfo.h
@@ -1244,13 +1244,6 @@ dl_init_cacheinfo (struct cpu_features *cpu_features)
if (!CPU_FEATURES_ARCH_P (cpu_features, Avoid_Non_Temporal_Memset))
memset_non_temporal_threshold = non_temporal_threshold;
- /* Hygon benefits from entering the non-temporal copy path earlier.
- Use 3/8 of the shared cache size per thread to reduce cache
- pollution and improve throughput for large copies. Keep the memset
- non-temporal threshold unchanged. */
- if (cpu_features->basic.kind == arch_kind_hygon)
- non_temporal_threshold = shared_per_thread * 3 / 8;
-
tunable_size = TUNABLE_GET (x86_non_temporal_threshold, long int, NULL);
if (tunable_size > minimum_non_temporal_threshold
&& tunable_size <= maximum_non_temporal_threshold)
--
2.43.0
More information about the Libc-alpha
mailing list