summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbuzbee <buzbee@google.com>2013-12-11 13:14:08 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2013-12-11 13:14:09 +0000
commite11eb154b52e2036d775c2df491a70bf7ef04de3 (patch)
tree245336df3b84ef23bcdfb005b209a16e9b0b5492
parent543154a81625e2c724b6f794afc664cf9eddf65e (diff)
parentcdcfdfcb704416882beec98f5a790a65c9b798ae (diff)
downloadart-e11eb154b52e2036d775c2df491a70bf7ef04de3.zip
art-e11eb154b52e2036d775c2df491a70bf7ef04de3.tar.gz
art-e11eb154b52e2036d775c2df491a70bf7ef04de3.tar.bz2
Merge "Art: fix basic block optimization pass"
-rw-r--r--compiler/dex/mir_optimization.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/compiler/dex/mir_optimization.cc b/compiler/dex/mir_optimization.cc
index 6353937..5d83991 100644
--- a/compiler/dex/mir_optimization.cc
+++ b/compiler/dex/mir_optimization.cc
@@ -923,11 +923,11 @@ void MIRGraph::BasicBlockOptimization() {
for (unsigned int i = 0; i < extended_basic_blocks_.size(); i++) {
BasicBlockOpt(GetBasicBlock(extended_basic_blocks_[i]));
}
- }
- } else {
- PreOrderDfsIterator iter(this);
- for (BasicBlock* bb = iter.Next(); bb != NULL; bb = iter.Next()) {
- BasicBlockOpt(bb);
+ } else {
+ PreOrderDfsIterator iter(this);
+ for (BasicBlock* bb = iter.Next(); bb != NULL; bb = iter.Next()) {
+ BasicBlockOpt(bb);
+ }
}
}
if (cu_->enable_debug & (1 << kDebugDumpCFG)) {