Skip to content

Commit 3e74e53

Browse files
[mlir][scf] Remove unnecessary IRMapping in outlineSingleBlockRegion (NFC) (#158675)
Removed redundant IRMapping variables from outlineSingleBlockRegion.
1 parent eb12979 commit 3e74e53

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mlir/lib/Dialect/SCF/Utils/Utils.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,7 @@ FailureOr<func::FuncOp> mlir::outlineSingleBlockRegion(RewriterBase &rewriter,
202202
OpBuilder::InsertionGuard g(rewriter);
203203
rewriter.setInsertionPointToStart(outlinedFuncBody);
204204
if (Operation *cst = orig.getDefiningOp<arith::ConstantIndexOp>()) {
205-
IRMapping bvm;
206-
repl = rewriter.clone(*cst, bvm)->getResult(0);
205+
repl = rewriter.clone(*cst)->getResult(0);
207206
}
208207
}
209208
orig.replaceUsesWithIf(repl, [&](OpOperand &opOperand) {

0 commit comments

Comments
 (0)