diff options
author | 2013-09-05 17:13:19 -0700 | |
---|---|---|
committer | 2013-09-06 15:55:51 -0700 | |
commit | 56c717860df2d71d66fb77aa77f29dd346e559d3 (patch) | |
tree | 672cc501b98791939cab65b7b47329e90b73c005 /compiler/dex/vreg_analysis.cc | |
parent | c7cd72c5ad65589b68e6aea185200fc2dbb0e850 (diff) |
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/vreg_analysis.cc')
-rw-r--r-- | compiler/dex/vreg_analysis.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/dex/vreg_analysis.cc b/compiler/dex/vreg_analysis.cc index 07f37bbbbb..25510684d1 100644 --- a/compiler/dex/vreg_analysis.cc +++ b/compiler/dex/vreg_analysis.cc @@ -444,7 +444,7 @@ void MIRGraph::BuildRegLocations() { } /* Do type & size inference pass */ - PreOrderDfsIterator iter(this, true /* iterative */); + RepeatingPreOrderDfsIterator iter(this); bool change = false; for (BasicBlock* bb = iter.Next(false); bb != NULL; bb = iter.Next(change)) { change = InferTypeAndSize(bb); |