Commit 798b4155 by Jan Voung

Subzero: give crosstest .sz intermediate files names that depend on flags

Currently only the output has a unique name (supplied by the invocation), but the intermediate files (.sz.s, .sz.o) can get overwritten (w/ different optlevels, or targets). Would be nice to keep them around for debugging. (bug may happen for Om1 but not O2). BUG=none R=stichnot@chromium.org Review URL: https://codereview.chromium.org/333713004
parent 1248a6d1
...@@ -82,8 +82,9 @@ if __name__ == '__main__': ...@@ -82,8 +82,9 @@ if __name__ == '__main__':
f.write(line) f.write(line)
f.close() f.close()
asm_sz = os.path.join(args.dir, base + '.sz.s') base_sz = '%s.O%s.%s' % (base, args.optlevel, args.target)
obj_sz = os.path.join(args.dir, base + '.sz.o') asm_sz = os.path.join(args.dir, base_sz + '.sz.s')
obj_sz = os.path.join(args.dir, base_sz + '.sz.o')
obj_llc = os.path.join(args.dir, base + '.llc.o') obj_llc = os.path.join(args.dir, base + '.llc.o')
shellcmd(['../llvm2ice', shellcmd(['../llvm2ice',
'-O' + args.optlevel, '-O' + args.optlevel,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment