aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorNikolas Klauser <nikolasklauser@berlin.de>2023-10-22 13:56:08 +0200
committerNikolas Klauser <nikolasklauser@berlin.de>2023-11-14 23:55:24 +0100
commitc81bfc61da7e3a17a0ecd42ad049c9cd74384192 (patch)
tree933b82ff9db840377debca695d71fb00dcc1e2b7 /clang/lib/CodeGen/CodeGenFunction.cpp
parent6726c99f8893c4a7bce00059416cb462237c64a0 (diff)
downloadllvm-c81bfc61da7e3a17a0ecd42ad049c9cd74384192.zip
llvm-c81bfc61da7e3a17a0ecd42ad049c9cd74384192.tar.gz
llvm-c81bfc61da7e3a17a0ecd42ad049c9cd74384192.tar.bz2
[libc++] Optimize for_each for segmented iterators
``` --------------------------------------------------- Benchmark old new --------------------------------------------------- bm_for_each/1 3.00 ns 2.98 ns bm_for_each/2 4.53 ns 4.57 ns bm_for_each/3 5.82 ns 5.82 ns bm_for_each/4 6.94 ns 6.91 ns bm_for_each/5 7.55 ns 7.75 ns bm_for_each/6 7.06 ns 7.45 ns bm_for_each/7 6.69 ns 7.14 ns bm_for_each/8 6.86 ns 4.06 ns bm_for_each/16 11.5 ns 5.73 ns bm_for_each/64 43.7 ns 4.06 ns bm_for_each/512 356 ns 7.98 ns bm_for_each/4096 2787 ns 53.6 ns bm_for_each/32768 20836 ns 438 ns bm_for_each/262144 195362 ns 4945 ns bm_for_each/1048576 685482 ns 19822 ns ``` Reviewed By: ldionne, Mordante, #libc Spies: bgraur, sberg, arichardson, libcxx-commits Differential Revision: https://reviews.llvm.org/D151274
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions