diff options
| author | 2015-10-15 16:18:05 +0000 | |
|---|---|---|
| committer | 2015-10-15 16:18:05 +0000 | |
| commit | d5a69fc429f57bf528aa061618d3ae94ee8deb24 (patch) | |
| tree | 1a00f22b320afe53c7c02320e78f1a0e538ee5d0 /compiler/optimizing/induction_var_analysis.cc | |
| parent | bdbce4e321b16a14425659fabaa5648f52853d51 (diff) | |
| parent | e9f37600e98ba21308ad4f70d9d68cf6c057bdbe (diff) | |
Merge "Added support for unsigned comparisons"
Diffstat (limited to 'compiler/optimizing/induction_var_analysis.cc')
| -rw-r--r-- | compiler/optimizing/induction_var_analysis.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/compiler/optimizing/induction_var_analysis.cc b/compiler/optimizing/induction_var_analysis.cc index cf0f3493fd..8968a44da8 100644 --- a/compiler/optimizing/induction_var_analysis.cc +++ b/compiler/optimizing/induction_var_analysis.cc @@ -650,8 +650,7 @@ bool HInductionVarAnalysis::IsTaken(InductionInfo* lower_expr, case kCondLE: return lower_value <= upper_value; case kCondGT: return lower_value > upper_value; case kCondGE: return lower_value >= upper_value; - case kCondEQ: - case kCondNE: LOG(FATAL) << "CONDITION UNREACHABLE"; + default: LOG(FATAL) << "CONDITION UNREACHABLE"; } } return false; // not certain, may be untaken @@ -680,8 +679,8 @@ bool HInductionVarAnalysis::IsFinite(InductionInfo* upper_expr, (IsIntAndGet(upper_expr, &value) && value >= (min - stride_value - 1)); case kCondGE: return (IsIntAndGet(upper_expr, &value) && value >= (min - stride_value)); - case kCondEQ: - case kCondNE: LOG(FATAL) << "CONDITION UNREACHABLE"; + default: + LOG(FATAL) << "CONDITION UNREACHABLE"; } return false; // not certain, may be infinite } |