summaryrefslogtreecommitdiff
path: root/compiler/optimizing/instruction_simplifier_arm64.h
diff options
context:
space:
mode:
author Artem Serov <artem.serov@linaro.org> 2017-04-27 16:50:47 +0100
committer Artem Serov <artem.serov@linaro.org> 2017-05-11 10:06:04 +0100
commite1811ed6b57a54dc8ebd327e4bd2c4422092a3a0 (patch)
treee3ce48e66190c11a8b5342f4ec0d1046ba28d788 /compiler/optimizing/instruction_simplifier_arm64.h
parent7113885fcd983b33ee1e350865d21517d6297843 (diff)
ARM64: Share address computation across SIMD LDRs/STRs.
For array accesses the element address has the following structure: Address = CONST_OFFSET + base_addr + index << ELEM_SHIFT Taking into account ARM64 LDR/STR addressing modes address part (CONST_OFFSET + index << ELEM_SHIFT) can be shared across array access with the same data type and index. For example, for the following loop 5 accesses can share address computation: void foo(int[] a, int[] b, int[] c) { for (i...) { a[i] = a[i] + 5; b[i] = b[i] + c[i]; } } Test: test-art-host, test-art-target Change-Id: I46af3b4e4a55004336672cdba3296b7622d815ca
Diffstat (limited to 'compiler/optimizing/instruction_simplifier_arm64.h')
-rw-r--r--compiler/optimizing/instruction_simplifier_arm64.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/optimizing/instruction_simplifier_arm64.h b/compiler/optimizing/instruction_simplifier_arm64.h
index eec4e49792..8596f6ad40 100644
--- a/compiler/optimizing/instruction_simplifier_arm64.h
+++ b/compiler/optimizing/instruction_simplifier_arm64.h
@@ -75,6 +75,8 @@ class InstructionSimplifierArm64Visitor : public HGraphVisitor {
void VisitUShr(HUShr* instruction) OVERRIDE;
void VisitXor(HXor* instruction) OVERRIDE;
void VisitVecMul(HVecMul* instruction) OVERRIDE;
+ void VisitVecLoad(HVecLoad* instruction) OVERRIDE;
+ void VisitVecStore(HVecStore* instruction) OVERRIDE;
OptimizingCompilerStats* stats_;
};