diff options
author | Peng Liu <winner245@hotmail.com> | 2025-03-04 17:15:36 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-04 17:15:36 -0500 |
commit | a12744ff05bbc2d0de711afb8b3a1c7a03a33914 (patch) | |
tree | f962ce00e4d60322b88e114d474b4f29cc5ca2ac /llvm/lib/Transforms/Utils/InlineFunction.cpp | |
parent | b08769c3ec7ef486fd9b8a315856af53c5a58957 (diff) | |
download | llvm-a12744ff05bbc2d0de711afb8b3a1c7a03a33914.zip llvm-a12744ff05bbc2d0de711afb8b3a1c7a03a33914.tar.gz llvm-a12744ff05bbc2d0de711afb8b3a1c7a03a33914.tar.bz2 |
[libc++] Optimize ranges::swap_ranges for vector<bool>::iterator (#121150)
This PR optimizes the performance of `std::ranges::swap_ranges` for
`vector<bool>::iterator`, addressing a subtask outlined in issue #64038.
The optimizations yield performance improvements of up to **611x** for
aligned range swap and **78x** for unaligned range swap comparison.
Additionally, comprehensive tests covering up to 4 storage words (256
bytes) with odd and even bit sizes are provided, which validate the
proposed optimizations in this patch.
Diffstat (limited to 'llvm/lib/Transforms/Utils/InlineFunction.cpp')
0 files changed, 0 insertions, 0 deletions