summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/tools/llvm-exegesis/lib/Latency.cpp4
-rw-r--r--llvm/tools/llvm-exegesis/lib/Uops.cpp8
2 files changed, 6 insertions, 6 deletions
diff --git a/llvm/tools/llvm-exegesis/lib/Latency.cpp b/llvm/tools/llvm-exegesis/lib/Latency.cpp
index 96d20ae5641..a221323734f 100644
--- a/llvm/tools/llvm-exegesis/lib/Latency.cpp
+++ b/llvm/tools/llvm-exegesis/lib/Latency.cpp
@@ -64,7 +64,7 @@ LatencyBenchmarkRunner::generateSelfAliasingPrototype(
setRandomAliasing(SelfAliasing, II, II);
}
Prototype.Snippet.push_back(std::move(II));
- return Prototype;
+ return std::move(Prototype);
}
llvm::Expected<SnippetPrototype>
@@ -99,7 +99,7 @@ LatencyBenchmarkRunner::generateTwoInstructionPrototype(
MCInstrInfo.getName(OtherOpcode));
Prototype.Snippet.push_back(std::move(ThisII));
Prototype.Snippet.push_back(std::move(OtherII));
- return Prototype;
+ return std::move(Prototype);
}
return llvm::make_error<BenchmarkFailure>(
"Infeasible : Didn't find any scheme to make the instruction serial");
diff --git a/llvm/tools/llvm-exegesis/lib/Uops.cpp b/llvm/tools/llvm-exegesis/lib/Uops.cpp
index 44dd84ab402..a64bc9531f4 100644
--- a/llvm/tools/llvm-exegesis/lib/Uops.cpp
+++ b/llvm/tools/llvm-exegesis/lib/Uops.cpp
@@ -147,13 +147,13 @@ UopsBenchmarkRunner::generatePrototype(unsigned Opcode) const {
SnippetPrototype Prototype;
Prototype.Explanation = "instruction is parallel, repeating a random one.";
Prototype.Snippet.emplace_back(Instr);
- return Prototype;
+ return std::move(Prototype);
}
if (SelfAliasing.hasImplicitAliasing()) {
SnippetPrototype Prototype;
Prototype.Explanation = "instruction is serial, repeating a random one.";
Prototype.Snippet.emplace_back(Instr);
- return Prototype;
+ return std::move(Prototype);
}
const auto TiedVariables = getTiedVariables(Instr);
if (!TiedVariables.empty()) {
@@ -174,7 +174,7 @@ UopsBenchmarkRunner::generatePrototype(unsigned Opcode) const {
Prototype.Snippet.back().getValueFor(*Var) =
llvm::MCOperand::createReg(Reg);
}
- return Prototype;
+ return std::move(Prototype);
}
InstructionInstance II(Instr);
// No tied variables, we pick random values for defs.
@@ -205,7 +205,7 @@ UopsBenchmarkRunner::generatePrototype(unsigned Opcode) const {
Prototype.Explanation =
"instruction has no tied variables picking Uses different from defs";
Prototype.Snippet.push_back(std::move(II));
- return Prototype;
+ return std::move(Prototype);
}
std::vector<BenchmarkMeasure>
OpenPOWER on IntegriCloud