We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 357cb5d commit 9806124Copy full SHA for 9806124
mlir/lib/Dialect/SCF/Transforms/ParallelForToNestedFors.cpp
@@ -27,11 +27,10 @@ FailureOr<scf::LoopNest>
27
mlir::scf::parallelForToNestedFors(RewriterBase &rewriter,
28
scf::ParallelOp parallelOp) {
29
30
- if (!parallelOp.getResults().empty()) {
31
- parallelOp->emitError("Currently scf.parallel to scf.for conversion "
32
- "doesn't support scf.parallel with results.");
33
- return failure();
34
- }
+ if (!parallelOp.getResults().empty())
+ return rewriter.notifyMatchFailure(
+ parallelOp, "Currently scf.parallel to scf.for conversion doesn't "
+ "support scf.parallel with results.");
35
36
rewriter.setInsertionPoint(parallelOp);
37
0 commit comments