This is an archive of the discontinued LLVM Phabricator instance.

[mlir][tosa] Add tosa.clamp as no-op canonicalization
ClosedPublic

Authored by not-jenni on Jan 18 2022, 4:20 PM.

Details

Summary

When the min/max are the total range of the value, it is a no-op as the values are already restricted to that range.

Diff Detail

Event Timeline

not-jenni created this revision.Jan 18 2022, 4:20 PM
not-jenni requested review of this revision.Jan 18 2022, 4:20 PM
rsuderman accepted this revision.Jan 18 2022, 11:02 PM
This revision is now accepted and ready to land.Jan 18 2022, 11:02 PM
This revision was landed with ongoing or failed builds.Jan 18 2022, 11:18 PM
This revision was automatically updated to reflect the committed changes.