[all-commits] [llvm/llvm-project] 2b2022: [libc++][string] Improve constexpr performance

Vitaly Buka via All-commits all-commits at lists.llvm.org
Sat Oct 3 21:11:43 PDT 2026


  Branch: refs/heads/users/vitalybuka/spr/libcstring-improve-constexpr-performance
  Home:   https://github.com/llvm/llvm-project
  Commit: 2b202256ebe1b844f673fd036eb2234b3e00810d
      https://github.com/llvm/llvm-project/commit/2b202256ebe1b844f673fd036eb2234b3e00810d
  Author: Vitaly Buka <vitalybuka at google.com>
  Date:   2026-10-03 (Sat, 03 Oct 2026)

  Changed paths:
    M libcxx/include/string

  Log Message:
  -----------
  [libc++][string] Improve constexpr performance

Adding `if (__libcpp_is_constant_evaluated()) return` allows
significantly increase complexity of extression.

In case of Asan it changed from 1000 to 6000.

Pull Request: https://github.com/llvm/llvm-project/pull/184724



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