Spill and restore PPC CR registers using the FP when we have one
authorHal Finkel <hfinkel@anl.gov>
Sat, 13 Apr 2013 08:09:20 +0000 (08:09 +0000)
committerHal Finkel <hfinkel@anl.gov>
Sat, 13 Apr 2013 08:09:20 +0000 (08:09 +0000)
commitb99c995825a49f0da5af40ee1b61269deb8994b5
tree07f7f82e199cad44f9722fa37e9243377c0bc77c
parent16de01ec277e4c67be6e0909b76a63d7f8a4ced4
Spill and restore PPC CR registers using the FP when we have one

For functions that need to spill CRs, and have dynamic stack allocations, the
value of the SP during the restore is not what it was during the save, and so
we need to use the FP in these cases (as for all of the other spills and
restores, but the CR restore has a special code path because its reserved slot,
like the link register, is specified directly relative to the adjusted SP).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179457 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCFrameLowering.cpp
test/CodeGen/PowerPC/crsave.ll