[PATCH] D156471: [mlir] Support fast-math friendly constants for identity value

Quentin Colombet via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 7 07:11:14 PDT 2023


qcolombet updated this revision to Diff 547775.
qcolombet added a comment.

- Use the fastmath flags attached to arith op when using `getIdentityElement`
- Add tests catching that behavior


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D156471/new/

https://reviews.llvm.org/D156471

Files:
  mlir/include/mlir/Dialect/Arith/IR/Arith.h
  mlir/lib/Dialect/Arith/IR/ArithOps.cpp
  mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
  mlir/test/Dialect/Linalg/transform-op-decompose.mlir
  mlir/test/Dialect/Linalg/transform-op-split-reduction.mlir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D156471.547775.patch
Type: text/x-patch
Size: 14689 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230807/2aa98786/attachment.bin>


More information about the llvm-commits mailing list