[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:35 PDT 2020


foad added a comment.

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

> Can we really invent calls to non-builtin (aka potentially user-provided/overriden) C math function?


We're not creating library calls. We're only creating instructions and generic intrinsic calls, neither of which (should) depend on what TLI says about the available library functions.


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