AArch64: Cleanup tailcall CC check, enable swiftcc.
authorMatthias Braun <matze@braunis.de>
Tue, 13 Sep 2016 19:27:38 +0000 (19:27 +0000)
committerMatthias Braun <matze@braunis.de>
Tue, 13 Sep 2016 19:27:38 +0000 (19:27 +0000)
commit1af1414d4d268b5b8580a56101be3e434f8c9291
tree51513d5342555a61614cad67cb91e75e2726bf92
parentae3fb3113ffc1ccccc95904e25baf11d11d0f14c
AArch64: Cleanup tailcall CC check, enable swiftcc.

Cleanup/change the code that checks for possible tailcall conventions to
look the same as the one in the X86 target. This makes the distinction
between calling conventions that can guarnatee tailcalls and the ones
that may tailcall more obvious.

- Add Swift to the mayTailCall list
- PreserveMost seemed to be incorrectly part of the guarnteed tail call
  list, move it to the mayTailCall list.

llvm-svn: 281376
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
llvm/lib/Target/AArch64/AArch64ISelLowering.h
llvm/test/CodeGen/AArch64/arm64-call-tailcalls.ll