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

Ivan Butygin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 7 07:20:55 PDT 2023


Hardcode84 added inline comments.


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


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