[libcxx-commits] [libcxx] [libc++] Vectorize trivially equality comparable types (PR #87716)

via libcxx-commits libcxx-commits at lists.llvm.org
Thu Apr 4 14:58:21 PDT 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff f5960c168dfe17c7599acea0a7d94a26545f4777 57dfddd37e7a85145e2d5cca2ca4b221e6c0f68c -- libcxx/include/__algorithm/mismatch.h libcxx/include/__algorithm/simd_utils.h libcxx/test/std/algorithms/alg.nonmodifying/mismatch/mismatch.pass.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/libcxx/include/__algorithm/mismatch.h b/libcxx/include/__algorithm/mismatch.h
index 81b072272d..c35b3ae26c 100644
--- a/libcxx/include/__algorithm/mismatch.h
+++ b/libcxx/include/__algorithm/mismatch.h
@@ -135,7 +135,7 @@ __mismatch(_Tp* __first1, _Tp* __last1, _Tp* __first2, _Pred& __pred, _Proj1& __
   } else {
     using __integer_t = __copy_cv_t<_Tp, __get_as_integer_type<_Tp>>;
     // This is valid because we disable TBAA when loading vectors. Alignment requirements still have to be fulfilled.
-    auto __ret        = std::__mismatch(
+    auto __ret = std::__mismatch(
         reinterpret_cast<__integer_t*>(__first1),
         reinterpret_cast<__integer_t*>(__last1),
         reinterpret_cast<__integer_t*>(__first2),

``````````

</details>


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


More information about the libcxx-commits mailing list