[libcxx-commits] [libcxx] 7a2a377 - [libc++] Remove hardcoded -O3 from adjacent_view benchmark (#181376)
via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Feb 13 11:05:31 PST 2026
Author: Louis Dionne
Date: 2026-02-13T14:05:26-05:00
New Revision: 7a2a3774a6b71266b86a87afab0bb24b104d6260
URL: https://github.com/llvm/llvm-project/commit/7a2a3774a6b71266b86a87afab0bb24b104d6260
DIFF: https://github.com/llvm/llvm-project/commit/7a2a3774a6b71266b86a87afab0bb24b104d6260.diff
LOG: [libc++] Remove hardcoded -O3 from adjacent_view benchmark (#181376)
We don't hardcode optimization flags in the benchmarks, because we want
to be able to run the benchmarks with any optimization level. Instead,
we set the optimization level when running Lit via the --param
optimization=<speed|size|...> flag.
Added:
Modified:
libcxx/test/benchmarks/adjacent_view_begin.bench.cpp
Removed:
################################################################################
diff --git a/libcxx/test/benchmarks/adjacent_view_begin.bench.cpp b/libcxx/test/benchmarks/adjacent_view_begin.bench.cpp
index 9d45b938dfe95..568b51f372d18 100644
--- a/libcxx/test/benchmarks/adjacent_view_begin.bench.cpp
+++ b/libcxx/test/benchmarks/adjacent_view_begin.bench.cpp
@@ -7,7 +7,7 @@
//===----------------------------------------------------------------------===//
// UNSUPPORTED: c++03, c++11, c++14, c++17, c++20
-// ADDITIONAL_COMPILE_FLAGS: -O3
+
#include <algorithm>
#include <deque>
#include <ranges>
More information about the libcxx-commits
mailing list