Remove std::move on return when it could prevent copy elision.
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 1 May 2015 15:16:11 +0000 (15:16 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 1 May 2015 15:16:11 +0000 (15:16 +0000)
commitfda9fd463dae38840cc02c5ae668cb1097395b9a
treee8ae43701f7bbe12374cc9db5ed8af9d6d0991cc
parent62e5ebfaef9e058d1182de155c335fcc807a8914
Remove std::move on return when it could prevent copy elision.

Found by -Wpessimizing-move, no functional change. The APFloat and
PassManager change doesn't affect codegen as returning a by-value
argument will always result in a move.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236316 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/APFloat.h
include/llvm/IR/PassManager.h
utils/yaml-bench/YAMLBench.cpp