diff options
| author | Guillaume Chatelet <gchatelet@google.com> | 2018-06-07 07:40:40 +0000 |
|---|---|---|
| committer | Guillaume Chatelet <gchatelet@google.com> | 2018-06-07 07:40:40 +0000 |
| commit | 083a0c16211f690e34b1d97162c7168d4efbc140 (patch) | |
| tree | 23363015ead791b79358feadf260f93b8abb35a4 /llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp | |
| parent | 9212ef0a0a9a9787bcf578fc9f00cdfb52bd4ff0 (diff) | |
| download | bcm5719-llvm-083a0c16211f690e34b1d97162c7168d4efbc140.tar.gz bcm5719-llvm-083a0c16211f690e34b1d97162c7168d4efbc140.zip | |
[llvm-exegesis] Serializes instruction's operand in BenchmarkResult's key.
Summary: Follow up patch to https://reviews.llvm.org/D47764.
Reviewers: courbet
Subscribers: tschuett, llvm-commits
Differential Revision: https://reviews.llvm.org/D47785
llvm-svn: 334165
Diffstat (limited to 'llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp')
| -rw-r--r-- | llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp b/llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp index 0599c8e0f3f..1d8b34f1032 100644 --- a/llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp +++ b/llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp @@ -63,7 +63,9 @@ InstructionBenchmark BenchmarkRunner::run(unsigned Opcode, InstrBenchmark.Error = "Empty snippet"; return InstrBenchmark; } - + for (const auto &MCInst : Snippet) { + InstrBenchmark.Key.Instructions.push_back(MCInst); + } InfoStream << "Snippet:\n"; for (const auto &MCInst : Snippet) { DumpMCInst(MCRegisterInfo, MCInstrInfo, MCInst, InfoStream); |

