diff options
author | 2015-09-23 17:50:50 -0700 | |
---|---|---|
committer | 2015-09-23 18:36:11 -0700 | |
commit | cd26feb7e9f9eb36af9453f3cdb55cfc4e6e5ec4 (patch) | |
tree | 39768556d365d9830119f03aae81de1e7ee3efd3 /compiler/optimizing/induction_var_analysis.cc | |
parent | a6cfe5a3acb3af782322fde734bfcf0c524d6f99 (diff) |
Minor cleanup in range analysis.
(1) replaced min/max macro as previously required.
(2) removed some redundant code by merging min/max into one.
Change-Id: I610879a06d550346bfac7e6e12ec0299ba226a37
Diffstat (limited to 'compiler/optimizing/induction_var_analysis.cc')
-rw-r--r-- | compiler/optimizing/induction_var_analysis.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/optimizing/induction_var_analysis.cc b/compiler/optimizing/induction_var_analysis.cc index 1ff6bbeccf..9fb4304450 100644 --- a/compiler/optimizing/induction_var_analysis.cc +++ b/compiler/optimizing/induction_var_analysis.cc @@ -557,8 +557,8 @@ void HInductionVarAnalysis::VisitCondition(HLoopInformation* loop, InductionInfo* lo_val = a->op_b; InductionInfo* hi_val = b; // Analyze stride (may be compound). - InductionVarRange::Value v1 = InductionVarRange::GetMin(stride, nullptr); - InductionVarRange::Value v2 = InductionVarRange::GetMax(stride, nullptr); + InductionVarRange::Value v1 = InductionVarRange::GetVal(stride, nullptr, /* is_min */ true); + InductionVarRange::Value v2 = InductionVarRange::GetVal(stride, nullptr, /* is_min */ false); if (v1.a_constant != 0 || v2.a_constant != 0 || v1.b_constant != v2.b_constant) { return; } |