V4 IR: change BasicBlockSet::const_iterator to use std::find.
authorErik Verbruggen <erik.verbruggen@digia.com>
Thu, 8 May 2014 10:14:09 +0000 (12:14 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 15 May 2014 09:39:11 +0000 (11:39 +0200)
commit65557f0c5a10321359c9875be9cdb45cf5a28934
treee7c8e6c3646d041d424412b7daa64d95a87096e4
parent32398200fbb5b7e9ad4a1d1bfcf51b9fbd34a758
V4 IR: change BasicBlockSet::const_iterator to use std::find.

When the storage in the BasicBlockSet is a std::vector<bool>, the
begin() iterator and the ++operator now use std::find. Good STL
implementations have an optimized version specifically for
std::vector<bool> that is a lot faster than the iterating that was used
before. The change also makes the code more readable.

Change-Id: Ic37bac694c133c597b3d61a91b04a0b758516dc3
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/qml/compiler/qv4ssa.cpp