[PATCH] D141257: [LoongArch] Implement mayBeEmittedAsTailCall for tail call optimization

wanglei via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jan 8 23:30:10 PST 2023


wangleiat created this revision.
wangleiat added reviewers: SixWeining, xen0n, xry111, MaskRay, gonglingqin.
Herald added a subscriber: hiraditya.
Herald added a project: All.
wangleiat requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Implements TargetLowering callback `mayBeEmittedAsTailCall` that enables
CodeGenPrepare to duplicate returns when they might enable a tail-call.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D141257

Files:
  llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
  llvm/lib/Target/LoongArch/LoongArchISelLowering.h
  llvm/test/CodeGen/LoongArch/bnez-beqz.ll
  llvm/test/CodeGen/LoongArch/duplicate-returns-for-tailcall.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D141257.487299.patch
Type: text/x-patch
Size: 7595 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230109/e929a967/attachment.bin>


More information about the llvm-commits mailing list