diff options
author | 2024-07-09 14:59:22 +0100 | |
---|---|---|
committer | 2024-07-10 12:24:32 +0000 | |
commit | 23d41e80e752feaee439a4535721cfcf42795b88 (patch) | |
tree | f526f8d2c02fe39eb4220baa6ce49b2b96a23787 /compiler/optimizing/induction_var_range.cc | |
parent | 894751180d273b68487f12f3532f24a219deb580 (diff) |
Don't override is_min in the UseFullTripCount case
That information is propagated and used in other functions, so we
have to keep the current value.
Bug: 350830493
Fixes: 350830493
Test: art/test/testrunner/testrunner.py --host --64 --optimizing -b
Change-Id: I25919aa3a1fedeca38e7633a87d60d44d7719724
Diffstat (limited to 'compiler/optimizing/induction_var_range.cc')
-rw-r--r-- | compiler/optimizing/induction_var_range.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/optimizing/induction_var_range.cc b/compiler/optimizing/induction_var_range.cc index 72719f89bf..767a149636 100644 --- a/compiler/optimizing/induction_var_range.cc +++ b/compiler/optimizing/induction_var_range.cc @@ -816,7 +816,7 @@ InductionVarRange::Value InductionVarRange::GetVal(const HBasicBlock* context, case HInductionVarAnalysis::kTripCountInLoopUnsafe: if (UseFullTripCount(context, loop, is_min)) { // Return the full trip count (do not subtract 1 as we do in loop body). - return GetVal(context, loop, info->op_a, trip, /*is_min=*/ false); + return GetVal(context, loop, info->op_a, trip, is_min); } FALLTHROUGH_INTENDED; case HInductionVarAnalysis::kTripCountInBody: @@ -1561,7 +1561,7 @@ bool InductionVarRange::GenerateCode(const HBasicBlock* context, trip, graph, block, - /*is_min=*/false, + is_min, result, allow_potential_overflow); } |