summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-exegesis/lib/Uops.cpp
diff options
context:
space:
mode:
authorClement Courbet <courbet@google.com>2018-06-20 09:18:32 +0000
committerClement Courbet <courbet@google.com>2018-06-20 09:18:32 +0000
commit2c409702a93d7cdef4b50d769e141491b655c469 (patch)
tree7ad468c383092d685603b2073b435100061baeb8 /llvm/tools/llvm-exegesis/lib/Uops.cpp
parente31533c0239a01840afc585e63034b54618b9aa6 (diff)
downloadbcm5719-llvm-2c409702a93d7cdef4b50d769e141491b655c469.tar.gz
bcm5719-llvm-2c409702a93d7cdef4b50d769e141491b655c469.zip
[llvm-exegesis] Fix missing move in r335105.
llvm-svn: 335108
Diffstat (limited to 'llvm/tools/llvm-exegesis/lib/Uops.cpp')
-rw-r--r--llvm/tools/llvm-exegesis/lib/Uops.cpp8
1 files changed, 4 insertions, 4 deletions
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