This is an archive of the discontinued LLVM Phabricator instance.

[mlir][tosa] Fix clamp to restrict only within valid bitwidth range
ClosedPublic

Authored by rsuderman on Aug 17 2021, 5:11 PM.

Details

Summary

Its possible for the clamp to have invalid min/max values on its range. To fix
this we validate the range of the min/max and clamp to a valid range.

Diff Detail

Event Timeline

rsuderman created this revision.Aug 17 2021, 5:11 PM
rsuderman requested review of this revision.Aug 17 2021, 5:11 PM
NatashaKnk accepted this revision.Aug 17 2021, 5:13 PM
This revision is now accepted and ready to land.Aug 17 2021, 5:13 PM

Added test.

NatashaKnk accepted this revision.Aug 18 2021, 12:11 PM
This revision was landed with ongoing or failed builds.Aug 18 2021, 12:20 PM
This revision was automatically updated to reflect the committed changes.