[libcxx-commits] [libcxx] [libc++] Ensure that we vectorize algorithms on all Clang-based compilers (PR #132090)
Mark de Wever via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Mar 19 13:10:07 PDT 2025
================
@@ -0,0 +1,19 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+// We don't know how to vectorize algorithms on GCC
+// XFAIL: gcc
+
+// This test ensures that we enable the vectorization of algorithms on the expected
+// platforms.
+
+#include <algorithm>
+
+#if !_LIBCPP_VECTORIZE_ALGORITHMS
----------------
mordante wrote:
This seems slightly better.
```suggestion
#if !defined(_LIBCPP_VECTORIZE_ALGORITHMS) || !_LIBCPP_VECTORIZE_ALGORITHMS
```
https://github.com/llvm/llvm-project/pull/132090
More information about the libcxx-commits
mailing list