From 3bb6eb238e3f0bf571f96a6214eebfdf2d2dcf09 Mon Sep 17 00:00:00 2001 From: Dylan McKay Date: Mon, 1 May 2017 23:16:59 +0000 Subject: [PATCH] [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. llvm-svn: 301881 --- llvm/lib/Target/AVR/AVRFrameLowering.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/llvm/lib/Target/AVR/AVRFrameLowering.cpp b/llvm/lib/Target/AVR/AVRFrameLowering.cpp index ab42a7a..7e0e761 100644 --- a/llvm/lib/Target/AVR/AVRFrameLowering.cpp +++ b/llvm/lib/Target/AVR/AVRFrameLowering.cpp @@ -216,8 +216,9 @@ void AVRFrameLowering::emitEpilogue(MachineFunction &MF, bool AVRFrameLowering::hasFP(const MachineFunction &MF) const { const AVRMachineFunctionInfo *FuncInfo = MF.getInfo(); - 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( -- 2.7.4