]> granicus.if.org Git - llvm/commit
[GlobalISel][AArch64] Check caller for swifterror params in tailcall eligibility
authorJessica Paquette <jpaquette@apple.com>
Wed, 11 Sep 2019 23:44:16 +0000 (23:44 +0000)
committerJessica Paquette <jpaquette@apple.com>
Wed, 11 Sep 2019 23:44:16 +0000 (23:44 +0000)
commit965cce15e7e6461d43cd796e5f121783f63da718
tree8d30f4c8ebe8ed34c1678b05b5ceb9de97ef08fb
parentf8a9932a8bafc49aba4548036f39d5df9132282f
[GlobalISel][AArch64] Check caller for swifterror params in tailcall eligibility

Before, we only checked the callee for swifterror. However, we should also be
checking the caller to see if it has a swifterror parameter.

Since we don't currently handle outgoing arguments, this didn't show up in the
swifterror.ll testcase.

Also, remove the swifterror checks from call-translator-tail-call.ll, since
they are covered by the existing swifterror testing. Better to have it all in
one place.

Differential Revision: https://reviews.llvm.org/D67465

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371692 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64CallLowering.cpp
test/CodeGen/AArch64/GlobalISel/call-translator-tail-call.ll
test/CodeGen/AArch64/GlobalISel/swifterror.ll