[Mlir-commits] [mlir] 22ba2ac - [MLIR] Apply clang-tidy fixes for modernize-use-emplace in TosaReduceTransposes.cpp (NFC)
Mehdi Amini
llvmlistbot at llvm.org
Tue Sep 2 15:51:44 PDT 2025
Author: Mehdi Amini
Date: 2025-09-02T15:51:10-07:00
New Revision: 22ba2ac3ea4e57d9e501c6c82e6f2f9e2a71f970
URL: https://github.com/llvm/llvm-project/commit/22ba2ac3ea4e57d9e501c6c82e6f2f9e2a71f970
DIFF: https://github.com/llvm/llvm-project/commit/22ba2ac3ea4e57d9e501c6c82e6f2f9e2a71f970.diff
LOG: [MLIR] Apply clang-tidy fixes for modernize-use-emplace in TosaReduceTransposes.cpp (NFC)
Added:
Modified:
mlir/lib/Dialect/Tosa/Transforms/TosaReduceTransposes.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/Tosa/Transforms/TosaReduceTransposes.cpp b/mlir/lib/Dialect/Tosa/Transforms/TosaReduceTransposes.cpp
index 5590927c3f774..8143b27d89124 100644
--- a/mlir/lib/Dialect/Tosa/Transforms/TosaReduceTransposes.cpp
+++ b/mlir/lib/Dialect/Tosa/Transforms/TosaReduceTransposes.cpp
@@ -658,10 +658,10 @@ void TosaReduceTransposes::runOnOperation() {
// (like the TransposeOp we insert for ReshapeOp),
// but in this case, that is specialized enough and overlaps
// with another direct-use TransposeOp case we need to cover anyway.
- transposeInfo.push_back({transposeOp, dependentOps});
+ transposeInfo.emplace_back(transposeOp, dependentOps);
// This is for the final replacement across all transposes.
- totalTransposeOrder.push({transposeOp, perms});
+ totalTransposeOrder.emplace(transposeOp, perms);
});
// We want to do a full fan-in analysis on a perms-level,
More information about the Mlir-commits
mailing list