Index: src/hydrogen.cc |
=================================================================== |
--- src/hydrogen.cc (revision 9901) |
+++ src/hydrogen.cc (working copy) |
@@ -757,7 +757,7 @@ |
// All others are back edges, and thus cannot dominate the loop header. |
blocks_[i]->AssignCommonDominator(blocks_[i]->predecessors()->first()); |
} else { |
- for (int j = 0; j < blocks_[i]->predecessors()->length(); ++j) { |
+ for (int j = blocks_[i]->predecessors()->length() - 1; j >= 0; --j) { |
blocks_[i]->AssignCommonDominator(blocks_[i]->predecessors()->at(j)); |
} |
} |