[libcxx-commits] [libcxx] 1d34025 - [libc++][PSTL] Disable `-Wpass-failed`.
Konstantin Varlamov via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Aug 4 15:11:49 PDT 2023
Author: Konstantin Varlamov
Date: 2023-08-04T15:11:36-07:00
New Revision: 1d340250a894b6ec956e2145b2fc7babbf83e61b
URL: https://github.com/llvm/llvm-project/commit/1d340250a894b6ec956e2145b2fc7babbf83e61b
DIFF: https://github.com/llvm/llvm-project/commit/1d340250a894b6ec956e2145b2fc7babbf83e61b.diff
LOG: [libc++][PSTL] Disable `-Wpass-failed`.
PSTL contains many pragmas that request loop vectorization, which would
produce a warning when the compiler is unable to fulfill the request (if
`-Wpass-failed` is enabled). This is normal and expected in some cases,
and we don't want `-Werror` to turn that into a compilation failure.
Differential Revision: https://reviews.llvm.org/D157145
Added:
Modified:
libcxx/utils/libcxx/test/params.py
Removed:
################################################################################
diff --git a/libcxx/utils/libcxx/test/params.py b/libcxx/utils/libcxx/test/params.py
index 0712bb41907fbc..a505096f6bb753 100644
--- a/libcxx/utils/libcxx/test/params.py
+++ b/libcxx/utils/libcxx/test/params.py
@@ -54,6 +54,9 @@
# TODO(philnik) This fails with the PSTL.
"-Wno-unknown-pragmas",
+ # Don't fail compilation in case the compiler fails to perform the requested
+ # loop vectorization.
+ "-Wno-pass-failed",
]
_allStandards = ["c++03", "c++11", "c++14", "c++17", "c++20", "c++23", "c++26"]
More information about the libcxx-commits
mailing list