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.
2 parents fcc7353 + df7545e commit 438f78cCopy full SHA for 438f78c
mlir/lib/Dialect/SCF/IR/SCF.cpp
@@ -3040,6 +3040,8 @@ struct ParallelOpSingleOrZeroIterationDimsFolder
3040
auto newOp =
3041
rewriter.create<ParallelOp>(op.getLoc(), newLowerBounds, newUpperBounds,
3042
newSteps, op.getInitVals(), nullptr);
3043
+ // Erase the empty block that was inserted by the builder.
3044
+ rewriter.eraseBlock(newOp.getBody());
3045
// Clone the loop body and remap the block arguments of the collapsed loops
3046
// (inlining does not support a cancellable block argument mapping).
3047
rewriter.cloneRegionBefore(op.getRegion(), newOp.getRegion(),
0 commit comments