Skip to content

Commit dc08343

Browse files
committed
simple reorder: disabled unused primitives
1 parent f941509 commit dc08343

14 files changed

+168
-34
lines changed

src/cpu/reorder/cpu_reorder_comp_s8_s8.cpp

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,15 @@ const impl_list_map_t comp_s8_s8_impl_list_map {
2727
{{s8, s8, 2}, {
2828
REG_REORDER_P(DNNL_X64_ONLY(CPU_REORDER_INSTANCE(x64_jit_uni_reorder_t)))
2929
REG_REORDER_P(REG_SR(s8, oi, s8, OI4i16o4i, fmt_order_keep, spec_conv_req_comp))
30+
#ifdef ENABLE_UNUSED_PRIM
3031
REG_REORDER_P(REG_SR(s8, io, s8, OI4i16o4i, fmt_order_keep, spec_conv_req_comp))
32+
#endif
3133
REG_REORDER_P(REG_SR(s8, oi, s8, OI4i32o4i, fmt_order_keep, spec_conv_req_comp))
34+
#ifdef ENABLE_UNUSED_PRIM
3235
REG_REORDER_P(REG_SR(s8, io, s8, OI4i32o4i, fmt_order_keep, spec_conv_req_comp))
36+
#endif
3337
REG_REORDER_P(REG_SR(s8, oi, s8, OI4i64o4i, fmt_order_keep, spec_conv_req_comp))
38+
#ifdef ENABLE_UNUSED_PRIM
3439
REG_REORDER_P(REG_SR(s8, io, s8, OI4i64o4i, fmt_order_keep, spec_conv_req_comp))
3540
REG_REORDER_P(REG_SR(s8, ab, s8, BA16a16b4a, fmt_order_keep, spec_conv_req_comp))
3641
REG_REORDER_P(REG_SR(s8, ab, s8, BA16a32b4a, fmt_order_keep, spec_conv_req_comp))
@@ -40,11 +45,13 @@ const impl_list_map_t comp_s8_s8_impl_list_map {
4045
REG_REORDER_P(REG_SR(s8, ba, s8, BA16a32b4a, fmt_order_keep, spec_conv_req_comp))
4146
REG_REORDER_P(REG_SR(s8, ba, s8, BA16a48b4a, fmt_order_keep, spec_conv_req_comp))
4247
REG_REORDER_P(REG_SR(s8, ba, s8, BA16a64b4a, fmt_order_keep, spec_conv_req_comp))
48+
#endif
4349
nullptr,
4450
}},
4551
// s8 -> s8
4652
{{s8, s8, 3}, {
4753
REG_REORDER_P(DNNL_X64_ONLY(CPU_REORDER_INSTANCE(x64_jit_uni_reorder_t)))
54+
#ifdef ENABLE_UNUSED_PRIM
4855
REG_REORDER_P(REG_SR(s8, any, s8, wio, fmt_order_keep, spec_conv_req_comp))
4956
REG_REORDER_P(REG_SR(s8, iwo, s8, OIw4i16o4i, fmt_order_keep, spec_conv_req_comp))
5057
REG_REORDER_P(REG_SR(s8, iwo, s8, OIw4i32o4i, fmt_order_keep, spec_conv_req_comp))
@@ -70,6 +77,7 @@ const impl_list_map_t comp_s8_s8_impl_list_map {
7077
REG_REORDER_P(REG_SR(s8, iwo, s8, OIw16i16o4i, fmt_order_keep, spec_conv_req_comp))
7178
REG_REORDER_P(REG_SR(s8, oiw, s8, OIw16i16o4i, fmt_order_keep, spec_conv_req_comp))
7279
REG_REORDER_P(REG_SR(s8, wio, s8, OIw16i16o4i, fmt_order_keep, spec_conv_req_comp))
80+
#endif
7381
nullptr,
7482
}},
7583
{{s8, s8, 4}, {
@@ -119,10 +127,10 @@ const impl_list_map_t comp_s8_s8_impl_list_map {
119127
REG_REORDER_P(REG_SR(s8, ihwo, s8, OIhw16i16o4i, fmt_order_keep, spec_conv_req_comp))
120128
REG_REORDER_P(REG_SR(s8, oihw, s8, OIhw16i16o4i, fmt_order_keep, spec_conv_req_comp))
121129
REG_REORDER_P(REG_SR(s8, hwio, s8, OIhw16i16o4i, fmt_order_keep, spec_conv_req_comp))
122-
#endif
123130
REG_REORDER_P(REG_SR(s8, iohw, s8, OIhw4i16o4i, fmt_order_keep, spec_conv_req_comp))
124131
REG_REORDER_P(REG_SR(s8, iohw, s8, OIhw2i8o4i, fmt_order_keep, spec_conv_req_comp))
125132
REG_REORDER_P(REG_SR(s8, iohw, s8, OIhw4o4i, fmt_order_keep, spec_conv_req_comp))
133+
#endif
126134

127135
nullptr,
128136
}},
@@ -170,13 +178,13 @@ const impl_list_map_t comp_s8_s8_impl_list_map {
170178
REG_REORDER_P(REG_SR(s8, idhwo, s8, OIdhw16i16o4i, fmt_order_keep, spec_conv_req_comp))
171179
REG_REORDER_P(REG_SR(s8, oidhw, s8, OIdhw16i16o4i, fmt_order_keep, spec_conv_req_comp))
172180
REG_REORDER_P(REG_SR(s8, dhwio, s8, OIdhw16i16o4i, fmt_order_keep, spec_conv_req_comp))
173-
#endif
174181
REG_REORDER_P(REG_SR(s8, giohw, s8, gOIhw4i16o4i, fmt_order_keep, spec_conv_req_comp))
175182
REG_REORDER_P(REG_SR(s8, giohw, s8, gOIhw2i8o4i, fmt_order_keep, spec_conv_req_comp))
176183
REG_REORDER_P(REG_SR(s8, giohw, s8, gOIhw4o4i, fmt_order_keep, spec_conv_req_comp))
177184
REG_REORDER_P(REG_SR(s8, iodhw, s8, OIdhw4i16o4i, fmt_order_keep, spec_conv_req_comp))
178185
REG_REORDER_P(REG_SR(s8, iodhw, s8, OIdhw2i8o4i, fmt_order_keep, spec_conv_req_comp))
179186
REG_REORDER_P(REG_SR(s8, iodhw, s8, OIdhw4o4i, fmt_order_keep, spec_conv_req_comp))
187+
#endif
180188

181189
nullptr,
182190
}},
@@ -189,10 +197,10 @@ const impl_list_map_t comp_s8_s8_impl_list_map {
189197
REG_REORDER_P(REG_SR(s8, goidhw, s8, gOIdhw4o4i, fmt_order_keep, spec_conv_req_comp))
190198
REG_REORDER_P(REG_SR(s8, goidhw, s8, gOdhwI16o4i, fmt_order_keep, spec_conv_req_comp))
191199
REG_REORDER_P(REG_SR(s8, goidhw, s8, gOIdhw16i16o4i, fmt_order_keep, spec_conv_req_comp))
192-
#endif
193200
REG_REORDER_P(REG_SR(s8, giodhw, s8, gOIdhw4i16o4i, fmt_order_keep, spec_conv_req_comp))
194201
REG_REORDER_P(REG_SR(s8, giodhw, s8, gOIdhw2i8o4i, fmt_order_keep, spec_conv_req_comp))
195202
REG_REORDER_P(REG_SR(s8, giodhw, s8, gOIdhw4o4i, fmt_order_keep, spec_conv_req_comp))
203+
#endif
196204

197205
nullptr,
198206
}},

src/cpu/reorder/cpu_reorder_regular_bf16.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ 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
3233
REG_REORDER_P(REG_SR_BIDIR(bf16, any, f32, nCw16c))
3334
REG_REORDER_P(REG_SR_BIDIR(bf16, any, f32, nChw16c))
3435
REG_REORDER_P(REG_SR_BIDIR(bf16, any, f32, nCdhw16c))

src/cpu/reorder/cpu_reorder_regular_bin.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,15 @@ namespace cpu {
2525
const impl_list_map_t regular_bin_impl_list_map {
2626
// bin ->
2727
{{bin, data_type::undef, 4}, {
28+
#ifdef ENABLE_UNUSED_PRIM
2829
REG_REORDER_P(REG_SR_DIRECT_COPY(bin, bin))
29-
30+
#endif
3031
REG_REORDER_P(REG_SR(bin, any, bin, OIhw8o32i, fmt_order_keep))
3132

3233
REG_REORDER_P(REG_SR(bin, any, bin, OIhw16o32i, fmt_order_keep))
33-
34+
#ifdef ENABLE_UNUSED_PRIM
3435
REG_REORDER_P(REG_SR_BIDIR(u8, any, u8, nChw8c))
36+
#endif
3537

3638
nullptr,
3739
}},

src/cpu/reorder/cpu_reorder_regular_f16.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,10 @@ namespace cpu {
2525
const impl_list_map_t regular_f16_impl_list_map {
2626
// f16 ->
2727
{{f16, data_type::undef, 0}, {
28+
#ifdef ENABLE_UNUSED_PRIM
2829
REG_REORDER_P(REG_SR(f16, any, f16, any, fmt_order_any, spec_reference))
2930
REG_REORDER_P(REG_SR(f16, any, f32, any, fmt_order_any, spec_reference))
31+
#endif
3032

3133
nullptr,
3234
}},

src/cpu/reorder/cpu_reorder_regular_f32_bf16.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ const impl_list_map_t regular_f32_bf16_impl_list_map {
3030
REG_REORDER_P(DNNL_X64_ONLY(CPU_REORDER_INSTANCE(x64_jit_blk_reorder_t)))
3131
REG_REORDER_P(DNNL_X64_ONLY(CPU_REORDER_INSTANCE(x64_jit_uni_reorder_t)))
3232

33+
// todo: [AV] disable unused simple reorder primitives
3334
REG_REORDER_P(REG_SR_BIDIR(f32, ncw, bf16, nCw16c))
3435
REG_REORDER_P(REG_SR_BIDIR(f32, nchw, bf16, nChw16c))
3536
REG_REORDER_P(REG_SR_BIDIR(f32, any, bf16, nChw16c))

src/cpu/reorder/cpu_reorder_regular_f32_bin.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,11 @@ namespace cpu {
2525
const impl_list_map_t regular_f32_bin_impl_list_map {
2626
// f32 -> bin
2727
{{f32, bin, 4}, {
28+
#ifdef ENABLE_UNUSED_PRIM
2829
REG_REORDER_P(REG_SR_BIDIR(f32, nchw, bin, nhwc))
2930

3031
REG_REORDER_P(REG_SR_BIDIR(f32, nhwc, bin, nhwc))
32+
#endif
3133

3234
nullptr,
3335
}},

src/cpu/reorder/cpu_reorder_regular_f32_f16.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ namespace cpu {
2525
const impl_list_map_t regular_f32_f16_impl_list_map {
2626
// f32 -> f16
2727
{{f32, f16, 0}, {
28+
#ifdef ENABLE_UNUSED_PRIM
2829
REG_REORDER_P(REG_SR(f32, any, f16, any, fmt_order_any, spec_reference))
30+
#endif
2931

3032
nullptr,
3133
}},

src/cpu/reorder/cpu_reorder_regular_f32_f32.cpp

Lines changed: 74 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -46,19 +46,27 @@ const impl_list_map_t regular_f32_f32_impl_list_map {
4646

4747
REG_REORDER_P(REG_SR_BIDIR(f32, any, f32, nCw16c))
4848
REG_REORDER_P(REG_SR_BIDIR(f32, any, f32, nCw8c))
49+
#ifdef ENABLE_UNUSED_PRIM
4950
REG_REORDER_P(REG_SR_BIDIR(f32, any, f32, nCw4c))
5051

5152
REG_REORDER_P(REG_SR_BIDIR(f32, nCw4c, f32, nCw16c))
5253
REG_REORDER_P(REG_SR_BIDIR(f32, nCw8c, f32, nCw16c))
5354

5455
REG_REORDER_P(REG_SR_BIDIR(f32, any, f32, OIw4i4o))
5556
REG_REORDER_P(REG_SR_BIDIR(f32, any, f32, OIw4o4i))
56-
REG_REORDER_P(REG_SR_BIDIR(f32, any, f32, OIw8i8o))
57+
#endif
58+
REG_REORDER_P(REG_SR(f32, any, f32, OIw8i8o, fmt_order_keep))
59+
#ifdef ENABLE_UNUSED_PRIM
60+
REG_REORDER_P(REG_SR(f32, any, f32, OIw8i8o, fmt_order_reverse))
5761
REG_REORDER_P(REG_SR_BIDIR(f32, any, f32, OIw8o8i))
5862

5963
REG_REORDER_P(REG_SR_BIDIR(f32, any, f32, OIw16o16i))
60-
REG_REORDER_P(REG_SR_BIDIR(f32, any, f32, OIw16i16o))
64+
#endif
65+
REG_REORDER_P(REG_SR(f32, any, f32, OIw16i16o, fmt_order_keep))
66+
#ifdef ENABLE_UNUSED_PRIM
67+
REG_REORDER_P(REG_SR(f32, any, f32, OIw16i16o, fmt_order_reverse))
6168
REG_REORDER_P(REG_SR_BIDIR(f32, any, f32, IOw16o16i))
69+
#endif
6270

6371
REG_REORDER_P(REG_SR(f32, any, f32, any, fmt_order_any, spec_reference))
6472

@@ -78,10 +86,14 @@ const impl_list_map_t regular_f32_f32_impl_list_map {
7886

7987
REG_REORDER_P(REG_SR_BIDIR(f32, any, f32, nChw16c))
8088
REG_REORDER_P(REG_SR_BIDIR(f32, any, f32, nChw8c))
89+
#ifdef ENABLE_UNUSED_PRIM
8190
REG_REORDER_P(REG_SR_BIDIR(f32, any, f32, nChw4c))
8291

8392
REG_REORDER_P(REG_SR_BIDIR(f32, nChw4c, f32, nChw16c))
84-
REG_REORDER_P(REG_SR_BIDIR(f32, nChw8c, f32, nChw16c))
93+
#endif
94+
REG_REORDER_P(REG_SR(f32, nChw8c, f32, nChw16c, fmt_order_keep))
95+
#ifdef ENABLE_UNUSED_PRIM
96+
REG_REORDER_P(REG_SR(f32, nChw8c, f32, nChw16c, fmt_order_reverse))
8597

8698
REG_REORDER_P(REG_SR_BIDIR(f32, any, f32, gOIw4i4o))
8799
REG_REORDER_P(REG_SR_BIDIR(f32, any, f32, gOIw4o4i))
@@ -94,20 +106,44 @@ const impl_list_map_t regular_f32_f32_impl_list_map {
94106

95107
REG_REORDER_P(REG_SR_BIDIR(f32, any, f32, OIhw4i4o))
96108
REG_REORDER_P(REG_SR_BIDIR(f32, any, f32, OIhw4o4i))
97-
REG_REORDER_P(REG_SR_BIDIR(f32, any, f32, Ohwi8o))
98-
99-
REG_REORDER_P(REG_SR_BIDIR(f32, any, f32, OIhw8i8o))
100-
REG_REORDER_P(REG_SR_BIDIR(f32, any, f32, OIhw8o8i))
109+
#endif
110+
REG_REORDER_P(REG_SR(f32, any, f32, Ohwi8o, fmt_order_keep))
111+
#ifdef ENABLE_UNUSED_PRIM
112+
REG_REORDER_P(REG_SR(f32, any, f32, Ohwi8o, fmt_order_reverse))
113+
#endif
114+
115+
REG_REORDER_P(REG_SR(f32, any, f32, OIhw8i8o, fmt_order_keep))
116+
#ifdef ENABLE_UNUSED_PRIM
117+
REG_REORDER_P(REG_SR(f32, any, f32, OIhw8i8o, fmt_order_reverse))
118+
#endif
119+
REG_REORDER_P(REG_SR(f32, any, f32, OIhw8o8i, fmt_order_keep))
120+
#ifdef ENABLE_UNUSED_PRIM
121+
REG_REORDER_P(REG_SR(f32, any, f32, OIhw8o8i, fmt_order_reverse))
101122

102123
REG_REORDER_P(REG_SR_BIDIR(f32, any, f32, Oihw4o))
103-
REG_REORDER_P(REG_SR_BIDIR(f32, any, f32, Oihw16o))
124+
#endif
125+
REG_REORDER_P(REG_SR(f32, any, f32, Oihw16o, fmt_order_keep))
126+
#ifdef ENABLE_UNUSED_PRIM
127+
REG_REORDER_P(REG_SR(f32, any, f32, Oihw16o, fmt_order_reverse))
128+
104129
REG_REORDER_P(REG_SR_BIDIR(f32, any, f32, Ohwi4o))
105-
REG_REORDER_P(REG_SR_BIDIR(f32, any, f32, Ohwi16o))
106-
REG_REORDER_P(REG_SR_BIDIR(f32, any, f32, OIhw16o16i))
107-
REG_REORDER_P(REG_SR_BIDIR(f32, any, f32, OIhw16i16o))
130+
#endif
131+
REG_REORDER_P(REG_SR(f32, any, f32, Ohwi16o, fmt_order_keep))
132+
#ifdef ENABLE_UNUSED_PRIM
133+
REG_REORDER_P(REG_SR(f32, any, f32, Ohwi16o, fmt_order_reverse))
134+
#endif
135+
REG_REORDER_P(REG_SR(f32, any, f32, OIhw16o16i, fmt_order_keep))
136+
#ifdef ENABLE_UNUSED_PRIM
137+
REG_REORDER_P(REG_SR(f32, any, f32, OIhw16o16i,fmt_order_reverse))
138+
#endif
139+
REG_REORDER_P(REG_SR(f32, any, f32, OIhw16i16o, fmt_order_keep))
140+
#ifdef ENABLE_UNUSED_PRIM
141+
REG_REORDER_P(REG_SR(f32, any, f32, OIhw16i16o, fmt_order_reverse))
142+
108143
REG_REORDER_P(REG_SR_BIDIR(f32, any, f32, IOhw16o16i))
109144

110145
REG_REORDER_P(REG_SR_BIDIR(f32, any, f32, OIhw4i16o4i))
146+
#endif
111147

112148
REG_REORDER_P(REG_SR(f32, any, f32, any, fmt_order_any, spec_reference))
113149

@@ -126,6 +162,7 @@ const impl_list_map_t regular_f32_f32_impl_list_map {
126162

127163
REG_REORDER_P(REG_SR_BIDIR(f32, any, f32, nCdhw16c))
128164
REG_REORDER_P(REG_SR_BIDIR(f32, any, f32, nCdhw8c))
165+
#ifdef ENABLE_UNUSED_PRIM
129166
REG_REORDER_P(REG_SR_BIDIR(f32, any, f32, nCdhw4c))
130167

131168
REG_REORDER_P(REG_SR_BIDIR(f32, nCdhw4c, f32, nCdhw16c))
@@ -147,18 +184,37 @@ const impl_list_map_t regular_f32_f32_impl_list_map {
147184

148185
REG_REORDER_P(REG_SR_BIDIR(f32, any, f32, OIdhw4i4o))
149186
REG_REORDER_P(REG_SR_BIDIR(f32, any, f32, OIdhw4o4i))
150-
REG_REORDER_P(REG_SR_BIDIR(f32, any, f32, Odhwi8o))
151-
REG_REORDER_P(REG_SR_BIDIR(f32, any, f32, OIdhw8i8o))
187+
#endif
188+
REG_REORDER_P(REG_SR(f32, any, f32, Odhwi8o, fmt_order_keep))
189+
#ifdef ENABLE_UNUSED_PRIM
190+
REG_REORDER_P(REG_SR(f32, any, f32, Odhwi8o, fmt_order_reverse))
191+
#endif
192+
REG_REORDER_P(REG_SR(f32, any, f32, OIdhw8i8o, fmt_order_keep))
193+
#ifdef ENABLE_UNUSED_PRIM
194+
REG_REORDER_P(REG_SR(f32, any, f32, OIdhw8i8o, fmt_order_reverse))
195+
152196
REG_REORDER_P(REG_SR_BIDIR(f32, any, f32, OIdhw8o8i))
153197

154198
REG_REORDER_P(REG_SR_BIDIR(f32, any, f32, Oidhw4o))
155-
REG_REORDER_P(REG_SR_BIDIR(f32, any, f32, Oidhw16o))
156-
REG_REORDER_P(REG_SR_BIDIR(f32, any, f32, Odhwi16o))
199+
#endif
200+
REG_REORDER_P(REG_SR(f32, any, f32, Oidhw16o, fmt_order_keep))
201+
#ifdef ENABLE_UNUSED_PRIM
202+
REG_REORDER_P(REG_SR(f32, any, f32, Oidhw16o, fmt_order_reverse))
203+
#endif
204+
REG_REORDER_P(REG_SR(f32, any, f32, Odhwi16o, fmt_order_keep))
205+
#ifdef ENABLE_UNUSED_PRIM
206+
REG_REORDER_P(REG_SR(f32, any, f32, Odhwi16o, fmt_order_reverse))
207+
157208
REG_REORDER_P(REG_SR_BIDIR(f32, any, f32, OIdhw16o16i))
158-
REG_REORDER_P(REG_SR_BIDIR(f32, any, f32, OIdhw16i16o))
209+
#endif
210+
REG_REORDER_P(REG_SR(f32, any, f32, OIdhw16i16o, fmt_order_keep))
211+
#ifdef ENABLE_UNUSED_PRIM
212+
REG_REORDER_P(REG_SR(f32, any, f32, OIdhw16i16o, fmt_order_reverse))
213+
159214
REG_REORDER_P(REG_SR_BIDIR(f32, any, f32, IOdhw16o16i))
160215

161216
REG_REORDER_P(REG_SR_BIDIR(f32, any, f32, gOIhw4i16o4i))
217+
#endif
162218

163219
REG_REORDER_P(REG_SR(f32, any, f32, any, fmt_order_any, spec_reference))
164220

@@ -172,6 +228,7 @@ const impl_list_map_t regular_f32_f32_impl_list_map {
172228

173229
DNNL_AARCH64_ONLY(CPU_REORDER_INSTANCE(aarch64_jit_uni_reorder_t))
174230

231+
#ifdef ENABLE_UNUSED_PRIM
175232
REG_REORDER_P(REG_SR_BIDIR(f32, any, f32, gOIdhw4i4o))
176233
REG_REORDER_P(REG_SR_BIDIR(f32, any, f32, gOIdhw4o4i))
177234
REG_REORDER_P(REG_SR_BIDIR(f32, any, f32, gOdhwi8o))
@@ -184,6 +241,7 @@ const impl_list_map_t regular_f32_f32_impl_list_map {
184241
REG_REORDER_P(REG_SR_BIDIR(f32, any, f32, gOIdhw16o16i))
185242
REG_REORDER_P(REG_SR_BIDIR(f32, any, f32, gOIdhw16i16o))
186243
REG_REORDER_P(REG_SR_BIDIR(f32, any, f32, gIOdhw16o16i))
244+
#endif
187245

188246
REG_REORDER_P(REG_SR(f32, any, f32, any, fmt_order_any, spec_reference))
189247

src/cpu/reorder/cpu_reorder_regular_f32_s32.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,12 @@ const impl_list_map_t regular_f32_s32_impl_list_map {
3131
REG_REORDER_P(DNNL_X64_ONLY(CPU_REORDER_INSTANCE(x64_jit_uni_reorder_t)))
3232

3333
DNNL_AARCH64_ONLY(CPU_REORDER_INSTANCE(aarch64_jit_uni_reorder_t))
34-
34+
#ifdef ENABLE_UNUSED_PRIM
3535
REG_REORDER_P(REG_SR_BIDIR(f32, any, s32, nChw16c))
3636
REG_REORDER_P(REG_SR_BIDIR(f32, any, s32, nChw8c))
3737

3838
REG_REORDER_P(REG_SR(f32, any, s32, any, fmt_order_any, spec_reference))
39+
#endif
3940

4041
nullptr,
4142
}},

src/cpu/reorder/cpu_reorder_regular_f32_s8.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,20 @@ const impl_list_map_t regular_f32_s8_impl_list_map {
3838

3939
DNNL_AARCH64_ONLY(CPU_REORDER_INSTANCE(aarch64_jit_uni_reorder_t))
4040

41+
#ifdef ENABLE_UNUSED_PRIM
4142
REG_REORDER_P(REG_SR_BIDIR(f32, any, s8, nCw16c))
43+
#endif
4244
REG_REORDER_P(REG_SR_BIDIR(f32, any, s8, nChw16c))
45+
#ifdef ENABLE_UNUSED_PRIM
4346
REG_REORDER_P(REG_SR_BIDIR(f32, any, s8, nCw8c))
47+
#endif
4448
REG_REORDER_P(REG_SR_BIDIR(f32, any, s8, nChw8c))
49+
#ifdef ENABLE_UNUSED_PRIM
4550
REG_REORDER_P(REG_SR_BIDIR(f32, any, s8, OIhw4i16o4i))
4651
REG_REORDER_P(REG_SR_BIDIR(f32, any, s8, gOIhw4i16o4i))
4752

4853
REG_REORDER_P(REG_SR(f32, any, s8, any, fmt_order_any, spec_reference))
54+
#endif
4955

5056
nullptr,
5157
}},

0 commit comments

Comments
 (0)