[libcxx-commits] [libcxx] [libc++] Vectorize std::find (PR #156431)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Tue Sep 23 07:31:44 PDT 2025


================
@@ -108,19 +108,26 @@ using __simd_vector_underlying_type_t _LIBCPP_NODEBUG = decltype(std::__simd_vec
 
 // This isn't inlined without always_inline when loading chars.
 template <class _VecT, class _Iter>
-[[__nodiscard__]] _LIBCPP_ALWAYS_INLINE _LIBCPP_HIDE_FROM_ABI _VecT __load_vector(_Iter __iter) noexcept {
+[[__nodiscard__]] _LIBCPP_ALWAYS_INLINE _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR _VecT
----------------
ldionne wrote:

```suggestion
[[__nodiscard__]] _LIBCPP_ALWAYS_INLINE _LIBCPP_HIDE_FROM_ABI _VecT
```

https://github.com/llvm/llvm-project/pull/156431


More information about the libcxx-commits mailing list