Skip to content

Commit 2440ca6

Browse files
committed
[mlir][linalg] Do not set insertion point inside padding function
1 parent 3172970 commit 2440ca6

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

mlir/lib/Dialect/Linalg/Transforms/PadTilingInterface.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -288,10 +288,6 @@ FailureOr<PadTilingInterfaceResult> linalg::rewriteAsPaddedOp(
288288
return failure();
289289
}
290290

291-
OpBuilder::InsertionGuard g(builder);
292-
// Set IP after toPad because we also take the dims of toPad's output.
293-
builder.setInsertionPointAfter(toPad);
294-
295291
// 1. Get the loopUpperBounds from the TilingInterface.
296292
SmallVector<Range> iterationDomain = toPad.getIterationDomain(builder);
297293

0 commit comments

Comments
 (0)