mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-01 01:30:36 +00:00
Convert a std::vector to a SmallVector for another 5.4% speedup on domtree.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124065 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
85a7c69085
commit
55be644df6
@ -53,8 +53,8 @@ unsigned DFSPass(DominatorTreeBase<typename GraphT::NodeType>& DT,
|
||||
#else
|
||||
bool IsChildOfArtificialExit = (N != 0);
|
||||
|
||||
std::vector<std::pair<typename GraphT::NodeType*,
|
||||
typename GraphT::ChildIteratorType> > Worklist;
|
||||
SmallVector<std::pair<typename GraphT::NodeType*,
|
||||
typename GraphT::ChildIteratorType>, 32> Worklist;
|
||||
Worklist.push_back(std::make_pair(V, GraphT::child_begin(V)));
|
||||
while (!Worklist.empty()) {
|
||||
typename GraphT::NodeType* BB = Worklist.back().first;
|
||||
|
Loading…
x
Reference in New Issue
Block a user