[PATCH] D65979: [InstCombine] Simplify pow() into ldexp()

Evandro Menezes via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 8 15:11:41 PDT 2019


evandro created this revision.
evandro added reviewers: spatel, efriedma, xbolva00.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.
evandro added a parent revision: D65976: [Transforms] Add a emitBinaryFloatFnCall() version that fetches the function name from TLI.

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


Repository:
  rL LLVM

https://reviews.llvm.org/D65979

Files:
  llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
  llvm/test/Transforms/InstCombine/pow_fp_int.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D65979.214244.patch
Type: text/x-patch
Size: 8411 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190808/8f4fe829/attachment.bin>


More information about the llvm-commits mailing list