[PATCH] D94543: [DAGCombine] Optimize pow(X, (2/3)) and Pow(X,(3/2))

Ganesh Gopalasubramanian via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 12 12:33:10 PST 2021


GGanesh created this revision.
GGanesh added reviewers: Whitney, fhahn, lebedev.ri, evandro.
GGanesh added a project: LLVM.
Herald added subscribers: ecnelises, pengfei, hiraditya.
GGanesh requested review of this revision.
Herald added a subscriber: llvm-commits.

Try to convert pow(X, 1.50) --> X * sqrt(X) and  Pow(X,(2/3)) to cube root of (X*X).


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D94543

Files:
  llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  llvm/test/CodeGen/X86/pow.150.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94543.316198.patch
Type: text/x-patch
Size: 5816 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210112/0dbd384f/attachment.bin>


More information about the llvm-commits mailing list