[InstCombine] Expand the simplification of log()
authorEvandro Menezes <e.menezes@samsung.com>
Mon, 30 Sep 2019 20:52:21 +0000 (20:52 +0000)
committerEvandro Menezes <e.menezes@samsung.com>
Mon, 30 Sep 2019 20:52:21 +0000 (20:52 +0000)
commit110b1138baf4b0736cd65c5fa4b3b697c318a6da
tree8b2ecbba60ce1f8b5f344c81e1b341fb7dd5213d
parent496c0564f1d6343416604d37224e0c84e5cd3644
[InstCombine] Expand the simplification of log()

Expand the simplification of special cases of `log()` to include `log2()`
and `log10()` as well as intrinsics and more types.

Differential revision: https://reviews.llvm.org/D67199

llvm-svn: 373261
llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
llvm/test/Transforms/InstCombine/log-pow.ll