[PATCH] D49306: [SLC] Simplify pow(x, 0.25) to sqrt(sqrt(x))

Evandro Menezes via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 1 08:08:57 PDT 2018


evandro added a comment.

A specialized transcendental function is inherently faster than a generic one.  In the case of `cbrt()` this is measurable in popular benchmarks, like CPU2000 and CPU2006.  I can see the appeal of converging particular cases back to one generic case in the middle end, but IMO it's the opposite way in the run time environment.


https://reviews.llvm.org/D49306





More information about the llvm-commits mailing list