1
0
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:
Jim Grosbach 2010-02-02 23:56:14 +00:00
parent 9057fea7ef
commit 23b76845a7

View File

@ -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());