[Mlir-commits] [mlir] [mlir][arith] Fold subi(a, subi(a, b)) to b (PR #194134)

Mehdi Amini llvmlistbot at llvm.org
Sat Apr 25 06:28:19 PDT 2026


================
@@ -2948,8 +2953,8 @@ std::optional<TypedAttr> mlir::arith::getNeutralElement(Operation *op) {
 Value mlir::arith::getIdentityValue(AtomicRMWKind op, Type resultType,
                                     OpBuilder &builder, Location loc,
                                     bool useOnlyFiniteValue) {
-  if (auto attr =
-getIdentityValueAttr(op, resultType, builder, loc, useOnlyFiniteValue))
----------------
joker-eph wrote:

OK: please be mindful to use `git clang-format` and avoid introducing format-only changes outside of the diff. This makes the review more time consuming.

https://github.com/llvm/llvm-project/pull/194134


More information about the Mlir-commits mailing list