Open lqcd opened 2 years ago
@llvm/issue-subscribers-backend-risc-v
For llvm's RISCV target, tail call is disabled if the stack is used for passing parameters. But it seems that if the stack offset of the parameter that passed by stack is consistent with the formal argument's stack offset, tail call optimization call be enabled. And ARM target does that. I am referencing arm's implementation to achieve this.
__attribute__((musttail))
crashes the RISCV backend in version 14.0.6 when runningwith
reg-args.c
in the attached tarball.There is no
/Users/avp/Library/Logs/DiagnosticReports/clang-14*
files,report.crash
is stderr clang-14-report.tar.gz