projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eace52f
)
Use BitVector instead of std::vector<unsigned char>.
author
Dan Gohman
<gohman@apple.com>
Wed, 20 Aug 2008 14:58:41 +0000
(14:58 +0000)
committer
Dan 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
patch
|
blob
|
history
diff --git
a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index 1536a641a609dccc268eb82c36df4b4a02497583..cb71f1aae0135ef891ddec6930031f445ba4afd7 100644
(file)
--- 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());