OSDN Git Service

[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)
commit04070efcd23ad080cc51eb3b9a187c746814a80c
treeffdc1a11d91afbbb8b9e7cfe596142313e00e51e
parentb8895a84ec6427b0b640b52550b0c162de1cf51e
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@345197 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86RegisterInfo.td
test/CodeGen/X86/musttail-indirect.ll
test/CodeGen/X86/musttail-thiscall.ll
test/CodeGen/X86/musttail-varargs.ll
test/CodeGen/X86/sibcall-2.ll
test/CodeGen/X86/sibcall.ll