[MLGO] Don't run the 'release' mode tests in non-autogenerated cases

This commit is contained in:
Mircea Trofin 2022-01-19 17:51:42 -08:00
parent b6a7ae2c5d
commit 30c17e70a4
5 changed files with 7 additions and 0 deletions

View File

@ -19,6 +19,7 @@ llvm_canonicalize_cmake_booleans(
LLVM_HAVE_TF_AOT
LLVM_HAVE_TF_API
LLVM_INLINER_MODEL_AUTOGENERATED
LLVM_RAEVICT_MODEL_AUTOGENERATED
LLVM_ENABLE_EXPENSIVE_CHECKS
)

View File

@ -1,5 +1,6 @@
; REQUIRES: have_tf_api
; REQUIRES: have_tf_aot
; REQUIRES: llvm_raevict_model_autogenerated
; REQUIRES: x86_64-linux
;
; Check that the same model (==the autogenerated one) produces the same output

View File

@ -1,5 +1,6 @@
; REQUIRES: have_tf_aot
; REQUIRES: x86_64-linux
; REQUIRES: llvm_raevict_model_autogenerated
;
; Check the code path for release mode is correctly taken. It is shared with
; development mode, and we separately test the internals of that (logged

View File

@ -257,6 +257,9 @@ if config.have_tf_api:
if config.llvm_inliner_model_autogenerated:
config.available_features.add("llvm_inliner_model_autogenerated")
if config.llvm_raevict_model_autogenerated:
config.available_features.add("llvm_raevict_model_autogenerated")
def have_cxx_shared_library():
readobj_exe = lit.util.which('llvm-readobj', config.llvm_tools_dir)
if not readobj_exe:

View File

@ -56,6 +56,7 @@ 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.llvm_inliner_model_autogenerated = @LLVM_INLINER_MODEL_AUTOGENERATED@
config.llvm_raevict_model_autogenerated = @LLVM_RAEVICT_MODEL_AUTOGENERATED@
config.expensive_checks = @LLVM_ENABLE_EXPENSIVE_CHECKS@
# Support substitution of the tools_dir with user parameters. This is