[libcxx-commits] [libcxx] [libc++] Try to make vector benchmarks less dependent on surrounding benchmarks (PR #213938)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Wed Aug 5 07:53:35 PDT 2026


================
@@ -35,6 +35,9 @@ void DoNotOptimizeData(Container& c) {
   }
 }
 
+// Align benchmark functions and never inline them to reduce changes in performance in unrelated benchmarks
+#define BENCHMARK_ATTRS [[gnu::aligned(128), gnu::noinline]]
----------------
ldionne wrote:

I think we could disable the extension warning within this function w/ a pragma, but I wouldn't disable it wholesale for the test suite.

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


More information about the libcxx-commits mailing list