Use BitVector instead of std::vector<unsigned char>.
authorDan Gohman <gohman@apple.com>
Wed, 20 Aug 2008 14:58:41 +0000 (14:58 +0000)
committerDan Gohman <gohman@apple.com>
Wed, 20 Aug 2008 14:58:41 +0000 (14:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55054 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp

index 1536a641a609dccc268eb82c36df4b4a02497583..cb71f1aae0135ef891ddec6930031f445ba4afd7 100644 (file)
@@ -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());