[all-commits] [llvm/llvm-project] be1aeb: Remove NaN constant from arith.minf, arith.maxf ex...
Christian Sigg via All-commits
all-commits at lists.llvm.org
Wed Jan 12 11:56:56 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: be1aeb818cd9d4f329428a035604bebdd0c2f6e1
https://github.com/llvm/llvm-project/commit/be1aeb818cd9d4f329428a035604bebdd0c2f6e1
Author: Christian Sigg <csigg at google.com>
Date: 2022-01-12 (Wed, 12 Jan 2022)
Changed paths:
M mlir/lib/Dialect/Arithmetic/Transforms/ExpandOps.cpp
M mlir/test/Dialect/Arithmetic/expand-ops.mlir
Log Message:
-----------
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
More information about the All-commits
mailing list