We shouldn't be checking things that are guaranteed by the op's verifier.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
This change feels contrary to the LLVM developer guide - https://llvm.org/docs/CodingStandards.html#assert-liberally. There are plenty of places in MLIR where we assert things already checked by the verifier, for the very simple reason: verifiers are not set in stone. A change in op structure can easily lead to verifiers changing and these asserts suddenly become useful. Simple examples for these ops specifically; we may want min/max of an arbitrary number of operands rather than just two.
Please revert.
If you think this change is desired, please make a better case for that and request review from people with the history of contributions to this part of the code.