[X86] Handle EAX being live when calling chkstk for x86_64
authorMartin Storsjo <martin@martin.st>
Tue, 6 Mar 2018 06:00:13 +0000 (06:00 +0000)
committerMartin Storsjo <martin@martin.st>
Tue, 6 Mar 2018 06:00:13 +0000 (06:00 +0000)
commita7adc3185bef02576a39f0198b26f584cc8a184d
tree5b6852653c6761aa02572310dbae994cb147eb42
parentd43c0e1cb270e69878fc7142be976062897e7477
[X86] Handle EAX being live when calling chkstk for x86_64

EAX can turn out to be alive here, when shrink wrapping is done
(which is allowed when using dwarf exceptions, contrary to the
normal case with WinCFI).

This fixes PR36487.

Differential Revision: https://reviews.llvm.org/D43968

llvm-svn: 326764
llvm/lib/Target/X86/X86FrameLowering.cpp
llvm/test/CodeGen/X86/shrink-wrap-chkstk-x86_64.ll [new file with mode: 0644]