[libcxx-commits] [libcxx] Fix __mismatch under _LIBCPP_VECTORIZE_ALGORITHMS guard (PR #91995)
via libcxx-commits
libcxx-commits at lists.llvm.org
Tue May 14 11:59:33 PDT 2024
https://github.com/zibi2 updated https://github.com/llvm/llvm-project/pull/91995
>From 63103a11a3888f6d2846c09c6c811d11b9904e36 Mon Sep 17 00:00:00 2001
From: Zibi Sarbinowski <zibi at ca.ibm.com>
Date: Mon, 13 May 2024 11:38:30 -0500
Subject: [PATCH] Fix __native_vector_size for z/OS
---
libcxx/include/__algorithm/simd_utils.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libcxx/include/__algorithm/simd_utils.h b/libcxx/include/__algorithm/simd_utils.h
index 8d540ae2cce88..1d9e5d29320d8 100644
--- a/libcxx/include/__algorithm/simd_utils.h
+++ b/libcxx/include/__algorithm/simd_utils.h
@@ -46,7 +46,7 @@ _LIBCPP_BEGIN_NAMESPACE_STD
// This isn't specialized for 64 byte vectors on purpose. They have the potential to significantly reduce performance
// in mixed simd/non-simd workloads and don't provide any performance improvement for currently vectorized algorithms
// as far as benchmarks are concerned.
-# if defined(__AVX__)
+# if defined(__AVX__) || defined(__MVS__)
template <class _Tp>
inline constexpr size_t __native_vector_size = 32 / sizeof(_Tp);
# elif defined(__SSE__) || defined(__ARM_NEON__)
More information about the libcxx-commits
mailing list