[PATCH] D41940: [InstSimplify] Missed optimization in math expression: log10(pow(10.0, x)) == x, log2(pow(2.0, x)) == x
Dmitry Venikov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 31 01:25:31 PST 2019
Quolyk added a comment.
In D41940#1378402 <https://reviews.llvm.org/D41940#1378402>, @lebedev.ri wrote:
> LG unless others have more comments (@spatel ?)
> You probably know this already, but there are some other low-hanging fruit here, e.g.
> https://godbolt.org/z/Trdf_e
> https://www.wolframalpha.com/input/?i=log2(x)+%2F+log2(10)+%3D+log10(x)
Thanks, I'll dive into it. Btw, `pow(2.0, x)` --> `exp2(x)` is already implemented, see https://godbolt.org/z/UADcWe.
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D41940/new/
https://reviews.llvm.org/D41940
More information about the llvm-commits
mailing list