diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2013-02-21 19:35:21 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2013-02-21 19:35:21 +0000 |
commit | 601158a18e325879b224bd1979d824407ed98bc7 (patch) | |
tree | 2c1fbf778b42e97d322a074026fcc9b0b9092ea5 /include/llvm/CodeGen/MachineRegisterInfo.h | |
parent | b300455b5817f099d64aad8f9356e0e23fa9a87e (diff) | |
download | external_llvm-601158a18e325879b224bd1979d824407ed98bc7.zip external_llvm-601158a18e325879b224bd1979d824407ed98bc7.tar.gz external_llvm-601158a18e325879b224bd1979d824407ed98bc7.tar.bz2 |
Make RAFast::UsedInInstr indexed by register units.
This fixes some problems with too conservative checking where we were
marking all aliases of a register as used, and then also checking all
aliases when allocating a register.
<rdar://problem/13249625>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175782 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineRegisterInfo.h')
-rw-r--r-- | include/llvm/CodeGen/MachineRegisterInfo.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/MachineRegisterInfo.h b/include/llvm/CodeGen/MachineRegisterInfo.h index b3d2d9e..875285b 100644 --- a/include/llvm/CodeGen/MachineRegisterInfo.h +++ b/include/llvm/CodeGen/MachineRegisterInfo.h @@ -377,6 +377,12 @@ public: return false; } + /// Mark the specified register unit as used in this function. + /// This should only be called during and after register allocation. + void setRegUnitUsed(unsigned RegUnit) { + UsedRegUnits.set(RegUnit); + } + /// setPhysRegUsed - Mark the specified register used in this function. /// This should only be called during and after register allocation. void setPhysRegUsed(unsigned Reg) { |