diff --git a/mlir/lib/Dialect/DLTI/DLTI.cpp b/mlir/lib/Dialect/DLTI/DLTI.cpp --- a/mlir/lib/Dialect/DLTI/DLTI.cpp +++ b/mlir/lib/Dialect/DLTI/DLTI.cpp @@ -203,7 +203,7 @@ // Try overwriting the old entries with the new ones. for (const auto &kvp : newEntriesForType) { if (!entriesForType.count(kvp.first)) { - entriesForType[kvp.first] = std::move(kvp.second); + entriesForType[kvp.first] = kvp.second; continue; } diff --git a/mlir/test/lib/Dialect/Linalg/TestLinalgTransforms.cpp b/mlir/test/lib/Dialect/Linalg/TestLinalgTransforms.cpp --- a/mlir/test/lib/Dialect/Linalg/TestLinalgTransforms.cpp +++ b/mlir/test/lib/Dialect/Linalg/TestLinalgTransforms.cpp @@ -528,8 +528,7 @@ llvm::move(stage1Patterns, std::back_inserter(frozenStage1Patterns)); FrozenRewritePatternSet stage2Patterns = getLinalgTilingCanonicalizationPatterns(ctx); - (void)applyStagedPatterns(funcOp, frozenStage1Patterns, - std::move(stage2Patterns)); + (void)applyStagedPatterns(funcOp, frozenStage1Patterns, stage2Patterns); } static void applyVectorTransferForwardingPatterns(FuncOp funcOp) {