[PATCH] D101006: [llvm-profgen] Couple tweaks to the testing harness.

Hongtao Yu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 21 18:02:31 PDT 2021


hoy created this revision.
Herald added a subscriber: wenlei.
hoy requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

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


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D101006

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


Index: llvm/test/tools/llvm-profgen/lit.local.cfg
===================================================================
--- llvm/test/tools/llvm-profgen/lit.local.cfg
+++ llvm/test/tools/llvm-profgen/lit.local.cfg
@@ -2,8 +2,6 @@
 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
Index: llvm/test/lit.cfg.py
===================================================================
--- llvm/test/lit.cfg.py
+++ llvm/test/lit.cfg.py
@@ -161,7 +161,7 @@
     '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',


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D101006.339432.patch
Type: text/x-patch
Size: 1265 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210422/5428d4d4/attachment.bin>


More information about the llvm-commits mailing list