[PATCH] D95083: [lld][benchmark] Make path to LLD configurable
Jez Ng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 20 12:53:20 PST 2021
int3 created this revision.
int3 added a reviewer: lld-macho.
Herald added a reviewer: lebedev.ri.
Herald added a subscriber: lebedev.ri.
int3 requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
And record it in the Run Info so we can distinguish LLD-ELF vs
LLD-MachO runs on LNT.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D95083
Files:
lld/utils/benchmark.py
Index: lld/utils/benchmark.py
===================================================================
--- lld/utils/benchmark.py
+++ lld/utils/benchmark.py
@@ -24,6 +24,7 @@
parser = argparse.ArgumentParser()
parser.add_argument('benchmark_directory')
parser.add_argument('--runs', type=int, default=10)
+parser.add_argument('--lld', help='Path to the lld binary', default='../ld.lld')
parser.add_argument('--wrapper', default='')
parser.add_argument('--machine', required=True)
parser.add_argument('--revision', required=True)
@@ -109,7 +110,7 @@
os.chdir(bench.directory)
suffix = '-%s' % bench.variant if bench.variant else ''
response = 'response' + suffix + '.txt'
- ret = perf(['../ld.lld', '@' + response, '-o', 't'] + thread_arg)
+ ret = perf([args.lld, '@' + response, '-o', 't'] + thread_arg)
ret['name'] = str(bench)
os.chdir('..')
return ret
@@ -122,6 +123,7 @@
'format_version' : '2',
'machine' : { 'name' : args.machine },
'run' : {
+ 'lld_name': os.path.basename(args.lld),
'end_time' : start,
'start_time' : end,
'llvm_project_revision': args.revision
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D95083.317980.patch
Type: text/x-patch
Size: 1183 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210120/83660af8/attachment.bin>
More information about the llvm-commits
mailing list