Merging r261039:
authorHans Wennborg <hans@hanshq.net>
Wed, 17 Feb 2016 19:00:40 +0000 (19:00 +0000)
committerHans Wennborg <hans@hanshq.net>
Wed, 17 Feb 2016 19:00:40 +0000 (19:00 +0000)
commit6e961aa243f223ddb704ce708056238d7c1d7e24
tree7e695a050dcf884fa1965f05bbcbf9912af2541d
parentebe537a930b58a5d32fc41ac133309139c92f7bd
Merging r261039:
------------------------------------------------------------------------
r261039 | rnk | 2016-02-16 16:17:33 -0800 (Tue, 16 Feb 2016) | 6 lines

[X86] Fix a shrink-wrapping miscompile around __chkstk

__chkstk clobbers EAX. If EAX is live across the prologue, then we have
to take extra steps to save it. We already had code to do this if EAX
was a register parameter. This change adapts it to work when shrink
wrapping is used.
------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_38@261136 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86FrameLowering.cpp
test/CodeGen/X86/shrink-wrap-chkstk.ll