summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-08-20 14:58:41 +0000
committerDan Gohman <gohman@apple.com>2008-08-20 14:58:41 +0000
commitf6aa60ff71e346ba5f5d13b6aa8cc54a38be492c (patch)
tree2e2ba4a85587e7d9453fabbd4888e2b5cd3f4dac /llvm/lib
parent0f23237b0cfa7b94bbe3a32bf8ee3b03d7b10690 (diff)
downloadbcm5719-llvm-f6aa60ff71e346ba5f5d13b6aa8cc54a38be492c.tar.gz
bcm5719-llvm-f6aa60ff71e346ba5f5d13b6aa8cc54a38be492c.zip
Use BitVector instead of std::vector<unsigned char>.
llvm-svn: 55054
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index 1536a641a60..cb71f1aae01 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@ -5210,8 +5210,7 @@ void SelectionDAGISel::BuildSelectionDAG(SelectionDAG &DAG, BasicBlock *LLVMBB,
// Emit constants only once even if used by multiple PHI nodes.
std::map<Constant*, unsigned> ConstantsOut;
- // Vector bool would be better, but vector<bool> is really slow.
- std::vector<unsigned char> SuccsHandled;
+ BitVector SuccsHandled;
if (TI->getNumSuccessors())
SuccsHandled.resize(BB->getParent()->getNumBlockIDs());
OpenPOWER on IntegriCloud