summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AVR/AVRFrameLowering.cpp
diff options
context:
space:
mode:
authorDylan McKay <me@dylanmckay.io>2017-05-01 23:16:59 +0000
committerDylan McKay <me@dylanmckay.io>2017-05-01 23:16:59 +0000
commit3bb6eb238e3f0bf571f96a6214eebfdf2d2dcf09 (patch)
tree852451c2ff55604e330c7a4520203ccda9a37bcd /llvm/lib/Target/AVR/AVRFrameLowering.cpp
parent6935aefdf0fdfd2641ebb27dd3b1aa6e5e2fe4ab (diff)
downloadbcm5719-llvm-3bb6eb238e3f0bf571f96a6214eebfdf2d2dcf09.tar.gz
bcm5719-llvm-3bb6eb238e3f0bf571f96a6214eebfdf2d2dcf09.zip
[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
Diffstat (limited to 'llvm/lib/Target/AVR/AVRFrameLowering.cpp')
-rw-r--r--llvm/lib/Target/AVR/AVRFrameLowering.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Target/AVR/AVRFrameLowering.cpp b/llvm/lib/Target/AVR/AVRFrameLowering.cpp
index ab42a7aa990..7e0e76182fa 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<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(
OpenPOWER on IntegriCloud