From db692461d217e59684baab57abcaf3055fa8ccf5 Mon Sep 17 00:00:00 2001 From: Santiago Aboy Solanes Date: Wed, 17 Aug 2022 16:34:40 +0100 Subject: Fix typo inversion in GenerateLastValueLinear In https://android-review.googlesource.com/c/platform/art/+/2162257/3..5 we inverted an if clause but there was a typo when doing so and the inversion has to be fixed. Test: art/test/testrunner/testrunner.py --host --64 --optimizing -b Change-Id: I2ac8f64b832715dede2f7ccca627a0ef102dc0c2 --- compiler/optimizing/induction_var_range.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (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 cc62da848c..7f85483894 100644 --- a/compiler/optimizing/induction_var_range.cc +++ b/compiler/optimizing/induction_var_range.cc @@ -1128,7 +1128,7 @@ bool InductionVarRange::GenerateLastValueLinear(const HBasicBlock* context, DataType::Type type = info->type; // Avoid any narrowing linear induction or any type mismatch between the linear induction and the // trip count expression. - if (HInductionVarAnalysis::IsNarrowingLinear(info) && trip->type == info->type) { + if (HInductionVarAnalysis::IsNarrowingLinear(info) || trip->type != type) { return false; } -- cgit v1.2.3-59-g8ed1b