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 530529 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 2 0
Performance Improvements 3 0
Added Tests 0 18
Unchanged Tests 85 72
Total Tests 90

Performance Regressions - execution_time Δ Previous Current σ Δ (B) σ (B)
710_omnetpp_r 2.60% 8.412 8.631 - 0.00% -
734_vpr_r 1.73% 15.197 15.461 - 0.00% -

Performance Improvements - execution_time Δ Previous Current σ Δ (B) σ (B)
707_ntest_r -3.83% 18.595 17.882 - 0.00% -
767_nest_r -1.62% 14.236 14.006 - 0.00% -
753_ns3_r -1.07% 10.719 10.604 - 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.11s
Name Current %
706_stockfish_r 22.097 -
707_ntest_r 17.882 -3.83%
709_cactus_r 19.783 -
710_omnetpp_r 8.631 2.60%
721_gcc_r 12.910 -
723_llvm_r 11.429 -
727_cppcheck_r 25.048 -
729_abc_r 18.773 -
731_astcenc_r 10.023 -
734_vpr_r 15.461 1.73%
735_gem5_r 13.841 -
736_ocio_r 16.200 -
737_gmsh_r 13.035 -
748_flightdm_r 8.921 -
750_sealcrypto_r 18.315 -
753_ns3_r 10.604 -1.07%
766_femflow_r 12.784 -
767_nest_r 14.006 -1.62%
Geometric Mean 14.340 -