diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2024-07-04 12:01:29 +0100 |
---|---|---|
committer | Thomas Koenig <tkoenig@gcc.gnu.org> | 2024-07-28 19:06:02 +0200 |
commit | 7ad3d3303bbc2c3fd78f91dee96b1c023f9a2744 (patch) | |
tree | ce4a6e4e0122167f79f087cb099f0256f971f597 /libjava/classpath | |
parent | 64948288f673b6b7e5083081c019d6ef50e6e04d (diff) | |
download | gcc-7ad3d3303bbc2c3fd78f91dee96b1c023f9a2744.zip gcc-7ad3d3303bbc2c3fd78f91dee96b1c023f9a2744.tar.gz gcc-7ad3d3303bbc2c3fd78f91dee96b1c023f9a2744.tar.bz2 |
libstdc++: Remove __find_if unrolling for random access iterators
As the numbers in PR libstdc++/88545 show, the manual loop unrolling in
std::__find_if doesn't actually help these days, and it prevents the
compiler from auto-vectorizing.
Remove the dispatching on iterator_category and just use the simple loop
for all iterator categories.
libstdc++-v3/ChangeLog:
* include/bits/stl_algobase.h (__find_if): Remove overloads for
dispatching on iterator_category. Do not unroll loop manually.
* include/bits/stl_algo.h (__find_if_not): Remove
iterator_category argument from __find_if call.
Diffstat (limited to 'libjava/classpath')
0 files changed, 0 insertions, 0 deletions