Use frame-index scavenging for PPC register spilling
authorHal Finkel <hfinkel@anl.gov>
Thu, 14 Mar 2013 20:21:47 +0000 (20:21 +0000)
committerHal Finkel <hfinkel@anl.gov>
Thu, 14 Mar 2013 20:21:47 +0000 (20:21 +0000)
commit1c6c61a6089fb2bef47de5ee9a5f4acc34047600
tree121179213696d02f9dc8cac4a58c7a909cfac64b
parent100a94bc93dcf9af99eba169599ce950faf0df7e
Use frame-index scavenging for PPC register spilling

Make requiresFrameIndexScavenging return true, and create virtual registers in
the spilling code instead of using the register scavenger directly. This makes
the target-level code simpler, and importantly, delays the scavenging until
after callee-saved register processing (which will be important for later
changes).

Also cleans up trackLivenessAfterRegAlloc (makes it inline in the header with
the other related functions). This makes it clear that it always returns true.

No functionality change intended.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177107 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCRegisterInfo.cpp
lib/Target/PowerPC/PPCRegisterInfo.h