diff options
| author | 2016-03-26 00:44:53 +0000 | |
|---|---|---|
| committer | 2016-03-26 00:44:53 +0000 | |
| commit | e28ad4b91591c226ed404a2b01104bb99bfeb28f (patch) | |
| tree | abebe7c2bc651e45de70e7570ae87045608599db /compiler/optimizing/induction_var_analysis.cc | |
| parent | 782d0464ddc92fd5d55a330068d2d255336c16ba (diff) | |
| parent | 7829691e27c528ca52753dd98bcb4785e328388a (diff) | |
Merge "Fix bug not accounting for type in induction comparison. Extended unit tests."
Diffstat (limited to 'compiler/optimizing/induction_var_analysis.cc')
| -rw-r--r-- | compiler/optimizing/induction_var_analysis.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/optimizing/induction_var_analysis.cc b/compiler/optimizing/induction_var_analysis.cc index 266cb10ab3..c06d19dce0 100644 --- a/compiler/optimizing/induction_var_analysis.cc +++ b/compiler/optimizing/induction_var_analysis.cc @@ -141,7 +141,7 @@ void HInductionVarAnalysis::VisitLoop(HLoopInformation* loop) { DCHECK(stack_.empty()); map_.clear(); - // Determine the loop's trip count. + // Determine the loop's trip-count. VisitControl(loop); } @@ -917,6 +917,7 @@ bool HInductionVarAnalysis::InductionEqual(InductionInfo* info1, info1->induction_class == info2->induction_class && info1->operation == info2->operation && info1->fetch == info2->fetch && + info1->type == info2->type && InductionEqual(info1->op_a, info2->op_a) && InductionEqual(info1->op_b, info2->op_b); } |