[Mlir-commits] [mlir] [mlir][transform] Guard parametric loop tiling pass from no option (PR #118254)

Mehdi Amini llvmlistbot at llvm.org
Mon Dec 2 07:48:32 PST 2024


================
@@ -40,6 +40,9 @@ class SimpleParametricLoopTilingPass
   }
 
   void runOnOperation() override {
+    // If no outer loop iteration is given, ignore the pass.
+    if (sizes.empty())
+      return;
----------------
joker-eph wrote:

Shouldn't we error out here? Seems like an error from the user to me here, and they would be surprised by the behavior. Any valid workflow where silently ignoring this would be better?

https://github.com/llvm/llvm-project/pull/118254


More information about the Mlir-commits mailing list