[llvm] r304851 - Introduce the new feature "abi-breaking-checks" to satisfy -reverse-iterate in llvm/test/Transforms/Util/PredicateInfo/

NAKAMURA Takumi via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 6 17:22:53 PDT 2017


Author: chapuni
Date: Tue Jun  6 19:22:52 2017
New Revision: 304851

URL: http://llvm.org/viewvc/llvm-project?rev=304851&view=rev
Log:
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

Modified:
    llvm/trunk/test/Transforms/Util/PredicateInfo/condprop2.ll
    llvm/trunk/test/Transforms/Util/PredicateInfo/testandor2.ll
    llvm/trunk/test/lit.cfg
    llvm/trunk/test/lit.site.cfg.in

Modified: llvm/trunk/test/Transforms/Util/PredicateInfo/condprop2.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Util/PredicateInfo/condprop2.ll?rev=304851&r1=304850&r2=304851&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Util/PredicateInfo/condprop2.ll (original)
+++ llvm/trunk/test/Transforms/Util/PredicateInfo/condprop2.ll Tue Jun  6 19:22:52 2017
@@ -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

Modified: llvm/trunk/test/Transforms/Util/PredicateInfo/testandor2.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Util/PredicateInfo/testandor2.ll?rev=304851&r1=304850&r2=304851&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Util/PredicateInfo/testandor2.ll (original)
+++ llvm/trunk/test/Transforms/Util/PredicateInfo/testandor2.ll Tue Jun  6 19:22:52 2017
@@ -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

Modified: llvm/trunk/test/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/lit.cfg?rev=304851&r1=304850&r2=304851&view=diff
==============================================================================
--- llvm/trunk/test/lit.cfg (original)
+++ llvm/trunk/test/lit.cfg Tue Jun  6 19:22:52 2017
@@ -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')

Modified: llvm/trunk/test/lit.site.cfg.in
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/lit.site.cfg.in?rev=304851&r1=304850&r2=304851&view=diff
==============================================================================
--- llvm/trunk/test/lit.site.cfg.in (original)
+++ llvm/trunk/test/lit.site.cfg.in Tue Jun  6 19:22:52 2017
@@ -24,6 +24,7 @@ config.include_go_tests = @LLVM_INCLUDE_
 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(' ')




More information about the llvm-commits mailing list