[libc-commits] [libc] 39e9f5d - [libc][NFC][Obvious] Fix the benchmarks after the switch to llvm/third-party
Siva Chandra Reddy via libc-commits
libc-commits at lists.llvm.org
Tue Nov 16 14:32:29 PST 2021
Author: Siva Chandra Reddy
Date: 2021-11-16T22:24:49Z
New Revision: 39e9f5d3685f3cfca0df072928ad96d973704dff
URL: https://github.com/llvm/llvm-project/commit/39e9f5d3685f3cfca0df072928ad96d973704dff
DIFF: https://github.com/llvm/llvm-project/commit/39e9f5d3685f3cfca0df072928ad96d973704dff.diff
LOG: [libc][NFC][Obvious] Fix the benchmarks after the switch to llvm/third-party
Added:
Modified:
libc/benchmarks/LibcBenchmark.cpp
Removed:
################################################################################
diff --git a/libc/benchmarks/LibcBenchmark.cpp b/libc/benchmarks/LibcBenchmark.cpp
index cef595d75e0d..621e0468db68 100644
--- a/libc/benchmarks/LibcBenchmark.cpp
+++ b/libc/benchmarks/LibcBenchmark.cpp
@@ -15,7 +15,7 @@ namespace libc_benchmarks {
void checkRequirements() {
const auto &CpuInfo = benchmark::CPUInfo::Get();
- if (CpuInfo.scaling_enabled)
+ if (CpuInfo.scaling == benchmark::CPUInfo::ENABLED)
report_fatal_error(
"CPU scaling is enabled, the benchmark real time measurements may be "
"noisy and will incur extra overhead.");
More information about the libc-commits
mailing list