mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
As of r79039, we still try to eliminate the frame pointer on leaf functions,
even when -disable-fp-elim is specified. llvm-svn: 95161
This commit is contained in:
parent
9057fea7ef
commit
23b76845a7
@ -478,7 +478,7 @@ ARMBaseRegisterInfo::UpdateRegAllocHint(unsigned Reg, unsigned NewReg,
|
||||
///
|
||||
bool ARMBaseRegisterInfo::hasFP(const MachineFunction &MF) const {
|
||||
const MachineFrameInfo *MFI = MF.getFrameInfo();
|
||||
return (NoFramePointerElim ||
|
||||
return ((NoFramePointerElim && MFI->hasCalls())||
|
||||
needsStackRealignment(MF) ||
|
||||
MFI->hasVarSizedObjects() ||
|
||||
MFI->isFrameAddressTaken());
|
||||
|
Loading…
Reference in New Issue
Block a user