[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 12 06:23:02 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:

Based on live discussion just now, it seems that removing the alignment does make a difference.

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


More information about the libcxx-commits mailing list