[SystemZ] Pass copy-hinted regs first from getRegAllocationHints().
authorJonas Paulsson <paulsson@linux.vnet.ibm.com>
Thu, 13 Dec 2018 14:37:05 +0000 (14:37 +0000)
committerJonas Paulsson <paulsson@linux.vnet.ibm.com>
Thu, 13 Dec 2018 14:37:05 +0000 (14:37 +0000)
commite79b1b986d562c7a4b38703827590c98c6535697
tree94e917e82d249db841474adda86b4486453c69a4
parent98fc54870aa29af5b07aca245bad34f71e2f4235
[SystemZ]  Pass copy-hinted regs first from getRegAllocationHints().

When computing register allocation hints for a GRX32Bit register, make sure
that any of the hinted registers that are also copy hints are returned first
in the list.

Review: Ulrich Weigand.
llvm-svn: 349037
llvm/lib/Target/SystemZ/SystemZRegisterInfo.cpp
llvm/test/CodeGen/SystemZ/cond-move-regalloc-hints.mir [new file with mode: 0644]