1/*===- TableGen'erated file -------------------------------------*- C++ -*-===*\
2|* *|
3|* AArch64PostLegalizerCombinerImpl Combiner Match Table *|
4|* *|
5|* Automatically generated file, do not edit! *|
6|* *|
7\*===----------------------------------------------------------------------===*/
8
9#ifdef GET_GICOMBINER_DEPS
10
11#include "llvm/ADT/SparseBitVector.h"
12namespace llvm {
13
14extern cl::OptionCategory GICombinerOptionCategory;
15
16} // namespace llvm
17
18#endif // GET_GICOMBINER_DEPS
19
20#ifdef GET_GICOMBINER_TYPES
21
22struct AArch64PostLegalizerCombinerImplRuleConfig {
23 SparseBitVector<> DisabledRules;
24
25 bool isRuleEnabled(unsigned RuleID) const;
26 bool parseCommandLineOption();
27 bool setRuleEnabled(StringRef RuleIdentifier);
28 bool setRuleDisabled(StringRef RuleIdentifier);
29};
30
31static std::optional<uint64_t> getRuleIdxForIdentifier(StringRef RuleIdentifier) {
32 uint64_t I;
33 // getAtInteger(...) returns false on success
34 bool Parsed = !RuleIdentifier.getAsInteger(0, I);
35 if (Parsed)
36 return I;
37
38#ifndef NDEBUG
39 switch (RuleIdentifier.size()) {
40 default: break;
41 case 9: // 3 strings to match.
42 switch (RuleIdentifier[0]) {
43 default: break;
44 case 'c': // 1 string to match.
45 if (memcmp(RuleIdentifier.data()+1, "opy_prop", 8) != 0)
46 break;
47 return 0; // "copy_prop"
48 case 'm': // 1 string to match.
49 if (memcmp(RuleIdentifier.data()+1, "ul_const", 8) != 0)
50 break;
51 return 45; // "mul_const"
52 case 'o': // 1 string to match.
53 if (memcmp(RuleIdentifier.data()+1, "r_to_bsp", 8) != 0)
54 break;
55 return 133; // "or_to_bsp"
56 }
57 break;
58 case 10: // 3 strings to match.
59 switch (RuleIdentifier[0]) {
60 default: break;
61 case 'm': // 1 string to match.
62 if (memcmp(RuleIdentifier.data()+1, "ul_to_shl", 9) != 0)
63 break;
64 return 1; // "mul_to_shl"
65 case 'p': // 1 string to match.
66 if (memcmp(RuleIdentifier.data()+1, "2i_to_i2p", 9) != 0)
67 break;
68 return 95; // "p2i_to_i2p"
69 case 's': // 1 string to match.
70 if (memcmp(RuleIdentifier.data()+1, "elect_not", 9) != 0)
71 break;
72 return 73; // "select_not"
73 }
74 break;
75 case 11: // 5 strings to match.
76 switch (RuleIdentifier[0]) {
77 default: break;
78 case 'a': // 1 string to match.
79 if (memcmp(RuleIdentifier.data()+1, "dd_sub_reg", 10) != 0)
80 break;
81 return 103; // "add_sub_reg"
82 case 't': // 3 strings to match.
83 if (memcmp(RuleIdentifier.data()+1, "runc_", 5) != 0)
84 break;
85 switch (RuleIdentifier[6]) {
86 default: break;
87 case 's': // 2 strings to match.
88 if (memcmp(RuleIdentifier.data()+7, "sat", 3) != 0)
89 break;
90 switch (RuleIdentifier[10]) {
91 default: break;
92 case 's': // 1 string to match.
93 return 173; // "trunc_ssats"
94 case 'u': // 1 string to match.
95 return 174; // "trunc_ssatu"
96 }
97 break;
98 case 'u': // 1 string to match.
99 if (memcmp(RuleIdentifier.data()+7, "satu", 4) != 0)
100 break;
101 return 175; // "trunc_usatu"
102 }
103 break;
104 case 'u': // 1 string to match.
105 if (memcmp(RuleIdentifier.data()+1, "nmerge_cst", 10) != 0)
106 break;
107 return 78; // "unmerge_cst"
108 }
109 break;
110 case 12: // 4 strings to match.
111 switch (RuleIdentifier[0]) {
112 default: break;
113 case 'e': // 1 string to match.
114 if (memcmp(RuleIdentifier.data()+1, "xtmultomull", 11) != 0)
115 break;
116 return 171; // "extmultomull"
117 case 'r': // 1 string to match.
118 if (memcmp(RuleIdentifier.data()+1, "edundant_or", 11) != 0)
119 break;
120 return 43; // "redundant_or"
121 case 's': // 1 string to match.
122 if (memcmp(RuleIdentifier.data()+1, "ext_of_sext", 11) != 0)
123 break;
124 return 7; // "sext_of_sext"
125 case 'z': // 1 string to match.
126 if (memcmp(RuleIdentifier.data()+1, "ext_of_zext", 11) != 0)
127 break;
128 return 5; // "zext_of_zext"
129 }
130 break;
131 case 13: // 10 strings to match.
132 switch (RuleIdentifier[0]) {
133 default: break;
134 case 'l': // 1 string to match.
135 if (memcmp(RuleIdentifier.data()+1, "oad_and_mask", 12) != 0)
136 break;
137 return 35; // "load_and_mask"
138 case 'm': // 2 strings to match.
139 switch (RuleIdentifier[1]) {
140 default: break;
141 case 'a': // 1 string to match.
142 if (memcmp(RuleIdentifier.data()+2, "tch_selects", 11) != 0)
143 break;
144 return 70; // "match_selects"
145 case 'e': // 1 string to match.
146 if (memcmp(RuleIdentifier.data()+2, "rge_unmerge", 11) != 0)
147 break;
148 return 77; // "merge_unmerge"
149 }
150 break;
151 case 'r': // 1 string to match.
152 if (memcmp(RuleIdentifier.data()+1, "edundant_and", 12) != 0)
153 break;
154 return 40; // "redundant_and"
155 case 's': // 2 strings to match.
156 switch (RuleIdentifier[1]) {
157 default: break;
158 case 'a': // 1 string to match.
159 if (memcmp(RuleIdentifier.data()+2, "me_val_zero", 11) != 0)
160 break;
161 return 92; // "same_val_zero"
162 case 'd': // 1 string to match.
163 if (memcmp(RuleIdentifier.data()+2, "iv_by_const", 11) != 0)
164 break;
165 return 182; // "sdiv_by_const"
166 }
167 break;
168 case 'u': // 2 strings to match.
169 if (memcmp(RuleIdentifier.data()+1, "nmerge_", 7) != 0)
170 break;
171 switch (RuleIdentifier[8]) {
172 default: break;
173 case 'm': // 1 string to match.
174 if (memcmp(RuleIdentifier.data()+9, "erge", 4) != 0)
175 break;
176 return 76; // "unmerge_merge"
177 case 'u': // 1 string to match.
178 if (memcmp(RuleIdentifier.data()+9, "ndef", 4) != 0)
179 break;
180 return 79; // "unmerge_undef"
181 }
182 break;
183 case 'v': // 2 strings to match.
184 switch (RuleIdentifier[1]) {
185 default: break;
186 case 'a': // 1 string to match.
187 if (memcmp(RuleIdentifier.data()+2, "shr_to_sshl", 11) != 0)
188 break;
189 return 179; // "vashr_to_sshl"
190 case 'l': // 1 string to match.
191 if (memcmp(RuleIdentifier.data()+2, "shr_to_ushl", 11) != 0)
192 break;
193 return 180; // "vlshr_to_ushl"
194 }
195 break;
196 }
197 break;
198 case 14: // 6 strings to match.
199 switch (RuleIdentifier[0]) {
200 default: break;
201 case 'a': // 2 strings to match.
202 if (memcmp(RuleIdentifier.data()+1, "nyext_of_", 9) != 0)
203 break;
204 switch (RuleIdentifier[10]) {
205 default: break;
206 case 's': // 1 string to match.
207 if (memcmp(RuleIdentifier.data()+11, "ext", 3) != 0)
208 break;
209 return 11; // "anyext_of_sext"
210 case 'z': // 1 string to match.
211 if (memcmp(RuleIdentifier.data()+11, "ext", 3) != 0)
212 break;
213 return 10; // "anyext_of_zext"
214 }
215 break;
216 case 'b': // 1 string to match.
217 if (memcmp(RuleIdentifier.data()+1, "inop_same_val", 13) != 0)
218 break;
219 return 91; // "binop_same_val"
220 case 'f': // 1 string to match.
221 if (memcmp(RuleIdentifier.data()+1, "neg_fneg_fold", 13) != 0)
222 break;
223 return 100; // "fneg_fneg_fold"
224 case 's': // 1 string to match.
225 if (memcmp(RuleIdentifier.data()+1, "ext_of_anyext", 13) != 0)
226 break;
227 return 8; // "sext_of_anyext"
228 case 'z': // 1 string to match.
229 if (memcmp(RuleIdentifier.data()+1, "ext_of_anyext", 13) != 0)
230 break;
231 return 6; // "zext_of_anyext"
232 }
233 break;
234 case 15: // 3 strings to match.
235 switch (RuleIdentifier[0]) {
236 default: break;
237 case 'e': // 1 string to match.
238 if (memcmp(RuleIdentifier.data()+1, "xtending_loads", 14) != 0)
239 break;
240 return 34; // "extending_loads"
241 case 'i': // 1 string to match.
242 if (memcmp(RuleIdentifier.data()+1, "2p_to_p2i_zext", 14) != 0)
243 break;
244 return 97; // "i2p_to_p2i_zext"
245 case 'o': // 1 string to match.
246 if (memcmp(RuleIdentifier.data()+1, "verlapping_and", 14) != 0)
247 break;
248 return 116; // "overlapping_and"
249 }
250 break;
251 case 16: // 10 strings to match.
252 switch (RuleIdentifier[0]) {
253 default: break;
254 case 'a': // 1 string to match.
255 if (memcmp(RuleIdentifier.data()+1, "nyext_of_anyext", 15) != 0)
256 break;
257 return 9; // "anyext_of_anyext"
258 case 'c': // 1 string to match.
259 if (memcmp(RuleIdentifier.data()+1, "ombine_mul_cmlt", 15) != 0)
260 break;
261 return 169; // "combine_mul_cmlt"
262 case 'i': // 1 string to match.
263 if (memcmp(RuleIdentifier.data()+1, "2p_to_p2i_trunc", 15) != 0)
264 break;
265 return 98; // "i2p_to_p2i_trunc"
266 case 's': // 4 strings to match.
267 switch (RuleIdentifier[1]) {
268 default: break;
269 case 'e': // 3 strings to match.
270 if (memcmp(RuleIdentifier.data()+2, "lect_", 5) != 0)
271 break;
272 switch (RuleIdentifier[7]) {
273 default: break;
274 case 't': // 1 string to match.
275 if (memcmp(RuleIdentifier.data()+8, "o_minmax", 8) != 0)
276 break;
277 return 132; // "select_to_minmax"
278 case 'u': // 1 string to match.
279 if (memcmp(RuleIdentifier.data()+8, "ndef_cmp", 8) != 0)
280 break;
281 return 64; // "select_undef_cmp"
282 case 'z': // 1 string to match.
283 if (memcmp(RuleIdentifier.data()+8, "ero_true", 8) != 0)
284 break;
285 return 71; // "select_zero_true"
286 }
287 break;
288 case 'u': // 1 string to match.
289 if (memcmp(RuleIdentifier.data()+2, "baddmulreassoc", 14) != 0)
290 break;
291 return 172; // "subaddmulreassoc"
292 }
293 break;
294 case 't': // 2 strings to match.
295 if (memcmp(RuleIdentifier.data()+1, "runcate_of_", 11) != 0)
296 break;
297 switch (RuleIdentifier[12]) {
298 default: break;
299 case 's': // 1 string to match.
300 if (memcmp(RuleIdentifier.data()+13, "ext", 3) != 0)
301 break;
302 return 3; // "truncate_of_sext"
303 case 'z': // 1 string to match.
304 if (memcmp(RuleIdentifier.data()+13, "ext", 3) != 0)
305 break;
306 return 2; // "truncate_of_zext"
307 }
308 break;
309 case 'u': // 1 string to match.
310 if (memcmp(RuleIdentifier.data()+1, "ndef_to_fp_zero", 15) != 0)
311 break;
312 return 118; // "undef_to_fp_zero"
313 }
314 break;
315 case 17: // 9 strings to match.
316 switch (RuleIdentifier[0]) {
317 default: break;
318 case 'a': // 1 string to match.
319 if (memcmp(RuleIdentifier.data()+1, "nyext_trunc_fold", 16) != 0)
320 break;
321 return 99; // "anyext_trunc_fold"
322 case 'e': // 1 string to match.
323 if (memcmp(RuleIdentifier.data()+1, "rase_undef_store", 16) != 0)
324 break;
325 return 129; // "erase_undef_store"
326 case 'm': // 2 strings to match.
327 if (memcmp(RuleIdentifier.data()+1, "atch_addos_", 11) != 0)
328 break;
329 switch (RuleIdentifier[12]) {
330 default: break;
331 case 's': // 1 string to match.
332 if (memcmp(RuleIdentifier.data()+13, "addo", 4) != 0)
333 break;
334 return 60; // "match_addos_saddo"
335 case 'u': // 1 string to match.
336 if (memcmp(RuleIdentifier.data()+13, "addo", 4) != 0)
337 break;
338 return 61; // "match_addos_uaddo"
339 }
340 break;
341 case 's': // 3 strings to match.
342 switch (RuleIdentifier[1]) {
343 default: break;
344 case 'e': // 2 strings to match.
345 if (memcmp(RuleIdentifier.data()+2, "lect_", 5) != 0)
346 break;
347 switch (RuleIdentifier[7]) {
348 default: break;
349 case 't': // 1 string to match.
350 if (memcmp(RuleIdentifier.data()+8, "o_iminmax", 9) != 0)
351 break;
352 return 69; // "select_to_iminmax"
353 case 'z': // 1 string to match.
354 if (memcmp(RuleIdentifier.data()+8, "ero_false", 9) != 0)
355 break;
356 return 72; // "select_zero_false"
357 }
358 break;
359 case 'h': // 1 string to match.
360 if (memcmp(RuleIdentifier.data()+2, "ift_immed_chain", 15) != 0)
361 break;
362 return 115; // "shift_immed_chain"
363 }
364 break;
365 case 't': // 1 string to match.
366 if (memcmp(RuleIdentifier.data()+1, "runc_or_to_addhn", 16) != 0)
367 break;
368 return 134; // "trunc_or_to_addhn"
369 case 'u': // 1 string to match.
370 if (memcmp(RuleIdentifier.data()+1, "ndef_to_int_zero", 16) != 0)
371 break;
372 return 119; // "undef_to_int_zero"
373 }
374 break;
375 case 18: // 6 strings to match.
376 switch (RuleIdentifier[0]) {
377 default: break;
378 case 'b': // 1 string to match.
379 if (memcmp(RuleIdentifier.data()+1, "inop_left_to_zero", 17) != 0)
380 break;
381 return 93; // "binop_left_to_zero"
382 case 'c': // 2 strings to match.
383 if (memcmp(RuleIdentifier.data()+1, "onstant_fold_f", 14) != 0)
384 break;
385 switch (RuleIdentifier[15]) {
386 default: break;
387 case 'a': // 1 string to match.
388 if (memcmp(RuleIdentifier.data()+16, "bs", 2) != 0)
389 break;
390 return 14; // "constant_fold_fabs"
391 case 'n': // 1 string to match.
392 if (memcmp(RuleIdentifier.data()+16, "eg", 2) != 0)
393 break;
394 return 13; // "constant_fold_fneg"
395 }
396 break;
397 case 'f': // 2 strings to match.
398 switch (RuleIdentifier[1]) {
399 default: break;
400 case 'o': // 1 string to match.
401 if (memcmp(RuleIdentifier.data()+2, "ld_merge_to_zext", 16) != 0)
402 break;
403 return 74; // "fold_merge_to_zext"
404 case 'p': // 1 string to match.
405 if (memcmp(RuleIdentifier.data()+2, "trunc_fpext_fold", 16) != 0)
406 break;
407 return 110; // "fptrunc_fpext_fold"
408 }
409 break;
410 case 't': // 1 string to match.
411 if (memcmp(RuleIdentifier.data()+1, "runcate_of_anyext", 17) != 0)
412 break;
413 return 4; // "truncate_of_anyext"
414 }
415 break;
416 case 19: // 14 strings to match.
417 switch (RuleIdentifier[0]) {
418 default: break;
419 case 'b': // 1 string to match.
420 if (memcmp(RuleIdentifier.data()+1, "inop_right_to_zero", 18) != 0)
421 break;
422 return 94; // "binop_right_to_zero"
423 case 'c': // 6 strings to match.
424 if (memcmp(RuleIdentifier.data()+1, "onstant_fold_", 13) != 0)
425 break;
426 switch (RuleIdentifier[14]) {
427 default: break;
428 case 'b': // 1 string to match.
429 if (memcmp(RuleIdentifier.data()+15, "inop", 4) != 0)
430 break;
431 return 85; // "constant_fold_binop"
432 case 'f': // 5 strings to match.
433 switch (RuleIdentifier[15]) {
434 default: break;
435 case 'c': // 1 string to match.
436 if (memcmp(RuleIdentifier.data()+16, "eil", 3) != 0)
437 break;
438 return 19; // "constant_fold_fceil"
439 case 'l': // 1 string to match.
440 if (memcmp(RuleIdentifier.data()+16, "og2", 3) != 0)
441 break;
442 return 16; // "constant_fold_flog2"
443 case 'p': // 1 string to match.
444 if (memcmp(RuleIdentifier.data()+16, "ext", 3) != 0)
445 break;
446 return 18; // "constant_fold_fpext"
447 case 'r': // 1 string to match.
448 if (memcmp(RuleIdentifier.data()+16, "int", 3) != 0)
449 break;
450 return 24; // "constant_fold_frint"
451 case 's': // 1 string to match.
452 if (memcmp(RuleIdentifier.data()+16, "qrt", 3) != 0)
453 break;
454 return 15; // "constant_fold_fsqrt"
455 }
456 break;
457 }
458 break;
459 case 'i': // 1 string to match.
460 if (memcmp(RuleIdentifier.data()+1, "nteger_of_truncate", 18) != 0)
461 break;
462 return 29; // "integer_of_truncate"
463 case 'm': // 1 string to match.
464 if (memcmp(RuleIdentifier.data()+1, "erge_of_x_and_zero", 18) != 0)
465 break;
466 return 83; // "merge_of_x_and_zero"
467 case 'p': // 1 string to match.
468 if (memcmp(RuleIdentifier.data()+1, "tr_add_immed_chain", 18) != 0)
469 break;
470 return 114; // "ptr_add_immed_chain"
471 case 'r': // 2 strings to match.
472 switch (RuleIdentifier[1]) {
473 default: break;
474 case 'i': // 1 string to match.
475 if (memcmp(RuleIdentifier.data()+2, "ght_identity_zero", 17) != 0)
476 break;
477 return 90; // "right_identity_zero"
478 case 'o': // 1 string to match.
479 if (memcmp(RuleIdentifier.data()+2, "tate_out_of_range", 17) != 0)
480 break;
481 return 56; // "rotate_out_of_range"
482 }
483 break;
484 case 's': // 1 string to match.
485 if (memcmp(RuleIdentifier.data()+1, "ext_trunc_sextload", 18) != 0)
486 break;
487 return 38; // "sext_trunc_sextload"
488 case 'u': // 1 string to match.
489 if (memcmp(RuleIdentifier.data()+1, "nary_undef_to_zero", 18) != 0)
490 break;
491 return 123; // "unary_undef_to_zero"
492 }
493 break;
494 case 20: // 9 strings to match.
495 switch (RuleIdentifier[0]) {
496 default: break;
497 case 'b': // 1 string to match.
498 if (memcmp(RuleIdentifier.data()+1, "itcast_bitcast_fold", 19) != 0)
499 break;
500 return 108; // "bitcast_bitcast_fold"
501 case 'c': // 2 strings to match.
502 if (RuleIdentifier[1] != 'o')
503 break;
504 switch (RuleIdentifier[2]) {
505 default: break;
506 case 'm': // 1 string to match.
507 if (memcmp(RuleIdentifier.data()+3, "bine_indexed_load", 17) != 0)
508 break;
509 return 36; // "combine_indexed_load"
510 case 'n': // 1 string to match.
511 if (memcmp(RuleIdentifier.data()+3, "stant_fold_ffloor", 17) != 0)
512 break;
513 return 20; // "constant_fold_ffloor"
514 }
515 break;
516 case 'i': // 1 string to match.
517 if (memcmp(RuleIdentifier.data()+1, "2p_to_p2i_same_size", 19) != 0)
518 break;
519 return 96; // "i2p_to_p2i_same_size"
520 case 'm': // 1 string to match.
521 if (memcmp(RuleIdentifier.data()+1, "erge_of_x_and_undef", 19) != 0)
522 break;
523 return 82; // "merge_of_x_and_undef"
524 case 'r': // 1 string to match.
525 if (memcmp(RuleIdentifier.data()+1, "edundant_sext_inreg", 19) != 0)
526 break;
527 return 46; // "redundant_sext_inreg"
528 case 's': // 1 string to match.
529 if (memcmp(RuleIdentifier.data()+1, "plit_store_zero_128", 19) != 0)
530 break;
531 return 117; // "split_store_zero_128"
532 case 'u': // 2 strings to match.
533 if (RuleIdentifier[1] != 'n')
534 break;
535 switch (RuleIdentifier[2]) {
536 default: break;
537 case 'a': // 1 string to match.
538 if (memcmp(RuleIdentifier.data()+3, "ry_undef_to_undef", 17) != 0)
539 break;
540 return 124; // "unary_undef_to_undef"
541 case 'm': // 1 string to match.
542 if (memcmp(RuleIdentifier.data()+3, "erge_zext_to_zext", 17) != 0)
543 break;
544 return 81; // "unmerge_zext_to_zext"
545 }
546 break;
547 }
548 break;
549 case 21: // 11 strings to match.
550 switch (RuleIdentifier[0]) {
551 default: break;
552 case 'c': // 5 strings to match.
553 if (RuleIdentifier[1] != 'o')
554 break;
555 switch (RuleIdentifier[2]) {
556 default: break;
557 case 'm': // 3 strings to match.
558 if (memcmp(RuleIdentifier.data()+3, "bine_", 5) != 0)
559 break;
560 switch (RuleIdentifier[8]) {
561 default: break;
562 case 'b': // 1 string to match.
563 if (memcmp(RuleIdentifier.data()+9, "uild_unmerge", 12) != 0)
564 break;
565 return 84; // "combine_build_unmerge"
566 case 'c': // 1 string to match.
567 if (memcmp(RuleIdentifier.data()+9, "oncat_vector", 12) != 0)
568 break;
569 return 135; // "combine_concat_vector"
570 case 'i': // 1 string to match.
571 if (memcmp(RuleIdentifier.data()+9, "ndexed_store", 12) != 0)
572 break;
573 return 37; // "combine_indexed_store"
574 }
575 break;
576 case 'n': // 2 strings to match.
577 if (memcmp(RuleIdentifier.data()+3, "stant_fold_", 11) != 0)
578 break;
579 switch (RuleIdentifier[14]) {
580 default: break;
581 case 'c': // 1 string to match.
582 if (memcmp(RuleIdentifier.data()+15, "ast_op", 6) != 0)
583 break;
584 return 87; // "constant_fold_cast_op"
585 case 'f': // 1 string to match.
586 if (memcmp(RuleIdentifier.data()+15, "ptrunc", 6) != 0)
587 break;
588 return 17; // "constant_fold_fptrunc"
589 }
590 break;
591 }
592 break;
593 case 'l': // 1 string to match.
594 if (memcmp(RuleIdentifier.data()+1, "shr_of_trunc_of_lshr", 20) != 0)
595 break;
596 return 177; // "lshr_of_trunc_of_lshr"
597 case 'r': // 1 string to match.
598 if (memcmp(RuleIdentifier.data()+1, "ight_identity_one_fp", 20) != 0)
599 break;
600 return 102; // "right_identity_one_fp"
601 case 's': // 1 string to match.
602 if (memcmp(RuleIdentifier.data()+1, "elect_same_val_equiv", 20) != 0)
603 break;
604 return 89; // "select_same_val_equiv"
605 case 'u': // 3 strings to match.
606 switch (RuleIdentifier[1]) {
607 default: break;
608 case 'b': // 1 string to match.
609 if (memcmp(RuleIdentifier.data()+2, "fx_sign_bit_to_lshr", 19) != 0)
610 break;
611 return 55; // "ubfx_sign_bit_to_lshr"
612 case 'n': // 2 strings to match.
613 switch (RuleIdentifier[2]) {
614 default: break;
615 case 'd': // 1 string to match.
616 if (memcmp(RuleIdentifier.data()+3, "ef_to_negative_one", 18) != 0)
617 break;
618 return 120; // "undef_to_negative_one"
619 case 'm': // 1 string to match.
620 if (memcmp(RuleIdentifier.data()+3, "erge_dead_to_trunc", 18) != 0)
621 break;
622 return 80; // "unmerge_dead_to_trunc"
623 }
624 break;
625 }
626 break;
627 }
628 break;
629 case 22: // 6 strings to match.
630 switch (RuleIdentifier[0]) {
631 default: break;
632 case 'c': // 1 string to match.
633 if (memcmp(RuleIdentifier.data()+1, "onstant_fold_fp_binop", 21) != 0)
634 break;
635 return 86; // "constant_fold_fp_binop"
636 case 'm': // 1 string to match.
637 if (memcmp(RuleIdentifier.data()+1, "ul_by_zero_one_vector", 21) != 0)
638 break;
639 return 44; // "mul_by_zero_one_vector"
640 case 'p': // 1 string to match.
641 if (memcmp(RuleIdentifier.data()+1, "ropagate_undef_any_op", 21) != 0)
642 break;
643 return 125; // "propagate_undef_any_op"
644 case 'r': // 1 string to match.
645 if (memcmp(RuleIdentifier.data()+1, "ight_identity_one_int", 21) != 0)
646 break;
647 return 101; // "right_identity_one_int"
648 case 's': // 1 string to match.
649 if (memcmp(RuleIdentifier.data()+1, "implify_demanded_bits", 21) != 0)
650 break;
651 return 181; // "simplify_demanded_bits"
652 case 't': // 1 string to match.
653 if (memcmp(RuleIdentifier.data()+1, "runc_buildvector_fold", 21) != 0)
654 break;
655 return 106; // "trunc_buildvector_fold"
656 }
657 break;
658 case 23: // 5 strings to match.
659 switch (RuleIdentifier[0]) {
660 default: break;
661 case 'b': // 1 string to match.
662 if (memcmp(RuleIdentifier.data()+1, "uildvector_of_truncate", 22) != 0)
663 break;
664 return 28; // "buildvector_of_truncate"
665 case 'i': // 2 strings to match.
666 if (memcmp(RuleIdentifier.data()+1, "tof_const_zero_fold_", 20) != 0)
667 break;
668 switch (RuleIdentifier[21]) {
669 default: break;
670 case 's': // 1 string to match.
671 if (RuleIdentifier[22] != 'i')
672 break;
673 return 26; // "itof_const_zero_fold_si"
674 case 'u': // 1 string to match.
675 if (RuleIdentifier[22] != 'i')
676 break;
677 return 27; // "itof_const_zero_fold_ui"
678 }
679 break;
680 case 's': // 1 string to match.
681 if (memcmp(RuleIdentifier.data()+1, "elect_same_val_trivial", 22) != 0)
682 break;
683 return 88; // "select_same_val_trivial"
684 case 't': // 1 string to match.
685 if (memcmp(RuleIdentifier.data()+1, "runcusatu_to_fptouisat", 22) != 0)
686 break;
687 return 176; // "truncusatu_to_fptouisat"
688 }
689 break;
690 case 24: // 5 strings to match.
691 switch (RuleIdentifier[0]) {
692 default: break;
693 case 'b': // 1 string to match.
694 if (memcmp(RuleIdentifier.data()+1, "inop_left_undef_to_zero", 23) != 0)
695 break;
696 return 121; // "binop_left_undef_to_zero"
697 case 'c': // 1 string to match.
698 if (memcmp(RuleIdentifier.data()+1, "onstant_fold_fnearbyint", 23) != 0)
699 break;
700 return 25; // "constant_fold_fnearbyint"
701 case 's': // 2 strings to match.
702 if (RuleIdentifier[1] != 'e')
703 break;
704 switch (RuleIdentifier[2]) {
705 default: break;
706 case 'l': // 1 string to match.
707 if (memcmp(RuleIdentifier.data()+3, "ect_constant_cmp_true", 21) != 0)
708 break;
709 return 66; // "select_constant_cmp_true"
710 case 'x': // 1 string to match.
711 if (memcmp(RuleIdentifier.data()+3, "t_inreg_of_sext_inreg", 21) != 0)
712 break;
713 return 12; // "sext_inreg_of_sext_inreg"
714 }
715 break;
716 case 'x': // 1 string to match.
717 if (memcmp(RuleIdentifier.data()+1, "or_of_and_with_same_reg", 23) != 0)
718 break;
719 return 41; // "xor_of_and_with_same_reg"
720 }
721 break;
722 case 25: // 7 strings to match.
723 switch (RuleIdentifier[0]) {
724 default: break;
725 case 'b': // 2 strings to match.
726 if (memcmp(RuleIdentifier.data()+1, "itfield_extract_from_", 21) != 0)
727 break;
728 switch (RuleIdentifier[22]) {
729 default: break;
730 case 'a': // 1 string to match.
731 if (memcmp(RuleIdentifier.data()+23, "nd", 2) != 0)
732 break;
733 return 52; // "bitfield_extract_from_and"
734 case 's': // 1 string to match.
735 if (memcmp(RuleIdentifier.data()+23, "hr", 2) != 0)
736 break;
737 return 53; // "bitfield_extract_from_shr"
738 }
739 break;
740 case 'e': // 1 string to match.
741 if (memcmp(RuleIdentifier.data()+1, "xtract_vec_elt_build_vec", 24) != 0)
742 break;
743 return 166; // "extract_vec_elt_build_vec"
744 case 'r': // 3 strings to match.
745 switch (RuleIdentifier[1]) {
746 default: break;
747 case 'e': // 2 strings to match.
748 if (memcmp(RuleIdentifier.data()+2, "dundant_", 8) != 0)
749 break;
750 switch (RuleIdentifier[10]) {
751 default: break;
752 case 'a': // 1 string to match.
753 if (memcmp(RuleIdentifier.data()+11, "ext_sext_inreg", 14) != 0)
754 break;
755 return 48; // "redundant_aext_sext_inreg"
756 case 'z': // 1 string to match.
757 if (memcmp(RuleIdentifier.data()+11, "ext_sext_inreg", 14) != 0)
758 break;
759 return 47; // "redundant_zext_sext_inreg"
760 }
761 break;
762 case 'i': // 1 string to match.
763 if (memcmp(RuleIdentifier.data()+2, "ght_identity_neg_one_fp", 23) != 0)
764 break;
765 return 113; // "right_identity_neg_one_fp"
766 }
767 break;
768 case 's': // 1 string to match.
769 if (memcmp(RuleIdentifier.data()+1, "elect_constant_cmp_false", 24) != 0)
770 break;
771 return 65; // "select_constant_cmp_false"
772 }
773 break;
774 case 26: // 6 strings to match.
775 switch (RuleIdentifier[0]) {
776 default: break;
777 case 'b': // 2 strings to match.
778 if (RuleIdentifier[1] != 'i')
779 break;
780 switch (RuleIdentifier[2]) {
781 default: break;
782 case 'n': // 1 string to match.
783 if (memcmp(RuleIdentifier.data()+3, "op_right_undef_to_undef", 23) != 0)
784 break;
785 return 122; // "binop_right_undef_to_undef"
786 case 't': // 1 string to match.
787 if (memcmp(RuleIdentifier.data()+3, "cast_bitcast_to_bitcast", 23) != 0)
788 break;
789 return 109; // "bitcast_bitcast_to_bitcast"
790 }
791 break;
792 case 'e': // 1 string to match.
793 if (memcmp(RuleIdentifier.data()+1, "xtractvecelt_pairwise_add", 25) != 0)
794 break;
795 return 42; // "extractvecelt_pairwise_add"
796 case 'm': // 2 strings to match.
797 if (memcmp(RuleIdentifier.data()+1, "utate_anyext_to_zext_", 21) != 0)
798 break;
799 switch (RuleIdentifier[22]) {
800 default: break;
801 case 'f': // 1 string to match.
802 if (memcmp(RuleIdentifier.data()+23, "cmp", 3) != 0)
803 break;
804 return 33; // "mutate_anyext_to_zext_fcmp"
805 case 'i': // 1 string to match.
806 if (memcmp(RuleIdentifier.data()+23, "cmp", 3) != 0)
807 break;
808 return 32; // "mutate_anyext_to_zext_icmp"
809 }
810 break;
811 case 'r': // 1 string to match.
812 if (memcmp(RuleIdentifier.data()+1, "ight_identity_neg_zero_fp", 25) != 0)
813 break;
814 return 111; // "right_identity_neg_zero_fp"
815 }
816 break;
817 case 27: // 3 strings to match.
818 switch (RuleIdentifier[0]) {
819 default: break;
820 case 'c': // 1 string to match.
821 if (memcmp(RuleIdentifier.data()+1, "ombine_use_vector_truncate", 26) != 0)
822 break;
823 return 170; // "combine_use_vector_truncate"
824 case 't': // 1 string to match.
825 if (memcmp(RuleIdentifier.data()+1, "runc_lshr_buildvector_fold", 26) != 0)
826 break;
827 return 107; // "trunc_lshr_buildvector_fold"
828 case 'u': // 1 string to match.
829 if (memcmp(RuleIdentifier.data()+1, "nmerge_anyext_build_vector", 26) != 0)
830 break;
831 return 75; // "unmerge_anyext_build_vector"
832 }
833 break;
834 case 28: // 8 strings to match.
835 switch (RuleIdentifier[0]) {
836 default: break;
837 case 'G': // 1 string to match.
838 if (memcmp(RuleIdentifier.data()+1, "_OR_commute_constant_to_rhs", 27) != 0)
839 break;
840 return 140; // "G_OR_commute_constant_to_rhs"
841 case 'b': // 1 string to match.
842 if (memcmp(RuleIdentifier.data()+1, "uildvector_identity_fold_bv", 27) != 0)
843 break;
844 return 104; // "buildvector_identity_fold_bv"
845 case 'i': // 1 string to match.
846 if (memcmp(RuleIdentifier.data()+1, "nsert_vec_elt_out_of_bounds", 27) != 0)
847 break;
848 return 130; // "insert_vec_elt_out_of_bounds"
849 case 'm': // 4 strings to match.
850 if (memcmp(RuleIdentifier.data()+1, "atch_", 5) != 0)
851 break;
852 switch (RuleIdentifier[6]) {
853 default: break;
854 case 'a': // 2 strings to match.
855 if (memcmp(RuleIdentifier.data()+7, "ddos_", 5) != 0)
856 break;
857 switch (RuleIdentifier[12]) {
858 default: break;
859 case 's': // 1 string to match.
860 if (memcmp(RuleIdentifier.data()+13, "addo_dead_carry", 15) != 0)
861 break;
862 return 58; // "match_addos_saddo_dead_carry"
863 case 'u': // 1 string to match.
864 if (memcmp(RuleIdentifier.data()+13, "addo_dead_carry", 15) != 0)
865 break;
866 return 59; // "match_addos_uaddo_dead_carry"
867 }
868 break;
869 case 's': // 2 strings to match.
870 if (memcmp(RuleIdentifier.data()+7, "ubo_no_overflow_", 16) != 0)
871 break;
872 switch (RuleIdentifier[23]) {
873 default: break;
874 case 's': // 1 string to match.
875 if (memcmp(RuleIdentifier.data()+24, "subo", 4) != 0)
876 break;
877 return 62; // "match_subo_no_overflow_ssubo"
878 case 'u': // 1 string to match.
879 if (memcmp(RuleIdentifier.data()+24, "subo", 4) != 0)
880 break;
881 return 63; // "match_subo_no_overflow_usubo"
882 }
883 break;
884 }
885 break;
886 case 'p': // 1 string to match.
887 if (memcmp(RuleIdentifier.data()+1, "ropagate_undef_shuffle_mask", 27) != 0)
888 break;
889 return 128; // "propagate_undef_shuffle_mask"
890 }
891 break;
892 case 29: // 10 strings to match.
893 switch (RuleIdentifier[0]) {
894 default: break;
895 case 'G': // 4 strings to match.
896 if (RuleIdentifier[1] != '_')
897 break;
898 switch (RuleIdentifier[2]) {
899 default: break;
900 case 'A': // 2 strings to match.
901 switch (RuleIdentifier[3]) {
902 default: break;
903 case 'D': // 1 string to match.
904 if (memcmp(RuleIdentifier.data()+4, "D_commute_constant_to_rhs", 25) != 0)
905 break;
906 return 137; // "G_ADD_commute_constant_to_rhs"
907 case 'N': // 1 string to match.
908 if (memcmp(RuleIdentifier.data()+4, "D_commute_constant_to_rhs", 25) != 0)
909 break;
910 return 139; // "G_AND_commute_constant_to_rhs"
911 }
912 break;
913 case 'M': // 1 string to match.
914 if (memcmp(RuleIdentifier.data()+3, "UL_commute_constant_to_rhs", 26) != 0)
915 break;
916 return 138; // "G_MUL_commute_constant_to_rhs"
917 case 'X': // 1 string to match.
918 if (memcmp(RuleIdentifier.data()+3, "OR_commute_constant_to_rhs", 26) != 0)
919 break;
920 return 141; // "G_XOR_commute_constant_to_rhs"
921 }
922 break;
923 case 'b': // 2 strings to match.
924 switch (RuleIdentifier[1]) {
925 default: break;
926 case 'i': // 1 string to match.
927 if (memcmp(RuleIdentifier.data()+2, "tfield_extract_from_shr_and", 27) != 0)
928 break;
929 return 54; // "bitfield_extract_from_shr_and"
930 case 'u': // 1 string to match.
931 if (memcmp(RuleIdentifier.data()+2, "ildvector_identity_fold_bvt", 27) != 0)
932 break;
933 return 105; // "buildvector_identity_fold_bvt"
934 }
935 break;
936 case 'c': // 2 strings to match.
937 if (memcmp(RuleIdentifier.data()+1, "onstant_fold_intrinsic_", 23) != 0)
938 break;
939 switch (RuleIdentifier[24]) {
940 default: break;
941 case 'r': // 1 string to match.
942 if (memcmp(RuleIdentifier.data()+25, "ound", 4) != 0)
943 break;
944 return 22; // "constant_fold_intrinsic_round"
945 case 't': // 1 string to match.
946 if (memcmp(RuleIdentifier.data()+25, "runc", 4) != 0)
947 break;
948 return 21; // "constant_fold_intrinsic_trunc"
949 }
950 break;
951 case 'e': // 1 string to match.
952 if (memcmp(RuleIdentifier.data()+1, "xtract_vec_elt_out_of_bounds", 28) != 0)
953 break;
954 return 131; // "extract_vec_elt_out_of_bounds"
955 case 'i': // 1 string to match.
956 if (memcmp(RuleIdentifier.data()+1, "cmp_to_true_false_known_bits", 28) != 0)
957 break;
958 return 57; // "icmp_to_true_false_known_bits"
959 }
960 break;
961 case 30: // 5 strings to match.
962 switch (RuleIdentifier[0]) {
963 default: break;
964 case 'G': // 4 strings to match.
965 if (RuleIdentifier[1] != '_')
966 break;
967 switch (RuleIdentifier[2]) {
968 default: break;
969 case 'S': // 2 strings to match.
970 if (RuleIdentifier[3] != 'M')
971 break;
972 switch (RuleIdentifier[4]) {
973 default: break;
974 case 'A': // 1 string to match.
975 if (memcmp(RuleIdentifier.data()+5, "X_commute_constant_to_rhs", 25) != 0)
976 break;
977 return 143; // "G_SMAX_commute_constant_to_rhs"
978 case 'I': // 1 string to match.
979 if (memcmp(RuleIdentifier.data()+5, "N_commute_constant_to_rhs", 25) != 0)
980 break;
981 return 142; // "G_SMIN_commute_constant_to_rhs"
982 }
983 break;
984 case 'U': // 2 strings to match.
985 if (RuleIdentifier[3] != 'M')
986 break;
987 switch (RuleIdentifier[4]) {
988 default: break;
989 case 'A': // 1 string to match.
990 if (memcmp(RuleIdentifier.data()+5, "X_commute_constant_to_rhs", 25) != 0)
991 break;
992 return 145; // "G_UMAX_commute_constant_to_rhs"
993 case 'I': // 1 string to match.
994 if (memcmp(RuleIdentifier.data()+5, "N_commute_constant_to_rhs", 25) != 0)
995 break;
996 return 144; // "G_UMIN_commute_constant_to_rhs"
997 }
998 break;
999 }
1000 break;
1001 case 'r': // 1 string to match.
1002 if (memcmp(RuleIdentifier.data()+1, "ight_identity_neg_zero_fp_nsz", 29) != 0)
1003 break;
1004 return 112; // "right_identity_neg_zero_fp_nsz"
1005 }
1006 break;
1007 case 31: // 7 strings to match.
1008 switch (RuleIdentifier[0]) {
1009 default: break;
1010 case 'G': // 6 strings to match.
1011 if (RuleIdentifier[1] != '_')
1012 break;
1013 switch (RuleIdentifier[2]) {
1014 default: break;
1015 case 'S': // 3 strings to match.
1016 switch (RuleIdentifier[3]) {
1017 default: break;
1018 case 'A': // 1 string to match.
1019 if (memcmp(RuleIdentifier.data()+4, "DDO_commute_constant_to_rhs", 27) != 0)
1020 break;
1021 return 155; // "G_SADDO_commute_constant_to_rhs"
1022 case 'M': // 2 strings to match.
1023 if (memcmp(RuleIdentifier.data()+4, "UL", 2) != 0)
1024 break;
1025 switch (RuleIdentifier[6]) {
1026 default: break;
1027 case 'H': // 1 string to match.
1028 if (memcmp(RuleIdentifier.data()+7, "_commute_constant_to_rhs", 24) != 0)
1029 break;
1030 return 147; // "G_SMULH_commute_constant_to_rhs"
1031 case 'O': // 1 string to match.
1032 if (memcmp(RuleIdentifier.data()+7, "_commute_constant_to_rhs", 24) != 0)
1033 break;
1034 return 157; // "G_SMULO_commute_constant_to_rhs"
1035 }
1036 break;
1037 }
1038 break;
1039 case 'U': // 3 strings to match.
1040 switch (RuleIdentifier[3]) {
1041 default: break;
1042 case 'A': // 1 string to match.
1043 if (memcmp(RuleIdentifier.data()+4, "DDO_commute_constant_to_rhs", 27) != 0)
1044 break;
1045 return 154; // "G_UADDO_commute_constant_to_rhs"
1046 case 'M': // 2 strings to match.
1047 if (memcmp(RuleIdentifier.data()+4, "UL", 2) != 0)
1048 break;
1049 switch (RuleIdentifier[6]) {
1050 default: break;
1051 case 'H': // 1 string to match.
1052 if (memcmp(RuleIdentifier.data()+7, "_commute_constant_to_rhs", 24) != 0)
1053 break;
1054 return 146; // "G_UMULH_commute_constant_to_rhs"
1055 case 'O': // 1 string to match.
1056 if (memcmp(RuleIdentifier.data()+7, "_commute_constant_to_rhs", 24) != 0)
1057 break;
1058 return 156; // "G_UMULO_commute_constant_to_rhs"
1059 }
1060 break;
1061 }
1062 break;
1063 }
1064 break;
1065 case 'c': // 1 string to match.
1066 if (memcmp(RuleIdentifier.data()+1, "ombine_build_vector_of_bitcast", 30) != 0)
1067 break;
1068 return 136; // "combine_build_vector_of_bitcast"
1069 }
1070 break;
1071 case 32: // 2 strings to match.
1072 switch (RuleIdentifier[0]) {
1073 default: break;
1074 case 'b': // 1 string to match.
1075 if (memcmp(RuleIdentifier.data()+1, "itfield_extract_from_sext_inreg", 31) != 0)
1076 break;
1077 return 51; // "bitfield_extract_from_sext_inreg"
1078 case 's': // 1 string to match.
1079 if (memcmp(RuleIdentifier.data()+1, "elect_constant_cmp_general_true", 31) != 0)
1080 break;
1081 return 68; // "select_constant_cmp_general_true"
1082 }
1083 break;
1084 case 33: // 10 strings to match.
1085 switch (RuleIdentifier[0]) {
1086 default: break;
1087 case 'G': // 6 strings to match.
1088 if (RuleIdentifier[1] != '_')
1089 break;
1090 switch (RuleIdentifier[2]) {
1091 default: break;
1092 case 'F': // 2 strings to match.
1093 switch (RuleIdentifier[3]) {
1094 default: break;
1095 case 'A': // 1 string to match.
1096 if (memcmp(RuleIdentifier.data()+4, "DD_commute_fp_constant_to_rhs", 29) != 0)
1097 break;
1098 return 158; // "G_FADD_commute_fp_constant_to_rhs"
1099 case 'M': // 1 string to match.
1100 if (memcmp(RuleIdentifier.data()+4, "UL_commute_fp_constant_to_rhs", 29) != 0)
1101 break;
1102 return 159; // "G_FMUL_commute_fp_constant_to_rhs"
1103 }
1104 break;
1105 case 'S': // 2 strings to match.
1106 switch (RuleIdentifier[3]) {
1107 default: break;
1108 case 'A': // 1 string to match.
1109 if (memcmp(RuleIdentifier.data()+4, "DDSAT_commute_constant_to_rhs", 29) != 0)
1110 break;
1111 return 149; // "G_SADDSAT_commute_constant_to_rhs"
1112 case 'M': // 1 string to match.
1113 if (memcmp(RuleIdentifier.data()+4, "ULFIX_commute_constant_to_rhs", 29) != 0)
1114 break;
1115 return 150; // "G_SMULFIX_commute_constant_to_rhs"
1116 }
1117 break;
1118 case 'U': // 2 strings to match.
1119 switch (RuleIdentifier[3]) {
1120 default: break;
1121 case 'A': // 1 string to match.
1122 if (memcmp(RuleIdentifier.data()+4, "DDSAT_commute_constant_to_rhs", 29) != 0)
1123 break;
1124 return 148; // "G_UADDSAT_commute_constant_to_rhs"
1125 case 'M': // 1 string to match.
1126 if (memcmp(RuleIdentifier.data()+4, "ULFIX_commute_constant_to_rhs", 29) != 0)
1127 break;
1128 return 151; // "G_UMULFIX_commute_constant_to_rhs"
1129 }
1130 break;
1131 }
1132 break;
1133 case 'c': // 1 string to match.
1134 if (memcmp(RuleIdentifier.data()+1, "onstant_fold_intrinsic_roundeven", 32) != 0)
1135 break;
1136 return 23; // "constant_fold_intrinsic_roundeven"
1137 case 'r': // 2 strings to match.
1138 if (memcmp(RuleIdentifier.data()+1, "edundant_", 9) != 0)
1139 break;
1140 switch (RuleIdentifier[10]) {
1141 default: break;
1142 case 'a': // 1 string to match.
1143 if (memcmp(RuleIdentifier.data()+11, "ext_unmerge_sext_inreg", 22) != 0)
1144 break;
1145 return 49; // "redundant_aext_unmerge_sext_inreg"
1146 case 'z': // 1 string to match.
1147 if (memcmp(RuleIdentifier.data()+11, "ext_unmerge_sext_inreg", 22) != 0)
1148 break;
1149 return 50; // "redundant_zext_unmerge_sext_inreg"
1150 }
1151 break;
1152 case 's': // 1 string to match.
1153 if (memcmp(RuleIdentifier.data()+1, "elect_constant_cmp_general_false", 32) != 0)
1154 break;
1155 return 67; // "select_constant_cmp_general_false"
1156 }
1157 break;
1158 case 34: // 1 string to match.
1159 if (memcmp(RuleIdentifier.data()+0, "extract_all_elts_from_build_vector", 34) != 0)
1160 break;
1161 return 167; // "extract_all_elts_from_build_vector"
1162 case 36: // 5 strings to match.
1163 switch (RuleIdentifier[0]) {
1164 default: break;
1165 case 'G': // 4 strings to match.
1166 if (RuleIdentifier[1] != '_')
1167 break;
1168 switch (RuleIdentifier[2]) {
1169 default: break;
1170 case 'F': // 2 strings to match.
1171 if (RuleIdentifier[3] != 'M')
1172 break;
1173 switch (RuleIdentifier[4]) {
1174 default: break;
1175 case 'A': // 1 string to match.
1176 if (memcmp(RuleIdentifier.data()+5, "XNUM_commute_fp_constant_to_rhs", 31) != 0)
1177 break;
1178 return 161; // "G_FMAXNUM_commute_fp_constant_to_rhs"
1179 case 'I': // 1 string to match.
1180 if (memcmp(RuleIdentifier.data()+5, "NNUM_commute_fp_constant_to_rhs", 31) != 0)
1181 break;
1182 return 160; // "G_FMINNUM_commute_fp_constant_to_rhs"
1183 }
1184 break;
1185 case 'S': // 1 string to match.
1186 if (memcmp(RuleIdentifier.data()+3, "MULFIXSAT_commute_constant_to_rhs", 33) != 0)
1187 break;
1188 return 152; // "G_SMULFIXSAT_commute_constant_to_rhs"
1189 case 'U': // 1 string to match.
1190 if (memcmp(RuleIdentifier.data()+3, "MULFIXSAT_commute_constant_to_rhs", 33) != 0)
1191 break;
1192 return 153; // "G_UMULFIXSAT_commute_constant_to_rhs"
1193 }
1194 break;
1195 case 'p': // 1 string to match.
1196 if (memcmp(RuleIdentifier.data()+1, "ropagate_undef_all_ops_build_vector", 35) != 0)
1197 break;
1198 return 127; // "propagate_undef_all_ops_build_vector"
1199 }
1200 break;
1201 case 37: // 3 strings to match.
1202 switch (RuleIdentifier[0]) {
1203 default: break;
1204 case 'G': // 2 strings to match.
1205 if (memcmp(RuleIdentifier.data()+1, "_FM", 3) != 0)
1206 break;
1207 switch (RuleIdentifier[4]) {
1208 default: break;
1209 case 'A': // 1 string to match.
1210 if (memcmp(RuleIdentifier.data()+5, "XIMUM_commute_fp_constant_to_rhs", 32) != 0)
1211 break;
1212 return 165; // "G_FMAXIMUM_commute_fp_constant_to_rhs"
1213 case 'I': // 1 string to match.
1214 if (memcmp(RuleIdentifier.data()+5, "NIMUM_commute_fp_constant_to_rhs", 32) != 0)
1215 break;
1216 return 164; // "G_FMINIMUM_commute_fp_constant_to_rhs"
1217 }
1218 break;
1219 case 'h': // 1 string to match.
1220 if (memcmp(RuleIdentifier.data()+1, "oist_logic_op_with_same_opcode_hands", 36) != 0)
1221 break;
1222 return 39; // "hoist_logic_op_with_same_opcode_hands"
1223 }
1224 break;
1225 case 38: // 1 string to match.
1226 if (memcmp(RuleIdentifier.data()+0, "propagate_undef_all_ops_shuffle_vector", 38) != 0)
1227 break;
1228 return 126; // "propagate_undef_all_ops_shuffle_vector"
1229 case 41: // 2 strings to match.
1230 if (memcmp(RuleIdentifier.data()+0, "G_FM", 4) != 0)
1231 break;
1232 switch (RuleIdentifier[4]) {
1233 default: break;
1234 case 'A': // 1 string to match.
1235 if (memcmp(RuleIdentifier.data()+5, "XNUM_IEEE_commute_fp_constant_to_rhs", 36) != 0)
1236 break;
1237 return 163; // "G_FMAXNUM_IEEE_commute_fp_constant_to_rhs"
1238 case 'I': // 1 string to match.
1239 if (memcmp(RuleIdentifier.data()+5, "NNUM_IEEE_commute_fp_constant_to_rhs", 36) != 0)
1240 break;
1241 return 162; // "G_FMINNUM_IEEE_commute_fp_constant_to_rhs"
1242 }
1243 break;
1244 case 45: // 1 string to match.
1245 if (memcmp(RuleIdentifier.data()+0, "combine_shuffle_of_buildvector_to_buildvector", 45) != 0)
1246 break;
1247 return 30; // "combine_shuffle_of_buildvector_to_buildvector"
1248 case 46: // 3 strings to match.
1249 switch (RuleIdentifier[0]) {
1250 default: break;
1251 case 'c': // 1 string to match.
1252 if (memcmp(RuleIdentifier.data()+1, "ombine_shuffle_of_buildvectors_to_buildvector", 45) != 0)
1253 break;
1254 return 31; // "combine_shuffle_of_buildvectors_to_buildvector"
1255 case 'f': // 1 string to match.
1256 if (memcmp(RuleIdentifier.data()+1, "unnel_shift_from_or_shift_constants_are_legal", 45) != 0)
1257 break;
1258 return 178; // "funnel_shift_from_or_shift_constants_are_legal"
1259 case 'p': // 1 string to match.
1260 if (memcmp(RuleIdentifier.data()+1, "ush_freeze_to_prevent_poison_from_propagating", 45) != 0)
1261 break;
1262 return 168; // "push_freeze_to_prevent_poison_from_propagating"
1263 }
1264 break;
1265 }
1266#endif // ifndef NDEBUG
1267
1268 return std::nullopt;
1269}
1270static std::optional<std::pair<uint64_t, uint64_t>> getRuleRangeForIdentifier(StringRef RuleIdentifier) {
1271 std::pair<StringRef, StringRef> RangePair = RuleIdentifier.split('-');
1272 if (!RangePair.second.empty()) {
1273 const auto First = getRuleIdxForIdentifier(RangePair.first);
1274 const auto Last = getRuleIdxForIdentifier(RangePair.second);
1275 if (!First || !Last)
1276 return std::nullopt;
1277 if (First >= Last)
1278 report_fatal_error("Beginning of range should be before end of range");
1279 return {{*First, *Last + 1}};
1280 }
1281 if (RangePair.first == "*") {
1282 return {{0, 183}};
1283 }
1284 const auto I = getRuleIdxForIdentifier(RangePair.first);
1285 if (!I)
1286 return std::nullopt;
1287 return {{*I, *I + 1}};
1288}
1289
1290bool AArch64PostLegalizerCombinerImplRuleConfig::setRuleEnabled(StringRef RuleIdentifier) {
1291 auto MaybeRange = getRuleRangeForIdentifier(RuleIdentifier);
1292 if (!MaybeRange)
1293 return false;
1294 for (auto I = MaybeRange->first; I < MaybeRange->second; ++I)
1295 DisabledRules.reset(I);
1296 return true;
1297}
1298
1299bool AArch64PostLegalizerCombinerImplRuleConfig::setRuleDisabled(StringRef RuleIdentifier) {
1300 auto MaybeRange = getRuleRangeForIdentifier(RuleIdentifier);
1301 if (!MaybeRange)
1302 return false;
1303 for (auto I = MaybeRange->first; I < MaybeRange->second; ++I)
1304 DisabledRules.set(I);
1305 return true;
1306}
1307
1308static std::vector<std::string> AArch64PostLegalizerCombinerOption;
1309static cl::list<std::string> AArch64PostLegalizerCombinerDisableOption(
1310 "aarch64postlegalizercombiner-disable-rule",
1311 cl::desc("Disable one or more combiner rules temporarily in the AArch64PostLegalizerCombiner pass"),
1312 cl::CommaSeparated,
1313 cl::Hidden,
1314 cl::cat(GICombinerOptionCategory),
1315 cl::callback([](const std::string &Str) {
1316 AArch64PostLegalizerCombinerOption.push_back(Str);
1317 }));
1318static cl::list<std::string> AArch64PostLegalizerCombinerOnlyEnableOption(
1319 "aarch64postlegalizercombiner-only-enable-rule",
1320 cl::desc("Disable all rules in the AArch64PostLegalizerCombiner pass then re-enable the specified ones"),
1321 cl::Hidden,
1322 cl::cat(GICombinerOptionCategory),
1323 cl::callback([](const std::string &CommaSeparatedArg) {
1324 StringRef Str = CommaSeparatedArg;
1325 AArch64PostLegalizerCombinerOption.push_back("*");
1326 do {
1327 auto X = Str.split(",");
1328 AArch64PostLegalizerCombinerOption.push_back(("!" + X.first).str());
1329 Str = X.second;
1330 } while (!Str.empty());
1331 }));
1332
1333
1334bool AArch64PostLegalizerCombinerImplRuleConfig::isRuleEnabled(unsigned RuleID) const {
1335 return !DisabledRules.test(RuleID);
1336}
1337bool AArch64PostLegalizerCombinerImplRuleConfig::parseCommandLineOption() {
1338 for (StringRef Identifier : AArch64PostLegalizerCombinerOption) {
1339 bool Enabled = Identifier.consume_front("!");
1340 if (Enabled && !setRuleEnabled(Identifier))
1341 return false;
1342 if (!Enabled && !setRuleDisabled(Identifier))
1343 return false;
1344 }
1345 return true;
1346}
1347
1348
1349#endif // GET_GICOMBINER_TYPES
1350
1351#ifdef GET_GICOMBINER_TYPES
1352
1353const unsigned MAX_SUBTARGET_PREDICATES = 0;
1354using PredicateBitset = llvm::Bitset<MAX_SUBTARGET_PREDICATES>;
1355
1356#endif // GET_GICOMBINER_TYPES
1357
1358#ifdef GET_GICOMBINER_CLASS_MEMBERS
1359
1360 bool canMatchOpcode(unsigned Opc) const override;
1361 uint32_t getRootFlagsToDrop() const override;
1362
1363#endif // GET_GICOMBINER_CLASS_MEMBERS
1364
1365#ifdef GET_GICOMBINER_CLASS_MEMBERS
1366
1367PredicateBitset AvailableModuleFeatures;
1368mutable PredicateBitset AvailableFunctionFeatures;
1369PredicateBitset getAvailableFeatures() const {
1370 return AvailableModuleFeatures | AvailableFunctionFeatures;
1371}
1372PredicateBitset
1373computeAvailableModuleFeatures(const AArch64Subtarget *Subtarget) const;
1374PredicateBitset
1375computeAvailableFunctionFeatures(const AArch64Subtarget *Subtarget,
1376 const MachineFunction *MF) const;
1377void setupGeneratedPerFunctionState(MachineFunction &MF) override;
1378
1379#endif // GET_GICOMBINER_CLASS_MEMBERS
1380
1381#ifdef GET_GICOMBINER_CLASS_MEMBERS
1382
1383 mutable MatcherState State;
1384 typedef ComplexRendererFns(AArch64PostLegalizerCombinerImpl::*ComplexMatcherMemFn)(MachineOperand &) const;
1385 typedef void(AArch64PostLegalizerCombinerImpl::*CustomRendererFn)(MachineInstrBuilder &, const MachineInstr &, int) const;
1386 const ExecInfoTy<PredicateBitset, ComplexMatcherMemFn, CustomRendererFn> ExecInfo;
1387 static AArch64PostLegalizerCombinerImpl::ComplexMatcherMemFn ComplexPredicateFns[];
1388 static AArch64PostLegalizerCombinerImpl::CustomRendererFn CustomRenderers[];
1389 bool testImmPredicate_I64(unsigned PredicateID, int64_t Imm) const override;
1390 bool testImmPredicate_APInt(unsigned PredicateID, const APInt &Imm) const override;
1391 bool testImmPredicate_APFloat(unsigned PredicateID, const APFloat &Imm) const override;
1392 const uint8_t *getMatchTable() const override;
1393 LLT getLLTForHwMode(unsigned Index) const override;
1394 bool testMIPredicate_MI(unsigned PredicateID, const MachineInstr &MI, const MatcherState &State) const override;
1395 bool testMOPredicate_MO(unsigned PredicateID, const MachineOperand &MO, const MatcherState &State) const override;
1396 bool testSimplePredicate(unsigned PredicateID) const override;
1397 bool runCustomAction(unsigned FnID, const MatcherState &State, NewMIVector &OutMIs) const override;
1398
1399#endif // GET_GICOMBINER_CLASS_MEMBERS
1400
1401#ifdef GET_GICOMBINER_IMPL
1402
1403// LLT Objects.
1404enum {
1405 GILLT_s1,
1406};
1407const static size_t NumTypeObjects = 1;
1408const static LLT TypeObjects[] = {
1409 LLT::scalar(1),
1410};
1411
1412// Bits for subtarget features that participate in instruction matching.
1413enum SubtargetFeatureBits : uint8_t {
1414};
1415
1416PredicateBitset AArch64PostLegalizerCombinerImpl::
1417computeAvailableModuleFeatures(const AArch64Subtarget *Subtarget) const {
1418 PredicateBitset Features{};
1419 return Features;
1420}
1421
1422void AArch64PostLegalizerCombinerImpl::setupGeneratedPerFunctionState(MachineFunction &MF) {
1423 AvailableFunctionFeatures = computeAvailableFunctionFeatures((const AArch64Subtarget *)&MF.getSubtarget(), &MF);
1424}
1425PredicateBitset AArch64PostLegalizerCombinerImpl::
1426computeAvailableFunctionFeatures(const AArch64Subtarget *Subtarget, const MachineFunction *MF) const {
1427 PredicateBitset Features{};
1428 return Features;
1429}
1430
1431// Feature bitsets.
1432enum {
1433 GIFBS_Invalid,
1434};
1435constexpr static PredicateBitset FeatureBitsets[] {
1436 {}, // GIFBS_Invalid
1437};
1438
1439// ComplexPattern predicates.
1440enum {
1441 GICP_Invalid,
1442};
1443// See constructor for table contents
1444
1445AArch64PostLegalizerCombinerImpl::ComplexMatcherMemFn
1446AArch64PostLegalizerCombinerImpl::ComplexPredicateFns[] = {
1447 nullptr, // GICP_Invalid
1448};
1449
1450enum {
1451 GICXXPred_MI_Predicate_GICombiner0 = GICXXPred_Invalid + 1,
1452 GICXXPred_MI_Predicate_GICombiner1,
1453 GICXXPred_MI_Predicate_GICombiner2,
1454 GICXXPred_MI_Predicate_GICombiner3,
1455 GICXXPred_MI_Predicate_GICombiner4,
1456 GICXXPred_MI_Predicate_GICombiner5,
1457 GICXXPred_MI_Predicate_GICombiner6,
1458 GICXXPred_MI_Predicate_GICombiner7,
1459 GICXXPred_MI_Predicate_GICombiner8,
1460 GICXXPred_MI_Predicate_GICombiner9,
1461 GICXXPred_MI_Predicate_GICombiner10,
1462 GICXXPred_MI_Predicate_GICombiner11,
1463 GICXXPred_MI_Predicate_GICombiner12,
1464 GICXXPred_MI_Predicate_GICombiner13,
1465 GICXXPred_MI_Predicate_GICombiner14,
1466 GICXXPred_MI_Predicate_GICombiner15,
1467 GICXXPred_MI_Predicate_GICombiner16,
1468 GICXXPred_MI_Predicate_GICombiner17,
1469 GICXXPred_MI_Predicate_GICombiner18,
1470 GICXXPred_MI_Predicate_GICombiner19,
1471 GICXXPred_MI_Predicate_GICombiner20,
1472 GICXXPred_MI_Predicate_GICombiner21,
1473 GICXXPred_MI_Predicate_GICombiner22,
1474 GICXXPred_MI_Predicate_GICombiner23,
1475 GICXXPred_MI_Predicate_GICombiner24,
1476 GICXXPred_MI_Predicate_GICombiner25,
1477 GICXXPred_MI_Predicate_GICombiner26,
1478 GICXXPred_MI_Predicate_GICombiner27,
1479 GICXXPred_MI_Predicate_GICombiner28,
1480 GICXXPred_MI_Predicate_GICombiner29,
1481 GICXXPred_MI_Predicate_GICombiner30,
1482 GICXXPred_MI_Predicate_GICombiner31,
1483 GICXXPred_MI_Predicate_GICombiner32,
1484 GICXXPred_MI_Predicate_GICombiner33,
1485};
1486bool AArch64PostLegalizerCombinerImpl::testMIPredicate_MI(unsigned PredicateID, const MachineInstr & MI, const MatcherState &State) const {
1487 switch (PredicateID) {
1488 case GICXXPred_MI_Predicate_GICombiner0: {
1489 return MRI.getType(State.MIs[0]->getOperand(0).getReg()).isScalar();
1490 }
1491 case GICXXPred_MI_Predicate_GICombiner1: {
1492 return Helper.matchSextTruncSextLoad(*State.MIs[0]);
1493 }
1494 case GICXXPred_MI_Predicate_GICombiner2: {
1495 return Helper.isZeroOrOneVector(State.MIs[0]->getOperand(2).getReg());
1496 }
1497 case GICXXPred_MI_Predicate_GICombiner3: {
1498 return Helper.matchRedundantSExtInReg(*State.MIs[0]);
1499 }
1500 case GICXXPred_MI_Predicate_GICombiner4: {
1501 LLT SrcTy = MRI.getType(State.MIs[1]->getOperand(1).getReg());
1502 return State.MIs[0]->getOperand(2).getImm() <= SrcTy.getScalarSizeInBits() &&
1503 VT->computeNumSignBits(State.MIs[1]->getOperand(1).getReg()) >=
1504 (SrcTy.getScalarSizeInBits() - State.MIs[0]->getOperand(2).getImm() + 1);
1505 llvm_unreachable("GICombiner4 should have returned");
1506 }
1507 case GICXXPred_MI_Predicate_GICombiner5: {
1508 return MRI.use_nodbg_empty(State.MIs[0]->getOperand(1).getReg()) &&
1509 Helper.isLegalOrBeforeLegalizer(
1510 {TargetOpcode::G_ADD,
1511 {MRI.getType(State.MIs[0]->getOperand(0).getReg())}});
1512 }
1513 case GICXXPred_MI_Predicate_GICombiner6: {
1514 auto C = isConstantOrConstantSplatVector(State.MIs[0]->getOperand(1).getReg(), MRI);
1515 return C && C->isZero();
1516 llvm_unreachable("GICombiner6 should have returned");
1517 }
1518 case GICXXPred_MI_Predicate_GICombiner7: {
1519 auto C = isConstantOrConstantSplatVector(State.MIs[0]->getOperand(1).getReg(), MRI);
1520 return C && !C->isZero();
1521 llvm_unreachable("GICombiner7 should have returned");
1522 }
1523 case GICXXPred_MI_Predicate_GICombiner8: {
1524 return !isConstantOrConstantSplatVector(State.MIs[0]->getOperand(1).getReg(), MRI) &&
1525 MRI.getType(State.MIs[0]->getOperand(1).getReg()) == MRI.getType(State.MIs[0]->getOperand(0).getReg()) &&
1526 VT->computeNumSignBits(State.MIs[0]->getOperand(1).getReg()) == MRI.getType(State.MIs[0]->getOperand(0).getReg()).getScalarSizeInBits();
1527 }
1528 case GICXXPred_MI_Predicate_GICombiner9: {
1529 return MRI.getType(State.MIs[0]->getOperand(1).getReg()) == LLT::scalar(32);
1530 }
1531 case GICXXPred_MI_Predicate_GICombiner10: {
1532 return Helper.isLegalOrBeforeLegalizer(
1533 {TargetOpcode::G_ANYEXT,
1534 {MRI.getType(State.MIs[0]->getOperand(0).getReg()),
1535 MRI.getType(State.MIs[0]->getOperand(1).getReg())}});
1536 }
1537 case GICXXPred_MI_Predicate_GICombiner11: {
1538 return Helper.isLegalOrBeforeLegalizer(
1539 {TargetOpcode::G_ZEXT,
1540 {MRI.getType(State.MIs[0]->getOperand(0).getReg()),
1541 MRI.getType(State.MIs[0]->getOperand(1).getReg())}});
1542 }
1543 case GICXXPred_MI_Predicate_GICombiner12: {
1544 return Helper.matchSelectSameVal(*State.MIs[0]);
1545 }
1546 case GICXXPred_MI_Predicate_GICombiner13: {
1547 return Helper.matchConstantOp(State.MIs[0]->getOperand(1), 0);
1548 }
1549 case GICXXPred_MI_Predicate_GICombiner14: {
1550 return MRI.getType(State.MIs[1]->getOperand(1).getReg()) == MRI.getType(State.MIs[0]->getOperand(0).getReg());
1551 }
1552 case GICXXPred_MI_Predicate_GICombiner15: {
1553 return MRI.getType(State.MIs[0]->getOperand(0).getReg()).getSizeInBits() ==
1554 MRI.getType(State.MIs[1]->getOperand(1).getReg()).getSizeInBits();
1555 }
1556 case GICXXPred_MI_Predicate_GICombiner16: {
1557 return MRI.getType(State.MIs[0]->getOperand(0).getReg()).getSizeInBits() >
1558 MRI.getType(State.MIs[1]->getOperand(1).getReg()).getSizeInBits();
1559 }
1560 case GICXXPred_MI_Predicate_GICombiner17: {
1561 return MRI.getType(State.MIs[0]->getOperand(0).getReg()).getSizeInBits() <
1562 MRI.getType(State.MIs[1]->getOperand(1).getReg()).getSizeInBits();
1563 }
1564 case GICXXPred_MI_Predicate_GICombiner18: {
1565 return Helper.matchConstantFPOp(State.MIs[0]->getOperand(2), 1.0);
1566 }
1567 case GICXXPred_MI_Predicate_GICombiner19: {
1568 return MRI.getType(State.MIs[1]->getOperand(1).getReg()) != MRI.getType(State.MIs[0]->getOperand(0).getReg());
1569 }
1570 case GICXXPred_MI_Predicate_GICombiner20: {
1571 return Helper.matchConstantFPOp(State.MIs[0]->getOperand(2), -0.0);
1572 }
1573 case GICXXPred_MI_Predicate_GICombiner21: {
1574 return Helper.matchConstantFPOp(State.MIs[0]->getOperand(2), 0.0);
1575 }
1576 case GICXXPred_MI_Predicate_GICombiner22: {
1577 return Helper.matchConstantFPOp(State.MIs[0]->getOperand(2), -1.0);
1578 }
1579 case GICXXPred_MI_Predicate_GICombiner23: {
1580 return Helper.matchAllExplicitUsesAreUndef(*State.MIs[0]);
1581 }
1582 case GICXXPred_MI_Predicate_GICombiner24: {
1583 return Helper.matchUndefShuffleVectorMask(*State.MIs[0]);
1584 }
1585 case GICXXPred_MI_Predicate_GICombiner25: {
1586 return cast<GStore>(State.MIs[0])->isUnordered();
1587 }
1588 case GICXXPred_MI_Predicate_GICombiner26: {
1589 return Helper.matchInsertExtractVecEltOutOfBounds(*State.MIs[0]);
1590 }
1591 case GICXXPred_MI_Predicate_GICombiner27: {
1592 return matchTruncOrToADDHN(*State.MIs[0], MRI, VT, State.MIs[0]->getOperand(0).getReg(),
1593 State.MIs[0]->getOperand(1).getReg(), State.MIs[1]->getOperand(1).getReg(),
1594 State.MIs[1]->getOperand(2).getReg());
1595 }
1596 case GICXXPred_MI_Predicate_GICombiner28: {
1597 return Helper.matchCommuteConstantToRHS(*State.MIs[0]);
1598 }
1599 case GICXXPred_MI_Predicate_GICombiner29: {
1600 return Helper.matchCommuteFPConstantToRHS(*State.MIs[0]);
1601 }
1602 case GICXXPred_MI_Predicate_GICombiner30: {
1603 return matchSubAddMulReassoc(State.MIs[1]->getOperand(1).getReg(), State.MIs[1]->getOperand(2).getReg(),
1604 State.MIs[0]->getOperand(2).getReg(), State.MIs[0]->getOperand(1).getReg(), MRI);
1605 }
1606 case GICXXPred_MI_Predicate_GICombiner31: {
1607 return Helper.matchTruncUSatU(*State.MIs[0], *State.MIs[1]);
1608 }
1609 case GICXXPred_MI_Predicate_GICombiner32: {
1610 return Helper.matchTruncUSatUToFPTOUISat(*State.MIs[0], *State.MIs[1]);
1611 }
1612 case GICXXPred_MI_Predicate_GICombiner33: {
1613 return matchVAshrLshrToSShl(*State.MIs[0], MRI);
1614 }
1615 }
1616 llvm_unreachable("Unknown predicate");
1617 return false;
1618}
1619bool AArch64PostLegalizerCombinerImpl::testMOPredicate_MO(unsigned PredicateID, const MachineOperand & MO, const MatcherState &State) const {
1620 llvm_unreachable("Unknown predicate");
1621 return false;
1622}
1623bool AArch64PostLegalizerCombinerImpl::testImmPredicate_I64(unsigned PredicateID, int64_t Imm) const {
1624 llvm_unreachable("Unknown predicate");
1625 return false;
1626}
1627bool AArch64PostLegalizerCombinerImpl::testImmPredicate_APFloat(unsigned PredicateID, const APFloat & Imm) const {
1628 llvm_unreachable("Unknown predicate");
1629 return false;
1630}
1631bool AArch64PostLegalizerCombinerImpl::testImmPredicate_APInt(unsigned PredicateID, const APInt & Imm) const {
1632 llvm_unreachable("Unknown predicate");
1633 return false;
1634}
1635enum {
1636 GICXXPred_Simple_IsRule0Enabled = GICXXPred_Invalid + 1,
1637 GICXXPred_Simple_IsRule1Enabled,
1638 GICXXPred_Simple_IsRule2Enabled,
1639 GICXXPred_Simple_IsRule3Enabled,
1640 GICXXPred_Simple_IsRule4Enabled,
1641 GICXXPred_Simple_IsRule5Enabled,
1642 GICXXPred_Simple_IsRule6Enabled,
1643 GICXXPred_Simple_IsRule7Enabled,
1644 GICXXPred_Simple_IsRule8Enabled,
1645 GICXXPred_Simple_IsRule9Enabled,
1646 GICXXPred_Simple_IsRule10Enabled,
1647 GICXXPred_Simple_IsRule11Enabled,
1648 GICXXPred_Simple_IsRule12Enabled,
1649 GICXXPred_Simple_IsRule13Enabled,
1650 GICXXPred_Simple_IsRule14Enabled,
1651 GICXXPred_Simple_IsRule15Enabled,
1652 GICXXPred_Simple_IsRule16Enabled,
1653 GICXXPred_Simple_IsRule17Enabled,
1654 GICXXPred_Simple_IsRule18Enabled,
1655 GICXXPred_Simple_IsRule19Enabled,
1656 GICXXPred_Simple_IsRule20Enabled,
1657 GICXXPred_Simple_IsRule21Enabled,
1658 GICXXPred_Simple_IsRule22Enabled,
1659 GICXXPred_Simple_IsRule23Enabled,
1660 GICXXPred_Simple_IsRule24Enabled,
1661 GICXXPred_Simple_IsRule25Enabled,
1662 GICXXPred_Simple_IsRule26Enabled,
1663 GICXXPred_Simple_IsRule27Enabled,
1664 GICXXPred_Simple_IsRule28Enabled,
1665 GICXXPred_Simple_IsRule29Enabled,
1666 GICXXPred_Simple_IsRule30Enabled,
1667 GICXXPred_Simple_IsRule31Enabled,
1668 GICXXPred_Simple_IsRule32Enabled,
1669 GICXXPred_Simple_IsRule33Enabled,
1670 GICXXPred_Simple_IsRule34Enabled,
1671 GICXXPred_Simple_IsRule35Enabled,
1672 GICXXPred_Simple_IsRule36Enabled,
1673 GICXXPred_Simple_IsRule37Enabled,
1674 GICXXPred_Simple_IsRule38Enabled,
1675 GICXXPred_Simple_IsRule39Enabled,
1676 GICXXPred_Simple_IsRule40Enabled,
1677 GICXXPred_Simple_IsRule41Enabled,
1678 GICXXPred_Simple_IsRule42Enabled,
1679 GICXXPred_Simple_IsRule43Enabled,
1680 GICXXPred_Simple_IsRule44Enabled,
1681 GICXXPred_Simple_IsRule45Enabled,
1682 GICXXPred_Simple_IsRule46Enabled,
1683 GICXXPred_Simple_IsRule47Enabled,
1684 GICXXPred_Simple_IsRule48Enabled,
1685 GICXXPred_Simple_IsRule49Enabled,
1686 GICXXPred_Simple_IsRule50Enabled,
1687 GICXXPred_Simple_IsRule51Enabled,
1688 GICXXPred_Simple_IsRule52Enabled,
1689 GICXXPred_Simple_IsRule53Enabled,
1690 GICXXPred_Simple_IsRule54Enabled,
1691 GICXXPred_Simple_IsRule55Enabled,
1692 GICXXPred_Simple_IsRule56Enabled,
1693 GICXXPred_Simple_IsRule57Enabled,
1694 GICXXPred_Simple_IsRule58Enabled,
1695 GICXXPred_Simple_IsRule59Enabled,
1696 GICXXPred_Simple_IsRule60Enabled,
1697 GICXXPred_Simple_IsRule61Enabled,
1698 GICXXPred_Simple_IsRule62Enabled,
1699 GICXXPred_Simple_IsRule63Enabled,
1700 GICXXPred_Simple_IsRule64Enabled,
1701 GICXXPred_Simple_IsRule65Enabled,
1702 GICXXPred_Simple_IsRule66Enabled,
1703 GICXXPred_Simple_IsRule67Enabled,
1704 GICXXPred_Simple_IsRule68Enabled,
1705 GICXXPred_Simple_IsRule69Enabled,
1706 GICXXPred_Simple_IsRule70Enabled,
1707 GICXXPred_Simple_IsRule71Enabled,
1708 GICXXPred_Simple_IsRule72Enabled,
1709 GICXXPred_Simple_IsRule73Enabled,
1710 GICXXPred_Simple_IsRule74Enabled,
1711 GICXXPred_Simple_IsRule75Enabled,
1712 GICXXPred_Simple_IsRule76Enabled,
1713 GICXXPred_Simple_IsRule77Enabled,
1714 GICXXPred_Simple_IsRule78Enabled,
1715 GICXXPred_Simple_IsRule79Enabled,
1716 GICXXPred_Simple_IsRule80Enabled,
1717 GICXXPred_Simple_IsRule81Enabled,
1718 GICXXPred_Simple_IsRule82Enabled,
1719 GICXXPred_Simple_IsRule83Enabled,
1720 GICXXPred_Simple_IsRule84Enabled,
1721 GICXXPred_Simple_IsRule85Enabled,
1722 GICXXPred_Simple_IsRule86Enabled,
1723 GICXXPred_Simple_IsRule87Enabled,
1724 GICXXPred_Simple_IsRule88Enabled,
1725 GICXXPred_Simple_IsRule89Enabled,
1726 GICXXPred_Simple_IsRule90Enabled,
1727 GICXXPred_Simple_IsRule91Enabled,
1728 GICXXPred_Simple_IsRule92Enabled,
1729 GICXXPred_Simple_IsRule93Enabled,
1730 GICXXPred_Simple_IsRule94Enabled,
1731 GICXXPred_Simple_IsRule95Enabled,
1732 GICXXPred_Simple_IsRule96Enabled,
1733 GICXXPred_Simple_IsRule97Enabled,
1734 GICXXPred_Simple_IsRule98Enabled,
1735 GICXXPred_Simple_IsRule99Enabled,
1736 GICXXPred_Simple_IsRule100Enabled,
1737 GICXXPred_Simple_IsRule101Enabled,
1738 GICXXPred_Simple_IsRule102Enabled,
1739 GICXXPred_Simple_IsRule103Enabled,
1740 GICXXPred_Simple_IsRule104Enabled,
1741 GICXXPred_Simple_IsRule105Enabled,
1742 GICXXPred_Simple_IsRule106Enabled,
1743 GICXXPred_Simple_IsRule107Enabled,
1744 GICXXPred_Simple_IsRule108Enabled,
1745 GICXXPred_Simple_IsRule109Enabled,
1746 GICXXPred_Simple_IsRule110Enabled,
1747 GICXXPred_Simple_IsRule111Enabled,
1748 GICXXPred_Simple_IsRule112Enabled,
1749 GICXXPred_Simple_IsRule113Enabled,
1750 GICXXPred_Simple_IsRule114Enabled,
1751 GICXXPred_Simple_IsRule115Enabled,
1752 GICXXPred_Simple_IsRule116Enabled,
1753 GICXXPred_Simple_IsRule117Enabled,
1754 GICXXPred_Simple_IsRule118Enabled,
1755 GICXXPred_Simple_IsRule119Enabled,
1756 GICXXPred_Simple_IsRule120Enabled,
1757 GICXXPred_Simple_IsRule121Enabled,
1758 GICXXPred_Simple_IsRule122Enabled,
1759 GICXXPred_Simple_IsRule123Enabled,
1760 GICXXPred_Simple_IsRule124Enabled,
1761 GICXXPred_Simple_IsRule125Enabled,
1762 GICXXPred_Simple_IsRule126Enabled,
1763 GICXXPred_Simple_IsRule127Enabled,
1764 GICXXPred_Simple_IsRule128Enabled,
1765 GICXXPred_Simple_IsRule129Enabled,
1766 GICXXPred_Simple_IsRule130Enabled,
1767 GICXXPred_Simple_IsRule131Enabled,
1768 GICXXPred_Simple_IsRule132Enabled,
1769 GICXXPred_Simple_IsRule133Enabled,
1770 GICXXPred_Simple_IsRule134Enabled,
1771 GICXXPred_Simple_IsRule135Enabled,
1772 GICXXPred_Simple_IsRule136Enabled,
1773 GICXXPred_Simple_IsRule137Enabled,
1774 GICXXPred_Simple_IsRule138Enabled,
1775 GICXXPred_Simple_IsRule139Enabled,
1776 GICXXPred_Simple_IsRule140Enabled,
1777 GICXXPred_Simple_IsRule141Enabled,
1778 GICXXPred_Simple_IsRule142Enabled,
1779 GICXXPred_Simple_IsRule143Enabled,
1780 GICXXPred_Simple_IsRule144Enabled,
1781 GICXXPred_Simple_IsRule145Enabled,
1782 GICXXPred_Simple_IsRule146Enabled,
1783 GICXXPred_Simple_IsRule147Enabled,
1784 GICXXPred_Simple_IsRule148Enabled,
1785 GICXXPred_Simple_IsRule149Enabled,
1786 GICXXPred_Simple_IsRule150Enabled,
1787 GICXXPred_Simple_IsRule151Enabled,
1788 GICXXPred_Simple_IsRule152Enabled,
1789 GICXXPred_Simple_IsRule153Enabled,
1790 GICXXPred_Simple_IsRule154Enabled,
1791 GICXXPred_Simple_IsRule155Enabled,
1792 GICXXPred_Simple_IsRule156Enabled,
1793 GICXXPred_Simple_IsRule157Enabled,
1794 GICXXPred_Simple_IsRule158Enabled,
1795 GICXXPred_Simple_IsRule159Enabled,
1796 GICXXPred_Simple_IsRule160Enabled,
1797 GICXXPred_Simple_IsRule161Enabled,
1798 GICXXPred_Simple_IsRule162Enabled,
1799 GICXXPred_Simple_IsRule163Enabled,
1800 GICXXPred_Simple_IsRule164Enabled,
1801 GICXXPred_Simple_IsRule165Enabled,
1802 GICXXPred_Simple_IsRule166Enabled,
1803 GICXXPred_Simple_IsRule167Enabled,
1804 GICXXPred_Simple_IsRule168Enabled,
1805 GICXXPred_Simple_IsRule169Enabled,
1806 GICXXPred_Simple_IsRule170Enabled,
1807 GICXXPred_Simple_IsRule171Enabled,
1808 GICXXPred_Simple_IsRule172Enabled,
1809 GICXXPred_Simple_IsRule173Enabled,
1810 GICXXPred_Simple_IsRule174Enabled,
1811 GICXXPred_Simple_IsRule175Enabled,
1812 GICXXPred_Simple_IsRule176Enabled,
1813 GICXXPred_Simple_IsRule177Enabled,
1814 GICXXPred_Simple_IsRule178Enabled,
1815 GICXXPred_Simple_IsRule179Enabled,
1816 GICXXPred_Simple_IsRule180Enabled,
1817 GICXXPred_Simple_IsRule181Enabled,
1818 GICXXPred_Simple_IsRule182Enabled,
1819};
1820
1821bool AArch64PostLegalizerCombinerImpl::testSimplePredicate(unsigned Predicate) const {
1822 return RuleConfig.isRuleEnabled(Predicate - GICXXPred_Invalid - 1);
1823}
1824// Custom renderers.
1825enum {
1826 GICR_Invalid,
1827};
1828AArch64PostLegalizerCombinerImpl::CustomRendererFn
1829AArch64PostLegalizerCombinerImpl::CustomRenderers[] = {
1830 nullptr, // GICR_Invalid
1831};
1832
1833bool AArch64PostLegalizerCombinerImpl::canMatchOpcode(unsigned Opc) const {
1834 switch (Opc) {
1835 case TargetOpcode::G_INSERT_VECTOR_ELT:
1836 case TargetOpcode::G_SADDO:
1837 case TargetOpcode::G_SELECT:
1838 case TargetOpcode::G_SHUFFLE_VECTOR:
1839 case TargetOpcode::G_SMULFIX:
1840 case TargetOpcode::G_SMULFIXSAT:
1841 case TargetOpcode::G_SMULO:
1842 case TargetOpcode::G_UADDO:
1843 case TargetOpcode::G_UMULFIX:
1844 case TargetOpcode::G_UMULFIXSAT:
1845 case TargetOpcode::G_UMULO:
1846 case TargetOpcode::G_ICMP:
1847 case TargetOpcode::G_SSUBO:
1848 case TargetOpcode::G_UBFX:
1849 case TargetOpcode::G_USUBO:
1850 case TargetOpcode::G_FADD:
1851 case TargetOpcode::G_ADD:
1852 case TargetOpcode::G_AND:
1853 case TargetOpcode::G_ASHR:
1854 case TargetOpcode::G_EXTRACT_VECTOR_ELT:
1855 case TargetOpcode::G_FMAXIMUM:
1856 case TargetOpcode::G_FMAXNUM:
1857 case TargetOpcode::G_FMAXNUM_IEEE:
1858 case TargetOpcode::G_FMINIMUM:
1859 case TargetOpcode::G_FMINNUM:
1860 case TargetOpcode::G_FMINNUM_IEEE:
1861 case TargetOpcode::G_FMUL:
1862 case TargetOpcode::G_LSHR:
1863 case TargetOpcode::G_MERGE_VALUES:
1864 case TargetOpcode::G_MUL:
1865 case TargetOpcode::G_OR:
1866 case TargetOpcode::G_SADDSAT:
1867 case TargetOpcode::G_SDIV:
1868 case TargetOpcode::G_SEXT_INREG:
1869 case TargetOpcode::G_SHL:
1870 case TargetOpcode::G_SMAX:
1871 case TargetOpcode::G_SMIN:
1872 case TargetOpcode::G_SMULH:
1873 case TargetOpcode::G_SREM:
1874 case TargetOpcode::G_SUB:
1875 case TargetOpcode::G_UADDSAT:
1876 case TargetOpcode::G_UDIV:
1877 case TargetOpcode::G_UMAX:
1878 case TargetOpcode::G_UMIN:
1879 case TargetOpcode::G_UMULH:
1880 case TargetOpcode::G_UREM:
1881 case TargetOpcode::G_XOR:
1882 case TargetOpcode::G_FCOPYSIGN:
1883 case TargetOpcode::G_FDIV:
1884 case TargetOpcode::G_FMAXIMUMNUM:
1885 case TargetOpcode::G_FMINIMUMNUM:
1886 case TargetOpcode::G_FREM:
1887 case TargetOpcode::G_FSUB:
1888 case TargetOpcode::G_PTR_ADD:
1889 case TargetOpcode::G_ROTL:
1890 case TargetOpcode::G_ROTR:
1891 case TargetOpcode::G_SSHLSAT:
1892 case TargetOpcode::G_USHLSAT:
1893 case TargetOpcode::G_BUILD_VECTOR:
1894 case TargetOpcode::G_ANYEXT:
1895 case TargetOpcode::G_BITCAST:
1896 case TargetOpcode::G_BUILD_VECTOR_TRUNC:
1897 case TargetOpcode::G_CONCAT_VECTORS:
1898 case TargetOpcode::G_FPTRUNC:
1899 case TargetOpcode::G_INTTOPTR:
1900 case TargetOpcode::G_PTRTOINT:
1901 case TargetOpcode::G_STORE:
1902 case TargetOpcode::G_TRUNC:
1903 case TargetOpcode::G_TRUNC_USAT_U:
1904 case TargetOpcode::COPY:
1905 case TargetOpcode::G_ABS:
1906 case TargetOpcode::G_FABS:
1907 case TargetOpcode::G_FCEIL:
1908 case TargetOpcode::G_FFLOOR:
1909 case TargetOpcode::G_FLOG2:
1910 case TargetOpcode::G_FNEARBYINT:
1911 case TargetOpcode::G_FNEG:
1912 case TargetOpcode::G_FPEXT:
1913 case TargetOpcode::G_FPTOSI:
1914 case TargetOpcode::G_FPTOUI:
1915 case TargetOpcode::G_FREEZE:
1916 case TargetOpcode::G_FRINT:
1917 case TargetOpcode::G_FSQRT:
1918 case TargetOpcode::G_INTRINSIC_ROUND:
1919 case TargetOpcode::G_INTRINSIC_ROUNDEVEN:
1920 case TargetOpcode::G_INTRINSIC_TRUNC:
1921 case TargetOpcode::G_LOAD:
1922 case TargetOpcode::G_SEXT:
1923 case TargetOpcode::G_SEXTLOAD:
1924 case TargetOpcode::G_SITOFP:
1925 case TargetOpcode::G_UITOFP:
1926 case TargetOpcode::G_ZEXT:
1927 case TargetOpcode::G_ZEXTLOAD:
1928 case TargetOpcode::G_UNMERGE_VALUES:
1929 return true;
1930 default:
1931 return false;
1932 }
1933}
1934
1935uint32_t AArch64PostLegalizerCombinerImpl::getRootFlagsToDrop() const {
1936 return MachineInstr::getPoisonGeneratingFlags();
1937}
1938
1939bool AArch64PostLegalizerCombinerImpl::tryCombineAll(MachineInstr &I) const {
1940 const PredicateBitset AvailableFeatures = getAvailableFeatures();
1941 State.MIs.clear();
1942 State.MIs.push_back(&I);
1943 if (executeMatchTable(*this, State, ExecInfo, B, getMatchTable(), Helper.getTII(), MRI, Helper.getTRI(), Helper.getRBI(), AvailableFeatures, /*CoverageInfo*/ nullptr)) {
1944 return true;
1945 }
1946
1947 return false;
1948}
1949
1950enum {
1951 GICXXCustomAction_GICombiner0 = GICXXCustomAction_Invalid + 1,
1952 GICXXCustomAction_GICombiner1,
1953 GICXXCustomAction_GICombiner2,
1954 GICXXCustomAction_GICombiner3,
1955 GICXXCustomAction_GICombiner4,
1956 GICXXCustomAction_GICombiner5,
1957 GICXXCustomAction_GICombiner6,
1958 GICXXCustomAction_GICombiner7,
1959 GICXXCustomAction_GICombiner8,
1960 GICXXCustomAction_GICombiner9,
1961 GICXXCustomAction_GICombiner10,
1962 GICXXCustomAction_GICombiner11,
1963 GICXXCustomAction_GICombiner12,
1964 GICXXCustomAction_GICombiner13,
1965 GICXXCustomAction_GICombiner14,
1966 GICXXCustomAction_GICombiner15,
1967 GICXXCustomAction_GICombiner16,
1968 GICXXCustomAction_GICombiner17,
1969 GICXXCustomAction_GICombiner18,
1970 GICXXCustomAction_GICombiner19,
1971 GICXXCustomAction_GICombiner20,
1972 GICXXCustomAction_GICombiner21,
1973 GICXXCustomAction_GICombiner22,
1974 GICXXCustomAction_GICombiner23,
1975 GICXXCustomAction_GICombiner24,
1976 GICXXCustomAction_GICombiner25,
1977 GICXXCustomAction_GICombiner26,
1978 GICXXCustomAction_GICombiner27,
1979 GICXXCustomAction_GICombiner28,
1980 GICXXCustomAction_GICombiner29,
1981 GICXXCustomAction_GICombiner30,
1982 GICXXCustomAction_GICombiner31,
1983 GICXXCustomAction_GICombiner32,
1984 GICXXCustomAction_GICombiner33,
1985 GICXXCustomAction_GICombiner34,
1986 GICXXCustomAction_GICombiner35,
1987 GICXXCustomAction_GICombiner36,
1988 GICXXCustomAction_GICombiner37,
1989 GICXXCustomAction_GICombiner38,
1990 GICXXCustomAction_GICombiner39,
1991 GICXXCustomAction_GICombiner40,
1992 GICXXCustomAction_GICombiner41,
1993 GICXXCustomAction_GICombiner42,
1994 GICXXCustomAction_GICombiner43,
1995 GICXXCustomAction_GICombiner44,
1996 GICXXCustomAction_GICombiner45,
1997 GICXXCustomAction_GICombiner46,
1998 GICXXCustomAction_GICombiner47,
1999 GICXXCustomAction_GICombiner48,
2000 GICXXCustomAction_GICombiner49,
2001 GICXXCustomAction_GICombiner50,
2002 GICXXCustomAction_GICombiner51,
2003 GICXXCustomAction_GICombiner52,
2004 GICXXCustomAction_GICombiner53,
2005 GICXXCustomAction_GICombiner54,
2006 GICXXCustomAction_GICombiner55,
2007 GICXXCustomAction_GICombiner56,
2008 GICXXCustomAction_GICombiner57,
2009 GICXXCustomAction_GICombiner58,
2010 GICXXCustomAction_GICombiner59,
2011 GICXXCustomAction_GICombiner60,
2012 GICXXCustomAction_GICombiner61,
2013 GICXXCustomAction_GICombiner62,
2014 GICXXCustomAction_GICombiner63,
2015 GICXXCustomAction_GICombiner64,
2016 GICXXCustomAction_GICombiner65,
2017 GICXXCustomAction_GICombiner66,
2018 GICXXCustomAction_GICombiner67,
2019};
2020bool AArch64PostLegalizerCombinerImpl::runCustomAction(unsigned ApplyID, const MatcherState &State, NewMIVector &OutMIs) const {
2021 Helper.getBuilder().setInstrAndDebugLoc(*State.MIs[0]);
2022 switch(ApplyID) {
2023 case GICXXCustomAction_GICombiner0:{
2024 // Match Patterns
2025 if(![&](){return Helper.matchCombineCopy(*State.MIs[0]);}()) {
2026 return false;
2027 }
2028 // Apply Patterns
2029 Helper.applyCombineCopy(*State.MIs[0]);
2030 return true;
2031 }
2032 case GICXXCustomAction_GICombiner1:{
2033 unsigned GIMatchData_matchinfo;
2034 // Match Patterns
2035 if(![&](){return Helper.matchCombineMulToShl(*State.MIs[0], GIMatchData_matchinfo);}()) {
2036 return false;
2037 }
2038 // Apply Patterns
2039 Helper.applyCombineMulToShl(*State.MIs[0], GIMatchData_matchinfo);
2040 return true;
2041 }
2042 case GICXXCustomAction_GICombiner2:{
2043 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2044 // Match Patterns
2045 if(![&](){return Helper.matchTruncateOfExt(*State.MIs[0], *State.MIs[1], GIMatchData_matchinfo);}()) {
2046 return false;
2047 }
2048 // Apply Patterns
2049 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2050 return true;
2051 }
2052 case GICXXCustomAction_GICombiner3:{
2053 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2054 // Match Patterns
2055 if(![&](){return Helper.matchExtOfExt(*State.MIs[0], *State.MIs[1], GIMatchData_matchinfo);}()) {
2056 return false;
2057 }
2058 // Apply Patterns
2059 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2060 return true;
2061 }
2062 case GICXXCustomAction_GICombiner4:{
2063 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2064 // Match Patterns
2065 if(![&](){return Helper.matchRedundantSextInReg(*State.MIs[0], *State.MIs[1], GIMatchData_matchinfo);}()) {
2066 return false;
2067 }
2068 // Apply Patterns
2069 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2070 return true;
2071 }
2072 case GICXXCustomAction_GICombiner5:{
2073 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2074 // Match Patterns
2075 if(![&](){return Helper.matchConstantFoldFPUnary(*State.MIs[0], GIMatchData_matchinfo);}()) {
2076 return false;
2077 }
2078 // Apply Patterns
2079 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2080 return true;
2081 }
2082 case GICXXCustomAction_GICombiner6:{
2083 // Apply Patterns
2084 Helper.replaceInstWithFConstant(*State.MIs[0]->getOperand(0).getParent(), 0.0);
2085 return true;
2086 }
2087 case GICXXCustomAction_GICombiner7:{
2088 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2089 // Match Patterns
2090 if(![&](){return Helper.matchCastOfBuildVector(*State.MIs[0], *State.MIs[1], GIMatchData_matchinfo);}()) {
2091 return false;
2092 }
2093 // Apply Patterns
2094 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2095 return true;
2096 }
2097 case GICXXCustomAction_GICombiner8:{
2098 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2099 // Match Patterns
2100 if(![&](){return Helper.matchCastOfInteger(*State.MIs[0], GIMatchData_matchinfo);}()) {
2101 return false;
2102 }
2103 // Apply Patterns
2104 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2105 return true;
2106 }
2107 case GICXXCustomAction_GICombiner9:{
2108 // Apply Patterns
2109 Helper.applyCombineShuffleOfBuildVector(*State.MIs[0]);
2110 return true;
2111 }
2112 case GICXXCustomAction_GICombiner10:{
2113 PreferredTuple GIMatchData_matchinfo;
2114 // Match Patterns
2115 if(![&](){return Helper.matchCombineExtendingLoads(*State.MIs[0], GIMatchData_matchinfo);}()) {
2116 return false;
2117 }
2118 // Apply Patterns
2119 Helper.applyCombineExtendingLoads(*State.MIs[0], GIMatchData_matchinfo);
2120 return true;
2121 }
2122 case GICXXCustomAction_GICombiner11:{
2123 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2124 // Match Patterns
2125 if(![&](){return Helper.matchCombineLoadWithAndMask(*State.MIs[0], GIMatchData_matchinfo);}()) {
2126 return false;
2127 }
2128 // Apply Patterns
2129 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2130 return true;
2131 }
2132 case GICXXCustomAction_GICombiner12:{
2133 IndexedLoadStoreMatchInfo GIMatchData_matchinfo;
2134 // Match Patterns
2135 if(![&](){return Helper.matchCombineIndexedLoadStore(*State.MIs[0], GIMatchData_matchinfo);}()) {
2136 return false;
2137 }
2138 // Apply Patterns
2139 Helper.applyCombineIndexedLoadStore(*State.MIs[0], GIMatchData_matchinfo);
2140 return true;
2141 }
2142 case GICXXCustomAction_GICombiner13:{
2143 InstructionStepsMatchInfo GIMatchData_info;
2144 // Match Patterns
2145 if(![&](){return Helper.matchHoistLogicOpWithSameOpcodeHands(*State.MIs[0], GIMatchData_info);}()) {
2146 return false;
2147 }
2148 // Apply Patterns
2149 Helper.applyBuildInstructionSteps(*State.MIs[0], GIMatchData_info);
2150 return true;
2151 }
2152 case GICXXCustomAction_GICombiner14:{
2153 Register GIMatchData_matchinfo;
2154 // Match Patterns
2155 if(![&](){return Helper.matchRedundantAnd(*State.MIs[0], GIMatchData_matchinfo);}()) {
2156 return false;
2157 }
2158 // Apply Patterns
2159 Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo);
2160 return true;
2161 }
2162 case GICXXCustomAction_GICombiner15:{
2163 std::pair<Register, Register> GIMatchData_matchinfo;
2164 // Match Patterns
2165 if(![&](){return Helper.matchXorOfAndWithSameReg(*State.MIs[0], GIMatchData_matchinfo);}()) {
2166 return false;
2167 }
2168 // Apply Patterns
2169 Helper.applyXorOfAndWithSameReg(*State.MIs[0], GIMatchData_matchinfo);
2170 return true;
2171 }
2172 case GICXXCustomAction_GICombiner16:{
2173 std::tuple<unsigned, LLT, Register> GIMatchData_matchinfo;
2174 // Match Patterns
2175 if(![&](){return matchExtractVecEltPairwiseAdd(*State.MIs[0], MRI, GIMatchData_matchinfo);}()) {
2176 return false;
2177 }
2178 // Apply Patterns
2179 applyExtractVecEltPairwiseAdd(*State.MIs[0], MRI, B, GIMatchData_matchinfo);
2180 return true;
2181 }
2182 case GICXXCustomAction_GICombiner17:{
2183 Register GIMatchData_matchinfo;
2184 // Match Patterns
2185 if(![&](){return Helper.matchRedundantOr(*State.MIs[0], GIMatchData_matchinfo);}()) {
2186 return false;
2187 }
2188 // Apply Patterns
2189 Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo);
2190 return true;
2191 }
2192 case GICXXCustomAction_GICombiner18:{
2193 std::function<void(MachineIRBuilder&, Register)> GIMatchData_matchinfo;
2194 // Match Patterns
2195 if(![&](){return matchAArch64MulConstCombine(*State.MIs[0], MRI, GIMatchData_matchinfo);}()) {
2196 return false;
2197 }
2198 // Apply Patterns
2199 applyAArch64MulConstCombine(*State.MIs[0], MRI, B, GIMatchData_matchinfo);
2200 return true;
2201 }
2202 case GICXXCustomAction_GICombiner19:{
2203 // Match Patterns
2204 if(![&](){LLT SrcTy = MRI.getType(State.MIs[3]->getOperand(1).getReg());
2205 return State.MIs[0]->getOperand(2).getImm() <= SrcTy.getScalarSizeInBits() &&
2206 MRI.getType(State.MIs[1]->getOperand(1).getReg()).getScalarType() ==
2207 MRI.getType(State.MIs[2]->getOperand(2).getReg()).getScalarType() &&
2208 VT->computeNumSignBits(State.MIs[3]->getOperand(1).getReg()) >=
2209 (SrcTy.getScalarSizeInBits() - State.MIs[0]->getOperand(2).getImm() + 1);}()) {
2210 return false;
2211 }
2212 // Apply Patterns
2213 auto SExt1 = Helper.getBuilder().buildSExt(MRI.getType(State.MIs[2]->getOperand(2).getReg()), State.MIs[3]->getOperand(1).getReg());
2214 auto Unmerge = Helper.getBuilder().buildUnmerge(MRI.getType(State.MIs[1]->getOperand(1).getReg()), SExt1);
2215 unsigned UnmergeDef = State.MIs[1]->getOperand(1).getReg() == State.MIs[2]->getOperand(0).getReg() ? 0 : 1;
2216 Helper.getBuilder().buildSExt(State.MIs[0]->getOperand(0).getReg(), Unmerge.getReg(UnmergeDef));
2217 State.MIs[0]->eraseFromParent();
2218 return true;
2219 }
2220 case GICXXCustomAction_GICombiner20:{
2221 std::function<void(MachineIRBuilder &)> GIMatchData_info;
2222 // Match Patterns
2223 if(![&](){return Helper.matchBitfieldExtractFromSExtInReg(*State.MIs[0], GIMatchData_info);}()) {
2224 return false;
2225 }
2226 // Apply Patterns
2227 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
2228 return true;
2229 }
2230 case GICXXCustomAction_GICombiner21:{
2231 std::function<void(MachineIRBuilder &)> GIMatchData_info;
2232 // Match Patterns
2233 if(![&](){return Helper.matchBitfieldExtractFromAnd(*State.MIs[0], GIMatchData_info);}()) {
2234 return false;
2235 }
2236 // Apply Patterns
2237 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
2238 return true;
2239 }
2240 case GICXXCustomAction_GICombiner22:{
2241 std::function<void(MachineIRBuilder &)> GIMatchData_info;
2242 // Match Patterns
2243 if(![&](){return Helper.matchBitfieldExtractFromShr(*State.MIs[0], GIMatchData_info);}()) {
2244 return false;
2245 }
2246 // Apply Patterns
2247 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
2248 return true;
2249 }
2250 case GICXXCustomAction_GICombiner23:{
2251 std::function<void(MachineIRBuilder &)> GIMatchData_info;
2252 // Match Patterns
2253 if(![&](){return Helper.matchBitfieldExtractFromShrAnd(*State.MIs[0], GIMatchData_info);}()) {
2254 return false;
2255 }
2256 // Apply Patterns
2257 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
2258 return true;
2259 }
2260 case GICXXCustomAction_GICombiner24:{
2261 // Match Patterns
2262 if(![&](){LLT Ty = MRI.getType(State.MIs[0]->getOperand(0).getReg());
2263 unsigned BitWidth = Ty.getSizeInBits();
2264 const APInt &Lsb = State.MIs[1]->getOperand(1).getCImm()->getValue();
2265 return Ty.isScalar() && Lsb.ult(BitWidth) &&
2266 VT->computeNumSignBits(State.MIs[0]->getOperand(1).getReg()) >=
2267 BitWidth - Lsb.getZExtValue();}()) {
2268 return false;
2269 }
2270 // Apply Patterns
2271 LLT Ty = MRI.getType(State.MIs[0]->getOperand(0).getReg());
2272 LLT ShiftAmtTy =
2273 Helper.getTargetLowering().getPreferredShiftAmountTy(Ty);
2274 auto Amt = B.buildConstant(ShiftAmtTy, Ty.getSizeInBits() - 1);
2275 B.buildLShr(State.MIs[0]->getOperand(0).getReg(), State.MIs[0]->getOperand(1).getReg(), Amt);
2276 State.MIs[0]->eraseFromParent();
2277 return true;
2278 }
2279 case GICXXCustomAction_GICombiner25:{
2280 // Match Patterns
2281 if(![&](){return Helper.matchRotateOutOfRange(*State.MIs[0]);}()) {
2282 return false;
2283 }
2284 // Apply Patterns
2285 Helper.applyRotateOutOfRange(*State.MIs[0]);
2286 return true;
2287 }
2288 case GICXXCustomAction_GICombiner26:{
2289 int64_t GIMatchData_matchinfo;
2290 // Match Patterns
2291 if(![&](){return Helper.matchICmpToTrueFalseKnownBits(*State.MIs[0], GIMatchData_matchinfo);}()) {
2292 return false;
2293 }
2294 // Apply Patterns
2295 Helper.replaceInstWithConstant(*State.MIs[0], GIMatchData_matchinfo);
2296 return true;
2297 }
2298 case GICXXCustomAction_GICombiner27:{
2299 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2300 // Match Patterns
2301 if(![&](){return Helper.matchAddOverflow(*State.MIs[0], GIMatchData_matchinfo);}()) {
2302 return false;
2303 }
2304 // Apply Patterns
2305 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2306 return true;
2307 }
2308 case GICXXCustomAction_GICombiner28:{
2309 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2310 // Match Patterns
2311 if(![&](){return Helper.matchSuboCarryOut(*State.MIs[0], GIMatchData_matchinfo);}()) {
2312 return false;
2313 }
2314 // Apply Patterns
2315 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2316 return true;
2317 }
2318 case GICXXCustomAction_GICombiner29:{
2319 std::function<void(MachineIRBuilder &)> GIMatchData_info;
2320 // Match Patterns
2321 if(![&](){return Helper.matchSelectIMinMax(State.MIs[0]->getOperand(0), GIMatchData_info);}()) {
2322 return false;
2323 }
2324 // Apply Patterns
2325 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_info);
2326 return true;
2327 }
2328 case GICXXCustomAction_GICombiner30:{
2329 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2330 // Match Patterns
2331 if(![&](){return Helper.matchSelect(*State.MIs[0], GIMatchData_matchinfo);}()) {
2332 return false;
2333 }
2334 // Apply Patterns
2335 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2336 return true;
2337 }
2338 case GICXXCustomAction_GICombiner31:{
2339 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2340 // Match Patterns
2341 if(![&](){return Helper.matchUnmergeValuesAnyExtBuildVector(*State.MIs[0], GIMatchData_matchinfo);}()) {
2342 return false;
2343 }
2344 // Apply Patterns
2345 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2346 return true;
2347 }
2348 case GICXXCustomAction_GICombiner32:{
2349 SmallVector<Register> GIMatchData_info;
2350 // Match Patterns
2351 if(![&](){return Helper.matchCombineUnmergeMergeToPlainValues(*State.MIs[0], GIMatchData_info);}()) {
2352 return false;
2353 }
2354 // Apply Patterns
2355 Helper.applyCombineUnmergeMergeToPlainValues(*State.MIs[0], GIMatchData_info);
2356 return true;
2357 }
2358 case GICXXCustomAction_GICombiner33:{
2359 Register GIMatchData_src;
2360 // Match Patterns
2361 if(![&](){// Check if first source comes from G_UNMERGE_VALUES.
2362 Register FirstMergeSrc = getRemainingOperands(*State.MIs[0], 1)[0].getReg();
2363 MachineInstr *UnmergeMI = MRI.getVRegDef(FirstMergeSrc);
2364 if (!UnmergeMI || UnmergeMI->getOpcode() != TargetOpcode::G_UNMERGE_VALUES)
2365 return false;
2366
2367 // Check counts match.
2368 unsigned NumMergeSrcs = getRemainingOperands(*State.MIs[0], 1).size();
2369 unsigned NumUnmergeDefs = UnmergeMI->getNumDefs();
2370 if (NumMergeSrcs != NumUnmergeDefs)
2371 return false;
2372
2373 // Verify all merge sources match unmerge defs in order.
2374 for (unsigned I = 0; I < NumMergeSrcs; ++I) {
2375 Register MergeSrc = getRemainingOperands(*State.MIs[0], 1)[I].getReg();
2376 Register UnmergeDef = UnmergeMI->getOperand(I).getReg();
2377
2378 if (MergeSrc != UnmergeDef)
2379 return false;
2380
2381 if (!MRI.hasOneNonDBGUse(MergeSrc))
2382 return false;
2383 }
2384
2385 // Check size compatibility.
2386 GIMatchData_src = UnmergeMI->getOperand(NumUnmergeDefs).getReg();
2387 LLT SrcTy = MRI.getType(GIMatchData_src);
2388 LLT DstTy = MRI.getType(State.MIs[0]->getOperand(0).getReg());
2389 if (SrcTy.getSizeInBits() != DstTy.getSizeInBits())
2390 return false;
2391
2392 // Check bitcast legality.
2393 if (SrcTy != DstTy) {
2394 std::array<LLT, 2> Types = {{DstTy, SrcTy}};
2395 LegalityQuery Query(TargetOpcode::G_BITCAST, Types);
2396 if (!Helper.isLegalOrBeforeLegalizer(Query))
2397 return false;
2398 }
2399
2400 return true;}()) {
2401 return false;
2402 }
2403 // Apply Patterns
2404 LLT SrcTy = MRI.getType(GIMatchData_src);
2405 LLT DstTy = MRI.getType(State.MIs[0]->getOperand(0).getReg());
2406
2407 Helper.getBuilder().setInstrAndDebugLoc(*State.MIs[0]);
2408
2409 if (SrcTy == DstTy) {
2410 Helper.replaceRegWith(MRI, State.MIs[0]->getOperand(0).getReg(), GIMatchData_src);
2411 } else {
2412 Helper.getBuilder().buildBitcast(State.MIs[0]->getOperand(0).getReg(), GIMatchData_src);
2413 }
2414
2415 State.MIs[0]->eraseFromParent();
2416 return true;
2417 }
2418 case GICXXCustomAction_GICombiner34:{
2419 SmallVector<APInt, 8> GIMatchData_info;
2420 // Match Patterns
2421 if(![&](){return Helper.matchCombineUnmergeConstant(*State.MIs[0], GIMatchData_info);}()) {
2422 return false;
2423 }
2424 // Apply Patterns
2425 Helper.applyCombineUnmergeConstant(*State.MIs[0], GIMatchData_info);
2426 return true;
2427 }
2428 case GICXXCustomAction_GICombiner35:{
2429 std::function<void(MachineIRBuilder &)> GIMatchData_info;
2430 // Match Patterns
2431 if(![&](){return Helper.matchCombineUnmergeUndef(*State.MIs[0], GIMatchData_info);}()) {
2432 return false;
2433 }
2434 // Apply Patterns
2435 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
2436 return true;
2437 }
2438 case GICXXCustomAction_GICombiner36:{
2439 // Match Patterns
2440 if(![&](){return Helper.matchCombineUnmergeWithDeadLanesToTrunc(*State.MIs[0]);}()) {
2441 return false;
2442 }
2443 // Apply Patterns
2444 Helper.applyCombineUnmergeWithDeadLanesToTrunc(*State.MIs[0]);
2445 return true;
2446 }
2447 case GICXXCustomAction_GICombiner37:{
2448 // Match Patterns
2449 if(![&](){return Helper.matchCombineUnmergeZExtToZExt(*State.MIs[0]);}()) {
2450 return false;
2451 }
2452 // Apply Patterns
2453 Helper.applyCombineUnmergeZExtToZExt(*State.MIs[0]);
2454 return true;
2455 }
2456 case GICXXCustomAction_GICombiner38:{
2457 Register GIMatchData_unmergeSrc;
2458 // Match Patterns
2459 if(![&](){return Helper.matchCombineBuildUnmerge(*State.MIs[0], MRI, GIMatchData_unmergeSrc);}()) {
2460 return false;
2461 }
2462 // Apply Patterns
2463 Helper.applyCombineBuildUnmerge(*State.MIs[0], MRI, B, GIMatchData_unmergeSrc);
2464 return true;
2465 }
2466 case GICXXCustomAction_GICombiner39:{
2467 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2468 // Match Patterns
2469 if(![&](){return Helper.matchConstantFoldBinOp(*State.MIs[0], GIMatchData_matchinfo);}()) {
2470 return false;
2471 }
2472 // Apply Patterns
2473 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2474 return true;
2475 }
2476 case GICXXCustomAction_GICombiner40:{
2477 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2478 // Match Patterns
2479 if(![&](){return Helper.matchConstantFoldFPBinOp(*State.MIs[0], GIMatchData_matchinfo);}()) {
2480 return false;
2481 }
2482 // Apply Patterns
2483 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2484 return true;
2485 }
2486 case GICXXCustomAction_GICombiner41:{
2487 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2488 // Match Patterns
2489 if(![&](){return Helper.matchConstantFoldCastOp(*State.MIs[0], GIMatchData_matchinfo);}()) {
2490 return false;
2491 }
2492 // Apply Patterns
2493 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2494 return true;
2495 }
2496 case GICXXCustomAction_GICombiner42:{
2497 Register GIMatchData_matchinfo;
2498 // Match Patterns
2499 if(![&](){return Helper.matchCombineAnyExtTrunc(*State.MIs[0], GIMatchData_matchinfo);}()) {
2500 return false;
2501 }
2502 // Apply Patterns
2503 Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo);
2504 return true;
2505 }
2506 case GICXXCustomAction_GICombiner43:{
2507 Register GIMatchData_matchinfo;
2508 // Match Patterns
2509 if(![&](){return Helper.matchBuildVectorIdentityFold(*State.MIs[0], GIMatchData_matchinfo);}()) {
2510 return false;
2511 }
2512 // Apply Patterns
2513 Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo);
2514 return true;
2515 }
2516 case GICXXCustomAction_GICombiner44:{
2517 Register GIMatchData_matchinfo;
2518 // Match Patterns
2519 if(![&](){return Helper.matchTruncBuildVectorFold(*State.MIs[0], GIMatchData_matchinfo);}()) {
2520 return false;
2521 }
2522 // Apply Patterns
2523 Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo);
2524 return true;
2525 }
2526 case GICXXCustomAction_GICombiner45:{
2527 Register GIMatchData_matchinfo;
2528 // Match Patterns
2529 if(![&](){return Helper.matchTruncLshrBuildVectorFold(*State.MIs[0], GIMatchData_matchinfo);}()) {
2530 return false;
2531 }
2532 // Apply Patterns
2533 Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo);
2534 return true;
2535 }
2536 case GICXXCustomAction_GICombiner46:{
2537 PtrAddChain GIMatchData_matchinfo;
2538 // Match Patterns
2539 if(![&](){return Helper.matchPtrAddImmedChain(*State.MIs[0], GIMatchData_matchinfo);}()) {
2540 return false;
2541 }
2542 // Apply Patterns
2543 Helper.applyPtrAddImmedChain(*State.MIs[0], GIMatchData_matchinfo);
2544 return true;
2545 }
2546 case GICXXCustomAction_GICombiner47:{
2547 RegisterImmPair GIMatchData_matchinfo;
2548 // Match Patterns
2549 if(![&](){return Helper.matchShiftImmedChain(*State.MIs[0], GIMatchData_matchinfo);}()) {
2550 return false;
2551 }
2552 // Apply Patterns
2553 Helper.applyShiftImmedChain(*State.MIs[0], GIMatchData_matchinfo);
2554 return true;
2555 }
2556 case GICXXCustomAction_GICombiner48:{
2557 std::function<void(MachineIRBuilder &)> GIMatchData_info;
2558 // Match Patterns
2559 if(![&](){return Helper.matchOverlappingAnd(*State.MIs[0], GIMatchData_info);}()) {
2560 return false;
2561 }
2562 // Apply Patterns
2563 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
2564 return true;
2565 }
2566 case GICXXCustomAction_GICombiner49:{
2567 // Match Patterns
2568 if(![&](){return matchSplitStoreZero128(*State.MIs[0], MRI);}()) {
2569 return false;
2570 }
2571 // Apply Patterns
2572 applySplitStoreZero128(*State.MIs[0], MRI, B, Observer);
2573 return true;
2574 }
2575 case GICXXCustomAction_GICombiner50:{
2576 // Apply Patterns
2577 Helper.replaceInstWithConstant(*State.MIs[0]->getOperand(0).getParent(), 0);
2578 return true;
2579 }
2580 case GICXXCustomAction_GICombiner51:{
2581 // Apply Patterns
2582 Helper.replaceInstWithConstant(*State.MIs[0]->getOperand(0).getParent(), -1);
2583 return true;
2584 }
2585 case GICXXCustomAction_GICombiner52:{
2586 std::function<void(MachineIRBuilder &)> GIMatchData_info;
2587 // Match Patterns
2588 if(![&](){return Helper.matchSimplifySelectToMinMax(*State.MIs[0], GIMatchData_info);}()) {
2589 return false;
2590 }
2591 // Apply Patterns
2592 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
2593 return true;
2594 }
2595 case GICXXCustomAction_GICombiner53:{
2596 std::tuple<Register, Register, Register> GIMatchData_matchinfo;
2597 // Match Patterns
2598 if(![&](){return matchOrToBSP(*State.MIs[0], MRI, GIMatchData_matchinfo);}()) {
2599 return false;
2600 }
2601 // Apply Patterns
2602 applyOrToBSP(*State.MIs[0], MRI, B, GIMatchData_matchinfo);
2603 return true;
2604 }
2605 case GICXXCustomAction_GICombiner54:{
2606 SmallVector<Register> GIMatchData_matchinfo;
2607 // Match Patterns
2608 if(![&](){return Helper.matchCombineConcatVectors(*State.MIs[0], GIMatchData_matchinfo);}()) {
2609 return false;
2610 }
2611 // Apply Patterns
2612 Helper.applyCombineConcatVectors(*State.MIs[0], GIMatchData_matchinfo);
2613 return true;
2614 }
2615 case GICXXCustomAction_GICombiner55:{
2616 SmallVector<Register> GIMatchData_matchinfo;
2617 // Match Patterns
2618 if(![&](){return Helper.matchCombineBuildVectorOfBitcast(*State.MIs[0], GIMatchData_matchinfo);}()) {
2619 return false;
2620 }
2621 // Apply Patterns
2622 Helper.applyCombineBuildVectorOfBitcast(*State.MIs[0], GIMatchData_matchinfo);
2623 return true;
2624 }
2625 case GICXXCustomAction_GICombiner56:{
2626 Register GIMatchData_matchinfo;
2627 // Match Patterns
2628 if(![&](){return Helper.matchExtractVecEltBuildVec(*State.MIs[0], GIMatchData_matchinfo);}()) {
2629 return false;
2630 }
2631 // Apply Patterns
2632 Helper.applyExtractVecEltBuildVec(*State.MIs[0], GIMatchData_matchinfo);
2633 return true;
2634 }
2635 case GICXXCustomAction_GICombiner57:{
2636 SmallVector<std::pair<Register, MachineInstr*>> GIMatchData_matchinfo;
2637 // Match Patterns
2638 if(![&](){return Helper.matchExtractAllEltsFromBuildVector(*State.MIs[0], GIMatchData_matchinfo);}()) {
2639 return false;
2640 }
2641 // Apply Patterns
2642 Helper.applyExtractAllEltsFromBuildVector(*State.MIs[0], GIMatchData_matchinfo);
2643 return true;
2644 }
2645 case GICXXCustomAction_GICombiner58:{
2646 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2647 // Match Patterns
2648 if(![&](){return !isGuaranteedNotToBePoison(State.MIs[0]->getOperand(1).getReg(), MRI) && Helper.matchFreezeOfSingleMaybePoisonOperand(*State.MIs[0], GIMatchData_matchinfo);}()) {
2649 return false;
2650 }
2651 // Apply Patterns
2652 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2653 return true;
2654 }
2655 case GICXXCustomAction_GICombiner59:{
2656 Register GIMatchData_matchinfo;
2657 // Match Patterns
2658 if(![&](){return matchCombineMulCMLT(*State.MIs[0], MRI, GIMatchData_matchinfo);}()) {
2659 return false;
2660 }
2661 // Apply Patterns
2662 applyCombineMulCMLT(*State.MIs[0], MRI, B, GIMatchData_matchinfo);
2663 return true;
2664 }
2665 case GICXXCustomAction_GICombiner60:{
2666 Register GIMatchData_matchinfo;
2667 // Match Patterns
2668 if(![&](){return Helper.matchUseVectorTruncate(*State.MIs[0], GIMatchData_matchinfo);}()) {
2669 return false;
2670 }
2671 // Apply Patterns
2672 Helper.applyUseVectorTruncate(*State.MIs[0], GIMatchData_matchinfo);
2673 return true;
2674 }
2675 case GICXXCustomAction_GICombiner61:{
2676 std::tuple<bool, Register, Register> GIMatchData_matchinfo;
2677 // Match Patterns
2678 if(![&](){return matchExtMulToMULL(*State.MIs[0], MRI, VT, GIMatchData_matchinfo);}()) {
2679 return false;
2680 }
2681 // Apply Patterns
2682 applyExtMulToMULL(*State.MIs[0], MRI, B, Observer, GIMatchData_matchinfo);
2683 return true;
2684 }
2685 case GICXXCustomAction_GICombiner62:{
2686 Register GIMatchData_matchinfo;
2687 // Match Patterns
2688 if(![&](){return Helper.matchTruncSSatS(*State.MIs[0], GIMatchData_matchinfo);}()) {
2689 return false;
2690 }
2691 // Apply Patterns
2692 Helper.applyTruncSSatS(*State.MIs[0], GIMatchData_matchinfo);
2693 return true;
2694 }
2695 case GICXXCustomAction_GICombiner63:{
2696 Register GIMatchData_matchinfo;
2697 // Match Patterns
2698 if(![&](){return Helper.matchTruncSSatU(*State.MIs[0], GIMatchData_matchinfo);}()) {
2699 return false;
2700 }
2701 // Apply Patterns
2702 Helper.applyTruncSSatU(*State.MIs[0], GIMatchData_matchinfo);
2703 return true;
2704 }
2705 case GICXXCustomAction_GICombiner64:{
2706 LshrOfTruncOfLshr GIMatchData_matchinfo;
2707 // Match Patterns
2708 if(![&](){return Helper.matchLshrOfTruncOfLshr(*State.MIs[0], GIMatchData_matchinfo, *State.MIs[2]);}()) {
2709 return false;
2710 }
2711 // Apply Patterns
2712 Helper.applyLshrOfTruncOfLshr(*State.MIs[0], GIMatchData_matchinfo);
2713 return true;
2714 }
2715 case GICXXCustomAction_GICombiner65:{
2716 std::function<void(MachineIRBuilder &)> GIMatchData_info;
2717 // Match Patterns
2718 if(![&](){return Helper.matchOrShiftToFunnelShift(*State.MIs[0], true, GIMatchData_info);}()) {
2719 return false;
2720 }
2721 // Apply Patterns
2722 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
2723 return true;
2724 }
2725 case GICXXCustomAction_GICombiner66:{
2726 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2727 // Match Patterns
2728 if(![&](){return Helper.matchSimplifyDemandedBits(*State.MIs[0], GIMatchData_matchinfo);}()) {
2729 return false;
2730 }
2731 // Apply Patterns
2732 Helper.applyBuildFnNoErase(*State.MIs[0], GIMatchData_matchinfo);
2733 return true;
2734 }
2735 case GICXXCustomAction_GICombiner67:{
2736 // Match Patterns
2737 if(![&](){return Helper.matchSDivOrSRemByConst(*State.MIs[0]);}()) {
2738 return false;
2739 }
2740 // Apply Patterns
2741 Helper.applySDivOrSRemByConst(*State.MIs[0]);
2742 return true;
2743 }
2744 }
2745 llvm_unreachable("Unknown Apply Action");
2746}
2747#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
2748#define GIMT_Encode2(Val) uint8_t(Val), uint8_t((Val) >> 8)
2749#define GIMT_Encode4(Val) uint8_t(Val), uint8_t((Val) >> 8), uint8_t((Val) >> 16), uint8_t((Val) >> 24)
2750#define GIMT_Encode8(Val) uint8_t(Val), uint8_t((Val) >> 8), uint8_t((Val) >> 16), uint8_t((Val) >> 24), uint8_t(uint64_t(Val) >> 32), uint8_t(uint64_t(Val) >> 40), uint8_t(uint64_t(Val) >> 48), uint8_t(uint64_t(Val) >> 56)
2751#else
2752#define GIMT_Encode2(Val) uint8_t((Val) >> 8), uint8_t(Val)
2753#define GIMT_Encode4(Val) uint8_t((Val) >> 24), uint8_t((Val) >> 16), uint8_t((Val) >> 8), uint8_t(Val)
2754#define GIMT_Encode8(Val) uint8_t(uint64_t(Val) >> 56), uint8_t(uint64_t(Val) >> 48), uint8_t(uint64_t(Val) >> 40), uint8_t(uint64_t(Val) >> 32), uint8_t((Val) >> 24), uint8_t((Val) >> 16), uint8_t((Val) >> 8), uint8_t(Val)
2755#endif
2756const uint8_t *AArch64PostLegalizerCombinerImpl::getMatchTable() const {
2757 constexpr static uint8_t MatchTable0[] = {
2758 /* 0 */ GIM_SwitchOpcode, /*MI*/0, /*[*/GIMT_Encode2(21), GIMT_Encode2(336), /*)*//*default:*//*Label 94*/ GIMT_Encode4(6797),
2759 /* 10 */ /*TargetOpcode::COPY*//*Label 0*/ GIMT_Encode4(1270), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
2760 /* 150 */ /*TargetOpcode::G_ADD*//*Label 1*/ GIMT_Encode4(1282),
2761 /* 154 */ /*TargetOpcode::G_SUB*//*Label 2*/ GIMT_Encode4(1458),
2762 /* 158 */ /*TargetOpcode::G_MUL*//*Label 3*/ GIMT_Encode4(1639),
2763 /* 162 */ /*TargetOpcode::G_SDIV*//*Label 4*/ GIMT_Encode4(1892),
2764 /* 166 */ /*TargetOpcode::G_UDIV*//*Label 5*/ GIMT_Encode4(1938),
2765 /* 170 */ /*TargetOpcode::G_SREM*//*Label 6*/ GIMT_Encode4(1994),
2766 /* 174 */ /*TargetOpcode::G_UREM*//*Label 7*/ GIMT_Encode4(2029), GIMT_Encode4(0), GIMT_Encode4(0),
2767 /* 186 */ /*TargetOpcode::G_AND*//*Label 8*/ GIMT_Encode4(2085),
2768 /* 190 */ /*TargetOpcode::G_OR*//*Label 9*/ GIMT_Encode4(2280),
2769 /* 194 */ /*TargetOpcode::G_XOR*//*Label 10*/ GIMT_Encode4(2461), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
2770 /* 250 */ /*TargetOpcode::G_UNMERGE_VALUES*//*Label 11*/ GIMT_Encode4(2630), GIMT_Encode4(0),
2771 /* 258 */ /*TargetOpcode::G_MERGE_VALUES*//*Label 12*/ GIMT_Encode4(2697),
2772 /* 262 */ /*TargetOpcode::G_BUILD_VECTOR*//*Label 13*/ GIMT_Encode4(2833),
2773 /* 266 */ /*TargetOpcode::G_BUILD_VECTOR_TRUNC*//*Label 14*/ GIMT_Encode4(2916),
2774 /* 270 */ /*TargetOpcode::G_CONCAT_VECTORS*//*Label 15*/ GIMT_Encode4(2931),
2775 /* 274 */ /*TargetOpcode::G_PTRTOINT*//*Label 16*/ GIMT_Encode4(2946),
2776 /* 278 */ /*TargetOpcode::G_INTTOPTR*//*Label 17*/ GIMT_Encode4(3067),
2777 /* 282 */ /*TargetOpcode::G_BITCAST*//*Label 18*/ GIMT_Encode4(3125),
2778 /* 286 */ /*TargetOpcode::G_FREEZE*//*Label 19*/ GIMT_Encode4(3215), GIMT_Encode4(0), GIMT_Encode4(0),
2779 /* 298 */ /*TargetOpcode::G_INTRINSIC_TRUNC*//*Label 20*/ GIMT_Encode4(3227),
2780 /* 302 */ /*TargetOpcode::G_INTRINSIC_ROUND*//*Label 21*/ GIMT_Encode4(3239), GIMT_Encode4(0), GIMT_Encode4(0),
2781 /* 314 */ /*TargetOpcode::G_INTRINSIC_ROUNDEVEN*//*Label 22*/ GIMT_Encode4(3251), GIMT_Encode4(0), GIMT_Encode4(0),
2782 /* 326 */ /*TargetOpcode::G_LOAD*//*Label 23*/ GIMT_Encode4(3263),
2783 /* 330 */ /*TargetOpcode::G_SEXTLOAD*//*Label 24*/ GIMT_Encode4(3286),
2784 /* 334 */ /*TargetOpcode::G_ZEXTLOAD*//*Label 25*/ GIMT_Encode4(3309), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
2785 /* 354 */ /*TargetOpcode::G_STORE*//*Label 26*/ GIMT_Encode4(3332), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
2786 /* 502 */ /*TargetOpcode::G_ANYEXT*//*Label 27*/ GIMT_Encode4(3378),
2787 /* 506 */ /*TargetOpcode::G_TRUNC*//*Label 28*/ GIMT_Encode4(3548), GIMT_Encode4(0), GIMT_Encode4(0),
2788 /* 518 */ /*TargetOpcode::G_TRUNC_USAT_U*//*Label 29*/ GIMT_Encode4(3793), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
2789 /* 538 */ /*TargetOpcode::G_SEXT*//*Label 30*/ GIMT_Encode4(3826),
2790 /* 542 */ /*TargetOpcode::G_SEXT_INREG*//*Label 31*/ GIMT_Encode4(3880),
2791 /* 546 */ /*TargetOpcode::G_ZEXT*//*Label 32*/ GIMT_Encode4(4103),
2792 /* 550 */ /*TargetOpcode::G_SHL*//*Label 33*/ GIMT_Encode4(4157),
2793 /* 554 */ /*TargetOpcode::G_LSHR*//*Label 34*/ GIMT_Encode4(4282),
2794 /* 558 */ /*TargetOpcode::G_ASHR*//*Label 35*/ GIMT_Encode4(4502), GIMT_Encode4(0), GIMT_Encode4(0),
2795 /* 570 */ /*TargetOpcode::G_ROTR*//*Label 36*/ GIMT_Encode4(4693),
2796 /* 574 */ /*TargetOpcode::G_ROTL*//*Label 37*/ GIMT_Encode4(4728),
2797 /* 578 */ /*TargetOpcode::G_ICMP*//*Label 38*/ GIMT_Encode4(4763), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
2798 /* 594 */ /*TargetOpcode::G_SELECT*//*Label 39*/ GIMT_Encode4(4775),
2799 /* 598 */ /*TargetOpcode::G_UADDO*//*Label 40*/ GIMT_Encode4(5186), GIMT_Encode4(0),
2800 /* 606 */ /*TargetOpcode::G_USUBO*//*Label 41*/ GIMT_Encode4(5255), GIMT_Encode4(0),
2801 /* 614 */ /*TargetOpcode::G_SADDO*//*Label 42*/ GIMT_Encode4(5267), GIMT_Encode4(0),
2802 /* 622 */ /*TargetOpcode::G_SSUBO*//*Label 43*/ GIMT_Encode4(5336), GIMT_Encode4(0),
2803 /* 630 */ /*TargetOpcode::G_UMULO*//*Label 44*/ GIMT_Encode4(5348),
2804 /* 634 */ /*TargetOpcode::G_SMULO*//*Label 45*/ GIMT_Encode4(5376),
2805 /* 638 */ /*TargetOpcode::G_UMULH*//*Label 46*/ GIMT_Encode4(5404),
2806 /* 642 */ /*TargetOpcode::G_SMULH*//*Label 47*/ GIMT_Encode4(5430),
2807 /* 646 */ /*TargetOpcode::G_UADDSAT*//*Label 48*/ GIMT_Encode4(5456),
2808 /* 650 */ /*TargetOpcode::G_SADDSAT*//*Label 49*/ GIMT_Encode4(5482), GIMT_Encode4(0), GIMT_Encode4(0),
2809 /* 662 */ /*TargetOpcode::G_USHLSAT*//*Label 50*/ GIMT_Encode4(5508),
2810 /* 666 */ /*TargetOpcode::G_SSHLSAT*//*Label 51*/ GIMT_Encode4(5520),
2811 /* 670 */ /*TargetOpcode::G_SMULFIX*//*Label 52*/ GIMT_Encode4(5532),
2812 /* 674 */ /*TargetOpcode::G_UMULFIX*//*Label 53*/ GIMT_Encode4(5560),
2813 /* 678 */ /*TargetOpcode::G_SMULFIXSAT*//*Label 54*/ GIMT_Encode4(5588),
2814 /* 682 */ /*TargetOpcode::G_UMULFIXSAT*//*Label 55*/ GIMT_Encode4(5616), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
2815 /* 702 */ /*TargetOpcode::G_FADD*//*Label 56*/ GIMT_Encode4(5644),
2816 /* 706 */ /*TargetOpcode::G_FSUB*//*Label 57*/ GIMT_Encode4(5733),
2817 /* 710 */ /*TargetOpcode::G_FMUL*//*Label 58*/ GIMT_Encode4(5745), GIMT_Encode4(0), GIMT_Encode4(0),
2818 /* 722 */ /*TargetOpcode::G_FDIV*//*Label 59*/ GIMT_Encode4(5825),
2819 /* 726 */ /*TargetOpcode::G_FREM*//*Label 60*/ GIMT_Encode4(5837), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
2820 /* 758 */ /*TargetOpcode::G_FLOG2*//*Label 61*/ GIMT_Encode4(5849), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
2821 /* 774 */ /*TargetOpcode::G_FNEG*//*Label 62*/ GIMT_Encode4(5861),
2822 /* 778 */ /*TargetOpcode::G_FPEXT*//*Label 63*/ GIMT_Encode4(5902),
2823 /* 782 */ /*TargetOpcode::G_FPTRUNC*//*Label 64*/ GIMT_Encode4(5914),
2824 /* 786 */ /*TargetOpcode::G_FPTOSI*//*Label 65*/ GIMT_Encode4(5959),
2825 /* 790 */ /*TargetOpcode::G_FPTOUI*//*Label 66*/ GIMT_Encode4(5984),
2826 /* 794 */ /*TargetOpcode::G_SITOFP*//*Label 67*/ GIMT_Encode4(6009),
2827 /* 798 */ /*TargetOpcode::G_UITOFP*//*Label 68*/ GIMT_Encode4(6046), GIMT_Encode4(0), GIMT_Encode4(0),
2828 /* 810 */ /*TargetOpcode::G_FABS*//*Label 69*/ GIMT_Encode4(6083),
2829 /* 814 */ /*TargetOpcode::G_FCOPYSIGN*//*Label 70*/ GIMT_Encode4(6095), GIMT_Encode4(0), GIMT_Encode4(0),
2830 /* 826 */ /*TargetOpcode::G_FMINNUM*//*Label 71*/ GIMT_Encode4(6107),
2831 /* 830 */ /*TargetOpcode::G_FMAXNUM*//*Label 72*/ GIMT_Encode4(6144),
2832 /* 834 */ /*TargetOpcode::G_FMINNUM_IEEE*//*Label 73*/ GIMT_Encode4(6181),
2833 /* 838 */ /*TargetOpcode::G_FMAXNUM_IEEE*//*Label 74*/ GIMT_Encode4(6207),
2834 /* 842 */ /*TargetOpcode::G_FMINIMUM*//*Label 75*/ GIMT_Encode4(6233),
2835 /* 846 */ /*TargetOpcode::G_FMAXIMUM*//*Label 76*/ GIMT_Encode4(6270),
2836 /* 850 */ /*TargetOpcode::G_FMINIMUMNUM*//*Label 77*/ GIMT_Encode4(6307),
2837 /* 854 */ /*TargetOpcode::G_FMAXIMUMNUM*//*Label 78*/ GIMT_Encode4(6319), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
2838 /* 890 */ /*TargetOpcode::G_PTR_ADD*//*Label 79*/ GIMT_Encode4(6331), GIMT_Encode4(0),
2839 /* 898 */ /*TargetOpcode::G_SMIN*//*Label 80*/ GIMT_Encode4(6377),
2840 /* 902 */ /*TargetOpcode::G_SMAX*//*Label 81*/ GIMT_Encode4(6414),
2841 /* 906 */ /*TargetOpcode::G_UMIN*//*Label 82*/ GIMT_Encode4(6451),
2842 /* 910 */ /*TargetOpcode::G_UMAX*//*Label 83*/ GIMT_Encode4(6488),
2843 /* 914 */ /*TargetOpcode::G_ABS*//*Label 84*/ GIMT_Encode4(6525), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
2844 /* 946 */ /*TargetOpcode::G_INSERT_VECTOR_ELT*//*Label 85*/ GIMT_Encode4(6547),
2845 /* 950 */ /*TargetOpcode::G_EXTRACT_VECTOR_ELT*//*Label 86*/ GIMT_Encode4(6566),
2846 /* 954 */ /*TargetOpcode::G_SHUFFLE_VECTOR*//*Label 87*/ GIMT_Encode4(6607), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
2847 /* 1014 */ /*TargetOpcode::G_FCEIL*//*Label 88*/ GIMT_Encode4(6711), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
2848 /* 1062 */ /*TargetOpcode::G_FSQRT*//*Label 89*/ GIMT_Encode4(6723),
2849 /* 1066 */ /*TargetOpcode::G_FFLOOR*//*Label 90*/ GIMT_Encode4(6735),
2850 /* 1070 */ /*TargetOpcode::G_FRINT*//*Label 91*/ GIMT_Encode4(6747),
2851 /* 1074 */ /*TargetOpcode::G_FNEARBYINT*//*Label 92*/ GIMT_Encode4(6759), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
2852 /* 1266 */ /*TargetOpcode::G_UBFX*//*Label 93*/ GIMT_Encode4(6771),
2853 /* 1270 */ // Label 0: @1270
2854 /* 1270 */ GIM_Try, /*On fail goto*//*Label 95*/ GIMT_Encode4(1281), // Rule ID 0 //
2855 /* 1275 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule0Enabled),
2856 /* 1278 */ // MIs[0] d
2857 /* 1278 */ // No operand predicates
2858 /* 1278 */ // MIs[0] s
2859 /* 1278 */ // No operand predicates
2860 /* 1278 */ // Combiner Rule #0: copy_prop
2861 /* 1278 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner0),
2862 /* 1281 */ // Label 95: @1281
2863 /* 1281 */ GIM_Reject,
2864 /* 1282 */ // Label 1: @1282
2865 /* 1282 */ GIM_Try, /*On fail goto*//*Label 96*/ GIMT_Encode4(1307), // Rule ID 219 //
2866 /* 1287 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule137Enabled),
2867 /* 1290 */ // MIs[0] dst
2868 /* 1290 */ // No operand predicates
2869 /* 1290 */ // MIs[0] lhs
2870 /* 1290 */ // No operand predicates
2871 /* 1290 */ // MIs[0] rhs
2872 /* 1290 */ // No operand predicates
2873 /* 1290 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner28),
2874 /* 1294 */ // Combiner Rule #137: G_ADD_commute_constant_to_rhs
2875 /* 1294 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ADD),
2876 /* 1297 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
2877 /* 1299 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
2878 /* 1301 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
2879 /* 1303 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
2880 /* 1306 */ GIR_EraseRootFromParent_Done,
2881 /* 1307 */ // Label 96: @1307
2882 /* 1307 */ GIM_Try, /*On fail goto*//*Label 97*/ GIMT_Encode4(1341), // Rule ID 161 //
2883 /* 1312 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule103Enabled),
2884 /* 1315 */ // MIs[0] dst
2885 /* 1315 */ // No operand predicates
2886 /* 1315 */ // MIs[0] __add_sub_reg_match_0.tmp
2887 /* 1315 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
2888 /* 1319 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
2889 /* 1323 */ // MIs[1] src
2890 /* 1323 */ // No operand predicates
2891 /* 1323 */ // MIs[1] __add_sub_reg_match_0.x
2892 /* 1323 */ // No operand predicates
2893 /* 1323 */ // MIs[0] __add_sub_reg_match_0.x
2894 /* 1323 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/2,
2895 /* 1328 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
2896 /* 1333 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
2897 /* 1335 */ // Combiner Rule #103: add_sub_reg @ [__add_sub_reg_match_0[1]]
2898 /* 1335 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
2899 /* 1340 */ GIR_EraseRootFromParent_Done,
2900 /* 1341 */ // Label 97: @1341
2901 /* 1341 */ GIM_Try, /*On fail goto*//*Label 98*/ GIMT_Encode4(1365), // Rule ID 202 //
2902 /* 1346 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule125Enabled),
2903 /* 1349 */ // MIs[0] dst
2904 /* 1349 */ // No operand predicates
2905 /* 1349 */ // MIs[0] __propagate_undef_any_op_match_0.x
2906 /* 1349 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
2907 /* 1353 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
2908 /* 1357 */ // MIs[0] __propagate_undef_any_op_match_0.y
2909 /* 1357 */ // No operand predicates
2910 /* 1357 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
2911 /* 1359 */ // Combiner Rule #125: propagate_undef_any_op @ [__propagate_undef_any_op_match_0[0]]
2912 /* 1359 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
2913 /* 1362 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
2914 /* 1364 */ GIR_EraseRootFromParent_Done,
2915 /* 1365 */ // Label 98: @1365
2916 /* 1365 */ GIM_Try, /*On fail goto*//*Label 99*/ GIMT_Encode4(1399), // Rule ID 160 //
2917 /* 1370 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule103Enabled),
2918 /* 1373 */ // MIs[0] dst
2919 /* 1373 */ // No operand predicates
2920 /* 1373 */ // MIs[0] __add_sub_reg_match_0.x
2921 /* 1373 */ // No operand predicates
2922 /* 1373 */ // MIs[0] __add_sub_reg_match_0.tmp
2923 /* 1373 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
2924 /* 1377 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
2925 /* 1381 */ // MIs[1] src
2926 /* 1381 */ // No operand predicates
2927 /* 1381 */ // MIs[1] __add_sub_reg_match_0.x
2928 /* 1381 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/1, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
2929 /* 1386 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
2930 /* 1391 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
2931 /* 1393 */ // Combiner Rule #103: add_sub_reg @ [__add_sub_reg_match_0[0]]
2932 /* 1393 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
2933 /* 1398 */ GIR_EraseRootFromParent_Done,
2934 /* 1399 */ // Label 99: @1399
2935 /* 1399 */ GIM_Try, /*On fail goto*//*Label 100*/ GIMT_Encode4(1423), // Rule ID 205 //
2936 /* 1404 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule125Enabled),
2937 /* 1407 */ // MIs[0] dst
2938 /* 1407 */ // No operand predicates
2939 /* 1407 */ // MIs[0] __propagate_undef_any_op_match_0.x
2940 /* 1407 */ // No operand predicates
2941 /* 1407 */ // MIs[0] __propagate_undef_any_op_match_0.y
2942 /* 1407 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
2943 /* 1411 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
2944 /* 1415 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
2945 /* 1417 */ // Combiner Rule #125: propagate_undef_any_op @ [__propagate_undef_any_op_match_0[3]]
2946 /* 1417 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
2947 /* 1420 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
2948 /* 1422 */ GIR_EraseRootFromParent_Done,
2949 /* 1423 */ // Label 100: @1423
2950 /* 1423 */ GIM_Try, /*On fail goto*//*Label 101*/ GIMT_Encode4(1446), // Rule ID 130 //
2951 /* 1428 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled),
2952 /* 1431 */ // MIs[0] dst
2953 /* 1431 */ // No operand predicates
2954 /* 1431 */ // MIs[0] lhs
2955 /* 1431 */ // No operand predicates
2956 /* 1431 */ // MIs[0] Operand 2
2957 /* 1431 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
2958 /* 1435 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
2959 /* 1440 */ // Combiner Rule #90: right_identity_zero @ [__right_identity_zero_match_0[1]]
2960 /* 1440 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
2961 /* 1445 */ GIR_EraseRootFromParent_Done,
2962 /* 1446 */ // Label 101: @1446
2963 /* 1446 */ GIM_Try, /*On fail goto*//*Label 102*/ GIMT_Encode4(1457), // Rule ID 94 //
2964 /* 1451 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule85Enabled),
2965 /* 1454 */ // MIs[0] d
2966 /* 1454 */ // No operand predicates
2967 /* 1454 */ // MIs[0] mi.src0
2968 /* 1454 */ // No operand predicates
2969 /* 1454 */ // MIs[0] mi.src1
2970 /* 1454 */ // No operand predicates
2971 /* 1454 */ // Combiner Rule #85: constant_fold_binop @ [mi[0]]
2972 /* 1454 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner39),
2973 /* 1457 */ // Label 102: @1457
2974 /* 1457 */ GIM_Reject,
2975 /* 1458 */ // Label 2: @1458
2976 /* 1458 */ GIM_Try, /*On fail goto*//*Label 103*/ GIMT_Encode4(1517), // Rule ID 254 //
2977 /* 1463 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule172Enabled),
2978 /* 1466 */ // MIs[0] dst
2979 /* 1466 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
2980 /* 1470 */ // MIs[0] src3
2981 /* 1470 */ // No operand predicates
2982 /* 1470 */ // MIs[0] tmp
2983 /* 1470 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
2984 /* 1474 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
2985 /* 1478 */ // MIs[1] src1
2986 /* 1478 */ // No operand predicates
2987 /* 1478 */ // MIs[1] src2
2988 /* 1478 */ // No operand predicates
2989 /* 1478 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner30),
2990 /* 1482 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
2991 /* 1484 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
2992 /* 1487 */ // Combiner Rule #172: subaddmulreassoc
2993 /* 1487 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
2994 /* 1490 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
2995 /* 1495 */ GIR_RootToRootCopy, /*OpIdx*/1, // src3
2996 /* 1497 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // src1
2997 /* 1501 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
2998 /* 1505 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
2999 /* 1509 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
3000 /* 1512 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/2, // src2
3001 /* 1516 */ GIR_EraseRootFromParent_Done,
3002 /* 1517 */ // Label 103: @1517
3003 /* 1517 */ GIM_Try, /*On fail goto*//*Label 104*/ GIMT_Encode4(1541), // Rule ID 203 //
3004 /* 1522 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule125Enabled),
3005 /* 1525 */ // MIs[0] dst
3006 /* 1525 */ // No operand predicates
3007 /* 1525 */ // MIs[0] __propagate_undef_any_op_match_0.x
3008 /* 1525 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
3009 /* 1529 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
3010 /* 1533 */ // MIs[0] __propagate_undef_any_op_match_0.y
3011 /* 1533 */ // No operand predicates
3012 /* 1533 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
3013 /* 1535 */ // Combiner Rule #125: propagate_undef_any_op @ [__propagate_undef_any_op_match_0[1]]
3014 /* 1535 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
3015 /* 1538 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
3016 /* 1540 */ GIR_EraseRootFromParent_Done,
3017 /* 1541 */ // Label 104: @1541
3018 /* 1541 */ GIM_Try, /*On fail goto*//*Label 105*/ GIMT_Encode4(1580), // Rule ID 141 //
3019 /* 1546 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule92Enabled),
3020 /* 1549 */ // MIs[0] dst
3021 /* 1549 */ // No operand predicates
3022 /* 1549 */ // MIs[0] x
3023 /* 1549 */ GIM_RecordRegType, /*MI*/0, /*Op*/1, /*TempTypeIdx*/255,
3024 /* 1553 */ // MIs[0] x
3025 /* 1553 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
3026 /* 1558 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
3027 /* 1561 */ GIR_BuildConstant, /*TempRegID*/0, /*Val*/GIMT_Encode8(0),
3028 /* 1571 */ // Combiner Rule #92: same_val_zero @ [__same_val_zero_match_0[0]]
3029 /* 1571 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::COPY),
3030 /* 1574 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
3031 /* 1576 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/0,
3032 /* 1579 */ GIR_EraseRootFromParent_Done,
3033 /* 1580 */ // Label 105: @1580
3034 /* 1580 */ GIM_Try, /*On fail goto*//*Label 106*/ GIMT_Encode4(1604), // Rule ID 206 //
3035 /* 1585 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule125Enabled),
3036 /* 1588 */ // MIs[0] dst
3037 /* 1588 */ // No operand predicates
3038 /* 1588 */ // MIs[0] __propagate_undef_any_op_match_0.x
3039 /* 1588 */ // No operand predicates
3040 /* 1588 */ // MIs[0] __propagate_undef_any_op_match_0.y
3041 /* 1588 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
3042 /* 1592 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
3043 /* 1596 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
3044 /* 1598 */ // Combiner Rule #125: propagate_undef_any_op @ [__propagate_undef_any_op_match_0[4]]
3045 /* 1598 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
3046 /* 1601 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
3047 /* 1603 */ GIR_EraseRootFromParent_Done,
3048 /* 1604 */ // Label 106: @1604
3049 /* 1604 */ GIM_Try, /*On fail goto*//*Label 107*/ GIMT_Encode4(1627), // Rule ID 129 //
3050 /* 1609 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled),
3051 /* 1612 */ // MIs[0] dst
3052 /* 1612 */ // No operand predicates
3053 /* 1612 */ // MIs[0] lhs
3054 /* 1612 */ // No operand predicates
3055 /* 1612 */ // MIs[0] Operand 2
3056 /* 1612 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
3057 /* 1616 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
3058 /* 1621 */ // Combiner Rule #90: right_identity_zero @ [__right_identity_zero_match_0[0]]
3059 /* 1621 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
3060 /* 1626 */ GIR_EraseRootFromParent_Done,
3061 /* 1627 */ // Label 107: @1627
3062 /* 1627 */ GIM_Try, /*On fail goto*//*Label 108*/ GIMT_Encode4(1638), // Rule ID 102 //
3063 /* 1632 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule85Enabled),
3064 /* 1635 */ // MIs[0] d
3065 /* 1635 */ // No operand predicates
3066 /* 1635 */ // MIs[0] mi.src0
3067 /* 1635 */ // No operand predicates
3068 /* 1635 */ // MIs[0] mi.src1
3069 /* 1635 */ // No operand predicates
3070 /* 1635 */ // Combiner Rule #85: constant_fold_binop @ [mi[8]]
3071 /* 1635 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner39),
3072 /* 1638 */ // Label 108: @1638
3073 /* 1638 */ GIM_Reject,
3074 /* 1639 */ // Label 3: @1639
3075 /* 1639 */ GIM_Try, /*On fail goto*//*Label 109*/ GIMT_Encode4(1700), // Rule ID 50 //
3076 /* 1644 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule44Enabled),
3077 /* 1647 */ // MIs[0] dst
3078 /* 1647 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
3079 /* 1651 */ // MIs[0] x
3080 /* 1651 */ // No operand predicates
3081 /* 1651 */ // MIs[0] mask
3082 /* 1651 */ // No operand predicates
3083 /* 1651 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner2),
3084 /* 1655 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
3085 /* 1658 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(0),
3086 /* 1668 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
3087 /* 1671 */ // Combiner Rule #44: mul_by_zero_one_vector
3088 /* 1671 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
3089 /* 1674 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
3090 /* 1679 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/1,
3091 /* 1682 */ GIR_RootToRootCopy, /*OpIdx*/2, // mask
3092 /* 1684 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_AND),
3093 /* 1688 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
3094 /* 1692 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/1, // x
3095 /* 1696 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
3096 /* 1699 */ GIR_EraseRootFromParent_Done,
3097 /* 1700 */ // Label 109: @1700
3098 /* 1700 */ GIM_Try, /*On fail goto*//*Label 110*/ GIMT_Encode4(1723), // Rule ID 150 //
3099 /* 1705 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
3100 /* 1708 */ // MIs[0] dst
3101 /* 1708 */ // No operand predicates
3102 /* 1708 */ // MIs[0] zero
3103 /* 1708 */ // No operand predicates
3104 /* 1708 */ // MIs[0] rhs
3105 /* 1708 */ // No operand predicates
3106 /* 1708 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner13),
3107 /* 1712 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
3108 /* 1717 */ // Combiner Rule #93: binop_left_to_zero @ [__binop_left_to_zero_match_0[7]]
3109 /* 1717 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
3110 /* 1722 */ GIR_EraseRootFromParent_Done,
3111 /* 1723 */ // Label 110: @1723
3112 /* 1723 */ GIM_Try, /*On fail goto*//*Label 111*/ GIMT_Encode4(1748), // Rule ID 220 //
3113 /* 1728 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule138Enabled),
3114 /* 1731 */ // MIs[0] dst
3115 /* 1731 */ // No operand predicates
3116 /* 1731 */ // MIs[0] lhs
3117 /* 1731 */ // No operand predicates
3118 /* 1731 */ // MIs[0] rhs
3119 /* 1731 */ // No operand predicates
3120 /* 1731 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner28),
3121 /* 1735 */ // Combiner Rule #138: G_MUL_commute_constant_to_rhs
3122 /* 1735 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_MUL),
3123 /* 1738 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
3124 /* 1740 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
3125 /* 1742 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
3126 /* 1744 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
3127 /* 1747 */ GIR_EraseRootFromParent_Done,
3128 /* 1748 */ // Label 111: @1748
3129 /* 1748 */ GIM_Try, /*On fail goto*//*Label 112*/ GIMT_Encode4(1769), // Rule ID 183 //
3130 /* 1753 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule119Enabled),
3131 /* 1756 */ // MIs[0] dst
3132 /* 1756 */ // No operand predicates
3133 /* 1756 */ // MIs[0] __undef_to_int_zero_match_0.x
3134 /* 1756 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
3135 /* 1760 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
3136 /* 1764 */ // MIs[0] __undef_to_int_zero_match_0.y
3137 /* 1764 */ // No operand predicates
3138 /* 1764 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
3139 /* 1766 */ // Combiner Rule #119: undef_to_int_zero @ [__undef_to_int_zero_match_0[1]]
3140 /* 1766 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner50),
3141 /* 1769 */ // Label 112: @1769
3142 /* 1769 */ GIM_Try, /*On fail goto*//*Label 113*/ GIMT_Encode4(1790), // Rule ID 185 //
3143 /* 1774 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule119Enabled),
3144 /* 1777 */ // MIs[0] dst
3145 /* 1777 */ // No operand predicates
3146 /* 1777 */ // MIs[0] __undef_to_int_zero_match_0.x
3147 /* 1777 */ // No operand predicates
3148 /* 1777 */ // MIs[0] __undef_to_int_zero_match_0.y
3149 /* 1777 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
3150 /* 1781 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
3151 /* 1785 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
3152 /* 1787 */ // Combiner Rule #119: undef_to_int_zero @ [__undef_to_int_zero_match_0[3]]
3153 /* 1787 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner50),
3154 /* 1790 */ // Label 113: @1790
3155 /* 1790 */ GIM_Try, /*On fail goto*//*Label 114*/ GIMT_Encode4(1813), // Rule ID 151 //
3156 /* 1795 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule94Enabled),
3157 /* 1798 */ // MIs[0] dst
3158 /* 1798 */ // No operand predicates
3159 /* 1798 */ // MIs[0] lhs
3160 /* 1798 */ // No operand predicates
3161 /* 1798 */ // MIs[0] zero
3162 /* 1798 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
3163 /* 1802 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
3164 /* 1807 */ // Combiner Rule #94: binop_right_to_zero
3165 /* 1807 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
3166 /* 1812 */ GIR_EraseRootFromParent_Done,
3167 /* 1813 */ // Label 114: @1813
3168 /* 1813 */ GIM_Try, /*On fail goto*//*Label 115*/ GIMT_Encode4(1836), // Rule ID 158 //
3169 /* 1818 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule101Enabled),
3170 /* 1821 */ // MIs[0] dst
3171 /* 1821 */ // No operand predicates
3172 /* 1821 */ // MIs[0] x
3173 /* 1821 */ // No operand predicates
3174 /* 1821 */ // MIs[0] Operand 2
3175 /* 1821 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 1,
3176 /* 1825 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
3177 /* 1830 */ // Combiner Rule #101: right_identity_one_int
3178 /* 1830 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
3179 /* 1835 */ GIR_EraseRootFromParent_Done,
3180 /* 1836 */ // Label 115: @1836
3181 /* 1836 */ GIM_Try, /*On fail goto*//*Label 116*/ GIMT_Encode4(1847), // Rule ID 1 //
3182 /* 1841 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule1Enabled),
3183 /* 1844 */ // MIs[0] d
3184 /* 1844 */ // No operand predicates
3185 /* 1844 */ // MIs[0] op1
3186 /* 1844 */ // No operand predicates
3187 /* 1844 */ // MIs[0] op2
3188 /* 1844 */ // No operand predicates
3189 /* 1844 */ // Combiner Rule #1: mul_to_shl
3190 /* 1844 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner1),
3191 /* 1847 */ // Label 116: @1847
3192 /* 1847 */ GIM_Try, /*On fail goto*//*Label 117*/ GIMT_Encode4(1858), // Rule ID 51 //
3193 /* 1852 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule45Enabled),
3194 /* 1855 */ // MIs[0] dst
3195 /* 1855 */ // No operand predicates
3196 /* 1855 */ // MIs[0] src1
3197 /* 1855 */ // No operand predicates
3198 /* 1855 */ // MIs[0] src2
3199 /* 1855 */ // No operand predicates
3200 /* 1855 */ // Combiner Rule #45: mul_const
3201 /* 1855 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner18),
3202 /* 1858 */ // Label 117: @1858
3203 /* 1858 */ GIM_Try, /*On fail goto*//*Label 118*/ GIMT_Encode4(1869), // Rule ID 99 //
3204 /* 1863 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule85Enabled),
3205 /* 1866 */ // MIs[0] d
3206 /* 1866 */ // No operand predicates
3207 /* 1866 */ // MIs[0] mi.src0
3208 /* 1866 */ // No operand predicates
3209 /* 1866 */ // MIs[0] mi.src1
3210 /* 1866 */ // No operand predicates
3211 /* 1866 */ // Combiner Rule #85: constant_fold_binop @ [mi[5]]
3212 /* 1866 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner39),
3213 /* 1869 */ // Label 118: @1869
3214 /* 1869 */ GIM_Try, /*On fail goto*//*Label 119*/ GIMT_Encode4(1880), // Rule ID 251 //
3215 /* 1874 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule169Enabled),
3216 /* 1877 */ // MIs[0] dst
3217 /* 1877 */ // No operand predicates
3218 /* 1877 */ // MIs[0] src1
3219 /* 1877 */ // No operand predicates
3220 /* 1877 */ // MIs[0] src2
3221 /* 1877 */ // No operand predicates
3222 /* 1877 */ // Combiner Rule #169: combine_mul_cmlt
3223 /* 1877 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner59),
3224 /* 1880 */ // Label 119: @1880
3225 /* 1880 */ GIM_Try, /*On fail goto*//*Label 120*/ GIMT_Encode4(1891), // Rule ID 253 //
3226 /* 1885 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule171Enabled),
3227 /* 1888 */ // MIs[0] dst
3228 /* 1888 */ // No operand predicates
3229 /* 1888 */ // MIs[0] src1
3230 /* 1888 */ // No operand predicates
3231 /* 1888 */ // MIs[0] src2
3232 /* 1888 */ // No operand predicates
3233 /* 1888 */ // Combiner Rule #171: extmultomull
3234 /* 1888 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner61),
3235 /* 1891 */ // Label 120: @1891
3236 /* 1891 */ GIM_Reject,
3237 /* 1892 */ // Label 4: @1892
3238 /* 1892 */ GIM_Try, /*On fail goto*//*Label 121*/ GIMT_Encode4(1915), // Rule ID 146 //
3239 /* 1897 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
3240 /* 1900 */ // MIs[0] dst
3241 /* 1900 */ // No operand predicates
3242 /* 1900 */ // MIs[0] zero
3243 /* 1900 */ // No operand predicates
3244 /* 1900 */ // MIs[0] rhs
3245 /* 1900 */ // No operand predicates
3246 /* 1900 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner13),
3247 /* 1904 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
3248 /* 1909 */ // Combiner Rule #93: binop_left_to_zero @ [__binop_left_to_zero_match_0[3]]
3249 /* 1909 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
3250 /* 1914 */ GIR_EraseRootFromParent_Done,
3251 /* 1915 */ // Label 121: @1915
3252 /* 1915 */ GIM_Try, /*On fail goto*//*Label 122*/ GIMT_Encode4(1926), // Rule ID 105 //
3253 /* 1920 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule85Enabled),
3254 /* 1923 */ // MIs[0] d
3255 /* 1923 */ // No operand predicates
3256 /* 1923 */ // MIs[0] mi.src0
3257 /* 1923 */ // No operand predicates
3258 /* 1923 */ // MIs[0] mi.src1
3259 /* 1923 */ // No operand predicates
3260 /* 1923 */ // Combiner Rule #85: constant_fold_binop @ [mi[11]]
3261 /* 1923 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner39),
3262 /* 1926 */ // Label 122: @1926
3263 /* 1926 */ GIM_Try, /*On fail goto*//*Label 123*/ GIMT_Encode4(1937), // Rule ID 268 //
3264 /* 1931 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule182Enabled),
3265 /* 1934 */ // MIs[0] dst
3266 /* 1934 */ // No operand predicates
3267 /* 1934 */ // MIs[0] x
3268 /* 1934 */ // No operand predicates
3269 /* 1934 */ // MIs[0] y
3270 /* 1934 */ // No operand predicates
3271 /* 1934 */ // Combiner Rule #182: sdiv_by_const
3272 /* 1934 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner67),
3273 /* 1937 */ // Label 123: @1937
3274 /* 1937 */ GIM_Reject,
3275 /* 1938 */ // Label 5: @1938
3276 /* 1938 */ GIM_Try, /*On fail goto*//*Label 124*/ GIMT_Encode4(1961), // Rule ID 147 //
3277 /* 1943 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
3278 /* 1946 */ // MIs[0] dst
3279 /* 1946 */ // No operand predicates
3280 /* 1946 */ // MIs[0] zero
3281 /* 1946 */ // No operand predicates
3282 /* 1946 */ // MIs[0] rhs
3283 /* 1946 */ // No operand predicates
3284 /* 1946 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner13),
3285 /* 1950 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
3286 /* 1955 */ // Combiner Rule #93: binop_left_to_zero @ [__binop_left_to_zero_match_0[4]]
3287 /* 1955 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
3288 /* 1960 */ GIR_EraseRootFromParent_Done,
3289 /* 1961 */ // Label 124: @1961
3290 /* 1961 */ GIM_Try, /*On fail goto*//*Label 125*/ GIMT_Encode4(1982), // Rule ID 189 //
3291 /* 1966 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule121Enabled),
3292 /* 1969 */ // MIs[0] dst
3293 /* 1969 */ // No operand predicates
3294 /* 1969 */ // MIs[0] __binop_left_undef_to_zero_match_0.x
3295 /* 1969 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
3296 /* 1973 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
3297 /* 1977 */ // MIs[0] __binop_left_undef_to_zero_match_0.y
3298 /* 1977 */ // No operand predicates
3299 /* 1977 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
3300 /* 1979 */ // Combiner Rule #121: binop_left_undef_to_zero @ [__binop_left_undef_to_zero_match_0[1]]
3301 /* 1979 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner50),
3302 /* 1982 */ // Label 125: @1982
3303 /* 1982 */ GIM_Try, /*On fail goto*//*Label 126*/ GIMT_Encode4(1993), // Rule ID 104 //
3304 /* 1987 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule85Enabled),
3305 /* 1990 */ // MIs[0] d
3306 /* 1990 */ // No operand predicates
3307 /* 1990 */ // MIs[0] mi.src0
3308 /* 1990 */ // No operand predicates
3309 /* 1990 */ // MIs[0] mi.src1
3310 /* 1990 */ // No operand predicates
3311 /* 1990 */ // Combiner Rule #85: constant_fold_binop @ [mi[10]]
3312 /* 1990 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner39),
3313 /* 1993 */ // Label 126: @1993
3314 /* 1993 */ GIM_Reject,
3315 /* 1994 */ // Label 6: @1994
3316 /* 1994 */ GIM_Try, /*On fail goto*//*Label 127*/ GIMT_Encode4(2017), // Rule ID 148 //
3317 /* 1999 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
3318 /* 2002 */ // MIs[0] dst
3319 /* 2002 */ // No operand predicates
3320 /* 2002 */ // MIs[0] zero
3321 /* 2002 */ // No operand predicates
3322 /* 2002 */ // MIs[0] rhs
3323 /* 2002 */ // No operand predicates
3324 /* 2002 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner13),
3325 /* 2006 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
3326 /* 2011 */ // Combiner Rule #93: binop_left_to_zero @ [__binop_left_to_zero_match_0[5]]
3327 /* 2011 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
3328 /* 2016 */ GIR_EraseRootFromParent_Done,
3329 /* 2017 */ // Label 127: @2017
3330 /* 2017 */ GIM_Try, /*On fail goto*//*Label 128*/ GIMT_Encode4(2028), // Rule ID 107 //
3331 /* 2022 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule85Enabled),
3332 /* 2025 */ // MIs[0] d
3333 /* 2025 */ // No operand predicates
3334 /* 2025 */ // MIs[0] mi.src0
3335 /* 2025 */ // No operand predicates
3336 /* 2025 */ // MIs[0] mi.src1
3337 /* 2025 */ // No operand predicates
3338 /* 2025 */ // Combiner Rule #85: constant_fold_binop @ [mi[13]]
3339 /* 2025 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner39),
3340 /* 2028 */ // Label 128: @2028
3341 /* 2028 */ GIM_Reject,
3342 /* 2029 */ // Label 7: @2029
3343 /* 2029 */ GIM_Try, /*On fail goto*//*Label 129*/ GIMT_Encode4(2052), // Rule ID 149 //
3344 /* 2034 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
3345 /* 2037 */ // MIs[0] dst
3346 /* 2037 */ // No operand predicates
3347 /* 2037 */ // MIs[0] zero
3348 /* 2037 */ // No operand predicates
3349 /* 2037 */ // MIs[0] rhs
3350 /* 2037 */ // No operand predicates
3351 /* 2037 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner13),
3352 /* 2041 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
3353 /* 2046 */ // Combiner Rule #93: binop_left_to_zero @ [__binop_left_to_zero_match_0[6]]
3354 /* 2046 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
3355 /* 2051 */ GIR_EraseRootFromParent_Done,
3356 /* 2052 */ // Label 129: @2052
3357 /* 2052 */ GIM_Try, /*On fail goto*//*Label 130*/ GIMT_Encode4(2073), // Rule ID 190 //
3358 /* 2057 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule121Enabled),
3359 /* 2060 */ // MIs[0] dst
3360 /* 2060 */ // No operand predicates
3361 /* 2060 */ // MIs[0] __binop_left_undef_to_zero_match_0.x
3362 /* 2060 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
3363 /* 2064 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
3364 /* 2068 */ // MIs[0] __binop_left_undef_to_zero_match_0.y
3365 /* 2068 */ // No operand predicates
3366 /* 2068 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
3367 /* 2070 */ // Combiner Rule #121: binop_left_undef_to_zero @ [__binop_left_undef_to_zero_match_0[2]]
3368 /* 2070 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner50),
3369 /* 2073 */ // Label 130: @2073
3370 /* 2073 */ GIM_Try, /*On fail goto*//*Label 131*/ GIMT_Encode4(2084), // Rule ID 106 //
3371 /* 2078 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule85Enabled),
3372 /* 2081 */ // MIs[0] d
3373 /* 2081 */ // No operand predicates
3374 /* 2081 */ // MIs[0] mi.src0
3375 /* 2081 */ // No operand predicates
3376 /* 2081 */ // MIs[0] mi.src1
3377 /* 2081 */ // No operand predicates
3378 /* 2081 */ // Combiner Rule #85: constant_fold_binop @ [mi[12]]
3379 /* 2081 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner39),
3380 /* 2084 */ // Label 131: @2084
3381 /* 2084 */ GIM_Reject,
3382 /* 2085 */ // Label 8: @2085
3383 /* 2085 */ GIM_Try, /*On fail goto*//*Label 132*/ GIMT_Encode4(2096), // Rule ID 263 //
3384 /* 2090 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule181Enabled),
3385 /* 2093 */ // Combiner Rule #181: simplify_demanded_bits; wip_match_opcode 'G_AND'
3386 /* 2093 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner66),
3387 /* 2096 */ // Label 132: @2096
3388 /* 2096 */ GIM_Try, /*On fail goto*//*Label 133*/ GIMT_Encode4(2121), // Rule ID 221 //
3389 /* 2101 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule139Enabled),
3390 /* 2104 */ // MIs[0] dst
3391 /* 2104 */ // No operand predicates
3392 /* 2104 */ // MIs[0] lhs
3393 /* 2104 */ // No operand predicates
3394 /* 2104 */ // MIs[0] rhs
3395 /* 2104 */ // No operand predicates
3396 /* 2104 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner28),
3397 /* 2108 */ // Combiner Rule #139: G_AND_commute_constant_to_rhs
3398 /* 2108 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_AND),
3399 /* 2111 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
3400 /* 2113 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
3401 /* 2115 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
3402 /* 2117 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
3403 /* 2120 */ GIR_EraseRootFromParent_Done,
3404 /* 2121 */ // Label 133: @2121
3405 /* 2121 */ GIM_Try, /*On fail goto*//*Label 134*/ GIMT_Encode4(2158), // Rule ID 58 //
3406 /* 2126 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule52Enabled),
3407 /* 2129 */ // MIs[0] root
3408 /* 2129 */ // No operand predicates
3409 /* 2129 */ // MIs[0] shift
3410 /* 2129 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
3411 /* 2133 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_LSHR),
3412 /* 2137 */ // MIs[1] x
3413 /* 2137 */ // No operand predicates
3414 /* 2137 */ // MIs[1] lsb
3415 /* 2137 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
3416 /* 2141 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
3417 /* 2145 */ // MIs[2] imm1
3418 /* 2145 */ // No operand predicates
3419 /* 2145 */ // MIs[0] mask
3420 /* 2145 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/0, /*OpIdx*/2, // MIs[3]
3421 /* 2149 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
3422 /* 2153 */ // MIs[3] imm2
3423 /* 2153 */ // No operand predicates
3424 /* 2153 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
3425 /* 2155 */ // Combiner Rule #52: bitfield_extract_from_and
3426 /* 2155 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner21),
3427 /* 2158 */ // Label 134: @2158
3428 /* 2158 */ GIM_Try, /*On fail goto*//*Label 135*/ GIMT_Encode4(2179), // Rule ID 182 //
3429 /* 2163 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule119Enabled),
3430 /* 2166 */ // MIs[0] dst
3431 /* 2166 */ // No operand predicates
3432 /* 2166 */ // MIs[0] __undef_to_int_zero_match_0.x
3433 /* 2166 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
3434 /* 2170 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
3435 /* 2174 */ // MIs[0] __undef_to_int_zero_match_0.y
3436 /* 2174 */ // No operand predicates
3437 /* 2174 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
3438 /* 2176 */ // Combiner Rule #119: undef_to_int_zero @ [__undef_to_int_zero_match_0[0]]
3439 /* 2176 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner50),
3440 /* 2179 */ // Label 135: @2179
3441 /* 2179 */ GIM_Try, /*On fail goto*//*Label 136*/ GIMT_Encode4(2203), // Rule ID 139 //
3442 /* 2184 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule91Enabled),
3443 /* 2187 */ // MIs[0] dst
3444 /* 2187 */ // No operand predicates
3445 /* 2187 */ // MIs[0] src
3446 /* 2187 */ // No operand predicates
3447 /* 2187 */ // MIs[0] src
3448 /* 2187 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
3449 /* 2192 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
3450 /* 2197 */ // Combiner Rule #91: binop_same_val @ [__binop_same_val_match_0[0]]
3451 /* 2197 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
3452 /* 2202 */ GIR_EraseRootFromParent_Done,
3453 /* 2203 */ // Label 136: @2203
3454 /* 2203 */ GIM_Try, /*On fail goto*//*Label 137*/ GIMT_Encode4(2224), // Rule ID 184 //
3455 /* 2208 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule119Enabled),
3456 /* 2211 */ // MIs[0] dst
3457 /* 2211 */ // No operand predicates
3458 /* 2211 */ // MIs[0] __undef_to_int_zero_match_0.x
3459 /* 2211 */ // No operand predicates
3460 /* 2211 */ // MIs[0] __undef_to_int_zero_match_0.y
3461 /* 2211 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
3462 /* 2215 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
3463 /* 2219 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
3464 /* 2221 */ // Combiner Rule #119: undef_to_int_zero @ [__undef_to_int_zero_match_0[2]]
3465 /* 2221 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner50),
3466 /* 2224 */ // Label 137: @2224
3467 /* 2224 */ GIM_Try, /*On fail goto*//*Label 138*/ GIMT_Encode4(2235), // Rule ID 37 //
3468 /* 2229 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule35Enabled),
3469 /* 2232 */ // MIs[0] dst
3470 /* 2232 */ // No operand predicates
3471 /* 2232 */ // MIs[0] src1
3472 /* 2232 */ // No operand predicates
3473 /* 2232 */ // MIs[0] src2
3474 /* 2232 */ // No operand predicates
3475 /* 2232 */ // Combiner Rule #35: load_and_mask
3476 /* 2232 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner11),
3477 /* 2235 */ // Label 138: @2235
3478 /* 2235 */ GIM_Try, /*On fail goto*//*Label 139*/ GIMT_Encode4(2246), // Rule ID 43 //
3479 /* 2240 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule39Enabled),
3480 /* 2243 */ // MIs[0] root
3481 /* 2243 */ // No operand predicates
3482 /* 2243 */ // MIs[0] mi.x
3483 /* 2243 */ // No operand predicates
3484 /* 2243 */ // MIs[0] mi.y
3485 /* 2243 */ // No operand predicates
3486 /* 2243 */ // Combiner Rule #39: hoist_logic_op_with_same_opcode_hands @ [mi[0]]
3487 /* 2243 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner13),
3488 /* 2246 */ // Label 139: @2246
3489 /* 2246 */ GIM_Try, /*On fail goto*//*Label 140*/ GIMT_Encode4(2257), // Rule ID 46 //
3490 /* 2251 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule40Enabled),
3491 /* 2254 */ // MIs[0] dst
3492 /* 2254 */ // No operand predicates
3493 /* 2254 */ // MIs[0] src1
3494 /* 2254 */ // No operand predicates
3495 /* 2254 */ // MIs[0] src2
3496 /* 2254 */ // No operand predicates
3497 /* 2254 */ // Combiner Rule #40: redundant_and
3498 /* 2254 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner14),
3499 /* 2257 */ // Label 140: @2257
3500 /* 2257 */ GIM_Try, /*On fail goto*//*Label 141*/ GIMT_Encode4(2268), // Rule ID 96 //
3501 /* 2262 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule85Enabled),
3502 /* 2265 */ // MIs[0] d
3503 /* 2265 */ // No operand predicates
3504 /* 2265 */ // MIs[0] mi.src0
3505 /* 2265 */ // No operand predicates
3506 /* 2265 */ // MIs[0] mi.src1
3507 /* 2265 */ // No operand predicates
3508 /* 2265 */ // Combiner Rule #85: constant_fold_binop @ [mi[2]]
3509 /* 2265 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner39),
3510 /* 2268 */ // Label 141: @2268
3511 /* 2268 */ GIM_Try, /*On fail goto*//*Label 142*/ GIMT_Encode4(2279), // Rule ID 178 //
3512 /* 2273 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule116Enabled),
3513 /* 2276 */ // MIs[0] dst
3514 /* 2276 */ // No operand predicates
3515 /* 2276 */ // MIs[0] x
3516 /* 2276 */ // No operand predicates
3517 /* 2276 */ // MIs[0] y
3518 /* 2276 */ // No operand predicates
3519 /* 2276 */ // Combiner Rule #116: overlapping_and
3520 /* 2276 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner48),
3521 /* 2279 */ // Label 142: @2279
3522 /* 2279 */ GIM_Reject,
3523 /* 2280 */ // Label 9: @2280
3524 /* 2280 */ GIM_Try, /*On fail goto*//*Label 143*/ GIMT_Encode4(2291), // Rule ID 264 //
3525 /* 2285 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule181Enabled),
3526 /* 2288 */ // Combiner Rule #181: simplify_demanded_bits; wip_match_opcode 'G_OR'
3527 /* 2288 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner66),
3528 /* 2291 */ // Label 143: @2291
3529 /* 2291 */ GIM_Try, /*On fail goto*//*Label 144*/ GIMT_Encode4(2316), // Rule ID 222 //
3530 /* 2296 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule140Enabled),
3531 /* 2299 */ // MIs[0] dst
3532 /* 2299 */ // No operand predicates
3533 /* 2299 */ // MIs[0] lhs
3534 /* 2299 */ // No operand predicates
3535 /* 2299 */ // MIs[0] rhs
3536 /* 2299 */ // No operand predicates
3537 /* 2299 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner28),
3538 /* 2303 */ // Combiner Rule #140: G_OR_commute_constant_to_rhs
3539 /* 2303 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR),
3540 /* 2306 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
3541 /* 2308 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
3542 /* 2310 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
3543 /* 2312 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
3544 /* 2315 */ GIR_EraseRootFromParent_Done,
3545 /* 2316 */ // Label 144: @2316
3546 /* 2316 */ GIM_Try, /*On fail goto*//*Label 145*/ GIMT_Encode4(2337), // Rule ID 186 //
3547 /* 2321 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule120Enabled),
3548 /* 2324 */ // MIs[0] dst
3549 /* 2324 */ // No operand predicates
3550 /* 2324 */ // MIs[0] __undef_to_negative_one_match_0.x
3551 /* 2324 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
3552 /* 2328 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
3553 /* 2332 */ // MIs[0] __undef_to_negative_one_match_0.y
3554 /* 2332 */ // No operand predicates
3555 /* 2332 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
3556 /* 2334 */ // Combiner Rule #120: undef_to_negative_one @ [__undef_to_negative_one_match_0[0]]
3557 /* 2334 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner51),
3558 /* 2337 */ // Label 145: @2337
3559 /* 2337 */ GIM_Try, /*On fail goto*//*Label 146*/ GIMT_Encode4(2361), // Rule ID 140 //
3560 /* 2342 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule91Enabled),
3561 /* 2345 */ // MIs[0] dst
3562 /* 2345 */ // No operand predicates
3563 /* 2345 */ // MIs[0] src
3564 /* 2345 */ // No operand predicates
3565 /* 2345 */ // MIs[0] src
3566 /* 2345 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
3567 /* 2350 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
3568 /* 2355 */ // Combiner Rule #91: binop_same_val @ [__binop_same_val_match_0[1]]
3569 /* 2355 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
3570 /* 2360 */ GIR_EraseRootFromParent_Done,
3571 /* 2361 */ // Label 146: @2361
3572 /* 2361 */ GIM_Try, /*On fail goto*//*Label 147*/ GIMT_Encode4(2382), // Rule ID 187 //
3573 /* 2366 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule120Enabled),
3574 /* 2369 */ // MIs[0] dst
3575 /* 2369 */ // No operand predicates
3576 /* 2369 */ // MIs[0] __undef_to_negative_one_match_0.x
3577 /* 2369 */ // No operand predicates
3578 /* 2369 */ // MIs[0] __undef_to_negative_one_match_0.y
3579 /* 2369 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
3580 /* 2373 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
3581 /* 2377 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
3582 /* 2379 */ // Combiner Rule #120: undef_to_negative_one @ [__undef_to_negative_one_match_0[1]]
3583 /* 2379 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner51),
3584 /* 2382 */ // Label 147: @2382
3585 /* 2382 */ GIM_Try, /*On fail goto*//*Label 148*/ GIMT_Encode4(2405), // Rule ID 131 //
3586 /* 2387 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled),
3587 /* 2390 */ // MIs[0] dst
3588 /* 2390 */ // No operand predicates
3589 /* 2390 */ // MIs[0] lhs
3590 /* 2390 */ // No operand predicates
3591 /* 2390 */ // MIs[0] Operand 2
3592 /* 2390 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
3593 /* 2394 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
3594 /* 2399 */ // Combiner Rule #90: right_identity_zero @ [__right_identity_zero_match_0[2]]
3595 /* 2399 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
3596 /* 2404 */ GIR_EraseRootFromParent_Done,
3597 /* 2405 */ // Label 148: @2405
3598 /* 2405 */ GIM_Try, /*On fail goto*//*Label 149*/ GIMT_Encode4(2416), // Rule ID 44 //
3599 /* 2410 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule39Enabled),
3600 /* 2413 */ // MIs[0] root
3601 /* 2413 */ // No operand predicates
3602 /* 2413 */ // MIs[0] mi.x
3603 /* 2413 */ // No operand predicates
3604 /* 2413 */ // MIs[0] mi.y
3605 /* 2413 */ // No operand predicates
3606 /* 2413 */ // Combiner Rule #39: hoist_logic_op_with_same_opcode_hands @ [mi[1]]
3607 /* 2413 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner13),
3608 /* 2416 */ // Label 149: @2416
3609 /* 2416 */ GIM_Try, /*On fail goto*//*Label 150*/ GIMT_Encode4(2427), // Rule ID 49 //
3610 /* 2421 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule43Enabled),
3611 /* 2424 */ // MIs[0] dst
3612 /* 2424 */ // No operand predicates
3613 /* 2424 */ // MIs[0] src1
3614 /* 2424 */ // No operand predicates
3615 /* 2424 */ // MIs[0] src2
3616 /* 2424 */ // No operand predicates
3617 /* 2424 */ // Combiner Rule #43: redundant_or
3618 /* 2424 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner17),
3619 /* 2427 */ // Label 150: @2427
3620 /* 2427 */ GIM_Try, /*On fail goto*//*Label 151*/ GIMT_Encode4(2438), // Rule ID 100 //
3621 /* 2432 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule85Enabled),
3622 /* 2435 */ // MIs[0] d
3623 /* 2435 */ // No operand predicates
3624 /* 2435 */ // MIs[0] mi.src0
3625 /* 2435 */ // No operand predicates
3626 /* 2435 */ // MIs[0] mi.src1
3627 /* 2435 */ // No operand predicates
3628 /* 2435 */ // Combiner Rule #85: constant_fold_binop @ [mi[6]]
3629 /* 2435 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner39),
3630 /* 2438 */ // Label 151: @2438
3631 /* 2438 */ GIM_Try, /*On fail goto*//*Label 152*/ GIMT_Encode4(2449), // Rule ID 215 //
3632 /* 2443 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule133Enabled),
3633 /* 2446 */ // MIs[0] dst
3634 /* 2446 */ // No operand predicates
3635 /* 2446 */ // MIs[0] src1
3636 /* 2446 */ // No operand predicates
3637 /* 2446 */ // MIs[0] src2
3638 /* 2446 */ // No operand predicates
3639 /* 2446 */ // Combiner Rule #133: or_to_bsp
3640 /* 2446 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner53),
3641 /* 2449 */ // Label 152: @2449
3642 /* 2449 */ GIM_Try, /*On fail goto*//*Label 153*/ GIMT_Encode4(2460), // Rule ID 260 //
3643 /* 2454 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule178Enabled),
3644 /* 2457 */ // MIs[0] dst
3645 /* 2457 */ // No operand predicates
3646 /* 2457 */ // MIs[0] src1
3647 /* 2457 */ // No operand predicates
3648 /* 2457 */ // MIs[0] src2
3649 /* 2457 */ // No operand predicates
3650 /* 2457 */ // Combiner Rule #178: funnel_shift_from_or_shift_constants_are_legal
3651 /* 2457 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner65),
3652 /* 2460 */ // Label 153: @2460
3653 /* 2460 */ GIM_Reject,
3654 /* 2461 */ // Label 10: @2461
3655 /* 2461 */ GIM_Try, /*On fail goto*//*Label 154*/ GIMT_Encode4(2486), // Rule ID 223 //
3656 /* 2466 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule141Enabled),
3657 /* 2469 */ // MIs[0] dst
3658 /* 2469 */ // No operand predicates
3659 /* 2469 */ // MIs[0] lhs
3660 /* 2469 */ // No operand predicates
3661 /* 2469 */ // MIs[0] rhs
3662 /* 2469 */ // No operand predicates
3663 /* 2469 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner28),
3664 /* 2473 */ // Combiner Rule #141: G_XOR_commute_constant_to_rhs
3665 /* 2473 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_XOR),
3666 /* 2476 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
3667 /* 2478 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
3668 /* 2480 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
3669 /* 2482 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
3670 /* 2485 */ GIR_EraseRootFromParent_Done,
3671 /* 2486 */ // Label 154: @2486
3672 /* 2486 */ GIM_Try, /*On fail goto*//*Label 155*/ GIMT_Encode4(2510), // Rule ID 204 //
3673 /* 2491 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule125Enabled),
3674 /* 2494 */ // MIs[0] dst
3675 /* 2494 */ // No operand predicates
3676 /* 2494 */ // MIs[0] __propagate_undef_any_op_match_0.x
3677 /* 2494 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
3678 /* 2498 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
3679 /* 2502 */ // MIs[0] __propagate_undef_any_op_match_0.y
3680 /* 2502 */ // No operand predicates
3681 /* 2502 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
3682 /* 2504 */ // Combiner Rule #125: propagate_undef_any_op @ [__propagate_undef_any_op_match_0[2]]
3683 /* 2504 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
3684 /* 2507 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
3685 /* 2509 */ GIR_EraseRootFromParent_Done,
3686 /* 2510 */ // Label 155: @2510
3687 /* 2510 */ GIM_Try, /*On fail goto*//*Label 156*/ GIMT_Encode4(2549), // Rule ID 142 //
3688 /* 2515 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule92Enabled),
3689 /* 2518 */ // MIs[0] dst
3690 /* 2518 */ // No operand predicates
3691 /* 2518 */ // MIs[0] x
3692 /* 2518 */ GIM_RecordRegType, /*MI*/0, /*Op*/1, /*TempTypeIdx*/255,
3693 /* 2522 */ // MIs[0] x
3694 /* 2522 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
3695 /* 2527 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
3696 /* 2530 */ GIR_BuildConstant, /*TempRegID*/0, /*Val*/GIMT_Encode8(0),
3697 /* 2540 */ // Combiner Rule #92: same_val_zero @ [__same_val_zero_match_0[1]]
3698 /* 2540 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::COPY),
3699 /* 2543 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
3700 /* 2545 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/0,
3701 /* 2548 */ GIR_EraseRootFromParent_Done,
3702 /* 2549 */ // Label 156: @2549
3703 /* 2549 */ GIM_Try, /*On fail goto*//*Label 157*/ GIMT_Encode4(2573), // Rule ID 207 //
3704 /* 2554 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule125Enabled),
3705 /* 2557 */ // MIs[0] dst
3706 /* 2557 */ // No operand predicates
3707 /* 2557 */ // MIs[0] __propagate_undef_any_op_match_0.x
3708 /* 2557 */ // No operand predicates
3709 /* 2557 */ // MIs[0] __propagate_undef_any_op_match_0.y
3710 /* 2557 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
3711 /* 2561 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
3712 /* 2565 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
3713 /* 2567 */ // Combiner Rule #125: propagate_undef_any_op @ [__propagate_undef_any_op_match_0[5]]
3714 /* 2567 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
3715 /* 2570 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
3716 /* 2572 */ GIR_EraseRootFromParent_Done,
3717 /* 2573 */ // Label 157: @2573
3718 /* 2573 */ GIM_Try, /*On fail goto*//*Label 158*/ GIMT_Encode4(2596), // Rule ID 132 //
3719 /* 2578 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled),
3720 /* 2581 */ // MIs[0] dst
3721 /* 2581 */ // No operand predicates
3722 /* 2581 */ // MIs[0] lhs
3723 /* 2581 */ // No operand predicates
3724 /* 2581 */ // MIs[0] Operand 2
3725 /* 2581 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
3726 /* 2585 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
3727 /* 2590 */ // Combiner Rule #90: right_identity_zero @ [__right_identity_zero_match_0[3]]
3728 /* 2590 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
3729 /* 2595 */ GIR_EraseRootFromParent_Done,
3730 /* 2596 */ // Label 158: @2596
3731 /* 2596 */ GIM_Try, /*On fail goto*//*Label 159*/ GIMT_Encode4(2607), // Rule ID 45 //
3732 /* 2601 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule39Enabled),
3733 /* 2604 */ // MIs[0] root
3734 /* 2604 */ // No operand predicates
3735 /* 2604 */ // MIs[0] mi.x
3736 /* 2604 */ // No operand predicates
3737 /* 2604 */ // MIs[0] mi.y
3738 /* 2604 */ // No operand predicates
3739 /* 2604 */ // Combiner Rule #39: hoist_logic_op_with_same_opcode_hands @ [mi[2]]
3740 /* 2604 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner13),
3741 /* 2607 */ // Label 159: @2607
3742 /* 2607 */ GIM_Try, /*On fail goto*//*Label 160*/ GIMT_Encode4(2618), // Rule ID 47 //
3743 /* 2612 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule41Enabled),
3744 /* 2615 */ // MIs[0] dst
3745 /* 2615 */ // No operand predicates
3746 /* 2615 */ // MIs[0] src1
3747 /* 2615 */ // No operand predicates
3748 /* 2615 */ // MIs[0] src2
3749 /* 2615 */ // No operand predicates
3750 /* 2615 */ // Combiner Rule #41: xor_of_and_with_same_reg
3751 /* 2615 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner15),
3752 /* 2618 */ // Label 160: @2618
3753 /* 2618 */ GIM_Try, /*On fail goto*//*Label 161*/ GIMT_Encode4(2629), // Rule ID 103 //
3754 /* 2623 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule85Enabled),
3755 /* 2626 */ // MIs[0] d
3756 /* 2626 */ // No operand predicates
3757 /* 2626 */ // MIs[0] mi.src0
3758 /* 2626 */ // No operand predicates
3759 /* 2626 */ // MIs[0] mi.src1
3760 /* 2626 */ // No operand predicates
3761 /* 2626 */ // Combiner Rule #85: constant_fold_binop @ [mi[9]]
3762 /* 2626 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner39),
3763 /* 2629 */ // Label 161: @2629
3764 /* 2629 */ GIM_Reject,
3765 /* 2630 */ // Label 11: @2630
3766 /* 2630 */ GIM_Try, /*On fail goto*//*Label 162*/ GIMT_Encode4(2641), // Rule ID 84 //
3767 /* 2635 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule75Enabled),
3768 /* 2638 */ // Combiner Rule #75: unmerge_anyext_build_vector; wip_match_opcode 'G_UNMERGE_VALUES'
3769 /* 2638 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner31),
3770 /* 2641 */ // Label 162: @2641
3771 /* 2641 */ GIM_Try, /*On fail goto*//*Label 163*/ GIMT_Encode4(2652), // Rule ID 85 //
3772 /* 2646 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule76Enabled),
3773 /* 2649 */ // Combiner Rule #76: unmerge_merge; wip_match_opcode 'G_UNMERGE_VALUES'
3774 /* 2649 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner32),
3775 /* 2652 */ // Label 163: @2652
3776 /* 2652 */ GIM_Try, /*On fail goto*//*Label 164*/ GIMT_Encode4(2663), // Rule ID 87 //
3777 /* 2657 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule78Enabled),
3778 /* 2660 */ // Combiner Rule #78: unmerge_cst; wip_match_opcode 'G_UNMERGE_VALUES'
3779 /* 2660 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner34),
3780 /* 2663 */ // Label 164: @2663
3781 /* 2663 */ GIM_Try, /*On fail goto*//*Label 165*/ GIMT_Encode4(2674), // Rule ID 88 //
3782 /* 2668 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule79Enabled),
3783 /* 2671 */ // Combiner Rule #79: unmerge_undef; wip_match_opcode 'G_UNMERGE_VALUES'
3784 /* 2671 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner35),
3785 /* 2674 */ // Label 165: @2674
3786 /* 2674 */ GIM_Try, /*On fail goto*//*Label 166*/ GIMT_Encode4(2685), // Rule ID 89 //
3787 /* 2679 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule80Enabled),
3788 /* 2682 */ // Combiner Rule #80: unmerge_dead_to_trunc; wip_match_opcode 'G_UNMERGE_VALUES'
3789 /* 2682 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner36),
3790 /* 2685 */ // Label 166: @2685
3791 /* 2685 */ GIM_Try, /*On fail goto*//*Label 167*/ GIMT_Encode4(2696), // Rule ID 90 //
3792 /* 2690 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule81Enabled),
3793 /* 2693 */ // Combiner Rule #81: unmerge_zext_to_zext; wip_match_opcode 'G_UNMERGE_VALUES'
3794 /* 2693 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner37),
3795 /* 2696 */ // Label 167: @2696
3796 /* 2696 */ GIM_Reject,
3797 /* 2697 */ // Label 12: @2697
3798 /* 2697 */ GIM_Try, /*On fail goto*//*Label 168*/ GIMT_Encode4(2711), // Rule ID 86 //
3799 /* 2702 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule77Enabled),
3800 /* 2705 */ GIM_CheckNumOperandsGE, /*MI*/0, /*Expected*/2,
3801 /* 2708 */ // MIs[0] dst
3802 /* 2708 */ // No operand predicates
3803 /* 2708 */ // MIs[0] merge_srcs
3804 /* 2708 */ // No operand predicates
3805 /* 2708 */ // Combiner Rule #77: merge_unmerge
3806 /* 2708 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner33),
3807 /* 2711 */ // Label 168: @2711
3808 /* 2711 */ GIM_Try, /*On fail goto*//*Label 169*/ GIMT_Encode4(2832),
3809 /* 2716 */ GIM_CheckNumOperands, /*MI*/0, /*Expected*/3,
3810 /* 2719 */ GIM_Try, /*On fail goto*//*Label 170*/ GIMT_Encode4(2749), // Rule ID 91 //
3811 /* 2724 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule82Enabled),
3812 /* 2727 */ // MIs[0] root
3813 /* 2727 */ // No operand predicates
3814 /* 2727 */ // MIs[0] x
3815 /* 2727 */ // No operand predicates
3816 /* 2727 */ // MIs[0] undef
3817 /* 2727 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
3818 /* 2731 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
3819 /* 2735 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner10),
3820 /* 2739 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
3821 /* 2741 */ // Combiner Rule #82: merge_of_x_and_undef
3822 /* 2741 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ANYEXT),
3823 /* 2744 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
3824 /* 2746 */ GIR_RootToRootCopy, /*OpIdx*/1, // x
3825 /* 2748 */ GIR_EraseRootFromParent_Done,
3826 /* 2749 */ // Label 170: @2749
3827 /* 2749 */ GIM_Try, /*On fail goto*//*Label 171*/ GIMT_Encode4(2790), // Rule ID 83 //
3828 /* 2754 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule74Enabled),
3829 /* 2757 */ // MIs[0] dst
3830 /* 2757 */ // No operand predicates
3831 /* 2757 */ // MIs[0] x
3832 /* 2757 */ // No operand predicates
3833 /* 2757 */ // MIs[0] zero
3834 /* 2757 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
3835 /* 2761 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
3836 /* 2765 */ // MIs[1] Operand 1
3837 /* 2765 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0),
3838 /* 2776 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner9),
3839 /* 2780 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
3840 /* 2782 */ // Combiner Rule #74: fold_merge_to_zext
3841 /* 2782 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ZEXT),
3842 /* 2785 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
3843 /* 2787 */ GIR_RootToRootCopy, /*OpIdx*/1, // x
3844 /* 2789 */ GIR_EraseRootFromParent_Done,
3845 /* 2790 */ // Label 171: @2790
3846 /* 2790 */ GIM_Try, /*On fail goto*//*Label 172*/ GIMT_Encode4(2831), // Rule ID 92 //
3847 /* 2795 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule83Enabled),
3848 /* 2798 */ // MIs[0] root
3849 /* 2798 */ // No operand predicates
3850 /* 2798 */ // MIs[0] x
3851 /* 2798 */ // No operand predicates
3852 /* 2798 */ // MIs[0] zero
3853 /* 2798 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
3854 /* 2802 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
3855 /* 2806 */ // MIs[1] Operand 1
3856 /* 2806 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0),
3857 /* 2817 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner11),
3858 /* 2821 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
3859 /* 2823 */ // Combiner Rule #83: merge_of_x_and_zero
3860 /* 2823 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ZEXT),
3861 /* 2826 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
3862 /* 2828 */ GIR_RootToRootCopy, /*OpIdx*/1, // x
3863 /* 2830 */ GIR_EraseRootFromParent_Done,
3864 /* 2831 */ // Label 172: @2831
3865 /* 2831 */ GIM_Reject,
3866 /* 2832 */ // Label 169: @2832
3867 /* 2832 */ GIM_Reject,
3868 /* 2833 */ // Label 13: @2833
3869 /* 2833 */ GIM_Try, /*On fail goto*//*Label 173*/ GIMT_Encode4(2915),
3870 /* 2838 */ GIM_CheckNumOperandsGE, /*MI*/0, /*Expected*/2,
3871 /* 2841 */ GIM_Try, /*On fail goto*//*Label 174*/ GIMT_Encode4(2859), // Rule ID 209 //
3872 /* 2846 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule127Enabled),
3873 /* 2849 */ // MIs[0] root
3874 /* 2849 */ // No operand predicates
3875 /* 2849 */ // MIs[0] srcs
3876 /* 2849 */ // No operand predicates
3877 /* 2849 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner23),
3878 /* 2853 */ // Combiner Rule #127: propagate_undef_all_ops_build_vector
3879 /* 2853 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
3880 /* 2856 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
3881 /* 2858 */ GIR_EraseRootFromParent_Done,
3882 /* 2859 */ // Label 174: @2859
3883 /* 2859 */ GIM_Try, /*On fail goto*//*Label 175*/ GIMT_Encode4(2870), // Rule ID 93 //
3884 /* 2864 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule84Enabled),
3885 /* 2867 */ // MIs[0] dst
3886 /* 2867 */ // No operand predicates
3887 /* 2867 */ // MIs[0] unused
3888 /* 2867 */ // No operand predicates
3889 /* 2867 */ // Combiner Rule #84: combine_build_unmerge
3890 /* 2867 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner38),
3891 /* 2870 */ // Label 175: @2870
3892 /* 2870 */ GIM_Try, /*On fail goto*//*Label 176*/ GIMT_Encode4(2881), // Rule ID 162 //
3893 /* 2875 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule104Enabled),
3894 /* 2878 */ // MIs[0] build_vector
3895 /* 2878 */ // No operand predicates
3896 /* 2878 */ // MIs[0] srcs
3897 /* 2878 */ // No operand predicates
3898 /* 2878 */ // Combiner Rule #104: buildvector_identity_fold_bv
3899 /* 2878 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner43),
3900 /* 2881 */ // Label 176: @2881
3901 /* 2881 */ GIM_Try, /*On fail goto*//*Label 177*/ GIMT_Encode4(2892), // Rule ID 218 //
3902 /* 2886 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule136Enabled),
3903 /* 2889 */ // MIs[0] dst
3904 /* 2889 */ // No operand predicates
3905 /* 2889 */ // MIs[0] unused
3906 /* 2889 */ // No operand predicates
3907 /* 2889 */ // Combiner Rule #136: combine_build_vector_of_bitcast
3908 /* 2889 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner55),
3909 /* 2892 */ // Label 177: @2892
3910 /* 2892 */ GIM_Try, /*On fail goto*//*Label 178*/ GIMT_Encode4(2903), // Rule ID 249 //
3911 /* 2897 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule167Enabled),
3912 /* 2900 */ // MIs[0] dst
3913 /* 2900 */ // No operand predicates
3914 /* 2900 */ // MIs[0] srcs
3915 /* 2900 */ // No operand predicates
3916 /* 2900 */ // Combiner Rule #167: extract_all_elts_from_build_vector
3917 /* 2900 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner57),
3918 /* 2903 */ // Label 178: @2903
3919 /* 2903 */ GIM_Try, /*On fail goto*//*Label 179*/ GIMT_Encode4(2914), // Rule ID 252 //
3920 /* 2908 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule170Enabled),
3921 /* 2911 */ // MIs[0] dst
3922 /* 2911 */ // No operand predicates
3923 /* 2911 */ // MIs[0] unused
3924 /* 2911 */ // No operand predicates
3925 /* 2911 */ // Combiner Rule #170: combine_use_vector_truncate
3926 /* 2911 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner60),
3927 /* 2914 */ // Label 179: @2914
3928 /* 2914 */ GIM_Reject,
3929 /* 2915 */ // Label 173: @2915
3930 /* 2915 */ GIM_Reject,
3931 /* 2916 */ // Label 14: @2916
3932 /* 2916 */ GIM_Try, /*On fail goto*//*Label 180*/ GIMT_Encode4(2930), // Rule ID 163 //
3933 /* 2921 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule105Enabled),
3934 /* 2924 */ GIM_CheckNumOperandsGE, /*MI*/0, /*Expected*/2,
3935 /* 2927 */ // MIs[0] build_vector
3936 /* 2927 */ // No operand predicates
3937 /* 2927 */ // MIs[0] srcs
3938 /* 2927 */ // No operand predicates
3939 /* 2927 */ // Combiner Rule #105: buildvector_identity_fold_bvt
3940 /* 2927 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner43),
3941 /* 2930 */ // Label 180: @2930
3942 /* 2930 */ GIM_Reject,
3943 /* 2931 */ // Label 15: @2931
3944 /* 2931 */ GIM_Try, /*On fail goto*//*Label 181*/ GIMT_Encode4(2945), // Rule ID 217 //
3945 /* 2936 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule135Enabled),
3946 /* 2939 */ GIM_CheckNumOperandsGE, /*MI*/0, /*Expected*/2,
3947 /* 2942 */ // MIs[0] dst
3948 /* 2942 */ // No operand predicates
3949 /* 2942 */ // MIs[0] srcs
3950 /* 2942 */ // No operand predicates
3951 /* 2942 */ // Combiner Rule #135: combine_concat_vector
3952 /* 2942 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner54),
3953 /* 2945 */ // Label 181: @2945
3954 /* 2945 */ GIM_Reject,
3955 /* 2946 */ // Label 16: @2946
3956 /* 2946 */ GIM_Try, /*On fail goto*//*Label 182*/ GIMT_Encode4(2978), // Rule ID 153 //
3957 /* 2951 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule96Enabled),
3958 /* 2954 */ // MIs[0] dst
3959 /* 2954 */ // No operand predicates
3960 /* 2954 */ // MIs[0] t
3961 /* 2954 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
3962 /* 2958 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_INTTOPTR),
3963 /* 2962 */ // MIs[1] ptr
3964 /* 2962 */ // No operand predicates
3965 /* 2962 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner15),
3966 /* 2966 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
3967 /* 2968 */ // Combiner Rule #96: i2p_to_p2i_same_size
3968 /* 2968 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::COPY),
3969 /* 2971 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
3970 /* 2973 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // ptr
3971 /* 2977 */ GIR_EraseRootFromParent_Done,
3972 /* 2978 */ // Label 182: @2978
3973 /* 2978 */ GIM_Try, /*On fail goto*//*Label 183*/ GIMT_Encode4(3010), // Rule ID 154 //
3974 /* 2983 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule97Enabled),
3975 /* 2986 */ // MIs[0] dst
3976 /* 2986 */ // No operand predicates
3977 /* 2986 */ // MIs[0] t
3978 /* 2986 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
3979 /* 2990 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_INTTOPTR),
3980 /* 2994 */ // MIs[1] ptr
3981 /* 2994 */ // No operand predicates
3982 /* 2994 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner16),
3983 /* 2998 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
3984 /* 3000 */ // Combiner Rule #97: i2p_to_p2i_zext
3985 /* 3000 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ZEXT),
3986 /* 3003 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
3987 /* 3005 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // ptr
3988 /* 3009 */ GIR_EraseRootFromParent_Done,
3989 /* 3010 */ // Label 183: @3010
3990 /* 3010 */ GIM_Try, /*On fail goto*//*Label 184*/ GIMT_Encode4(3042), // Rule ID 155 //
3991 /* 3015 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule98Enabled),
3992 /* 3018 */ // MIs[0] dst
3993 /* 3018 */ // No operand predicates
3994 /* 3018 */ // MIs[0] t
3995 /* 3018 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
3996 /* 3022 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_INTTOPTR),
3997 /* 3026 */ // MIs[1] ptr
3998 /* 3026 */ // No operand predicates
3999 /* 3026 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner17),
4000 /* 3030 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4001 /* 3032 */ // Combiner Rule #98: i2p_to_p2i_trunc
4002 /* 3032 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_TRUNC),
4003 /* 3035 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
4004 /* 3037 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // ptr
4005 /* 3041 */ GIR_EraseRootFromParent_Done,
4006 /* 3042 */ // Label 184: @3042
4007 /* 3042 */ GIM_Try, /*On fail goto*//*Label 185*/ GIMT_Encode4(3066), // Rule ID 198 //
4008 /* 3047 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule124Enabled),
4009 /* 3050 */ // MIs[0] dst
4010 /* 3050 */ // No operand predicates
4011 /* 3050 */ // MIs[0] __unary_undef_to_undef_match_0.x
4012 /* 3050 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4013 /* 3054 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
4014 /* 3058 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4015 /* 3060 */ // Combiner Rule #124: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[3]]
4016 /* 3060 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
4017 /* 3063 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
4018 /* 3065 */ GIR_EraseRootFromParent_Done,
4019 /* 3066 */ // Label 185: @3066
4020 /* 3066 */ GIM_Reject,
4021 /* 3067 */ // Label 17: @3067
4022 /* 3067 */ GIM_Try, /*On fail goto*//*Label 186*/ GIMT_Encode4(3100), // Rule ID 152 //
4023 /* 3072 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule95Enabled),
4024 /* 3075 */ // MIs[0] dst
4025 /* 3075 */ // No operand predicates
4026 /* 3075 */ // MIs[0] mid
4027 /* 3075 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4028 /* 3079 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_PTRTOINT),
4029 /* 3083 */ // MIs[1] x
4030 /* 3083 */ // No operand predicates
4031 /* 3083 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner14),
4032 /* 3087 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
4033 /* 3092 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4034 /* 3094 */ // Combiner Rule #95: p2i_to_i2p
4035 /* 3094 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
4036 /* 3099 */ GIR_EraseRootFromParent_Done,
4037 /* 3100 */ // Label 186: @3100
4038 /* 3100 */ GIM_Try, /*On fail goto*//*Label 187*/ GIMT_Encode4(3124), // Rule ID 199 //
4039 /* 3105 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule124Enabled),
4040 /* 3108 */ // MIs[0] dst
4041 /* 3108 */ // No operand predicates
4042 /* 3108 */ // MIs[0] __unary_undef_to_undef_match_0.x
4043 /* 3108 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4044 /* 3112 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
4045 /* 3116 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4046 /* 3118 */ // Combiner Rule #124: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[4]]
4047 /* 3118 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
4048 /* 3121 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
4049 /* 3123 */ GIR_EraseRootFromParent_Done,
4050 /* 3124 */ // Label 187: @3124
4051 /* 3124 */ GIM_Reject,
4052 /* 3125 */ // Label 18: @3125
4053 /* 3125 */ GIM_Try, /*On fail goto*//*Label 188*/ GIMT_Encode4(3158), // Rule ID 166 //
4054 /* 3130 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule108Enabled),
4055 /* 3133 */ // MIs[0] dst
4056 /* 3133 */ // No operand predicates
4057 /* 3133 */ // MIs[0] src1
4058 /* 3133 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4059 /* 3137 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BITCAST),
4060 /* 3141 */ // MIs[1] src0
4061 /* 3141 */ // No operand predicates
4062 /* 3141 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner14),
4063 /* 3145 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
4064 /* 3150 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4065 /* 3152 */ // Combiner Rule #108: bitcast_bitcast_fold
4066 /* 3152 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
4067 /* 3157 */ GIR_EraseRootFromParent_Done,
4068 /* 3158 */ // Label 188: @3158
4069 /* 3158 */ GIM_Try, /*On fail goto*//*Label 189*/ GIMT_Encode4(3190), // Rule ID 167 //
4070 /* 3163 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule109Enabled),
4071 /* 3166 */ // MIs[0] dst
4072 /* 3166 */ // No operand predicates
4073 /* 3166 */ // MIs[0] src1
4074 /* 3166 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4075 /* 3170 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BITCAST),
4076 /* 3174 */ // MIs[1] src0
4077 /* 3174 */ // No operand predicates
4078 /* 3174 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner19),
4079 /* 3178 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4080 /* 3180 */ // Combiner Rule #109: bitcast_bitcast_to_bitcast
4081 /* 3180 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_BITCAST),
4082 /* 3183 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
4083 /* 3185 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // src0
4084 /* 3189 */ GIR_EraseRootFromParent_Done,
4085 /* 3190 */ // Label 189: @3190
4086 /* 3190 */ GIM_Try, /*On fail goto*//*Label 190*/ GIMT_Encode4(3214), // Rule ID 196 //
4087 /* 3195 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule124Enabled),
4088 /* 3198 */ // MIs[0] dst
4089 /* 3198 */ // No operand predicates
4090 /* 3198 */ // MIs[0] __unary_undef_to_undef_match_0.x
4091 /* 3198 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4092 /* 3202 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
4093 /* 3206 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4094 /* 3208 */ // Combiner Rule #124: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[1]]
4095 /* 3208 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
4096 /* 3211 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
4097 /* 3213 */ GIR_EraseRootFromParent_Done,
4098 /* 3214 */ // Label 190: @3214
4099 /* 3214 */ GIM_Reject,
4100 /* 3215 */ // Label 19: @3215
4101 /* 3215 */ GIM_Try, /*On fail goto*//*Label 191*/ GIMT_Encode4(3226), // Rule ID 250 //
4102 /* 3220 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule168Enabled),
4103 /* 3223 */ // MIs[0] dst
4104 /* 3223 */ // No operand predicates
4105 /* 3223 */ // MIs[0] src
4106 /* 3223 */ // No operand predicates
4107 /* 3223 */ // Combiner Rule #168: push_freeze_to_prevent_poison_from_propagating
4108 /* 3223 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner58),
4109 /* 3226 */ // Label 191: @3226
4110 /* 3226 */ GIM_Reject,
4111 /* 3227 */ // Label 20: @3227
4112 /* 3227 */ GIM_Try, /*On fail goto*//*Label 192*/ GIMT_Encode4(3238), // Rule ID 21 //
4113 /* 3232 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule21Enabled),
4114 /* 3235 */ // MIs[0] dst
4115 /* 3235 */ // No operand predicates
4116 /* 3235 */ // MIs[0] src0
4117 /* 3235 */ // No operand predicates
4118 /* 3235 */ // Combiner Rule #21: constant_fold_intrinsic_trunc
4119 /* 3235 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner5),
4120 /* 3238 */ // Label 192: @3238
4121 /* 3238 */ GIM_Reject,
4122 /* 3239 */ // Label 21: @3239
4123 /* 3239 */ GIM_Try, /*On fail goto*//*Label 193*/ GIMT_Encode4(3250), // Rule ID 22 //
4124 /* 3244 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule22Enabled),
4125 /* 3247 */ // MIs[0] dst
4126 /* 3247 */ // No operand predicates
4127 /* 3247 */ // MIs[0] src0
4128 /* 3247 */ // No operand predicates
4129 /* 3247 */ // Combiner Rule #22: constant_fold_intrinsic_round
4130 /* 3247 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner5),
4131 /* 3250 */ // Label 193: @3250
4132 /* 3250 */ GIM_Reject,
4133 /* 3251 */ // Label 22: @3251
4134 /* 3251 */ GIM_Try, /*On fail goto*//*Label 194*/ GIMT_Encode4(3262), // Rule ID 23 //
4135 /* 3256 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule23Enabled),
4136 /* 3259 */ // MIs[0] dst
4137 /* 3259 */ // No operand predicates
4138 /* 3259 */ // MIs[0] src0
4139 /* 3259 */ // No operand predicates
4140 /* 3259 */ // Combiner Rule #23: constant_fold_intrinsic_roundeven
4141 /* 3259 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner5),
4142 /* 3262 */ // Label 194: @3262
4143 /* 3262 */ GIM_Reject,
4144 /* 3263 */ // Label 23: @3263
4145 /* 3263 */ GIM_Try, /*On fail goto*//*Label 195*/ GIMT_Encode4(3274), // Rule ID 34 //
4146 /* 3268 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule34Enabled),
4147 /* 3271 */ // MIs[0] root
4148 /* 3271 */ // No operand predicates
4149 /* 3271 */ // MIs[0] mi.ptr
4150 /* 3271 */ // No operand predicates
4151 /* 3271 */ // Combiner Rule #34: extending_loads @ [mi[0]]
4152 /* 3271 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner10),
4153 /* 3274 */ // Label 195: @3274
4154 /* 3274 */ GIM_Try, /*On fail goto*//*Label 196*/ GIMT_Encode4(3285), // Rule ID 38 //
4155 /* 3279 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule36Enabled),
4156 /* 3282 */ // MIs[0] root
4157 /* 3282 */ // No operand predicates
4158 /* 3282 */ // MIs[0] mi.ptr
4159 /* 3282 */ // No operand predicates
4160 /* 3282 */ // Combiner Rule #36: combine_indexed_load @ [mi[0]]
4161 /* 3282 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner12),
4162 /* 3285 */ // Label 196: @3285
4163 /* 3285 */ GIM_Reject,
4164 /* 3286 */ // Label 24: @3286
4165 /* 3286 */ GIM_Try, /*On fail goto*//*Label 197*/ GIMT_Encode4(3297), // Rule ID 35 //
4166 /* 3291 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule34Enabled),
4167 /* 3294 */ // MIs[0] root
4168 /* 3294 */ // No operand predicates
4169 /* 3294 */ // MIs[0] mi.ptr
4170 /* 3294 */ // No operand predicates
4171 /* 3294 */ // Combiner Rule #34: extending_loads @ [mi[1]]
4172 /* 3294 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner10),
4173 /* 3297 */ // Label 197: @3297
4174 /* 3297 */ GIM_Try, /*On fail goto*//*Label 198*/ GIMT_Encode4(3308), // Rule ID 39 //
4175 /* 3302 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule36Enabled),
4176 /* 3305 */ // MIs[0] root
4177 /* 3305 */ // No operand predicates
4178 /* 3305 */ // MIs[0] mi.ptr
4179 /* 3305 */ // No operand predicates
4180 /* 3305 */ // Combiner Rule #36: combine_indexed_load @ [mi[1]]
4181 /* 3305 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner12),
4182 /* 3308 */ // Label 198: @3308
4183 /* 3308 */ GIM_Reject,
4184 /* 3309 */ // Label 25: @3309
4185 /* 3309 */ GIM_Try, /*On fail goto*//*Label 199*/ GIMT_Encode4(3320), // Rule ID 36 //
4186 /* 3314 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule34Enabled),
4187 /* 3317 */ // MIs[0] root
4188 /* 3317 */ // No operand predicates
4189 /* 3317 */ // MIs[0] mi.ptr
4190 /* 3317 */ // No operand predicates
4191 /* 3317 */ // Combiner Rule #34: extending_loads @ [mi[2]]
4192 /* 3317 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner10),
4193 /* 3320 */ // Label 199: @3320
4194 /* 3320 */ GIM_Try, /*On fail goto*//*Label 200*/ GIMT_Encode4(3331), // Rule ID 40 //
4195 /* 3325 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule36Enabled),
4196 /* 3328 */ // MIs[0] root
4197 /* 3328 */ // No operand predicates
4198 /* 3328 */ // MIs[0] mi.ptr
4199 /* 3328 */ // No operand predicates
4200 /* 3328 */ // Combiner Rule #36: combine_indexed_load @ [mi[2]]
4201 /* 3328 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner12),
4202 /* 3331 */ // Label 200: @3331
4203 /* 3331 */ GIM_Reject,
4204 /* 3332 */ // Label 26: @3332
4205 /* 3332 */ GIM_Try, /*On fail goto*//*Label 201*/ GIMT_Encode4(3355), // Rule ID 211 //
4206 /* 3337 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule129Enabled),
4207 /* 3340 */ // MIs[0] val
4208 /* 3340 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/0, // MIs[1]
4209 /* 3344 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
4210 /* 3348 */ // MIs[0] ptr
4211 /* 3348 */ // No operand predicates
4212 /* 3348 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner25),
4213 /* 3352 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4214 /* 3354 */ // Combiner Rule #129: erase_undef_store
4215 /* 3354 */ GIR_EraseRootFromParent_Done,
4216 /* 3355 */ // Label 201: @3355
4217 /* 3355 */ GIM_Try, /*On fail goto*//*Label 202*/ GIMT_Encode4(3366), // Rule ID 41 //
4218 /* 3360 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule37Enabled),
4219 /* 3363 */ // MIs[0] val
4220 /* 3363 */ // No operand predicates
4221 /* 3363 */ // MIs[0] ptr
4222 /* 3363 */ // No operand predicates
4223 /* 3363 */ // Combiner Rule #37: combine_indexed_store
4224 /* 3363 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner12),
4225 /* 3366 */ // Label 202: @3366
4226 /* 3366 */ GIM_Try, /*On fail goto*//*Label 203*/ GIMT_Encode4(3377), // Rule ID 179 //
4227 /* 3371 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule117Enabled),
4228 /* 3374 */ // MIs[0] src
4229 /* 3374 */ // No operand predicates
4230 /* 3374 */ // MIs[0] addr
4231 /* 3374 */ // No operand predicates
4232 /* 3374 */ // Combiner Rule #117: split_store_zero_128
4233 /* 3374 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner49),
4234 /* 3377 */ // Label 203: @3377
4235 /* 3377 */ GIM_Reject,
4236 /* 3378 */ // Label 27: @3378
4237 /* 3378 */ GIM_Try, /*On fail goto*//*Label 204*/ GIMT_Encode4(3408), // Rule ID 33 //
4238 /* 3383 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule33Enabled),
4239 /* 3386 */ // MIs[0] dst
4240 /* 3386 */ // No operand predicates
4241 /* 3386 */ // MIs[0] cmp
4242 /* 3386 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4243 /* 3390 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCMP),
4244 /* 3394 */ // MIs[1] p
4245 /* 3394 */ // No operand predicates
4246 /* 3394 */ // MIs[1] a
4247 /* 3394 */ // No operand predicates
4248 /* 3394 */ // MIs[1] b
4249 /* 3394 */ // No operand predicates
4250 /* 3394 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner0),
4251 /* 3398 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4252 /* 3400 */ // Combiner Rule #33: mutate_anyext_to_zext_fcmp
4253 /* 3400 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ZEXT),
4254 /* 3403 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
4255 /* 3405 */ GIR_RootToRootCopy, /*OpIdx*/1, // cmp
4256 /* 3407 */ GIR_EraseRootFromParent_Done,
4257 /* 3408 */ // Label 204: @3408
4258 /* 3408 */ GIM_Try, /*On fail goto*//*Label 205*/ GIMT_Encode4(3438), // Rule ID 32 //
4259 /* 3413 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule32Enabled),
4260 /* 3416 */ // MIs[0] dst
4261 /* 3416 */ // No operand predicates
4262 /* 3416 */ // MIs[0] cmp
4263 /* 3416 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4264 /* 3420 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ICMP),
4265 /* 3424 */ // MIs[1] p
4266 /* 3424 */ // No operand predicates
4267 /* 3424 */ // MIs[1] a
4268 /* 3424 */ // No operand predicates
4269 /* 3424 */ // MIs[1] b
4270 /* 3424 */ // No operand predicates
4271 /* 3424 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner0),
4272 /* 3428 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4273 /* 3430 */ // Combiner Rule #32: mutate_anyext_to_zext_icmp
4274 /* 3430 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ZEXT),
4275 /* 3433 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
4276 /* 3435 */ GIR_RootToRootCopy, /*OpIdx*/1, // cmp
4277 /* 3437 */ GIR_EraseRootFromParent_Done,
4278 /* 3438 */ // Label 205: @3438
4279 /* 3438 */ GIM_Try, /*On fail goto*//*Label 206*/ GIMT_Encode4(3459), // Rule ID 9 //
4280 /* 3443 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule9Enabled),
4281 /* 3446 */ // MIs[0] root
4282 /* 3446 */ // No operand predicates
4283 /* 3446 */ // MIs[0] second
4284 /* 3446 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4285 /* 3450 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ANYEXT),
4286 /* 3454 */ // MIs[1] src
4287 /* 3454 */ // No operand predicates
4288 /* 3454 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4289 /* 3456 */ // Combiner Rule #9: anyext_of_anyext
4290 /* 3456 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner3),
4291 /* 3459 */ // Label 206: @3459
4292 /* 3459 */ GIM_Try, /*On fail goto*//*Label 207*/ GIMT_Encode4(3480), // Rule ID 11 //
4293 /* 3464 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule11Enabled),
4294 /* 3467 */ // MIs[0] root
4295 /* 3467 */ // No operand predicates
4296 /* 3467 */ // MIs[0] second
4297 /* 3467 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4298 /* 3471 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SEXT),
4299 /* 3475 */ // MIs[1] src
4300 /* 3475 */ // No operand predicates
4301 /* 3475 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4302 /* 3477 */ // Combiner Rule #11: anyext_of_sext
4303 /* 3477 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner3),
4304 /* 3480 */ // Label 207: @3480
4305 /* 3480 */ GIM_Try, /*On fail goto*//*Label 208*/ GIMT_Encode4(3501), // Rule ID 10 //
4306 /* 3485 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule10Enabled),
4307 /* 3488 */ // MIs[0] root
4308 /* 3488 */ // No operand predicates
4309 /* 3488 */ // MIs[0] second
4310 /* 3488 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4311 /* 3492 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ZEXT),
4312 /* 3496 */ // MIs[1] src
4313 /* 3496 */ // No operand predicates
4314 /* 3496 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4315 /* 3498 */ // Combiner Rule #10: anyext_of_zext
4316 /* 3498 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner3),
4317 /* 3501 */ // Label 208: @3501
4318 /* 3501 */ GIM_Try, /*On fail goto*//*Label 209*/ GIMT_Encode4(3525), // Rule ID 197 //
4319 /* 3506 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule124Enabled),
4320 /* 3509 */ // MIs[0] dst
4321 /* 3509 */ // No operand predicates
4322 /* 3509 */ // MIs[0] __unary_undef_to_undef_match_0.x
4323 /* 3509 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4324 /* 3513 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
4325 /* 3517 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4326 /* 3519 */ // Combiner Rule #124: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[2]]
4327 /* 3519 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
4328 /* 3522 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
4329 /* 3524 */ GIR_EraseRootFromParent_Done,
4330 /* 3525 */ // Label 209: @3525
4331 /* 3525 */ GIM_Try, /*On fail goto*//*Label 210*/ GIMT_Encode4(3536), // Rule ID 126 //
4332 /* 3530 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule87Enabled),
4333 /* 3533 */ // MIs[0] dst
4334 /* 3533 */ // No operand predicates
4335 /* 3533 */ // MIs[0] d.src
4336 /* 3533 */ // No operand predicates
4337 /* 3533 */ // Combiner Rule #87: constant_fold_cast_op @ [d[2]]
4338 /* 3533 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner41),
4339 /* 3536 */ // Label 210: @3536
4340 /* 3536 */ GIM_Try, /*On fail goto*//*Label 211*/ GIMT_Encode4(3547), // Rule ID 156 //
4341 /* 3541 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule99Enabled),
4342 /* 3544 */ // MIs[0] dst
4343 /* 3544 */ // No operand predicates
4344 /* 3544 */ // MIs[0] src
4345 /* 3544 */ // No operand predicates
4346 /* 3544 */ // Combiner Rule #99: anyext_trunc_fold
4347 /* 3544 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner42),
4348 /* 3547 */ // Label 211: @3547
4349 /* 3547 */ GIM_Reject,
4350 /* 3548 */ // Label 28: @3548
4351 /* 3548 */ GIM_Try, /*On fail goto*//*Label 212*/ GIMT_Encode4(3584), // Rule ID 216 //
4352 /* 3553 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule134Enabled),
4353 /* 3556 */ // MIs[0] dst
4354 /* 3556 */ // No operand predicates
4355 /* 3556 */ // MIs[0] trunc_src
4356 /* 3556 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4357 /* 3560 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_OR),
4358 /* 3564 */ // MIs[1] src1
4359 /* 3564 */ // No operand predicates
4360 /* 3564 */ // MIs[1] src2
4361 /* 3564 */ // No operand predicates
4362 /* 3564 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner27),
4363 /* 3568 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4364 /* 3570 */ // Combiner Rule #134: trunc_or_to_addhn
4365 /* 3570 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(AArch64::G_ADDHN),
4366 /* 3573 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
4367 /* 3575 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // src1
4368 /* 3579 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // src2
4369 /* 3583 */ GIR_EraseRootFromParent_Done,
4370 /* 3584 */ // Label 212: @3584
4371 /* 3584 */ GIM_Try, /*On fail goto*//*Label 213*/ GIMT_Encode4(3616), // Rule ID 257 //
4372 /* 3589 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule175Enabled),
4373 /* 3592 */ // MIs[0] dst
4374 /* 3592 */ // No operand predicates
4375 /* 3592 */ // MIs[0] min
4376 /* 3592 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4377 /* 3596 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_UMIN),
4378 /* 3600 */ // MIs[1] x
4379 /* 3600 */ // No operand predicates
4380 /* 3600 */ // MIs[1] y
4381 /* 3600 */ // No operand predicates
4382 /* 3600 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner31),
4383 /* 3604 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4384 /* 3606 */ // Combiner Rule #175: trunc_usatu
4385 /* 3606 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_TRUNC_USAT_U),
4386 /* 3609 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
4387 /* 3611 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
4388 /* 3615 */ GIR_EraseRootFromParent_Done,
4389 /* 3616 */ // Label 213: @3616
4390 /* 3616 */ GIM_Try, /*On fail goto*//*Label 214*/ GIMT_Encode4(3640), // Rule ID 28 //
4391 /* 3621 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule28Enabled),
4392 /* 3624 */ // MIs[0] root
4393 /* 3624 */ // No operand predicates
4394 /* 3624 */ // MIs[0] bv
4395 /* 3624 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4396 /* 3628 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR),
4397 /* 3632 */ GIM_CheckNumOperandsGE, /*MI*/1, /*Expected*/2,
4398 /* 3635 */ // MIs[1] unused
4399 /* 3635 */ // No operand predicates
4400 /* 3635 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4401 /* 3637 */ // Combiner Rule #28: buildvector_of_truncate
4402 /* 3637 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner7),
4403 /* 3640 */ // Label 214: @3640
4404 /* 3640 */ GIM_Try, /*On fail goto*//*Label 215*/ GIMT_Encode4(3661), // Rule ID 4 //
4405 /* 3645 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule4Enabled),
4406 /* 3648 */ // MIs[0] root
4407 /* 3648 */ // No operand predicates
4408 /* 3648 */ // MIs[0] ext
4409 /* 3648 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4410 /* 3652 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ANYEXT),
4411 /* 3656 */ // MIs[1] src
4412 /* 3656 */ // No operand predicates
4413 /* 3656 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4414 /* 3658 */ // Combiner Rule #4: truncate_of_anyext
4415 /* 3658 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner2),
4416 /* 3661 */ // Label 215: @3661
4417 /* 3661 */ GIM_Try, /*On fail goto*//*Label 216*/ GIMT_Encode4(3682), // Rule ID 3 //
4418 /* 3666 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule3Enabled),
4419 /* 3669 */ // MIs[0] root
4420 /* 3669 */ // No operand predicates
4421 /* 3669 */ // MIs[0] ext
4422 /* 3669 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4423 /* 3673 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SEXT),
4424 /* 3677 */ // MIs[1] src
4425 /* 3677 */ // No operand predicates
4426 /* 3677 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4427 /* 3679 */ // Combiner Rule #3: truncate_of_sext
4428 /* 3679 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner2),
4429 /* 3682 */ // Label 216: @3682
4430 /* 3682 */ GIM_Try, /*On fail goto*//*Label 217*/ GIMT_Encode4(3703), // Rule ID 2 //
4431 /* 3687 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule2Enabled),
4432 /* 3690 */ // MIs[0] root
4433 /* 3690 */ // No operand predicates
4434 /* 3690 */ // MIs[0] ext
4435 /* 3690 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4436 /* 3694 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ZEXT),
4437 /* 3698 */ // MIs[1] src
4438 /* 3698 */ // No operand predicates
4439 /* 3698 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4440 /* 3700 */ // Combiner Rule #2: truncate_of_zext
4441 /* 3700 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner2),
4442 /* 3703 */ // Label 217: @3703
4443 /* 3703 */ GIM_Try, /*On fail goto*//*Label 218*/ GIMT_Encode4(3727), // Rule ID 195 //
4444 /* 3708 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule124Enabled),
4445 /* 3711 */ // MIs[0] dst
4446 /* 3711 */ // No operand predicates
4447 /* 3711 */ // MIs[0] __unary_undef_to_undef_match_0.x
4448 /* 3711 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4449 /* 3715 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
4450 /* 3719 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4451 /* 3721 */ // Combiner Rule #124: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[0]]
4452 /* 3721 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
4453 /* 3724 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
4454 /* 3726 */ GIR_EraseRootFromParent_Done,
4455 /* 3727 */ // Label 218: @3727
4456 /* 3727 */ GIM_Try, /*On fail goto*//*Label 219*/ GIMT_Encode4(3748), // Rule ID 29 //
4457 /* 3732 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule29Enabled),
4458 /* 3735 */ // MIs[0] root
4459 /* 3735 */ // No operand predicates
4460 /* 3735 */ // MIs[0] int
4461 /* 3735 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4462 /* 3739 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
4463 /* 3743 */ // MIs[1] imm
4464 /* 3743 */ // No operand predicates
4465 /* 3743 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4466 /* 3745 */ // Combiner Rule #29: integer_of_truncate
4467 /* 3745 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner8),
4468 /* 3748 */ // Label 219: @3748
4469 /* 3748 */ GIM_Try, /*On fail goto*//*Label 220*/ GIMT_Encode4(3759), // Rule ID 164 //
4470 /* 3753 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule106Enabled),
4471 /* 3756 */ // MIs[0] dst
4472 /* 3756 */ // No operand predicates
4473 /* 3756 */ // MIs[0] src
4474 /* 3756 */ // No operand predicates
4475 /* 3756 */ // Combiner Rule #106: trunc_buildvector_fold
4476 /* 3756 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner44),
4477 /* 3759 */ // Label 220: @3759
4478 /* 3759 */ GIM_Try, /*On fail goto*//*Label 221*/ GIMT_Encode4(3770), // Rule ID 165 //
4479 /* 3764 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule107Enabled),
4480 /* 3767 */ // MIs[0] dst
4481 /* 3767 */ // No operand predicates
4482 /* 3767 */ // MIs[0] src
4483 /* 3767 */ // No operand predicates
4484 /* 3767 */ // Combiner Rule #107: trunc_lshr_buildvector_fold
4485 /* 3767 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner45),
4486 /* 3770 */ // Label 221: @3770
4487 /* 3770 */ GIM_Try, /*On fail goto*//*Label 222*/ GIMT_Encode4(3781), // Rule ID 255 //
4488 /* 3775 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule173Enabled),
4489 /* 3778 */ // MIs[0] dst
4490 /* 3778 */ // No operand predicates
4491 /* 3778 */ // MIs[0] src
4492 /* 3778 */ // No operand predicates
4493 /* 3778 */ // Combiner Rule #173: trunc_ssats
4494 /* 3778 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner62),
4495 /* 3781 */ // Label 222: @3781
4496 /* 3781 */ GIM_Try, /*On fail goto*//*Label 223*/ GIMT_Encode4(3792), // Rule ID 256 //
4497 /* 3786 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule174Enabled),
4498 /* 3789 */ // MIs[0] dst
4499 /* 3789 */ // No operand predicates
4500 /* 3789 */ // MIs[0] src
4501 /* 3789 */ // No operand predicates
4502 /* 3789 */ // Combiner Rule #174: trunc_ssatu
4503 /* 3789 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner63),
4504 /* 3792 */ // Label 223: @3792
4505 /* 3792 */ GIM_Reject,
4506 /* 3793 */ // Label 29: @3793
4507 /* 3793 */ GIM_Try, /*On fail goto*//*Label 224*/ GIMT_Encode4(3825), // Rule ID 258 //
4508 /* 3798 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule176Enabled),
4509 /* 3801 */ // MIs[0] dst
4510 /* 3801 */ // No operand predicates
4511 /* 3801 */ // MIs[0] src
4512 /* 3801 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4513 /* 3805 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FPTOUI),
4514 /* 3809 */ // MIs[1] x
4515 /* 3809 */ // No operand predicates
4516 /* 3809 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner32),
4517 /* 3813 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4518 /* 3815 */ // Combiner Rule #176: truncusatu_to_fptouisat
4519 /* 3815 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FPTOUI_SAT),
4520 /* 3818 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
4521 /* 3820 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
4522 /* 3824 */ GIR_EraseRootFromParent_Done,
4523 /* 3825 */ // Label 224: @3825
4524 /* 3825 */ GIM_Reject,
4525 /* 3826 */ // Label 30: @3826
4526 /* 3826 */ GIM_Try, /*On fail goto*//*Label 225*/ GIMT_Encode4(3847), // Rule ID 8 //
4527 /* 3831 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule8Enabled),
4528 /* 3834 */ // MIs[0] root
4529 /* 3834 */ // No operand predicates
4530 /* 3834 */ // MIs[0] second
4531 /* 3834 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4532 /* 3838 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ANYEXT),
4533 /* 3842 */ // MIs[1] src
4534 /* 3842 */ // No operand predicates
4535 /* 3842 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4536 /* 3844 */ // Combiner Rule #8: sext_of_anyext
4537 /* 3844 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner3),
4538 /* 3847 */ // Label 225: @3847
4539 /* 3847 */ GIM_Try, /*On fail goto*//*Label 226*/ GIMT_Encode4(3868), // Rule ID 7 //
4540 /* 3852 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule7Enabled),
4541 /* 3855 */ // MIs[0] root
4542 /* 3855 */ // No operand predicates
4543 /* 3855 */ // MIs[0] second
4544 /* 3855 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4545 /* 3859 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SEXT),
4546 /* 3863 */ // MIs[1] src
4547 /* 3863 */ // No operand predicates
4548 /* 3863 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4549 /* 3865 */ // Combiner Rule #7: sext_of_sext
4550 /* 3865 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner3),
4551 /* 3868 */ // Label 226: @3868
4552 /* 3868 */ GIM_Try, /*On fail goto*//*Label 227*/ GIMT_Encode4(3879), // Rule ID 125 //
4553 /* 3873 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule87Enabled),
4554 /* 3876 */ // MIs[0] dst
4555 /* 3876 */ // No operand predicates
4556 /* 3876 */ // MIs[0] d.src
4557 /* 3876 */ // No operand predicates
4558 /* 3876 */ // Combiner Rule #87: constant_fold_cast_op @ [d[1]]
4559 /* 3876 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner41),
4560 /* 3879 */ // Label 227: @3879
4561 /* 3879 */ GIM_Reject,
4562 /* 3880 */ // Label 31: @3880
4563 /* 3880 */ GIM_Try, /*On fail goto*//*Label 228*/ GIMT_Encode4(3912), // Rule ID 54 //
4564 /* 3885 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule48Enabled),
4565 /* 3888 */ // MIs[0] dst
4566 /* 3888 */ // No operand predicates
4567 /* 3888 */ // MIs[0] tmp
4568 /* 3888 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4569 /* 3892 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ANYEXT),
4570 /* 3896 */ // MIs[1] src
4571 /* 3896 */ // No operand predicates
4572 /* 3896 */ // MIs[0] amt
4573 /* 3896 */ // No operand predicates
4574 /* 3896 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner4),
4575 /* 3900 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4576 /* 3902 */ // Combiner Rule #48: redundant_aext_sext_inreg
4577 /* 3902 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SEXT),
4578 /* 3905 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
4579 /* 3907 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // src
4580 /* 3911 */ GIR_EraseRootFromParent_Done,
4581 /* 3912 */ // Label 228: @3912
4582 /* 3912 */ GIM_Try, /*On fail goto*//*Label 229*/ GIMT_Encode4(3944), // Rule ID 53 //
4583 /* 3917 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule47Enabled),
4584 /* 3920 */ // MIs[0] dst
4585 /* 3920 */ // No operand predicates
4586 /* 3920 */ // MIs[0] tmp
4587 /* 3920 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4588 /* 3924 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ZEXT),
4589 /* 3928 */ // MIs[1] src
4590 /* 3928 */ // No operand predicates
4591 /* 3928 */ // MIs[0] amt
4592 /* 3928 */ // No operand predicates
4593 /* 3928 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner4),
4594 /* 3932 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4595 /* 3934 */ // Combiner Rule #47: redundant_zext_sext_inreg
4596 /* 3934 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SEXT),
4597 /* 3937 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
4598 /* 3939 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // src
4599 /* 3943 */ GIR_EraseRootFromParent_Done,
4600 /* 3944 */ // Label 229: @3944
4601 /* 3944 */ GIM_Try, /*On fail goto*//*Label 230*/ GIMT_Encode4(3967), // Rule ID 42 //
4602 /* 3949 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule38Enabled),
4603 /* 3952 */ // MIs[0] dst
4604 /* 3952 */ // No operand predicates
4605 /* 3952 */ // MIs[0] src
4606 /* 3952 */ // No operand predicates
4607 /* 3952 */ // MIs[0] sz
4608 /* 3952 */ // No operand predicates
4609 /* 3952 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner1),
4610 /* 3956 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
4611 /* 3961 */ // Combiner Rule #38: sext_trunc_sextload
4612 /* 3961 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
4613 /* 3966 */ GIR_EraseRootFromParent_Done,
4614 /* 3967 */ // Label 230: @3967
4615 /* 3967 */ GIM_Try, /*On fail goto*//*Label 231*/ GIMT_Encode4(3990), // Rule ID 52 //
4616 /* 3972 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule46Enabled),
4617 /* 3975 */ // MIs[0] dst
4618 /* 3975 */ // No operand predicates
4619 /* 3975 */ // MIs[0] src
4620 /* 3975 */ // No operand predicates
4621 /* 3975 */ // MIs[0] sz
4622 /* 3975 */ // No operand predicates
4623 /* 3975 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner3),
4624 /* 3979 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
4625 /* 3984 */ // Combiner Rule #46: redundant_sext_inreg
4626 /* 3984 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
4627 /* 3989 */ GIR_EraseRootFromParent_Done,
4628 /* 3990 */ // Label 231: @3990
4629 /* 3990 */ GIM_Try, /*On fail goto*//*Label 232*/ GIMT_Encode4(4011), // Rule ID 12 //
4630 /* 3995 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule12Enabled),
4631 /* 3998 */ // MIs[0] dst
4632 /* 3998 */ // No operand predicates
4633 /* 3998 */ // MIs[0] x
4634 /* 3998 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4635 /* 4002 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SEXT_INREG),
4636 /* 4006 */ // MIs[1] src
4637 /* 4006 */ // No operand predicates
4638 /* 4006 */ // MIs[1] a
4639 /* 4006 */ // No operand predicates
4640 /* 4006 */ // MIs[0] b
4641 /* 4006 */ // No operand predicates
4642 /* 4006 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4643 /* 4008 */ // Combiner Rule #12: sext_inreg_of_sext_inreg
4644 /* 4008 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner4),
4645 /* 4011 */ // Label 232: @4011
4646 /* 4011 */ GIM_Try, /*On fail goto*//*Label 233*/ GIMT_Encode4(4051), // Rule ID 55 //
4647 /* 4016 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule49Enabled),
4648 /* 4019 */ // MIs[0] dst
4649 /* 4019 */ // No operand predicates
4650 /* 4019 */ // MIs[0] tmp4
4651 /* 4019 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4652 /* 4023 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ANYEXT),
4653 /* 4027 */ // MIs[1] tmp2
4654 /* 4027 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
4655 /* 4031 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_UNMERGE_VALUES),
4656 /* 4035 */ GIM_CheckNumOperands, /*MI*/2, /*Expected*/3,
4657 /* 4038 */ // MIs[2] tmp3
4658 /* 4038 */ // No operand predicates
4659 /* 4038 */ // MIs[2] tmp1
4660 /* 4038 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/2, /*OpIdx*/2, // MIs[3]
4661 /* 4042 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_ANYEXT),
4662 /* 4046 */ // MIs[3] src
4663 /* 4046 */ // No operand predicates
4664 /* 4046 */ // MIs[0] amt
4665 /* 4046 */ // No operand predicates
4666 /* 4046 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
4667 /* 4048 */ // Combiner Rule #49: redundant_aext_unmerge_sext_inreg
4668 /* 4048 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner19),
4669 /* 4051 */ // Label 233: @4051
4670 /* 4051 */ GIM_Try, /*On fail goto*//*Label 234*/ GIMT_Encode4(4091), // Rule ID 56 //
4671 /* 4056 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule50Enabled),
4672 /* 4059 */ // MIs[0] dst
4673 /* 4059 */ // No operand predicates
4674 /* 4059 */ // MIs[0] tmp4
4675 /* 4059 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4676 /* 4063 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ZEXT),
4677 /* 4067 */ // MIs[1] tmp2
4678 /* 4067 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
4679 /* 4071 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_UNMERGE_VALUES),
4680 /* 4075 */ GIM_CheckNumOperands, /*MI*/2, /*Expected*/3,
4681 /* 4078 */ // MIs[2] tmp3
4682 /* 4078 */ // No operand predicates
4683 /* 4078 */ // MIs[2] tmp1
4684 /* 4078 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/2, /*OpIdx*/2, // MIs[3]
4685 /* 4082 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_ZEXT),
4686 /* 4086 */ // MIs[3] src
4687 /* 4086 */ // No operand predicates
4688 /* 4086 */ // MIs[0] amt
4689 /* 4086 */ // No operand predicates
4690 /* 4086 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
4691 /* 4088 */ // Combiner Rule #50: redundant_zext_unmerge_sext_inreg
4692 /* 4088 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner19),
4693 /* 4091 */ // Label 234: @4091
4694 /* 4091 */ GIM_Try, /*On fail goto*//*Label 235*/ GIMT_Encode4(4102), // Rule ID 57 //
4695 /* 4096 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule51Enabled),
4696 /* 4099 */ // MIs[0] dst
4697 /* 4099 */ // No operand predicates
4698 /* 4099 */ // MIs[0] src
4699 /* 4099 */ // No operand predicates
4700 /* 4099 */ // MIs[0] sz
4701 /* 4099 */ // No operand predicates
4702 /* 4099 */ // Combiner Rule #51: bitfield_extract_from_sext_inreg
4703 /* 4099 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner20),
4704 /* 4102 */ // Label 235: @4102
4705 /* 4102 */ GIM_Reject,
4706 /* 4103 */ // Label 32: @4103
4707 /* 4103 */ GIM_Try, /*On fail goto*//*Label 236*/ GIMT_Encode4(4124), // Rule ID 6 //
4708 /* 4108 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule6Enabled),
4709 /* 4111 */ // MIs[0] root
4710 /* 4111 */ // No operand predicates
4711 /* 4111 */ // MIs[0] second
4712 /* 4111 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4713 /* 4115 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ANYEXT),
4714 /* 4119 */ // MIs[1] src
4715 /* 4119 */ // No operand predicates
4716 /* 4119 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4717 /* 4121 */ // Combiner Rule #6: zext_of_anyext
4718 /* 4121 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner3),
4719 /* 4124 */ // Label 236: @4124
4720 /* 4124 */ GIM_Try, /*On fail goto*//*Label 237*/ GIMT_Encode4(4145), // Rule ID 5 //
4721 /* 4129 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule5Enabled),
4722 /* 4132 */ // MIs[0] root
4723 /* 4132 */ // No operand predicates
4724 /* 4132 */ // MIs[0] second
4725 /* 4132 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4726 /* 4136 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ZEXT),
4727 /* 4140 */ // MIs[1] src
4728 /* 4140 */ // No operand predicates
4729 /* 4140 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4730 /* 4142 */ // Combiner Rule #5: zext_of_zext
4731 /* 4142 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner3),
4732 /* 4145 */ // Label 237: @4145
4733 /* 4145 */ GIM_Try, /*On fail goto*//*Label 238*/ GIMT_Encode4(4156), // Rule ID 124 //
4734 /* 4150 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule87Enabled),
4735 /* 4153 */ // MIs[0] dst
4736 /* 4153 */ // No operand predicates
4737 /* 4153 */ // MIs[0] d.src
4738 /* 4153 */ // No operand predicates
4739 /* 4153 */ // Combiner Rule #87: constant_fold_cast_op @ [d[0]]
4740 /* 4153 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner41),
4741 /* 4156 */ // Label 238: @4156
4742 /* 4156 */ GIM_Reject,
4743 /* 4157 */ // Label 33: @4157
4744 /* 4157 */ GIM_Try, /*On fail goto*//*Label 239*/ GIMT_Encode4(4168), // Rule ID 265 //
4745 /* 4162 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule181Enabled),
4746 /* 4165 */ // Combiner Rule #181: simplify_demanded_bits; wip_match_opcode 'G_SHL'
4747 /* 4165 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner66),
4748 /* 4168 */ // Label 239: @4168
4749 /* 4168 */ GIM_Try, /*On fail goto*//*Label 240*/ GIMT_Encode4(4191), // Rule ID 143 //
4750 /* 4173 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
4751 /* 4176 */ // MIs[0] dst
4752 /* 4176 */ // No operand predicates
4753 /* 4176 */ // MIs[0] zero
4754 /* 4176 */ // No operand predicates
4755 /* 4176 */ // MIs[0] rhs
4756 /* 4176 */ // No operand predicates
4757 /* 4176 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner13),
4758 /* 4180 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
4759 /* 4185 */ // Combiner Rule #93: binop_left_to_zero @ [__binop_left_to_zero_match_0[0]]
4760 /* 4185 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
4761 /* 4190 */ GIR_EraseRootFromParent_Done,
4762 /* 4191 */ // Label 240: @4191
4763 /* 4191 */ GIM_Try, /*On fail goto*//*Label 241*/ GIMT_Encode4(4212), // Rule ID 188 //
4764 /* 4196 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule121Enabled),
4765 /* 4199 */ // MIs[0] dst
4766 /* 4199 */ // No operand predicates
4767 /* 4199 */ // MIs[0] __binop_left_undef_to_zero_match_0.x
4768 /* 4199 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4769 /* 4203 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
4770 /* 4207 */ // MIs[0] __binop_left_undef_to_zero_match_0.y
4771 /* 4207 */ // No operand predicates
4772 /* 4207 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4773 /* 4209 */ // Combiner Rule #121: binop_left_undef_to_zero @ [__binop_left_undef_to_zero_match_0[0]]
4774 /* 4209 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner50),
4775 /* 4212 */ // Label 241: @4212
4776 /* 4212 */ GIM_Try, /*On fail goto*//*Label 242*/ GIMT_Encode4(4236), // Rule ID 191 //
4777 /* 4217 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule122Enabled),
4778 /* 4220 */ // MIs[0] dst
4779 /* 4220 */ // No operand predicates
4780 /* 4220 */ // MIs[0] __binop_right_undef_to_undef_match_0.x
4781 /* 4220 */ // No operand predicates
4782 /* 4220 */ // MIs[0] __binop_right_undef_to_undef_match_0.y
4783 /* 4220 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
4784 /* 4224 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
4785 /* 4228 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4786 /* 4230 */ // Combiner Rule #122: binop_right_undef_to_undef @ [__binop_right_undef_to_undef_match_0[0]]
4787 /* 4230 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
4788 /* 4233 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
4789 /* 4235 */ GIR_EraseRootFromParent_Done,
4790 /* 4236 */ // Label 242: @4236
4791 /* 4236 */ GIM_Try, /*On fail goto*//*Label 243*/ GIMT_Encode4(4259), // Rule ID 133 //
4792 /* 4241 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled),
4793 /* 4244 */ // MIs[0] dst
4794 /* 4244 */ // No operand predicates
4795 /* 4244 */ // MIs[0] lhs
4796 /* 4244 */ // No operand predicates
4797 /* 4244 */ // MIs[0] Operand 2
4798 /* 4244 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
4799 /* 4248 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
4800 /* 4253 */ // Combiner Rule #90: right_identity_zero @ [__right_identity_zero_match_0[4]]
4801 /* 4253 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
4802 /* 4258 */ GIR_EraseRootFromParent_Done,
4803 /* 4259 */ // Label 243: @4259
4804 /* 4259 */ GIM_Try, /*On fail goto*//*Label 244*/ GIMT_Encode4(4270), // Rule ID 101 //
4805 /* 4264 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule85Enabled),
4806 /* 4267 */ // MIs[0] d
4807 /* 4267 */ // No operand predicates
4808 /* 4267 */ // MIs[0] mi.src0
4809 /* 4267 */ // No operand predicates
4810 /* 4267 */ // MIs[0] mi.src1
4811 /* 4267 */ // No operand predicates
4812 /* 4267 */ // Combiner Rule #85: constant_fold_binop @ [mi[7]]
4813 /* 4267 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner39),
4814 /* 4270 */ // Label 244: @4270
4815 /* 4270 */ GIM_Try, /*On fail goto*//*Label 245*/ GIMT_Encode4(4281), // Rule ID 173 //
4816 /* 4275 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule115Enabled),
4817 /* 4278 */ // MIs[0] d
4818 /* 4278 */ // No operand predicates
4819 /* 4278 */ // MIs[0] mi.base
4820 /* 4278 */ // No operand predicates
4821 /* 4278 */ // MIs[0] mi.amt
4822 /* 4278 */ // No operand predicates
4823 /* 4278 */ // Combiner Rule #115: shift_immed_chain @ [mi[0]]
4824 /* 4278 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner47),
4825 /* 4281 */ // Label 245: @4281
4826 /* 4281 */ GIM_Reject,
4827 /* 4282 */ // Label 34: @4282
4828 /* 4282 */ GIM_Try, /*On fail goto*//*Label 246*/ GIMT_Encode4(4293), // Rule ID 266 //
4829 /* 4287 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule181Enabled),
4830 /* 4290 */ // Combiner Rule #181: simplify_demanded_bits; wip_match_opcode 'G_LSHR'
4831 /* 4290 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner66),
4832 /* 4293 */ // Label 246: @4293
4833 /* 4293 */ GIM_Try, /*On fail goto*//*Label 247*/ GIMT_Encode4(4358), // Rule ID 262 //
4834 /* 4298 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule180Enabled),
4835 /* 4301 */ // MIs[0] dst
4836 /* 4301 */ // No operand predicates
4837 /* 4301 */ // MIs[0] src
4838 /* 4301 */ // No operand predicates
4839 /* 4301 */ // MIs[0] amt
4840 /* 4301 */ GIM_RecordRegType, /*MI*/0, /*Op*/2, /*TempTypeIdx*/255,
4841 /* 4305 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner33),
4842 /* 4309 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
4843 /* 4312 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(0),
4844 /* 4322 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
4845 /* 4325 */ // Combiner Rule #180: vlshr_to_ushl
4846 /* 4325 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
4847 /* 4328 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
4848 /* 4333 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/1,
4849 /* 4336 */ GIR_RootToRootCopy, /*OpIdx*/2, // amt
4850 /* 4338 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_INTRINSIC),
4851 /* 4342 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
4852 /* 4346 */ GIR_AddIntrinsicID, /*MI*/1, GIMT_Encode2(Intrinsic::aarch64_neon_ushl),
4853 /* 4350 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/1, // src
4854 /* 4354 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
4855 /* 4357 */ GIR_EraseRootFromParent_Done,
4856 /* 4358 */ // Label 247: @4358
4857 /* 4358 */ GIM_Try, /*On fail goto*//*Label 248*/ GIMT_Encode4(4381), // Rule ID 144 //
4858 /* 4363 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
4859 /* 4366 */ // MIs[0] dst
4860 /* 4366 */ // No operand predicates
4861 /* 4366 */ // MIs[0] zero
4862 /* 4366 */ // No operand predicates
4863 /* 4366 */ // MIs[0] rhs
4864 /* 4366 */ // No operand predicates
4865 /* 4366 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner13),
4866 /* 4370 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
4867 /* 4375 */ // Combiner Rule #93: binop_left_to_zero @ [__binop_left_to_zero_match_0[1]]
4868 /* 4375 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
4869 /* 4380 */ GIR_EraseRootFromParent_Done,
4870 /* 4381 */ // Label 248: @4381
4871 /* 4381 */ GIM_Try, /*On fail goto*//*Label 249*/ GIMT_Encode4(4410), // Rule ID 259 //
4872 /* 4386 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule177Enabled),
4873 /* 4389 */ // MIs[0] dst
4874 /* 4389 */ // No operand predicates
4875 /* 4389 */ // MIs[0] d2
4876 /* 4389 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4877 /* 4393 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_TRUNC),
4878 /* 4397 */ // MIs[1] d1
4879 /* 4397 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
4880 /* 4401 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_LSHR),
4881 /* 4405 */ // MIs[2] x
4882 /* 4405 */ // No operand predicates
4883 /* 4405 */ // MIs[2] y
4884 /* 4405 */ // No operand predicates
4885 /* 4405 */ // MIs[0] z
4886 /* 4405 */ // No operand predicates
4887 /* 4405 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
4888 /* 4407 */ // Combiner Rule #177: lshr_of_trunc_of_lshr
4889 /* 4407 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner64),
4890 /* 4410 */ // Label 249: @4410
4891 /* 4410 */ GIM_Try, /*On fail goto*//*Label 250*/ GIMT_Encode4(4434), // Rule ID 193 //
4892 /* 4415 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule122Enabled),
4893 /* 4418 */ // MIs[0] dst
4894 /* 4418 */ // No operand predicates
4895 /* 4418 */ // MIs[0] __binop_right_undef_to_undef_match_0.x
4896 /* 4418 */ // No operand predicates
4897 /* 4418 */ // MIs[0] __binop_right_undef_to_undef_match_0.y
4898 /* 4418 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
4899 /* 4422 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
4900 /* 4426 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4901 /* 4428 */ // Combiner Rule #122: binop_right_undef_to_undef @ [__binop_right_undef_to_undef_match_0[2]]
4902 /* 4428 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
4903 /* 4431 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
4904 /* 4433 */ GIR_EraseRootFromParent_Done,
4905 /* 4434 */ // Label 250: @4434
4906 /* 4434 */ GIM_Try, /*On fail goto*//*Label 251*/ GIMT_Encode4(4457), // Rule ID 135 //
4907 /* 4439 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled),
4908 /* 4442 */ // MIs[0] dst
4909 /* 4442 */ // No operand predicates
4910 /* 4442 */ // MIs[0] lhs
4911 /* 4442 */ // No operand predicates
4912 /* 4442 */ // MIs[0] Operand 2
4913 /* 4442 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
4914 /* 4446 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
4915 /* 4451 */ // Combiner Rule #90: right_identity_zero @ [__right_identity_zero_match_0[6]]
4916 /* 4451 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
4917 /* 4456 */ GIR_EraseRootFromParent_Done,
4918 /* 4457 */ // Label 251: @4457
4919 /* 4457 */ GIM_Try, /*On fail goto*//*Label 252*/ GIMT_Encode4(4468), // Rule ID 60 //
4920 /* 4462 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule53Enabled),
4921 /* 4465 */ // MIs[0] dst
4922 /* 4465 */ // No operand predicates
4923 /* 4465 */ // MIs[0] root.src
4924 /* 4465 */ // No operand predicates
4925 /* 4465 */ // MIs[0] root.amt
4926 /* 4465 */ // No operand predicates
4927 /* 4465 */ // Combiner Rule #53: bitfield_extract_from_shr @ [root[1]]
4928 /* 4465 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner22),
4929 /* 4468 */ // Label 252: @4468
4930 /* 4468 */ GIM_Try, /*On fail goto*//*Label 253*/ GIMT_Encode4(4479), // Rule ID 62 //
4931 /* 4473 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule54Enabled),
4932 /* 4476 */ // MIs[0] dst
4933 /* 4476 */ // No operand predicates
4934 /* 4476 */ // MIs[0] root.src
4935 /* 4476 */ // No operand predicates
4936 /* 4476 */ // MIs[0] root.amt
4937 /* 4476 */ // No operand predicates
4938 /* 4476 */ // Combiner Rule #54: bitfield_extract_from_shr_and @ [root[1]]
4939 /* 4476 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner23),
4940 /* 4479 */ // Label 253: @4479
4941 /* 4479 */ GIM_Try, /*On fail goto*//*Label 254*/ GIMT_Encode4(4490), // Rule ID 98 //
4942 /* 4484 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule85Enabled),
4943 /* 4487 */ // MIs[0] d
4944 /* 4487 */ // No operand predicates
4945 /* 4487 */ // MIs[0] mi.src0
4946 /* 4487 */ // No operand predicates
4947 /* 4487 */ // MIs[0] mi.src1
4948 /* 4487 */ // No operand predicates
4949 /* 4487 */ // Combiner Rule #85: constant_fold_binop @ [mi[4]]
4950 /* 4487 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner39),
4951 /* 4490 */ // Label 254: @4490
4952 /* 4490 */ GIM_Try, /*On fail goto*//*Label 255*/ GIMT_Encode4(4501), // Rule ID 175 //
4953 /* 4495 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule115Enabled),
4954 /* 4498 */ // MIs[0] d
4955 /* 4498 */ // No operand predicates
4956 /* 4498 */ // MIs[0] mi.base
4957 /* 4498 */ // No operand predicates
4958 /* 4498 */ // MIs[0] mi.amt
4959 /* 4498 */ // No operand predicates
4960 /* 4498 */ // Combiner Rule #115: shift_immed_chain @ [mi[2]]
4961 /* 4498 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner47),
4962 /* 4501 */ // Label 255: @4501
4963 /* 4501 */ GIM_Reject,
4964 /* 4502 */ // Label 35: @4502
4965 /* 4502 */ GIM_Try, /*On fail goto*//*Label 256*/ GIMT_Encode4(4513), // Rule ID 267 //
4966 /* 4507 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule181Enabled),
4967 /* 4510 */ // Combiner Rule #181: simplify_demanded_bits; wip_match_opcode 'G_ASHR'
4968 /* 4510 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner66),
4969 /* 4513 */ // Label 256: @4513
4970 /* 4513 */ GIM_Try, /*On fail goto*//*Label 257*/ GIMT_Encode4(4578), // Rule ID 261 //
4971 /* 4518 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule179Enabled),
4972 /* 4521 */ // MIs[0] dst
4973 /* 4521 */ // No operand predicates
4974 /* 4521 */ // MIs[0] src
4975 /* 4521 */ // No operand predicates
4976 /* 4521 */ // MIs[0] amt
4977 /* 4521 */ GIM_RecordRegType, /*MI*/0, /*Op*/2, /*TempTypeIdx*/255,
4978 /* 4525 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner33),
4979 /* 4529 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
4980 /* 4532 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(0),
4981 /* 4542 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
4982 /* 4545 */ // Combiner Rule #179: vashr_to_sshl
4983 /* 4545 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
4984 /* 4548 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
4985 /* 4553 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/1,
4986 /* 4556 */ GIR_RootToRootCopy, /*OpIdx*/2, // amt
4987 /* 4558 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_INTRINSIC),
4988 /* 4562 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
4989 /* 4566 */ GIR_AddIntrinsicID, /*MI*/1, GIMT_Encode2(Intrinsic::aarch64_neon_sshl),
4990 /* 4570 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/1, // src
4991 /* 4574 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
4992 /* 4577 */ GIR_EraseRootFromParent_Done,
4993 /* 4578 */ // Label 257: @4578
4994 /* 4578 */ GIM_Try, /*On fail goto*//*Label 258*/ GIMT_Encode4(4601), // Rule ID 145 //
4995 /* 4583 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
4996 /* 4586 */ // MIs[0] dst
4997 /* 4586 */ // No operand predicates
4998 /* 4586 */ // MIs[0] zero
4999 /* 4586 */ // No operand predicates
5000 /* 4586 */ // MIs[0] rhs
5001 /* 4586 */ // No operand predicates
5002 /* 4586 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner13),
5003 /* 4590 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5004 /* 4595 */ // Combiner Rule #93: binop_left_to_zero @ [__binop_left_to_zero_match_0[2]]
5005 /* 4595 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5006 /* 4600 */ GIR_EraseRootFromParent_Done,
5007 /* 4601 */ // Label 258: @4601
5008 /* 4601 */ GIM_Try, /*On fail goto*//*Label 259*/ GIMT_Encode4(4625), // Rule ID 192 //
5009 /* 4606 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule122Enabled),
5010 /* 4609 */ // MIs[0] dst
5011 /* 4609 */ // No operand predicates
5012 /* 4609 */ // MIs[0] __binop_right_undef_to_undef_match_0.x
5013 /* 4609 */ // No operand predicates
5014 /* 4609 */ // MIs[0] __binop_right_undef_to_undef_match_0.y
5015 /* 4609 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5016 /* 4613 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
5017 /* 4617 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5018 /* 4619 */ // Combiner Rule #122: binop_right_undef_to_undef @ [__binop_right_undef_to_undef_match_0[1]]
5019 /* 4619 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
5020 /* 4622 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
5021 /* 4624 */ GIR_EraseRootFromParent_Done,
5022 /* 4625 */ // Label 259: @4625
5023 /* 4625 */ GIM_Try, /*On fail goto*//*Label 260*/ GIMT_Encode4(4648), // Rule ID 134 //
5024 /* 4630 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled),
5025 /* 4633 */ // MIs[0] dst
5026 /* 4633 */ // No operand predicates
5027 /* 4633 */ // MIs[0] lhs
5028 /* 4633 */ // No operand predicates
5029 /* 4633 */ // MIs[0] Operand 2
5030 /* 4633 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
5031 /* 4637 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5032 /* 4642 */ // Combiner Rule #90: right_identity_zero @ [__right_identity_zero_match_0[5]]
5033 /* 4642 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5034 /* 4647 */ GIR_EraseRootFromParent_Done,
5035 /* 4648 */ // Label 260: @4648
5036 /* 4648 */ GIM_Try, /*On fail goto*//*Label 261*/ GIMT_Encode4(4659), // Rule ID 59 //
5037 /* 4653 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule53Enabled),
5038 /* 4656 */ // MIs[0] dst
5039 /* 4656 */ // No operand predicates
5040 /* 4656 */ // MIs[0] root.src
5041 /* 4656 */ // No operand predicates
5042 /* 4656 */ // MIs[0] root.amt
5043 /* 4656 */ // No operand predicates
5044 /* 4656 */ // Combiner Rule #53: bitfield_extract_from_shr @ [root[0]]
5045 /* 4656 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner22),
5046 /* 4659 */ // Label 261: @4659
5047 /* 4659 */ GIM_Try, /*On fail goto*//*Label 262*/ GIMT_Encode4(4670), // Rule ID 61 //
5048 /* 4664 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule54Enabled),
5049 /* 4667 */ // MIs[0] dst
5050 /* 4667 */ // No operand predicates
5051 /* 4667 */ // MIs[0] root.src
5052 /* 4667 */ // No operand predicates
5053 /* 4667 */ // MIs[0] root.amt
5054 /* 4667 */ // No operand predicates
5055 /* 4667 */ // Combiner Rule #54: bitfield_extract_from_shr_and @ [root[0]]
5056 /* 4667 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner23),
5057 /* 4670 */ // Label 262: @4670
5058 /* 4670 */ GIM_Try, /*On fail goto*//*Label 263*/ GIMT_Encode4(4681), // Rule ID 97 //
5059 /* 4675 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule85Enabled),
5060 /* 4678 */ // MIs[0] d
5061 /* 4678 */ // No operand predicates
5062 /* 4678 */ // MIs[0] mi.src0
5063 /* 4678 */ // No operand predicates
5064 /* 4678 */ // MIs[0] mi.src1
5065 /* 4678 */ // No operand predicates
5066 /* 4678 */ // Combiner Rule #85: constant_fold_binop @ [mi[3]]
5067 /* 4678 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner39),
5068 /* 4681 */ // Label 263: @4681
5069 /* 4681 */ GIM_Try, /*On fail goto*//*Label 264*/ GIMT_Encode4(4692), // Rule ID 174 //
5070 /* 4686 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule115Enabled),
5071 /* 4689 */ // MIs[0] d
5072 /* 4689 */ // No operand predicates
5073 /* 4689 */ // MIs[0] mi.base
5074 /* 4689 */ // No operand predicates
5075 /* 4689 */ // MIs[0] mi.amt
5076 /* 4689 */ // No operand predicates
5077 /* 4689 */ // Combiner Rule #115: shift_immed_chain @ [mi[1]]
5078 /* 4689 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner47),
5079 /* 4692 */ // Label 264: @4692
5080 /* 4692 */ GIM_Reject,
5081 /* 4693 */ // Label 36: @4693
5082 /* 4693 */ GIM_Try, /*On fail goto*//*Label 265*/ GIMT_Encode4(4716), // Rule ID 138 //
5083 /* 4698 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled),
5084 /* 4701 */ // MIs[0] dst
5085 /* 4701 */ // No operand predicates
5086 /* 4701 */ // MIs[0] lhs
5087 /* 4701 */ // No operand predicates
5088 /* 4701 */ // MIs[0] Operand 2
5089 /* 4701 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
5090 /* 4705 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5091 /* 4710 */ // Combiner Rule #90: right_identity_zero @ [__right_identity_zero_match_0[9]]
5092 /* 4710 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5093 /* 4715 */ GIR_EraseRootFromParent_Done,
5094 /* 4716 */ // Label 265: @4716
5095 /* 4716 */ GIM_Try, /*On fail goto*//*Label 266*/ GIMT_Encode4(4727), // Rule ID 64 //
5096 /* 4721 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule56Enabled),
5097 /* 4724 */ // MIs[0] dst
5098 /* 4724 */ // No operand predicates
5099 /* 4724 */ // MIs[0] root.x
5100 /* 4724 */ // No operand predicates
5101 /* 4724 */ // MIs[0] root.amt
5102 /* 4724 */ // No operand predicates
5103 /* 4724 */ // Combiner Rule #56: rotate_out_of_range @ [root[0]]
5104 /* 4724 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner25),
5105 /* 4727 */ // Label 266: @4727
5106 /* 4727 */ GIM_Reject,
5107 /* 4728 */ // Label 37: @4728
5108 /* 4728 */ GIM_Try, /*On fail goto*//*Label 267*/ GIMT_Encode4(4751), // Rule ID 137 //
5109 /* 4733 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled),
5110 /* 4736 */ // MIs[0] dst
5111 /* 4736 */ // No operand predicates
5112 /* 4736 */ // MIs[0] lhs
5113 /* 4736 */ // No operand predicates
5114 /* 4736 */ // MIs[0] Operand 2
5115 /* 4736 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
5116 /* 4740 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5117 /* 4745 */ // Combiner Rule #90: right_identity_zero @ [__right_identity_zero_match_0[8]]
5118 /* 4745 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5119 /* 4750 */ GIR_EraseRootFromParent_Done,
5120 /* 4751 */ // Label 267: @4751
5121 /* 4751 */ GIM_Try, /*On fail goto*//*Label 268*/ GIMT_Encode4(4762), // Rule ID 65 //
5122 /* 4756 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule56Enabled),
5123 /* 4759 */ // MIs[0] dst
5124 /* 4759 */ // No operand predicates
5125 /* 4759 */ // MIs[0] root.x
5126 /* 4759 */ // No operand predicates
5127 /* 4759 */ // MIs[0] root.amt
5128 /* 4759 */ // No operand predicates
5129 /* 4759 */ // Combiner Rule #56: rotate_out_of_range @ [root[1]]
5130 /* 4759 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner25),
5131 /* 4762 */ // Label 268: @4762
5132 /* 4762 */ GIM_Reject,
5133 /* 4763 */ // Label 38: @4763
5134 /* 4763 */ GIM_Try, /*On fail goto*//*Label 269*/ GIMT_Encode4(4774), // Rule ID 66 //
5135 /* 4768 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule57Enabled),
5136 /* 4771 */ // MIs[0] dst
5137 /* 4771 */ // No operand predicates
5138 /* 4771 */ // MIs[0] pred
5139 /* 4771 */ // No operand predicates
5140 /* 4771 */ // MIs[0] src1
5141 /* 4771 */ // No operand predicates
5142 /* 4771 */ // MIs[0] src2
5143 /* 4771 */ // No operand predicates
5144 /* 4771 */ // Combiner Rule #57: icmp_to_true_false_known_bits
5145 /* 4771 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner26),
5146 /* 4774 */ // Label 269: @4774
5147 /* 4774 */ GIM_Reject,
5148 /* 4775 */ // Label 39: @4775
5149 /* 4775 */ GIM_Try, /*On fail goto*//*Label 270*/ GIMT_Encode4(4855), // Rule ID 80 //
5150 /* 4780 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule71Enabled),
5151 /* 4783 */ // MIs[0] dst
5152 /* 4783 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
5153 /* 4787 */ // MIs[0] c
5154 /* 4787 */ // No operand predicates
5155 /* 4787 */ // MIs[0] Operand 2
5156 /* 4787 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
5157 /* 4791 */ // MIs[0] x
5158 /* 4791 */ // No operand predicates
5159 /* 4791 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner8),
5160 /* 4795 */ GIR_MakeTempReg, /*TempRegID*/2, /*TypeID*/255,
5161 /* 4798 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
5162 /* 4801 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(18446744073709551615u),
5163 /* 4811 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5164 /* 4814 */ // Combiner Rule #71: select_zero_true
5165 /* 4814 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_XOR),
5166 /* 4817 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5167 /* 4822 */ GIR_RootToRootCopy, /*OpIdx*/1, // c
5168 /* 4824 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/1,
5169 /* 4827 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FREEZE),
5170 /* 4831 */ GIR_AddTempRegister, /*InsnID*/1, /*TempRegID*/2, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5171 /* 4836 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/3, // x
5172 /* 4840 */ GIR_BuildMI, /*InsnID*/2, /*Opcode*/GIMT_Encode2(TargetOpcode::G_AND),
5173 /* 4844 */ GIR_Copy, /*NewInsnID*/2, /*OldInsnID*/0, /*OpIdx*/0, // dst
5174 /* 4848 */ GIR_AddSimpleTempRegister, /*InsnID*/2, /*TempRegID*/0,
5175 /* 4851 */ GIR_AddSimpleTempRegister, /*InsnID*/2, /*TempRegID*/2,
5176 /* 4854 */ GIR_EraseRootFromParent_Done,
5177 /* 4855 */ // Label 270: @4855
5178 /* 4855 */ GIM_Try, /*On fail goto*//*Label 271*/ GIMT_Encode4(4904), // Rule ID 81 //
5179 /* 4860 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule72Enabled),
5180 /* 4863 */ // MIs[0] dst
5181 /* 4863 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
5182 /* 4867 */ // MIs[0] c
5183 /* 4867 */ // No operand predicates
5184 /* 4867 */ // MIs[0] x
5185 /* 4867 */ // No operand predicates
5186 /* 4867 */ // MIs[0] Operand 3
5187 /* 4867 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/3, 0,
5188 /* 4871 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner8),
5189 /* 4875 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5190 /* 4878 */ // Combiner Rule #72: select_zero_false
5191 /* 4878 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FREEZE),
5192 /* 4881 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5193 /* 4886 */ GIR_RootToRootCopy, /*OpIdx*/2, // x
5194 /* 4888 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_AND),
5195 /* 4892 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
5196 /* 4896 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/1, // c
5197 /* 4900 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
5198 /* 4903 */ GIR_EraseRootFromParent_Done,
5199 /* 4904 */ // Label 271: @4904
5200 /* 4904 */ GIM_Try, /*On fail goto*//*Label 272*/ GIMT_Encode4(4927), // Rule ID 76 //
5201 /* 4909 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule67Enabled),
5202 /* 4912 */ // MIs[0] dst
5203 /* 4912 */ // No operand predicates
5204 /* 4912 */ // MIs[0] cond
5205 /* 4912 */ // No operand predicates
5206 /* 4912 */ // MIs[0] tval
5207 /* 4912 */ // No operand predicates
5208 /* 4912 */ // MIs[0] fval
5209 /* 4912 */ // No operand predicates
5210 /* 4912 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner6),
5211 /* 4916 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/3,
5212 /* 4921 */ // Combiner Rule #67: select_constant_cmp_general_false
5213 /* 4921 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/3,
5214 /* 4926 */ GIR_EraseRootFromParent_Done,
5215 /* 4927 */ // Label 272: @4927
5216 /* 4927 */ GIM_Try, /*On fail goto*//*Label 273*/ GIMT_Encode4(4950), // Rule ID 77 //
5217 /* 4932 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule68Enabled),
5218 /* 4935 */ // MIs[0] dst
5219 /* 4935 */ // No operand predicates
5220 /* 4935 */ // MIs[0] cond
5221 /* 4935 */ // No operand predicates
5222 /* 4935 */ // MIs[0] tval
5223 /* 4935 */ // No operand predicates
5224 /* 4935 */ // MIs[0] fval
5225 /* 4935 */ // No operand predicates
5226 /* 4935 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner7),
5227 /* 4939 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
5228 /* 4944 */ // Combiner Rule #68: select_constant_cmp_general_true
5229 /* 4944 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
5230 /* 4949 */ GIR_EraseRootFromParent_Done,
5231 /* 4950 */ // Label 273: @4950
5232 /* 4950 */ GIM_Try, /*On fail goto*//*Label 274*/ GIMT_Encode4(4973), // Rule ID 128 //
5233 /* 4955 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule89Enabled),
5234 /* 4958 */ // MIs[0] dst
5235 /* 4958 */ // No operand predicates
5236 /* 4958 */ // MIs[0] cond
5237 /* 4958 */ // No operand predicates
5238 /* 4958 */ // MIs[0] tval
5239 /* 4958 */ // No operand predicates
5240 /* 4958 */ // MIs[0] fval
5241 /* 4958 */ // No operand predicates
5242 /* 4958 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner12),
5243 /* 4962 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
5244 /* 4967 */ // Combiner Rule #89: select_same_val_equiv
5245 /* 4967 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
5246 /* 4972 */ GIR_EraseRootFromParent_Done,
5247 /* 4973 */ // Label 274: @4973
5248 /* 4973 */ GIM_Try, /*On fail goto*//*Label 275*/ GIMT_Encode4(4994), // Rule ID 78 //
5249 /* 4978 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule69Enabled),
5250 /* 4981 */ // MIs[0] root
5251 /* 4981 */ // No operand predicates
5252 /* 4981 */ // MIs[0] tst
5253 /* 4981 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5254 /* 4985 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ICMP),
5255 /* 4989 */ // MIs[1] tst1
5256 /* 4989 */ // No operand predicates
5257 /* 4989 */ // MIs[1] a
5258 /* 4989 */ // No operand predicates
5259 /* 4989 */ // MIs[1] b
5260 /* 4989 */ // No operand predicates
5261 /* 4989 */ // MIs[0] x
5262 /* 4989 */ // No operand predicates
5263 /* 4989 */ // MIs[0] y
5264 /* 4989 */ // No operand predicates
5265 /* 4989 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5266 /* 4991 */ // Combiner Rule #69: select_to_iminmax
5267 /* 4991 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner29),
5268 /* 4994 */ // Label 275: @4994
5269 /* 4994 */ GIM_Try, /*On fail goto*//*Label 276*/ GIMT_Encode4(5030), // Rule ID 82 //
5270 /* 4999 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule73Enabled),
5271 /* 5002 */ // MIs[0] dst
5272 /* 5002 */ // No operand predicates
5273 /* 5002 */ // MIs[0] c
5274 /* 5002 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5275 /* 5006 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_XOR),
5276 /* 5010 */ // MIs[1] src
5277 /* 5010 */ // No operand predicates
5278 /* 5010 */ // MIs[1] Operand 2
5279 /* 5010 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/2, 255,
5280 /* 5014 */ // MIs[0] x
5281 /* 5014 */ // No operand predicates
5282 /* 5014 */ // MIs[0] y
5283 /* 5014 */ // No operand predicates
5284 /* 5014 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5285 /* 5016 */ // Combiner Rule #73: select_not
5286 /* 5016 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SELECT),
5287 /* 5019 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
5288 /* 5021 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // src
5289 /* 5025 */ GIR_RootToRootCopy, /*OpIdx*/3, // y
5290 /* 5027 */ GIR_RootToRootCopy, /*OpIdx*/2, // x
5291 /* 5029 */ GIR_EraseRootFromParent_Done,
5292 /* 5030 */ // Label 276: @5030
5293 /* 5030 */ GIM_Try, /*On fail goto*//*Label 277*/ GIMT_Encode4(5059), // Rule ID 73 //
5294 /* 5035 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule64Enabled),
5295 /* 5038 */ // MIs[0] dst
5296 /* 5038 */ // No operand predicates
5297 /* 5038 */ // MIs[0] undef
5298 /* 5038 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5299 /* 5042 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
5300 /* 5046 */ // MIs[0] x
5301 /* 5046 */ // No operand predicates
5302 /* 5046 */ // MIs[0] y
5303 /* 5046 */ // No operand predicates
5304 /* 5046 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/3,
5305 /* 5051 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5306 /* 5053 */ // Combiner Rule #64: select_undef_cmp
5307 /* 5053 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/3,
5308 /* 5058 */ GIR_EraseRootFromParent_Done,
5309 /* 5059 */ // Label 277: @5059
5310 /* 5059 */ GIM_Try, /*On fail goto*//*Label 278*/ GIMT_Encode4(5099), // Rule ID 74 //
5311 /* 5064 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule65Enabled),
5312 /* 5067 */ // MIs[0] dst
5313 /* 5067 */ // No operand predicates
5314 /* 5067 */ // MIs[0] cond
5315 /* 5067 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5316 /* 5071 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5317 /* 5075 */ // MIs[1] Operand 1
5318 /* 5075 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0),
5319 /* 5086 */ // MIs[0] tval
5320 /* 5086 */ // No operand predicates
5321 /* 5086 */ // MIs[0] fval
5322 /* 5086 */ // No operand predicates
5323 /* 5086 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/3,
5324 /* 5091 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5325 /* 5093 */ // Combiner Rule #65: select_constant_cmp_false
5326 /* 5093 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/3,
5327 /* 5098 */ GIR_EraseRootFromParent_Done,
5328 /* 5099 */ // Label 278: @5099
5329 /* 5099 */ GIM_Try, /*On fail goto*//*Label 279*/ GIMT_Encode4(5139), // Rule ID 75 //
5330 /* 5104 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule66Enabled),
5331 /* 5107 */ // MIs[0] dst
5332 /* 5107 */ // No operand predicates
5333 /* 5107 */ // MIs[0] cond
5334 /* 5107 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5335 /* 5111 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5336 /* 5115 */ // MIs[1] Operand 1
5337 /* 5115 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(1),
5338 /* 5126 */ // MIs[0] tval
5339 /* 5126 */ // No operand predicates
5340 /* 5126 */ // MIs[0] fval
5341 /* 5126 */ // No operand predicates
5342 /* 5126 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
5343 /* 5131 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5344 /* 5133 */ // Combiner Rule #66: select_constant_cmp_true
5345 /* 5133 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
5346 /* 5138 */ GIR_EraseRootFromParent_Done,
5347 /* 5139 */ // Label 279: @5139
5348 /* 5139 */ GIM_Try, /*On fail goto*//*Label 280*/ GIMT_Encode4(5163), // Rule ID 127 //
5349 /* 5144 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule88Enabled),
5350 /* 5147 */ // MIs[0] dst
5351 /* 5147 */ // No operand predicates
5352 /* 5147 */ // MIs[0] cond
5353 /* 5147 */ // No operand predicates
5354 /* 5147 */ // MIs[0] x
5355 /* 5147 */ // No operand predicates
5356 /* 5147 */ // MIs[0] x
5357 /* 5147 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/3, /*OtherMI*/0, /*OtherOpIdx*/2,
5358 /* 5152 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
5359 /* 5157 */ // Combiner Rule #88: select_same_val_trivial
5360 /* 5157 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
5361 /* 5162 */ GIR_EraseRootFromParent_Done,
5362 /* 5163 */ // Label 280: @5163
5363 /* 5163 */ GIM_Try, /*On fail goto*//*Label 281*/ GIMT_Encode4(5174), // Rule ID 79 //
5364 /* 5168 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule70Enabled),
5365 /* 5171 */ // MIs[0] dst
5366 /* 5171 */ // No operand predicates
5367 /* 5171 */ // MIs[0] cond
5368 /* 5171 */ // No operand predicates
5369 /* 5171 */ // MIs[0] tval
5370 /* 5171 */ // No operand predicates
5371 /* 5171 */ // MIs[0] fval
5372 /* 5171 */ // No operand predicates
5373 /* 5171 */ // Combiner Rule #70: match_selects
5374 /* 5171 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner30),
5375 /* 5174 */ // Label 281: @5174
5376 /* 5174 */ GIM_Try, /*On fail goto*//*Label 282*/ GIMT_Encode4(5185), // Rule ID 214 //
5377 /* 5179 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule132Enabled),
5378 /* 5182 */ // MIs[0] dst
5379 /* 5182 */ // No operand predicates
5380 /* 5182 */ // MIs[0] cond
5381 /* 5182 */ // No operand predicates
5382 /* 5182 */ // MIs[0] tval
5383 /* 5182 */ // No operand predicates
5384 /* 5182 */ // MIs[0] fval
5385 /* 5182 */ // No operand predicates
5386 /* 5182 */ // Combiner Rule #132: select_to_minmax
5387 /* 5182 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner52),
5388 /* 5185 */ // Label 282: @5185
5389 /* 5185 */ GIM_Reject,
5390 /* 5186 */ // Label 40: @5186
5391 /* 5186 */ GIM_Try, /*On fail goto*//*Label 283*/ GIMT_Encode4(5216), // Rule ID 68 //
5392 /* 5191 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule59Enabled),
5393 /* 5194 */ // MIs[0] dst
5394 /* 5194 */ // No operand predicates
5395 /* 5194 */ // MIs[0] carry
5396 /* 5194 */ // No operand predicates
5397 /* 5194 */ // MIs[0] x
5398 /* 5194 */ // No operand predicates
5399 /* 5194 */ // MIs[0] y
5400 /* 5194 */ // No operand predicates
5401 /* 5194 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner5),
5402 /* 5198 */ // Combiner Rule #59: match_addos_uaddo_dead_carry
5403 /* 5198 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ADD),
5404 /* 5201 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
5405 /* 5203 */ GIR_RootToRootCopy, /*OpIdx*/2, // x
5406 /* 5205 */ GIR_RootToRootCopy, /*OpIdx*/3, // y
5407 /* 5207 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
5408 /* 5211 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/1, // carry
5409 /* 5215 */ GIR_EraseRootFromParent_Done,
5410 /* 5216 */ // Label 283: @5216
5411 /* 5216 */ GIM_Try, /*On fail goto*//*Label 284*/ GIMT_Encode4(5243), // Rule ID 236 //
5412 /* 5221 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule154Enabled),
5413 /* 5224 */ // MIs[0] dst
5414 /* 5224 */ // No operand predicates
5415 /* 5224 */ // MIs[0] carry
5416 /* 5224 */ // No operand predicates
5417 /* 5224 */ // MIs[0] lhs
5418 /* 5224 */ // No operand predicates
5419 /* 5224 */ // MIs[0] rhs
5420 /* 5224 */ // No operand predicates
5421 /* 5224 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner28),
5422 /* 5228 */ // Combiner Rule #154: G_UADDO_commute_constant_to_rhs
5423 /* 5228 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UADDO),
5424 /* 5231 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
5425 /* 5233 */ GIR_RootToRootCopy, /*OpIdx*/1, // carry
5426 /* 5235 */ GIR_RootToRootCopy, /*OpIdx*/3, // rhs
5427 /* 5237 */ GIR_RootToRootCopy, /*OpIdx*/2, // lhs
5428 /* 5239 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
5429 /* 5242 */ GIR_EraseRootFromParent_Done,
5430 /* 5243 */ // Label 284: @5243
5431 /* 5243 */ GIM_Try, /*On fail goto*//*Label 285*/ GIMT_Encode4(5254), // Rule ID 70 //
5432 /* 5248 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule61Enabled),
5433 /* 5251 */ // MIs[0] dst
5434 /* 5251 */ // No operand predicates
5435 /* 5251 */ // MIs[0] carry
5436 /* 5251 */ // No operand predicates
5437 /* 5251 */ // MIs[0] x
5438 /* 5251 */ // No operand predicates
5439 /* 5251 */ // MIs[0] y
5440 /* 5251 */ // No operand predicates
5441 /* 5251 */ // Combiner Rule #61: match_addos_uaddo
5442 /* 5251 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner27),
5443 /* 5254 */ // Label 285: @5254
5444 /* 5254 */ GIM_Reject,
5445 /* 5255 */ // Label 41: @5255
5446 /* 5255 */ GIM_Try, /*On fail goto*//*Label 286*/ GIMT_Encode4(5266), // Rule ID 72 //
5447 /* 5260 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule63Enabled),
5448 /* 5263 */ // MIs[0] dst
5449 /* 5263 */ // No operand predicates
5450 /* 5263 */ // MIs[0] carry
5451 /* 5263 */ // No operand predicates
5452 /* 5263 */ // MIs[0] x
5453 /* 5263 */ // No operand predicates
5454 /* 5263 */ // MIs[0] y
5455 /* 5263 */ // No operand predicates
5456 /* 5263 */ // Combiner Rule #63: match_subo_no_overflow_usubo
5457 /* 5263 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner28),
5458 /* 5266 */ // Label 286: @5266
5459 /* 5266 */ GIM_Reject,
5460 /* 5267 */ // Label 42: @5267
5461 /* 5267 */ GIM_Try, /*On fail goto*//*Label 287*/ GIMT_Encode4(5297), // Rule ID 67 //
5462 /* 5272 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule58Enabled),
5463 /* 5275 */ // MIs[0] dst
5464 /* 5275 */ // No operand predicates
5465 /* 5275 */ // MIs[0] carry
5466 /* 5275 */ // No operand predicates
5467 /* 5275 */ // MIs[0] x
5468 /* 5275 */ // No operand predicates
5469 /* 5275 */ // MIs[0] y
5470 /* 5275 */ // No operand predicates
5471 /* 5275 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner5),
5472 /* 5279 */ // Combiner Rule #58: match_addos_saddo_dead_carry
5473 /* 5279 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ADD),
5474 /* 5282 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
5475 /* 5284 */ GIR_RootToRootCopy, /*OpIdx*/2, // x
5476 /* 5286 */ GIR_RootToRootCopy, /*OpIdx*/3, // y
5477 /* 5288 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
5478 /* 5292 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/1, // carry
5479 /* 5296 */ GIR_EraseRootFromParent_Done,
5480 /* 5297 */ // Label 287: @5297
5481 /* 5297 */ GIM_Try, /*On fail goto*//*Label 288*/ GIMT_Encode4(5324), // Rule ID 237 //
5482 /* 5302 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule155Enabled),
5483 /* 5305 */ // MIs[0] dst
5484 /* 5305 */ // No operand predicates
5485 /* 5305 */ // MIs[0] carry
5486 /* 5305 */ // No operand predicates
5487 /* 5305 */ // MIs[0] lhs
5488 /* 5305 */ // No operand predicates
5489 /* 5305 */ // MIs[0] rhs
5490 /* 5305 */ // No operand predicates
5491 /* 5305 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner28),
5492 /* 5309 */ // Combiner Rule #155: G_SADDO_commute_constant_to_rhs
5493 /* 5309 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SADDO),
5494 /* 5312 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
5495 /* 5314 */ GIR_RootToRootCopy, /*OpIdx*/1, // carry
5496 /* 5316 */ GIR_RootToRootCopy, /*OpIdx*/3, // rhs
5497 /* 5318 */ GIR_RootToRootCopy, /*OpIdx*/2, // lhs
5498 /* 5320 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
5499 /* 5323 */ GIR_EraseRootFromParent_Done,
5500 /* 5324 */ // Label 288: @5324
5501 /* 5324 */ GIM_Try, /*On fail goto*//*Label 289*/ GIMT_Encode4(5335), // Rule ID 69 //
5502 /* 5329 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule60Enabled),
5503 /* 5332 */ // MIs[0] dst
5504 /* 5332 */ // No operand predicates
5505 /* 5332 */ // MIs[0] carry
5506 /* 5332 */ // No operand predicates
5507 /* 5332 */ // MIs[0] x
5508 /* 5332 */ // No operand predicates
5509 /* 5332 */ // MIs[0] y
5510 /* 5332 */ // No operand predicates
5511 /* 5332 */ // Combiner Rule #60: match_addos_saddo
5512 /* 5332 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner27),
5513 /* 5335 */ // Label 289: @5335
5514 /* 5335 */ GIM_Reject,
5515 /* 5336 */ // Label 43: @5336
5516 /* 5336 */ GIM_Try, /*On fail goto*//*Label 290*/ GIMT_Encode4(5347), // Rule ID 71 //
5517 /* 5341 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule62Enabled),
5518 /* 5344 */ // MIs[0] dst
5519 /* 5344 */ // No operand predicates
5520 /* 5344 */ // MIs[0] carry
5521 /* 5344 */ // No operand predicates
5522 /* 5344 */ // MIs[0] x
5523 /* 5344 */ // No operand predicates
5524 /* 5344 */ // MIs[0] y
5525 /* 5344 */ // No operand predicates
5526 /* 5344 */ // Combiner Rule #62: match_subo_no_overflow_ssubo
5527 /* 5344 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner28),
5528 /* 5347 */ // Label 290: @5347
5529 /* 5347 */ GIM_Reject,
5530 /* 5348 */ // Label 44: @5348
5531 /* 5348 */ GIM_Try, /*On fail goto*//*Label 291*/ GIMT_Encode4(5375), // Rule ID 238 //
5532 /* 5353 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule156Enabled),
5533 /* 5356 */ // MIs[0] dst
5534 /* 5356 */ // No operand predicates
5535 /* 5356 */ // MIs[0] carry
5536 /* 5356 */ // No operand predicates
5537 /* 5356 */ // MIs[0] lhs
5538 /* 5356 */ // No operand predicates
5539 /* 5356 */ // MIs[0] rhs
5540 /* 5356 */ // No operand predicates
5541 /* 5356 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner28),
5542 /* 5360 */ // Combiner Rule #156: G_UMULO_commute_constant_to_rhs
5543 /* 5360 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UMULO),
5544 /* 5363 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
5545 /* 5365 */ GIR_RootToRootCopy, /*OpIdx*/1, // carry
5546 /* 5367 */ GIR_RootToRootCopy, /*OpIdx*/3, // rhs
5547 /* 5369 */ GIR_RootToRootCopy, /*OpIdx*/2, // lhs
5548 /* 5371 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
5549 /* 5374 */ GIR_EraseRootFromParent_Done,
5550 /* 5375 */ // Label 291: @5375
5551 /* 5375 */ GIM_Reject,
5552 /* 5376 */ // Label 45: @5376
5553 /* 5376 */ GIM_Try, /*On fail goto*//*Label 292*/ GIMT_Encode4(5403), // Rule ID 239 //
5554 /* 5381 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule157Enabled),
5555 /* 5384 */ // MIs[0] dst
5556 /* 5384 */ // No operand predicates
5557 /* 5384 */ // MIs[0] carry
5558 /* 5384 */ // No operand predicates
5559 /* 5384 */ // MIs[0] lhs
5560 /* 5384 */ // No operand predicates
5561 /* 5384 */ // MIs[0] rhs
5562 /* 5384 */ // No operand predicates
5563 /* 5384 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner28),
5564 /* 5388 */ // Combiner Rule #157: G_SMULO_commute_constant_to_rhs
5565 /* 5388 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SMULO),
5566 /* 5391 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
5567 /* 5393 */ GIR_RootToRootCopy, /*OpIdx*/1, // carry
5568 /* 5395 */ GIR_RootToRootCopy, /*OpIdx*/3, // rhs
5569 /* 5397 */ GIR_RootToRootCopy, /*OpIdx*/2, // lhs
5570 /* 5399 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
5571 /* 5402 */ GIR_EraseRootFromParent_Done,
5572 /* 5403 */ // Label 292: @5403
5573 /* 5403 */ GIM_Reject,
5574 /* 5404 */ // Label 46: @5404
5575 /* 5404 */ GIM_Try, /*On fail goto*//*Label 293*/ GIMT_Encode4(5429), // Rule ID 228 //
5576 /* 5409 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule146Enabled),
5577 /* 5412 */ // MIs[0] dst
5578 /* 5412 */ // No operand predicates
5579 /* 5412 */ // MIs[0] lhs
5580 /* 5412 */ // No operand predicates
5581 /* 5412 */ // MIs[0] rhs
5582 /* 5412 */ // No operand predicates
5583 /* 5412 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner28),
5584 /* 5416 */ // Combiner Rule #146: G_UMULH_commute_constant_to_rhs
5585 /* 5416 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UMULH),
5586 /* 5419 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
5587 /* 5421 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
5588 /* 5423 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
5589 /* 5425 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
5590 /* 5428 */ GIR_EraseRootFromParent_Done,
5591 /* 5429 */ // Label 293: @5429
5592 /* 5429 */ GIM_Reject,
5593 /* 5430 */ // Label 47: @5430
5594 /* 5430 */ GIM_Try, /*On fail goto*//*Label 294*/ GIMT_Encode4(5455), // Rule ID 229 //
5595 /* 5435 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule147Enabled),
5596 /* 5438 */ // MIs[0] dst
5597 /* 5438 */ // No operand predicates
5598 /* 5438 */ // MIs[0] lhs
5599 /* 5438 */ // No operand predicates
5600 /* 5438 */ // MIs[0] rhs
5601 /* 5438 */ // No operand predicates
5602 /* 5438 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner28),
5603 /* 5442 */ // Combiner Rule #147: G_SMULH_commute_constant_to_rhs
5604 /* 5442 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SMULH),
5605 /* 5445 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
5606 /* 5447 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
5607 /* 5449 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
5608 /* 5451 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
5609 /* 5454 */ GIR_EraseRootFromParent_Done,
5610 /* 5455 */ // Label 294: @5455
5611 /* 5455 */ GIM_Reject,
5612 /* 5456 */ // Label 48: @5456
5613 /* 5456 */ GIM_Try, /*On fail goto*//*Label 295*/ GIMT_Encode4(5481), // Rule ID 230 //
5614 /* 5461 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule148Enabled),
5615 /* 5464 */ // MIs[0] dst
5616 /* 5464 */ // No operand predicates
5617 /* 5464 */ // MIs[0] lhs
5618 /* 5464 */ // No operand predicates
5619 /* 5464 */ // MIs[0] rhs
5620 /* 5464 */ // No operand predicates
5621 /* 5464 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner28),
5622 /* 5468 */ // Combiner Rule #148: G_UADDSAT_commute_constant_to_rhs
5623 /* 5468 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UADDSAT),
5624 /* 5471 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
5625 /* 5473 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
5626 /* 5475 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
5627 /* 5477 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
5628 /* 5480 */ GIR_EraseRootFromParent_Done,
5629 /* 5481 */ // Label 295: @5481
5630 /* 5481 */ GIM_Reject,
5631 /* 5482 */ // Label 49: @5482
5632 /* 5482 */ GIM_Try, /*On fail goto*//*Label 296*/ GIMT_Encode4(5507), // Rule ID 231 //
5633 /* 5487 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule149Enabled),
5634 /* 5490 */ // MIs[0] dst
5635 /* 5490 */ // No operand predicates
5636 /* 5490 */ // MIs[0] lhs
5637 /* 5490 */ // No operand predicates
5638 /* 5490 */ // MIs[0] rhs
5639 /* 5490 */ // No operand predicates
5640 /* 5490 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner28),
5641 /* 5494 */ // Combiner Rule #149: G_SADDSAT_commute_constant_to_rhs
5642 /* 5494 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SADDSAT),
5643 /* 5497 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
5644 /* 5499 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
5645 /* 5501 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
5646 /* 5503 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
5647 /* 5506 */ GIR_EraseRootFromParent_Done,
5648 /* 5507 */ // Label 296: @5507
5649 /* 5507 */ GIM_Reject,
5650 /* 5508 */ // Label 50: @5508
5651 /* 5508 */ GIM_Try, /*On fail goto*//*Label 297*/ GIMT_Encode4(5519), // Rule ID 177 //
5652 /* 5513 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule115Enabled),
5653 /* 5516 */ // MIs[0] d
5654 /* 5516 */ // No operand predicates
5655 /* 5516 */ // MIs[0] mi.base
5656 /* 5516 */ // No operand predicates
5657 /* 5516 */ // MIs[0] mi.amt
5658 /* 5516 */ // No operand predicates
5659 /* 5516 */ // Combiner Rule #115: shift_immed_chain @ [mi[4]]
5660 /* 5516 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner47),
5661 /* 5519 */ // Label 297: @5519
5662 /* 5519 */ GIM_Reject,
5663 /* 5520 */ // Label 51: @5520
5664 /* 5520 */ GIM_Try, /*On fail goto*//*Label 298*/ GIMT_Encode4(5531), // Rule ID 176 //
5665 /* 5525 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule115Enabled),
5666 /* 5528 */ // MIs[0] d
5667 /* 5528 */ // No operand predicates
5668 /* 5528 */ // MIs[0] mi.base
5669 /* 5528 */ // No operand predicates
5670 /* 5528 */ // MIs[0] mi.amt
5671 /* 5528 */ // No operand predicates
5672 /* 5528 */ // Combiner Rule #115: shift_immed_chain @ [mi[3]]
5673 /* 5528 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner47),
5674 /* 5531 */ // Label 298: @5531
5675 /* 5531 */ GIM_Reject,
5676 /* 5532 */ // Label 52: @5532
5677 /* 5532 */ GIM_Try, /*On fail goto*//*Label 299*/ GIMT_Encode4(5559), // Rule ID 232 //
5678 /* 5537 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule150Enabled),
5679 /* 5540 */ // MIs[0] dst
5680 /* 5540 */ // No operand predicates
5681 /* 5540 */ // MIs[0] lhs
5682 /* 5540 */ // No operand predicates
5683 /* 5540 */ // MIs[0] rhs
5684 /* 5540 */ // No operand predicates
5685 /* 5540 */ // MIs[0] scale
5686 /* 5540 */ // No operand predicates
5687 /* 5540 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner28),
5688 /* 5544 */ // Combiner Rule #150: G_SMULFIX_commute_constant_to_rhs
5689 /* 5544 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SMULFIX),
5690 /* 5547 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
5691 /* 5549 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
5692 /* 5551 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
5693 /* 5553 */ GIR_RootToRootCopy, /*OpIdx*/3, // scale
5694 /* 5555 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
5695 /* 5558 */ GIR_EraseRootFromParent_Done,
5696 /* 5559 */ // Label 299: @5559
5697 /* 5559 */ GIM_Reject,
5698 /* 5560 */ // Label 53: @5560
5699 /* 5560 */ GIM_Try, /*On fail goto*//*Label 300*/ GIMT_Encode4(5587), // Rule ID 233 //
5700 /* 5565 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule151Enabled),
5701 /* 5568 */ // MIs[0] dst
5702 /* 5568 */ // No operand predicates
5703 /* 5568 */ // MIs[0] lhs
5704 /* 5568 */ // No operand predicates
5705 /* 5568 */ // MIs[0] rhs
5706 /* 5568 */ // No operand predicates
5707 /* 5568 */ // MIs[0] scale
5708 /* 5568 */ // No operand predicates
5709 /* 5568 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner28),
5710 /* 5572 */ // Combiner Rule #151: G_UMULFIX_commute_constant_to_rhs
5711 /* 5572 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UMULFIX),
5712 /* 5575 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
5713 /* 5577 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
5714 /* 5579 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
5715 /* 5581 */ GIR_RootToRootCopy, /*OpIdx*/3, // scale
5716 /* 5583 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
5717 /* 5586 */ GIR_EraseRootFromParent_Done,
5718 /* 5587 */ // Label 300: @5587
5719 /* 5587 */ GIM_Reject,
5720 /* 5588 */ // Label 54: @5588
5721 /* 5588 */ GIM_Try, /*On fail goto*//*Label 301*/ GIMT_Encode4(5615), // Rule ID 234 //
5722 /* 5593 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule152Enabled),
5723 /* 5596 */ // MIs[0] dst
5724 /* 5596 */ // No operand predicates
5725 /* 5596 */ // MIs[0] lhs
5726 /* 5596 */ // No operand predicates
5727 /* 5596 */ // MIs[0] rhs
5728 /* 5596 */ // No operand predicates
5729 /* 5596 */ // MIs[0] scale
5730 /* 5596 */ // No operand predicates
5731 /* 5596 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner28),
5732 /* 5600 */ // Combiner Rule #152: G_SMULFIXSAT_commute_constant_to_rhs
5733 /* 5600 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SMULFIXSAT),
5734 /* 5603 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
5735 /* 5605 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
5736 /* 5607 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
5737 /* 5609 */ GIR_RootToRootCopy, /*OpIdx*/3, // scale
5738 /* 5611 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
5739 /* 5614 */ GIR_EraseRootFromParent_Done,
5740 /* 5615 */ // Label 301: @5615
5741 /* 5615 */ GIM_Reject,
5742 /* 5616 */ // Label 55: @5616
5743 /* 5616 */ GIM_Try, /*On fail goto*//*Label 302*/ GIMT_Encode4(5643), // Rule ID 235 //
5744 /* 5621 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule153Enabled),
5745 /* 5624 */ // MIs[0] dst
5746 /* 5624 */ // No operand predicates
5747 /* 5624 */ // MIs[0] lhs
5748 /* 5624 */ // No operand predicates
5749 /* 5624 */ // MIs[0] rhs
5750 /* 5624 */ // No operand predicates
5751 /* 5624 */ // MIs[0] scale
5752 /* 5624 */ // No operand predicates
5753 /* 5624 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner28),
5754 /* 5628 */ // Combiner Rule #153: G_UMULFIXSAT_commute_constant_to_rhs
5755 /* 5628 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UMULFIXSAT),
5756 /* 5631 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
5757 /* 5633 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
5758 /* 5635 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
5759 /* 5637 */ GIR_RootToRootCopy, /*OpIdx*/3, // scale
5760 /* 5639 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
5761 /* 5642 */ GIR_EraseRootFromParent_Done,
5762 /* 5643 */ // Label 302: @5643
5763 /* 5643 */ GIM_Reject,
5764 /* 5644 */ // Label 56: @5644
5765 /* 5644 */ GIM_Try, /*On fail goto*//*Label 303*/ GIMT_Encode4(5673), // Rule ID 170 //
5766 /* 5649 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule112Enabled),
5767 /* 5652 */ GIM_MIFlags, /*MI*/0, GIMT_Encode4(MachineInstr::FmNsz),
5768 /* 5658 */ // MIs[0] dst
5769 /* 5658 */ // No operand predicates
5770 /* 5658 */ // MIs[0] x
5771 /* 5658 */ // No operand predicates
5772 /* 5658 */ // MIs[0] y
5773 /* 5658 */ // No operand predicates
5774 /* 5658 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner21),
5775 /* 5662 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5776 /* 5667 */ // Combiner Rule #112: right_identity_neg_zero_fp_nsz
5777 /* 5667 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5778 /* 5672 */ GIR_EraseRootFromParent_Done,
5779 /* 5673 */ // Label 303: @5673
5780 /* 5673 */ GIM_Try, /*On fail goto*//*Label 304*/ GIMT_Encode4(5696), // Rule ID 169 //
5781 /* 5678 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule111Enabled),
5782 /* 5681 */ // MIs[0] dst
5783 /* 5681 */ // No operand predicates
5784 /* 5681 */ // MIs[0] x
5785 /* 5681 */ // No operand predicates
5786 /* 5681 */ // MIs[0] y
5787 /* 5681 */ // No operand predicates
5788 /* 5681 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner20),
5789 /* 5685 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5790 /* 5690 */ // Combiner Rule #111: right_identity_neg_zero_fp
5791 /* 5690 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5792 /* 5695 */ GIR_EraseRootFromParent_Done,
5793 /* 5696 */ // Label 304: @5696
5794 /* 5696 */ GIM_Try, /*On fail goto*//*Label 305*/ GIMT_Encode4(5721), // Rule ID 240 //
5795 /* 5701 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule158Enabled),
5796 /* 5704 */ // MIs[0] dst
5797 /* 5704 */ // No operand predicates
5798 /* 5704 */ // MIs[0] lhs
5799 /* 5704 */ // No operand predicates
5800 /* 5704 */ // MIs[0] rhs
5801 /* 5704 */ // No operand predicates
5802 /* 5704 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner29),
5803 /* 5708 */ // Combiner Rule #158: G_FADD_commute_fp_constant_to_rhs
5804 /* 5708 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FADD),
5805 /* 5711 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
5806 /* 5713 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
5807 /* 5715 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
5808 /* 5717 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
5809 /* 5720 */ GIR_EraseRootFromParent_Done,
5810 /* 5721 */ // Label 305: @5721
5811 /* 5721 */ GIM_Try, /*On fail goto*//*Label 306*/ GIMT_Encode4(5732), // Rule ID 112 //
5812 /* 5726 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule86Enabled),
5813 /* 5729 */ // MIs[0] d
5814 /* 5729 */ // No operand predicates
5815 /* 5729 */ // MIs[0] mi.src0
5816 /* 5729 */ // No operand predicates
5817 /* 5729 */ // MIs[0] mi.src1
5818 /* 5729 */ // No operand predicates
5819 /* 5729 */ // Combiner Rule #86: constant_fold_fp_binop @ [mi[0]]
5820 /* 5729 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner40),
5821 /* 5732 */ // Label 306: @5732
5822 /* 5732 */ GIM_Reject,
5823 /* 5733 */ // Label 57: @5733
5824 /* 5733 */ GIM_Try, /*On fail goto*//*Label 307*/ GIMT_Encode4(5744), // Rule ID 113 //
5825 /* 5738 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule86Enabled),
5826 /* 5741 */ // MIs[0] d
5827 /* 5741 */ // No operand predicates
5828 /* 5741 */ // MIs[0] mi.src0
5829 /* 5741 */ // No operand predicates
5830 /* 5741 */ // MIs[0] mi.src1
5831 /* 5741 */ // No operand predicates
5832 /* 5741 */ // Combiner Rule #86: constant_fold_fp_binop @ [mi[1]]
5833 /* 5741 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner40),
5834 /* 5744 */ // Label 307: @5744
5835 /* 5744 */ GIM_Reject,
5836 /* 5745 */ // Label 58: @5745
5837 /* 5745 */ GIM_Try, /*On fail goto*//*Label 308*/ GIMT_Encode4(5768), // Rule ID 159 //
5838 /* 5750 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule102Enabled),
5839 /* 5753 */ // MIs[0] dst
5840 /* 5753 */ // No operand predicates
5841 /* 5753 */ // MIs[0] x
5842 /* 5753 */ // No operand predicates
5843 /* 5753 */ // MIs[0] y
5844 /* 5753 */ // No operand predicates
5845 /* 5753 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner18),
5846 /* 5757 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5847 /* 5762 */ // Combiner Rule #102: right_identity_one_fp
5848 /* 5762 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5849 /* 5767 */ GIR_EraseRootFromParent_Done,
5850 /* 5768 */ // Label 308: @5768
5851 /* 5768 */ GIM_Try, /*On fail goto*//*Label 309*/ GIMT_Encode4(5788), // Rule ID 171 //
5852 /* 5773 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule113Enabled),
5853 /* 5776 */ // MIs[0] dst
5854 /* 5776 */ // No operand predicates
5855 /* 5776 */ // MIs[0] x
5856 /* 5776 */ // No operand predicates
5857 /* 5776 */ // MIs[0] y
5858 /* 5776 */ // No operand predicates
5859 /* 5776 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner22),
5860 /* 5780 */ // Combiner Rule #113: right_identity_neg_one_fp
5861 /* 5780 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FNEG),
5862 /* 5783 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
5863 /* 5785 */ GIR_RootToRootCopy, /*OpIdx*/1, // x
5864 /* 5787 */ GIR_EraseRootFromParent_Done,
5865 /* 5788 */ // Label 309: @5788
5866 /* 5788 */ GIM_Try, /*On fail goto*//*Label 310*/ GIMT_Encode4(5813), // Rule ID 241 //
5867 /* 5793 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule159Enabled),
5868 /* 5796 */ // MIs[0] dst
5869 /* 5796 */ // No operand predicates
5870 /* 5796 */ // MIs[0] lhs
5871 /* 5796 */ // No operand predicates
5872 /* 5796 */ // MIs[0] rhs
5873 /* 5796 */ // No operand predicates
5874 /* 5796 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner29),
5875 /* 5800 */ // Combiner Rule #159: G_FMUL_commute_fp_constant_to_rhs
5876 /* 5800 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FMUL),
5877 /* 5803 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
5878 /* 5805 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
5879 /* 5807 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
5880 /* 5809 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
5881 /* 5812 */ GIR_EraseRootFromParent_Done,
5882 /* 5813 */ // Label 310: @5813
5883 /* 5813 */ GIM_Try, /*On fail goto*//*Label 311*/ GIMT_Encode4(5824), // Rule ID 114 //
5884 /* 5818 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule86Enabled),
5885 /* 5821 */ // MIs[0] d
5886 /* 5821 */ // No operand predicates
5887 /* 5821 */ // MIs[0] mi.src0
5888 /* 5821 */ // No operand predicates
5889 /* 5821 */ // MIs[0] mi.src1
5890 /* 5821 */ // No operand predicates
5891 /* 5821 */ // Combiner Rule #86: constant_fold_fp_binop @ [mi[2]]
5892 /* 5821 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner40),
5893 /* 5824 */ // Label 311: @5824
5894 /* 5824 */ GIM_Reject,
5895 /* 5825 */ // Label 59: @5825
5896 /* 5825 */ GIM_Try, /*On fail goto*//*Label 312*/ GIMT_Encode4(5836), // Rule ID 115 //
5897 /* 5830 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule86Enabled),
5898 /* 5833 */ // MIs[0] d
5899 /* 5833 */ // No operand predicates
5900 /* 5833 */ // MIs[0] mi.src0
5901 /* 5833 */ // No operand predicates
5902 /* 5833 */ // MIs[0] mi.src1
5903 /* 5833 */ // No operand predicates
5904 /* 5833 */ // Combiner Rule #86: constant_fold_fp_binop @ [mi[3]]
5905 /* 5833 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner40),
5906 /* 5836 */ // Label 312: @5836
5907 /* 5836 */ GIM_Reject,
5908 /* 5837 */ // Label 60: @5837
5909 /* 5837 */ GIM_Try, /*On fail goto*//*Label 313*/ GIMT_Encode4(5848), // Rule ID 116 //
5910 /* 5842 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule86Enabled),
5911 /* 5845 */ // MIs[0] d
5912 /* 5845 */ // No operand predicates
5913 /* 5845 */ // MIs[0] mi.src0
5914 /* 5845 */ // No operand predicates
5915 /* 5845 */ // MIs[0] mi.src1
5916 /* 5845 */ // No operand predicates
5917 /* 5845 */ // Combiner Rule #86: constant_fold_fp_binop @ [mi[4]]
5918 /* 5845 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner40),
5919 /* 5848 */ // Label 313: @5848
5920 /* 5848 */ GIM_Reject,
5921 /* 5849 */ // Label 61: @5849
5922 /* 5849 */ GIM_Try, /*On fail goto*//*Label 314*/ GIMT_Encode4(5860), // Rule ID 16 //
5923 /* 5854 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule16Enabled),
5924 /* 5857 */ // MIs[0] dst
5925 /* 5857 */ // No operand predicates
5926 /* 5857 */ // MIs[0] src0
5927 /* 5857 */ // No operand predicates
5928 /* 5857 */ // Combiner Rule #16: constant_fold_flog2
5929 /* 5857 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner5),
5930 /* 5860 */ // Label 314: @5860
5931 /* 5860 */ GIM_Reject,
5932 /* 5861 */ // Label 62: @5861
5933 /* 5861 */ GIM_Try, /*On fail goto*//*Label 315*/ GIMT_Encode4(5890), // Rule ID 157 //
5934 /* 5866 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule100Enabled),
5935 /* 5869 */ // MIs[0] dst
5936 /* 5869 */ // No operand predicates
5937 /* 5869 */ // MIs[0] t
5938 /* 5869 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5939 /* 5873 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FNEG),
5940 /* 5877 */ // MIs[1] src
5941 /* 5877 */ // No operand predicates
5942 /* 5877 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
5943 /* 5882 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5944 /* 5884 */ // Combiner Rule #100: fneg_fneg_fold
5945 /* 5884 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
5946 /* 5889 */ GIR_EraseRootFromParent_Done,
5947 /* 5890 */ // Label 315: @5890
5948 /* 5890 */ GIM_Try, /*On fail goto*//*Label 316*/ GIMT_Encode4(5901), // Rule ID 13 //
5949 /* 5895 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule13Enabled),
5950 /* 5898 */ // MIs[0] dst
5951 /* 5898 */ // No operand predicates
5952 /* 5898 */ // MIs[0] src0
5953 /* 5898 */ // No operand predicates
5954 /* 5898 */ // Combiner Rule #13: constant_fold_fneg
5955 /* 5898 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner5),
5956 /* 5901 */ // Label 316: @5901
5957 /* 5901 */ GIM_Reject,
5958 /* 5902 */ // Label 63: @5902
5959 /* 5902 */ GIM_Try, /*On fail goto*//*Label 317*/ GIMT_Encode4(5913), // Rule ID 18 //
5960 /* 5907 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule18Enabled),
5961 /* 5910 */ // MIs[0] dst
5962 /* 5910 */ // No operand predicates
5963 /* 5910 */ // MIs[0] src0
5964 /* 5910 */ // No operand predicates
5965 /* 5910 */ // Combiner Rule #18: constant_fold_fpext
5966 /* 5910 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner5),
5967 /* 5913 */ // Label 317: @5913
5968 /* 5913 */ GIM_Reject,
5969 /* 5914 */ // Label 64: @5914
5970 /* 5914 */ GIM_Try, /*On fail goto*//*Label 318*/ GIMT_Encode4(5947), // Rule ID 168 //
5971 /* 5919 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule110Enabled),
5972 /* 5922 */ // MIs[0] dst
5973 /* 5922 */ // No operand predicates
5974 /* 5922 */ // MIs[0] src1
5975 /* 5922 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5976 /* 5926 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FPEXT),
5977 /* 5930 */ // MIs[1] src0
5978 /* 5930 */ // No operand predicates
5979 /* 5930 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner14),
5980 /* 5934 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
5981 /* 5939 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5982 /* 5941 */ // Combiner Rule #110: fptrunc_fpext_fold
5983 /* 5941 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
5984 /* 5946 */ GIR_EraseRootFromParent_Done,
5985 /* 5947 */ // Label 318: @5947
5986 /* 5947 */ GIM_Try, /*On fail goto*//*Label 319*/ GIMT_Encode4(5958), // Rule ID 17 //
5987 /* 5952 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule17Enabled),
5988 /* 5955 */ // MIs[0] dst
5989 /* 5955 */ // No operand predicates
5990 /* 5955 */ // MIs[0] src0
5991 /* 5955 */ // No operand predicates
5992 /* 5955 */ // Combiner Rule #17: constant_fold_fptrunc
5993 /* 5955 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner5),
5994 /* 5958 */ // Label 319: @5958
5995 /* 5958 */ GIM_Reject,
5996 /* 5959 */ // Label 65: @5959
5997 /* 5959 */ GIM_Try, /*On fail goto*//*Label 320*/ GIMT_Encode4(5983), // Rule ID 200 //
5998 /* 5964 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule124Enabled),
5999 /* 5967 */ // MIs[0] dst
6000 /* 5967 */ // No operand predicates
6001 /* 5967 */ // MIs[0] __unary_undef_to_undef_match_0.x
6002 /* 5967 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6003 /* 5971 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
6004 /* 5975 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6005 /* 5977 */ // Combiner Rule #124: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[5]]
6006 /* 5977 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
6007 /* 5980 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
6008 /* 5982 */ GIR_EraseRootFromParent_Done,
6009 /* 5983 */ // Label 320: @5983
6010 /* 5983 */ GIM_Reject,
6011 /* 5984 */ // Label 66: @5984
6012 /* 5984 */ GIM_Try, /*On fail goto*//*Label 321*/ GIMT_Encode4(6008), // Rule ID 201 //
6013 /* 5989 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule124Enabled),
6014 /* 5992 */ // MIs[0] dst
6015 /* 5992 */ // No operand predicates
6016 /* 5992 */ // MIs[0] __unary_undef_to_undef_match_0.x
6017 /* 5992 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6018 /* 5996 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
6019 /* 6000 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6020 /* 6002 */ // Combiner Rule #124: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[6]]
6021 /* 6002 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
6022 /* 6005 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
6023 /* 6007 */ GIR_EraseRootFromParent_Done,
6024 /* 6008 */ // Label 321: @6008
6025 /* 6008 */ GIM_Reject,
6026 /* 6009 */ // Label 67: @6009
6027 /* 6009 */ GIM_Try, /*On fail goto*//*Label 322*/ GIMT_Encode4(6030), // Rule ID 181 //
6028 /* 6014 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule118Enabled),
6029 /* 6017 */ // MIs[0] dst
6030 /* 6017 */ // No operand predicates
6031 /* 6017 */ // MIs[0] __undef_to_fp_zero_match_0.x
6032 /* 6017 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6033 /* 6021 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
6034 /* 6025 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6035 /* 6027 */ // Combiner Rule #118: undef_to_fp_zero @ [__undef_to_fp_zero_match_0[1]]
6036 /* 6027 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner6),
6037 /* 6030 */ // Label 322: @6030
6038 /* 6030 */ GIM_Try, /*On fail goto*//*Label 323*/ GIMT_Encode4(6045), // Rule ID 26 //
6039 /* 6035 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule26Enabled),
6040 /* 6038 */ // MIs[0] dst
6041 /* 6038 */ // No operand predicates
6042 /* 6038 */ // MIs[0] Operand 1
6043 /* 6038 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/1, 0,
6044 /* 6042 */ // Combiner Rule #26: itof_const_zero_fold_si
6045 /* 6042 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner6),
6046 /* 6045 */ // Label 323: @6045
6047 /* 6045 */ GIM_Reject,
6048 /* 6046 */ // Label 68: @6046
6049 /* 6046 */ GIM_Try, /*On fail goto*//*Label 324*/ GIMT_Encode4(6067), // Rule ID 180 //
6050 /* 6051 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule118Enabled),
6051 /* 6054 */ // MIs[0] dst
6052 /* 6054 */ // No operand predicates
6053 /* 6054 */ // MIs[0] __undef_to_fp_zero_match_0.x
6054 /* 6054 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6055 /* 6058 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
6056 /* 6062 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6057 /* 6064 */ // Combiner Rule #118: undef_to_fp_zero @ [__undef_to_fp_zero_match_0[0]]
6058 /* 6064 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner6),
6059 /* 6067 */ // Label 324: @6067
6060 /* 6067 */ GIM_Try, /*On fail goto*//*Label 325*/ GIMT_Encode4(6082), // Rule ID 27 //
6061 /* 6072 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule27Enabled),
6062 /* 6075 */ // MIs[0] dst
6063 /* 6075 */ // No operand predicates
6064 /* 6075 */ // MIs[0] Operand 1
6065 /* 6075 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/1, 0,
6066 /* 6079 */ // Combiner Rule #27: itof_const_zero_fold_ui
6067 /* 6079 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner6),
6068 /* 6082 */ // Label 325: @6082
6069 /* 6082 */ GIM_Reject,
6070 /* 6083 */ // Label 69: @6083
6071 /* 6083 */ GIM_Try, /*On fail goto*//*Label 326*/ GIMT_Encode4(6094), // Rule ID 14 //
6072 /* 6088 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule14Enabled),
6073 /* 6091 */ // MIs[0] dst
6074 /* 6091 */ // No operand predicates
6075 /* 6091 */ // MIs[0] src0
6076 /* 6091 */ // No operand predicates
6077 /* 6091 */ // Combiner Rule #14: constant_fold_fabs
6078 /* 6091 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner5),
6079 /* 6094 */ // Label 326: @6094
6080 /* 6094 */ GIM_Reject,
6081 /* 6095 */ // Label 70: @6095
6082 /* 6095 */ GIM_Try, /*On fail goto*//*Label 327*/ GIMT_Encode4(6106), // Rule ID 117 //
6083 /* 6100 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule86Enabled),
6084 /* 6103 */ // MIs[0] d
6085 /* 6103 */ // No operand predicates
6086 /* 6103 */ // MIs[0] mi.src0
6087 /* 6103 */ // No operand predicates
6088 /* 6103 */ // MIs[0] mi.src1
6089 /* 6103 */ // No operand predicates
6090 /* 6103 */ // Combiner Rule #86: constant_fold_fp_binop @ [mi[5]]
6091 /* 6103 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner40),
6092 /* 6106 */ // Label 327: @6106
6093 /* 6106 */ GIM_Reject,
6094 /* 6107 */ // Label 71: @6107
6095 /* 6107 */ GIM_Try, /*On fail goto*//*Label 328*/ GIMT_Encode4(6132), // Rule ID 242 //
6096 /* 6112 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule160Enabled),
6097 /* 6115 */ // MIs[0] dst
6098 /* 6115 */ // No operand predicates
6099 /* 6115 */ // MIs[0] lhs
6100 /* 6115 */ // No operand predicates
6101 /* 6115 */ // MIs[0] rhs
6102 /* 6115 */ // No operand predicates
6103 /* 6115 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner29),
6104 /* 6119 */ // Combiner Rule #160: G_FMINNUM_commute_fp_constant_to_rhs
6105 /* 6119 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FMINNUM),
6106 /* 6122 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
6107 /* 6124 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
6108 /* 6126 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
6109 /* 6128 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
6110 /* 6131 */ GIR_EraseRootFromParent_Done,
6111 /* 6132 */ // Label 328: @6132
6112 /* 6132 */ GIM_Try, /*On fail goto*//*Label 329*/ GIMT_Encode4(6143), // Rule ID 118 //
6113 /* 6137 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule86Enabled),
6114 /* 6140 */ // MIs[0] d
6115 /* 6140 */ // No operand predicates
6116 /* 6140 */ // MIs[0] mi.src0
6117 /* 6140 */ // No operand predicates
6118 /* 6140 */ // MIs[0] mi.src1
6119 /* 6140 */ // No operand predicates
6120 /* 6140 */ // Combiner Rule #86: constant_fold_fp_binop @ [mi[6]]
6121 /* 6140 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner40),
6122 /* 6143 */ // Label 329: @6143
6123 /* 6143 */ GIM_Reject,
6124 /* 6144 */ // Label 72: @6144
6125 /* 6144 */ GIM_Try, /*On fail goto*//*Label 330*/ GIMT_Encode4(6169), // Rule ID 243 //
6126 /* 6149 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule161Enabled),
6127 /* 6152 */ // MIs[0] dst
6128 /* 6152 */ // No operand predicates
6129 /* 6152 */ // MIs[0] lhs
6130 /* 6152 */ // No operand predicates
6131 /* 6152 */ // MIs[0] rhs
6132 /* 6152 */ // No operand predicates
6133 /* 6152 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner29),
6134 /* 6156 */ // Combiner Rule #161: G_FMAXNUM_commute_fp_constant_to_rhs
6135 /* 6156 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FMAXNUM),
6136 /* 6159 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
6137 /* 6161 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
6138 /* 6163 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
6139 /* 6165 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
6140 /* 6168 */ GIR_EraseRootFromParent_Done,
6141 /* 6169 */ // Label 330: @6169
6142 /* 6169 */ GIM_Try, /*On fail goto*//*Label 331*/ GIMT_Encode4(6180), // Rule ID 119 //
6143 /* 6174 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule86Enabled),
6144 /* 6177 */ // MIs[0] d
6145 /* 6177 */ // No operand predicates
6146 /* 6177 */ // MIs[0] mi.src0
6147 /* 6177 */ // No operand predicates
6148 /* 6177 */ // MIs[0] mi.src1
6149 /* 6177 */ // No operand predicates
6150 /* 6177 */ // Combiner Rule #86: constant_fold_fp_binop @ [mi[7]]
6151 /* 6177 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner40),
6152 /* 6180 */ // Label 331: @6180
6153 /* 6180 */ GIM_Reject,
6154 /* 6181 */ // Label 73: @6181
6155 /* 6181 */ GIM_Try, /*On fail goto*//*Label 332*/ GIMT_Encode4(6206), // Rule ID 244 //
6156 /* 6186 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule162Enabled),
6157 /* 6189 */ // MIs[0] dst
6158 /* 6189 */ // No operand predicates
6159 /* 6189 */ // MIs[0] lhs
6160 /* 6189 */ // No operand predicates
6161 /* 6189 */ // MIs[0] rhs
6162 /* 6189 */ // No operand predicates
6163 /* 6189 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner29),
6164 /* 6193 */ // Combiner Rule #162: G_FMINNUM_IEEE_commute_fp_constant_to_rhs
6165 /* 6193 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FMINNUM_IEEE),
6166 /* 6196 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
6167 /* 6198 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
6168 /* 6200 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
6169 /* 6202 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
6170 /* 6205 */ GIR_EraseRootFromParent_Done,
6171 /* 6206 */ // Label 332: @6206
6172 /* 6206 */ GIM_Reject,
6173 /* 6207 */ // Label 74: @6207
6174 /* 6207 */ GIM_Try, /*On fail goto*//*Label 333*/ GIMT_Encode4(6232), // Rule ID 245 //
6175 /* 6212 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule163Enabled),
6176 /* 6215 */ // MIs[0] dst
6177 /* 6215 */ // No operand predicates
6178 /* 6215 */ // MIs[0] lhs
6179 /* 6215 */ // No operand predicates
6180 /* 6215 */ // MIs[0] rhs
6181 /* 6215 */ // No operand predicates
6182 /* 6215 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner29),
6183 /* 6219 */ // Combiner Rule #163: G_FMAXNUM_IEEE_commute_fp_constant_to_rhs
6184 /* 6219 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FMAXNUM_IEEE),
6185 /* 6222 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
6186 /* 6224 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
6187 /* 6226 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
6188 /* 6228 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
6189 /* 6231 */ GIR_EraseRootFromParent_Done,
6190 /* 6232 */ // Label 333: @6232
6191 /* 6232 */ GIM_Reject,
6192 /* 6233 */ // Label 75: @6233
6193 /* 6233 */ GIM_Try, /*On fail goto*//*Label 334*/ GIMT_Encode4(6258), // Rule ID 246 //
6194 /* 6238 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule164Enabled),
6195 /* 6241 */ // MIs[0] dst
6196 /* 6241 */ // No operand predicates
6197 /* 6241 */ // MIs[0] lhs
6198 /* 6241 */ // No operand predicates
6199 /* 6241 */ // MIs[0] rhs
6200 /* 6241 */ // No operand predicates
6201 /* 6241 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner29),
6202 /* 6245 */ // Combiner Rule #164: G_FMINIMUM_commute_fp_constant_to_rhs
6203 /* 6245 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FMINIMUM),
6204 /* 6248 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
6205 /* 6250 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
6206 /* 6252 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
6207 /* 6254 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
6208 /* 6257 */ GIR_EraseRootFromParent_Done,
6209 /* 6258 */ // Label 334: @6258
6210 /* 6258 */ GIM_Try, /*On fail goto*//*Label 335*/ GIMT_Encode4(6269), // Rule ID 120 //
6211 /* 6263 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule86Enabled),
6212 /* 6266 */ // MIs[0] d
6213 /* 6266 */ // No operand predicates
6214 /* 6266 */ // MIs[0] mi.src0
6215 /* 6266 */ // No operand predicates
6216 /* 6266 */ // MIs[0] mi.src1
6217 /* 6266 */ // No operand predicates
6218 /* 6266 */ // Combiner Rule #86: constant_fold_fp_binop @ [mi[8]]
6219 /* 6266 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner40),
6220 /* 6269 */ // Label 335: @6269
6221 /* 6269 */ GIM_Reject,
6222 /* 6270 */ // Label 76: @6270
6223 /* 6270 */ GIM_Try, /*On fail goto*//*Label 336*/ GIMT_Encode4(6295), // Rule ID 247 //
6224 /* 6275 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule165Enabled),
6225 /* 6278 */ // MIs[0] dst
6226 /* 6278 */ // No operand predicates
6227 /* 6278 */ // MIs[0] lhs
6228 /* 6278 */ // No operand predicates
6229 /* 6278 */ // MIs[0] rhs
6230 /* 6278 */ // No operand predicates
6231 /* 6278 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner29),
6232 /* 6282 */ // Combiner Rule #165: G_FMAXIMUM_commute_fp_constant_to_rhs
6233 /* 6282 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FMAXIMUM),
6234 /* 6285 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
6235 /* 6287 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
6236 /* 6289 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
6237 /* 6291 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
6238 /* 6294 */ GIR_EraseRootFromParent_Done,
6239 /* 6295 */ // Label 336: @6295
6240 /* 6295 */ GIM_Try, /*On fail goto*//*Label 337*/ GIMT_Encode4(6306), // Rule ID 121 //
6241 /* 6300 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule86Enabled),
6242 /* 6303 */ // MIs[0] d
6243 /* 6303 */ // No operand predicates
6244 /* 6303 */ // MIs[0] mi.src0
6245 /* 6303 */ // No operand predicates
6246 /* 6303 */ // MIs[0] mi.src1
6247 /* 6303 */ // No operand predicates
6248 /* 6303 */ // Combiner Rule #86: constant_fold_fp_binop @ [mi[9]]
6249 /* 6303 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner40),
6250 /* 6306 */ // Label 337: @6306
6251 /* 6306 */ GIM_Reject,
6252 /* 6307 */ // Label 77: @6307
6253 /* 6307 */ GIM_Try, /*On fail goto*//*Label 338*/ GIMT_Encode4(6318), // Rule ID 122 //
6254 /* 6312 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule86Enabled),
6255 /* 6315 */ // MIs[0] d
6256 /* 6315 */ // No operand predicates
6257 /* 6315 */ // MIs[0] mi.src0
6258 /* 6315 */ // No operand predicates
6259 /* 6315 */ // MIs[0] mi.src1
6260 /* 6315 */ // No operand predicates
6261 /* 6315 */ // Combiner Rule #86: constant_fold_fp_binop @ [mi[10]]
6262 /* 6315 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner40),
6263 /* 6318 */ // Label 338: @6318
6264 /* 6318 */ GIM_Reject,
6265 /* 6319 */ // Label 78: @6319
6266 /* 6319 */ GIM_Try, /*On fail goto*//*Label 339*/ GIMT_Encode4(6330), // Rule ID 123 //
6267 /* 6324 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule86Enabled),
6268 /* 6327 */ // MIs[0] d
6269 /* 6327 */ // No operand predicates
6270 /* 6327 */ // MIs[0] mi.src0
6271 /* 6327 */ // No operand predicates
6272 /* 6327 */ // MIs[0] mi.src1
6273 /* 6327 */ // No operand predicates
6274 /* 6327 */ // Combiner Rule #86: constant_fold_fp_binop @ [mi[11]]
6275 /* 6327 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner40),
6276 /* 6330 */ // Label 339: @6330
6277 /* 6330 */ GIM_Reject,
6278 /* 6331 */ // Label 79: @6331
6279 /* 6331 */ GIM_Try, /*On fail goto*//*Label 340*/ GIMT_Encode4(6354), // Rule ID 136 //
6280 /* 6336 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled),
6281 /* 6339 */ // MIs[0] dst
6282 /* 6339 */ // No operand predicates
6283 /* 6339 */ // MIs[0] lhs
6284 /* 6339 */ // No operand predicates
6285 /* 6339 */ // MIs[0] Operand 2
6286 /* 6339 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
6287 /* 6343 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6288 /* 6348 */ // Combiner Rule #90: right_identity_zero @ [__right_identity_zero_match_0[7]]
6289 /* 6348 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6290 /* 6353 */ GIR_EraseRootFromParent_Done,
6291 /* 6354 */ // Label 340: @6354
6292 /* 6354 */ GIM_Try, /*On fail goto*//*Label 341*/ GIMT_Encode4(6365), // Rule ID 95 //
6293 /* 6359 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule85Enabled),
6294 /* 6362 */ // MIs[0] d
6295 /* 6362 */ // No operand predicates
6296 /* 6362 */ // MIs[0] mi.src0
6297 /* 6362 */ // No operand predicates
6298 /* 6362 */ // MIs[0] mi.src1
6299 /* 6362 */ // No operand predicates
6300 /* 6362 */ // Combiner Rule #85: constant_fold_binop @ [mi[1]]
6301 /* 6362 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner39),
6302 /* 6365 */ // Label 341: @6365
6303 /* 6365 */ GIM_Try, /*On fail goto*//*Label 342*/ GIMT_Encode4(6376), // Rule ID 172 //
6304 /* 6370 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule114Enabled),
6305 /* 6373 */ // MIs[0] dst
6306 /* 6373 */ // No operand predicates
6307 /* 6373 */ // MIs[0] base
6308 /* 6373 */ // No operand predicates
6309 /* 6373 */ // MIs[0] offset
6310 /* 6373 */ // No operand predicates
6311 /* 6373 */ // Combiner Rule #114: ptr_add_immed_chain
6312 /* 6373 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner46),
6313 /* 6376 */ // Label 342: @6376
6314 /* 6376 */ GIM_Reject,
6315 /* 6377 */ // Label 80: @6377
6316 /* 6377 */ GIM_Try, /*On fail goto*//*Label 343*/ GIMT_Encode4(6402), // Rule ID 224 //
6317 /* 6382 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule142Enabled),
6318 /* 6385 */ // MIs[0] dst
6319 /* 6385 */ // No operand predicates
6320 /* 6385 */ // MIs[0] lhs
6321 /* 6385 */ // No operand predicates
6322 /* 6385 */ // MIs[0] rhs
6323 /* 6385 */ // No operand predicates
6324 /* 6385 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner28),
6325 /* 6389 */ // Combiner Rule #142: G_SMIN_commute_constant_to_rhs
6326 /* 6389 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SMIN),
6327 /* 6392 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
6328 /* 6394 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
6329 /* 6396 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
6330 /* 6398 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
6331 /* 6401 */ GIR_EraseRootFromParent_Done,
6332 /* 6402 */ // Label 343: @6402
6333 /* 6402 */ GIM_Try, /*On fail goto*//*Label 344*/ GIMT_Encode4(6413), // Rule ID 108 //
6334 /* 6407 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule85Enabled),
6335 /* 6410 */ // MIs[0] d
6336 /* 6410 */ // No operand predicates
6337 /* 6410 */ // MIs[0] mi.src0
6338 /* 6410 */ // No operand predicates
6339 /* 6410 */ // MIs[0] mi.src1
6340 /* 6410 */ // No operand predicates
6341 /* 6410 */ // Combiner Rule #85: constant_fold_binop @ [mi[14]]
6342 /* 6410 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner39),
6343 /* 6413 */ // Label 344: @6413
6344 /* 6413 */ GIM_Reject,
6345 /* 6414 */ // Label 81: @6414
6346 /* 6414 */ GIM_Try, /*On fail goto*//*Label 345*/ GIMT_Encode4(6439), // Rule ID 225 //
6347 /* 6419 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule143Enabled),
6348 /* 6422 */ // MIs[0] dst
6349 /* 6422 */ // No operand predicates
6350 /* 6422 */ // MIs[0] lhs
6351 /* 6422 */ // No operand predicates
6352 /* 6422 */ // MIs[0] rhs
6353 /* 6422 */ // No operand predicates
6354 /* 6422 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner28),
6355 /* 6426 */ // Combiner Rule #143: G_SMAX_commute_constant_to_rhs
6356 /* 6426 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SMAX),
6357 /* 6429 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
6358 /* 6431 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
6359 /* 6433 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
6360 /* 6435 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
6361 /* 6438 */ GIR_EraseRootFromParent_Done,
6362 /* 6439 */ // Label 345: @6439
6363 /* 6439 */ GIM_Try, /*On fail goto*//*Label 346*/ GIMT_Encode4(6450), // Rule ID 109 //
6364 /* 6444 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule85Enabled),
6365 /* 6447 */ // MIs[0] d
6366 /* 6447 */ // No operand predicates
6367 /* 6447 */ // MIs[0] mi.src0
6368 /* 6447 */ // No operand predicates
6369 /* 6447 */ // MIs[0] mi.src1
6370 /* 6447 */ // No operand predicates
6371 /* 6447 */ // Combiner Rule #85: constant_fold_binop @ [mi[15]]
6372 /* 6447 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner39),
6373 /* 6450 */ // Label 346: @6450
6374 /* 6450 */ GIM_Reject,
6375 /* 6451 */ // Label 82: @6451
6376 /* 6451 */ GIM_Try, /*On fail goto*//*Label 347*/ GIMT_Encode4(6476), // Rule ID 226 //
6377 /* 6456 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule144Enabled),
6378 /* 6459 */ // MIs[0] dst
6379 /* 6459 */ // No operand predicates
6380 /* 6459 */ // MIs[0] lhs
6381 /* 6459 */ // No operand predicates
6382 /* 6459 */ // MIs[0] rhs
6383 /* 6459 */ // No operand predicates
6384 /* 6459 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner28),
6385 /* 6463 */ // Combiner Rule #144: G_UMIN_commute_constant_to_rhs
6386 /* 6463 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UMIN),
6387 /* 6466 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
6388 /* 6468 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
6389 /* 6470 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
6390 /* 6472 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
6391 /* 6475 */ GIR_EraseRootFromParent_Done,
6392 /* 6476 */ // Label 347: @6476
6393 /* 6476 */ GIM_Try, /*On fail goto*//*Label 348*/ GIMT_Encode4(6487), // Rule ID 110 //
6394 /* 6481 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule85Enabled),
6395 /* 6484 */ // MIs[0] d
6396 /* 6484 */ // No operand predicates
6397 /* 6484 */ // MIs[0] mi.src0
6398 /* 6484 */ // No operand predicates
6399 /* 6484 */ // MIs[0] mi.src1
6400 /* 6484 */ // No operand predicates
6401 /* 6484 */ // Combiner Rule #85: constant_fold_binop @ [mi[16]]
6402 /* 6484 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner39),
6403 /* 6487 */ // Label 348: @6487
6404 /* 6487 */ GIM_Reject,
6405 /* 6488 */ // Label 83: @6488
6406 /* 6488 */ GIM_Try, /*On fail goto*//*Label 349*/ GIMT_Encode4(6513), // Rule ID 227 //
6407 /* 6493 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule145Enabled),
6408 /* 6496 */ // MIs[0] dst
6409 /* 6496 */ // No operand predicates
6410 /* 6496 */ // MIs[0] lhs
6411 /* 6496 */ // No operand predicates
6412 /* 6496 */ // MIs[0] rhs
6413 /* 6496 */ // No operand predicates
6414 /* 6496 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner28),
6415 /* 6500 */ // Combiner Rule #145: G_UMAX_commute_constant_to_rhs
6416 /* 6500 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UMAX),
6417 /* 6503 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
6418 /* 6505 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
6419 /* 6507 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
6420 /* 6509 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
6421 /* 6512 */ GIR_EraseRootFromParent_Done,
6422 /* 6513 */ // Label 349: @6513
6423 /* 6513 */ GIM_Try, /*On fail goto*//*Label 350*/ GIMT_Encode4(6524), // Rule ID 111 //
6424 /* 6518 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule85Enabled),
6425 /* 6521 */ // MIs[0] d
6426 /* 6521 */ // No operand predicates
6427 /* 6521 */ // MIs[0] mi.src0
6428 /* 6521 */ // No operand predicates
6429 /* 6521 */ // MIs[0] mi.src1
6430 /* 6521 */ // No operand predicates
6431 /* 6521 */ // Combiner Rule #85: constant_fold_binop @ [mi[17]]
6432 /* 6521 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner39),
6433 /* 6524 */ // Label 350: @6524
6434 /* 6524 */ GIM_Reject,
6435 /* 6525 */ // Label 84: @6525
6436 /* 6525 */ GIM_Try, /*On fail goto*//*Label 351*/ GIMT_Encode4(6546), // Rule ID 194 //
6437 /* 6530 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule123Enabled),
6438 /* 6533 */ // MIs[0] dst
6439 /* 6533 */ // No operand predicates
6440 /* 6533 */ // MIs[0] __unary_undef_to_zero_match_0.x
6441 /* 6533 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6442 /* 6537 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
6443 /* 6541 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6444 /* 6543 */ // Combiner Rule #123: unary_undef_to_zero @ [__unary_undef_to_zero_match_0[0]]
6445 /* 6543 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner50),
6446 /* 6546 */ // Label 351: @6546
6447 /* 6546 */ GIM_Reject,
6448 /* 6547 */ // Label 85: @6547
6449 /* 6547 */ GIM_Try, /*On fail goto*//*Label 352*/ GIMT_Encode4(6565), // Rule ID 212 //
6450 /* 6552 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule130Enabled),
6451 /* 6555 */ // MIs[0] root
6452 /* 6555 */ // No operand predicates
6453 /* 6555 */ // MIs[0] vec
6454 /* 6555 */ // No operand predicates
6455 /* 6555 */ // MIs[0] elt
6456 /* 6555 */ // No operand predicates
6457 /* 6555 */ // MIs[0] idx
6458 /* 6555 */ // No operand predicates
6459 /* 6555 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner26),
6460 /* 6559 */ // Combiner Rule #130: insert_vec_elt_out_of_bounds
6461 /* 6559 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
6462 /* 6562 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
6463 /* 6564 */ GIR_EraseRootFromParent_Done,
6464 /* 6565 */ // Label 352: @6565
6465 /* 6565 */ GIM_Reject,
6466 /* 6566 */ // Label 86: @6566
6467 /* 6566 */ GIM_Try, /*On fail goto*//*Label 353*/ GIMT_Encode4(6584), // Rule ID 213 //
6468 /* 6571 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule131Enabled),
6469 /* 6574 */ // MIs[0] root
6470 /* 6574 */ // No operand predicates
6471 /* 6574 */ // MIs[0] vec
6472 /* 6574 */ // No operand predicates
6473 /* 6574 */ // MIs[0] idx
6474 /* 6574 */ // No operand predicates
6475 /* 6574 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner26),
6476 /* 6578 */ // Combiner Rule #131: extract_vec_elt_out_of_bounds
6477 /* 6578 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
6478 /* 6581 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
6479 /* 6583 */ GIR_EraseRootFromParent_Done,
6480 /* 6584 */ // Label 353: @6584
6481 /* 6584 */ GIM_Try, /*On fail goto*//*Label 354*/ GIMT_Encode4(6595), // Rule ID 48 //
6482 /* 6589 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule42Enabled),
6483 /* 6592 */ // MIs[0] dst
6484 /* 6592 */ // No operand predicates
6485 /* 6592 */ // MIs[0] src
6486 /* 6592 */ // No operand predicates
6487 /* 6592 */ // MIs[0] idx
6488 /* 6592 */ // No operand predicates
6489 /* 6592 */ // Combiner Rule #42: extractvecelt_pairwise_add
6490 /* 6592 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner16),
6491 /* 6595 */ // Label 354: @6595
6492 /* 6595 */ GIM_Try, /*On fail goto*//*Label 355*/ GIMT_Encode4(6606), // Rule ID 248 //
6493 /* 6600 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule166Enabled),
6494 /* 6603 */ // MIs[0] dst
6495 /* 6603 */ // No operand predicates
6496 /* 6603 */ // MIs[0] src
6497 /* 6603 */ // No operand predicates
6498 /* 6603 */ // MIs[0] idx
6499 /* 6603 */ // No operand predicates
6500 /* 6603 */ // Combiner Rule #166: extract_vec_elt_build_vec
6501 /* 6603 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner56),
6502 /* 6606 */ // Label 355: @6606
6503 /* 6606 */ GIM_Reject,
6504 /* 6607 */ // Label 87: @6607
6505 /* 6607 */ GIM_Try, /*On fail goto*//*Label 356*/ GIMT_Encode4(6625), // Rule ID 208 //
6506 /* 6612 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule126Enabled),
6507 /* 6615 */ // MIs[0] root
6508 /* 6615 */ // No operand predicates
6509 /* 6615 */ // MIs[0] src1
6510 /* 6615 */ // No operand predicates
6511 /* 6615 */ // MIs[0] src2
6512 /* 6615 */ // No operand predicates
6513 /* 6615 */ // MIs[0] mask
6514 /* 6615 */ // No operand predicates
6515 /* 6615 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner23),
6516 /* 6619 */ // Combiner Rule #126: propagate_undef_all_ops_shuffle_vector
6517 /* 6619 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
6518 /* 6622 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
6519 /* 6624 */ GIR_EraseRootFromParent_Done,
6520 /* 6625 */ // Label 356: @6625
6521 /* 6625 */ GIM_Try, /*On fail goto*//*Label 357*/ GIMT_Encode4(6643), // Rule ID 210 //
6522 /* 6630 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule128Enabled),
6523 /* 6633 */ // MIs[0] dst
6524 /* 6633 */ // No operand predicates
6525 /* 6633 */ // MIs[0] src1
6526 /* 6633 */ // No operand predicates
6527 /* 6633 */ // MIs[0] src2
6528 /* 6633 */ // No operand predicates
6529 /* 6633 */ // MIs[0] mask
6530 /* 6633 */ // No operand predicates
6531 /* 6633 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner24),
6532 /* 6637 */ // Combiner Rule #128: propagate_undef_shuffle_mask
6533 /* 6637 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
6534 /* 6640 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
6535 /* 6642 */ GIR_EraseRootFromParent_Done,
6536 /* 6643 */ // Label 357: @6643
6537 /* 6643 */ GIM_Try, /*On fail goto*//*Label 358*/ GIMT_Encode4(6678), // Rule ID 31 //
6538 /* 6648 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule31Enabled),
6539 /* 6651 */ // MIs[0] dst
6540 /* 6651 */ // No operand predicates
6541 /* 6651 */ // MIs[0] src1
6542 /* 6651 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6543 /* 6655 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR),
6544 /* 6659 */ GIM_CheckNumOperandsGE, /*MI*/1, /*Expected*/2,
6545 /* 6662 */ // MIs[1] unused1
6546 /* 6662 */ // No operand predicates
6547 /* 6662 */ // MIs[0] src2
6548 /* 6662 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
6549 /* 6666 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR),
6550 /* 6670 */ GIM_CheckNumOperandsGE, /*MI*/2, /*Expected*/2,
6551 /* 6673 */ // MIs[2] unused2
6552 /* 6673 */ // No operand predicates
6553 /* 6673 */ // MIs[0] mask
6554 /* 6673 */ // No operand predicates
6555 /* 6673 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
6556 /* 6675 */ // Combiner Rule #31: combine_shuffle_of_buildvectors_to_buildvector
6557 /* 6675 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner9),
6558 /* 6678 */ // Label 358: @6678
6559 /* 6678 */ GIM_Try, /*On fail goto*//*Label 359*/ GIMT_Encode4(6710), // Rule ID 30 //
6560 /* 6683 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule30Enabled),
6561 /* 6686 */ // MIs[0] dst
6562 /* 6686 */ // No operand predicates
6563 /* 6686 */ // MIs[0] src1
6564 /* 6686 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6565 /* 6690 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR),
6566 /* 6694 */ GIM_CheckNumOperandsGE, /*MI*/1, /*Expected*/2,
6567 /* 6697 */ // MIs[1] unused
6568 /* 6697 */ // No operand predicates
6569 /* 6697 */ // MIs[0] src2
6570 /* 6697 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
6571 /* 6701 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
6572 /* 6705 */ // MIs[0] mask
6573 /* 6705 */ // No operand predicates
6574 /* 6705 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
6575 /* 6707 */ // Combiner Rule #30: combine_shuffle_of_buildvector_to_buildvector
6576 /* 6707 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner9),
6577 /* 6710 */ // Label 359: @6710
6578 /* 6710 */ GIM_Reject,
6579 /* 6711 */ // Label 88: @6711
6580 /* 6711 */ GIM_Try, /*On fail goto*//*Label 360*/ GIMT_Encode4(6722), // Rule ID 19 //
6581 /* 6716 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule19Enabled),
6582 /* 6719 */ // MIs[0] dst
6583 /* 6719 */ // No operand predicates
6584 /* 6719 */ // MIs[0] src0
6585 /* 6719 */ // No operand predicates
6586 /* 6719 */ // Combiner Rule #19: constant_fold_fceil
6587 /* 6719 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner5),
6588 /* 6722 */ // Label 360: @6722
6589 /* 6722 */ GIM_Reject,
6590 /* 6723 */ // Label 89: @6723
6591 /* 6723 */ GIM_Try, /*On fail goto*//*Label 361*/ GIMT_Encode4(6734), // Rule ID 15 //
6592 /* 6728 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule15Enabled),
6593 /* 6731 */ // MIs[0] dst
6594 /* 6731 */ // No operand predicates
6595 /* 6731 */ // MIs[0] src0
6596 /* 6731 */ // No operand predicates
6597 /* 6731 */ // Combiner Rule #15: constant_fold_fsqrt
6598 /* 6731 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner5),
6599 /* 6734 */ // Label 361: @6734
6600 /* 6734 */ GIM_Reject,
6601 /* 6735 */ // Label 90: @6735
6602 /* 6735 */ GIM_Try, /*On fail goto*//*Label 362*/ GIMT_Encode4(6746), // Rule ID 20 //
6603 /* 6740 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule20Enabled),
6604 /* 6743 */ // MIs[0] dst
6605 /* 6743 */ // No operand predicates
6606 /* 6743 */ // MIs[0] src0
6607 /* 6743 */ // No operand predicates
6608 /* 6743 */ // Combiner Rule #20: constant_fold_ffloor
6609 /* 6743 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner5),
6610 /* 6746 */ // Label 362: @6746
6611 /* 6746 */ GIM_Reject,
6612 /* 6747 */ // Label 91: @6747
6613 /* 6747 */ GIM_Try, /*On fail goto*//*Label 363*/ GIMT_Encode4(6758), // Rule ID 24 //
6614 /* 6752 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule24Enabled),
6615 /* 6755 */ // MIs[0] dst
6616 /* 6755 */ // No operand predicates
6617 /* 6755 */ // MIs[0] src0
6618 /* 6755 */ // No operand predicates
6619 /* 6755 */ // Combiner Rule #24: constant_fold_frint
6620 /* 6755 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner5),
6621 /* 6758 */ // Label 363: @6758
6622 /* 6758 */ GIM_Reject,
6623 /* 6759 */ // Label 92: @6759
6624 /* 6759 */ GIM_Try, /*On fail goto*//*Label 364*/ GIMT_Encode4(6770), // Rule ID 25 //
6625 /* 6764 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule25Enabled),
6626 /* 6767 */ // MIs[0] dst
6627 /* 6767 */ // No operand predicates
6628 /* 6767 */ // MIs[0] src0
6629 /* 6767 */ // No operand predicates
6630 /* 6767 */ // Combiner Rule #25: constant_fold_fnearbyint
6631 /* 6767 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner5),
6632 /* 6770 */ // Label 364: @6770
6633 /* 6770 */ GIM_Reject,
6634 /* 6771 */ // Label 93: @6771
6635 /* 6771 */ GIM_Try, /*On fail goto*//*Label 365*/ GIMT_Encode4(6796), // Rule ID 63 //
6636 /* 6776 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule55Enabled),
6637 /* 6779 */ // MIs[0] dst
6638 /* 6779 */ // No operand predicates
6639 /* 6779 */ // MIs[0] src
6640 /* 6779 */ // No operand predicates
6641 /* 6779 */ // MIs[0] lsb
6642 /* 6779 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
6643 /* 6783 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
6644 /* 6787 */ // MIs[1] lsbimm
6645 /* 6787 */ // No operand predicates
6646 /* 6787 */ // MIs[0] Operand 3
6647 /* 6787 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/3, 1,
6648 /* 6791 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6649 /* 6793 */ // Combiner Rule #55: ubfx_sign_bit_to_lshr
6650 /* 6793 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner24),
6651 /* 6796 */ // Label 365: @6796
6652 /* 6796 */ GIM_Reject,
6653 /* 6797 */ // Label 94: @6797
6654 /* 6797 */ GIM_Reject,
6655 /* 6798 */ }; // Size: 6798 bytes
6656 return MatchTable0;
6657}
6658#undef GIMT_Encode2
6659#undef GIMT_Encode4
6660#undef GIMT_Encode8
6661
6662LLT AArch64PostLegalizerCombinerImpl::getLLTForHwMode(unsigned Index) const {
6663 llvm_unreachable("Unexpected index");
6664}
6665
6666
6667#endif // GET_GICOMBINER_IMPL
6668
6669#ifdef GET_GICOMBINER_CONSTRUCTOR_INITS
6670
6671AvailableModuleFeatures(computeAvailableModuleFeatures(&STI)),
6672AvailableFunctionFeatures()
6673
6674#endif // GET_GICOMBINER_CONSTRUCTOR_INITS
6675
6676#ifdef GET_GICOMBINER_CONSTRUCTOR_INITS
6677
6678, State(0),
6679ExecInfo(TypeObjects, NumTypeObjects, FeatureBitsets, ComplexPredicateFns, CustomRenderers)
6680
6681#endif // GET_GICOMBINER_CONSTRUCTOR_INITS
6682
6683