Target/X86: Never use the redzone for Win64 ABI functions.
authorCharles Davis <cdavis5x@gmail.com>
Fri, 27 Feb 2015 21:11:16 +0000 (21:11 +0000)
committerCharles Davis <cdavis5x@gmail.com>
Fri, 27 Feb 2015 21:11:16 +0000 (21:11 +0000)
commitdc64962c8649964d13cc60b83c8c400d5ae7504a
tree806e7d807eb1263829ae8669f2b24bea4c155db3
parente03aac601f67c80dec7ef776173b768e08d4b1fe
Target/X86: Never use the redzone for Win64 ABI functions.

Summary:
Until now, we did this (among other things) based on whether or not the
target was Windows. This is clearly wrong, not just for Win64 ABI functions
on non-Windows, but for System V ABI functions on Windows, too. In this
change, we make this decision based on the ABI the calling convention
specifies instead.

Reviewers: rnk

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D7953

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230793 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86FrameLowering.cpp
test/CodeGen/X86/2009-06-03-Win64DisableRedZone.ll