From f6aa60ff71e346ba5f5d13b6aa8cc54a38be492c Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Wed, 20 Aug 2008 14:58:41 +0000 Subject: Use BitVector instead of std::vector. llvm-svn: 55054 --- llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp') 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 ConstantsOut; - // Vector bool would be better, but vector is really slow. - std::vector SuccsHandled; + BitVector SuccsHandled; if (TI->getNumSuccessors()) SuccsHandled.resize(BB->getParent()->getNumBlockIDs()); -- cgit v1.2.3