[Mlir-commits] [mlir] [MLIR][scp.parallel] Don't allow a tile size of 0 (PR #68762)

Matthias Springer llvmlistbot at llvm.org
Wed Oct 11 13:37:47 PDT 2023


================
@@ -195,6 +195,9 @@ struct ParallelLoopTiling
   }
 
   void runOnOperation() override {
+    for (auto tileSize : tileSizes)
+      if (tileSize == 0)
+        signalPassFailure();
----------------
matthias-springer wrote:

I would emit an error message here (`mlir::emitError`).

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


More information about the Mlir-commits mailing list