summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Artem Serov <artem.serov@arm.com> 2023-07-24 11:59:17 +0100
committer Ulya Trofimovich <skvadrik@google.com> 2023-07-27 10:09:11 +0000
commit71d8005bc10e01817bda11722ceda9f8187a0036 (patch)
tree276aefac71211c76761e999840de75e36c91bfb0
parent877358ee023db6f72d90986e9c55ca1617d4887d (diff)
Fix a typo in VectorizeIfCondition.
This patch fixes an issue where the type of lhs operand was checked twice and rhs type was ignored when processing conditions during predicated vectorization. The issue doesn't affect the actual vectorization behaviour. Test: ./art/test.py --host --optimizing --jit Test: ./art/test.py --target --optimizing --jit Test: 661-checker-simd-cf-loops. Test: target tests on arm64 with SVE (for details see art/test/README.arm_fvp). Change-Id: I486f29579a307548c321024a41c7fd30bdb97258
-rw-r--r--compiler/optimizing/loop_optimization.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/optimizing/loop_optimization.cc b/compiler/optimizing/loop_optimization.cc
index f62a355ae4..0f8c95f703 100644
--- a/compiler/optimizing/loop_optimization.cc
+++ b/compiler/optimizing/loop_optimization.cc
@@ -2739,7 +2739,7 @@ bool HLoopOptimization::VectorizeIfCondition(LoopNode* node,
HInstruction* opa_promoted = opa;
HInstruction* opb_promoted = opb;
bool is_int_case = DataType::Type::kInt32 == opa->GetType() &&
- DataType::Type::kInt32 == opa->GetType();
+ DataType::Type::kInt32 == opb->GetType();
// Condition arguments should be either both int32 or consistently extended signed/unsigned
// narrower operands.