mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-29 14:40:25 +00:00
As of r79039, we still try to eliminate the frame pointer on leaf functions,
even when -disable-fp-elim is specified. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95161 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
022d9e1cef
commit
985d45dea3
@ -478,7 +478,7 @@ ARMBaseRegisterInfo::UpdateRegAllocHint(unsigned Reg, unsigned NewReg,
|
|||||||
///
|
///
|
||||||
bool ARMBaseRegisterInfo::hasFP(const MachineFunction &MF) const {
|
bool ARMBaseRegisterInfo::hasFP(const MachineFunction &MF) const {
|
||||||
const MachineFrameInfo *MFI = MF.getFrameInfo();
|
const MachineFrameInfo *MFI = MF.getFrameInfo();
|
||||||
return (NoFramePointerElim ||
|
return ((NoFramePointerElim && MFI->hasCalls())||
|
||||||
needsStackRealignment(MF) ||
|
needsStackRealignment(MF) ||
|
||||||
MFI->hasVarSizedObjects() ||
|
MFI->hasVarSizedObjects() ||
|
||||||
MFI->isFrameAddressTaken());
|
MFI->isFrameAddressTaken());
|
||||||
|
Loading…
Reference in New Issue
Block a user