[libc-commits] [libc] aa12ab4 - [libc] Switch default find_first_character impl to clang_vector
via libc-commits
libc-commits at lists.llvm.org
Fri Nov 20 14:59:13 PST 2026
Author: Aiden Grossman
Date: 2026-11-20T14:59:09-08:00
New Revision: aa12ab4a5bab78ffe3468bd6b41d4f7440f536a4
URL: https://github.com/llvm/llvm-project/commit/aa12ab4a5bab78ffe3468bd6b41d4f7440f536a4
DIFF: https://github.com/llvm/llvm-project/commit/aa12ab4a5bab78ffe3468bd6b41d4f7440f536a4.diff
LOG: [libc] Switch default find_first_character impl to clang_vector
The clang_vector implementation is way faster than the SWAR
implementation and what we want to be using by default at this point.
Override AArch64 and PPC to use the word implementation as otherwise
when compiling with glibc they fall back to the arch_vector
implementation which doesn't exist.
Reviewers: jhuber6, vonosmas
Pull Request: https://github.com/llvm/llvm-project/pull/244470
Added:
libc/config/linux/aarch64/config.json
Modified:
libc/config/linux/config.json
libc/config/linux/power/config.json
Removed:
################################################################################
diff --git a/libc/config/linux/aarch64/config.json b/libc/config/linux/aarch64/config.json
new file mode 100644
index 00000000000000..be2758bce1e9ed
--- /dev/null
+++ b/libc/config/linux/aarch64/config.json
@@ -0,0 +1,7 @@
+{
+ "string": {
+ "LIBC_CONF_FIND_FIRST_CHARACTER_IMPL": {
+ "value": "word"
+ }
+ }
+}
diff --git a/libc/config/linux/config.json b/libc/config/linux/config.json
index bc27cfd1b9e0e5..f32def12c5e131 100644
--- a/libc/config/linux/config.json
+++ b/libc/config/linux/config.json
@@ -14,7 +14,7 @@
"value": "clang_vector"
},
"LIBC_CONF_FIND_FIRST_CHARACTER_IMPL": {
- "value": "word"
+ "value": "clang_vector"
}
}
}
diff --git a/libc/config/linux/power/config.json b/libc/config/linux/power/config.json
index 22e47df31bb6ea..8b642131473110 100644
--- a/libc/config/linux/power/config.json
+++ b/libc/config/linux/power/config.json
@@ -2,6 +2,9 @@
"string": {
"LIBC_CONF_STRING_LENGTH_IMPL": {
"value": "element"
+ },
+ "LIBC_CONF_FIND_FIRST_CHARACTER_IMPL": {
+ "value": "word"
}
}
}
More information about the libc-commits
mailing list