[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:36:41 PDT 2023


qcolombet marked an inline comment as done.
qcolombet added inline comments.


================
Comment at: mlir/lib/Dialect/Arith/IR/ArithOps.cpp:2469
+  bool useOnlyFiniteValue = false;
+  for (const auto &attr : op->getAttrs()) {
+    auto fastAttr =
----------------
Hardcode84 wrote:
> There is `ArithFastMathInterface`, I think you can get flags from it instead of iteration through all attrs.
Ah thanks!


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D156471



More information about the llvm-commits mailing list