summaryrefslogtreecommitdiff
path: root/lib/CodeGen/SplitKit.h
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2011-04-12 21:30:53 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2011-04-12 21:30:53 +0000
commit5db4289e404d76664f8aabe2675a4cc2d7b0e98e (patch)
tree6ae92557a5112409cf3e9554609b92b371f3890c /lib/CodeGen/SplitKit.h
parentf8c1c8465ff097ad5b87331b6d9a2576167f1402 (diff)
downloadllvm-5db4289e404d76664f8aabe2675a4cc2d7b0e98e.tar.gz
llvm-5db4289e404d76664f8aabe2675a4cc2d7b0e98e.tar.bz2
llvm-5db4289e404d76664f8aabe2675a4cc2d7b0e98e.tar.xz
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.h3
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