diff options
author | Reid Kleckner <reid@kleckner.net> | 2015-01-29 23:58:04 +0000 |
---|---|---|
committer | Reid Kleckner <reid@kleckner.net> | 2015-01-29 23:58:04 +0000 |
commit | ca9b9feb2c6d85d6de4e63ab3956275d2a290ebb (patch) | |
tree | fe9cffb6770d9905e77ed5a5b6fd5c0518c7821f /llvm/test/CodeGen/X86/inalloca-stdcall.ll | |
parent | 28f353c7d0d31fbaf6176704cd37001086b94a6e (diff) | |
download | bcm5719-llvm-ca9b9feb2c6d85d6de4e63ab3956275d2a290ebb.tar.gz bcm5719-llvm-ca9b9feb2c6d85d6de4e63ab3956275d2a290ebb.zip |
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.
llvm-svn: 227519
Diffstat (limited to 'llvm/test/CodeGen/X86/inalloca-stdcall.ll')
-rw-r--r-- | llvm/test/CodeGen/X86/inalloca-stdcall.ll | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/inalloca-stdcall.ll b/llvm/test/CodeGen/X86/inalloca-stdcall.ll index e5b07e262c7..65a0f77c9a6 100644 --- a/llvm/test/CodeGen/X86/inalloca-stdcall.ll +++ b/llvm/test/CodeGen/X86/inalloca-stdcall.ll @@ -6,6 +6,7 @@ declare x86_stdcallcc void @f(%Foo* inalloca %a) declare x86_stdcallcc void @i(i32 %a) define void @g() { +; CHECK-LABEL: _g: %b = alloca inalloca %Foo ; CHECK: movl $8, %eax ; CHECK: calll __chkstk |