[PATCH] D49273: [InstCombine] Expand the simplification of pow() into exp2()

Evandro Menezes via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 7 14:11:00 PDT 2019


evandro added a comment.

In D49273#1619819 <https://reviews.llvm.org/D49273#1619819>, @xbolva00 wrote:

> Oh right, we miss this for pow of two bases other than 2.0.
>
> Yeah, we need a direct fold.


Methinks that I got a patch working.  The only drawback is that there is no intrinsic `ldexp()`, which means that it's probably better to use `exp2()` for vector types.


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D49273/new/

https://reviews.llvm.org/D49273





More information about the llvm-commits mailing list