This is an archive of the discontinued LLVM Phabricator instance.

Add a math.cbrt instruction and lowering to libm.
ClosedPublic

Authored by jreiffers on Jan 2 2023, 6:26 AM.

Details

Summary

There's currently no way to get accurate cube roots in the math dialect.
powf(x, 1/3.0) is too inaccurate in some cases.

Diff Detail

Event Timeline

jreiffers created this revision.Jan 2 2023, 6:26 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 2 2023, 6:26 AM
jreiffers requested review of this revision.Jan 2 2023, 6:26 AM
jreiffers retitled this revision from Add a math.cbrt instruction. to Add a math.cbrt instruction and lowering to libm..Jan 2 2023, 6:28 AM
jreiffers edited the summary of this revision. (Show Details)
akuegel accepted this revision.Jan 2 2023, 11:36 PM
This revision is now accepted and ready to land.Jan 2 2023, 11:36 PM
This revision was automatically updated to reflect the committed changes.