[PATCH] D49040: [SLC] Simplify pow(x, 0.333...) to cbrt(x)
Evandro Menezes via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 11 10:43:17 PDT 2018
evandro updated this revision to Diff 155032.
evandro edited the summary of this revision.
evandro added a reviewer: beanz.
evandro set the repository for this revision to rL LLVM.
evandro added subscribers: jlebar, arsenm.
evandro added a comment.
Refactor all of the code that simplifies `pow(x, 0.5)` to `sqrt()` by folding it into a new function that handles all simplifications to radical operations.
Repository:
rL LLVM
https://reviews.llvm.org/D49040
Files:
llvm/include/llvm/Transforms/Utils/SimplifyLibCalls.h
llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
llvm/test/Transforms/InstCombine/pow-1.ll
llvm/test/Transforms/InstCombine/pow-cbrt.ll
llvm/test/Transforms/InstCombine/pow-sqrt.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49040.155032.patch
Type: text/x-patch
Size: 19076 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180711/7f368c30/attachment.bin>
More information about the llvm-commits
mailing list