[libcxx-commits] [libcxx] [libc++] Remove hardcoded -O3 from adjacent_view benchmark (PR #181376)

via libcxx-commits libcxx-commits at lists.llvm.org
Fri Feb 13 07:41:39 PST 2026


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libcxx

Author: Louis Dionne (ldionne)

<details>
<summary>Changes</summary>

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.

---
Full diff: https://github.com/llvm/llvm-project/pull/181376.diff


1 Files Affected:

- (modified) libcxx/test/benchmarks/adjacent_view_begin.bench.cpp (+1-1) 


``````````diff
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>

``````````

</details>


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


More information about the libcxx-commits mailing list