Use multiple virtual registers in PPC CR spilling
authorHal Finkel <hfinkel@anl.gov>
Tue, 26 Mar 2013 18:57:22 +0000 (18:57 +0000)
committerHal Finkel <hfinkel@anl.gov>
Tue, 26 Mar 2013 18:57:22 +0000 (18:57 +0000)
commit01f99d29c3010f2891e5edb78182216214017063
tree2bd58f29b57af06b316b5ee0661366f81a635855
parent3b196f20fbd24b2c178a51e2473437655dc7066a
Use multiple virtual registers in PPC CR spilling

Now that the register scavenger can support multiple spill slots, and PEI can
use virtual-register-based scavenging for multiple simultaneous registers, we
can use a virtual register for the transfer register in the CR spilling code.

This should eliminate the last place (outside of the prologue/epilogue) where
we depend on the unconditional availability of the r0 register. We will soon be
able to allocate it (in a somewhat restricted sense) as a GPR.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178060 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCFrameLowering.cpp
lib/Target/PowerPC/PPCRegisterInfo.cpp
test/CodeGen/PowerPC/2010-02-12-saveCR.ll