[Mlir-commits] [mlir] [mlir][Utils] Add verifyRanksMatch helper (NFC) (PR #175880)
Andrzej WarzyĆski
llvmlistbot at llvm.org
Fri Jan 16 12:06:28 PST 2026
================
@@ -2126,13 +2127,11 @@ LogicalResult tosa::PadOp::verify() {
if (!inputType || !outputType)
return success();
- auto inputRank = inputType.getRank();
- auto outputRank = outputType.getRank();
- if (inputRank != outputRank)
- return emitOpError() << "expect same input and output tensor rank, but got "
- << "inputRank: " << inputRank
- << ", outputRank: " << outputRank;
+ if (failed(verifyRanksMatch(getOperation(), inputType, outputType, "input",
----------------
banach-space wrote:
Wny did you have to revert this change? As in, why would the build fail?
https://github.com/llvm/llvm-project/pull/175880
More information about the Mlir-commits
mailing list