Use a SparseSet instead of a BitVector for UsedInInstr in RAFast.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Wed, 17 Oct 2012 01:37:59 +0000 (01:37 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Wed, 17 Oct 2012 01:37:59 +0000 (01:37 +0000)
commita2136be107b590f13da31b406bfd3454ea759ecd
tree2e522f22cef9a6786282610db2e27abc90e2f6af
parent7e414261f64720c866b800d4a9991f6925e004b4
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().

llvm-svn: 166083
llvm/include/llvm/CodeGen/MachineRegisterInfo.h
llvm/lib/CodeGen/RegAllocFast.cpp