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
11#include "llvm/ADT/SparseBitVector.h"
12namespace llvm {
13
14extern cl::OptionCategory GICombinerOptionCategory;
15
16} // namespace llvm
17
18#endif // GET_GICOMBINER_DEPS
19
20#ifdef GET_GICOMBINER_TYPES
21
22struct RISCVPreLegalizerCombinerImplRuleConfig {
23 SparseBitVector<> DisabledRules;
24
25 bool isRuleEnabled(unsigned RuleID) const;
26 bool parseCommandLineOption();
27 bool setRuleEnabled(StringRef RuleIdentifier);
28 bool setRuleDisabled(StringRef RuleIdentifier);
29};
30
31static std::optional<uint64_t> getRuleIdxForIdentifier(StringRef RuleIdentifier) {
32 uint64_t I;
33 // getAtInteger(...) returns false on success
34 bool Parsed = !RuleIdentifier.getAsInteger(0, I);
35 if (Parsed)
36 return I;
37
38#ifndef NDEBUG
39 switch (RuleIdentifier.size()) {
40 default: break;
41 case 9: // 7 strings to match.
42 switch (RuleIdentifier[0]) {
43 default: break;
44 case 'a': // 1 string to match.
45 if (memcmp(RuleIdentifier.data()+1, "dd_shift", 8) != 0)
46 break;
47 return 256; // "add_shift"
48 case 'c': // 1 string to match.
49 if (memcmp(RuleIdentifier.data()+1, "opy_prop", 8) != 0)
50 break;
51 return 19; // "copy_prop"
52 case 'm': // 3 strings to match.
53 switch (RuleIdentifier[1]) {
54 default: break;
55 case 'a': // 1 string to match.
56 if (memcmp(RuleIdentifier.data()+2, "tch_ors", 7) != 0)
57 break;
58 return 219; // "match_ors"
59 case 'u': // 2 strings to match.
60 if (memcmp(RuleIdentifier.data()+2, "lo_by_", 6) != 0)
61 break;
62 switch (RuleIdentifier[8]) {
63 default: break;
64 case '0': // 1 string to match.
65 return 163; // "mulo_by_0"
66 case '2': // 1 string to match.
67 return 162; // "mulo_by_2"
68 }
69 break;
70 }
71 break;
72 case 'n': // 1 string to match.
73 if (memcmp(RuleIdentifier.data()+1, "neg_zext", 8) != 0)
74 break;
75 return 230; // "nneg_zext"
76 case 'o': // 1 string to match.
77 if (memcmp(RuleIdentifier.data()+1, "r_xor_or", 8) != 0)
78 break;
79 return 224; // "or_xor_or"
80 }
81 break;
82 case 10: // 11 strings to match.
83 switch (RuleIdentifier[0]) {
84 default: break;
85 case 'S': // 2 strings to match.
86 if (memcmp(RuleIdentifier.data()+1, "ub", 2) != 0)
87 break;
88 switch (RuleIdentifier[3]) {
89 default: break;
90 case 'S': // 1 string to match.
91 if (memcmp(RuleIdentifier.data()+4, "maxSub", 6) != 0)
92 break;
93 return 261; // "SubSmaxSub"
94 case 'U': // 1 string to match.
95 if (memcmp(RuleIdentifier.data()+4, "maxSub", 6) != 0)
96 break;
97 return 262; // "SubUmaxSub"
98 }
99 break;
100 case 'i': // 1 string to match.
101 if (memcmp(RuleIdentifier.data()+1, "2p_to_p2i", 9) != 0)
102 break;
103 return 96; // "i2p_to_p2i"
104 case 'm': // 2 strings to match.
105 switch (RuleIdentifier[1]) {
106 default: break;
107 case 'a': // 1 string to match.
108 if (memcmp(RuleIdentifier.data()+2, "tch_ands", 8) != 0)
109 break;
110 return 218; // "match_ands"
111 case 'u': // 1 string to match.
112 if (memcmp(RuleIdentifier.data()+2, "l_to_shl", 8) != 0)
113 break;
114 return 20; // "mul_to_shl"
115 }
116 break;
117 case 'o': // 1 string to match.
118 if (memcmp(RuleIdentifier.data()+1, "r_xor_and", 9) != 0)
119 break;
120 return 225; // "or_xor_and"
121 case 'p': // 1 string to match.
122 if (memcmp(RuleIdentifier.data()+1, "2i_to_i2p", 9) != 0)
123 break;
124 return 95; // "p2i_to_i2p"
125 case 's': // 3 strings to match.
126 switch (RuleIdentifier[1]) {
127 default: break;
128 case 'e': // 2 strings to match.
129 switch (RuleIdentifier[2]) {
130 default: break;
131 case 'l': // 1 string to match.
132 if (memcmp(RuleIdentifier.data()+3, "ect_not", 7) != 0)
133 break;
134 return 135; // "select_not"
135 case 'x': // 1 string to match.
136 if (memcmp(RuleIdentifier.data()+3, "t_trunc", 7) != 0)
137 break;
138 return 228; // "sext_trunc"
139 }
140 break;
141 case 'u': // 1 string to match.
142 if (memcmp(RuleIdentifier.data()+2, "b_to_add", 8) != 0)
143 break;
144 return 21; // "sub_to_add"
145 }
146 break;
147 case 'z': // 1 string to match.
148 if (memcmp(RuleIdentifier.data()+1, "ext_trunc", 9) != 0)
149 break;
150 return 229; // "zext_trunc"
151 }
152 break;
153 case 11: // 8 strings to match.
154 switch (RuleIdentifier[0]) {
155 default: break;
156 case 'a': // 1 string to match.
157 if (memcmp(RuleIdentifier.data()+1, "dd_sub_reg", 10) != 0)
158 break;
159 return 101; // "add_sub_reg"
160 case 'm': // 1 string to match.
161 if (memcmp(RuleIdentifier.data()+1, "atch_addos", 10) != 0)
162 break;
163 return 245; // "match_addos"
164 case 's': // 1 string to match.
165 if (memcmp(RuleIdentifier.data()+1, "ub_add_reg", 10) != 0)
166 break;
167 return 213; // "sub_add_reg"
168 case 't': // 4 strings to match.
169 if (memcmp(RuleIdentifier.data()+1, "runc_", 5) != 0)
170 break;
171 switch (RuleIdentifier[6]) {
172 default: break;
173 case 's': // 3 strings to match.
174 switch (RuleIdentifier[7]) {
175 default: break;
176 case 'h': // 1 string to match.
177 if (memcmp(RuleIdentifier.data()+8, "ift", 3) != 0)
178 break;
179 return 142; // "trunc_shift"
180 case 's': // 2 strings to match.
181 if (memcmp(RuleIdentifier.data()+8, "at", 2) != 0)
182 break;
183 switch (RuleIdentifier[10]) {
184 default: break;
185 case 's': // 1 string to match.
186 return 247; // "trunc_ssats"
187 case 'u': // 1 string to match.
188 return 248; // "trunc_ssatu"
189 }
190 break;
191 }
192 break;
193 case 'u': // 1 string to match.
194 if (memcmp(RuleIdentifier.data()+7, "satu", 4) != 0)
195 break;
196 return 249; // "trunc_usatu"
197 }
198 break;
199 case 'u': // 1 string to match.
200 if (memcmp(RuleIdentifier.data()+1, "nmerge_cst", 10) != 0)
201 break;
202 return 238; // "unmerge_cst"
203 }
204 break;
205 case 12: // 12 strings to match.
206 switch (RuleIdentifier[0]) {
207 default: break;
208 case 'A': // 1 string to match.
209 if (memcmp(RuleIdentifier.data()+1, "PlusBMinusB", 11) != 0)
210 break;
211 return 4; // "APlusBMinusB"
212 case 'B': // 1 string to match.
213 if (memcmp(RuleIdentifier.data()+1, "MinusAPlusA", 11) != 0)
214 break;
215 return 5; // "BMinusAPlusA"
216 case 'a': // 1 string to match.
217 if (memcmp(RuleIdentifier.data()+1, "dde_to_addo", 11) != 0)
218 break;
219 return 164; // "adde_to_addo"
220 case 'c': // 1 string to match.
221 if (memcmp(RuleIdentifier.data()+1, "tlz_to_ctls", 11) != 0)
222 break;
223 return 252; // "ctlz_to_ctls"
224 case 'f': // 1 string to match.
225 if (memcmp(RuleIdentifier.data()+1, "sub_to_fneg", 11) != 0)
226 break;
227 return 215; // "fsub_to_fneg"
228 case 'm': // 1 string to match.
229 if (memcmp(RuleIdentifier.data()+1, "ulh_to_lshr", 11) != 0)
230 break;
231 return 193; // "mulh_to_lshr"
232 case 'n': // 1 string to match.
233 if (memcmp(RuleIdentifier.data()+1, "ot_cmp_fold", 11) != 0)
234 break;
235 return 143; // "not_cmp_fold"
236 case 'r': // 1 string to match.
237 if (memcmp(RuleIdentifier.data()+1, "edundant_or", 11) != 0)
238 break;
239 return 138; // "redundant_or"
240 case 's': // 2 strings to match.
241 switch (RuleIdentifier[1]) {
242 default: break;
243 case 'd': // 1 string to match.
244 if (memcmp(RuleIdentifier.data()+2, "iv_by_pow2", 10) != 0)
245 break;
246 return 209; // "sdiv_by_pow2"
247 case 'e': // 1 string to match.
248 if (memcmp(RuleIdentifier.data()+2, "xt_of_sext", 10) != 0)
249 break;
250 return 54; // "sext_of_sext"
251 }
252 break;
253 case 'u': // 1 string to match.
254 if (memcmp(RuleIdentifier.data()+1, "div_by_pow2", 11) != 0)
255 break;
256 return 208; // "udiv_by_pow2"
257 case 'z': // 1 string to match.
258 if (memcmp(RuleIdentifier.data()+1, "ext_of_zext", 11) != 0)
259 break;
260 return 52; // "zext_of_zext"
261 }
262 break;
263 case 13: // 19 strings to match.
264 switch (RuleIdentifier[0]) {
265 default: break;
266 case 'A': // 2 strings to match.
267 if (memcmp(RuleIdentifier.data()+1, "MinusBMinus", 11) != 0)
268 break;
269 switch (RuleIdentifier[12]) {
270 default: break;
271 case 'A': // 1 string to match.
272 return 12; // "AMinusBMinusA"
273 case 'C': // 1 string to match.
274 return 9; // "AMinusBMinusC"
275 }
276 break;
277 case 'a': // 1 string to match.
278 if (memcmp(RuleIdentifier.data()+1, "dd_of_vscale", 12) != 0)
279 break;
280 return 43; // "add_of_vscale"
281 case 'c': // 1 string to match.
282 if (memcmp(RuleIdentifier.data()+1, "ommute_shift", 12) != 0)
283 break;
284 return 182; // "commute_shift"
285 case 'l': // 1 string to match.
286 if (memcmp(RuleIdentifier.data()+1, "oad_and_mask", 12) != 0)
287 break;
288 return 75; // "load_and_mask"
289 case 'm': // 3 strings to match.
290 switch (RuleIdentifier[1]) {
291 default: break;
292 case 'a': // 1 string to match.
293 if (memcmp(RuleIdentifier.data()+2, "tch_selects", 11) != 0)
294 break;
295 return 133; // "match_selects"
296 case 'e': // 1 string to match.
297 if (memcmp(RuleIdentifier.data()+2, "rge_unmerge", 11) != 0)
298 break;
299 return 237; // "merge_unmerge"
300 case 'u': // 1 string to match.
301 if (memcmp(RuleIdentifier.data()+2, "l_of_vscale", 11) != 0)
302 break;
303 return 44; // "mul_of_vscale"
304 }
305 break;
306 case 'r': // 1 string to match.
307 if (memcmp(RuleIdentifier.data()+1, "edundant_and", 12) != 0)
308 break;
309 return 136; // "redundant_and"
310 case 's': // 6 strings to match.
311 switch (RuleIdentifier[1]) {
312 default: break;
313 case 'a': // 1 string to match.
314 if (memcmp(RuleIdentifier.data()+2, "me_val_zero", 11) != 0)
315 break;
316 return 92; // "same_val_zero"
317 case 'd': // 1 string to match.
318 if (memcmp(RuleIdentifier.data()+2, "iv_by_const", 11) != 0)
319 break;
320 return 211; // "sdiv_by_const"
321 case 'h': // 1 string to match.
322 if (memcmp(RuleIdentifier.data()+2, "l_of_vscale", 11) != 0)
323 break;
324 return 45; // "shl_of_vscale"
325 case 'r': // 1 string to match.
326 if (memcmp(RuleIdentifier.data()+2, "em_by_const", 11) != 0)
327 break;
328 return 207; // "srem_by_const"
329 case 'u': // 2 strings to match.
330 if (memcmp(RuleIdentifier.data()+2, "b_", 2) != 0)
331 break;
332 switch (RuleIdentifier[4]) {
333 default: break;
334 case 'm': // 1 string to match.
335 if (memcmp(RuleIdentifier.data()+5, "inus_one", 8) != 0)
336 break;
337 return 259; // "sub_minus_one"
338 case 'o': // 1 string to match.
339 if (memcmp(RuleIdentifier.data()+5, "f_vscale", 8) != 0)
340 break;
341 return 46; // "sub_of_vscale"
342 }
343 break;
344 }
345 break;
346 case 'u': // 4 strings to match.
347 switch (RuleIdentifier[1]) {
348 default: break;
349 case 'd': // 1 string to match.
350 if (memcmp(RuleIdentifier.data()+2, "iv_by_const", 11) != 0)
351 break;
352 return 210; // "udiv_by_const"
353 case 'n': // 2 strings to match.
354 if (memcmp(RuleIdentifier.data()+2, "merge_", 6) != 0)
355 break;
356 switch (RuleIdentifier[8]) {
357 default: break;
358 case 'm': // 1 string to match.
359 if (memcmp(RuleIdentifier.data()+9, "erge", 4) != 0)
360 break;
361 return 236; // "unmerge_merge"
362 case 'u': // 1 string to match.
363 if (memcmp(RuleIdentifier.data()+9, "ndef", 4) != 0)
364 break;
365 return 239; // "unmerge_undef"
366 }
367 break;
368 case 'r': // 1 string to match.
369 if (memcmp(RuleIdentifier.data()+2, "em_by_const", 11) != 0)
370 break;
371 return 206; // "urem_by_const"
372 }
373 break;
374 }
375 break;
376 case 14: // 17 strings to match.
377 switch (RuleIdentifier[0]) {
378 default: break;
379 case 'A': // 2 strings to match.
380 switch (RuleIdentifier[1]) {
381 default: break;
382 case 'M': // 1 string to match.
383 if (memcmp(RuleIdentifier.data()+2, "inusC1PlusC2", 12) != 0)
384 break;
385 return 18; // "AMinusC1PlusC2"
386 case 'P': // 1 string to match.
387 if (memcmp(RuleIdentifier.data()+2, "lusC1MinusC2", 12) != 0)
388 break;
389 return 14; // "APlusC1MinusC2"
390 }
391 break;
392 case 'C': // 1 string to match.
393 if (memcmp(RuleIdentifier.data()+1, "2MinusAPlusC1", 13) != 0)
394 break;
395 return 15; // "C2MinusAPlusC1"
396 case 'N': // 1 string to match.
397 if (memcmp(RuleIdentifier.data()+1, "otAPlusNegOne", 13) != 0)
398 break;
399 return 13; // "NotAPlusNegOne"
400 case 'a': // 2 strings to match.
401 if (memcmp(RuleIdentifier.data()+1, "nyext_of_", 9) != 0)
402 break;
403 switch (RuleIdentifier[10]) {
404 default: break;
405 case 's': // 1 string to match.
406 if (memcmp(RuleIdentifier.data()+11, "ext", 3) != 0)
407 break;
408 return 58; // "anyext_of_sext"
409 case 'z': // 1 string to match.
410 if (memcmp(RuleIdentifier.data()+11, "ext", 3) != 0)
411 break;
412 return 57; // "anyext_of_zext"
413 }
414 break;
415 case 'b': // 3 strings to match.
416 if (RuleIdentifier[1] != 'i')
417 break;
418 switch (RuleIdentifier[2]) {
419 default: break;
420 case 'n': // 2 strings to match.
421 if (memcmp(RuleIdentifier.data()+3, "op_", 3) != 0)
422 break;
423 switch (RuleIdentifier[6]) {
424 default: break;
425 case 's': // 1 string to match.
426 if (memcmp(RuleIdentifier.data()+7, "ame_val", 7) != 0)
427 break;
428 return 91; // "binop_same_val"
429 case 'w': // 1 string to match.
430 if (memcmp(RuleIdentifier.data()+7, "ith_neg", 7) != 0)
431 break;
432 return 258; // "binop_with_neg"
433 }
434 break;
435 case 't': // 1 string to match.
436 if (memcmp(RuleIdentifier.data()+3, "reverse_shl", 11) != 0)
437 break;
438 return 180; // "bitreverse_shl"
439 }
440 break;
441 case 'f': // 2 strings to match.
442 switch (RuleIdentifier[1]) {
443 default: break;
444 case 'a': // 1 string to match.
445 if (memcmp(RuleIdentifier.data()+2, "bs_fneg_fold", 12) != 0)
446 break;
447 return 192; // "fabs_fneg_fold"
448 case 'n': // 1 string to match.
449 if (memcmp(RuleIdentifier.data()+2, "eg_fneg_fold", 12) != 0)
450 break;
451 return 98; // "fneg_fneg_fold"
452 }
453 break;
454 case 'm': // 1 string to match.
455 if (memcmp(RuleIdentifier.data()+1, "ul_by_neg_one", 13) != 0)
456 break;
457 return 23; // "mul_by_neg_one"
458 case 'r': // 1 string to match.
459 if (memcmp(RuleIdentifier.data()+1, "eassoc_ptradd", 13) != 0)
460 break;
461 return 115; // "reassoc_ptradd"
462 case 's': // 3 strings to match.
463 switch (RuleIdentifier[1]) {
464 default: break;
465 case 'e': // 2 strings to match.
466 switch (RuleIdentifier[2]) {
467 default: break;
468 case 'l': // 1 string to match.
469 if (memcmp(RuleIdentifier.data()+3, "ect_of_zext", 11) != 0)
470 break;
471 return 60; // "select_of_zext"
472 case 'x': // 1 string to match.
473 if (memcmp(RuleIdentifier.data()+3, "t_of_anyext", 11) != 0)
474 break;
475 return 55; // "sext_of_anyext"
476 }
477 break;
478 case 'h': // 1 string to match.
479 if (memcmp(RuleIdentifier.data()+2, "ifts_too_big", 12) != 0)
480 break;
481 return 114; // "shifts_too_big"
482 }
483 break;
484 case 'z': // 1 string to match.
485 if (memcmp(RuleIdentifier.data()+1, "ext_of_anyext", 13) != 0)
486 break;
487 return 53; // "zext_of_anyext"
488 }
489 break;
490 case 15: // 14 strings to match.
491 switch (RuleIdentifier[0]) {
492 default: break;
493 case 'A': // 2 strings to match.
494 switch (RuleIdentifier[1]) {
495 default: break;
496 case 'M': // 1 string to match.
497 if (memcmp(RuleIdentifier.data()+2, "inusC1MinusC2", 13) != 0)
498 break;
499 return 16; // "AMinusC1MinusC2"
500 case 'P': // 1 string to match.
501 if (memcmp(RuleIdentifier.data()+2, "lusZeroMinusB", 13) != 0)
502 break;
503 return 3; // "APlusZeroMinusB"
504 }
505 break;
506 case 'C': // 1 string to match.
507 if (memcmp(RuleIdentifier.data()+1, "1Minus2MinusC2", 14) != 0)
508 break;
509 return 17; // "C1Minus2MinusC2"
510 case 'Z': // 1 string to match.
511 if (memcmp(RuleIdentifier.data()+1, "eroMinusAPlusB", 14) != 0)
512 break;
513 return 2; // "ZeroMinusAPlusB"
514 case 'a': // 2 strings to match.
515 if (memcmp(RuleIdentifier.data()+1, "vgceil_", 7) != 0)
516 break;
517 switch (RuleIdentifier[8]) {
518 default: break;
519 case 's': // 1 string to match.
520 if (memcmp(RuleIdentifier.data()+9, "_match", 6) != 0)
521 break;
522 return 266; // "avgceil_s_match"
523 case 'u': // 1 string to match.
524 if (memcmp(RuleIdentifier.data()+9, "_match", 6) != 0)
525 break;
526 return 265; // "avgceil_u_match"
527 }
528 break;
529 case 'b': // 1 string to match.
530 if (memcmp(RuleIdentifier.data()+1, "itreverse_lshr", 14) != 0)
531 break;
532 return 181; // "bitreverse_lshr"
533 case 'e': // 1 string to match.
534 if (memcmp(RuleIdentifier.data()+1, "xtending_loads", 14) != 0)
535 break;
536 return 74; // "extending_loads"
537 case 'i': // 1 string to match.
538 if (memcmp(RuleIdentifier.data()+1, "dempotent_prop", 14) != 0)
539 break;
540 return 24; // "idempotent_prop"
541 case 'l': // 1 string to match.
542 if (memcmp(RuleIdentifier.data()+1, "oad_or_combine", 14) != 0)
543 break;
544 return 171; // "load_or_combine"
545 case 'n': // 1 string to match.
546 if (memcmp(RuleIdentifier.data()+1, "arrow_binop_or", 14) != 0)
547 break;
548 return 68; // "narrow_binop_or"
549 case 'o': // 1 string to match.
550 if (memcmp(RuleIdentifier.data()+1, "verlapping_and", 14) != 0)
551 break;
552 return 161; // "overlapping_and"
553 case 's': // 1 string to match.
554 if (memcmp(RuleIdentifier.data()+1, "elect_same_val", 14) != 0)
555 break;
556 return 89; // "select_same_val"
557 case 'z': // 1 string to match.
558 if (memcmp(RuleIdentifier.data()+1, "ext_trunc_fold", 14) != 0)
559 break;
560 return 140; // "zext_trunc_fold"
561 }
562 break;
563 case 16: // 18 strings to match.
564 switch (RuleIdentifier[0]) {
565 default: break;
566 case 'A': // 1 string to match.
567 if (memcmp(RuleIdentifier.data()+1, "MinusZeroMinusB", 15) != 0)
568 break;
569 return 11; // "AMinusZeroMinusB"
570 case 'a': // 3 strings to match.
571 switch (RuleIdentifier[1]) {
572 default: break;
573 case 'n': // 1 string to match.
574 if (memcmp(RuleIdentifier.data()+2, "yext_of_anyext", 14) != 0)
575 break;
576 return 56; // "anyext_of_anyext"
577 case 'v': // 2 strings to match.
578 if (memcmp(RuleIdentifier.data()+2, "gfloor_", 7) != 0)
579 break;
580 switch (RuleIdentifier[9]) {
581 default: break;
582 case 's': // 1 string to match.
583 if (memcmp(RuleIdentifier.data()+10, "_match", 6) != 0)
584 break;
585 return 264; // "avgfloor_s_match"
586 case 'u': // 1 string to match.
587 if (memcmp(RuleIdentifier.data()+10, "_match", 6) != 0)
588 break;
589 return 263; // "avgfloor_u_match"
590 }
591 break;
592 }
593 break;
594 case 'n': // 5 strings to match.
595 if (memcmp(RuleIdentifier.data()+1, "arrow_binop_", 12) != 0)
596 break;
597 switch (RuleIdentifier[13]) {
598 default: break;
599 case 'a': // 2 strings to match.
600 switch (RuleIdentifier[14]) {
601 default: break;
602 case 'd': // 1 string to match.
603 if (RuleIdentifier[15] != 'd')
604 break;
605 return 64; // "narrow_binop_add"
606 case 'n': // 1 string to match.
607 if (RuleIdentifier[15] != 'd')
608 break;
609 return 67; // "narrow_binop_and"
610 }
611 break;
612 case 'm': // 1 string to match.
613 if (memcmp(RuleIdentifier.data()+14, "ul", 2) != 0)
614 break;
615 return 66; // "narrow_binop_mul"
616 case 's': // 1 string to match.
617 if (memcmp(RuleIdentifier.data()+14, "ub", 2) != 0)
618 break;
619 return 65; // "narrow_binop_sub"
620 case 'x': // 1 string to match.
621 if (memcmp(RuleIdentifier.data()+14, "or", 2) != 0)
622 break;
623 return 69; // "narrow_binop_xor"
624 }
625 break;
626 case 'o': // 1 string to match.
627 if (memcmp(RuleIdentifier.data()+1, "r_and_xor_to_or", 15) != 0)
628 break;
629 return 220; // "or_and_xor_to_or"
630 case 's': // 5 strings to match.
631 switch (RuleIdentifier[1]) {
632 default: break;
633 case 'e': // 3 strings to match.
634 if (memcmp(RuleIdentifier.data()+2, "lect_", 5) != 0)
635 break;
636 switch (RuleIdentifier[7]) {
637 default: break;
638 case 'o': // 1 string to match.
639 if (memcmp(RuleIdentifier.data()+8, "f_anyext", 8) != 0)
640 break;
641 return 61; // "select_of_anyext"
642 case 't': // 1 string to match.
643 if (memcmp(RuleIdentifier.data()+8, "o_minmax", 8) != 0)
644 break;
645 return 214; // "select_to_minmax"
646 case 'u': // 1 string to match.
647 if (memcmp(RuleIdentifier.data()+8, "ndef_cmp", 8) != 0)
648 break;
649 return 130; // "select_undef_cmp"
650 }
651 break;
652 case 'u': // 2 strings to match.
653 if (memcmp(RuleIdentifier.data()+2, "b_o", 3) != 0)
654 break;
655 switch (RuleIdentifier[5]) {
656 default: break;
657 case 'f': // 1 string to match.
658 if (memcmp(RuleIdentifier.data()+6, "_mul_const", 10) != 0)
659 break;
660 return 260; // "sub_of_mul_const"
661 case 'n': // 1 string to match.
662 if (memcmp(RuleIdentifier.data()+6, "e_from_sub", 10) != 0)
663 break;
664 return 257; // "sub_one_from_sub"
665 }
666 break;
667 }
668 break;
669 case 't': // 2 strings to match.
670 if (memcmp(RuleIdentifier.data()+1, "runcate_of_", 11) != 0)
671 break;
672 switch (RuleIdentifier[12]) {
673 default: break;
674 case 's': // 1 string to match.
675 if (memcmp(RuleIdentifier.data()+13, "ext", 3) != 0)
676 break;
677 return 50; // "truncate_of_sext"
678 case 'z': // 1 string to match.
679 if (memcmp(RuleIdentifier.data()+13, "ext", 3) != 0)
680 break;
681 return 49; // "truncate_of_zext"
682 }
683 break;
684 case 'u': // 1 string to match.
685 if (memcmp(RuleIdentifier.data()+1, "ndef_to_fp_zero", 15) != 0)
686 break;
687 return 77; // "undef_to_fp_zero"
688 }
689 break;
690 case 17: // 18 strings to match.
691 switch (RuleIdentifier[0]) {
692 default: break;
693 case 'A': // 2 strings to match.
694 if (memcmp(RuleIdentifier.data()+1, "PlusBMinus", 10) != 0)
695 break;
696 switch (RuleIdentifier[11]) {
697 default: break;
698 case 'A': // 1 string to match.
699 if (memcmp(RuleIdentifier.data()+12, "plusC", 5) != 0)
700 break;
701 return 8; // "APlusBMinusAplusC"
702 case 'C': // 1 string to match.
703 if (memcmp(RuleIdentifier.data()+12, "PlusA", 5) != 0)
704 break;
705 return 10; // "APlusBMinusCPlusA"
706 }
707 break;
708 case 'a': // 3 strings to match.
709 switch (RuleIdentifier[1]) {
710 default: break;
711 case 'd': // 1 string to match.
712 if (memcmp(RuleIdentifier.data()+2, "d_p2i_to_ptradd", 15) != 0)
713 break;
714 return 22; // "add_p2i_to_ptradd"
715 case 'n': // 2 strings to match.
716 switch (RuleIdentifier[2]) {
717 default: break;
718 case 'd': // 1 string to match.
719 if (memcmp(RuleIdentifier.data()+3, "_xor_or_to_and", 14) != 0)
720 break;
721 return 222; // "and_xor_or_to_and"
722 case 'y': // 1 string to match.
723 if (memcmp(RuleIdentifier.data()+3, "ext_trunc_fold", 14) != 0)
724 break;
725 return 97; // "anyext_trunc_fold"
726 }
727 break;
728 }
729 break;
730 case 'c': // 4 strings to match.
731 switch (RuleIdentifier[1]) {
732 default: break;
733 case 'a': // 2 strings to match.
734 if (memcmp(RuleIdentifier.data()+2, "nonicalize_", 11) != 0)
735 break;
736 switch (RuleIdentifier[13]) {
737 default: break;
738 case 'f': // 1 string to match.
739 if (memcmp(RuleIdentifier.data()+14, "cmp", 3) != 0)
740 break;
741 return 119; // "canonicalize_fcmp"
742 case 'i': // 1 string to match.
743 if (memcmp(RuleIdentifier.data()+14, "cmp", 3) != 0)
744 break;
745 return 118; // "canonicalize_icmp"
746 }
747 break;
748 case 'o': // 2 strings to match.
749 switch (RuleIdentifier[2]) {
750 default: break;
751 case 'm': // 1 string to match.
752 if (memcmp(RuleIdentifier.data()+3, "bine_or_of_and", 14) != 0)
753 break;
754 return 267; // "combine_or_of_and"
755 case 'n': // 1 string to match.
756 if (memcmp(RuleIdentifier.data()+3, "stant_fold_fma", 14) != 0)
757 break;
758 return 189; // "constant_fold_fma"
759 }
760 break;
761 }
762 break;
763 case 'd': // 1 string to match.
764 if (memcmp(RuleIdentifier.data()+1, "iv_rem_to_divrem", 16) != 0)
765 break;
766 return 172; // "div_rem_to_divrem"
767 case 'e': // 1 string to match.
768 if (memcmp(RuleIdentifier.data()+1, "rase_undef_store", 16) != 0)
769 break;
770 return 87; // "erase_undef_store"
771 case 'p': // 1 string to match.
772 if (memcmp(RuleIdentifier.data()+1, "tr_add_with_zero", 16) != 0)
773 break;
774 return 168; // "ptr_add_with_zero"
775 case 's': // 4 strings to match.
776 switch (RuleIdentifier[1]) {
777 default: break;
778 case 'e': // 2 strings to match.
779 if (memcmp(RuleIdentifier.data()+2, "lect_", 5) != 0)
780 break;
781 switch (RuleIdentifier[7]) {
782 default: break;
783 case 't': // 1 string to match.
784 if (memcmp(RuleIdentifier.data()+8, "o_iminmax", 9) != 0)
785 break;
786 return 132; // "select_to_iminmax"
787 case 'z': // 1 string to match.
788 if (memcmp(RuleIdentifier.data()+8, "ero_false", 9) != 0)
789 break;
790 return 134; // "select_zero_false"
791 }
792 break;
793 case 'h': // 1 string to match.
794 if (memcmp(RuleIdentifier.data()+2, "ift_immed_chain", 15) != 0)
795 break;
796 return 169; // "shift_immed_chain"
797 case 'r': // 1 string to match.
798 if (memcmp(RuleIdentifier.data()+2, "em_pow2_to_mask", 15) != 0)
799 break;
800 return 205; // "srem_pow2_to_mask"
801 }
802 break;
803 case 'u': // 2 strings to match.
804 switch (RuleIdentifier[1]) {
805 default: break;
806 case 'n': // 1 string to match.
807 if (memcmp(RuleIdentifier.data()+2, "def_to_int_zero", 15) != 0)
808 break;
809 return 78; // "undef_to_int_zero"
810 case 'r': // 1 string to match.
811 if (memcmp(RuleIdentifier.data()+2, "em_pow2_to_mask", 15) != 0)
812 break;
813 return 139; // "urem_pow2_to_mask"
814 }
815 break;
816 }
817 break;
818 case 18: // 12 strings to match.
819 switch (RuleIdentifier[0]) {
820 default: break;
821 case 'A': // 3 strings to match.
822 switch (RuleIdentifier[1]) {
823 default: break;
824 case 'M': // 2 strings to match.
825 if (memcmp(RuleIdentifier.data()+2, "inusBPlus", 9) != 0)
826 break;
827 switch (RuleIdentifier[11]) {
828 default: break;
829 case 'B': // 1 string to match.
830 if (memcmp(RuleIdentifier.data()+12, "MinusC", 6) != 0)
831 break;
832 return 7; // "AMinusBPlusBMinusC"
833 case 'C': // 1 string to match.
834 if (memcmp(RuleIdentifier.data()+12, "MinusA", 6) != 0)
835 break;
836 return 6; // "AMinusBPlusCMinusA"
837 }
838 break;
839 case 'P': // 1 string to match.
840 if (memcmp(RuleIdentifier.data()+2, "lusBMinusCMinusB", 16) != 0)
841 break;
842 return 0; // "APlusBMinusCMinusB"
843 }
844 break;
845 case 'b': // 1 string to match.
846 if (memcmp(RuleIdentifier.data()+1, "inop_left_to_zero", 17) != 0)
847 break;
848 return 93; // "binop_left_to_zero"
849 case 'c': // 3 strings to match.
850 if (RuleIdentifier[1] != 'o')
851 break;
852 switch (RuleIdentifier[2]) {
853 default: break;
854 case 'm': // 1 string to match.
855 if (memcmp(RuleIdentifier.data()+3, "bine_minmax_nan", 15) != 0)
856 break;
857 return 165; // "combine_minmax_nan"
858 case 'n': // 2 strings to match.
859 if (memcmp(RuleIdentifier.data()+3, "stant_fold_f", 12) != 0)
860 break;
861 switch (RuleIdentifier[15]) {
862 default: break;
863 case 'a': // 1 string to match.
864 if (memcmp(RuleIdentifier.data()+16, "bs", 2) != 0)
865 break;
866 return 146; // "constant_fold_fabs"
867 case 'n': // 1 string to match.
868 if (memcmp(RuleIdentifier.data()+16, "eg", 2) != 0)
869 break;
870 return 145; // "constant_fold_fneg"
871 }
872 break;
873 }
874 break;
875 case 'e': // 1 string to match.
876 if (memcmp(RuleIdentifier.data()+1, "xpand_const_fpowi", 17) != 0)
877 break;
878 return 166; // "expand_const_fpowi"
879 case 'f': // 1 string to match.
880 if (memcmp(RuleIdentifier.data()+1, "ptrunc_fpext_fold", 17) != 0)
881 break;
882 return 107; // "fptrunc_fpext_fold"
883 case 's': // 2 strings to match.
884 if (RuleIdentifier[1] != 'e')
885 break;
886 switch (RuleIdentifier[2]) {
887 default: break;
888 case 'l': // 1 string to match.
889 if (memcmp(RuleIdentifier.data()+3, "ect_of_truncate", 15) != 0)
890 break;
891 return 62; // "select_of_truncate"
892 case 'x': // 1 string to match.
893 if (memcmp(RuleIdentifier.data()+3, "t_inreg_of_load", 15) != 0)
894 break;
895 return 127; // "sext_inreg_of_load"
896 }
897 break;
898 case 't': // 1 string to match.
899 if (memcmp(RuleIdentifier.data()+1, "runcate_of_anyext", 17) != 0)
900 break;
901 return 51; // "truncate_of_anyext"
902 }
903 break;
904 case 19: // 19 strings to match.
905 switch (RuleIdentifier[0]) {
906 default: break;
907 case 'A': // 1 string to match.
908 if (memcmp(RuleIdentifier.data()+1, "MinusBMinusCMinusC", 18) != 0)
909 break;
910 return 1; // "AMinusBMinusCMinusC"
911 case 'b': // 1 string to match.
912 if (memcmp(RuleIdentifier.data()+1, "inop_right_to_zero", 18) != 0)
913 break;
914 return 94; // "binop_right_to_zero"
915 case 'c': // 7 strings to match.
916 if (memcmp(RuleIdentifier.data()+1, "onst", 4) != 0)
917 break;
918 switch (RuleIdentifier[5]) {
919 default: break;
920 case '_': // 1 string to match.
921 if (memcmp(RuleIdentifier.data()+6, "ptradd_to_i2p", 13) != 0)
922 break;
923 return 160; // "const_ptradd_to_i2p"
924 case 'a': // 6 strings to match.
925 if (memcmp(RuleIdentifier.data()+6, "nt_fold_", 8) != 0)
926 break;
927 switch (RuleIdentifier[14]) {
928 default: break;
929 case 'b': // 1 string to match.
930 if (memcmp(RuleIdentifier.data()+15, "inop", 4) != 0)
931 break;
932 return 187; // "constant_fold_binop"
933 case 'f': // 5 strings to match.
934 switch (RuleIdentifier[15]) {
935 default: break;
936 case 'c': // 1 string to match.
937 if (memcmp(RuleIdentifier.data()+16, "eil", 3) != 0)
938 break;
939 return 151; // "constant_fold_fceil"
940 case 'l': // 1 string to match.
941 if (memcmp(RuleIdentifier.data()+16, "og2", 3) != 0)
942 break;
943 return 148; // "constant_fold_flog2"
944 case 'p': // 1 string to match.
945 if (memcmp(RuleIdentifier.data()+16, "ext", 3) != 0)
946 break;
947 return 150; // "constant_fold_fpext"
948 case 'r': // 1 string to match.
949 if (memcmp(RuleIdentifier.data()+16, "int", 3) != 0)
950 break;
951 return 156; // "constant_fold_frint"
952 case 's': // 1 string to match.
953 if (memcmp(RuleIdentifier.data()+16, "qrt", 3) != 0)
954 break;
955 return 147; // "constant_fold_fsqrt"
956 }
957 break;
958 }
959 break;
960 }
961 break;
962 case 'e': // 1 string to match.
963 if (memcmp(RuleIdentifier.data()+1, "xtend_through_phis", 18) != 0)
964 break;
965 return 111; // "extend_through_phis"
966 case 'i': // 1 string to match.
967 if (memcmp(RuleIdentifier.data()+1, "nteger_of_truncate", 18) != 0)
968 break;
969 return 70; // "integer_of_truncate"
970 case 'm': // 1 string to match.
971 if (memcmp(RuleIdentifier.data()+1, "erge_of_x_and_zero", 18) != 0)
972 break;
973 return 243; // "merge_of_x_and_zero"
974 case 'p': // 1 string to match.
975 if (memcmp(RuleIdentifier.data()+1, "tr_add_immed_chain", 18) != 0)
976 break;
977 return 117; // "ptr_add_immed_chain"
978 case 'r': // 2 strings to match.
979 switch (RuleIdentifier[1]) {
980 default: break;
981 case 'e': // 1 string to match.
982 if (memcmp(RuleIdentifier.data()+2, "assoc_comm_binops", 17) != 0)
983 break;
984 return 116; // "reassoc_comm_binops"
985 case 'i': // 1 string to match.
986 if (memcmp(RuleIdentifier.data()+2, "ght_identity_zero", 17) != 0)
987 break;
988 return 90; // "right_identity_zero"
989 }
990 break;
991 case 's': // 3 strings to match.
992 switch (RuleIdentifier[1]) {
993 default: break;
994 case 'e': // 1 string to match.
995 if (memcmp(RuleIdentifier.data()+2, "lect_constant_cmp", 17) != 0)
996 break;
997 return 131; // "select_constant_cmp"
998 case 'i': // 2 strings to match.
999 if (memcmp(RuleIdentifier.data()+2, "mplify_", 7) != 0)
1000 break;
1001 switch (RuleIdentifier[9]) {
1002 default: break;
1003 case 'a': // 1 string to match.
1004 if (memcmp(RuleIdentifier.data()+10, "dd_to_sub", 9) != 0)
1005 break;
1006 return 112; // "simplify_add_to_sub"
1007 case 'n': // 1 string to match.
1008 if (memcmp(RuleIdentifier.data()+10, "eg_minmax", 9) != 0)
1009 break;
1010 return 226; // "simplify_neg_minmax"
1011 }
1012 break;
1013 }
1014 break;
1015 case 'u': // 1 string to match.
1016 if (memcmp(RuleIdentifier.data()+1, "nary_undef_to_zero", 18) != 0)
1017 break;
1018 return 82; // "unary_undef_to_zero"
1019 }
1020 break;
1021 case 20: // 9 strings to match.
1022 switch (RuleIdentifier[0]) {
1023 default: break;
1024 case 'a': // 1 string to match.
1025 if (memcmp(RuleIdentifier.data()+1, "nd_or_disjoint_mask", 19) != 0)
1026 break;
1027 return 195; // "and_or_disjoint_mask"
1028 case 'b': // 1 string to match.
1029 if (memcmp(RuleIdentifier.data()+1, "itcast_bitcast_fold", 19) != 0)
1030 break;
1031 return 105; // "bitcast_bitcast_fold"
1032 case 'c': // 1 string to match.
1033 if (memcmp(RuleIdentifier.data()+1, "onstant_fold_ffloor", 19) != 0)
1034 break;
1035 return 152; // "constant_fold_ffloor"
1036 case 'm': // 1 string to match.
1037 if (memcmp(RuleIdentifier.data()+1, "erge_of_x_and_undef", 19) != 0)
1038 break;
1039 return 242; // "merge_of_x_and_undef"
1040 case 'o': // 1 string to match.
1041 if (memcmp(RuleIdentifier.data()+1, "r_and_xor_to_xor_or", 19) != 0)
1042 break;
1043 return 221; // "or_and_xor_to_xor_or"
1044 case 'r': // 2 strings to match.
1045 if (memcmp(RuleIdentifier.data()+1, "edu", 3) != 0)
1046 break;
1047 switch (RuleIdentifier[4]) {
1048 default: break;
1049 case 'c': // 1 string to match.
1050 if (memcmp(RuleIdentifier.data()+5, "e_shl_of_extend", 15) != 0)
1051 break;
1052 return 128; // "reduce_shl_of_extend"
1053 case 'n': // 1 string to match.
1054 if (memcmp(RuleIdentifier.data()+5, "dant_sext_inreg", 15) != 0)
1055 break;
1056 return 137; // "redundant_sext_inreg"
1057 }
1058 break;
1059 case 'u': // 2 strings to match.
1060 if (RuleIdentifier[1] != 'n')
1061 break;
1062 switch (RuleIdentifier[2]) {
1063 default: break;
1064 case 'a': // 1 string to match.
1065 if (memcmp(RuleIdentifier.data()+3, "ry_undef_to_undef", 17) != 0)
1066 break;
1067 return 83; // "unary_undef_to_undef"
1068 case 'm': // 1 string to match.
1069 if (memcmp(RuleIdentifier.data()+3, "erge_zext_to_zext", 17) != 0)
1070 break;
1071 return 241; // "unmerge_zext_to_zext"
1072 }
1073 break;
1074 }
1075 break;
1076 case 21: // 11 strings to match.
1077 switch (RuleIdentifier[0]) {
1078 default: break;
1079 case 'a': // 1 string to match.
1080 if (memcmp(RuleIdentifier.data()+1, "nd_xor_or_to_xor_and", 20) != 0)
1081 break;
1082 return 223; // "and_xor_or_to_xor_and"
1083 case 'c': // 4 strings to match.
1084 if (RuleIdentifier[1] != 'o')
1085 break;
1086 switch (RuleIdentifier[2]) {
1087 default: break;
1088 case 'm': // 2 strings to match.
1089 if (memcmp(RuleIdentifier.data()+3, "bine_", 5) != 0)
1090 break;
1091 switch (RuleIdentifier[8]) {
1092 default: break;
1093 case 'b': // 1 string to match.
1094 if (memcmp(RuleIdentifier.data()+9, "uild_unmerge", 12) != 0)
1095 break;
1096 return 244; // "combine_build_unmerge"
1097 case 'c': // 1 string to match.
1098 if (memcmp(RuleIdentifier.data()+9, "oncat_vector", 12) != 0)
1099 break;
1100 return 227; // "combine_concat_vector"
1101 }
1102 break;
1103 case 'n': // 2 strings to match.
1104 if (memcmp(RuleIdentifier.data()+3, "stant_fold_", 11) != 0)
1105 break;
1106 switch (RuleIdentifier[14]) {
1107 default: break;
1108 case 'c': // 1 string to match.
1109 if (memcmp(RuleIdentifier.data()+15, "ast_op", 6) != 0)
1110 break;
1111 return 190; // "constant_fold_cast_op"
1112 case 'f': // 1 string to match.
1113 if (memcmp(RuleIdentifier.data()+15, "ptrunc", 6) != 0)
1114 break;
1115 return 149; // "constant_fold_fptrunc"
1116 }
1117 break;
1118 }
1119 break;
1120 case 'f': // 1 string to match.
1121 if (memcmp(RuleIdentifier.data()+1, "div_repeated_divison", 20) != 0)
1122 break;
1123 return 212; // "fdiv_repeated_divison"
1124 case 'i': // 1 string to match.
1125 if (memcmp(RuleIdentifier.data()+1, "nsert_vector_elt_oob", 20) != 0)
1126 break;
1127 return 30; // "insert_vector_elt_oob"
1128 case 'l': // 1 string to match.
1129 if (memcmp(RuleIdentifier.data()+1, "shr_of_trunc_of_lshr", 20) != 0)
1130 break;
1131 return 251; // "lshr_of_trunc_of_lshr"
1132 case 'r': // 1 string to match.
1133 if (memcmp(RuleIdentifier.data()+1, "ight_identity_one_fp", 20) != 0)
1134 break;
1135 return 100; // "right_identity_one_fp"
1136 case 'u': // 2 strings to match.
1137 if (RuleIdentifier[1] != 'n')
1138 break;
1139 switch (RuleIdentifier[2]) {
1140 default: break;
1141 case 'd': // 1 string to match.
1142 if (memcmp(RuleIdentifier.data()+3, "ef_to_negative_one", 18) != 0)
1143 break;
1144 return 79; // "undef_to_negative_one"
1145 case 'm': // 1 string to match.
1146 if (memcmp(RuleIdentifier.data()+3, "erge_dead_to_trunc", 18) != 0)
1147 break;
1148 return 240; // "unmerge_dead_to_trunc"
1149 }
1150 break;
1151 }
1152 break;
1153 case 22: // 13 strings to match.
1154 switch (RuleIdentifier[0]) {
1155 default: break;
1156 case 'c': // 2 strings to match.
1157 if (RuleIdentifier[1] != 'o')
1158 break;
1159 switch (RuleIdentifier[2]) {
1160 default: break;
1161 case 'm': // 1 string to match.
1162 if (memcmp(RuleIdentifier.data()+3, "bine_shuffle_concat", 19) != 0)
1163 break;
1164 return 231; // "combine_shuffle_concat"
1165 case 'n': // 1 string to match.
1166 if (memcmp(RuleIdentifier.data()+3, "stant_fold_fp_binop", 19) != 0)
1167 break;
1168 return 188; // "constant_fold_fp_binop"
1169 }
1170 break;
1171 case 'f': // 4 strings to match.
1172 switch (RuleIdentifier[1]) {
1173 default: break;
1174 case 'o': // 1 string to match.
1175 if (memcmp(RuleIdentifier.data()+2, "ld_binop_into_select", 20) != 0)
1176 break;
1177 return 204; // "fold_binop_into_select"
1178 case 'u': // 3 strings to match.
1179 if (memcmp(RuleIdentifier.data()+2, "nnel_shift_", 11) != 0)
1180 break;
1181 switch (RuleIdentifier[13]) {
1182 default: break;
1183 case 'l': // 1 string to match.
1184 if (memcmp(RuleIdentifier.data()+14, "eft_zero", 8) != 0)
1185 break;
1186 return 176; // "funnel_shift_left_zero"
1187 case 'o': // 1 string to match.
1188 if (memcmp(RuleIdentifier.data()+14, "vershift", 8) != 0)
1189 break;
1190 return 177; // "funnel_shift_overshift"
1191 case 't': // 1 string to match.
1192 if (memcmp(RuleIdentifier.data()+14, "o_rotate", 8) != 0)
1193 break;
1194 return 174; // "funnel_shift_to_rotate"
1195 }
1196 break;
1197 }
1198 break;
1199 case 'i': // 1 string to match.
1200 if (memcmp(RuleIdentifier.data()+1, "cmp_to_lhs_known_bits", 21) != 0)
1201 break;
1202 return 121; // "icmp_to_lhs_known_bits"
1203 case 'm': // 1 string to match.
1204 if (memcmp(RuleIdentifier.data()+1, "atch_subo_no_overflow", 21) != 0)
1205 break;
1206 return 246; // "match_subo_no_overflow"
1207 case 'p': // 1 string to match.
1208 if (memcmp(RuleIdentifier.data()+1, "ropagate_undef_any_op", 21) != 0)
1209 break;
1210 return 84; // "propagate_undef_any_op"
1211 case 'r': // 2 strings to match.
1212 switch (RuleIdentifier[1]) {
1213 default: break;
1214 case 'e': // 1 string to match.
1215 if (memcmp(RuleIdentifier.data()+2, "dundant_neg_operands", 20) != 0)
1216 break;
1217 return 194; // "redundant_neg_operands"
1218 case 'i': // 1 string to match.
1219 if (memcmp(RuleIdentifier.data()+2, "ght_identity_one_int", 20) != 0)
1220 break;
1221 return 99; // "right_identity_one_int"
1222 }
1223 break;
1224 case 's': // 1 string to match.
1225 if (memcmp(RuleIdentifier.data()+1, "hl_ashr_to_sext_inreg", 21) != 0)
1226 break;
1227 return 125; // "shl_ashr_to_sext_inreg"
1228 case 't': // 1 string to match.
1229 if (memcmp(RuleIdentifier.data()+1, "runc_buildvector_fold", 21) != 0)
1230 break;
1231 return 103; // "trunc_buildvector_fold"
1232 }
1233 break;
1234 case 23: // 6 strings to match.
1235 switch (RuleIdentifier[0]) {
1236 default: break;
1237 case 'b': // 1 string to match.
1238 if (memcmp(RuleIdentifier.data()+1, "uildvector_of_truncate", 22) != 0)
1239 break;
1240 return 63; // "buildvector_of_truncate"
1241 case 'f': // 1 string to match.
1242 if (memcmp(RuleIdentifier.data()+1, "unnel_shift_right_zero", 22) != 0)
1243 break;
1244 return 175; // "funnel_shift_right_zero"
1245 case 'i': // 2 strings to match.
1246 if (memcmp(RuleIdentifier.data()+1, "tof_const_zero_fold_", 20) != 0)
1247 break;
1248 switch (RuleIdentifier[21]) {
1249 default: break;
1250 case 's': // 1 string to match.
1251 if (RuleIdentifier[22] != 'i')
1252 break;
1253 return 158; // "itof_const_zero_fold_si"
1254 case 'u': // 1 string to match.
1255 if (RuleIdentifier[22] != 'i')
1256 break;
1257 return 159; // "itof_const_zero_fold_ui"
1258 }
1259 break;
1260 case 'p': // 1 string to match.
1261 if (memcmp(RuleIdentifier.data()+1, "ropagate_undef_all_ops", 22) != 0)
1262 break;
1263 return 85; // "propagate_undef_all_ops"
1264 case 't': // 1 string to match.
1265 if (memcmp(RuleIdentifier.data()+1, "runcusatu_to_fptouisat", 22) != 0)
1266 break;
1267 return 250; // "truncusatu_to_fptouisat"
1268 }
1269 break;
1270 case 24: // 10 strings to match.
1271 switch (RuleIdentifier[0]) {
1272 default: break;
1273 case 'b': // 1 string to match.
1274 if (memcmp(RuleIdentifier.data()+1, "inop_left_undef_to_zero", 23) != 0)
1275 break;
1276 return 80; // "binop_left_undef_to_zero"
1277 case 'c': // 4 strings to match.
1278 switch (RuleIdentifier[1]) {
1279 default: break;
1280 case 'o': // 1 string to match.
1281 if (memcmp(RuleIdentifier.data()+2, "nstant_fold_fnearbyint", 22) != 0)
1282 break;
1283 return 157; // "constant_fold_fnearbyint"
1284 case 't': // 3 strings to match.
1285 switch (RuleIdentifier[2]) {
1286 default: break;
1287 case 'l': // 2 strings to match.
1288 if (memcmp(RuleIdentifier.data()+3, "z_", 2) != 0)
1289 break;
1290 switch (RuleIdentifier[5]) {
1291 default: break;
1292 case 't': // 1 string to match.
1293 if (memcmp(RuleIdentifier.data()+6, "o_ctlz_zero_poison", 18) != 0)
1294 break;
1295 return 254; // "ctlz_to_ctlz_zero_poison"
1296 case 'z': // 1 string to match.
1297 if (memcmp(RuleIdentifier.data()+6, "ero_poison_to_ctls", 18) != 0)
1298 break;
1299 return 253; // "ctlz_zero_poison_to_ctls"
1300 }
1301 break;
1302 case 't': // 1 string to match.
1303 if (memcmp(RuleIdentifier.data()+3, "z_to_cttz_zero_poison", 21) != 0)
1304 break;
1305 return 255; // "cttz_to_cttz_zero_poison"
1306 }
1307 break;
1308 }
1309 break;
1310 case 'm': // 1 string to match.
1311 if (memcmp(RuleIdentifier.data()+1, "atch_extract_of_element", 23) != 0)
1312 break;
1313 return 29; // "match_extract_of_element"
1314 case 'n': // 1 string to match.
1315 if (memcmp(RuleIdentifier.data()+1, "arrow_binop_feeding_and", 23) != 0)
1316 break;
1317 return 129; // "narrow_binop_feeding_and"
1318 case 's': // 2 strings to match.
1319 if (memcmp(RuleIdentifier.data()+1, "ext_inreg_", 10) != 0)
1320 break;
1321 switch (RuleIdentifier[11]) {
1322 default: break;
1323 case 'o': // 1 string to match.
1324 if (memcmp(RuleIdentifier.data()+12, "f_sext_inreg", 12) != 0)
1325 break;
1326 return 59; // "sext_inreg_of_sext_inreg"
1327 case 't': // 1 string to match.
1328 if (memcmp(RuleIdentifier.data()+12, "o_zext_inreg", 12) != 0)
1329 break;
1330 return 141; // "sext_inreg_to_zext_inreg"
1331 }
1332 break;
1333 case 'x': // 1 string to match.
1334 if (memcmp(RuleIdentifier.data()+1, "or_of_and_with_same_reg", 23) != 0)
1335 break;
1336 return 167; // "xor_of_and_with_same_reg"
1337 }
1338 break;
1339 case 25: // 7 strings to match.
1340 switch (RuleIdentifier[0]) {
1341 default: break;
1342 case 'b': // 3 strings to match.
1343 switch (RuleIdentifier[1]) {
1344 default: break;
1345 case 'i': // 2 strings to match.
1346 if (memcmp(RuleIdentifier.data()+2, "tfield_extract_from_", 20) != 0)
1347 break;
1348 switch (RuleIdentifier[22]) {
1349 default: break;
1350 case 'a': // 1 string to match.
1351 if (memcmp(RuleIdentifier.data()+23, "nd", 2) != 0)
1352 break;
1353 return 184; // "bitfield_extract_from_and"
1354 case 's': // 1 string to match.
1355 if (memcmp(RuleIdentifier.data()+23, "hr", 2) != 0)
1356 break;
1357 return 185; // "bitfield_extract_from_shr"
1358 }
1359 break;
1360 case 'u': // 1 string to match.
1361 if (memcmp(RuleIdentifier.data()+2, "ildvector_identity_fold", 23) != 0)
1362 break;
1363 return 102; // "buildvector_identity_fold"
1364 }
1365 break;
1366 case 'c': // 1 string to match.
1367 if (memcmp(RuleIdentifier.data()+1, "ombine_shuffle_undef_rhs", 24) != 0)
1368 break;
1369 return 232; // "combine_shuffle_undef_rhs"
1370 case 'e': // 1 string to match.
1371 if (memcmp(RuleIdentifier.data()+1, "xtract_vec_elt_build_vec", 24) != 0)
1372 break;
1373 return 72; // "extract_vec_elt_build_vec"
1374 case 'n': // 1 string to match.
1375 if (memcmp(RuleIdentifier.data()+1, "eg_and_one_to_sext_inreg", 24) != 0)
1376 break;
1377 return 126; // "neg_and_one_to_sext_inreg"
1378 case 'r': // 1 string to match.
1379 if (memcmp(RuleIdentifier.data()+1, "ight_identity_neg_one_fp", 24) != 0)
1380 break;
1381 return 110; // "right_identity_neg_one_fp"
1382 }
1383 break;
1384 case 26: // 6 strings to match.
1385 switch (RuleIdentifier[0]) {
1386 default: break;
1387 case 'b': // 2 strings to match.
1388 if (RuleIdentifier[1] != 'i')
1389 break;
1390 switch (RuleIdentifier[2]) {
1391 default: break;
1392 case 'n': // 1 string to match.
1393 if (memcmp(RuleIdentifier.data()+3, "op_right_undef_to_undef", 23) != 0)
1394 break;
1395 return 81; // "binop_right_undef_to_undef"
1396 case 't': // 1 string to match.
1397 if (memcmp(RuleIdentifier.data()+3, "cast_bitcast_to_bitcast", 23) != 0)
1398 break;
1399 return 106; // "bitcast_bitcast_to_bitcast"
1400 }
1401 break;
1402 case 'c': // 2 strings to match.
1403 if (RuleIdentifier[1] != 'o')
1404 break;
1405 switch (RuleIdentifier[2]) {
1406 default: break;
1407 case 'm': // 1 string to match.
1408 if (memcmp(RuleIdentifier.data()+3, "mute_fp_constant_to_rhs", 23) != 0)
1409 break;
1410 return 217; // "commute_fp_constant_to_rhs"
1411 case 'n': // 1 string to match.
1412 if (memcmp(RuleIdentifier.data()+3, "stant_fold_unary_int_op", 23) != 0)
1413 break;
1414 return 191; // "constant_fold_unary_int_op"
1415 }
1416 break;
1417 case 'f': // 1 string to match.
1418 if (memcmp(RuleIdentifier.data()+1, "unnel_shift_from_or_shift", 25) != 0)
1419 break;
1420 return 173; // "funnel_shift_from_or_shift"
1421 case 'r': // 1 string to match.
1422 if (memcmp(RuleIdentifier.data()+1, "ight_identity_neg_zero_fp", 25) != 0)
1423 break;
1424 return 108; // "right_identity_neg_zero_fp"
1425 }
1426 break;
1427 case 27: // 6 strings to match.
1428 switch (RuleIdentifier[0]) {
1429 default: break;
1430 case 'c': // 2 strings to match.
1431 if (memcmp(RuleIdentifier.data()+1, "om", 2) != 0)
1432 break;
1433 switch (RuleIdentifier[3]) {
1434 default: break;
1435 case 'b': // 1 string to match.
1436 if (memcmp(RuleIdentifier.data()+4, "ine_use_vector_truncate", 23) != 0)
1437 break;
1438 return 234; // "combine_use_vector_truncate"
1439 case 'm': // 1 string to match.
1440 if (memcmp(RuleIdentifier.data()+4, "ute_int_constant_to_rhs", 23) != 0)
1441 break;
1442 return 216; // "commute_int_constant_to_rhs"
1443 }
1444 break;
1445 case 'd': // 1 string to match.
1446 if (memcmp(RuleIdentifier.data()+1, "ouble_icmp_zero_or_combine", 26) != 0)
1447 break;
1448 return 123; // "double_icmp_zero_or_combine"
1449 case 'r': // 1 string to match.
1450 if (memcmp(RuleIdentifier.data()+1, "edundant_binop_in_equality", 26) != 0)
1451 break;
1452 return 124; // "redundant_binop_in_equality"
1453 case 't': // 1 string to match.
1454 if (memcmp(RuleIdentifier.data()+1, "runc_lshr_buildvector_fold", 26) != 0)
1455 break;
1456 return 104; // "trunc_lshr_buildvector_fold"
1457 case 'u': // 1 string to match.
1458 if (memcmp(RuleIdentifier.data()+1, "nmerge_anyext_build_vector", 26) != 0)
1459 break;
1460 return 235; // "unmerge_anyext_build_vector"
1461 }
1462 break;
1463 case 28: // 4 strings to match.
1464 switch (RuleIdentifier[0]) {
1465 default: break;
1466 case 'd': // 1 string to match.
1467 if (memcmp(RuleIdentifier.data()+1, "ouble_icmp_zero_and_combine", 27) != 0)
1468 break;
1469 return 122; // "double_icmp_zero_and_combine"
1470 case 'o': // 1 string to match.
1471 if (memcmp(RuleIdentifier.data()+1, "pt_brcond_by_inverting_cond", 27) != 0)
1472 break;
1473 return 144; // "opt_brcond_by_inverting_cond"
1474 case 'p': // 1 string to match.
1475 if (memcmp(RuleIdentifier.data()+1, "ropagate_undef_shuffle_mask", 27) != 0)
1476 break;
1477 return 86; // "propagate_undef_shuffle_mask"
1478 case 's': // 1 string to match.
1479 if (memcmp(RuleIdentifier.data()+1, "hift_of_shifted_logic_chain", 27) != 0)
1480 break;
1481 return 170; // "shift_of_shifted_logic_chain"
1482 }
1483 break;
1484 case 29: // 6 strings to match.
1485 switch (RuleIdentifier[0]) {
1486 default: break;
1487 case 'b': // 1 string to match.
1488 if (memcmp(RuleIdentifier.data()+1, "itfield_extract_from_shr_and", 28) != 0)
1489 break;
1490 return 186; // "bitfield_extract_from_shr_and"
1491 case 'c': // 4 strings to match.
1492 if (RuleIdentifier[1] != 'o')
1493 break;
1494 switch (RuleIdentifier[2]) {
1495 default: break;
1496 case 'm': // 2 strings to match.
1497 if (memcmp(RuleIdentifier.data()+3, "bine_", 5) != 0)
1498 break;
1499 switch (RuleIdentifier[8]) {
1500 default: break;
1501 case 'e': // 1 string to match.
1502 if (memcmp(RuleIdentifier.data()+9, "xtracted_vector_load", 20) != 0)
1503 break;
1504 return 76; // "combine_extracted_vector_load"
1505 case 's': // 1 string to match.
1506 if (memcmp(RuleIdentifier.data()+9, "huffle_disjoint_mask", 20) != 0)
1507 break;
1508 return 233; // "combine_shuffle_disjoint_mask"
1509 }
1510 break;
1511 case 'n': // 2 strings to match.
1512 if (memcmp(RuleIdentifier.data()+3, "stant_fold_intrinsic_", 21) != 0)
1513 break;
1514 switch (RuleIdentifier[24]) {
1515 default: break;
1516 case 'r': // 1 string to match.
1517 if (memcmp(RuleIdentifier.data()+25, "ound", 4) != 0)
1518 break;
1519 return 154; // "constant_fold_intrinsic_round"
1520 case 't': // 1 string to match.
1521 if (memcmp(RuleIdentifier.data()+25, "runc", 4) != 0)
1522 break;
1523 return 153; // "constant_fold_intrinsic_trunc"
1524 }
1525 break;
1526 }
1527 break;
1528 case 'i': // 1 string to match.
1529 if (memcmp(RuleIdentifier.data()+1, "cmp_to_true_false_known_bits", 28) != 0)
1530 break;
1531 return 120; // "icmp_to_true_false_known_bits"
1532 }
1533 break;
1534 case 30: // 2 strings to match.
1535 switch (RuleIdentifier[0]) {
1536 default: break;
1537 case 'f': // 1 string to match.
1538 if (memcmp(RuleIdentifier.data()+1, "reeze_of_non_undef_non_poison", 29) != 0)
1539 break;
1540 return 47; // "freeze_of_non_undef_non_poison"
1541 case 'r': // 1 string to match.
1542 if (memcmp(RuleIdentifier.data()+1, "ight_identity_neg_zero_fp_nsz", 29) != 0)
1543 break;
1544 return 109; // "right_identity_neg_zero_fp_nsz"
1545 }
1546 break;
1547 case 31: // 2 strings to match.
1548 if (memcmp(RuleIdentifier.data()+0, "insert_vector_element_", 22) != 0)
1549 break;
1550 switch (RuleIdentifier[22]) {
1551 default: break;
1552 case 'e': // 1 string to match.
1553 if (memcmp(RuleIdentifier.data()+23, "lt_undef", 8) != 0)
1554 break;
1555 return 28; // "insert_vector_element_elt_undef"
1556 case 'i': // 1 string to match.
1557 if (memcmp(RuleIdentifier.data()+23, "dx_undef", 8) != 0)
1558 break;
1559 return 27; // "insert_vector_element_idx_undef"
1560 }
1561 break;
1562 case 32: // 4 strings to match.
1563 switch (RuleIdentifier[0]) {
1564 default: break;
1565 case 'b': // 1 string to match.
1566 if (memcmp(RuleIdentifier.data()+1, "itfield_extract_from_sext_inreg", 31) != 0)
1567 break;
1568 return 183; // "bitfield_extract_from_sext_inreg"
1569 case 'c': // 2 strings to match.
1570 if (memcmp(RuleIdentifier.data()+1, "ombine_f", 8) != 0)
1571 break;
1572 switch (RuleIdentifier[9]) {
1573 default: break;
1574 case 'a': // 1 string to match.
1575 if (memcmp(RuleIdentifier.data()+10, "dd_fmul_to_fmad_or_fma", 22) != 0)
1576 break;
1577 return 196; // "combine_fadd_fmul_to_fmad_or_fma"
1578 case 's': // 1 string to match.
1579 if (memcmp(RuleIdentifier.data()+10, "ub_fmul_to_fmad_or_fma", 22) != 0)
1580 break;
1581 return 200; // "combine_fsub_fmul_to_fmad_or_fma"
1582 }
1583 break;
1584 case 'e': // 1 string to match.
1585 if (memcmp(RuleIdentifier.data()+1, "xtract_vector_element_not_const", 31) != 0)
1586 break;
1587 return 31; // "extract_vector_element_not_const"
1588 }
1589 break;
1590 case 33: // 1 string to match.
1591 if (memcmp(RuleIdentifier.data()+0, "constant_fold_intrinsic_roundeven", 33) != 0)
1592 break;
1593 return 155; // "constant_fold_intrinsic_roundeven"
1594 case 34: // 1 string to match.
1595 if (memcmp(RuleIdentifier.data()+0, "extract_all_elts_from_build_vector", 34) != 0)
1596 break;
1597 return 73; // "extract_all_elts_from_build_vector"
1598 case 35: // 1 string to match.
1599 if (memcmp(RuleIdentifier.data()+0, "extract_vector_element_build_vector", 35) != 0)
1600 break;
1601 return 33; // "extract_vector_element_build_vector"
1602 case 36: // 4 strings to match.
1603 switch (RuleIdentifier[0]) {
1604 default: break;
1605 case 'c': // 2 strings to match.
1606 if (memcmp(RuleIdentifier.data()+1, "ombine_", 7) != 0)
1607 break;
1608 switch (RuleIdentifier[8]) {
1609 default: break;
1610 case 'f': // 1 string to match.
1611 if (memcmp(RuleIdentifier.data()+9, "add_fma_fmul_to_fmad_or_fma", 27) != 0)
1612 break;
1613 return 198; // "combine_fadd_fma_fmul_to_fmad_or_fma"
1614 case 'i': // 1 string to match.
1615 if (memcmp(RuleIdentifier.data()+9, "nsert_vec_elts_build_vector", 27) != 0)
1616 break;
1617 return 71; // "combine_insert_vec_elts_build_vector"
1618 }
1619 break;
1620 case 'i': // 1 string to match.
1621 if (memcmp(RuleIdentifier.data()+1, "nsert_extract_vec_elt_out_of_bounds", 35) != 0)
1622 break;
1623 return 88; // "insert_extract_vec_elt_out_of_bounds"
1624 case 'm': // 1 string to match.
1625 if (memcmp(RuleIdentifier.data()+1, "atch_extract_of_element_undef_index", 35) != 0)
1626 break;
1627 return 26; // "match_extract_of_element_undef_index"
1628 }
1629 break;
1630 case 37: // 4 strings to match.
1631 switch (RuleIdentifier[0]) {
1632 default: break;
1633 case 'c': // 1 string to match.
1634 if (memcmp(RuleIdentifier.data()+1, "ombine_fsub_fneg_fmul_to_fmad_or_fma", 36) != 0)
1635 break;
1636 return 201; // "combine_fsub_fneg_fmul_to_fmad_or_fma"
1637 case 'e': // 1 string to match.
1638 if (memcmp(RuleIdentifier.data()+1, "xtract_vector_element_shuffle_vector", 36) != 0)
1639 break;
1640 return 41; // "extract_vector_element_shuffle_vector"
1641 case 'h': // 1 string to match.
1642 if (memcmp(RuleIdentifier.data()+1, "oist_logic_op_with_same_opcode_hands", 36) != 0)
1643 break;
1644 return 113; // "hoist_logic_op_with_same_opcode_hands"
1645 case 'm': // 1 string to match.
1646 if (memcmp(RuleIdentifier.data()+1, "atch_extract_of_element_undef_vector", 36) != 0)
1647 break;
1648 return 25; // "match_extract_of_element_undef_vector"
1649 }
1650 break;
1651 case 38: // 2 strings to match.
1652 if (memcmp(RuleIdentifier.data()+0, "combine_f", 9) != 0)
1653 break;
1654 switch (RuleIdentifier[9]) {
1655 default: break;
1656 case 'a': // 1 string to match.
1657 if (memcmp(RuleIdentifier.data()+10, "dd_fpext_fmul_to_fmad_or_fma", 28) != 0)
1658 break;
1659 return 197; // "combine_fadd_fpext_fmul_to_fmad_or_fma"
1660 case 's': // 1 string to match.
1661 if (memcmp(RuleIdentifier.data()+10, "ub_fpext_fmul_to_fmad_or_fma", 28) != 0)
1662 break;
1663 return 202; // "combine_fsub_fpext_fmul_to_fmad_or_fma"
1664 }
1665 break;
1666 case 40: // 1 string to match.
1667 if (memcmp(RuleIdentifier.data()+0, "extract_vector_element_different_indices", 40) != 0)
1668 break;
1669 return 32; // "extract_vector_element_different_indices"
1670 case 42: // 9 strings to match.
1671 switch (RuleIdentifier[0]) {
1672 default: break;
1673 case 'c': // 1 string to match.
1674 if (memcmp(RuleIdentifier.data()+1, "ombine_fadd_fpext_fma_fmul_to_fmad_or_fma", 41) != 0)
1675 break;
1676 return 199; // "combine_fadd_fpext_fma_fmul_to_fmad_or_fma"
1677 case 'e': // 7 strings to match.
1678 if (memcmp(RuleIdentifier.data()+1, "xtract_vector_element_build_vector_trunc", 40) != 0)
1679 break;
1680 switch (RuleIdentifier[41]) {
1681 default: break;
1682 case '2': // 1 string to match.
1683 return 34; // "extract_vector_element_build_vector_trunc2"
1684 case '3': // 1 string to match.
1685 return 35; // "extract_vector_element_build_vector_trunc3"
1686 case '4': // 1 string to match.
1687 return 36; // "extract_vector_element_build_vector_trunc4"
1688 case '5': // 1 string to match.
1689 return 37; // "extract_vector_element_build_vector_trunc5"
1690 case '6': // 1 string to match.
1691 return 38; // "extract_vector_element_build_vector_trunc6"
1692 case '7': // 1 string to match.
1693 return 39; // "extract_vector_element_build_vector_trunc7"
1694 case '8': // 1 string to match.
1695 return 40; // "extract_vector_element_build_vector_trunc8"
1696 }
1697 break;
1698 case 'f': // 1 string to match.
1699 if (memcmp(RuleIdentifier.data()+1, "unnel_shift_or_shift_to_funnel_shift_left", 41) != 0)
1700 break;
1701 return 178; // "funnel_shift_or_shift_to_funnel_shift_left"
1702 }
1703 break;
1704 case 43: // 2 strings to match.
1705 switch (RuleIdentifier[0]) {
1706 default: break;
1707 case 'c': // 1 string to match.
1708 if (memcmp(RuleIdentifier.data()+1, "ombine_fsub_fpext_fneg_fmul_to_fmad_or_fma", 42) != 0)
1709 break;
1710 return 203; // "combine_fsub_fpext_fneg_fmul_to_fmad_or_fma"
1711 case 'f': // 1 string to match.
1712 if (memcmp(RuleIdentifier.data()+1, "unnel_shift_or_shift_to_funnel_shift_right", 42) != 0)
1713 break;
1714 return 179; // "funnel_shift_or_shift_to_funnel_shift_right"
1715 }
1716 break;
1717 case 44: // 1 string to match.
1718 if (memcmp(RuleIdentifier.data()+0, "insert_vector_element_extract_vector_element", 44) != 0)
1719 break;
1720 return 42; // "insert_vector_element_extract_vector_element"
1721 case 46: // 1 string to match.
1722 if (memcmp(RuleIdentifier.data()+0, "push_freeze_to_prevent_poison_from_propagating", 46) != 0)
1723 break;
1724 return 48; // "push_freeze_to_prevent_poison_from_propagating"
1725 }
1726#endif // ifndef NDEBUG
1727
1728 return std::nullopt;
1729}
1730static std::optional<std::pair<uint64_t, uint64_t>> getRuleRangeForIdentifier(StringRef RuleIdentifier) {
1731 std::pair<StringRef, StringRef> RangePair = RuleIdentifier.split('-');
1732 if (!RangePair.second.empty()) {
1733 const auto First = getRuleIdxForIdentifier(RangePair.first);
1734 const auto Last = getRuleIdxForIdentifier(RangePair.second);
1735 if (!First || !Last)
1736 return std::nullopt;
1737 if (First >= Last)
1738 report_fatal_error("Beginning of range should be before end of range");
1739 return {{*First, *Last + 1}};
1740 }
1741 if (RangePair.first == "*") {
1742 return {{0, 268}};
1743 }
1744 const auto I = getRuleIdxForIdentifier(RangePair.first);
1745 if (!I)
1746 return std::nullopt;
1747 return {{*I, *I + 1}};
1748}
1749
1750bool RISCVPreLegalizerCombinerImplRuleConfig::setRuleEnabled(StringRef RuleIdentifier) {
1751 auto MaybeRange = getRuleRangeForIdentifier(RuleIdentifier);
1752 if (!MaybeRange)
1753 return false;
1754 for (auto I = MaybeRange->first; I < MaybeRange->second; ++I)
1755 DisabledRules.reset(I);
1756 return true;
1757}
1758
1759bool RISCVPreLegalizerCombinerImplRuleConfig::setRuleDisabled(StringRef RuleIdentifier) {
1760 auto MaybeRange = getRuleRangeForIdentifier(RuleIdentifier);
1761 if (!MaybeRange)
1762 return false;
1763 for (auto I = MaybeRange->first; I < MaybeRange->second; ++I)
1764 DisabledRules.set(I);
1765 return true;
1766}
1767
1768static std::vector<std::string> RISCVPreLegalizerCombinerOption;
1769static cl::list<std::string> RISCVPreLegalizerCombinerDisableOption(
1770 "riscvprelegalizercombiner-disable-rule",
1771 cl::desc("Disable one or more combiner rules temporarily in the RISCVPreLegalizerCombiner pass"),
1772 cl::CommaSeparated,
1773 cl::Hidden,
1774 cl::cat(GICombinerOptionCategory),
1775 cl::callback([](const std::string &Str) {
1776 RISCVPreLegalizerCombinerOption.push_back(Str);
1777 }));
1778static cl::list<std::string> RISCVPreLegalizerCombinerOnlyEnableOption(
1779 "riscvprelegalizercombiner-only-enable-rule",
1780 cl::desc("Disable all rules in the RISCVPreLegalizerCombiner pass then re-enable the specified ones"),
1781 cl::Hidden,
1782 cl::cat(GICombinerOptionCategory),
1783 cl::callback([](const std::string &CommaSeparatedArg) {
1784 StringRef Str = CommaSeparatedArg;
1785 RISCVPreLegalizerCombinerOption.push_back("*");
1786 do {
1787 auto X = Str.split(",");
1788 RISCVPreLegalizerCombinerOption.push_back(("!" + X.first).str());
1789 Str = X.second;
1790 } while (!Str.empty());
1791 }));
1792
1793
1794bool RISCVPreLegalizerCombinerImplRuleConfig::isRuleEnabled(unsigned RuleID) const {
1795 return !DisabledRules.test(RuleID);
1796}
1797bool RISCVPreLegalizerCombinerImplRuleConfig::parseCommandLineOption() {
1798 for (StringRef Identifier : RISCVPreLegalizerCombinerOption) {
1799 bool Enabled = Identifier.consume_front("!");
1800 if (Enabled && !setRuleEnabled(Identifier))
1801 return false;
1802 if (!Enabled && !setRuleDisabled(Identifier))
1803 return false;
1804 }
1805 return true;
1806}
1807
1808
1809#endif // GET_GICOMBINER_TYPES
1810
1811#ifdef GET_GICOMBINER_TYPES
1812
1813const unsigned MAX_SUBTARGET_PREDICATES = 0;
1814using PredicateBitset = llvm::Bitset<MAX_SUBTARGET_PREDICATES>;
1815
1816#endif // GET_GICOMBINER_TYPES
1817
1818#ifdef GET_GICOMBINER_CLASS_MEMBERS
1819
1820 bool canMatchOpcode(unsigned Opc) const override;
1821
1822#endif // GET_GICOMBINER_CLASS_MEMBERS
1823
1824#ifdef GET_GICOMBINER_CLASS_MEMBERS
1825
1826PredicateBitset AvailableModuleFeatures;
1827mutable PredicateBitset AvailableFunctionFeatures;
1828PredicateBitset getAvailableFeatures() const {
1829 return AvailableModuleFeatures | AvailableFunctionFeatures;
1830}
1831PredicateBitset
1832computeAvailableModuleFeatures(const RISCVSubtarget *Subtarget) const;
1833PredicateBitset
1834computeAvailableFunctionFeatures(const RISCVSubtarget *Subtarget,
1835 const MachineFunction *MF) const;
1836void setupGeneratedPerFunctionState(MachineFunction &MF) override;
1837
1838#endif // GET_GICOMBINER_CLASS_MEMBERS
1839
1840#ifdef GET_GICOMBINER_CLASS_MEMBERS
1841
1842 mutable MatcherState State;
1843 typedef ComplexRendererFns(RISCVPreLegalizerCombinerImpl::*ComplexMatcherMemFn)(MachineOperand &) const;
1844 typedef void(RISCVPreLegalizerCombinerImpl::*CustomRendererFn)(MachineInstrBuilder &, const MachineInstr &, int) const;
1845 const ExecInfoTy<PredicateBitset, ComplexMatcherMemFn, CustomRendererFn> ExecInfo;
1846 static RISCVPreLegalizerCombinerImpl::ComplexMatcherMemFn ComplexPredicateFns[];
1847 static RISCVPreLegalizerCombinerImpl::CustomRendererFn CustomRenderers[];
1848 bool testImmPredicate_I64(unsigned PredicateID, int64_t Imm) const override;
1849 bool testImmPredicate_APInt(unsigned PredicateID, const APInt &Imm) const override;
1850 bool testImmPredicate_APFloat(unsigned PredicateID, const APFloat &Imm) const override;
1851 const uint8_t *getMatchTable() const override;
1852 bool testMIPredicate_MI(unsigned PredicateID, const MachineInstr &MI, const MatcherState &State) const override;
1853 bool testMOPredicate_MO(unsigned PredicateID, const MachineOperand &MO, const MatcherState &State) const override;
1854 bool testSimplePredicate(unsigned PredicateID) const override;
1855 bool runCustomAction(unsigned FnID, const MatcherState &State, NewMIVector &OutMIs) const override;
1856
1857#endif // GET_GICOMBINER_CLASS_MEMBERS
1858
1859#ifdef GET_GICOMBINER_IMPL
1860
1861// LLT Objects.
1862enum {
1863 GILLT_s1,
1864};
1865const static size_t NumTypeObjects = 1;
1866const static LLT TypeObjects[] = {
1867 LLT::scalar(1),
1868};
1869
1870// Bits for subtarget features that participate in instruction matching.
1871enum SubtargetFeatureBits : uint8_t {
1872};
1873
1874PredicateBitset RISCVPreLegalizerCombinerImpl::
1875computeAvailableModuleFeatures(const RISCVSubtarget *Subtarget) const {
1876 PredicateBitset Features{};
1877 return Features;
1878}
1879
1880void RISCVPreLegalizerCombinerImpl::setupGeneratedPerFunctionState(MachineFunction &MF) {
1881 AvailableFunctionFeatures = computeAvailableFunctionFeatures((const RISCVSubtarget *)&MF.getSubtarget(), &MF);
1882}
1883PredicateBitset RISCVPreLegalizerCombinerImpl::
1884computeAvailableFunctionFeatures(const RISCVSubtarget *Subtarget, const MachineFunction *MF) const {
1885 PredicateBitset Features{};
1886 return Features;
1887}
1888
1889// Feature bitsets.
1890enum {
1891 GIFBS_Invalid,
1892};
1893constexpr static PredicateBitset FeatureBitsets[] {
1894 {}, // GIFBS_Invalid
1895};
1896
1897// ComplexPattern predicates.
1898enum {
1899 GICP_Invalid,
1900};
1901// See constructor for table contents
1902
1903RISCVPreLegalizerCombinerImpl::ComplexMatcherMemFn
1904RISCVPreLegalizerCombinerImpl::ComplexPredicateFns[] = {
1905 nullptr, // GICP_Invalid
1906};
1907
1908enum {
1909 GICXXPred_MI_Predicate_GICombiner0 = GICXXPred_Invalid + 1,
1910 GICXXPred_MI_Predicate_GICombiner1,
1911 GICXXPred_MI_Predicate_GICombiner2,
1912 GICXXPred_MI_Predicate_GICombiner3,
1913 GICXXPred_MI_Predicate_GICombiner4,
1914 GICXXPred_MI_Predicate_GICombiner5,
1915 GICXXPred_MI_Predicate_GICombiner6,
1916 GICXXPred_MI_Predicate_GICombiner7,
1917 GICXXPred_MI_Predicate_GICombiner8,
1918 GICXXPred_MI_Predicate_GICombiner9,
1919 GICXXPred_MI_Predicate_GICombiner10,
1920 GICXXPred_MI_Predicate_GICombiner11,
1921 GICXXPred_MI_Predicate_GICombiner12,
1922 GICXXPred_MI_Predicate_GICombiner13,
1923 GICXXPred_MI_Predicate_GICombiner14,
1924 GICXXPred_MI_Predicate_GICombiner15,
1925 GICXXPred_MI_Predicate_GICombiner16,
1926 GICXXPred_MI_Predicate_GICombiner17,
1927 GICXXPred_MI_Predicate_GICombiner18,
1928 GICXXPred_MI_Predicate_GICombiner19,
1929 GICXXPred_MI_Predicate_GICombiner20,
1930 GICXXPred_MI_Predicate_GICombiner21,
1931 GICXXPred_MI_Predicate_GICombiner22,
1932 GICXXPred_MI_Predicate_GICombiner23,
1933};
1934bool RISCVPreLegalizerCombinerImpl::testMIPredicate_MI(unsigned PredicateID, const MachineInstr & MI, const MatcherState &State) const {
1935 switch (PredicateID) {
1936 case GICXXPred_MI_Predicate_GICombiner0: {
1937 return MRI.hasOneNonDBGUse(State.MIs[0]->getOperand(2).getReg());
1938 }
1939 case GICXXPred_MI_Predicate_GICombiner1: {
1940 return MRI.hasOneNonDBGUse(State.MIs[0]->getOperand(1).getReg());
1941 }
1942 case GICXXPred_MI_Predicate_GICombiner2: {
1943 return isGuaranteedNotToBePoison(State.MIs[0]->getOperand(1).getReg(), MRI);
1944 }
1945 case GICXXPred_MI_Predicate_GICombiner3: {
1946 return isGuaranteedNotToBeUndefOrPoison(State.MIs[0]->getOperand(1).getReg(), MRI);
1947 }
1948 case GICXXPred_MI_Predicate_GICombiner4: {
1949 return Helper.matchConstantFPOp(State.MIs[0]->getOperand(2), 1.0);
1950 }
1951 case GICXXPred_MI_Predicate_GICombiner5: {
1952 return MRI.getType(State.MIs[1]->getOperand(1).getReg()) != MRI.getType(State.MIs[0]->getOperand(0).getReg());
1953 }
1954 case GICXXPred_MI_Predicate_GICombiner6: {
1955 return Helper.matchConstantFPOp(State.MIs[0]->getOperand(2), -0.0);
1956 }
1957 case GICXXPred_MI_Predicate_GICombiner7: {
1958 return Helper.matchConstantFPOp(State.MIs[0]->getOperand(2), 0.0);
1959 }
1960 case GICXXPred_MI_Predicate_GICombiner8: {
1961 return Helper.matchConstantFPOp(State.MIs[0]->getOperand(2), -1.0);
1962 }
1963 case GICXXPred_MI_Predicate_GICombiner9: {
1964 return State.MIs[1]->getOperand(1).getPredicate() == CmpInst::ICMP_EQ &&
1965 !MRI.getType(State.MIs[1]->getOperand(2).getReg()).getScalarType().isPointer() &&
1966 (MRI.getType(State.MIs[1]->getOperand(2).getReg()) ==
1967 MRI.getType(State.MIs[2]->getOperand(2).getReg()));
1968 }
1969 case GICXXPred_MI_Predicate_GICombiner10: {
1970 return State.MIs[1]->getOperand(1).getPredicate() == CmpInst::ICMP_NE &&
1971 !MRI.getType(State.MIs[1]->getOperand(2).getReg()).getScalarType().isPointer() &&
1972 (MRI.getType(State.MIs[1]->getOperand(2).getReg()) ==
1973 MRI.getType(State.MIs[2]->getOperand(2).getReg()));
1974 }
1975 case GICXXPred_MI_Predicate_GICombiner11: {
1976 return MRI.hasOneNonDBGUse(State.MIs[0]->getOperand(2).getReg()) &&
1977 Helper.isLegalOrBeforeLegalizer(
1978 {TargetOpcode::G_SEXT_INREG, {MRI.getType(State.MIs[1]->getOperand(1).getReg())}});
1979 }
1980 case GICXXPred_MI_Predicate_GICombiner12: {
1981 return MRI.getType(State.MIs[0]->getOperand(1).getReg()) == MRI.getType(State.MIs[0]->getOperand(0).getReg()) &&
1982 VT->computeNumSignBits(State.MIs[0]->getOperand(1).getReg()) == MRI.getType(State.MIs[0]->getOperand(0).getReg()).getScalarSizeInBits();
1983 }
1984 case GICXXPred_MI_Predicate_GICombiner13: {
1985 return Helper.isLegalOrBeforeLegalizer({TargetOpcode::G_LSHR,
1986 {MRI.getType(State.MIs[2]->getOperand(1).getReg()),
1987 MRI.getType(State.MIs[1]->getOperand(2).getReg())}});
1988 }
1989 case GICXXPred_MI_Predicate_GICombiner14: {
1990 return Helper.isLegalOrBeforeLegalizer({TargetOpcode::G_SHL,
1991 {MRI.getType(State.MIs[2]->getOperand(1).getReg()),
1992 MRI.getType(State.MIs[1]->getOperand(2).getReg())}});
1993 }
1994 case GICXXPred_MI_Predicate_GICombiner15: {
1995 return Helper.matchTruncUSatU(*State.MIs[0], *State.MIs[1]);
1996 }
1997 case GICXXPred_MI_Predicate_GICombiner16: {
1998 return Helper.matchTruncUSatUToFPTOUISat(*State.MIs[0], *State.MIs[1]);
1999 }
2000 case GICXXPred_MI_Predicate_GICombiner17: {
2001 return MRI.hasOneNonDBGUse(State.MIs[0]->getOperand(2).getReg()) &&
2002 MRI.hasOneNonDBGUse(State.MIs[1]->getOperand(1).getReg());
2003 }
2004 case GICXXPred_MI_Predicate_GICombiner18: {
2005 return MRI.hasOneNonDBGUse(State.MIs[0]->getOperand(1).getReg()) &&
2006 MRI.hasOneNonDBGUse(State.MIs[1]->getOperand(1).getReg());
2007 }
2008 case GICXXPred_MI_Predicate_GICombiner19: {
2009 return MRI.hasOneNonDBGUse(State.MIs[1]->getOperand(2).getReg()) &&
2010 MRI.hasOneNonDBGUse(State.MIs[0]->getOperand(2).getReg());
2011 }
2012 case GICXXPred_MI_Predicate_GICombiner20: {
2013 return Helper.matchAVG(*State.MIs[0], MRI, State.MIs[2]->getOperand(1).getReg(), State.MIs[3]->getOperand(1).getReg(), TargetOpcode::G_UAVGFLOOR);
2014 }
2015 case GICXXPred_MI_Predicate_GICombiner21: {
2016 return Helper.matchAVG(*State.MIs[0], MRI, State.MIs[2]->getOperand(1).getReg(), State.MIs[3]->getOperand(1).getReg(), TargetOpcode::G_SAVGFLOOR);
2017 }
2018 case GICXXPred_MI_Predicate_GICombiner22: {
2019 return Helper.matchAVG(*State.MIs[0], MRI, State.MIs[3]->getOperand(1).getReg(), State.MIs[4]->getOperand(1).getReg(), TargetOpcode::G_UAVGCEIL);
2020 }
2021 case GICXXPred_MI_Predicate_GICombiner23: {
2022 return Helper.matchAVG(*State.MIs[0], MRI, State.MIs[3]->getOperand(1).getReg(), State.MIs[4]->getOperand(1).getReg(), TargetOpcode::G_SAVGCEIL);
2023 }
2024 }
2025 llvm_unreachable("Unknown predicate");
2026 return false;
2027}
2028bool RISCVPreLegalizerCombinerImpl::testMOPredicate_MO(unsigned PredicateID, const MachineOperand & MO, const MatcherState &State) const {
2029 llvm_unreachable("Unknown predicate");
2030 return false;
2031}
2032bool RISCVPreLegalizerCombinerImpl::testImmPredicate_I64(unsigned PredicateID, int64_t Imm) const {
2033 llvm_unreachable("Unknown predicate");
2034 return false;
2035}
2036bool RISCVPreLegalizerCombinerImpl::testImmPredicate_APFloat(unsigned PredicateID, const APFloat & Imm) const {
2037 llvm_unreachable("Unknown predicate");
2038 return false;
2039}
2040bool RISCVPreLegalizerCombinerImpl::testImmPredicate_APInt(unsigned PredicateID, const APInt & Imm) const {
2041 llvm_unreachable("Unknown predicate");
2042 return false;
2043}
2044enum {
2045 GICXXPred_Simple_IsRule0Enabled = GICXXPred_Invalid + 1,
2046 GICXXPred_Simple_IsRule1Enabled,
2047 GICXXPred_Simple_IsRule2Enabled,
2048 GICXXPred_Simple_IsRule3Enabled,
2049 GICXXPred_Simple_IsRule4Enabled,
2050 GICXXPred_Simple_IsRule5Enabled,
2051 GICXXPred_Simple_IsRule6Enabled,
2052 GICXXPred_Simple_IsRule7Enabled,
2053 GICXXPred_Simple_IsRule8Enabled,
2054 GICXXPred_Simple_IsRule9Enabled,
2055 GICXXPred_Simple_IsRule10Enabled,
2056 GICXXPred_Simple_IsRule11Enabled,
2057 GICXXPred_Simple_IsRule12Enabled,
2058 GICXXPred_Simple_IsRule13Enabled,
2059 GICXXPred_Simple_IsRule14Enabled,
2060 GICXXPred_Simple_IsRule15Enabled,
2061 GICXXPred_Simple_IsRule16Enabled,
2062 GICXXPred_Simple_IsRule17Enabled,
2063 GICXXPred_Simple_IsRule18Enabled,
2064 GICXXPred_Simple_IsRule19Enabled,
2065 GICXXPred_Simple_IsRule20Enabled,
2066 GICXXPred_Simple_IsRule21Enabled,
2067 GICXXPred_Simple_IsRule22Enabled,
2068 GICXXPred_Simple_IsRule23Enabled,
2069 GICXXPred_Simple_IsRule24Enabled,
2070 GICXXPred_Simple_IsRule25Enabled,
2071 GICXXPred_Simple_IsRule26Enabled,
2072 GICXXPred_Simple_IsRule27Enabled,
2073 GICXXPred_Simple_IsRule28Enabled,
2074 GICXXPred_Simple_IsRule29Enabled,
2075 GICXXPred_Simple_IsRule30Enabled,
2076 GICXXPred_Simple_IsRule31Enabled,
2077 GICXXPred_Simple_IsRule32Enabled,
2078 GICXXPred_Simple_IsRule33Enabled,
2079 GICXXPred_Simple_IsRule34Enabled,
2080 GICXXPred_Simple_IsRule35Enabled,
2081 GICXXPred_Simple_IsRule36Enabled,
2082 GICXXPred_Simple_IsRule37Enabled,
2083 GICXXPred_Simple_IsRule38Enabled,
2084 GICXXPred_Simple_IsRule39Enabled,
2085 GICXXPred_Simple_IsRule40Enabled,
2086 GICXXPred_Simple_IsRule41Enabled,
2087 GICXXPred_Simple_IsRule42Enabled,
2088 GICXXPred_Simple_IsRule43Enabled,
2089 GICXXPred_Simple_IsRule44Enabled,
2090 GICXXPred_Simple_IsRule45Enabled,
2091 GICXXPred_Simple_IsRule46Enabled,
2092 GICXXPred_Simple_IsRule47Enabled,
2093 GICXXPred_Simple_IsRule48Enabled,
2094 GICXXPred_Simple_IsRule49Enabled,
2095 GICXXPred_Simple_IsRule50Enabled,
2096 GICXXPred_Simple_IsRule51Enabled,
2097 GICXXPred_Simple_IsRule52Enabled,
2098 GICXXPred_Simple_IsRule53Enabled,
2099 GICXXPred_Simple_IsRule54Enabled,
2100 GICXXPred_Simple_IsRule55Enabled,
2101 GICXXPred_Simple_IsRule56Enabled,
2102 GICXXPred_Simple_IsRule57Enabled,
2103 GICXXPred_Simple_IsRule58Enabled,
2104 GICXXPred_Simple_IsRule59Enabled,
2105 GICXXPred_Simple_IsRule60Enabled,
2106 GICXXPred_Simple_IsRule61Enabled,
2107 GICXXPred_Simple_IsRule62Enabled,
2108 GICXXPred_Simple_IsRule63Enabled,
2109 GICXXPred_Simple_IsRule64Enabled,
2110 GICXXPred_Simple_IsRule65Enabled,
2111 GICXXPred_Simple_IsRule66Enabled,
2112 GICXXPred_Simple_IsRule67Enabled,
2113 GICXXPred_Simple_IsRule68Enabled,
2114 GICXXPred_Simple_IsRule69Enabled,
2115 GICXXPred_Simple_IsRule70Enabled,
2116 GICXXPred_Simple_IsRule71Enabled,
2117 GICXXPred_Simple_IsRule72Enabled,
2118 GICXXPred_Simple_IsRule73Enabled,
2119 GICXXPred_Simple_IsRule74Enabled,
2120 GICXXPred_Simple_IsRule75Enabled,
2121 GICXXPred_Simple_IsRule76Enabled,
2122 GICXXPred_Simple_IsRule77Enabled,
2123 GICXXPred_Simple_IsRule78Enabled,
2124 GICXXPred_Simple_IsRule79Enabled,
2125 GICXXPred_Simple_IsRule80Enabled,
2126 GICXXPred_Simple_IsRule81Enabled,
2127 GICXXPred_Simple_IsRule82Enabled,
2128 GICXXPred_Simple_IsRule83Enabled,
2129 GICXXPred_Simple_IsRule84Enabled,
2130 GICXXPred_Simple_IsRule85Enabled,
2131 GICXXPred_Simple_IsRule86Enabled,
2132 GICXXPred_Simple_IsRule87Enabled,
2133 GICXXPred_Simple_IsRule88Enabled,
2134 GICXXPred_Simple_IsRule89Enabled,
2135 GICXXPred_Simple_IsRule90Enabled,
2136 GICXXPred_Simple_IsRule91Enabled,
2137 GICXXPred_Simple_IsRule92Enabled,
2138 GICXXPred_Simple_IsRule93Enabled,
2139 GICXXPred_Simple_IsRule94Enabled,
2140 GICXXPred_Simple_IsRule95Enabled,
2141 GICXXPred_Simple_IsRule96Enabled,
2142 GICXXPred_Simple_IsRule97Enabled,
2143 GICXXPred_Simple_IsRule98Enabled,
2144 GICXXPred_Simple_IsRule99Enabled,
2145 GICXXPred_Simple_IsRule100Enabled,
2146 GICXXPred_Simple_IsRule101Enabled,
2147 GICXXPred_Simple_IsRule102Enabled,
2148 GICXXPred_Simple_IsRule103Enabled,
2149 GICXXPred_Simple_IsRule104Enabled,
2150 GICXXPred_Simple_IsRule105Enabled,
2151 GICXXPred_Simple_IsRule106Enabled,
2152 GICXXPred_Simple_IsRule107Enabled,
2153 GICXXPred_Simple_IsRule108Enabled,
2154 GICXXPred_Simple_IsRule109Enabled,
2155 GICXXPred_Simple_IsRule110Enabled,
2156 GICXXPred_Simple_IsRule111Enabled,
2157 GICXXPred_Simple_IsRule112Enabled,
2158 GICXXPred_Simple_IsRule113Enabled,
2159 GICXXPred_Simple_IsRule114Enabled,
2160 GICXXPred_Simple_IsRule115Enabled,
2161 GICXXPred_Simple_IsRule116Enabled,
2162 GICXXPred_Simple_IsRule117Enabled,
2163 GICXXPred_Simple_IsRule118Enabled,
2164 GICXXPred_Simple_IsRule119Enabled,
2165 GICXXPred_Simple_IsRule120Enabled,
2166 GICXXPred_Simple_IsRule121Enabled,
2167 GICXXPred_Simple_IsRule122Enabled,
2168 GICXXPred_Simple_IsRule123Enabled,
2169 GICXXPred_Simple_IsRule124Enabled,
2170 GICXXPred_Simple_IsRule125Enabled,
2171 GICXXPred_Simple_IsRule126Enabled,
2172 GICXXPred_Simple_IsRule127Enabled,
2173 GICXXPred_Simple_IsRule128Enabled,
2174 GICXXPred_Simple_IsRule129Enabled,
2175 GICXXPred_Simple_IsRule130Enabled,
2176 GICXXPred_Simple_IsRule131Enabled,
2177 GICXXPred_Simple_IsRule132Enabled,
2178 GICXXPred_Simple_IsRule133Enabled,
2179 GICXXPred_Simple_IsRule134Enabled,
2180 GICXXPred_Simple_IsRule135Enabled,
2181 GICXXPred_Simple_IsRule136Enabled,
2182 GICXXPred_Simple_IsRule137Enabled,
2183 GICXXPred_Simple_IsRule138Enabled,
2184 GICXXPred_Simple_IsRule139Enabled,
2185 GICXXPred_Simple_IsRule140Enabled,
2186 GICXXPred_Simple_IsRule141Enabled,
2187 GICXXPred_Simple_IsRule142Enabled,
2188 GICXXPred_Simple_IsRule143Enabled,
2189 GICXXPred_Simple_IsRule144Enabled,
2190 GICXXPred_Simple_IsRule145Enabled,
2191 GICXXPred_Simple_IsRule146Enabled,
2192 GICXXPred_Simple_IsRule147Enabled,
2193 GICXXPred_Simple_IsRule148Enabled,
2194 GICXXPred_Simple_IsRule149Enabled,
2195 GICXXPred_Simple_IsRule150Enabled,
2196 GICXXPred_Simple_IsRule151Enabled,
2197 GICXXPred_Simple_IsRule152Enabled,
2198 GICXXPred_Simple_IsRule153Enabled,
2199 GICXXPred_Simple_IsRule154Enabled,
2200 GICXXPred_Simple_IsRule155Enabled,
2201 GICXXPred_Simple_IsRule156Enabled,
2202 GICXXPred_Simple_IsRule157Enabled,
2203 GICXXPred_Simple_IsRule158Enabled,
2204 GICXXPred_Simple_IsRule159Enabled,
2205 GICXXPred_Simple_IsRule160Enabled,
2206 GICXXPred_Simple_IsRule161Enabled,
2207 GICXXPred_Simple_IsRule162Enabled,
2208 GICXXPred_Simple_IsRule163Enabled,
2209 GICXXPred_Simple_IsRule164Enabled,
2210 GICXXPred_Simple_IsRule165Enabled,
2211 GICXXPred_Simple_IsRule166Enabled,
2212 GICXXPred_Simple_IsRule167Enabled,
2213 GICXXPred_Simple_IsRule168Enabled,
2214 GICXXPred_Simple_IsRule169Enabled,
2215 GICXXPred_Simple_IsRule170Enabled,
2216 GICXXPred_Simple_IsRule171Enabled,
2217 GICXXPred_Simple_IsRule172Enabled,
2218 GICXXPred_Simple_IsRule173Enabled,
2219 GICXXPred_Simple_IsRule174Enabled,
2220 GICXXPred_Simple_IsRule175Enabled,
2221 GICXXPred_Simple_IsRule176Enabled,
2222 GICXXPred_Simple_IsRule177Enabled,
2223 GICXXPred_Simple_IsRule178Enabled,
2224 GICXXPred_Simple_IsRule179Enabled,
2225 GICXXPred_Simple_IsRule180Enabled,
2226 GICXXPred_Simple_IsRule181Enabled,
2227 GICXXPred_Simple_IsRule182Enabled,
2228 GICXXPred_Simple_IsRule183Enabled,
2229 GICXXPred_Simple_IsRule184Enabled,
2230 GICXXPred_Simple_IsRule185Enabled,
2231 GICXXPred_Simple_IsRule186Enabled,
2232 GICXXPred_Simple_IsRule187Enabled,
2233 GICXXPred_Simple_IsRule188Enabled,
2234 GICXXPred_Simple_IsRule189Enabled,
2235 GICXXPred_Simple_IsRule190Enabled,
2236 GICXXPred_Simple_IsRule191Enabled,
2237 GICXXPred_Simple_IsRule192Enabled,
2238 GICXXPred_Simple_IsRule193Enabled,
2239 GICXXPred_Simple_IsRule194Enabled,
2240 GICXXPred_Simple_IsRule195Enabled,
2241 GICXXPred_Simple_IsRule196Enabled,
2242 GICXXPred_Simple_IsRule197Enabled,
2243 GICXXPred_Simple_IsRule198Enabled,
2244 GICXXPred_Simple_IsRule199Enabled,
2245 GICXXPred_Simple_IsRule200Enabled,
2246 GICXXPred_Simple_IsRule201Enabled,
2247 GICXXPred_Simple_IsRule202Enabled,
2248 GICXXPred_Simple_IsRule203Enabled,
2249 GICXXPred_Simple_IsRule204Enabled,
2250 GICXXPred_Simple_IsRule205Enabled,
2251 GICXXPred_Simple_IsRule206Enabled,
2252 GICXXPred_Simple_IsRule207Enabled,
2253 GICXXPred_Simple_IsRule208Enabled,
2254 GICXXPred_Simple_IsRule209Enabled,
2255 GICXXPred_Simple_IsRule210Enabled,
2256 GICXXPred_Simple_IsRule211Enabled,
2257 GICXXPred_Simple_IsRule212Enabled,
2258 GICXXPred_Simple_IsRule213Enabled,
2259 GICXXPred_Simple_IsRule214Enabled,
2260 GICXXPred_Simple_IsRule215Enabled,
2261 GICXXPred_Simple_IsRule216Enabled,
2262 GICXXPred_Simple_IsRule217Enabled,
2263 GICXXPred_Simple_IsRule218Enabled,
2264 GICXXPred_Simple_IsRule219Enabled,
2265 GICXXPred_Simple_IsRule220Enabled,
2266 GICXXPred_Simple_IsRule221Enabled,
2267 GICXXPred_Simple_IsRule222Enabled,
2268 GICXXPred_Simple_IsRule223Enabled,
2269 GICXXPred_Simple_IsRule224Enabled,
2270 GICXXPred_Simple_IsRule225Enabled,
2271 GICXXPred_Simple_IsRule226Enabled,
2272 GICXXPred_Simple_IsRule227Enabled,
2273 GICXXPred_Simple_IsRule228Enabled,
2274 GICXXPred_Simple_IsRule229Enabled,
2275 GICXXPred_Simple_IsRule230Enabled,
2276 GICXXPred_Simple_IsRule231Enabled,
2277 GICXXPred_Simple_IsRule232Enabled,
2278 GICXXPred_Simple_IsRule233Enabled,
2279 GICXXPred_Simple_IsRule234Enabled,
2280 GICXXPred_Simple_IsRule235Enabled,
2281 GICXXPred_Simple_IsRule236Enabled,
2282 GICXXPred_Simple_IsRule237Enabled,
2283 GICXXPred_Simple_IsRule238Enabled,
2284 GICXXPred_Simple_IsRule239Enabled,
2285 GICXXPred_Simple_IsRule240Enabled,
2286 GICXXPred_Simple_IsRule241Enabled,
2287 GICXXPred_Simple_IsRule242Enabled,
2288 GICXXPred_Simple_IsRule243Enabled,
2289 GICXXPred_Simple_IsRule244Enabled,
2290 GICXXPred_Simple_IsRule245Enabled,
2291 GICXXPred_Simple_IsRule246Enabled,
2292 GICXXPred_Simple_IsRule247Enabled,
2293 GICXXPred_Simple_IsRule248Enabled,
2294 GICXXPred_Simple_IsRule249Enabled,
2295 GICXXPred_Simple_IsRule250Enabled,
2296 GICXXPred_Simple_IsRule251Enabled,
2297 GICXXPred_Simple_IsRule252Enabled,
2298 GICXXPred_Simple_IsRule253Enabled,
2299 GICXXPred_Simple_IsRule254Enabled,
2300 GICXXPred_Simple_IsRule255Enabled,
2301 GICXXPred_Simple_IsRule256Enabled,
2302 GICXXPred_Simple_IsRule257Enabled,
2303 GICXXPred_Simple_IsRule258Enabled,
2304 GICXXPred_Simple_IsRule259Enabled,
2305 GICXXPred_Simple_IsRule260Enabled,
2306 GICXXPred_Simple_IsRule261Enabled,
2307 GICXXPred_Simple_IsRule262Enabled,
2308 GICXXPred_Simple_IsRule263Enabled,
2309 GICXXPred_Simple_IsRule264Enabled,
2310 GICXXPred_Simple_IsRule265Enabled,
2311 GICXXPred_Simple_IsRule266Enabled,
2312 GICXXPred_Simple_IsRule267Enabled,
2313};
2314
2315bool RISCVPreLegalizerCombinerImpl::testSimplePredicate(unsigned Predicate) const {
2316 return RuleConfig.isRuleEnabled(Predicate - GICXXPred_Invalid - 1);
2317}
2318// Custom renderers.
2319enum {
2320 GICR_Invalid,
2321};
2322RISCVPreLegalizerCombinerImpl::CustomRendererFn
2323RISCVPreLegalizerCombinerImpl::CustomRenderers[] = {
2324 nullptr, // GICR_Invalid
2325};
2326
2327bool RISCVPreLegalizerCombinerImpl::canMatchOpcode(unsigned Opc) const {
2328 switch (Opc) {
2329 case TargetOpcode::G_FCMP:
2330 case TargetOpcode::G_FSHL:
2331 case TargetOpcode::G_FSHR:
2332 case TargetOpcode::G_ICMP:
2333 case TargetOpcode::G_INSERT_VECTOR_ELT:
2334 case TargetOpcode::G_SELECT:
2335 case TargetOpcode::G_SHUFFLE_VECTOR:
2336 case TargetOpcode::G_ADD:
2337 case TargetOpcode::G_AND:
2338 case TargetOpcode::G_ASHR:
2339 case TargetOpcode::G_EXTRACT_VECTOR_ELT:
2340 case TargetOpcode::G_FADD:
2341 case TargetOpcode::G_FCOPYSIGN:
2342 case TargetOpcode::G_FDIV:
2343 case TargetOpcode::G_FMAXIMUM:
2344 case TargetOpcode::G_FMAXIMUMNUM:
2345 case TargetOpcode::G_FMAXNUM:
2346 case TargetOpcode::G_FMINIMUM:
2347 case TargetOpcode::G_FMINIMUMNUM:
2348 case TargetOpcode::G_FMINNUM:
2349 case TargetOpcode::G_FMUL:
2350 case TargetOpcode::G_FPOWI:
2351 case TargetOpcode::G_FREM:
2352 case TargetOpcode::G_FSUB:
2353 case TargetOpcode::G_LSHR:
2354 case TargetOpcode::G_MERGE_VALUES:
2355 case TargetOpcode::G_MUL:
2356 case TargetOpcode::G_OR:
2357 case TargetOpcode::G_PTR_ADD:
2358 case TargetOpcode::G_ROTL:
2359 case TargetOpcode::G_ROTR:
2360 case TargetOpcode::G_SDIV:
2361 case TargetOpcode::G_SEXT_INREG:
2362 case TargetOpcode::G_SHL:
2363 case TargetOpcode::G_SREM:
2364 case TargetOpcode::G_SUB:
2365 case TargetOpcode::G_UDIV:
2366 case TargetOpcode::G_UREM:
2367 case TargetOpcode::G_XOR:
2368 case TargetOpcode::COPY:
2369 case TargetOpcode::G_ABS:
2370 case TargetOpcode::G_ANYEXT:
2371 case TargetOpcode::G_BITCAST:
2372 case TargetOpcode::G_BITREVERSE:
2373 case TargetOpcode::G_BSWAP:
2374 case TargetOpcode::G_BUILD_VECTOR:
2375 case TargetOpcode::G_CTLZ:
2376 case TargetOpcode::G_CTLZ_ZERO_POISON:
2377 case TargetOpcode::G_CTPOP:
2378 case TargetOpcode::G_CTTZ:
2379 case TargetOpcode::G_CTTZ_ZERO_POISON:
2380 case TargetOpcode::G_FABS:
2381 case TargetOpcode::G_FCANONICALIZE:
2382 case TargetOpcode::G_FCEIL:
2383 case TargetOpcode::G_FFLOOR:
2384 case TargetOpcode::G_FLOG2:
2385 case TargetOpcode::G_FNEARBYINT:
2386 case TargetOpcode::G_FNEG:
2387 case TargetOpcode::G_FPEXT:
2388 case TargetOpcode::G_FPTOSI:
2389 case TargetOpcode::G_FPTOUI:
2390 case TargetOpcode::G_FPTRUNC:
2391 case TargetOpcode::G_FREEZE:
2392 case TargetOpcode::G_FRINT:
2393 case TargetOpcode::G_FSQRT:
2394 case TargetOpcode::G_INTRINSIC_ROUND:
2395 case TargetOpcode::G_INTRINSIC_ROUNDEVEN:
2396 case TargetOpcode::G_INTRINSIC_TRUNC:
2397 case TargetOpcode::G_INTTOPTR:
2398 case TargetOpcode::G_PTRTOINT:
2399 case TargetOpcode::G_SEXT:
2400 case TargetOpcode::G_SITOFP:
2401 case TargetOpcode::G_TRUNC:
2402 case TargetOpcode::G_TRUNC_USAT_U:
2403 case TargetOpcode::G_UITOFP:
2404 case TargetOpcode::G_ZEXT:
2405 case TargetOpcode::G_BR:
2406 case TargetOpcode::G_BUILD_VECTOR_TRUNC:
2407 case TargetOpcode::G_CONCAT_VECTORS:
2408 case TargetOpcode::G_FMA:
2409 case TargetOpcode::G_FMAD:
2410 case TargetOpcode::G_FMAXNUM_IEEE:
2411 case TargetOpcode::G_FMINNUM_IEEE:
2412 case TargetOpcode::G_LOAD:
2413 case TargetOpcode::G_PHI:
2414 case TargetOpcode::G_SADDE:
2415 case TargetOpcode::G_SADDO:
2416 case TargetOpcode::G_SADDSAT:
2417 case TargetOpcode::G_SEXTLOAD:
2418 case TargetOpcode::G_SMAX:
2419 case TargetOpcode::G_SMIN:
2420 case TargetOpcode::G_SMULFIX:
2421 case TargetOpcode::G_SMULFIXSAT:
2422 case TargetOpcode::G_SMULH:
2423 case TargetOpcode::G_SMULO:
2424 case TargetOpcode::G_SSHLSAT:
2425 case TargetOpcode::G_SSUBE:
2426 case TargetOpcode::G_SSUBO:
2427 case TargetOpcode::G_STORE:
2428 case TargetOpcode::G_UADDE:
2429 case TargetOpcode::G_UADDO:
2430 case TargetOpcode::G_UADDSAT:
2431 case TargetOpcode::G_UMAX:
2432 case TargetOpcode::G_UMIN:
2433 case TargetOpcode::G_UMULFIX:
2434 case TargetOpcode::G_UMULFIXSAT:
2435 case TargetOpcode::G_UMULH:
2436 case TargetOpcode::G_UMULO:
2437 case TargetOpcode::G_UNMERGE_VALUES:
2438 case TargetOpcode::G_USHLSAT:
2439 case TargetOpcode::G_USUBE:
2440 case TargetOpcode::G_USUBO:
2441 case TargetOpcode::G_ZEXTLOAD:
2442 return true;
2443 default:
2444 return false;
2445 }
2446}
2447
2448bool RISCVPreLegalizerCombinerImpl::tryCombineAll(MachineInstr &I) const {
2449 const PredicateBitset AvailableFeatures = getAvailableFeatures();
2450 State.MIs.clear();
2451 State.MIs.push_back(&I);
2452 if (executeMatchTable(*this, State, ExecInfo, B, getMatchTable(), Helper.getTII(), MRI, Helper.getTRI(), Helper.getRBI(), AvailableFeatures, /*CoverageInfo*/ nullptr)) {
2453 return true;
2454 }
2455
2456 return false;
2457}
2458
2459enum {
2460 GICXXCustomAction_GICombiner0 = GICXXCustomAction_Invalid + 1,
2461 GICXXCustomAction_GICombiner1,
2462 GICXXCustomAction_GICombiner2,
2463 GICXXCustomAction_GICombiner3,
2464 GICXXCustomAction_GICombiner4,
2465 GICXXCustomAction_GICombiner5,
2466 GICXXCustomAction_GICombiner6,
2467 GICXXCustomAction_GICombiner7,
2468 GICXXCustomAction_GICombiner8,
2469 GICXXCustomAction_GICombiner9,
2470 GICXXCustomAction_GICombiner10,
2471 GICXXCustomAction_GICombiner11,
2472 GICXXCustomAction_GICombiner12,
2473 GICXXCustomAction_GICombiner13,
2474 GICXXCustomAction_GICombiner14,
2475 GICXXCustomAction_GICombiner15,
2476 GICXXCustomAction_GICombiner16,
2477 GICXXCustomAction_GICombiner17,
2478 GICXXCustomAction_GICombiner18,
2479 GICXXCustomAction_GICombiner19,
2480 GICXXCustomAction_GICombiner20,
2481 GICXXCustomAction_GICombiner21,
2482 GICXXCustomAction_GICombiner22,
2483 GICXXCustomAction_GICombiner23,
2484 GICXXCustomAction_GICombiner24,
2485 GICXXCustomAction_GICombiner25,
2486 GICXXCustomAction_GICombiner26,
2487 GICXXCustomAction_GICombiner27,
2488 GICXXCustomAction_GICombiner28,
2489 GICXXCustomAction_GICombiner29,
2490 GICXXCustomAction_GICombiner30,
2491 GICXXCustomAction_GICombiner31,
2492 GICXXCustomAction_GICombiner32,
2493 GICXXCustomAction_GICombiner33,
2494 GICXXCustomAction_GICombiner34,
2495 GICXXCustomAction_GICombiner35,
2496 GICXXCustomAction_GICombiner36,
2497 GICXXCustomAction_GICombiner37,
2498 GICXXCustomAction_GICombiner38,
2499 GICXXCustomAction_GICombiner39,
2500 GICXXCustomAction_GICombiner40,
2501 GICXXCustomAction_GICombiner41,
2502 GICXXCustomAction_GICombiner42,
2503 GICXXCustomAction_GICombiner43,
2504 GICXXCustomAction_GICombiner44,
2505 GICXXCustomAction_GICombiner45,
2506 GICXXCustomAction_GICombiner46,
2507 GICXXCustomAction_GICombiner47,
2508 GICXXCustomAction_GICombiner48,
2509 GICXXCustomAction_GICombiner49,
2510 GICXXCustomAction_GICombiner50,
2511 GICXXCustomAction_GICombiner51,
2512 GICXXCustomAction_GICombiner52,
2513 GICXXCustomAction_GICombiner53,
2514 GICXXCustomAction_GICombiner54,
2515 GICXXCustomAction_GICombiner55,
2516 GICXXCustomAction_GICombiner56,
2517 GICXXCustomAction_GICombiner57,
2518 GICXXCustomAction_GICombiner58,
2519 GICXXCustomAction_GICombiner59,
2520 GICXXCustomAction_GICombiner60,
2521 GICXXCustomAction_GICombiner61,
2522 GICXXCustomAction_GICombiner62,
2523 GICXXCustomAction_GICombiner63,
2524 GICXXCustomAction_GICombiner64,
2525 GICXXCustomAction_GICombiner65,
2526 GICXXCustomAction_GICombiner66,
2527 GICXXCustomAction_GICombiner67,
2528 GICXXCustomAction_GICombiner68,
2529 GICXXCustomAction_GICombiner69,
2530 GICXXCustomAction_GICombiner70,
2531 GICXXCustomAction_GICombiner71,
2532 GICXXCustomAction_GICombiner72,
2533 GICXXCustomAction_GICombiner73,
2534 GICXXCustomAction_GICombiner74,
2535 GICXXCustomAction_GICombiner75,
2536 GICXXCustomAction_GICombiner76,
2537 GICXXCustomAction_GICombiner77,
2538 GICXXCustomAction_GICombiner78,
2539 GICXXCustomAction_GICombiner79,
2540 GICXXCustomAction_GICombiner80,
2541 GICXXCustomAction_GICombiner81,
2542 GICXXCustomAction_GICombiner82,
2543 GICXXCustomAction_GICombiner83,
2544 GICXXCustomAction_GICombiner84,
2545 GICXXCustomAction_GICombiner85,
2546 GICXXCustomAction_GICombiner86,
2547 GICXXCustomAction_GICombiner87,
2548 GICXXCustomAction_GICombiner88,
2549 GICXXCustomAction_GICombiner89,
2550 GICXXCustomAction_GICombiner90,
2551 GICXXCustomAction_GICombiner91,
2552 GICXXCustomAction_GICombiner92,
2553 GICXXCustomAction_GICombiner93,
2554 GICXXCustomAction_GICombiner94,
2555 GICXXCustomAction_GICombiner95,
2556 GICXXCustomAction_GICombiner96,
2557 GICXXCustomAction_GICombiner97,
2558 GICXXCustomAction_GICombiner98,
2559 GICXXCustomAction_GICombiner99,
2560 GICXXCustomAction_GICombiner100,
2561 GICXXCustomAction_GICombiner101,
2562 GICXXCustomAction_GICombiner102,
2563 GICXXCustomAction_GICombiner103,
2564 GICXXCustomAction_GICombiner104,
2565 GICXXCustomAction_GICombiner105,
2566 GICXXCustomAction_GICombiner106,
2567 GICXXCustomAction_GICombiner107,
2568 GICXXCustomAction_GICombiner108,
2569 GICXXCustomAction_GICombiner109,
2570 GICXXCustomAction_GICombiner110,
2571 GICXXCustomAction_GICombiner111,
2572 GICXXCustomAction_GICombiner112,
2573 GICXXCustomAction_GICombiner113,
2574 GICXXCustomAction_GICombiner114,
2575 GICXXCustomAction_GICombiner115,
2576 GICXXCustomAction_GICombiner116,
2577 GICXXCustomAction_GICombiner117,
2578 GICXXCustomAction_GICombiner118,
2579 GICXXCustomAction_GICombiner119,
2580 GICXXCustomAction_GICombiner120,
2581 GICXXCustomAction_GICombiner121,
2582 GICXXCustomAction_GICombiner122,
2583 GICXXCustomAction_GICombiner123,
2584 GICXXCustomAction_GICombiner124,
2585 GICXXCustomAction_GICombiner125,
2586 GICXXCustomAction_GICombiner126,
2587 GICXXCustomAction_GICombiner127,
2588 GICXXCustomAction_GICombiner128,
2589 GICXXCustomAction_GICombiner129,
2590 GICXXCustomAction_GICombiner130,
2591 GICXXCustomAction_GICombiner131,
2592 GICXXCustomAction_GICombiner132,
2593 GICXXCustomAction_GICombiner133,
2594 GICXXCustomAction_GICombiner134,
2595 GICXXCustomAction_GICombiner135,
2596 GICXXCustomAction_GICombiner136,
2597 GICXXCustomAction_GICombiner137,
2598 GICXXCustomAction_GICombiner138,
2599 GICXXCustomAction_GICombiner139,
2600 GICXXCustomAction_GICombiner140,
2601 GICXXCustomAction_GICombiner141,
2602 GICXXCustomAction_GICombiner142,
2603 GICXXCustomAction_GICombiner143,
2604 GICXXCustomAction_GICombiner144,
2605 GICXXCustomAction_GICombiner145,
2606 GICXXCustomAction_GICombiner146,
2607 GICXXCustomAction_GICombiner147,
2608 GICXXCustomAction_GICombiner148,
2609 GICXXCustomAction_GICombiner149,
2610 GICXXCustomAction_GICombiner150,
2611 GICXXCustomAction_GICombiner151,
2612 GICXXCustomAction_GICombiner152,
2613 GICXXCustomAction_GICombiner153,
2614 GICXXCustomAction_GICombiner154,
2615 GICXXCustomAction_GICombiner155,
2616 GICXXCustomAction_GICombiner156,
2617 GICXXCustomAction_GICombiner157,
2618 GICXXCustomAction_GICombiner158,
2619 GICXXCustomAction_GICombiner159,
2620};
2621bool RISCVPreLegalizerCombinerImpl::runCustomAction(unsigned ApplyID, const MatcherState &State, NewMIVector &OutMIs) const {
2622 Helper.getBuilder().setInstrAndDebugLoc(*State.MIs[0]);
2623 switch(ApplyID) {
2624 case GICXXCustomAction_GICombiner0:{
2625 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2626 // Match Patterns
2627 if(![&](){return Helper.matchFoldAPlusC1MinusC2(*State.MIs[0], GIMatchData_matchinfo);}()) {
2628 return false;
2629 }
2630 // Apply Patterns
2631 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2632 return true;
2633 }
2634 case GICXXCustomAction_GICombiner1:{
2635 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2636 // Match Patterns
2637 if(![&](){return Helper.matchFoldC2MinusAPlusC1(*State.MIs[0], GIMatchData_matchinfo);}()) {
2638 return false;
2639 }
2640 // Apply Patterns
2641 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2642 return true;
2643 }
2644 case GICXXCustomAction_GICombiner2:{
2645 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2646 // Match Patterns
2647 if(![&](){return Helper.matchFoldAMinusC1MinusC2(*State.MIs[0], GIMatchData_matchinfo);}()) {
2648 return false;
2649 }
2650 // Apply Patterns
2651 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2652 return true;
2653 }
2654 case GICXXCustomAction_GICombiner3:{
2655 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2656 // Match Patterns
2657 if(![&](){return Helper.matchFoldC1Minus2MinusC2(*State.MIs[0], GIMatchData_matchinfo);}()) {
2658 return false;
2659 }
2660 // Apply Patterns
2661 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2662 return true;
2663 }
2664 case GICXXCustomAction_GICombiner4:{
2665 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2666 // Match Patterns
2667 if(![&](){return Helper.matchFoldAMinusC1PlusC2(*State.MIs[0], GIMatchData_matchinfo);}()) {
2668 return false;
2669 }
2670 // Apply Patterns
2671 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2672 return true;
2673 }
2674 case GICXXCustomAction_GICombiner5:{
2675 // Match Patterns
2676 if(![&](){return Helper.matchCombineCopy(*State.MIs[0]);}()) {
2677 return false;
2678 }
2679 // Apply Patterns
2680 Helper.applyCombineCopy(*State.MIs[0]);
2681 return true;
2682 }
2683 case GICXXCustomAction_GICombiner6:{
2684 unsigned GIMatchData_matchinfo;
2685 // Match Patterns
2686 if(![&](){return Helper.matchCombineMulToShl(*State.MIs[0], GIMatchData_matchinfo);}()) {
2687 return false;
2688 }
2689 // Apply Patterns
2690 Helper.applyCombineMulToShl(*State.MIs[0], GIMatchData_matchinfo);
2691 return true;
2692 }
2693 case GICXXCustomAction_GICombiner7:{
2694 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2695 // Match Patterns
2696 if(![&](){return Helper.matchCombineSubToAdd(*State.MIs[0], GIMatchData_matchinfo);}()) {
2697 return false;
2698 }
2699 // Apply Patterns
2700 Helper.applyBuildFnNoErase(*State.MIs[0], GIMatchData_matchinfo);
2701 return true;
2702 }
2703 case GICXXCustomAction_GICombiner8:{
2704 std::pair<Register, bool> GIMatchData_info;
2705 // Match Patterns
2706 if(![&](){return Helper.matchCombineAddP2IToPtrAdd(*State.MIs[0], GIMatchData_info);}()) {
2707 return false;
2708 }
2709 // Apply Patterns
2710 Helper.applyCombineAddP2IToPtrAdd(*State.MIs[0], GIMatchData_info);
2711 return true;
2712 }
2713 case GICXXCustomAction_GICombiner9:{
2714 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2715 // Match Patterns
2716 if(![&](){return Helper.matchExtractVectorElement(*State.MIs[0], GIMatchData_matchinfo);}()) {
2717 return false;
2718 }
2719 // Apply Patterns
2720 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2721 return true;
2722 }
2723 case GICXXCustomAction_GICombiner10:{
2724 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2725 // Match Patterns
2726 if(![&](){return Helper.matchInsertVectorElementOOB(*State.MIs[0], GIMatchData_matchinfo);}()) {
2727 return false;
2728 }
2729 // Apply Patterns
2730 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2731 return true;
2732 }
2733 case GICXXCustomAction_GICombiner11:{
2734 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2735 // Match Patterns
2736 if(![&](){return Helper.matchExtractVectorElementWithDifferentIndices(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
2737 return false;
2738 }
2739 // Apply Patterns
2740 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
2741 return true;
2742 }
2743 case GICXXCustomAction_GICombiner12:{
2744 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2745 // Match Patterns
2746 if(![&](){return Helper.matchExtractVectorElementWithBuildVector(*State.MIs[0], *State.MIs[1],
2747 GIMatchData_matchinfo);}()) {
2748 return false;
2749 }
2750 // Apply Patterns
2751 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2752 return true;
2753 }
2754 case GICXXCustomAction_GICombiner13:{
2755 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2756 // Match Patterns
2757 if(![&](){return Helper.matchExtractVectorElementWithBuildVectorTrunc(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
2758 return false;
2759 }
2760 // Apply Patterns
2761 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
2762 return true;
2763 }
2764 case GICXXCustomAction_GICombiner14:{
2765 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2766 // Match Patterns
2767 if(![&](){return Helper.matchExtractVectorElementWithShuffleVector(*State.MIs[0], *State.MIs[1],
2768 GIMatchData_matchinfo);}()) {
2769 return false;
2770 }
2771 // Apply Patterns
2772 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2773 return true;
2774 }
2775 case GICXXCustomAction_GICombiner15:{
2776 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2777 // Match Patterns
2778 if(![&](){return Helper.matchAddOfVScale(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
2779 return false;
2780 }
2781 // Apply Patterns
2782 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
2783 return true;
2784 }
2785 case GICXXCustomAction_GICombiner16:{
2786 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2787 // Match Patterns
2788 if(![&](){return Helper.matchMulOfVScale(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
2789 return false;
2790 }
2791 // Apply Patterns
2792 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
2793 return true;
2794 }
2795 case GICXXCustomAction_GICombiner17:{
2796 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2797 // Match Patterns
2798 if(![&](){return Helper.matchShlOfVScale(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
2799 return false;
2800 }
2801 // Apply Patterns
2802 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
2803 return true;
2804 }
2805 case GICXXCustomAction_GICombiner18:{
2806 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2807 // Match Patterns
2808 if(![&](){return Helper.matchSubOfVScale(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
2809 return false;
2810 }
2811 // Apply Patterns
2812 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
2813 return true;
2814 }
2815 case GICXXCustomAction_GICombiner19:{
2816 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2817 // Match Patterns
2818 if(![&](){return !isGuaranteedNotToBePoison(State.MIs[0]->getOperand(1).getReg(), MRI) && Helper.matchFreezeOfSingleMaybePoisonOperand(*State.MIs[0], GIMatchData_matchinfo);}()) {
2819 return false;
2820 }
2821 // Apply Patterns
2822 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2823 return true;
2824 }
2825 case GICXXCustomAction_GICombiner20:{
2826 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2827 // Match Patterns
2828 if(![&](){return Helper.matchTruncateOfExt(*State.MIs[0], *State.MIs[1], GIMatchData_matchinfo);}()) {
2829 return false;
2830 }
2831 // Apply Patterns
2832 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2833 return true;
2834 }
2835 case GICXXCustomAction_GICombiner21:{
2836 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2837 // Match Patterns
2838 if(![&](){return Helper.matchExtOfExt(*State.MIs[0], *State.MIs[1], GIMatchData_matchinfo);}()) {
2839 return false;
2840 }
2841 // Apply Patterns
2842 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2843 return true;
2844 }
2845 case GICXXCustomAction_GICombiner22:{
2846 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2847 // Match Patterns
2848 if(![&](){return Helper.matchRedundantSextInReg(*State.MIs[0], *State.MIs[1], GIMatchData_matchinfo);}()) {
2849 return false;
2850 }
2851 // Apply Patterns
2852 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2853 return true;
2854 }
2855 case GICXXCustomAction_GICombiner23:{
2856 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2857 // Match Patterns
2858 if(![&](){return Helper.matchCastOfSelect(*State.MIs[0], *State.MIs[1], GIMatchData_matchinfo);}()) {
2859 return false;
2860 }
2861 // Apply Patterns
2862 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2863 return true;
2864 }
2865 case GICXXCustomAction_GICombiner24:{
2866 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2867 // Match Patterns
2868 if(![&](){return Helper.matchCastOfBuildVector(*State.MIs[0], *State.MIs[1], GIMatchData_matchinfo);}()) {
2869 return false;
2870 }
2871 // Apply Patterns
2872 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2873 return true;
2874 }
2875 case GICXXCustomAction_GICombiner25:{
2876 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2877 // Match Patterns
2878 if(![&](){return Helper.matchNarrowBinop(*State.MIs[0], *State.MIs[1], GIMatchData_matchinfo);}()) {
2879 return false;
2880 }
2881 // Apply Patterns
2882 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2883 return true;
2884 }
2885 case GICXXCustomAction_GICombiner26:{
2886 APInt GIMatchData_matchinfo;
2887 // Match Patterns
2888 if(![&](){return Helper.matchCastOfInteger(*State.MIs[0], GIMatchData_matchinfo);}()) {
2889 return false;
2890 }
2891 // Apply Patterns
2892 Helper.replaceInstWithConstant(*State.MIs[0], GIMatchData_matchinfo);
2893 return true;
2894 }
2895 case GICXXCustomAction_GICombiner27:{
2896 SmallVector<Register> GIMatchData_info;
2897 // Match Patterns
2898 if(![&](){return Helper.matchCombineInsertVecElts(*State.MIs[0], GIMatchData_info);}()) {
2899 return false;
2900 }
2901 // Apply Patterns
2902 Helper.applyCombineInsertVecElts(*State.MIs[0], GIMatchData_info);
2903 return true;
2904 }
2905 case GICXXCustomAction_GICombiner28:{
2906 Register GIMatchData_matchinfo;
2907 // Match Patterns
2908 if(![&](){return Helper.matchExtractVecEltBuildVec(*State.MIs[0], GIMatchData_matchinfo);}()) {
2909 return false;
2910 }
2911 // Apply Patterns
2912 Helper.applyExtractVecEltBuildVec(*State.MIs[0], GIMatchData_matchinfo);
2913 return true;
2914 }
2915 case GICXXCustomAction_GICombiner29:{
2916 SmallVector<std::pair<Register, MachineInstr*>> GIMatchData_matchinfo;
2917 // Match Patterns
2918 if(![&](){return Helper.matchExtractAllEltsFromBuildVector(*State.MIs[0], GIMatchData_matchinfo);}()) {
2919 return false;
2920 }
2921 // Apply Patterns
2922 Helper.applyExtractAllEltsFromBuildVector(*State.MIs[0], GIMatchData_matchinfo);
2923 return true;
2924 }
2925 case GICXXCustomAction_GICombiner30:{
2926 PreferredTuple GIMatchData_matchinfo;
2927 // Match Patterns
2928 if(![&](){return Helper.matchCombineExtendingLoads(*State.MIs[0], GIMatchData_matchinfo);}()) {
2929 return false;
2930 }
2931 // Apply Patterns
2932 Helper.applyCombineExtendingLoads(*State.MIs[0], GIMatchData_matchinfo);
2933 return true;
2934 }
2935 case GICXXCustomAction_GICombiner31:{
2936 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2937 // Match Patterns
2938 if(![&](){return Helper.matchCombineLoadWithAndMask(*State.MIs[0], GIMatchData_matchinfo);}()) {
2939 return false;
2940 }
2941 // Apply Patterns
2942 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2943 return true;
2944 }
2945 case GICXXCustomAction_GICombiner32:{
2946 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2947 // Match Patterns
2948 if(![&](){return Helper.matchCombineExtractedVectorLoad(*State.MIs[0], GIMatchData_matchinfo);}()) {
2949 return false;
2950 }
2951 // Apply Patterns
2952 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2953 return true;
2954 }
2955 case GICXXCustomAction_GICombiner33:{
2956 // Match Patterns
2957 if(![&](){return Helper.matchAnyExplicitUseIsUndef(*State.MIs[0]);}()) {
2958 return false;
2959 }
2960 // Apply Patterns
2961 Helper.replaceInstWithFConstant(*State.MIs[0], 0.0);
2962 return true;
2963 }
2964 case GICXXCustomAction_GICombiner34:{
2965 // Match Patterns
2966 if(![&](){return Helper.matchAnyExplicitUseIsUndef(*State.MIs[0]);}()) {
2967 return false;
2968 }
2969 // Apply Patterns
2970 Helper.replaceInstWithConstant(*State.MIs[0], 0);
2971 return true;
2972 }
2973 case GICXXCustomAction_GICombiner35:{
2974 // Match Patterns
2975 if(![&](){return Helper.matchAnyExplicitUseIsUndef(*State.MIs[0]);}()) {
2976 return false;
2977 }
2978 // Apply Patterns
2979 Helper.replaceInstWithConstant(*State.MIs[0], -1);
2980 return true;
2981 }
2982 case GICXXCustomAction_GICombiner36:{
2983 // Match Patterns
2984 if(![&](){return Helper.matchOperandIsUndef(*State.MIs[0], 1);}()) {
2985 return false;
2986 }
2987 // Apply Patterns
2988 Helper.replaceInstWithConstant(*State.MIs[0], 0);
2989 return true;
2990 }
2991 case GICXXCustomAction_GICombiner37:{
2992 // Match Patterns
2993 if(![&](){return Helper.matchOperandIsUndef(*State.MIs[0], 2);}()) {
2994 return false;
2995 }
2996 // Apply Patterns
2997 Helper.replaceInstWithUndef(*State.MIs[0]);
2998 return true;
2999 }
3000 case GICXXCustomAction_GICombiner38:{
3001 // Apply Patterns
3002 Helper.replaceInstWithUndef(*State.MIs[0]->getOperand(0).getParent());
3003 return true;
3004 }
3005 case GICXXCustomAction_GICombiner39:{
3006 // Match Patterns
3007 if(![&](){return Helper.matchAnyExplicitUseIsUndef(*State.MIs[0]);}()) {
3008 return false;
3009 }
3010 // Apply Patterns
3011 Helper.replaceInstWithUndef(*State.MIs[0]);
3012 return true;
3013 }
3014 case GICXXCustomAction_GICombiner40:{
3015 // Match Patterns
3016 if(![&](){return Helper.matchAllExplicitUsesAreUndef(*State.MIs[0]);}()) {
3017 return false;
3018 }
3019 // Apply Patterns
3020 Helper.replaceInstWithUndef(*State.MIs[0]);
3021 return true;
3022 }
3023 case GICXXCustomAction_GICombiner41:{
3024 // Match Patterns
3025 if(![&](){return Helper.matchUndefShuffleVectorMask(*State.MIs[0]);}()) {
3026 return false;
3027 }
3028 // Apply Patterns
3029 Helper.replaceInstWithUndef(*State.MIs[0]);
3030 return true;
3031 }
3032 case GICXXCustomAction_GICombiner42:{
3033 // Match Patterns
3034 if(![&](){return Helper.matchUndefStore(*State.MIs[0]);}()) {
3035 return false;
3036 }
3037 // Apply Patterns
3038 Helper.eraseInst(*State.MIs[0]);
3039 return true;
3040 }
3041 case GICXXCustomAction_GICombiner43:{
3042 // Match Patterns
3043 if(![&](){return Helper.matchInsertExtractVecEltOutOfBounds(*State.MIs[0]);}()) {
3044 return false;
3045 }
3046 // Apply Patterns
3047 Helper.replaceInstWithUndef(*State.MIs[0]);
3048 return true;
3049 }
3050 case GICXXCustomAction_GICombiner44:{
3051 // Match Patterns
3052 if(![&](){return Helper.matchSelectSameVal(*State.MIs[0]);}()) {
3053 return false;
3054 }
3055 // Apply Patterns
3056 Helper.replaceSingleDefInstWithOperand(*State.MIs[0], 2);
3057 return true;
3058 }
3059 case GICXXCustomAction_GICombiner45:{
3060 Register GIMatchData_info;
3061 // Match Patterns
3062 if(![&](){return Helper.matchCombineI2PToP2I(*State.MIs[0], GIMatchData_info);}()) {
3063 return false;
3064 }
3065 // Apply Patterns
3066 Helper.applyCombineI2PToP2I(*State.MIs[0], GIMatchData_info);
3067 return true;
3068 }
3069 case GICXXCustomAction_GICombiner46:{
3070 Register GIMatchData_info;
3071 // Match Patterns
3072 if(![&](){GIMatchData_info = State.MIs[1]->getOperand(1).getReg(); return true;}()) {
3073 return false;
3074 }
3075 // Apply Patterns
3076 Helper.applyCombineP2IToI2P(*State.MIs[0], GIMatchData_info);
3077 return true;
3078 }
3079 case GICXXCustomAction_GICombiner47:{
3080 Register GIMatchData_matchinfo;
3081 // Match Patterns
3082 if(![&](){return Helper.matchCombineAnyExtTrunc(*State.MIs[0], GIMatchData_matchinfo);}()) {
3083 return false;
3084 }
3085 // Apply Patterns
3086 Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo);
3087 return true;
3088 }
3089 case GICXXCustomAction_GICombiner48:{
3090 Register GIMatchData_matchinfo;
3091 // Match Patterns
3092 if(![&](){return Helper.matchBuildVectorIdentityFold(*State.MIs[0], GIMatchData_matchinfo);}()) {
3093 return false;
3094 }
3095 // Apply Patterns
3096 Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo);
3097 return true;
3098 }
3099 case GICXXCustomAction_GICombiner49:{
3100 Register GIMatchData_matchinfo;
3101 // Match Patterns
3102 if(![&](){return Helper.matchTruncBuildVectorFold(*State.MIs[0], GIMatchData_matchinfo);}()) {
3103 return false;
3104 }
3105 // Apply Patterns
3106 Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo);
3107 return true;
3108 }
3109 case GICXXCustomAction_GICombiner50:{
3110 Register GIMatchData_matchinfo;
3111 // Match Patterns
3112 if(![&](){return Helper.matchTruncLshrBuildVectorFold(*State.MIs[0], GIMatchData_matchinfo);}()) {
3113 return false;
3114 }
3115 // Apply Patterns
3116 Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo);
3117 return true;
3118 }
3119 case GICXXCustomAction_GICombiner51:{
3120 // Match Patterns
3121 if(![&](){return MRI.getType(State.MIs[1]->getOperand(1).getReg()) == MRI.getType(State.MIs[0]->getOperand(0).getReg());}()) {
3122 return false;
3123 }
3124 // Apply Patterns
3125 Helper.replaceSingleDefInstWithReg(*State.MIs[0], State.MIs[1]->getOperand(1).getReg());
3126 return true;
3127 }
3128 case GICXXCustomAction_GICombiner52:{
3129 MachineInstr* GIMatchData_matchinfo;
3130 // Match Patterns
3131 if(![&](){return Helper.matchExtendThroughPhis(*State.MIs[0], GIMatchData_matchinfo);}()) {
3132 return false;
3133 }
3134 // Apply Patterns
3135 Helper.applyExtendThroughPhis(*State.MIs[0], GIMatchData_matchinfo);
3136 return true;
3137 }
3138 case GICXXCustomAction_GICombiner53:{
3139 std::tuple<Register, Register> GIMatchData_info;
3140 // Match Patterns
3141 if(![&](){return Helper.matchSimplifyAddToSub(*State.MIs[0], GIMatchData_info);}()) {
3142 return false;
3143 }
3144 // Apply Patterns
3145 Helper.applySimplifyAddToSub(*State.MIs[0], GIMatchData_info);
3146 return true;
3147 }
3148 case GICXXCustomAction_GICombiner54:{
3149 InstructionStepsMatchInfo GIMatchData_info;
3150 // Match Patterns
3151 if(![&](){return Helper.matchHoistLogicOpWithSameOpcodeHands(*State.MIs[0], GIMatchData_info);}()) {
3152 return false;
3153 }
3154 // Apply Patterns
3155 Helper.applyBuildInstructionSteps(*State.MIs[0], GIMatchData_info);
3156 return true;
3157 }
3158 case GICXXCustomAction_GICombiner55:{
3159 std::optional<int64_t> GIMatchData_matchinfo;
3160 // Match Patterns
3161 if(![&](){return Helper.matchShiftsTooBig(*State.MIs[0], GIMatchData_matchinfo);}()) {
3162 return false;
3163 }
3164 // Apply Patterns
3165 if (GIMatchData_matchinfo) {
3166 Helper.replaceInstWithConstant(*State.MIs[0], *GIMatchData_matchinfo);
3167 } else {
3168 Helper.replaceInstWithUndef(*State.MIs[0]);
3169 }
3170 return true;
3171 }
3172 case GICXXCustomAction_GICombiner56:{
3173 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3174 // Match Patterns
3175 if(![&](){return Helper.matchReassocPtrAdd(*State.MIs[0], GIMatchData_matchinfo);}()) {
3176 return false;
3177 }
3178 // Apply Patterns
3179 Helper.applyBuildFnNoErase(*State.MIs[0], GIMatchData_matchinfo);
3180 return true;
3181 }
3182 case GICXXCustomAction_GICombiner57:{
3183 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3184 // Match Patterns
3185 if(![&](){return Helper.matchReassocCommBinOp(*State.MIs[0], GIMatchData_matchinfo);}()) {
3186 return false;
3187 }
3188 // Apply Patterns
3189 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3190 return true;
3191 }
3192 case GICXXCustomAction_GICombiner58:{
3193 PtrAddChain GIMatchData_matchinfo;
3194 // Match Patterns
3195 if(![&](){return Helper.matchPtrAddImmedChain(*State.MIs[0], GIMatchData_matchinfo);}()) {
3196 return false;
3197 }
3198 // Apply Patterns
3199 Helper.applyPtrAddImmedChain(*State.MIs[0], GIMatchData_matchinfo);
3200 return true;
3201 }
3202 case GICXXCustomAction_GICombiner59:{
3203 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3204 // Match Patterns
3205 if(![&](){return Helper.matchCanonicalizeICmp(*State.MIs[0], GIMatchData_matchinfo);}()) {
3206 return false;
3207 }
3208 // Apply Patterns
3209 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3210 return true;
3211 }
3212 case GICXXCustomAction_GICombiner60:{
3213 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3214 // Match Patterns
3215 if(![&](){return Helper.matchCanonicalizeFCmp(*State.MIs[0], GIMatchData_matchinfo);}()) {
3216 return false;
3217 }
3218 // Apply Patterns
3219 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3220 return true;
3221 }
3222 case GICXXCustomAction_GICombiner61:{
3223 int64_t GIMatchData_matchinfo;
3224 // Match Patterns
3225 if(![&](){return Helper.matchICmpToTrueFalseKnownBits(*State.MIs[0], GIMatchData_matchinfo);}()) {
3226 return false;
3227 }
3228 // Apply Patterns
3229 Helper.replaceInstWithConstant(*State.MIs[0], GIMatchData_matchinfo);
3230 return true;
3231 }
3232 case GICXXCustomAction_GICombiner62:{
3233 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3234 // Match Patterns
3235 if(![&](){return Helper.matchICmpToLHSKnownBits(*State.MIs[0], GIMatchData_info);}()) {
3236 return false;
3237 }
3238 // Apply Patterns
3239 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3240 return true;
3241 }
3242 case GICXXCustomAction_GICombiner63:{
3243 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3244 // Match Patterns
3245 if(![&](){return Helper.matchRedundantBinOpInEquality(*State.MIs[0], GIMatchData_info);}()) {
3246 return false;
3247 }
3248 // Apply Patterns
3249 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3250 return true;
3251 }
3252 case GICXXCustomAction_GICombiner64:{
3253 std::tuple<Register, int64_t> GIMatchData_info;
3254 // Match Patterns
3255 if(![&](){return Helper.matchAshrShlToSextInreg(*State.MIs[0], GIMatchData_info);}()) {
3256 return false;
3257 }
3258 // Apply Patterns
3259 Helper.applyAshShlToSextInreg(*State.MIs[0], GIMatchData_info);
3260 return true;
3261 }
3262 case GICXXCustomAction_GICombiner65:{
3263 std::tuple<Register, unsigned> GIMatchData_matchinfo;
3264 // Match Patterns
3265 if(![&](){return Helper.matchSextInRegOfLoad(*State.MIs[0], GIMatchData_matchinfo);}()) {
3266 return false;
3267 }
3268 // Apply Patterns
3269 Helper.applySextInRegOfLoad(*State.MIs[0], GIMatchData_matchinfo);
3270 return true;
3271 }
3272 case GICXXCustomAction_GICombiner66:{
3273 RegisterImmPair GIMatchData_matchinfo;
3274 // Match Patterns
3275 if(![&](){return Helper.matchCombineShlOfExtend(*State.MIs[0], GIMatchData_matchinfo);}()) {
3276 return false;
3277 }
3278 // Apply Patterns
3279 Helper.applyCombineShlOfExtend(*State.MIs[0], GIMatchData_matchinfo);
3280 return true;
3281 }
3282 case GICXXCustomAction_GICombiner67:{
3283 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3284 // Match Patterns
3285 if(![&](){return Helper.matchNarrowBinopFeedingAnd(*State.MIs[0], GIMatchData_matchinfo);}()) {
3286 return false;
3287 }
3288 // Apply Patterns
3289 Helper.applyBuildFnNoErase(*State.MIs[0], GIMatchData_matchinfo);
3290 return true;
3291 }
3292 case GICXXCustomAction_GICombiner68:{
3293 unsigned GIMatchData_matchinfo;
3294 // Match Patterns
3295 if(![&](){return Helper.matchConstantSelectCmp(*State.MIs[0], GIMatchData_matchinfo);}()) {
3296 return false;
3297 }
3298 // Apply Patterns
3299 Helper.replaceSingleDefInstWithOperand(*State.MIs[0], GIMatchData_matchinfo);
3300 return true;
3301 }
3302 case GICXXCustomAction_GICombiner69:{
3303 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3304 // Match Patterns
3305 if(![&](){return Helper.matchSelectIMinMax(State.MIs[0]->getOperand(0), GIMatchData_info);}()) {
3306 return false;
3307 }
3308 // Apply Patterns
3309 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_info);
3310 return true;
3311 }
3312 case GICXXCustomAction_GICombiner70:{
3313 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3314 // Match Patterns
3315 if(![&](){return Helper.matchSelect(*State.MIs[0], GIMatchData_matchinfo);}()) {
3316 return false;
3317 }
3318 // Apply Patterns
3319 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3320 return true;
3321 }
3322 case GICXXCustomAction_GICombiner71:{
3323 Register GIMatchData_matchinfo;
3324 // Match Patterns
3325 if(![&](){return Helper.matchRedundantAnd(*State.MIs[0], GIMatchData_matchinfo);}()) {
3326 return false;
3327 }
3328 // Apply Patterns
3329 Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo);
3330 return true;
3331 }
3332 case GICXXCustomAction_GICombiner72:{
3333 // Match Patterns
3334 if(![&](){return Helper.matchRedundantSExtInReg(*State.MIs[0]);}()) {
3335 return false;
3336 }
3337 // Apply Patterns
3338 Helper.replaceSingleDefInstWithOperand(*State.MIs[0], 1);
3339 return true;
3340 }
3341 case GICXXCustomAction_GICombiner73:{
3342 Register GIMatchData_matchinfo;
3343 // Match Patterns
3344 if(![&](){return Helper.matchRedundantOr(*State.MIs[0], GIMatchData_matchinfo);}()) {
3345 return false;
3346 }
3347 // Apply Patterns
3348 Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo);
3349 return true;
3350 }
3351 case GICXXCustomAction_GICombiner74:{
3352 // Match Patterns
3353 if(![&](){return Helper.matchOperandIsKnownToBeAPowerOfTwo(State.MIs[0]->getOperand(2));}()) {
3354 return false;
3355 }
3356 // Apply Patterns
3357 Helper.applySimplifyURemByPow2(*State.MIs[0]);
3358 return true;
3359 }
3360 case GICXXCustomAction_GICombiner75:{
3361 Register GIMatchData_matchinfo;
3362 // Match Patterns
3363 if(![&](){return Helper.matchCombineZextTrunc(*State.MIs[0], GIMatchData_matchinfo);}()) {
3364 return false;
3365 }
3366 // Apply Patterns
3367 Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo);
3368 return true;
3369 }
3370 case GICXXCustomAction_GICombiner76:{
3371 // Match Patterns
3372 if(![&](){unsigned BitWidth = MRI.getType(State.MIs[0]->getOperand(1).getReg()).getScalarSizeInBits();
3373 return Helper.getValueTracking()->maskedValueIsZero(State.MIs[0]->getOperand(1).getReg(),
3374 APInt::getOneBitSet(BitWidth, State.MIs[0]->getOperand(2).getImm() - 1));}()) {
3375 return false;
3376 }
3377 // Apply Patterns
3378 Helper.getBuilder().setInstrAndDebugLoc(*State.MIs[0]);
3379 Helper.getBuilder().buildZExtInReg(State.MIs[0]->getOperand(0), State.MIs[0]->getOperand(1), State.MIs[0]->getOperand(2).getImm());
3380 State.MIs[0]->eraseFromParent();
3381 return true;
3382 }
3383 case GICXXCustomAction_GICombiner77:{
3384 std::pair<MachineInstr*, LLT> GIMatchData_matchinfo;
3385 // Match Patterns
3386 if(![&](){return Helper.matchCombineTruncOfShift(*State.MIs[0], GIMatchData_matchinfo);}()) {
3387 return false;
3388 }
3389 // Apply Patterns
3390 Helper.applyCombineTruncOfShift(*State.MIs[0], GIMatchData_matchinfo);
3391 return true;
3392 }
3393 case GICXXCustomAction_GICombiner78:{
3394 SmallVector<Register> GIMatchData_info;
3395 // Match Patterns
3396 if(![&](){return Helper.matchNotCmp(*State.MIs[0], GIMatchData_info);}()) {
3397 return false;
3398 }
3399 // Apply Patterns
3400 Helper.applyNotCmp(*State.MIs[0], GIMatchData_info);
3401 return true;
3402 }
3403 case GICXXCustomAction_GICombiner79:{
3404 MachineInstr * GIMatchData_matchinfo;
3405 // Match Patterns
3406 if(![&](){return Helper.matchOptBrCondByInvertingCond(*State.MIs[0], GIMatchData_matchinfo);}()) {
3407 return false;
3408 }
3409 // Apply Patterns
3410 Helper.applyOptBrCondByInvertingCond(*State.MIs[0], GIMatchData_matchinfo);
3411 return true;
3412 }
3413 case GICXXCustomAction_GICombiner80:{
3414 // Apply Patterns
3415 Helper.applyCombineConstantFoldFpUnary(*State.MIs[0], State.MIs[1]->getOperand(1).getFPImm());
3416 return true;
3417 }
3418 case GICXXCustomAction_GICombiner81:{
3419 // Apply Patterns
3420 Helper.replaceInstWithFConstant(*State.MIs[0]->getOperand(0).getParent(), 0.0);
3421 return true;
3422 }
3423 case GICXXCustomAction_GICombiner82:{
3424 APInt GIMatchData_info;
3425 // Match Patterns
3426 if(![&](){return Helper.matchCombineConstPtrAddToI2P(*State.MIs[0], GIMatchData_info);}()) {
3427 return false;
3428 }
3429 // Apply Patterns
3430 Helper.applyCombineConstPtrAddToI2P(*State.MIs[0], GIMatchData_info);
3431 return true;
3432 }
3433 case GICXXCustomAction_GICombiner83:{
3434 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3435 // Match Patterns
3436 if(![&](){return Helper.matchOverlappingAnd(*State.MIs[0], GIMatchData_info);}()) {
3437 return false;
3438 }
3439 // Apply Patterns
3440 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3441 return true;
3442 }
3443 case GICXXCustomAction_GICombiner84:{
3444 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3445 // Match Patterns
3446 if(![&](){return Helper.matchMulOBy2(*State.MIs[0], GIMatchData_matchinfo);}()) {
3447 return false;
3448 }
3449 // Apply Patterns
3450 Helper.applyBuildFnNoErase(*State.MIs[0], GIMatchData_matchinfo);
3451 return true;
3452 }
3453 case GICXXCustomAction_GICombiner85:{
3454 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3455 // Match Patterns
3456 if(![&](){return Helper.matchMulOBy0(*State.MIs[0], GIMatchData_matchinfo);}()) {
3457 return false;
3458 }
3459 // Apply Patterns
3460 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3461 return true;
3462 }
3463 case GICXXCustomAction_GICombiner86:{
3464 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3465 // Match Patterns
3466 if(![&](){return Helper.matchAddEToAddO(*State.MIs[0], GIMatchData_matchinfo);}()) {
3467 return false;
3468 }
3469 // Apply Patterns
3470 Helper.applyBuildFnNoErase(*State.MIs[0], GIMatchData_matchinfo);
3471 return true;
3472 }
3473 case GICXXCustomAction_GICombiner87:{
3474 unsigned GIMatchData_info;
3475 // Match Patterns
3476 if(![&](){return Helper.matchCombineFMinMaxNaN(*State.MIs[0], GIMatchData_info);}()) {
3477 return false;
3478 }
3479 // Apply Patterns
3480 Helper.replaceSingleDefInstWithOperand(*State.MIs[0], GIMatchData_info);
3481 return true;
3482 }
3483 case GICXXCustomAction_GICombiner88:{
3484 // Match Patterns
3485 if(![&](){return Helper.matchFPowIExpansion(*State.MIs[0], State.MIs[1]->getOperand(1).getCImm()->getSExtValue());}()) {
3486 return false;
3487 }
3488 // Apply Patterns
3489 Helper.applyExpandFPowI(*State.MIs[0], State.MIs[1]->getOperand(1).getCImm()->getSExtValue());
3490 return true;
3491 }
3492 case GICXXCustomAction_GICombiner89:{
3493 std::pair<Register, Register> GIMatchData_matchinfo;
3494 // Match Patterns
3495 if(![&](){return Helper.matchXorOfAndWithSameReg(*State.MIs[0], GIMatchData_matchinfo);}()) {
3496 return false;
3497 }
3498 // Apply Patterns
3499 Helper.applyXorOfAndWithSameReg(*State.MIs[0], GIMatchData_matchinfo);
3500 return true;
3501 }
3502 case GICXXCustomAction_GICombiner90:{
3503 // Match Patterns
3504 if(![&](){return Helper.matchPtrAddZero(*State.MIs[0]);}()) {
3505 return false;
3506 }
3507 // Apply Patterns
3508 Helper.applyPtrAddZero(*State.MIs[0]);
3509 return true;
3510 }
3511 case GICXXCustomAction_GICombiner91:{
3512 RegisterImmPair GIMatchData_matchinfo;
3513 // Match Patterns
3514 if(![&](){return Helper.matchShiftImmedChain(*State.MIs[0], GIMatchData_matchinfo);}()) {
3515 return false;
3516 }
3517 // Apply Patterns
3518 Helper.applyShiftImmedChain(*State.MIs[0], GIMatchData_matchinfo);
3519 return true;
3520 }
3521 case GICXXCustomAction_GICombiner92:{
3522 ShiftOfShiftedLogic GIMatchData_matchinfo;
3523 // Match Patterns
3524 if(![&](){return Helper.matchShiftOfShiftedLogic(*State.MIs[0], GIMatchData_matchinfo);}()) {
3525 return false;
3526 }
3527 // Apply Patterns
3528 Helper.applyShiftOfShiftedLogic(*State.MIs[0], GIMatchData_matchinfo);
3529 return true;
3530 }
3531 case GICXXCustomAction_GICombiner93:{
3532 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3533 // Match Patterns
3534 if(![&](){return Helper.matchLoadOrCombine(*State.MIs[0], GIMatchData_info);}()) {
3535 return false;
3536 }
3537 // Apply Patterns
3538 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3539 return true;
3540 }
3541 case GICXXCustomAction_GICombiner94:{
3542 MachineInstr * GIMatchData_matchinfo;
3543 // Match Patterns
3544 if(![&](){return Helper.matchCombineDivRem(*State.MIs[0], GIMatchData_matchinfo);}()) {
3545 return false;
3546 }
3547 // Apply Patterns
3548 Helper.applyCombineDivRem(*State.MIs[0], GIMatchData_matchinfo);
3549 return true;
3550 }
3551 case GICXXCustomAction_GICombiner95:{
3552 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3553 // Match Patterns
3554 if(![&](){return Helper.matchOrShiftToFunnelShift(*State.MIs[0], false, GIMatchData_info);}()) {
3555 return false;
3556 }
3557 // Apply Patterns
3558 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3559 return true;
3560 }
3561 case GICXXCustomAction_GICombiner96:{
3562 // Match Patterns
3563 if(![&](){return Helper.matchFunnelShiftToRotate(*State.MIs[0]);}()) {
3564 return false;
3565 }
3566 // Apply Patterns
3567 Helper.applyFunnelShiftToRotate(*State.MIs[0]);
3568 return true;
3569 }
3570 case GICXXCustomAction_GICombiner97:{
3571 // Match Patterns
3572 if(![&](){return Helper.matchConstantLargerBitWidth(*State.MIs[0], 3);}()) {
3573 return false;
3574 }
3575 // Apply Patterns
3576 Helper.applyFunnelShiftConstantModulo(*State.MIs[0]);
3577 return true;
3578 }
3579 case GICXXCustomAction_GICombiner98:{
3580 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3581 // Match Patterns
3582 if(![&](){return Helper.matchCommuteShift(*State.MIs[0], GIMatchData_matchinfo);}()) {
3583 return false;
3584 }
3585 // Apply Patterns
3586 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3587 return true;
3588 }
3589 case GICXXCustomAction_GICombiner99:{
3590 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3591 // Match Patterns
3592 if(![&](){return Helper.matchBitfieldExtractFromSExtInReg(*State.MIs[0], GIMatchData_info);}()) {
3593 return false;
3594 }
3595 // Apply Patterns
3596 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3597 return true;
3598 }
3599 case GICXXCustomAction_GICombiner100:{
3600 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3601 // Match Patterns
3602 if(![&](){return Helper.matchBitfieldExtractFromAnd(*State.MIs[0], GIMatchData_info);}()) {
3603 return false;
3604 }
3605 // Apply Patterns
3606 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3607 return true;
3608 }
3609 case GICXXCustomAction_GICombiner101:{
3610 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3611 // Match Patterns
3612 if(![&](){return Helper.matchBitfieldExtractFromShr(*State.MIs[0], GIMatchData_info);}()) {
3613 return false;
3614 }
3615 // Apply Patterns
3616 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3617 return true;
3618 }
3619 case GICXXCustomAction_GICombiner102:{
3620 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3621 // Match Patterns
3622 if(![&](){return Helper.matchBitfieldExtractFromShrAnd(*State.MIs[0], GIMatchData_info);}()) {
3623 return false;
3624 }
3625 // Apply Patterns
3626 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3627 return true;
3628 }
3629 case GICXXCustomAction_GICombiner103:{
3630 APInt GIMatchData_matchinfo;
3631 // Match Patterns
3632 if(![&](){return Helper.matchConstantFoldBinOp(*State.MIs[0], GIMatchData_matchinfo);}()) {
3633 return false;
3634 }
3635 // Apply Patterns
3636 Helper.replaceInstWithConstant(*State.MIs[0], GIMatchData_matchinfo);
3637 return true;
3638 }
3639 case GICXXCustomAction_GICombiner104:{
3640 ConstantFP* GIMatchData_matchinfo;
3641 // Match Patterns
3642 if(![&](){return Helper.matchConstantFoldFPBinOp(*State.MIs[0], GIMatchData_matchinfo);}()) {
3643 return false;
3644 }
3645 // Apply Patterns
3646 Helper.replaceInstWithFConstant(*State.MIs[0], GIMatchData_matchinfo);
3647 return true;
3648 }
3649 case GICXXCustomAction_GICombiner105:{
3650 ConstantFP* GIMatchData_matchinfo;
3651 // Match Patterns
3652 if(![&](){return Helper.matchConstantFoldFMA(*State.MIs[0], GIMatchData_matchinfo);}()) {
3653 return false;
3654 }
3655 // Apply Patterns
3656 Helper.replaceInstWithFConstant(*State.MIs[0], GIMatchData_matchinfo);
3657 return true;
3658 }
3659 case GICXXCustomAction_GICombiner106:{
3660 APInt GIMatchData_matchinfo;
3661 // Match Patterns
3662 if(![&](){return Helper.matchConstantFoldCastOp(*State.MIs[0], GIMatchData_matchinfo);}()) {
3663 return false;
3664 }
3665 // Apply Patterns
3666 Helper.replaceInstWithConstant(*State.MIs[0], GIMatchData_matchinfo);
3667 return true;
3668 }
3669 case GICXXCustomAction_GICombiner107:{
3670 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3671 // Match Patterns
3672 if(![&](){return Helper.matchConstantFoldUnaryIntOp(*State.MIs[0], GIMatchData_matchinfo);}()) {
3673 return false;
3674 }
3675 // Apply Patterns
3676 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3677 return true;
3678 }
3679 case GICXXCustomAction_GICombiner108:{
3680 // Match Patterns
3681 if(![&](){return Helper.matchUMulHToLShr(*State.MIs[0]);}()) {
3682 return false;
3683 }
3684 // Apply Patterns
3685 Helper.applyUMulHToLShr(*State.MIs[0]);
3686 return true;
3687 }
3688 case GICXXCustomAction_GICombiner109:{
3689 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3690 // Match Patterns
3691 if(![&](){return Helper.matchRedundantNegOperands(*State.MIs[0], GIMatchData_matchinfo);}()) {
3692 return false;
3693 }
3694 // Apply Patterns
3695 Helper.applyBuildFnNoErase(*State.MIs[0], GIMatchData_matchinfo);
3696 return true;
3697 }
3698 case GICXXCustomAction_GICombiner110:{
3699 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3700 // Match Patterns
3701 if(![&](){return Helper.matchAndOrDisjointMask(*State.MIs[0], GIMatchData_info);}()) {
3702 return false;
3703 }
3704 // Apply Patterns
3705 Helper.applyBuildFnNoErase(*State.MIs[0], GIMatchData_info);
3706 return true;
3707 }
3708 case GICXXCustomAction_GICombiner111:{
3709 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3710 // Match Patterns
3711 if(![&](){return Helper.matchCombineFAddFMulToFMadOrFMA(*State.MIs[0],
3712 GIMatchData_info);}()) {
3713 return false;
3714 }
3715 // Apply Patterns
3716 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3717 return true;
3718 }
3719 case GICXXCustomAction_GICombiner112:{
3720 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3721 // Match Patterns
3722 if(![&](){return Helper.matchCombineFAddFpExtFMulToFMadOrFMA(*State.MIs[0],
3723 GIMatchData_info);}()) {
3724 return false;
3725 }
3726 // Apply Patterns
3727 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3728 return true;
3729 }
3730 case GICXXCustomAction_GICombiner113:{
3731 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3732 // Match Patterns
3733 if(![&](){return Helper.matchCombineFAddFMAFMulToFMadOrFMA(*State.MIs[0],
3734 GIMatchData_info);}()) {
3735 return false;
3736 }
3737 // Apply Patterns
3738 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3739 return true;
3740 }
3741 case GICXXCustomAction_GICombiner114:{
3742 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3743 // Match Patterns
3744 if(![&](){return Helper.matchCombineFAddFpExtFMulToFMadOrFMAAggressive(
3745 *State.MIs[0], GIMatchData_info);}()) {
3746 return false;
3747 }
3748 // Apply Patterns
3749 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3750 return true;
3751 }
3752 case GICXXCustomAction_GICombiner115:{
3753 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3754 // Match Patterns
3755 if(![&](){return Helper.matchCombineFSubFMulToFMadOrFMA(*State.MIs[0],
3756 GIMatchData_info);}()) {
3757 return false;
3758 }
3759 // Apply Patterns
3760 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3761 return true;
3762 }
3763 case GICXXCustomAction_GICombiner116:{
3764 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3765 // Match Patterns
3766 if(![&](){return Helper.matchCombineFSubFNegFMulToFMadOrFMA(*State.MIs[0],
3767 GIMatchData_info);}()) {
3768 return false;
3769 }
3770 // Apply Patterns
3771 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3772 return true;
3773 }
3774 case GICXXCustomAction_GICombiner117:{
3775 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3776 // Match Patterns
3777 if(![&](){return Helper.matchCombineFSubFpExtFMulToFMadOrFMA(*State.MIs[0],
3778 GIMatchData_info);}()) {
3779 return false;
3780 }
3781 // Apply Patterns
3782 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3783 return true;
3784 }
3785 case GICXXCustomAction_GICombiner118:{
3786 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3787 // Match Patterns
3788 if(![&](){return Helper.matchCombineFSubFpExtFNegFMulToFMadOrFMA(
3789 *State.MIs[0], GIMatchData_info);}()) {
3790 return false;
3791 }
3792 // Apply Patterns
3793 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3794 return true;
3795 }
3796 case GICXXCustomAction_GICombiner119:{
3797 unsigned GIMatchData_select_op_no;
3798 // Match Patterns
3799 if(![&](){return Helper.matchFoldBinOpIntoSelect(*State.MIs[0], GIMatchData_select_op_no);}()) {
3800 return false;
3801 }
3802 // Apply Patterns
3803 Helper.applyFoldBinOpIntoSelect(*State.MIs[0], GIMatchData_select_op_no);
3804 return true;
3805 }
3806 case GICXXCustomAction_GICombiner120:{
3807 // Match Patterns
3808 if(![&](){return Helper.matchOperandIsKnownToBeAPowerOfTwo(State.MIs[0]->getOperand(2),
3809 /*OrNegative=*/true);}()) {
3810 return false;
3811 }
3812 // Apply Patterns
3813 Helper.applySimplifySRemByPow2(*State.MIs[0]);
3814 return true;
3815 }
3816 case GICXXCustomAction_GICombiner121:{
3817 // Match Patterns
3818 if(![&](){return Helper.matchUDivOrURemByConst(*State.MIs[0]);}()) {
3819 return false;
3820 }
3821 // Apply Patterns
3822 Helper.applyUDivOrURemByConst(*State.MIs[0]);
3823 return true;
3824 }
3825 case GICXXCustomAction_GICombiner122:{
3826 // Match Patterns
3827 if(![&](){return Helper.matchSDivOrSRemByConst(*State.MIs[0]);}()) {
3828 return false;
3829 }
3830 // Apply Patterns
3831 Helper.applySDivOrSRemByConst(*State.MIs[0]);
3832 return true;
3833 }
3834 case GICXXCustomAction_GICombiner123:{
3835 // Match Patterns
3836 if(![&](){return Helper.matchDivByPow2(*State.MIs[0], /*IsSigned=*/false);}()) {
3837 return false;
3838 }
3839 // Apply Patterns
3840 Helper.applyUDivByPow2(*State.MIs[0]);
3841 return true;
3842 }
3843 case GICXXCustomAction_GICombiner124:{
3844 // Match Patterns
3845 if(![&](){return Helper.matchDivByPow2(*State.MIs[0], /*IsSigned=*/true);}()) {
3846 return false;
3847 }
3848 // Apply Patterns
3849 Helper.applySDivByPow2(*State.MIs[0]);
3850 return true;
3851 }
3852 case GICXXCustomAction_GICombiner125:{
3853 SmallVector<MachineInstr *> GIMatchData_matchinfo;
3854 // Match Patterns
3855 if(![&](){return Helper.matchRepeatedFPDivisor(*State.MIs[0], GIMatchData_matchinfo);}()) {
3856 return false;
3857 }
3858 // Apply Patterns
3859 Helper.applyRepeatedFPDivisor(GIMatchData_matchinfo);
3860 return true;
3861 }
3862 case GICXXCustomAction_GICombiner126:{
3863 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3864 // Match Patterns
3865 if(![&](){return Helper.matchSubAddSameReg(*State.MIs[0], GIMatchData_matchinfo);}()) {
3866 return false;
3867 }
3868 // Apply Patterns
3869 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3870 return true;
3871 }
3872 case GICXXCustomAction_GICombiner127:{
3873 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3874 // Match Patterns
3875 if(![&](){return Helper.matchSimplifySelectToMinMax(*State.MIs[0], GIMatchData_info);}()) {
3876 return false;
3877 }
3878 // Apply Patterns
3879 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3880 return true;
3881 }
3882 case GICXXCustomAction_GICombiner128:{
3883 Register GIMatchData_matchinfo;
3884 // Match Patterns
3885 if(![&](){return Helper.matchFsubToFneg(*State.MIs[0], GIMatchData_matchinfo);}()) {
3886 return false;
3887 }
3888 // Apply Patterns
3889 Helper.applyFsubToFneg(*State.MIs[0], GIMatchData_matchinfo);
3890 return true;
3891 }
3892 case GICXXCustomAction_GICombiner129:{
3893 // Match Patterns
3894 if(![&](){return Helper.matchCommuteConstantToRHS(*State.MIs[0]);}()) {
3895 return false;
3896 }
3897 // Apply Patterns
3898 Helper.applyCommuteBinOpOperands(*State.MIs[0]);
3899 return true;
3900 }
3901 case GICXXCustomAction_GICombiner130:{
3902 // Match Patterns
3903 if(![&](){return Helper.matchCommuteFPConstantToRHS(*State.MIs[0]);}()) {
3904 return false;
3905 }
3906 // Apply Patterns
3907 Helper.applyCommuteBinOpOperands(*State.MIs[0]);
3908 return true;
3909 }
3910 case GICXXCustomAction_GICombiner131:{
3911 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3912 // Match Patterns
3913 if(![&](){return Helper.matchAnd(*State.MIs[0], GIMatchData_matchinfo);}()) {
3914 return false;
3915 }
3916 // Apply Patterns
3917 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3918 return true;
3919 }
3920 case GICXXCustomAction_GICombiner132:{
3921 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3922 // Match Patterns
3923 if(![&](){return Helper.matchOr(*State.MIs[0], GIMatchData_matchinfo);}()) {
3924 return false;
3925 }
3926 // Apply Patterns
3927 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3928 return true;
3929 }
3930 case GICXXCustomAction_GICombiner133:{
3931 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3932 // Match Patterns
3933 if(![&](){return Helper.matchSimplifyNegMinMax(*State.MIs[0], GIMatchData_matchinfo);}()) {
3934 return false;
3935 }
3936 // Apply Patterns
3937 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3938 return true;
3939 }
3940 case GICXXCustomAction_GICombiner134:{
3941 SmallVector<Register> GIMatchData_matchinfo;
3942 // Match Patterns
3943 if(![&](){return Helper.matchCombineConcatVectors(*State.MIs[0], GIMatchData_matchinfo);}()) {
3944 return false;
3945 }
3946 // Apply Patterns
3947 Helper.applyCombineConcatVectors(*State.MIs[0], GIMatchData_matchinfo);
3948 return true;
3949 }
3950 case GICXXCustomAction_GICombiner135:{
3951 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3952 // Match Patterns
3953 if(![&](){return Helper.matchSextOfTrunc(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
3954 return false;
3955 }
3956 // Apply Patterns
3957 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
3958 return true;
3959 }
3960 case GICXXCustomAction_GICombiner136:{
3961 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3962 // Match Patterns
3963 if(![&](){return Helper.matchZextOfTrunc(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
3964 return false;
3965 }
3966 // Apply Patterns
3967 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
3968 return true;
3969 }
3970 case GICXXCustomAction_GICombiner137:{
3971 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3972 // Match Patterns
3973 if(![&](){return Helper.matchNonNegZext(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
3974 return false;
3975 }
3976 // Apply Patterns
3977 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
3978 return true;
3979 }
3980 case GICXXCustomAction_GICombiner138:{
3981 SmallVector<Register> GIMatchData_matchinfo;
3982 // Match Patterns
3983 if(![&](){return Helper.matchCombineShuffleConcat(*State.MIs[0], GIMatchData_matchinfo);}()) {
3984 return false;
3985 }
3986 // Apply Patterns
3987 Helper.applyCombineShuffleConcat(*State.MIs[0], GIMatchData_matchinfo);
3988 return true;
3989 }
3990 case GICXXCustomAction_GICombiner139:{
3991 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3992 // Match Patterns
3993 if(![&](){return Helper.matchShuffleUndefRHS(*State.MIs[0], GIMatchData_matchinfo);}()) {
3994 return false;
3995 }
3996 // Apply Patterns
3997 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3998 return true;
3999 }
4000 case GICXXCustomAction_GICombiner140:{
4001 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4002 // Match Patterns
4003 if(![&](){return Helper.matchShuffleDisjointMask(*State.MIs[0], GIMatchData_matchinfo);}()) {
4004 return false;
4005 }
4006 // Apply Patterns
4007 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4008 return true;
4009 }
4010 case GICXXCustomAction_GICombiner141:{
4011 Register GIMatchData_matchinfo;
4012 // Match Patterns
4013 if(![&](){return Helper.matchUseVectorTruncate(*State.MIs[0], GIMatchData_matchinfo);}()) {
4014 return false;
4015 }
4016 // Apply Patterns
4017 Helper.applyUseVectorTruncate(*State.MIs[0], GIMatchData_matchinfo);
4018 return true;
4019 }
4020 case GICXXCustomAction_GICombiner142:{
4021 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4022 // Match Patterns
4023 if(![&](){return Helper.matchUnmergeValuesAnyExtBuildVector(*State.MIs[0], GIMatchData_matchinfo);}()) {
4024 return false;
4025 }
4026 // Apply Patterns
4027 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4028 return true;
4029 }
4030 case GICXXCustomAction_GICombiner143:{
4031 SmallVector<Register> GIMatchData_info;
4032 // Match Patterns
4033 if(![&](){return Helper.matchCombineUnmergeMergeToPlainValues(*State.MIs[0], GIMatchData_info);}()) {
4034 return false;
4035 }
4036 // Apply Patterns
4037 Helper.applyCombineUnmergeMergeToPlainValues(*State.MIs[0], GIMatchData_info);
4038 return true;
4039 }
4040 case GICXXCustomAction_GICombiner144:{
4041 Register GIMatchData_src;
4042 // Match Patterns
4043 if(![&](){// Check if first source comes from G_UNMERGE_VALUES.
4044 Register FirstMergeSrc = getRemainingOperands(*State.MIs[0], 1)[0].getReg();
4045 MachineInstr *UnmergeMI = MRI.getVRegDef(FirstMergeSrc);
4046 if (!UnmergeMI || UnmergeMI->getOpcode() != TargetOpcode::G_UNMERGE_VALUES)
4047 return false;
4048
4049 // Check counts match.
4050 unsigned NumMergeSrcs = getRemainingOperands(*State.MIs[0], 1).size();
4051 unsigned NumUnmergeDefs = UnmergeMI->getNumDefs();
4052 if (NumMergeSrcs != NumUnmergeDefs)
4053 return false;
4054
4055 // Verify all merge sources match unmerge defs in order.
4056 for (unsigned I = 0; I < NumMergeSrcs; ++I) {
4057 Register MergeSrc = getRemainingOperands(*State.MIs[0], 1)[I].getReg();
4058 Register UnmergeDef = UnmergeMI->getOperand(I).getReg();
4059
4060 if (MergeSrc != UnmergeDef)
4061 return false;
4062
4063 if (!MRI.hasOneNonDBGUse(MergeSrc))
4064 return false;
4065 }
4066
4067 // Check size compatibility.
4068 GIMatchData_src = UnmergeMI->getOperand(NumUnmergeDefs).getReg();
4069 LLT SrcTy = MRI.getType(GIMatchData_src);
4070 LLT DstTy = MRI.getType(State.MIs[0]->getOperand(0).getReg());
4071 if (SrcTy.getSizeInBits() != DstTy.getSizeInBits())
4072 return false;
4073
4074 // Check bitcast legality.
4075 if (SrcTy != DstTy) {
4076 std::array<LLT, 2> Types = {{DstTy, SrcTy}};
4077 LegalityQuery Query(TargetOpcode::G_BITCAST, Types);
4078 if (!Helper.isLegalOrBeforeLegalizer(Query))
4079 return false;
4080 }
4081
4082 return true;}()) {
4083 return false;
4084 }
4085 // Apply Patterns
4086 LLT SrcTy = MRI.getType(GIMatchData_src);
4087 LLT DstTy = MRI.getType(State.MIs[0]->getOperand(0).getReg());
4088
4089 Helper.getBuilder().setInstrAndDebugLoc(*State.MIs[0]);
4090
4091 if (SrcTy == DstTy) {
4092 Helper.replaceRegWith(MRI, State.MIs[0]->getOperand(0).getReg(), GIMatchData_src);
4093 } else {
4094 Helper.getBuilder().buildBitcast(State.MIs[0]->getOperand(0).getReg(), GIMatchData_src);
4095 }
4096
4097 State.MIs[0]->eraseFromParent();
4098 return true;
4099 }
4100 case GICXXCustomAction_GICombiner145:{
4101 SmallVector<APInt, 8> GIMatchData_info;
4102 // Match Patterns
4103 if(![&](){return Helper.matchCombineUnmergeConstant(*State.MIs[0], GIMatchData_info);}()) {
4104 return false;
4105 }
4106 // Apply Patterns
4107 Helper.applyCombineUnmergeConstant(*State.MIs[0], GIMatchData_info);
4108 return true;
4109 }
4110 case GICXXCustomAction_GICombiner146:{
4111 std::function<void(MachineIRBuilder &)> GIMatchData_info;
4112 // Match Patterns
4113 if(![&](){return Helper.matchCombineUnmergeUndef(*State.MIs[0], GIMatchData_info);}()) {
4114 return false;
4115 }
4116 // Apply Patterns
4117 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
4118 return true;
4119 }
4120 case GICXXCustomAction_GICombiner147:{
4121 // Match Patterns
4122 if(![&](){return Helper.matchCombineUnmergeWithDeadLanesToTrunc(*State.MIs[0]);}()) {
4123 return false;
4124 }
4125 // Apply Patterns
4126 Helper.applyCombineUnmergeWithDeadLanesToTrunc(*State.MIs[0]);
4127 return true;
4128 }
4129 case GICXXCustomAction_GICombiner148:{
4130 // Match Patterns
4131 if(![&](){return Helper.matchCombineUnmergeZExtToZExt(*State.MIs[0]);}()) {
4132 return false;
4133 }
4134 // Apply Patterns
4135 Helper.applyCombineUnmergeZExtToZExt(*State.MIs[0]);
4136 return true;
4137 }
4138 case GICXXCustomAction_GICombiner149:{
4139 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4140 // Match Patterns
4141 if(![&](){return Helper.matchMergeXAndUndef(*State.MIs[0], GIMatchData_matchinfo);}()) {
4142 return false;
4143 }
4144 // Apply Patterns
4145 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4146 return true;
4147 }
4148 case GICXXCustomAction_GICombiner150:{
4149 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4150 // Match Patterns
4151 if(![&](){return Helper.matchMergeXAndZero(*State.MIs[0], GIMatchData_matchinfo);}()) {
4152 return false;
4153 }
4154 // Apply Patterns
4155 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4156 return true;
4157 }
4158 case GICXXCustomAction_GICombiner151:{
4159 Register GIMatchData_unmergeSrc;
4160 // Match Patterns
4161 if(![&](){return Helper.matchCombineBuildUnmerge(*State.MIs[0], MRI, GIMatchData_unmergeSrc);}()) {
4162 return false;
4163 }
4164 // Apply Patterns
4165 Helper.applyCombineBuildUnmerge(*State.MIs[0], MRI, B, GIMatchData_unmergeSrc);
4166 return true;
4167 }
4168 case GICXXCustomAction_GICombiner152:{
4169 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4170 // Match Patterns
4171 if(![&](){return Helper.matchAddOverflow(*State.MIs[0], GIMatchData_matchinfo);}()) {
4172 return false;
4173 }
4174 // Apply Patterns
4175 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4176 return true;
4177 }
4178 case GICXXCustomAction_GICombiner153:{
4179 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4180 // Match Patterns
4181 if(![&](){return Helper.matchSuboCarryOut(*State.MIs[0], GIMatchData_matchinfo);}()) {
4182 return false;
4183 }
4184 // Apply Patterns
4185 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4186 return true;
4187 }
4188 case GICXXCustomAction_GICombiner154:{
4189 Register GIMatchData_matchinfo;
4190 // Match Patterns
4191 if(![&](){return Helper.matchTruncSSatS(*State.MIs[0], GIMatchData_matchinfo);}()) {
4192 return false;
4193 }
4194 // Apply Patterns
4195 Helper.applyTruncSSatS(*State.MIs[0], GIMatchData_matchinfo);
4196 return true;
4197 }
4198 case GICXXCustomAction_GICombiner155:{
4199 Register GIMatchData_matchinfo;
4200 // Match Patterns
4201 if(![&](){return Helper.matchTruncSSatU(*State.MIs[0], GIMatchData_matchinfo);}()) {
4202 return false;
4203 }
4204 // Apply Patterns
4205 Helper.applyTruncSSatU(*State.MIs[0], GIMatchData_matchinfo);
4206 return true;
4207 }
4208 case GICXXCustomAction_GICombiner156:{
4209 LshrOfTruncOfLshr GIMatchData_matchinfo;
4210 // Match Patterns
4211 if(![&](){return Helper.matchLshrOfTruncOfLshr(*State.MIs[0], GIMatchData_matchinfo, *State.MIs[2]);}()) {
4212 return false;
4213 }
4214 // Apply Patterns
4215 Helper.applyLshrOfTruncOfLshr(*State.MIs[0], GIMatchData_matchinfo);
4216 return true;
4217 }
4218 case GICXXCustomAction_GICombiner157:{
4219 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4220 // Match Patterns
4221 if(![&](){return Helper.matchCtls(*State.MIs[0], GIMatchData_matchinfo);}()) {
4222 return false;
4223 }
4224 // Apply Patterns
4225 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4226 return true;
4227 }
4228 case GICXXCustomAction_GICombiner158:{
4229 // Match Patterns
4230 if(![&](){return Helper.matchCountZeroToZeroPoison(*State.MIs[0]);}()) {
4231 return false;
4232 }
4233 // Apply Patterns
4234 Helper.applyCountZeroToZeroPoison(*State.MIs[0]);
4235 return true;
4236 }
4237 case GICXXCustomAction_GICombiner159:{
4238 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4239 // Match Patterns
4240 if(![&](){return Helper.matchBinopWithNeg(*State.MIs[0], GIMatchData_matchinfo);}()) {
4241 return false;
4242 }
4243 // Apply Patterns
4244 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4245 return true;
4246 }
4247 }
4248 llvm_unreachable("Unknown Apply Action");
4249}
4250#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
4251#define GIMT_Encode2(Val) uint8_t(Val), uint8_t((Val) >> 8)
4252#define GIMT_Encode4(Val) uint8_t(Val), uint8_t((Val) >> 8), uint8_t((Val) >> 16), uint8_t((Val) >> 24)
4253#define GIMT_Encode8(Val) uint8_t(Val), uint8_t((Val) >> 8), uint8_t((Val) >> 16), uint8_t((Val) >> 24), uint8_t(uint64_t(Val) >> 32), uint8_t(uint64_t(Val) >> 40), uint8_t(uint64_t(Val) >> 48), uint8_t(uint64_t(Val) >> 56)
4254#else
4255#define GIMT_Encode2(Val) uint8_t((Val) >> 8), uint8_t(Val)
4256#define GIMT_Encode4(Val) uint8_t((Val) >> 24), uint8_t((Val) >> 16), uint8_t((Val) >> 8), uint8_t(Val)
4257#define GIMT_Encode8(Val) uint8_t(uint64_t(Val) >> 56), uint8_t(uint64_t(Val) >> 48), uint8_t(uint64_t(Val) >> 40), uint8_t(uint64_t(Val) >> 32), uint8_t((Val) >> 24), uint8_t((Val) >> 16), uint8_t((Val) >> 8), uint8_t(Val)
4258#endif
4259const uint8_t *RISCVPreLegalizerCombinerImpl::getMatchTable() const {
4260 constexpr static uint8_t MatchTable0[] = {
4261 /* 0 */ GIM_SwitchOpcode, /*MI*/0, /*[*/GIMT_Encode2(20), GIMT_Encode2(285), /*)*//*default:*//*Label 113*/ GIMT_Encode4(10074),
4262 /* 10 */ /*TargetOpcode::COPY*//*Label 0*/ GIMT_Encode4(1070), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4263 /* 150 */ /*TargetOpcode::G_ADD*//*Label 1*/ GIMT_Encode4(1082),
4264 /* 154 */ /*TargetOpcode::G_SUB*//*Label 2*/ GIMT_Encode4(1815),
4265 /* 158 */ /*TargetOpcode::G_MUL*//*Label 3*/ GIMT_Encode4(2796),
4266 /* 162 */ /*TargetOpcode::G_SDIV*//*Label 4*/ GIMT_Encode4(3002),
4267 /* 166 */ /*TargetOpcode::G_UDIV*//*Label 5*/ GIMT_Encode4(3104),
4268 /* 170 */ /*TargetOpcode::G_SREM*//*Label 6*/ GIMT_Encode4(3217),
4269 /* 174 */ /*TargetOpcode::G_UREM*//*Label 7*/ GIMT_Encode4(3313), GIMT_Encode4(0), GIMT_Encode4(0),
4270 /* 186 */ /*TargetOpcode::G_AND*//*Label 8*/ GIMT_Encode4(3420),
4271 /* 190 */ /*TargetOpcode::G_OR*//*Label 9*/ GIMT_Encode4(3847),
4272 /* 194 */ /*TargetOpcode::G_XOR*//*Label 10*/ GIMT_Encode4(4662), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4273 /* 226 */ /*TargetOpcode::G_PHI*//*Label 11*/ GIMT_Encode4(4873), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4274 /* 250 */ /*TargetOpcode::G_UNMERGE_VALUES*//*Label 12*/ GIMT_Encode4(4885), GIMT_Encode4(0),
4275 /* 258 */ /*TargetOpcode::G_MERGE_VALUES*//*Label 13*/ GIMT_Encode4(4952),
4276 /* 262 */ /*TargetOpcode::G_BUILD_VECTOR*//*Label 14*/ GIMT_Encode4(5029),
4277 /* 266 */ /*TargetOpcode::G_BUILD_VECTOR_TRUNC*//*Label 15*/ GIMT_Encode4(5094),
4278 /* 270 */ /*TargetOpcode::G_CONCAT_VECTORS*//*Label 16*/ GIMT_Encode4(5106),
4279 /* 274 */ /*TargetOpcode::G_PTRTOINT*//*Label 17*/ GIMT_Encode4(5118),
4280 /* 278 */ /*TargetOpcode::G_INTTOPTR*//*Label 18*/ GIMT_Encode4(5161),
4281 /* 282 */ /*TargetOpcode::G_BITCAST*//*Label 19*/ GIMT_Encode4(5194),
4282 /* 286 */ /*TargetOpcode::G_FREEZE*//*Label 20*/ GIMT_Encode4(5269), GIMT_Encode4(0), GIMT_Encode4(0),
4283 /* 298 */ /*TargetOpcode::G_INTRINSIC_TRUNC*//*Label 21*/ GIMT_Encode4(5333),
4284 /* 302 */ /*TargetOpcode::G_INTRINSIC_ROUND*//*Label 22*/ GIMT_Encode4(5355), GIMT_Encode4(0), GIMT_Encode4(0),
4285 /* 314 */ /*TargetOpcode::G_INTRINSIC_ROUNDEVEN*//*Label 23*/ GIMT_Encode4(5377), GIMT_Encode4(0), GIMT_Encode4(0),
4286 /* 326 */ /*TargetOpcode::G_LOAD*//*Label 24*/ GIMT_Encode4(5399),
4287 /* 330 */ /*TargetOpcode::G_SEXTLOAD*//*Label 25*/ GIMT_Encode4(5411),
4288 /* 334 */ /*TargetOpcode::G_ZEXTLOAD*//*Label 26*/ GIMT_Encode4(5423), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4289 /* 354 */ /*TargetOpcode::G_STORE*//*Label 27*/ GIMT_Encode4(5435), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4290 /* 502 */ /*TargetOpcode::G_ANYEXT*//*Label 28*/ GIMT_Encode4(5447),
4291 /* 506 */ /*TargetOpcode::G_TRUNC*//*Label 29*/ GIMT_Encode4(5575), GIMT_Encode4(0), GIMT_Encode4(0),
4292 /* 518 */ /*TargetOpcode::G_TRUNC_USAT_U*//*Label 30*/ GIMT_Encode4(5987), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4293 /* 538 */ /*TargetOpcode::G_SEXT*//*Label 31*/ GIMT_Encode4(6020),
4294 /* 542 */ /*TargetOpcode::G_SEXT_INREG*//*Label 32*/ GIMT_Encode4(6095),
4295 /* 546 */ /*TargetOpcode::G_ZEXT*//*Label 33*/ GIMT_Encode4(6161),
4296 /* 550 */ /*TargetOpcode::G_SHL*//*Label 34*/ GIMT_Encode4(6291),
4297 /* 554 */ /*TargetOpcode::G_LSHR*//*Label 35*/ GIMT_Encode4(6489),
4298 /* 558 */ /*TargetOpcode::G_ASHR*//*Label 36*/ GIMT_Encode4(6836),
4299 /* 562 */ /*TargetOpcode::G_FSHL*//*Label 37*/ GIMT_Encode4(7165),
4300 /* 566 */ /*TargetOpcode::G_FSHR*//*Label 38*/ GIMT_Encode4(7208),
4301 /* 570 */ /*TargetOpcode::G_ROTR*//*Label 39*/ GIMT_Encode4(7251),
4302 /* 574 */ /*TargetOpcode::G_ROTL*//*Label 40*/ GIMT_Encode4(7275),
4303 /* 578 */ /*TargetOpcode::G_ICMP*//*Label 41*/ GIMT_Encode4(7299),
4304 /* 582 */ /*TargetOpcode::G_FCMP*//*Label 42*/ GIMT_Encode4(7344), GIMT_Encode4(0), GIMT_Encode4(0),
4305 /* 594 */ /*TargetOpcode::G_SELECT*//*Label 43*/ GIMT_Encode4(7356),
4306 /* 598 */ /*TargetOpcode::G_UADDO*//*Label 44*/ GIMT_Encode4(7536),
4307 /* 602 */ /*TargetOpcode::G_UADDE*//*Label 45*/ GIMT_Encode4(7559),
4308 /* 606 */ /*TargetOpcode::G_USUBO*//*Label 46*/ GIMT_Encode4(7571),
4309 /* 610 */ /*TargetOpcode::G_USUBE*//*Label 47*/ GIMT_Encode4(7583),
4310 /* 614 */ /*TargetOpcode::G_SADDO*//*Label 48*/ GIMT_Encode4(7595),
4311 /* 618 */ /*TargetOpcode::G_SADDE*//*Label 49*/ GIMT_Encode4(7618),
4312 /* 622 */ /*TargetOpcode::G_SSUBO*//*Label 50*/ GIMT_Encode4(7630),
4313 /* 626 */ /*TargetOpcode::G_SSUBE*//*Label 51*/ GIMT_Encode4(7642),
4314 /* 630 */ /*TargetOpcode::G_UMULO*//*Label 52*/ GIMT_Encode4(7654),
4315 /* 634 */ /*TargetOpcode::G_SMULO*//*Label 53*/ GIMT_Encode4(7688),
4316 /* 638 */ /*TargetOpcode::G_UMULH*//*Label 54*/ GIMT_Encode4(7722),
4317 /* 642 */ /*TargetOpcode::G_SMULH*//*Label 55*/ GIMT_Encode4(7745),
4318 /* 646 */ /*TargetOpcode::G_UADDSAT*//*Label 56*/ GIMT_Encode4(7757),
4319 /* 650 */ /*TargetOpcode::G_SADDSAT*//*Label 57*/ GIMT_Encode4(7769), GIMT_Encode4(0), GIMT_Encode4(0),
4320 /* 662 */ /*TargetOpcode::G_USHLSAT*//*Label 58*/ GIMT_Encode4(7781),
4321 /* 666 */ /*TargetOpcode::G_SSHLSAT*//*Label 59*/ GIMT_Encode4(7804),
4322 /* 670 */ /*TargetOpcode::G_SMULFIX*//*Label 60*/ GIMT_Encode4(7827),
4323 /* 674 */ /*TargetOpcode::G_UMULFIX*//*Label 61*/ GIMT_Encode4(7839),
4324 /* 678 */ /*TargetOpcode::G_SMULFIXSAT*//*Label 62*/ GIMT_Encode4(7851),
4325 /* 682 */ /*TargetOpcode::G_UMULFIXSAT*//*Label 63*/ GIMT_Encode4(7863), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4326 /* 702 */ /*TargetOpcode::G_FADD*//*Label 64*/ GIMT_Encode4(7875),
4327 /* 706 */ /*TargetOpcode::G_FSUB*//*Label 65*/ GIMT_Encode4(8016),
4328 /* 710 */ /*TargetOpcode::G_FMUL*//*Label 66*/ GIMT_Encode4(8105),
4329 /* 714 */ /*TargetOpcode::G_FMA*//*Label 67*/ GIMT_Encode4(8193),
4330 /* 718 */ /*TargetOpcode::G_FMAD*//*Label 68*/ GIMT_Encode4(8216),
4331 /* 722 */ /*TargetOpcode::G_FDIV*//*Label 69*/ GIMT_Encode4(8239),
4332 /* 726 */ /*TargetOpcode::G_FREM*//*Label 70*/ GIMT_Encode4(8284), GIMT_Encode4(0), GIMT_Encode4(0),
4333 /* 738 */ /*TargetOpcode::G_FPOWI*//*Label 71*/ GIMT_Encode4(8307), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4334 /* 758 */ /*TargetOpcode::G_FLOG2*//*Label 72*/ GIMT_Encode4(8329), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4335 /* 774 */ /*TargetOpcode::G_FNEG*//*Label 73*/ GIMT_Encode4(8351),
4336 /* 778 */ /*TargetOpcode::G_FPEXT*//*Label 74*/ GIMT_Encode4(8402),
4337 /* 782 */ /*TargetOpcode::G_FPTRUNC*//*Label 75*/ GIMT_Encode4(8424),
4338 /* 786 */ /*TargetOpcode::G_FPTOSI*//*Label 76*/ GIMT_Encode4(8467),
4339 /* 790 */ /*TargetOpcode::G_FPTOUI*//*Label 77*/ GIMT_Encode4(8489),
4340 /* 794 */ /*TargetOpcode::G_SITOFP*//*Label 78*/ GIMT_Encode4(8511),
4341 /* 798 */ /*TargetOpcode::G_UITOFP*//*Label 79*/ GIMT_Encode4(8538), GIMT_Encode4(0), GIMT_Encode4(0),
4342 /* 810 */ /*TargetOpcode::G_FABS*//*Label 80*/ GIMT_Encode4(8565),
4343 /* 814 */ /*TargetOpcode::G_FCOPYSIGN*//*Label 81*/ GIMT_Encode4(8644), GIMT_Encode4(0),
4344 /* 822 */ /*TargetOpcode::G_FCANONICALIZE*//*Label 82*/ GIMT_Encode4(8656),
4345 /* 826 */ /*TargetOpcode::G_FMINNUM*//*Label 83*/ GIMT_Encode4(8686),
4346 /* 830 */ /*TargetOpcode::G_FMAXNUM*//*Label 84*/ GIMT_Encode4(8731),
4347 /* 834 */ /*TargetOpcode::G_FMINNUM_IEEE*//*Label 85*/ GIMT_Encode4(8776),
4348 /* 838 */ /*TargetOpcode::G_FMAXNUM_IEEE*//*Label 86*/ GIMT_Encode4(8788),
4349 /* 842 */ /*TargetOpcode::G_FMINIMUM*//*Label 87*/ GIMT_Encode4(8800),
4350 /* 846 */ /*TargetOpcode::G_FMAXIMUM*//*Label 88*/ GIMT_Encode4(8845),
4351 /* 850 */ /*TargetOpcode::G_FMINIMUMNUM*//*Label 89*/ GIMT_Encode4(8890),
4352 /* 854 */ /*TargetOpcode::G_FMAXIMUMNUM*//*Label 90*/ GIMT_Encode4(8902), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4353 /* 890 */ /*TargetOpcode::G_PTR_ADD*//*Label 91*/ GIMT_Encode4(8914), GIMT_Encode4(0),
4354 /* 898 */ /*TargetOpcode::G_SMIN*//*Label 92*/ GIMT_Encode4(9004),
4355 /* 902 */ /*TargetOpcode::G_SMAX*//*Label 93*/ GIMT_Encode4(9038),
4356 /* 906 */ /*TargetOpcode::G_UMIN*//*Label 94*/ GIMT_Encode4(9072),
4357 /* 910 */ /*TargetOpcode::G_UMAX*//*Label 95*/ GIMT_Encode4(9106),
4358 /* 914 */ /*TargetOpcode::G_ABS*//*Label 96*/ GIMT_Encode4(9140), GIMT_Encode4(0), GIMT_Encode4(0),
4359 /* 926 */ /*TargetOpcode::G_BR*//*Label 97*/ GIMT_Encode4(9163), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4360 /* 946 */ /*TargetOpcode::G_INSERT_VECTOR_ELT*//*Label 98*/ GIMT_Encode4(9175),
4361 /* 950 */ /*TargetOpcode::G_EXTRACT_VECTOR_ELT*//*Label 99*/ GIMT_Encode4(9305),
4362 /* 954 */ /*TargetOpcode::G_SHUFFLE_VECTOR*//*Label 100*/ GIMT_Encode4(9682), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4363 /* 970 */ /*TargetOpcode::G_CTTZ*//*Label 101*/ GIMT_Encode4(9748),
4364 /* 974 */ /*TargetOpcode::G_CTTZ_ZERO_POISON*//*Label 102*/ GIMT_Encode4(9771),
4365 /* 978 */ /*TargetOpcode::G_CTLZ*//*Label 103*/ GIMT_Encode4(9783),
4366 /* 982 */ /*TargetOpcode::G_CTLZ_ZERO_POISON*//*Label 104*/ GIMT_Encode4(9817), GIMT_Encode4(0),
4367 /* 990 */ /*TargetOpcode::G_CTPOP*//*Label 105*/ GIMT_Encode4(9840),
4368 /* 994 */ /*TargetOpcode::G_BSWAP*//*Label 106*/ GIMT_Encode4(9852),
4369 /* 998 */ /*TargetOpcode::G_BITREVERSE*//*Label 107*/ GIMT_Encode4(9864), GIMT_Encode4(0),
4370 /* 1006 */ /*TargetOpcode::G_FCEIL*//*Label 108*/ GIMT_Encode4(9964), 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),
4371 /* 1054 */ /*TargetOpcode::G_FSQRT*//*Label 109*/ GIMT_Encode4(9986),
4372 /* 1058 */ /*TargetOpcode::G_FFLOOR*//*Label 110*/ GIMT_Encode4(10008),
4373 /* 1062 */ /*TargetOpcode::G_FRINT*//*Label 111*/ GIMT_Encode4(10030),
4374 /* 1066 */ /*TargetOpcode::G_FNEARBYINT*//*Label 112*/ GIMT_Encode4(10052),
4375 /* 1070 */ // Label 0: @1070
4376 /* 1070 */ GIM_Try, /*On fail goto*//*Label 114*/ GIMT_Encode4(1081), // Rule ID 19 //
4377 /* 1075 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule19Enabled),
4378 /* 1078 */ // MIs[0] d
4379 /* 1078 */ // No operand predicates
4380 /* 1078 */ // MIs[0] s
4381 /* 1078 */ // No operand predicates
4382 /* 1078 */ // Combiner Rule #19: copy_prop
4383 /* 1078 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner5),
4384 /* 1081 */ // Label 114: @1081
4385 /* 1081 */ GIM_Reject,
4386 /* 1082 */ // Label 1: @1082
4387 /* 1082 */ GIM_Try, /*On fail goto*//*Label 115*/ GIMT_Encode4(1093), // Rule ID 22 //
4388 /* 1087 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule22Enabled),
4389 /* 1090 */ // Combiner Rule #22: add_p2i_to_ptradd; wip_match_opcode 'G_ADD'
4390 /* 1090 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner8),
4391 /* 1093 */ // Label 115: @1093
4392 /* 1093 */ GIM_Try, /*On fail goto*//*Label 116*/ GIMT_Encode4(1104), // Rule ID 100 //
4393 /* 1098 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule84Enabled),
4394 /* 1101 */ // Combiner Rule #84: propagate_undef_any_op; wip_match_opcode 'G_ADD'
4395 /* 1101 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner39),
4396 /* 1104 */ // Label 116: @1104
4397 /* 1104 */ GIM_Try, /*On fail goto*//*Label 117*/ GIMT_Encode4(1115), // Rule ID 152 //
4398 /* 1109 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule112Enabled),
4399 /* 1112 */ // Combiner Rule #112: simplify_add_to_sub; wip_match_opcode 'G_ADD'
4400 /* 1112 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner53),
4401 /* 1115 */ // Label 117: @1115
4402 /* 1115 */ GIM_Try, /*On fail goto*//*Label 118*/ GIMT_Encode4(1126), // Rule ID 256 //
4403 /* 1120 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled),
4404 /* 1123 */ // Combiner Rule #187: constant_fold_binop; wip_match_opcode 'G_ADD'
4405 /* 1123 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103),
4406 /* 1126 */ // Label 118: @1126
4407 /* 1126 */ GIM_Try, /*On fail goto*//*Label 119*/ GIMT_Encode4(1137), // Rule ID 316 //
4408 /* 1131 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
4409 /* 1134 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_ADD'
4410 /* 1134 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
4411 /* 1137 */ // Label 119: @1137
4412 /* 1137 */ GIM_Try, /*On fail goto*//*Label 120*/ GIMT_Encode4(1148), // Rule ID 353 //
4413 /* 1142 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
4414 /* 1145 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_ADD'
4415 /* 1145 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129),
4416 /* 1148 */ // Label 120: @1148
4417 /* 1148 */ GIM_Try, /*On fail goto*//*Label 121*/ GIMT_Encode4(1236), // Rule ID 423 //
4418 /* 1153 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule256Enabled),
4419 /* 1156 */ // MIs[0] dst
4420 /* 1156 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
4421 /* 1160 */ // MIs[0] __add_shift_match_0.shl_neg
4422 /* 1160 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4423 /* 1164 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SHL),
4424 /* 1168 */ // MIs[1] __add_shift_match_0.neg_y
4425 /* 1168 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
4426 /* 1172 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB),
4427 /* 1176 */ // MIs[2] __add_shift_match_0.zero
4428 /* 1176 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/2, /*OpIdx*/1, // MIs[3]
4429 /* 1180 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
4430 /* 1184 */ // MIs[3] Operand 1
4431 /* 1184 */ GIM_CheckLiteralInt, /*MI*/3, /*Op*/1, GIMT_Encode8(0),
4432 /* 1195 */ // MIs[2] y
4433 /* 1195 */ // No operand predicates
4434 /* 1195 */ // MIs[1] n
4435 /* 1195 */ // No operand predicates
4436 /* 1195 */ // MIs[0] x
4437 /* 1195 */ // No operand predicates
4438 /* 1195 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner18),
4439 /* 1199 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
4440 /* 1201 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
4441 /* 1204 */ // Combiner Rule #256: add_shift @ [__add_shift_match_0[1]]
4442 /* 1204 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SHL),
4443 /* 1207 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
4444 /* 1212 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/2, // y
4445 /* 1216 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // n
4446 /* 1220 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
4447 /* 1224 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
4448 /* 1228 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/2, // x
4449 /* 1232 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
4450 /* 1235 */ GIR_EraseRootFromParent_Done,
4451 /* 1236 */ // Label 121: @1236
4452 /* 1236 */ GIM_Try, /*On fail goto*//*Label 122*/ GIMT_Encode4(1324), // Rule ID 422 //
4453 /* 1241 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule256Enabled),
4454 /* 1244 */ // MIs[0] dst
4455 /* 1244 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
4456 /* 1248 */ // MIs[0] x
4457 /* 1248 */ // No operand predicates
4458 /* 1248 */ // MIs[0] __add_shift_match_0.shl_neg
4459 /* 1248 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
4460 /* 1252 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SHL),
4461 /* 1256 */ // MIs[1] __add_shift_match_0.neg_y
4462 /* 1256 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
4463 /* 1260 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB),
4464 /* 1264 */ // MIs[2] __add_shift_match_0.zero
4465 /* 1264 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/2, /*OpIdx*/1, // MIs[3]
4466 /* 1268 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
4467 /* 1272 */ // MIs[3] Operand 1
4468 /* 1272 */ GIM_CheckLiteralInt, /*MI*/3, /*Op*/1, GIMT_Encode8(0),
4469 /* 1283 */ // MIs[2] y
4470 /* 1283 */ // No operand predicates
4471 /* 1283 */ // MIs[1] n
4472 /* 1283 */ // No operand predicates
4473 /* 1283 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner17),
4474 /* 1287 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
4475 /* 1289 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
4476 /* 1292 */ // Combiner Rule #256: add_shift @ [__add_shift_match_0[0]]
4477 /* 1292 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SHL),
4478 /* 1295 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
4479 /* 1300 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/2, // y
4480 /* 1304 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // n
4481 /* 1308 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
4482 /* 1312 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
4483 /* 1316 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/1, // x
4484 /* 1320 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
4485 /* 1323 */ GIR_EraseRootFromParent_Done,
4486 /* 1324 */ // Label 122: @1324
4487 /* 1324 */ GIM_Try, /*On fail goto*//*Label 123*/ GIMT_Encode4(1358), // Rule ID 2 //
4488 /* 1329 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule2Enabled),
4489 /* 1332 */ // MIs[0] root
4490 /* 1332 */ // No operand predicates
4491 /* 1332 */ // MIs[0] sub
4492 /* 1332 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4493 /* 1336 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
4494 /* 1340 */ // MIs[1] Operand 1
4495 /* 1340 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/1, 0,
4496 /* 1344 */ // MIs[1] A
4497 /* 1344 */ // No operand predicates
4498 /* 1344 */ // MIs[0] B
4499 /* 1344 */ // No operand predicates
4500 /* 1344 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4501 /* 1346 */ // Combiner Rule #2: ZeroMinusAPlusB
4502 /* 1346 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
4503 /* 1349 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
4504 /* 1351 */ GIR_RootToRootCopy, /*OpIdx*/2, // B
4505 /* 1353 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // A
4506 /* 1357 */ GIR_EraseRootFromParent_Done,
4507 /* 1358 */ // Label 123: @1358
4508 /* 1358 */ GIM_Try, /*On fail goto*//*Label 124*/ GIMT_Encode4(1395), // Rule ID 18 //
4509 /* 1363 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule18Enabled),
4510 /* 1366 */ // MIs[0] root
4511 /* 1366 */ // No operand predicates
4512 /* 1366 */ // MIs[0] sub
4513 /* 1366 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4514 /* 1370 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
4515 /* 1374 */ // MIs[1] A
4516 /* 1374 */ // No operand predicates
4517 /* 1374 */ // MIs[1] c1
4518 /* 1374 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
4519 /* 1378 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
4520 /* 1382 */ // MIs[2] imm1
4521 /* 1382 */ // No operand predicates
4522 /* 1382 */ // MIs[0] c2
4523 /* 1382 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/0, /*OpIdx*/2, // MIs[3]
4524 /* 1386 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
4525 /* 1390 */ // MIs[3] imm2
4526 /* 1390 */ // No operand predicates
4527 /* 1390 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
4528 /* 1392 */ // Combiner Rule #18: AMinusC1PlusC2
4529 /* 1392 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner4),
4530 /* 1395 */ // Label 124: @1395
4531 /* 1395 */ GIM_Try, /*On fail goto*//*Label 125*/ GIMT_Encode4(1429), // Rule ID 5 //
4532 /* 1400 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule5Enabled),
4533 /* 1403 */ // MIs[0] root
4534 /* 1403 */ // No operand predicates
4535 /* 1403 */ // MIs[0] sub
4536 /* 1403 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4537 /* 1407 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
4538 /* 1411 */ // MIs[1] B
4539 /* 1411 */ // No operand predicates
4540 /* 1411 */ // MIs[1] A
4541 /* 1411 */ // No operand predicates
4542 /* 1411 */ // MIs[0] A
4543 /* 1411 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/2,
4544 /* 1416 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
4545 /* 1421 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4546 /* 1423 */ // Combiner Rule #5: BMinusAPlusA
4547 /* 1423 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
4548 /* 1428 */ GIR_EraseRootFromParent_Done,
4549 /* 1429 */ // Label 125: @1429
4550 /* 1429 */ GIM_Try, /*On fail goto*//*Label 126*/ GIMT_Encode4(1463), // Rule ID 140 //
4551 /* 1434 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule101Enabled),
4552 /* 1437 */ // MIs[0] dst
4553 /* 1437 */ // No operand predicates
4554 /* 1437 */ // MIs[0] __add_sub_reg_match_0.tmp
4555 /* 1437 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4556 /* 1441 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
4557 /* 1445 */ // MIs[1] src
4558 /* 1445 */ // No operand predicates
4559 /* 1445 */ // MIs[1] __add_sub_reg_match_0.x
4560 /* 1445 */ // No operand predicates
4561 /* 1445 */ // MIs[0] __add_sub_reg_match_0.x
4562 /* 1445 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/2,
4563 /* 1450 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
4564 /* 1455 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4565 /* 1457 */ // Combiner Rule #101: add_sub_reg @ [__add_sub_reg_match_0[1]]
4566 /* 1457 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
4567 /* 1462 */ GIR_EraseRootFromParent_Done,
4568 /* 1463 */ // Label 126: @1463
4569 /* 1463 */ GIM_Try, /*On fail goto*//*Label 127*/ GIMT_Encode4(1508), // Rule ID 7 //
4570 /* 1468 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule7Enabled),
4571 /* 1471 */ // MIs[0] root
4572 /* 1471 */ // No operand predicates
4573 /* 1471 */ // MIs[0] sub1
4574 /* 1471 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4575 /* 1475 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
4576 /* 1479 */ // MIs[1] A
4577 /* 1479 */ // No operand predicates
4578 /* 1479 */ // MIs[1] B
4579 /* 1479 */ // No operand predicates
4580 /* 1479 */ // MIs[0] sub2
4581 /* 1479 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
4582 /* 1483 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB),
4583 /* 1487 */ // MIs[2] B
4584 /* 1487 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/2,
4585 /* 1492 */ // MIs[2] C
4586 /* 1492 */ // No operand predicates
4587 /* 1492 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
4588 /* 1494 */ // Combiner Rule #7: AMinusBPlusBMinusC
4589 /* 1494 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
4590 /* 1497 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
4591 /* 1499 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // A
4592 /* 1503 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/2, // C
4593 /* 1507 */ GIR_EraseRootFromParent_Done,
4594 /* 1508 */ // Label 127: @1508
4595 /* 1508 */ GIM_Try, /*On fail goto*//*Label 128*/ GIMT_Encode4(1553), // Rule ID 6 //
4596 /* 1513 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule6Enabled),
4597 /* 1516 */ // MIs[0] root
4598 /* 1516 */ // No operand predicates
4599 /* 1516 */ // MIs[0] sub1
4600 /* 1516 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4601 /* 1520 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
4602 /* 1524 */ // MIs[1] A
4603 /* 1524 */ // No operand predicates
4604 /* 1524 */ // MIs[1] B
4605 /* 1524 */ // No operand predicates
4606 /* 1524 */ // MIs[0] sub2
4607 /* 1524 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
4608 /* 1528 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB),
4609 /* 1532 */ // MIs[2] C
4610 /* 1532 */ // No operand predicates
4611 /* 1532 */ // MIs[2] A
4612 /* 1532 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/1,
4613 /* 1537 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
4614 /* 1539 */ // Combiner Rule #6: AMinusBPlusCMinusA
4615 /* 1539 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
4616 /* 1542 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
4617 /* 1544 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // C
4618 /* 1548 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // B
4619 /* 1552 */ GIR_EraseRootFromParent_Done,
4620 /* 1553 */ // Label 128: @1553
4621 /* 1553 */ GIM_Try, /*On fail goto*//*Label 129*/ GIMT_Encode4(1588), // Rule ID 45 //
4622 /* 1558 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule43Enabled),
4623 /* 1561 */ GIM_MIFlags, /*MI*/0, GIMT_Encode4(MachineInstr::NoSWrap),
4624 /* 1567 */ // MIs[0] root
4625 /* 1567 */ // No operand predicates
4626 /* 1567 */ // MIs[0] left
4627 /* 1567 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4628 /* 1571 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_VSCALE),
4629 /* 1575 */ // MIs[1] imm1
4630 /* 1575 */ // No operand predicates
4631 /* 1575 */ // MIs[0] right
4632 /* 1575 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
4633 /* 1579 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_VSCALE),
4634 /* 1583 */ // MIs[2] imm2
4635 /* 1583 */ // No operand predicates
4636 /* 1583 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
4637 /* 1585 */ // Combiner Rule #43: add_of_vscale
4638 /* 1585 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner15),
4639 /* 1588 */ // Label 129: @1588
4640 /* 1588 */ GIM_Try, /*On fail goto*//*Label 130*/ GIMT_Encode4(1622), // Rule ID 3 //
4641 /* 1593 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule3Enabled),
4642 /* 1596 */ // MIs[0] root
4643 /* 1596 */ // No operand predicates
4644 /* 1596 */ // MIs[0] A
4645 /* 1596 */ // No operand predicates
4646 /* 1596 */ // MIs[0] sub
4647 /* 1596 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
4648 /* 1600 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
4649 /* 1604 */ // MIs[1] Operand 1
4650 /* 1604 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/1, 0,
4651 /* 1608 */ // MIs[1] B
4652 /* 1608 */ // No operand predicates
4653 /* 1608 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4654 /* 1610 */ // Combiner Rule #3: APlusZeroMinusB
4655 /* 1610 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
4656 /* 1613 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
4657 /* 1615 */ GIR_RootToRootCopy, /*OpIdx*/1, // A
4658 /* 1617 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // B
4659 /* 1621 */ GIR_EraseRootFromParent_Done,
4660 /* 1622 */ // Label 130: @1622
4661 /* 1622 */ GIM_Try, /*On fail goto*//*Label 131*/ GIMT_Encode4(1656), // Rule ID 4 //
4662 /* 1627 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule4Enabled),
4663 /* 1630 */ // MIs[0] root
4664 /* 1630 */ // No operand predicates
4665 /* 1630 */ // MIs[0] A
4666 /* 1630 */ // No operand predicates
4667 /* 1630 */ // MIs[0] sub
4668 /* 1630 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
4669 /* 1634 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
4670 /* 1638 */ // MIs[1] B
4671 /* 1638 */ // No operand predicates
4672 /* 1638 */ // MIs[1] A
4673 /* 1638 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/1, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
4674 /* 1643 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
4675 /* 1648 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4676 /* 1650 */ // Combiner Rule #4: APlusBMinusB
4677 /* 1650 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
4678 /* 1655 */ GIR_EraseRootFromParent_Done,
4679 /* 1656 */ // Label 131: @1656
4680 /* 1656 */ GIM_Try, /*On fail goto*//*Label 132*/ GIMT_Encode4(1690), // Rule ID 139 //
4681 /* 1661 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule101Enabled),
4682 /* 1664 */ // MIs[0] dst
4683 /* 1664 */ // No operand predicates
4684 /* 1664 */ // MIs[0] __add_sub_reg_match_0.x
4685 /* 1664 */ // No operand predicates
4686 /* 1664 */ // MIs[0] __add_sub_reg_match_0.tmp
4687 /* 1664 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
4688 /* 1668 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
4689 /* 1672 */ // MIs[1] src
4690 /* 1672 */ // No operand predicates
4691 /* 1672 */ // MIs[1] __add_sub_reg_match_0.x
4692 /* 1672 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/1, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
4693 /* 1677 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
4694 /* 1682 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4695 /* 1684 */ // Combiner Rule #101: add_sub_reg @ [__add_sub_reg_match_0[0]]
4696 /* 1684 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
4697 /* 1689 */ GIR_EraseRootFromParent_Done,
4698 /* 1690 */ // Label 132: @1690
4699 /* 1690 */ GIM_Try, /*On fail goto*//*Label 133*/ GIMT_Encode4(1735), // Rule ID 8 //
4700 /* 1695 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule8Enabled),
4701 /* 1698 */ // MIs[0] root
4702 /* 1698 */ // No operand predicates
4703 /* 1698 */ // MIs[0] A
4704 /* 1698 */ // No operand predicates
4705 /* 1698 */ // MIs[0] sub1
4706 /* 1698 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
4707 /* 1702 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
4708 /* 1706 */ // MIs[1] B
4709 /* 1706 */ // No operand predicates
4710 /* 1706 */ // MIs[1] add1
4711 /* 1706 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
4712 /* 1710 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ADD),
4713 /* 1714 */ // MIs[2] A
4714 /* 1714 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/0, /*OtherOpIdx*/1,
4715 /* 1719 */ // MIs[2] C
4716 /* 1719 */ // No operand predicates
4717 /* 1719 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
4718 /* 1721 */ // Combiner Rule #8: APlusBMinusAplusC
4719 /* 1721 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
4720 /* 1724 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
4721 /* 1726 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // B
4722 /* 1730 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/2, // C
4723 /* 1734 */ GIR_EraseRootFromParent_Done,
4724 /* 1735 */ // Label 133: @1735
4725 /* 1735 */ GIM_Try, /*On fail goto*//*Label 134*/ GIMT_Encode4(1780), // Rule ID 10 //
4726 /* 1740 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule10Enabled),
4727 /* 1743 */ // MIs[0] root
4728 /* 1743 */ // No operand predicates
4729 /* 1743 */ // MIs[0] A
4730 /* 1743 */ // No operand predicates
4731 /* 1743 */ // MIs[0] sub1
4732 /* 1743 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
4733 /* 1747 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
4734 /* 1751 */ // MIs[1] B
4735 /* 1751 */ // No operand predicates
4736 /* 1751 */ // MIs[1] add1
4737 /* 1751 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
4738 /* 1755 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ADD),
4739 /* 1759 */ // MIs[2] C
4740 /* 1759 */ // No operand predicates
4741 /* 1759 */ // MIs[2] A
4742 /* 1759 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
4743 /* 1764 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
4744 /* 1766 */ // Combiner Rule #10: APlusBMinusCPlusA
4745 /* 1766 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
4746 /* 1769 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
4747 /* 1771 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // B
4748 /* 1775 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // C
4749 /* 1779 */ GIR_EraseRootFromParent_Done,
4750 /* 1780 */ // Label 134: @1780
4751 /* 1780 */ GIM_Try, /*On fail goto*//*Label 135*/ GIMT_Encode4(1803), // Rule ID 111 //
4752 /* 1785 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled),
4753 /* 1788 */ // MIs[0] dst
4754 /* 1788 */ // No operand predicates
4755 /* 1788 */ // MIs[0] lhs
4756 /* 1788 */ // No operand predicates
4757 /* 1788 */ // MIs[0] Operand 2
4758 /* 1788 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
4759 /* 1792 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
4760 /* 1797 */ // Combiner Rule #90: right_identity_zero @ [__right_identity_zero_match_0[1]]
4761 /* 1797 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
4762 /* 1802 */ GIR_EraseRootFromParent_Done,
4763 /* 1803 */ // Label 135: @1803
4764 /* 1803 */ GIM_Try, /*On fail goto*//*Label 136*/ GIMT_Encode4(1814), // Rule ID 160 //
4765 /* 1808 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule116Enabled),
4766 /* 1811 */ // MIs[0] root
4767 /* 1811 */ // No operand predicates
4768 /* 1811 */ // MIs[0] src1
4769 /* 1811 */ // No operand predicates
4770 /* 1811 */ // MIs[0] src2
4771 /* 1811 */ // No operand predicates
4772 /* 1811 */ // Combiner Rule #116: reassoc_comm_binops
4773 /* 1811 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner57),
4774 /* 1814 */ // Label 136: @1814
4775 /* 1814 */ GIM_Reject,
4776 /* 1815 */ // Label 2: @1815
4777 /* 1815 */ GIM_Try, /*On fail goto*//*Label 137*/ GIMT_Encode4(1826), // Rule ID 101 //
4778 /* 1820 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule84Enabled),
4779 /* 1823 */ // Combiner Rule #84: propagate_undef_any_op; wip_match_opcode 'G_SUB'
4780 /* 1823 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner39),
4781 /* 1826 */ // Label 137: @1826
4782 /* 1826 */ GIM_Try, /*On fail goto*//*Label 138*/ GIMT_Encode4(1837), // Rule ID 264 //
4783 /* 1831 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled),
4784 /* 1834 */ // Combiner Rule #187: constant_fold_binop; wip_match_opcode 'G_SUB'
4785 /* 1834 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103),
4786 /* 1837 */ // Label 138: @1837
4787 /* 1837 */ GIM_Try, /*On fail goto*//*Label 139*/ GIMT_Encode4(1848), // Rule ID 317 //
4788 /* 1842 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
4789 /* 1845 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_SUB'
4790 /* 1845 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
4791 /* 1848 */ // Label 139: @1848
4792 /* 1848 */ GIM_Try, /*On fail goto*//*Label 140*/ GIMT_Encode4(1859), // Rule ID 350 //
4793 /* 1853 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule213Enabled),
4794 /* 1856 */ // Combiner Rule #213: sub_add_reg; wip_match_opcode 'G_SUB'
4795 /* 1856 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner126),
4796 /* 1859 */ // Label 140: @1859
4797 /* 1859 */ GIM_Try, /*On fail goto*//*Label 141*/ GIMT_Encode4(1870), // Rule ID 390 //
4798 /* 1864 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule226Enabled),
4799 /* 1867 */ // Combiner Rule #226: simplify_neg_minmax; wip_match_opcode 'G_SUB'
4800 /* 1867 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner133),
4801 /* 1870 */ // Label 141: @1870
4802 /* 1870 */ GIM_Try, /*On fail goto*//*Label 142*/ GIMT_Encode4(1947), // Rule ID 424 //
4803 /* 1875 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule257Enabled),
4804 /* 1878 */ // MIs[0] dst
4805 /* 1878 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
4806 /* 1882 */ // MIs[0] sub1
4807 /* 1882 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4808 /* 1886 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
4809 /* 1890 */ // MIs[1] a
4810 /* 1890 */ // No operand predicates
4811 /* 1890 */ // MIs[1] b
4812 /* 1890 */ // No operand predicates
4813 /* 1890 */ // MIs[0] Operand 2
4814 /* 1890 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 1,
4815 /* 1894 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner1),
4816 /* 1898 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4817 /* 1900 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
4818 /* 1903 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(18446744073709551615u),
4819 /* 1913 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
4820 /* 1916 */ // Combiner Rule #257: sub_one_from_sub
4821 /* 1916 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_XOR),
4822 /* 1919 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
4823 /* 1924 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // b
4824 /* 1928 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/1,
4825 /* 1931 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ADD),
4826 /* 1935 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
4827 /* 1939 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
4828 /* 1942 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // a
4829 /* 1946 */ GIR_EraseRootFromParent_Done,
4830 /* 1947 */ // Label 142: @1947
4831 /* 1947 */ GIM_Try, /*On fail goto*//*Label 143*/ GIMT_Encode4(2041), // Rule ID 430 //
4832 /* 1952 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule261Enabled),
4833 /* 1955 */ // MIs[0] root
4834 /* 1955 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
4835 /* 1959 */ // MIs[0] Operand 1
4836 /* 1959 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/1, 0,
4837 /* 1963 */ // MIs[0] max
4838 /* 1963 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
4839 /* 1967 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SMAX),
4840 /* 1971 */ // MIs[1] A
4841 /* 1971 */ // No operand predicates
4842 /* 1971 */ // MIs[1] sub
4843 /* 1971 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
4844 /* 1975 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB),
4845 /* 1979 */ // MIs[2] Operand 1
4846 /* 1979 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/1, 0,
4847 /* 1983 */ // MIs[2] A
4848 /* 1983 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/1,
4849 /* 1988 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner19),
4850 /* 1992 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
4851 /* 1994 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
4852 /* 1997 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(0),
4853 /* 2007 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
4854 /* 2010 */ // Combiner Rule #261: SubSmaxSub
4855 /* 2010 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
4856 /* 2013 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
4857 /* 2018 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/1,
4858 /* 2021 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // A
4859 /* 2025 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SMIN),
4860 /* 2029 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // root
4861 /* 2033 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // A
4862 /* 2037 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
4863 /* 2040 */ GIR_EraseRootFromParent_Done,
4864 /* 2041 */ // Label 143: @2041
4865 /* 2041 */ GIM_Try, /*On fail goto*//*Label 144*/ GIMT_Encode4(2135), // Rule ID 431 //
4866 /* 2046 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule262Enabled),
4867 /* 2049 */ // MIs[0] root
4868 /* 2049 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
4869 /* 2053 */ // MIs[0] Operand 1
4870 /* 2053 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/1, 0,
4871 /* 2057 */ // MIs[0] max
4872 /* 2057 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
4873 /* 2061 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_UMAX),
4874 /* 2065 */ // MIs[1] A
4875 /* 2065 */ // No operand predicates
4876 /* 2065 */ // MIs[1] sub
4877 /* 2065 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
4878 /* 2069 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB),
4879 /* 2073 */ // MIs[2] Operand 1
4880 /* 2073 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/1, 0,
4881 /* 2077 */ // MIs[2] A
4882 /* 2077 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/1,
4883 /* 2082 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner19),
4884 /* 2086 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
4885 /* 2088 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
4886 /* 2091 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(0),
4887 /* 2101 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
4888 /* 2104 */ // Combiner Rule #262: SubUmaxSub
4889 /* 2104 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
4890 /* 2107 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
4891 /* 2112 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/1,
4892 /* 2115 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // A
4893 /* 2119 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UMIN),
4894 /* 2123 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // root
4895 /* 2127 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // A
4896 /* 2131 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
4897 /* 2134 */ GIR_EraseRootFromParent_Done,
4898 /* 2135 */ // Label 144: @2135
4899 /* 2135 */ GIM_Try, /*On fail goto*//*Label 145*/ GIMT_Encode4(2175), // Rule ID 428 //
4900 /* 2140 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule259Enabled),
4901 /* 2143 */ // MIs[0] root
4902 /* 2143 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
4903 /* 2147 */ // MIs[0] Operand 1
4904 /* 2147 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/1, 255,
4905 /* 2151 */ // MIs[0] op1
4906 /* 2151 */ // No operand predicates
4907 /* 2151 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
4908 /* 2154 */ GIR_BuildConstant, /*TempRegID*/0, /*Val*/GIMT_Encode8(18446744073709551615u),
4909 /* 2164 */ // Combiner Rule #259: sub_minus_one
4910 /* 2164 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_XOR),
4911 /* 2167 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
4912 /* 2169 */ GIR_RootToRootCopy, /*OpIdx*/2, // op1
4913 /* 2171 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/0,
4914 /* 2174 */ GIR_EraseRootFromParent_Done,
4915 /* 2175 */ // Label 145: @2175
4916 /* 2175 */ GIM_Try, /*On fail goto*//*Label 146*/ GIMT_Encode4(2275), // Rule ID 429 //
4917 /* 2180 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule260Enabled),
4918 /* 2183 */ // MIs[0] d
4919 /* 2183 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
4920 /* 2187 */ // MIs[0] a
4921 /* 2187 */ // No operand predicates
4922 /* 2187 */ // MIs[0] mul
4923 /* 2187 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
4924 /* 2191 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_MUL),
4925 /* 2195 */ // MIs[1] x
4926 /* 2195 */ // No operand predicates
4927 /* 2195 */ // MIs[1] c
4928 /* 2195 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
4929 /* 2199 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
4930 /* 2203 */ // MIs[2] imm
4931 /* 2203 */ // No operand predicates
4932 /* 2203 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner0),
4933 /* 2207 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
4934 /* 2209 */ GIR_MakeTempReg, /*TempRegID*/2, /*TypeID*/255,
4935 /* 2212 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
4936 /* 2215 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(0),
4937 /* 2225 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
4938 /* 2228 */ // Combiner Rule #260: sub_of_mul_const
4939 /* 2228 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
4940 /* 2231 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
4941 /* 2236 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/1,
4942 /* 2239 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // c
4943 /* 2243 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_MUL),
4944 /* 2247 */ GIR_AddTempRegister, /*InsnID*/1, /*TempRegID*/2, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
4945 /* 2252 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // x
4946 /* 2256 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
4947 /* 2259 */ GIR_BuildMI, /*InsnID*/2, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ADD),
4948 /* 2263 */ GIR_Copy, /*NewInsnID*/2, /*OldInsnID*/0, /*OpIdx*/0, // d
4949 /* 2267 */ GIR_Copy, /*NewInsnID*/2, /*OldInsnID*/0, /*OpIdx*/1, // a
4950 /* 2271 */ GIR_AddSimpleTempRegister, /*InsnID*/2, /*TempRegID*/2,
4951 /* 2274 */ GIR_EraseRootFromParent_Done,
4952 /* 2275 */ // Label 146: @2275
4953 /* 2275 */ GIM_Try, /*On fail goto*//*Label 147*/ GIMT_Encode4(2336), // Rule ID 9 //
4954 /* 2280 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule9Enabled),
4955 /* 2283 */ // MIs[0] root
4956 /* 2283 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
4957 /* 2287 */ // MIs[0] A
4958 /* 2287 */ // No operand predicates
4959 /* 2287 */ // MIs[0] sub1
4960 /* 2287 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
4961 /* 2291 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
4962 /* 2295 */ // MIs[1] B
4963 /* 2295 */ // No operand predicates
4964 /* 2295 */ // MIs[1] C
4965 /* 2295 */ // No operand predicates
4966 /* 2295 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner0),
4967 /* 2299 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4968 /* 2301 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
4969 /* 2304 */ // Combiner Rule #9: AMinusBMinusC
4970 /* 2304 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
4971 /* 2307 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
4972 /* 2312 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // C
4973 /* 2316 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // B
4974 /* 2320 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ADD),
4975 /* 2324 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // root
4976 /* 2328 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/1, // A
4977 /* 2332 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
4978 /* 2335 */ GIR_EraseRootFromParent_Done,
4979 /* 2336 */ // Label 147: @2336
4980 /* 2336 */ GIM_Try, /*On fail goto*//*Label 148*/ GIMT_Encode4(2381), // Rule ID 0 //
4981 /* 2341 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule0Enabled),
4982 /* 2344 */ // MIs[0] root
4983 /* 2344 */ // No operand predicates
4984 /* 2344 */ // MIs[0] add1
4985 /* 2344 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4986 /* 2348 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
4987 /* 2352 */ // MIs[1] A
4988 /* 2352 */ // No operand predicates
4989 /* 2352 */ // MIs[1] sub1
4990 /* 2352 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
4991 /* 2356 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB),
4992 /* 2360 */ // MIs[2] B
4993 /* 2360 */ // No operand predicates
4994 /* 2360 */ // MIs[2] C
4995 /* 2360 */ // No operand predicates
4996 /* 2360 */ // MIs[0] B
4997 /* 2360 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/2, /*OtherOpIdx*/1,
4998 /* 2365 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
4999 /* 2367 */ // Combiner Rule #0: APlusBMinusCMinusB
5000 /* 2367 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5001 /* 2370 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
5002 /* 2372 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // A
5003 /* 2376 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/2, // C
5004 /* 2380 */ GIR_EraseRootFromParent_Done,
5005 /* 2381 */ // Label 148: @2381
5006 /* 2381 */ GIM_Try, /*On fail goto*//*Label 149*/ GIMT_Encode4(2418), // Rule ID 14 //
5007 /* 2386 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule14Enabled),
5008 /* 2389 */ // MIs[0] root
5009 /* 2389 */ // No operand predicates
5010 /* 2389 */ // MIs[0] add
5011 /* 2389 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5012 /* 2393 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
5013 /* 2397 */ // MIs[1] A
5014 /* 2397 */ // No operand predicates
5015 /* 2397 */ // MIs[1] c1
5016 /* 2397 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
5017 /* 2401 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5018 /* 2405 */ // MIs[2] imm1
5019 /* 2405 */ // No operand predicates
5020 /* 2405 */ // MIs[0] c2
5021 /* 2405 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/0, /*OpIdx*/2, // MIs[3]
5022 /* 2409 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5023 /* 2413 */ // MIs[3] imm2
5024 /* 2413 */ // No operand predicates
5025 /* 2413 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
5026 /* 2415 */ // Combiner Rule #14: APlusC1MinusC2
5027 /* 2415 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner0),
5028 /* 2418 */ // Label 149: @2418
5029 /* 2418 */ GIM_Try, /*On fail goto*//*Label 150*/ GIMT_Encode4(2455), // Rule ID 17 //
5030 /* 2423 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule17Enabled),
5031 /* 2426 */ // MIs[0] root
5032 /* 2426 */ // No operand predicates
5033 /* 2426 */ // MIs[0] sub1
5034 /* 2426 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5035 /* 2430 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5036 /* 2434 */ // MIs[1] c1
5037 /* 2434 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
5038 /* 2438 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5039 /* 2442 */ // MIs[2] imm1
5040 /* 2442 */ // No operand predicates
5041 /* 2442 */ // MIs[1] A
5042 /* 2442 */ // No operand predicates
5043 /* 2442 */ // MIs[0] c2
5044 /* 2442 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/0, /*OpIdx*/2, // MIs[3]
5045 /* 2446 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5046 /* 2450 */ // MIs[3] imm2
5047 /* 2450 */ // No operand predicates
5048 /* 2450 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
5049 /* 2452 */ // Combiner Rule #17: C1Minus2MinusC2
5050 /* 2452 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner3),
5051 /* 2455 */ // Label 150: @2455
5052 /* 2455 */ GIM_Try, /*On fail goto*//*Label 151*/ GIMT_Encode4(2500), // Rule ID 1 //
5053 /* 2460 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule1Enabled),
5054 /* 2463 */ // MIs[0] root
5055 /* 2463 */ // No operand predicates
5056 /* 2463 */ // MIs[0] sub2
5057 /* 2463 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5058 /* 2467 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5059 /* 2471 */ // MIs[1] A
5060 /* 2471 */ // No operand predicates
5061 /* 2471 */ // MIs[1] sub1
5062 /* 2471 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
5063 /* 2475 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB),
5064 /* 2479 */ // MIs[2] B
5065 /* 2479 */ // No operand predicates
5066 /* 2479 */ // MIs[2] C
5067 /* 2479 */ // No operand predicates
5068 /* 2479 */ // MIs[0] C
5069 /* 2479 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/2, /*OtherOpIdx*/2,
5070 /* 2484 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5071 /* 2486 */ // Combiner Rule #1: AMinusBMinusCMinusC
5072 /* 2486 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5073 /* 2489 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
5074 /* 2491 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // A
5075 /* 2495 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // B
5076 /* 2499 */ GIR_EraseRootFromParent_Done,
5077 /* 2500 */ // Label 151: @2500
5078 /* 2500 */ GIM_Try, /*On fail goto*//*Label 152*/ GIMT_Encode4(2537), // Rule ID 16 //
5079 /* 2505 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule16Enabled),
5080 /* 2508 */ // MIs[0] root
5081 /* 2508 */ // No operand predicates
5082 /* 2508 */ // MIs[0] sub1
5083 /* 2508 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5084 /* 2512 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5085 /* 2516 */ // MIs[1] A
5086 /* 2516 */ // No operand predicates
5087 /* 2516 */ // MIs[1] c1
5088 /* 2516 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
5089 /* 2520 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5090 /* 2524 */ // MIs[2] imm1
5091 /* 2524 */ // No operand predicates
5092 /* 2524 */ // MIs[0] c2
5093 /* 2524 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/0, /*OpIdx*/2, // MIs[3]
5094 /* 2528 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5095 /* 2532 */ // MIs[3] imm2
5096 /* 2532 */ // No operand predicates
5097 /* 2532 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
5098 /* 2534 */ // Combiner Rule #16: AMinusC1MinusC2
5099 /* 2534 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner2),
5100 /* 2537 */ // Label 152: @2537
5101 /* 2537 */ GIM_Try, /*On fail goto*//*Label 153*/ GIMT_Encode4(2580), // Rule ID 170 //
5102 /* 2542 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule126Enabled),
5103 /* 2545 */ // MIs[0] dst
5104 /* 2545 */ // No operand predicates
5105 /* 2545 */ // MIs[0] Operand 1
5106 /* 2545 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/1, 0,
5107 /* 2549 */ // MIs[0] and
5108 /* 2549 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5109 /* 2553 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_AND),
5110 /* 2557 */ // MIs[1] x
5111 /* 2557 */ // No operand predicates
5112 /* 2557 */ // MIs[1] Operand 2
5113 /* 2557 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/2, 1,
5114 /* 2561 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner11),
5115 /* 2565 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5116 /* 2567 */ // Combiner Rule #126: neg_and_one_to_sext_inreg
5117 /* 2567 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SEXT_INREG),
5118 /* 2570 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
5119 /* 2572 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
5120 /* 2576 */ GIR_AddImm8, /*InsnID*/0, /*Imm*/1,
5121 /* 2579 */ GIR_EraseRootFromParent_Done,
5122 /* 2580 */ // Label 153: @2580
5123 /* 2580 */ GIM_Try, /*On fail goto*//*Label 154*/ GIMT_Encode4(2617), // Rule ID 15 //
5124 /* 2585 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule15Enabled),
5125 /* 2588 */ // MIs[0] root
5126 /* 2588 */ // No operand predicates
5127 /* 2588 */ // MIs[0] c2
5128 /* 2588 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5129 /* 2592 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5130 /* 2596 */ // MIs[1] imm2
5131 /* 2596 */ // No operand predicates
5132 /* 2596 */ // MIs[0] add
5133 /* 2596 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
5134 /* 2600 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ADD),
5135 /* 2604 */ // MIs[2] A
5136 /* 2604 */ // No operand predicates
5137 /* 2604 */ // MIs[2] c1
5138 /* 2604 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/2, /*OpIdx*/2, // MIs[3]
5139 /* 2608 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5140 /* 2612 */ // MIs[3] imm1
5141 /* 2612 */ // No operand predicates
5142 /* 2612 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
5143 /* 2614 */ // Combiner Rule #15: C2MinusAPlusC1
5144 /* 2614 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner1),
5145 /* 2617 */ // Label 154: @2617
5146 /* 2617 */ GIM_Try, /*On fail goto*//*Label 155*/ GIMT_Encode4(2656), // Rule ID 122 //
5147 /* 2622 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule92Enabled),
5148 /* 2625 */ // MIs[0] dst
5149 /* 2625 */ // No operand predicates
5150 /* 2625 */ // MIs[0] x
5151 /* 2625 */ GIM_RecordRegType, /*MI*/0, /*Op*/1, /*TempTypeIdx*/255,
5152 /* 2629 */ // MIs[0] x
5153 /* 2629 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
5154 /* 2634 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5155 /* 2637 */ GIR_BuildConstant, /*TempRegID*/0, /*Val*/GIMT_Encode8(0),
5156 /* 2647 */ // Combiner Rule #92: same_val_zero @ [__same_val_zero_match_0[0]]
5157 /* 2647 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::COPY),
5158 /* 2650 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
5159 /* 2652 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/0,
5160 /* 2655 */ GIR_EraseRootFromParent_Done,
5161 /* 2656 */ // Label 155: @2656
5162 /* 2656 */ GIM_Try, /*On fail goto*//*Label 156*/ GIMT_Encode4(2690), // Rule ID 12 //
5163 /* 2661 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule12Enabled),
5164 /* 2664 */ // MIs[0] root
5165 /* 2664 */ // No operand predicates
5166 /* 2664 */ // MIs[0] A
5167 /* 2664 */ // No operand predicates
5168 /* 2664 */ // MIs[0] add
5169 /* 2664 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5170 /* 2668 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5171 /* 2672 */ // MIs[1] A
5172 /* 2672 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/1, /*OpIdx*/1, /*OtherMI*/0, /*OtherOpIdx*/1,
5173 /* 2677 */ // MIs[1] B
5174 /* 2677 */ // No operand predicates
5175 /* 2677 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/2,
5176 /* 2682 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5177 /* 2684 */ // Combiner Rule #12: AMinusBMinusA
5178 /* 2684 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/2,
5179 /* 2689 */ GIR_EraseRootFromParent_Done,
5180 /* 2690 */ // Label 156: @2690
5181 /* 2690 */ GIM_Try, /*On fail goto*//*Label 157*/ GIMT_Encode4(2724), // Rule ID 11 //
5182 /* 2695 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule11Enabled),
5183 /* 2698 */ // MIs[0] root
5184 /* 2698 */ // No operand predicates
5185 /* 2698 */ // MIs[0] A
5186 /* 2698 */ // No operand predicates
5187 /* 2698 */ // MIs[0] sub1
5188 /* 2698 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5189 /* 2702 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5190 /* 2706 */ // MIs[1] Operand 1
5191 /* 2706 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/1, 0,
5192 /* 2710 */ // MIs[1] B
5193 /* 2710 */ // No operand predicates
5194 /* 2710 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5195 /* 2712 */ // Combiner Rule #11: AMinusZeroMinusB
5196 /* 2712 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ADD),
5197 /* 2715 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
5198 /* 2717 */ GIR_RootToRootCopy, /*OpIdx*/1, // A
5199 /* 2719 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // B
5200 /* 2723 */ GIR_EraseRootFromParent_Done,
5201 /* 2724 */ // Label 157: @2724
5202 /* 2724 */ GIM_Try, /*On fail goto*//*Label 158*/ GIMT_Encode4(2751), // Rule ID 48 //
5203 /* 2729 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule46Enabled),
5204 /* 2732 */ GIM_MIFlags, /*MI*/0, GIMT_Encode4(MachineInstr::NoSWrap),
5205 /* 2738 */ // MIs[0] root
5206 /* 2738 */ // No operand predicates
5207 /* 2738 */ // MIs[0] x
5208 /* 2738 */ // No operand predicates
5209 /* 2738 */ // MIs[0] right
5210 /* 2738 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5211 /* 2742 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_VSCALE),
5212 /* 2746 */ // MIs[1] imm
5213 /* 2746 */ // No operand predicates
5214 /* 2746 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5215 /* 2748 */ // Combiner Rule #46: sub_of_vscale
5216 /* 2748 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner18),
5217 /* 2751 */ // Label 158: @2751
5218 /* 2751 */ GIM_Try, /*On fail goto*//*Label 159*/ GIMT_Encode4(2774), // Rule ID 110 //
5219 /* 2756 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled),
5220 /* 2759 */ // MIs[0] dst
5221 /* 2759 */ // No operand predicates
5222 /* 2759 */ // MIs[0] lhs
5223 /* 2759 */ // No operand predicates
5224 /* 2759 */ // MIs[0] Operand 2
5225 /* 2759 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
5226 /* 2763 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5227 /* 2768 */ // Combiner Rule #90: right_identity_zero @ [__right_identity_zero_match_0[0]]
5228 /* 2768 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5229 /* 2773 */ GIR_EraseRootFromParent_Done,
5230 /* 2774 */ // Label 159: @2774
5231 /* 2774 */ GIM_Try, /*On fail goto*//*Label 160*/ GIMT_Encode4(2795), // Rule ID 21 //
5232 /* 2779 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule21Enabled),
5233 /* 2782 */ // MIs[0] d
5234 /* 2782 */ // No operand predicates
5235 /* 2782 */ // MIs[0] op1
5236 /* 2782 */ // No operand predicates
5237 /* 2782 */ // MIs[0] c
5238 /* 2782 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5239 /* 2786 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5240 /* 2790 */ // MIs[1] imm
5241 /* 2790 */ // No operand predicates
5242 /* 2790 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5243 /* 2792 */ // Combiner Rule #21: sub_to_add
5244 /* 2792 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner7),
5245 /* 2795 */ // Label 160: @2795
5246 /* 2795 */ GIM_Reject,
5247 /* 2796 */ // Label 3: @2796
5248 /* 2796 */ GIM_Try, /*On fail goto*//*Label 161*/ GIMT_Encode4(2807), // Rule ID 84 //
5249 /* 2801 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule78Enabled),
5250 /* 2804 */ // Combiner Rule #78: undef_to_int_zero; wip_match_opcode 'G_MUL'
5251 /* 2804 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner34),
5252 /* 2807 */ // Label 161: @2807
5253 /* 2807 */ GIM_Try, /*On fail goto*//*Label 162*/ GIMT_Encode4(2818), // Rule ID 261 //
5254 /* 2812 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled),
5255 /* 2815 */ // Combiner Rule #187: constant_fold_binop; wip_match_opcode 'G_MUL'
5256 /* 2815 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103),
5257 /* 2818 */ // Label 162: @2818
5258 /* 2818 */ GIM_Try, /*On fail goto*//*Label 163*/ GIMT_Encode4(2829), // Rule ID 354 //
5259 /* 2823 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
5260 /* 2826 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_MUL'
5261 /* 2826 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129),
5262 /* 2829 */ // Label 163: @2829
5263 /* 2829 */ GIM_Try, /*On fail goto*//*Label 164*/ GIMT_Encode4(2869), // Rule ID 23 //
5264 /* 2834 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule23Enabled),
5265 /* 2837 */ // MIs[0] dst
5266 /* 2837 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
5267 /* 2841 */ // MIs[0] x
5268 /* 2841 */ // No operand predicates
5269 /* 2841 */ // MIs[0] Operand 2
5270 /* 2841 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 255,
5271 /* 2845 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5272 /* 2848 */ GIR_BuildConstant, /*TempRegID*/0, /*Val*/GIMT_Encode8(0),
5273 /* 2858 */ // Combiner Rule #23: mul_by_neg_one
5274 /* 2858 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5275 /* 2861 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
5276 /* 2863 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/0,
5277 /* 2866 */ GIR_RootToRootCopy, /*OpIdx*/1, // x
5278 /* 2868 */ GIR_EraseRootFromParent_Done,
5279 /* 2869 */ // Label 164: @2869
5280 /* 2869 */ GIM_Try, /*On fail goto*//*Label 165*/ GIMT_Encode4(2904), // Rule ID 46 //
5281 /* 2874 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule44Enabled),
5282 /* 2877 */ GIM_MIFlags, /*MI*/0, GIMT_Encode4(MachineInstr::NoSWrap),
5283 /* 2883 */ // MIs[0] root
5284 /* 2883 */ // No operand predicates
5285 /* 2883 */ // MIs[0] left
5286 /* 2883 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5287 /* 2887 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_VSCALE),
5288 /* 2891 */ // MIs[1] scale
5289 /* 2891 */ // No operand predicates
5290 /* 2891 */ // MIs[0] x
5291 /* 2891 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
5292 /* 2895 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5293 /* 2899 */ // MIs[2] imm1
5294 /* 2899 */ // No operand predicates
5295 /* 2899 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5296 /* 2901 */ // Combiner Rule #44: mul_of_vscale
5297 /* 2901 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner16),
5298 /* 2904 */ // Label 165: @2904
5299 /* 2904 */ GIM_Try, /*On fail goto*//*Label 166*/ GIMT_Encode4(2944), // Rule ID 131 //
5300 /* 2909 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
5301 /* 2912 */ // MIs[0] dst
5302 /* 2912 */ // No operand predicates
5303 /* 2912 */ // MIs[0] zero
5304 /* 2912 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5305 /* 2916 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5306 /* 2920 */ // MIs[1] Operand 1
5307 /* 2920 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0),
5308 /* 2931 */ // MIs[0] rhs
5309 /* 2931 */ // No operand predicates
5310 /* 2931 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5311 /* 2936 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5312 /* 2938 */ // Combiner Rule #93: binop_left_to_zero @ [__binop_left_to_zero_match_0[7]]
5313 /* 2938 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5314 /* 2943 */ GIR_EraseRootFromParent_Done,
5315 /* 2944 */ // Label 166: @2944
5316 /* 2944 */ GIM_Try, /*On fail goto*//*Label 167*/ GIMT_Encode4(2967), // Rule ID 132 //
5317 /* 2949 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule94Enabled),
5318 /* 2952 */ // MIs[0] dst
5319 /* 2952 */ // No operand predicates
5320 /* 2952 */ // MIs[0] lhs
5321 /* 2952 */ // No operand predicates
5322 /* 2952 */ // MIs[0] zero
5323 /* 2952 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
5324 /* 2956 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
5325 /* 2961 */ // Combiner Rule #94: binop_right_to_zero
5326 /* 2961 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
5327 /* 2966 */ GIR_EraseRootFromParent_Done,
5328 /* 2967 */ // Label 167: @2967
5329 /* 2967 */ GIM_Try, /*On fail goto*//*Label 168*/ GIMT_Encode4(2990), // Rule ID 137 //
5330 /* 2972 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule99Enabled),
5331 /* 2975 */ // MIs[0] dst
5332 /* 2975 */ // No operand predicates
5333 /* 2975 */ // MIs[0] x
5334 /* 2975 */ // No operand predicates
5335 /* 2975 */ // MIs[0] Operand 2
5336 /* 2975 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 1,
5337 /* 2979 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5338 /* 2984 */ // Combiner Rule #99: right_identity_one_int
5339 /* 2984 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5340 /* 2989 */ GIR_EraseRootFromParent_Done,
5341 /* 2990 */ // Label 168: @2990
5342 /* 2990 */ GIM_Try, /*On fail goto*//*Label 169*/ GIMT_Encode4(3001), // Rule ID 20 //
5343 /* 2995 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule20Enabled),
5344 /* 2998 */ // MIs[0] d
5345 /* 2998 */ // No operand predicates
5346 /* 2998 */ // MIs[0] op1
5347 /* 2998 */ // No operand predicates
5348 /* 2998 */ // MIs[0] op2
5349 /* 2998 */ // No operand predicates
5350 /* 2998 */ // Combiner Rule #20: mul_to_shl
5351 /* 2998 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner6),
5352 /* 3001 */ // Label 169: @3001
5353 /* 3001 */ GIM_Reject,
5354 /* 3002 */ // Label 4: @3002
5355 /* 3002 */ GIM_Try, /*On fail goto*//*Label 170*/ GIMT_Encode4(3013), // Rule ID 232 //
5356 /* 3007 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule172Enabled),
5357 /* 3010 */ // Combiner Rule #172: div_rem_to_divrem; wip_match_opcode 'G_SDIV'
5358 /* 3010 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
5359 /* 3013 */ // Label 170: @3013
5360 /* 3013 */ GIM_Try, /*On fail goto*//*Label 171*/ GIMT_Encode4(3024), // Rule ID 267 //
5361 /* 3018 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled),
5362 /* 3021 */ // Combiner Rule #187: constant_fold_binop; wip_match_opcode 'G_SDIV'
5363 /* 3021 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103),
5364 /* 3024 */ // Label 171: @3024
5365 /* 3024 */ GIM_Try, /*On fail goto*//*Label 172*/ GIMT_Encode4(3035), // Rule ID 322 //
5366 /* 3029 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
5367 /* 3032 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_SDIV'
5368 /* 3032 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
5369 /* 3035 */ // Label 172: @3035
5370 /* 3035 */ GIM_Try, /*On fail goto*//*Label 173*/ GIMT_Encode4(3075), // Rule ID 127 //
5371 /* 3040 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
5372 /* 3043 */ // MIs[0] dst
5373 /* 3043 */ // No operand predicates
5374 /* 3043 */ // MIs[0] zero
5375 /* 3043 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5376 /* 3047 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5377 /* 3051 */ // MIs[1] Operand 1
5378 /* 3051 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0),
5379 /* 3062 */ // MIs[0] rhs
5380 /* 3062 */ // No operand predicates
5381 /* 3062 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5382 /* 3067 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5383 /* 3069 */ // Combiner Rule #93: binop_left_to_zero @ [__binop_left_to_zero_match_0[3]]
5384 /* 3069 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5385 /* 3074 */ GIR_EraseRootFromParent_Done,
5386 /* 3075 */ // Label 173: @3075
5387 /* 3075 */ GIM_Try, /*On fail goto*//*Label 174*/ GIMT_Encode4(3092), // Rule ID 346 //
5388 /* 3080 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule209Enabled),
5389 /* 3083 */ GIM_MIFlagsNot, /*MI*/0, GIMT_Encode4(MachineInstr::IsExact),
5390 /* 3089 */ // MIs[0] dst
5391 /* 3089 */ // No operand predicates
5392 /* 3089 */ // MIs[0] x
5393 /* 3089 */ // No operand predicates
5394 /* 3089 */ // MIs[0] y
5395 /* 3089 */ // No operand predicates
5396 /* 3089 */ // Combiner Rule #209: sdiv_by_pow2
5397 /* 3089 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner124),
5398 /* 3092 */ // Label 174: @3092
5399 /* 3092 */ GIM_Try, /*On fail goto*//*Label 175*/ GIMT_Encode4(3103), // Rule ID 348 //
5400 /* 3097 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule211Enabled),
5401 /* 3100 */ // MIs[0] dst
5402 /* 3100 */ // No operand predicates
5403 /* 3100 */ // MIs[0] x
5404 /* 3100 */ // No operand predicates
5405 /* 3100 */ // MIs[0] y
5406 /* 3100 */ // No operand predicates
5407 /* 3100 */ // Combiner Rule #211: sdiv_by_const
5408 /* 3100 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner122),
5409 /* 3103 */ // Label 175: @3103
5410 /* 3103 */ GIM_Reject,
5411 /* 3104 */ // Label 5: @3104
5412 /* 3104 */ GIM_Try, /*On fail goto*//*Label 176*/ GIMT_Encode4(3115), // Rule ID 87 //
5413 /* 3109 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule80Enabled),
5414 /* 3112 */ // Combiner Rule #80: binop_left_undef_to_zero; wip_match_opcode 'G_UDIV'
5415 /* 3112 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner36),
5416 /* 3115 */ // Label 176: @3115
5417 /* 3115 */ GIM_Try, /*On fail goto*//*Label 177*/ GIMT_Encode4(3126), // Rule ID 233 //
5418 /* 3120 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule172Enabled),
5419 /* 3123 */ // Combiner Rule #172: div_rem_to_divrem; wip_match_opcode 'G_UDIV'
5420 /* 3123 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
5421 /* 3126 */ // Label 177: @3126
5422 /* 3126 */ GIM_Try, /*On fail goto*//*Label 178*/ GIMT_Encode4(3137), // Rule ID 266 //
5423 /* 3131 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled),
5424 /* 3134 */ // Combiner Rule #187: constant_fold_binop; wip_match_opcode 'G_UDIV'
5425 /* 3134 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103),
5426 /* 3137 */ // Label 178: @3137
5427 /* 3137 */ GIM_Try, /*On fail goto*//*Label 179*/ GIMT_Encode4(3148), // Rule ID 324 //
5428 /* 3142 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
5429 /* 3145 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_UDIV'
5430 /* 3145 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
5431 /* 3148 */ // Label 179: @3148
5432 /* 3148 */ GIM_Try, /*On fail goto*//*Label 180*/ GIMT_Encode4(3188), // Rule ID 128 //
5433 /* 3153 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
5434 /* 3156 */ // MIs[0] dst
5435 /* 3156 */ // No operand predicates
5436 /* 3156 */ // MIs[0] zero
5437 /* 3156 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5438 /* 3160 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5439 /* 3164 */ // MIs[1] Operand 1
5440 /* 3164 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0),
5441 /* 3175 */ // MIs[0] rhs
5442 /* 3175 */ // No operand predicates
5443 /* 3175 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5444 /* 3180 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5445 /* 3182 */ // Combiner Rule #93: binop_left_to_zero @ [__binop_left_to_zero_match_0[4]]
5446 /* 3182 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5447 /* 3187 */ GIR_EraseRootFromParent_Done,
5448 /* 3188 */ // Label 180: @3188
5449 /* 3188 */ GIM_Try, /*On fail goto*//*Label 181*/ GIMT_Encode4(3205), // Rule ID 345 //
5450 /* 3193 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule208Enabled),
5451 /* 3196 */ GIM_MIFlagsNot, /*MI*/0, GIMT_Encode4(MachineInstr::IsExact),
5452 /* 3202 */ // MIs[0] dst
5453 /* 3202 */ // No operand predicates
5454 /* 3202 */ // MIs[0] x
5455 /* 3202 */ // No operand predicates
5456 /* 3202 */ // MIs[0] y
5457 /* 3202 */ // No operand predicates
5458 /* 3202 */ // Combiner Rule #208: udiv_by_pow2
5459 /* 3202 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner123),
5460 /* 3205 */ // Label 181: @3205
5461 /* 3205 */ GIM_Try, /*On fail goto*//*Label 182*/ GIMT_Encode4(3216), // Rule ID 347 //
5462 /* 3210 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule210Enabled),
5463 /* 3213 */ // MIs[0] dst
5464 /* 3213 */ // No operand predicates
5465 /* 3213 */ // MIs[0] x
5466 /* 3213 */ // No operand predicates
5467 /* 3213 */ // MIs[0] y
5468 /* 3213 */ // No operand predicates
5469 /* 3213 */ // Combiner Rule #210: udiv_by_const
5470 /* 3213 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner121),
5471 /* 3216 */ // Label 182: @3216
5472 /* 3216 */ GIM_Reject,
5473 /* 3217 */ // Label 6: @3217
5474 /* 3217 */ GIM_Try, /*On fail goto*//*Label 183*/ GIMT_Encode4(3228), // Rule ID 234 //
5475 /* 3222 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule172Enabled),
5476 /* 3225 */ // Combiner Rule #172: div_rem_to_divrem; wip_match_opcode 'G_SREM'
5477 /* 3225 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
5478 /* 3228 */ // Label 183: @3228
5479 /* 3228 */ GIM_Try, /*On fail goto*//*Label 184*/ GIMT_Encode4(3239), // Rule ID 269 //
5480 /* 3233 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled),
5481 /* 3236 */ // Combiner Rule #187: constant_fold_binop; wip_match_opcode 'G_SREM'
5482 /* 3236 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103),
5483 /* 3239 */ // Label 184: @3239
5484 /* 3239 */ GIM_Try, /*On fail goto*//*Label 185*/ GIMT_Encode4(3250), // Rule ID 323 //
5485 /* 3244 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
5486 /* 3247 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_SREM'
5487 /* 3247 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
5488 /* 3250 */ // Label 185: @3250
5489 /* 3250 */ GIM_Try, /*On fail goto*//*Label 186*/ GIMT_Encode4(3290), // Rule ID 129 //
5490 /* 3255 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
5491 /* 3258 */ // MIs[0] dst
5492 /* 3258 */ // No operand predicates
5493 /* 3258 */ // MIs[0] zero
5494 /* 3258 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5495 /* 3262 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5496 /* 3266 */ // MIs[1] Operand 1
5497 /* 3266 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0),
5498 /* 3277 */ // MIs[0] rhs
5499 /* 3277 */ // No operand predicates
5500 /* 3277 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5501 /* 3282 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5502 /* 3284 */ // Combiner Rule #93: binop_left_to_zero @ [__binop_left_to_zero_match_0[5]]
5503 /* 3284 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5504 /* 3289 */ GIR_EraseRootFromParent_Done,
5505 /* 3290 */ // Label 186: @3290
5506 /* 3290 */ GIM_Try, /*On fail goto*//*Label 187*/ GIMT_Encode4(3301), // Rule ID 342 //
5507 /* 3295 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule205Enabled),
5508 /* 3298 */ // MIs[0] dst
5509 /* 3298 */ // No operand predicates
5510 /* 3298 */ // MIs[0] x
5511 /* 3298 */ // No operand predicates
5512 /* 3298 */ // MIs[0] y
5513 /* 3298 */ // No operand predicates
5514 /* 3298 */ // Combiner Rule #205: srem_pow2_to_mask
5515 /* 3298 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner120),
5516 /* 3301 */ // Label 187: @3301
5517 /* 3301 */ GIM_Try, /*On fail goto*//*Label 188*/ GIMT_Encode4(3312), // Rule ID 344 //
5518 /* 3306 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule207Enabled),
5519 /* 3309 */ // MIs[0] dst
5520 /* 3309 */ // No operand predicates
5521 /* 3309 */ // MIs[0] x
5522 /* 3309 */ // No operand predicates
5523 /* 3309 */ // MIs[0] y
5524 /* 3309 */ // No operand predicates
5525 /* 3309 */ // Combiner Rule #207: srem_by_const
5526 /* 3309 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner122),
5527 /* 3312 */ // Label 188: @3312
5528 /* 3312 */ GIM_Reject,
5529 /* 3313 */ // Label 7: @3313
5530 /* 3313 */ GIM_Try, /*On fail goto*//*Label 189*/ GIMT_Encode4(3324), // Rule ID 88 //
5531 /* 3318 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule80Enabled),
5532 /* 3321 */ // Combiner Rule #80: binop_left_undef_to_zero; wip_match_opcode 'G_UREM'
5533 /* 3321 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner36),
5534 /* 3324 */ // Label 189: @3324
5535 /* 3324 */ GIM_Try, /*On fail goto*//*Label 190*/ GIMT_Encode4(3335), // Rule ID 235 //
5536 /* 3329 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule172Enabled),
5537 /* 3332 */ // Combiner Rule #172: div_rem_to_divrem; wip_match_opcode 'G_UREM'
5538 /* 3332 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
5539 /* 3335 */ // Label 190: @3335
5540 /* 3335 */ GIM_Try, /*On fail goto*//*Label 191*/ GIMT_Encode4(3346), // Rule ID 268 //
5541 /* 3340 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled),
5542 /* 3343 */ // Combiner Rule #187: constant_fold_binop; wip_match_opcode 'G_UREM'
5543 /* 3343 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103),
5544 /* 3346 */ // Label 191: @3346
5545 /* 3346 */ GIM_Try, /*On fail goto*//*Label 192*/ GIMT_Encode4(3357), // Rule ID 325 //
5546 /* 3351 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
5547 /* 3354 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_UREM'
5548 /* 3354 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
5549 /* 3357 */ // Label 192: @3357
5550 /* 3357 */ GIM_Try, /*On fail goto*//*Label 193*/ GIMT_Encode4(3397), // Rule ID 130 //
5551 /* 3362 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
5552 /* 3365 */ // MIs[0] dst
5553 /* 3365 */ // No operand predicates
5554 /* 3365 */ // MIs[0] zero
5555 /* 3365 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5556 /* 3369 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5557 /* 3373 */ // MIs[1] Operand 1
5558 /* 3373 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0),
5559 /* 3384 */ // MIs[0] rhs
5560 /* 3384 */ // No operand predicates
5561 /* 3384 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5562 /* 3389 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5563 /* 3391 */ // Combiner Rule #93: binop_left_to_zero @ [__binop_left_to_zero_match_0[6]]
5564 /* 3391 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5565 /* 3396 */ GIR_EraseRootFromParent_Done,
5566 /* 3397 */ // Label 193: @3397
5567 /* 3397 */ GIM_Try, /*On fail goto*//*Label 194*/ GIMT_Encode4(3408), // Rule ID 183 //
5568 /* 3402 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule139Enabled),
5569 /* 3405 */ // MIs[0] dst
5570 /* 3405 */ // No operand predicates
5571 /* 3405 */ // MIs[0] x
5572 /* 3405 */ // No operand predicates
5573 /* 3405 */ // MIs[0] y
5574 /* 3405 */ // No operand predicates
5575 /* 3405 */ // Combiner Rule #139: urem_pow2_to_mask
5576 /* 3405 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner74),
5577 /* 3408 */ // Label 194: @3408
5578 /* 3408 */ GIM_Try, /*On fail goto*//*Label 195*/ GIMT_Encode4(3419), // Rule ID 343 //
5579 /* 3413 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule206Enabled),
5580 /* 3416 */ // MIs[0] dst
5581 /* 3416 */ // No operand predicates
5582 /* 3416 */ // MIs[0] x
5583 /* 3416 */ // No operand predicates
5584 /* 3416 */ // MIs[0] y
5585 /* 3416 */ // No operand predicates
5586 /* 3416 */ // Combiner Rule #206: urem_by_const
5587 /* 3416 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner121),
5588 /* 3419 */ // Label 195: @3419
5589 /* 3419 */ GIM_Reject,
5590 /* 3420 */ // Label 8: @3420
5591 /* 3420 */ GIM_Try, /*On fail goto*//*Label 196*/ GIMT_Encode4(3431), // Rule ID 79 //
5592 /* 3425 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule75Enabled),
5593 /* 3428 */ // Combiner Rule #75: load_and_mask; wip_match_opcode 'G_AND'
5594 /* 3428 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner31),
5595 /* 3431 */ // Label 196: @3431
5596 /* 3431 */ GIM_Try, /*On fail goto*//*Label 197*/ GIMT_Encode4(3442), // Rule ID 83 //
5597 /* 3436 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule78Enabled),
5598 /* 3439 */ // Combiner Rule #78: undef_to_int_zero; wip_match_opcode 'G_AND'
5599 /* 3439 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner34),
5600 /* 3442 */ // Label 197: @3442
5601 /* 3442 */ GIM_Try, /*On fail goto*//*Label 198*/ GIMT_Encode4(3453), // Rule ID 153 //
5602 /* 3447 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule113Enabled),
5603 /* 3450 */ // Combiner Rule #113: hoist_logic_op_with_same_opcode_hands; wip_match_opcode 'G_AND'
5604 /* 3450 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner54),
5605 /* 3453 */ // Label 198: @3453
5606 /* 3453 */ GIM_Try, /*On fail goto*//*Label 199*/ GIMT_Encode4(3464), // Rule ID 173 //
5607 /* 3458 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule129Enabled),
5608 /* 3461 */ // Combiner Rule #129: narrow_binop_feeding_and; wip_match_opcode 'G_AND'
5609 /* 3461 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner67),
5610 /* 3464 */ // Label 199: @3464
5611 /* 3464 */ GIM_Try, /*On fail goto*//*Label 200*/ GIMT_Encode4(3475), // Rule ID 180 //
5612 /* 3469 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule136Enabled),
5613 /* 3472 */ // Combiner Rule #136: redundant_and; wip_match_opcode 'G_AND'
5614 /* 3472 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner71),
5615 /* 3475 */ // Label 200: @3475
5616 /* 3475 */ GIM_Try, /*On fail goto*//*Label 201*/ GIMT_Encode4(3486), // Rule ID 205 //
5617 /* 3480 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule161Enabled),
5618 /* 3483 */ // Combiner Rule #161: overlapping_and; wip_match_opcode 'G_AND'
5619 /* 3483 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner83),
5620 /* 3486 */ // Label 201: @3486
5621 /* 3486 */ GIM_Try, /*On fail goto*//*Label 202*/ GIMT_Encode4(3497), // Rule ID 258 //
5622 /* 3491 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled),
5623 /* 3494 */ // Combiner Rule #187: constant_fold_binop; wip_match_opcode 'G_AND'
5624 /* 3494 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103),
5625 /* 3497 */ // Label 202: @3497
5626 /* 3497 */ GIM_Try, /*On fail goto*//*Label 203*/ GIMT_Encode4(3508), // Rule ID 307 //
5627 /* 3502 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule195Enabled),
5628 /* 3505 */ // Combiner Rule #195: and_or_disjoint_mask; wip_match_opcode 'G_AND'
5629 /* 3505 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner110),
5630 /* 3508 */ // Label 203: @3508
5631 /* 3508 */ GIM_Try, /*On fail goto*//*Label 204*/ GIMT_Encode4(3519), // Rule ID 319 //
5632 /* 3513 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
5633 /* 3516 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_AND'
5634 /* 3516 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
5635 /* 3519 */ // Label 204: @3519
5636 /* 3519 */ GIM_Try, /*On fail goto*//*Label 205*/ GIMT_Encode4(3530), // Rule ID 355 //
5637 /* 3524 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
5638 /* 3527 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_AND'
5639 /* 3527 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129),
5640 /* 3530 */ // Label 205: @3530
5641 /* 3530 */ GIM_Try, /*On fail goto*//*Label 206*/ GIMT_Encode4(3541), // Rule ID 382 //
5642 /* 3535 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule218Enabled),
5643 /* 3538 */ // Combiner Rule #218: match_ands; wip_match_opcode 'G_AND'
5644 /* 3538 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner131),
5645 /* 3541 */ // Label 206: @3541
5646 /* 3541 */ GIM_Try, /*On fail goto*//*Label 207*/ GIMT_Encode4(3552), // Rule ID 425 //
5647 /* 3546 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule258Enabled),
5648 /* 3549 */ // Combiner Rule #258: binop_with_neg; wip_match_opcode 'G_AND'
5649 /* 3549 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner159),
5650 /* 3552 */ // Label 207: @3552
5651 /* 3552 */ GIM_Try, /*On fail goto*//*Label 208*/ GIMT_Encode4(3638), // Rule ID 387 //
5652 /* 3557 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule223Enabled),
5653 /* 3560 */ // MIs[0] root
5654 /* 3560 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
5655 /* 3564 */ // MIs[0] or
5656 /* 3564 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5657 /* 3568 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_OR),
5658 /* 3572 */ // MIs[1] x
5659 /* 3572 */ // No operand predicates
5660 /* 3572 */ // MIs[1] y
5661 /* 3572 */ // No operand predicates
5662 /* 3572 */ // MIs[0] not
5663 /* 3572 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
5664 /* 3576 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_XOR),
5665 /* 3580 */ // MIs[2] y
5666 /* 3580 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/2,
5667 /* 3585 */ // MIs[2] Operand 2
5668 /* 3585 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/2, 255,
5669 /* 3589 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5670 /* 3591 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
5671 /* 3594 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(18446744073709551615u),
5672 /* 3604 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5673 /* 3607 */ // Combiner Rule #223: and_xor_or_to_xor_and
5674 /* 3607 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_XOR),
5675 /* 3610 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5676 /* 3615 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // y
5677 /* 3619 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/1,
5678 /* 3622 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_AND),
5679 /* 3626 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // root
5680 /* 3630 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // x
5681 /* 3634 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
5682 /* 3637 */ GIR_EraseRootFromParent_Done,
5683 /* 3638 */ // Label 208: @3638
5684 /* 3638 */ GIM_Try, /*On fail goto*//*Label 209*/ GIMT_Encode4(3736), // Rule ID 166 //
5685 /* 3643 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule122Enabled),
5686 /* 3646 */ // MIs[0] root
5687 /* 3646 */ // No operand predicates
5688 /* 3646 */ // MIs[0] d1
5689 /* 3646 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5690 /* 3650 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ICMP),
5691 /* 3654 */ // MIs[1] p
5692 /* 3654 */ // No operand predicates
5693 /* 3654 */ // MIs[1] s1
5694 /* 3654 */ GIM_RecordRegType, /*MI*/1, /*Op*/2, /*TempTypeIdx*/255,
5695 /* 3658 */ // MIs[1] Operand 3
5696 /* 3658 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/3, 0,
5697 /* 3662 */ // MIs[0] d2
5698 /* 3662 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
5699 /* 3666 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ICMP),
5700 /* 3670 */ // MIs[2] p
5701 /* 3670 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/1,
5702 /* 3675 */ // MIs[2] s2
5703 /* 3675 */ // No operand predicates
5704 /* 3675 */ // MIs[2] Operand 3
5705 /* 3675 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/3, 0,
5706 /* 3679 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner9),
5707 /* 3683 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5708 /* 3685 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
5709 /* 3688 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(0),
5710 /* 3698 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5711 /* 3701 */ // Combiner Rule #122: double_icmp_zero_and_combine
5712 /* 3701 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR),
5713 /* 3704 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5714 /* 3709 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // s1
5715 /* 3713 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/2, // s2
5716 /* 3717 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ICMP),
5717 /* 3721 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // root
5718 /* 3725 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // p
5719 /* 3729 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
5720 /* 3732 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/1,
5721 /* 3735 */ GIR_EraseRootFromParent_Done,
5722 /* 3736 */ // Label 209: @3736
5723 /* 3736 */ GIM_Try, /*On fail goto*//*Label 210*/ GIMT_Encode4(3773), // Rule ID 251 //
5724 /* 3741 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule184Enabled),
5725 /* 3744 */ // MIs[0] root
5726 /* 3744 */ // No operand predicates
5727 /* 3744 */ // MIs[0] shift
5728 /* 3744 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5729 /* 3748 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_LSHR),
5730 /* 3752 */ // MIs[1] x
5731 /* 3752 */ // No operand predicates
5732 /* 3752 */ // MIs[1] lsb
5733 /* 3752 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
5734 /* 3756 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5735 /* 3760 */ // MIs[2] imm1
5736 /* 3760 */ // No operand predicates
5737 /* 3760 */ // MIs[0] mask
5738 /* 3760 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/0, /*OpIdx*/2, // MIs[3]
5739 /* 3764 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5740 /* 3768 */ // MIs[3] imm2
5741 /* 3768 */ // No operand predicates
5742 /* 3768 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
5743 /* 3770 */ // Combiner Rule #184: bitfield_extract_from_and
5744 /* 3770 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner100),
5745 /* 3773 */ // Label 210: @3773
5746 /* 3773 */ GIM_Try, /*On fail goto*//*Label 211*/ GIMT_Encode4(3822), // Rule ID 386 //
5747 /* 3778 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule222Enabled),
5748 /* 3781 */ // MIs[0] root
5749 /* 3781 */ // No operand predicates
5750 /* 3781 */ // MIs[0] or
5751 /* 3781 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5752 /* 3785 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_OR),
5753 /* 3789 */ // MIs[1] x
5754 /* 3789 */ // No operand predicates
5755 /* 3789 */ // MIs[1] not
5756 /* 3789 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
5757 /* 3793 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_XOR),
5758 /* 3797 */ // MIs[2] y
5759 /* 3797 */ // No operand predicates
5760 /* 3797 */ // MIs[2] Operand 2
5761 /* 3797 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/2, 255,
5762 /* 3801 */ // MIs[0] y
5763 /* 3801 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/2, /*OtherOpIdx*/1,
5764 /* 3806 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5765 /* 3808 */ // Combiner Rule #222: and_xor_or_to_and
5766 /* 3808 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_AND),
5767 /* 3811 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
5768 /* 3813 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
5769 /* 3817 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // y
5770 /* 3821 */ GIR_EraseRootFromParent_Done,
5771 /* 3822 */ // Label 211: @3822
5772 /* 3822 */ GIM_Try, /*On fail goto*//*Label 212*/ GIMT_Encode4(3846), // Rule ID 120 //
5773 /* 3827 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule91Enabled),
5774 /* 3830 */ // MIs[0] dst
5775 /* 3830 */ // No operand predicates
5776 /* 3830 */ // MIs[0] src
5777 /* 3830 */ // No operand predicates
5778 /* 3830 */ // MIs[0] src
5779 /* 3830 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
5780 /* 3835 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5781 /* 3840 */ // Combiner Rule #91: binop_same_val @ [__binop_same_val_match_0[0]]
5782 /* 3840 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5783 /* 3845 */ GIR_EraseRootFromParent_Done,
5784 /* 3846 */ // Label 212: @3846
5785 /* 3846 */ GIM_Reject,
5786 /* 3847 */ // Label 9: @3847
5787 /* 3847 */ GIM_Try, /*On fail goto*//*Label 213*/ GIMT_Encode4(3858), // Rule ID 85 //
5788 /* 3852 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule79Enabled),
5789 /* 3855 */ // Combiner Rule #79: undef_to_negative_one; wip_match_opcode 'G_OR'
5790 /* 3855 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner35),
5791 /* 3858 */ // Label 213: @3858
5792 /* 3858 */ GIM_Try, /*On fail goto*//*Label 214*/ GIMT_Encode4(3869), // Rule ID 154 //
5793 /* 3863 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule113Enabled),
5794 /* 3866 */ // Combiner Rule #113: hoist_logic_op_with_same_opcode_hands; wip_match_opcode 'G_OR'
5795 /* 3866 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner54),
5796 /* 3869 */ // Label 214: @3869
5797 /* 3869 */ GIM_Try, /*On fail goto*//*Label 215*/ GIMT_Encode4(3880), // Rule ID 182 //
5798 /* 3874 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule138Enabled),
5799 /* 3877 */ // Combiner Rule #138: redundant_or; wip_match_opcode 'G_OR'
5800 /* 3877 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner73),
5801 /* 3880 */ // Label 215: @3880
5802 /* 3880 */ GIM_Try, /*On fail goto*//*Label 216*/ GIMT_Encode4(3891), // Rule ID 231 //
5803 /* 3885 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule171Enabled),
5804 /* 3888 */ // Combiner Rule #171: load_or_combine; wip_match_opcode 'G_OR'
5805 /* 3888 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner93),
5806 /* 3891 */ // Label 216: @3891
5807 /* 3891 */ GIM_Try, /*On fail goto*//*Label 217*/ GIMT_Encode4(3902), // Rule ID 236 //
5808 /* 3896 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule173Enabled),
5809 /* 3899 */ // Combiner Rule #173: funnel_shift_from_or_shift; wip_match_opcode 'G_OR'
5810 /* 3899 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner95),
5811 /* 3902 */ // Label 217: @3902
5812 /* 3902 */ GIM_Try, /*On fail goto*//*Label 218*/ GIMT_Encode4(3913), // Rule ID 262 //
5813 /* 3907 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled),
5814 /* 3910 */ // Combiner Rule #187: constant_fold_binop; wip_match_opcode 'G_OR'
5815 /* 3910 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103),
5816 /* 3913 */ // Label 218: @3913
5817 /* 3913 */ GIM_Try, /*On fail goto*//*Label 219*/ GIMT_Encode4(3924), // Rule ID 320 //
5818 /* 3918 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
5819 /* 3921 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_OR'
5820 /* 3921 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
5821 /* 3924 */ // Label 219: @3924
5822 /* 3924 */ GIM_Try, /*On fail goto*//*Label 220*/ GIMT_Encode4(3935), // Rule ID 356 //
5823 /* 3929 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
5824 /* 3932 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_OR'
5825 /* 3932 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129),
5826 /* 3935 */ // Label 220: @3935
5827 /* 3935 */ GIM_Try, /*On fail goto*//*Label 221*/ GIMT_Encode4(3946), // Rule ID 383 //
5828 /* 3940 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule219Enabled),
5829 /* 3943 */ // Combiner Rule #219: match_ors; wip_match_opcode 'G_OR'
5830 /* 3943 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner132),
5831 /* 3946 */ // Label 221: @3946
5832 /* 3946 */ GIM_Try, /*On fail goto*//*Label 222*/ GIMT_Encode4(3957), // Rule ID 426 //
5833 /* 3951 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule258Enabled),
5834 /* 3954 */ // Combiner Rule #258: binop_with_neg; wip_match_opcode 'G_OR'
5835 /* 3954 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner159),
5836 /* 3957 */ // Label 222: @3957
5837 /* 3957 */ GIM_Try, /*On fail goto*//*Label 223*/ GIMT_Encode4(4043), // Rule ID 385 //
5838 /* 3962 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule221Enabled),
5839 /* 3965 */ // MIs[0] root
5840 /* 3965 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
5841 /* 3969 */ // MIs[0] and
5842 /* 3969 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5843 /* 3973 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_AND),
5844 /* 3977 */ // MIs[1] x
5845 /* 3977 */ // No operand predicates
5846 /* 3977 */ // MIs[1] y
5847 /* 3977 */ // No operand predicates
5848 /* 3977 */ // MIs[0] not
5849 /* 3977 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
5850 /* 3981 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_XOR),
5851 /* 3985 */ // MIs[2] y
5852 /* 3985 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/2,
5853 /* 3990 */ // MIs[2] Operand 2
5854 /* 3990 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/2, 255,
5855 /* 3994 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5856 /* 3996 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
5857 /* 3999 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(18446744073709551615u),
5858 /* 4009 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5859 /* 4012 */ // Combiner Rule #221: or_and_xor_to_xor_or
5860 /* 4012 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_XOR),
5861 /* 4015 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5862 /* 4020 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // y
5863 /* 4024 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/1,
5864 /* 4027 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR),
5865 /* 4031 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // root
5866 /* 4035 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // x
5867 /* 4039 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
5868 /* 4042 */ GIR_EraseRootFromParent_Done,
5869 /* 4043 */ // Label 223: @4043
5870 /* 4043 */ GIM_Try, /*On fail goto*//*Label 224*/ GIMT_Encode4(4090), // Rule ID 243 //
5871 /* 4048 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule178Enabled),
5872 /* 4051 */ // MIs[0] root
5873 /* 4051 */ // No operand predicates
5874 /* 4051 */ // MIs[0] out1
5875 /* 4051 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5876 /* 4055 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FSHL),
5877 /* 4059 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_left_match_0.x
5878 /* 4059 */ // No operand predicates
5879 /* 4059 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_left_match_0.z
5880 /* 4059 */ // No operand predicates
5881 /* 4059 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_left_match_0.y
5882 /* 4059 */ // No operand predicates
5883 /* 4059 */ // MIs[0] out2
5884 /* 4059 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
5885 /* 4063 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SHL),
5886 /* 4067 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_left_match_0.x
5887 /* 4067 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/1,
5888 /* 4072 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_left_match_0.y
5889 /* 4072 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/3,
5890 /* 4077 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5891 /* 4082 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5892 /* 4084 */ // Combiner Rule #178: funnel_shift_or_shift_to_funnel_shift_left @ [__funnel_shift_or_shift_to_funnel_shift_left_match_0[0]]
5893 /* 4084 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5894 /* 4089 */ GIR_EraseRootFromParent_Done,
5895 /* 4090 */ // Label 224: @4090
5896 /* 4090 */ GIM_Try, /*On fail goto*//*Label 225*/ GIMT_Encode4(4137), // Rule ID 245 //
5897 /* 4095 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule179Enabled),
5898 /* 4098 */ // MIs[0] root
5899 /* 4098 */ // No operand predicates
5900 /* 4098 */ // MIs[0] out1
5901 /* 4098 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5902 /* 4102 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FSHR),
5903 /* 4106 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_right_match_0.z
5904 /* 4106 */ // No operand predicates
5905 /* 4106 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_right_match_0.x
5906 /* 4106 */ // No operand predicates
5907 /* 4106 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_right_match_0.y
5908 /* 4106 */ // No operand predicates
5909 /* 4106 */ // MIs[0] out2
5910 /* 4106 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
5911 /* 4110 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_LSHR),
5912 /* 4114 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_right_match_0.x
5913 /* 4114 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/2,
5914 /* 4119 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_right_match_0.y
5915 /* 4119 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/3,
5916 /* 4124 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5917 /* 4129 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5918 /* 4131 */ // Combiner Rule #179: funnel_shift_or_shift_to_funnel_shift_right @ [__funnel_shift_or_shift_to_funnel_shift_right_match_0[0]]
5919 /* 4131 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5920 /* 4136 */ GIR_EraseRootFromParent_Done,
5921 /* 4137 */ // Label 225: @4137
5922 /* 4137 */ GIM_Try, /*On fail goto*//*Label 226*/ GIMT_Encode4(4235), // Rule ID 167 //
5923 /* 4142 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule123Enabled),
5924 /* 4145 */ // MIs[0] root
5925 /* 4145 */ // No operand predicates
5926 /* 4145 */ // MIs[0] d1
5927 /* 4145 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5928 /* 4149 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ICMP),
5929 /* 4153 */ // MIs[1] p
5930 /* 4153 */ // No operand predicates
5931 /* 4153 */ // MIs[1] s1
5932 /* 4153 */ GIM_RecordRegType, /*MI*/1, /*Op*/2, /*TempTypeIdx*/255,
5933 /* 4157 */ // MIs[1] Operand 3
5934 /* 4157 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/3, 0,
5935 /* 4161 */ // MIs[0] d2
5936 /* 4161 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
5937 /* 4165 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ICMP),
5938 /* 4169 */ // MIs[2] p
5939 /* 4169 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/1,
5940 /* 4174 */ // MIs[2] s2
5941 /* 4174 */ // No operand predicates
5942 /* 4174 */ // MIs[2] Operand 3
5943 /* 4174 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/3, 0,
5944 /* 4178 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner10),
5945 /* 4182 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5946 /* 4184 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
5947 /* 4187 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(0),
5948 /* 4197 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5949 /* 4200 */ // Combiner Rule #123: double_icmp_zero_or_combine
5950 /* 4200 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR),
5951 /* 4203 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5952 /* 4208 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // s1
5953 /* 4212 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/2, // s2
5954 /* 4216 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ICMP),
5955 /* 4220 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // root
5956 /* 4224 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // p
5957 /* 4228 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
5958 /* 4231 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/1,
5959 /* 4234 */ GIR_EraseRootFromParent_Done,
5960 /* 4235 */ // Label 226: @4235
5961 /* 4235 */ GIM_Try, /*On fail goto*//*Label 227*/ GIMT_Encode4(4284), // Rule ID 384 //
5962 /* 4240 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule220Enabled),
5963 /* 4243 */ // MIs[0] root
5964 /* 4243 */ // No operand predicates
5965 /* 4243 */ // MIs[0] and
5966 /* 4243 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5967 /* 4247 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_AND),
5968 /* 4251 */ // MIs[1] x
5969 /* 4251 */ // No operand predicates
5970 /* 4251 */ // MIs[1] not
5971 /* 4251 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
5972 /* 4255 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_XOR),
5973 /* 4259 */ // MIs[2] y
5974 /* 4259 */ // No operand predicates
5975 /* 4259 */ // MIs[2] Operand 2
5976 /* 4259 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/2, 255,
5977 /* 4263 */ // MIs[0] y
5978 /* 4263 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/2, /*OtherOpIdx*/1,
5979 /* 4268 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5980 /* 4270 */ // Combiner Rule #220: or_and_xor_to_or
5981 /* 4270 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR),
5982 /* 4273 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
5983 /* 4275 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
5984 /* 4279 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // y
5985 /* 4283 */ GIR_EraseRootFromParent_Done,
5986 /* 4284 */ // Label 227: @4284
5987 /* 4284 */ GIM_Try, /*On fail goto*//*Label 228*/ GIMT_Encode4(4318), // Rule ID 436 //
5988 /* 4289 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule267Enabled),
5989 /* 4292 */ // MIs[0] dst
5990 /* 4292 */ // No operand predicates
5991 /* 4292 */ // MIs[0] __combine_or_of_and_match_0.and
5992 /* 4292 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5993 /* 4296 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_AND),
5994 /* 4300 */ // MIs[1] x
5995 /* 4300 */ // No operand predicates
5996 /* 4300 */ // MIs[1] y
5997 /* 4300 */ // No operand predicates
5998 /* 4300 */ // MIs[0] x
5999 /* 4300 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/1,
6000 /* 4305 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
6001 /* 4310 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6002 /* 4312 */ // Combiner Rule #267: combine_or_of_and @ [__combine_or_of_and_match_0[0]]
6003 /* 4312 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
6004 /* 4317 */ GIR_EraseRootFromParent_Done,
6005 /* 4318 */ // Label 228: @4318
6006 /* 4318 */ GIM_Try, /*On fail goto*//*Label 229*/ GIMT_Encode4(4352), // Rule ID 437 //
6007 /* 4323 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule267Enabled),
6008 /* 4326 */ // MIs[0] dst
6009 /* 4326 */ // No operand predicates
6010 /* 4326 */ // MIs[0] __combine_or_of_and_match_0.and
6011 /* 4326 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6012 /* 4330 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_AND),
6013 /* 4334 */ // MIs[1] y
6014 /* 4334 */ // No operand predicates
6015 /* 4334 */ // MIs[1] x
6016 /* 4334 */ // No operand predicates
6017 /* 4334 */ // MIs[0] x
6018 /* 4334 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/2,
6019 /* 4339 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/2,
6020 /* 4344 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6021 /* 4346 */ // Combiner Rule #267: combine_or_of_and @ [__combine_or_of_and_match_0[1]]
6022 /* 4346 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/2,
6023 /* 4351 */ GIR_EraseRootFromParent_Done,
6024 /* 4352 */ // Label 229: @4352
6025 /* 4352 */ GIM_Try, /*On fail goto*//*Label 230*/ GIMT_Encode4(4399), // Rule ID 246 //
6026 /* 4357 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule179Enabled),
6027 /* 4360 */ // MIs[0] root
6028 /* 4360 */ // No operand predicates
6029 /* 4360 */ // MIs[0] out2
6030 /* 4360 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6031 /* 4364 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_LSHR),
6032 /* 4368 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_right_match_0.x
6033 /* 4368 */ // No operand predicates
6034 /* 4368 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_right_match_0.y
6035 /* 4368 */ // No operand predicates
6036 /* 4368 */ // MIs[0] out1
6037 /* 4368 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
6038 /* 4372 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_FSHR),
6039 /* 4376 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_right_match_0.z
6040 /* 4376 */ // No operand predicates
6041 /* 4376 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_right_match_0.x
6042 /* 4376 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/1,
6043 /* 4381 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_right_match_0.y
6044 /* 4381 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/3, /*OtherMI*/1, /*OtherOpIdx*/2,
6045 /* 4386 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
6046 /* 4391 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
6047 /* 4393 */ // Combiner Rule #179: funnel_shift_or_shift_to_funnel_shift_right @ [__funnel_shift_or_shift_to_funnel_shift_right_match_0[1]]
6048 /* 4393 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
6049 /* 4398 */ GIR_EraseRootFromParent_Done,
6050 /* 4399 */ // Label 230: @4399
6051 /* 4399 */ GIM_Try, /*On fail goto*//*Label 231*/ GIMT_Encode4(4446), // Rule ID 244 //
6052 /* 4404 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule178Enabled),
6053 /* 4407 */ // MIs[0] root
6054 /* 4407 */ // No operand predicates
6055 /* 4407 */ // MIs[0] out2
6056 /* 4407 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6057 /* 4411 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SHL),
6058 /* 4415 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_left_match_0.x
6059 /* 4415 */ // No operand predicates
6060 /* 4415 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_left_match_0.y
6061 /* 4415 */ // No operand predicates
6062 /* 4415 */ // MIs[0] out1
6063 /* 4415 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
6064 /* 4419 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_FSHL),
6065 /* 4423 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_left_match_0.x
6066 /* 4423 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/1,
6067 /* 4428 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_left_match_0.z
6068 /* 4428 */ // No operand predicates
6069 /* 4428 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_left_match_0.y
6070 /* 4428 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/3, /*OtherMI*/1, /*OtherOpIdx*/2,
6071 /* 4433 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
6072 /* 4438 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
6073 /* 4440 */ // Combiner Rule #178: funnel_shift_or_shift_to_funnel_shift_left @ [__funnel_shift_or_shift_to_funnel_shift_left_match_0[1]]
6074 /* 4440 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
6075 /* 4445 */ GIR_EraseRootFromParent_Done,
6076 /* 4446 */ // Label 231: @4446
6077 /* 4446 */ GIM_Try, /*On fail goto*//*Label 232*/ GIMT_Encode4(4496), // Rule ID 389 //
6078 /* 4451 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule225Enabled),
6079 /* 4454 */ // MIs[0] root
6080 /* 4454 */ // No operand predicates
6081 /* 4454 */ // MIs[0] xor
6082 /* 4454 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6083 /* 4458 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_XOR),
6084 /* 4462 */ // MIs[1] x
6085 /* 4462 */ // No operand predicates
6086 /* 4462 */ // MIs[1] y
6087 /* 4462 */ // No operand predicates
6088 /* 4462 */ // MIs[0] and
6089 /* 4462 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
6090 /* 4466 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_AND),
6091 /* 4470 */ // MIs[2] x
6092 /* 4470 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/1,
6093 /* 4475 */ // MIs[2] y
6094 /* 4475 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/2,
6095 /* 4480 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
6096 /* 4482 */ // Combiner Rule #225: or_xor_and
6097 /* 4482 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR),
6098 /* 4485 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
6099 /* 4487 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
6100 /* 4491 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // y
6101 /* 4495 */ GIR_EraseRootFromParent_Done,
6102 /* 4496 */ // Label 232: @4496
6103 /* 4496 */ GIM_Try, /*On fail goto*//*Label 233*/ GIMT_Encode4(4546), // Rule ID 388 //
6104 /* 4501 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule224Enabled),
6105 /* 4504 */ // MIs[0] root
6106 /* 4504 */ // No operand predicates
6107 /* 4504 */ // MIs[0] xor
6108 /* 4504 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6109 /* 4508 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_XOR),
6110 /* 4512 */ // MIs[1] x
6111 /* 4512 */ // No operand predicates
6112 /* 4512 */ // MIs[1] y
6113 /* 4512 */ // No operand predicates
6114 /* 4512 */ // MIs[0] or
6115 /* 4512 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
6116 /* 4516 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_OR),
6117 /* 4520 */ // MIs[2] x
6118 /* 4520 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/1,
6119 /* 4525 */ // MIs[2] y
6120 /* 4525 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/2,
6121 /* 4530 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
6122 /* 4532 */ // Combiner Rule #224: or_xor_or
6123 /* 4532 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR),
6124 /* 4535 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
6125 /* 4537 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
6126 /* 4541 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // y
6127 /* 4545 */ GIR_EraseRootFromParent_Done,
6128 /* 4546 */ // Label 233: @4546
6129 /* 4546 */ GIM_Try, /*On fail goto*//*Label 234*/ GIMT_Encode4(4570), // Rule ID 121 //
6130 /* 4551 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule91Enabled),
6131 /* 4554 */ // MIs[0] dst
6132 /* 4554 */ // No operand predicates
6133 /* 4554 */ // MIs[0] src
6134 /* 4554 */ // No operand predicates
6135 /* 4554 */ // MIs[0] src
6136 /* 4554 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
6137 /* 4559 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6138 /* 4564 */ // Combiner Rule #91: binop_same_val @ [__binop_same_val_match_0[1]]
6139 /* 4564 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6140 /* 4569 */ GIR_EraseRootFromParent_Done,
6141 /* 4570 */ // Label 234: @4570
6142 /* 4570 */ GIM_Try, /*On fail goto*//*Label 235*/ GIMT_Encode4(4604), // Rule ID 438 //
6143 /* 4575 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule267Enabled),
6144 /* 4578 */ // MIs[0] dst
6145 /* 4578 */ // No operand predicates
6146 /* 4578 */ // MIs[0] x
6147 /* 4578 */ // No operand predicates
6148 /* 4578 */ // MIs[0] __combine_or_of_and_match_0.and
6149 /* 4578 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
6150 /* 4582 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_AND),
6151 /* 4586 */ // MIs[1] x
6152 /* 4586 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/1, /*OpIdx*/1, /*OtherMI*/0, /*OtherOpIdx*/1,
6153 /* 4591 */ // MIs[1] y
6154 /* 4591 */ // No operand predicates
6155 /* 4591 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6156 /* 4596 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6157 /* 4598 */ // Combiner Rule #267: combine_or_of_and @ [__combine_or_of_and_match_0[2]]
6158 /* 4598 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6159 /* 4603 */ GIR_EraseRootFromParent_Done,
6160 /* 4604 */ // Label 235: @4604
6161 /* 4604 */ GIM_Try, /*On fail goto*//*Label 236*/ GIMT_Encode4(4638), // Rule ID 439 //
6162 /* 4609 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule267Enabled),
6163 /* 4612 */ // MIs[0] dst
6164 /* 4612 */ // No operand predicates
6165 /* 4612 */ // MIs[0] x
6166 /* 4612 */ // No operand predicates
6167 /* 4612 */ // MIs[0] __combine_or_of_and_match_0.and
6168 /* 4612 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
6169 /* 4616 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_AND),
6170 /* 4620 */ // MIs[1] y
6171 /* 4620 */ // No operand predicates
6172 /* 4620 */ // MIs[1] x
6173 /* 4620 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/1, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
6174 /* 4625 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6175 /* 4630 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6176 /* 4632 */ // Combiner Rule #267: combine_or_of_and @ [__combine_or_of_and_match_0[3]]
6177 /* 4632 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6178 /* 4637 */ GIR_EraseRootFromParent_Done,
6179 /* 4638 */ // Label 236: @4638
6180 /* 4638 */ GIM_Try, /*On fail goto*//*Label 237*/ GIMT_Encode4(4661), // Rule ID 112 //
6181 /* 4643 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled),
6182 /* 4646 */ // MIs[0] dst
6183 /* 4646 */ // No operand predicates
6184 /* 4646 */ // MIs[0] lhs
6185 /* 4646 */ // No operand predicates
6186 /* 4646 */ // MIs[0] Operand 2
6187 /* 4646 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
6188 /* 4650 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6189 /* 4655 */ // Combiner Rule #90: right_identity_zero @ [__right_identity_zero_match_0[2]]
6190 /* 4655 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6191 /* 4660 */ GIR_EraseRootFromParent_Done,
6192 /* 4661 */ // Label 237: @4661
6193 /* 4661 */ GIM_Reject,
6194 /* 4662 */ // Label 10: @4662
6195 /* 4662 */ GIM_Try, /*On fail goto*//*Label 238*/ GIMT_Encode4(4673), // Rule ID 102 //
6196 /* 4667 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule84Enabled),
6197 /* 4670 */ // Combiner Rule #84: propagate_undef_any_op; wip_match_opcode 'G_XOR'
6198 /* 4670 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner39),
6199 /* 4673 */ // Label 238: @4673
6200 /* 4673 */ GIM_Try, /*On fail goto*//*Label 239*/ GIMT_Encode4(4684), // Rule ID 155 //
6201 /* 4678 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule113Enabled),
6202 /* 4681 */ // Combiner Rule #113: hoist_logic_op_with_same_opcode_hands; wip_match_opcode 'G_XOR'
6203 /* 4681 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner54),
6204 /* 4684 */ // Label 239: @4684
6205 /* 4684 */ GIM_Try, /*On fail goto*//*Label 240*/ GIMT_Encode4(4695), // Rule ID 187 //
6206 /* 4689 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule143Enabled),
6207 /* 4692 */ // Combiner Rule #143: not_cmp_fold; wip_match_opcode 'G_XOR'
6208 /* 4692 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner78),
6209 /* 4695 */ // Label 240: @4695
6210 /* 4695 */ GIM_Try, /*On fail goto*//*Label 241*/ GIMT_Encode4(4706), // Rule ID 219 //
6211 /* 4700 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule167Enabled),
6212 /* 4703 */ // Combiner Rule #167: xor_of_and_with_same_reg; wip_match_opcode 'G_XOR'
6213 /* 4703 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner89),
6214 /* 4706 */ // Label 241: @4706
6215 /* 4706 */ GIM_Try, /*On fail goto*//*Label 242*/ GIMT_Encode4(4717), // Rule ID 265 //
6216 /* 4711 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled),
6217 /* 4714 */ // Combiner Rule #187: constant_fold_binop; wip_match_opcode 'G_XOR'
6218 /* 4714 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103),
6219 /* 4717 */ // Label 242: @4717
6220 /* 4717 */ GIM_Try, /*On fail goto*//*Label 243*/ GIMT_Encode4(4728), // Rule ID 321 //
6221 /* 4722 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
6222 /* 4725 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_XOR'
6223 /* 4725 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
6224 /* 4728 */ // Label 243: @4728
6225 /* 4728 */ GIM_Try, /*On fail goto*//*Label 244*/ GIMT_Encode4(4739), // Rule ID 357 //
6226 /* 4733 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
6227 /* 4736 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_XOR'
6228 /* 4736 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129),
6229 /* 4739 */ // Label 244: @4739
6230 /* 4739 */ GIM_Try, /*On fail goto*//*Label 245*/ GIMT_Encode4(4750), // Rule ID 427 //
6231 /* 4744 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule258Enabled),
6232 /* 4747 */ // Combiner Rule #258: binop_with_neg; wip_match_opcode 'G_XOR'
6233 /* 4747 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner159),
6234 /* 4750 */ // Label 245: @4750
6235 /* 4750 */ GIM_Try, /*On fail goto*//*Label 246*/ GIMT_Encode4(4810), // Rule ID 13 //
6236 /* 4755 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule13Enabled),
6237 /* 4758 */ // MIs[0] root
6238 /* 4758 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
6239 /* 4762 */ // MIs[0] add
6240 /* 4762 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6241 /* 4766 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
6242 /* 4770 */ // MIs[1] A
6243 /* 4770 */ // No operand predicates
6244 /* 4770 */ // MIs[1] Operand 2
6245 /* 4770 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/2, 255,
6246 /* 4774 */ // MIs[0] Operand 2
6247 /* 4774 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 255,
6248 /* 4778 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner1),
6249 /* 4782 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6250 /* 4784 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
6251 /* 4787 */ GIR_BuildConstant, /*TempRegID*/0, /*Val*/GIMT_Encode8(0),
6252 /* 4797 */ // Combiner Rule #13: NotAPlusNegOne
6253 /* 4797 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
6254 /* 4800 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
6255 /* 4802 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/0,
6256 /* 4805 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // A
6257 /* 4809 */ GIR_EraseRootFromParent_Done,
6258 /* 4810 */ // Label 246: @4810
6259 /* 4810 */ GIM_Try, /*On fail goto*//*Label 247*/ GIMT_Encode4(4849), // Rule ID 123 //
6260 /* 4815 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule92Enabled),
6261 /* 4818 */ // MIs[0] dst
6262 /* 4818 */ // No operand predicates
6263 /* 4818 */ // MIs[0] x
6264 /* 4818 */ GIM_RecordRegType, /*MI*/0, /*Op*/1, /*TempTypeIdx*/255,
6265 /* 4822 */ // MIs[0] x
6266 /* 4822 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
6267 /* 4827 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
6268 /* 4830 */ GIR_BuildConstant, /*TempRegID*/0, /*Val*/GIMT_Encode8(0),
6269 /* 4840 */ // Combiner Rule #92: same_val_zero @ [__same_val_zero_match_0[1]]
6270 /* 4840 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::COPY),
6271 /* 4843 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
6272 /* 4845 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/0,
6273 /* 4848 */ GIR_EraseRootFromParent_Done,
6274 /* 4849 */ // Label 247: @4849
6275 /* 4849 */ GIM_Try, /*On fail goto*//*Label 248*/ GIMT_Encode4(4872), // Rule ID 113 //
6276 /* 4854 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled),
6277 /* 4857 */ // MIs[0] dst
6278 /* 4857 */ // No operand predicates
6279 /* 4857 */ // MIs[0] lhs
6280 /* 4857 */ // No operand predicates
6281 /* 4857 */ // MIs[0] Operand 2
6282 /* 4857 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
6283 /* 4861 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6284 /* 4866 */ // Combiner Rule #90: right_identity_zero @ [__right_identity_zero_match_0[3]]
6285 /* 4866 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6286 /* 4871 */ GIR_EraseRootFromParent_Done,
6287 /* 4872 */ // Label 248: @4872
6288 /* 4872 */ GIM_Reject,
6289 /* 4873 */ // Label 11: @4873
6290 /* 4873 */ GIM_Try, /*On fail goto*//*Label 249*/ GIMT_Encode4(4884), // Rule ID 151 //
6291 /* 4878 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule111Enabled),
6292 /* 4881 */ // Combiner Rule #111: extend_through_phis; wip_match_opcode 'G_PHI'
6293 /* 4881 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner52),
6294 /* 4884 */ // Label 249: @4884
6295 /* 4884 */ GIM_Reject,
6296 /* 4885 */ // Label 12: @4885
6297 /* 4885 */ GIM_Try, /*On fail goto*//*Label 250*/ GIMT_Encode4(4896), // Rule ID 399 //
6298 /* 4890 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule235Enabled),
6299 /* 4893 */ // Combiner Rule #235: unmerge_anyext_build_vector; wip_match_opcode 'G_UNMERGE_VALUES'
6300 /* 4893 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner142),
6301 /* 4896 */ // Label 250: @4896
6302 /* 4896 */ GIM_Try, /*On fail goto*//*Label 251*/ GIMT_Encode4(4907), // Rule ID 400 //
6303 /* 4901 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule236Enabled),
6304 /* 4904 */ // Combiner Rule #236: unmerge_merge; wip_match_opcode 'G_UNMERGE_VALUES'
6305 /* 4904 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner143),
6306 /* 4907 */ // Label 251: @4907
6307 /* 4907 */ GIM_Try, /*On fail goto*//*Label 252*/ GIMT_Encode4(4918), // Rule ID 402 //
6308 /* 4912 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule238Enabled),
6309 /* 4915 */ // Combiner Rule #238: unmerge_cst; wip_match_opcode 'G_UNMERGE_VALUES'
6310 /* 4915 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner145),
6311 /* 4918 */ // Label 252: @4918
6312 /* 4918 */ GIM_Try, /*On fail goto*//*Label 253*/ GIMT_Encode4(4929), // Rule ID 403 //
6313 /* 4923 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule239Enabled),
6314 /* 4926 */ // Combiner Rule #239: unmerge_undef; wip_match_opcode 'G_UNMERGE_VALUES'
6315 /* 4926 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner146),
6316 /* 4929 */ // Label 253: @4929
6317 /* 4929 */ GIM_Try, /*On fail goto*//*Label 254*/ GIMT_Encode4(4940), // Rule ID 404 //
6318 /* 4934 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule240Enabled),
6319 /* 4937 */ // Combiner Rule #240: unmerge_dead_to_trunc; wip_match_opcode 'G_UNMERGE_VALUES'
6320 /* 4937 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner147),
6321 /* 4940 */ // Label 254: @4940
6322 /* 4940 */ GIM_Try, /*On fail goto*//*Label 255*/ GIMT_Encode4(4951), // Rule ID 405 //
6323 /* 4945 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule241Enabled),
6324 /* 4948 */ // Combiner Rule #241: unmerge_zext_to_zext; wip_match_opcode 'G_UNMERGE_VALUES'
6325 /* 4948 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner148),
6326 /* 4951 */ // Label 255: @4951
6327 /* 4951 */ GIM_Reject,
6328 /* 4952 */ // Label 13: @4952
6329 /* 4952 */ GIM_Try, /*On fail goto*//*Label 256*/ GIMT_Encode4(4966), // Rule ID 401 //
6330 /* 4957 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule237Enabled),
6331 /* 4960 */ GIM_CheckNumOperandsGE, /*MI*/0, /*Expected*/2,
6332 /* 4963 */ // MIs[0] dst
6333 /* 4963 */ // No operand predicates
6334 /* 4963 */ // MIs[0] merge_srcs
6335 /* 4963 */ // No operand predicates
6336 /* 4963 */ // Combiner Rule #237: merge_unmerge
6337 /* 4963 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner144),
6338 /* 4966 */ // Label 256: @4966
6339 /* 4966 */ GIM_Try, /*On fail goto*//*Label 257*/ GIMT_Encode4(5028),
6340 /* 4971 */ GIM_CheckNumOperands, /*MI*/0, /*Expected*/3,
6341 /* 4974 */ GIM_Try, /*On fail goto*//*Label 258*/ GIMT_Encode4(4995), // Rule ID 406 //
6342 /* 4979 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule242Enabled),
6343 /* 4982 */ // MIs[0] root
6344 /* 4982 */ // No operand predicates
6345 /* 4982 */ // MIs[0] x
6346 /* 4982 */ // No operand predicates
6347 /* 4982 */ // MIs[0] undef
6348 /* 4982 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
6349 /* 4986 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
6350 /* 4990 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6351 /* 4992 */ // Combiner Rule #242: merge_of_x_and_undef
6352 /* 4992 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner149),
6353 /* 4995 */ // Label 258: @4995
6354 /* 4995 */ GIM_Try, /*On fail goto*//*Label 259*/ GIMT_Encode4(5027), // Rule ID 407 //
6355 /* 5000 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule243Enabled),
6356 /* 5003 */ // MIs[0] root
6357 /* 5003 */ // No operand predicates
6358 /* 5003 */ // MIs[0] x
6359 /* 5003 */ // No operand predicates
6360 /* 5003 */ // MIs[0] zero
6361 /* 5003 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
6362 /* 5007 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
6363 /* 5011 */ // MIs[1] Operand 1
6364 /* 5011 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0),
6365 /* 5022 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6366 /* 5024 */ // Combiner Rule #243: merge_of_x_and_zero
6367 /* 5024 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner150),
6368 /* 5027 */ // Label 259: @5027
6369 /* 5027 */ GIM_Reject,
6370 /* 5028 */ // Label 257: @5028
6371 /* 5028 */ GIM_Reject,
6372 /* 5029 */ // Label 14: @5029
6373 /* 5029 */ GIM_Try, /*On fail goto*//*Label 260*/ GIMT_Encode4(5040), // Rule ID 75 //
6374 /* 5034 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule73Enabled),
6375 /* 5037 */ // Combiner Rule #73: extract_all_elts_from_build_vector; wip_match_opcode 'G_BUILD_VECTOR'
6376 /* 5037 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner29),
6377 /* 5040 */ // Label 260: @5040
6378 /* 5040 */ GIM_Try, /*On fail goto*//*Label 261*/ GIMT_Encode4(5051), // Rule ID 104 //
6379 /* 5045 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule85Enabled),
6380 /* 5048 */ // Combiner Rule #85: propagate_undef_all_ops; wip_match_opcode 'G_BUILD_VECTOR'
6381 /* 5048 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner40),
6382 /* 5051 */ // Label 261: @5051
6383 /* 5051 */ GIM_Try, /*On fail goto*//*Label 262*/ GIMT_Encode4(5062), // Rule ID 142 //
6384 /* 5056 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule102Enabled),
6385 /* 5059 */ // Combiner Rule #102: buildvector_identity_fold; wip_match_opcode 'G_BUILD_VECTOR'
6386 /* 5059 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner48),
6387 /* 5062 */ // Label 262: @5062
6388 /* 5062 */ GIM_Try, /*On fail goto*//*Label 263*/ GIMT_Encode4(5093),
6389 /* 5067 */ GIM_CheckNumOperandsGE, /*MI*/0, /*Expected*/2,
6390 /* 5070 */ GIM_Try, /*On fail goto*//*Label 264*/ GIMT_Encode4(5081), // Rule ID 398 //
6391 /* 5075 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule234Enabled),
6392 /* 5078 */ // MIs[0] dst
6393 /* 5078 */ // No operand predicates
6394 /* 5078 */ // MIs[0] unused
6395 /* 5078 */ // No operand predicates
6396 /* 5078 */ // Combiner Rule #234: combine_use_vector_truncate
6397 /* 5078 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner141),
6398 /* 5081 */ // Label 264: @5081
6399 /* 5081 */ GIM_Try, /*On fail goto*//*Label 265*/ GIMT_Encode4(5092), // Rule ID 408 //
6400 /* 5086 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule244Enabled),
6401 /* 5089 */ // MIs[0] dst
6402 /* 5089 */ // No operand predicates
6403 /* 5089 */ // MIs[0] unused
6404 /* 5089 */ // No operand predicates
6405 /* 5089 */ // Combiner Rule #244: combine_build_unmerge
6406 /* 5089 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner151),
6407 /* 5092 */ // Label 265: @5092
6408 /* 5092 */ GIM_Reject,
6409 /* 5093 */ // Label 263: @5093
6410 /* 5093 */ GIM_Reject,
6411 /* 5094 */ // Label 15: @5094
6412 /* 5094 */ GIM_Try, /*On fail goto*//*Label 266*/ GIMT_Encode4(5105), // Rule ID 141 //
6413 /* 5099 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule102Enabled),
6414 /* 5102 */ // Combiner Rule #102: buildvector_identity_fold; wip_match_opcode 'G_BUILD_VECTOR_TRUNC'
6415 /* 5102 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner48),
6416 /* 5105 */ // Label 266: @5105
6417 /* 5105 */ GIM_Reject,
6418 /* 5106 */ // Label 16: @5106
6419 /* 5106 */ GIM_Try, /*On fail goto*//*Label 267*/ GIMT_Encode4(5117), // Rule ID 391 //
6420 /* 5111 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule227Enabled),
6421 /* 5114 */ // Combiner Rule #227: combine_concat_vector; wip_match_opcode 'G_CONCAT_VECTORS'
6422 /* 5114 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner134),
6423 /* 5117 */ // Label 267: @5117
6424 /* 5117 */ GIM_Reject,
6425 /* 5118 */ // Label 17: @5118
6426 /* 5118 */ GIM_Try, /*On fail goto*//*Label 268*/ GIMT_Encode4(5139), // Rule ID 134 //
6427 /* 5123 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule96Enabled),
6428 /* 5126 */ // MIs[0] dst
6429 /* 5126 */ // No operand predicates
6430 /* 5126 */ // MIs[0] t
6431 /* 5126 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6432 /* 5130 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_INTTOPTR),
6433 /* 5134 */ // MIs[1] ptr
6434 /* 5134 */ // No operand predicates
6435 /* 5134 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6436 /* 5136 */ // Combiner Rule #96: i2p_to_p2i
6437 /* 5136 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner46),
6438 /* 5139 */ // Label 268: @5139
6439 /* 5139 */ GIM_Try, /*On fail goto*//*Label 269*/ GIMT_Encode4(5160), // Rule ID 96 //
6440 /* 5144 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule83Enabled),
6441 /* 5147 */ // MIs[0] dst
6442 /* 5147 */ // No operand predicates
6443 /* 5147 */ // MIs[0] __unary_undef_to_undef_match_0.x
6444 /* 5147 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6445 /* 5151 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
6446 /* 5155 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6447 /* 5157 */ // Combiner Rule #83: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[3]]
6448 /* 5157 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner38),
6449 /* 5160 */ // Label 269: @5160
6450 /* 5160 */ GIM_Reject,
6451 /* 5161 */ // Label 18: @5161
6452 /* 5161 */ GIM_Try, /*On fail goto*//*Label 270*/ GIMT_Encode4(5172), // Rule ID 133 //
6453 /* 5166 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule95Enabled),
6454 /* 5169 */ // Combiner Rule #95: p2i_to_i2p; wip_match_opcode 'G_INTTOPTR'
6455 /* 5169 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner45),
6456 /* 5172 */ // Label 270: @5172
6457 /* 5172 */ GIM_Try, /*On fail goto*//*Label 271*/ GIMT_Encode4(5193), // Rule ID 97 //
6458 /* 5177 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule83Enabled),
6459 /* 5180 */ // MIs[0] dst
6460 /* 5180 */ // No operand predicates
6461 /* 5180 */ // MIs[0] __unary_undef_to_undef_match_0.x
6462 /* 5180 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6463 /* 5184 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
6464 /* 5188 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6465 /* 5190 */ // Combiner Rule #83: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[4]]
6466 /* 5190 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner38),
6467 /* 5193 */ // Label 271: @5193
6468 /* 5193 */ GIM_Reject,
6469 /* 5194 */ // Label 19: @5194
6470 /* 5194 */ GIM_Try, /*On fail goto*//*Label 272*/ GIMT_Encode4(5226), // Rule ID 146 //
6471 /* 5199 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule106Enabled),
6472 /* 5202 */ // MIs[0] dst
6473 /* 5202 */ // No operand predicates
6474 /* 5202 */ // MIs[0] src1
6475 /* 5202 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6476 /* 5206 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BITCAST),
6477 /* 5210 */ // MIs[1] src0
6478 /* 5210 */ // No operand predicates
6479 /* 5210 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner5),
6480 /* 5214 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6481 /* 5216 */ // Combiner Rule #106: bitcast_bitcast_to_bitcast
6482 /* 5216 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_BITCAST),
6483 /* 5219 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
6484 /* 5221 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // src0
6485 /* 5225 */ GIR_EraseRootFromParent_Done,
6486 /* 5226 */ // Label 272: @5226
6487 /* 5226 */ GIM_Try, /*On fail goto*//*Label 273*/ GIMT_Encode4(5247), // Rule ID 145 //
6488 /* 5231 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule105Enabled),
6489 /* 5234 */ // MIs[0] dst
6490 /* 5234 */ // No operand predicates
6491 /* 5234 */ // MIs[0] src1
6492 /* 5234 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6493 /* 5238 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BITCAST),
6494 /* 5242 */ // MIs[1] src0
6495 /* 5242 */ // No operand predicates
6496 /* 5242 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6497 /* 5244 */ // Combiner Rule #105: bitcast_bitcast_fold
6498 /* 5244 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner51),
6499 /* 5247 */ // Label 273: @5247
6500 /* 5247 */ GIM_Try, /*On fail goto*//*Label 274*/ GIMT_Encode4(5268), // Rule ID 94 //
6501 /* 5252 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule83Enabled),
6502 /* 5255 */ // MIs[0] dst
6503 /* 5255 */ // No operand predicates
6504 /* 5255 */ // MIs[0] __unary_undef_to_undef_match_0.x
6505 /* 5255 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6506 /* 5259 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
6507 /* 5263 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6508 /* 5265 */ // Combiner Rule #83: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[1]]
6509 /* 5265 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner38),
6510 /* 5268 */ // Label 274: @5268
6511 /* 5268 */ GIM_Reject,
6512 /* 5269 */ // Label 20: @5269
6513 /* 5269 */ GIM_Try, /*On fail goto*//*Label 275*/ GIMT_Encode4(5298), // Rule ID 24 //
6514 /* 5274 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule24Enabled),
6515 /* 5277 */ // MIs[0] dst
6516 /* 5277 */ // No operand predicates
6517 /* 5277 */ // MIs[0] src
6518 /* 5277 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6519 /* 5281 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FREEZE),
6520 /* 5285 */ // MIs[1] __idempotent_prop_match_0.x
6521 /* 5285 */ // No operand predicates
6522 /* 5285 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6523 /* 5290 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6524 /* 5292 */ // Combiner Rule #24: idempotent_prop @ [__idempotent_prop_match_0[0]]
6525 /* 5292 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6526 /* 5297 */ GIR_EraseRootFromParent_Done,
6527 /* 5298 */ // Label 275: @5298
6528 /* 5298 */ GIM_Try, /*On fail goto*//*Label 276*/ GIMT_Encode4(5321), // Rule ID 49 //
6529 /* 5303 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule47Enabled),
6530 /* 5306 */ // MIs[0] root
6531 /* 5306 */ // No operand predicates
6532 /* 5306 */ // MIs[0] src
6533 /* 5306 */ // No operand predicates
6534 /* 5306 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner3),
6535 /* 5310 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6536 /* 5315 */ // Combiner Rule #47: freeze_of_non_undef_non_poison
6537 /* 5315 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6538 /* 5320 */ GIR_EraseRootFromParent_Done,
6539 /* 5321 */ // Label 276: @5321
6540 /* 5321 */ GIM_Try, /*On fail goto*//*Label 277*/ GIMT_Encode4(5332), // Rule ID 50 //
6541 /* 5326 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule48Enabled),
6542 /* 5329 */ // MIs[0] dst
6543 /* 5329 */ // No operand predicates
6544 /* 5329 */ // MIs[0] src
6545 /* 5329 */ // No operand predicates
6546 /* 5329 */ // Combiner Rule #48: push_freeze_to_prevent_poison_from_propagating
6547 /* 5329 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner19),
6548 /* 5332 */ // Label 277: @5332
6549 /* 5332 */ GIM_Reject,
6550 /* 5333 */ // Label 21: @5333
6551 /* 5333 */ GIM_Try, /*On fail goto*//*Label 278*/ GIMT_Encode4(5354), // Rule ID 197 //
6552 /* 5338 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule153Enabled),
6553 /* 5341 */ // MIs[0] dst
6554 /* 5341 */ // No operand predicates
6555 /* 5341 */ // MIs[0] src0
6556 /* 5341 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6557 /* 5345 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT),
6558 /* 5349 */ // MIs[1] cst
6559 /* 5349 */ // No operand predicates
6560 /* 5349 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6561 /* 5351 */ // Combiner Rule #153: constant_fold_intrinsic_trunc
6562 /* 5351 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
6563 /* 5354 */ // Label 278: @5354
6564 /* 5354 */ GIM_Reject,
6565 /* 5355 */ // Label 22: @5355
6566 /* 5355 */ GIM_Try, /*On fail goto*//*Label 279*/ GIMT_Encode4(5376), // Rule ID 198 //
6567 /* 5360 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule154Enabled),
6568 /* 5363 */ // MIs[0] dst
6569 /* 5363 */ // No operand predicates
6570 /* 5363 */ // MIs[0] src0
6571 /* 5363 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6572 /* 5367 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT),
6573 /* 5371 */ // MIs[1] cst
6574 /* 5371 */ // No operand predicates
6575 /* 5371 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6576 /* 5373 */ // Combiner Rule #154: constant_fold_intrinsic_round
6577 /* 5373 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
6578 /* 5376 */ // Label 279: @5376
6579 /* 5376 */ GIM_Reject,
6580 /* 5377 */ // Label 23: @5377
6581 /* 5377 */ GIM_Try, /*On fail goto*//*Label 280*/ GIMT_Encode4(5398), // Rule ID 199 //
6582 /* 5382 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule155Enabled),
6583 /* 5385 */ // MIs[0] dst
6584 /* 5385 */ // No operand predicates
6585 /* 5385 */ // MIs[0] src0
6586 /* 5385 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6587 /* 5389 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT),
6588 /* 5393 */ // MIs[1] cst
6589 /* 5393 */ // No operand predicates
6590 /* 5393 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6591 /* 5395 */ // Combiner Rule #155: constant_fold_intrinsic_roundeven
6592 /* 5395 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
6593 /* 5398 */ // Label 280: @5398
6594 /* 5398 */ GIM_Reject,
6595 /* 5399 */ // Label 24: @5399
6596 /* 5399 */ GIM_Try, /*On fail goto*//*Label 281*/ GIMT_Encode4(5410), // Rule ID 76 //
6597 /* 5404 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule74Enabled),
6598 /* 5407 */ // Combiner Rule #74: extending_loads; wip_match_opcode 'G_LOAD'
6599 /* 5407 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner30),
6600 /* 5410 */ // Label 281: @5410
6601 /* 5410 */ GIM_Reject,
6602 /* 5411 */ // Label 25: @5411
6603 /* 5411 */ GIM_Try, /*On fail goto*//*Label 282*/ GIMT_Encode4(5422), // Rule ID 77 //
6604 /* 5416 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule74Enabled),
6605 /* 5419 */ // Combiner Rule #74: extending_loads; wip_match_opcode 'G_SEXTLOAD'
6606 /* 5419 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner30),
6607 /* 5422 */ // Label 282: @5422
6608 /* 5422 */ GIM_Reject,
6609 /* 5423 */ // Label 26: @5423
6610 /* 5423 */ GIM_Try, /*On fail goto*//*Label 283*/ GIMT_Encode4(5434), // Rule ID 78 //
6611 /* 5428 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule74Enabled),
6612 /* 5431 */ // Combiner Rule #74: extending_loads; wip_match_opcode 'G_ZEXTLOAD'
6613 /* 5431 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner30),
6614 /* 5434 */ // Label 283: @5434
6615 /* 5434 */ GIM_Reject,
6616 /* 5435 */ // Label 27: @5435
6617 /* 5435 */ GIM_Try, /*On fail goto*//*Label 284*/ GIMT_Encode4(5446), // Rule ID 106 //
6618 /* 5440 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule87Enabled),
6619 /* 5443 */ // Combiner Rule #87: erase_undef_store; wip_match_opcode 'G_STORE'
6620 /* 5443 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner42),
6621 /* 5446 */ // Label 284: @5446
6622 /* 5446 */ GIM_Reject,
6623 /* 5447 */ // Label 28: @5447
6624 /* 5447 */ GIM_Try, /*On fail goto*//*Label 285*/ GIMT_Encode4(5458), // Rule ID 135 //
6625 /* 5452 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule97Enabled),
6626 /* 5455 */ // Combiner Rule #97: anyext_trunc_fold; wip_match_opcode 'G_ANYEXT'
6627 /* 5455 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner47),
6628 /* 5458 */ // Label 285: @5458
6629 /* 5458 */ GIM_Try, /*On fail goto*//*Label 286*/ GIMT_Encode4(5469), // Rule ID 290 //
6630 /* 5463 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule190Enabled),
6631 /* 5466 */ // Combiner Rule #190: constant_fold_cast_op; wip_match_opcode 'G_ANYEXT'
6632 /* 5466 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner106),
6633 /* 5469 */ // Label 286: @5469
6634 /* 5469 */ GIM_Try, /*On fail goto*//*Label 287*/ GIMT_Encode4(5490), // Rule ID 63 //
6635 /* 5474 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule61Enabled),
6636 /* 5477 */ // MIs[0] root
6637 /* 5477 */ // No operand predicates
6638 /* 5477 */ // MIs[0] select
6639 /* 5477 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6640 /* 5481 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SELECT),
6641 /* 5485 */ // MIs[1] cond
6642 /* 5485 */ // No operand predicates
6643 /* 5485 */ // MIs[1] true
6644 /* 5485 */ // No operand predicates
6645 /* 5485 */ // MIs[1] false
6646 /* 5485 */ // No operand predicates
6647 /* 5485 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6648 /* 5487 */ // Combiner Rule #61: select_of_anyext
6649 /* 5487 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner23),
6650 /* 5490 */ // Label 287: @5490
6651 /* 5490 */ GIM_Try, /*On fail goto*//*Label 288*/ GIMT_Encode4(5511), // Rule ID 58 //
6652 /* 5495 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule56Enabled),
6653 /* 5498 */ // MIs[0] root
6654 /* 5498 */ // No operand predicates
6655 /* 5498 */ // MIs[0] second
6656 /* 5498 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6657 /* 5502 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ANYEXT),
6658 /* 5506 */ // MIs[1] src
6659 /* 5506 */ // No operand predicates
6660 /* 5506 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6661 /* 5508 */ // Combiner Rule #56: anyext_of_anyext
6662 /* 5508 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner21),
6663 /* 5511 */ // Label 288: @5511
6664 /* 5511 */ GIM_Try, /*On fail goto*//*Label 289*/ GIMT_Encode4(5532), // Rule ID 60 //
6665 /* 5516 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule58Enabled),
6666 /* 5519 */ // MIs[0] root
6667 /* 5519 */ // No operand predicates
6668 /* 5519 */ // MIs[0] second
6669 /* 5519 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6670 /* 5523 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SEXT),
6671 /* 5527 */ // MIs[1] src
6672 /* 5527 */ // No operand predicates
6673 /* 5527 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6674 /* 5529 */ // Combiner Rule #58: anyext_of_sext
6675 /* 5529 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner21),
6676 /* 5532 */ // Label 289: @5532
6677 /* 5532 */ GIM_Try, /*On fail goto*//*Label 290*/ GIMT_Encode4(5553), // Rule ID 59 //
6678 /* 5537 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule57Enabled),
6679 /* 5540 */ // MIs[0] root
6680 /* 5540 */ // No operand predicates
6681 /* 5540 */ // MIs[0] second
6682 /* 5540 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6683 /* 5544 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ZEXT),
6684 /* 5548 */ // MIs[1] src
6685 /* 5548 */ // No operand predicates
6686 /* 5548 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6687 /* 5550 */ // Combiner Rule #57: anyext_of_zext
6688 /* 5550 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner21),
6689 /* 5553 */ // Label 290: @5553
6690 /* 5553 */ GIM_Try, /*On fail goto*//*Label 291*/ GIMT_Encode4(5574), // Rule ID 95 //
6691 /* 5558 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule83Enabled),
6692 /* 5561 */ // MIs[0] dst
6693 /* 5561 */ // No operand predicates
6694 /* 5561 */ // MIs[0] __unary_undef_to_undef_match_0.x
6695 /* 5561 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6696 /* 5565 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
6697 /* 5569 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6698 /* 5571 */ // Combiner Rule #83: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[2]]
6699 /* 5571 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner38),
6700 /* 5574 */ // Label 291: @5574
6701 /* 5574 */ GIM_Reject,
6702 /* 5575 */ // Label 29: @5575
6703 /* 5575 */ GIM_Try, /*On fail goto*//*Label 292*/ GIMT_Encode4(5586), // Rule ID 143 //
6704 /* 5580 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule103Enabled),
6705 /* 5583 */ // Combiner Rule #103: trunc_buildvector_fold; wip_match_opcode 'G_TRUNC'
6706 /* 5583 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner49),
6707 /* 5586 */ // Label 292: @5586
6708 /* 5586 */ GIM_Try, /*On fail goto*//*Label 293*/ GIMT_Encode4(5597), // Rule ID 144 //
6709 /* 5591 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule104Enabled),
6710 /* 5594 */ // Combiner Rule #104: trunc_lshr_buildvector_fold; wip_match_opcode 'G_TRUNC'
6711 /* 5594 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner50),
6712 /* 5597 */ // Label 293: @5597
6713 /* 5597 */ GIM_Try, /*On fail goto*//*Label 294*/ GIMT_Encode4(5608), // Rule ID 186 //
6714 /* 5602 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule142Enabled),
6715 /* 5605 */ // Combiner Rule #142: trunc_shift; wip_match_opcode 'G_TRUNC'
6716 /* 5605 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner77),
6717 /* 5608 */ // Label 294: @5608
6718 /* 5608 */ GIM_Try, /*On fail goto*//*Label 295*/ GIMT_Encode4(5629), // Rule ID 64 //
6719 /* 5613 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule62Enabled),
6720 /* 5616 */ // MIs[0] root
6721 /* 5616 */ // No operand predicates
6722 /* 5616 */ // MIs[0] select
6723 /* 5616 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6724 /* 5620 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SELECT),
6725 /* 5624 */ // MIs[1] cond
6726 /* 5624 */ // No operand predicates
6727 /* 5624 */ // MIs[1] true
6728 /* 5624 */ // No operand predicates
6729 /* 5624 */ // MIs[1] false
6730 /* 5624 */ // No operand predicates
6731 /* 5624 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6732 /* 5626 */ // Combiner Rule #62: select_of_truncate
6733 /* 5626 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner23),
6734 /* 5629 */ // Label 295: @5629
6735 /* 5629 */ GIM_Try, /*On fail goto*//*Label 296*/ GIMT_Encode4(5658), // Rule ID 66 //
6736 /* 5634 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule64Enabled),
6737 /* 5637 */ // MIs[0] root
6738 /* 5637 */ // No operand predicates
6739 /* 5637 */ // MIs[0] binop
6740 /* 5637 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6741 /* 5641 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
6742 /* 5645 */ // MIs[1] x
6743 /* 5645 */ // No operand predicates
6744 /* 5645 */ // MIs[1] const
6745 /* 5645 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
6746 /* 5649 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
6747 /* 5653 */ // MIs[2] imm
6748 /* 5653 */ // No operand predicates
6749 /* 5653 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
6750 /* 5655 */ // Combiner Rule #64: narrow_binop_add
6751 /* 5655 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner25),
6752 /* 5658 */ // Label 296: @5658
6753 /* 5658 */ GIM_Try, /*On fail goto*//*Label 297*/ GIMT_Encode4(5687), // Rule ID 69 //
6754 /* 5663 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule67Enabled),
6755 /* 5666 */ // MIs[0] root
6756 /* 5666 */ // No operand predicates
6757 /* 5666 */ // MIs[0] binop
6758 /* 5666 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6759 /* 5670 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_AND),
6760 /* 5674 */ // MIs[1] x
6761 /* 5674 */ // No operand predicates
6762 /* 5674 */ // MIs[1] const
6763 /* 5674 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
6764 /* 5678 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
6765 /* 5682 */ // MIs[2] imm
6766 /* 5682 */ // No operand predicates
6767 /* 5682 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
6768 /* 5684 */ // Combiner Rule #67: narrow_binop_and
6769 /* 5684 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner25),
6770 /* 5687 */ // Label 297: @5687
6771 /* 5687 */ GIM_Try, /*On fail goto*//*Label 298*/ GIMT_Encode4(5716), // Rule ID 68 //
6772 /* 5692 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule66Enabled),
6773 /* 5695 */ // MIs[0] root
6774 /* 5695 */ // No operand predicates
6775 /* 5695 */ // MIs[0] binop
6776 /* 5695 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6777 /* 5699 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_MUL),
6778 /* 5703 */ // MIs[1] x
6779 /* 5703 */ // No operand predicates
6780 /* 5703 */ // MIs[1] const
6781 /* 5703 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
6782 /* 5707 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
6783 /* 5711 */ // MIs[2] imm
6784 /* 5711 */ // No operand predicates
6785 /* 5711 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
6786 /* 5713 */ // Combiner Rule #66: narrow_binop_mul
6787 /* 5713 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner25),
6788 /* 5716 */ // Label 298: @5716
6789 /* 5716 */ GIM_Try, /*On fail goto*//*Label 299*/ GIMT_Encode4(5745), // Rule ID 70 //
6790 /* 5721 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule68Enabled),
6791 /* 5724 */ // MIs[0] root
6792 /* 5724 */ // No operand predicates
6793 /* 5724 */ // MIs[0] binop
6794 /* 5724 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6795 /* 5728 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_OR),
6796 /* 5732 */ // MIs[1] x
6797 /* 5732 */ // No operand predicates
6798 /* 5732 */ // MIs[1] const
6799 /* 5732 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
6800 /* 5736 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
6801 /* 5740 */ // MIs[2] imm
6802 /* 5740 */ // No operand predicates
6803 /* 5740 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
6804 /* 5742 */ // Combiner Rule #68: narrow_binop_or
6805 /* 5742 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner25),
6806 /* 5745 */ // Label 299: @5745
6807 /* 5745 */ GIM_Try, /*On fail goto*//*Label 300*/ GIMT_Encode4(5774), // Rule ID 67 //
6808 /* 5750 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule65Enabled),
6809 /* 5753 */ // MIs[0] root
6810 /* 5753 */ // No operand predicates
6811 /* 5753 */ // MIs[0] binop
6812 /* 5753 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6813 /* 5757 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
6814 /* 5761 */ // MIs[1] x
6815 /* 5761 */ // No operand predicates
6816 /* 5761 */ // MIs[1] const
6817 /* 5761 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
6818 /* 5765 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
6819 /* 5769 */ // MIs[2] imm
6820 /* 5769 */ // No operand predicates
6821 /* 5769 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
6822 /* 5771 */ // Combiner Rule #65: narrow_binop_sub
6823 /* 5771 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner25),
6824 /* 5774 */ // Label 300: @5774
6825 /* 5774 */ GIM_Try, /*On fail goto*//*Label 301*/ GIMT_Encode4(5806), // Rule ID 415 //
6826 /* 5779 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule249Enabled),
6827 /* 5782 */ // MIs[0] dst
6828 /* 5782 */ // No operand predicates
6829 /* 5782 */ // MIs[0] min
6830 /* 5782 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6831 /* 5786 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_UMIN),
6832 /* 5790 */ // MIs[1] x
6833 /* 5790 */ // No operand predicates
6834 /* 5790 */ // MIs[1] y
6835 /* 5790 */ // No operand predicates
6836 /* 5790 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner15),
6837 /* 5794 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6838 /* 5796 */ // Combiner Rule #249: trunc_usatu
6839 /* 5796 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_TRUNC_USAT_U),
6840 /* 5799 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
6841 /* 5801 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
6842 /* 5805 */ GIR_EraseRootFromParent_Done,
6843 /* 5806 */ // Label 301: @5806
6844 /* 5806 */ GIM_Try, /*On fail goto*//*Label 302*/ GIMT_Encode4(5835), // Rule ID 71 //
6845 /* 5811 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule69Enabled),
6846 /* 5814 */ // MIs[0] root
6847 /* 5814 */ // No operand predicates
6848 /* 5814 */ // MIs[0] binop
6849 /* 5814 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6850 /* 5818 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_XOR),
6851 /* 5822 */ // MIs[1] x
6852 /* 5822 */ // No operand predicates
6853 /* 5822 */ // MIs[1] const
6854 /* 5822 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
6855 /* 5826 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
6856 /* 5830 */ // MIs[2] imm
6857 /* 5830 */ // No operand predicates
6858 /* 5830 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
6859 /* 5832 */ // Combiner Rule #69: narrow_binop_xor
6860 /* 5832 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner25),
6861 /* 5835 */ // Label 302: @5835
6862 /* 5835 */ GIM_Try, /*On fail goto*//*Label 303*/ GIMT_Encode4(5856), // Rule ID 53 //
6863 /* 5840 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule51Enabled),
6864 /* 5843 */ // MIs[0] root
6865 /* 5843 */ // No operand predicates
6866 /* 5843 */ // MIs[0] ext
6867 /* 5843 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6868 /* 5847 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ANYEXT),
6869 /* 5851 */ // MIs[1] src
6870 /* 5851 */ // No operand predicates
6871 /* 5851 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6872 /* 5853 */ // Combiner Rule #51: truncate_of_anyext
6873 /* 5853 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner20),
6874 /* 5856 */ // Label 303: @5856
6875 /* 5856 */ GIM_Try, /*On fail goto*//*Label 304*/ GIMT_Encode4(5880), // Rule ID 65 //
6876 /* 5861 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule63Enabled),
6877 /* 5864 */ // MIs[0] root
6878 /* 5864 */ // No operand predicates
6879 /* 5864 */ // MIs[0] bv
6880 /* 5864 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6881 /* 5868 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR),
6882 /* 5872 */ GIM_CheckNumOperandsGE, /*MI*/1, /*Expected*/2,
6883 /* 5875 */ // MIs[1] unused
6884 /* 5875 */ // No operand predicates
6885 /* 5875 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6886 /* 5877 */ // Combiner Rule #63: buildvector_of_truncate
6887 /* 5877 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner24),
6888 /* 5880 */ // Label 304: @5880
6889 /* 5880 */ GIM_Try, /*On fail goto*//*Label 305*/ GIMT_Encode4(5901), // Rule ID 52 //
6890 /* 5885 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule50Enabled),
6891 /* 5888 */ // MIs[0] root
6892 /* 5888 */ // No operand predicates
6893 /* 5888 */ // MIs[0] ext
6894 /* 5888 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6895 /* 5892 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SEXT),
6896 /* 5896 */ // MIs[1] src
6897 /* 5896 */ // No operand predicates
6898 /* 5896 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6899 /* 5898 */ // Combiner Rule #50: truncate_of_sext
6900 /* 5898 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner20),
6901 /* 5901 */ // Label 305: @5901
6902 /* 5901 */ GIM_Try, /*On fail goto*//*Label 306*/ GIMT_Encode4(5922), // Rule ID 51 //
6903 /* 5906 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule49Enabled),
6904 /* 5909 */ // MIs[0] root
6905 /* 5909 */ // No operand predicates
6906 /* 5909 */ // MIs[0] ext
6907 /* 5909 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6908 /* 5913 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ZEXT),
6909 /* 5917 */ // MIs[1] src
6910 /* 5917 */ // No operand predicates
6911 /* 5917 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6912 /* 5919 */ // Combiner Rule #49: truncate_of_zext
6913 /* 5919 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner20),
6914 /* 5922 */ // Label 306: @5922
6915 /* 5922 */ GIM_Try, /*On fail goto*//*Label 307*/ GIMT_Encode4(5943), // Rule ID 93 //
6916 /* 5927 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule83Enabled),
6917 /* 5930 */ // MIs[0] dst
6918 /* 5930 */ // No operand predicates
6919 /* 5930 */ // MIs[0] __unary_undef_to_undef_match_0.x
6920 /* 5930 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6921 /* 5934 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
6922 /* 5938 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6923 /* 5940 */ // Combiner Rule #83: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[0]]
6924 /* 5940 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner38),
6925 /* 5943 */ // Label 307: @5943
6926 /* 5943 */ GIM_Try, /*On fail goto*//*Label 308*/ GIMT_Encode4(5964), // Rule ID 72 //
6927 /* 5948 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule70Enabled),
6928 /* 5951 */ // MIs[0] root
6929 /* 5951 */ // No operand predicates
6930 /* 5951 */ // MIs[0] int
6931 /* 5951 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6932 /* 5955 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
6933 /* 5959 */ // MIs[1] imm
6934 /* 5959 */ // No operand predicates
6935 /* 5959 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6936 /* 5961 */ // Combiner Rule #70: integer_of_truncate
6937 /* 5961 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner26),
6938 /* 5964 */ // Label 308: @5964
6939 /* 5964 */ GIM_Try, /*On fail goto*//*Label 309*/ GIMT_Encode4(5975), // Rule ID 413 //
6940 /* 5969 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule247Enabled),
6941 /* 5972 */ // MIs[0] dst
6942 /* 5972 */ // No operand predicates
6943 /* 5972 */ // MIs[0] src
6944 /* 5972 */ // No operand predicates
6945 /* 5972 */ // Combiner Rule #247: trunc_ssats
6946 /* 5972 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner154),
6947 /* 5975 */ // Label 309: @5975
6948 /* 5975 */ GIM_Try, /*On fail goto*//*Label 310*/ GIMT_Encode4(5986), // Rule ID 414 //
6949 /* 5980 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule248Enabled),
6950 /* 5983 */ // MIs[0] dst
6951 /* 5983 */ // No operand predicates
6952 /* 5983 */ // MIs[0] src
6953 /* 5983 */ // No operand predicates
6954 /* 5983 */ // Combiner Rule #248: trunc_ssatu
6955 /* 5983 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner155),
6956 /* 5986 */ // Label 310: @5986
6957 /* 5986 */ GIM_Reject,
6958 /* 5987 */ // Label 30: @5987
6959 /* 5987 */ GIM_Try, /*On fail goto*//*Label 311*/ GIMT_Encode4(6019), // Rule ID 416 //
6960 /* 5992 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule250Enabled),
6961 /* 5995 */ // MIs[0] dst
6962 /* 5995 */ // No operand predicates
6963 /* 5995 */ // MIs[0] src
6964 /* 5995 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6965 /* 5999 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FPTOUI),
6966 /* 6003 */ // MIs[1] x
6967 /* 6003 */ // No operand predicates
6968 /* 6003 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner16),
6969 /* 6007 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6970 /* 6009 */ // Combiner Rule #250: truncusatu_to_fptouisat
6971 /* 6009 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FPTOUI_SAT),
6972 /* 6012 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
6973 /* 6014 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
6974 /* 6018 */ GIR_EraseRootFromParent_Done,
6975 /* 6019 */ // Label 311: @6019
6976 /* 6019 */ GIM_Reject,
6977 /* 6020 */ // Label 31: @6020
6978 /* 6020 */ GIM_Try, /*On fail goto*//*Label 312*/ GIMT_Encode4(6031), // Rule ID 289 //
6979 /* 6025 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule190Enabled),
6980 /* 6028 */ // Combiner Rule #190: constant_fold_cast_op; wip_match_opcode 'G_SEXT'
6981 /* 6028 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner106),
6982 /* 6031 */ // Label 312: @6031
6983 /* 6031 */ GIM_Try, /*On fail goto*//*Label 313*/ GIMT_Encode4(6052), // Rule ID 57 //
6984 /* 6036 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule55Enabled),
6985 /* 6039 */ // MIs[0] root
6986 /* 6039 */ // No operand predicates
6987 /* 6039 */ // MIs[0] second
6988 /* 6039 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6989 /* 6043 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ANYEXT),
6990 /* 6047 */ // MIs[1] src
6991 /* 6047 */ // No operand predicates
6992 /* 6047 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6993 /* 6049 */ // Combiner Rule #55: sext_of_anyext
6994 /* 6049 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner21),
6995 /* 6052 */ // Label 313: @6052
6996 /* 6052 */ GIM_Try, /*On fail goto*//*Label 314*/ GIMT_Encode4(6073), // Rule ID 56 //
6997 /* 6057 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule54Enabled),
6998 /* 6060 */ // MIs[0] root
6999 /* 6060 */ // No operand predicates
7000 /* 6060 */ // MIs[0] second
7001 /* 6060 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7002 /* 6064 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SEXT),
7003 /* 6068 */ // MIs[1] src
7004 /* 6068 */ // No operand predicates
7005 /* 6068 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7006 /* 6070 */ // Combiner Rule #54: sext_of_sext
7007 /* 6070 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner21),
7008 /* 6073 */ // Label 314: @6073
7009 /* 6073 */ GIM_Try, /*On fail goto*//*Label 315*/ GIMT_Encode4(6094), // Rule ID 392 //
7010 /* 6078 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule228Enabled),
7011 /* 6081 */ // MIs[0] root
7012 /* 6081 */ // No operand predicates
7013 /* 6081 */ // MIs[0] src
7014 /* 6081 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7015 /* 6085 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_TRUNC),
7016 /* 6089 */ // MIs[1] x
7017 /* 6089 */ // No operand predicates
7018 /* 6089 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7019 /* 6091 */ // Combiner Rule #228: sext_trunc
7020 /* 6091 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner135),
7021 /* 6094 */ // Label 315: @6094
7022 /* 6094 */ GIM_Reject,
7023 /* 6095 */ // Label 32: @6095
7024 /* 6095 */ GIM_Try, /*On fail goto*//*Label 316*/ GIMT_Encode4(6106), // Rule ID 171 //
7025 /* 6100 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule127Enabled),
7026 /* 6103 */ // Combiner Rule #127: sext_inreg_of_load; wip_match_opcode 'G_SEXT_INREG'
7027 /* 6103 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner65),
7028 /* 6106 */ // Label 316: @6106
7029 /* 6106 */ GIM_Try, /*On fail goto*//*Label 317*/ GIMT_Encode4(6117), // Rule ID 181 //
7030 /* 6111 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule137Enabled),
7031 /* 6114 */ // Combiner Rule #137: redundant_sext_inreg; wip_match_opcode 'G_SEXT_INREG'
7032 /* 6114 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner72),
7033 /* 6117 */ // Label 317: @6117
7034 /* 6117 */ GIM_Try, /*On fail goto*//*Label 318*/ GIMT_Encode4(6128), // Rule ID 250 //
7035 /* 6122 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule183Enabled),
7036 /* 6125 */ // Combiner Rule #183: bitfield_extract_from_sext_inreg; wip_match_opcode 'G_SEXT_INREG'
7037 /* 6125 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner99),
7038 /* 6128 */ // Label 318: @6128
7039 /* 6128 */ GIM_Try, /*On fail goto*//*Label 319*/ GIMT_Encode4(6149), // Rule ID 61 //
7040 /* 6133 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule59Enabled),
7041 /* 6136 */ // MIs[0] dst
7042 /* 6136 */ // No operand predicates
7043 /* 6136 */ // MIs[0] x
7044 /* 6136 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7045 /* 6140 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SEXT_INREG),
7046 /* 6144 */ // MIs[1] src
7047 /* 6144 */ // No operand predicates
7048 /* 6144 */ // MIs[1] a
7049 /* 6144 */ // No operand predicates
7050 /* 6144 */ // MIs[0] b
7051 /* 6144 */ // No operand predicates
7052 /* 6144 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7053 /* 6146 */ // Combiner Rule #59: sext_inreg_of_sext_inreg
7054 /* 6146 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner22),
7055 /* 6149 */ // Label 319: @6149
7056 /* 6149 */ GIM_Try, /*On fail goto*//*Label 320*/ GIMT_Encode4(6160), // Rule ID 185 //
7057 /* 6154 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule141Enabled),
7058 /* 6157 */ // MIs[0] dst
7059 /* 6157 */ // No operand predicates
7060 /* 6157 */ // MIs[0] src
7061 /* 6157 */ // No operand predicates
7062 /* 6157 */ // MIs[0] imm
7063 /* 6157 */ // No operand predicates
7064 /* 6157 */ // Combiner Rule #141: sext_inreg_to_zext_inreg
7065 /* 6157 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner76),
7066 /* 6160 */ // Label 320: @6160
7067 /* 6160 */ GIM_Reject,
7068 /* 6161 */ // Label 33: @6161
7069 /* 6161 */ GIM_Try, /*On fail goto*//*Label 321*/ GIMT_Encode4(6172), // Rule ID 184 //
7070 /* 6166 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule140Enabled),
7071 /* 6169 */ // Combiner Rule #140: zext_trunc_fold; wip_match_opcode 'G_ZEXT'
7072 /* 6169 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner75),
7073 /* 6172 */ // Label 321: @6172
7074 /* 6172 */ GIM_Try, /*On fail goto*//*Label 322*/ GIMT_Encode4(6183), // Rule ID 288 //
7075 /* 6177 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule190Enabled),
7076 /* 6180 */ // Combiner Rule #190: constant_fold_cast_op; wip_match_opcode 'G_ZEXT'
7077 /* 6180 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner106),
7078 /* 6183 */ // Label 322: @6183
7079 /* 6183 */ GIM_Try, /*On fail goto*//*Label 323*/ GIMT_Encode4(6204), // Rule ID 62 //
7080 /* 6188 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule60Enabled),
7081 /* 6191 */ // MIs[0] root
7082 /* 6191 */ // No operand predicates
7083 /* 6191 */ // MIs[0] select
7084 /* 6191 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7085 /* 6195 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SELECT),
7086 /* 6199 */ // MIs[1] cond
7087 /* 6199 */ // No operand predicates
7088 /* 6199 */ // MIs[1] true
7089 /* 6199 */ // No operand predicates
7090 /* 6199 */ // MIs[1] false
7091 /* 6199 */ // No operand predicates
7092 /* 6199 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7093 /* 6201 */ // Combiner Rule #60: select_of_zext
7094 /* 6201 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner23),
7095 /* 6204 */ // Label 323: @6204
7096 /* 6204 */ GIM_Try, /*On fail goto*//*Label 324*/ GIMT_Encode4(6225), // Rule ID 55 //
7097 /* 6209 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule53Enabled),
7098 /* 6212 */ // MIs[0] root
7099 /* 6212 */ // No operand predicates
7100 /* 6212 */ // MIs[0] second
7101 /* 6212 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7102 /* 6216 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ANYEXT),
7103 /* 6220 */ // MIs[1] src
7104 /* 6220 */ // No operand predicates
7105 /* 6220 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7106 /* 6222 */ // Combiner Rule #53: zext_of_anyext
7107 /* 6222 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner21),
7108 /* 6225 */ // Label 324: @6225
7109 /* 6225 */ GIM_Try, /*On fail goto*//*Label 325*/ GIMT_Encode4(6252), // Rule ID 393 //
7110 /* 6230 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule229Enabled),
7111 /* 6233 */ // MIs[0] root
7112 /* 6233 */ // No operand predicates
7113 /* 6233 */ // MIs[0] src
7114 /* 6233 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7115 /* 6237 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_TRUNC),
7116 /* 6241 */ GIM_MIFlags, /*MI*/1, GIMT_Encode4(MachineInstr::NoUWrap),
7117 /* 6247 */ // MIs[1] x
7118 /* 6247 */ // No operand predicates
7119 /* 6247 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7120 /* 6249 */ // Combiner Rule #229: zext_trunc
7121 /* 6249 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner136),
7122 /* 6252 */ // Label 325: @6252
7123 /* 6252 */ GIM_Try, /*On fail goto*//*Label 326*/ GIMT_Encode4(6273), // Rule ID 54 //
7124 /* 6257 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule52Enabled),
7125 /* 6260 */ // MIs[0] root
7126 /* 6260 */ // No operand predicates
7127 /* 6260 */ // MIs[0] second
7128 /* 6260 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7129 /* 6264 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ZEXT),
7130 /* 6268 */ // MIs[1] src
7131 /* 6268 */ // No operand predicates
7132 /* 6268 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7133 /* 6270 */ // Combiner Rule #52: zext_of_zext
7134 /* 6270 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner21),
7135 /* 6273 */ // Label 326: @6273
7136 /* 6273 */ GIM_Try, /*On fail goto*//*Label 327*/ GIMT_Encode4(6290), // Rule ID 394 //
7137 /* 6278 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule230Enabled),
7138 /* 6281 */ GIM_MIFlags, /*MI*/0, GIMT_Encode4(MachineInstr::NonNeg),
7139 /* 6287 */ // MIs[0] root
7140 /* 6287 */ // No operand predicates
7141 /* 6287 */ // MIs[0] x
7142 /* 6287 */ // No operand predicates
7143 /* 6287 */ // Combiner Rule #230: nneg_zext
7144 /* 6287 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner137),
7145 /* 6290 */ // Label 327: @6290
7146 /* 6290 */ GIM_Reject,
7147 /* 6291 */ // Label 34: @6291
7148 /* 6291 */ GIM_Try, /*On fail goto*//*Label 328*/ GIMT_Encode4(6302), // Rule ID 86 //
7149 /* 6296 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule80Enabled),
7150 /* 6299 */ // Combiner Rule #80: binop_left_undef_to_zero; wip_match_opcode 'G_SHL'
7151 /* 6299 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner36),
7152 /* 6302 */ // Label 328: @6302
7153 /* 6302 */ GIM_Try, /*On fail goto*//*Label 329*/ GIMT_Encode4(6313), // Rule ID 89 //
7154 /* 6307 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule81Enabled),
7155 /* 6310 */ // Combiner Rule #81: binop_right_undef_to_undef; wip_match_opcode 'G_SHL'
7156 /* 6310 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner37),
7157 /* 6313 */ // Label 329: @6313
7158 /* 6313 */ GIM_Try, /*On fail goto*//*Label 330*/ GIMT_Encode4(6324), // Rule ID 221 //
7159 /* 6318 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule169Enabled),
7160 /* 6321 */ // Combiner Rule #169: shift_immed_chain; wip_match_opcode 'G_SHL'
7161 /* 6321 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner91),
7162 /* 6324 */ // Label 330: @6324
7163 /* 6324 */ GIM_Try, /*On fail goto*//*Label 331*/ GIMT_Encode4(6335), // Rule ID 226 //
7164 /* 6329 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule170Enabled),
7165 /* 6332 */ // Combiner Rule #170: shift_of_shifted_logic_chain; wip_match_opcode 'G_SHL'
7166 /* 6332 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner92),
7167 /* 6335 */ // Label 331: @6335
7168 /* 6335 */ GIM_Try, /*On fail goto*//*Label 332*/ GIMT_Encode4(6346), // Rule ID 249 //
7169 /* 6340 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule182Enabled),
7170 /* 6343 */ // Combiner Rule #182: commute_shift; wip_match_opcode 'G_SHL'
7171 /* 6343 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner98),
7172 /* 6346 */ // Label 332: @6346
7173 /* 6346 */ GIM_Try, /*On fail goto*//*Label 333*/ GIMT_Encode4(6357), // Rule ID 263 //
7174 /* 6351 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled),
7175 /* 6354 */ // Combiner Rule #187: constant_fold_binop; wip_match_opcode 'G_SHL'
7176 /* 6354 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103),
7177 /* 6357 */ // Label 333: @6357
7178 /* 6357 */ GIM_Try, /*On fail goto*//*Label 334*/ GIMT_Encode4(6368), // Rule ID 328 //
7179 /* 6362 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
7180 /* 6365 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_SHL'
7181 /* 6365 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
7182 /* 6368 */ // Label 334: @6368
7183 /* 6368 */ GIM_Try, /*On fail goto*//*Label 335*/ GIMT_Encode4(6403), // Rule ID 47 //
7184 /* 6373 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule45Enabled),
7185 /* 6376 */ GIM_MIFlags, /*MI*/0, GIMT_Encode4(MachineInstr::NoSWrap),
7186 /* 6382 */ // MIs[0] root
7187 /* 6382 */ // No operand predicates
7188 /* 6382 */ // MIs[0] left
7189 /* 6382 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7190 /* 6386 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_VSCALE),
7191 /* 6390 */ // MIs[1] imm
7192 /* 6390 */ // No operand predicates
7193 /* 6390 */ // MIs[0] x
7194 /* 6390 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
7195 /* 6394 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
7196 /* 6398 */ // MIs[2] imm1
7197 /* 6398 */ // No operand predicates
7198 /* 6398 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
7199 /* 6400 */ // Combiner Rule #45: shl_of_vscale
7200 /* 6400 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner17),
7201 /* 6403 */ // Label 335: @6403
7202 /* 6403 */ GIM_Try, /*On fail goto*//*Label 336*/ GIMT_Encode4(6443), // Rule ID 124 //
7203 /* 6408 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
7204 /* 6411 */ // MIs[0] dst
7205 /* 6411 */ // No operand predicates
7206 /* 6411 */ // MIs[0] zero
7207 /* 6411 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7208 /* 6415 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
7209 /* 6419 */ // MIs[1] Operand 1
7210 /* 6419 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0),
7211 /* 6430 */ // MIs[0] rhs
7212 /* 6430 */ // No operand predicates
7213 /* 6430 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7214 /* 6435 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7215 /* 6437 */ // Combiner Rule #93: binop_left_to_zero @ [__binop_left_to_zero_match_0[0]]
7216 /* 6437 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7217 /* 6442 */ GIR_EraseRootFromParent_Done,
7218 /* 6443 */ // Label 336: @6443
7219 /* 6443 */ GIM_Try, /*On fail goto*//*Label 337*/ GIMT_Encode4(6466), // Rule ID 114 //
7220 /* 6448 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled),
7221 /* 6451 */ // MIs[0] dst
7222 /* 6451 */ // No operand predicates
7223 /* 6451 */ // MIs[0] lhs
7224 /* 6451 */ // No operand predicates
7225 /* 6451 */ // MIs[0] Operand 2
7226 /* 6451 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
7227 /* 6455 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7228 /* 6460 */ // Combiner Rule #90: right_identity_zero @ [__right_identity_zero_match_0[4]]
7229 /* 6460 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7230 /* 6465 */ GIR_EraseRootFromParent_Done,
7231 /* 6466 */ // Label 337: @6466
7232 /* 6466 */ GIM_Try, /*On fail goto*//*Label 338*/ GIMT_Encode4(6477), // Rule ID 156 //
7233 /* 6471 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule114Enabled),
7234 /* 6474 */ // MIs[0] root
7235 /* 6474 */ // No operand predicates
7236 /* 6474 */ // MIs[0] mi.shifted
7237 /* 6474 */ // No operand predicates
7238 /* 6474 */ // MIs[0] mi.amt
7239 /* 6474 */ // No operand predicates
7240 /* 6474 */ // Combiner Rule #114: shifts_too_big @ [mi[0]]
7241 /* 6474 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner55),
7242 /* 6477 */ // Label 338: @6477
7243 /* 6477 */ GIM_Try, /*On fail goto*//*Label 339*/ GIMT_Encode4(6488), // Rule ID 172 //
7244 /* 6482 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule128Enabled),
7245 /* 6485 */ // MIs[0] dst
7246 /* 6485 */ // No operand predicates
7247 /* 6485 */ // MIs[0] src0
7248 /* 6485 */ // No operand predicates
7249 /* 6485 */ // MIs[0] src1
7250 /* 6485 */ // No operand predicates
7251 /* 6485 */ // Combiner Rule #128: reduce_shl_of_extend
7252 /* 6485 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner66),
7253 /* 6488 */ // Label 339: @6488
7254 /* 6488 */ GIM_Reject,
7255 /* 6489 */ // Label 35: @6489
7256 /* 6489 */ GIM_Try, /*On fail goto*//*Label 340*/ GIMT_Encode4(6500), // Rule ID 91 //
7257 /* 6494 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule81Enabled),
7258 /* 6497 */ // Combiner Rule #81: binop_right_undef_to_undef; wip_match_opcode 'G_LSHR'
7259 /* 6497 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner37),
7260 /* 6500 */ // Label 340: @6500
7261 /* 6500 */ GIM_Try, /*On fail goto*//*Label 341*/ GIMT_Encode4(6511), // Rule ID 223 //
7262 /* 6505 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule169Enabled),
7263 /* 6508 */ // Combiner Rule #169: shift_immed_chain; wip_match_opcode 'G_LSHR'
7264 /* 6508 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner91),
7265 /* 6511 */ // Label 341: @6511
7266 /* 6511 */ GIM_Try, /*On fail goto*//*Label 342*/ GIMT_Encode4(6522), // Rule ID 228 //
7267 /* 6516 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule170Enabled),
7268 /* 6519 */ // Combiner Rule #170: shift_of_shifted_logic_chain; wip_match_opcode 'G_LSHR'
7269 /* 6519 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner92),
7270 /* 6522 */ // Label 342: @6522
7271 /* 6522 */ GIM_Try, /*On fail goto*//*Label 343*/ GIMT_Encode4(6533), // Rule ID 253 //
7272 /* 6527 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule185Enabled),
7273 /* 6530 */ // Combiner Rule #185: bitfield_extract_from_shr; wip_match_opcode 'G_LSHR'
7274 /* 6530 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner101),
7275 /* 6533 */ // Label 343: @6533
7276 /* 6533 */ GIM_Try, /*On fail goto*//*Label 344*/ GIMT_Encode4(6544), // Rule ID 255 //
7277 /* 6538 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule186Enabled),
7278 /* 6541 */ // Combiner Rule #186: bitfield_extract_from_shr_and; wip_match_opcode 'G_LSHR'
7279 /* 6541 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner102),
7280 /* 6544 */ // Label 344: @6544
7281 /* 6544 */ GIM_Try, /*On fail goto*//*Label 345*/ GIMT_Encode4(6555), // Rule ID 260 //
7282 /* 6549 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled),
7283 /* 6552 */ // Combiner Rule #187: constant_fold_binop; wip_match_opcode 'G_LSHR'
7284 /* 6552 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103),
7285 /* 6555 */ // Label 345: @6555
7286 /* 6555 */ GIM_Try, /*On fail goto*//*Label 346*/ GIMT_Encode4(6566), // Rule ID 326 //
7287 /* 6560 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
7288 /* 6563 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_LSHR'
7289 /* 6563 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
7290 /* 6566 */ // Label 346: @6566
7291 /* 6566 */ GIM_Try, /*On fail goto*//*Label 347*/ GIMT_Encode4(6655), // Rule ID 434 //
7292 /* 6571 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule265Enabled),
7293 /* 6574 */ // MIs[0] dst
7294 /* 6574 */ // No operand predicates
7295 /* 6574 */ // MIs[0] sum
7296 /* 6574 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7297 /* 6578 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
7298 /* 6582 */ // MIs[1] inner
7299 /* 6582 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
7300 /* 6586 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ADD),
7301 /* 6590 */ // MIs[2] ext1
7302 /* 6590 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/2, /*OpIdx*/1, // MIs[3]
7303 /* 6594 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_ZEXT),
7304 /* 6598 */ // MIs[3] x
7305 /* 6598 */ GIM_RecordRegType, /*MI*/3, /*Op*/1, /*TempTypeIdx*/255,
7306 /* 6602 */ // MIs[2] ext2
7307 /* 6602 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/4, /*MI*/2, /*OpIdx*/2, // MIs[4]
7308 /* 6606 */ GIM_CheckOpcode, /*MI*/4, GIMT_Encode2(TargetOpcode::G_ZEXT),
7309 /* 6610 */ // MIs[4] y
7310 /* 6610 */ // No operand predicates
7311 /* 6610 */ // MIs[1] Operand 2
7312 /* 6610 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/2, 1,
7313 /* 6614 */ // MIs[0] Operand 2
7314 /* 6614 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 1,
7315 /* 6618 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner22),
7316 /* 6622 */ GIM_CheckIsSafeToFold, /*NumInsns*/4,
7317 /* 6624 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
7318 /* 6627 */ // Combiner Rule #265: avgceil_u_match
7319 /* 6627 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UAVGCEIL),
7320 /* 6630 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
7321 /* 6635 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/3, /*OpIdx*/1, // x
7322 /* 6639 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/4, /*OpIdx*/1, // y
7323 /* 6643 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ZEXT),
7324 /* 6647 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
7325 /* 6651 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
7326 /* 6654 */ GIR_EraseRootFromParent_Done,
7327 /* 6655 */ // Label 347: @6655
7328 /* 6655 */ GIM_Try, /*On fail goto*//*Label 348*/ GIMT_Encode4(6732), // Rule ID 432 //
7329 /* 6660 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule263Enabled),
7330 /* 6663 */ // MIs[0] dst
7331 /* 6663 */ // No operand predicates
7332 /* 6663 */ // MIs[0] sum
7333 /* 6663 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7334 /* 6667 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
7335 /* 6671 */ // MIs[1] ext1
7336 /* 6671 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
7337 /* 6675 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ZEXT),
7338 /* 6679 */ // MIs[2] x
7339 /* 6679 */ GIM_RecordRegType, /*MI*/2, /*Op*/1, /*TempTypeIdx*/255,
7340 /* 6683 */ // MIs[1] ext2
7341 /* 6683 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/1, /*OpIdx*/2, // MIs[3]
7342 /* 6687 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_ZEXT),
7343 /* 6691 */ // MIs[3] y
7344 /* 6691 */ // No operand predicates
7345 /* 6691 */ // MIs[0] Operand 2
7346 /* 6691 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 1,
7347 /* 6695 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner20),
7348 /* 6699 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
7349 /* 6701 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
7350 /* 6704 */ // Combiner Rule #263: avgfloor_u_match
7351 /* 6704 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UAVGFLOOR),
7352 /* 6707 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
7353 /* 6712 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // x
7354 /* 6716 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/3, /*OpIdx*/1, // y
7355 /* 6720 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ZEXT),
7356 /* 6724 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
7357 /* 6728 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
7358 /* 6731 */ GIR_EraseRootFromParent_Done,
7359 /* 6732 */ // Label 348: @6732
7360 /* 6732 */ GIM_Try, /*On fail goto*//*Label 349*/ GIMT_Encode4(6761), // Rule ID 417 //
7361 /* 6737 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule251Enabled),
7362 /* 6740 */ // MIs[0] dst
7363 /* 6740 */ // No operand predicates
7364 /* 6740 */ // MIs[0] d2
7365 /* 6740 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7366 /* 6744 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_TRUNC),
7367 /* 6748 */ // MIs[1] d1
7368 /* 6748 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
7369 /* 6752 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_LSHR),
7370 /* 6756 */ // MIs[2] x
7371 /* 6756 */ // No operand predicates
7372 /* 6756 */ // MIs[2] y
7373 /* 6756 */ // No operand predicates
7374 /* 6756 */ // MIs[0] z
7375 /* 6756 */ // No operand predicates
7376 /* 6756 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
7377 /* 6758 */ // Combiner Rule #251: lshr_of_trunc_of_lshr
7378 /* 6758 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner156),
7379 /* 6761 */ // Label 349: @6761
7380 /* 6761 */ GIM_Try, /*On fail goto*//*Label 350*/ GIMT_Encode4(6801), // Rule ID 125 //
7381 /* 6766 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
7382 /* 6769 */ // MIs[0] dst
7383 /* 6769 */ // No operand predicates
7384 /* 6769 */ // MIs[0] zero
7385 /* 6769 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7386 /* 6773 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
7387 /* 6777 */ // MIs[1] Operand 1
7388 /* 6777 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0),
7389 /* 6788 */ // MIs[0] rhs
7390 /* 6788 */ // No operand predicates
7391 /* 6788 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7392 /* 6793 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7393 /* 6795 */ // Combiner Rule #93: binop_left_to_zero @ [__binop_left_to_zero_match_0[1]]
7394 /* 6795 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7395 /* 6800 */ GIR_EraseRootFromParent_Done,
7396 /* 6801 */ // Label 350: @6801
7397 /* 6801 */ GIM_Try, /*On fail goto*//*Label 351*/ GIMT_Encode4(6824), // Rule ID 116 //
7398 /* 6806 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled),
7399 /* 6809 */ // MIs[0] dst
7400 /* 6809 */ // No operand predicates
7401 /* 6809 */ // MIs[0] lhs
7402 /* 6809 */ // No operand predicates
7403 /* 6809 */ // MIs[0] Operand 2
7404 /* 6809 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
7405 /* 6813 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7406 /* 6818 */ // Combiner Rule #90: right_identity_zero @ [__right_identity_zero_match_0[6]]
7407 /* 6818 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7408 /* 6823 */ GIR_EraseRootFromParent_Done,
7409 /* 6824 */ // Label 351: @6824
7410 /* 6824 */ GIM_Try, /*On fail goto*//*Label 352*/ GIMT_Encode4(6835), // Rule ID 158 //
7411 /* 6829 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule114Enabled),
7412 /* 6832 */ // MIs[0] root
7413 /* 6832 */ // No operand predicates
7414 /* 6832 */ // MIs[0] mi.shifted
7415 /* 6832 */ // No operand predicates
7416 /* 6832 */ // MIs[0] mi.amt
7417 /* 6832 */ // No operand predicates
7418 /* 6832 */ // Combiner Rule #114: shifts_too_big @ [mi[2]]
7419 /* 6832 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner55),
7420 /* 6835 */ // Label 352: @6835
7421 /* 6835 */ GIM_Reject,
7422 /* 6836 */ // Label 36: @6836
7423 /* 6836 */ GIM_Try, /*On fail goto*//*Label 353*/ GIMT_Encode4(6847), // Rule ID 90 //
7424 /* 6841 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule81Enabled),
7425 /* 6844 */ // Combiner Rule #81: binop_right_undef_to_undef; wip_match_opcode 'G_ASHR'
7426 /* 6844 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner37),
7427 /* 6847 */ // Label 353: @6847
7428 /* 6847 */ GIM_Try, /*On fail goto*//*Label 354*/ GIMT_Encode4(6858), // Rule ID 169 //
7429 /* 6852 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule125Enabled),
7430 /* 6855 */ // Combiner Rule #125: shl_ashr_to_sext_inreg; wip_match_opcode 'G_ASHR'
7431 /* 6855 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner64),
7432 /* 6858 */ // Label 354: @6858
7433 /* 6858 */ GIM_Try, /*On fail goto*//*Label 355*/ GIMT_Encode4(6869), // Rule ID 222 //
7434 /* 6863 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule169Enabled),
7435 /* 6866 */ // Combiner Rule #169: shift_immed_chain; wip_match_opcode 'G_ASHR'
7436 /* 6866 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner91),
7437 /* 6869 */ // Label 355: @6869
7438 /* 6869 */ GIM_Try, /*On fail goto*//*Label 356*/ GIMT_Encode4(6880), // Rule ID 227 //
7439 /* 6874 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule170Enabled),
7440 /* 6877 */ // Combiner Rule #170: shift_of_shifted_logic_chain; wip_match_opcode 'G_ASHR'
7441 /* 6877 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner92),
7442 /* 6880 */ // Label 356: @6880
7443 /* 6880 */ GIM_Try, /*On fail goto*//*Label 357*/ GIMT_Encode4(6891), // Rule ID 252 //
7444 /* 6885 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule185Enabled),
7445 /* 6888 */ // Combiner Rule #185: bitfield_extract_from_shr; wip_match_opcode 'G_ASHR'
7446 /* 6888 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner101),
7447 /* 6891 */ // Label 357: @6891
7448 /* 6891 */ GIM_Try, /*On fail goto*//*Label 358*/ GIMT_Encode4(6902), // Rule ID 254 //
7449 /* 6896 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule186Enabled),
7450 /* 6899 */ // Combiner Rule #186: bitfield_extract_from_shr_and; wip_match_opcode 'G_ASHR'
7451 /* 6899 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner102),
7452 /* 6902 */ // Label 358: @6902
7453 /* 6902 */ GIM_Try, /*On fail goto*//*Label 359*/ GIMT_Encode4(6913), // Rule ID 259 //
7454 /* 6907 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled),
7455 /* 6910 */ // Combiner Rule #187: constant_fold_binop; wip_match_opcode 'G_ASHR'
7456 /* 6910 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103),
7457 /* 6913 */ // Label 359: @6913
7458 /* 6913 */ GIM_Try, /*On fail goto*//*Label 360*/ GIMT_Encode4(6924), // Rule ID 327 //
7459 /* 6918 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
7460 /* 6921 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_ASHR'
7461 /* 6921 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
7462 /* 6924 */ // Label 360: @6924
7463 /* 6924 */ GIM_Try, /*On fail goto*//*Label 361*/ GIMT_Encode4(7013), // Rule ID 435 //
7464 /* 6929 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule266Enabled),
7465 /* 6932 */ // MIs[0] dst
7466 /* 6932 */ // No operand predicates
7467 /* 6932 */ // MIs[0] sum
7468 /* 6932 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7469 /* 6936 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
7470 /* 6940 */ // MIs[1] inner
7471 /* 6940 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
7472 /* 6944 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ADD),
7473 /* 6948 */ // MIs[2] ext1
7474 /* 6948 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/2, /*OpIdx*/1, // MIs[3]
7475 /* 6952 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_SEXT),
7476 /* 6956 */ // MIs[3] x
7477 /* 6956 */ GIM_RecordRegType, /*MI*/3, /*Op*/1, /*TempTypeIdx*/255,
7478 /* 6960 */ // MIs[2] ext2
7479 /* 6960 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/4, /*MI*/2, /*OpIdx*/2, // MIs[4]
7480 /* 6964 */ GIM_CheckOpcode, /*MI*/4, GIMT_Encode2(TargetOpcode::G_SEXT),
7481 /* 6968 */ // MIs[4] y
7482 /* 6968 */ // No operand predicates
7483 /* 6968 */ // MIs[1] Operand 2
7484 /* 6968 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/2, 1,
7485 /* 6972 */ // MIs[0] Operand 2
7486 /* 6972 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 1,
7487 /* 6976 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner23),
7488 /* 6980 */ GIM_CheckIsSafeToFold, /*NumInsns*/4,
7489 /* 6982 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
7490 /* 6985 */ // Combiner Rule #266: avgceil_s_match
7491 /* 6985 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SAVGCEIL),
7492 /* 6988 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
7493 /* 6993 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/3, /*OpIdx*/1, // x
7494 /* 6997 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/4, /*OpIdx*/1, // y
7495 /* 7001 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SEXT),
7496 /* 7005 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
7497 /* 7009 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
7498 /* 7012 */ GIR_EraseRootFromParent_Done,
7499 /* 7013 */ // Label 361: @7013
7500 /* 7013 */ GIM_Try, /*On fail goto*//*Label 362*/ GIMT_Encode4(7090), // Rule ID 433 //
7501 /* 7018 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule264Enabled),
7502 /* 7021 */ // MIs[0] dst
7503 /* 7021 */ // No operand predicates
7504 /* 7021 */ // MIs[0] sum
7505 /* 7021 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7506 /* 7025 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
7507 /* 7029 */ // MIs[1] ext1
7508 /* 7029 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
7509 /* 7033 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SEXT),
7510 /* 7037 */ // MIs[2] x
7511 /* 7037 */ GIM_RecordRegType, /*MI*/2, /*Op*/1, /*TempTypeIdx*/255,
7512 /* 7041 */ // MIs[1] ext2
7513 /* 7041 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/1, /*OpIdx*/2, // MIs[3]
7514 /* 7045 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_SEXT),
7515 /* 7049 */ // MIs[3] y
7516 /* 7049 */ // No operand predicates
7517 /* 7049 */ // MIs[0] Operand 2
7518 /* 7049 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 1,
7519 /* 7053 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner21),
7520 /* 7057 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
7521 /* 7059 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
7522 /* 7062 */ // Combiner Rule #264: avgfloor_s_match
7523 /* 7062 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SAVGFLOOR),
7524 /* 7065 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
7525 /* 7070 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // x
7526 /* 7074 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/3, /*OpIdx*/1, // y
7527 /* 7078 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SEXT),
7528 /* 7082 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
7529 /* 7086 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
7530 /* 7089 */ GIR_EraseRootFromParent_Done,
7531 /* 7090 */ // Label 362: @7090
7532 /* 7090 */ GIM_Try, /*On fail goto*//*Label 363*/ GIMT_Encode4(7130), // Rule ID 126 //
7533 /* 7095 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
7534 /* 7098 */ // MIs[0] dst
7535 /* 7098 */ // No operand predicates
7536 /* 7098 */ // MIs[0] zero
7537 /* 7098 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7538 /* 7102 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
7539 /* 7106 */ // MIs[1] Operand 1
7540 /* 7106 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0),
7541 /* 7117 */ // MIs[0] rhs
7542 /* 7117 */ // No operand predicates
7543 /* 7117 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7544 /* 7122 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7545 /* 7124 */ // Combiner Rule #93: binop_left_to_zero @ [__binop_left_to_zero_match_0[2]]
7546 /* 7124 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7547 /* 7129 */ GIR_EraseRootFromParent_Done,
7548 /* 7130 */ // Label 363: @7130
7549 /* 7130 */ GIM_Try, /*On fail goto*//*Label 364*/ GIMT_Encode4(7153), // Rule ID 115 //
7550 /* 7135 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled),
7551 /* 7138 */ // MIs[0] dst
7552 /* 7138 */ // No operand predicates
7553 /* 7138 */ // MIs[0] lhs
7554 /* 7138 */ // No operand predicates
7555 /* 7138 */ // MIs[0] Operand 2
7556 /* 7138 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
7557 /* 7142 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7558 /* 7147 */ // Combiner Rule #90: right_identity_zero @ [__right_identity_zero_match_0[5]]
7559 /* 7147 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7560 /* 7152 */ GIR_EraseRootFromParent_Done,
7561 /* 7153 */ // Label 364: @7153
7562 /* 7153 */ GIM_Try, /*On fail goto*//*Label 365*/ GIMT_Encode4(7164), // Rule ID 157 //
7563 /* 7158 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule114Enabled),
7564 /* 7161 */ // MIs[0] root
7565 /* 7161 */ // No operand predicates
7566 /* 7161 */ // MIs[0] mi.shifted
7567 /* 7161 */ // No operand predicates
7568 /* 7161 */ // MIs[0] mi.amt
7569 /* 7161 */ // No operand predicates
7570 /* 7161 */ // Combiner Rule #114: shifts_too_big @ [mi[1]]
7571 /* 7161 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner55),
7572 /* 7164 */ // Label 365: @7164
7573 /* 7164 */ GIM_Reject,
7574 /* 7165 */ // Label 37: @7165
7575 /* 7165 */ GIM_Try, /*On fail goto*//*Label 366*/ GIMT_Encode4(7176), // Rule ID 237 //
7576 /* 7170 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule174Enabled),
7577 /* 7173 */ // Combiner Rule #174: funnel_shift_to_rotate; wip_match_opcode 'G_FSHL'
7578 /* 7173 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner96),
7579 /* 7176 */ // Label 366: @7176
7580 /* 7176 */ GIM_Try, /*On fail goto*//*Label 367*/ GIMT_Encode4(7187), // Rule ID 241 //
7581 /* 7181 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule177Enabled),
7582 /* 7184 */ // Combiner Rule #177: funnel_shift_overshift; wip_match_opcode 'G_FSHL'
7583 /* 7184 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner97),
7584 /* 7187 */ // Label 367: @7187
7585 /* 7187 */ GIM_Try, /*On fail goto*//*Label 368*/ GIMT_Encode4(7207), // Rule ID 240 //
7586 /* 7192 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule176Enabled),
7587 /* 7195 */ // MIs[0] x
7588 /* 7195 */ // No operand predicates
7589 /* 7195 */ // MIs[0] y
7590 /* 7195 */ // No operand predicates
7591 /* 7195 */ // MIs[0] z
7592 /* 7195 */ // No operand predicates
7593 /* 7195 */ // MIs[0] Operand 3
7594 /* 7195 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/3, 0,
7595 /* 7199 */ // Combiner Rule #176: funnel_shift_left_zero
7596 /* 7199 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::COPY),
7597 /* 7202 */ GIR_RootToRootCopy, /*OpIdx*/0, // x
7598 /* 7204 */ GIR_RootToRootCopy, /*OpIdx*/1, // y
7599 /* 7206 */ GIR_EraseRootFromParent_Done,
7600 /* 7207 */ // Label 368: @7207
7601 /* 7207 */ GIM_Reject,
7602 /* 7208 */ // Label 38: @7208
7603 /* 7208 */ GIM_Try, /*On fail goto*//*Label 369*/ GIMT_Encode4(7219), // Rule ID 238 //
7604 /* 7213 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule174Enabled),
7605 /* 7216 */ // Combiner Rule #174: funnel_shift_to_rotate; wip_match_opcode 'G_FSHR'
7606 /* 7216 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner96),
7607 /* 7219 */ // Label 369: @7219
7608 /* 7219 */ GIM_Try, /*On fail goto*//*Label 370*/ GIMT_Encode4(7230), // Rule ID 242 //
7609 /* 7224 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule177Enabled),
7610 /* 7227 */ // Combiner Rule #177: funnel_shift_overshift; wip_match_opcode 'G_FSHR'
7611 /* 7227 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner97),
7612 /* 7230 */ // Label 370: @7230
7613 /* 7230 */ GIM_Try, /*On fail goto*//*Label 371*/ GIMT_Encode4(7250), // Rule ID 239 //
7614 /* 7235 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule175Enabled),
7615 /* 7238 */ // MIs[0] x
7616 /* 7238 */ // No operand predicates
7617 /* 7238 */ // MIs[0] y
7618 /* 7238 */ // No operand predicates
7619 /* 7238 */ // MIs[0] z
7620 /* 7238 */ // No operand predicates
7621 /* 7238 */ // MIs[0] Operand 3
7622 /* 7238 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/3, 0,
7623 /* 7242 */ // Combiner Rule #175: funnel_shift_right_zero
7624 /* 7242 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::COPY),
7625 /* 7245 */ GIR_RootToRootCopy, /*OpIdx*/0, // x
7626 /* 7247 */ GIR_RootToRootCopy, /*OpIdx*/2, // z
7627 /* 7249 */ GIR_EraseRootFromParent_Done,
7628 /* 7250 */ // Label 371: @7250
7629 /* 7250 */ GIM_Reject,
7630 /* 7251 */ // Label 39: @7251
7631 /* 7251 */ GIM_Try, /*On fail goto*//*Label 372*/ GIMT_Encode4(7274), // Rule ID 119 //
7632 /* 7256 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled),
7633 /* 7259 */ // MIs[0] dst
7634 /* 7259 */ // No operand predicates
7635 /* 7259 */ // MIs[0] lhs
7636 /* 7259 */ // No operand predicates
7637 /* 7259 */ // MIs[0] Operand 2
7638 /* 7259 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
7639 /* 7263 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7640 /* 7268 */ // Combiner Rule #90: right_identity_zero @ [__right_identity_zero_match_0[9]]
7641 /* 7268 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7642 /* 7273 */ GIR_EraseRootFromParent_Done,
7643 /* 7274 */ // Label 372: @7274
7644 /* 7274 */ GIM_Reject,
7645 /* 7275 */ // Label 40: @7275
7646 /* 7275 */ GIM_Try, /*On fail goto*//*Label 373*/ GIMT_Encode4(7298), // Rule ID 118 //
7647 /* 7280 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled),
7648 /* 7283 */ // MIs[0] dst
7649 /* 7283 */ // No operand predicates
7650 /* 7283 */ // MIs[0] lhs
7651 /* 7283 */ // No operand predicates
7652 /* 7283 */ // MIs[0] Operand 2
7653 /* 7283 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
7654 /* 7287 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7655 /* 7292 */ // Combiner Rule #90: right_identity_zero @ [__right_identity_zero_match_0[8]]
7656 /* 7292 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7657 /* 7297 */ GIR_EraseRootFromParent_Done,
7658 /* 7298 */ // Label 373: @7298
7659 /* 7298 */ GIM_Reject,
7660 /* 7299 */ // Label 41: @7299
7661 /* 7299 */ GIM_Try, /*On fail goto*//*Label 374*/ GIMT_Encode4(7310), // Rule ID 164 //
7662 /* 7304 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule120Enabled),
7663 /* 7307 */ // Combiner Rule #120: icmp_to_true_false_known_bits; wip_match_opcode 'G_ICMP'
7664 /* 7307 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner61),
7665 /* 7310 */ // Label 374: @7310
7666 /* 7310 */ GIM_Try, /*On fail goto*//*Label 375*/ GIMT_Encode4(7321), // Rule ID 165 //
7667 /* 7315 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule121Enabled),
7668 /* 7318 */ // Combiner Rule #121: icmp_to_lhs_known_bits; wip_match_opcode 'G_ICMP'
7669 /* 7318 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner62),
7670 /* 7321 */ // Label 375: @7321
7671 /* 7321 */ GIM_Try, /*On fail goto*//*Label 376*/ GIMT_Encode4(7332), // Rule ID 168 //
7672 /* 7326 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule124Enabled),
7673 /* 7329 */ // Combiner Rule #124: redundant_binop_in_equality; wip_match_opcode 'G_ICMP'
7674 /* 7329 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner63),
7675 /* 7332 */ // Label 376: @7332
7676 /* 7332 */ GIM_Try, /*On fail goto*//*Label 377*/ GIMT_Encode4(7343), // Rule ID 162 //
7677 /* 7337 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule118Enabled),
7678 /* 7340 */ // MIs[0] root
7679 /* 7340 */ // No operand predicates
7680 /* 7340 */ // MIs[0] pred
7681 /* 7340 */ // No operand predicates
7682 /* 7340 */ // MIs[0] lhs
7683 /* 7340 */ // No operand predicates
7684 /* 7340 */ // MIs[0] rhs
7685 /* 7340 */ // No operand predicates
7686 /* 7340 */ // Combiner Rule #118: canonicalize_icmp
7687 /* 7340 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner59),
7688 /* 7343 */ // Label 377: @7343
7689 /* 7343 */ GIM_Reject,
7690 /* 7344 */ // Label 42: @7344
7691 /* 7344 */ GIM_Try, /*On fail goto*//*Label 378*/ GIMT_Encode4(7355), // Rule ID 163 //
7692 /* 7349 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule119Enabled),
7693 /* 7352 */ // MIs[0] root
7694 /* 7352 */ // No operand predicates
7695 /* 7352 */ // MIs[0] pred
7696 /* 7352 */ // No operand predicates
7697 /* 7352 */ // MIs[0] lhs
7698 /* 7352 */ // No operand predicates
7699 /* 7352 */ // MIs[0] rhs
7700 /* 7352 */ // No operand predicates
7701 /* 7352 */ // Combiner Rule #119: canonicalize_fcmp
7702 /* 7352 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner60),
7703 /* 7355 */ // Label 378: @7355
7704 /* 7355 */ GIM_Reject,
7705 /* 7356 */ // Label 43: @7356
7706 /* 7356 */ GIM_Try, /*On fail goto*//*Label 379*/ GIMT_Encode4(7367), // Rule ID 109 //
7707 /* 7361 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule89Enabled),
7708 /* 7364 */ // Combiner Rule #89: select_same_val; wip_match_opcode 'G_SELECT'
7709 /* 7364 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner44),
7710 /* 7367 */ // Label 379: @7367
7711 /* 7367 */ GIM_Try, /*On fail goto*//*Label 380*/ GIMT_Encode4(7378), // Rule ID 175 //
7712 /* 7372 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule131Enabled),
7713 /* 7375 */ // Combiner Rule #131: select_constant_cmp; wip_match_opcode 'G_SELECT'
7714 /* 7375 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner68),
7715 /* 7378 */ // Label 380: @7378
7716 /* 7378 */ GIM_Try, /*On fail goto*//*Label 381*/ GIMT_Encode4(7389), // Rule ID 177 //
7717 /* 7383 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule133Enabled),
7718 /* 7386 */ // Combiner Rule #133: match_selects; wip_match_opcode 'G_SELECT'
7719 /* 7386 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner70),
7720 /* 7389 */ // Label 381: @7389
7721 /* 7389 */ GIM_Try, /*On fail goto*//*Label 382*/ GIMT_Encode4(7400), // Rule ID 351 //
7722 /* 7394 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule214Enabled),
7723 /* 7397 */ // Combiner Rule #214: select_to_minmax; wip_match_opcode 'G_SELECT'
7724 /* 7397 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner127),
7725 /* 7400 */ // Label 382: @7400
7726 /* 7400 */ GIM_Try, /*On fail goto*//*Label 383*/ GIMT_Encode4(7449), // Rule ID 178 //
7727 /* 7405 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule134Enabled),
7728 /* 7408 */ // MIs[0] dst
7729 /* 7408 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
7730 /* 7412 */ // MIs[0] c
7731 /* 7412 */ // No operand predicates
7732 /* 7412 */ // MIs[0] x
7733 /* 7412 */ // No operand predicates
7734 /* 7412 */ // MIs[0] Operand 3
7735 /* 7412 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/3, 0,
7736 /* 7416 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner12),
7737 /* 7420 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
7738 /* 7423 */ // Combiner Rule #134: select_zero_false
7739 /* 7423 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FREEZE),
7740 /* 7426 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
7741 /* 7431 */ GIR_RootToRootCopy, /*OpIdx*/2, // x
7742 /* 7433 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_AND),
7743 /* 7437 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
7744 /* 7441 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/1, // c
7745 /* 7445 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
7746 /* 7448 */ GIR_EraseRootFromParent_Done,
7747 /* 7449 */ // Label 383: @7449
7748 /* 7449 */ GIM_Try, /*On fail goto*//*Label 384*/ GIMT_Encode4(7470), // Rule ID 176 //
7749 /* 7454 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule132Enabled),
7750 /* 7457 */ // MIs[0] root
7751 /* 7457 */ // No operand predicates
7752 /* 7457 */ // MIs[0] tst
7753 /* 7457 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7754 /* 7461 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ICMP),
7755 /* 7465 */ // MIs[1] tst1
7756 /* 7465 */ // No operand predicates
7757 /* 7465 */ // MIs[1] a
7758 /* 7465 */ // No operand predicates
7759 /* 7465 */ // MIs[1] b
7760 /* 7465 */ // No operand predicates
7761 /* 7465 */ // MIs[0] x
7762 /* 7465 */ // No operand predicates
7763 /* 7465 */ // MIs[0] y
7764 /* 7465 */ // No operand predicates
7765 /* 7465 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7766 /* 7467 */ // Combiner Rule #132: select_to_iminmax
7767 /* 7467 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner69),
7768 /* 7470 */ // Label 384: @7470
7769 /* 7470 */ GIM_Try, /*On fail goto*//*Label 385*/ GIMT_Encode4(7506), // Rule ID 179 //
7770 /* 7475 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule135Enabled),
7771 /* 7478 */ // MIs[0] dst
7772 /* 7478 */ // No operand predicates
7773 /* 7478 */ // MIs[0] c
7774 /* 7478 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7775 /* 7482 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_XOR),
7776 /* 7486 */ // MIs[1] src
7777 /* 7486 */ // No operand predicates
7778 /* 7486 */ // MIs[1] Operand 2
7779 /* 7486 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/2, 255,
7780 /* 7490 */ // MIs[0] x
7781 /* 7490 */ // No operand predicates
7782 /* 7490 */ // MIs[0] y
7783 /* 7490 */ // No operand predicates
7784 /* 7490 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7785 /* 7492 */ // Combiner Rule #135: select_not
7786 /* 7492 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SELECT),
7787 /* 7495 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
7788 /* 7497 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // src
7789 /* 7501 */ GIR_RootToRootCopy, /*OpIdx*/3, // y
7790 /* 7503 */ GIR_RootToRootCopy, /*OpIdx*/2, // x
7791 /* 7505 */ GIR_EraseRootFromParent_Done,
7792 /* 7506 */ // Label 385: @7506
7793 /* 7506 */ GIM_Try, /*On fail goto*//*Label 386*/ GIMT_Encode4(7535), // Rule ID 174 //
7794 /* 7511 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule130Enabled),
7795 /* 7514 */ // MIs[0] dst
7796 /* 7514 */ // No operand predicates
7797 /* 7514 */ // MIs[0] undef
7798 /* 7514 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7799 /* 7518 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
7800 /* 7522 */ // MIs[0] x
7801 /* 7522 */ // No operand predicates
7802 /* 7522 */ // MIs[0] y
7803 /* 7522 */ // No operand predicates
7804 /* 7522 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/3,
7805 /* 7527 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7806 /* 7529 */ // Combiner Rule #130: select_undef_cmp
7807 /* 7529 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/3,
7808 /* 7534 */ GIR_EraseRootFromParent_Done,
7809 /* 7535 */ // Label 386: @7535
7810 /* 7535 */ GIM_Reject,
7811 /* 7536 */ // Label 44: @7536
7812 /* 7536 */ GIM_Try, /*On fail goto*//*Label 387*/ GIMT_Encode4(7547), // Rule ID 362 //
7813 /* 7541 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
7814 /* 7544 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_UADDO'
7815 /* 7544 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129),
7816 /* 7547 */ // Label 387: @7547
7817 /* 7547 */ GIM_Try, /*On fail goto*//*Label 388*/ GIMT_Encode4(7558), // Rule ID 410 //
7818 /* 7552 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule245Enabled),
7819 /* 7555 */ // Combiner Rule #245: match_addos; wip_match_opcode 'G_UADDO'
7820 /* 7555 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner152),
7821 /* 7558 */ // Label 388: @7558
7822 /* 7558 */ GIM_Reject,
7823 /* 7559 */ // Label 45: @7559
7824 /* 7559 */ GIM_Try, /*On fail goto*//*Label 389*/ GIMT_Encode4(7570), // Rule ID 210 //
7825 /* 7564 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule164Enabled),
7826 /* 7567 */ // Combiner Rule #164: adde_to_addo; wip_match_opcode 'G_UADDE'
7827 /* 7567 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner86),
7828 /* 7570 */ // Label 389: @7570
7829 /* 7570 */ GIM_Reject,
7830 /* 7571 */ // Label 46: @7571
7831 /* 7571 */ GIM_Try, /*On fail goto*//*Label 390*/ GIMT_Encode4(7582), // Rule ID 412 //
7832 /* 7576 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule246Enabled),
7833 /* 7579 */ // Combiner Rule #246: match_subo_no_overflow; wip_match_opcode 'G_USUBO'
7834 /* 7579 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner153),
7835 /* 7582 */ // Label 390: @7582
7836 /* 7582 */ GIM_Reject,
7837 /* 7583 */ // Label 47: @7583
7838 /* 7583 */ GIM_Try, /*On fail goto*//*Label 391*/ GIMT_Encode4(7594), // Rule ID 212 //
7839 /* 7588 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule164Enabled),
7840 /* 7591 */ // Combiner Rule #164: adde_to_addo; wip_match_opcode 'G_USUBE'
7841 /* 7591 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner86),
7842 /* 7594 */ // Label 391: @7594
7843 /* 7594 */ GIM_Reject,
7844 /* 7595 */ // Label 48: @7595
7845 /* 7595 */ GIM_Try, /*On fail goto*//*Label 392*/ GIMT_Encode4(7606), // Rule ID 363 //
7846 /* 7600 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
7847 /* 7603 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_SADDO'
7848 /* 7603 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129),
7849 /* 7606 */ // Label 392: @7606
7850 /* 7606 */ GIM_Try, /*On fail goto*//*Label 393*/ GIMT_Encode4(7617), // Rule ID 409 //
7851 /* 7611 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule245Enabled),
7852 /* 7614 */ // Combiner Rule #245: match_addos; wip_match_opcode 'G_SADDO'
7853 /* 7614 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner152),
7854 /* 7617 */ // Label 393: @7617
7855 /* 7617 */ GIM_Reject,
7856 /* 7618 */ // Label 49: @7618
7857 /* 7618 */ GIM_Try, /*On fail goto*//*Label 394*/ GIMT_Encode4(7629), // Rule ID 211 //
7858 /* 7623 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule164Enabled),
7859 /* 7626 */ // Combiner Rule #164: adde_to_addo; wip_match_opcode 'G_SADDE'
7860 /* 7626 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner86),
7861 /* 7629 */ // Label 394: @7629
7862 /* 7629 */ GIM_Reject,
7863 /* 7630 */ // Label 50: @7630
7864 /* 7630 */ GIM_Try, /*On fail goto*//*Label 395*/ GIMT_Encode4(7641), // Rule ID 411 //
7865 /* 7635 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule246Enabled),
7866 /* 7638 */ // Combiner Rule #246: match_subo_no_overflow; wip_match_opcode 'G_SSUBO'
7867 /* 7638 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner153),
7868 /* 7641 */ // Label 395: @7641
7869 /* 7641 */ GIM_Reject,
7870 /* 7642 */ // Label 51: @7642
7871 /* 7642 */ GIM_Try, /*On fail goto*//*Label 396*/ GIMT_Encode4(7653), // Rule ID 213 //
7872 /* 7647 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule164Enabled),
7873 /* 7650 */ // Combiner Rule #164: adde_to_addo; wip_match_opcode 'G_SSUBE'
7874 /* 7650 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner86),
7875 /* 7653 */ // Label 396: @7653
7876 /* 7653 */ GIM_Reject,
7877 /* 7654 */ // Label 52: @7654
7878 /* 7654 */ GIM_Try, /*On fail goto*//*Label 397*/ GIMT_Encode4(7665), // Rule ID 206 //
7879 /* 7659 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule162Enabled),
7880 /* 7662 */ // Combiner Rule #162: mulo_by_2; wip_match_opcode 'G_UMULO'
7881 /* 7662 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner84),
7882 /* 7665 */ // Label 397: @7665
7883 /* 7665 */ GIM_Try, /*On fail goto*//*Label 398*/ GIMT_Encode4(7676), // Rule ID 208 //
7884 /* 7670 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule163Enabled),
7885 /* 7673 */ // Combiner Rule #163: mulo_by_0; wip_match_opcode 'G_UMULO'
7886 /* 7673 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner85),
7887 /* 7676 */ // Label 398: @7676
7888 /* 7676 */ GIM_Try, /*On fail goto*//*Label 399*/ GIMT_Encode4(7687), // Rule ID 364 //
7889 /* 7681 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
7890 /* 7684 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_UMULO'
7891 /* 7684 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129),
7892 /* 7687 */ // Label 399: @7687
7893 /* 7687 */ GIM_Reject,
7894 /* 7688 */ // Label 53: @7688
7895 /* 7688 */ GIM_Try, /*On fail goto*//*Label 400*/ GIMT_Encode4(7699), // Rule ID 207 //
7896 /* 7693 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule162Enabled),
7897 /* 7696 */ // Combiner Rule #162: mulo_by_2; wip_match_opcode 'G_SMULO'
7898 /* 7696 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner84),
7899 /* 7699 */ // Label 400: @7699
7900 /* 7699 */ GIM_Try, /*On fail goto*//*Label 401*/ GIMT_Encode4(7710), // Rule ID 209 //
7901 /* 7704 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule163Enabled),
7902 /* 7707 */ // Combiner Rule #163: mulo_by_0; wip_match_opcode 'G_SMULO'
7903 /* 7707 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner85),
7904 /* 7710 */ // Label 401: @7710
7905 /* 7710 */ GIM_Try, /*On fail goto*//*Label 402*/ GIMT_Encode4(7721), // Rule ID 365 //
7906 /* 7715 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
7907 /* 7718 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_SMULO'
7908 /* 7718 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129),
7909 /* 7721 */ // Label 402: @7721
7910 /* 7721 */ GIM_Reject,
7911 /* 7722 */ // Label 54: @7722
7912 /* 7722 */ GIM_Try, /*On fail goto*//*Label 403*/ GIMT_Encode4(7733), // Rule ID 300 //
7913 /* 7727 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule193Enabled),
7914 /* 7730 */ // Combiner Rule #193: mulh_to_lshr; wip_match_opcode 'G_UMULH'
7915 /* 7730 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner108),
7916 /* 7733 */ // Label 403: @7733
7917 /* 7733 */ GIM_Try, /*On fail goto*//*Label 404*/ GIMT_Encode4(7744), // Rule ID 366 //
7918 /* 7738 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
7919 /* 7741 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_UMULH'
7920 /* 7741 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129),
7921 /* 7744 */ // Label 404: @7744
7922 /* 7744 */ GIM_Reject,
7923 /* 7745 */ // Label 55: @7745
7924 /* 7745 */ GIM_Try, /*On fail goto*//*Label 405*/ GIMT_Encode4(7756), // Rule ID 367 //
7925 /* 7750 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
7926 /* 7753 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_SMULH'
7927 /* 7753 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129),
7928 /* 7756 */ // Label 405: @7756
7929 /* 7756 */ GIM_Reject,
7930 /* 7757 */ // Label 56: @7757
7931 /* 7757 */ GIM_Try, /*On fail goto*//*Label 406*/ GIMT_Encode4(7768), // Rule ID 368 //
7932 /* 7762 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
7933 /* 7765 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_UADDSAT'
7934 /* 7765 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129),
7935 /* 7768 */ // Label 406: @7768
7936 /* 7768 */ GIM_Reject,
7937 /* 7769 */ // Label 57: @7769
7938 /* 7769 */ GIM_Try, /*On fail goto*//*Label 407*/ GIMT_Encode4(7780), // Rule ID 369 //
7939 /* 7774 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
7940 /* 7777 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_SADDSAT'
7941 /* 7777 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129),
7942 /* 7780 */ // Label 407: @7780
7943 /* 7780 */ GIM_Reject,
7944 /* 7781 */ // Label 58: @7781
7945 /* 7781 */ GIM_Try, /*On fail goto*//*Label 408*/ GIMT_Encode4(7792), // Rule ID 225 //
7946 /* 7786 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule169Enabled),
7947 /* 7789 */ // Combiner Rule #169: shift_immed_chain; wip_match_opcode 'G_USHLSAT'
7948 /* 7789 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner91),
7949 /* 7792 */ // Label 408: @7792
7950 /* 7792 */ GIM_Try, /*On fail goto*//*Label 409*/ GIMT_Encode4(7803), // Rule ID 229 //
7951 /* 7797 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule170Enabled),
7952 /* 7800 */ // Combiner Rule #170: shift_of_shifted_logic_chain; wip_match_opcode 'G_USHLSAT'
7953 /* 7800 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner92),
7954 /* 7803 */ // Label 409: @7803
7955 /* 7803 */ GIM_Reject,
7956 /* 7804 */ // Label 59: @7804
7957 /* 7804 */ GIM_Try, /*On fail goto*//*Label 410*/ GIMT_Encode4(7815), // Rule ID 224 //
7958 /* 7809 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule169Enabled),
7959 /* 7812 */ // Combiner Rule #169: shift_immed_chain; wip_match_opcode 'G_SSHLSAT'
7960 /* 7812 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner91),
7961 /* 7815 */ // Label 410: @7815
7962 /* 7815 */ GIM_Try, /*On fail goto*//*Label 411*/ GIMT_Encode4(7826), // Rule ID 230 //
7963 /* 7820 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule170Enabled),
7964 /* 7823 */ // Combiner Rule #170: shift_of_shifted_logic_chain; wip_match_opcode 'G_SSHLSAT'
7965 /* 7823 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner92),
7966 /* 7826 */ // Label 411: @7826
7967 /* 7826 */ GIM_Reject,
7968 /* 7827 */ // Label 60: @7827
7969 /* 7827 */ GIM_Try, /*On fail goto*//*Label 412*/ GIMT_Encode4(7838), // Rule ID 370 //
7970 /* 7832 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
7971 /* 7835 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_SMULFIX'
7972 /* 7835 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129),
7973 /* 7838 */ // Label 412: @7838
7974 /* 7838 */ GIM_Reject,
7975 /* 7839 */ // Label 61: @7839
7976 /* 7839 */ GIM_Try, /*On fail goto*//*Label 413*/ GIMT_Encode4(7850), // Rule ID 371 //
7977 /* 7844 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
7978 /* 7847 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_UMULFIX'
7979 /* 7847 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129),
7980 /* 7850 */ // Label 413: @7850
7981 /* 7850 */ GIM_Reject,
7982 /* 7851 */ // Label 62: @7851
7983 /* 7851 */ GIM_Try, /*On fail goto*//*Label 414*/ GIMT_Encode4(7862), // Rule ID 372 //
7984 /* 7856 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
7985 /* 7859 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_SMULFIXSAT'
7986 /* 7859 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129),
7987 /* 7862 */ // Label 414: @7862
7988 /* 7862 */ GIM_Reject,
7989 /* 7863 */ // Label 63: @7863
7990 /* 7863 */ GIM_Try, /*On fail goto*//*Label 415*/ GIMT_Encode4(7874), // Rule ID 373 //
7991 /* 7868 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
7992 /* 7871 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_UMULFIXSAT'
7993 /* 7871 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129),
7994 /* 7874 */ // Label 415: @7874
7995 /* 7874 */ GIM_Reject,
7996 /* 7875 */ // Label 64: @7875
7997 /* 7875 */ GIM_Try, /*On fail goto*//*Label 416*/ GIMT_Encode4(7886), // Rule ID 301 //
7998 /* 7880 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
7999 /* 7883 */ // Combiner Rule #194: redundant_neg_operands; wip_match_opcode 'G_FADD'
8000 /* 7883 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner109),
8001 /* 7886 */ // Label 416: @7886
8002 /* 7886 */ GIM_Try, /*On fail goto*//*Label 417*/ GIMT_Encode4(7897), // Rule ID 308 //
8003 /* 7891 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule196Enabled),
8004 /* 7894 */ // Combiner Rule #196: combine_fadd_fmul_to_fmad_or_fma; wip_match_opcode 'G_FADD'
8005 /* 7894 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner111),
8006 /* 7897 */ // Label 417: @7897
8007 /* 7897 */ GIM_Try, /*On fail goto*//*Label 418*/ GIMT_Encode4(7908), // Rule ID 309 //
8008 /* 7902 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule197Enabled),
8009 /* 7905 */ // Combiner Rule #197: combine_fadd_fpext_fmul_to_fmad_or_fma; wip_match_opcode 'G_FADD'
8010 /* 7905 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner112),
8011 /* 7908 */ // Label 418: @7908
8012 /* 7908 */ GIM_Try, /*On fail goto*//*Label 419*/ GIMT_Encode4(7919), // Rule ID 310 //
8013 /* 7913 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule198Enabled),
8014 /* 7916 */ // Combiner Rule #198: combine_fadd_fma_fmul_to_fmad_or_fma; wip_match_opcode 'G_FADD'
8015 /* 7916 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner113),
8016 /* 7919 */ // Label 419: @7919
8017 /* 7919 */ GIM_Try, /*On fail goto*//*Label 420*/ GIMT_Encode4(7930), // Rule ID 311 //
8018 /* 7924 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule199Enabled),
8019 /* 7927 */ // Combiner Rule #199: combine_fadd_fpext_fma_fmul_to_fmad_or_fma; wip_match_opcode 'G_FADD'
8020 /* 7927 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner114),
8021 /* 7930 */ // Label 420: @7930
8022 /* 7930 */ GIM_Try, /*On fail goto*//*Label 421*/ GIMT_Encode4(7941), // Rule ID 334 //
8023 /* 7935 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
8024 /* 7938 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_FADD'
8025 /* 7938 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
8026 /* 7941 */ // Label 421: @7941
8027 /* 7941 */ GIM_Try, /*On fail goto*//*Label 422*/ GIMT_Encode4(7952), // Rule ID 374 //
8028 /* 7946 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule217Enabled),
8029 /* 7949 */ // Combiner Rule #217: commute_fp_constant_to_rhs; wip_match_opcode 'G_FADD'
8030 /* 7949 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner130),
8031 /* 7952 */ // Label 422: @7952
8032 /* 7952 */ GIM_Try, /*On fail goto*//*Label 423*/ GIMT_Encode4(7975), // Rule ID 148 //
8033 /* 7957 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule108Enabled),
8034 /* 7960 */ // MIs[0] dst
8035 /* 7960 */ // No operand predicates
8036 /* 7960 */ // MIs[0] x
8037 /* 7960 */ // No operand predicates
8038 /* 7960 */ // MIs[0] y
8039 /* 7960 */ // No operand predicates
8040 /* 7960 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner6),
8041 /* 7964 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8042 /* 7969 */ // Combiner Rule #108: right_identity_neg_zero_fp
8043 /* 7969 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8044 /* 7974 */ GIR_EraseRootFromParent_Done,
8045 /* 7975 */ // Label 423: @7975
8046 /* 7975 */ GIM_Try, /*On fail goto*//*Label 424*/ GIMT_Encode4(8004), // Rule ID 149 //
8047 /* 7980 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule109Enabled),
8048 /* 7983 */ GIM_MIFlags, /*MI*/0, GIMT_Encode4(MachineInstr::FmNsz),
8049 /* 7989 */ // MIs[0] dst
8050 /* 7989 */ // No operand predicates
8051 /* 7989 */ // MIs[0] x
8052 /* 7989 */ // No operand predicates
8053 /* 7989 */ // MIs[0] y
8054 /* 7989 */ // No operand predicates
8055 /* 7989 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner7),
8056 /* 7993 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8057 /* 7998 */ // Combiner Rule #109: right_identity_neg_zero_fp_nsz
8058 /* 7998 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8059 /* 8003 */ GIR_EraseRootFromParent_Done,
8060 /* 8004 */ // Label 424: @8004
8061 /* 8004 */ GIM_Try, /*On fail goto*//*Label 425*/ GIMT_Encode4(8015), // Rule ID 274 //
8062 /* 8009 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule188Enabled),
8063 /* 8012 */ // MIs[0] d
8064 /* 8012 */ // No operand predicates
8065 /* 8012 */ // MIs[0] mi.src0
8066 /* 8012 */ // No operand predicates
8067 /* 8012 */ // MIs[0] mi.src1
8068 /* 8012 */ // No operand predicates
8069 /* 8012 */ // Combiner Rule #188: constant_fold_fp_binop @ [mi[0]]
8070 /* 8012 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner104),
8071 /* 8015 */ // Label 425: @8015
8072 /* 8015 */ GIM_Reject,
8073 /* 8016 */ // Label 65: @8016
8074 /* 8016 */ GIM_Try, /*On fail goto*//*Label 426*/ GIMT_Encode4(8027), // Rule ID 302 //
8075 /* 8021 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
8076 /* 8024 */ // Combiner Rule #194: redundant_neg_operands; wip_match_opcode 'G_FSUB'
8077 /* 8024 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner109),
8078 /* 8027 */ // Label 426: @8027
8079 /* 8027 */ GIM_Try, /*On fail goto*//*Label 427*/ GIMT_Encode4(8038), // Rule ID 312 //
8080 /* 8032 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule200Enabled),
8081 /* 8035 */ // Combiner Rule #200: combine_fsub_fmul_to_fmad_or_fma; wip_match_opcode 'G_FSUB'
8082 /* 8035 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner115),
8083 /* 8038 */ // Label 427: @8038
8084 /* 8038 */ GIM_Try, /*On fail goto*//*Label 428*/ GIMT_Encode4(8049), // Rule ID 313 //
8085 /* 8043 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule201Enabled),
8086 /* 8046 */ // Combiner Rule #201: combine_fsub_fneg_fmul_to_fmad_or_fma; wip_match_opcode 'G_FSUB'
8087 /* 8046 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner116),
8088 /* 8049 */ // Label 428: @8049
8089 /* 8049 */ GIM_Try, /*On fail goto*//*Label 429*/ GIMT_Encode4(8060), // Rule ID 314 //
8090 /* 8054 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule202Enabled),
8091 /* 8057 */ // Combiner Rule #202: combine_fsub_fpext_fmul_to_fmad_or_fma; wip_match_opcode 'G_FSUB'
8092 /* 8057 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner117),
8093 /* 8060 */ // Label 429: @8060
8094 /* 8060 */ GIM_Try, /*On fail goto*//*Label 430*/ GIMT_Encode4(8071), // Rule ID 315 //
8095 /* 8065 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule203Enabled),
8096 /* 8068 */ // Combiner Rule #203: combine_fsub_fpext_fneg_fmul_to_fmad_or_fma; wip_match_opcode 'G_FSUB'
8097 /* 8068 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner118),
8098 /* 8071 */ // Label 430: @8071
8099 /* 8071 */ GIM_Try, /*On fail goto*//*Label 431*/ GIMT_Encode4(8082), // Rule ID 335 //
8100 /* 8076 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
8101 /* 8079 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_FSUB'
8102 /* 8079 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
8103 /* 8082 */ // Label 431: @8082
8104 /* 8082 */ GIM_Try, /*On fail goto*//*Label 432*/ GIMT_Encode4(8093), // Rule ID 352 //
8105 /* 8087 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule215Enabled),
8106 /* 8090 */ // Combiner Rule #215: fsub_to_fneg; wip_match_opcode 'G_FSUB'
8107 /* 8090 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner128),
8108 /* 8093 */ // Label 432: @8093
8109 /* 8093 */ GIM_Try, /*On fail goto*//*Label 433*/ GIMT_Encode4(8104), // Rule ID 275 //
8110 /* 8098 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule188Enabled),
8111 /* 8101 */ // MIs[0] d
8112 /* 8101 */ // No operand predicates
8113 /* 8101 */ // MIs[0] mi.src0
8114 /* 8101 */ // No operand predicates
8115 /* 8101 */ // MIs[0] mi.src1
8116 /* 8101 */ // No operand predicates
8117 /* 8101 */ // Combiner Rule #188: constant_fold_fp_binop @ [mi[1]]
8118 /* 8101 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner104),
8119 /* 8104 */ // Label 433: @8104
8120 /* 8104 */ GIM_Reject,
8121 /* 8105 */ // Label 66: @8105
8122 /* 8105 */ GIM_Try, /*On fail goto*//*Label 434*/ GIMT_Encode4(8116), // Rule ID 303 //
8123 /* 8110 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
8124 /* 8113 */ // Combiner Rule #194: redundant_neg_operands; wip_match_opcode 'G_FMUL'
8125 /* 8113 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner109),
8126 /* 8116 */ // Label 434: @8116
8127 /* 8116 */ GIM_Try, /*On fail goto*//*Label 435*/ GIMT_Encode4(8127), // Rule ID 333 //
8128 /* 8121 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
8129 /* 8124 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_FMUL'
8130 /* 8124 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
8131 /* 8127 */ // Label 435: @8127
8132 /* 8127 */ GIM_Try, /*On fail goto*//*Label 436*/ GIMT_Encode4(8138), // Rule ID 375 //
8133 /* 8132 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule217Enabled),
8134 /* 8135 */ // Combiner Rule #217: commute_fp_constant_to_rhs; wip_match_opcode 'G_FMUL'
8135 /* 8135 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner130),
8136 /* 8138 */ // Label 436: @8138
8137 /* 8138 */ GIM_Try, /*On fail goto*//*Label 437*/ GIMT_Encode4(8161), // Rule ID 138 //
8138 /* 8143 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule100Enabled),
8139 /* 8146 */ // MIs[0] dst
8140 /* 8146 */ // No operand predicates
8141 /* 8146 */ // MIs[0] x
8142 /* 8146 */ // No operand predicates
8143 /* 8146 */ // MIs[0] y
8144 /* 8146 */ // No operand predicates
8145 /* 8146 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner4),
8146 /* 8150 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8147 /* 8155 */ // Combiner Rule #100: right_identity_one_fp
8148 /* 8155 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8149 /* 8160 */ GIR_EraseRootFromParent_Done,
8150 /* 8161 */ // Label 437: @8161
8151 /* 8161 */ GIM_Try, /*On fail goto*//*Label 438*/ GIMT_Encode4(8181), // Rule ID 150 //
8152 /* 8166 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule110Enabled),
8153 /* 8169 */ // MIs[0] dst
8154 /* 8169 */ // No operand predicates
8155 /* 8169 */ // MIs[0] x
8156 /* 8169 */ // No operand predicates
8157 /* 8169 */ // MIs[0] y
8158 /* 8169 */ // No operand predicates
8159 /* 8169 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner8),
8160 /* 8173 */ // Combiner Rule #110: right_identity_neg_one_fp
8161 /* 8173 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FNEG),
8162 /* 8176 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
8163 /* 8178 */ GIR_RootToRootCopy, /*OpIdx*/1, // x
8164 /* 8180 */ GIR_EraseRootFromParent_Done,
8165 /* 8181 */ // Label 438: @8181
8166 /* 8181 */ GIM_Try, /*On fail goto*//*Label 439*/ GIMT_Encode4(8192), // Rule ID 276 //
8167 /* 8186 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule188Enabled),
8168 /* 8189 */ // MIs[0] d
8169 /* 8189 */ // No operand predicates
8170 /* 8189 */ // MIs[0] mi.src0
8171 /* 8189 */ // No operand predicates
8172 /* 8189 */ // MIs[0] mi.src1
8173 /* 8189 */ // No operand predicates
8174 /* 8189 */ // Combiner Rule #188: constant_fold_fp_binop @ [mi[2]]
8175 /* 8189 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner104),
8176 /* 8192 */ // Label 439: @8192
8177 /* 8192 */ GIM_Reject,
8178 /* 8193 */ // Label 67: @8193
8179 /* 8193 */ GIM_Try, /*On fail goto*//*Label 440*/ GIMT_Encode4(8204), // Rule ID 287 //
8180 /* 8198 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule189Enabled),
8181 /* 8201 */ // Combiner Rule #189: constant_fold_fma; wip_match_opcode 'G_FMA'
8182 /* 8201 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner105),
8183 /* 8204 */ // Label 440: @8204
8184 /* 8204 */ GIM_Try, /*On fail goto*//*Label 441*/ GIMT_Encode4(8215), // Rule ID 306 //
8185 /* 8209 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
8186 /* 8212 */ // Combiner Rule #194: redundant_neg_operands; wip_match_opcode 'G_FMA'
8187 /* 8212 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner109),
8188 /* 8215 */ // Label 441: @8215
8189 /* 8215 */ GIM_Reject,
8190 /* 8216 */ // Label 68: @8216
8191 /* 8216 */ GIM_Try, /*On fail goto*//*Label 442*/ GIMT_Encode4(8227), // Rule ID 286 //
8192 /* 8221 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule189Enabled),
8193 /* 8224 */ // Combiner Rule #189: constant_fold_fma; wip_match_opcode 'G_FMAD'
8194 /* 8224 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner105),
8195 /* 8227 */ // Label 442: @8227
8196 /* 8227 */ GIM_Try, /*On fail goto*//*Label 443*/ GIMT_Encode4(8238), // Rule ID 305 //
8197 /* 8232 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
8198 /* 8235 */ // Combiner Rule #194: redundant_neg_operands; wip_match_opcode 'G_FMAD'
8199 /* 8235 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner109),
8200 /* 8238 */ // Label 443: @8238
8201 /* 8238 */ GIM_Reject,
8202 /* 8239 */ // Label 69: @8239
8203 /* 8239 */ GIM_Try, /*On fail goto*//*Label 444*/ GIMT_Encode4(8250), // Rule ID 304 //
8204 /* 8244 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
8205 /* 8247 */ // Combiner Rule #194: redundant_neg_operands; wip_match_opcode 'G_FDIV'
8206 /* 8247 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner109),
8207 /* 8250 */ // Label 444: @8250
8208 /* 8250 */ GIM_Try, /*On fail goto*//*Label 445*/ GIMT_Encode4(8261), // Rule ID 336 //
8209 /* 8255 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
8210 /* 8258 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_FDIV'
8211 /* 8258 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
8212 /* 8261 */ // Label 445: @8261
8213 /* 8261 */ GIM_Try, /*On fail goto*//*Label 446*/ GIMT_Encode4(8272), // Rule ID 277 //
8214 /* 8266 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule188Enabled),
8215 /* 8269 */ // MIs[0] d
8216 /* 8269 */ // No operand predicates
8217 /* 8269 */ // MIs[0] mi.src0
8218 /* 8269 */ // No operand predicates
8219 /* 8269 */ // MIs[0] mi.src1
8220 /* 8269 */ // No operand predicates
8221 /* 8269 */ // Combiner Rule #188: constant_fold_fp_binop @ [mi[3]]
8222 /* 8269 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner104),
8223 /* 8272 */ // Label 446: @8272
8224 /* 8272 */ GIM_Try, /*On fail goto*//*Label 447*/ GIMT_Encode4(8283), // Rule ID 349 //
8225 /* 8277 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule212Enabled),
8226 /* 8280 */ // MIs[0] dst
8227 /* 8280 */ // No operand predicates
8228 /* 8280 */ // MIs[0] src1
8229 /* 8280 */ // No operand predicates
8230 /* 8280 */ // MIs[0] src2
8231 /* 8280 */ // No operand predicates
8232 /* 8280 */ // Combiner Rule #212: fdiv_repeated_divison
8233 /* 8280 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner125),
8234 /* 8283 */ // Label 447: @8283
8235 /* 8283 */ GIM_Reject,
8236 /* 8284 */ // Label 70: @8284
8237 /* 8284 */ GIM_Try, /*On fail goto*//*Label 448*/ GIMT_Encode4(8295), // Rule ID 337 //
8238 /* 8289 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
8239 /* 8292 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_FREM'
8240 /* 8292 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
8241 /* 8295 */ // Label 448: @8295
8242 /* 8295 */ GIM_Try, /*On fail goto*//*Label 449*/ GIMT_Encode4(8306), // Rule ID 278 //
8243 /* 8300 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule188Enabled),
8244 /* 8303 */ // MIs[0] d
8245 /* 8303 */ // No operand predicates
8246 /* 8303 */ // MIs[0] mi.src0
8247 /* 8303 */ // No operand predicates
8248 /* 8303 */ // MIs[0] mi.src1
8249 /* 8303 */ // No operand predicates
8250 /* 8303 */ // Combiner Rule #188: constant_fold_fp_binop @ [mi[4]]
8251 /* 8303 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner104),
8252 /* 8306 */ // Label 449: @8306
8253 /* 8306 */ GIM_Reject,
8254 /* 8307 */ // Label 71: @8307
8255 /* 8307 */ GIM_Try, /*On fail goto*//*Label 450*/ GIMT_Encode4(8328), // Rule ID 218 //
8256 /* 8312 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule166Enabled),
8257 /* 8315 */ // MIs[0] dst
8258 /* 8315 */ // No operand predicates
8259 /* 8315 */ // MIs[0] float
8260 /* 8315 */ // No operand predicates
8261 /* 8315 */ // MIs[0] int
8262 /* 8315 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
8263 /* 8319 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
8264 /* 8323 */ // MIs[1] imm
8265 /* 8323 */ // No operand predicates
8266 /* 8323 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8267 /* 8325 */ // Combiner Rule #166: expand_const_fpowi
8268 /* 8325 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner88),
8269 /* 8328 */ // Label 450: @8328
8270 /* 8328 */ GIM_Reject,
8271 /* 8329 */ // Label 72: @8329
8272 /* 8329 */ GIM_Try, /*On fail goto*//*Label 451*/ GIMT_Encode4(8350), // Rule ID 192 //
8273 /* 8334 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule148Enabled),
8274 /* 8337 */ // MIs[0] dst
8275 /* 8337 */ // No operand predicates
8276 /* 8337 */ // MIs[0] src0
8277 /* 8337 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8278 /* 8341 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT),
8279 /* 8345 */ // MIs[1] cst
8280 /* 8345 */ // No operand predicates
8281 /* 8345 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8282 /* 8347 */ // Combiner Rule #148: constant_fold_flog2
8283 /* 8347 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
8284 /* 8350 */ // Label 451: @8350
8285 /* 8350 */ GIM_Reject,
8286 /* 8351 */ // Label 73: @8351
8287 /* 8351 */ GIM_Try, /*On fail goto*//*Label 452*/ GIMT_Encode4(8372), // Rule ID 189 //
8288 /* 8356 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule145Enabled),
8289 /* 8359 */ // MIs[0] dst
8290 /* 8359 */ // No operand predicates
8291 /* 8359 */ // MIs[0] src0
8292 /* 8359 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8293 /* 8363 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT),
8294 /* 8367 */ // MIs[1] cst
8295 /* 8367 */ // No operand predicates
8296 /* 8367 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8297 /* 8369 */ // Combiner Rule #145: constant_fold_fneg
8298 /* 8369 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
8299 /* 8372 */ // Label 452: @8372
8300 /* 8372 */ GIM_Try, /*On fail goto*//*Label 453*/ GIMT_Encode4(8401), // Rule ID 136 //
8301 /* 8377 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule98Enabled),
8302 /* 8380 */ // MIs[0] dst
8303 /* 8380 */ // No operand predicates
8304 /* 8380 */ // MIs[0] t
8305 /* 8380 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8306 /* 8384 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FNEG),
8307 /* 8388 */ // MIs[1] src
8308 /* 8388 */ // No operand predicates
8309 /* 8388 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
8310 /* 8393 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8311 /* 8395 */ // Combiner Rule #98: fneg_fneg_fold
8312 /* 8395 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
8313 /* 8400 */ GIR_EraseRootFromParent_Done,
8314 /* 8401 */ // Label 453: @8401
8315 /* 8401 */ GIM_Reject,
8316 /* 8402 */ // Label 74: @8402
8317 /* 8402 */ GIM_Try, /*On fail goto*//*Label 454*/ GIMT_Encode4(8423), // Rule ID 194 //
8318 /* 8407 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule150Enabled),
8319 /* 8410 */ // MIs[0] dst
8320 /* 8410 */ // No operand predicates
8321 /* 8410 */ // MIs[0] src0
8322 /* 8410 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8323 /* 8414 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT),
8324 /* 8418 */ // MIs[1] cst
8325 /* 8418 */ // No operand predicates
8326 /* 8418 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8327 /* 8420 */ // Combiner Rule #150: constant_fold_fpext
8328 /* 8420 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
8329 /* 8423 */ // Label 454: @8423
8330 /* 8423 */ GIM_Reject,
8331 /* 8424 */ // Label 75: @8424
8332 /* 8424 */ GIM_Try, /*On fail goto*//*Label 455*/ GIMT_Encode4(8445), // Rule ID 193 //
8333 /* 8429 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule149Enabled),
8334 /* 8432 */ // MIs[0] dst
8335 /* 8432 */ // No operand predicates
8336 /* 8432 */ // MIs[0] src0
8337 /* 8432 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8338 /* 8436 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT),
8339 /* 8440 */ // MIs[1] cst
8340 /* 8440 */ // No operand predicates
8341 /* 8440 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8342 /* 8442 */ // Combiner Rule #149: constant_fold_fptrunc
8343 /* 8442 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
8344 /* 8445 */ // Label 455: @8445
8345 /* 8445 */ GIM_Try, /*On fail goto*//*Label 456*/ GIMT_Encode4(8466), // Rule ID 147 //
8346 /* 8450 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule107Enabled),
8347 /* 8453 */ // MIs[0] dst
8348 /* 8453 */ // No operand predicates
8349 /* 8453 */ // MIs[0] src1
8350 /* 8453 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8351 /* 8457 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FPEXT),
8352 /* 8461 */ // MIs[1] src0
8353 /* 8461 */ // No operand predicates
8354 /* 8461 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8355 /* 8463 */ // Combiner Rule #107: fptrunc_fpext_fold
8356 /* 8463 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner51),
8357 /* 8466 */ // Label 456: @8466
8358 /* 8466 */ GIM_Reject,
8359 /* 8467 */ // Label 76: @8467
8360 /* 8467 */ GIM_Try, /*On fail goto*//*Label 457*/ GIMT_Encode4(8488), // Rule ID 98 //
8361 /* 8472 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule83Enabled),
8362 /* 8475 */ // MIs[0] dst
8363 /* 8475 */ // No operand predicates
8364 /* 8475 */ // MIs[0] __unary_undef_to_undef_match_0.x
8365 /* 8475 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8366 /* 8479 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
8367 /* 8483 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8368 /* 8485 */ // Combiner Rule #83: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[5]]
8369 /* 8485 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner38),
8370 /* 8488 */ // Label 457: @8488
8371 /* 8488 */ GIM_Reject,
8372 /* 8489 */ // Label 77: @8489
8373 /* 8489 */ GIM_Try, /*On fail goto*//*Label 458*/ GIMT_Encode4(8510), // Rule ID 99 //
8374 /* 8494 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule83Enabled),
8375 /* 8497 */ // MIs[0] dst
8376 /* 8497 */ // No operand predicates
8377 /* 8497 */ // MIs[0] __unary_undef_to_undef_match_0.x
8378 /* 8497 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8379 /* 8501 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
8380 /* 8505 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8381 /* 8507 */ // Combiner Rule #83: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[6]]
8382 /* 8507 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner38),
8383 /* 8510 */ // Label 458: @8510
8384 /* 8510 */ GIM_Reject,
8385 /* 8511 */ // Label 78: @8511
8386 /* 8511 */ GIM_Try, /*On fail goto*//*Label 459*/ GIMT_Encode4(8522), // Rule ID 82 //
8387 /* 8516 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule77Enabled),
8388 /* 8519 */ // Combiner Rule #77: undef_to_fp_zero; wip_match_opcode 'G_SITOFP'
8389 /* 8519 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner33),
8390 /* 8522 */ // Label 459: @8522
8391 /* 8522 */ GIM_Try, /*On fail goto*//*Label 460*/ GIMT_Encode4(8537), // Rule ID 202 //
8392 /* 8527 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule158Enabled),
8393 /* 8530 */ // MIs[0] dst
8394 /* 8530 */ // No operand predicates
8395 /* 8530 */ // MIs[0] Operand 1
8396 /* 8530 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/1, 0,
8397 /* 8534 */ // Combiner Rule #158: itof_const_zero_fold_si
8398 /* 8534 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner81),
8399 /* 8537 */ // Label 460: @8537
8400 /* 8537 */ GIM_Reject,
8401 /* 8538 */ // Label 79: @8538
8402 /* 8538 */ GIM_Try, /*On fail goto*//*Label 461*/ GIMT_Encode4(8549), // Rule ID 81 //
8403 /* 8543 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule77Enabled),
8404 /* 8546 */ // Combiner Rule #77: undef_to_fp_zero; wip_match_opcode 'G_UITOFP'
8405 /* 8546 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner33),
8406 /* 8549 */ // Label 461: @8549
8407 /* 8549 */ GIM_Try, /*On fail goto*//*Label 462*/ GIMT_Encode4(8564), // Rule ID 203 //
8408 /* 8554 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule159Enabled),
8409 /* 8557 */ // MIs[0] dst
8410 /* 8557 */ // No operand predicates
8411 /* 8557 */ // MIs[0] Operand 1
8412 /* 8557 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/1, 0,
8413 /* 8561 */ // Combiner Rule #159: itof_const_zero_fold_ui
8414 /* 8561 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner81),
8415 /* 8564 */ // Label 462: @8564
8416 /* 8564 */ GIM_Reject,
8417 /* 8565 */ // Label 80: @8565
8418 /* 8565 */ GIM_Try, /*On fail goto*//*Label 463*/ GIMT_Encode4(8594), // Rule ID 25 //
8419 /* 8570 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule24Enabled),
8420 /* 8573 */ // MIs[0] dst
8421 /* 8573 */ // No operand predicates
8422 /* 8573 */ // MIs[0] src
8423 /* 8573 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8424 /* 8577 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FABS),
8425 /* 8581 */ // MIs[1] __idempotent_prop_match_0.x
8426 /* 8581 */ // No operand predicates
8427 /* 8581 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8428 /* 8586 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8429 /* 8588 */ // Combiner Rule #24: idempotent_prop @ [__idempotent_prop_match_0[1]]
8430 /* 8588 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8431 /* 8593 */ GIR_EraseRootFromParent_Done,
8432 /* 8594 */ // Label 463: @8594
8433 /* 8594 */ GIM_Try, /*On fail goto*//*Label 464*/ GIMT_Encode4(8615), // Rule ID 190 //
8434 /* 8599 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule146Enabled),
8435 /* 8602 */ // MIs[0] dst
8436 /* 8602 */ // No operand predicates
8437 /* 8602 */ // MIs[0] src0
8438 /* 8602 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8439 /* 8606 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT),
8440 /* 8610 */ // MIs[1] cst
8441 /* 8610 */ // No operand predicates
8442 /* 8610 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8443 /* 8612 */ // Combiner Rule #146: constant_fold_fabs
8444 /* 8612 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
8445 /* 8615 */ // Label 464: @8615
8446 /* 8615 */ GIM_Try, /*On fail goto*//*Label 465*/ GIMT_Encode4(8643), // Rule ID 299 //
8447 /* 8620 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule192Enabled),
8448 /* 8623 */ // MIs[0] dst
8449 /* 8623 */ // No operand predicates
8450 /* 8623 */ // MIs[0] tmp
8451 /* 8623 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8452 /* 8627 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FNEG),
8453 /* 8631 */ // MIs[1] x
8454 /* 8631 */ // No operand predicates
8455 /* 8631 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8456 /* 8633 */ // Combiner Rule #192: fabs_fneg_fold
8457 /* 8633 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FABS),
8458 /* 8636 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
8459 /* 8638 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
8460 /* 8642 */ GIR_EraseRootFromParent_Done,
8461 /* 8643 */ // Label 465: @8643
8462 /* 8643 */ GIM_Reject,
8463 /* 8644 */ // Label 81: @8644
8464 /* 8644 */ GIM_Try, /*On fail goto*//*Label 466*/ GIMT_Encode4(8655), // Rule ID 279 //
8465 /* 8649 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule188Enabled),
8466 /* 8652 */ // MIs[0] d
8467 /* 8652 */ // No operand predicates
8468 /* 8652 */ // MIs[0] mi.src0
8469 /* 8652 */ // No operand predicates
8470 /* 8652 */ // MIs[0] mi.src1
8471 /* 8652 */ // No operand predicates
8472 /* 8652 */ // Combiner Rule #188: constant_fold_fp_binop @ [mi[5]]
8473 /* 8652 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner104),
8474 /* 8655 */ // Label 466: @8655
8475 /* 8655 */ GIM_Reject,
8476 /* 8656 */ // Label 82: @8656
8477 /* 8656 */ GIM_Try, /*On fail goto*//*Label 467*/ GIMT_Encode4(8685), // Rule ID 26 //
8478 /* 8661 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule24Enabled),
8479 /* 8664 */ // MIs[0] dst
8480 /* 8664 */ // No operand predicates
8481 /* 8664 */ // MIs[0] src
8482 /* 8664 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8483 /* 8668 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCANONICALIZE),
8484 /* 8672 */ // MIs[1] __idempotent_prop_match_0.x
8485 /* 8672 */ // No operand predicates
8486 /* 8672 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8487 /* 8677 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8488 /* 8679 */ // Combiner Rule #24: idempotent_prop @ [__idempotent_prop_match_0[2]]
8489 /* 8679 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8490 /* 8684 */ GIR_EraseRootFromParent_Done,
8491 /* 8685 */ // Label 467: @8685
8492 /* 8685 */ GIM_Reject,
8493 /* 8686 */ // Label 83: @8686
8494 /* 8686 */ GIM_Try, /*On fail goto*//*Label 468*/ GIMT_Encode4(8697), // Rule ID 214 //
8495 /* 8691 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule165Enabled),
8496 /* 8694 */ // Combiner Rule #165: combine_minmax_nan; wip_match_opcode 'G_FMINNUM'
8497 /* 8694 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner87),
8498 /* 8697 */ // Label 468: @8697
8499 /* 8697 */ GIM_Try, /*On fail goto*//*Label 469*/ GIMT_Encode4(8708), // Rule ID 338 //
8500 /* 8702 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
8501 /* 8705 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_FMINNUM'
8502 /* 8705 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
8503 /* 8708 */ // Label 469: @8708
8504 /* 8708 */ GIM_Try, /*On fail goto*//*Label 470*/ GIMT_Encode4(8719), // Rule ID 376 //
8505 /* 8713 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule217Enabled),
8506 /* 8716 */ // Combiner Rule #217: commute_fp_constant_to_rhs; wip_match_opcode 'G_FMINNUM'
8507 /* 8716 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner130),
8508 /* 8719 */ // Label 470: @8719
8509 /* 8719 */ GIM_Try, /*On fail goto*//*Label 471*/ GIMT_Encode4(8730), // Rule ID 280 //
8510 /* 8724 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule188Enabled),
8511 /* 8727 */ // MIs[0] d
8512 /* 8727 */ // No operand predicates
8513 /* 8727 */ // MIs[0] mi.src0
8514 /* 8727 */ // No operand predicates
8515 /* 8727 */ // MIs[0] mi.src1
8516 /* 8727 */ // No operand predicates
8517 /* 8727 */ // Combiner Rule #188: constant_fold_fp_binop @ [mi[6]]
8518 /* 8727 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner104),
8519 /* 8730 */ // Label 471: @8730
8520 /* 8730 */ GIM_Reject,
8521 /* 8731 */ // Label 84: @8731
8522 /* 8731 */ GIM_Try, /*On fail goto*//*Label 472*/ GIMT_Encode4(8742), // Rule ID 215 //
8523 /* 8736 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule165Enabled),
8524 /* 8739 */ // Combiner Rule #165: combine_minmax_nan; wip_match_opcode 'G_FMAXNUM'
8525 /* 8739 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner87),
8526 /* 8742 */ // Label 472: @8742
8527 /* 8742 */ GIM_Try, /*On fail goto*//*Label 473*/ GIMT_Encode4(8753), // Rule ID 339 //
8528 /* 8747 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
8529 /* 8750 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_FMAXNUM'
8530 /* 8750 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
8531 /* 8753 */ // Label 473: @8753
8532 /* 8753 */ GIM_Try, /*On fail goto*//*Label 474*/ GIMT_Encode4(8764), // Rule ID 377 //
8533 /* 8758 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule217Enabled),
8534 /* 8761 */ // Combiner Rule #217: commute_fp_constant_to_rhs; wip_match_opcode 'G_FMAXNUM'
8535 /* 8761 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner130),
8536 /* 8764 */ // Label 474: @8764
8537 /* 8764 */ GIM_Try, /*On fail goto*//*Label 475*/ GIMT_Encode4(8775), // Rule ID 281 //
8538 /* 8769 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule188Enabled),
8539 /* 8772 */ // MIs[0] d
8540 /* 8772 */ // No operand predicates
8541 /* 8772 */ // MIs[0] mi.src0
8542 /* 8772 */ // No operand predicates
8543 /* 8772 */ // MIs[0] mi.src1
8544 /* 8772 */ // No operand predicates
8545 /* 8772 */ // Combiner Rule #188: constant_fold_fp_binop @ [mi[7]]
8546 /* 8772 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner104),
8547 /* 8775 */ // Label 475: @8775
8548 /* 8775 */ GIM_Reject,
8549 /* 8776 */ // Label 85: @8776
8550 /* 8776 */ GIM_Try, /*On fail goto*//*Label 476*/ GIMT_Encode4(8787), // Rule ID 378 //
8551 /* 8781 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule217Enabled),
8552 /* 8784 */ // Combiner Rule #217: commute_fp_constant_to_rhs; wip_match_opcode 'G_FMINNUM_IEEE'
8553 /* 8784 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner130),
8554 /* 8787 */ // Label 476: @8787
8555 /* 8787 */ GIM_Reject,
8556 /* 8788 */ // Label 86: @8788
8557 /* 8788 */ GIM_Try, /*On fail goto*//*Label 477*/ GIMT_Encode4(8799), // Rule ID 379 //
8558 /* 8793 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule217Enabled),
8559 /* 8796 */ // Combiner Rule #217: commute_fp_constant_to_rhs; wip_match_opcode 'G_FMAXNUM_IEEE'
8560 /* 8796 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner130),
8561 /* 8799 */ // Label 477: @8799
8562 /* 8799 */ GIM_Reject,
8563 /* 8800 */ // Label 87: @8800
8564 /* 8800 */ GIM_Try, /*On fail goto*//*Label 478*/ GIMT_Encode4(8811), // Rule ID 216 //
8565 /* 8805 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule165Enabled),
8566 /* 8808 */ // Combiner Rule #165: combine_minmax_nan; wip_match_opcode 'G_FMINIMUM'
8567 /* 8808 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner87),
8568 /* 8811 */ // Label 478: @8811
8569 /* 8811 */ GIM_Try, /*On fail goto*//*Label 479*/ GIMT_Encode4(8822), // Rule ID 340 //
8570 /* 8816 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
8571 /* 8819 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_FMINIMUM'
8572 /* 8819 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
8573 /* 8822 */ // Label 479: @8822
8574 /* 8822 */ GIM_Try, /*On fail goto*//*Label 480*/ GIMT_Encode4(8833), // Rule ID 380 //
8575 /* 8827 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule217Enabled),
8576 /* 8830 */ // Combiner Rule #217: commute_fp_constant_to_rhs; wip_match_opcode 'G_FMINIMUM'
8577 /* 8830 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner130),
8578 /* 8833 */ // Label 480: @8833
8579 /* 8833 */ GIM_Try, /*On fail goto*//*Label 481*/ GIMT_Encode4(8844), // Rule ID 282 //
8580 /* 8838 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule188Enabled),
8581 /* 8841 */ // MIs[0] d
8582 /* 8841 */ // No operand predicates
8583 /* 8841 */ // MIs[0] mi.src0
8584 /* 8841 */ // No operand predicates
8585 /* 8841 */ // MIs[0] mi.src1
8586 /* 8841 */ // No operand predicates
8587 /* 8841 */ // Combiner Rule #188: constant_fold_fp_binop @ [mi[8]]
8588 /* 8841 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner104),
8589 /* 8844 */ // Label 481: @8844
8590 /* 8844 */ GIM_Reject,
8591 /* 8845 */ // Label 88: @8845
8592 /* 8845 */ GIM_Try, /*On fail goto*//*Label 482*/ GIMT_Encode4(8856), // Rule ID 217 //
8593 /* 8850 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule165Enabled),
8594 /* 8853 */ // Combiner Rule #165: combine_minmax_nan; wip_match_opcode 'G_FMAXIMUM'
8595 /* 8853 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner87),
8596 /* 8856 */ // Label 482: @8856
8597 /* 8856 */ GIM_Try, /*On fail goto*//*Label 483*/ GIMT_Encode4(8867), // Rule ID 341 //
8598 /* 8861 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
8599 /* 8864 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_FMAXIMUM'
8600 /* 8864 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
8601 /* 8867 */ // Label 483: @8867
8602 /* 8867 */ GIM_Try, /*On fail goto*//*Label 484*/ GIMT_Encode4(8878), // Rule ID 381 //
8603 /* 8872 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule217Enabled),
8604 /* 8875 */ // Combiner Rule #217: commute_fp_constant_to_rhs; wip_match_opcode 'G_FMAXIMUM'
8605 /* 8875 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner130),
8606 /* 8878 */ // Label 484: @8878
8607 /* 8878 */ GIM_Try, /*On fail goto*//*Label 485*/ GIMT_Encode4(8889), // Rule ID 283 //
8608 /* 8883 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule188Enabled),
8609 /* 8886 */ // MIs[0] d
8610 /* 8886 */ // No operand predicates
8611 /* 8886 */ // MIs[0] mi.src0
8612 /* 8886 */ // No operand predicates
8613 /* 8886 */ // MIs[0] mi.src1
8614 /* 8886 */ // No operand predicates
8615 /* 8886 */ // Combiner Rule #188: constant_fold_fp_binop @ [mi[9]]
8616 /* 8886 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner104),
8617 /* 8889 */ // Label 485: @8889
8618 /* 8889 */ GIM_Reject,
8619 /* 8890 */ // Label 89: @8890
8620 /* 8890 */ GIM_Try, /*On fail goto*//*Label 486*/ GIMT_Encode4(8901), // Rule ID 284 //
8621 /* 8895 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule188Enabled),
8622 /* 8898 */ // MIs[0] d
8623 /* 8898 */ // No operand predicates
8624 /* 8898 */ // MIs[0] mi.src0
8625 /* 8898 */ // No operand predicates
8626 /* 8898 */ // MIs[0] mi.src1
8627 /* 8898 */ // No operand predicates
8628 /* 8898 */ // Combiner Rule #188: constant_fold_fp_binop @ [mi[10]]
8629 /* 8898 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner104),
8630 /* 8901 */ // Label 486: @8901
8631 /* 8901 */ GIM_Reject,
8632 /* 8902 */ // Label 90: @8902
8633 /* 8902 */ GIM_Try, /*On fail goto*//*Label 487*/ GIMT_Encode4(8913), // Rule ID 285 //
8634 /* 8907 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule188Enabled),
8635 /* 8910 */ // MIs[0] d
8636 /* 8910 */ // No operand predicates
8637 /* 8910 */ // MIs[0] mi.src0
8638 /* 8910 */ // No operand predicates
8639 /* 8910 */ // MIs[0] mi.src1
8640 /* 8910 */ // No operand predicates
8641 /* 8910 */ // Combiner Rule #188: constant_fold_fp_binop @ [mi[11]]
8642 /* 8910 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner104),
8643 /* 8913 */ // Label 487: @8913
8644 /* 8913 */ GIM_Reject,
8645 /* 8914 */ // Label 91: @8914
8646 /* 8914 */ GIM_Try, /*On fail goto*//*Label 488*/ GIMT_Encode4(8925), // Rule ID 159 //
8647 /* 8919 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule115Enabled),
8648 /* 8922 */ // Combiner Rule #115: reassoc_ptradd; wip_match_opcode 'G_PTR_ADD'
8649 /* 8922 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner56),
8650 /* 8925 */ // Label 488: @8925
8651 /* 8925 */ GIM_Try, /*On fail goto*//*Label 489*/ GIMT_Encode4(8936), // Rule ID 161 //
8652 /* 8930 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule117Enabled),
8653 /* 8933 */ // Combiner Rule #117: ptr_add_immed_chain; wip_match_opcode 'G_PTR_ADD'
8654 /* 8933 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner58),
8655 /* 8936 */ // Label 489: @8936
8656 /* 8936 */ GIM_Try, /*On fail goto*//*Label 490*/ GIMT_Encode4(8947), // Rule ID 204 //
8657 /* 8941 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule160Enabled),
8658 /* 8944 */ // Combiner Rule #160: const_ptradd_to_i2p; wip_match_opcode 'G_PTR_ADD'
8659 /* 8944 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner82),
8660 /* 8947 */ // Label 490: @8947
8661 /* 8947 */ GIM_Try, /*On fail goto*//*Label 491*/ GIMT_Encode4(8958), // Rule ID 220 //
8662 /* 8952 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule168Enabled),
8663 /* 8955 */ // Combiner Rule #168: ptr_add_with_zero; wip_match_opcode 'G_PTR_ADD'
8664 /* 8955 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner90),
8665 /* 8958 */ // Label 491: @8958
8666 /* 8958 */ GIM_Try, /*On fail goto*//*Label 492*/ GIMT_Encode4(8969), // Rule ID 257 //
8667 /* 8963 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled),
8668 /* 8966 */ // Combiner Rule #187: constant_fold_binop; wip_match_opcode 'G_PTR_ADD'
8669 /* 8966 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103),
8670 /* 8969 */ // Label 492: @8969
8671 /* 8969 */ GIM_Try, /*On fail goto*//*Label 493*/ GIMT_Encode4(8980), // Rule ID 318 //
8672 /* 8974 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
8673 /* 8977 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_PTR_ADD'
8674 /* 8977 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
8675 /* 8980 */ // Label 493: @8980
8676 /* 8980 */ GIM_Try, /*On fail goto*//*Label 494*/ GIMT_Encode4(9003), // Rule ID 117 //
8677 /* 8985 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled),
8678 /* 8988 */ // MIs[0] dst
8679 /* 8988 */ // No operand predicates
8680 /* 8988 */ // MIs[0] lhs
8681 /* 8988 */ // No operand predicates
8682 /* 8988 */ // MIs[0] Operand 2
8683 /* 8988 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
8684 /* 8992 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8685 /* 8997 */ // Combiner Rule #90: right_identity_zero @ [__right_identity_zero_match_0[7]]
8686 /* 8997 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8687 /* 9002 */ GIR_EraseRootFromParent_Done,
8688 /* 9003 */ // Label 494: @9003
8689 /* 9003 */ GIM_Reject,
8690 /* 9004 */ // Label 92: @9004
8691 /* 9004 */ GIM_Try, /*On fail goto*//*Label 495*/ GIMT_Encode4(9015), // Rule ID 270 //
8692 /* 9009 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled),
8693 /* 9012 */ // Combiner Rule #187: constant_fold_binop; wip_match_opcode 'G_SMIN'
8694 /* 9012 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103),
8695 /* 9015 */ // Label 495: @9015
8696 /* 9015 */ GIM_Try, /*On fail goto*//*Label 496*/ GIMT_Encode4(9026), // Rule ID 329 //
8697 /* 9020 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
8698 /* 9023 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_SMIN'
8699 /* 9023 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
8700 /* 9026 */ // Label 496: @9026
8701 /* 9026 */ GIM_Try, /*On fail goto*//*Label 497*/ GIMT_Encode4(9037), // Rule ID 358 //
8702 /* 9031 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
8703 /* 9034 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_SMIN'
8704 /* 9034 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129),
8705 /* 9037 */ // Label 497: @9037
8706 /* 9037 */ GIM_Reject,
8707 /* 9038 */ // Label 93: @9038
8708 /* 9038 */ GIM_Try, /*On fail goto*//*Label 498*/ GIMT_Encode4(9049), // Rule ID 271 //
8709 /* 9043 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled),
8710 /* 9046 */ // Combiner Rule #187: constant_fold_binop; wip_match_opcode 'G_SMAX'
8711 /* 9046 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103),
8712 /* 9049 */ // Label 498: @9049
8713 /* 9049 */ GIM_Try, /*On fail goto*//*Label 499*/ GIMT_Encode4(9060), // Rule ID 330 //
8714 /* 9054 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
8715 /* 9057 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_SMAX'
8716 /* 9057 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
8717 /* 9060 */ // Label 499: @9060
8718 /* 9060 */ GIM_Try, /*On fail goto*//*Label 500*/ GIMT_Encode4(9071), // Rule ID 359 //
8719 /* 9065 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
8720 /* 9068 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_SMAX'
8721 /* 9068 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129),
8722 /* 9071 */ // Label 500: @9071
8723 /* 9071 */ GIM_Reject,
8724 /* 9072 */ // Label 94: @9072
8725 /* 9072 */ GIM_Try, /*On fail goto*//*Label 501*/ GIMT_Encode4(9083), // Rule ID 272 //
8726 /* 9077 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled),
8727 /* 9080 */ // Combiner Rule #187: constant_fold_binop; wip_match_opcode 'G_UMIN'
8728 /* 9080 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103),
8729 /* 9083 */ // Label 501: @9083
8730 /* 9083 */ GIM_Try, /*On fail goto*//*Label 502*/ GIMT_Encode4(9094), // Rule ID 331 //
8731 /* 9088 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
8732 /* 9091 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_UMIN'
8733 /* 9091 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
8734 /* 9094 */ // Label 502: @9094
8735 /* 9094 */ GIM_Try, /*On fail goto*//*Label 503*/ GIMT_Encode4(9105), // Rule ID 360 //
8736 /* 9099 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
8737 /* 9102 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_UMIN'
8738 /* 9102 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129),
8739 /* 9105 */ // Label 503: @9105
8740 /* 9105 */ GIM_Reject,
8741 /* 9106 */ // Label 95: @9106
8742 /* 9106 */ GIM_Try, /*On fail goto*//*Label 504*/ GIMT_Encode4(9117), // Rule ID 273 //
8743 /* 9111 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled),
8744 /* 9114 */ // Combiner Rule #187: constant_fold_binop; wip_match_opcode 'G_UMAX'
8745 /* 9114 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103),
8746 /* 9117 */ // Label 504: @9117
8747 /* 9117 */ GIM_Try, /*On fail goto*//*Label 505*/ GIMT_Encode4(9128), // Rule ID 332 //
8748 /* 9122 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
8749 /* 9125 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_UMAX'
8750 /* 9125 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
8751 /* 9128 */ // Label 505: @9128
8752 /* 9128 */ GIM_Try, /*On fail goto*//*Label 506*/ GIMT_Encode4(9139), // Rule ID 361 //
8753 /* 9133 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
8754 /* 9136 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_UMAX'
8755 /* 9136 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129),
8756 /* 9139 */ // Label 506: @9139
8757 /* 9139 */ GIM_Reject,
8758 /* 9140 */ // Label 96: @9140
8759 /* 9140 */ GIM_Try, /*On fail goto*//*Label 507*/ GIMT_Encode4(9151), // Rule ID 92 //
8760 /* 9145 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule82Enabled),
8761 /* 9148 */ // Combiner Rule #82: unary_undef_to_zero; wip_match_opcode 'G_ABS'
8762 /* 9148 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner36),
8763 /* 9151 */ // Label 507: @9151
8764 /* 9151 */ GIM_Try, /*On fail goto*//*Label 508*/ GIMT_Encode4(9162), // Rule ID 296 //
8765 /* 9156 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule191Enabled),
8766 /* 9159 */ // MIs[0] dst
8767 /* 9159 */ // No operand predicates
8768 /* 9159 */ // MIs[0] mi.src
8769 /* 9159 */ // No operand predicates
8770 /* 9159 */ // Combiner Rule #191: constant_fold_unary_int_op @ [mi[5]]
8771 /* 9159 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner107),
8772 /* 9162 */ // Label 508: @9162
8773 /* 9162 */ GIM_Reject,
8774 /* 9163 */ // Label 97: @9163
8775 /* 9163 */ GIM_Try, /*On fail goto*//*Label 509*/ GIMT_Encode4(9174), // Rule ID 188 //
8776 /* 9168 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule144Enabled),
8777 /* 9171 */ // Combiner Rule #144: opt_brcond_by_inverting_cond; wip_match_opcode 'G_BR'
8778 /* 9171 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner79),
8779 /* 9174 */ // Label 509: @9174
8780 /* 9174 */ GIM_Reject,
8781 /* 9175 */ // Label 98: @9175
8782 /* 9175 */ GIM_Try, /*On fail goto*//*Label 510*/ GIMT_Encode4(9186), // Rule ID 32 //
8783 /* 9180 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule30Enabled),
8784 /* 9183 */ // Combiner Rule #30: insert_vector_elt_oob; wip_match_opcode 'G_INSERT_VECTOR_ELT'
8785 /* 9183 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner10),
8786 /* 9186 */ // Label 510: @9186
8787 /* 9186 */ GIM_Try, /*On fail goto*//*Label 511*/ GIMT_Encode4(9197), // Rule ID 73 //
8788 /* 9191 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule71Enabled),
8789 /* 9194 */ // Combiner Rule #71: combine_insert_vec_elts_build_vector; wip_match_opcode 'G_INSERT_VECTOR_ELT'
8790 /* 9194 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner27),
8791 /* 9197 */ // Label 511: @9197
8792 /* 9197 */ GIM_Try, /*On fail goto*//*Label 512*/ GIMT_Encode4(9208), // Rule ID 107 //
8793 /* 9202 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule88Enabled),
8794 /* 9205 */ // Combiner Rule #88: insert_extract_vec_elt_out_of_bounds; wip_match_opcode 'G_INSERT_VECTOR_ELT'
8795 /* 9205 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner43),
8796 /* 9208 */ // Label 512: @9208
8797 /* 9208 */ GIM_Try, /*On fail goto*//*Label 513*/ GIMT_Encode4(9247), // Rule ID 44 //
8798 /* 9213 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule42Enabled),
8799 /* 9216 */ // MIs[0] root
8800 /* 9216 */ // No operand predicates
8801 /* 9216 */ // MIs[0] src
8802 /* 9216 */ // No operand predicates
8803 /* 9216 */ // MIs[0] elt
8804 /* 9216 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
8805 /* 9220 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_EXTRACT_VECTOR_ELT),
8806 /* 9224 */ // MIs[1] src
8807 /* 9224 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/1, /*OpIdx*/1, /*OtherMI*/0, /*OtherOpIdx*/1,
8808 /* 9229 */ // MIs[1] idx
8809 /* 9229 */ // No operand predicates
8810 /* 9229 */ // MIs[0] idx
8811 /* 9229 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/3, /*OtherMI*/1, /*OtherOpIdx*/2,
8812 /* 9234 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8813 /* 9239 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8814 /* 9241 */ // Combiner Rule #42: insert_vector_element_extract_vector_element
8815 /* 9241 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8816 /* 9246 */ GIR_EraseRootFromParent_Done,
8817 /* 9247 */ // Label 513: @9247
8818 /* 9247 */ GIM_Try, /*On fail goto*//*Label 514*/ GIMT_Encode4(9280), // Rule ID 30 //
8819 /* 9252 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule28Enabled),
8820 /* 9255 */ // MIs[0] root
8821 /* 9255 */ // No operand predicates
8822 /* 9255 */ // MIs[0] src
8823 /* 9255 */ // No operand predicates
8824 /* 9255 */ // MIs[0] elt
8825 /* 9255 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
8826 /* 9259 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
8827 /* 9263 */ // MIs[0] idx
8828 /* 9263 */ // No operand predicates
8829 /* 9263 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner2),
8830 /* 9267 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8831 /* 9272 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8832 /* 9274 */ // Combiner Rule #28: insert_vector_element_elt_undef
8833 /* 9274 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8834 /* 9279 */ GIR_EraseRootFromParent_Done,
8835 /* 9280 */ // Label 514: @9280
8836 /* 9280 */ GIM_Try, /*On fail goto*//*Label 515*/ GIMT_Encode4(9304), // Rule ID 29 //
8837 /* 9285 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule27Enabled),
8838 /* 9288 */ // MIs[0] root
8839 /* 9288 */ // No operand predicates
8840 /* 9288 */ // MIs[0] src
8841 /* 9288 */ // No operand predicates
8842 /* 9288 */ // MIs[0] elt
8843 /* 9288 */ // No operand predicates
8844 /* 9288 */ // MIs[0] idx
8845 /* 9288 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/3, // MIs[1]
8846 /* 9292 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
8847 /* 9296 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8848 /* 9298 */ // Combiner Rule #27: insert_vector_element_idx_undef
8849 /* 9298 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
8850 /* 9301 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
8851 /* 9303 */ GIR_EraseRootFromParent_Done,
8852 /* 9304 */ // Label 515: @9304
8853 /* 9304 */ GIM_Reject,
8854 /* 9305 */ // Label 99: @9305
8855 /* 9305 */ GIM_Try, /*On fail goto*//*Label 516*/ GIMT_Encode4(9316), // Rule ID 31 //
8856 /* 9310 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule29Enabled),
8857 /* 9313 */ // Combiner Rule #29: match_extract_of_element; wip_match_opcode 'G_EXTRACT_VECTOR_ELT'
8858 /* 9313 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner9),
8859 /* 9316 */ // Label 516: @9316
8860 /* 9316 */ GIM_Try, /*On fail goto*//*Label 517*/ GIMT_Encode4(9327), // Rule ID 74 //
8861 /* 9321 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule72Enabled),
8862 /* 9324 */ // Combiner Rule #72: extract_vec_elt_build_vec; wip_match_opcode 'G_EXTRACT_VECTOR_ELT'
8863 /* 9324 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner28),
8864 /* 9327 */ // Label 517: @9327
8865 /* 9327 */ GIM_Try, /*On fail goto*//*Label 518*/ GIMT_Encode4(9338), // Rule ID 80 //
8866 /* 9332 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule76Enabled),
8867 /* 9335 */ // Combiner Rule #76: combine_extracted_vector_load; wip_match_opcode 'G_EXTRACT_VECTOR_ELT'
8868 /* 9335 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner32),
8869 /* 9338 */ // Label 518: @9338
8870 /* 9338 */ GIM_Try, /*On fail goto*//*Label 519*/ GIMT_Encode4(9349), // Rule ID 108 //
8871 /* 9343 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule88Enabled),
8872 /* 9346 */ // Combiner Rule #88: insert_extract_vec_elt_out_of_bounds; wip_match_opcode 'G_EXTRACT_VECTOR_ELT'
8873 /* 9346 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner43),
8874 /* 9349 */ // Label 519: @9349
8875 /* 9349 */ GIM_Try, /*On fail goto*//*Label 520*/ GIMT_Encode4(9373), // Rule ID 42 //
8876 /* 9354 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule40Enabled),
8877 /* 9357 */ // MIs[0] root
8878 /* 9357 */ // No operand predicates
8879 /* 9357 */ // MIs[0] src
8880 /* 9357 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8881 /* 9361 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR_TRUNC),
8882 /* 9365 */ GIM_CheckNumOperands, /*MI*/1, /*Expected*/9,
8883 /* 9368 */ // MIs[1] x
8884 /* 9368 */ // No operand predicates
8885 /* 9368 */ // MIs[1] y
8886 /* 9368 */ // No operand predicates
8887 /* 9368 */ // MIs[1] z
8888 /* 9368 */ // No operand predicates
8889 /* 9368 */ // MIs[1] a
8890 /* 9368 */ // No operand predicates
8891 /* 9368 */ // MIs[1] b
8892 /* 9368 */ // No operand predicates
8893 /* 9368 */ // MIs[1] c
8894 /* 9368 */ // No operand predicates
8895 /* 9368 */ // MIs[1] d
8896 /* 9368 */ // No operand predicates
8897 /* 9368 */ // MIs[1] e
8898 /* 9368 */ // No operand predicates
8899 /* 9368 */ // MIs[0] idx
8900 /* 9368 */ // No operand predicates
8901 /* 9368 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8902 /* 9370 */ // Combiner Rule #40: extract_vector_element_build_vector_trunc8
8903 /* 9370 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner13),
8904 /* 9373 */ // Label 520: @9373
8905 /* 9373 */ GIM_Try, /*On fail goto*//*Label 521*/ GIMT_Encode4(9397), // Rule ID 41 //
8906 /* 9378 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule39Enabled),
8907 /* 9381 */ // MIs[0] root
8908 /* 9381 */ // No operand predicates
8909 /* 9381 */ // MIs[0] src
8910 /* 9381 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8911 /* 9385 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR_TRUNC),
8912 /* 9389 */ GIM_CheckNumOperands, /*MI*/1, /*Expected*/8,
8913 /* 9392 */ // MIs[1] x
8914 /* 9392 */ // No operand predicates
8915 /* 9392 */ // MIs[1] y
8916 /* 9392 */ // No operand predicates
8917 /* 9392 */ // MIs[1] z
8918 /* 9392 */ // No operand predicates
8919 /* 9392 */ // MIs[1] a
8920 /* 9392 */ // No operand predicates
8921 /* 9392 */ // MIs[1] b
8922 /* 9392 */ // No operand predicates
8923 /* 9392 */ // MIs[1] c
8924 /* 9392 */ // No operand predicates
8925 /* 9392 */ // MIs[1] d
8926 /* 9392 */ // No operand predicates
8927 /* 9392 */ // MIs[0] idx
8928 /* 9392 */ // No operand predicates
8929 /* 9392 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8930 /* 9394 */ // Combiner Rule #39: extract_vector_element_build_vector_trunc7
8931 /* 9394 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner13),
8932 /* 9397 */ // Label 521: @9397
8933 /* 9397 */ GIM_Try, /*On fail goto*//*Label 522*/ GIMT_Encode4(9421), // Rule ID 40 //
8934 /* 9402 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule38Enabled),
8935 /* 9405 */ // MIs[0] root
8936 /* 9405 */ // No operand predicates
8937 /* 9405 */ // MIs[0] src
8938 /* 9405 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8939 /* 9409 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR_TRUNC),
8940 /* 9413 */ GIM_CheckNumOperands, /*MI*/1, /*Expected*/7,
8941 /* 9416 */ // MIs[1] x
8942 /* 9416 */ // No operand predicates
8943 /* 9416 */ // MIs[1] y
8944 /* 9416 */ // No operand predicates
8945 /* 9416 */ // MIs[1] z
8946 /* 9416 */ // No operand predicates
8947 /* 9416 */ // MIs[1] a
8948 /* 9416 */ // No operand predicates
8949 /* 9416 */ // MIs[1] b
8950 /* 9416 */ // No operand predicates
8951 /* 9416 */ // MIs[1] c
8952 /* 9416 */ // No operand predicates
8953 /* 9416 */ // MIs[0] idx
8954 /* 9416 */ // No operand predicates
8955 /* 9416 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8956 /* 9418 */ // Combiner Rule #38: extract_vector_element_build_vector_trunc6
8957 /* 9418 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner13),
8958 /* 9421 */ // Label 522: @9421
8959 /* 9421 */ GIM_Try, /*On fail goto*//*Label 523*/ GIMT_Encode4(9445), // Rule ID 39 //
8960 /* 9426 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule37Enabled),
8961 /* 9429 */ // MIs[0] root
8962 /* 9429 */ // No operand predicates
8963 /* 9429 */ // MIs[0] src
8964 /* 9429 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8965 /* 9433 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR_TRUNC),
8966 /* 9437 */ GIM_CheckNumOperands, /*MI*/1, /*Expected*/6,
8967 /* 9440 */ // MIs[1] x
8968 /* 9440 */ // No operand predicates
8969 /* 9440 */ // MIs[1] y
8970 /* 9440 */ // No operand predicates
8971 /* 9440 */ // MIs[1] z
8972 /* 9440 */ // No operand predicates
8973 /* 9440 */ // MIs[1] a
8974 /* 9440 */ // No operand predicates
8975 /* 9440 */ // MIs[1] b
8976 /* 9440 */ // No operand predicates
8977 /* 9440 */ // MIs[0] idx
8978 /* 9440 */ // No operand predicates
8979 /* 9440 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8980 /* 9442 */ // Combiner Rule #37: extract_vector_element_build_vector_trunc5
8981 /* 9442 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner13),
8982 /* 9445 */ // Label 523: @9445
8983 /* 9445 */ GIM_Try, /*On fail goto*//*Label 524*/ GIMT_Encode4(9469), // Rule ID 38 //
8984 /* 9450 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule36Enabled),
8985 /* 9453 */ // MIs[0] root
8986 /* 9453 */ // No operand predicates
8987 /* 9453 */ // MIs[0] src
8988 /* 9453 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8989 /* 9457 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR_TRUNC),
8990 /* 9461 */ GIM_CheckNumOperands, /*MI*/1, /*Expected*/5,
8991 /* 9464 */ // MIs[1] x
8992 /* 9464 */ // No operand predicates
8993 /* 9464 */ // MIs[1] y
8994 /* 9464 */ // No operand predicates
8995 /* 9464 */ // MIs[1] z
8996 /* 9464 */ // No operand predicates
8997 /* 9464 */ // MIs[1] a
8998 /* 9464 */ // No operand predicates
8999 /* 9464 */ // MIs[0] idx
9000 /* 9464 */ // No operand predicates
9001 /* 9464 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9002 /* 9466 */ // Combiner Rule #36: extract_vector_element_build_vector_trunc4
9003 /* 9466 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner13),
9004 /* 9469 */ // Label 524: @9469
9005 /* 9469 */ GIM_Try, /*On fail goto*//*Label 525*/ GIMT_Encode4(9493), // Rule ID 37 //
9006 /* 9474 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule35Enabled),
9007 /* 9477 */ // MIs[0] root
9008 /* 9477 */ // No operand predicates
9009 /* 9477 */ // MIs[0] src
9010 /* 9477 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9011 /* 9481 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR_TRUNC),
9012 /* 9485 */ GIM_CheckNumOperands, /*MI*/1, /*Expected*/4,
9013 /* 9488 */ // MIs[1] x
9014 /* 9488 */ // No operand predicates
9015 /* 9488 */ // MIs[1] y
9016 /* 9488 */ // No operand predicates
9017 /* 9488 */ // MIs[1] z
9018 /* 9488 */ // No operand predicates
9019 /* 9488 */ // MIs[0] idx
9020 /* 9488 */ // No operand predicates
9021 /* 9488 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9022 /* 9490 */ // Combiner Rule #35: extract_vector_element_build_vector_trunc3
9023 /* 9490 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner13),
9024 /* 9493 */ // Label 525: @9493
9025 /* 9493 */ GIM_Try, /*On fail goto*//*Label 526*/ GIMT_Encode4(9527), // Rule ID 33 //
9026 /* 9498 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule31Enabled),
9027 /* 9501 */ // MIs[0] root
9028 /* 9501 */ // No operand predicates
9029 /* 9501 */ // MIs[0] src
9030 /* 9501 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9031 /* 9505 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_INSERT_VECTOR_ELT),
9032 /* 9509 */ // MIs[1] x
9033 /* 9509 */ // No operand predicates
9034 /* 9509 */ // MIs[1] value
9035 /* 9509 */ // No operand predicates
9036 /* 9509 */ // MIs[1] idx
9037 /* 9509 */ // No operand predicates
9038 /* 9509 */ // MIs[0] idx
9039 /* 9509 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/3,
9040 /* 9514 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/2,
9041 /* 9519 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9042 /* 9521 */ // Combiner Rule #31: extract_vector_element_not_const
9043 /* 9521 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/2,
9044 /* 9526 */ GIR_EraseRootFromParent_Done,
9045 /* 9527 */ // Label 526: @9527
9046 /* 9527 */ GIM_Try, /*On fail goto*//*Label 527*/ GIMT_Encode4(9548), // Rule ID 34 //
9047 /* 9532 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule32Enabled),
9048 /* 9535 */ // MIs[0] root
9049 /* 9535 */ // No operand predicates
9050 /* 9535 */ // MIs[0] src
9051 /* 9535 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9052 /* 9539 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_INSERT_VECTOR_ELT),
9053 /* 9543 */ // MIs[1] x
9054 /* 9543 */ // No operand predicates
9055 /* 9543 */ // MIs[1] value
9056 /* 9543 */ // No operand predicates
9057 /* 9543 */ // MIs[1] idx2
9058 /* 9543 */ // No operand predicates
9059 /* 9543 */ // MIs[0] idx1
9060 /* 9543 */ // No operand predicates
9061 /* 9543 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9062 /* 9545 */ // Combiner Rule #32: extract_vector_element_different_indices
9063 /* 9545 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner11),
9064 /* 9548 */ // Label 527: @9548
9065 /* 9548 */ GIM_Try, /*On fail goto*//*Label 528*/ GIMT_Encode4(9577), // Rule ID 43 //
9066 /* 9553 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule41Enabled),
9067 /* 9556 */ // MIs[0] root
9068 /* 9556 */ // No operand predicates
9069 /* 9556 */ // MIs[0] src
9070 /* 9556 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9071 /* 9560 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SHUFFLE_VECTOR),
9072 /* 9564 */ // MIs[1] src1
9073 /* 9564 */ // No operand predicates
9074 /* 9564 */ // MIs[1] src2
9075 /* 9564 */ // No operand predicates
9076 /* 9564 */ // MIs[1] mask
9077 /* 9564 */ // No operand predicates
9078 /* 9564 */ // MIs[0] idx
9079 /* 9564 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
9080 /* 9568 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
9081 /* 9572 */ // MIs[2] imm
9082 /* 9572 */ // No operand predicates
9083 /* 9572 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
9084 /* 9574 */ // Combiner Rule #41: extract_vector_element_shuffle_vector
9085 /* 9574 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner14),
9086 /* 9577 */ // Label 528: @9577
9087 /* 9577 */ GIM_Try, /*On fail goto*//*Label 529*/ GIMT_Encode4(9601), // Rule ID 36 //
9088 /* 9582 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule34Enabled),
9089 /* 9585 */ // MIs[0] root
9090 /* 9585 */ // No operand predicates
9091 /* 9585 */ // MIs[0] src
9092 /* 9585 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9093 /* 9589 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR_TRUNC),
9094 /* 9593 */ GIM_CheckNumOperands, /*MI*/1, /*Expected*/3,
9095 /* 9596 */ // MIs[1] x
9096 /* 9596 */ // No operand predicates
9097 /* 9596 */ // MIs[1] y
9098 /* 9596 */ // No operand predicates
9099 /* 9596 */ // MIs[0] idx
9100 /* 9596 */ // No operand predicates
9101 /* 9596 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9102 /* 9598 */ // Combiner Rule #34: extract_vector_element_build_vector_trunc2
9103 /* 9598 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner13),
9104 /* 9601 */ // Label 529: @9601
9105 /* 9601 */ GIM_Try, /*On fail goto*//*Label 530*/ GIMT_Encode4(9633), // Rule ID 35 //
9106 /* 9606 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule33Enabled),
9107 /* 9609 */ // MIs[0] root
9108 /* 9609 */ // No operand predicates
9109 /* 9609 */ // MIs[0] src
9110 /* 9609 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9111 /* 9613 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR),
9112 /* 9617 */ GIM_CheckNumOperandsGE, /*MI*/1, /*Expected*/2,
9113 /* 9620 */ // MIs[1] unused
9114 /* 9620 */ // No operand predicates
9115 /* 9620 */ // MIs[0] idx
9116 /* 9620 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
9117 /* 9624 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
9118 /* 9628 */ // MIs[2] imm
9119 /* 9628 */ // No operand predicates
9120 /* 9628 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
9121 /* 9630 */ // Combiner Rule #33: extract_vector_element_build_vector
9122 /* 9630 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner12),
9123 /* 9633 */ // Label 530: @9633
9124 /* 9633 */ GIM_Try, /*On fail goto*//*Label 531*/ GIMT_Encode4(9657), // Rule ID 27 //
9125 /* 9638 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule25Enabled),
9126 /* 9641 */ // MIs[0] root
9127 /* 9641 */ // No operand predicates
9128 /* 9641 */ // MIs[0] vector
9129 /* 9641 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9130 /* 9645 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
9131 /* 9649 */ // MIs[0] idx
9132 /* 9649 */ // No operand predicates
9133 /* 9649 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9134 /* 9651 */ // Combiner Rule #25: match_extract_of_element_undef_vector
9135 /* 9651 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
9136 /* 9654 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
9137 /* 9656 */ GIR_EraseRootFromParent_Done,
9138 /* 9657 */ // Label 531: @9657
9139 /* 9657 */ GIM_Try, /*On fail goto*//*Label 532*/ GIMT_Encode4(9681), // Rule ID 28 //
9140 /* 9662 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule26Enabled),
9141 /* 9665 */ // MIs[0] root
9142 /* 9665 */ // No operand predicates
9143 /* 9665 */ // MIs[0] vector
9144 /* 9665 */ // No operand predicates
9145 /* 9665 */ // MIs[0] idx
9146 /* 9665 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
9147 /* 9669 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
9148 /* 9673 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9149 /* 9675 */ // Combiner Rule #26: match_extract_of_element_undef_index
9150 /* 9675 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
9151 /* 9678 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
9152 /* 9680 */ GIR_EraseRootFromParent_Done,
9153 /* 9681 */ // Label 532: @9681
9154 /* 9681 */ GIM_Reject,
9155 /* 9682 */ // Label 100: @9682
9156 /* 9682 */ GIM_Try, /*On fail goto*//*Label 533*/ GIMT_Encode4(9693), // Rule ID 103 //
9157 /* 9687 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule85Enabled),
9158 /* 9690 */ // Combiner Rule #85: propagate_undef_all_ops; wip_match_opcode 'G_SHUFFLE_VECTOR'
9159 /* 9690 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner40),
9160 /* 9693 */ // Label 533: @9693
9161 /* 9693 */ GIM_Try, /*On fail goto*//*Label 534*/ GIMT_Encode4(9704), // Rule ID 105 //
9162 /* 9698 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule86Enabled),
9163 /* 9701 */ // Combiner Rule #86: propagate_undef_shuffle_mask; wip_match_opcode 'G_SHUFFLE_VECTOR'
9164 /* 9701 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner41),
9165 /* 9704 */ // Label 534: @9704
9166 /* 9704 */ GIM_Try, /*On fail goto*//*Label 535*/ GIMT_Encode4(9715), // Rule ID 395 //
9167 /* 9709 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule231Enabled),
9168 /* 9712 */ // Combiner Rule #231: combine_shuffle_concat; wip_match_opcode 'G_SHUFFLE_VECTOR'
9169 /* 9712 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner138),
9170 /* 9715 */ // Label 535: @9715
9171 /* 9715 */ GIM_Try, /*On fail goto*//*Label 536*/ GIMT_Encode4(9726), // Rule ID 397 //
9172 /* 9720 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule233Enabled),
9173 /* 9723 */ // Combiner Rule #233: combine_shuffle_disjoint_mask; wip_match_opcode 'G_SHUFFLE_VECTOR'
9174 /* 9723 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner140),
9175 /* 9726 */ // Label 536: @9726
9176 /* 9726 */ GIM_Try, /*On fail goto*//*Label 537*/ GIMT_Encode4(9747), // Rule ID 396 //
9177 /* 9731 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule232Enabled),
9178 /* 9734 */ // MIs[0] root
9179 /* 9734 */ // No operand predicates
9180 /* 9734 */ // MIs[0] src1
9181 /* 9734 */ // No operand predicates
9182 /* 9734 */ // MIs[0] undef
9183 /* 9734 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
9184 /* 9738 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
9185 /* 9742 */ // MIs[0] mask
9186 /* 9742 */ // No operand predicates
9187 /* 9742 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9188 /* 9744 */ // Combiner Rule #232: combine_shuffle_undef_rhs
9189 /* 9744 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner139),
9190 /* 9747 */ // Label 537: @9747
9191 /* 9747 */ GIM_Reject,
9192 /* 9748 */ // Label 101: @9748
9193 /* 9748 */ GIM_Try, /*On fail goto*//*Label 538*/ GIMT_Encode4(9759), // Rule ID 293 //
9194 /* 9753 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule191Enabled),
9195 /* 9756 */ // MIs[0] dst
9196 /* 9756 */ // No operand predicates
9197 /* 9756 */ // MIs[0] mi.src
9198 /* 9756 */ // No operand predicates
9199 /* 9756 */ // Combiner Rule #191: constant_fold_unary_int_op @ [mi[2]]
9200 /* 9756 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner107),
9201 /* 9759 */ // Label 538: @9759
9202 /* 9759 */ GIM_Try, /*On fail goto*//*Label 539*/ GIMT_Encode4(9770), // Rule ID 421 //
9203 /* 9764 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule255Enabled),
9204 /* 9767 */ // MIs[0] dst
9205 /* 9767 */ // No operand predicates
9206 /* 9767 */ // MIs[0] src
9207 /* 9767 */ // No operand predicates
9208 /* 9767 */ // Combiner Rule #255: cttz_to_cttz_zero_poison
9209 /* 9767 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner158),
9210 /* 9770 */ // Label 539: @9770
9211 /* 9770 */ GIM_Reject,
9212 /* 9771 */ // Label 102: @9771
9213 /* 9771 */ GIM_Try, /*On fail goto*//*Label 540*/ GIMT_Encode4(9782), // Rule ID 294 //
9214 /* 9776 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule191Enabled),
9215 /* 9779 */ // MIs[0] dst
9216 /* 9779 */ // No operand predicates
9217 /* 9779 */ // MIs[0] mi.src
9218 /* 9779 */ // No operand predicates
9219 /* 9779 */ // Combiner Rule #191: constant_fold_unary_int_op @ [mi[3]]
9220 /* 9779 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner107),
9221 /* 9782 */ // Label 540: @9782
9222 /* 9782 */ GIM_Reject,
9223 /* 9783 */ // Label 103: @9783
9224 /* 9783 */ GIM_Try, /*On fail goto*//*Label 541*/ GIMT_Encode4(9794), // Rule ID 291 //
9225 /* 9788 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule191Enabled),
9226 /* 9791 */ // MIs[0] dst
9227 /* 9791 */ // No operand predicates
9228 /* 9791 */ // MIs[0] mi.src
9229 /* 9791 */ // No operand predicates
9230 /* 9791 */ // Combiner Rule #191: constant_fold_unary_int_op @ [mi[0]]
9231 /* 9791 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner107),
9232 /* 9794 */ // Label 541: @9794
9233 /* 9794 */ GIM_Try, /*On fail goto*//*Label 542*/ GIMT_Encode4(9805), // Rule ID 418 //
9234 /* 9799 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule252Enabled),
9235 /* 9802 */ // MIs[0] dst
9236 /* 9802 */ // No operand predicates
9237 /* 9802 */ // MIs[0] src
9238 /* 9802 */ // No operand predicates
9239 /* 9802 */ // Combiner Rule #252: ctlz_to_ctls
9240 /* 9802 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner157),
9241 /* 9805 */ // Label 542: @9805
9242 /* 9805 */ GIM_Try, /*On fail goto*//*Label 543*/ GIMT_Encode4(9816), // Rule ID 420 //
9243 /* 9810 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule254Enabled),
9244 /* 9813 */ // MIs[0] dst
9245 /* 9813 */ // No operand predicates
9246 /* 9813 */ // MIs[0] src
9247 /* 9813 */ // No operand predicates
9248 /* 9813 */ // Combiner Rule #254: ctlz_to_ctlz_zero_poison
9249 /* 9813 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner158),
9250 /* 9816 */ // Label 543: @9816
9251 /* 9816 */ GIM_Reject,
9252 /* 9817 */ // Label 104: @9817
9253 /* 9817 */ GIM_Try, /*On fail goto*//*Label 544*/ GIMT_Encode4(9828), // Rule ID 292 //
9254 /* 9822 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule191Enabled),
9255 /* 9825 */ // MIs[0] dst
9256 /* 9825 */ // No operand predicates
9257 /* 9825 */ // MIs[0] mi.src
9258 /* 9825 */ // No operand predicates
9259 /* 9825 */ // Combiner Rule #191: constant_fold_unary_int_op @ [mi[1]]
9260 /* 9825 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner107),
9261 /* 9828 */ // Label 544: @9828
9262 /* 9828 */ GIM_Try, /*On fail goto*//*Label 545*/ GIMT_Encode4(9839), // Rule ID 419 //
9263 /* 9833 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule253Enabled),
9264 /* 9836 */ // MIs[0] dst
9265 /* 9836 */ // No operand predicates
9266 /* 9836 */ // MIs[0] src
9267 /* 9836 */ // No operand predicates
9268 /* 9836 */ // Combiner Rule #253: ctlz_zero_poison_to_ctls
9269 /* 9836 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner157),
9270 /* 9839 */ // Label 545: @9839
9271 /* 9839 */ GIM_Reject,
9272 /* 9840 */ // Label 105: @9840
9273 /* 9840 */ GIM_Try, /*On fail goto*//*Label 546*/ GIMT_Encode4(9851), // Rule ID 295 //
9274 /* 9845 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule191Enabled),
9275 /* 9848 */ // MIs[0] dst
9276 /* 9848 */ // No operand predicates
9277 /* 9848 */ // MIs[0] mi.src
9278 /* 9848 */ // No operand predicates
9279 /* 9848 */ // Combiner Rule #191: constant_fold_unary_int_op @ [mi[4]]
9280 /* 9848 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner107),
9281 /* 9851 */ // Label 546: @9851
9282 /* 9851 */ GIM_Reject,
9283 /* 9852 */ // Label 106: @9852
9284 /* 9852 */ GIM_Try, /*On fail goto*//*Label 547*/ GIMT_Encode4(9863), // Rule ID 297 //
9285 /* 9857 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule191Enabled),
9286 /* 9860 */ // MIs[0] dst
9287 /* 9860 */ // No operand predicates
9288 /* 9860 */ // MIs[0] mi.src
9289 /* 9860 */ // No operand predicates
9290 /* 9860 */ // Combiner Rule #191: constant_fold_unary_int_op @ [mi[6]]
9291 /* 9860 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner107),
9292 /* 9863 */ // Label 547: @9863
9293 /* 9863 */ GIM_Reject,
9294 /* 9864 */ // Label 107: @9864
9295 /* 9864 */ GIM_Try, /*On fail goto*//*Label 548*/ GIMT_Encode4(9908), // Rule ID 248 //
9296 /* 9869 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule181Enabled),
9297 /* 9872 */ // MIs[0] d
9298 /* 9872 */ // No operand predicates
9299 /* 9872 */ // MIs[0] src
9300 /* 9872 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9301 /* 9876 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_LSHR),
9302 /* 9880 */ // MIs[1] rev
9303 /* 9880 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
9304 /* 9884 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_BITREVERSE),
9305 /* 9888 */ // MIs[2] val
9306 /* 9888 */ // No operand predicates
9307 /* 9888 */ // MIs[1] amt
9308 /* 9888 */ // No operand predicates
9309 /* 9888 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner14),
9310 /* 9892 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
9311 /* 9894 */ // Combiner Rule #181: bitreverse_lshr
9312 /* 9894 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SHL),
9313 /* 9897 */ GIR_RootToRootCopy, /*OpIdx*/0, // d
9314 /* 9899 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // val
9315 /* 9903 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // amt
9316 /* 9907 */ GIR_EraseRootFromParent_Done,
9317 /* 9908 */ // Label 548: @9908
9318 /* 9908 */ GIM_Try, /*On fail goto*//*Label 549*/ GIMT_Encode4(9952), // Rule ID 247 //
9319 /* 9913 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule180Enabled),
9320 /* 9916 */ // MIs[0] d
9321 /* 9916 */ // No operand predicates
9322 /* 9916 */ // MIs[0] src
9323 /* 9916 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9324 /* 9920 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SHL),
9325 /* 9924 */ // MIs[1] rev
9326 /* 9924 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
9327 /* 9928 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_BITREVERSE),
9328 /* 9932 */ // MIs[2] val
9329 /* 9932 */ // No operand predicates
9330 /* 9932 */ // MIs[1] amt
9331 /* 9932 */ // No operand predicates
9332 /* 9932 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner13),
9333 /* 9936 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
9334 /* 9938 */ // Combiner Rule #180: bitreverse_shl
9335 /* 9938 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_LSHR),
9336 /* 9941 */ GIR_RootToRootCopy, /*OpIdx*/0, // d
9337 /* 9943 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // val
9338 /* 9947 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // amt
9339 /* 9951 */ GIR_EraseRootFromParent_Done,
9340 /* 9952 */ // Label 549: @9952
9341 /* 9952 */ GIM_Try, /*On fail goto*//*Label 550*/ GIMT_Encode4(9963), // Rule ID 298 //
9342 /* 9957 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule191Enabled),
9343 /* 9960 */ // MIs[0] dst
9344 /* 9960 */ // No operand predicates
9345 /* 9960 */ // MIs[0] mi.src
9346 /* 9960 */ // No operand predicates
9347 /* 9960 */ // Combiner Rule #191: constant_fold_unary_int_op @ [mi[7]]
9348 /* 9960 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner107),
9349 /* 9963 */ // Label 550: @9963
9350 /* 9963 */ GIM_Reject,
9351 /* 9964 */ // Label 108: @9964
9352 /* 9964 */ GIM_Try, /*On fail goto*//*Label 551*/ GIMT_Encode4(9985), // Rule ID 195 //
9353 /* 9969 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule151Enabled),
9354 /* 9972 */ // MIs[0] dst
9355 /* 9972 */ // No operand predicates
9356 /* 9972 */ // MIs[0] src0
9357 /* 9972 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9358 /* 9976 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT),
9359 /* 9980 */ // MIs[1] cst
9360 /* 9980 */ // No operand predicates
9361 /* 9980 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9362 /* 9982 */ // Combiner Rule #151: constant_fold_fceil
9363 /* 9982 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
9364 /* 9985 */ // Label 551: @9985
9365 /* 9985 */ GIM_Reject,
9366 /* 9986 */ // Label 109: @9986
9367 /* 9986 */ GIM_Try, /*On fail goto*//*Label 552*/ GIMT_Encode4(10007), // Rule ID 191 //
9368 /* 9991 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule147Enabled),
9369 /* 9994 */ // MIs[0] dst
9370 /* 9994 */ // No operand predicates
9371 /* 9994 */ // MIs[0] src0
9372 /* 9994 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9373 /* 9998 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT),
9374 /* 10002 */ // MIs[1] cst
9375 /* 10002 */ // No operand predicates
9376 /* 10002 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9377 /* 10004 */ // Combiner Rule #147: constant_fold_fsqrt
9378 /* 10004 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
9379 /* 10007 */ // Label 552: @10007
9380 /* 10007 */ GIM_Reject,
9381 /* 10008 */ // Label 110: @10008
9382 /* 10008 */ GIM_Try, /*On fail goto*//*Label 553*/ GIMT_Encode4(10029), // Rule ID 196 //
9383 /* 10013 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule152Enabled),
9384 /* 10016 */ // MIs[0] dst
9385 /* 10016 */ // No operand predicates
9386 /* 10016 */ // MIs[0] src0
9387 /* 10016 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9388 /* 10020 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT),
9389 /* 10024 */ // MIs[1] cst
9390 /* 10024 */ // No operand predicates
9391 /* 10024 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9392 /* 10026 */ // Combiner Rule #152: constant_fold_ffloor
9393 /* 10026 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
9394 /* 10029 */ // Label 553: @10029
9395 /* 10029 */ GIM_Reject,
9396 /* 10030 */ // Label 111: @10030
9397 /* 10030 */ GIM_Try, /*On fail goto*//*Label 554*/ GIMT_Encode4(10051), // Rule ID 200 //
9398 /* 10035 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule156Enabled),
9399 /* 10038 */ // MIs[0] dst
9400 /* 10038 */ // No operand predicates
9401 /* 10038 */ // MIs[0] src0
9402 /* 10038 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9403 /* 10042 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT),
9404 /* 10046 */ // MIs[1] cst
9405 /* 10046 */ // No operand predicates
9406 /* 10046 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9407 /* 10048 */ // Combiner Rule #156: constant_fold_frint
9408 /* 10048 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
9409 /* 10051 */ // Label 554: @10051
9410 /* 10051 */ GIM_Reject,
9411 /* 10052 */ // Label 112: @10052
9412 /* 10052 */ GIM_Try, /*On fail goto*//*Label 555*/ GIMT_Encode4(10073), // Rule ID 201 //
9413 /* 10057 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule157Enabled),
9414 /* 10060 */ // MIs[0] dst
9415 /* 10060 */ // No operand predicates
9416 /* 10060 */ // MIs[0] src0
9417 /* 10060 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9418 /* 10064 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT),
9419 /* 10068 */ // MIs[1] cst
9420 /* 10068 */ // No operand predicates
9421 /* 10068 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9422 /* 10070 */ // Combiner Rule #157: constant_fold_fnearbyint
9423 /* 10070 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
9424 /* 10073 */ // Label 555: @10073
9425 /* 10073 */ GIM_Reject,
9426 /* 10074 */ // Label 113: @10074
9427 /* 10074 */ GIM_Reject,
9428 /* 10075 */ }; // Size: 10075 bytes
9429 return MatchTable0;
9430}
9431#undef GIMT_Encode2
9432#undef GIMT_Encode4
9433#undef GIMT_Encode8
9434
9435
9436#endif // GET_GICOMBINER_IMPL
9437
9438#ifdef GET_GICOMBINER_CONSTRUCTOR_INITS
9439
9440AvailableModuleFeatures(computeAvailableModuleFeatures(&STI)),
9441AvailableFunctionFeatures()
9442
9443#endif // GET_GICOMBINER_CONSTRUCTOR_INITS
9444
9445#ifdef GET_GICOMBINER_CONSTRUCTOR_INITS
9446
9447, State(0),
9448ExecInfo(TypeObjects, NumTypeObjects, FeatureBitsets, ComplexPredicateFns, CustomRenderers)
9449
9450#endif // GET_GICOMBINER_CONSTRUCTOR_INITS
9451
9452