summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/ARM/fast-isel-pic.ll
diff options
context:
space:
mode:
authorBill Schmidt <wschmidt@linux.vnet.ibm.com>2013-05-14 16:08:32 +0000
committerBill Schmidt <wschmidt@linux.vnet.ibm.com>2013-05-14 16:08:32 +0000
commitef3d1a24ed4c05d5968182a0a26b3b244a166a4e (patch)
tree4db0ff4e75bc17ab79a864ad7145ae3e0a30bf25 /llvm/test/CodeGen/ARM/fast-isel-pic.ll
parent7dcbb96e26528167cc49afa9edebc0e2775ce017 (diff)
downloadbcm5719-llvm-ef3d1a24ed4c05d5968182a0a26b3b244a166a4e.tar.gz
bcm5719-llvm-ef3d1a24ed4c05d5968182a0a26b3b244a166a4e.zip
PPC32: Fix stack collision between FP and CR save areas.
The changes to CR spill handling missed a case for 32-bit PowerPC. The code in PPCFrameLowering::processFunctionBeforeFrameFinalized() checks whether CR spill has occurred using a flag in the function info. This flag is only set by storeRegToStackSlot and loadRegFromStackSlot. spillCalleeSavedRegisters does not call storeRegToStackSlot, but instead produces MI directly. Thus we don't see the CR is spilled when assigning frame offsets, and the CR spill ends up colliding with some other location (generally the FP slot). This patch sets the flag in spillCalleeSavedRegisters for PPC32 so that the CR spill is properly detected and gets its own slot in the stack frame. llvm-svn: 181800
Diffstat (limited to 'llvm/test/CodeGen/ARM/fast-isel-pic.ll')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud