Skip to content

Commit

Permalink
Small corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
v-Golubev committed Jan 24, 2024
1 parent 9e6e352 commit 09b5188
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,14 @@ void jit_fill_emitter::emit_isa(const std::vector<size_t> &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<Vmm>(dst_vmm);
else
} else {
fill_tail<Vmm>(src_vmm, dst_vmm);
}
}

template <typename Vmm>
Expand Down

0 comments on commit 09b5188

Please sign in to comment.