summaryrefslogtreecommitdiffstats
path: root/compiler/dex/mir_analysis.cc
diff options
context:
space:
mode:
authorbuzbee <buzbee@google.com>2013-09-05 17:13:19 -0700
committerbuzbee <buzbee@google.com>2013-09-06 15:55:51 -0700
commit56c717860df2d71d66fb77aa77f29dd346e559d3 (patch)
tree672cc501b98791939cab65b7b47329e90b73c005 /compiler/dex/mir_analysis.cc
parentc7cd72c5ad65589b68e6aea185200fc2dbb0e850 (diff)
downloadandroid_art-56c717860df2d71d66fb77aa77f29dd346e559d3.tar.gz
android_art-56c717860df2d71d66fb77aa77f29dd346e559d3.tar.bz2
android_art-56c717860df2d71d66fb77aa77f29dd346e559d3.zip
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_analysis.cc')
-rw-r--r--compiler/dex/mir_analysis.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/dex/mir_analysis.cc b/compiler/dex/mir_analysis.cc
index d7a4136a01..8472a3c011 100644
--- a/compiler/dex/mir_analysis.cc
+++ b/compiler/dex/mir_analysis.cc
@@ -1061,7 +1061,7 @@ bool MIRGraph::SkipCompilation(Runtime::CompilerFilter compiler_filter) {
memset(&stats, 0, sizeof(stats));
ClearAllVisitedFlags();
- AllNodesIterator iter(this, false /* not iterative */);
+ AllNodesIterator iter(this);
for (BasicBlock* bb = iter.Next(); bb != NULL; bb = iter.Next()) {
AnalyzeBlock(bb, &stats);
}