mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
Revert "[AVR] Enable the frame pointer for all functions"
This reverts commit 358ad02d999e88853d2cfc954bd2f668308a51f7. llvm-svn: 302014
This commit is contained in:
parent
149d32207b
commit
de46e238f2
@ -228,9 +228,8 @@ void AVRFrameLowering::emitEpilogue(MachineFunction &MF,
|
||||
bool AVRFrameLowering::hasFP(const MachineFunction &MF) const {
|
||||
const AVRMachineFunctionInfo *FuncInfo = MF.getInfo<AVRMachineFunctionInfo>();
|
||||
|
||||
// TODO: We do not always need a frame pointer.
|
||||
// This can be optimised.
|
||||
return true;
|
||||
return (FuncInfo->getHasSpills() || FuncInfo->getHasAllocas() ||
|
||||
FuncInfo->getHasStackArgs());
|
||||
}
|
||||
|
||||
bool AVRFrameLowering::spillCalleeSavedRegisters(
|
||||
|
Loading…
x
Reference in New Issue
Block a user