Page MenuHomePhabricator

[DAGCombine] Optimize pow(X, (2/3)) and Pow(X,(3/2))
Needs ReviewPublic

Authored by GGanesh on Jan 12 2021, 12:33 PM.

Details

Summary

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

Diff Detail

Event Timeline

GGanesh created this revision.Jan 12 2021, 12:33 PM
GGanesh requested review of this revision.Jan 12 2021, 12:33 PM
lebedev.ri added inline comments.Jan 12 2021, 12:57 PM
llvm/test/CodeGen/X86/pow.150.ll
1

Please precommit the test

2–3

Why not just check the final asm?