[llvm] r348740 - [llvm-exegesis] Also check latency mode in local lit.
Clement Courbet via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 9 23:29:48 PST 2018
Author: courbet
Date: Sun Dec 9 23:29:47 2018
New Revision: 348740
URL: http://llvm.org/viewvc/llvm-project?rev=348740&view=rev
Log:
[llvm-exegesis] Also check latency mode in local lit.
Summary: This should avoid failing on old CPUs that do not have a cycle counter.
Subscribers: tschuett, llvm-commits
Differential Revision: https://reviews.llvm.org/D55416
Modified:
llvm/trunk/test/tools/llvm-exegesis/X86/lit.local.cfg
Modified: llvm/trunk/test/tools/llvm-exegesis/X86/lit.local.cfg
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-exegesis/X86/lit.local.cfg?rev=348740&r1=348739&r2=348740&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-exegesis/X86/lit.local.cfg (original)
+++ llvm/trunk/test/tools/llvm-exegesis/X86/lit.local.cfg Sun Dec 9 23:29:47 2018
@@ -20,10 +20,14 @@ else:
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
More information about the llvm-commits
mailing list