[llvm] r342035 - [llvm-exegesis][NFC]Remove dead function parameter

Clement Courbet via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 12 02:26:33 PDT 2018


Author: courbet
Date: Wed Sep 12 02:26:32 2018
New Revision: 342035

URL: http://llvm.org/viewvc/llvm-project?rev=342035&view=rev
Log:
[llvm-exegesis][NFC]Remove dead function parameter

Modified:
    llvm/trunk/tools/llvm-exegesis/lib/BenchmarkRunner.cpp
    llvm/trunk/tools/llvm-exegesis/lib/BenchmarkRunner.h

Modified: llvm/trunk/tools/llvm-exegesis/lib/BenchmarkRunner.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-exegesis/lib/BenchmarkRunner.cpp?rev=342035&r1=342034&r2=342035&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-exegesis/lib/BenchmarkRunner.cpp (original)
+++ llvm/trunk/tools/llvm-exegesis/lib/BenchmarkRunner.cpp Wed Sep 12 02:26:32 2018
@@ -55,7 +55,7 @@ BenchmarkRunner::run(unsigned Opcode, un
 
   std::vector<InstructionBenchmark> 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
 }
 
 InstructionBenchmark
-BenchmarkRunner::runConfiguration(const BenchmarkCode &BC, unsigned Opcode,
+BenchmarkRunner::runConfiguration(const BenchmarkCode &BC,
                                   unsigned NumRepetitions) const {
   InstructionBenchmark InstrBenchmark;
   InstrBenchmark.Mode = Mode;

Modified: llvm/trunk/tools/llvm-exegesis/lib/BenchmarkRunner.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-exegesis/lib/BenchmarkRunner.h?rev=342035&r1=342034&r2=342035&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-exegesis/lib/BenchmarkRunner.h (original)
+++ llvm/trunk/tools/llvm-exegesis/lib/BenchmarkRunner.h Wed Sep 12 02:26:32 2018
@@ -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.




More information about the llvm-commits mailing list