[llvm] [llvm-exegesis] Add middle half repetition mode (PR #77020)

Clement Courbet via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 19 05:46:12 PST 2024


================
@@ -455,6 +466,26 @@ static void runBenchmarkConfigurations(
               Measurement.PerSnippetValue, NewMeasurement.PerSnippetValue);
         }
       }
+    } else if (RepetitionMode ==
----------------
legrosbuffle wrote:

This shared a lot of code with the `if (RepetitionMode == Benchmark::RepetitionModeE::AggregateMin) {` above.

This could probably be:

```
if (RepetitionMode == Benchmark::RepetitionModeE::AggregateMin) {
  Result = AggregateResults(AllResults, []() { ... });
} else {
  Result = AggregateResults(AllResults, []() { ... });
}
```

https://github.com/llvm/llvm-project/pull/77020


More information about the llvm-commits mailing list