[mlir] Reduce call stack depth in LogicalResult. NFC.
When debuging a crash or conversion failure in a deep pass pipeline, there are often many interleaved frames with `failed` and `succeeded`. `LogicalResult` is used through the pass infrastructure, so by not implementing failure in terms of a call to succeess, this patch noticeably reduces the total total call stack depth and improves the debugging experience. Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D135116
Loading
Please sign in to comment