[LoopVer] Add missing std::move
authorAdam Nemet <anemet@apple.com>
Thu, 30 Jul 2015 04:21:13 +0000 (04:21 +0000)
committerAdam Nemet <anemet@apple.com>
Thu, 30 Jul 2015 04:21:13 +0000 (04:21 +0000)
commit77907c75553b579e774ad29cccf9882374fb6c70
tree1aad743d42e8b67a36379a92c8864ff6321be71f
parent52aafdb50accbf74aee04280a9133ff73499fa43
[LoopVer] Add missing std::move

The reason I was passing this vector by value in the constructor so that
I wouldn't have to copy when initializing the corresponding member but
then I forgot the std::move.

The use-case is LoopDistribution which filters the checks then
std::moves it to LoopVersioning's constructor.  With this interface we
can avoid any copies.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243616 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/LoopVersioning.cpp