diff --git a/mlir/lib/Dialect/SCF/TransformOps/SCFTransformOps.cpp b/mlir/lib/Dialect/SCF/TransformOps/SCFTransformOps.cpp index b08bbde33e2c8..76c32fd5b2aa7 100644 --- a/mlir/lib/Dialect/SCF/TransformOps/SCFTransformOps.cpp +++ b/mlir/lib/Dialect/SCF/TransformOps/SCFTransformOps.cpp @@ -176,7 +176,7 @@ loopScheduling(scf::ForOp forOp, for (const auto &it : wrappedSchedule) { for (Operation *op : it.second) { unsigned cycle = opCycles[op]; - schedule.push_back(std::make_pair(op, cycle / iterationInterval)); + schedule.emplace_back(op, cycle / iterationInterval); } } }