[libcxx-commits] [libcxx] [libc++] Optimize std::lexicographical_compare_three_way (PR #230336)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Tue Oct 13 02:19:16 PDT 2026


================
@@ -36,10 +38,14 @@ static TEST_ALIGN_BENCHMARK void BM_lexicographical_compare_three_way(benchmark:
 
 // Type alias to make sure the `*` does not appear in the benchmark name.
 // A `*` would confuse the Python test runner running this google benchmark.
-using IntPtr = int*;
+using IntPtr          = int*;
+using UnsignedCharPtr = unsigned char*;
+using SignedCharPtr   = signed char*;
 
----------------
philnik777 wrote:

We don't care about this anywhere else, so I don't think we should here either. We should also really rename the benchmarks, but that's a separate patch.

https://github.com/llvm/llvm-project/pull/230336


More information about the libcxx-commits mailing list