[llvm] 1321160 - Disable a large test for EXPENSIVE_CHECKS and debug build

via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 16 14:57:51 PDT 2020


Author: jasonliu
Date: 2020-09-16T21:57:34Z
New Revision: 1321160a26e7e489baf9b10d6de90a342f898960

URL: https://github.com/llvm/llvm-project/commit/1321160a26e7e489baf9b10d6de90a342f898960
DIFF: https://github.com/llvm/llvm-project/commit/1321160a26e7e489baf9b10d6de90a342f898960.diff

LOG: Disable a large test for EXPENSIVE_CHECKS and debug build

Summary:
When running a large test in LLVM_ENABLE_EXPENSIVE_CHECKS=ON mode,
buildbot could hit timeout.
Disable the test when this mode is on.
Also disable it for debug so that the test won't hang for too long.

Reviewed By: hubert.reinterpretcast

Differential Revision: https://reviews.llvm.org/D87794

Added: 
    

Modified: 
    llvm/test/CMakeLists.txt
    llvm/test/CodeGen/PowerPC/aix-overflow-toc.py
    llvm/test/lit.cfg.py
    llvm/test/lit.site.cfg.py.in

Removed: 
    


################################################################################
diff  --git a/llvm/test/CMakeLists.txt b/llvm/test/CMakeLists.txt
index 772ff0fd5f78..12f564178af0 100644
--- a/llvm/test/CMakeLists.txt
+++ b/llvm/test/CMakeLists.txt
@@ -17,6 +17,7 @@ llvm_canonicalize_cmake_booleans(
   LLVM_BYE_LINK_INTO_TOOLS
   LLVM_HAVE_TF_AOT
   LLVM_HAVE_TF_API
+  LLVM_ENABLE_EXPENSIVE_CHECKS
   )
 
 configure_lit_site_cfg(

diff  --git a/llvm/test/CodeGen/PowerPC/aix-overflow-toc.py b/llvm/test/CodeGen/PowerPC/aix-overflow-toc.py
index 870f83739dc0..f2263a31be8b 100644
--- a/llvm/test/CodeGen/PowerPC/aix-overflow-toc.py
+++ b/llvm/test/CodeGen/PowerPC/aix-overflow-toc.py
@@ -1,4 +1,4 @@
-# REQUIRES: system-aix || system-linux
+# UNSUPPORTED: expensive_checks, debug
 
 # RUN: python %s > %t.ll
 # RUN: llc -mtriple powerpc-ibm-aix-xcoff -code-model=small -mcpu=pwr4 -mattr=-altivec -O0 < %t.ll | \

diff  --git a/llvm/test/lit.cfg.py b/llvm/test/lit.cfg.py
index 3c4cb9c32065..9a1dd4ebc5a4 100644
--- a/llvm/test/lit.cfg.py
+++ b/llvm/test/lit.cfg.py
@@ -330,7 +330,8 @@ def have_ld64_plugin_support():
 
 # Ask llvm-config about asserts
 llvm_config.feature_config(
-    [('--assertion-mode', {'ON': 'asserts'})])
+    [('--assertion-mode', {'ON': 'asserts'}),
+     ('--build-mode', {'[Dd][Ee][Bb][Uu][Gg]': 'debug'})])
 
 if 'darwin' == sys.platform:
     cmd = ['sysctl', 'hw.optional.fma']
@@ -361,3 +362,6 @@ def have_ld64_plugin_support():
 
 if config.have_opt_viewer_modules:
     config.available_features.add('have_opt_viewer_modules')
+
+if config.expensive_checks:
+    config.available_features.add('expensive_checks')

diff  --git a/llvm/test/lit.site.cfg.py.in b/llvm/test/lit.site.cfg.py.in
index 0e77c1087ac1..9765d498b50d 100644
--- a/llvm/test/lit.site.cfg.py.in
+++ b/llvm/test/lit.site.cfg.py.in
@@ -50,6 +50,7 @@ config.has_plugins = @LLVM_ENABLE_PLUGINS@
 config.linked_bye_extension = @LLVM_BYE_LINK_INTO_TOOLS@
 config.have_tf_aot = @LLVM_HAVE_TF_AOT@
 config.have_tf_api = @LLVM_HAVE_TF_API@
+config.expensive_checks = @LLVM_ENABLE_EXPENSIVE_CHECKS@
 
 # Support substitution of the tools_dir with user parameters. This is
 # used when we can't determine the tool dir at configuration time.


        


More information about the llvm-commits mailing list