[libc-commits] [PATCH] D129275: [libc][math] Added coshf function.

Kirill Okhotnikov via Phabricator via libc-commits libc-commits at lists.llvm.org
Fri Jul 29 03:42:27 PDT 2022


orex added a comment.

Thank you Paul for sharing the results. 
The results I got using the same compiler (llvm 11) as Paul (@zimmermann6):

  CORE_MATH_PERF_MODE=rdtsc PERF_ARGS='' ./perf.sh coshf
  GNU libc version: 2.31
  GNU libc release: stable
  18.534
  13.019
  17.590
  CORE_MATH_PERF_MODE=rdtsc PERF_ARGS='--latency' ./perf.sh coshf
  GNU libc version: 2.31
  GNU libc release: stable
  49.670
  38.334
  50.461

As you can see llvm 12 significantly improve throughput of this version of coshf over version 11. Partially this problem can be explained by this difference. Another source of the difference is Intel vs AMD. We observe such difference with (@lntue).
Paul, can you confirm, that the precision is OK? I think that we can push the changes even though the solution is not the fastest for all platforms/compilers? Tue?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D129275/new/

https://reviews.llvm.org/D129275



More information about the libc-commits mailing list