TargetRegisterInfo: Provide a way to check assigned registers in getRegAllocationHints()
authorMatthias Braun <matze@braunis.de>
Wed, 15 Jul 2015 22:16:00 +0000 (22:16 +0000)
committerMatthias Braun <matze@braunis.de>
Wed, 15 Jul 2015 22:16:00 +0000 (22:16 +0000)
commit5d1f12d1f5e42cd538a245216529b7cae59d01a0
tree93326a222da006a9568a8b97612451ab1c45ecca
parent37643a04a499a61ad800bcb526fe36e74b0b3636
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.

llvm-svn: 242340
llvm/include/llvm/Target/TargetRegisterInfo.h
llvm/lib/CodeGen/AllocationOrder.cpp
llvm/lib/CodeGen/AllocationOrder.h
llvm/lib/CodeGen/RegAllocBasic.cpp
llvm/lib/CodeGen/RegAllocGreedy.cpp
llvm/lib/CodeGen/TargetRegisterInfo.cpp
llvm/lib/Target/ARM/ARMBaseRegisterInfo.cpp
llvm/lib/Target/ARM/ARMBaseRegisterInfo.h