From c53ec498857aa3e6d4fc17bd67dd282dcfc821da Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Wed, 20 Aug 2008 14:58:41 +0000 Subject: [PATCH] Use BitVector instead of std::vector. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55054 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 1536a641a60..cb71f1aae01 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 ConstantsOut; - // Vector bool would be better, but vector is really slow. - std::vector SuccsHandled; + BitVector SuccsHandled; if (TI->getNumSuccessors()) SuccsHandled.resize(BB->getParent()->getNumBlockIDs());