[libcxx-commits] [PATCH] D131836: [libc++][CI] increases constexpr evaluation limit.
Mark de Wever via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Aug 13 06:18:29 PDT 2022
Mordante created this revision.
Herald added a subscriber: arichardson.
Herald added a project: All.
Mordante requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.
This was discovered as an issue in D131317 <https://reviews.llvm.org/D131317>.
Depends on D131835 <https://reviews.llvm.org/D131835>
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D131836
Files:
libcxx/utils/libcxx/test/features.py
Index: libcxx/utils/libcxx/test/features.py
===================================================================
--- libcxx/utils/libcxx/test/features.py
+++ libcxx/utils/libcxx/test/features.py
@@ -39,6 +39,16 @@
when=lambda cfg: hasCompileFlag(cfg, '-Wuser-defined-warnings'),
actions=[AddCompileFlag('-Wuser-defined-warnings')]),
+ # The default maximum number of operations in a constexpr function are too
+ # small for some tests. A "correct" value has been determined empirical.
+ Feature(name='clang-constexpr-steps',
+ when=lambda cfg: hasCompileFlag(cfg, '-fconstexpr-steps=1'),
+ actions=[AddCompileFlag('-fconstexpr-steps=128000000')]),
+
+ Feature(name='gcc-constexpr-steps',
+ when=lambda cfg: hasCompileFlag(cfg, '-fconstexpr-ops-limit=1'),
+ actions=[AddCompileFlag('-fconstexpr-ops-limit=128000000')]),
+
Feature(name='has-fblocks', when=lambda cfg: hasCompileFlag(cfg, '-fblocks')),
Feature(name='-fsized-deallocation', when=lambda cfg: hasCompileFlag(cfg, '-fsized-deallocation')),
Feature(name='-faligned-allocation', when=lambda cfg: hasCompileFlag(cfg, '-faligned-allocation')),
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D131836.452419.patch
Type: text/x-patch
Size: 1208 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20220813/b3b75d70/attachment-0001.bin>
More information about the libcxx-commits
mailing list