[libc-commits] [libc] [libc][x86] Add Non-temporal code path for large memcpy (PR #187108)
Alexey Samsonov via libc-commits
libc-commits at lists.llvm.org
Wed Mar 18 15:46:05 PDT 2026
================
@@ -36,6 +36,15 @@ LIBC_INLINE_VAR constexpr size_t K_THREE_CACHELINES = 3 * K_ONE_CACHELINE;
LIBC_INLINE_VAR constexpr bool K_USE_SOFTWARE_PREFETCHING =
LLVM_LIBC_IS_DEFINED(LIBC_COPT_MEMCPY_X86_USE_SOFTWARE_PREFETCHING);
+// Whether to use NTA stores and what threshold for switching to NTA
+#ifdef LIBC_COPT_MEMCPY_X86_USE_NTA_STORES
----------------
vonosmas wrote:
FWIW if we anticipate NTA stores to be added permanently (after benchmark+runtime confirm their benefit), I'm OK with keeping this ifdef as-is.
https://github.com/llvm/llvm-project/pull/187108
More information about the libc-commits
mailing list