diff options
author | Andrea Di Biagio <Andrea_DiBiagio@sn.scee.net> | 2018-08-16 19:45:13 +0000 |
---|---|---|
committer | Andrea Di Biagio <Andrea_DiBiagio@sn.scee.net> | 2018-08-16 19:45:13 +0000 |
commit | 516dc8bd511d94f27b079f32bb3c7e8fa0b46e08 (patch) | |
tree | 2faa7799b93ee154d751847ad9947a84f619728a | |
parent | ad8a8d12bf89a25b2193942565bf18f240056651 (diff) |
[llvm-mca] Fix -Wpessimizing-move warnings introduced by r339923.linaro-local/ci/llvm-kernel-aarch64-good
Reported by buildbot `clang-with-lto-ubuntu` ( build #9858 ).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@339928 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | tools/llvm-mca/DispatchStage.cpp | 4 | ||||
-rw-r--r-- | tools/llvm-mca/ExecuteStage.cpp | 2 | ||||
-rw-r--r-- | tools/llvm-mca/Stage.h | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/tools/llvm-mca/DispatchStage.cpp b/tools/llvm-mca/DispatchStage.cpp index 87b8179406f..cb964461f4b 100644 --- a/tools/llvm-mca/DispatchStage.cpp +++ b/tools/llvm-mca/DispatchStage.cpp @@ -126,7 +126,7 @@ llvm::Error DispatchStage::dispatch(InstRef IR) { // Notify listeners of the "instruction dispatched" event, // and move IR to the next stage. notifyInstructionDispatched(IR, RegisterFiles); - return std::move(moveToTheNextStage(IR)); + return moveToTheNextStage(IR); } llvm::Error DispatchStage::cycleStart() { @@ -148,7 +148,7 @@ bool DispatchStage::isAvailable(const InstRef &IR) const { llvm::Error DispatchStage::execute(InstRef &IR) { assert(canDispatch(IR) && "Cannot dispatch another instruction!"); - return std::move(dispatch(IR)); + return dispatch(IR); } #ifndef NDEBUG diff --git a/tools/llvm-mca/ExecuteStage.cpp b/tools/llvm-mca/ExecuteStage.cpp index f3c441b969b..dadfd6548ed 100644 --- a/tools/llvm-mca/ExecuteStage.cpp +++ b/tools/llvm-mca/ExecuteStage.cpp @@ -170,7 +170,7 @@ Error ExecuteStage::execute(InstRef &IR) { if (IR.getInstruction()->isExecuted()) { notifyInstructionExecuted(IR); //FIXME: add a buffer of executed instructions. - return std::move(moveToTheNextStage(IR)); + return moveToTheNextStage(IR); } return ErrorSuccess(); } diff --git a/tools/llvm-mca/Stage.h b/tools/llvm-mca/Stage.h index 69efb26e28f..5470c9cf0d9 100644 --- a/tools/llvm-mca/Stage.h +++ b/tools/llvm-mca/Stage.h @@ -69,7 +69,7 @@ public: /// successor stages. llvm::Error moveToTheNextStage(InstRef &IR) { assert(checkNextStage(IR) && "Next stage is not ready!"); - return std::move(NextInSequence->execute(IR)); + return NextInSequence->execute(IR); } /// Add a listener to receive callbacks during the execution of this stage. |