[llvm] aaf120b - [llvm-profgen] A couple tweaks to the testing harness.

Hongtao Yu via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 22 08:57:45 PDT 2021


Author: Hongtao Yu
Date: 2021-04-22T08:57:14-07:00
New Revision: aaf120b5282d6a89ed9bd0735dae3b7861a25129

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

LOG: [llvm-profgen] A couple tweaks to the testing harness.

1. Remove unnecessary filtering code.
2. Add llvm-profgen to tool substitutions.

Reviewed By: wenlei

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

Added: 
    

Modified: 
    llvm/test/lit.cfg.py
    llvm/test/tools/llvm-profgen/lit.local.cfg

Removed: 
    


################################################################################
diff  --git a/llvm/test/lit.cfg.py b/llvm/test/lit.cfg.py
index 89c7497d0cdfd..c66f6de56b8af 100644
--- a/llvm/test/lit.cfg.py
+++ b/llvm/test/lit.cfg.py
@@ -161,7 +161,7 @@ def get_asan_rtlib():
     'llvm-install-name-tool', 'llvm-jitlink', 'llvm-opt-fuzzer', 'llvm-lib',
     'llvm-link', 'llvm-lto', 'llvm-lto2', 'llvm-mc', 'llvm-mca',
     'llvm-modextract', 'llvm-nm', 'llvm-objcopy', 'llvm-objdump', 'llvm-otool',
-    'llvm-pdbutil', 'llvm-profdata', 'llvm-ranlib', 'llvm-rc', 'llvm-readelf',
+    'llvm-pdbutil', 'llvm-profdata', 'llvm-profgen', 'llvm-ranlib', 'llvm-rc', 'llvm-readelf',
     'llvm-readobj', 'llvm-rtdyld', 'llvm-size', 'llvm-split', 'llvm-strings',
     'llvm-strip', 'llvm-tblgen', 'llvm-undname', 'llvm-c-test', 'llvm-cxxfilt',
     'llvm-xray', 'yaml2obj', 'obj2yaml', 'yaml-bench', 'verify-uselistorder',

diff  --git a/llvm/test/tools/llvm-profgen/lit.local.cfg b/llvm/test/tools/llvm-profgen/lit.local.cfg
index a3659352f252f..197150e220e86 100644
--- a/llvm/test/tools/llvm-profgen/lit.local.cfg
+++ b/llvm/test/tools/llvm-profgen/lit.local.cfg
@@ -2,8 +2,6 @@ import subprocess
 import lit.util
 
 config.suffixes = ['.test', '.ll', '.s', '.yaml']
-if not lit.util.which("llvm-profgen", config.llvm_tools_dir):
-  config.unsupported = True
 
 if not 'X86' in config.root.targets:
   config.unsupported = True


        


More information about the llvm-commits mailing list