From 903667e956042f427af7e15665894a5d2a535105 Mon Sep 17 00:00:00 2001 From: Clement Courbet Date: Wed, 12 Sep 2018 09:26:32 +0000 Subject: [PATCH] [llvm-exegesis][NFC]Remove dead function parameter llvm-svn: 342035 --- llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp | 4 ++-- llvm/tools/llvm-exegesis/lib/BenchmarkRunner.h | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp b/llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp index 42fad2f..7fa3926 100644 --- a/llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp +++ b/llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp @@ -55,7 +55,7 @@ BenchmarkRunner::run(unsigned Opcode, unsigned NumRepetitions) { std::vector InstrBenchmarks; for (const BenchmarkCode &Conf : ConfigurationOrError.get()) - InstrBenchmarks.push_back(runConfiguration(Conf, Opcode, NumRepetitions)); + InstrBenchmarks.push_back(runConfiguration(Conf, NumRepetitions)); return InstrBenchmarks; } @@ -70,7 +70,7 @@ GenerateInstructions(const BenchmarkCode &BC, const int MinInstructions) { } InstructionBenchmark -BenchmarkRunner::runConfiguration(const BenchmarkCode &BC, unsigned Opcode, +BenchmarkRunner::runConfiguration(const BenchmarkCode &BC, unsigned NumRepetitions) const { InstructionBenchmark InstrBenchmark; InstrBenchmark.Mode = Mode; diff --git a/llvm/tools/llvm-exegesis/lib/BenchmarkRunner.h b/llvm/tools/llvm-exegesis/lib/BenchmarkRunner.h index fcf89f8..5d7ea25 100644 --- a/llvm/tools/llvm-exegesis/lib/BenchmarkRunner.h +++ b/llvm/tools/llvm-exegesis/lib/BenchmarkRunner.h @@ -108,7 +108,6 @@ private: // Internal helpers. InstructionBenchmark runConfiguration(const BenchmarkCode &Configuration, - unsigned Opcode, unsigned NumRepetitions) const; // Calls generateCodeTemplate and expands it into one or more BenchmarkCode. -- 2.7.4