summaryrefslogtreecommitdiff
path: root/compiler/optimizing/loop_optimization.h
diff options
context:
space:
mode:
author Artem Serov <artem.serov@arm.com> 2024-05-20 18:09:14 +0100
committer Konstantin Baladurin <konstantin.baladurin@arm.com> 2024-05-28 09:14:33 +0000
commit9218537220693562274b3386f0ae8cb52d5f1a49 (patch)
tree4e3e21ec4b862bae6793023b9f50490146b44f17 /compiler/optimizing/loop_optimization.h
parent1d116a904a41f969b549cac33a4baaf5a123c3ec (diff)
Rename vector_mode_ to synthesis_mode_.
Refactors the variable - to avoid confusion between synthesis (sequential and vector) and vectorization (traditional and predicated) modes. Original author: Artem Serov <Artem.Serov@linaro.org> Test: ./art/test/testrunner/testrunner.py --host --optimizing --jit Test: ./art/test/testrunner/testrunner.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: I5816140971b588a51cc06714f18dda0f17eeb16a
Diffstat (limited to 'compiler/optimizing/loop_optimization.h')
-rw-r--r--compiler/optimizing/loop_optimization.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/optimizing/loop_optimization.h b/compiler/optimizing/loop_optimization.h
index b6998c7f90..546d42b4fa 100644
--- a/compiler/optimizing/loop_optimization.h
+++ b/compiler/optimizing/loop_optimization.h
@@ -105,14 +105,14 @@ class HLoopOptimization : public HOptimization {
};
/*
- * Vectorization mode during synthesis
+ * Loop synthesis mode during vectorization
* (sequential peeling/cleanup loop or vector loop).
*/
- enum class VectorMode {
+ enum class LoopSynthesisMode {
kSequential,
kVector
};
- friend std::ostream& operator<<(std::ostream& os, const VectorMode& fd_logger);
+ friend std::ostream& operator<<(std::ostream& os, const LoopSynthesisMode& fd_logger);
/*
* Representation of a unit-stride array reference.
@@ -562,7 +562,7 @@ class HLoopOptimization : public HOptimization {
ScopedArenaSafeMap<HBasicBlock*, BlockPredicateInfo*>* predicate_info_map_;
// Temporary vectorization bookkeeping.
- VectorMode vector_mode_; // synthesis mode
+ LoopSynthesisMode synthesis_mode_; // synthesis mode
HBasicBlock* vector_preheader_; // preheader of the new loop
HBasicBlock* vector_header_; // header of the new loop
HBasicBlock* vector_body_; // body of the new loop