aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/LoopSimplify.cpp
diff options
context:
space:
mode:
authorNemanja Ivanovic <nemanja.i.ibm@gmail.com>2019-02-08 19:50:58 +0000
committerNemanja Ivanovic <nemanja.i.ibm@gmail.com>2019-02-08 19:50:58 +0000
commit92a8c36735ec3dc2a9c1604916153293497eaedb (patch)
tree7ec73f2c717413f602c093cf05fa58f51e8dafe9 /llvm/lib/Transforms/Utils/LoopSimplify.cpp
parent67b1b451b5f44e4c069735d55266d5153c6544fc (diff)
downloadllvm-92a8c36735ec3dc2a9c1604916153293497eaedb.zip
llvm-92a8c36735ec3dc2a9c1604916153293497eaedb.tar.gz
llvm-92a8c36735ec3dc2a9c1604916153293497eaedb.tar.bz2
[DAGCombine] Optimize pow(X, 0.75) to sqrt(X) * sqrt(sqrt(X))
The sqrt case is faster and we already do this for the case where the exponent is 0.25. This adds the 0.75 case which is also not sensitive to signed zeros. Patch by Whitney Tsang (Whitney) Differential revision: https://reviews.llvm.org/D57434 llvm-svn: 353557
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopSimplify.cpp')
0 files changed, 0 insertions, 0 deletions