diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-04-12 21:30:53 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-04-12 21:30:53 +0000 |
commit | 5db4289e404d76664f8aabe2675a4cc2d7b0e98e (patch) | |
tree | 6ae92557a5112409cf3e9554609b92b371f3890c /lib/CodeGen/SplitKit.h | |
parent | f8c1c8465ff097ad5b87331b6d9a2576167f1402 (diff) |
SparseBitVector is SLOW.
Use a Bitvector instead, we didn't need the smaller memory footprint anyway.
This makes the greedy register allocator 10% faster.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129390 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SplitKit.h')
-rw-r--r-- | lib/CodeGen/SplitKit.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/SplitKit.h b/lib/CodeGen/SplitKit.h index a387896a5d..688e4a5fcf 100644 --- a/lib/CodeGen/SplitKit.h +++ b/lib/CodeGen/SplitKit.h @@ -144,6 +144,9 @@ public: /// isThroughBlock - Return true if CurLI is live through MBB without uses. bool isThroughBlock(unsigned MBB) const { return ThroughBlocks.test(MBB); } + /// getThroughBlocks - Return the set of through blocks. + const BitVector &getThroughBlocks() const { return ThroughBlocks; } + typedef SmallPtrSet<const MachineBasicBlock*, 16> BlockPtrSet; /// getMultiUseBlocks - Add basic blocks to Blocks that may benefit from |