Remove the link register from the GPR classes on PowerPC.
authorBill Schmidt <wschmidt@linux.vnet.ibm.com>
Wed, 27 Mar 2013 02:40:14 +0000 (02:40 +0000)
committerBill Schmidt <wschmidt@linux.vnet.ibm.com>
Wed, 27 Mar 2013 02:40:14 +0000 (02:40 +0000)
commit37ef805818e32531c2c3a454fee33f06f363f9c2
treeb6345c208b28f4af25e6f6b5bf47b903916cbf5a
parentd841d6f71e4e95087a2eb509cedb50f7b5bfe142
Remove the link register from the GPR classes on PowerPC.

Some implementation detail in the forgotten past required the link
register to be placed in the GPRC and G8RC register classes.  This is
just wrong on the face of it, and causes several extra intersection
register classes to be generated.  I found this was having evil
effects on instruction scheduling, by causing the wrong register class
to be consulted for register pressure decisions.

No code generation changes are expected, other than some minor changes
in instruction order.  Seven tests in the test bucket required minor
tweaks to adjust to the new normal.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178114 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCRegisterInfo.td
test/CodeGen/PowerPC/jaggedstructs.ll
test/CodeGen/PowerPC/structsinmem.ll
test/CodeGen/PowerPC/structsinregs.ll
test/CodeGen/PowerPC/tls-gd.ll
test/CodeGen/PowerPC/tls-ld-2.ll
test/CodeGen/PowerPC/tls-ld.ll
test/CodeGen/PowerPC/tls.ll