mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-28 19:25:00 +00:00
Implement -disable-non-leaf-fp-elim which disable frame pointer elimination
optimization for non-leaf functions. This will be hooked up to gcc's -momit-leaf-frame-pointer option. rdar://7886181 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101984 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -5531,7 +5531,7 @@ SDValue PPCTargetLowering::LowerFRAMEADDR(SDValue Op,
|
||||
|
||||
MachineFunction &MF = DAG.getMachineFunction();
|
||||
MachineFrameInfo *MFI = MF.getFrameInfo();
|
||||
bool is31 = (NoFramePointerElim || MFI->hasVarSizedObjects())
|
||||
bool is31 = (DisableFramePointerElim(MF) || MFI->hasVarSizedObjects())
|
||||
&& MFI->getStackSize();
|
||||
|
||||
if (isPPC64)
|
||||
|
Reference in New Issue
Block a user