From 23d41e80e752feaee439a4535721cfcf42795b88 Mon Sep 17 00:00:00 2001 From: Santiago Aboy Solanes Date: Tue, 9 Jul 2024 14:59:22 +0100 Subject: 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 --- compiler/optimizing/induction_var_range.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'compiler/optimizing/induction_var_range.cc') 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); } -- cgit v1.2.3-59-g8ed1b