@@ -29,21 +29,26 @@ const impl_list_map_t regular_bf16_impl_list_map {
29
29
REG_REORDER_P (DNNL_X64_ONLY (CPU_REORDER_INSTANCE (x64_jit_blk_reorder_t )))
30
30
REG_REORDER_P (DNNL_X64_ONLY (CPU_REORDER_INSTANCE (x64_jit_uni_reorder_t )))
31
31
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))
34
36
REG_REORDER_P (REG_SR_BIDIR (bf16, any, f32, nChw16c))
35
37
REG_REORDER_P (REG_SR_BIDIR (bf16, any, f32, nCdhw16c))
36
-
38
+ # ifdef ENABLE_UNUSED_PRIM
37
39
REG_REORDER_P (REG_SR_BIDIR (bf16, any, s8, nChw16c))
38
40
REG_REORDER_P (REG_SR_BIDIR (bf16, any, s8, nCdhw16c))
39
41
40
42
REG_REORDER_P (REG_SR_BIDIR (bf16, any, u8, nChw16c))
41
43
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
44
49
REG_REORDER_P (REG_SR_BIDIR (bf16, any, bf16, nChw16c))
45
50
REG_REORDER_P (REG_SR_BIDIR (bf16, any, bf16, nCdhw16c))
46
-
51
+ # ifdef ENABLE_UNUSED_PRIM
47
52
REG_REORDER_P (REG_SR_BIDIR (bf16, any, f32, OIdhw16o16i))
48
53
REG_REORDER_P (REG_SR_BIDIR (bf16, any, f32, OIdhw16i16o))
49
54
@@ -52,11 +57,13 @@ const impl_list_map_t regular_bf16_impl_list_map {
52
57
53
58
REG_REORDER_P (REG_SR_BIDIR (bf16, any, u8, OIdhw16o16i))
54
59
REG_REORDER_P (REG_SR_BIDIR (bf16, any, u8, OIdhw16i16o))
55
-
60
+ # endif
56
61
REG_REORDER_P (REG_SR (bf16, any, bf16, any, fmt_order_any, spec_reference))
57
62
REG_REORDER_P (REG_SR (bf16, any, f32, any, fmt_order_any, spec_reference))
63
+ #ifdef ENABLE_UNUSED_PRIM
58
64
REG_REORDER_P (REG_SR (bf16, any, s8, any, fmt_order_any, spec_reference))
59
65
REG_REORDER_P (REG_SR (bf16, any, u8, any, fmt_order_any, spec_reference))
66
+ #endif
60
67
61
68
nullptr ,
62
69
}},
0 commit comments