]> granicus.if.org Git - llvm/commit
[InstCombine] Simplify pow(2.0, itofp(y)) to ldexp(1.0, y)
authorEvandro Menezes <e.menezes@samsung.com>
Fri, 16 Aug 2019 15:33:41 +0000 (15:33 +0000)
committerEvandro Menezes <e.menezes@samsung.com>
Fri, 16 Aug 2019 15:33:41 +0000 (15:33 +0000)
commita1e2fd38b595bd636661ac7416961e029c7e1689
tree0875a736c432c54a3426fb80eff3bf6dab14257a
parentda9c5afc197c0f6a14dabc5f6170fe4a215ff426
[InstCombine] Simplify pow(2.0, itofp(y)) to ldexp(1.0, y)

Simplify `pow(2.0, itofp(y))` to `ldexp(1.0, y)`.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369120 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/SimplifyLibCalls.cpp
test/Transforms/InstCombine/pow_fp_int.ll