diff options
author | 2022-08-17 16:34:40 +0100 | |
---|---|---|
committer | 2022-08-23 13:26:35 +0000 | |
commit | db692461d217e59684baab57abcaf3055fa8ccf5 (patch) | |
tree | dd080f23ff8619ad9b5cf3ad60b755c982ad5f94 /compiler/optimizing/induction_var_range.cc | |
parent | a8760e28393bdcceba603e8245bb52db369587a0 (diff) |
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
Diffstat (limited to 'compiler/optimizing/induction_var_range.cc')
-rw-r--r-- | compiler/optimizing/induction_var_range.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |