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)
commitd7ea7d5cd7518788dea698d38023959480c8263a
treefef479ce2dd4b321c5b5892424400482d839545b
parente9403c1fd6647eda9f6c9d46a75ab9370b2354b6
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
include/llvm/CodeGen/MachineRegisterInfo.h
lib/CodeGen/RegAllocFast.cpp