From 09b518802394be3b92b1e42c226267e333c19208 Mon Sep 17 00:00:00 2001 From: Vladislav Golubev Date: Wed, 24 Jan 2024 14:57:16 +0100 Subject: [PATCH] Small corrections --- .../include/snippets/lowered/pass/iter_handler.hpp | 4 ++-- .../src/emitters/snippets/x64/jit_fill_emitter.cpp | 10 ++++++---- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/common/snippets/include/snippets/lowered/pass/iter_handler.hpp b/src/common/snippets/include/snippets/lowered/pass/iter_handler.hpp index a3255d61edbf40..4d3e511f1dd1c2 100644 --- a/src/common/snippets/include/snippets/lowered/pass/iter_handler.hpp +++ b/src/common/snippets/include/snippets/lowered/pass/iter_handler.hpp @@ -13,7 +13,7 @@ namespace lowered { namespace pass { /** * @interface UpdateMemoryAccessCounts - * @brief The pass changes counts of all MemoryAccess ops in the Loop + * @brief The pass changes counts of all MemoryAccess ops * @attention The pass skips inner loops * @attention The pass ignores memory access ports which have count == 1 * @param m_count - count which must be set @@ -32,7 +32,7 @@ class UpdateMemoryAccessCounts : public pass::RangedPass { /** * @interface SetFillOffset - * @brief The pass changes offset of all Fill ops in the Loop + * @brief The pass changes offset of all Fill ops * @param m_offset - offset which must be set * @ingroup snippets */ diff --git a/src/plugins/intel_cpu/src/emitters/snippets/x64/jit_fill_emitter.cpp b/src/plugins/intel_cpu/src/emitters/snippets/x64/jit_fill_emitter.cpp index ed48987b3e3b56..19dd2c2bcb9fc0 100644 --- a/src/plugins/intel_cpu/src/emitters/snippets/x64/jit_fill_emitter.cpp +++ b/src/plugins/intel_cpu/src/emitters/snippets/x64/jit_fill_emitter.cpp @@ -61,12 +61,14 @@ void jit_fill_emitter::emit_isa(const std::vector &in, const std::vector const size_t supported_et_size = 4; const auto register_capacity = (src_vmm.getBit() / 8) / supported_et_size; - if (offset == register_capacity) - h->uni_vmovups(dst_vmm, src_vmm); - else if (is_full_reg()) + if (offset == register_capacity) { + if (src_vmm.getIdx() != dst_vmm.getIdx()) + h->uni_vmovups(dst_vmm, src_vmm); + } else if (is_full_reg()) { fill_full(dst_vmm); - else + } else { fill_tail(src_vmm, dst_vmm); + } } template