diff options
| author | Clement Courbet <courbet@google.com> | 2018-06-14 06:57:52 +0000 |
|---|---|---|
| committer | Clement Courbet <courbet@google.com> | 2018-06-14 06:57:52 +0000 |
| commit | 49fad1cbf2bba88a5c0d596e3aa46d142f9d73ad (patch) | |
| tree | 1a361c823cf7c06511e4012d73b75c9418dbbf8c /llvm/unittests/tools | |
| parent | f209649dfcfef475de740a4755a6c480db360a6f (diff) | |
| download | bcm5719-llvm-49fad1cbf2bba88a5c0d596e3aa46d142f9d73ad.tar.gz bcm5719-llvm-49fad1cbf2bba88a5c0d596e3aa46d142f9d73ad.zip | |
[llvm-exegesis] Use BenchmarkResult::Instructions instead of OpcodeName
Summary:
Get rid of OpcodeName.
To remove the opcode name from an old file:
```
cat old_file | sed '/opcode_name.*/d'
```
Reviewers: gchatelet
Subscribers: tschuett, llvm-commits
Differential Revision: https://reviews.llvm.org/D48121
llvm-svn: 334691
Diffstat (limited to 'llvm/unittests/tools')
| -rw-r--r-- | llvm/unittests/tools/llvm-exegesis/BenchmarkResultTest.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/unittests/tools/llvm-exegesis/BenchmarkResultTest.cpp b/llvm/unittests/tools/llvm-exegesis/BenchmarkResultTest.cpp index a35ea05cb60..2b604dcdeb4 100644 --- a/llvm/unittests/tools/llvm-exegesis/BenchmarkResultTest.cpp +++ b/llvm/unittests/tools/llvm-exegesis/BenchmarkResultTest.cpp @@ -63,7 +63,6 @@ TEST(BenchmarkResultTest, WriteToAndReadFromDisk) { InstructionBenchmark ToDisk; - ToDisk.Key.OpcodeName = "name"; ToDisk.Key.Instructions.push_back(llvm::MCInstBuilder(kInstrId) .addReg(kReg1Id) .addReg(kReg2Id) @@ -91,7 +90,6 @@ TEST(BenchmarkResultTest, WriteToAndReadFromDisk) { const auto FromDisk = ExitOnErr(InstructionBenchmark::readYaml(Ctx, Filename)); - EXPECT_EQ(FromDisk.Key.OpcodeName, ToDisk.Key.OpcodeName); EXPECT_THAT(FromDisk.Key.Instructions, Pointwise(EqMCInst(), ToDisk.Key.Instructions)); EXPECT_EQ(FromDisk.Key.Config, ToDisk.Key.Config); @@ -109,7 +107,6 @@ TEST(BenchmarkResultTest, WriteToAndReadFromDisk) { ExitOnErr(InstructionBenchmark::readYamls(Ctx, Filename)); ASSERT_EQ(FromDiskVector.size(), size_t{1}); const auto FromDisk = FromDiskVector[0]; - EXPECT_EQ(FromDisk.Key.OpcodeName, ToDisk.Key.OpcodeName); EXPECT_THAT(FromDisk.Key.Instructions, Pointwise(EqMCInst(), ToDisk.Key.Instructions)); EXPECT_EQ(FromDisk.Key.Config, ToDisk.Key.Config); |

