From: Craig Topper Date: Sun, 15 Jul 2018 01:10:28 +0000 (+0000) Subject: [TableGen] Add some std::move to the PatternToMatch constructor. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=674b07eaef79a45e95e3551ed5d7fa22b65d81f1;p=llvm [TableGen] Add some std::move to the PatternToMatch constructor. The are two vectors passed by value to the constructor. We should be able to move them into the object. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@337114 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/TableGen/CodeGenDAGPatterns.h b/utils/TableGen/CodeGenDAGPatterns.h index c682f3d3268..5bdf4cd23f9 100644 --- a/utils/TableGen/CodeGenDAGPatterns.h +++ b/utils/TableGen/CodeGenDAGPatterns.h @@ -1022,7 +1022,7 @@ public: std::vector dstregs, int complexity, unsigned uid, unsigned setmode = 0) : SrcRecord(srcrecord), SrcPattern(src), DstPattern(dst), - Predicates(preds), Dstregs(dstregs), + Predicates(std::move(preds)), Dstregs(std::move(dstregs)), AddedComplexity(complexity), ID(uid), ForceMode(setmode) {} Record *SrcRecord; // Originating Record for the pattern.