This is an archive of the discontinued LLVM Phabricator instance.

[mlir][tosa] Revert add-0 canonicalization for floating-point
ClosedPublic

Authored by rsuderman on Nov 17 2021, 4:40 PM.

Details

Summary

Floating point optimization can produce incorrect numerical resutls for
-0.0 + 0.0 optimization as result needs to be -0.0.

Diff Detail

Event Timeline

rsuderman created this revision.Nov 17 2021, 4:40 PM
rsuderman requested review of this revision.Nov 17 2021, 4:40 PM
rsuderman retitled this revision from BEGIN_PUBLIC Revert float part of add-0 canonicalization to [mlir][tosa] Revert add-0 canonicalization for floating-point.Nov 17 2021, 4:41 PM
rsuderman edited the summary of this revision. (Show Details)
rsuderman added a reviewer: NatashaKnk.
eric-k256 accepted this revision.Nov 17 2021, 5:04 PM

Thanks for doing this, I think it's the right solution.

This revision is now accepted and ready to land.Nov 17 2021, 5:04 PM