[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:56:10 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:

Could you check whether you actually need to align the code, or whether `noinline` is enough?

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


More information about the libcxx-commits mailing list