forked from OSchip/llvm-project
[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 llvm-svn: 348740
This commit is contained in:
parent
84d62ce6c1
commit
7b475f3b41
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue