llvm.org GIT mirror llvm / 9e79091
Respect the DisableRedZone flag on PowerPC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63119 91177308-0d34-0410-b5e6-96231b3b80d8 Dan Gohman 10 years ago
1 changed file(s) with 2 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
892892 // If we are a leaf function, and use up to 224 bytes of stack space,
893893 // don't have a frame pointer, calls, or dynamic alloca then we do not need
894894 // to adjust the stack pointer (we fit in the Red Zone).
895 if (FrameSize <= 224 && // Fits in red zone.
895 if (!DisableRedZone &&
896 FrameSize <= 224 && // Fits in red zone.
896897 !MFI->hasVarSizedObjects() && // No dynamic alloca.
897898 !MFI->hasCalls() && // No calls.
898899 (!ALIGN_STACK || MaxAlign <= TargetAlign)) { // No special alignment.