This is an archive of the discontinued LLVM Phabricator instance.

[mlir][tosa] Use arith::maxf/arith::minf in lowering from tosa
ClosedPublic

Authored by ThomasRaoux on Aug 8 2022, 12:32 PM.

Details

Summary

now that arith dialect has maxf/minf use it instead of cmp/select.
Also refactor clamp helpers to make them simlper.

Diff Detail

Event Timeline

ThomasRaoux created this revision.Aug 8 2022, 12:32 PM
Herald added a project: Restricted Project. · View Herald Transcript
ThomasRaoux requested review of this revision.Aug 8 2022, 12:32 PM
ThomasRaoux edited the summary of this revision. (Show Details)

Update more cases and refactor clamp helpers

rsuderman accepted this revision.Aug 8 2022, 5:14 PM
rsuderman retitled this revision from [mlir][TosaToLinalg] Use arith::maxf/arith::minf in lowering from tosa to [mlir][tosa] Use arith::maxf/arith::minf in lowering from tosa.
This revision is now accepted and ready to land.Aug 8 2022, 5:15 PM