summaryrefslogtreecommitdiff
path: root/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
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
commitc53ec498857aa3e6d4fc17bd67dd282dcfc821da (patch)
tree739a91e5f039018703a6004ab694c26cc1c41753 /lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
parenteace52f12db8feff2742ad1e2a330c837ff7f824 (diff)
downloadllvm-c53ec498857aa3e6d4fc17bd67dd282dcfc821da.tar.gz
llvm-c53ec498857aa3e6d4fc17bd67dd282dcfc821da.tar.bz2
llvm-c53ec498857aa3e6d4fc17bd67dd282dcfc821da.tar.xz
Use BitVector instead of std::vector<unsigned char>.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55054 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index 1536a641a6..cb71f1aae0 100644
--- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/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());