mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-30 05:24:22 +00:00
TargetRegisterInfo: Provide a way to check assigned registers in getRegAllocationHints()
Pass a const reference to LiveRegMatrix to getRegAllocationHints() because some targets can prodive better hints if they can test whether a physreg has been used for register allocation yet. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242340 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -223,7 +223,7 @@ unsigned RABasic::selectOrSplit(LiveInterval &VirtReg,
|
||||
SmallVector<unsigned, 8> PhysRegSpillCands;
|
||||
|
||||
// Check for an available register in this class.
|
||||
AllocationOrder Order(VirtReg.reg, *VRM, RegClassInfo);
|
||||
AllocationOrder Order(VirtReg.reg, *VRM, RegClassInfo, Matrix);
|
||||
while (unsigned PhysReg = Order.next()) {
|
||||
// Check for interference in PhysReg
|
||||
switch (Matrix->checkInterference(VirtReg, PhysReg)) {
|
||||
|
Reference in New Issue
Block a user