From cd417c6a46e0f467f10be8c92cf003d81511ca59 Mon Sep 17 00:00:00 2001 From: Mehdi Amini Date: Sun, 12 Jun 2022 17:46:52 +0000 Subject: [PATCH] Apply clang-tidy fixes for modernize-use-emplace in SCFTransformOps.cpp (NFC) --- mlir/lib/Dialect/SCF/TransformOps/SCFTransformOps.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mlir/lib/Dialect/SCF/TransformOps/SCFTransformOps.cpp b/mlir/lib/Dialect/SCF/TransformOps/SCFTransformOps.cpp index b08bbde33e2c..76c32fd5b2aa 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); } } } -- 2.34.1