[PATCH] D41940: [InstCombine] 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 11 02:07:13 PST 2018
Quolyk created this revision.
Quolyk added reviewers: hfinkel, spatel, efriedma.
This patch enables folding following instructions under -ffast-math flag: log10(pow(10.0,x)) -> x, log2(pow(2.0,x)) -> x
https://reviews.llvm.org/D41940
Files:
lib/Analysis/InstructionSimplify.cpp
test/Transforms/InstSimplify/log10-intrinsic.ll
test/Transforms/InstSimplify/log2-intrinsic.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41940.129409.patch
Type: text/x-patch
Size: 4739 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180111/f6deb629/attachment.bin>
More information about the llvm-commits
mailing list