[libc-commits] [libc] [libc][math] Improve the performance of sqrtf128. (PR #122578)

Nick Desaulniers via libc-commits libc-commits at lists.llvm.org
Tue Feb 11 11:34:28 PST 2025


================
@@ -500,3 +500,14 @@ add_perf_binary(
   COMPILE_OPTIONS
     -fno-builtin
 )
+
+add_perf_binary(
+  sqrtf128_perf
+  SRCS
+    sqrtf128_perf.cpp
+  DEPENDS
+    .single_input_single_output_diff
+    libc.src.math.sqrtf128
+  COMPILE_OPTIONS
+  -fno-builtin
----------------
nickdesaulniers wrote:

Can you get more specific about which builtins you're trying to avoid? `-fno-builtin` (and `-ffreestanding`) are pretty blunt hammers.  I'd like to wean llvm-libc off the usage of `-ffreestanding` (and `-fno-builtin` for the exact same reason).  So it would be good to avoid adding more uses of these.

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


More information about the libc-commits mailing list