forked from OSchip/llvm-project
Use BitVector instead of std::vector<unsigned char>.
llvm-svn: 55054
This commit is contained in:
parent
0f23237b0c
commit
f6aa60ff71
|
@ -5210,8 +5210,7 @@ void SelectionDAGISel::BuildSelectionDAG(SelectionDAG &DAG, BasicBlock *LLVMBB,
|
||||||
// Emit constants only once even if used by multiple PHI nodes.
|
// Emit constants only once even if used by multiple PHI nodes.
|
||||||
std::map<Constant*, unsigned> ConstantsOut;
|
std::map<Constant*, unsigned> ConstantsOut;
|
||||||
|
|
||||||
// Vector bool would be better, but vector<bool> is really slow.
|
BitVector SuccsHandled;
|
||||||
std::vector<unsigned char> SuccsHandled;
|
|
||||||
if (TI->getNumSuccessors())
|
if (TI->getNumSuccessors())
|
||||||
SuccsHandled.resize(BB->getParent()->getNumBlockIDs());
|
SuccsHandled.resize(BB->getParent()->getNumBlockIDs());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue