[Mlir-commits] [mlir] cd417c6 - Apply clang-tidy fixes for modernize-use-emplace in SCFTransformOps.cpp (NFC)
Mehdi Amini
llvmlistbot at llvm.org
Tue Jun 28 11:09:15 PDT 2022
Author: Mehdi Amini
Date: 2022-06-28T18:08:58Z
New Revision: cd417c6a46e0f467f10be8c92cf003d81511ca59
URL: https://github.com/llvm/llvm-project/commit/cd417c6a46e0f467f10be8c92cf003d81511ca59
DIFF: https://github.com/llvm/llvm-project/commit/cd417c6a46e0f467f10be8c92cf003d81511ca59.diff
LOG: Apply clang-tidy fixes for modernize-use-emplace in SCFTransformOps.cpp (NFC)
Added:
Modified:
mlir/lib/Dialect/SCF/TransformOps/SCFTransformOps.cpp
Removed:
################################################################################
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);
}
}
}
More information about the Mlir-commits
mailing list