Don't use pointer-pointers for the register use lists.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Thu, 9 Aug 2012 22:49:42 +0000 (22:49 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Thu, 9 Aug 2012 22:49:42 +0000 (22:49 +0000)
commit46f4c35372062eaf097922b5683bc6639ccf342b
tree78d4bea9eb1e6d1c34f15bbbc9eb253c5a47b77b
parentff2b99afc8cbc6cfa73181072888e0f9f07deb7e
Don't use pointer-pointers for the register use lists.

Use a more conventional doubly linked list where the Prev pointers form
a cycle. This means it is no longer necessary to adjust the Prev
pointers when reallocating the VRegInfo array.

The test changes are required because the register allocation hint is
using the use-list order to break ties.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161633 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/MachineOperand.h
include/llvm/CodeGen/MachineRegisterInfo.h
lib/CodeGen/MachineRegisterInfo.cpp
test/CodeGen/MSP430/Inst8rr.ll
test/CodeGen/X86/apm.ll