llvm-project/mlir/test/Dialect/Arithmetic
Christian Sigg be1aeb818c Remove NaN constant from arith.minf, arith.maxf expansion
If any of the operands is NaN, return the operand instead of a new constant.

When the rhs operand is a constant, the second arith.cmpf+select ops will be folded away.

https://reviews.llvm.org/D117010 marks the two ops commutative, which will place the constant on the rhs.

Reviewed By: herhut

Differential Revision: https://reviews.llvm.org/D117011
2022-01-12 20:56:40 +01:00
..
bufferize.mlir [mlir] Move memref.[tensor_load|buffer_cast|clone] to "bufferization" dialect. 2021-11-25 11:50:39 +01:00
canonicalize.mlir Fold arith.cmpf when at least one operand is known to be NaN. 2022-01-12 20:48:52 +01:00
expand-ops.mlir Remove NaN constant from arith.minf, arith.maxf expansion 2022-01-12 20:56:40 +01:00
invalid.mlir
ops.mlir [mlir][RFC] Add scalable dimensions to VectorType 2021-12-15 09:31:37 +00:00