]> granicus.if.org Git - llvm/commit
Merging r227519:
authorTom Stellard <thomas.stellard@amd.com>
Sat, 2 May 2015 04:17:29 +0000 (04:17 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Sat, 2 May 2015 04:17:29 +0000 (04:17 +0000)
commit5b0571119473c627563938e3490427291c0ad9d1
treed03650107f2de25e339197a0658b42f1fc4b5ec3
parent7aa6bebe9c6417437dbe6a1973ed1104001cfa98
Merging r227519:

------------------------------------------------------------------------
r227519 | reid | 2015-01-29 18:58:04 -0500 (Thu, 29 Jan 2015) | 10 lines

x86: Fix large model calls to __chkstk for dynamic allocas

In the large code model, we now put __chkstk in %r11 before calling it.

Refactor the code so that we only do this once. Simplify things by using
__chkstk_ms instead of __chkstk on cygming. We already use that symbol
in the prolog emission, and it simplifies our logic.

Second half of PR18582.

------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_36@236378 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86FrameLowering.cpp
lib/Target/X86/X86FrameLowering.h
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/inalloca-stdcall.ll
test/CodeGen/X86/win64_alloca_dynalloca.ll