now that arith dialect has maxf/minf use it instead of cmp/select.
Also refactor clamp helpers to make them simlper.
Details
Details
Diff Detail
Diff Detail
Paths
| Differential D131426
[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.
Diff Detail Event Timelinersuderman 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 Closed by commit rG2eb50cee11cc: [mlir][tosa] Use arith::maxf/arith::minf in lowering from tosa (authored by ThomasRaoux). · Explain WhyAug 8 2022, 6:13 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 450925 mlir/include/mlir/Dialect/Tosa/Utils/CoversionUtils.h
mlir/lib/Conversion/TosaToLinalg/TosaToLinalg.cpp
mlir/lib/Conversion/TosaToLinalg/TosaToLinalgNamed.cpp
mlir/lib/Dialect/Tosa/Utils/ConversionUtils.cpp
mlir/test/Conversion/TosaToLinalg/tosa-to-linalg.mlir
|