[X86] Add *SP to tailcall register class to fix verifier error
authorReid Kleckner <rnk@google.com>
Wed, 24 Oct 2018 21:09:34 +0000 (21:09 +0000)
committerReid Kleckner <rnk@google.com>
Wed, 24 Oct 2018 21:09:34 +0000 (21:09 +0000)
commit9c5bda652cc27596ef920015d31604f1cd569b26
tree1ffa587d68b64fbf2889bad4ae1ee3b7aeaf2e30
parent625d08eea1f462de66130d0a09cf51d66f27e942
[X86] Add *SP to tailcall register class to fix verifier error

It's possible to do a tail call to a stack argument. LLVM already
calculates the right stack offset to call through.

Fixes the sibcall* and musttail* verifier failures tracked at PR27481.

llvm-svn: 345197
llvm/lib/Target/X86/X86RegisterInfo.td
llvm/test/CodeGen/X86/musttail-indirect.ll
llvm/test/CodeGen/X86/musttail-thiscall.ll
llvm/test/CodeGen/X86/musttail-varargs.ll
llvm/test/CodeGen/X86/sibcall-2.ll
llvm/test/CodeGen/X86/sibcall.ll