diff options
author | Hal Finkel <hfinkel@anl.gov> | 2013-03-14 19:34:32 +0000 |
---|---|---|
committer | Hal Finkel <hfinkel@anl.gov> | 2013-03-14 19:34:32 +0000 |
commit | e987a311bacf43634315756e05e9ed42ad33b863 (patch) | |
tree | b8f7de2ece37e817080a667c3f76cd7425c723f6 /llvm/lib/CodeGen/MachineFunction.cpp | |
parent | 8070b382ecf85996ca61aa41e25728038f76daa5 (diff) | |
download | llvm-e987a311bacf43634315756e05e9ed42ad33b863.zip llvm-e987a311bacf43634315756e05e9ed42ad33b863.tar.gz llvm-e987a311bacf43634315756e05e9ed42ad33b863.tar.bz2 |
Not all PPC functions with a frame pointer need a RS spill slot
We used to add a spill slot for the register scavenger whenever the function
has a frame pointer. This is unnecessarily conservative: We may need the spill
slot for dynamic stack allocations, and functions with dynamic stack
allocations always have a FP, but we might also have a FP for other reasons
(such as the user explicitly disabling frame-pointer elimination), and we don't
necessarily need a spill slot for those functions.
The structsinregs test needed adjustment because it disables FP elimination.
llvm-svn: 177106
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
0 files changed, 0 insertions, 0 deletions