[PATCH] D68231: [SLC] Allow llvm.pow(x,2.0) -> x*x etc even if no pow() lib func

Jay Foad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat May 2 01:01:36 PDT 2020


foad added a comment.

In D68231#2016090 <https://reviews.llvm.org/D68231#2016090>, @lebedev.ri wrote:

> The patch description is only stating the previous status-quo as a fact,
>  but gives no reasoning as to why it should change, why it is legal/okay to change it.


How about something like: "`optimizePow` does not create any new calls to `pow`, so it should work regardless of whether the `pow` library function is available. This allows it to optimize the `llvm.pow` intrinsic on targets with no math library."

Annoyingly, if I change the commit message, `arc diff` doesn't propagate that to the web interface.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D68231





More information about the llvm-commits mailing list