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
Showing
- llvm/lib/Target/X86/X86FrameLowering.cpp 57 additions, 40 deletionsllvm/lib/Target/X86/X86FrameLowering.cpp
- llvm/lib/Target/X86/X86FrameLowering.h 5 additions, 3 deletionsllvm/lib/Target/X86/X86FrameLowering.h
- llvm/lib/Target/X86/X86ISelLowering.cpp 2 additions, 41 deletionsllvm/lib/Target/X86/X86ISelLowering.cpp
- llvm/test/CodeGen/X86/inalloca-stdcall.ll 1 addition, 0 deletionsllvm/test/CodeGen/X86/inalloca-stdcall.ll
- llvm/test/CodeGen/X86/win64_alloca_dynalloca.ll 19 additions, 3 deletionsllvm/test/CodeGen/X86/win64_alloca_dynalloca.ll
Loading
Please register or sign in to comment