[libc-commits] [llvm] [libc] [libc] Adding a version of memset with software prefetching (PR #70857)
Guillaume Chatelet via libc-commits
libc-commits at lists.llvm.org
Thu Nov 9 07:35:45 PST 2023
================
@@ -21,6 +21,10 @@
"LIBC_CONF_STRING_UNSAFE_WIDE_READ": {
"value": false,
"doc": "Read more than a byte at a time to perform byte-string operations like strlen."
+ },
+ "LIBC_CONF_MEMSET_X86_USE_SOFTWARE_PREFETCHING": {
+ "value": false,
+ "doc": "Use software prefetching in memset to increase performance."
----------------
gchatelet wrote:
Let's make it as precise as possible since it serves as documentation.
Something like "Inserts prefetch for write instructions (PREFETCHW) for memset on x86 to recover performance when hardware prefetcher is disabled."
https://github.com/llvm/llvm-project/pull/70857
More information about the libc-commits
mailing list