[all-commits] [llvm/llvm-project] 430410: Reapply "[libc++] Optimize std::find_if" (#175903)...

Nikolas Klauser via All-commits all-commits at lists.llvm.org
Thu Jan 15 01:17:07 PST 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4304106dc20c71b52fb06ca1fbdfd81f68d3c158
      https://github.com/llvm/llvm-project/commit/4304106dc20c71b52fb06ca1fbdfd81f68d3c158
  Author: Nikolas Klauser <nikolasklauser at berlin.de>
  Date:   2026-01-15 (Thu, 15 Jan 2026)

  Changed paths:
    M libcxx/include/CMakeLists.txt
    M libcxx/include/__algorithm/find_if.h
    A libcxx/include/__memory/valid_range.h
    M libcxx/include/__utility/is_pointer_in_range.h
    R libcxx/include/__utility/is_valid_range.h
    M libcxx/include/module.modulemap.in
    M libcxx/include/streambuf
    M libcxx/test/benchmarks/algorithms/nonmodifying/find.bench.cpp
    M libcxx/test/libcxx/utilities/is_valid_range.pass.cpp
    M libcxx/test/std/algorithms/alg.nonmodifying/alg.find/find_if.pass.cpp

  Log Message:
  -----------
  Reapply "[libc++] Optimize std::find_if" (#175903) (#175921)

#175913 removed that `__builtin_assume_dereferenceable(ptr, 0)` implies
`ptr != nullptr`, which should allow us to use the builtin with LLVM 23.

This reverts commit 776c09c212e945fdceeae240b42c38df3dd34727.



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