OSDN Git Service

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)
commit2aa5727755c86b61a5f985ea21b09d2cb2f25aa6
tree0ad504cea059d98959e1ecad9c14fc32262cf1ba
parent71da3635d95d4bfb8146e0f7f150ed285fb9990c
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
include/llvm/Target/TargetRegisterInfo.h
lib/CodeGen/AllocationOrder.cpp
lib/CodeGen/AllocationOrder.h
lib/CodeGen/RegAllocBasic.cpp
lib/CodeGen/RegAllocGreedy.cpp
lib/CodeGen/TargetRegisterInfo.cpp
lib/Target/ARM/ARMBaseRegisterInfo.cpp
lib/Target/ARM/ARMBaseRegisterInfo.h