From aaf120b5282d6a89ed9bd0735dae3b7861a25129 Mon Sep 17 00:00:00 2001 From: Hongtao Yu Date: Wed, 21 Apr 2021 18:02:11 -0700 Subject: [PATCH] [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 --- llvm/test/lit.cfg.py | 2 +- llvm/test/tools/llvm-profgen/lit.local.cfg | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/llvm/test/lit.cfg.py b/llvm/test/lit.cfg.py index 89c7497d0cdf..c66f6de56b8a 100644 --- a/llvm/test/lit.cfg.py +++ b/llvm/test/lit.cfg.py @@ -161,7 +161,7 @@ tools.extend([ '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 a3659352f252..197150e220e8 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