Skip to content

Commit 5af177c

Browse files
luo-cheng2021EgorDuplensky
authored andcommitted
fix avx2 int8 binary postops reg conflict
1 parent f6533b7 commit 5af177c

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/cpu/x64/jit_uni_x8s8s32x_conv_kernel.cpp

+3-6
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,9 @@ _jit_uni_x8s8s32x_fwd_kernel<isa, Vmm>::_jit_uni_x8s8s32x_fwd_kernel(
6262
if (jcp.with_eltwise || jcp.with_binary || jcp.with_sum || jcp.with_depthwise || jcp.with_quantization) {
6363
using namespace binary_injector;
6464
static constexpr bool preserve_gpr = true;
65-
static constexpr bool preserve_vmm = false;
66-
static constexpr size_t helper_vmm_idx = 15;
67-
const size_t oc_block_tail = jcp.oc_block % isa_simd_width_;
68-
const size_t tail_size = oc_block_tail
69-
? oc_block_tail
70-
: jcp.oc_without_padding % isa_simd_width_;
65+
static constexpr bool preserve_vmm = true;
66+
static constexpr size_t helper_vmm_idx = 2;
67+
const size_t tail_size = 0;
7168

7269
const rhs_arg_static_params_t rhs_arg_static_params {helper_vmm_idx,
7370
r13, r14, r15, preserve_gpr, preserve_vmm,

0 commit comments

Comments
 (0)