[PATCH] D67580: [AArch64][GlobalISel] Support -tailcallopt
Jessica Paquette via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 13 15:54:14 PDT 2019
paquette created this revision.
paquette added a reviewer: aemerson.
Herald added subscribers: Petar.Avramovic, hiraditya, kristof.beyls, rovka.
Herald added a project: LLVM.
This adds support for `-tailcallopt` tail calls to CallLowering. This piggy-backs off the changes from D67577 <https://reviews.llvm.org/D67577>, since doing it without a bit of refactoring gets extremely ugly.
Support is basically ported from AArch64ISelLowering. The main difference here is that tail calls in `-tailcallopt` change the ABI, so there's some extra bookkeeping for the stack.
Show that we are correctly lowering these by updating tail-call.ll.
Also show that we don't do anything strange in general by updating fastcc-reserved.ll, which passes `-tailcallopt`, but doesn't emit any tail calls.
https://reviews.llvm.org/D67580
Files:
llvm/lib/Target/AArch64/AArch64CallLowering.cpp
llvm/test/CodeGen/AArch64/fastcc-reserved.ll
llvm/test/CodeGen/AArch64/tail-call.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D67580.220188.patch
Type: text/x-patch
Size: 11063 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190913/b21fc556/attachment.bin>
More information about the llvm-commits
mailing list