summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2014-10-04 16:55:56 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2014-10-04 16:55:56 +0000
commitc6cc58e7032239529a5ceaab3dab4aa9e7f898e7 (patch)
tree4a5993f3e6b62d9070656d336bf365ee7a58f2ba /llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
parentcda2aa823ede9f83577dc90c77063e87ab2debd3 (diff)
downloadbcm5719-llvm-c6cc58e7032239529a5ceaab3dab4aa9e7f898e7.tar.gz
bcm5719-llvm-c6cc58e7032239529a5ceaab3dab4aa9e7f898e7.zip
Remove unnecessary copying or replace it with moves in a bunch of places.
NFC. llvm-svn: 219061
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index dd932ebd80e..95825e6571e 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@ -1881,7 +1881,8 @@ ExpandBVWithShuffles(SDNode *Node, SelectionDAG &DAG,
ShuffleVec.data());
else if (!TLI.isShuffleMaskLegal(ShuffleVec, VT))
return false;
- NewIntermedVals.push_back(std::make_pair(Shuffle, FinalIndices));
+ NewIntermedVals.push_back(
+ std::make_pair(Shuffle, std::move(FinalIndices)));
}
// If we had an odd number of defined values, then append the last
OpenPOWER on IntegriCloud