[llvm-branch-commits] [libcxx] d489df7 - [libc++][PSTL] Disable `-Wpass-failed`.

Tobias Hieta via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Aug 21 01:08:11 PDT 2023


Author: Konstantin Varlamov
Date: 2023-08-21T09:51:54+02:00
New Revision: d489df7cfbfbb30a6440e2961106bd2f832f1494

URL: https://github.com/llvm/llvm-project/commit/d489df7cfbfbb30a6440e2961106bd2f832f1494
DIFF: https://github.com/llvm/llvm-project/commit/d489df7cfbfbb30a6440e2961106bd2f832f1494.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

(cherry picked from commit 1d340250a894b6ec956e2145b2fc7babbf83e61b)

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 2e14a64185c7c6..f43c634a1644fc 100644
--- a/libcxx/utils/libcxx/test/params.py
+++ b/libcxx/utils/libcxx/test/params.py
@@ -51,6 +51,10 @@
     # Disable warnings for extensions used in C++03
     "-Wno-local-type-template-args",
     "-Wno-c++11-extensions",
+
+    # 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 llvm-branch-commits mailing list