[PATCH] D49273: [SLC] Refactor the simplifications involving pow() and exp{, 2, 10}()

Evandro Menezes via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 12 16:07:41 PDT 2018


evandro created this revision.
evandro added reviewers: spatel, eli.friedman.
Herald added subscribers: llvm-commits, hiraditya.

Refactor all cases dealing having to do with `exp{,2,10}()` into one function.  Additionally, expand the simplifiction of `pow(exp{,2}(), y)` to `pow(exp{,2,10}(), y)`, for all scalar types, and of `pow(2.0, y)` to `pow(2.0 ** n, y)` for all scalar and vector types.


Repository:
  rL LLVM

https://reviews.llvm.org/D49273

Files:
  llvm/include/llvm/Transforms/Utils/SimplifyLibCalls.h
  llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
  llvm/test/Transforms/InstCombine/pow-1.ll
  llvm/test/Transforms/InstCombine/pow-exp.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49273.155298.patch
Type: text/x-patch
Size: 9235 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180712/49fd7ca5/attachment.bin>


More information about the llvm-commits mailing list