aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-01-27 19:19:28 +0000
committerDan Gohman <gohman@apple.com>2009-01-27 19:19:28 +0000
commit9e79091f1a2c8a4ef0d238dbddaea273d27ef404 (patch)
tree96a35c36fd7abdcc0598b3a93f9725ac63a10337 /lib
parentc03e9a1040a975670a9c94e94d37dd3a940e0cd5 (diff)
downloadexternal_llvm-9e79091f1a2c8a4ef0d238dbddaea273d27ef404.zip
external_llvm-9e79091f1a2c8a4ef0d238dbddaea273d27ef404.tar.gz
external_llvm-9e79091f1a2c8a4ef0d238dbddaea273d27ef404.tar.bz2
Respect the DisableRedZone flag on PowerPC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63119 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/PowerPC/PPCRegisterInfo.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/PowerPC/PPCRegisterInfo.cpp b/lib/Target/PowerPC/PPCRegisterInfo.cpp
index b7e3ac2..c5c9def 100644
--- a/lib/Target/PowerPC/PPCRegisterInfo.cpp
+++ b/lib/Target/PowerPC/PPCRegisterInfo.cpp
@@ -893,7 +893,8 @@ void PPCRegisterInfo::determineFrameLayout(MachineFunction &MF) const {
// If we are a leaf function, and use up to 224 bytes of stack space,
// don't have a frame pointer, calls, or dynamic alloca then we do not need
// to adjust the stack pointer (we fit in the Red Zone).
- if (FrameSize <= 224 && // Fits in red zone.
+ if (!DisableRedZone &&
+ FrameSize <= 224 && // Fits in red zone.
!MFI->hasVarSizedObjects() && // No dynamic alloca.
!MFI->hasCalls() && // No calls.
(!ALIGN_STACK || MaxAlign <= TargetAlign)) { // No special alignment.