diff options
author | buzbee <buzbee@google.com> | 2013-09-05 17:13:19 -0700 |
---|---|---|
committer | buzbee <buzbee@google.com> | 2013-09-06 15:55:51 -0700 |
commit | 56c717860df2d71d66fb77aa77f29dd346e559d3 (patch) | |
tree | 672cc501b98791939cab65b7b47329e90b73c005 /compiler/dex/mir_dataflow.cc | |
parent | c7cd72c5ad65589b68e6aea185200fc2dbb0e850 (diff) | |
download | art-56c717860df2d71d66fb77aa77f29dd346e559d3.zip art-56c717860df2d71d66fb77aa77f29dd346e559d3.tar.gz art-56c717860df2d71d66fb77aa77f29dd346e559d3.tar.bz2 |
Compile-time tuning
Specialized the dataflow iterators and did a few other minor tweaks.
Showing ~5% compile-time improvement in a single-threaded environment;
less in multi-threaded (presumably because we're blocked by something
else).
Change-Id: I2e2ed58d881414b9fc97e04cd0623e188259afd2
Diffstat (limited to 'compiler/dex/mir_dataflow.cc')
-rw-r--r-- | compiler/dex/mir_dataflow.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/dex/mir_dataflow.cc b/compiler/dex/mir_dataflow.cc index 3a73717..addfd6b 100644 --- a/compiler/dex/mir_dataflow.cc +++ b/compiler/dex/mir_dataflow.cc @@ -1287,7 +1287,7 @@ void MIRGraph::MethodUseCount() { if (cu_->disable_opt & (1 << kPromoteRegs)) { return; } - AllNodesIterator iter(this, false /* not iterative */); + AllNodesIterator iter(this); for (BasicBlock* bb = iter.Next(); bb != NULL; bb = iter.Next()) { CountUses(bb); } @@ -1331,7 +1331,7 @@ bool MIRGraph::VerifyPredInfo(BasicBlock* bb) { void MIRGraph::VerifyDataflow() { /* Verify if all blocks are connected as claimed */ - AllNodesIterator iter(this, false /* not iterative */); + AllNodesIterator iter(this); for (BasicBlock* bb = iter.Next(); bb != NULL; bb = iter.Next()) { VerifyPredInfo(bb); } |