summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/AArch64/tailcall-ccmismatch.ll
Commit message (Collapse)AuthorAgeFilesLines
* ARM, AArch64, X86: Check preserved registers for tail calls.Matthias Braun2016-04-041-0/+24
We can only perform a tail call to a callee that preserves all the registers that the caller needs to preserve. This situation happens with calling conventions like preserver_mostcc or cxx_fast_tls. It was explicitely handled for fast_tls and failing for preserve_most. This patch generalizes the check to any calling convention. Related to rdar://24207743 Differential Revision: http://reviews.llvm.org/D18680 llvm-svn: 265329
OpenPOWER on IntegriCloud