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)
commitd85a04b3df05ae8a6bcbc770eab5fc4501155c17
treea2e6bd59326f93a78a6a5390f0ad2690ee7964ad
parent3d957c0ead26ec1565e7e276179da2942b06fc65
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).

llvm-svn: 179457
llvm/lib/Target/PowerPC/PPCFrameLowering.cpp
llvm/test/CodeGen/PowerPC/crsave.ll