[PATCH] D55416: [llvm-exegesis] Also check latency mode in local lit.
Clement Courbet via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 7 00:59:07 PST 2018
courbet created this revision.
Herald added subscribers: llvm-commits, tschuett.
This should avoid failing on old CPUs that do not have a cycle counter.
Repository:
rL LLVM
https://reviews.llvm.org/D55416
Files:
test/tools/llvm-exegesis/X86/lit.local.cfg
Index: test/tools/llvm-exegesis/X86/lit.local.cfg
===================================================================
--- test/tools/llvm-exegesis/X86/lit.local.cfg
+++ test/tools/llvm-exegesis/X86/lit.local.cfg
@@ -20,10 +20,14 @@
else:
try:
with open(os.devnull, 'w') as quiet:
- check_llvm_exegesis_result = subprocess.call(
+ check_llvm_exegesis_uops_result = subprocess.call(
[llvm_exegesis_exe, '-mode', 'uops', '-snippets-file', '/dev/null'], stdout=quiet, stderr=quiet)
+ check_llvm_exegesis_latency_result = subprocess.call(
+ [llvm_exegesis_exe, '-mode', 'latency', '-snippets-file', '/dev/null'], stdout=quiet, stderr=quiet)
except OSError:
print('could not exec llvm-exegesis')
config.unsupported = True
- if not check_llvm_exegesis_result == 0:
+ if not check_llvm_exegesis_uops_result == 0:
+ config.unsupported = True
+ if not check_llvm_exegesis_latency_result == 0:
config.unsupported = True
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55416.177140.patch
Type: text/x-patch
Size: 1063 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181207/5b8a1ea6/attachment.bin>
More information about the llvm-commits
mailing list