From 9218537220693562274b3386f0ae8cb52d5f1a49 Mon Sep 17 00:00:00 2001 From: Artem Serov Date: Mon, 20 May 2024 18:09:14 +0100 Subject: 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 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 --- compiler/optimizing/loop_optimization.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'compiler/optimizing/loop_optimization.h') 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* 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 -- cgit v1.2.3-59-g8ed1b