[llvm] r301881 - [AVR] Enable the frame pointer for all functions
Dylan McKay via llvm-commits
llvm-commits at lists.llvm.org
Mon May 1 16:17:00 PDT 2017
Author: dylanmckay
Date: Mon May 1 18:16:59 2017
New Revision: 301881
URL: http://llvm.org/viewvc/llvm-project?rev=301881&view=rev
Log:
[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.
Modified:
llvm/trunk/lib/Target/AVR/AVRFrameLowering.cpp
Modified: llvm/trunk/lib/Target/AVR/AVRFrameLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AVR/AVRFrameLowering.cpp?rev=301881&r1=301880&r2=301881&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AVR/AVRFrameLowering.cpp (original)
+++ llvm/trunk/lib/Target/AVR/AVRFrameLowering.cpp Mon May 1 18:16:59 2017
@@ -216,8 +216,9 @@ void AVRFrameLowering::emitEpilogue(Mach
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(
More information about the llvm-commits
mailing list