projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b09f9d
)
Revert "[AVR] Enable the frame pointer for all functions"
author
Dylan McKay
<me@dylanmckay.io>
Wed, 3 May 2017 11:36:42 +0000
(11:36 +0000)
committer
Dylan McKay
<me@dylanmckay.io>
Wed, 3 May 2017 11:36:42 +0000
(11:36 +0000)
This reverts commit
358ad02d999e88853d2cfc954bd2f668308a51f7
.
llvm-svn: 302014
llvm/lib/Target/AVR/AVRFrameLowering.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Target/AVR/AVRFrameLowering.cpp
b/llvm/lib/Target/AVR/AVRFrameLowering.cpp
index
25232d2
..
c297865
100644
(file)
--- a/
llvm/lib/Target/AVR/AVRFrameLowering.cpp
+++ b/
llvm/lib/Target/AVR/AVRFrameLowering.cpp
@@
-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(