This is an archive of the discontinued LLVM Phabricator instance.

[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?

Amir added a subscriber: Amir.Mar 14 2022, 10:07 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 14 2022, 10:07 AM
lebedev.ri resigned from this revision.Jan 12 2023, 5:29 PM

This review may be stuck/dead, consider abandoning if no longer relevant.
Removing myself as reviewer in attempt to clean dashboard.