[all-commits] [llvm/llvm-project] ca8cba: [mlir][arith] Introduce `minnumf` and `maxnumf` op...
Daniil Dudkin via All-commits
all-commits at lists.llvm.org
Thu Sep 14 14:50:12 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ca8cba76f9af9ca666a11deb8077ad7954226884
https://github.com/llvm/llvm-project/commit/ca8cba76f9af9ca666a11deb8077ad7954226884
Author: Daniil Dudkin <39276703+unterumarmung at users.noreply.github.com>
Date: 2023-09-15 (Fri, 15 Sep 2023)
Changed paths:
M mlir/include/mlir/Dialect/Arith/IR/ArithOps.td
M mlir/lib/Dialect/Arith/IR/ArithOps.cpp
M mlir/test/Dialect/Arith/canonicalize.mlir
M mlir/test/Dialect/Arith/ops.mlir
Log Message:
-----------
[mlir][arith] Introduce `minnumf` and `maxnumf` operations (#66429)
This patch is part of a larger initiative aimed at fixing floating-point
`max` and `min` operations in MLIR:
https://discourse.llvm.org/t/rfc-fix-floating-point-max-and-min-operations-in-mlir/72671.
Here we introduce new operations for floating-point numbers: `minnum`
and `maxnum`.
These operations have different semantics than `minumumf` and `maximumf`
ops.
They follow the eponymous LLVM intrinsics semantics, which differs
in the handling positive and negative zeros and NaNs.
This patch addresses the 1.3 task from the RFC.
More information about the All-commits
mailing list