[Mlir-commits] [mlir] [mlir][scf] Skip ops having results with warning in forall-to-for pass (PR #175926)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Wed Jan 14 15:22:57 PST 2026


================
@@ -30,6 +30,12 @@ mlir::scf::forallToForLoop(RewriterBase &rewriter, scf::ForallOp forallOp,
   OpBuilder::InsertionGuard guard(rewriter);
   rewriter.setInsertionPoint(forallOp);
 
+  if (!forallOp.getOutputs().empty()) {
+    forallOp.emitWarning()
+        << "skipping scf.forall with outputs, currently not supported";
+    return success();
----------------
MaheshRavishankar wrote:

Nit: Not sure it is a success. In any case you can use

```
return rewriter.notifyMatchFailure(forallOp, ...)
```

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


More information about the Mlir-commits mailing list