diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-10-17 01:37:59 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-10-17 01:37:59 +0000 |
commit | d7ea7d5cd7518788dea698d38023959480c8263a (patch) | |
tree | fef479ce2dd4b321c5b5892424400482d839545b /include/llvm | |
parent | e9403c1fd6647eda9f6c9d46a75ab9370b2354b6 (diff) | |
download | llvm-d7ea7d5cd7518788dea698d38023959480c8263a.tar.gz llvm-d7ea7d5cd7518788dea698d38023959480c8263a.tar.bz2 llvm-d7ea7d5cd7518788dea698d38023959480c8263a.tar.xz |
Use a SparseSet instead of a BitVector for UsedInInstr in RAFast.
This is just as fast, and it makes it possible to avoid leaking the
UsedPhysRegs BitVector implementation through
MachineRegisterInfo::addPhysRegsUsed().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166083 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/CodeGen/MachineRegisterInfo.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/include/llvm/CodeGen/MachineRegisterInfo.h b/include/llvm/CodeGen/MachineRegisterInfo.h index a5bc7f7d39..670640a715 100644 --- a/include/llvm/CodeGen/MachineRegisterInfo.h +++ b/include/llvm/CodeGen/MachineRegisterInfo.h @@ -377,10 +377,6 @@ public: /// This should only be called during and after register allocation. void setPhysRegUsed(unsigned Reg) { UsedPhysRegs.set(Reg); } - /// addPhysRegsUsed - Mark the specified registers used in this function. - /// This should only be called during and after register allocation. - void addPhysRegsUsed(const BitVector &Regs) { UsedPhysRegs |= Regs; } - /// addPhysRegsUsedFromRegMask - Mark any registers not in RegMask as used. /// This corresponds to the bit mask attached to register mask operands. void addPhysRegsUsedFromRegMask(const uint32_t *RegMask) { |