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