[PATCH] D131263: [RISCV] Do tail call when parameters are passed by stack

luxufan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 5 08:14:19 PDT 2022


StephenFan created this revision.
StephenFan added reviewers: asb, craig.topper, jrtc27.
Herald added subscribers: sunshaoce, VincentWu, luke957, vkmr, frasercrmck, evandro, luismarques, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, shiva0217, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar, hiraditya, arichardson.
Herald added a project: All.
StephenFan requested review of this revision.
Herald added subscribers: llvm-commits, pcwang-thead, eopXD, MaskRay.
Herald added a project: LLVM.

If parameters are passed by stack and their stack offsets are consistent
with stack offsets of caller's passed by stack parameters, tail call
optimization is feasible.

Fix https://github.com/llvm/llvm-project/issues/56908


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D131263

Files:
  llvm/lib/Target/RISCV/RISCVISelLowering.cpp
  llvm/lib/Target/RISCV/RISCVISelLowering.h
  llvm/test/CodeGen/RISCV/tail-calls.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D131263.450293.patch
Type: text/x-patch
Size: 5785 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220805/e46f8d49/attachment.bin>


More information about the llvm-commits mailing list