@@ -29,21 +29,26 @@ const impl_list_map_t regular_bf16_impl_list_map {
2929 REG_REORDER_P (DNNL_X64_ONLY (CPU_REORDER_INSTANCE (x64_jit_blk_reorder_t )))
3030 REG_REORDER_P (DNNL_X64_ONLY (CPU_REORDER_INSTANCE (x64_jit_uni_reorder_t )))
3131
32- // todo: [AV] disable unused simple reorder primitives
33- REG_REORDER_P (REG_SR_BIDIR (bf16 , any, f32 , nCw16c))
32+ #ifdef ENABLE_UNUSED_PRIM
33+ REG_REORDER_P (REG_SR (bf16 , any, f32 , nCw16c, fmt_order_keep))
34+ #endif
35+ REG_REORDER_P (REG_SR (bf16 , any, f32 , nCw16c, fmt_order_reverse))
3436 REG_REORDER_P (REG_SR_BIDIR (bf16 , any, f32 , nChw16c))
3537 REG_REORDER_P (REG_SR_BIDIR (bf16 , any, f32 , nCdhw16c))
36-
38+ # ifdef ENABLE_UNUSED_PRIM
3739 REG_REORDER_P (REG_SR_BIDIR (bf16 , any, s8, nChw16c))
3840 REG_REORDER_P (REG_SR_BIDIR (bf16 , any, s8, nCdhw16c))
3941
4042 REG_REORDER_P (REG_SR_BIDIR (bf16 , any, u8 , nChw16c))
4143 REG_REORDER_P (REG_SR_BIDIR (bf16 , any, u8 , nCdhw16c))
42-
43- REG_REORDER_P (REG_SR_BIDIR (bf16 , any, bf16 , nCw16c))
44+ #endif
45+ REG_REORDER_P (REG_SR (bf16 , any, bf16 , nCw16c, fmt_order_keep))
46+ #ifdef ENABLE_UNUSED_PRIM
47+ REG_REORDER_P (REG_SR (bf16 , any, bf16 , nCw16c, fmt_order_reverse))
48+ #endif
4449 REG_REORDER_P (REG_SR_BIDIR (bf16 , any, bf16 , nChw16c))
4550 REG_REORDER_P (REG_SR_BIDIR (bf16 , any, bf16 , nCdhw16c))
46-
51+ # ifdef ENABLE_UNUSED_PRIM
4752 REG_REORDER_P (REG_SR_BIDIR (bf16 , any, f32 , OIdhw16o16i))
4853 REG_REORDER_P (REG_SR_BIDIR (bf16 , any, f32 , OIdhw16i16o))
4954
@@ -52,11 +57,13 @@ const impl_list_map_t regular_bf16_impl_list_map {
5257
5358 REG_REORDER_P (REG_SR_BIDIR (bf16 , any, u8 , OIdhw16o16i))
5459 REG_REORDER_P (REG_SR_BIDIR (bf16 , any, u8 , OIdhw16i16o))
55-
60+ # endif
5661 REG_REORDER_P (REG_SR (bf16 , any, bf16 , any, fmt_order_any, spec_reference))
5762 REG_REORDER_P (REG_SR (bf16 , any, f32 , any, fmt_order_any, spec_reference))
63+ #ifdef ENABLE_UNUSED_PRIM
5864 REG_REORDER_P (REG_SR (bf16 , any, s8, any, fmt_order_any, spec_reference))
5965 REG_REORDER_P (REG_SR (bf16 , any, u8 , any, fmt_order_any, spec_reference))
66+ #endif
6067
6168 nullptr ,
6269 }},
0 commit comments