diff --git a/mlir/lib/Dialect/Arith/IR/ArithOps.cpp b/mlir/lib/Dialect/Arith/IR/ArithOps.cpp index 5797c5681a5fdd..2f6647a2a27b15 100644 --- a/mlir/lib/Dialect/Arith/IR/ArithOps.cpp +++ b/mlir/lib/Dialect/Arith/IR/ArithOps.cpp @@ -2544,7 +2544,6 @@ std::optional mlir::arith::getNeutralElement(Operation *op) { .Case([](arith::MulIOp op) { return AtomicRMWKind::muli; }) .Default([](Operation *op) { return std::nullopt; }); if (!maybeKind) { - op->emitError() << "Unknown neutral element for: " << *op; return std::nullopt; } diff --git a/mlir/test/Dialect/Linalg/transform-tile-reduction.mlir b/mlir/test/Dialect/Linalg/transform-tile-reduction.mlir index f3cf7c4dffa05f..8feb3c2a2c306a 100644 --- a/mlir/test/Dialect/Linalg/transform-tile-reduction.mlir +++ b/mlir/test/Dialect/Linalg/transform-tile-reduction.mlir @@ -355,7 +355,6 @@ module { %0 = linalg.generic {indexing_maps = [#map, #map1], iterator_types = ["parallel", "reduction"]} ins(%arg0 : tensor) outs(%arg1 : tensor) { ^bb0(%in: f32, %out: f32): %1 = llvm.fmul %in, %in : f32 - // expected-error @below {{Unknown neutral element for:}} %2 = llvm.fadd %1, %out : f32 linalg.yield %2 : f32 } -> tensor