summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
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
commit13f18e853fcc1ad04d7d06786de0c647e0924aae (patch)
treebc4f197f3be935b111b097f955f9dd3d9e4eae66 /llvm/lib/Target
parentf77f0ce21aaba21df9754fa4e7332d300af0bb31 (diff)
downloadbcm5719-llvm-13f18e853fcc1ad04d7d06786de0c647e0924aae.tar.gz
bcm5719-llvm-13f18e853fcc1ad04d7d06786de0c647e0924aae.zip
Respect the DisableRedZone flag on PowerPC.
llvm-svn: 63119
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp b/llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp
index b7e3ac28240..c5c9defd9da 100644
--- a/llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp
+++ b/llvm/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.
OpenPOWER on IntegriCloud