[libcxx-commits] [libcxx] [libc++] Remove hardcoded -O3 from adjacent_view benchmark (PR #181376)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Feb 13 07:40:57 PST 2026
https://github.com/ldionne created https://github.com/llvm/llvm-project/pull/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.
>From e105ac5087c898eb1bdfab3b1d3091893e7ba9ef Mon Sep 17 00:00:00 2001
From: Louis Dionne <ldionne.2 at gmail.com>
Date: Fri, 13 Feb 2026 10:39:16 -0500
Subject: [PATCH] [libc++] Remove hardcoded -O3 from adjacent_view benchmark
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.
---
libcxx/test/benchmarks/adjacent_view_begin.bench.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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