mirror of
https://github.com/RPCSX/llvm.git
synced 2025-05-13 10:56:01 +00:00
[AVR] Enable the frame pointer for all functions
This is a temporary measure while we figure out a way to get the frame pointer working correctly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301881 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8bd46914df
commit
2cc0b076e8
@ -216,8 +216,9 @@ void AVRFrameLowering::emitEpilogue(MachineFunction &MF,
|
||||
bool AVRFrameLowering::hasFP(const MachineFunction &MF) const {
|
||||
const AVRMachineFunctionInfo *FuncInfo = MF.getInfo<AVRMachineFunctionInfo>();
|
||||
|
||||
return (FuncInfo->getHasSpills() || FuncInfo->getHasAllocas() ||
|
||||
FuncInfo->getHasStackArgs());
|
||||
// TODO: We do not always need a frame pointer.
|
||||
// This can be optimised.
|
||||
return true;
|
||||
}
|
||||
|
||||
bool AVRFrameLowering::spillCalleeSavedRegisters(
|
||||
|
Loading…
x
Reference in New Issue
Block a user