Skip to content

Commit 87ad3ce

Browse files
committed
[mlir][arith] Delete unnecessary error logs
Function `getNeutralElement` already indicates "cannot find neutral element" by returning nullptr through the return value, and no additional error log needs to be output.
1 parent c5aeca7 commit 87ad3ce

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

mlir/lib/Dialect/Arith/IR/ArithOps.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2544,7 +2544,6 @@ std::optional<TypedAttr> mlir::arith::getNeutralElement(Operation *op) {
25442544
.Case([](arith::MulIOp op) { return AtomicRMWKind::muli; })
25452545
.Default([](Operation *op) { return std::nullopt; });
25462546
if (!maybeKind) {
2547-
op->emitError() << "Unknown neutral element for: " << *op;
25482547
return std::nullopt;
25492548
}
25502549

0 commit comments

Comments
 (0)