This is an archive of the discontinued LLVM Phabricator instance.

[MLIR][math] Use approximate matches for folded ops
ClosedPublic

Authored by Mogball on Sep 13 2022, 11:53 AM.

Details

Summary

LibM implementations differ, so the folders can have different results
on different platforms. For instance, the cos folder was failing on M1
mac. I chose to match the constant floats to 2(.5) significant digits.

Diff Detail

Event Timeline

Mogball created this revision.Sep 13 2022, 11:53 AM
Mogball requested review of this revision.Sep 13 2022, 11:53 AM
Mogball edited the summary of this revision. (Show Details)
Mogball edited the summary of this revision. (Show Details)
This revision is now accepted and ready to land.Sep 13 2022, 6:57 PM
This revision was automatically updated to reflect the committed changes.