[PATCH] D138757: [zero-call-used-regs] Mark only non-debug instruction's register as used
Shivam Gupta via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Jan 21 04:31:36 PST 2023
xgupta added a comment.
Hi,
I am not able to complete 2nd and 4th part. Any idea what may be wrong.
Thanks,
shivam
2. llvm-reduce IR
xgupta at archlinux ~/compiler/llvm-project/build/bin (arcpatch-D138757) $ ./llvm-reduce --test=test.sh pr57962.ll
Input isn't interesting! Verify interesting-ness test
xgupta at archlinux ~/compiler/llvm-project/build/bin (arcpatch-D138757) $ cat test.sh
#!/usr/bin/env bash
$HOME/compiler/llvm-project/build/bin/llc $1 |& grep PrologEpilogInserter
4. add the ; RUN: line to new_mir_test.mir: ; RUN: llc -run-pass=prolog-epilog-insertion ...
xgupta at archlinux ~/compiler/llvm-project (arcpatch-D138757?) $ ./llvm/utils/update_mir_test_checks.py llvm/test/CodeGen/X86/pr57962.mir
error: YAML:99:1: unknown key 'debugInstrRef'
debugInstrRef: true
^~~~~~~~~~~~~
WARNING: Error processing file: llvm/test/CodeGen/X86/pr57962.mir
Traceback (most recent call last):
File "/home/xgupta/compiler/llvm-project/./llvm/utils/update_mir_test_checks.py", line 456, in <module>
main()
File "/home/xgupta/compiler/llvm-project/./llvm/utils/update_mir_test_checks.py", line 449, in main
update_test_file(ti.args, ti.path, ti.test_autogenerated_note)
File "/home/xgupta/compiler/llvm-project/./llvm/utils/update_mir_test_checks.py", line 343, in update_test_file
raw_tool_output = args.llc_binary(llc_args, test)
File "/home/xgupta/compiler/llvm-project/./llvm/utils/update_mir_test_checks.py", line 74, in __call__
stdout = subprocess.check_output('{} {}'.format(self.bin, args),
File "/usr/lib/python3.10/subprocess.py", line 421, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib/python3.10/subprocess.py", line 526, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'llc -run-pass=prologepilog -o - -x mir' returned non-zero exit status 1.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D138757/new/
https://reviews.llvm.org/D138757
More information about the llvm-commits
mailing list