[PATCH] D50036: [SLC] Expand the simplification of pow(x, 0.5) to sqrt(x)

Evandro Menezes via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 30 18:59:14 PDT 2018


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

Expand the number of cases when `pow(x, 0.5)` is simplified into `sqrt(x)` by considering relaxed math flags more granularly.


Repository:
  rL LLVM

https://reviews.llvm.org/D50036

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D50036.158158.patch
Type: text/x-patch
Size: 9880 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180731/3bcd5a31/attachment.bin>


More information about the llvm-commits mailing list