From: NAKAMURA Takumi Date: Wed, 7 Jun 2017 00:22:52 +0000 (+0000) Subject: Introduce the new feature "abi-breaking-checks" to satisfy -reverse-iterate in llvm... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4e7fb91232f427a157e9e765e0552c308578b1df;p=llvm Introduce the new feature "abi-breaking-checks" to satisfy -reverse-iterate in llvm/test/Transforms/Util/PredicateInfo/ A few tests in llvm/test/Transforms/Util/PredicateInfo/ are using -reverse-iterate. The option -reverse-iterate is enabled with +Asserts in usual cases, but it can be turned on/off regardless of LLVM_ENABLE_ASSERTIONS. I wonder if this were incompatible to https://reviews.llvm.org/D33908 (r304757). Differential Revision: https://reviews.llvm.org/D33854 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@304851 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Transforms/Util/PredicateInfo/condprop2.ll b/test/Transforms/Util/PredicateInfo/condprop2.ll index 415fa7c879e..facd22f5b7a 100644 --- a/test/Transforms/Util/PredicateInfo/condprop2.ll +++ b/test/Transforms/Util/PredicateInfo/condprop2.ll @@ -1,4 +1,4 @@ -; REQUIRES: asserts +; REQUIRES: abi-breaking-checks ; NOTE: The flag -reverse-iterate is present only in a +Asserts build. ; Hence, this test has been split from condprop.ll to test with -reverse-iterate. ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py diff --git a/test/Transforms/Util/PredicateInfo/testandor2.ll b/test/Transforms/Util/PredicateInfo/testandor2.ll index a03250c2f7a..a1b9c62040c 100644 --- a/test/Transforms/Util/PredicateInfo/testandor2.ll +++ b/test/Transforms/Util/PredicateInfo/testandor2.ll @@ -1,4 +1,4 @@ -; REQUIRES: asserts +; REQUIRES: abi-breaking-checks ; NOTE: The flag -reverse-iterate is present only in a +Asserts build. ; Hence, this test has been split from testandor.ll to test with -reverse-iterate. ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py diff --git a/test/lit.cfg b/test/lit.cfg index e9916b2a60e..5e903c26657 100644 --- a/test/lit.cfg +++ b/test/lit.cfg @@ -546,3 +546,6 @@ llvm_config_cmd.wait() if config.have_libxar: config.available_features.add('xar') + +if config.enable_abi_breaking_checks == "1": + config.available_features.add('abi-breaking-checks') diff --git a/test/lit.site.cfg.in b/test/lit.site.cfg.in index b6a8b8b17bc..f95f6d8ec9a 100644 --- a/test/lit.site.cfg.in +++ b/test/lit.site.cfg.in @@ -24,6 +24,7 @@ config.include_go_tests = @LLVM_INCLUDE_GO_TESTS@ config.go_executable = "@GO_EXECUTABLE@" config.enable_shared = @ENABLE_SHARED@ config.enable_assertions = @ENABLE_ASSERTIONS@ +config.enable_abi_breaking_checks = "@LLVM_ENABLE_ABI_BREAKING_CHECKS@" config.targets_to_build = "@TARGETS_TO_BUILD@" config.native_target = "@LLVM_NATIVE_ARCH@" config.llvm_bindings = "@LLVM_BINDINGS@".split(' ')