Chromium Code Reviews| Index: src/hydrogen-bch.cc |
| diff --git a/src/hydrogen-bch.cc b/src/hydrogen-bch.cc |
| index 5af6030346a56a588d4a9a24b48fd55b1f1b0ac3..2feb1587f8ef6344b6b07072f0a9a3a7966e6ad7 100644 |
| --- a/src/hydrogen-bch.cc |
| +++ b/src/hydrogen-bch.cc |
| @@ -237,14 +237,13 @@ class InductionVariableBlocksTable BASE_EMBEDDED { |
| // constant limit we will use that instead of the induction limit. |
| bool has_upper_constant_limit = true; |
| int32_t upper_constant_limit = |
| - check != NULL && check->HasUpperLimit() ? check->upper_limit() : 0; |
| + check->HasUpperLimit() ? check->upper_limit() : 0; |
| for (InductionVariableData::InductionVariableCheck* current_check = check; |
| current_check != NULL; |
| current_check = current_check->next()) { |
| has_upper_constant_limit = |
| - has_upper_constant_limit && |
| - check->HasUpperLimit() && |
| - check->upper_limit() == upper_constant_limit; |
| + has_upper_constant_limit && current_check->HasUpperLimit() && |
|
Yang
2014/10/02 09:54:13
This seems like a bug fix rather and a mechanical
|
| + current_check->upper_limit() == upper_constant_limit; |
| counters()->bounds_checks_eliminated()->Increment(); |
| current_check->check()->set_skip_check(); |
| } |