From d3a9f02e50334a0ebe102dd8bdb7887deeb12ec5 Mon Sep 17 00:00:00 2001 From: Tomasz Czeszun Date: Thu, 18 May 2023 15:02:59 -0700 Subject: [PATCH] cpu: x64: brgemm: fix bottom vpad bdb_tail condition --- src/cpu/x64/brgemm/jit_brgemm_kernel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cpu/x64/brgemm/jit_brgemm_kernel.cpp b/src/cpu/x64/brgemm/jit_brgemm_kernel.cpp index 00d072f302f..007eafe2590 100644 --- a/src/cpu/x64/brgemm/jit_brgemm_kernel.cpp +++ b/src/cpu/x64/brgemm/jit_brgemm_kernel.cpp @@ -1960,7 +1960,7 @@ void jit_brgemm_kernel_t::ldb_loop(int bd_block2, bool is_bdb_tail, if (!check_top_vpad && vpad > 0) continue; if (!check_bottom_vpad && vpad < 0) continue; auto real_vpad = vpad; - if (check_bottom_vpad && brg.bdb_tail) { + if (check_bottom_vpad && brg.bdb_tail && vpad < 0) { if (!is_bdb_tail) { // for last full block before // bdb_tail && -vpad greater than bdb_tail