mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-23 16:19:52 +00:00
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
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user