aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/llvm-mca/DispatchStage.cpp4
-rw-r--r--tools/llvm-mca/ExecuteStage.cpp2
-rw-r--r--tools/llvm-mca/Stage.h2
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.