[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
Tue Jul 31 12:57:06 PDT 2018


evandro added a comment.

In https://reviews.llvm.org/D49306#1182662, @spatel wrote:

> Why is this the right IR canonicalization?


It seems to be interesting on targets that have a good performing instruction to calculate `sqrt()`.  I expanded testing on targets with a slow performing instruction for `sqrt()` and the results were not so promising though.


https://reviews.llvm.org/D49306





More information about the llvm-commits mailing list