[Mlir-commits] [mlir] [mlir][transform] Guard parametric loop tiling pass from no option (PR #118254)
Mehdi Amini
llvmlistbot at llvm.org
Tue Dec 3 22:46:26 PST 2024
================
@@ -40,6 +40,11 @@ class SimpleParametricLoopTilingPass
}
void runOnOperation() override {
+ if (sizes.empty()) {
+ getOperation()->emitError("expect non-empty outer loop sizes");
----------------
joker-eph wrote:
Not sure we really need a test for this, but you can always not use the --verify-diagnostic and instead redirect stderr to stdout and use FileCheck.
You'll need to use `not` before `mlir-opt` as well I believe.
https://github.com/llvm/llvm-project/pull/118254
More information about the Mlir-commits
mailing list