diff options
| author | Matthias Braun <matze@braunis.de> | 2015-07-15 22:16:00 +0000 |
|---|---|---|
| committer | Matthias Braun <matze@braunis.de> | 2015-07-15 22:16:00 +0000 |
| commit | 5d1f12d1f5e42cd538a245216529b7cae59d01a0 (patch) | |
| tree | 93326a222da006a9568a8b97612451ab1c45ecca /llvm/lib/Target/ARM/ARMBaseRegisterInfo.cpp | |
| parent | 37643a04a499a61ad800bcb526fe36e74b0b3636 (diff) | |
| download | bcm5719-llvm-5d1f12d1f5e42cd538a245216529b7cae59d01a0.tar.gz bcm5719-llvm-5d1f12d1f5e42cd538a245216529b7cae59d01a0.zip | |
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
Diffstat (limited to 'llvm/lib/Target/ARM/ARMBaseRegisterInfo.cpp')
| -rw-r--r-- | llvm/lib/Target/ARM/ARMBaseRegisterInfo.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMBaseRegisterInfo.cpp b/llvm/lib/Target/ARM/ARMBaseRegisterInfo.cpp index e7d5be7753e..0286c52ee3e 100644 --- a/llvm/lib/Target/ARM/ARMBaseRegisterInfo.cpp +++ b/llvm/lib/Target/ARM/ARMBaseRegisterInfo.cpp @@ -225,7 +225,8 @@ ARMBaseRegisterInfo::getRegAllocationHints(unsigned VirtReg, ArrayRef<MCPhysReg> Order, SmallVectorImpl<MCPhysReg> &Hints, const MachineFunction &MF, - const VirtRegMap *VRM) const { + const VirtRegMap *VRM, + const LiveRegMatrix *Matrix) const { const MachineRegisterInfo &MRI = MF.getRegInfo(); std::pair<unsigned, unsigned> Hint = MRI.getRegAllocationHint(VirtReg); |

