Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cpu: x64: brgemm: use range-based loop for jit_brgemm_amx_uker.cpp #2091

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions src/cpu/x64/brgemm/jit_brgemm_amx_uker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2064,8 +2064,8 @@ void jit_brgemm_amx_uker_base_t::gemm_microkernel_amx(brgemm_iteration_t &bi) {

void jit_brgemm_amx_uker_base_t::rdb_loop(brgemm_iteration_t &bi) {
const auto &tloop = imap_[bi.apply_postops];
for (size_t irdi = 0; irdi < tloop.rdis.size(); irdi++) {
bi.rdi = &(tloop.rdis[irdi]);
for (auto &rdi : tloop.rdis) {
bi.rdi = &rdi;
gemm_microkernel_amx(bi);
}
}
Expand Down Expand Up @@ -2195,8 +2195,8 @@ void jit_brgemm_amx_uker_base_t::ldb_loop(brgemm_iteration_t &bi) {
// we move to next bdb2 block.
const auto &tloop = imap_[bi.apply_postops];
transform_buf_map_A_.clear();
for (size_t ildi = 0; ildi < tloop.ldis.size(); ildi++) {
bi.ldi = &(tloop.ldis[ildi]);
for (auto &ldi : tloop.ldis) {
bi.ldi = &ldi;
ldb_loop_body(bi);
}
}
Expand Down Expand Up @@ -2253,8 +2253,8 @@ void jit_brgemm_amx_uker_base_t::bdb_loop(brgemm_iteration_t &bi) {
mov(ptr[rsp + reg_iter_labels_list_offs_], reg_iter_labels_list);
}

for (size_t ibdi = 0; ibdi < tloop.bdis.size(); ibdi++) {
bi.bdi = &(tloop.bdis[ibdi]);
for (auto &bdi : tloop.bdis) {
bi.bdi = &bdi;
bdb_loop_body(bi);
}
if (ununroll_bd_loop) {
Expand All @@ -2263,8 +2263,8 @@ void jit_brgemm_amx_uker_base_t::bdb_loop(brgemm_iteration_t &bi) {

align(64);
L(iteration_pointers);
for (size_t ibdi = 0; ibdi < tloop.bdis.size(); ibdi++) {
putL(tloop.bdis[ibdi].lstart);
for (const auto &bdi : tloop.bdis) {
putL(bdi.lstart);
}
putL(loop_end);
L(loop_end);
Expand Down