[MCA][NFC] Remove redundant calls to std::move.
authorAndrea Di Biagio <andrea.dibiagio@sony.com>
Thu, 26 Aug 2021 18:43:18 +0000 (19:43 +0100)
committerAndrea Di Biagio <andrea.dibiagio@sony.com>
Thu, 26 Aug 2021 18:47:59 +0000 (19:47 +0100)
commit9cc0023fb863194be526f0bf19bd21e36236c5f6
tree76c240681313b66e81176f702c028dd1a07b0403
parent2363a2000171d12e21bc49a783291401656c4f35
[MCA][NFC] Remove redundant calls to std::move.

This fixes some redundant move in return statement [-Wredundant-move] gcc 9.3.0
warnings.

This also fixes a minor coverity issue reported agaist class MCAOperand about
the lack of proper initialization for field Index.

No functional change intended.
llvm/include/llvm/MCA/Instruction.h
llvm/lib/MCA/InstrBuilder.cpp
llvm/lib/MCA/Pipeline.cpp