diff options
| author | Hans Wennborg <hans@hanshq.net> | 2016-05-18 16:10:17 +0000 |
|---|---|---|
| committer | Hans Wennborg <hans@hanshq.net> | 2016-05-18 16:10:17 +0000 |
| commit | 8eb336c14e4c033a3f81a3a43fe397f0879a2e68 (patch) | |
| tree | e85fba6e6e6ed0c2528c0c565c6fea53085520d6 /llvm/test/CodeGen/X86/shrink-wrap-chkstk.ll | |
| parent | 9430b9113a54eafaa9bd7d7bb288c7a457d26404 (diff) | |
| download | bcm5719-llvm-8eb336c14e4c033a3f81a3a43fe397f0879a2e68.tar.gz bcm5719-llvm-8eb336c14e4c033a3f81a3a43fe397f0879a2e68.zip | |
Re-commit r269828 "X86: Avoid using _chkstk when lowering WIN_ALLOCA instructions"
with an additional fix to make RegAllocFast ignore undef physreg uses. It would
previously get confused about the "push %eax" instruction's use of eax. That
method for adjusting the stack pointer is used in X86FrameLowering::emitSPUpdate
as well, but since that runs after register-allocation, we didn't run into the
RegAllocFast issue before.
llvm-svn: 269949
Diffstat (limited to 'llvm/test/CodeGen/X86/shrink-wrap-chkstk.ll')
| -rw-r--r-- | llvm/test/CodeGen/X86/shrink-wrap-chkstk.ll | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/X86/shrink-wrap-chkstk.ll b/llvm/test/CodeGen/X86/shrink-wrap-chkstk.ll index 94501b5764e..099ef137d8d 100644 --- a/llvm/test/CodeGen/X86/shrink-wrap-chkstk.ll +++ b/llvm/test/CodeGen/X86/shrink-wrap-chkstk.ll @@ -7,7 +7,7 @@ target datalayout = "e-m:x-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32" target triple = "i686-pc-windows-msvc18.0.0" -%struct.S = type { [12 x i8] } +%struct.S = type { [8192 x i8] } define x86_thiscallcc void @call_inalloca(i1 %x) { entry: @@ -29,7 +29,7 @@ bb2: ; CHECK-LABEL: _call_inalloca: # @call_inalloca ; CHECK: pushl %ebp ; CHECK: movl %esp, %ebp -; CHECK: movl $12, %eax +; CHECK: movl $8192, %eax ; CHECK: calll __chkstk ; CHECK: calll _inalloca_params ; CHECK: movl %ebp, %esp |

