[all-commits] [llvm/llvm-project] f3ce5d: [libc++] Forward std::all_of and std::none_of to s...
Nikolas Klauser via All-commits
all-commits at lists.llvm.org
Mon Nov 24 02:10:02 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f3ce5dec690e11645e0b838132d3306b56c0ec97
https://github.com/llvm/llvm-project/commit/f3ce5dec690e11645e0b838132d3306b56c0ec97
Author: Nikolas Klauser <nikolasklauser at berlin.de>
Date: 2025-11-24 (Mon, 24 Nov 2025)
Changed paths:
M libcxx/include/__algorithm/all_of.h
M libcxx/include/__algorithm/none_of.h
A libcxx/test/std/algorithms/robust_against_nonbool.compile.pass.cpp
Log Message:
-----------
[libc++] Forward std::all_of and std::none_of to std::any_of (#167670)
This allows propagating optimizations to different algorithms by just
optimizing the lowest one. This is especially relevant now that we start
optimizing how we're iterating through ranges (e.g. the segmented
iterator optimizations) and adding assumptions so the compier can better
leverage semantics guaranteed by the standard (e.g.
`__builtin_assume_dereferenceable`).
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list