Fields

hardware None
os None

Parameters

Fields

NameValue

Parameters

NameValue
git_commit commit 3bd71cbec75292f188bee3aaba2dc94c8955ad66
Author: Peng Liu <winner245@hotmail.com>
Date: Thu Mar 13 14:15:03 2025 -0400

[libc++] Fix ambiguous call in {ranges, std}::find (#122641)

This PR fixes an ambiguous call encountered when using the `std::ranges::find` or `std::find`
algorithms with `vector<bool>` with small `allocator_traits::size_type`s, an issue reported
in #122528. The ambiguity arises from integral promotions during the internal bitwise
arithmetic of the `find` algorithms when applied to `vector<bool>` with small integral
`size_type`s. This leads to multiple viable candidates for small integral types:
__libcpp_ctz(unsigned), __libcpp_ctz(unsigned long), and __libcpp_ctz(unsigned long long),
none of which represent a single best viable match, resulting in an ambiguous call error.

To resolve this, we propose invoking an internal function __countr_zero as a dispatcher
that directs the call to the appropriate overload of __libcpp_ctz. Necessary amendments
have also been made to __countr_zero.
Filter

ldionne-old-macbook-results test results

Run Order Start Time Duration
Current 530532 2025-12-16T16:40:01 0:00:00
Previous 529932 2025-12-16T16:40:01 0:00:00
Baseline 485288 2025-12-16T16:40:01 0:00:00


Tests Summary

Status Group # # (B)
Performance Regressions 1 0
Performance Improvements 4 0
Added Tests 0 18
Unchanged Tests 85 72
Total Tests 90

Performance Regressions - execution_time Δ Previous Current σ Δ (B) σ (B)
727_cppcheck_r 2.66% 24.399 25.048 - 0.00% -

Performance Improvements - execution_time Δ Previous Current σ Δ (B) σ (B)
707_ntest_r -2.72% 18.382 17.882 - 0.00% -
731_astcenc_r -2.72% 10.303 10.023 - 0.00% -
767_nest_r -1.28% 14.187 14.006 - 0.00% -
748_flightdm_r -1.05% 9.015 8.921 - 0.00% -

Added Tests - execution_time
706_stockfish_r
707_ntest_r
709_cactus_r
710_omnetpp_r
721_gcc_r
723_llvm_r
727_cppcheck_r
729_abc_r
731_astcenc_r
734_vpr_r
735_gem5_r
736_ocio_r
737_gmsh_r
748_flightdm_r
750_sealcrypto_r
753_ns3_r
766_femflow_r
767_nest_r


Report Time: 0.47s
Name Current %
706_stockfish_r 22.097 -
707_ntest_r 17.882 -2.72%
709_cactus_r 19.783 -
710_omnetpp_r 8.631 -
721_gcc_r 12.910 -
723_llvm_r 11.429 -
727_cppcheck_r 25.048 2.66%
729_abc_r 18.773 -
731_astcenc_r 10.023 -2.72%
734_vpr_r 15.461 -
735_gem5_r 13.841 -
736_ocio_r 16.200 -
737_gmsh_r 13.035 -
748_flightdm_r 8.921 -1.05%
750_sealcrypto_r 18.315 -
753_ns3_r 10.604 -
766_femflow_r 12.784 -
767_nest_r 14.006 -1.28%
Geometric Mean 14.340 -