[Mlir-commits] [mlir] [mlir][scf] Fix scf.forall to scf.parallel pass walker (PR #95385)
Adam Siemieniuk
llvmlistbot at llvm.org
Fri Jun 14 02:43:24 PDT 2024
================
@@ -71,8 +71,9 @@ struct ForallToParallelLoop final
parentOp->walk([&](scf::ForallOp forallOp) {
if (failed(scf::forallToParallelLoop(rewriter, forallOp))) {
- return signalPassFailure();
+ return WalkResult::skip();
----------------
adam-smnk wrote:
Good points all together. My change was too eager too.
@sabauma My view on the pass is that indicating full failure (through `signalPassFailure`) is a bit heavy handed in this case (and viewed it as "error") but if that is the intention, it is equally valid approach.
I'll leave the pass as is. Perhaps the description could be explicit about the intended behavior.
https://github.com/llvm/llvm-project/pull/95385
More information about the Mlir-commits
mailing list