aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/IPO/GlobalOpt.cpp
diff options
context:
space:
mode:
authorRichard Osborne <richard@xmos.com>2013-05-09 16:43:42 +0000
committerRichard Osborne <richard@xmos.com>2013-05-09 16:43:42 +0000
commit9bd913c4c1f350562b5a31e79a82dcaf143b06e0 (patch)
treeca26859c9bf1bc2ce13ec89da6450919c73c7224 /lib/Transforms/IPO/GlobalOpt.cpp
parenta6ff92a975f2d6ef6a0db7aeaee3ee9fd046307a (diff)
downloadexternal_llvm-9bd913c4c1f350562b5a31e79a82dcaf143b06e0.zip
external_llvm-9bd913c4c1f350562b5a31e79a82dcaf143b06e0.tar.gz
external_llvm-9bd913c4c1f350562b5a31e79a82dcaf143b06e0.tar.bz2
[XCore] Fix handling of functions where only the LR is spilled.
Previously we only checked if the LR required saving if the frame size was non zero. However because the caller reserves 1 word for the callee to use that doesn't count towards our frame size it is possible for the LR to need saving and for the frame size to be 0. We didn't hit when the LR needed saving because of a function calls because the 1 word of stack we must allocate for our callee means the frame size is always non zero in this case. However we can hit this case if the LR is clobbered in inline asm. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181520 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO/GlobalOpt.cpp')
0 files changed, 0 insertions, 0 deletions