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

Longsheng Mou llvmlistbot at llvm.org
Sat Apr 25 06:31:39 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))
----------------
CoTinker wrote:

Okay, noted. Thanks for your review.

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


More information about the Mlir-commits mailing list