swiftcc: Don't emit tail calls from callers with swifterror parameters
authorArnold Schwaighofer <aschwaighofer@apple.com>
Mon, 13 Feb 2017 19:58:28 +0000 (19:58 +0000)
committerArnold Schwaighofer <aschwaighofer@apple.com>
Mon, 13 Feb 2017 19:58:28 +0000 (19:58 +0000)
commitdb4a46b079d203a832a5229f073d5ffe124b5311
treedc0db05d7c78635cc2226b321a16c86217259982
parenta5035323ac2f1a9d8a5f5ef941bd585c6015a635
swiftcc: Don't emit tail calls from callers with swifterror parameters

Backends don't support this yet. They would have to move to the swifterror
register before the tail call to make sure it is live-in to the call.

rdar://30495920

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@294982 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
test/CodeGen/AArch64/swifterror.ll
test/CodeGen/ARM/swifterror.ll
test/CodeGen/X86/swifterror.ll