Skip to content

Commit 22ba2ac

Browse files
committed
[MLIR] Apply clang-tidy fixes for modernize-use-emplace in TosaReduceTransposes.cpp (NFC)
1 parent 7a0dfb1 commit 22ba2ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlir/lib/Dialect/Tosa/Transforms/TosaReduceTransposes.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -658,10 +658,10 @@ void TosaReduceTransposes::runOnOperation() {
658658
// (like the TransposeOp we insert for ReshapeOp),
659659
// but in this case, that is specialized enough and overlaps
660660
// with another direct-use TransposeOp case we need to cover anyway.
661-
transposeInfo.push_back({transposeOp, dependentOps});
661+
transposeInfo.emplace_back(transposeOp, dependentOps);
662662

663663
// This is for the final replacement across all transposes.
664-
totalTransposeOrder.push({transposeOp, perms});
664+
totalTransposeOrder.emplace(transposeOp, perms);
665665
});
666666

667667
// We want to do a full fan-in analysis on a perms-level,

0 commit comments

Comments
 (0)