1/*===- TableGen'erated file -------------------------------------*- C++ -*-===*\
2|* *|
3|* AMDGPUPreLegalizerCombinerImpl 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 AMDGPUPreLegalizerCombinerImplRuleConfig {
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: // 5 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 326; // "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': // 1 string to match.
53 if (memcmp(RuleIdentifier.data()+1, "atch_ors", 8) != 0)
54 break;
55 return 283; // "match_ors"
56 case 'n': // 1 string to match.
57 if (memcmp(RuleIdentifier.data()+1, "neg_zext", 8) != 0)
58 break;
59 return 294; // "nneg_zext"
60 case 'o': // 1 string to match.
61 if (memcmp(RuleIdentifier.data()+1, "r_xor_or", 8) != 0)
62 break;
63 return 288; // "or_xor_or"
64 }
65 break;
66 case 10: // 12 strings to match.
67 switch (RuleIdentifier[0]) {
68 default: break;
69 case 'N': // 2 strings to match.
70 if (memcmp(RuleIdentifier.data()+1, "eg", 2) != 0)
71 break;
72 switch (RuleIdentifier[3]) {
73 default: break;
74 case 'S': // 1 string to match.
75 if (memcmp(RuleIdentifier.data()+4, "minNeg", 6) != 0)
76 break;
77 return 333; // "NegSminNeg"
78 case 'U': // 1 string to match.
79 if (memcmp(RuleIdentifier.data()+4, "minNeg", 6) != 0)
80 break;
81 return 334; // "NegUminNeg"
82 }
83 break;
84 case 'S': // 2 strings to match.
85 if (memcmp(RuleIdentifier.data()+1, "ub", 2) != 0)
86 break;
87 switch (RuleIdentifier[3]) {
88 default: break;
89 case 'S': // 1 string to match.
90 if (memcmp(RuleIdentifier.data()+4, "maxSub", 6) != 0)
91 break;
92 return 331; // "SubSmaxSub"
93 case 'U': // 1 string to match.
94 if (memcmp(RuleIdentifier.data()+4, "maxSub", 6) != 0)
95 break;
96 return 332; // "SubUmaxSub"
97 }
98 break;
99 case 'm': // 2 strings to match.
100 switch (RuleIdentifier[1]) {
101 default: break;
102 case 'a': // 1 string to match.
103 if (memcmp(RuleIdentifier.data()+2, "tch_ands", 8) != 0)
104 break;
105 return 282; // "match_ands"
106 case 'u': // 1 string to match.
107 if (memcmp(RuleIdentifier.data()+2, "l_to_shl", 8) != 0)
108 break;
109 return 20; // "mul_to_shl"
110 }
111 break;
112 case 'o': // 1 string to match.
113 if (memcmp(RuleIdentifier.data()+1, "r_xor_and", 9) != 0)
114 break;
115 return 289; // "or_xor_and"
116 case 'p': // 1 string to match.
117 if (memcmp(RuleIdentifier.data()+1, "2i_to_i2p", 9) != 0)
118 break;
119 return 98; // "p2i_to_i2p"
120 case 's': // 3 strings to match.
121 switch (RuleIdentifier[1]) {
122 default: break;
123 case 'e': // 2 strings to match.
124 switch (RuleIdentifier[2]) {
125 default: break;
126 case 'l': // 1 string to match.
127 if (memcmp(RuleIdentifier.data()+3, "ect_not", 7) != 0)
128 break;
129 return 144; // "select_not"
130 case 'x': // 1 string to match.
131 if (memcmp(RuleIdentifier.data()+3, "t_trunc", 7) != 0)
132 break;
133 return 292; // "sext_trunc"
134 }
135 break;
136 case 'u': // 1 string to match.
137 if (memcmp(RuleIdentifier.data()+2, "b_to_add", 8) != 0)
138 break;
139 return 21; // "sub_to_add"
140 }
141 break;
142 case 'z': // 1 string to match.
143 if (memcmp(RuleIdentifier.data()+1, "ext_trunc", 9) != 0)
144 break;
145 return 293; // "zext_trunc"
146 }
147 break;
148 case 11: // 6 strings to match.
149 switch (RuleIdentifier[0]) {
150 default: break;
151 case 'a': // 1 string to match.
152 if (memcmp(RuleIdentifier.data()+1, "dd_sub_reg", 10) != 0)
153 break;
154 return 106; // "add_sub_reg"
155 case 't': // 4 strings to match.
156 if (memcmp(RuleIdentifier.data()+1, "runc_", 5) != 0)
157 break;
158 switch (RuleIdentifier[6]) {
159 default: break;
160 case 's': // 3 strings to match.
161 switch (RuleIdentifier[7]) {
162 default: break;
163 case 'h': // 1 string to match.
164 if (memcmp(RuleIdentifier.data()+8, "ift", 3) != 0)
165 break;
166 return 157; // "trunc_shift"
167 case 's': // 2 strings to match.
168 if (memcmp(RuleIdentifier.data()+8, "at", 2) != 0)
169 break;
170 switch (RuleIdentifier[10]) {
171 default: break;
172 case 's': // 1 string to match.
173 return 315; // "trunc_ssats"
174 case 'u': // 1 string to match.
175 return 316; // "trunc_ssatu"
176 }
177 break;
178 }
179 break;
180 case 'u': // 1 string to match.
181 if (memcmp(RuleIdentifier.data()+7, "satu", 4) != 0)
182 break;
183 return 317; // "trunc_usatu"
184 }
185 break;
186 case 'u': // 1 string to match.
187 if (memcmp(RuleIdentifier.data()+1, "nmerge_cst", 10) != 0)
188 break;
189 return 302; // "unmerge_cst"
190 }
191 break;
192 case 12: // 11 strings to match.
193 switch (RuleIdentifier[0]) {
194 default: break;
195 case 'A': // 1 string to match.
196 if (memcmp(RuleIdentifier.data()+1, "PlusBMinusB", 11) != 0)
197 break;
198 return 4; // "APlusBMinusB"
199 case 'B': // 1 string to match.
200 if (memcmp(RuleIdentifier.data()+1, "MinusAPlusA", 11) != 0)
201 break;
202 return 5; // "BMinusAPlusA"
203 case 'c': // 1 string to match.
204 if (memcmp(RuleIdentifier.data()+1, "tlz_to_ctls", 11) != 0)
205 break;
206 return 322; // "ctlz_to_ctls"
207 case 'f': // 1 string to match.
208 if (memcmp(RuleIdentifier.data()+1, "sub_to_fneg", 11) != 0)
209 break;
210 return 252; // "fsub_to_fneg"
211 case 'm': // 1 string to match.
212 if (memcmp(RuleIdentifier.data()+1, "ulh_to_lshr", 11) != 0)
213 break;
214 return 219; // "mulh_to_lshr"
215 case 'n': // 1 string to match.
216 if (memcmp(RuleIdentifier.data()+1, "ot_cmp_fold", 11) != 0)
217 break;
218 return 158; // "not_cmp_fold"
219 case 'r': // 1 string to match.
220 if (memcmp(RuleIdentifier.data()+1, "edundant_or", 11) != 0)
221 break;
222 return 151; // "redundant_or"
223 case 's': // 2 strings to match.
224 switch (RuleIdentifier[1]) {
225 default: break;
226 case 'd': // 1 string to match.
227 if (memcmp(RuleIdentifier.data()+2, "iv_by_pow2", 10) != 0)
228 break;
229 return 243; // "sdiv_by_pow2"
230 case 'e': // 1 string to match.
231 if (memcmp(RuleIdentifier.data()+2, "xt_of_sext", 10) != 0)
232 break;
233 return 54; // "sext_of_sext"
234 }
235 break;
236 case 'u': // 1 string to match.
237 if (memcmp(RuleIdentifier.data()+1, "div_by_pow2", 11) != 0)
238 break;
239 return 241; // "udiv_by_pow2"
240 case 'z': // 1 string to match.
241 if (memcmp(RuleIdentifier.data()+1, "ext_of_zext", 11) != 0)
242 break;
243 return 52; // "zext_of_zext"
244 }
245 break;
246 case 13: // 19 strings to match.
247 switch (RuleIdentifier[0]) {
248 default: break;
249 case 'A': // 2 strings to match.
250 if (memcmp(RuleIdentifier.data()+1, "MinusBMinus", 11) != 0)
251 break;
252 switch (RuleIdentifier[12]) {
253 default: break;
254 case 'A': // 1 string to match.
255 return 12; // "AMinusBMinusA"
256 case 'C': // 1 string to match.
257 return 9; // "AMinusBMinusC"
258 }
259 break;
260 case 'a': // 1 string to match.
261 if (memcmp(RuleIdentifier.data()+1, "dd_of_vscale", 12) != 0)
262 break;
263 return 42; // "add_of_vscale"
264 case 'f': // 1 string to match.
265 if (memcmp(RuleIdentifier.data()+1, "oldable_fneg", 12) != 0)
266 break;
267 return 342; // "foldable_fneg"
268 case 'l': // 1 string to match.
269 if (memcmp(RuleIdentifier.data()+1, "oad_and_mask", 12) != 0)
270 break;
271 return 75; // "load_and_mask"
272 case 'm': // 3 strings to match.
273 switch (RuleIdentifier[1]) {
274 default: break;
275 case 'a': // 1 string to match.
276 if (memcmp(RuleIdentifier.data()+2, "tch_selects", 11) != 0)
277 break;
278 return 142; // "match_selects"
279 case 'e': // 1 string to match.
280 if (memcmp(RuleIdentifier.data()+2, "rge_unmerge", 11) != 0)
281 break;
282 return 301; // "merge_unmerge"
283 case 'u': // 1 string to match.
284 if (memcmp(RuleIdentifier.data()+2, "l_of_vscale", 11) != 0)
285 break;
286 return 43; // "mul_of_vscale"
287 }
288 break;
289 case 'r': // 1 string to match.
290 if (memcmp(RuleIdentifier.data()+1, "edundant_and", 12) != 0)
291 break;
292 return 150; // "redundant_and"
293 case 's': // 6 strings to match.
294 switch (RuleIdentifier[1]) {
295 default: break;
296 case 'a': // 1 string to match.
297 if (memcmp(RuleIdentifier.data()+2, "me_val_zero", 11) != 0)
298 break;
299 return 95; // "same_val_zero"
300 case 'd': // 1 string to match.
301 if (memcmp(RuleIdentifier.data()+2, "iv_by_const", 11) != 0)
302 break;
303 return 245; // "sdiv_by_const"
304 case 'h': // 1 string to match.
305 if (memcmp(RuleIdentifier.data()+2, "l_of_vscale", 11) != 0)
306 break;
307 return 44; // "shl_of_vscale"
308 case 'r': // 1 string to match.
309 if (memcmp(RuleIdentifier.data()+2, "em_by_const", 11) != 0)
310 break;
311 return 240; // "srem_by_const"
312 case 'u': // 2 strings to match.
313 if (memcmp(RuleIdentifier.data()+2, "b_", 2) != 0)
314 break;
315 switch (RuleIdentifier[4]) {
316 default: break;
317 case 'm': // 1 string to match.
318 if (memcmp(RuleIdentifier.data()+5, "inus_one", 8) != 0)
319 break;
320 return 329; // "sub_minus_one"
321 case 'o': // 1 string to match.
322 if (memcmp(RuleIdentifier.data()+5, "f_vscale", 8) != 0)
323 break;
324 return 45; // "sub_of_vscale"
325 }
326 break;
327 }
328 break;
329 case 'u': // 4 strings to match.
330 switch (RuleIdentifier[1]) {
331 default: break;
332 case 'd': // 1 string to match.
333 if (memcmp(RuleIdentifier.data()+2, "iv_by_const", 11) != 0)
334 break;
335 return 244; // "udiv_by_const"
336 case 'n': // 2 strings to match.
337 if (memcmp(RuleIdentifier.data()+2, "merge_", 6) != 0)
338 break;
339 switch (RuleIdentifier[8]) {
340 default: break;
341 case 'm': // 1 string to match.
342 if (memcmp(RuleIdentifier.data()+9, "erge", 4) != 0)
343 break;
344 return 300; // "unmerge_merge"
345 case 'u': // 1 string to match.
346 if (memcmp(RuleIdentifier.data()+9, "ndef", 4) != 0)
347 break;
348 return 303; // "unmerge_undef"
349 }
350 break;
351 case 'r': // 1 string to match.
352 if (memcmp(RuleIdentifier.data()+2, "em_by_const", 11) != 0)
353 break;
354 return 239; // "urem_by_const"
355 }
356 break;
357 }
358 break;
359 case 14: // 17 strings to match.
360 switch (RuleIdentifier[0]) {
361 default: break;
362 case 'A': // 2 strings to match.
363 switch (RuleIdentifier[1]) {
364 default: break;
365 case 'M': // 1 string to match.
366 if (memcmp(RuleIdentifier.data()+2, "inusC1PlusC2", 12) != 0)
367 break;
368 return 18; // "AMinusC1PlusC2"
369 case 'P': // 1 string to match.
370 if (memcmp(RuleIdentifier.data()+2, "lusC1MinusC2", 12) != 0)
371 break;
372 return 14; // "APlusC1MinusC2"
373 }
374 break;
375 case 'C': // 1 string to match.
376 if (memcmp(RuleIdentifier.data()+1, "2MinusAPlusC1", 13) != 0)
377 break;
378 return 15; // "C2MinusAPlusC1"
379 case 'N': // 1 string to match.
380 if (memcmp(RuleIdentifier.data()+1, "otAPlusNegOne", 13) != 0)
381 break;
382 return 13; // "NotAPlusNegOne"
383 case 'a': // 2 strings to match.
384 if (memcmp(RuleIdentifier.data()+1, "nyext_of_", 9) != 0)
385 break;
386 switch (RuleIdentifier[10]) {
387 default: break;
388 case 's': // 1 string to match.
389 if (memcmp(RuleIdentifier.data()+11, "ext", 3) != 0)
390 break;
391 return 58; // "anyext_of_sext"
392 case 'z': // 1 string to match.
393 if (memcmp(RuleIdentifier.data()+11, "ext", 3) != 0)
394 break;
395 return 57; // "anyext_of_zext"
396 }
397 break;
398 case 'b': // 3 strings to match.
399 if (RuleIdentifier[1] != 'i')
400 break;
401 switch (RuleIdentifier[2]) {
402 default: break;
403 case 'n': // 2 strings to match.
404 if (memcmp(RuleIdentifier.data()+3, "op_", 3) != 0)
405 break;
406 switch (RuleIdentifier[6]) {
407 default: break;
408 case 's': // 1 string to match.
409 if (memcmp(RuleIdentifier.data()+7, "ame_val", 7) != 0)
410 break;
411 return 94; // "binop_same_val"
412 case 'w': // 1 string to match.
413 if (memcmp(RuleIdentifier.data()+7, "ith_neg", 7) != 0)
414 break;
415 return 328; // "binop_with_neg"
416 }
417 break;
418 case 't': // 1 string to match.
419 if (memcmp(RuleIdentifier.data()+3, "reverse_shl", 11) != 0)
420 break;
421 return 205; // "bitreverse_shl"
422 }
423 break;
424 case 'f': // 2 strings to match.
425 switch (RuleIdentifier[1]) {
426 default: break;
427 case 'a': // 1 string to match.
428 if (memcmp(RuleIdentifier.data()+2, "bs_fneg_fold", 12) != 0)
429 break;
430 return 218; // "fabs_fneg_fold"
431 case 'n': // 1 string to match.
432 if (memcmp(RuleIdentifier.data()+2, "eg_fneg_fold", 12) != 0)
433 break;
434 return 103; // "fneg_fneg_fold"
435 }
436 break;
437 case 'm': // 1 string to match.
438 if (memcmp(RuleIdentifier.data()+1, "ul_by_neg_one", 13) != 0)
439 break;
440 return 23; // "mul_by_neg_one"
441 case 'r': // 1 string to match.
442 if (memcmp(RuleIdentifier.data()+1, "eassoc_ptradd", 13) != 0)
443 break;
444 return 121; // "reassoc_ptradd"
445 case 's': // 3 strings to match.
446 switch (RuleIdentifier[1]) {
447 default: break;
448 case 'e': // 2 strings to match.
449 switch (RuleIdentifier[2]) {
450 default: break;
451 case 'l': // 1 string to match.
452 if (memcmp(RuleIdentifier.data()+3, "ect_of_zext", 11) != 0)
453 break;
454 return 60; // "select_of_zext"
455 case 'x': // 1 string to match.
456 if (memcmp(RuleIdentifier.data()+3, "t_of_anyext", 11) != 0)
457 break;
458 return 55; // "sext_of_anyext"
459 }
460 break;
461 case 'h': // 1 string to match.
462 if (memcmp(RuleIdentifier.data()+2, "ifts_too_big", 12) != 0)
463 break;
464 return 120; // "shifts_too_big"
465 }
466 break;
467 case 'z': // 1 string to match.
468 if (memcmp(RuleIdentifier.data()+1, "ext_of_anyext", 13) != 0)
469 break;
470 return 53; // "zext_of_anyext"
471 }
472 break;
473 case 15: // 26 strings to match.
474 switch (RuleIdentifier[0]) {
475 default: break;
476 case 'A': // 2 strings to match.
477 switch (RuleIdentifier[1]) {
478 default: break;
479 case 'M': // 1 string to match.
480 if (memcmp(RuleIdentifier.data()+2, "inusC1MinusC2", 13) != 0)
481 break;
482 return 16; // "AMinusC1MinusC2"
483 case 'P': // 1 string to match.
484 if (memcmp(RuleIdentifier.data()+2, "lusZeroMinusB", 13) != 0)
485 break;
486 return 3; // "APlusZeroMinusB"
487 }
488 break;
489 case 'C': // 1 string to match.
490 if (memcmp(RuleIdentifier.data()+1, "1Minus2MinusC2", 14) != 0)
491 break;
492 return 17; // "C1Minus2MinusC2"
493 case 'G': // 1 string to match.
494 if (memcmp(RuleIdentifier.data()+1, "_FMA_fneg_fneg", 14) != 0)
495 break;
496 return 226; // "G_FMA_fneg_fneg"
497 case 'Z': // 1 string to match.
498 if (memcmp(RuleIdentifier.data()+1, "eroMinusAPlusB", 14) != 0)
499 break;
500 return 2; // "ZeroMinusAPlusB"
501 case 'a': // 5 strings to match.
502 switch (RuleIdentifier[1]) {
503 default: break;
504 case 'n': // 3 strings to match.
505 if (memcmp(RuleIdentifier.data()+2, "onymous_5705", 12) != 0)
506 break;
507 switch (RuleIdentifier[14]) {
508 default: break;
509 case '5': // 1 string to match.
510 return 352; // "anonymous_57055"
511 case '6': // 1 string to match.
512 return 353; // "anonymous_57056"
513 case '7': // 1 string to match.
514 return 354; // "anonymous_57057"
515 }
516 break;
517 case 'v': // 2 strings to match.
518 if (memcmp(RuleIdentifier.data()+2, "gceil_", 6) != 0)
519 break;
520 switch (RuleIdentifier[8]) {
521 default: break;
522 case 's': // 1 string to match.
523 if (memcmp(RuleIdentifier.data()+9, "_match", 6) != 0)
524 break;
525 return 338; // "avgceil_s_match"
526 case 'u': // 1 string to match.
527 if (memcmp(RuleIdentifier.data()+9, "_match", 6) != 0)
528 break;
529 return 337; // "avgceil_u_match"
530 }
531 break;
532 }
533 break;
534 case 'b': // 1 string to match.
535 if (memcmp(RuleIdentifier.data()+1, "itreverse_lshr", 14) != 0)
536 break;
537 return 206; // "bitreverse_lshr"
538 case 'e': // 1 string to match.
539 if (memcmp(RuleIdentifier.data()+1, "xtending_loads", 14) != 0)
540 break;
541 return 74; // "extending_loads"
542 case 'i': // 2 strings to match.
543 switch (RuleIdentifier[1]) {
544 default: break;
545 case '2': // 1 string to match.
546 if (memcmp(RuleIdentifier.data()+2, "p_to_p2i_zext", 13) != 0)
547 break;
548 return 100; // "i2p_to_p2i_zext"
549 case 'd': // 1 string to match.
550 if (memcmp(RuleIdentifier.data()+2, "empotent_prop", 13) != 0)
551 break;
552 return 24; // "idempotent_prop"
553 }
554 break;
555 case 'l': // 1 string to match.
556 if (memcmp(RuleIdentifier.data()+1, "oad_or_combine", 14) != 0)
557 break;
558 return 195; // "load_or_combine"
559 case 'm': // 4 strings to match.
560 if (memcmp(RuleIdentifier.data()+1, "ulo_by_", 7) != 0)
561 break;
562 switch (RuleIdentifier[8]) {
563 default: break;
564 case '0': // 2 strings to match.
565 if (RuleIdentifier[9] != '_')
566 break;
567 switch (RuleIdentifier[10]) {
568 default: break;
569 case 's': // 1 string to match.
570 if (memcmp(RuleIdentifier.data()+11, "mulo", 4) != 0)
571 break;
572 return 180; // "mulo_by_0_smulo"
573 case 'u': // 1 string to match.
574 if (memcmp(RuleIdentifier.data()+11, "mulo", 4) != 0)
575 break;
576 return 179; // "mulo_by_0_umulo"
577 }
578 break;
579 case '2': // 2 strings to match.
580 if (RuleIdentifier[9] != '_')
581 break;
582 switch (RuleIdentifier[10]) {
583 default: break;
584 case 's': // 1 string to match.
585 if (memcmp(RuleIdentifier.data()+11, "mulo", 4) != 0)
586 break;
587 return 178; // "mulo_by_2_smulo"
588 case 'u': // 1 string to match.
589 if (memcmp(RuleIdentifier.data()+11, "mulo", 4) != 0)
590 break;
591 return 177; // "mulo_by_2_umulo"
592 }
593 break;
594 }
595 break;
596 case 'n': // 1 string to match.
597 if (memcmp(RuleIdentifier.data()+1, "arrow_binop_or", 14) != 0)
598 break;
599 return 68; // "narrow_binop_or"
600 case 'o': // 1 string to match.
601 if (memcmp(RuleIdentifier.data()+1, "verlapping_and", 14) != 0)
602 break;
603 return 176; // "overlapping_and"
604 case 's': // 4 strings to match.
605 if (memcmp(RuleIdentifier.data()+1, "ub_add_", 7) != 0)
606 break;
607 switch (RuleIdentifier[8]) {
608 default: break;
609 case 'n': // 2 strings to match.
610 if (memcmp(RuleIdentifier.data()+9, "eg_", 3) != 0)
611 break;
612 switch (RuleIdentifier[12]) {
613 default: break;
614 case 'l': // 1 string to match.
615 if (memcmp(RuleIdentifier.data()+13, "hs", 2) != 0)
616 break;
617 return 250; // "sub_add_neg_lhs"
618 case 'r': // 1 string to match.
619 if (memcmp(RuleIdentifier.data()+13, "hs", 2) != 0)
620 break;
621 return 249; // "sub_add_neg_rhs"
622 }
623 break;
624 case 'r': // 2 strings to match.
625 if (memcmp(RuleIdentifier.data()+9, "eg_", 3) != 0)
626 break;
627 switch (RuleIdentifier[12]) {
628 default: break;
629 case 'l': // 1 string to match.
630 if (memcmp(RuleIdentifier.data()+13, "hs", 2) != 0)
631 break;
632 return 248; // "sub_add_reg_lhs"
633 case 'r': // 1 string to match.
634 if (memcmp(RuleIdentifier.data()+13, "hs", 2) != 0)
635 break;
636 return 247; // "sub_add_reg_rhs"
637 }
638 break;
639 }
640 break;
641 case 'z': // 1 string to match.
642 if (memcmp(RuleIdentifier.data()+1, "ext_trunc_fold", 14) != 0)
643 break;
644 return 153; // "zext_trunc_fold"
645 }
646 break;
647 case 16: // 26 strings to match.
648 switch (RuleIdentifier[0]) {
649 default: break;
650 case 'A': // 1 string to match.
651 if (memcmp(RuleIdentifier.data()+1, "MinusZeroMinusB", 15) != 0)
652 break;
653 return 11; // "AMinusZeroMinusB"
654 case 'G': // 3 strings to match.
655 if (memcmp(RuleIdentifier.data()+1, "_F", 2) != 0)
656 break;
657 switch (RuleIdentifier[3]) {
658 default: break;
659 case 'D': // 1 string to match.
660 if (memcmp(RuleIdentifier.data()+4, "IV_fneg_fneg", 12) != 0)
661 break;
662 return 224; // "G_FDIV_fneg_fneg"
663 case 'M': // 2 strings to match.
664 switch (RuleIdentifier[4]) {
665 default: break;
666 case 'A': // 1 string to match.
667 if (memcmp(RuleIdentifier.data()+5, "D_fneg_fneg", 11) != 0)
668 break;
669 return 225; // "G_FMAD_fneg_fneg"
670 case 'U': // 1 string to match.
671 if (memcmp(RuleIdentifier.data()+5, "L_fneg_fneg", 11) != 0)
672 break;
673 return 223; // "G_FMUL_fneg_fneg"
674 }
675 break;
676 }
677 break;
678 case 'a': // 3 strings to match.
679 switch (RuleIdentifier[1]) {
680 default: break;
681 case 'n': // 1 string to match.
682 if (memcmp(RuleIdentifier.data()+2, "yext_of_anyext", 14) != 0)
683 break;
684 return 56; // "anyext_of_anyext"
685 case 'v': // 2 strings to match.
686 if (memcmp(RuleIdentifier.data()+2, "gfloor_", 7) != 0)
687 break;
688 switch (RuleIdentifier[9]) {
689 default: break;
690 case 's': // 1 string to match.
691 if (memcmp(RuleIdentifier.data()+10, "_match", 6) != 0)
692 break;
693 return 336; // "avgfloor_s_match"
694 case 'u': // 1 string to match.
695 if (memcmp(RuleIdentifier.data()+10, "_match", 6) != 0)
696 break;
697 return 335; // "avgfloor_u_match"
698 }
699 break;
700 }
701 break;
702 case 'c': // 2 strings to match.
703 switch (RuleIdentifier[1]) {
704 default: break;
705 case 'l': // 1 string to match.
706 if (memcmp(RuleIdentifier.data()+2, "amp_i64_to_i16", 14) != 0)
707 break;
708 return 341; // "clamp_i64_to_i16"
709 case 'o': // 1 string to match.
710 if (memcmp(RuleIdentifier.data()+2, "mmute_shift_or", 14) != 0)
711 break;
712 return 208; // "commute_shift_or"
713 }
714 break;
715 case 'i': // 1 string to match.
716 if (memcmp(RuleIdentifier.data()+1, "2p_to_p2i_trunc", 15) != 0)
717 break;
718 return 101; // "i2p_to_p2i_trunc"
719 case 'n': // 5 strings to match.
720 if (memcmp(RuleIdentifier.data()+1, "arrow_binop_", 12) != 0)
721 break;
722 switch (RuleIdentifier[13]) {
723 default: break;
724 case 'a': // 2 strings to match.
725 switch (RuleIdentifier[14]) {
726 default: break;
727 case 'd': // 1 string to match.
728 if (RuleIdentifier[15] != 'd')
729 break;
730 return 64; // "narrow_binop_add"
731 case 'n': // 1 string to match.
732 if (RuleIdentifier[15] != 'd')
733 break;
734 return 67; // "narrow_binop_and"
735 }
736 break;
737 case 'm': // 1 string to match.
738 if (memcmp(RuleIdentifier.data()+14, "ul", 2) != 0)
739 break;
740 return 66; // "narrow_binop_mul"
741 case 's': // 1 string to match.
742 if (memcmp(RuleIdentifier.data()+14, "ub", 2) != 0)
743 break;
744 return 65; // "narrow_binop_sub"
745 case 'x': // 1 string to match.
746 if (memcmp(RuleIdentifier.data()+14, "or", 2) != 0)
747 break;
748 return 69; // "narrow_binop_xor"
749 }
750 break;
751 case 'o': // 1 string to match.
752 if (memcmp(RuleIdentifier.data()+1, "r_and_xor_to_or", 15) != 0)
753 break;
754 return 284; // "or_and_xor_to_or"
755 case 's': // 7 strings to match.
756 switch (RuleIdentifier[1]) {
757 default: break;
758 case 'd': // 1 string to match.
759 if (memcmp(RuleIdentifier.data()+2, "iv_to_unsigned", 14) != 0)
760 break;
761 return 155; // "sdiv_to_unsigned"
762 case 'e': // 3 strings to match.
763 if (memcmp(RuleIdentifier.data()+2, "lect_", 5) != 0)
764 break;
765 switch (RuleIdentifier[7]) {
766 default: break;
767 case 'o': // 1 string to match.
768 if (memcmp(RuleIdentifier.data()+8, "f_anyext", 8) != 0)
769 break;
770 return 61; // "select_of_anyext"
771 case 't': // 1 string to match.
772 if (memcmp(RuleIdentifier.data()+8, "o_minmax", 8) != 0)
773 break;
774 return 251; // "select_to_minmax"
775 case 'u': // 1 string to match.
776 if (memcmp(RuleIdentifier.data()+8, "ndef_cmp", 8) != 0)
777 break;
778 return 136; // "select_undef_cmp"
779 }
780 break;
781 case 'r': // 1 string to match.
782 if (memcmp(RuleIdentifier.data()+2, "em_to_unsigned", 14) != 0)
783 break;
784 return 156; // "srem_to_unsigned"
785 case 'u': // 2 strings to match.
786 if (memcmp(RuleIdentifier.data()+2, "b_o", 3) != 0)
787 break;
788 switch (RuleIdentifier[5]) {
789 default: break;
790 case 'f': // 1 string to match.
791 if (memcmp(RuleIdentifier.data()+6, "_mul_const", 10) != 0)
792 break;
793 return 330; // "sub_of_mul_const"
794 case 'n': // 1 string to match.
795 if (memcmp(RuleIdentifier.data()+6, "e_from_sub", 10) != 0)
796 break;
797 return 327; // "sub_one_from_sub"
798 }
799 break;
800 }
801 break;
802 case 't': // 2 strings to match.
803 if (memcmp(RuleIdentifier.data()+1, "runcate_of_", 11) != 0)
804 break;
805 switch (RuleIdentifier[12]) {
806 default: break;
807 case 's': // 1 string to match.
808 if (memcmp(RuleIdentifier.data()+13, "ext", 3) != 0)
809 break;
810 return 50; // "truncate_of_sext"
811 case 'z': // 1 string to match.
812 if (memcmp(RuleIdentifier.data()+13, "ext", 3) != 0)
813 break;
814 return 49; // "truncate_of_zext"
815 }
816 break;
817 case 'u': // 1 string to match.
818 if (memcmp(RuleIdentifier.data()+1, "ndef_to_fp_zero", 15) != 0)
819 break;
820 return 77; // "undef_to_fp_zero"
821 }
822 break;
823 case 17: // 21 strings to match.
824 switch (RuleIdentifier[0]) {
825 default: break;
826 case 'A': // 2 strings to match.
827 if (memcmp(RuleIdentifier.data()+1, "PlusBMinus", 10) != 0)
828 break;
829 switch (RuleIdentifier[11]) {
830 default: break;
831 case 'A': // 1 string to match.
832 if (memcmp(RuleIdentifier.data()+12, "plusC", 5) != 0)
833 break;
834 return 8; // "APlusBMinusAplusC"
835 case 'C': // 1 string to match.
836 if (memcmp(RuleIdentifier.data()+12, "PlusA", 5) != 0)
837 break;
838 return 10; // "APlusBMinusCPlusA"
839 }
840 break;
841 case 'a': // 3 strings to match.
842 switch (RuleIdentifier[1]) {
843 default: break;
844 case 'd': // 1 string to match.
845 if (memcmp(RuleIdentifier.data()+2, "d_p2i_to_ptradd", 15) != 0)
846 break;
847 return 22; // "add_p2i_to_ptradd"
848 case 'n': // 2 strings to match.
849 switch (RuleIdentifier[2]) {
850 default: break;
851 case 'd': // 1 string to match.
852 if (memcmp(RuleIdentifier.data()+3, "_xor_or_to_and", 14) != 0)
853 break;
854 return 286; // "and_xor_or_to_and"
855 case 'y': // 1 string to match.
856 if (memcmp(RuleIdentifier.data()+3, "ext_trunc_fold", 14) != 0)
857 break;
858 return 102; // "anyext_trunc_fold"
859 }
860 break;
861 }
862 break;
863 case 'c': // 5 strings to match.
864 switch (RuleIdentifier[1]) {
865 default: break;
866 case 'a': // 2 strings to match.
867 if (memcmp(RuleIdentifier.data()+2, "nonicalize_", 11) != 0)
868 break;
869 switch (RuleIdentifier[13]) {
870 default: break;
871 case 'f': // 1 string to match.
872 if (memcmp(RuleIdentifier.data()+14, "cmp", 3) != 0)
873 break;
874 return 125; // "canonicalize_fcmp"
875 case 'i': // 1 string to match.
876 if (memcmp(RuleIdentifier.data()+14, "cmp", 3) != 0)
877 break;
878 return 124; // "canonicalize_icmp"
879 }
880 break;
881 case 'o': // 3 strings to match.
882 switch (RuleIdentifier[2]) {
883 default: break;
884 case 'm': // 2 strings to match.
885 switch (RuleIdentifier[3]) {
886 default: break;
887 case 'b': // 1 string to match.
888 if (memcmp(RuleIdentifier.data()+4, "ine_or_of_and", 13) != 0)
889 break;
890 return 339; // "combine_or_of_and"
891 case 'm': // 1 string to match.
892 if (memcmp(RuleIdentifier.data()+4, "ute_shift_add", 13) != 0)
893 break;
894 return 207; // "commute_shift_add"
895 }
896 break;
897 case 'n': // 1 string to match.
898 if (memcmp(RuleIdentifier.data()+3, "stant_fold_fma", 14) != 0)
899 break;
900 return 215; // "constant_fold_fma"
901 }
902 break;
903 }
904 break;
905 case 'd': // 1 string to match.
906 if (memcmp(RuleIdentifier.data()+1, "iv_rem_to_divrem", 16) != 0)
907 break;
908 return 196; // "div_rem_to_divrem"
909 case 'e': // 1 string to match.
910 if (memcmp(RuleIdentifier.data()+1, "rase_undef_store", 16) != 0)
911 break;
912 return 88; // "erase_undef_store"
913 case 'f': // 1 string to match.
914 if (memcmp(RuleIdentifier.data()+1, "old_fabs_fptrunc", 16) != 0)
915 break;
916 return 343; // "fold_fabs_fptrunc"
917 case 'm': // 2 strings to match.
918 if (memcmp(RuleIdentifier.data()+1, "atch_addos_", 11) != 0)
919 break;
920 switch (RuleIdentifier[12]) {
921 default: break;
922 case 's': // 1 string to match.
923 if (memcmp(RuleIdentifier.data()+13, "addo", 4) != 0)
924 break;
925 return 311; // "match_addos_saddo"
926 case 'u': // 1 string to match.
927 if (memcmp(RuleIdentifier.data()+13, "addo", 4) != 0)
928 break;
929 return 312; // "match_addos_uaddo"
930 }
931 break;
932 case 's': // 4 strings to match.
933 switch (RuleIdentifier[1]) {
934 default: break;
935 case 'e': // 2 strings to match.
936 if (memcmp(RuleIdentifier.data()+2, "lect_", 5) != 0)
937 break;
938 switch (RuleIdentifier[7]) {
939 default: break;
940 case 't': // 1 string to match.
941 if (memcmp(RuleIdentifier.data()+8, "o_iminmax", 9) != 0)
942 break;
943 return 141; // "select_to_iminmax"
944 case 'z': // 1 string to match.
945 if (memcmp(RuleIdentifier.data()+8, "ero_false", 9) != 0)
946 break;
947 return 143; // "select_zero_false"
948 }
949 break;
950 case 'h': // 1 string to match.
951 if (memcmp(RuleIdentifier.data()+2, "ift_immed_chain", 15) != 0)
952 break;
953 return 193; // "shift_immed_chain"
954 case 'r': // 1 string to match.
955 if (memcmp(RuleIdentifier.data()+2, "em_pow2_to_mask", 15) != 0)
956 break;
957 return 238; // "srem_pow2_to_mask"
958 }
959 break;
960 case 'u': // 2 strings to match.
961 switch (RuleIdentifier[1]) {
962 default: break;
963 case 'n': // 1 string to match.
964 if (memcmp(RuleIdentifier.data()+2, "def_to_int_zero", 15) != 0)
965 break;
966 return 78; // "undef_to_int_zero"
967 case 'r': // 1 string to match.
968 if (memcmp(RuleIdentifier.data()+2, "em_pow2_to_mask", 15) != 0)
969 break;
970 return 152; // "urem_pow2_to_mask"
971 }
972 break;
973 }
974 break;
975 case 18: // 19 strings to match.
976 switch (RuleIdentifier[0]) {
977 default: break;
978 case 'A': // 3 strings to match.
979 switch (RuleIdentifier[1]) {
980 default: break;
981 case 'M': // 2 strings to match.
982 if (memcmp(RuleIdentifier.data()+2, "inusBPlus", 9) != 0)
983 break;
984 switch (RuleIdentifier[11]) {
985 default: break;
986 case 'B': // 1 string to match.
987 if (memcmp(RuleIdentifier.data()+12, "MinusC", 6) != 0)
988 break;
989 return 7; // "AMinusBPlusBMinusC"
990 case 'C': // 1 string to match.
991 if (memcmp(RuleIdentifier.data()+12, "MinusA", 6) != 0)
992 break;
993 return 6; // "AMinusBPlusCMinusA"
994 }
995 break;
996 case 'P': // 1 string to match.
997 if (memcmp(RuleIdentifier.data()+2, "lusBMinusCMinusB", 16) != 0)
998 break;
999 return 0; // "APlusBMinusCMinusB"
1000 }
1001 break;
1002 case 'a': // 4 strings to match.
1003 if (memcmp(RuleIdentifier.data()+1, "dde_to_addo_", 12) != 0)
1004 break;
1005 switch (RuleIdentifier[13]) {
1006 default: break;
1007 case 's': // 2 strings to match.
1008 switch (RuleIdentifier[14]) {
1009 default: break;
1010 case 'a': // 1 string to match.
1011 if (memcmp(RuleIdentifier.data()+15, "dde", 3) != 0)
1012 break;
1013 return 182; // "adde_to_addo_sadde"
1014 case 's': // 1 string to match.
1015 if (memcmp(RuleIdentifier.data()+15, "ube", 3) != 0)
1016 break;
1017 return 184; // "adde_to_addo_ssube"
1018 }
1019 break;
1020 case 'u': // 2 strings to match.
1021 switch (RuleIdentifier[14]) {
1022 default: break;
1023 case 'a': // 1 string to match.
1024 if (memcmp(RuleIdentifier.data()+15, "dde", 3) != 0)
1025 break;
1026 return 181; // "adde_to_addo_uadde"
1027 case 's': // 1 string to match.
1028 if (memcmp(RuleIdentifier.data()+15, "ube", 3) != 0)
1029 break;
1030 return 183; // "adde_to_addo_usube"
1031 }
1032 break;
1033 }
1034 break;
1035 case 'b': // 1 string to match.
1036 if (memcmp(RuleIdentifier.data()+1, "inop_left_to_zero", 17) != 0)
1037 break;
1038 return 96; // "binop_left_to_zero"
1039 case 'c': // 3 strings to match.
1040 if (RuleIdentifier[1] != 'o')
1041 break;
1042 switch (RuleIdentifier[2]) {
1043 default: break;
1044 case 'm': // 1 string to match.
1045 if (memcmp(RuleIdentifier.data()+3, "bine_or_s64_s32", 15) != 0)
1046 break;
1047 return 351; // "combine_or_s64_s32"
1048 case 'n': // 2 strings to match.
1049 if (memcmp(RuleIdentifier.data()+3, "stant_fold_f", 12) != 0)
1050 break;
1051 switch (RuleIdentifier[15]) {
1052 default: break;
1053 case 'a': // 1 string to match.
1054 if (memcmp(RuleIdentifier.data()+16, "bs", 2) != 0)
1055 break;
1056 return 161; // "constant_fold_fabs"
1057 case 'n': // 1 string to match.
1058 if (memcmp(RuleIdentifier.data()+16, "eg", 2) != 0)
1059 break;
1060 return 160; // "constant_fold_fneg"
1061 }
1062 break;
1063 }
1064 break;
1065 case 'e': // 1 string to match.
1066 if (memcmp(RuleIdentifier.data()+1, "xpand_const_fpowi", 17) != 0)
1067 break;
1068 return 189; // "expand_const_fpowi"
1069 case 'f': // 2 strings to match.
1070 if (memcmp(RuleIdentifier.data()+1, "pt", 2) != 0)
1071 break;
1072 switch (RuleIdentifier[3]) {
1073 default: break;
1074 case 'o': // 1 string to match.
1075 if (memcmp(RuleIdentifier.data()+4, "ui_ffloor_fold", 14) != 0)
1076 break;
1077 return 319; // "fptoui_ffloor_fold"
1078 case 'r': // 1 string to match.
1079 if (memcmp(RuleIdentifier.data()+4, "unc_fpext_fold", 14) != 0)
1080 break;
1081 return 113; // "fptrunc_fpext_fold"
1082 }
1083 break;
1084 case 'm': // 2 strings to match.
1085 if (memcmp(RuleIdentifier.data()+1, "inmax_nan_num_", 14) != 0)
1086 break;
1087 switch (RuleIdentifier[15]) {
1088 default: break;
1089 case 'l': // 1 string to match.
1090 if (memcmp(RuleIdentifier.data()+16, "hs", 2) != 0)
1091 break;
1092 return 185; // "minmax_nan_num_lhs"
1093 case 'r': // 1 string to match.
1094 if (memcmp(RuleIdentifier.data()+16, "hs", 2) != 0)
1095 break;
1096 return 186; // "minmax_nan_num_rhs"
1097 }
1098 break;
1099 case 's': // 2 strings to match.
1100 if (RuleIdentifier[1] != 'e')
1101 break;
1102 switch (RuleIdentifier[2]) {
1103 default: break;
1104 case 'l': // 1 string to match.
1105 if (memcmp(RuleIdentifier.data()+3, "ect_of_truncate", 15) != 0)
1106 break;
1107 return 62; // "select_of_truncate"
1108 case 'x': // 1 string to match.
1109 if (memcmp(RuleIdentifier.data()+3, "t_inreg_of_load", 15) != 0)
1110 break;
1111 return 133; // "sext_inreg_of_load"
1112 }
1113 break;
1114 case 't': // 1 string to match.
1115 if (memcmp(RuleIdentifier.data()+1, "runcate_of_anyext", 17) != 0)
1116 break;
1117 return 51; // "truncate_of_anyext"
1118 }
1119 break;
1120 case 19: // 20 strings to match.
1121 switch (RuleIdentifier[0]) {
1122 default: break;
1123 case 'A': // 1 string to match.
1124 if (memcmp(RuleIdentifier.data()+1, "MinusBMinusCMinusC", 18) != 0)
1125 break;
1126 return 1; // "AMinusBMinusCMinusC"
1127 case 'b': // 1 string to match.
1128 if (memcmp(RuleIdentifier.data()+1, "inop_right_to_zero", 18) != 0)
1129 break;
1130 return 97; // "binop_right_to_zero"
1131 case 'c': // 7 strings to match.
1132 if (memcmp(RuleIdentifier.data()+1, "onst", 4) != 0)
1133 break;
1134 switch (RuleIdentifier[5]) {
1135 default: break;
1136 case '_': // 1 string to match.
1137 if (memcmp(RuleIdentifier.data()+6, "ptradd_to_i2p", 13) != 0)
1138 break;
1139 return 175; // "const_ptradd_to_i2p"
1140 case 'a': // 6 strings to match.
1141 if (memcmp(RuleIdentifier.data()+6, "nt_fold_", 8) != 0)
1142 break;
1143 switch (RuleIdentifier[14]) {
1144 default: break;
1145 case 'b': // 1 string to match.
1146 if (memcmp(RuleIdentifier.data()+15, "inop", 4) != 0)
1147 break;
1148 return 213; // "constant_fold_binop"
1149 case 'f': // 5 strings to match.
1150 switch (RuleIdentifier[15]) {
1151 default: break;
1152 case 'c': // 1 string to match.
1153 if (memcmp(RuleIdentifier.data()+16, "eil", 3) != 0)
1154 break;
1155 return 166; // "constant_fold_fceil"
1156 case 'l': // 1 string to match.
1157 if (memcmp(RuleIdentifier.data()+16, "og2", 3) != 0)
1158 break;
1159 return 163; // "constant_fold_flog2"
1160 case 'p': // 1 string to match.
1161 if (memcmp(RuleIdentifier.data()+16, "ext", 3) != 0)
1162 break;
1163 return 165; // "constant_fold_fpext"
1164 case 'r': // 1 string to match.
1165 if (memcmp(RuleIdentifier.data()+16, "int", 3) != 0)
1166 break;
1167 return 171; // "constant_fold_frint"
1168 case 's': // 1 string to match.
1169 if (memcmp(RuleIdentifier.data()+16, "qrt", 3) != 0)
1170 break;
1171 return 162; // "constant_fold_fsqrt"
1172 }
1173 break;
1174 }
1175 break;
1176 }
1177 break;
1178 case 'e': // 1 string to match.
1179 if (memcmp(RuleIdentifier.data()+1, "xtend_through_phis", 18) != 0)
1180 break;
1181 return 117; // "extend_through_phis"
1182 case 'i': // 1 string to match.
1183 if (memcmp(RuleIdentifier.data()+1, "nteger_of_truncate", 18) != 0)
1184 break;
1185 return 70; // "integer_of_truncate"
1186 case 'm': // 3 strings to match.
1187 switch (RuleIdentifier[1]) {
1188 default: break;
1189 case 'e': // 1 string to match.
1190 if (memcmp(RuleIdentifier.data()+2, "rge_of_x_and_zero", 17) != 0)
1191 break;
1192 return 307; // "merge_of_x_and_zero"
1193 case 'i': // 2 strings to match.
1194 if (memcmp(RuleIdentifier.data()+2, "nmax_nan_ieee_", 14) != 0)
1195 break;
1196 switch (RuleIdentifier[16]) {
1197 default: break;
1198 case 'l': // 1 string to match.
1199 if (memcmp(RuleIdentifier.data()+17, "hs", 2) != 0)
1200 break;
1201 return 187; // "minmax_nan_ieee_lhs"
1202 case 'r': // 1 string to match.
1203 if (memcmp(RuleIdentifier.data()+17, "hs", 2) != 0)
1204 break;
1205 return 188; // "minmax_nan_ieee_rhs"
1206 }
1207 break;
1208 }
1209 break;
1210 case 'p': // 1 string to match.
1211 if (memcmp(RuleIdentifier.data()+1, "tr_add_immed_chain", 18) != 0)
1212 break;
1213 return 123; // "ptr_add_immed_chain"
1214 case 'r': // 2 strings to match.
1215 switch (RuleIdentifier[1]) {
1216 default: break;
1217 case 'e': // 1 string to match.
1218 if (memcmp(RuleIdentifier.data()+2, "assoc_comm_binops", 17) != 0)
1219 break;
1220 return 122; // "reassoc_comm_binops"
1221 case 'i': // 1 string to match.
1222 if (memcmp(RuleIdentifier.data()+2, "ght_identity_zero", 17) != 0)
1223 break;
1224 return 93; // "right_identity_zero"
1225 }
1226 break;
1227 case 's': // 2 strings to match.
1228 if (memcmp(RuleIdentifier.data()+1, "implify_", 8) != 0)
1229 break;
1230 switch (RuleIdentifier[9]) {
1231 default: break;
1232 case 'a': // 1 string to match.
1233 if (memcmp(RuleIdentifier.data()+10, "dd_to_sub", 9) != 0)
1234 break;
1235 return 118; // "simplify_add_to_sub"
1236 case 'n': // 1 string to match.
1237 if (memcmp(RuleIdentifier.data()+10, "eg_minmax", 9) != 0)
1238 break;
1239 return 290; // "simplify_neg_minmax"
1240 }
1241 break;
1242 case 'u': // 1 string to match.
1243 if (memcmp(RuleIdentifier.data()+1, "nary_undef_to_zero", 18) != 0)
1244 break;
1245 return 82; // "unary_undef_to_zero"
1246 }
1247 break;
1248 case 20: // 11 strings to match.
1249 switch (RuleIdentifier[0]) {
1250 default: break;
1251 case 'a': // 1 string to match.
1252 if (memcmp(RuleIdentifier.data()+1, "nd_or_disjoint_mask", 19) != 0)
1253 break;
1254 return 227; // "and_or_disjoint_mask"
1255 case 'b': // 1 string to match.
1256 if (memcmp(RuleIdentifier.data()+1, "itcast_bitcast_fold", 19) != 0)
1257 break;
1258 return 111; // "bitcast_bitcast_fold"
1259 case 'c': // 1 string to match.
1260 if (memcmp(RuleIdentifier.data()+1, "onstant_fold_ffloor", 19) != 0)
1261 break;
1262 return 167; // "constant_fold_ffloor"
1263 case 'i': // 1 string to match.
1264 if (memcmp(RuleIdentifier.data()+1, "2p_to_p2i_same_size", 19) != 0)
1265 break;
1266 return 99; // "i2p_to_p2i_same_size"
1267 case 'm': // 1 string to match.
1268 if (memcmp(RuleIdentifier.data()+1, "erge_of_x_and_undef", 19) != 0)
1269 break;
1270 return 306; // "merge_of_x_and_undef"
1271 case 'o': // 1 string to match.
1272 if (memcmp(RuleIdentifier.data()+1, "r_and_xor_to_xor_or", 19) != 0)
1273 break;
1274 return 285; // "or_and_xor_to_xor_or"
1275 case 'r': // 2 strings to match.
1276 if (memcmp(RuleIdentifier.data()+1, "edu", 3) != 0)
1277 break;
1278 switch (RuleIdentifier[4]) {
1279 default: break;
1280 case 'c': // 1 string to match.
1281 if (memcmp(RuleIdentifier.data()+5, "e_shl_of_extend", 15) != 0)
1282 break;
1283 return 134; // "reduce_shl_of_extend"
1284 case 'n': // 1 string to match.
1285 if (memcmp(RuleIdentifier.data()+5, "dant_sext_inreg", 15) != 0)
1286 break;
1287 return 145; // "redundant_sext_inreg"
1288 }
1289 break;
1290 case 'u': // 3 strings to match.
1291 switch (RuleIdentifier[1]) {
1292 default: break;
1293 case 'd': // 1 string to match.
1294 if (memcmp(RuleIdentifier.data()+2, "iv_by_shifted_pow2", 18) != 0)
1295 break;
1296 return 242; // "udiv_by_shifted_pow2"
1297 case 'n': // 2 strings to match.
1298 switch (RuleIdentifier[2]) {
1299 default: break;
1300 case 'a': // 1 string to match.
1301 if (memcmp(RuleIdentifier.data()+3, "ry_undef_to_undef", 17) != 0)
1302 break;
1303 return 83; // "unary_undef_to_undef"
1304 case 'm': // 1 string to match.
1305 if (memcmp(RuleIdentifier.data()+3, "erge_zext_to_zext", 17) != 0)
1306 break;
1307 return 305; // "unmerge_zext_to_zext"
1308 }
1309 break;
1310 }
1311 break;
1312 }
1313 break;
1314 case 21: // 13 strings to match.
1315 switch (RuleIdentifier[0]) {
1316 default: break;
1317 case 'a': // 1 string to match.
1318 if (memcmp(RuleIdentifier.data()+1, "nd_xor_or_to_xor_and", 20) != 0)
1319 break;
1320 return 287; // "and_xor_or_to_xor_and"
1321 case 'c': // 4 strings to match.
1322 if (RuleIdentifier[1] != 'o')
1323 break;
1324 switch (RuleIdentifier[2]) {
1325 default: break;
1326 case 'm': // 2 strings to match.
1327 if (memcmp(RuleIdentifier.data()+3, "bine_", 5) != 0)
1328 break;
1329 switch (RuleIdentifier[8]) {
1330 default: break;
1331 case 'b': // 1 string to match.
1332 if (memcmp(RuleIdentifier.data()+9, "uild_unmerge", 12) != 0)
1333 break;
1334 return 308; // "combine_build_unmerge"
1335 case 'c': // 1 string to match.
1336 if (memcmp(RuleIdentifier.data()+9, "oncat_vector", 12) != 0)
1337 break;
1338 return 291; // "combine_concat_vector"
1339 }
1340 break;
1341 case 'n': // 2 strings to match.
1342 if (memcmp(RuleIdentifier.data()+3, "stant_fold_", 11) != 0)
1343 break;
1344 switch (RuleIdentifier[14]) {
1345 default: break;
1346 case 'c': // 1 string to match.
1347 if (memcmp(RuleIdentifier.data()+15, "ast_op", 6) != 0)
1348 break;
1349 return 216; // "constant_fold_cast_op"
1350 case 'f': // 1 string to match.
1351 if (memcmp(RuleIdentifier.data()+15, "ptrunc", 6) != 0)
1352 break;
1353 return 164; // "constant_fold_fptrunc"
1354 }
1355 break;
1356 }
1357 break;
1358 case 'f': // 2 strings to match.
1359 switch (RuleIdentifier[1]) {
1360 default: break;
1361 case 'd': // 1 string to match.
1362 if (memcmp(RuleIdentifier.data()+2, "iv_repeated_divison", 19) != 0)
1363 break;
1364 return 246; // "fdiv_repeated_divison"
1365 case 'p': // 1 string to match.
1366 if (memcmp(RuleIdentifier.data()+2, "touisat_ffloor_fold", 19) != 0)
1367 break;
1368 return 320; // "fptouisat_ffloor_fold"
1369 }
1370 break;
1371 case 'i': // 1 string to match.
1372 if (memcmp(RuleIdentifier.data()+1, "nsert_vector_elt_oob", 20) != 0)
1373 break;
1374 return 29; // "insert_vector_elt_oob"
1375 case 'l': // 1 string to match.
1376 if (memcmp(RuleIdentifier.data()+1, "shr_of_trunc_of_lshr", 20) != 0)
1377 break;
1378 return 321; // "lshr_of_trunc_of_lshr"
1379 case 'r': // 1 string to match.
1380 if (memcmp(RuleIdentifier.data()+1, "ight_identity_one_fp", 20) != 0)
1381 break;
1382 return 105; // "right_identity_one_fp"
1383 case 's': // 1 string to match.
1384 if (memcmp(RuleIdentifier.data()+1, "elect_same_val_equiv", 20) != 0)
1385 break;
1386 return 92; // "select_same_val_equiv"
1387 case 'u': // 2 strings to match.
1388 if (RuleIdentifier[1] != 'n')
1389 break;
1390 switch (RuleIdentifier[2]) {
1391 default: break;
1392 case 'd': // 1 string to match.
1393 if (memcmp(RuleIdentifier.data()+3, "ef_to_negative_one", 18) != 0)
1394 break;
1395 return 79; // "undef_to_negative_one"
1396 case 'm': // 1 string to match.
1397 if (memcmp(RuleIdentifier.data()+3, "erge_dead_to_trunc", 18) != 0)
1398 break;
1399 return 304; // "unmerge_dead_to_trunc"
1400 }
1401 break;
1402 }
1403 break;
1404 case 22: // 11 strings to match.
1405 switch (RuleIdentifier[0]) {
1406 default: break;
1407 case 'c': // 3 strings to match.
1408 if (RuleIdentifier[1] != 'o')
1409 break;
1410 switch (RuleIdentifier[2]) {
1411 default: break;
1412 case 'm': // 2 strings to match.
1413 if (memcmp(RuleIdentifier.data()+3, "bine_shuffle_", 13) != 0)
1414 break;
1415 switch (RuleIdentifier[16]) {
1416 default: break;
1417 case 'c': // 1 string to match.
1418 if (memcmp(RuleIdentifier.data()+17, "oncat", 5) != 0)
1419 break;
1420 return 295; // "combine_shuffle_concat"
1421 case 'v': // 1 string to match.
1422 if (memcmp(RuleIdentifier.data()+17, "ector", 5) != 0)
1423 break;
1424 return 344; // "combine_shuffle_vector"
1425 }
1426 break;
1427 case 'n': // 1 string to match.
1428 if (memcmp(RuleIdentifier.data()+3, "stant_fold_fp_binop", 19) != 0)
1429 break;
1430 return 214; // "constant_fold_fp_binop"
1431 }
1432 break;
1433 case 'f': // 2 strings to match.
1434 if (memcmp(RuleIdentifier.data()+1, "unnel_shift_", 12) != 0)
1435 break;
1436 switch (RuleIdentifier[13]) {
1437 default: break;
1438 case 'l': // 1 string to match.
1439 if (memcmp(RuleIdentifier.data()+14, "eft_zero", 8) != 0)
1440 break;
1441 return 201; // "funnel_shift_left_zero"
1442 case 'o': // 1 string to match.
1443 if (memcmp(RuleIdentifier.data()+14, "vershift", 8) != 0)
1444 break;
1445 return 202; // "funnel_shift_overshift"
1446 }
1447 break;
1448 case 'i': // 1 string to match.
1449 if (memcmp(RuleIdentifier.data()+1, "cmp_to_lhs_known_bits", 21) != 0)
1450 break;
1451 return 127; // "icmp_to_lhs_known_bits"
1452 case 'm': // 1 string to match.
1453 if (memcmp(RuleIdentifier.data()+1, "ul_by_zero_one_vector", 21) != 0)
1454 break;
1455 return 46; // "mul_by_zero_one_vector"
1456 case 'p': // 1 string to match.
1457 if (memcmp(RuleIdentifier.data()+1, "ropagate_undef_any_op", 21) != 0)
1458 break;
1459 return 84; // "propagate_undef_any_op"
1460 case 'r': // 1 string to match.
1461 if (memcmp(RuleIdentifier.data()+1, "ight_identity_one_int", 21) != 0)
1462 break;
1463 return 104; // "right_identity_one_int"
1464 case 's': // 1 string to match.
1465 if (memcmp(RuleIdentifier.data()+1, "hl_ashr_to_sext_inreg", 21) != 0)
1466 break;
1467 return 131; // "shl_ashr_to_sext_inreg"
1468 case 't': // 1 string to match.
1469 if (memcmp(RuleIdentifier.data()+1, "runc_buildvector_fold", 21) != 0)
1470 break;
1471 return 109; // "trunc_buildvector_fold"
1472 }
1473 break;
1474 case 23: // 6 strings to match.
1475 switch (RuleIdentifier[0]) {
1476 default: break;
1477 case 'b': // 1 string to match.
1478 if (memcmp(RuleIdentifier.data()+1, "uildvector_of_truncate", 22) != 0)
1479 break;
1480 return 63; // "buildvector_of_truncate"
1481 case 'f': // 1 string to match.
1482 if (memcmp(RuleIdentifier.data()+1, "unnel_shift_right_zero", 22) != 0)
1483 break;
1484 return 200; // "funnel_shift_right_zero"
1485 case 'i': // 2 strings to match.
1486 if (memcmp(RuleIdentifier.data()+1, "tof_const_zero_fold_", 20) != 0)
1487 break;
1488 switch (RuleIdentifier[21]) {
1489 default: break;
1490 case 's': // 1 string to match.
1491 if (RuleIdentifier[22] != 'i')
1492 break;
1493 return 173; // "itof_const_zero_fold_si"
1494 case 'u': // 1 string to match.
1495 if (RuleIdentifier[22] != 'i')
1496 break;
1497 return 174; // "itof_const_zero_fold_ui"
1498 }
1499 break;
1500 case 's': // 1 string to match.
1501 if (memcmp(RuleIdentifier.data()+1, "elect_same_val_trivial", 22) != 0)
1502 break;
1503 return 91; // "select_same_val_trivial"
1504 case 't': // 1 string to match.
1505 if (memcmp(RuleIdentifier.data()+1, "runcusatu_to_fptouisat", 22) != 0)
1506 break;
1507 return 318; // "truncusatu_to_fptouisat"
1508 }
1509 break;
1510 case 24: // 17 strings to match.
1511 switch (RuleIdentifier[0]) {
1512 default: break;
1513 case 'b': // 1 string to match.
1514 if (memcmp(RuleIdentifier.data()+1, "inop_left_undef_to_zero", 23) != 0)
1515 break;
1516 return 80; // "binop_left_undef_to_zero"
1517 case 'c': // 4 strings to match.
1518 switch (RuleIdentifier[1]) {
1519 default: break;
1520 case 'o': // 1 string to match.
1521 if (memcmp(RuleIdentifier.data()+2, "nstant_fold_fnearbyint", 22) != 0)
1522 break;
1523 return 172; // "constant_fold_fnearbyint"
1524 case 't': // 3 strings to match.
1525 switch (RuleIdentifier[2]) {
1526 default: break;
1527 case 'l': // 2 strings to match.
1528 if (memcmp(RuleIdentifier.data()+3, "z_", 2) != 0)
1529 break;
1530 switch (RuleIdentifier[5]) {
1531 default: break;
1532 case 't': // 1 string to match.
1533 if (memcmp(RuleIdentifier.data()+6, "o_ctlz_zero_poison", 18) != 0)
1534 break;
1535 return 324; // "ctlz_to_ctlz_zero_poison"
1536 case 'z': // 1 string to match.
1537 if (memcmp(RuleIdentifier.data()+6, "ero_poison_to_ctls", 18) != 0)
1538 break;
1539 return 323; // "ctlz_zero_poison_to_ctls"
1540 }
1541 break;
1542 case 't': // 1 string to match.
1543 if (memcmp(RuleIdentifier.data()+3, "z_to_cttz_zero_poison", 21) != 0)
1544 break;
1545 return 325; // "cttz_to_cttz_zero_poison"
1546 }
1547 break;
1548 }
1549 break;
1550 case 'f': // 2 strings to match.
1551 if (memcmp(RuleIdentifier.data()+1, "old_binop_into_select_", 22) != 0)
1552 break;
1553 switch (RuleIdentifier[23]) {
1554 default: break;
1555 case 'a': // 1 string to match.
1556 return 236; // "fold_binop_into_select_a"
1557 case 'b': // 1 string to match.
1558 return 237; // "fold_binop_into_select_b"
1559 }
1560 break;
1561 case 'm': // 1 string to match.
1562 if (memcmp(RuleIdentifier.data()+1, "atch_extract_of_element", 23) != 0)
1563 break;
1564 return 28; // "match_extract_of_element"
1565 case 'n': // 1 string to match.
1566 if (memcmp(RuleIdentifier.data()+1, "arrow_binop_feeding_and", 23) != 0)
1567 break;
1568 return 135; // "narrow_binop_feeding_and"
1569 case 'p': // 2 strings to match.
1570 if (memcmp(RuleIdentifier.data()+1, "tr_add_with_zero_", 17) != 0)
1571 break;
1572 switch (RuleIdentifier[18]) {
1573 default: break;
1574 case 's': // 1 string to match.
1575 if (memcmp(RuleIdentifier.data()+19, "calar", 5) != 0)
1576 break;
1577 return 191; // "ptr_add_with_zero_scalar"
1578 case 'v': // 1 string to match.
1579 if (memcmp(RuleIdentifier.data()+19, "ector", 5) != 0)
1580 break;
1581 return 192; // "ptr_add_with_zero_vector"
1582 }
1583 break;
1584 case 's': // 3 strings to match.
1585 if (RuleIdentifier[1] != 'e')
1586 break;
1587 switch (RuleIdentifier[2]) {
1588 default: break;
1589 case 'l': // 1 string to match.
1590 if (memcmp(RuleIdentifier.data()+3, "ect_constant_cmp_true", 21) != 0)
1591 break;
1592 return 138; // "select_constant_cmp_true"
1593 case 'x': // 2 strings to match.
1594 if (memcmp(RuleIdentifier.data()+3, "t_inreg_", 8) != 0)
1595 break;
1596 switch (RuleIdentifier[11]) {
1597 default: break;
1598 case 'o': // 1 string to match.
1599 if (memcmp(RuleIdentifier.data()+12, "f_sext_inreg", 12) != 0)
1600 break;
1601 return 59; // "sext_inreg_of_sext_inreg"
1602 case 't': // 1 string to match.
1603 if (memcmp(RuleIdentifier.data()+12, "o_zext_inreg", 12) != 0)
1604 break;
1605 return 154; // "sext_inreg_to_zext_inreg"
1606 }
1607 break;
1608 }
1609 break;
1610 case 't': // 2 strings to match.
1611 if (memcmp(RuleIdentifier.data()+1, "runc_lshr16_unmerge_", 20) != 0)
1612 break;
1613 switch (RuleIdentifier[21]) {
1614 default: break;
1615 case 'f': // 1 string to match.
1616 if (memcmp(RuleIdentifier.data()+22, "16", 2) != 0)
1617 break;
1618 return 347; // "trunc_lshr16_unmerge_f16"
1619 case 'i': // 1 string to match.
1620 if (memcmp(RuleIdentifier.data()+22, "16", 2) != 0)
1621 break;
1622 return 346; // "trunc_lshr16_unmerge_i16"
1623 }
1624 break;
1625 case 'x': // 1 string to match.
1626 if (memcmp(RuleIdentifier.data()+1, "or_of_and_with_same_reg", 23) != 0)
1627 break;
1628 return 190; // "xor_of_and_with_same_reg"
1629 }
1630 break;
1631 case 25: // 10 strings to match.
1632 switch (RuleIdentifier[0]) {
1633 default: break;
1634 case 'b': // 2 strings to match.
1635 if (memcmp(RuleIdentifier.data()+1, "itfield_extract_from_", 21) != 0)
1636 break;
1637 switch (RuleIdentifier[22]) {
1638 default: break;
1639 case 'a': // 1 string to match.
1640 if (memcmp(RuleIdentifier.data()+23, "nd", 2) != 0)
1641 break;
1642 return 210; // "bitfield_extract_from_and"
1643 case 's': // 1 string to match.
1644 if (memcmp(RuleIdentifier.data()+23, "hr", 2) != 0)
1645 break;
1646 return 211; // "bitfield_extract_from_shr"
1647 }
1648 break;
1649 case 'c': // 1 string to match.
1650 if (memcmp(RuleIdentifier.data()+1, "ombine_shuffle_undef_rhs", 24) != 0)
1651 break;
1652 return 296; // "combine_shuffle_undef_rhs"
1653 case 'e': // 1 string to match.
1654 if (memcmp(RuleIdentifier.data()+1, "xtract_vec_elt_build_vec", 24) != 0)
1655 break;
1656 return 72; // "extract_vec_elt_build_vec"
1657 case 'n': // 1 string to match.
1658 if (memcmp(RuleIdentifier.data()+1, "eg_and_one_to_sext_inreg", 24) != 0)
1659 break;
1660 return 132; // "neg_and_one_to_sext_inreg"
1661 case 'r': // 3 strings to match.
1662 switch (RuleIdentifier[1]) {
1663 default: break;
1664 case 'e': // 2 strings to match.
1665 if (memcmp(RuleIdentifier.data()+2, "dundant_", 8) != 0)
1666 break;
1667 switch (RuleIdentifier[10]) {
1668 default: break;
1669 case 'a': // 1 string to match.
1670 if (memcmp(RuleIdentifier.data()+11, "ext_sext_inreg", 14) != 0)
1671 break;
1672 return 147; // "redundant_aext_sext_inreg"
1673 case 'z': // 1 string to match.
1674 if (memcmp(RuleIdentifier.data()+11, "ext_sext_inreg", 14) != 0)
1675 break;
1676 return 146; // "redundant_zext_sext_inreg"
1677 }
1678 break;
1679 case 'i': // 1 string to match.
1680 if (memcmp(RuleIdentifier.data()+2, "ght_identity_neg_one_fp", 23) != 0)
1681 break;
1682 return 116; // "right_identity_neg_one_fp"
1683 }
1684 break;
1685 case 's': // 1 string to match.
1686 if (memcmp(RuleIdentifier.data()+1, "elect_constant_cmp_false", 24) != 0)
1687 break;
1688 return 137; // "select_constant_cmp_false"
1689 case 't': // 1 string to match.
1690 if (memcmp(RuleIdentifier.data()+1, "runc_lshr16_unmerge_bf16", 24) != 0)
1691 break;
1692 return 348; // "trunc_lshr16_unmerge_bf16"
1693 }
1694 break;
1695 case 26: // 5 strings to match.
1696 switch (RuleIdentifier[0]) {
1697 default: break;
1698 case 'b': // 2 strings to match.
1699 if (RuleIdentifier[1] != 'i')
1700 break;
1701 switch (RuleIdentifier[2]) {
1702 default: break;
1703 case 'n': // 1 string to match.
1704 if (memcmp(RuleIdentifier.data()+3, "op_right_undef_to_undef", 23) != 0)
1705 break;
1706 return 81; // "binop_right_undef_to_undef"
1707 case 't': // 1 string to match.
1708 if (memcmp(RuleIdentifier.data()+3, "cast_bitcast_to_bitcast", 23) != 0)
1709 break;
1710 return 112; // "bitcast_bitcast_to_bitcast"
1711 }
1712 break;
1713 case 'c': // 1 string to match.
1714 if (memcmp(RuleIdentifier.data()+1, "onstant_fold_unary_int_op", 25) != 0)
1715 break;
1716 return 217; // "constant_fold_unary_int_op"
1717 case 'f': // 1 string to match.
1718 if (memcmp(RuleIdentifier.data()+1, "unnel_shift_from_or_shift", 25) != 0)
1719 break;
1720 return 197; // "funnel_shift_from_or_shift"
1721 case 'r': // 1 string to match.
1722 if (memcmp(RuleIdentifier.data()+1, "ight_identity_neg_zero_fp", 25) != 0)
1723 break;
1724 return 114; // "right_identity_neg_zero_fp"
1725 }
1726 break;
1727 case 27: // 7 strings to match.
1728 switch (RuleIdentifier[0]) {
1729 default: break;
1730 case 'c': // 1 string to match.
1731 if (memcmp(RuleIdentifier.data()+1, "ombine_use_vector_truncate", 26) != 0)
1732 break;
1733 return 298; // "combine_use_vector_truncate"
1734 case 'd': // 1 string to match.
1735 if (memcmp(RuleIdentifier.data()+1, "ouble_icmp_zero_or_combine", 26) != 0)
1736 break;
1737 return 129; // "double_icmp_zero_or_combine"
1738 case 'f': // 1 string to match.
1739 if (memcmp(RuleIdentifier.data()+1, "unnel_shift_to_rotate_left", 26) != 0)
1740 break;
1741 return 198; // "funnel_shift_to_rotate_left"
1742 case 'r': // 2 strings to match.
1743 if (memcmp(RuleIdentifier.data()+1, "edundant_", 9) != 0)
1744 break;
1745 switch (RuleIdentifier[10]) {
1746 default: break;
1747 case 'b': // 1 string to match.
1748 if (memcmp(RuleIdentifier.data()+11, "inop_in_equality", 16) != 0)
1749 break;
1750 return 130; // "redundant_binop_in_equality"
1751 case 'n': // 1 string to match.
1752 if (memcmp(RuleIdentifier.data()+11, "eg_operands_fsub", 16) != 0)
1753 break;
1754 return 222; // "redundant_neg_operands_fsub"
1755 }
1756 break;
1757 case 't': // 1 string to match.
1758 if (memcmp(RuleIdentifier.data()+1, "runc_lshr_buildvector_fold", 26) != 0)
1759 break;
1760 return 110; // "trunc_lshr_buildvector_fold"
1761 case 'u': // 1 string to match.
1762 if (memcmp(RuleIdentifier.data()+1, "nmerge_anyext_build_vector", 26) != 0)
1763 break;
1764 return 299; // "unmerge_anyext_build_vector"
1765 }
1766 break;
1767 case 28: // 14 strings to match.
1768 switch (RuleIdentifier[0]) {
1769 default: break;
1770 case 'G': // 1 string to match.
1771 if (memcmp(RuleIdentifier.data()+1, "_OR_commute_constant_to_rhs", 27) != 0)
1772 break;
1773 return 256; // "G_OR_commute_constant_to_rhs"
1774 case 'b': // 1 string to match.
1775 if (memcmp(RuleIdentifier.data()+1, "uildvector_identity_fold_bv", 27) != 0)
1776 break;
1777 return 107; // "buildvector_identity_fold_bv"
1778 case 'c': // 1 string to match.
1779 if (memcmp(RuleIdentifier.data()+1, "ombine_or_s64_with_s32_mask", 27) != 0)
1780 break;
1781 return 349; // "combine_or_s64_with_s32_mask"
1782 case 'd': // 1 string to match.
1783 if (memcmp(RuleIdentifier.data()+1, "ouble_icmp_zero_and_combine", 27) != 0)
1784 break;
1785 return 128; // "double_icmp_zero_and_combine"
1786 case 'e': // 1 string to match.
1787 if (memcmp(RuleIdentifier.data()+1, "xtract_vector_element_undef", 27) != 0)
1788 break;
1789 return 25; // "extract_vector_element_undef"
1790 case 'f': // 1 string to match.
1791 if (memcmp(RuleIdentifier.data()+1, "unnel_shift_to_rotate_right", 27) != 0)
1792 break;
1793 return 199; // "funnel_shift_to_rotate_right"
1794 case 'i': // 1 string to match.
1795 if (memcmp(RuleIdentifier.data()+1, "nsert_vec_elt_out_of_bounds", 27) != 0)
1796 break;
1797 return 89; // "insert_vec_elt_out_of_bounds"
1798 case 'm': // 4 strings to match.
1799 if (memcmp(RuleIdentifier.data()+1, "atch_", 5) != 0)
1800 break;
1801 switch (RuleIdentifier[6]) {
1802 default: break;
1803 case 'a': // 2 strings to match.
1804 if (memcmp(RuleIdentifier.data()+7, "ddos_", 5) != 0)
1805 break;
1806 switch (RuleIdentifier[12]) {
1807 default: break;
1808 case 's': // 1 string to match.
1809 if (memcmp(RuleIdentifier.data()+13, "addo_dead_carry", 15) != 0)
1810 break;
1811 return 309; // "match_addos_saddo_dead_carry"
1812 case 'u': // 1 string to match.
1813 if (memcmp(RuleIdentifier.data()+13, "addo_dead_carry", 15) != 0)
1814 break;
1815 return 310; // "match_addos_uaddo_dead_carry"
1816 }
1817 break;
1818 case 's': // 2 strings to match.
1819 if (memcmp(RuleIdentifier.data()+7, "ubo_no_overflow_", 16) != 0)
1820 break;
1821 switch (RuleIdentifier[23]) {
1822 default: break;
1823 case 's': // 1 string to match.
1824 if (memcmp(RuleIdentifier.data()+24, "subo", 4) != 0)
1825 break;
1826 return 313; // "match_subo_no_overflow_ssubo"
1827 case 'u': // 1 string to match.
1828 if (memcmp(RuleIdentifier.data()+24, "subo", 4) != 0)
1829 break;
1830 return 314; // "match_subo_no_overflow_usubo"
1831 }
1832 break;
1833 }
1834 break;
1835 case 'o': // 1 string to match.
1836 if (memcmp(RuleIdentifier.data()+1, "pt_brcond_by_inverting_cond", 27) != 0)
1837 break;
1838 return 159; // "opt_brcond_by_inverting_cond"
1839 case 'p': // 1 string to match.
1840 if (memcmp(RuleIdentifier.data()+1, "ropagate_undef_shuffle_mask", 27) != 0)
1841 break;
1842 return 87; // "propagate_undef_shuffle_mask"
1843 case 's': // 1 string to match.
1844 if (memcmp(RuleIdentifier.data()+1, "hift_of_shifted_logic_chain", 27) != 0)
1845 break;
1846 return 194; // "shift_of_shifted_logic_chain"
1847 }
1848 break;
1849 case 29: // 13 strings to match.
1850 switch (RuleIdentifier[0]) {
1851 default: break;
1852 case 'G': // 4 strings to match.
1853 if (RuleIdentifier[1] != '_')
1854 break;
1855 switch (RuleIdentifier[2]) {
1856 default: break;
1857 case 'A': // 2 strings to match.
1858 switch (RuleIdentifier[3]) {
1859 default: break;
1860 case 'D': // 1 string to match.
1861 if (memcmp(RuleIdentifier.data()+4, "D_commute_constant_to_rhs", 25) != 0)
1862 break;
1863 return 253; // "G_ADD_commute_constant_to_rhs"
1864 case 'N': // 1 string to match.
1865 if (memcmp(RuleIdentifier.data()+4, "D_commute_constant_to_rhs", 25) != 0)
1866 break;
1867 return 255; // "G_AND_commute_constant_to_rhs"
1868 }
1869 break;
1870 case 'M': // 1 string to match.
1871 if (memcmp(RuleIdentifier.data()+3, "UL_commute_constant_to_rhs", 26) != 0)
1872 break;
1873 return 254; // "G_MUL_commute_constant_to_rhs"
1874 case 'X': // 1 string to match.
1875 if (memcmp(RuleIdentifier.data()+3, "OR_commute_constant_to_rhs", 26) != 0)
1876 break;
1877 return 257; // "G_XOR_commute_constant_to_rhs"
1878 }
1879 break;
1880 case 'b': // 2 strings to match.
1881 switch (RuleIdentifier[1]) {
1882 default: break;
1883 case 'i': // 1 string to match.
1884 if (memcmp(RuleIdentifier.data()+2, "tfield_extract_from_shr_and", 27) != 0)
1885 break;
1886 return 212; // "bitfield_extract_from_shr_and"
1887 case 'u': // 1 string to match.
1888 if (memcmp(RuleIdentifier.data()+2, "ildvector_identity_fold_bvt", 27) != 0)
1889 break;
1890 return 108; // "buildvector_identity_fold_bvt"
1891 }
1892 break;
1893 case 'c': // 5 strings to match.
1894 if (RuleIdentifier[1] != 'o')
1895 break;
1896 switch (RuleIdentifier[2]) {
1897 default: break;
1898 case 'm': // 3 strings to match.
1899 if (memcmp(RuleIdentifier.data()+3, "bine_", 5) != 0)
1900 break;
1901 switch (RuleIdentifier[8]) {
1902 default: break;
1903 case 'a': // 1 string to match.
1904 if (memcmp(RuleIdentifier.data()+9, "nd_s64_with_s32_mask", 20) != 0)
1905 break;
1906 return 350; // "combine_and_s64_with_s32_mask"
1907 case 'e': // 1 string to match.
1908 if (memcmp(RuleIdentifier.data()+9, "xtracted_vector_load", 20) != 0)
1909 break;
1910 return 76; // "combine_extracted_vector_load"
1911 case 's': // 1 string to match.
1912 if (memcmp(RuleIdentifier.data()+9, "huffle_disjoint_mask", 20) != 0)
1913 break;
1914 return 297; // "combine_shuffle_disjoint_mask"
1915 }
1916 break;
1917 case 'n': // 2 strings to match.
1918 if (memcmp(RuleIdentifier.data()+3, "stant_fold_intrinsic_", 21) != 0)
1919 break;
1920 switch (RuleIdentifier[24]) {
1921 default: break;
1922 case 'r': // 1 string to match.
1923 if (memcmp(RuleIdentifier.data()+25, "ound", 4) != 0)
1924 break;
1925 return 169; // "constant_fold_intrinsic_round"
1926 case 't': // 1 string to match.
1927 if (memcmp(RuleIdentifier.data()+25, "runc", 4) != 0)
1928 break;
1929 return 168; // "constant_fold_intrinsic_trunc"
1930 }
1931 break;
1932 }
1933 break;
1934 case 'e': // 1 string to match.
1935 if (memcmp(RuleIdentifier.data()+1, "xtract_vec_elt_out_of_bounds", 28) != 0)
1936 break;
1937 return 90; // "extract_vec_elt_out_of_bounds"
1938 case 'i': // 1 string to match.
1939 if (memcmp(RuleIdentifier.data()+1, "cmp_to_true_false_known_bits", 28) != 0)
1940 break;
1941 return 126; // "icmp_to_true_false_known_bits"
1942 }
1943 break;
1944 case 30: // 6 strings to match.
1945 switch (RuleIdentifier[0]) {
1946 default: break;
1947 case 'G': // 4 strings to match.
1948 if (RuleIdentifier[1] != '_')
1949 break;
1950 switch (RuleIdentifier[2]) {
1951 default: break;
1952 case 'S': // 2 strings to match.
1953 if (RuleIdentifier[3] != 'M')
1954 break;
1955 switch (RuleIdentifier[4]) {
1956 default: break;
1957 case 'A': // 1 string to match.
1958 if (memcmp(RuleIdentifier.data()+5, "X_commute_constant_to_rhs", 25) != 0)
1959 break;
1960 return 259; // "G_SMAX_commute_constant_to_rhs"
1961 case 'I': // 1 string to match.
1962 if (memcmp(RuleIdentifier.data()+5, "N_commute_constant_to_rhs", 25) != 0)
1963 break;
1964 return 258; // "G_SMIN_commute_constant_to_rhs"
1965 }
1966 break;
1967 case 'U': // 2 strings to match.
1968 if (RuleIdentifier[3] != 'M')
1969 break;
1970 switch (RuleIdentifier[4]) {
1971 default: break;
1972 case 'A': // 1 string to match.
1973 if (memcmp(RuleIdentifier.data()+5, "X_commute_constant_to_rhs", 25) != 0)
1974 break;
1975 return 261; // "G_UMAX_commute_constant_to_rhs"
1976 case 'I': // 1 string to match.
1977 if (memcmp(RuleIdentifier.data()+5, "N_commute_constant_to_rhs", 25) != 0)
1978 break;
1979 return 260; // "G_UMIN_commute_constant_to_rhs"
1980 }
1981 break;
1982 }
1983 break;
1984 case 'f': // 1 string to match.
1985 if (memcmp(RuleIdentifier.data()+1, "reeze_of_non_undef_non_poison", 29) != 0)
1986 break;
1987 return 47; // "freeze_of_non_undef_non_poison"
1988 case 'r': // 1 string to match.
1989 if (memcmp(RuleIdentifier.data()+1, "ight_identity_neg_zero_fp_nsz", 29) != 0)
1990 break;
1991 return 115; // "right_identity_neg_zero_fp_nsz"
1992 }
1993 break;
1994 case 31: // 10 strings to match.
1995 switch (RuleIdentifier[0]) {
1996 default: break;
1997 case 'G': // 6 strings to match.
1998 if (RuleIdentifier[1] != '_')
1999 break;
2000 switch (RuleIdentifier[2]) {
2001 default: break;
2002 case 'S': // 3 strings to match.
2003 switch (RuleIdentifier[3]) {
2004 default: break;
2005 case 'A': // 1 string to match.
2006 if (memcmp(RuleIdentifier.data()+4, "DDO_commute_constant_to_rhs", 27) != 0)
2007 break;
2008 return 271; // "G_SADDO_commute_constant_to_rhs"
2009 case 'M': // 2 strings to match.
2010 if (memcmp(RuleIdentifier.data()+4, "UL", 2) != 0)
2011 break;
2012 switch (RuleIdentifier[6]) {
2013 default: break;
2014 case 'H': // 1 string to match.
2015 if (memcmp(RuleIdentifier.data()+7, "_commute_constant_to_rhs", 24) != 0)
2016 break;
2017 return 263; // "G_SMULH_commute_constant_to_rhs"
2018 case 'O': // 1 string to match.
2019 if (memcmp(RuleIdentifier.data()+7, "_commute_constant_to_rhs", 24) != 0)
2020 break;
2021 return 273; // "G_SMULO_commute_constant_to_rhs"
2022 }
2023 break;
2024 }
2025 break;
2026 case 'U': // 3 strings to match.
2027 switch (RuleIdentifier[3]) {
2028 default: break;
2029 case 'A': // 1 string to match.
2030 if (memcmp(RuleIdentifier.data()+4, "DDO_commute_constant_to_rhs", 27) != 0)
2031 break;
2032 return 270; // "G_UADDO_commute_constant_to_rhs"
2033 case 'M': // 2 strings to match.
2034 if (memcmp(RuleIdentifier.data()+4, "UL", 2) != 0)
2035 break;
2036 switch (RuleIdentifier[6]) {
2037 default: break;
2038 case 'H': // 1 string to match.
2039 if (memcmp(RuleIdentifier.data()+7, "_commute_constant_to_rhs", 24) != 0)
2040 break;
2041 return 262; // "G_UMULH_commute_constant_to_rhs"
2042 case 'O': // 1 string to match.
2043 if (memcmp(RuleIdentifier.data()+7, "_commute_constant_to_rhs", 24) != 0)
2044 break;
2045 return 272; // "G_UMULO_commute_constant_to_rhs"
2046 }
2047 break;
2048 }
2049 break;
2050 }
2051 break;
2052 case 'i': // 2 strings to match.
2053 if (memcmp(RuleIdentifier.data()+1, "nsert_vector_element_", 21) != 0)
2054 break;
2055 switch (RuleIdentifier[22]) {
2056 default: break;
2057 case 'e': // 1 string to match.
2058 if (memcmp(RuleIdentifier.data()+23, "lt_undef", 8) != 0)
2059 break;
2060 return 27; // "insert_vector_element_elt_undef"
2061 case 'i': // 1 string to match.
2062 if (memcmp(RuleIdentifier.data()+23, "dx_undef", 8) != 0)
2063 break;
2064 return 26; // "insert_vector_element_idx_undef"
2065 }
2066 break;
2067 case 'r': // 2 strings to match.
2068 if (memcmp(RuleIdentifier.data()+1, "edundant_neg_operands_fadd_", 27) != 0)
2069 break;
2070 switch (RuleIdentifier[28]) {
2071 default: break;
2072 case 'l': // 1 string to match.
2073 if (memcmp(RuleIdentifier.data()+29, "hs", 2) != 0)
2074 break;
2075 return 221; // "redundant_neg_operands_fadd_lhs"
2076 case 'r': // 1 string to match.
2077 if (memcmp(RuleIdentifier.data()+29, "hs", 2) != 0)
2078 break;
2079 return 220; // "redundant_neg_operands_fadd_rhs"
2080 }
2081 break;
2082 }
2083 break;
2084 case 32: // 5 strings to match.
2085 switch (RuleIdentifier[0]) {
2086 default: break;
2087 case 'b': // 1 string to match.
2088 if (memcmp(RuleIdentifier.data()+1, "itfield_extract_from_sext_inreg", 31) != 0)
2089 break;
2090 return 209; // "bitfield_extract_from_sext_inreg"
2091 case 'c': // 2 strings to match.
2092 if (memcmp(RuleIdentifier.data()+1, "ombine_f", 8) != 0)
2093 break;
2094 switch (RuleIdentifier[9]) {
2095 default: break;
2096 case 'a': // 1 string to match.
2097 if (memcmp(RuleIdentifier.data()+10, "dd_fmul_to_fmad_or_fma", 22) != 0)
2098 break;
2099 return 228; // "combine_fadd_fmul_to_fmad_or_fma"
2100 case 's': // 1 string to match.
2101 if (memcmp(RuleIdentifier.data()+10, "ub_fmul_to_fmad_or_fma", 22) != 0)
2102 break;
2103 return 232; // "combine_fsub_fmul_to_fmad_or_fma"
2104 }
2105 break;
2106 case 'e': // 1 string to match.
2107 if (memcmp(RuleIdentifier.data()+1, "xtract_vector_element_not_const", 31) != 0)
2108 break;
2109 return 30; // "extract_vector_element_not_const"
2110 case 's': // 1 string to match.
2111 if (memcmp(RuleIdentifier.data()+1, "elect_constant_cmp_general_true", 31) != 0)
2112 break;
2113 return 140; // "select_constant_cmp_general_true"
2114 }
2115 break;
2116 case 33: // 10 strings to match.
2117 switch (RuleIdentifier[0]) {
2118 default: break;
2119 case 'G': // 6 strings to match.
2120 if (RuleIdentifier[1] != '_')
2121 break;
2122 switch (RuleIdentifier[2]) {
2123 default: break;
2124 case 'F': // 2 strings to match.
2125 switch (RuleIdentifier[3]) {
2126 default: break;
2127 case 'A': // 1 string to match.
2128 if (memcmp(RuleIdentifier.data()+4, "DD_commute_fp_constant_to_rhs", 29) != 0)
2129 break;
2130 return 274; // "G_FADD_commute_fp_constant_to_rhs"
2131 case 'M': // 1 string to match.
2132 if (memcmp(RuleIdentifier.data()+4, "UL_commute_fp_constant_to_rhs", 29) != 0)
2133 break;
2134 return 275; // "G_FMUL_commute_fp_constant_to_rhs"
2135 }
2136 break;
2137 case 'S': // 2 strings to match.
2138 switch (RuleIdentifier[3]) {
2139 default: break;
2140 case 'A': // 1 string to match.
2141 if (memcmp(RuleIdentifier.data()+4, "DDSAT_commute_constant_to_rhs", 29) != 0)
2142 break;
2143 return 265; // "G_SADDSAT_commute_constant_to_rhs"
2144 case 'M': // 1 string to match.
2145 if (memcmp(RuleIdentifier.data()+4, "ULFIX_commute_constant_to_rhs", 29) != 0)
2146 break;
2147 return 266; // "G_SMULFIX_commute_constant_to_rhs"
2148 }
2149 break;
2150 case 'U': // 2 strings to match.
2151 switch (RuleIdentifier[3]) {
2152 default: break;
2153 case 'A': // 1 string to match.
2154 if (memcmp(RuleIdentifier.data()+4, "DDSAT_commute_constant_to_rhs", 29) != 0)
2155 break;
2156 return 264; // "G_UADDSAT_commute_constant_to_rhs"
2157 case 'M': // 1 string to match.
2158 if (memcmp(RuleIdentifier.data()+4, "ULFIX_commute_constant_to_rhs", 29) != 0)
2159 break;
2160 return 267; // "G_UMULFIX_commute_constant_to_rhs"
2161 }
2162 break;
2163 }
2164 break;
2165 case 'c': // 1 string to match.
2166 if (memcmp(RuleIdentifier.data()+1, "onstant_fold_intrinsic_roundeven", 32) != 0)
2167 break;
2168 return 170; // "constant_fold_intrinsic_roundeven"
2169 case 'r': // 2 strings to match.
2170 if (memcmp(RuleIdentifier.data()+1, "edundant_", 9) != 0)
2171 break;
2172 switch (RuleIdentifier[10]) {
2173 default: break;
2174 case 'a': // 1 string to match.
2175 if (memcmp(RuleIdentifier.data()+11, "ext_unmerge_sext_inreg", 22) != 0)
2176 break;
2177 return 149; // "redundant_aext_unmerge_sext_inreg"
2178 case 'z': // 1 string to match.
2179 if (memcmp(RuleIdentifier.data()+11, "ext_unmerge_sext_inreg", 22) != 0)
2180 break;
2181 return 148; // "redundant_zext_unmerge_sext_inreg"
2182 }
2183 break;
2184 case 's': // 1 string to match.
2185 if (memcmp(RuleIdentifier.data()+1, "elect_constant_cmp_general_false", 32) != 0)
2186 break;
2187 return 139; // "select_constant_cmp_general_false"
2188 }
2189 break;
2190 case 34: // 2 strings to match.
2191 switch (RuleIdentifier[0]) {
2192 default: break;
2193 case 'c': // 1 string to match.
2194 if (memcmp(RuleIdentifier.data()+1, "ombine_fmul_with_select_to_fldexp", 33) != 0)
2195 break;
2196 return 340; // "combine_fmul_with_select_to_fldexp"
2197 case 'e': // 1 string to match.
2198 if (memcmp(RuleIdentifier.data()+1, "xtract_all_elts_from_build_vector", 33) != 0)
2199 break;
2200 return 73; // "extract_all_elts_from_build_vector"
2201 }
2202 break;
2203 case 35: // 1 string to match.
2204 if (memcmp(RuleIdentifier.data()+0, "extract_vector_element_build_vector", 35) != 0)
2205 break;
2206 return 32; // "extract_vector_element_build_vector"
2207 case 36: // 7 strings to match.
2208 switch (RuleIdentifier[0]) {
2209 default: break;
2210 case 'G': // 4 strings to match.
2211 if (RuleIdentifier[1] != '_')
2212 break;
2213 switch (RuleIdentifier[2]) {
2214 default: break;
2215 case 'F': // 2 strings to match.
2216 if (RuleIdentifier[3] != 'M')
2217 break;
2218 switch (RuleIdentifier[4]) {
2219 default: break;
2220 case 'A': // 1 string to match.
2221 if (memcmp(RuleIdentifier.data()+5, "XNUM_commute_fp_constant_to_rhs", 31) != 0)
2222 break;
2223 return 277; // "G_FMAXNUM_commute_fp_constant_to_rhs"
2224 case 'I': // 1 string to match.
2225 if (memcmp(RuleIdentifier.data()+5, "NNUM_commute_fp_constant_to_rhs", 31) != 0)
2226 break;
2227 return 276; // "G_FMINNUM_commute_fp_constant_to_rhs"
2228 }
2229 break;
2230 case 'S': // 1 string to match.
2231 if (memcmp(RuleIdentifier.data()+3, "MULFIXSAT_commute_constant_to_rhs", 33) != 0)
2232 break;
2233 return 268; // "G_SMULFIXSAT_commute_constant_to_rhs"
2234 case 'U': // 1 string to match.
2235 if (memcmp(RuleIdentifier.data()+3, "MULFIXSAT_commute_constant_to_rhs", 33) != 0)
2236 break;
2237 return 269; // "G_UMULFIXSAT_commute_constant_to_rhs"
2238 }
2239 break;
2240 case 'c': // 2 strings to match.
2241 if (memcmp(RuleIdentifier.data()+1, "ombine_", 7) != 0)
2242 break;
2243 switch (RuleIdentifier[8]) {
2244 default: break;
2245 case 'f': // 1 string to match.
2246 if (memcmp(RuleIdentifier.data()+9, "add_fma_fmul_to_fmad_or_fma", 27) != 0)
2247 break;
2248 return 230; // "combine_fadd_fma_fmul_to_fmad_or_fma"
2249 case 'i': // 1 string to match.
2250 if (memcmp(RuleIdentifier.data()+9, "nsert_vec_elts_build_vector", 27) != 0)
2251 break;
2252 return 71; // "combine_insert_vec_elts_build_vector"
2253 }
2254 break;
2255 case 'p': // 1 string to match.
2256 if (memcmp(RuleIdentifier.data()+1, "ropagate_undef_all_ops_build_vector", 35) != 0)
2257 break;
2258 return 86; // "propagate_undef_all_ops_build_vector"
2259 }
2260 break;
2261 case 37: // 5 strings to match.
2262 switch (RuleIdentifier[0]) {
2263 default: break;
2264 case 'G': // 2 strings to match.
2265 if (memcmp(RuleIdentifier.data()+1, "_FM", 3) != 0)
2266 break;
2267 switch (RuleIdentifier[4]) {
2268 default: break;
2269 case 'A': // 1 string to match.
2270 if (memcmp(RuleIdentifier.data()+5, "XIMUM_commute_fp_constant_to_rhs", 32) != 0)
2271 break;
2272 return 281; // "G_FMAXIMUM_commute_fp_constant_to_rhs"
2273 case 'I': // 1 string to match.
2274 if (memcmp(RuleIdentifier.data()+5, "NIMUM_commute_fp_constant_to_rhs", 32) != 0)
2275 break;
2276 return 280; // "G_FMINIMUM_commute_fp_constant_to_rhs"
2277 }
2278 break;
2279 case 'c': // 1 string to match.
2280 if (memcmp(RuleIdentifier.data()+1, "ombine_fsub_fneg_fmul_to_fmad_or_fma", 36) != 0)
2281 break;
2282 return 233; // "combine_fsub_fneg_fmul_to_fmad_or_fma"
2283 case 'e': // 1 string to match.
2284 if (memcmp(RuleIdentifier.data()+1, "xtract_vector_element_shuffle_vector", 36) != 0)
2285 break;
2286 return 40; // "extract_vector_element_shuffle_vector"
2287 case 'h': // 1 string to match.
2288 if (memcmp(RuleIdentifier.data()+1, "oist_logic_op_with_same_opcode_hands", 36) != 0)
2289 break;
2290 return 119; // "hoist_logic_op_with_same_opcode_hands"
2291 }
2292 break;
2293 case 38: // 4 strings to match.
2294 switch (RuleIdentifier[0]) {
2295 default: break;
2296 case 'c': // 3 strings to match.
2297 if (memcmp(RuleIdentifier.data()+1, "ombine_", 7) != 0)
2298 break;
2299 switch (RuleIdentifier[8]) {
2300 default: break;
2301 case 'f': // 2 strings to match.
2302 switch (RuleIdentifier[9]) {
2303 default: break;
2304 case 'a': // 1 string to match.
2305 if (memcmp(RuleIdentifier.data()+10, "dd_fpext_fmul_to_fmad_or_fma", 28) != 0)
2306 break;
2307 return 229; // "combine_fadd_fpext_fmul_to_fmad_or_fma"
2308 case 's': // 1 string to match.
2309 if (memcmp(RuleIdentifier.data()+10, "ub_fpext_fmul_to_fmad_or_fma", 28) != 0)
2310 break;
2311 return 234; // "combine_fsub_fpext_fmul_to_fmad_or_fma"
2312 }
2313 break;
2314 case 's': // 1 string to match.
2315 if (memcmp(RuleIdentifier.data()+9, "huffle_vector_to_build_vector", 29) != 0)
2316 break;
2317 return 345; // "combine_shuffle_vector_to_build_vector"
2318 }
2319 break;
2320 case 'p': // 1 string to match.
2321 if (memcmp(RuleIdentifier.data()+1, "ropagate_undef_all_ops_shuffle_vector", 37) != 0)
2322 break;
2323 return 85; // "propagate_undef_all_ops_shuffle_vector"
2324 }
2325 break;
2326 case 40: // 1 string to match.
2327 if (memcmp(RuleIdentifier.data()+0, "extract_vector_element_different_indices", 40) != 0)
2328 break;
2329 return 31; // "extract_vector_element_different_indices"
2330 case 41: // 2 strings to match.
2331 if (memcmp(RuleIdentifier.data()+0, "G_FM", 4) != 0)
2332 break;
2333 switch (RuleIdentifier[4]) {
2334 default: break;
2335 case 'A': // 1 string to match.
2336 if (memcmp(RuleIdentifier.data()+5, "XNUM_IEEE_commute_fp_constant_to_rhs", 36) != 0)
2337 break;
2338 return 279; // "G_FMAXNUM_IEEE_commute_fp_constant_to_rhs"
2339 case 'I': // 1 string to match.
2340 if (memcmp(RuleIdentifier.data()+5, "NNUM_IEEE_commute_fp_constant_to_rhs", 36) != 0)
2341 break;
2342 return 278; // "G_FMINNUM_IEEE_commute_fp_constant_to_rhs"
2343 }
2344 break;
2345 case 42: // 9 strings to match.
2346 switch (RuleIdentifier[0]) {
2347 default: break;
2348 case 'c': // 1 string to match.
2349 if (memcmp(RuleIdentifier.data()+1, "ombine_fadd_fpext_fma_fmul_to_fmad_or_fma", 41) != 0)
2350 break;
2351 return 231; // "combine_fadd_fpext_fma_fmul_to_fmad_or_fma"
2352 case 'e': // 7 strings to match.
2353 if (memcmp(RuleIdentifier.data()+1, "xtract_vector_element_build_vector_trunc", 40) != 0)
2354 break;
2355 switch (RuleIdentifier[41]) {
2356 default: break;
2357 case '2': // 1 string to match.
2358 return 33; // "extract_vector_element_build_vector_trunc2"
2359 case '3': // 1 string to match.
2360 return 34; // "extract_vector_element_build_vector_trunc3"
2361 case '4': // 1 string to match.
2362 return 35; // "extract_vector_element_build_vector_trunc4"
2363 case '5': // 1 string to match.
2364 return 36; // "extract_vector_element_build_vector_trunc5"
2365 case '6': // 1 string to match.
2366 return 37; // "extract_vector_element_build_vector_trunc6"
2367 case '7': // 1 string to match.
2368 return 38; // "extract_vector_element_build_vector_trunc7"
2369 case '8': // 1 string to match.
2370 return 39; // "extract_vector_element_build_vector_trunc8"
2371 }
2372 break;
2373 case 'f': // 1 string to match.
2374 if (memcmp(RuleIdentifier.data()+1, "unnel_shift_or_shift_to_funnel_shift_left", 41) != 0)
2375 break;
2376 return 203; // "funnel_shift_or_shift_to_funnel_shift_left"
2377 }
2378 break;
2379 case 43: // 2 strings to match.
2380 switch (RuleIdentifier[0]) {
2381 default: break;
2382 case 'c': // 1 string to match.
2383 if (memcmp(RuleIdentifier.data()+1, "ombine_fsub_fpext_fneg_fmul_to_fmad_or_fma", 42) != 0)
2384 break;
2385 return 235; // "combine_fsub_fpext_fneg_fmul_to_fmad_or_fma"
2386 case 'f': // 1 string to match.
2387 if (memcmp(RuleIdentifier.data()+1, "unnel_shift_or_shift_to_funnel_shift_right", 42) != 0)
2388 break;
2389 return 204; // "funnel_shift_or_shift_to_funnel_shift_right"
2390 }
2391 break;
2392 case 44: // 1 string to match.
2393 if (memcmp(RuleIdentifier.data()+0, "insert_vector_element_extract_vector_element", 44) != 0)
2394 break;
2395 return 41; // "insert_vector_element_extract_vector_element"
2396 case 46: // 1 string to match.
2397 if (memcmp(RuleIdentifier.data()+0, "push_freeze_to_prevent_poison_from_propagating", 46) != 0)
2398 break;
2399 return 48; // "push_freeze_to_prevent_poison_from_propagating"
2400 }
2401#endif // ifndef NDEBUG
2402
2403 return std::nullopt;
2404}
2405static std::optional<std::pair<uint64_t, uint64_t>> getRuleRangeForIdentifier(StringRef RuleIdentifier) {
2406 std::pair<StringRef, StringRef> RangePair = RuleIdentifier.split('-');
2407 if (!RangePair.second.empty()) {
2408 const auto First = getRuleIdxForIdentifier(RangePair.first);
2409 const auto Last = getRuleIdxForIdentifier(RangePair.second);
2410 if (!First || !Last)
2411 return std::nullopt;
2412 if (First >= Last)
2413 report_fatal_error("Beginning of range should be before end of range");
2414 return {{*First, *Last + 1}};
2415 }
2416 if (RangePair.first == "*") {
2417 return {{0, 355}};
2418 }
2419 const auto I = getRuleIdxForIdentifier(RangePair.first);
2420 if (!I)
2421 return std::nullopt;
2422 return {{*I, *I + 1}};
2423}
2424
2425bool AMDGPUPreLegalizerCombinerImplRuleConfig::setRuleEnabled(StringRef RuleIdentifier) {
2426 auto MaybeRange = getRuleRangeForIdentifier(RuleIdentifier);
2427 if (!MaybeRange)
2428 return false;
2429 for (auto I = MaybeRange->first; I < MaybeRange->second; ++I)
2430 DisabledRules.reset(I);
2431 return true;
2432}
2433
2434bool AMDGPUPreLegalizerCombinerImplRuleConfig::setRuleDisabled(StringRef RuleIdentifier) {
2435 auto MaybeRange = getRuleRangeForIdentifier(RuleIdentifier);
2436 if (!MaybeRange)
2437 return false;
2438 for (auto I = MaybeRange->first; I < MaybeRange->second; ++I)
2439 DisabledRules.set(I);
2440 return true;
2441}
2442
2443static std::vector<std::string> AMDGPUPreLegalizerCombinerOption;
2444static cl::list<std::string> AMDGPUPreLegalizerCombinerDisableOption(
2445 "amdgpuprelegalizercombiner-disable-rule",
2446 cl::desc("Disable one or more combiner rules temporarily in the AMDGPUPreLegalizerCombiner pass"),
2447 cl::CommaSeparated,
2448 cl::Hidden,
2449 cl::cat(GICombinerOptionCategory),
2450 cl::callback([](const std::string &Str) {
2451 AMDGPUPreLegalizerCombinerOption.push_back(Str);
2452 }));
2453static cl::list<std::string> AMDGPUPreLegalizerCombinerOnlyEnableOption(
2454 "amdgpuprelegalizercombiner-only-enable-rule",
2455 cl::desc("Disable all rules in the AMDGPUPreLegalizerCombiner pass then re-enable the specified ones"),
2456 cl::Hidden,
2457 cl::cat(GICombinerOptionCategory),
2458 cl::callback([](const std::string &CommaSeparatedArg) {
2459 StringRef Str = CommaSeparatedArg;
2460 AMDGPUPreLegalizerCombinerOption.push_back("*");
2461 do {
2462 auto X = Str.split(",");
2463 AMDGPUPreLegalizerCombinerOption.push_back(("!" + X.first).str());
2464 Str = X.second;
2465 } while (!Str.empty());
2466 }));
2467
2468
2469bool AMDGPUPreLegalizerCombinerImplRuleConfig::isRuleEnabled(unsigned RuleID) const {
2470 return !DisabledRules.test(RuleID);
2471}
2472bool AMDGPUPreLegalizerCombinerImplRuleConfig::parseCommandLineOption() {
2473 for (StringRef Identifier : AMDGPUPreLegalizerCombinerOption) {
2474 bool Enabled = Identifier.consume_front("!");
2475 if (Enabled && !setRuleEnabled(Identifier))
2476 return false;
2477 if (!Enabled && !setRuleDisabled(Identifier))
2478 return false;
2479 }
2480 return true;
2481}
2482
2483
2484#endif // GET_GICOMBINER_TYPES
2485
2486#ifdef GET_GICOMBINER_TYPES
2487
2488const unsigned MAX_SUBTARGET_PREDICATES = 0;
2489using PredicateBitset = llvm::Bitset<MAX_SUBTARGET_PREDICATES>;
2490
2491#endif // GET_GICOMBINER_TYPES
2492
2493#ifdef GET_GICOMBINER_CLASS_MEMBERS
2494
2495 bool canMatchOpcode(unsigned Opc) const override;
2496 uint32_t getRootFlagsToDrop() const override;
2497
2498#endif // GET_GICOMBINER_CLASS_MEMBERS
2499
2500#ifdef GET_GICOMBINER_CLASS_MEMBERS
2501
2502PredicateBitset AvailableModuleFeatures;
2503mutable PredicateBitset AvailableFunctionFeatures;
2504PredicateBitset getAvailableFeatures() const {
2505 return AvailableModuleFeatures | AvailableFunctionFeatures;
2506}
2507PredicateBitset
2508computeAvailableModuleFeatures(const AMDGPUSubtarget *Subtarget) const;
2509PredicateBitset
2510computeAvailableFunctionFeatures(const AMDGPUSubtarget *Subtarget,
2511 const MachineFunction *MF) const;
2512void setupGeneratedPerFunctionState(MachineFunction &MF) override;
2513
2514#endif // GET_GICOMBINER_CLASS_MEMBERS
2515
2516#ifdef GET_GICOMBINER_CLASS_MEMBERS
2517
2518 mutable MatcherState State;
2519 typedef ComplexRendererFns(AMDGPUPreLegalizerCombinerImpl::*ComplexMatcherMemFn)(MachineOperand &) const;
2520 typedef void(AMDGPUPreLegalizerCombinerImpl::*CustomRendererFn)(MachineInstrBuilder &, const MachineInstr &, int) const;
2521 const ExecInfoTy<PredicateBitset, ComplexMatcherMemFn, CustomRendererFn> ExecInfo;
2522 static AMDGPUPreLegalizerCombinerImpl::ComplexMatcherMemFn ComplexPredicateFns[];
2523 static AMDGPUPreLegalizerCombinerImpl::CustomRendererFn CustomRenderers[];
2524 bool testImmPredicate_I64(unsigned PredicateID, int64_t Imm) const override;
2525 bool testImmPredicate_APInt(unsigned PredicateID, const APInt &Imm) const override;
2526 bool testImmPredicate_APFloat(unsigned PredicateID, const APFloat &Imm) const override;
2527 const uint8_t *getMatchTable() const override;
2528 LLT getLLTForHwMode(unsigned Index) const override;
2529 bool testMIPredicate_MI(unsigned PredicateID, const MachineInstr &MI, const MatcherState &State) const override;
2530 bool testMOPredicate_MO(unsigned PredicateID, const MachineOperand &MO, const MatcherState &State) const override;
2531 bool testSimplePredicate(unsigned PredicateID) const override;
2532 bool runCustomAction(unsigned FnID, const MatcherState &State, NewMIVector &OutMIs) const override;
2533
2534#endif // GET_GICOMBINER_CLASS_MEMBERS
2535
2536#ifdef GET_GICOMBINER_IMPL
2537
2538// LLT Objects.
2539enum {
2540 GILLT_i16,
2541 GILLT_i32,
2542 GILLT_i64,
2543 GILLT_f16,
2544 GILLT_bf16,
2545};
2546const static size_t NumTypeObjects = 5;
2547const static LLT TypeObjects[] = {
2548 LLT(LLT::Kind::INTEGER, ElementCount::getFixed(0), 16),
2549 LLT(LLT::Kind::INTEGER, ElementCount::getFixed(0), 32),
2550 LLT(LLT::Kind::INTEGER, ElementCount::getFixed(0), 64),
2551 LLT(LLT::Kind::FLOAT, ElementCount::getFixed(0), 16, LLT::FpSemantics::S_IEEEhalf),
2552 LLT(LLT::Kind::FLOAT, ElementCount::getFixed(0), 16, LLT::FpSemantics::S_BFloat),
2553};
2554
2555// Bits for subtarget features that participate in instruction matching.
2556enum SubtargetFeatureBits : uint8_t {
2557};
2558
2559PredicateBitset AMDGPUPreLegalizerCombinerImpl::
2560computeAvailableModuleFeatures(const AMDGPUSubtarget *Subtarget) const {
2561 PredicateBitset Features{};
2562 return Features;
2563}
2564
2565void AMDGPUPreLegalizerCombinerImpl::setupGeneratedPerFunctionState(MachineFunction &MF) {
2566 AvailableFunctionFeatures = computeAvailableFunctionFeatures((const AMDGPUSubtarget *)&MF.getSubtarget(), &MF);
2567}
2568PredicateBitset AMDGPUPreLegalizerCombinerImpl::
2569computeAvailableFunctionFeatures(const AMDGPUSubtarget *Subtarget, const MachineFunction *MF) const {
2570 PredicateBitset Features{};
2571 return Features;
2572}
2573
2574// Feature bitsets.
2575enum {
2576 GIFBS_Invalid,
2577};
2578constexpr static PredicateBitset FeatureBitsets[] {
2579 {}, // GIFBS_Invalid
2580};
2581
2582// ComplexPattern predicates.
2583enum {
2584 GICP_Invalid,
2585};
2586// See constructor for table contents
2587
2588AMDGPUPreLegalizerCombinerImpl::ComplexMatcherMemFn
2589AMDGPUPreLegalizerCombinerImpl::ComplexPredicateFns[] = {
2590 nullptr, // GICP_Invalid
2591};
2592
2593enum {
2594 GICXXPred_MI_Predicate_GICombiner0 = GICXXPred_Invalid + 1,
2595 GICXXPred_MI_Predicate_GICombiner1,
2596 GICXXPred_MI_Predicate_GICombiner2,
2597 GICXXPred_MI_Predicate_GICombiner3,
2598 GICXXPred_MI_Predicate_GICombiner4,
2599 GICXXPred_MI_Predicate_GICombiner5,
2600 GICXXPred_MI_Predicate_GICombiner6,
2601 GICXXPred_MI_Predicate_GICombiner7,
2602 GICXXPred_MI_Predicate_GICombiner8,
2603 GICXXPred_MI_Predicate_GICombiner9,
2604 GICXXPred_MI_Predicate_GICombiner10,
2605 GICXXPred_MI_Predicate_GICombiner11,
2606 GICXXPred_MI_Predicate_GICombiner12,
2607 GICXXPred_MI_Predicate_GICombiner13,
2608 GICXXPred_MI_Predicate_GICombiner14,
2609 GICXXPred_MI_Predicate_GICombiner15,
2610 GICXXPred_MI_Predicate_GICombiner16,
2611 GICXXPred_MI_Predicate_GICombiner17,
2612 GICXXPred_MI_Predicate_GICombiner18,
2613 GICXXPred_MI_Predicate_GICombiner19,
2614 GICXXPred_MI_Predicate_GICombiner20,
2615 GICXXPred_MI_Predicate_GICombiner21,
2616 GICXXPred_MI_Predicate_GICombiner22,
2617 GICXXPred_MI_Predicate_GICombiner23,
2618 GICXXPred_MI_Predicate_GICombiner24,
2619 GICXXPred_MI_Predicate_GICombiner25,
2620 GICXXPred_MI_Predicate_GICombiner26,
2621 GICXXPred_MI_Predicate_GICombiner27,
2622 GICXXPred_MI_Predicate_GICombiner28,
2623 GICXXPred_MI_Predicate_GICombiner29,
2624 GICXXPred_MI_Predicate_GICombiner30,
2625 GICXXPred_MI_Predicate_GICombiner31,
2626 GICXXPred_MI_Predicate_GICombiner32,
2627 GICXXPred_MI_Predicate_GICombiner33,
2628 GICXXPred_MI_Predicate_GICombiner34,
2629 GICXXPred_MI_Predicate_GICombiner35,
2630 GICXXPred_MI_Predicate_GICombiner36,
2631 GICXXPred_MI_Predicate_GICombiner37,
2632 GICXXPred_MI_Predicate_GICombiner38,
2633 GICXXPred_MI_Predicate_GICombiner39,
2634 GICXXPred_MI_Predicate_GICombiner40,
2635 GICXXPred_MI_Predicate_GICombiner41,
2636 GICXXPred_MI_Predicate_GICombiner42,
2637 GICXXPred_MI_Predicate_GICombiner43,
2638 GICXXPred_MI_Predicate_GICombiner44,
2639 GICXXPred_MI_Predicate_GICombiner45,
2640 GICXXPred_MI_Predicate_GICombiner46,
2641 GICXXPred_MI_Predicate_GICombiner47,
2642 GICXXPred_MI_Predicate_GICombiner48,
2643 GICXXPred_MI_Predicate_GICombiner49,
2644 GICXXPred_MI_Predicate_GICombiner50,
2645 GICXXPred_MI_Predicate_GICombiner51,
2646 GICXXPred_MI_Predicate_GICombiner52,
2647 GICXXPred_MI_Predicate_GICombiner53,
2648 GICXXPred_MI_Predicate_GICombiner54,
2649 GICXXPred_MI_Predicate_GICombiner55,
2650 GICXXPred_MI_Predicate_GICombiner56,
2651 GICXXPred_MI_Predicate_GICombiner57,
2652 GICXXPred_MI_Predicate_GICombiner58,
2653 GICXXPred_MI_Predicate_GICombiner59,
2654 GICXXPred_MI_Predicate_GICombiner60,
2655 GICXXPred_MI_Predicate_GICombiner61,
2656 GICXXPred_MI_Predicate_GICombiner62,
2657 GICXXPred_MI_Predicate_GICombiner63,
2658 GICXXPred_MI_Predicate_GICombiner64,
2659 GICXXPred_MI_Predicate_GICombiner65,
2660 GICXXPred_MI_Predicate_GICombiner66,
2661 GICXXPred_MI_Predicate_GICombiner67,
2662 GICXXPred_MI_Predicate_GICombiner68,
2663};
2664bool AMDGPUPreLegalizerCombinerImpl::testMIPredicate_MI(unsigned PredicateID, const MachineInstr & MI, const MatcherState &State) const {
2665 switch (PredicateID) {
2666 case GICXXPred_MI_Predicate_GICombiner0: {
2667 return MRI.hasOneNonDBGUse(State.MIs[0]->getOperand(2).getReg());
2668 }
2669 case GICXXPred_MI_Predicate_GICombiner1: {
2670 return MRI.hasOneNonDBGUse(State.MIs[0]->getOperand(1).getReg());
2671 }
2672 case GICXXPred_MI_Predicate_GICombiner2: {
2673 return MRI.getType(State.MIs[1]->getOperand(1).getReg()).getScalarSizeInBits() ==
2674 MRI.getType(State.MIs[0]->getOperand(0).getReg()).getScalarSizeInBits();
2675 }
2676 case GICXXPred_MI_Predicate_GICombiner3: {
2677 return isGuaranteedNotToBePoison(State.MIs[0]->getOperand(1).getReg(), MRI);
2678 }
2679 case GICXXPred_MI_Predicate_GICombiner4: {
2680 return Helper.matchExtractVectorElement(*State.MIs[0]);
2681 }
2682 case GICXXPred_MI_Predicate_GICombiner5: {
2683 return Helper.matchInsertVectorElementOOB(*State.MIs[0]);
2684 }
2685 case GICXXPred_MI_Predicate_GICombiner6: {
2686 return Helper.isZeroOrOneVector(State.MIs[0]->getOperand(2).getReg());
2687 }
2688 case GICXXPred_MI_Predicate_GICombiner7: {
2689 return isGuaranteedNotToBeUndefOrPoison(State.MIs[0]->getOperand(1).getReg(), MRI);
2690 }
2691 case GICXXPred_MI_Predicate_GICombiner8: {
2692 return Helper.matchAllExplicitUsesAreUndef(*State.MIs[0]);
2693 }
2694 case GICXXPred_MI_Predicate_GICombiner9: {
2695 return Helper.matchUndefShuffleVectorMask(*State.MIs[0]);
2696 }
2697 case GICXXPred_MI_Predicate_GICombiner10: {
2698 return cast<GStore>(State.MIs[0])->isUnordered();
2699 }
2700 case GICXXPred_MI_Predicate_GICombiner11: {
2701 return Helper.matchInsertExtractVecEltOutOfBounds(*State.MIs[0]);
2702 }
2703 case GICXXPred_MI_Predicate_GICombiner12: {
2704 return Helper.matchSelectSameVal(*State.MIs[0]);
2705 }
2706 case GICXXPred_MI_Predicate_GICombiner13: {
2707 return Helper.matchConstantOp(State.MIs[0]->getOperand(1), 0);
2708 }
2709 case GICXXPred_MI_Predicate_GICombiner14: {
2710 return MRI.getType(State.MIs[1]->getOperand(1).getReg()) == MRI.getType(State.MIs[0]->getOperand(0).getReg());
2711 }
2712 case GICXXPred_MI_Predicate_GICombiner15: {
2713 return MRI.getType(State.MIs[0]->getOperand(0).getReg()).getSizeInBits() ==
2714 MRI.getType(State.MIs[1]->getOperand(1).getReg()).getSizeInBits();
2715 }
2716 case GICXXPred_MI_Predicate_GICombiner16: {
2717 return MRI.getType(State.MIs[0]->getOperand(0).getReg()).getSizeInBits() >
2718 MRI.getType(State.MIs[1]->getOperand(1).getReg()).getSizeInBits();
2719 }
2720 case GICXXPred_MI_Predicate_GICombiner17: {
2721 return MRI.getType(State.MIs[0]->getOperand(0).getReg()).getSizeInBits() <
2722 MRI.getType(State.MIs[1]->getOperand(1).getReg()).getSizeInBits();
2723 }
2724 case GICXXPred_MI_Predicate_GICombiner18: {
2725 return Helper.matchConstantFPOp(State.MIs[0]->getOperand(2), 1.0);
2726 }
2727 case GICXXPred_MI_Predicate_GICombiner19: {
2728 return MRI.getType(State.MIs[1]->getOperand(1).getReg()) != MRI.getType(State.MIs[0]->getOperand(0).getReg());
2729 }
2730 case GICXXPred_MI_Predicate_GICombiner20: {
2731 return Helper.matchConstantFPOp(State.MIs[0]->getOperand(2), -0.0);
2732 }
2733 case GICXXPred_MI_Predicate_GICombiner21: {
2734 return Helper.matchConstantFPOp(State.MIs[0]->getOperand(2), 0.0);
2735 }
2736 case GICXXPred_MI_Predicate_GICombiner22: {
2737 return Helper.matchConstantFPOp(State.MIs[0]->getOperand(2), -1.0);
2738 }
2739 case GICXXPred_MI_Predicate_GICombiner23: {
2740 return State.MIs[1]->getOperand(1).getPredicate() == CmpInst::ICMP_EQ &&
2741 !MRI.getType(State.MIs[1]->getOperand(2).getReg()).getScalarType().isPointer() &&
2742 (MRI.getType(State.MIs[1]->getOperand(2).getReg()) ==
2743 MRI.getType(State.MIs[2]->getOperand(2).getReg()));
2744 }
2745 case GICXXPred_MI_Predicate_GICombiner24: {
2746 return State.MIs[1]->getOperand(1).getPredicate() == CmpInst::ICMP_NE &&
2747 !MRI.getType(State.MIs[1]->getOperand(2).getReg()).getScalarType().isPointer() &&
2748 (MRI.getType(State.MIs[1]->getOperand(2).getReg()) ==
2749 MRI.getType(State.MIs[2]->getOperand(2).getReg()));
2750 }
2751 case GICXXPred_MI_Predicate_GICombiner25: {
2752 return MRI.hasOneNonDBGUse(State.MIs[0]->getOperand(2).getReg()) &&
2753 Helper.isLegalOrBeforeLegalizer({
2754 TargetOpcode::G_SEXT_INREG,
2755 {MRI.getType(State.MIs[1]->getOperand(1).getReg())},
2756 {},
2757 {1}
2758 });
2759 }
2760 case GICXXPred_MI_Predicate_GICombiner26: {
2761 auto C = isConstantOrConstantSplatVector(State.MIs[0]->getOperand(1).getReg(), MRI);
2762 return C && C->isZero();
2763 llvm_unreachable("GICombiner26 should have returned");
2764 }
2765 case GICXXPred_MI_Predicate_GICombiner27: {
2766 auto C = isConstantOrConstantSplatVector(State.MIs[0]->getOperand(1).getReg(), MRI);
2767 return C && !C->isZero();
2768 llvm_unreachable("GICombiner27 should have returned");
2769 }
2770 case GICXXPred_MI_Predicate_GICombiner28: {
2771 return !isConstantOrConstantSplatVector(State.MIs[0]->getOperand(1).getReg(), MRI) &&
2772 MRI.getType(State.MIs[0]->getOperand(1).getReg()) == MRI.getType(State.MIs[0]->getOperand(0).getReg()) &&
2773 VT->computeNumSignBits(State.MIs[0]->getOperand(1).getReg()) == MRI.getType(State.MIs[0]->getOperand(0).getReg()).getScalarSizeInBits();
2774 }
2775 case GICXXPred_MI_Predicate_GICombiner29: {
2776 return Helper.matchRedundantSExtInReg(*State.MIs[0]);
2777 }
2778 case GICXXPred_MI_Predicate_GICombiner30: {
2779 LLT SrcTy = MRI.getType(State.MIs[1]->getOperand(1).getReg());
2780 return State.MIs[0]->getOperand(2).getImm() <= SrcTy.getScalarSizeInBits() &&
2781 VT->computeNumSignBits(State.MIs[1]->getOperand(1).getReg()) >=
2782 (SrcTy.getScalarSizeInBits() - State.MIs[0]->getOperand(2).getImm() + 1);
2783 llvm_unreachable("GICombiner30 should have returned");
2784 }
2785 case GICXXPred_MI_Predicate_GICombiner31: {
2786 return Helper.matchSignedDivRemToUnsigned(*State.MIs[0],
2787 TargetOpcode::G_UDIV);
2788 }
2789 case GICXXPred_MI_Predicate_GICombiner32: {
2790 return Helper.matchSignedDivRemToUnsigned(*State.MIs[0],
2791 TargetOpcode::G_UREM);
2792 }
2793 case GICXXPred_MI_Predicate_GICombiner33: {
2794 return Helper.matchConstantOp(State.MIs[0]->getOperand(3), 2);
2795 }
2796 case GICXXPred_MI_Predicate_GICombiner34: {
2797 return Helper.matchConstantOp(State.MIs[0]->getOperand(4), 0);
2798 }
2799 case GICXXPred_MI_Predicate_GICombiner35: {
2800 return Helper.isConstantNaN(State.MIs[0]->getOperand(1).getReg());
2801 }
2802 case GICXXPred_MI_Predicate_GICombiner36: {
2803 return Helper.isConstantNaN(State.MIs[0]->getOperand(2).getReg()) &&
2804 !Helper.isConstantNaN(State.MIs[0]->getOperand(1).getReg());
2805 }
2806 case GICXXPred_MI_Predicate_GICombiner37: {
2807 LLT Ty = MRI.getType(State.MIs[0]->getOperand(0).getReg());
2808 return Ty.isPointer() &&
2809 !isConstantOrConstantSplatVector(State.MIs[0]->getOperand(2).getReg(), MRI) &&
2810 !State.MIs[0]->getMF()->getDataLayout().isNonIntegralAddressSpace(
2811 Ty.getAddressSpace());
2812 llvm_unreachable("GICombiner37 should have returned");
2813 }
2814 case GICXXPred_MI_Predicate_GICombiner38: {
2815 return Helper.matchPtrAddZeroVector(*State.MIs[0]);
2816 }
2817 case GICXXPred_MI_Predicate_GICombiner39: {
2818 return Helper.isLegalOrBeforeLegalizer(
2819 {TargetOpcode::G_ROTL,
2820 {MRI.getType(State.MIs[0]->getOperand(1).getReg()),
2821 MRI.getType(State.MIs[0]->getOperand(1).getReg())}});
2822 }
2823 case GICXXPred_MI_Predicate_GICombiner40: {
2824 return Helper.isLegalOrBeforeLegalizer(
2825 {TargetOpcode::G_ROTR,
2826 {MRI.getType(State.MIs[0]->getOperand(1).getReg()),
2827 MRI.getType(State.MIs[0]->getOperand(1).getReg())}});
2828 }
2829 case GICXXPred_MI_Predicate_GICombiner41: {
2830 return Helper.isLegalOrBeforeLegalizer({TargetOpcode::G_LSHR,
2831 {MRI.getType(State.MIs[2]->getOperand(1).getReg()),
2832 MRI.getType(State.MIs[1]->getOperand(2).getReg())}});
2833 }
2834 case GICXXPred_MI_Predicate_GICombiner42: {
2835 return Helper.isLegalOrBeforeLegalizer({TargetOpcode::G_SHL,
2836 {MRI.getType(State.MIs[2]->getOperand(1).getReg()),
2837 MRI.getType(State.MIs[1]->getOperand(2).getReg())}});
2838 }
2839 case GICXXPred_MI_Predicate_GICombiner43: {
2840 return MRI.hasOneNonDBGUse(State.MIs[0]->getOperand(1).getReg()) &&
2841 isConstantOrConstantSplatVector(State.MIs[1]->getOperand(2).getReg(), MRI) &&
2842 isConstantOrConstantSplatVector(State.MIs[0]->getOperand(2).getReg(), MRI) &&
2843 Helper.isDesirableToCommuteWithShift(*State.MIs[0]);
2844 }
2845 case GICXXPred_MI_Predicate_GICombiner44: {
2846 return Helper.isLegalOrBeforeLegalizer({TargetOpcode::G_FSUB,
2847 {MRI.getType(State.MIs[0]->getOperand(0).getReg())}});
2848 }
2849 case GICXXPred_MI_Predicate_GICombiner45: {
2850 return Helper.isLegalOrBeforeLegalizer({TargetOpcode::G_FADD,
2851 {MRI.getType(State.MIs[0]->getOperand(0).getReg())}});
2852 }
2853 case GICXXPred_MI_Predicate_GICombiner46: {
2854 return Helper.matchSameRegOrICstOrSplat(State.MIs[1]->getOperand(2).getReg(),
2855 State.MIs[0]->getOperand(2).getReg());
2856 }
2857 case GICXXPred_MI_Predicate_GICombiner47: {
2858 return Helper.matchSameRegOrICstOrSplat(State.MIs[1]->getOperand(1).getReg(),
2859 State.MIs[0]->getOperand(2).getReg());
2860 }
2861 case GICXXPred_MI_Predicate_GICombiner48: {
2862 return Helper.matchSameRegOrICstOrSplat(State.MIs[0]->getOperand(1).getReg(),
2863 State.MIs[1]->getOperand(2).getReg());
2864 }
2865 case GICXXPred_MI_Predicate_GICombiner49: {
2866 return Helper.matchSameRegOrICstOrSplat(State.MIs[0]->getOperand(1).getReg(),
2867 State.MIs[1]->getOperand(1).getReg());
2868 }
2869 case GICXXPred_MI_Predicate_GICombiner50: {
2870 return Helper.matchFsubToFneg(*State.MIs[0]);
2871 }
2872 case GICXXPred_MI_Predicate_GICombiner51: {
2873 return Helper.matchCommuteConstantToRHS(*State.MIs[0]);
2874 }
2875 case GICXXPred_MI_Predicate_GICombiner52: {
2876 return Helper.matchCommuteFPConstantToRHS(*State.MIs[0]);
2877 }
2878 case GICXXPred_MI_Predicate_GICombiner53: {
2879 return Helper.isLegalOrBeforeLegalizer(
2880 {TargetOpcode::G_ANYEXT,
2881 {MRI.getType(State.MIs[0]->getOperand(0).getReg()),
2882 MRI.getType(State.MIs[0]->getOperand(1).getReg())}});
2883 }
2884 case GICXXPred_MI_Predicate_GICombiner54: {
2885 return Helper.isLegalOrBeforeLegalizer(
2886 {TargetOpcode::G_ZEXT,
2887 {MRI.getType(State.MIs[0]->getOperand(0).getReg()),
2888 MRI.getType(State.MIs[0]->getOperand(1).getReg())}});
2889 }
2890 case GICXXPred_MI_Predicate_GICombiner55: {
2891 return MRI.use_nodbg_empty(State.MIs[0]->getOperand(1).getReg()) &&
2892 Helper.isLegalOrBeforeLegalizer(
2893 {TargetOpcode::G_ADD,
2894 {MRI.getType(State.MIs[0]->getOperand(0).getReg())}});
2895 }
2896 case GICXXPred_MI_Predicate_GICombiner56: {
2897 return Helper.matchTruncUSatU(*State.MIs[0], *State.MIs[1]);
2898 }
2899 case GICXXPred_MI_Predicate_GICombiner57: {
2900 return Helper.matchTruncUSatUToFPTOUISat(*State.MIs[0], *State.MIs[1]);
2901 }
2902 case GICXXPred_MI_Predicate_GICombiner58: {
2903 return Helper.matchCountZeroToZeroPoison(*State.MIs[0],
2904 TargetOpcode::G_CTLZ, TargetOpcode::G_CTLZ_ZERO_POISON);
2905 }
2906 case GICXXPred_MI_Predicate_GICombiner59: {
2907 return Helper.matchCountZeroToZeroPoison(*State.MIs[0],
2908 TargetOpcode::G_CTTZ, TargetOpcode::G_CTTZ_ZERO_POISON);
2909 }
2910 case GICXXPred_MI_Predicate_GICombiner60: {
2911 return MRI.hasOneNonDBGUse(State.MIs[0]->getOperand(2).getReg()) &&
2912 MRI.hasOneNonDBGUse(State.MIs[1]->getOperand(1).getReg());
2913 }
2914 case GICXXPred_MI_Predicate_GICombiner61: {
2915 return MRI.hasOneNonDBGUse(State.MIs[0]->getOperand(1).getReg()) &&
2916 MRI.hasOneNonDBGUse(State.MIs[1]->getOperand(1).getReg());
2917 }
2918 case GICXXPred_MI_Predicate_GICombiner62: {
2919 return MRI.hasOneNonDBGUse(State.MIs[1]->getOperand(2).getReg()) &&
2920 MRI.hasOneNonDBGUse(State.MIs[0]->getOperand(2).getReg());
2921 }
2922 case GICXXPred_MI_Predicate_GICombiner63: {
2923 return MRI.getType(State.MIs[2]->getOperand(1).getReg()) ==
2924 MRI.getType(State.MIs[3]->getOperand(1).getReg()) &&
2925 Helper.isLegal({TargetOpcode::G_UAVGFLOOR,
2926 {MRI.getType(State.MIs[2]->getOperand(1).getReg())}});
2927 }
2928 case GICXXPred_MI_Predicate_GICombiner64: {
2929 return MRI.getType(State.MIs[2]->getOperand(1).getReg()) ==
2930 MRI.getType(State.MIs[3]->getOperand(1).getReg()) &&
2931 Helper.isLegal({TargetOpcode::G_SAVGFLOOR,
2932 {MRI.getType(State.MIs[2]->getOperand(1).getReg())}});
2933 }
2934 case GICXXPred_MI_Predicate_GICombiner65: {
2935 return MRI.getType(State.MIs[3]->getOperand(1).getReg()) ==
2936 MRI.getType(State.MIs[4]->getOperand(1).getReg()) &&
2937 Helper.isLegal({TargetOpcode::G_UAVGCEIL,
2938 {MRI.getType(State.MIs[3]->getOperand(1).getReg())}});
2939 }
2940 case GICXXPred_MI_Predicate_GICombiner66: {
2941 return MRI.getType(State.MIs[3]->getOperand(1).getReg()) ==
2942 MRI.getType(State.MIs[4]->getOperand(1).getReg()) &&
2943 Helper.isLegal({TargetOpcode::G_SAVGCEIL,
2944 {MRI.getType(State.MIs[3]->getOperand(1).getReg())}});
2945 }
2946 case GICXXPred_MI_Predicate_GICombiner67: {
2947 return MRI.hasOneNonDBGUse(State.MIs[0]->getOperand(1).getReg()) &&
2948 Helper.isLegalOrBeforeLegalizer(
2949 {TargetOpcode::G_UNMERGE_VALUES,
2950 {LLT::integer(16), LLT::integer(32)}});
2951 }
2952 case GICXXPred_MI_Predicate_GICombiner68: {
2953 return Helper.matchBinopWith32BitMask(State.MIs[0]->getOperand(1).getReg(), State.MIs[0]->getOperand(2).getReg());
2954 }
2955 }
2956 llvm_unreachable("Unknown predicate");
2957 return false;
2958}
2959bool AMDGPUPreLegalizerCombinerImpl::testMOPredicate_MO(unsigned PredicateID, const MachineOperand & MO, const MatcherState &State) const {
2960 llvm_unreachable("Unknown predicate");
2961 return false;
2962}
2963bool AMDGPUPreLegalizerCombinerImpl::testImmPredicate_I64(unsigned PredicateID, int64_t Imm) const {
2964 llvm_unreachable("Unknown predicate");
2965 return false;
2966}
2967bool AMDGPUPreLegalizerCombinerImpl::testImmPredicate_APFloat(unsigned PredicateID, const APFloat & Imm) const {
2968 llvm_unreachable("Unknown predicate");
2969 return false;
2970}
2971bool AMDGPUPreLegalizerCombinerImpl::testImmPredicate_APInt(unsigned PredicateID, const APInt & Imm) const {
2972 llvm_unreachable("Unknown predicate");
2973 return false;
2974}
2975enum {
2976 GICXXPred_Simple_IsRule0Enabled = GICXXPred_Invalid + 1,
2977 GICXXPred_Simple_IsRule1Enabled,
2978 GICXXPred_Simple_IsRule2Enabled,
2979 GICXXPred_Simple_IsRule3Enabled,
2980 GICXXPred_Simple_IsRule4Enabled,
2981 GICXXPred_Simple_IsRule5Enabled,
2982 GICXXPred_Simple_IsRule6Enabled,
2983 GICXXPred_Simple_IsRule7Enabled,
2984 GICXXPred_Simple_IsRule8Enabled,
2985 GICXXPred_Simple_IsRule9Enabled,
2986 GICXXPred_Simple_IsRule10Enabled,
2987 GICXXPred_Simple_IsRule11Enabled,
2988 GICXXPred_Simple_IsRule12Enabled,
2989 GICXXPred_Simple_IsRule13Enabled,
2990 GICXXPred_Simple_IsRule14Enabled,
2991 GICXXPred_Simple_IsRule15Enabled,
2992 GICXXPred_Simple_IsRule16Enabled,
2993 GICXXPred_Simple_IsRule17Enabled,
2994 GICXXPred_Simple_IsRule18Enabled,
2995 GICXXPred_Simple_IsRule19Enabled,
2996 GICXXPred_Simple_IsRule20Enabled,
2997 GICXXPred_Simple_IsRule21Enabled,
2998 GICXXPred_Simple_IsRule22Enabled,
2999 GICXXPred_Simple_IsRule23Enabled,
3000 GICXXPred_Simple_IsRule24Enabled,
3001 GICXXPred_Simple_IsRule25Enabled,
3002 GICXXPred_Simple_IsRule26Enabled,
3003 GICXXPred_Simple_IsRule27Enabled,
3004 GICXXPred_Simple_IsRule28Enabled,
3005 GICXXPred_Simple_IsRule29Enabled,
3006 GICXXPred_Simple_IsRule30Enabled,
3007 GICXXPred_Simple_IsRule31Enabled,
3008 GICXXPred_Simple_IsRule32Enabled,
3009 GICXXPred_Simple_IsRule33Enabled,
3010 GICXXPred_Simple_IsRule34Enabled,
3011 GICXXPred_Simple_IsRule35Enabled,
3012 GICXXPred_Simple_IsRule36Enabled,
3013 GICXXPred_Simple_IsRule37Enabled,
3014 GICXXPred_Simple_IsRule38Enabled,
3015 GICXXPred_Simple_IsRule39Enabled,
3016 GICXXPred_Simple_IsRule40Enabled,
3017 GICXXPred_Simple_IsRule41Enabled,
3018 GICXXPred_Simple_IsRule42Enabled,
3019 GICXXPred_Simple_IsRule43Enabled,
3020 GICXXPred_Simple_IsRule44Enabled,
3021 GICXXPred_Simple_IsRule45Enabled,
3022 GICXXPred_Simple_IsRule46Enabled,
3023 GICXXPred_Simple_IsRule47Enabled,
3024 GICXXPred_Simple_IsRule48Enabled,
3025 GICXXPred_Simple_IsRule49Enabled,
3026 GICXXPred_Simple_IsRule50Enabled,
3027 GICXXPred_Simple_IsRule51Enabled,
3028 GICXXPred_Simple_IsRule52Enabled,
3029 GICXXPred_Simple_IsRule53Enabled,
3030 GICXXPred_Simple_IsRule54Enabled,
3031 GICXXPred_Simple_IsRule55Enabled,
3032 GICXXPred_Simple_IsRule56Enabled,
3033 GICXXPred_Simple_IsRule57Enabled,
3034 GICXXPred_Simple_IsRule58Enabled,
3035 GICXXPred_Simple_IsRule59Enabled,
3036 GICXXPred_Simple_IsRule60Enabled,
3037 GICXXPred_Simple_IsRule61Enabled,
3038 GICXXPred_Simple_IsRule62Enabled,
3039 GICXXPred_Simple_IsRule63Enabled,
3040 GICXXPred_Simple_IsRule64Enabled,
3041 GICXXPred_Simple_IsRule65Enabled,
3042 GICXXPred_Simple_IsRule66Enabled,
3043 GICXXPred_Simple_IsRule67Enabled,
3044 GICXXPred_Simple_IsRule68Enabled,
3045 GICXXPred_Simple_IsRule69Enabled,
3046 GICXXPred_Simple_IsRule70Enabled,
3047 GICXXPred_Simple_IsRule71Enabled,
3048 GICXXPred_Simple_IsRule72Enabled,
3049 GICXXPred_Simple_IsRule73Enabled,
3050 GICXXPred_Simple_IsRule74Enabled,
3051 GICXXPred_Simple_IsRule75Enabled,
3052 GICXXPred_Simple_IsRule76Enabled,
3053 GICXXPred_Simple_IsRule77Enabled,
3054 GICXXPred_Simple_IsRule78Enabled,
3055 GICXXPred_Simple_IsRule79Enabled,
3056 GICXXPred_Simple_IsRule80Enabled,
3057 GICXXPred_Simple_IsRule81Enabled,
3058 GICXXPred_Simple_IsRule82Enabled,
3059 GICXXPred_Simple_IsRule83Enabled,
3060 GICXXPred_Simple_IsRule84Enabled,
3061 GICXXPred_Simple_IsRule85Enabled,
3062 GICXXPred_Simple_IsRule86Enabled,
3063 GICXXPred_Simple_IsRule87Enabled,
3064 GICXXPred_Simple_IsRule88Enabled,
3065 GICXXPred_Simple_IsRule89Enabled,
3066 GICXXPred_Simple_IsRule90Enabled,
3067 GICXXPred_Simple_IsRule91Enabled,
3068 GICXXPred_Simple_IsRule92Enabled,
3069 GICXXPred_Simple_IsRule93Enabled,
3070 GICXXPred_Simple_IsRule94Enabled,
3071 GICXXPred_Simple_IsRule95Enabled,
3072 GICXXPred_Simple_IsRule96Enabled,
3073 GICXXPred_Simple_IsRule97Enabled,
3074 GICXXPred_Simple_IsRule98Enabled,
3075 GICXXPred_Simple_IsRule99Enabled,
3076 GICXXPred_Simple_IsRule100Enabled,
3077 GICXXPred_Simple_IsRule101Enabled,
3078 GICXXPred_Simple_IsRule102Enabled,
3079 GICXXPred_Simple_IsRule103Enabled,
3080 GICXXPred_Simple_IsRule104Enabled,
3081 GICXXPred_Simple_IsRule105Enabled,
3082 GICXXPred_Simple_IsRule106Enabled,
3083 GICXXPred_Simple_IsRule107Enabled,
3084 GICXXPred_Simple_IsRule108Enabled,
3085 GICXXPred_Simple_IsRule109Enabled,
3086 GICXXPred_Simple_IsRule110Enabled,
3087 GICXXPred_Simple_IsRule111Enabled,
3088 GICXXPred_Simple_IsRule112Enabled,
3089 GICXXPred_Simple_IsRule113Enabled,
3090 GICXXPred_Simple_IsRule114Enabled,
3091 GICXXPred_Simple_IsRule115Enabled,
3092 GICXXPred_Simple_IsRule116Enabled,
3093 GICXXPred_Simple_IsRule117Enabled,
3094 GICXXPred_Simple_IsRule118Enabled,
3095 GICXXPred_Simple_IsRule119Enabled,
3096 GICXXPred_Simple_IsRule120Enabled,
3097 GICXXPred_Simple_IsRule121Enabled,
3098 GICXXPred_Simple_IsRule122Enabled,
3099 GICXXPred_Simple_IsRule123Enabled,
3100 GICXXPred_Simple_IsRule124Enabled,
3101 GICXXPred_Simple_IsRule125Enabled,
3102 GICXXPred_Simple_IsRule126Enabled,
3103 GICXXPred_Simple_IsRule127Enabled,
3104 GICXXPred_Simple_IsRule128Enabled,
3105 GICXXPred_Simple_IsRule129Enabled,
3106 GICXXPred_Simple_IsRule130Enabled,
3107 GICXXPred_Simple_IsRule131Enabled,
3108 GICXXPred_Simple_IsRule132Enabled,
3109 GICXXPred_Simple_IsRule133Enabled,
3110 GICXXPred_Simple_IsRule134Enabled,
3111 GICXXPred_Simple_IsRule135Enabled,
3112 GICXXPred_Simple_IsRule136Enabled,
3113 GICXXPred_Simple_IsRule137Enabled,
3114 GICXXPred_Simple_IsRule138Enabled,
3115 GICXXPred_Simple_IsRule139Enabled,
3116 GICXXPred_Simple_IsRule140Enabled,
3117 GICXXPred_Simple_IsRule141Enabled,
3118 GICXXPred_Simple_IsRule142Enabled,
3119 GICXXPred_Simple_IsRule143Enabled,
3120 GICXXPred_Simple_IsRule144Enabled,
3121 GICXXPred_Simple_IsRule145Enabled,
3122 GICXXPred_Simple_IsRule146Enabled,
3123 GICXXPred_Simple_IsRule147Enabled,
3124 GICXXPred_Simple_IsRule148Enabled,
3125 GICXXPred_Simple_IsRule149Enabled,
3126 GICXXPred_Simple_IsRule150Enabled,
3127 GICXXPred_Simple_IsRule151Enabled,
3128 GICXXPred_Simple_IsRule152Enabled,
3129 GICXXPred_Simple_IsRule153Enabled,
3130 GICXXPred_Simple_IsRule154Enabled,
3131 GICXXPred_Simple_IsRule155Enabled,
3132 GICXXPred_Simple_IsRule156Enabled,
3133 GICXXPred_Simple_IsRule157Enabled,
3134 GICXXPred_Simple_IsRule158Enabled,
3135 GICXXPred_Simple_IsRule159Enabled,
3136 GICXXPred_Simple_IsRule160Enabled,
3137 GICXXPred_Simple_IsRule161Enabled,
3138 GICXXPred_Simple_IsRule162Enabled,
3139 GICXXPred_Simple_IsRule163Enabled,
3140 GICXXPred_Simple_IsRule164Enabled,
3141 GICXXPred_Simple_IsRule165Enabled,
3142 GICXXPred_Simple_IsRule166Enabled,
3143 GICXXPred_Simple_IsRule167Enabled,
3144 GICXXPred_Simple_IsRule168Enabled,
3145 GICXXPred_Simple_IsRule169Enabled,
3146 GICXXPred_Simple_IsRule170Enabled,
3147 GICXXPred_Simple_IsRule171Enabled,
3148 GICXXPred_Simple_IsRule172Enabled,
3149 GICXXPred_Simple_IsRule173Enabled,
3150 GICXXPred_Simple_IsRule174Enabled,
3151 GICXXPred_Simple_IsRule175Enabled,
3152 GICXXPred_Simple_IsRule176Enabled,
3153 GICXXPred_Simple_IsRule177Enabled,
3154 GICXXPred_Simple_IsRule178Enabled,
3155 GICXXPred_Simple_IsRule179Enabled,
3156 GICXXPred_Simple_IsRule180Enabled,
3157 GICXXPred_Simple_IsRule181Enabled,
3158 GICXXPred_Simple_IsRule182Enabled,
3159 GICXXPred_Simple_IsRule183Enabled,
3160 GICXXPred_Simple_IsRule184Enabled,
3161 GICXXPred_Simple_IsRule185Enabled,
3162 GICXXPred_Simple_IsRule186Enabled,
3163 GICXXPred_Simple_IsRule187Enabled,
3164 GICXXPred_Simple_IsRule188Enabled,
3165 GICXXPred_Simple_IsRule189Enabled,
3166 GICXXPred_Simple_IsRule190Enabled,
3167 GICXXPred_Simple_IsRule191Enabled,
3168 GICXXPred_Simple_IsRule192Enabled,
3169 GICXXPred_Simple_IsRule193Enabled,
3170 GICXXPred_Simple_IsRule194Enabled,
3171 GICXXPred_Simple_IsRule195Enabled,
3172 GICXXPred_Simple_IsRule196Enabled,
3173 GICXXPred_Simple_IsRule197Enabled,
3174 GICXXPred_Simple_IsRule198Enabled,
3175 GICXXPred_Simple_IsRule199Enabled,
3176 GICXXPred_Simple_IsRule200Enabled,
3177 GICXXPred_Simple_IsRule201Enabled,
3178 GICXXPred_Simple_IsRule202Enabled,
3179 GICXXPred_Simple_IsRule203Enabled,
3180 GICXXPred_Simple_IsRule204Enabled,
3181 GICXXPred_Simple_IsRule205Enabled,
3182 GICXXPred_Simple_IsRule206Enabled,
3183 GICXXPred_Simple_IsRule207Enabled,
3184 GICXXPred_Simple_IsRule208Enabled,
3185 GICXXPred_Simple_IsRule209Enabled,
3186 GICXXPred_Simple_IsRule210Enabled,
3187 GICXXPred_Simple_IsRule211Enabled,
3188 GICXXPred_Simple_IsRule212Enabled,
3189 GICXXPred_Simple_IsRule213Enabled,
3190 GICXXPred_Simple_IsRule214Enabled,
3191 GICXXPred_Simple_IsRule215Enabled,
3192 GICXXPred_Simple_IsRule216Enabled,
3193 GICXXPred_Simple_IsRule217Enabled,
3194 GICXXPred_Simple_IsRule218Enabled,
3195 GICXXPred_Simple_IsRule219Enabled,
3196 GICXXPred_Simple_IsRule220Enabled,
3197 GICXXPred_Simple_IsRule221Enabled,
3198 GICXXPred_Simple_IsRule222Enabled,
3199 GICXXPred_Simple_IsRule223Enabled,
3200 GICXXPred_Simple_IsRule224Enabled,
3201 GICXXPred_Simple_IsRule225Enabled,
3202 GICXXPred_Simple_IsRule226Enabled,
3203 GICXXPred_Simple_IsRule227Enabled,
3204 GICXXPred_Simple_IsRule228Enabled,
3205 GICXXPred_Simple_IsRule229Enabled,
3206 GICXXPred_Simple_IsRule230Enabled,
3207 GICXXPred_Simple_IsRule231Enabled,
3208 GICXXPred_Simple_IsRule232Enabled,
3209 GICXXPred_Simple_IsRule233Enabled,
3210 GICXXPred_Simple_IsRule234Enabled,
3211 GICXXPred_Simple_IsRule235Enabled,
3212 GICXXPred_Simple_IsRule236Enabled,
3213 GICXXPred_Simple_IsRule237Enabled,
3214 GICXXPred_Simple_IsRule238Enabled,
3215 GICXXPred_Simple_IsRule239Enabled,
3216 GICXXPred_Simple_IsRule240Enabled,
3217 GICXXPred_Simple_IsRule241Enabled,
3218 GICXXPred_Simple_IsRule242Enabled,
3219 GICXXPred_Simple_IsRule243Enabled,
3220 GICXXPred_Simple_IsRule244Enabled,
3221 GICXXPred_Simple_IsRule245Enabled,
3222 GICXXPred_Simple_IsRule246Enabled,
3223 GICXXPred_Simple_IsRule247Enabled,
3224 GICXXPred_Simple_IsRule248Enabled,
3225 GICXXPred_Simple_IsRule249Enabled,
3226 GICXXPred_Simple_IsRule250Enabled,
3227 GICXXPred_Simple_IsRule251Enabled,
3228 GICXXPred_Simple_IsRule252Enabled,
3229 GICXXPred_Simple_IsRule253Enabled,
3230 GICXXPred_Simple_IsRule254Enabled,
3231 GICXXPred_Simple_IsRule255Enabled,
3232 GICXXPred_Simple_IsRule256Enabled,
3233 GICXXPred_Simple_IsRule257Enabled,
3234 GICXXPred_Simple_IsRule258Enabled,
3235 GICXXPred_Simple_IsRule259Enabled,
3236 GICXXPred_Simple_IsRule260Enabled,
3237 GICXXPred_Simple_IsRule261Enabled,
3238 GICXXPred_Simple_IsRule262Enabled,
3239 GICXXPred_Simple_IsRule263Enabled,
3240 GICXXPred_Simple_IsRule264Enabled,
3241 GICXXPred_Simple_IsRule265Enabled,
3242 GICXXPred_Simple_IsRule266Enabled,
3243 GICXXPred_Simple_IsRule267Enabled,
3244 GICXXPred_Simple_IsRule268Enabled,
3245 GICXXPred_Simple_IsRule269Enabled,
3246 GICXXPred_Simple_IsRule270Enabled,
3247 GICXXPred_Simple_IsRule271Enabled,
3248 GICXXPred_Simple_IsRule272Enabled,
3249 GICXXPred_Simple_IsRule273Enabled,
3250 GICXXPred_Simple_IsRule274Enabled,
3251 GICXXPred_Simple_IsRule275Enabled,
3252 GICXXPred_Simple_IsRule276Enabled,
3253 GICXXPred_Simple_IsRule277Enabled,
3254 GICXXPred_Simple_IsRule278Enabled,
3255 GICXXPred_Simple_IsRule279Enabled,
3256 GICXXPred_Simple_IsRule280Enabled,
3257 GICXXPred_Simple_IsRule281Enabled,
3258 GICXXPred_Simple_IsRule282Enabled,
3259 GICXXPred_Simple_IsRule283Enabled,
3260 GICXXPred_Simple_IsRule284Enabled,
3261 GICXXPred_Simple_IsRule285Enabled,
3262 GICXXPred_Simple_IsRule286Enabled,
3263 GICXXPred_Simple_IsRule287Enabled,
3264 GICXXPred_Simple_IsRule288Enabled,
3265 GICXXPred_Simple_IsRule289Enabled,
3266 GICXXPred_Simple_IsRule290Enabled,
3267 GICXXPred_Simple_IsRule291Enabled,
3268 GICXXPred_Simple_IsRule292Enabled,
3269 GICXXPred_Simple_IsRule293Enabled,
3270 GICXXPred_Simple_IsRule294Enabled,
3271 GICXXPred_Simple_IsRule295Enabled,
3272 GICXXPred_Simple_IsRule296Enabled,
3273 GICXXPred_Simple_IsRule297Enabled,
3274 GICXXPred_Simple_IsRule298Enabled,
3275 GICXXPred_Simple_IsRule299Enabled,
3276 GICXXPred_Simple_IsRule300Enabled,
3277 GICXXPred_Simple_IsRule301Enabled,
3278 GICXXPred_Simple_IsRule302Enabled,
3279 GICXXPred_Simple_IsRule303Enabled,
3280 GICXXPred_Simple_IsRule304Enabled,
3281 GICXXPred_Simple_IsRule305Enabled,
3282 GICXXPred_Simple_IsRule306Enabled,
3283 GICXXPred_Simple_IsRule307Enabled,
3284 GICXXPred_Simple_IsRule308Enabled,
3285 GICXXPred_Simple_IsRule309Enabled,
3286 GICXXPred_Simple_IsRule310Enabled,
3287 GICXXPred_Simple_IsRule311Enabled,
3288 GICXXPred_Simple_IsRule312Enabled,
3289 GICXXPred_Simple_IsRule313Enabled,
3290 GICXXPred_Simple_IsRule314Enabled,
3291 GICXXPred_Simple_IsRule315Enabled,
3292 GICXXPred_Simple_IsRule316Enabled,
3293 GICXXPred_Simple_IsRule317Enabled,
3294 GICXXPred_Simple_IsRule318Enabled,
3295 GICXXPred_Simple_IsRule319Enabled,
3296 GICXXPred_Simple_IsRule320Enabled,
3297 GICXXPred_Simple_IsRule321Enabled,
3298 GICXXPred_Simple_IsRule322Enabled,
3299 GICXXPred_Simple_IsRule323Enabled,
3300 GICXXPred_Simple_IsRule324Enabled,
3301 GICXXPred_Simple_IsRule325Enabled,
3302 GICXXPred_Simple_IsRule326Enabled,
3303 GICXXPred_Simple_IsRule327Enabled,
3304 GICXXPred_Simple_IsRule328Enabled,
3305 GICXXPred_Simple_IsRule329Enabled,
3306 GICXXPred_Simple_IsRule330Enabled,
3307 GICXXPred_Simple_IsRule331Enabled,
3308 GICXXPred_Simple_IsRule332Enabled,
3309 GICXXPred_Simple_IsRule333Enabled,
3310 GICXXPred_Simple_IsRule334Enabled,
3311 GICXXPred_Simple_IsRule335Enabled,
3312 GICXXPred_Simple_IsRule336Enabled,
3313 GICXXPred_Simple_IsRule337Enabled,
3314 GICXXPred_Simple_IsRule338Enabled,
3315 GICXXPred_Simple_IsRule339Enabled,
3316 GICXXPred_Simple_IsRule340Enabled,
3317 GICXXPred_Simple_IsRule341Enabled,
3318 GICXXPred_Simple_IsRule342Enabled,
3319 GICXXPred_Simple_IsRule343Enabled,
3320 GICXXPred_Simple_IsRule344Enabled,
3321 GICXXPred_Simple_IsRule345Enabled,
3322 GICXXPred_Simple_IsRule346Enabled,
3323 GICXXPred_Simple_IsRule347Enabled,
3324 GICXXPred_Simple_IsRule348Enabled,
3325 GICXXPred_Simple_IsRule349Enabled,
3326 GICXXPred_Simple_IsRule350Enabled,
3327 GICXXPred_Simple_IsRule351Enabled,
3328 GICXXPred_Simple_IsRule352Enabled,
3329 GICXXPred_Simple_IsRule353Enabled,
3330 GICXXPred_Simple_IsRule354Enabled,
3331};
3332
3333bool AMDGPUPreLegalizerCombinerImpl::testSimplePredicate(unsigned Predicate) const {
3334 return RuleConfig.isRuleEnabled(Predicate - GICXXPred_Invalid - 1);
3335}
3336// Custom renderers.
3337enum {
3338 GICR_Invalid,
3339};
3340AMDGPUPreLegalizerCombinerImpl::CustomRendererFn
3341AMDGPUPreLegalizerCombinerImpl::CustomRenderers[] = {
3342 nullptr, // GICR_Invalid
3343};
3344
3345bool AMDGPUPreLegalizerCombinerImpl::canMatchOpcode(unsigned Opc) const {
3346 switch (Opc) {
3347 case TargetOpcode::G_SADDE:
3348 case TargetOpcode::G_SSUBE:
3349 case TargetOpcode::G_UADDE:
3350 case TargetOpcode::G_USUBE:
3351 case TargetOpcode::G_FSHL:
3352 case TargetOpcode::G_FSHR:
3353 case TargetOpcode::G_INSERT_VECTOR_ELT:
3354 case TargetOpcode::G_SADDO:
3355 case TargetOpcode::G_SELECT:
3356 case TargetOpcode::G_SHUFFLE_VECTOR:
3357 case TargetOpcode::G_SMULFIX:
3358 case TargetOpcode::G_SMULFIXSAT:
3359 case TargetOpcode::G_SMULO:
3360 case TargetOpcode::G_UADDO:
3361 case TargetOpcode::G_UMULFIX:
3362 case TargetOpcode::G_UMULFIXSAT:
3363 case TargetOpcode::G_UMULO:
3364 case TargetOpcode::G_FCMP:
3365 case TargetOpcode::G_FMA:
3366 case TargetOpcode::G_FMAD:
3367 case TargetOpcode::G_ICMP:
3368 case TargetOpcode::G_SSUBO:
3369 case TargetOpcode::G_USUBO:
3370 case TargetOpcode::G_FADD:
3371 case TargetOpcode::G_ADD:
3372 case TargetOpcode::G_AND:
3373 case TargetOpcode::G_ASHR:
3374 case TargetOpcode::G_EXTRACT_VECTOR_ELT:
3375 case TargetOpcode::G_FMAXIMUM:
3376 case TargetOpcode::G_FMAXNUM:
3377 case TargetOpcode::G_FMAXNUM_IEEE:
3378 case TargetOpcode::G_FMINIMUM:
3379 case TargetOpcode::G_FMINNUM:
3380 case TargetOpcode::G_FMINNUM_IEEE:
3381 case TargetOpcode::G_FMUL:
3382 case TargetOpcode::G_FSUB:
3383 case TargetOpcode::G_LSHR:
3384 case TargetOpcode::G_MERGE_VALUES:
3385 case TargetOpcode::G_MUL:
3386 case TargetOpcode::G_OR:
3387 case TargetOpcode::G_PTR_ADD:
3388 case TargetOpcode::G_SADDSAT:
3389 case TargetOpcode::G_SDIV:
3390 case TargetOpcode::G_SEXT_INREG:
3391 case TargetOpcode::G_SHL:
3392 case TargetOpcode::G_SMAX:
3393 case TargetOpcode::G_SMIN:
3394 case TargetOpcode::G_SMULH:
3395 case TargetOpcode::G_SREM:
3396 case TargetOpcode::G_SUB:
3397 case TargetOpcode::G_UADDSAT:
3398 case TargetOpcode::G_UDIV:
3399 case TargetOpcode::G_UMAX:
3400 case TargetOpcode::G_UMIN:
3401 case TargetOpcode::G_UMULH:
3402 case TargetOpcode::G_UREM:
3403 case TargetOpcode::G_XOR:
3404 case TargetOpcode::G_FCOPYSIGN:
3405 case TargetOpcode::G_FDIV:
3406 case TargetOpcode::G_FMAXIMUMNUM:
3407 case TargetOpcode::G_FMINIMUMNUM:
3408 case TargetOpcode::G_FPOWI:
3409 case TargetOpcode::G_FREM:
3410 case TargetOpcode::G_ROTL:
3411 case TargetOpcode::G_ROTR:
3412 case TargetOpcode::G_SSHLSAT:
3413 case TargetOpcode::G_USHLSAT:
3414 case TargetOpcode::G_BUILD_VECTOR:
3415 case TargetOpcode::G_BITCAST:
3416 case TargetOpcode::G_BITREVERSE:
3417 case TargetOpcode::G_BUILD_VECTOR_TRUNC:
3418 case TargetOpcode::G_CONCAT_VECTORS:
3419 case TargetOpcode::G_CTLZ:
3420 case TargetOpcode::G_CTTZ:
3421 case TargetOpcode::G_FPTRUNC:
3422 case TargetOpcode::G_FREEZE:
3423 case TargetOpcode::G_INTTOPTR:
3424 case TargetOpcode::G_PHI:
3425 case TargetOpcode::G_PTRTOINT:
3426 case TargetOpcode::G_STORE:
3427 case TargetOpcode::G_TRUNC:
3428 case TargetOpcode::G_TRUNC_USAT_U:
3429 case TargetOpcode::G_ZEXT:
3430 case TargetOpcode::COPY:
3431 case TargetOpcode::G_ABS:
3432 case TargetOpcode::G_ANYEXT:
3433 case TargetOpcode::G_BSWAP:
3434 case TargetOpcode::G_CTLZ_ZERO_POISON:
3435 case TargetOpcode::G_CTPOP:
3436 case TargetOpcode::G_CTTZ_ZERO_POISON:
3437 case TargetOpcode::G_FABS:
3438 case TargetOpcode::G_FCANONICALIZE:
3439 case TargetOpcode::G_FCEIL:
3440 case TargetOpcode::G_FFLOOR:
3441 case TargetOpcode::G_FLOG2:
3442 case TargetOpcode::G_FNEARBYINT:
3443 case TargetOpcode::G_FNEG:
3444 case TargetOpcode::G_FPEXT:
3445 case TargetOpcode::G_FPTOSI:
3446 case TargetOpcode::G_FPTOUI:
3447 case TargetOpcode::G_FPTOUI_SAT:
3448 case TargetOpcode::G_FRINT:
3449 case TargetOpcode::G_FSQRT:
3450 case TargetOpcode::G_INTRINSIC_ROUND:
3451 case TargetOpcode::G_INTRINSIC_ROUNDEVEN:
3452 case TargetOpcode::G_INTRINSIC_TRUNC:
3453 case TargetOpcode::G_LOAD:
3454 case TargetOpcode::G_SEXT:
3455 case TargetOpcode::G_SEXTLOAD:
3456 case TargetOpcode::G_SITOFP:
3457 case TargetOpcode::G_UITOFP:
3458 case TargetOpcode::G_ZEXTLOAD:
3459 case TargetOpcode::G_BR:
3460 case TargetOpcode::G_UNMERGE_VALUES:
3461 return true;
3462 default:
3463 return false;
3464 }
3465}
3466
3467uint32_t AMDGPUPreLegalizerCombinerImpl::getRootFlagsToDrop() const {
3468 return MachineInstr::getPoisonGeneratingFlags();
3469}
3470
3471bool AMDGPUPreLegalizerCombinerImpl::tryCombineAllImpl(MachineInstr &I) const {
3472 const PredicateBitset AvailableFeatures = getAvailableFeatures();
3473 State.MIs.clear();
3474 State.MIs.push_back(&I);
3475 if (executeMatchTable(*this, State, ExecInfo, B, getMatchTable(), Helper.getTII(), MRI, Helper.getTRI(), Helper.getRBI(), AvailableFeatures, /*CoverageInfo*/ nullptr)) {
3476 return true;
3477 }
3478
3479 return false;
3480}
3481
3482enum {
3483 GICXXCustomAction_GICombiner0 = GICXXCustomAction_Invalid + 1,
3484 GICXXCustomAction_GICombiner1,
3485 GICXXCustomAction_GICombiner2,
3486 GICXXCustomAction_GICombiner3,
3487 GICXXCustomAction_GICombiner4,
3488 GICXXCustomAction_GICombiner5,
3489 GICXXCustomAction_GICombiner6,
3490 GICXXCustomAction_GICombiner7,
3491 GICXXCustomAction_GICombiner8,
3492 GICXXCustomAction_GICombiner9,
3493 GICXXCustomAction_GICombiner10,
3494 GICXXCustomAction_GICombiner11,
3495 GICXXCustomAction_GICombiner12,
3496 GICXXCustomAction_GICombiner13,
3497 GICXXCustomAction_GICombiner14,
3498 GICXXCustomAction_GICombiner15,
3499 GICXXCustomAction_GICombiner16,
3500 GICXXCustomAction_GICombiner17,
3501 GICXXCustomAction_GICombiner18,
3502 GICXXCustomAction_GICombiner19,
3503 GICXXCustomAction_GICombiner20,
3504 GICXXCustomAction_GICombiner21,
3505 GICXXCustomAction_GICombiner22,
3506 GICXXCustomAction_GICombiner23,
3507 GICXXCustomAction_GICombiner24,
3508 GICXXCustomAction_GICombiner25,
3509 GICXXCustomAction_GICombiner26,
3510 GICXXCustomAction_GICombiner27,
3511 GICXXCustomAction_GICombiner28,
3512 GICXXCustomAction_GICombiner29,
3513 GICXXCustomAction_GICombiner30,
3514 GICXXCustomAction_GICombiner31,
3515 GICXXCustomAction_GICombiner32,
3516 GICXXCustomAction_GICombiner33,
3517 GICXXCustomAction_GICombiner34,
3518 GICXXCustomAction_GICombiner35,
3519 GICXXCustomAction_GICombiner36,
3520 GICXXCustomAction_GICombiner37,
3521 GICXXCustomAction_GICombiner38,
3522 GICXXCustomAction_GICombiner39,
3523 GICXXCustomAction_GICombiner40,
3524 GICXXCustomAction_GICombiner41,
3525 GICXXCustomAction_GICombiner42,
3526 GICXXCustomAction_GICombiner43,
3527 GICXXCustomAction_GICombiner44,
3528 GICXXCustomAction_GICombiner45,
3529 GICXXCustomAction_GICombiner46,
3530 GICXXCustomAction_GICombiner47,
3531 GICXXCustomAction_GICombiner48,
3532 GICXXCustomAction_GICombiner49,
3533 GICXXCustomAction_GICombiner50,
3534 GICXXCustomAction_GICombiner51,
3535 GICXXCustomAction_GICombiner52,
3536 GICXXCustomAction_GICombiner53,
3537 GICXXCustomAction_GICombiner54,
3538 GICXXCustomAction_GICombiner55,
3539 GICXXCustomAction_GICombiner56,
3540 GICXXCustomAction_GICombiner57,
3541 GICXXCustomAction_GICombiner58,
3542 GICXXCustomAction_GICombiner59,
3543 GICXXCustomAction_GICombiner60,
3544 GICXXCustomAction_GICombiner61,
3545 GICXXCustomAction_GICombiner62,
3546 GICXXCustomAction_GICombiner63,
3547 GICXXCustomAction_GICombiner64,
3548 GICXXCustomAction_GICombiner65,
3549 GICXXCustomAction_GICombiner66,
3550 GICXXCustomAction_GICombiner67,
3551 GICXXCustomAction_GICombiner68,
3552 GICXXCustomAction_GICombiner69,
3553 GICXXCustomAction_GICombiner70,
3554 GICXXCustomAction_GICombiner71,
3555 GICXXCustomAction_GICombiner72,
3556 GICXXCustomAction_GICombiner73,
3557 GICXXCustomAction_GICombiner74,
3558 GICXXCustomAction_GICombiner75,
3559 GICXXCustomAction_GICombiner76,
3560 GICXXCustomAction_GICombiner77,
3561 GICXXCustomAction_GICombiner78,
3562 GICXXCustomAction_GICombiner79,
3563 GICXXCustomAction_GICombiner80,
3564 GICXXCustomAction_GICombiner81,
3565 GICXXCustomAction_GICombiner82,
3566 GICXXCustomAction_GICombiner83,
3567 GICXXCustomAction_GICombiner84,
3568 GICXXCustomAction_GICombiner85,
3569 GICXXCustomAction_GICombiner86,
3570 GICXXCustomAction_GICombiner87,
3571 GICXXCustomAction_GICombiner88,
3572 GICXXCustomAction_GICombiner89,
3573 GICXXCustomAction_GICombiner90,
3574 GICXXCustomAction_GICombiner91,
3575 GICXXCustomAction_GICombiner92,
3576 GICXXCustomAction_GICombiner93,
3577 GICXXCustomAction_GICombiner94,
3578 GICXXCustomAction_GICombiner95,
3579 GICXXCustomAction_GICombiner96,
3580 GICXXCustomAction_GICombiner97,
3581 GICXXCustomAction_GICombiner98,
3582 GICXXCustomAction_GICombiner99,
3583 GICXXCustomAction_GICombiner100,
3584 GICXXCustomAction_GICombiner101,
3585 GICXXCustomAction_GICombiner102,
3586 GICXXCustomAction_GICombiner103,
3587 GICXXCustomAction_GICombiner104,
3588 GICXXCustomAction_GICombiner105,
3589 GICXXCustomAction_GICombiner106,
3590 GICXXCustomAction_GICombiner107,
3591 GICXXCustomAction_GICombiner108,
3592 GICXXCustomAction_GICombiner109,
3593 GICXXCustomAction_GICombiner110,
3594 GICXXCustomAction_GICombiner111,
3595 GICXXCustomAction_GICombiner112,
3596 GICXXCustomAction_GICombiner113,
3597 GICXXCustomAction_GICombiner114,
3598 GICXXCustomAction_GICombiner115,
3599 GICXXCustomAction_GICombiner116,
3600 GICXXCustomAction_GICombiner117,
3601 GICXXCustomAction_GICombiner118,
3602 GICXXCustomAction_GICombiner119,
3603 GICXXCustomAction_GICombiner120,
3604 GICXXCustomAction_GICombiner121,
3605 GICXXCustomAction_GICombiner122,
3606 GICXXCustomAction_GICombiner123,
3607 GICXXCustomAction_GICombiner124,
3608 GICXXCustomAction_GICombiner125,
3609 GICXXCustomAction_GICombiner126,
3610 GICXXCustomAction_GICombiner127,
3611 GICXXCustomAction_GICombiner128,
3612 GICXXCustomAction_GICombiner129,
3613 GICXXCustomAction_GICombiner130,
3614 GICXXCustomAction_GICombiner131,
3615 GICXXCustomAction_GICombiner132,
3616 GICXXCustomAction_GICombiner133,
3617 GICXXCustomAction_GICombiner134,
3618 GICXXCustomAction_GICombiner135,
3619};
3620bool AMDGPUPreLegalizerCombinerImpl::runCustomAction(unsigned ApplyID, const MatcherState &State, NewMIVector &OutMIs) const {
3621 Helper.getBuilder().setInstrAndDebugLoc(*State.MIs[0]);
3622 switch(ApplyID) {
3623 case GICXXCustomAction_GICombiner0:{
3624 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3625 // Match Patterns
3626 if(![&](){return Helper.matchFoldAPlusC1MinusC2(*State.MIs[0], GIMatchData_matchinfo);}()) {
3627 return false;
3628 }
3629 // Apply Patterns
3630 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3631 return true;
3632 }
3633 case GICXXCustomAction_GICombiner1:{
3634 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3635 // Match Patterns
3636 if(![&](){return Helper.matchFoldC2MinusAPlusC1(*State.MIs[0], GIMatchData_matchinfo);}()) {
3637 return false;
3638 }
3639 // Apply Patterns
3640 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3641 return true;
3642 }
3643 case GICXXCustomAction_GICombiner2:{
3644 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3645 // Match Patterns
3646 if(![&](){return Helper.matchFoldAMinusC1MinusC2(*State.MIs[0], GIMatchData_matchinfo);}()) {
3647 return false;
3648 }
3649 // Apply Patterns
3650 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3651 return true;
3652 }
3653 case GICXXCustomAction_GICombiner3:{
3654 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3655 // Match Patterns
3656 if(![&](){return Helper.matchFoldC1Minus2MinusC2(*State.MIs[0], GIMatchData_matchinfo);}()) {
3657 return false;
3658 }
3659 // Apply Patterns
3660 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3661 return true;
3662 }
3663 case GICXXCustomAction_GICombiner4:{
3664 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3665 // Match Patterns
3666 if(![&](){return Helper.matchFoldAMinusC1PlusC2(*State.MIs[0], GIMatchData_matchinfo);}()) {
3667 return false;
3668 }
3669 // Apply Patterns
3670 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3671 return true;
3672 }
3673 case GICXXCustomAction_GICombiner5:{
3674 // Match Patterns
3675 if(![&](){return Helper.matchCombineCopy(*State.MIs[0]);}()) {
3676 return false;
3677 }
3678 // Apply Patterns
3679 Helper.applyCombineCopy(*State.MIs[0]);
3680 return true;
3681 }
3682 case GICXXCustomAction_GICombiner6:{
3683 unsigned GIMatchData_matchinfo;
3684 // Match Patterns
3685 if(![&](){return Helper.matchCombineMulToShl(*State.MIs[0], GIMatchData_matchinfo);}()) {
3686 return false;
3687 }
3688 // Apply Patterns
3689 Helper.applyCombineMulToShl(*State.MIs[0], GIMatchData_matchinfo);
3690 return true;
3691 }
3692 case GICXXCustomAction_GICombiner7:{
3693 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3694 // Match Patterns
3695 if(![&](){return Helper.matchCombineSubToAdd(*State.MIs[0], GIMatchData_matchinfo);}()) {
3696 return false;
3697 }
3698 // Apply Patterns
3699 Helper.applyBuildFnNoErase(*State.MIs[0], GIMatchData_matchinfo);
3700 return true;
3701 }
3702 case GICXXCustomAction_GICombiner8:{
3703 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3704 // Match Patterns
3705 if(![&](){return Helper.matchExtractVectorElementWithDifferentIndices(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
3706 return false;
3707 }
3708 // Apply Patterns
3709 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
3710 return true;
3711 }
3712 case GICXXCustomAction_GICombiner9:{
3713 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3714 // Match Patterns
3715 if(![&](){return Helper.matchExtractVectorElementWithBuildVector(*State.MIs[0], *State.MIs[1],
3716 GIMatchData_matchinfo);}()) {
3717 return false;
3718 }
3719 // Apply Patterns
3720 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3721 return true;
3722 }
3723 case GICXXCustomAction_GICombiner10:{
3724 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3725 // Match Patterns
3726 if(![&](){return Helper.matchExtractVectorElementWithBuildVectorTrunc(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
3727 return false;
3728 }
3729 // Apply Patterns
3730 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
3731 return true;
3732 }
3733 case GICXXCustomAction_GICombiner11:{
3734 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3735 // Match Patterns
3736 if(![&](){return Helper.matchExtractVectorElementWithShuffleVector(*State.MIs[0], *State.MIs[1],
3737 GIMatchData_matchinfo);}()) {
3738 return false;
3739 }
3740 // Apply Patterns
3741 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3742 return true;
3743 }
3744 case GICXXCustomAction_GICombiner12:{
3745 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3746 // Match Patterns
3747 if(![&](){return Helper.matchAddOfVScale(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
3748 return false;
3749 }
3750 // Apply Patterns
3751 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
3752 return true;
3753 }
3754 case GICXXCustomAction_GICombiner13:{
3755 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3756 // Match Patterns
3757 if(![&](){return Helper.matchMulOfVScale(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
3758 return false;
3759 }
3760 // Apply Patterns
3761 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
3762 return true;
3763 }
3764 case GICXXCustomAction_GICombiner14:{
3765 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3766 // Match Patterns
3767 if(![&](){return Helper.matchShlOfVScale(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
3768 return false;
3769 }
3770 // Apply Patterns
3771 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
3772 return true;
3773 }
3774 case GICXXCustomAction_GICombiner15:{
3775 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3776 // Match Patterns
3777 if(![&](){return Helper.matchSubOfVScale(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
3778 return false;
3779 }
3780 // Apply Patterns
3781 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
3782 return true;
3783 }
3784 case GICXXCustomAction_GICombiner16:{
3785 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3786 // Match Patterns
3787 if(![&](){return !isGuaranteedNotToBePoison(State.MIs[0]->getOperand(1).getReg(), MRI) && Helper.matchFreezeOfSingleMaybePoisonOperand(*State.MIs[0], GIMatchData_matchinfo);}()) {
3788 return false;
3789 }
3790 // Apply Patterns
3791 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3792 return true;
3793 }
3794 case GICXXCustomAction_GICombiner17:{
3795 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3796 // Match Patterns
3797 if(![&](){return Helper.matchTruncateOfExt(*State.MIs[0], *State.MIs[1], GIMatchData_matchinfo);}()) {
3798 return false;
3799 }
3800 // Apply Patterns
3801 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3802 return true;
3803 }
3804 case GICXXCustomAction_GICombiner18:{
3805 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3806 // Match Patterns
3807 if(![&](){return Helper.matchExtOfExt(*State.MIs[0], *State.MIs[1], GIMatchData_matchinfo);}()) {
3808 return false;
3809 }
3810 // Apply Patterns
3811 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3812 return true;
3813 }
3814 case GICXXCustomAction_GICombiner19:{
3815 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3816 // Match Patterns
3817 if(![&](){return Helper.matchRedundantSextInReg(*State.MIs[0], *State.MIs[1], GIMatchData_matchinfo);}()) {
3818 return false;
3819 }
3820 // Apply Patterns
3821 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3822 return true;
3823 }
3824 case GICXXCustomAction_GICombiner20:{
3825 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3826 // Match Patterns
3827 if(![&](){return Helper.matchCastOfSelect(*State.MIs[0], *State.MIs[1], GIMatchData_matchinfo);}()) {
3828 return false;
3829 }
3830 // Apply Patterns
3831 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3832 return true;
3833 }
3834 case GICXXCustomAction_GICombiner21:{
3835 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3836 // Match Patterns
3837 if(![&](){return Helper.matchCastOfBuildVector(*State.MIs[0], *State.MIs[1], GIMatchData_matchinfo);}()) {
3838 return false;
3839 }
3840 // Apply Patterns
3841 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3842 return true;
3843 }
3844 case GICXXCustomAction_GICombiner22:{
3845 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3846 // Match Patterns
3847 if(![&](){return Helper.matchNarrowBinop(*State.MIs[0], *State.MIs[1], GIMatchData_matchinfo);}()) {
3848 return false;
3849 }
3850 // Apply Patterns
3851 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3852 return true;
3853 }
3854 case GICXXCustomAction_GICombiner23:{
3855 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3856 // Match Patterns
3857 if(![&](){return Helper.matchCastOfInteger(*State.MIs[0], GIMatchData_matchinfo);}()) {
3858 return false;
3859 }
3860 // Apply Patterns
3861 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3862 return true;
3863 }
3864 case GICXXCustomAction_GICombiner24:{
3865 SmallVector<Register> GIMatchData_info;
3866 // Match Patterns
3867 if(![&](){return Helper.matchCombineInsertVecElts(*State.MIs[0], GIMatchData_info);}()) {
3868 return false;
3869 }
3870 // Apply Patterns
3871 Helper.applyCombineInsertVecElts(*State.MIs[0], GIMatchData_info);
3872 return true;
3873 }
3874 case GICXXCustomAction_GICombiner25:{
3875 Register GIMatchData_matchinfo;
3876 // Match Patterns
3877 if(![&](){return Helper.matchExtractVecEltBuildVec(*State.MIs[0], GIMatchData_matchinfo);}()) {
3878 return false;
3879 }
3880 // Apply Patterns
3881 Helper.applyExtractVecEltBuildVec(*State.MIs[0], GIMatchData_matchinfo);
3882 return true;
3883 }
3884 case GICXXCustomAction_GICombiner26:{
3885 SmallVector<std::pair<Register, MachineInstr*>> GIMatchData_matchinfo;
3886 // Match Patterns
3887 if(![&](){return Helper.matchExtractAllEltsFromBuildVector(*State.MIs[0], GIMatchData_matchinfo);}()) {
3888 return false;
3889 }
3890 // Apply Patterns
3891 Helper.applyExtractAllEltsFromBuildVector(*State.MIs[0], GIMatchData_matchinfo);
3892 return true;
3893 }
3894 case GICXXCustomAction_GICombiner27:{
3895 PreferredTuple GIMatchData_matchinfo;
3896 // Match Patterns
3897 if(![&](){return Helper.matchCombineExtendingLoads(*State.MIs[0], GIMatchData_matchinfo);}()) {
3898 return false;
3899 }
3900 // Apply Patterns
3901 Helper.applyCombineExtendingLoads(*State.MIs[0], GIMatchData_matchinfo);
3902 return true;
3903 }
3904 case GICXXCustomAction_GICombiner28:{
3905 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3906 // Match Patterns
3907 if(![&](){return Helper.matchCombineLoadWithAndMask(*State.MIs[0], GIMatchData_matchinfo);}()) {
3908 return false;
3909 }
3910 // Apply Patterns
3911 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3912 return true;
3913 }
3914 case GICXXCustomAction_GICombiner29:{
3915 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3916 // Match Patterns
3917 if(![&](){return Helper.matchCombineExtractedVectorLoad(*State.MIs[0], GIMatchData_matchinfo);}()) {
3918 return false;
3919 }
3920 // Apply Patterns
3921 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3922 return true;
3923 }
3924 case GICXXCustomAction_GICombiner30:{
3925 // Apply Patterns
3926 Helper.replaceInstWithFConstant(*State.MIs[0]->getOperand(0).getParent(), 0.0);
3927 return true;
3928 }
3929 case GICXXCustomAction_GICombiner31:{
3930 // Apply Patterns
3931 Helper.replaceInstWithConstant(*State.MIs[0]->getOperand(0).getParent(), 0);
3932 return true;
3933 }
3934 case GICXXCustomAction_GICombiner32:{
3935 // Apply Patterns
3936 Helper.replaceInstWithConstant(*State.MIs[0]->getOperand(0).getParent(), -1);
3937 return true;
3938 }
3939 case GICXXCustomAction_GICombiner33:{
3940 Register GIMatchData_matchinfo;
3941 // Match Patterns
3942 if(![&](){return Helper.matchCombineAnyExtTrunc(*State.MIs[0], GIMatchData_matchinfo);}()) {
3943 return false;
3944 }
3945 // Apply Patterns
3946 Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo);
3947 return true;
3948 }
3949 case GICXXCustomAction_GICombiner34:{
3950 Register GIMatchData_matchinfo;
3951 // Match Patterns
3952 if(![&](){return Helper.matchBuildVectorIdentityFold(*State.MIs[0], GIMatchData_matchinfo);}()) {
3953 return false;
3954 }
3955 // Apply Patterns
3956 Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo);
3957 return true;
3958 }
3959 case GICXXCustomAction_GICombiner35:{
3960 Register GIMatchData_matchinfo;
3961 // Match Patterns
3962 if(![&](){return Helper.matchTruncBuildVectorFold(*State.MIs[0], GIMatchData_matchinfo);}()) {
3963 return false;
3964 }
3965 // Apply Patterns
3966 Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo);
3967 return true;
3968 }
3969 case GICXXCustomAction_GICombiner36:{
3970 Register GIMatchData_matchinfo;
3971 // Match Patterns
3972 if(![&](){return Helper.matchTruncLshrBuildVectorFold(*State.MIs[0], GIMatchData_matchinfo);}()) {
3973 return false;
3974 }
3975 // Apply Patterns
3976 Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo);
3977 return true;
3978 }
3979 case GICXXCustomAction_GICombiner37:{
3980 MachineInstr* GIMatchData_matchinfo;
3981 // Match Patterns
3982 if(![&](){return Helper.matchExtendThroughPhis(*State.MIs[0], GIMatchData_matchinfo);}()) {
3983 return false;
3984 }
3985 // Apply Patterns
3986 Helper.applyExtendThroughPhis(*State.MIs[0], GIMatchData_matchinfo);
3987 return true;
3988 }
3989 case GICXXCustomAction_GICombiner38:{
3990 InstructionStepsMatchInfo GIMatchData_info;
3991 // Match Patterns
3992 if(![&](){return Helper.matchHoistLogicOpWithSameOpcodeHands(*State.MIs[0], GIMatchData_info);}()) {
3993 return false;
3994 }
3995 // Apply Patterns
3996 Helper.applyBuildInstructionSteps(*State.MIs[0], GIMatchData_info);
3997 return true;
3998 }
3999 case GICXXCustomAction_GICombiner39:{
4000 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4001 // Match Patterns
4002 if(![&](){return Helper.matchShiftsTooBig(*State.MIs[0], GIMatchData_matchinfo);}()) {
4003 return false;
4004 }
4005 // Apply Patterns
4006 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4007 return true;
4008 }
4009 case GICXXCustomAction_GICombiner40:{
4010 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4011 // Match Patterns
4012 if(![&](){return Helper.matchReassocPtrAdd(*State.MIs[0], GIMatchData_matchinfo);}()) {
4013 return false;
4014 }
4015 // Apply Patterns
4016 Helper.applyBuildFnNoErase(*State.MIs[0], GIMatchData_matchinfo);
4017 return true;
4018 }
4019 case GICXXCustomAction_GICombiner41:{
4020 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4021 // Match Patterns
4022 if(![&](){return Helper.matchReassocCommBinOp(*State.MIs[0], GIMatchData_matchinfo);}()) {
4023 return false;
4024 }
4025 // Apply Patterns
4026 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4027 return true;
4028 }
4029 case GICXXCustomAction_GICombiner42:{
4030 PtrAddChain GIMatchData_matchinfo;
4031 // Match Patterns
4032 if(![&](){return Helper.matchPtrAddImmedChain(*State.MIs[0], GIMatchData_matchinfo);}()) {
4033 return false;
4034 }
4035 // Apply Patterns
4036 Helper.applyPtrAddImmedChain(*State.MIs[0], GIMatchData_matchinfo);
4037 return true;
4038 }
4039 case GICXXCustomAction_GICombiner43:{
4040 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4041 // Match Patterns
4042 if(![&](){return Helper.matchCanonicalizeICmp(*State.MIs[0], GIMatchData_matchinfo);}()) {
4043 return false;
4044 }
4045 // Apply Patterns
4046 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4047 return true;
4048 }
4049 case GICXXCustomAction_GICombiner44:{
4050 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4051 // Match Patterns
4052 if(![&](){return Helper.matchCanonicalizeFCmp(*State.MIs[0], GIMatchData_matchinfo);}()) {
4053 return false;
4054 }
4055 // Apply Patterns
4056 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4057 return true;
4058 }
4059 case GICXXCustomAction_GICombiner45:{
4060 int64_t GIMatchData_matchinfo;
4061 // Match Patterns
4062 if(![&](){return Helper.matchICmpToTrueFalseKnownBits(*State.MIs[0], GIMatchData_matchinfo);}()) {
4063 return false;
4064 }
4065 // Apply Patterns
4066 Helper.replaceInstWithConstant(*State.MIs[0], GIMatchData_matchinfo);
4067 return true;
4068 }
4069 case GICXXCustomAction_GICombiner46:{
4070 std::function<void(MachineIRBuilder &)> GIMatchData_info;
4071 // Match Patterns
4072 if(![&](){return Helper.matchICmpToLHSKnownBits(*State.MIs[0], GIMatchData_info);}()) {
4073 return false;
4074 }
4075 // Apply Patterns
4076 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
4077 return true;
4078 }
4079 case GICXXCustomAction_GICombiner47:{
4080 std::function<void(MachineIRBuilder &)> GIMatchData_info;
4081 // Match Patterns
4082 if(![&](){return Helper.matchRedundantBinOpInEquality(*State.MIs[0], GIMatchData_info);}()) {
4083 return false;
4084 }
4085 // Apply Patterns
4086 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
4087 return true;
4088 }
4089 case GICXXCustomAction_GICombiner48:{
4090 std::tuple<Register, int64_t> GIMatchData_info;
4091 // Match Patterns
4092 if(![&](){return Helper.matchAshrShlToSextInreg(*State.MIs[0], GIMatchData_info);}()) {
4093 return false;
4094 }
4095 // Apply Patterns
4096 Helper.applyAshShlToSextInreg(*State.MIs[0], GIMatchData_info);
4097 return true;
4098 }
4099 case GICXXCustomAction_GICombiner49:{
4100 std::tuple<Register, unsigned> GIMatchData_matchinfo;
4101 // Match Patterns
4102 if(![&](){return Helper.matchSextInRegOfLoad(*State.MIs[0], GIMatchData_matchinfo);}()) {
4103 return false;
4104 }
4105 // Apply Patterns
4106 Helper.applySextInRegOfLoad(*State.MIs[0], GIMatchData_matchinfo);
4107 return true;
4108 }
4109 case GICXXCustomAction_GICombiner50:{
4110 RegisterImmPair GIMatchData_matchinfo;
4111 // Match Patterns
4112 if(![&](){return Helper.matchCombineShlOfExtend(*State.MIs[0], GIMatchData_matchinfo);}()) {
4113 return false;
4114 }
4115 // Apply Patterns
4116 Helper.applyCombineShlOfExtend(*State.MIs[0], GIMatchData_matchinfo);
4117 return true;
4118 }
4119 case GICXXCustomAction_GICombiner51:{
4120 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4121 // Match Patterns
4122 if(![&](){return Helper.matchNarrowBinopFeedingAnd(*State.MIs[0], GIMatchData_matchinfo);}()) {
4123 return false;
4124 }
4125 // Apply Patterns
4126 Helper.applyBuildFnNoErase(*State.MIs[0], GIMatchData_matchinfo);
4127 return true;
4128 }
4129 case GICXXCustomAction_GICombiner52:{
4130 std::function<void(MachineIRBuilder &)> GIMatchData_info;
4131 // Match Patterns
4132 if(![&](){return Helper.matchSelectIMinMax(State.MIs[0]->getOperand(0), GIMatchData_info);}()) {
4133 return false;
4134 }
4135 // Apply Patterns
4136 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_info);
4137 return true;
4138 }
4139 case GICXXCustomAction_GICombiner53:{
4140 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4141 // Match Patterns
4142 if(![&](){return Helper.matchSelect(*State.MIs[0], GIMatchData_matchinfo);}()) {
4143 return false;
4144 }
4145 // Apply Patterns
4146 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4147 return true;
4148 }
4149 case GICXXCustomAction_GICombiner54:{
4150 // Match Patterns
4151 if(![&](){LLT SrcTy = MRI.getType(State.MIs[3]->getOperand(1).getReg());
4152 return State.MIs[0]->getOperand(2).getImm() <= SrcTy.getScalarSizeInBits() &&
4153 MRI.getType(State.MIs[1]->getOperand(1).getReg()).getScalarType() ==
4154 MRI.getType(State.MIs[2]->getOperand(2).getReg()).getScalarType() &&
4155 VT->computeNumSignBits(State.MIs[3]->getOperand(1).getReg()) >=
4156 (SrcTy.getScalarSizeInBits() - State.MIs[0]->getOperand(2).getImm() + 1);}()) {
4157 return false;
4158 }
4159 // Apply Patterns
4160 auto SExt1 = Helper.getBuilder().buildSExt(MRI.getType(State.MIs[2]->getOperand(2).getReg()), State.MIs[3]->getOperand(1).getReg());
4161 auto Unmerge = Helper.getBuilder().buildUnmerge(MRI.getType(State.MIs[1]->getOperand(1).getReg()), SExt1);
4162 unsigned UnmergeDef = State.MIs[1]->getOperand(1).getReg() == State.MIs[2]->getOperand(0).getReg() ? 0 : 1;
4163 Helper.getBuilder().buildSExt(State.MIs[0]->getOperand(0).getReg(), Unmerge.getReg(UnmergeDef));
4164 State.MIs[0]->eraseFromParent();
4165 return true;
4166 }
4167 case GICXXCustomAction_GICombiner55:{
4168 Register GIMatchData_matchinfo;
4169 // Match Patterns
4170 if(![&](){return Helper.matchRedundantAnd(*State.MIs[0], GIMatchData_matchinfo);}()) {
4171 return false;
4172 }
4173 // Apply Patterns
4174 Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo);
4175 return true;
4176 }
4177 case GICXXCustomAction_GICombiner56:{
4178 Register GIMatchData_matchinfo;
4179 // Match Patterns
4180 if(![&](){return Helper.matchRedundantOr(*State.MIs[0], GIMatchData_matchinfo);}()) {
4181 return false;
4182 }
4183 // Apply Patterns
4184 Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo);
4185 return true;
4186 }
4187 case GICXXCustomAction_GICombiner57:{
4188 // Match Patterns
4189 if(![&](){return Helper.matchOperandIsKnownToBeAPowerOfTwo(State.MIs[0]->getOperand(2),
4190 /*OrNegative=*/false,
4191 /*OrZero=*/true);}()) {
4192 return false;
4193 }
4194 // Apply Patterns
4195 Helper.applySimplifyURemByPow2(*State.MIs[0]);
4196 return true;
4197 }
4198 case GICXXCustomAction_GICombiner58:{
4199 Register GIMatchData_matchinfo;
4200 // Match Patterns
4201 if(![&](){return Helper.matchCombineZextTrunc(*State.MIs[0], GIMatchData_matchinfo);}()) {
4202 return false;
4203 }
4204 // Apply Patterns
4205 Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo);
4206 return true;
4207 }
4208 case GICXXCustomAction_GICombiner59:{
4209 // Match Patterns
4210 if(![&](){unsigned BitWidth = MRI.getType(State.MIs[0]->getOperand(1).getReg()).getScalarSizeInBits();
4211 return Helper.getValueTracking()->maskedValueIsZero(State.MIs[0]->getOperand(1).getReg(),
4212 APInt::getOneBitSet(BitWidth, State.MIs[0]->getOperand(2).getImm() - 1));}()) {
4213 return false;
4214 }
4215 // Apply Patterns
4216 Helper.getBuilder().setInstrAndDebugLoc(*State.MIs[0]);
4217 Helper.getBuilder().buildZExtInReg(State.MIs[0]->getOperand(0), State.MIs[0]->getOperand(1), State.MIs[0]->getOperand(2).getImm());
4218 State.MIs[0]->eraseFromParent();
4219 return true;
4220 }
4221 case GICXXCustomAction_GICombiner60:{
4222 std::pair<MachineInstr*, LLT> GIMatchData_matchinfo;
4223 // Match Patterns
4224 if(![&](){return Helper.matchCombineTruncOfShift(*State.MIs[0], GIMatchData_matchinfo);}()) {
4225 return false;
4226 }
4227 // Apply Patterns
4228 Helper.applyCombineTruncOfShift(*State.MIs[0], GIMatchData_matchinfo);
4229 return true;
4230 }
4231 case GICXXCustomAction_GICombiner61:{
4232 SmallVector<Register> GIMatchData_info;
4233 // Match Patterns
4234 if(![&](){return Helper.matchNotCmp(*State.MIs[0], GIMatchData_info);}()) {
4235 return false;
4236 }
4237 // Apply Patterns
4238 Helper.applyNotCmp(*State.MIs[0], GIMatchData_info);
4239 return true;
4240 }
4241 case GICXXCustomAction_GICombiner62:{
4242 MachineInstr * GIMatchData_matchinfo;
4243 // Match Patterns
4244 if(![&](){return Helper.matchOptBrCondByInvertingCond(*State.MIs[0], GIMatchData_matchinfo);}()) {
4245 return false;
4246 }
4247 // Apply Patterns
4248 Helper.applyOptBrCondByInvertingCond(*State.MIs[0], GIMatchData_matchinfo);
4249 return true;
4250 }
4251 case GICXXCustomAction_GICombiner63:{
4252 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4253 // Match Patterns
4254 if(![&](){return Helper.matchConstantFoldFPUnary(*State.MIs[0], GIMatchData_matchinfo);}()) {
4255 return false;
4256 }
4257 // Apply Patterns
4258 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4259 return true;
4260 }
4261 case GICXXCustomAction_GICombiner64:{
4262 APInt GIMatchData_info;
4263 // Match Patterns
4264 if(![&](){LLT DstTy = MRI.getType(State.MIs[0]->getOperand(0).getReg());
4265 APInt NewCst = State.MIs[2]->getOperand(1).getCImm()->getValue().zextOrTrunc(
4266 DstTy.getSizeInBits());
4267 NewCst += State.MIs[3]->getOperand(1).getCImm()->getValue().sextOrTrunc(
4268 DstTy.getSizeInBits());
4269 GIMatchData_info = NewCst;
4270 return true;}()) {
4271 return false;
4272 }
4273 // Apply Patterns
4274 Helper.getBuilder().setInstrAndDebugLoc(*State.MIs[0]);
4275 Helper.getBuilder().buildConstant(State.MIs[0]->getOperand(0), GIMatchData_info);
4276 State.MIs[0]->eraseFromParent();
4277 return true;
4278 }
4279 case GICXXCustomAction_GICombiner65:{
4280 std::function<void(MachineIRBuilder &)> GIMatchData_info;
4281 // Match Patterns
4282 if(![&](){return Helper.matchOverlappingAnd(*State.MIs[0], GIMatchData_info);}()) {
4283 return false;
4284 }
4285 // Apply Patterns
4286 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
4287 return true;
4288 }
4289 case GICXXCustomAction_GICombiner66:{
4290 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4291 // Match Patterns
4292 if(![&](){return Helper.matchMulOBy0(*State.MIs[0], GIMatchData_matchinfo);}()) {
4293 return false;
4294 }
4295 // Apply Patterns
4296 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4297 return true;
4298 }
4299 case GICXXCustomAction_GICombiner67:{
4300 // Match Patterns
4301 if(![&](){return Helper.matchFPowIExpansion(*State.MIs[0], State.MIs[1]->getOperand(1).getCImm()->getSExtValue());}()) {
4302 return false;
4303 }
4304 // Apply Patterns
4305 Helper.applyExpandFPowI(*State.MIs[0], State.MIs[1]->getOperand(1).getCImm()->getSExtValue());
4306 return true;
4307 }
4308 case GICXXCustomAction_GICombiner68:{
4309 std::pair<Register, Register> GIMatchData_matchinfo;
4310 // Match Patterns
4311 if(![&](){return Helper.matchXorOfAndWithSameReg(*State.MIs[0], GIMatchData_matchinfo);}()) {
4312 return false;
4313 }
4314 // Apply Patterns
4315 Helper.applyXorOfAndWithSameReg(*State.MIs[0], GIMatchData_matchinfo);
4316 return true;
4317 }
4318 case GICXXCustomAction_GICombiner69:{
4319 RegisterImmPair GIMatchData_matchinfo;
4320 // Match Patterns
4321 if(![&](){return Helper.matchShiftImmedChain(*State.MIs[0], GIMatchData_matchinfo);}()) {
4322 return false;
4323 }
4324 // Apply Patterns
4325 Helper.applyShiftImmedChain(*State.MIs[0], GIMatchData_matchinfo);
4326 return true;
4327 }
4328 case GICXXCustomAction_GICombiner70:{
4329 ShiftOfShiftedLogic GIMatchData_matchinfo;
4330 // Match Patterns
4331 if(![&](){return Helper.matchShiftOfShiftedLogic(*State.MIs[0], GIMatchData_matchinfo);}()) {
4332 return false;
4333 }
4334 // Apply Patterns
4335 Helper.applyShiftOfShiftedLogic(*State.MIs[0], GIMatchData_matchinfo);
4336 return true;
4337 }
4338 case GICXXCustomAction_GICombiner71:{
4339 std::function<void(MachineIRBuilder &)> GIMatchData_info;
4340 // Match Patterns
4341 if(![&](){return Helper.matchLoadOrCombine(*State.MIs[0], GIMatchData_info);}()) {
4342 return false;
4343 }
4344 // Apply Patterns
4345 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
4346 return true;
4347 }
4348 case GICXXCustomAction_GICombiner72:{
4349 MachineInstr * GIMatchData_matchinfo;
4350 // Match Patterns
4351 if(![&](){return Helper.matchCombineDivRem(*State.MIs[0], GIMatchData_matchinfo);}()) {
4352 return false;
4353 }
4354 // Apply Patterns
4355 Helper.applyCombineDivRem(*State.MIs[0], GIMatchData_matchinfo);
4356 return true;
4357 }
4358 case GICXXCustomAction_GICombiner73:{
4359 std::function<void(MachineIRBuilder &)> GIMatchData_info;
4360 // Match Patterns
4361 if(![&](){return Helper.matchOrShiftToFunnelShift(*State.MIs[0], false, GIMatchData_info);}()) {
4362 return false;
4363 }
4364 // Apply Patterns
4365 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
4366 return true;
4367 }
4368 case GICXXCustomAction_GICombiner74:{
4369 // Match Patterns
4370 if(![&](){return Helper.matchConstantLargerBitWidth(*State.MIs[0], 3);}()) {
4371 return false;
4372 }
4373 // Apply Patterns
4374 Helper.applyFunnelShiftConstantModulo(*State.MIs[0]);
4375 return true;
4376 }
4377 case GICXXCustomAction_GICombiner75:{
4378 std::function<void(MachineIRBuilder &)> GIMatchData_info;
4379 // Match Patterns
4380 if(![&](){return Helper.matchBitfieldExtractFromSExtInReg(*State.MIs[0], GIMatchData_info);}()) {
4381 return false;
4382 }
4383 // Apply Patterns
4384 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
4385 return true;
4386 }
4387 case GICXXCustomAction_GICombiner76:{
4388 std::function<void(MachineIRBuilder &)> GIMatchData_info;
4389 // Match Patterns
4390 if(![&](){return Helper.matchBitfieldExtractFromAnd(*State.MIs[0], GIMatchData_info);}()) {
4391 return false;
4392 }
4393 // Apply Patterns
4394 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
4395 return true;
4396 }
4397 case GICXXCustomAction_GICombiner77:{
4398 std::function<void(MachineIRBuilder &)> GIMatchData_info;
4399 // Match Patterns
4400 if(![&](){return Helper.matchBitfieldExtractFromShr(*State.MIs[0], GIMatchData_info);}()) {
4401 return false;
4402 }
4403 // Apply Patterns
4404 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
4405 return true;
4406 }
4407 case GICXXCustomAction_GICombiner78:{
4408 std::function<void(MachineIRBuilder &)> GIMatchData_info;
4409 // Match Patterns
4410 if(![&](){return Helper.matchBitfieldExtractFromShrAnd(*State.MIs[0], GIMatchData_info);}()) {
4411 return false;
4412 }
4413 // Apply Patterns
4414 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
4415 return true;
4416 }
4417 case GICXXCustomAction_GICombiner79:{
4418 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4419 // Match Patterns
4420 if(![&](){return Helper.matchConstantFoldBinOp(*State.MIs[0], GIMatchData_matchinfo);}()) {
4421 return false;
4422 }
4423 // Apply Patterns
4424 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4425 return true;
4426 }
4427 case GICXXCustomAction_GICombiner80:{
4428 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4429 // Match Patterns
4430 if(![&](){return Helper.matchConstantFoldFPBinOp(*State.MIs[0], GIMatchData_matchinfo);}()) {
4431 return false;
4432 }
4433 // Apply Patterns
4434 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4435 return true;
4436 }
4437 case GICXXCustomAction_GICombiner81:{
4438 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4439 // Match Patterns
4440 if(![&](){return Helper.matchConstantFoldFMA(*State.MIs[0], GIMatchData_matchinfo);}()) {
4441 return false;
4442 }
4443 // Apply Patterns
4444 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4445 return true;
4446 }
4447 case GICXXCustomAction_GICombiner82:{
4448 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4449 // Match Patterns
4450 if(![&](){return Helper.matchConstantFoldCastOp(*State.MIs[0], GIMatchData_matchinfo);}()) {
4451 return false;
4452 }
4453 // Apply Patterns
4454 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4455 return true;
4456 }
4457 case GICXXCustomAction_GICombiner83:{
4458 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4459 // Match Patterns
4460 if(![&](){return Helper.matchConstantFoldUnaryIntOp(*State.MIs[0], GIMatchData_matchinfo);}()) {
4461 return false;
4462 }
4463 // Apply Patterns
4464 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4465 return true;
4466 }
4467 case GICXXCustomAction_GICombiner84:{
4468 // Match Patterns
4469 if(![&](){return Helper.matchUMulHToLShr(*State.MIs[0]);}()) {
4470 return false;
4471 }
4472 // Apply Patterns
4473 Helper.applyUMulHToLShr(*State.MIs[0]);
4474 return true;
4475 }
4476 case GICXXCustomAction_GICombiner85:{
4477 std::function<void(MachineIRBuilder &)> GIMatchData_info;
4478 // Match Patterns
4479 if(![&](){return Helper.matchAndOrDisjointMask(*State.MIs[0], GIMatchData_info);}()) {
4480 return false;
4481 }
4482 // Apply Patterns
4483 Helper.applyBuildFnNoErase(*State.MIs[0], GIMatchData_info);
4484 return true;
4485 }
4486 case GICXXCustomAction_GICombiner86:{
4487 std::function<void(MachineIRBuilder &)> GIMatchData_info;
4488 // Match Patterns
4489 if(![&](){return Helper.matchCombineFAddFMulToFMadOrFMA(*State.MIs[0],
4490 GIMatchData_info);}()) {
4491 return false;
4492 }
4493 // Apply Patterns
4494 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
4495 return true;
4496 }
4497 case GICXXCustomAction_GICombiner87:{
4498 std::function<void(MachineIRBuilder &)> GIMatchData_info;
4499 // Match Patterns
4500 if(![&](){return Helper.matchCombineFAddFpExtFMulToFMadOrFMA(*State.MIs[0],
4501 GIMatchData_info);}()) {
4502 return false;
4503 }
4504 // Apply Patterns
4505 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
4506 return true;
4507 }
4508 case GICXXCustomAction_GICombiner88:{
4509 std::function<void(MachineIRBuilder &)> GIMatchData_info;
4510 // Match Patterns
4511 if(![&](){return Helper.matchCombineFAddFMAFMulToFMadOrFMA(*State.MIs[0],
4512 GIMatchData_info);}()) {
4513 return false;
4514 }
4515 // Apply Patterns
4516 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
4517 return true;
4518 }
4519 case GICXXCustomAction_GICombiner89:{
4520 std::function<void(MachineIRBuilder &)> GIMatchData_info;
4521 // Match Patterns
4522 if(![&](){return Helper.matchCombineFAddFpExtFMulToFMadOrFMAAggressive(
4523 *State.MIs[0], GIMatchData_info);}()) {
4524 return false;
4525 }
4526 // Apply Patterns
4527 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
4528 return true;
4529 }
4530 case GICXXCustomAction_GICombiner90:{
4531 std::function<void(MachineIRBuilder &)> GIMatchData_info;
4532 // Match Patterns
4533 if(![&](){return Helper.matchCombineFSubFMulToFMadOrFMA(*State.MIs[0],
4534 GIMatchData_info);}()) {
4535 return false;
4536 }
4537 // Apply Patterns
4538 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
4539 return true;
4540 }
4541 case GICXXCustomAction_GICombiner91:{
4542 std::function<void(MachineIRBuilder &)> GIMatchData_info;
4543 // Match Patterns
4544 if(![&](){return Helper.matchCombineFSubFNegFMulToFMadOrFMA(*State.MIs[0],
4545 GIMatchData_info);}()) {
4546 return false;
4547 }
4548 // Apply Patterns
4549 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
4550 return true;
4551 }
4552 case GICXXCustomAction_GICombiner92:{
4553 std::function<void(MachineIRBuilder &)> GIMatchData_info;
4554 // Match Patterns
4555 if(![&](){return Helper.matchCombineFSubFpExtFMulToFMadOrFMA(*State.MIs[0],
4556 GIMatchData_info);}()) {
4557 return false;
4558 }
4559 // Apply Patterns
4560 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
4561 return true;
4562 }
4563 case GICXXCustomAction_GICombiner93:{
4564 std::function<void(MachineIRBuilder &)> GIMatchData_info;
4565 // Match Patterns
4566 if(![&](){return Helper.matchCombineFSubFpExtFNegFMulToFMadOrFMA(
4567 *State.MIs[0], GIMatchData_info);}()) {
4568 return false;
4569 }
4570 // Apply Patterns
4571 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
4572 return true;
4573 }
4574 case GICXXCustomAction_GICombiner94:{
4575 unsigned GIMatchData_select_op_no;
4576 // Match Patterns
4577 if(![&](){return Helper.matchFoldBinOpIntoSelect(*State.MIs[0], GIMatchData_select_op_no);}()) {
4578 return false;
4579 }
4580 // Apply Patterns
4581 Helper.applyFoldBinOpIntoSelect(*State.MIs[0], GIMatchData_select_op_no);
4582 return true;
4583 }
4584 case GICXXCustomAction_GICombiner95:{
4585 // Match Patterns
4586 if(![&](){return Helper.matchOperandIsKnownToBeAPowerOfTwo(State.MIs[0]->getOperand(2),
4587 /*OrNegative=*/true);}()) {
4588 return false;
4589 }
4590 // Apply Patterns
4591 Helper.applySimplifySRemByPow2(*State.MIs[0]);
4592 return true;
4593 }
4594 case GICXXCustomAction_GICombiner96:{
4595 // Match Patterns
4596 if(![&](){return Helper.matchUDivOrURemByConst(*State.MIs[0]);}()) {
4597 return false;
4598 }
4599 // Apply Patterns
4600 Helper.applyUDivOrURemByConst(*State.MIs[0]);
4601 return true;
4602 }
4603 case GICXXCustomAction_GICombiner97:{
4604 // Match Patterns
4605 if(![&](){return Helper.matchSDivOrSRemByConst(*State.MIs[0]);}()) {
4606 return false;
4607 }
4608 // Apply Patterns
4609 Helper.applySDivOrSRemByConst(*State.MIs[0]);
4610 return true;
4611 }
4612 case GICXXCustomAction_GICombiner98:{
4613 // Match Patterns
4614 if(![&](){return Helper.matchDivByPow2(*State.MIs[0], /*IsSigned=*/false);}()) {
4615 return false;
4616 }
4617 // Apply Patterns
4618 Helper.applyUDivByPow2(*State.MIs[0]);
4619 return true;
4620 }
4621 case GICXXCustomAction_GICombiner99:{
4622 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4623 // Match Patterns
4624 if(![&](){return Helper.matchUDivByShiftedPow2(*State.MIs[0], GIMatchData_matchinfo);}()) {
4625 return false;
4626 }
4627 // Apply Patterns
4628 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4629 return true;
4630 }
4631 case GICXXCustomAction_GICombiner100:{
4632 // Match Patterns
4633 if(![&](){return Helper.matchDivByPow2(*State.MIs[0], /*IsSigned=*/true);}()) {
4634 return false;
4635 }
4636 // Apply Patterns
4637 Helper.applySDivByPow2(*State.MIs[0]);
4638 return true;
4639 }
4640 case GICXXCustomAction_GICombiner101:{
4641 SmallVector<MachineInstr *> GIMatchData_matchinfo;
4642 // Match Patterns
4643 if(![&](){return Helper.matchRepeatedFPDivisor(*State.MIs[0], GIMatchData_matchinfo);}()) {
4644 return false;
4645 }
4646 // Apply Patterns
4647 Helper.applyRepeatedFPDivisor(GIMatchData_matchinfo);
4648 return true;
4649 }
4650 case GICXXCustomAction_GICombiner102:{
4651 std::function<void(MachineIRBuilder &)> GIMatchData_info;
4652 // Match Patterns
4653 if(![&](){return Helper.matchSimplifySelectToMinMax(*State.MIs[0], GIMatchData_info);}()) {
4654 return false;
4655 }
4656 // Apply Patterns
4657 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
4658 return true;
4659 }
4660 case GICXXCustomAction_GICombiner103:{
4661 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4662 // Match Patterns
4663 if(![&](){return Helper.matchAnd(*State.MIs[0], GIMatchData_matchinfo);}()) {
4664 return false;
4665 }
4666 // Apply Patterns
4667 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4668 return true;
4669 }
4670 case GICXXCustomAction_GICombiner104:{
4671 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4672 // Match Patterns
4673 if(![&](){return Helper.matchOr(*State.MIs[0], GIMatchData_matchinfo);}()) {
4674 return false;
4675 }
4676 // Apply Patterns
4677 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4678 return true;
4679 }
4680 case GICXXCustomAction_GICombiner105:{
4681 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4682 // Match Patterns
4683 if(![&](){return Helper.matchSimplifyNegMinMax(*State.MIs[0], GIMatchData_matchinfo);}()) {
4684 return false;
4685 }
4686 // Apply Patterns
4687 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4688 return true;
4689 }
4690 case GICXXCustomAction_GICombiner106:{
4691 SmallVector<Register> GIMatchData_matchinfo;
4692 // Match Patterns
4693 if(![&](){return Helper.matchCombineConcatVectors(*State.MIs[0], GIMatchData_matchinfo);}()) {
4694 return false;
4695 }
4696 // Apply Patterns
4697 Helper.applyCombineConcatVectors(*State.MIs[0], GIMatchData_matchinfo);
4698 return true;
4699 }
4700 case GICXXCustomAction_GICombiner107:{
4701 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4702 // Match Patterns
4703 if(![&](){return Helper.matchSextOfTrunc(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
4704 return false;
4705 }
4706 // Apply Patterns
4707 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
4708 return true;
4709 }
4710 case GICXXCustomAction_GICombiner108:{
4711 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4712 // Match Patterns
4713 if(![&](){return Helper.matchZextOfTrunc(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
4714 return false;
4715 }
4716 // Apply Patterns
4717 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
4718 return true;
4719 }
4720 case GICXXCustomAction_GICombiner109:{
4721 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4722 // Match Patterns
4723 if(![&](){return Helper.matchNonNegZext(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
4724 return false;
4725 }
4726 // Apply Patterns
4727 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
4728 return true;
4729 }
4730 case GICXXCustomAction_GICombiner110:{
4731 SmallVector<Register> GIMatchData_matchinfo;
4732 // Match Patterns
4733 if(![&](){return Helper.matchCombineShuffleConcat(*State.MIs[0], GIMatchData_matchinfo);}()) {
4734 return false;
4735 }
4736 // Apply Patterns
4737 Helper.applyCombineShuffleConcat(*State.MIs[0], GIMatchData_matchinfo);
4738 return true;
4739 }
4740 case GICXXCustomAction_GICombiner111:{
4741 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4742 // Match Patterns
4743 if(![&](){return Helper.matchShuffleUndefRHS(*State.MIs[0], GIMatchData_matchinfo);}()) {
4744 return false;
4745 }
4746 // Apply Patterns
4747 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4748 return true;
4749 }
4750 case GICXXCustomAction_GICombiner112:{
4751 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4752 // Match Patterns
4753 if(![&](){return Helper.matchShuffleDisjointMask(*State.MIs[0], GIMatchData_matchinfo);}()) {
4754 return false;
4755 }
4756 // Apply Patterns
4757 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4758 return true;
4759 }
4760 case GICXXCustomAction_GICombiner113:{
4761 Register GIMatchData_matchinfo;
4762 // Match Patterns
4763 if(![&](){return Helper.matchUseVectorTruncate(*State.MIs[0], GIMatchData_matchinfo);}()) {
4764 return false;
4765 }
4766 // Apply Patterns
4767 Helper.applyUseVectorTruncate(*State.MIs[0], GIMatchData_matchinfo);
4768 return true;
4769 }
4770 case GICXXCustomAction_GICombiner114:{
4771 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4772 // Match Patterns
4773 if(![&](){return Helper.matchUnmergeValuesAnyExtBuildVector(*State.MIs[0], GIMatchData_matchinfo);}()) {
4774 return false;
4775 }
4776 // Apply Patterns
4777 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4778 return true;
4779 }
4780 case GICXXCustomAction_GICombiner115:{
4781 SmallVector<Register> GIMatchData_info;
4782 // Match Patterns
4783 if(![&](){return Helper.matchCombineUnmergeMergeToPlainValues(*State.MIs[0], GIMatchData_info);}()) {
4784 return false;
4785 }
4786 // Apply Patterns
4787 Helper.applyCombineUnmergeMergeToPlainValues(*State.MIs[0], GIMatchData_info);
4788 return true;
4789 }
4790 case GICXXCustomAction_GICombiner116:{
4791 Register GIMatchData_src;
4792 // Match Patterns
4793 if(![&](){// Check if first source comes from G_UNMERGE_VALUES.
4794 Register FirstMergeSrc = getRemainingOperands(*State.MIs[0], 1)[0].getReg();
4795 MachineInstr *UnmergeMI = MRI.getVRegDef(FirstMergeSrc);
4796 if (!UnmergeMI || UnmergeMI->getOpcode() != TargetOpcode::G_UNMERGE_VALUES)
4797 return false;
4798
4799 // Check counts match.
4800 unsigned NumMergeSrcs = getRemainingOperands(*State.MIs[0], 1).size();
4801 unsigned NumUnmergeDefs = UnmergeMI->getNumDefs();
4802 if (NumMergeSrcs != NumUnmergeDefs)
4803 return false;
4804
4805 // Verify all merge sources match unmerge defs in order.
4806 for (unsigned I = 0; I < NumMergeSrcs; ++I) {
4807 Register MergeSrc = getRemainingOperands(*State.MIs[0], 1)[I].getReg();
4808 Register UnmergeDef = UnmergeMI->getOperand(I).getReg();
4809
4810 if (MergeSrc != UnmergeDef)
4811 return false;
4812
4813 if (!MRI.hasOneNonDBGUse(MergeSrc))
4814 return false;
4815 }
4816
4817 // Check size compatibility.
4818 GIMatchData_src = UnmergeMI->getOperand(NumUnmergeDefs).getReg();
4819 LLT SrcTy = MRI.getType(GIMatchData_src);
4820 LLT DstTy = MRI.getType(State.MIs[0]->getOperand(0).getReg());
4821 if (SrcTy.getSizeInBits() != DstTy.getSizeInBits())
4822 return false;
4823
4824 // Check bitcast legality.
4825 if (SrcTy != DstTy) {
4826 std::array<LLT, 2> Types = {{DstTy, SrcTy}};
4827 LegalityQuery Query(TargetOpcode::G_BITCAST, Types);
4828 if (!Helper.isLegalOrBeforeLegalizer(Query))
4829 return false;
4830 }
4831
4832 return true;}()) {
4833 return false;
4834 }
4835 // Apply Patterns
4836 LLT SrcTy = MRI.getType(GIMatchData_src);
4837 LLT DstTy = MRI.getType(State.MIs[0]->getOperand(0).getReg());
4838
4839 Helper.getBuilder().setInstrAndDebugLoc(*State.MIs[0]);
4840
4841 if (SrcTy == DstTy) {
4842 Helper.replaceRegWith(MRI, State.MIs[0]->getOperand(0).getReg(), GIMatchData_src);
4843 } else {
4844 Helper.getBuilder().buildBitcast(State.MIs[0]->getOperand(0).getReg(), GIMatchData_src);
4845 }
4846
4847 State.MIs[0]->eraseFromParent();
4848 return true;
4849 }
4850 case GICXXCustomAction_GICombiner117:{
4851 SmallVector<APInt, 8> GIMatchData_info;
4852 // Match Patterns
4853 if(![&](){return Helper.matchCombineUnmergeConstant(*State.MIs[0], GIMatchData_info);}()) {
4854 return false;
4855 }
4856 // Apply Patterns
4857 Helper.applyCombineUnmergeConstant(*State.MIs[0], GIMatchData_info);
4858 return true;
4859 }
4860 case GICXXCustomAction_GICombiner118:{
4861 std::function<void(MachineIRBuilder &)> GIMatchData_info;
4862 // Match Patterns
4863 if(![&](){return Helper.matchCombineUnmergeUndef(*State.MIs[0], GIMatchData_info);}()) {
4864 return false;
4865 }
4866 // Apply Patterns
4867 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
4868 return true;
4869 }
4870 case GICXXCustomAction_GICombiner119:{
4871 // Match Patterns
4872 if(![&](){return Helper.matchCombineUnmergeWithDeadLanesToTrunc(*State.MIs[0]);}()) {
4873 return false;
4874 }
4875 // Apply Patterns
4876 Helper.applyCombineUnmergeWithDeadLanesToTrunc(*State.MIs[0]);
4877 return true;
4878 }
4879 case GICXXCustomAction_GICombiner120:{
4880 // Match Patterns
4881 if(![&](){return Helper.matchCombineUnmergeZExtToZExt(*State.MIs[0]);}()) {
4882 return false;
4883 }
4884 // Apply Patterns
4885 Helper.applyCombineUnmergeZExtToZExt(*State.MIs[0]);
4886 return true;
4887 }
4888 case GICXXCustomAction_GICombiner121:{
4889 Register GIMatchData_unmergeSrc;
4890 // Match Patterns
4891 if(![&](){return Helper.matchCombineBuildUnmerge(*State.MIs[0], MRI, GIMatchData_unmergeSrc);}()) {
4892 return false;
4893 }
4894 // Apply Patterns
4895 Helper.applyCombineBuildUnmerge(*State.MIs[0], MRI, B, GIMatchData_unmergeSrc);
4896 return true;
4897 }
4898 case GICXXCustomAction_GICombiner122:{
4899 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4900 // Match Patterns
4901 if(![&](){return Helper.matchAddOverflow(*State.MIs[0], GIMatchData_matchinfo);}()) {
4902 return false;
4903 }
4904 // Apply Patterns
4905 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4906 return true;
4907 }
4908 case GICXXCustomAction_GICombiner123:{
4909 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4910 // Match Patterns
4911 if(![&](){return Helper.matchSuboCarryOut(*State.MIs[0], GIMatchData_matchinfo);}()) {
4912 return false;
4913 }
4914 // Apply Patterns
4915 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4916 return true;
4917 }
4918 case GICXXCustomAction_GICombiner124:{
4919 Register GIMatchData_matchinfo;
4920 // Match Patterns
4921 if(![&](){return Helper.matchTruncSSatS(*State.MIs[0], GIMatchData_matchinfo);}()) {
4922 return false;
4923 }
4924 // Apply Patterns
4925 Helper.applyTruncSSatS(*State.MIs[0], GIMatchData_matchinfo);
4926 return true;
4927 }
4928 case GICXXCustomAction_GICombiner125:{
4929 Register GIMatchData_matchinfo;
4930 // Match Patterns
4931 if(![&](){return Helper.matchTruncSSatU(*State.MIs[0], GIMatchData_matchinfo);}()) {
4932 return false;
4933 }
4934 // Apply Patterns
4935 Helper.applyTruncSSatU(*State.MIs[0], GIMatchData_matchinfo);
4936 return true;
4937 }
4938 case GICXXCustomAction_GICombiner126:{
4939 LshrOfTruncOfLshr GIMatchData_matchinfo;
4940 // Match Patterns
4941 if(![&](){return Helper.matchLshrOfTruncOfLshr(*State.MIs[0], GIMatchData_matchinfo, *State.MIs[2]);}()) {
4942 return false;
4943 }
4944 // Apply Patterns
4945 Helper.applyLshrOfTruncOfLshr(*State.MIs[0], GIMatchData_matchinfo);
4946 return true;
4947 }
4948 case GICXXCustomAction_GICombiner127:{
4949 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4950 // Match Patterns
4951 if(![&](){return Helper.matchCtls(*State.MIs[0], GIMatchData_matchinfo);}()) {
4952 return false;
4953 }
4954 // Apply Patterns
4955 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4956 return true;
4957 }
4958 case GICXXCustomAction_GICombiner128:{
4959 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4960 // Match Patterns
4961 if(![&](){return Helper.matchBinopWithNeg(*State.MIs[0], GIMatchData_matchinfo);}()) {
4962 return false;
4963 }
4964 // Apply Patterns
4965 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4966 return true;
4967 }
4968 case GICXXCustomAction_GICombiner129:{
4969 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4970 // Match Patterns
4971 if(![&](){return Helper.matchCombineFmulWithSelectToFldexp(*State.MIs[0], *State.MIs[1], GIMatchData_matchinfo);}()) {
4972 return false;
4973 }
4974 // Apply Patterns
4975 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4976 return true;
4977 }
4978 case GICXXCustomAction_GICombiner130:{
4979 ClampI64ToI16MatchInfo GIMatchData_matchinfo;
4980 // Match Patterns
4981 if(![&](){return matchClampI64ToI16(*State.MIs[0], MRI, MF, GIMatchData_matchinfo);}()) {
4982 return false;
4983 }
4984 // Apply Patterns
4985 applyClampI64ToI16(*State.MIs[0], GIMatchData_matchinfo);
4986 return true;
4987 }
4988 case GICXXCustomAction_GICombiner131:{
4989 MachineInstr * GIMatchData_matchinfo;
4990 // Match Patterns
4991 if(![&](){return Helper.matchFoldableFneg(*State.MIs[0], GIMatchData_matchinfo);}()) {
4992 return false;
4993 }
4994 // Apply Patterns
4995 Helper.applyFoldableFneg(*State.MIs[0], GIMatchData_matchinfo);
4996 return true;
4997 }
4998 case GICXXCustomAction_GICombiner132:{
4999 // Match Patterns
5000 if(![&](){return Helper.matchFoldFAbsFptrunc(*State.MIs[0], *State.MIs[1]);}()) {
5001 return false;
5002 }
5003 // Apply Patterns
5004 Helper.applyFoldFAbsFptrunc(*State.MIs[0], *State.MIs[1]);
5005 return true;
5006 }
5007 case GICXXCustomAction_GICombiner133:{
5008 SmallVector<Register> GIMatchData_matchinfo;
5009 // Match Patterns
5010 if(![&](){return Helper.matchCombineShuffleVector(*State.MIs[0], GIMatchData_matchinfo);}()) {
5011 return false;
5012 }
5013 // Apply Patterns
5014 Helper.applyCombineShuffleVector(*State.MIs[0], GIMatchData_matchinfo);
5015 return true;
5016 }
5017 case GICXXCustomAction_GICombiner134:{
5018 // Apply Patterns
5019 Helper.applyCombineShuffleToBuildVector(*State.MIs[0]);
5020 return true;
5021 }
5022 case GICXXCustomAction_GICombiner135:{
5023 AMDGPUCombinerHelper::ConditionalCarryOp GIMatchData_matchinfo;
5024 // Match Patterns
5025 if(![&](){return Helper.matchConditionalCarryOp(*State.MIs[0], GIMatchData_matchinfo);}()) {
5026 return false;
5027 }
5028 // Apply Patterns
5029 Helper.applyConditionalCarryOp(*State.MIs[0], GIMatchData_matchinfo);
5030 return true;
5031 }
5032 }
5033 llvm_unreachable("Unknown Apply Action");
5034}
5035#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
5036#define GIMT_Encode2(Val) uint8_t(Val), uint8_t((Val) >> 8)
5037#define GIMT_Encode4(Val) uint8_t(Val), uint8_t((Val) >> 8), uint8_t((Val) >> 16), uint8_t((Val) >> 24)
5038#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)
5039#else
5040#define GIMT_Encode2(Val) uint8_t((Val) >> 8), uint8_t(Val)
5041#define GIMT_Encode4(Val) uint8_t((Val) >> 24), uint8_t((Val) >> 16), uint8_t((Val) >> 8), uint8_t(Val)
5042#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)
5043#endif
5044const uint8_t *AMDGPUPreLegalizerCombinerImpl::getMatchTable() const {
5045 constexpr static uint8_t MatchTable0[] = {
5046 /* 0 */ GIM_SwitchOpcode, /*MI*/0, /*[*/GIMT_Encode2(21), GIMT_Encode2(288), /*)*//*default:*//*Label 114*/ GIMT_Encode4(13379),
5047 /* 10 */ /*TargetOpcode::COPY*//*Label 0*/ GIMT_Encode4(1078), 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),
5048 /* 150 */ /*TargetOpcode::G_ADD*//*Label 1*/ GIMT_Encode4(1090),
5049 /* 154 */ /*TargetOpcode::G_SUB*//*Label 2*/ GIMT_Encode4(2071),
5050 /* 158 */ /*TargetOpcode::G_MUL*//*Label 3*/ GIMT_Encode4(3447),
5051 /* 162 */ /*TargetOpcode::G_SDIV*//*Label 4*/ GIMT_Encode4(3742),
5052 /* 166 */ /*TargetOpcode::G_UDIV*//*Label 5*/ GIMT_Encode4(3852),
5053 /* 170 */ /*TargetOpcode::G_SREM*//*Label 6*/ GIMT_Encode4(3969),
5054 /* 174 */ /*TargetOpcode::G_UREM*//*Label 7*/ GIMT_Encode4(4073), GIMT_Encode4(0), GIMT_Encode4(0),
5055 /* 186 */ /*TargetOpcode::G_AND*//*Label 8*/ GIMT_Encode4(4173),
5056 /* 190 */ /*TargetOpcode::G_OR*//*Label 9*/ GIMT_Encode4(4759),
5057 /* 194 */ /*TargetOpcode::G_XOR*//*Label 10*/ GIMT_Encode4(5907), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
5058 /* 226 */ /*TargetOpcode::G_PHI*//*Label 11*/ GIMT_Encode4(6169), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
5059 /* 250 */ /*TargetOpcode::G_UNMERGE_VALUES*//*Label 12*/ GIMT_Encode4(6184), GIMT_Encode4(0),
5060 /* 258 */ /*TargetOpcode::G_MERGE_VALUES*//*Label 13*/ GIMT_Encode4(6251),
5061 /* 262 */ /*TargetOpcode::G_BUILD_VECTOR*//*Label 14*/ GIMT_Encode4(6346),
5062 /* 266 */ /*TargetOpcode::G_BUILD_VECTOR_TRUNC*//*Label 15*/ GIMT_Encode4(6418),
5063 /* 270 */ /*TargetOpcode::G_CONCAT_VECTORS*//*Label 16*/ GIMT_Encode4(6433),
5064 /* 274 */ /*TargetOpcode::G_PTRTOINT*//*Label 17*/ GIMT_Encode4(6448),
5065 /* 278 */ /*TargetOpcode::G_INTTOPTR*//*Label 18*/ GIMT_Encode4(6569),
5066 /* 282 */ /*TargetOpcode::G_BITCAST*//*Label 19*/ GIMT_Encode4(6627),
5067 /* 286 */ /*TargetOpcode::G_FREEZE*//*Label 20*/ GIMT_Encode4(6717), GIMT_Encode4(0), GIMT_Encode4(0),
5068 /* 298 */ /*TargetOpcode::G_INTRINSIC_TRUNC*//*Label 21*/ GIMT_Encode4(6781),
5069 /* 302 */ /*TargetOpcode::G_INTRINSIC_ROUND*//*Label 22*/ GIMT_Encode4(6793), GIMT_Encode4(0), GIMT_Encode4(0),
5070 /* 314 */ /*TargetOpcode::G_INTRINSIC_ROUNDEVEN*//*Label 23*/ GIMT_Encode4(6805), GIMT_Encode4(0), GIMT_Encode4(0),
5071 /* 326 */ /*TargetOpcode::G_LOAD*//*Label 24*/ GIMT_Encode4(6817),
5072 /* 330 */ /*TargetOpcode::G_SEXTLOAD*//*Label 25*/ GIMT_Encode4(6829),
5073 /* 334 */ /*TargetOpcode::G_ZEXTLOAD*//*Label 26*/ GIMT_Encode4(6841), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
5074 /* 354 */ /*TargetOpcode::G_STORE*//*Label 27*/ GIMT_Encode4(6853), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), 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),
5075 /* 502 */ /*TargetOpcode::G_ANYEXT*//*Label 28*/ GIMT_Encode4(6877),
5076 /* 506 */ /*TargetOpcode::G_TRUNC*//*Label 29*/ GIMT_Encode4(7008), GIMT_Encode4(0), GIMT_Encode4(0),
5077 /* 518 */ /*TargetOpcode::G_TRUNC_USAT_U*//*Label 30*/ GIMT_Encode4(7700), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
5078 /* 538 */ /*TargetOpcode::G_SEXT*//*Label 31*/ GIMT_Encode4(7733),
5079 /* 542 */ /*TargetOpcode::G_SEXT_INREG*//*Label 32*/ GIMT_Encode4(7808),
5080 /* 546 */ /*TargetOpcode::G_ZEXT*//*Label 33*/ GIMT_Encode4(8030),
5081 /* 550 */ /*TargetOpcode::G_SHL*//*Label 34*/ GIMT_Encode4(8160),
5082 /* 554 */ /*TargetOpcode::G_LSHR*//*Label 35*/ GIMT_Encode4(8509),
5083 /* 558 */ /*TargetOpcode::G_ASHR*//*Label 36*/ GIMT_Encode4(8852),
5084 /* 562 */ /*TargetOpcode::G_FSHL*//*Label 37*/ GIMT_Encode4(9177),
5085 /* 566 */ /*TargetOpcode::G_FSHR*//*Label 38*/ GIMT_Encode4(9236),
5086 /* 570 */ /*TargetOpcode::G_ROTR*//*Label 39*/ GIMT_Encode4(9295),
5087 /* 574 */ /*TargetOpcode::G_ROTL*//*Label 40*/ GIMT_Encode4(9319),
5088 /* 578 */ /*TargetOpcode::G_ICMP*//*Label 41*/ GIMT_Encode4(9343),
5089 /* 582 */ /*TargetOpcode::G_FCMP*//*Label 42*/ GIMT_Encode4(9388), GIMT_Encode4(0), GIMT_Encode4(0),
5090 /* 594 */ /*TargetOpcode::G_SELECT*//*Label 43*/ GIMT_Encode4(9400),
5091 /* 598 */ /*TargetOpcode::G_UADDO*//*Label 44*/ GIMT_Encode4(9742),
5092 /* 602 */ /*TargetOpcode::G_UADDE*//*Label 45*/ GIMT_Encode4(9811),
5093 /* 606 */ /*TargetOpcode::G_USUBO*//*Label 46*/ GIMT_Encode4(9839),
5094 /* 610 */ /*TargetOpcode::G_USUBE*//*Label 47*/ GIMT_Encode4(9851),
5095 /* 614 */ /*TargetOpcode::G_SADDO*//*Label 48*/ GIMT_Encode4(9879),
5096 /* 618 */ /*TargetOpcode::G_SADDE*//*Label 49*/ GIMT_Encode4(9948),
5097 /* 622 */ /*TargetOpcode::G_SSUBO*//*Label 50*/ GIMT_Encode4(9976),
5098 /* 626 */ /*TargetOpcode::G_SSUBE*//*Label 51*/ GIMT_Encode4(9988),
5099 /* 630 */ /*TargetOpcode::G_UMULO*//*Label 52*/ GIMT_Encode4(10016),
5100 /* 634 */ /*TargetOpcode::G_SMULO*//*Label 53*/ GIMT_Encode4(10082),
5101 /* 638 */ /*TargetOpcode::G_UMULH*//*Label 54*/ GIMT_Encode4(10148),
5102 /* 642 */ /*TargetOpcode::G_SMULH*//*Label 55*/ GIMT_Encode4(10185),
5103 /* 646 */ /*TargetOpcode::G_UADDSAT*//*Label 56*/ GIMT_Encode4(10211),
5104 /* 650 */ /*TargetOpcode::G_SADDSAT*//*Label 57*/ GIMT_Encode4(10237), GIMT_Encode4(0), GIMT_Encode4(0),
5105 /* 662 */ /*TargetOpcode::G_USHLSAT*//*Label 58*/ GIMT_Encode4(10263),
5106 /* 666 */ /*TargetOpcode::G_SSHLSAT*//*Label 59*/ GIMT_Encode4(10275),
5107 /* 670 */ /*TargetOpcode::G_SMULFIX*//*Label 60*/ GIMT_Encode4(10287),
5108 /* 674 */ /*TargetOpcode::G_UMULFIX*//*Label 61*/ GIMT_Encode4(10315),
5109 /* 678 */ /*TargetOpcode::G_SMULFIXSAT*//*Label 62*/ GIMT_Encode4(10343),
5110 /* 682 */ /*TargetOpcode::G_UMULFIXSAT*//*Label 63*/ GIMT_Encode4(10371), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
5111 /* 702 */ /*TargetOpcode::G_FADD*//*Label 64*/ GIMT_Encode4(10399),
5112 /* 706 */ /*TargetOpcode::G_FSUB*//*Label 65*/ GIMT_Encode4(10617),
5113 /* 710 */ /*TargetOpcode::G_FMUL*//*Label 66*/ GIMT_Encode4(10762),
5114 /* 714 */ /*TargetOpcode::G_FMA*//*Label 67*/ GIMT_Encode4(10917),
5115 /* 718 */ /*TargetOpcode::G_FMAD*//*Label 68*/ GIMT_Encode4(10974),
5116 /* 722 */ /*TargetOpcode::G_FDIV*//*Label 69*/ GIMT_Encode4(11031),
5117 /* 726 */ /*TargetOpcode::G_FREM*//*Label 70*/ GIMT_Encode4(11108), GIMT_Encode4(0), GIMT_Encode4(0),
5118 /* 738 */ /*TargetOpcode::G_FPOWI*//*Label 71*/ GIMT_Encode4(11131), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
5119 /* 758 */ /*TargetOpcode::G_FLOG2*//*Label 72*/ GIMT_Encode4(11153), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
5120 /* 774 */ /*TargetOpcode::G_FNEG*//*Label 73*/ GIMT_Encode4(11165),
5121 /* 778 */ /*TargetOpcode::G_FPEXT*//*Label 74*/ GIMT_Encode4(11217),
5122 /* 782 */ /*TargetOpcode::G_FPTRUNC*//*Label 75*/ GIMT_Encode4(11229),
5123 /* 786 */ /*TargetOpcode::G_FPTOSI*//*Label 76*/ GIMT_Encode4(11274),
5124 /* 790 */ /*TargetOpcode::G_FPTOUI*//*Label 77*/ GIMT_Encode4(11299),
5125 /* 794 */ /*TargetOpcode::G_SITOFP*//*Label 78*/ GIMT_Encode4(11352),
5126 /* 798 */ /*TargetOpcode::G_UITOFP*//*Label 79*/ GIMT_Encode4(11389), GIMT_Encode4(0),
5127 /* 806 */ /*TargetOpcode::G_FPTOUI_SAT*//*Label 80*/ GIMT_Encode4(11426),
5128 /* 810 */ /*TargetOpcode::G_FABS*//*Label 81*/ GIMT_Encode4(11455),
5129 /* 814 */ /*TargetOpcode::G_FCOPYSIGN*//*Label 82*/ GIMT_Encode4(11545), GIMT_Encode4(0),
5130 /* 822 */ /*TargetOpcode::G_FCANONICALIZE*//*Label 83*/ GIMT_Encode4(11557),
5131 /* 826 */ /*TargetOpcode::G_FMINNUM*//*Label 84*/ GIMT_Encode4(11587),
5132 /* 830 */ /*TargetOpcode::G_FMAXNUM*//*Label 85*/ GIMT_Encode4(11681),
5133 /* 834 */ /*TargetOpcode::G_FMINNUM_IEEE*//*Label 86*/ GIMT_Encode4(11775),
5134 /* 838 */ /*TargetOpcode::G_FMAXNUM_IEEE*//*Label 87*/ GIMT_Encode4(11801),
5135 /* 842 */ /*TargetOpcode::G_FMINIMUM*//*Label 88*/ GIMT_Encode4(11827),
5136 /* 846 */ /*TargetOpcode::G_FMAXIMUM*//*Label 89*/ GIMT_Encode4(11921),
5137 /* 850 */ /*TargetOpcode::G_FMINIMUMNUM*//*Label 90*/ GIMT_Encode4(12015),
5138 /* 854 */ /*TargetOpcode::G_FMAXIMUMNUM*//*Label 91*/ GIMT_Encode4(12027), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
5139 /* 890 */ /*TargetOpcode::G_PTR_ADD*//*Label 92*/ GIMT_Encode4(12039), GIMT_Encode4(0),
5140 /* 898 */ /*TargetOpcode::G_SMIN*//*Label 93*/ GIMT_Encode4(12205),
5141 /* 902 */ /*TargetOpcode::G_SMAX*//*Label 94*/ GIMT_Encode4(12253),
5142 /* 906 */ /*TargetOpcode::G_UMIN*//*Label 95*/ GIMT_Encode4(12301),
5143 /* 910 */ /*TargetOpcode::G_UMAX*//*Label 96*/ GIMT_Encode4(12349),
5144 /* 914 */ /*TargetOpcode::G_ABS*//*Label 97*/ GIMT_Encode4(12397), GIMT_Encode4(0), GIMT_Encode4(0),
5145 /* 926 */ /*TargetOpcode::G_BR*//*Label 98*/ GIMT_Encode4(12430), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
5146 /* 946 */ /*TargetOpcode::G_INSERT_VECTOR_ELT*//*Label 99*/ GIMT_Encode4(12442),
5147 /* 950 */ /*TargetOpcode::G_EXTRACT_VECTOR_ELT*//*Label 100*/ GIMT_Encode4(12586),
5148 /* 954 */ /*TargetOpcode::G_SHUFFLE_VECTOR*//*Label 101*/ GIMT_Encode4(12977), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
5149 /* 970 */ /*TargetOpcode::G_CTTZ*//*Label 102*/ GIMT_Encode4(13079),
5150 /* 974 */ /*TargetOpcode::G_CTTZ_ZERO_POISON*//*Label 103*/ GIMT_Encode4(13114),
5151 /* 978 */ /*TargetOpcode::G_CTLZ*//*Label 104*/ GIMT_Encode4(13126),
5152 /* 982 */ /*TargetOpcode::G_CTLZ_ZERO_POISON*//*Label 105*/ GIMT_Encode4(13172), GIMT_Encode4(0),
5153 /* 990 */ /*TargetOpcode::G_CTPOP*//*Label 106*/ GIMT_Encode4(13195),
5154 /* 994 */ /*TargetOpcode::G_BSWAP*//*Label 107*/ GIMT_Encode4(13207),
5155 /* 998 */ /*TargetOpcode::G_BITREVERSE*//*Label 108*/ GIMT_Encode4(13219), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
5156 /* 1014 */ /*TargetOpcode::G_FCEIL*//*Label 109*/ GIMT_Encode4(13319), 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),
5157 /* 1062 */ /*TargetOpcode::G_FSQRT*//*Label 110*/ GIMT_Encode4(13331),
5158 /* 1066 */ /*TargetOpcode::G_FFLOOR*//*Label 111*/ GIMT_Encode4(13343),
5159 /* 1070 */ /*TargetOpcode::G_FRINT*//*Label 112*/ GIMT_Encode4(13355),
5160 /* 1074 */ /*TargetOpcode::G_FNEARBYINT*//*Label 113*/ GIMT_Encode4(13367),
5161 /* 1078 */ // Label 0: @1078
5162 /* 1078 */ GIM_Try, /*On fail goto*//*Label 115*/ GIMT_Encode4(1089), // Rule ID 19 //
5163 /* 1083 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule19Enabled),
5164 /* 1086 */ // MIs[0] d
5165 /* 1086 */ // No operand predicates
5166 /* 1086 */ // MIs[0] s
5167 /* 1086 */ // No operand predicates
5168 /* 1086 */ // Combiner Rule #19: copy_prop
5169 /* 1086 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner5),
5170 /* 1089 */ // Label 115: @1089
5171 /* 1089 */ GIM_Reject,
5172 /* 1090 */ // Label 1: @1090
5173 /* 1090 */ GIM_Try, /*On fail goto*//*Label 116*/ GIMT_Encode4(1178), // Rule ID 457 //
5174 /* 1095 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule326Enabled),
5175 /* 1098 */ // MIs[0] dst
5176 /* 1098 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
5177 /* 1102 */ // MIs[0] __add_shift_match_0.shl_neg
5178 /* 1102 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5179 /* 1106 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SHL),
5180 /* 1110 */ // MIs[1] __add_shift_match_0.neg_y
5181 /* 1110 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
5182 /* 1114 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB),
5183 /* 1118 */ // MIs[2] __add_shift_match_0.zero
5184 /* 1118 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/2, /*OpIdx*/1, // MIs[3]
5185 /* 1122 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5186 /* 1126 */ // MIs[3] Operand 1
5187 /* 1126 */ GIM_CheckLiteralInt, /*MI*/3, /*Op*/1, GIMT_Encode8(0),
5188 /* 1137 */ // MIs[2] y
5189 /* 1137 */ // No operand predicates
5190 /* 1137 */ // MIs[1] n
5191 /* 1137 */ // No operand predicates
5192 /* 1137 */ // MIs[0] x
5193 /* 1137 */ // No operand predicates
5194 /* 1137 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner61),
5195 /* 1141 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
5196 /* 1143 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5197 /* 1146 */ // Combiner Rule #326: add_shift @ [__add_shift_match_0[1]]
5198 /* 1146 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SHL),
5199 /* 1149 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5200 /* 1154 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/2, // y
5201 /* 1158 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // n
5202 /* 1162 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5203 /* 1166 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
5204 /* 1170 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/2, // x
5205 /* 1174 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
5206 /* 1177 */ GIR_EraseRootFromParent_Done,
5207 /* 1178 */ // Label 116: @1178
5208 /* 1178 */ GIM_Try, /*On fail goto*//*Label 117*/ GIMT_Encode4(1266), // Rule ID 456 //
5209 /* 1183 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule326Enabled),
5210 /* 1186 */ // MIs[0] dst
5211 /* 1186 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
5212 /* 1190 */ // MIs[0] x
5213 /* 1190 */ // No operand predicates
5214 /* 1190 */ // MIs[0] __add_shift_match_0.shl_neg
5215 /* 1190 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5216 /* 1194 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SHL),
5217 /* 1198 */ // MIs[1] __add_shift_match_0.neg_y
5218 /* 1198 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
5219 /* 1202 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB),
5220 /* 1206 */ // MIs[2] __add_shift_match_0.zero
5221 /* 1206 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/2, /*OpIdx*/1, // MIs[3]
5222 /* 1210 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5223 /* 1214 */ // MIs[3] Operand 1
5224 /* 1214 */ GIM_CheckLiteralInt, /*MI*/3, /*Op*/1, GIMT_Encode8(0),
5225 /* 1225 */ // MIs[2] y
5226 /* 1225 */ // No operand predicates
5227 /* 1225 */ // MIs[1] n
5228 /* 1225 */ // No operand predicates
5229 /* 1225 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner60),
5230 /* 1229 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
5231 /* 1231 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5232 /* 1234 */ // Combiner Rule #326: add_shift @ [__add_shift_match_0[0]]
5233 /* 1234 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SHL),
5234 /* 1237 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5235 /* 1242 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/2, // y
5236 /* 1246 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // n
5237 /* 1250 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5238 /* 1254 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
5239 /* 1258 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/1, // x
5240 /* 1262 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
5241 /* 1265 */ GIR_EraseRootFromParent_Done,
5242 /* 1266 */ // Label 117: @1266
5243 /* 1266 */ GIM_Try, /*On fail goto*//*Label 118*/ GIMT_Encode4(1321), // Rule ID 22 //
5244 /* 1271 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule22Enabled),
5245 /* 1274 */ // MIs[0] dst
5246 /* 1274 */ // No operand predicates
5247 /* 1274 */ // MIs[0] __add_p2i_to_ptradd_match_0.x
5248 /* 1274 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5249 /* 1278 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_PTRTOINT),
5250 /* 1282 */ // MIs[1] ptr
5251 /* 1282 */ GIM_RecordRegType, /*MI*/1, /*Op*/1, /*TempTypeIdx*/255,
5252 /* 1286 */ // MIs[0] other
5253 /* 1286 */ // No operand predicates
5254 /* 1286 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner2),
5255 /* 1290 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5256 /* 1292 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5257 /* 1295 */ // Combiner Rule #22: add_p2i_to_ptradd @ [__add_p2i_to_ptradd_match_0[0]]
5258 /* 1295 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_PTR_ADD),
5259 /* 1298 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5260 /* 1303 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // ptr
5261 /* 1307 */ GIR_RootToRootCopy, /*OpIdx*/2, // other
5262 /* 1309 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_PTRTOINT),
5263 /* 1313 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
5264 /* 1317 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
5265 /* 1320 */ GIR_EraseRootFromParent_Done,
5266 /* 1321 */ // Label 118: @1321
5267 /* 1321 */ GIM_Try, /*On fail goto*//*Label 119*/ GIMT_Encode4(1376), // Rule ID 23 //
5268 /* 1326 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule22Enabled),
5269 /* 1329 */ // MIs[0] dst
5270 /* 1329 */ // No operand predicates
5271 /* 1329 */ // MIs[0] other
5272 /* 1329 */ // No operand predicates
5273 /* 1329 */ // MIs[0] __add_p2i_to_ptradd_match_0.x
5274 /* 1329 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5275 /* 1333 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_PTRTOINT),
5276 /* 1337 */ // MIs[1] ptr
5277 /* 1337 */ GIM_RecordRegType, /*MI*/1, /*Op*/1, /*TempTypeIdx*/255,
5278 /* 1341 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner2),
5279 /* 1345 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5280 /* 1347 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5281 /* 1350 */ // Combiner Rule #22: add_p2i_to_ptradd @ [__add_p2i_to_ptradd_match_0[1]]
5282 /* 1350 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_PTR_ADD),
5283 /* 1353 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5284 /* 1358 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // ptr
5285 /* 1362 */ GIR_RootToRootCopy, /*OpIdx*/1, // other
5286 /* 1364 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_PTRTOINT),
5287 /* 1368 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
5288 /* 1372 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
5289 /* 1375 */ GIR_EraseRootFromParent_Done,
5290 /* 1376 */ // Label 119: @1376
5291 /* 1376 */ GIM_Try, /*On fail goto*//*Label 120*/ GIMT_Encode4(1401), // Rule ID 383 //
5292 /* 1381 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule253Enabled),
5293 /* 1384 */ // MIs[0] dst
5294 /* 1384 */ // No operand predicates
5295 /* 1384 */ // MIs[0] lhs
5296 /* 1384 */ // No operand predicates
5297 /* 1384 */ // MIs[0] rhs
5298 /* 1384 */ // No operand predicates
5299 /* 1384 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner51),
5300 /* 1388 */ // Combiner Rule #253: G_ADD_commute_constant_to_rhs
5301 /* 1388 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ADD),
5302 /* 1391 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
5303 /* 1393 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
5304 /* 1395 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
5305 /* 1397 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
5306 /* 1400 */ GIR_EraseRootFromParent_Done,
5307 /* 1401 */ // Label 120: @1401
5308 /* 1401 */ GIM_Try, /*On fail goto*//*Label 121*/ GIMT_Encode4(1436), // Rule ID 46 //
5309 /* 1406 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule42Enabled),
5310 /* 1409 */ GIM_MIFlags, /*MI*/0, GIMT_Encode4(MachineInstr::NoSWrap),
5311 /* 1415 */ // MIs[0] root
5312 /* 1415 */ // No operand predicates
5313 /* 1415 */ // MIs[0] left
5314 /* 1415 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5315 /* 1419 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_VSCALE),
5316 /* 1423 */ // MIs[1] imm1
5317 /* 1423 */ // No operand predicates
5318 /* 1423 */ // MIs[0] right
5319 /* 1423 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
5320 /* 1427 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_VSCALE),
5321 /* 1431 */ // MIs[2] imm2
5322 /* 1431 */ // No operand predicates
5323 /* 1431 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5324 /* 1433 */ // Combiner Rule #42: add_of_vscale
5325 /* 1433 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner12),
5326 /* 1436 */ // Label 121: @1436
5327 /* 1436 */ GIM_Try, /*On fail goto*//*Label 122*/ GIMT_Encode4(1470), // Rule ID 2 //
5328 /* 1441 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule2Enabled),
5329 /* 1444 */ // MIs[0] root
5330 /* 1444 */ // No operand predicates
5331 /* 1444 */ // MIs[0] sub
5332 /* 1444 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5333 /* 1448 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5334 /* 1452 */ // MIs[1] Operand 1
5335 /* 1452 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/1, 0,
5336 /* 1456 */ // MIs[1] A
5337 /* 1456 */ // No operand predicates
5338 /* 1456 */ // MIs[0] B
5339 /* 1456 */ // No operand predicates
5340 /* 1456 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5341 /* 1458 */ // Combiner Rule #2: ZeroMinusAPlusB
5342 /* 1458 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5343 /* 1461 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
5344 /* 1463 */ GIR_RootToRootCopy, /*OpIdx*/2, // B
5345 /* 1465 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // A
5346 /* 1469 */ GIR_EraseRootFromParent_Done,
5347 /* 1470 */ // Label 122: @1470
5348 /* 1470 */ GIM_Try, /*On fail goto*//*Label 123*/ GIMT_Encode4(1519), // Rule ID 163 //
5349 /* 1475 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule118Enabled),
5350 /* 1478 */ // MIs[0] dst
5351 /* 1478 */ // No operand predicates
5352 /* 1478 */ // MIs[0] __simplify_add_to_sub_match_0.neg
5353 /* 1478 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5354 /* 1482 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5355 /* 1486 */ // MIs[1] __simplify_add_to_sub_match_0.zero
5356 /* 1486 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
5357 /* 1490 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5358 /* 1494 */ // MIs[2] Operand 1
5359 /* 1494 */ GIM_CheckLiteralInt, /*MI*/2, /*Op*/1, GIMT_Encode8(0),
5360 /* 1505 */ // MIs[1] newrhs
5361 /* 1505 */ // No operand predicates
5362 /* 1505 */ // MIs[0] newlhs
5363 /* 1505 */ // No operand predicates
5364 /* 1505 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5365 /* 1507 */ // Combiner Rule #118: simplify_add_to_sub @ [__simplify_add_to_sub_match_0[0]]
5366 /* 1507 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5367 /* 1510 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
5368 /* 1512 */ GIR_RootToRootCopy, /*OpIdx*/2, // newlhs
5369 /* 1514 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // newrhs
5370 /* 1518 */ GIR_EraseRootFromParent_Done,
5371 /* 1519 */ // Label 123: @1519
5372 /* 1519 */ GIM_Try, /*On fail goto*//*Label 124*/ GIMT_Encode4(1556), // Rule ID 18 //
5373 /* 1524 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule18Enabled),
5374 /* 1527 */ // MIs[0] root
5375 /* 1527 */ // No operand predicates
5376 /* 1527 */ // MIs[0] sub
5377 /* 1527 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5378 /* 1531 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5379 /* 1535 */ // MIs[1] A
5380 /* 1535 */ // No operand predicates
5381 /* 1535 */ // MIs[1] c1
5382 /* 1535 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
5383 /* 1539 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5384 /* 1543 */ // MIs[2] imm1
5385 /* 1543 */ // No operand predicates
5386 /* 1543 */ // MIs[0] c2
5387 /* 1543 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/0, /*OpIdx*/2, // MIs[3]
5388 /* 1547 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5389 /* 1551 */ // MIs[3] imm2
5390 /* 1551 */ // No operand predicates
5391 /* 1551 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
5392 /* 1553 */ // Combiner Rule #18: AMinusC1PlusC2
5393 /* 1553 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner4),
5394 /* 1556 */ // Label 124: @1556
5395 /* 1556 */ GIM_Try, /*On fail goto*//*Label 125*/ GIMT_Encode4(1590), // Rule ID 5 //
5396 /* 1561 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule5Enabled),
5397 /* 1564 */ // MIs[0] root
5398 /* 1564 */ // No operand predicates
5399 /* 1564 */ // MIs[0] sub
5400 /* 1564 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5401 /* 1568 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5402 /* 1572 */ // MIs[1] B
5403 /* 1572 */ // No operand predicates
5404 /* 1572 */ // MIs[1] A
5405 /* 1572 */ // No operand predicates
5406 /* 1572 */ // MIs[0] A
5407 /* 1572 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/2,
5408 /* 1577 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
5409 /* 1582 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5410 /* 1584 */ // Combiner Rule #5: BMinusAPlusA
5411 /* 1584 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
5412 /* 1589 */ GIR_EraseRootFromParent_Done,
5413 /* 1590 */ // Label 125: @1590
5414 /* 1590 */ GIM_Try, /*On fail goto*//*Label 126*/ GIMT_Encode4(1624), // Rule ID 151 //
5415 /* 1595 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule106Enabled),
5416 /* 1598 */ // MIs[0] dst
5417 /* 1598 */ // No operand predicates
5418 /* 1598 */ // MIs[0] __add_sub_reg_match_0.tmp
5419 /* 1598 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5420 /* 1602 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5421 /* 1606 */ // MIs[1] src
5422 /* 1606 */ // No operand predicates
5423 /* 1606 */ // MIs[1] __add_sub_reg_match_0.x
5424 /* 1606 */ // No operand predicates
5425 /* 1606 */ // MIs[0] __add_sub_reg_match_0.x
5426 /* 1606 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/2,
5427 /* 1611 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
5428 /* 1616 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5429 /* 1618 */ // Combiner Rule #106: add_sub_reg @ [__add_sub_reg_match_0[1]]
5430 /* 1618 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
5431 /* 1623 */ GIR_EraseRootFromParent_Done,
5432 /* 1624 */ // Label 126: @1624
5433 /* 1624 */ GIM_Try, /*On fail goto*//*Label 127*/ GIMT_Encode4(1669), // Rule ID 7 //
5434 /* 1629 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule7Enabled),
5435 /* 1632 */ // MIs[0] root
5436 /* 1632 */ // No operand predicates
5437 /* 1632 */ // MIs[0] sub1
5438 /* 1632 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5439 /* 1636 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5440 /* 1640 */ // MIs[1] A
5441 /* 1640 */ // No operand predicates
5442 /* 1640 */ // MIs[1] B
5443 /* 1640 */ // No operand predicates
5444 /* 1640 */ // MIs[0] sub2
5445 /* 1640 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
5446 /* 1644 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB),
5447 /* 1648 */ // MIs[2] B
5448 /* 1648 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/2,
5449 /* 1653 */ // MIs[2] C
5450 /* 1653 */ // No operand predicates
5451 /* 1653 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5452 /* 1655 */ // Combiner Rule #7: AMinusBPlusBMinusC
5453 /* 1655 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5454 /* 1658 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
5455 /* 1660 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // A
5456 /* 1664 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/2, // C
5457 /* 1668 */ GIR_EraseRootFromParent_Done,
5458 /* 1669 */ // Label 127: @1669
5459 /* 1669 */ GIM_Try, /*On fail goto*//*Label 128*/ GIMT_Encode4(1714), // Rule ID 6 //
5460 /* 1674 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule6Enabled),
5461 /* 1677 */ // MIs[0] root
5462 /* 1677 */ // No operand predicates
5463 /* 1677 */ // MIs[0] sub1
5464 /* 1677 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5465 /* 1681 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5466 /* 1685 */ // MIs[1] A
5467 /* 1685 */ // No operand predicates
5468 /* 1685 */ // MIs[1] B
5469 /* 1685 */ // No operand predicates
5470 /* 1685 */ // MIs[0] sub2
5471 /* 1685 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
5472 /* 1689 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB),
5473 /* 1693 */ // MIs[2] C
5474 /* 1693 */ // No operand predicates
5475 /* 1693 */ // MIs[2] A
5476 /* 1693 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/1,
5477 /* 1698 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5478 /* 1700 */ // Combiner Rule #6: AMinusBPlusCMinusA
5479 /* 1700 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5480 /* 1703 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
5481 /* 1705 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // C
5482 /* 1709 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // B
5483 /* 1713 */ GIR_EraseRootFromParent_Done,
5484 /* 1714 */ // Label 128: @1714
5485 /* 1714 */ GIM_Try, /*On fail goto*//*Label 129*/ GIMT_Encode4(1738), // Rule ID 105 //
5486 /* 1719 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule84Enabled),
5487 /* 1722 */ // MIs[0] dst
5488 /* 1722 */ // No operand predicates
5489 /* 1722 */ // MIs[0] __propagate_undef_any_op_match_0.x
5490 /* 1722 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5491 /* 1726 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
5492 /* 1730 */ // MIs[0] __propagate_undef_any_op_match_0.y
5493 /* 1730 */ // No operand predicates
5494 /* 1730 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5495 /* 1732 */ // Combiner Rule #84: propagate_undef_any_op @ [__propagate_undef_any_op_match_0[0]]
5496 /* 1732 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
5497 /* 1735 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
5498 /* 1737 */ GIR_EraseRootFromParent_Done,
5499 /* 1738 */ // Label 129: @1738
5500 /* 1738 */ GIM_Try, /*On fail goto*//*Label 130*/ GIMT_Encode4(1772), // Rule ID 3 //
5501 /* 1743 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule3Enabled),
5502 /* 1746 */ // MIs[0] root
5503 /* 1746 */ // No operand predicates
5504 /* 1746 */ // MIs[0] A
5505 /* 1746 */ // No operand predicates
5506 /* 1746 */ // MIs[0] sub
5507 /* 1746 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5508 /* 1750 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5509 /* 1754 */ // MIs[1] Operand 1
5510 /* 1754 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/1, 0,
5511 /* 1758 */ // MIs[1] B
5512 /* 1758 */ // No operand predicates
5513 /* 1758 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5514 /* 1760 */ // Combiner Rule #3: APlusZeroMinusB
5515 /* 1760 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5516 /* 1763 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
5517 /* 1765 */ GIR_RootToRootCopy, /*OpIdx*/1, // A
5518 /* 1767 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // B
5519 /* 1771 */ GIR_EraseRootFromParent_Done,
5520 /* 1772 */ // Label 130: @1772
5521 /* 1772 */ GIM_Try, /*On fail goto*//*Label 131*/ GIMT_Encode4(1821), // Rule ID 164 //
5522 /* 1777 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule118Enabled),
5523 /* 1780 */ // MIs[0] dst
5524 /* 1780 */ // No operand predicates
5525 /* 1780 */ // MIs[0] newlhs
5526 /* 1780 */ // No operand predicates
5527 /* 1780 */ // MIs[0] __simplify_add_to_sub_match_0.neg
5528 /* 1780 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5529 /* 1784 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5530 /* 1788 */ // MIs[1] __simplify_add_to_sub_match_0.zero
5531 /* 1788 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
5532 /* 1792 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5533 /* 1796 */ // MIs[2] Operand 1
5534 /* 1796 */ GIM_CheckLiteralInt, /*MI*/2, /*Op*/1, GIMT_Encode8(0),
5535 /* 1807 */ // MIs[1] newrhs
5536 /* 1807 */ // No operand predicates
5537 /* 1807 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5538 /* 1809 */ // Combiner Rule #118: simplify_add_to_sub @ [__simplify_add_to_sub_match_0[1]]
5539 /* 1809 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5540 /* 1812 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
5541 /* 1814 */ GIR_RootToRootCopy, /*OpIdx*/1, // newlhs
5542 /* 1816 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // newrhs
5543 /* 1820 */ GIR_EraseRootFromParent_Done,
5544 /* 1821 */ // Label 131: @1821
5545 /* 1821 */ GIM_Try, /*On fail goto*//*Label 132*/ GIMT_Encode4(1855), // Rule ID 4 //
5546 /* 1826 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule4Enabled),
5547 /* 1829 */ // MIs[0] root
5548 /* 1829 */ // No operand predicates
5549 /* 1829 */ // MIs[0] A
5550 /* 1829 */ // No operand predicates
5551 /* 1829 */ // MIs[0] sub
5552 /* 1829 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5553 /* 1833 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5554 /* 1837 */ // MIs[1] B
5555 /* 1837 */ // No operand predicates
5556 /* 1837 */ // MIs[1] A
5557 /* 1837 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/1, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
5558 /* 1842 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
5559 /* 1847 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5560 /* 1849 */ // Combiner Rule #4: APlusBMinusB
5561 /* 1849 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
5562 /* 1854 */ GIR_EraseRootFromParent_Done,
5563 /* 1855 */ // Label 132: @1855
5564 /* 1855 */ GIM_Try, /*On fail goto*//*Label 133*/ GIMT_Encode4(1889), // Rule ID 150 //
5565 /* 1860 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule106Enabled),
5566 /* 1863 */ // MIs[0] dst
5567 /* 1863 */ // No operand predicates
5568 /* 1863 */ // MIs[0] __add_sub_reg_match_0.x
5569 /* 1863 */ // No operand predicates
5570 /* 1863 */ // MIs[0] __add_sub_reg_match_0.tmp
5571 /* 1863 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5572 /* 1867 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5573 /* 1871 */ // MIs[1] src
5574 /* 1871 */ // No operand predicates
5575 /* 1871 */ // MIs[1] __add_sub_reg_match_0.x
5576 /* 1871 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/1, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
5577 /* 1876 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
5578 /* 1881 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5579 /* 1883 */ // Combiner Rule #106: add_sub_reg @ [__add_sub_reg_match_0[0]]
5580 /* 1883 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
5581 /* 1888 */ GIR_EraseRootFromParent_Done,
5582 /* 1889 */ // Label 133: @1889
5583 /* 1889 */ GIM_Try, /*On fail goto*//*Label 134*/ GIMT_Encode4(1934), // Rule ID 8 //
5584 /* 1894 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule8Enabled),
5585 /* 1897 */ // MIs[0] root
5586 /* 1897 */ // No operand predicates
5587 /* 1897 */ // MIs[0] A
5588 /* 1897 */ // No operand predicates
5589 /* 1897 */ // MIs[0] sub1
5590 /* 1897 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5591 /* 1901 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5592 /* 1905 */ // MIs[1] B
5593 /* 1905 */ // No operand predicates
5594 /* 1905 */ // MIs[1] add1
5595 /* 1905 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
5596 /* 1909 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ADD),
5597 /* 1913 */ // MIs[2] A
5598 /* 1913 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/0, /*OtherOpIdx*/1,
5599 /* 1918 */ // MIs[2] C
5600 /* 1918 */ // No operand predicates
5601 /* 1918 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5602 /* 1920 */ // Combiner Rule #8: APlusBMinusAplusC
5603 /* 1920 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5604 /* 1923 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
5605 /* 1925 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // B
5606 /* 1929 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/2, // C
5607 /* 1933 */ GIR_EraseRootFromParent_Done,
5608 /* 1934 */ // Label 134: @1934
5609 /* 1934 */ GIM_Try, /*On fail goto*//*Label 135*/ GIMT_Encode4(1979), // Rule ID 10 //
5610 /* 1939 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule10Enabled),
5611 /* 1942 */ // MIs[0] root
5612 /* 1942 */ // No operand predicates
5613 /* 1942 */ // MIs[0] A
5614 /* 1942 */ // No operand predicates
5615 /* 1942 */ // MIs[0] sub1
5616 /* 1942 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5617 /* 1946 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5618 /* 1950 */ // MIs[1] B
5619 /* 1950 */ // No operand predicates
5620 /* 1950 */ // MIs[1] add1
5621 /* 1950 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
5622 /* 1954 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ADD),
5623 /* 1958 */ // MIs[2] C
5624 /* 1958 */ // No operand predicates
5625 /* 1958 */ // MIs[2] A
5626 /* 1958 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
5627 /* 1963 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5628 /* 1965 */ // Combiner Rule #10: APlusBMinusCPlusA
5629 /* 1965 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5630 /* 1968 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
5631 /* 1970 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // B
5632 /* 1974 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // C
5633 /* 1978 */ GIR_EraseRootFromParent_Done,
5634 /* 1979 */ // Label 135: @1979
5635 /* 1979 */ GIM_Try, /*On fail goto*//*Label 136*/ GIMT_Encode4(2003), // Rule ID 108 //
5636 /* 1984 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule84Enabled),
5637 /* 1987 */ // MIs[0] dst
5638 /* 1987 */ // No operand predicates
5639 /* 1987 */ // MIs[0] __propagate_undef_any_op_match_0.x
5640 /* 1987 */ // No operand predicates
5641 /* 1987 */ // MIs[0] __propagate_undef_any_op_match_0.y
5642 /* 1987 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5643 /* 1991 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
5644 /* 1995 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5645 /* 1997 */ // Combiner Rule #84: propagate_undef_any_op @ [__propagate_undef_any_op_match_0[3]]
5646 /* 1997 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
5647 /* 2000 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
5648 /* 2002 */ GIR_EraseRootFromParent_Done,
5649 /* 2003 */ // Label 136: @2003
5650 /* 2003 */ GIM_Try, /*On fail goto*//*Label 137*/ GIMT_Encode4(2026), // Rule ID 120 //
5651 /* 2008 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
5652 /* 2011 */ // MIs[0] dst
5653 /* 2011 */ // No operand predicates
5654 /* 2011 */ // MIs[0] lhs
5655 /* 2011 */ // No operand predicates
5656 /* 2011 */ // MIs[0] Operand 2
5657 /* 2011 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
5658 /* 2015 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5659 /* 2020 */ // Combiner Rule #93: right_identity_zero @ [__right_identity_zero_match_0[1]]
5660 /* 2020 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5661 /* 2025 */ GIR_EraseRootFromParent_Done,
5662 /* 2026 */ // Label 137: @2026
5663 /* 2026 */ GIM_Try, /*On fail goto*//*Label 138*/ GIMT_Encode4(2037), // Rule ID 172 //
5664 /* 2031 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule122Enabled),
5665 /* 2034 */ // MIs[0] root
5666 /* 2034 */ // No operand predicates
5667 /* 2034 */ // MIs[0] src1
5668 /* 2034 */ // No operand predicates
5669 /* 2034 */ // MIs[0] src2
5670 /* 2034 */ // No operand predicates
5671 /* 2034 */ // Combiner Rule #122: reassoc_comm_binops
5672 /* 2034 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner41),
5673 /* 2037 */ // Label 138: @2037
5674 /* 2037 */ GIM_Try, /*On fail goto*//*Label 139*/ GIMT_Encode4(2048), // Rule ID 281 //
5675 /* 2042 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule213Enabled),
5676 /* 2045 */ // MIs[0] d
5677 /* 2045 */ // No operand predicates
5678 /* 2045 */ // MIs[0] mi.src0
5679 /* 2045 */ // No operand predicates
5680 /* 2045 */ // MIs[0] mi.src1
5681 /* 2045 */ // No operand predicates
5682 /* 2045 */ // Combiner Rule #213: constant_fold_binop @ [mi[0]]
5683 /* 2045 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner79),
5684 /* 2048 */ // Label 139: @2048
5685 /* 2048 */ GIM_Try, /*On fail goto*//*Label 140*/ GIMT_Encode4(2059), // Rule ID 342 //
5686 /* 2053 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule236Enabled),
5687 /* 2056 */ // MIs[0] root
5688 /* 2056 */ // No operand predicates
5689 /* 2056 */ // MIs[0] mi.x
5690 /* 2056 */ // No operand predicates
5691 /* 2056 */ // MIs[0] mi.y
5692 /* 2056 */ // No operand predicates
5693 /* 2056 */ // Combiner Rule #236: fold_binop_into_select_a @ [mi[0]]
5694 /* 2056 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
5695 /* 2059 */ // Label 140: @2059
5696 /* 2059 */ GIM_Try, /*On fail goto*//*Label 141*/ GIMT_Encode4(2070), // Rule ID 489 //
5697 /* 2064 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule352Enabled),
5698 /* 2067 */ // MIs[0] dst
5699 /* 2067 */ // No operand predicates
5700 /* 2067 */ // MIs[0] a
5701 /* 2067 */ // No operand predicates
5702 /* 2067 */ // MIs[0] b
5703 /* 2067 */ // No operand predicates
5704 /* 2067 */ // Combiner Rule #352: anonymous_57055
5705 /* 2067 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner135),
5706 /* 2070 */ // Label 141: @2070
5707 /* 2070 */ GIM_Reject,
5708 /* 2071 */ // Label 2: @2071
5709 /* 2071 */ GIM_Try, /*On fail goto*//*Label 142*/ GIMT_Encode4(2148), // Rule ID 458 //
5710 /* 2076 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule327Enabled),
5711 /* 2079 */ // MIs[0] dst
5712 /* 2079 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
5713 /* 2083 */ // MIs[0] sub1
5714 /* 2083 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5715 /* 2087 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5716 /* 2091 */ // MIs[1] a
5717 /* 2091 */ // No operand predicates
5718 /* 2091 */ // MIs[1] b
5719 /* 2091 */ // No operand predicates
5720 /* 2091 */ // MIs[0] Operand 2
5721 /* 2091 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 1,
5722 /* 2095 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner1),
5723 /* 2099 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5724 /* 2101 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
5725 /* 2104 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(18446744073709551615u),
5726 /* 2114 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5727 /* 2117 */ // Combiner Rule #327: sub_one_from_sub
5728 /* 2117 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_XOR),
5729 /* 2120 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5730 /* 2125 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // b
5731 /* 2129 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/1,
5732 /* 2132 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ADD),
5733 /* 2136 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
5734 /* 2140 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
5735 /* 2143 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // a
5736 /* 2147 */ GIR_EraseRootFromParent_Done,
5737 /* 2148 */ // Label 142: @2148
5738 /* 2148 */ GIM_Try, /*On fail goto*//*Label 143*/ GIMT_Encode4(2242), // Rule ID 464 //
5739 /* 2153 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule331Enabled),
5740 /* 2156 */ // MIs[0] root
5741 /* 2156 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
5742 /* 2160 */ // MIs[0] Operand 1
5743 /* 2160 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/1, 0,
5744 /* 2164 */ // MIs[0] max
5745 /* 2164 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5746 /* 2168 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SMAX),
5747 /* 2172 */ // MIs[1] A
5748 /* 2172 */ // No operand predicates
5749 /* 2172 */ // MIs[1] sub
5750 /* 2172 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
5751 /* 2176 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB),
5752 /* 2180 */ // MIs[2] Operand 1
5753 /* 2180 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/1, 0,
5754 /* 2184 */ // MIs[2] A
5755 /* 2184 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/1,
5756 /* 2189 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner62),
5757 /* 2193 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5758 /* 2195 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
5759 /* 2198 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(0),
5760 /* 2208 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5761 /* 2211 */ // Combiner Rule #331: SubSmaxSub
5762 /* 2211 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5763 /* 2214 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5764 /* 2219 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/1,
5765 /* 2222 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // A
5766 /* 2226 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SMIN),
5767 /* 2230 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // root
5768 /* 2234 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // A
5769 /* 2238 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
5770 /* 2241 */ GIR_EraseRootFromParent_Done,
5771 /* 2242 */ // Label 143: @2242
5772 /* 2242 */ GIM_Try, /*On fail goto*//*Label 144*/ GIMT_Encode4(2336), // Rule ID 466 //
5773 /* 2247 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule333Enabled),
5774 /* 2250 */ // MIs[0] root
5775 /* 2250 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
5776 /* 2254 */ // MIs[0] Operand 1
5777 /* 2254 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/1, 0,
5778 /* 2258 */ // MIs[0] max
5779 /* 2258 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5780 /* 2262 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SMIN),
5781 /* 2266 */ // MIs[1] A
5782 /* 2266 */ // No operand predicates
5783 /* 2266 */ // MIs[1] sub
5784 /* 2266 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
5785 /* 2270 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB),
5786 /* 2274 */ // MIs[2] Operand 1
5787 /* 2274 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/1, 0,
5788 /* 2278 */ // MIs[2] A
5789 /* 2278 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/1,
5790 /* 2283 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner62),
5791 /* 2287 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5792 /* 2289 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
5793 /* 2292 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(0),
5794 /* 2302 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5795 /* 2305 */ // Combiner Rule #333: NegSminNeg
5796 /* 2305 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5797 /* 2308 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5798 /* 2313 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/1,
5799 /* 2316 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // A
5800 /* 2320 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SMAX),
5801 /* 2324 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // root
5802 /* 2328 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // A
5803 /* 2332 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
5804 /* 2335 */ GIR_EraseRootFromParent_Done,
5805 /* 2336 */ // Label 144: @2336
5806 /* 2336 */ GIM_Try, /*On fail goto*//*Label 145*/ GIMT_Encode4(2430), // Rule ID 465 //
5807 /* 2341 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule332Enabled),
5808 /* 2344 */ // MIs[0] root
5809 /* 2344 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
5810 /* 2348 */ // MIs[0] Operand 1
5811 /* 2348 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/1, 0,
5812 /* 2352 */ // MIs[0] max
5813 /* 2352 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5814 /* 2356 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_UMAX),
5815 /* 2360 */ // MIs[1] A
5816 /* 2360 */ // No operand predicates
5817 /* 2360 */ // MIs[1] sub
5818 /* 2360 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
5819 /* 2364 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB),
5820 /* 2368 */ // MIs[2] Operand 1
5821 /* 2368 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/1, 0,
5822 /* 2372 */ // MIs[2] A
5823 /* 2372 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/1,
5824 /* 2377 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner62),
5825 /* 2381 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5826 /* 2383 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
5827 /* 2386 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(0),
5828 /* 2396 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5829 /* 2399 */ // Combiner Rule #332: SubUmaxSub
5830 /* 2399 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5831 /* 2402 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5832 /* 2407 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/1,
5833 /* 2410 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // A
5834 /* 2414 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UMIN),
5835 /* 2418 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // root
5836 /* 2422 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // A
5837 /* 2426 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
5838 /* 2429 */ GIR_EraseRootFromParent_Done,
5839 /* 2430 */ // Label 145: @2430
5840 /* 2430 */ GIM_Try, /*On fail goto*//*Label 146*/ GIMT_Encode4(2524), // Rule ID 467 //
5841 /* 2435 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule334Enabled),
5842 /* 2438 */ // MIs[0] root
5843 /* 2438 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
5844 /* 2442 */ // MIs[0] Operand 1
5845 /* 2442 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/1, 0,
5846 /* 2446 */ // MIs[0] max
5847 /* 2446 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5848 /* 2450 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_UMIN),
5849 /* 2454 */ // MIs[1] A
5850 /* 2454 */ // No operand predicates
5851 /* 2454 */ // MIs[1] sub
5852 /* 2454 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
5853 /* 2458 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB),
5854 /* 2462 */ // MIs[2] Operand 1
5855 /* 2462 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/1, 0,
5856 /* 2466 */ // MIs[2] A
5857 /* 2466 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/1,
5858 /* 2471 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner62),
5859 /* 2475 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5860 /* 2477 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
5861 /* 2480 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(0),
5862 /* 2490 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5863 /* 2493 */ // Combiner Rule #334: NegUminNeg
5864 /* 2493 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5865 /* 2496 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5866 /* 2501 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/1,
5867 /* 2504 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // A
5868 /* 2508 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UMAX),
5869 /* 2512 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // root
5870 /* 2516 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // A
5871 /* 2520 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
5872 /* 2523 */ GIR_EraseRootFromParent_Done,
5873 /* 2524 */ // Label 146: @2524
5874 /* 2524 */ GIM_Try, /*On fail goto*//*Label 147*/ GIMT_Encode4(2576), // Rule ID 379 //
5875 /* 2529 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule249Enabled),
5876 /* 2532 */ // MIs[0] dst
5877 /* 2532 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
5878 /* 2536 */ // MIs[0] x
5879 /* 2536 */ // No operand predicates
5880 /* 2536 */ // MIs[0] sum
5881 /* 2536 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5882 /* 2540 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
5883 /* 2544 */ // MIs[1] y
5884 /* 2544 */ // No operand predicates
5885 /* 2544 */ // MIs[1] z
5886 /* 2544 */ // No operand predicates
5887 /* 2544 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner48),
5888 /* 2548 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5889 /* 2550 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5890 /* 2553 */ GIR_BuildConstant, /*TempRegID*/0, /*Val*/GIMT_Encode8(0),
5891 /* 2563 */ // Combiner Rule #249: sub_add_neg_rhs
5892 /* 2563 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5893 /* 2566 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
5894 /* 2568 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/0,
5895 /* 2571 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // y
5896 /* 2575 */ GIR_EraseRootFromParent_Done,
5897 /* 2576 */ // Label 147: @2576
5898 /* 2576 */ GIM_Try, /*On fail goto*//*Label 148*/ GIMT_Encode4(2628), // Rule ID 380 //
5899 /* 2581 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule250Enabled),
5900 /* 2584 */ // MIs[0] dst
5901 /* 2584 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
5902 /* 2588 */ // MIs[0] x
5903 /* 2588 */ // No operand predicates
5904 /* 2588 */ // MIs[0] sum
5905 /* 2588 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5906 /* 2592 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
5907 /* 2596 */ // MIs[1] y
5908 /* 2596 */ // No operand predicates
5909 /* 2596 */ // MIs[1] z
5910 /* 2596 */ // No operand predicates
5911 /* 2596 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner49),
5912 /* 2600 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5913 /* 2602 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5914 /* 2605 */ GIR_BuildConstant, /*TempRegID*/0, /*Val*/GIMT_Encode8(0),
5915 /* 2615 */ // Combiner Rule #250: sub_add_neg_lhs
5916 /* 2615 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5917 /* 2618 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
5918 /* 2620 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/0,
5919 /* 2623 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // z
5920 /* 2627 */ GIR_EraseRootFromParent_Done,
5921 /* 2628 */ // Label 148: @2628
5922 /* 2628 */ GIM_Try, /*On fail goto*//*Label 149*/ GIMT_Encode4(2689), // Rule ID 9 //
5923 /* 2633 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule9Enabled),
5924 /* 2636 */ // MIs[0] root
5925 /* 2636 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
5926 /* 2640 */ // MIs[0] A
5927 /* 2640 */ // No operand predicates
5928 /* 2640 */ // MIs[0] sub1
5929 /* 2640 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5930 /* 2644 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5931 /* 2648 */ // MIs[1] B
5932 /* 2648 */ // No operand predicates
5933 /* 2648 */ // MIs[1] C
5934 /* 2648 */ // No operand predicates
5935 /* 2648 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner0),
5936 /* 2652 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5937 /* 2654 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5938 /* 2657 */ // Combiner Rule #9: AMinusBMinusC
5939 /* 2657 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5940 /* 2660 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5941 /* 2665 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // C
5942 /* 2669 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // B
5943 /* 2673 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ADD),
5944 /* 2677 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // root
5945 /* 2681 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/1, // A
5946 /* 2685 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
5947 /* 2688 */ GIR_EraseRootFromParent_Done,
5948 /* 2689 */ // Label 149: @2689
5949 /* 2689 */ GIM_Try, /*On fail goto*//*Label 150*/ GIMT_Encode4(2722), // Rule ID 377 //
5950 /* 2694 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule247Enabled),
5951 /* 2697 */ // MIs[0] dst
5952 /* 2697 */ // No operand predicates
5953 /* 2697 */ // MIs[0] sum
5954 /* 2697 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5955 /* 2701 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
5956 /* 2705 */ // MIs[1] x
5957 /* 2705 */ // No operand predicates
5958 /* 2705 */ // MIs[1] y
5959 /* 2705 */ // No operand predicates
5960 /* 2705 */ // MIs[0] z
5961 /* 2705 */ // No operand predicates
5962 /* 2705 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner46),
5963 /* 2709 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
5964 /* 2714 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5965 /* 2716 */ // Combiner Rule #247: sub_add_reg_rhs
5966 /* 2716 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
5967 /* 2721 */ GIR_EraseRootFromParent_Done,
5968 /* 2722 */ // Label 150: @2722
5969 /* 2722 */ GIM_Try, /*On fail goto*//*Label 151*/ GIMT_Encode4(2755), // Rule ID 378 //
5970 /* 2727 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule248Enabled),
5971 /* 2730 */ // MIs[0] dst
5972 /* 2730 */ // No operand predicates
5973 /* 2730 */ // MIs[0] sum
5974 /* 2730 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5975 /* 2734 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
5976 /* 2738 */ // MIs[1] x
5977 /* 2738 */ // No operand predicates
5978 /* 2738 */ // MIs[1] y
5979 /* 2738 */ // No operand predicates
5980 /* 2738 */ // MIs[0] z
5981 /* 2738 */ // No operand predicates
5982 /* 2738 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner47),
5983 /* 2742 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/2,
5984 /* 2747 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5985 /* 2749 */ // Combiner Rule #248: sub_add_reg_lhs
5986 /* 2749 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/2,
5987 /* 2754 */ GIR_EraseRootFromParent_Done,
5988 /* 2755 */ // Label 151: @2755
5989 /* 2755 */ GIM_Try, /*On fail goto*//*Label 152*/ GIMT_Encode4(2798), // Rule ID 182 //
5990 /* 2760 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule132Enabled),
5991 /* 2763 */ // MIs[0] dst
5992 /* 2763 */ // No operand predicates
5993 /* 2763 */ // MIs[0] Operand 1
5994 /* 2763 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/1, 0,
5995 /* 2767 */ // MIs[0] and
5996 /* 2767 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5997 /* 2771 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_AND),
5998 /* 2775 */ // MIs[1] x
5999 /* 2775 */ // No operand predicates
6000 /* 2775 */ // MIs[1] Operand 2
6001 /* 2775 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/2, 1,
6002 /* 2779 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner25),
6003 /* 2783 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6004 /* 2785 */ // Combiner Rule #132: neg_and_one_to_sext_inreg
6005 /* 2785 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SEXT_INREG),
6006 /* 2788 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
6007 /* 2790 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
6008 /* 2794 */ GIR_AddImm8, /*InsnID*/0, /*Imm*/1,
6009 /* 2797 */ GIR_EraseRootFromParent_Done,
6010 /* 2798 */ // Label 152: @2798
6011 /* 2798 */ GIM_Try, /*On fail goto*//*Label 153*/ GIMT_Encode4(2825), // Rule ID 49 //
6012 /* 2803 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule45Enabled),
6013 /* 2806 */ GIM_MIFlags, /*MI*/0, GIMT_Encode4(MachineInstr::NoSWrap),
6014 /* 2812 */ // MIs[0] root
6015 /* 2812 */ // No operand predicates
6016 /* 2812 */ // MIs[0] x
6017 /* 2812 */ // No operand predicates
6018 /* 2812 */ // MIs[0] right
6019 /* 2812 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
6020 /* 2816 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_VSCALE),
6021 /* 2820 */ // MIs[1] imm
6022 /* 2820 */ // No operand predicates
6023 /* 2820 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6024 /* 2822 */ // Combiner Rule #45: sub_of_vscale
6025 /* 2822 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner15),
6026 /* 2825 */ // Label 153: @2825
6027 /* 2825 */ GIM_Try, /*On fail goto*//*Label 154*/ GIMT_Encode4(2965),
6028 /* 2830 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
6029 /* 2834 */ GIM_Try, /*On fail goto*//*Label 155*/ GIMT_Encode4(2870), // Rule ID 462 //
6030 /* 2839 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule329Enabled),
6031 /* 2842 */ // MIs[0] Operand 1
6032 /* 2842 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/1, 255,
6033 /* 2846 */ // MIs[0] op1
6034 /* 2846 */ // No operand predicates
6035 /* 2846 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
6036 /* 2849 */ GIR_BuildConstant, /*TempRegID*/0, /*Val*/GIMT_Encode8(18446744073709551615u),
6037 /* 2859 */ // Combiner Rule #329: sub_minus_one
6038 /* 2859 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_XOR),
6039 /* 2862 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
6040 /* 2864 */ GIR_RootToRootCopy, /*OpIdx*/2, // op1
6041 /* 2866 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/0,
6042 /* 2869 */ GIR_EraseRootFromParent_Done,
6043 /* 2870 */ // Label 155: @2870
6044 /* 2870 */ GIM_Try, /*On fail goto*//*Label 156*/ GIMT_Encode4(2964), // Rule ID 463 //
6045 /* 2875 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule330Enabled),
6046 /* 2878 */ // MIs[0] a
6047 /* 2878 */ // No operand predicates
6048 /* 2878 */ // MIs[0] mul
6049 /* 2878 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
6050 /* 2882 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_MUL),
6051 /* 2886 */ GIM_CheckHasOneUse, /*MI*/1,
6052 /* 2888 */ // MIs[1] x
6053 /* 2888 */ // No operand predicates
6054 /* 2888 */ // MIs[1] c
6055 /* 2888 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
6056 /* 2892 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
6057 /* 2896 */ // MIs[2] imm
6058 /* 2896 */ // No operand predicates
6059 /* 2896 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
6060 /* 2898 */ GIR_MakeTempReg, /*TempRegID*/2, /*TypeID*/255,
6061 /* 2901 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
6062 /* 2904 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(0),
6063 /* 2914 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
6064 /* 2917 */ // Combiner Rule #330: sub_of_mul_const
6065 /* 2917 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
6066 /* 2920 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
6067 /* 2925 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/1,
6068 /* 2928 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // c
6069 /* 2932 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_MUL),
6070 /* 2936 */ GIR_AddTempRegister, /*InsnID*/1, /*TempRegID*/2, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
6071 /* 2941 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // x
6072 /* 2945 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
6073 /* 2948 */ GIR_BuildMI, /*InsnID*/2, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ADD),
6074 /* 2952 */ GIR_Copy, /*NewInsnID*/2, /*OldInsnID*/0, /*OpIdx*/0, // d
6075 /* 2956 */ GIR_Copy, /*NewInsnID*/2, /*OldInsnID*/0, /*OpIdx*/1, // a
6076 /* 2960 */ GIR_AddSimpleTempRegister, /*InsnID*/2, /*TempRegID*/2,
6077 /* 2963 */ GIR_EraseRootFromParent_Done,
6078 /* 2964 */ // Label 156: @2964
6079 /* 2964 */ GIM_Reject,
6080 /* 2965 */ // Label 154: @2965
6081 /* 2965 */ GIM_Try, /*On fail goto*//*Label 157*/ GIMT_Encode4(3010), // Rule ID 0 //
6082 /* 2970 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule0Enabled),
6083 /* 2973 */ // MIs[0] root
6084 /* 2973 */ // No operand predicates
6085 /* 2973 */ // MIs[0] add1
6086 /* 2973 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6087 /* 2977 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
6088 /* 2981 */ // MIs[1] A
6089 /* 2981 */ // No operand predicates
6090 /* 2981 */ // MIs[1] sub1
6091 /* 2981 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
6092 /* 2985 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB),
6093 /* 2989 */ // MIs[2] B
6094 /* 2989 */ // No operand predicates
6095 /* 2989 */ // MIs[2] C
6096 /* 2989 */ // No operand predicates
6097 /* 2989 */ // MIs[0] B
6098 /* 2989 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/2, /*OtherOpIdx*/1,
6099 /* 2994 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
6100 /* 2996 */ // Combiner Rule #0: APlusBMinusCMinusB
6101 /* 2996 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
6102 /* 2999 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
6103 /* 3001 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // A
6104 /* 3005 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/2, // C
6105 /* 3009 */ GIR_EraseRootFromParent_Done,
6106 /* 3010 */ // Label 157: @3010
6107 /* 3010 */ GIM_Try, /*On fail goto*//*Label 158*/ GIMT_Encode4(3047), // Rule ID 14 //
6108 /* 3015 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule14Enabled),
6109 /* 3018 */ // MIs[0] root
6110 /* 3018 */ // No operand predicates
6111 /* 3018 */ // MIs[0] add
6112 /* 3018 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6113 /* 3022 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
6114 /* 3026 */ // MIs[1] A
6115 /* 3026 */ // No operand predicates
6116 /* 3026 */ // MIs[1] c1
6117 /* 3026 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
6118 /* 3030 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
6119 /* 3034 */ // MIs[2] imm1
6120 /* 3034 */ // No operand predicates
6121 /* 3034 */ // MIs[0] c2
6122 /* 3034 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/0, /*OpIdx*/2, // MIs[3]
6123 /* 3038 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
6124 /* 3042 */ // MIs[3] imm2
6125 /* 3042 */ // No operand predicates
6126 /* 3042 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
6127 /* 3044 */ // Combiner Rule #14: APlusC1MinusC2
6128 /* 3044 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner0),
6129 /* 3047 */ // Label 158: @3047
6130 /* 3047 */ GIM_Try, /*On fail goto*//*Label 159*/ GIMT_Encode4(3084), // Rule ID 17 //
6131 /* 3052 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule17Enabled),
6132 /* 3055 */ // MIs[0] root
6133 /* 3055 */ // No operand predicates
6134 /* 3055 */ // MIs[0] sub1
6135 /* 3055 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6136 /* 3059 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
6137 /* 3063 */ // MIs[1] c1
6138 /* 3063 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
6139 /* 3067 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
6140 /* 3071 */ // MIs[2] imm1
6141 /* 3071 */ // No operand predicates
6142 /* 3071 */ // MIs[1] A
6143 /* 3071 */ // No operand predicates
6144 /* 3071 */ // MIs[0] c2
6145 /* 3071 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/0, /*OpIdx*/2, // MIs[3]
6146 /* 3075 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
6147 /* 3079 */ // MIs[3] imm2
6148 /* 3079 */ // No operand predicates
6149 /* 3079 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
6150 /* 3081 */ // Combiner Rule #17: C1Minus2MinusC2
6151 /* 3081 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner3),
6152 /* 3084 */ // Label 159: @3084
6153 /* 3084 */ GIM_Try, /*On fail goto*//*Label 160*/ GIMT_Encode4(3129), // Rule ID 1 //
6154 /* 3089 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule1Enabled),
6155 /* 3092 */ // MIs[0] root
6156 /* 3092 */ // No operand predicates
6157 /* 3092 */ // MIs[0] sub2
6158 /* 3092 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6159 /* 3096 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
6160 /* 3100 */ // MIs[1] A
6161 /* 3100 */ // No operand predicates
6162 /* 3100 */ // MIs[1] sub1
6163 /* 3100 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
6164 /* 3104 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB),
6165 /* 3108 */ // MIs[2] B
6166 /* 3108 */ // No operand predicates
6167 /* 3108 */ // MIs[2] C
6168 /* 3108 */ // No operand predicates
6169 /* 3108 */ // MIs[0] C
6170 /* 3108 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/2, /*OtherOpIdx*/2,
6171 /* 3113 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
6172 /* 3115 */ // Combiner Rule #1: AMinusBMinusCMinusC
6173 /* 3115 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
6174 /* 3118 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
6175 /* 3120 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // A
6176 /* 3124 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // B
6177 /* 3128 */ GIR_EraseRootFromParent_Done,
6178 /* 3129 */ // Label 160: @3129
6179 /* 3129 */ GIM_Try, /*On fail goto*//*Label 161*/ GIMT_Encode4(3166), // Rule ID 16 //
6180 /* 3134 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule16Enabled),
6181 /* 3137 */ // MIs[0] root
6182 /* 3137 */ // No operand predicates
6183 /* 3137 */ // MIs[0] sub1
6184 /* 3137 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6185 /* 3141 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
6186 /* 3145 */ // MIs[1] A
6187 /* 3145 */ // No operand predicates
6188 /* 3145 */ // MIs[1] c1
6189 /* 3145 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
6190 /* 3149 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
6191 /* 3153 */ // MIs[2] imm1
6192 /* 3153 */ // No operand predicates
6193 /* 3153 */ // MIs[0] c2
6194 /* 3153 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/0, /*OpIdx*/2, // MIs[3]
6195 /* 3157 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
6196 /* 3161 */ // MIs[3] imm2
6197 /* 3161 */ // No operand predicates
6198 /* 3161 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
6199 /* 3163 */ // Combiner Rule #16: AMinusC1MinusC2
6200 /* 3163 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner2),
6201 /* 3166 */ // Label 161: @3166
6202 /* 3166 */ GIM_Try, /*On fail goto*//*Label 162*/ GIMT_Encode4(3190), // Rule ID 106 //
6203 /* 3171 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule84Enabled),
6204 /* 3174 */ // MIs[0] dst
6205 /* 3174 */ // No operand predicates
6206 /* 3174 */ // MIs[0] __propagate_undef_any_op_match_0.x
6207 /* 3174 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6208 /* 3178 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
6209 /* 3182 */ // MIs[0] __propagate_undef_any_op_match_0.y
6210 /* 3182 */ // No operand predicates
6211 /* 3182 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6212 /* 3184 */ // Combiner Rule #84: propagate_undef_any_op @ [__propagate_undef_any_op_match_0[1]]
6213 /* 3184 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
6214 /* 3187 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
6215 /* 3189 */ GIR_EraseRootFromParent_Done,
6216 /* 3190 */ // Label 162: @3190
6217 /* 3190 */ GIM_Try, /*On fail goto*//*Label 163*/ GIMT_Encode4(3227), // Rule ID 15 //
6218 /* 3195 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule15Enabled),
6219 /* 3198 */ // MIs[0] root
6220 /* 3198 */ // No operand predicates
6221 /* 3198 */ // MIs[0] c2
6222 /* 3198 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6223 /* 3202 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
6224 /* 3206 */ // MIs[1] imm2
6225 /* 3206 */ // No operand predicates
6226 /* 3206 */ // MIs[0] add
6227 /* 3206 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
6228 /* 3210 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ADD),
6229 /* 3214 */ // MIs[2] A
6230 /* 3214 */ // No operand predicates
6231 /* 3214 */ // MIs[2] c1
6232 /* 3214 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/2, /*OpIdx*/2, // MIs[3]
6233 /* 3218 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
6234 /* 3222 */ // MIs[3] imm1
6235 /* 3222 */ // No operand predicates
6236 /* 3222 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
6237 /* 3224 */ // Combiner Rule #15: C2MinusAPlusC1
6238 /* 3224 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner1),
6239 /* 3227 */ // Label 163: @3227
6240 /* 3227 */ GIM_Try, /*On fail goto*//*Label 164*/ GIMT_Encode4(3266), // Rule ID 131 //
6241 /* 3232 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule95Enabled),
6242 /* 3235 */ // MIs[0] dst
6243 /* 3235 */ // No operand predicates
6244 /* 3235 */ // MIs[0] x
6245 /* 3235 */ GIM_RecordRegType, /*MI*/0, /*Op*/1, /*TempTypeIdx*/255,
6246 /* 3239 */ // MIs[0] x
6247 /* 3239 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
6248 /* 3244 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
6249 /* 3247 */ GIR_BuildConstant, /*TempRegID*/0, /*Val*/GIMT_Encode8(0),
6250 /* 3257 */ // Combiner Rule #95: same_val_zero @ [__same_val_zero_match_0[0]]
6251 /* 3257 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::COPY),
6252 /* 3260 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
6253 /* 3262 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/0,
6254 /* 3265 */ GIR_EraseRootFromParent_Done,
6255 /* 3266 */ // Label 164: @3266
6256 /* 3266 */ GIM_Try, /*On fail goto*//*Label 165*/ GIMT_Encode4(3300), // Rule ID 12 //
6257 /* 3271 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule12Enabled),
6258 /* 3274 */ // MIs[0] root
6259 /* 3274 */ // No operand predicates
6260 /* 3274 */ // MIs[0] A
6261 /* 3274 */ // No operand predicates
6262 /* 3274 */ // MIs[0] add
6263 /* 3274 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
6264 /* 3278 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
6265 /* 3282 */ // MIs[1] A
6266 /* 3282 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/1, /*OpIdx*/1, /*OtherMI*/0, /*OtherOpIdx*/1,
6267 /* 3287 */ // MIs[1] B
6268 /* 3287 */ // No operand predicates
6269 /* 3287 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/2,
6270 /* 3292 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6271 /* 3294 */ // Combiner Rule #12: AMinusBMinusA
6272 /* 3294 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/2,
6273 /* 3299 */ GIR_EraseRootFromParent_Done,
6274 /* 3300 */ // Label 165: @3300
6275 /* 3300 */ GIM_Try, /*On fail goto*//*Label 166*/ GIMT_Encode4(3334), // Rule ID 11 //
6276 /* 3305 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule11Enabled),
6277 /* 3308 */ // MIs[0] root
6278 /* 3308 */ // No operand predicates
6279 /* 3308 */ // MIs[0] A
6280 /* 3308 */ // No operand predicates
6281 /* 3308 */ // MIs[0] sub1
6282 /* 3308 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
6283 /* 3312 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
6284 /* 3316 */ // MIs[1] Operand 1
6285 /* 3316 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/1, 0,
6286 /* 3320 */ // MIs[1] B
6287 /* 3320 */ // No operand predicates
6288 /* 3320 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6289 /* 3322 */ // Combiner Rule #11: AMinusZeroMinusB
6290 /* 3322 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ADD),
6291 /* 3325 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
6292 /* 3327 */ GIR_RootToRootCopy, /*OpIdx*/1, // A
6293 /* 3329 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // B
6294 /* 3333 */ GIR_EraseRootFromParent_Done,
6295 /* 3334 */ // Label 166: @3334
6296 /* 3334 */ GIM_Try, /*On fail goto*//*Label 167*/ GIMT_Encode4(3358), // Rule ID 109 //
6297 /* 3339 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule84Enabled),
6298 /* 3342 */ // MIs[0] dst
6299 /* 3342 */ // No operand predicates
6300 /* 3342 */ // MIs[0] __propagate_undef_any_op_match_0.x
6301 /* 3342 */ // No operand predicates
6302 /* 3342 */ // MIs[0] __propagate_undef_any_op_match_0.y
6303 /* 3342 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
6304 /* 3346 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
6305 /* 3350 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6306 /* 3352 */ // Combiner Rule #84: propagate_undef_any_op @ [__propagate_undef_any_op_match_0[4]]
6307 /* 3352 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
6308 /* 3355 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
6309 /* 3357 */ GIR_EraseRootFromParent_Done,
6310 /* 3358 */ // Label 167: @3358
6311 /* 3358 */ GIM_Try, /*On fail goto*//*Label 168*/ GIMT_Encode4(3381), // Rule ID 119 //
6312 /* 3363 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
6313 /* 3366 */ // MIs[0] dst
6314 /* 3366 */ // No operand predicates
6315 /* 3366 */ // MIs[0] lhs
6316 /* 3366 */ // No operand predicates
6317 /* 3366 */ // MIs[0] Operand 2
6318 /* 3366 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
6319 /* 3370 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6320 /* 3375 */ // Combiner Rule #93: right_identity_zero @ [__right_identity_zero_match_0[0]]
6321 /* 3375 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6322 /* 3380 */ GIR_EraseRootFromParent_Done,
6323 /* 3381 */ // Label 168: @3381
6324 /* 3381 */ GIM_Try, /*On fail goto*//*Label 169*/ GIMT_Encode4(3402), // Rule ID 21 //
6325 /* 3386 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule21Enabled),
6326 /* 3389 */ // MIs[0] d
6327 /* 3389 */ // No operand predicates
6328 /* 3389 */ // MIs[0] op1
6329 /* 3389 */ // No operand predicates
6330 /* 3389 */ // MIs[0] c
6331 /* 3389 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
6332 /* 3393 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
6333 /* 3397 */ // MIs[1] imm
6334 /* 3397 */ // No operand predicates
6335 /* 3397 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6336 /* 3399 */ // Combiner Rule #21: sub_to_add
6337 /* 3399 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner7),
6338 /* 3402 */ // Label 169: @3402
6339 /* 3402 */ GIM_Try, /*On fail goto*//*Label 170*/ GIMT_Encode4(3413), // Rule ID 289 //
6340 /* 3407 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule213Enabled),
6341 /* 3410 */ // MIs[0] d
6342 /* 3410 */ // No operand predicates
6343 /* 3410 */ // MIs[0] mi.src0
6344 /* 3410 */ // No operand predicates
6345 /* 3410 */ // MIs[0] mi.src1
6346 /* 3410 */ // No operand predicates
6347 /* 3410 */ // Combiner Rule #213: constant_fold_binop @ [mi[8]]
6348 /* 3410 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner79),
6349 /* 3413 */ // Label 170: @3413
6350 /* 3413 */ GIM_Try, /*On fail goto*//*Label 171*/ GIMT_Encode4(3424), // Rule ID 343 //
6351 /* 3418 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule236Enabled),
6352 /* 3421 */ // MIs[0] root
6353 /* 3421 */ // No operand predicates
6354 /* 3421 */ // MIs[0] mi.x
6355 /* 3421 */ // No operand predicates
6356 /* 3421 */ // MIs[0] mi.y
6357 /* 3421 */ // No operand predicates
6358 /* 3421 */ // Combiner Rule #236: fold_binop_into_select_a @ [mi[1]]
6359 /* 3421 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
6360 /* 3424 */ // Label 171: @3424
6361 /* 3424 */ GIM_Try, /*On fail goto*//*Label 172*/ GIMT_Encode4(3435), // Rule ID 420 //
6362 /* 3429 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule290Enabled),
6363 /* 3432 */ // MIs[0] dst
6364 /* 3432 */ // No operand predicates
6365 /* 3432 */ // MIs[0] src1
6366 /* 3432 */ // No operand predicates
6367 /* 3432 */ // MIs[0] src2
6368 /* 3432 */ // No operand predicates
6369 /* 3432 */ // Combiner Rule #290: simplify_neg_minmax
6370 /* 3432 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner105),
6371 /* 3435 */ // Label 172: @3435
6372 /* 3435 */ GIM_Try, /*On fail goto*//*Label 173*/ GIMT_Encode4(3446), // Rule ID 490 //
6373 /* 3440 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule353Enabled),
6374 /* 3443 */ // MIs[0] dst
6375 /* 3443 */ // No operand predicates
6376 /* 3443 */ // MIs[0] a
6377 /* 3443 */ // No operand predicates
6378 /* 3443 */ // MIs[0] b
6379 /* 3443 */ // No operand predicates
6380 /* 3443 */ // Combiner Rule #353: anonymous_57056
6381 /* 3443 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner135),
6382 /* 3446 */ // Label 173: @3446
6383 /* 3446 */ GIM_Reject,
6384 /* 3447 */ // Label 3: @3447
6385 /* 3447 */ GIM_Try, /*On fail goto*//*Label 174*/ GIMT_Encode4(3508), // Rule ID 50 //
6386 /* 3452 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule46Enabled),
6387 /* 3455 */ // MIs[0] dst
6388 /* 3455 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
6389 /* 3459 */ // MIs[0] x
6390 /* 3459 */ // No operand predicates
6391 /* 3459 */ // MIs[0] mask
6392 /* 3459 */ // No operand predicates
6393 /* 3459 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner6),
6394 /* 3463 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
6395 /* 3466 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(0),
6396 /* 3476 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
6397 /* 3479 */ // Combiner Rule #46: mul_by_zero_one_vector
6398 /* 3479 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
6399 /* 3482 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
6400 /* 3487 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/1,
6401 /* 3490 */ GIR_RootToRootCopy, /*OpIdx*/2, // mask
6402 /* 3492 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_AND),
6403 /* 3496 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
6404 /* 3500 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/1, // x
6405 /* 3504 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
6406 /* 3507 */ GIR_EraseRootFromParent_Done,
6407 /* 3508 */ // Label 174: @3508
6408 /* 3508 */ GIM_Try, /*On fail goto*//*Label 175*/ GIMT_Encode4(3531), // Rule ID 140 //
6409 /* 3513 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule96Enabled),
6410 /* 3516 */ // MIs[0] dst
6411 /* 3516 */ // No operand predicates
6412 /* 3516 */ // MIs[0] zero
6413 /* 3516 */ // No operand predicates
6414 /* 3516 */ // MIs[0] rhs
6415 /* 3516 */ // No operand predicates
6416 /* 3516 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner13),
6417 /* 3520 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6418 /* 3525 */ // Combiner Rule #96: binop_left_to_zero @ [__binop_left_to_zero_match_0[7]]
6419 /* 3525 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6420 /* 3530 */ GIR_EraseRootFromParent_Done,
6421 /* 3531 */ // Label 175: @3531
6422 /* 3531 */ GIM_Try, /*On fail goto*//*Label 176*/ GIMT_Encode4(3556), // Rule ID 384 //
6423 /* 3536 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule254Enabled),
6424 /* 3539 */ // MIs[0] dst
6425 /* 3539 */ // No operand predicates
6426 /* 3539 */ // MIs[0] lhs
6427 /* 3539 */ // No operand predicates
6428 /* 3539 */ // MIs[0] rhs
6429 /* 3539 */ // No operand predicates
6430 /* 3539 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner51),
6431 /* 3543 */ // Combiner Rule #254: G_MUL_commute_constant_to_rhs
6432 /* 3543 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_MUL),
6433 /* 3546 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
6434 /* 3548 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
6435 /* 3550 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
6436 /* 3552 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
6437 /* 3555 */ GIR_EraseRootFromParent_Done,
6438 /* 3556 */ // Label 176: @3556
6439 /* 3556 */ GIM_Try, /*On fail goto*//*Label 177*/ GIMT_Encode4(3591), // Rule ID 47 //
6440 /* 3561 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule43Enabled),
6441 /* 3564 */ GIM_MIFlags, /*MI*/0, GIMT_Encode4(MachineInstr::NoSWrap),
6442 /* 3570 */ // MIs[0] root
6443 /* 3570 */ // No operand predicates
6444 /* 3570 */ // MIs[0] left
6445 /* 3570 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6446 /* 3574 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_VSCALE),
6447 /* 3578 */ // MIs[1] scale
6448 /* 3578 */ // No operand predicates
6449 /* 3578 */ // MIs[0] x
6450 /* 3578 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
6451 /* 3582 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
6452 /* 3586 */ // MIs[2] imm1
6453 /* 3586 */ // No operand predicates
6454 /* 3586 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
6455 /* 3588 */ // Combiner Rule #43: mul_of_vscale
6456 /* 3588 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner13),
6457 /* 3591 */ // Label 177: @3591
6458 /* 3591 */ GIM_Try, /*On fail goto*//*Label 178*/ GIMT_Encode4(3631), // Rule ID 24 //
6459 /* 3596 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule23Enabled),
6460 /* 3599 */ // MIs[0] dst
6461 /* 3599 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
6462 /* 3603 */ // MIs[0] x
6463 /* 3603 */ // No operand predicates
6464 /* 3603 */ // MIs[0] Operand 2
6465 /* 3603 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 255,
6466 /* 3607 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
6467 /* 3610 */ GIR_BuildConstant, /*TempRegID*/0, /*Val*/GIMT_Encode8(0),
6468 /* 3620 */ // Combiner Rule #23: mul_by_neg_one
6469 /* 3620 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
6470 /* 3623 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
6471 /* 3625 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/0,
6472 /* 3628 */ GIR_RootToRootCopy, /*OpIdx*/1, // x
6473 /* 3630 */ GIR_EraseRootFromParent_Done,
6474 /* 3631 */ // Label 178: @3631
6475 /* 3631 */ GIM_Try, /*On fail goto*//*Label 179*/ GIMT_Encode4(3652), // Rule ID 86 //
6476 /* 3636 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule78Enabled),
6477 /* 3639 */ // MIs[0] dst
6478 /* 3639 */ // No operand predicates
6479 /* 3639 */ // MIs[0] __undef_to_int_zero_match_0.x
6480 /* 3639 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6481 /* 3643 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
6482 /* 3647 */ // MIs[0] __undef_to_int_zero_match_0.y
6483 /* 3647 */ // No operand predicates
6484 /* 3647 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6485 /* 3649 */ // Combiner Rule #78: undef_to_int_zero @ [__undef_to_int_zero_match_0[1]]
6486 /* 3649 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner31),
6487 /* 3652 */ // Label 179: @3652
6488 /* 3652 */ GIM_Try, /*On fail goto*//*Label 180*/ GIMT_Encode4(3673), // Rule ID 88 //
6489 /* 3657 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule78Enabled),
6490 /* 3660 */ // MIs[0] dst
6491 /* 3660 */ // No operand predicates
6492 /* 3660 */ // MIs[0] __undef_to_int_zero_match_0.x
6493 /* 3660 */ // No operand predicates
6494 /* 3660 */ // MIs[0] __undef_to_int_zero_match_0.y
6495 /* 3660 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
6496 /* 3664 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
6497 /* 3668 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6498 /* 3670 */ // Combiner Rule #78: undef_to_int_zero @ [__undef_to_int_zero_match_0[3]]
6499 /* 3670 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner31),
6500 /* 3673 */ // Label 180: @3673
6501 /* 3673 */ GIM_Try, /*On fail goto*//*Label 181*/ GIMT_Encode4(3696), // Rule ID 141 //
6502 /* 3678 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule97Enabled),
6503 /* 3681 */ // MIs[0] dst
6504 /* 3681 */ // No operand predicates
6505 /* 3681 */ // MIs[0] lhs
6506 /* 3681 */ // No operand predicates
6507 /* 3681 */ // MIs[0] zero
6508 /* 3681 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
6509 /* 3685 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
6510 /* 3690 */ // Combiner Rule #97: binop_right_to_zero
6511 /* 3690 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
6512 /* 3695 */ GIR_EraseRootFromParent_Done,
6513 /* 3696 */ // Label 181: @3696
6514 /* 3696 */ GIM_Try, /*On fail goto*//*Label 182*/ GIMT_Encode4(3719), // Rule ID 148 //
6515 /* 3701 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule104Enabled),
6516 /* 3704 */ // MIs[0] dst
6517 /* 3704 */ // No operand predicates
6518 /* 3704 */ // MIs[0] x
6519 /* 3704 */ // No operand predicates
6520 /* 3704 */ // MIs[0] Operand 2
6521 /* 3704 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 1,
6522 /* 3708 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6523 /* 3713 */ // Combiner Rule #104: right_identity_one_int
6524 /* 3713 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6525 /* 3718 */ GIR_EraseRootFromParent_Done,
6526 /* 3719 */ // Label 182: @3719
6527 /* 3719 */ GIM_Try, /*On fail goto*//*Label 183*/ GIMT_Encode4(3730), // Rule ID 20 //
6528 /* 3724 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule20Enabled),
6529 /* 3727 */ // MIs[0] d
6530 /* 3727 */ // No operand predicates
6531 /* 3727 */ // MIs[0] op1
6532 /* 3727 */ // No operand predicates
6533 /* 3727 */ // MIs[0] op2
6534 /* 3727 */ // No operand predicates
6535 /* 3727 */ // Combiner Rule #20: mul_to_shl
6536 /* 3727 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner6),
6537 /* 3730 */ // Label 183: @3730
6538 /* 3730 */ GIM_Try, /*On fail goto*//*Label 184*/ GIMT_Encode4(3741), // Rule ID 286 //
6539 /* 3735 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule213Enabled),
6540 /* 3738 */ // MIs[0] d
6541 /* 3738 */ // No operand predicates
6542 /* 3738 */ // MIs[0] mi.src0
6543 /* 3738 */ // No operand predicates
6544 /* 3738 */ // MIs[0] mi.src1
6545 /* 3738 */ // No operand predicates
6546 /* 3738 */ // Combiner Rule #213: constant_fold_binop @ [mi[5]]
6547 /* 3738 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner79),
6548 /* 3741 */ // Label 184: @3741
6549 /* 3741 */ GIM_Reject,
6550 /* 3742 */ // Label 4: @3742
6551 /* 3742 */ GIM_Try, /*On fail goto*//*Label 185*/ GIMT_Encode4(3765), // Rule ID 136 //
6552 /* 3747 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule96Enabled),
6553 /* 3750 */ // MIs[0] dst
6554 /* 3750 */ // No operand predicates
6555 /* 3750 */ // MIs[0] zero
6556 /* 3750 */ // No operand predicates
6557 /* 3750 */ // MIs[0] rhs
6558 /* 3750 */ // No operand predicates
6559 /* 3750 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner13),
6560 /* 3754 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6561 /* 3759 */ // Combiner Rule #96: binop_left_to_zero @ [__binop_left_to_zero_match_0[3]]
6562 /* 3759 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6563 /* 3764 */ GIR_EraseRootFromParent_Done,
6564 /* 3765 */ // Label 185: @3765
6565 /* 3765 */ GIM_Try, /*On fail goto*//*Label 186*/ GIMT_Encode4(3790), // Rule ID 205 //
6566 /* 3770 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule155Enabled),
6567 /* 3773 */ // MIs[0] dst
6568 /* 3773 */ // No operand predicates
6569 /* 3773 */ // MIs[0] x
6570 /* 3773 */ // No operand predicates
6571 /* 3773 */ // MIs[0] y
6572 /* 3773 */ // No operand predicates
6573 /* 3773 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner31),
6574 /* 3777 */ // Combiner Rule #155: sdiv_to_unsigned
6575 /* 3777 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UDIV),
6576 /* 3780 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
6577 /* 3782 */ GIR_RootToRootCopy, /*OpIdx*/1, // x
6578 /* 3784 */ GIR_RootToRootCopy, /*OpIdx*/2, // y
6579 /* 3786 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
6580 /* 3789 */ GIR_EraseRootFromParent_Done,
6581 /* 3790 */ // Label 186: @3790
6582 /* 3790 */ GIM_Try, /*On fail goto*//*Label 187*/ GIMT_Encode4(3807), // Rule ID 373 //
6583 /* 3795 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule243Enabled),
6584 /* 3798 */ GIM_MIFlagsNot, /*MI*/0, GIMT_Encode4(MachineInstr::IsExact),
6585 /* 3804 */ // MIs[0] dst
6586 /* 3804 */ // No operand predicates
6587 /* 3804 */ // MIs[0] x
6588 /* 3804 */ // No operand predicates
6589 /* 3804 */ // MIs[0] y
6590 /* 3804 */ // No operand predicates
6591 /* 3804 */ // Combiner Rule #243: sdiv_by_pow2
6592 /* 3804 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner100),
6593 /* 3807 */ // Label 187: @3807
6594 /* 3807 */ GIM_Try, /*On fail goto*//*Label 188*/ GIMT_Encode4(3818), // Rule ID 256 //
6595 /* 3812 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule196Enabled),
6596 /* 3815 */ // MIs[0] root
6597 /* 3815 */ // No operand predicates
6598 /* 3815 */ // MIs[0] mi.x
6599 /* 3815 */ // No operand predicates
6600 /* 3815 */ // MIs[0] mi.y
6601 /* 3815 */ // No operand predicates
6602 /* 3815 */ // Combiner Rule #196: div_rem_to_divrem @ [mi[0]]
6603 /* 3815 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner72),
6604 /* 3818 */ // Label 188: @3818
6605 /* 3818 */ GIM_Try, /*On fail goto*//*Label 189*/ GIMT_Encode4(3829), // Rule ID 292 //
6606 /* 3823 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule213Enabled),
6607 /* 3826 */ // MIs[0] d
6608 /* 3826 */ // No operand predicates
6609 /* 3826 */ // MIs[0] mi.src0
6610 /* 3826 */ // No operand predicates
6611 /* 3826 */ // MIs[0] mi.src1
6612 /* 3826 */ // No operand predicates
6613 /* 3826 */ // Combiner Rule #213: constant_fold_binop @ [mi[11]]
6614 /* 3826 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner79),
6615 /* 3829 */ // Label 189: @3829
6616 /* 3829 */ GIM_Try, /*On fail goto*//*Label 190*/ GIMT_Encode4(3840), // Rule ID 348 //
6617 /* 3834 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule236Enabled),
6618 /* 3837 */ // MIs[0] root
6619 /* 3837 */ // No operand predicates
6620 /* 3837 */ // MIs[0] mi.x
6621 /* 3837 */ // No operand predicates
6622 /* 3837 */ // MIs[0] mi.y
6623 /* 3837 */ // No operand predicates
6624 /* 3837 */ // Combiner Rule #236: fold_binop_into_select_a @ [mi[6]]
6625 /* 3837 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
6626 /* 3840 */ // Label 190: @3840
6627 /* 3840 */ GIM_Try, /*On fail goto*//*Label 191*/ GIMT_Encode4(3851), // Rule ID 375 //
6628 /* 3845 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule245Enabled),
6629 /* 3848 */ // MIs[0] dst
6630 /* 3848 */ // No operand predicates
6631 /* 3848 */ // MIs[0] x
6632 /* 3848 */ // No operand predicates
6633 /* 3848 */ // MIs[0] y
6634 /* 3848 */ // No operand predicates
6635 /* 3848 */ // Combiner Rule #245: sdiv_by_const
6636 /* 3848 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner97),
6637 /* 3851 */ // Label 191: @3851
6638 /* 3851 */ GIM_Reject,
6639 /* 3852 */ // Label 5: @3852
6640 /* 3852 */ GIM_Try, /*On fail goto*//*Label 192*/ GIMT_Encode4(3875), // Rule ID 137 //
6641 /* 3857 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule96Enabled),
6642 /* 3860 */ // MIs[0] dst
6643 /* 3860 */ // No operand predicates
6644 /* 3860 */ // MIs[0] zero
6645 /* 3860 */ // No operand predicates
6646 /* 3860 */ // MIs[0] rhs
6647 /* 3860 */ // No operand predicates
6648 /* 3860 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner13),
6649 /* 3864 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6650 /* 3869 */ // Combiner Rule #96: binop_left_to_zero @ [__binop_left_to_zero_match_0[4]]
6651 /* 3869 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6652 /* 3874 */ GIR_EraseRootFromParent_Done,
6653 /* 3875 */ // Label 192: @3875
6654 /* 3875 */ GIM_Try, /*On fail goto*//*Label 193*/ GIMT_Encode4(3892), // Rule ID 371 //
6655 /* 3880 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule241Enabled),
6656 /* 3883 */ GIM_MIFlagsNot, /*MI*/0, GIMT_Encode4(MachineInstr::IsExact),
6657 /* 3889 */ // MIs[0] dst
6658 /* 3889 */ // No operand predicates
6659 /* 3889 */ // MIs[0] x
6660 /* 3889 */ // No operand predicates
6661 /* 3889 */ // MIs[0] y
6662 /* 3889 */ // No operand predicates
6663 /* 3889 */ // Combiner Rule #241: udiv_by_pow2
6664 /* 3889 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner98),
6665 /* 3892 */ // Label 193: @3892
6666 /* 3892 */ GIM_Try, /*On fail goto*//*Label 194*/ GIMT_Encode4(3913), // Rule ID 92 //
6667 /* 3897 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule80Enabled),
6668 /* 3900 */ // MIs[0] dst
6669 /* 3900 */ // No operand predicates
6670 /* 3900 */ // MIs[0] __binop_left_undef_to_zero_match_0.x
6671 /* 3900 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6672 /* 3904 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
6673 /* 3908 */ // MIs[0] __binop_left_undef_to_zero_match_0.y
6674 /* 3908 */ // No operand predicates
6675 /* 3908 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6676 /* 3910 */ // Combiner Rule #80: binop_left_undef_to_zero @ [__binop_left_undef_to_zero_match_0[1]]
6677 /* 3910 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner31),
6678 /* 3913 */ // Label 194: @3913
6679 /* 3913 */ GIM_Try, /*On fail goto*//*Label 195*/ GIMT_Encode4(3924), // Rule ID 257 //
6680 /* 3918 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule196Enabled),
6681 /* 3921 */ // MIs[0] root
6682 /* 3921 */ // No operand predicates
6683 /* 3921 */ // MIs[0] mi.x
6684 /* 3921 */ // No operand predicates
6685 /* 3921 */ // MIs[0] mi.y
6686 /* 3921 */ // No operand predicates
6687 /* 3921 */ // Combiner Rule #196: div_rem_to_divrem @ [mi[1]]
6688 /* 3921 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner72),
6689 /* 3924 */ // Label 195: @3924
6690 /* 3924 */ GIM_Try, /*On fail goto*//*Label 196*/ GIMT_Encode4(3935), // Rule ID 291 //
6691 /* 3929 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule213Enabled),
6692 /* 3932 */ // MIs[0] d
6693 /* 3932 */ // No operand predicates
6694 /* 3932 */ // MIs[0] mi.src0
6695 /* 3932 */ // No operand predicates
6696 /* 3932 */ // MIs[0] mi.src1
6697 /* 3932 */ // No operand predicates
6698 /* 3932 */ // Combiner Rule #213: constant_fold_binop @ [mi[10]]
6699 /* 3932 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner79),
6700 /* 3935 */ // Label 196: @3935
6701 /* 3935 */ GIM_Try, /*On fail goto*//*Label 197*/ GIMT_Encode4(3946), // Rule ID 350 //
6702 /* 3940 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule236Enabled),
6703 /* 3943 */ // MIs[0] root
6704 /* 3943 */ // No operand predicates
6705 /* 3943 */ // MIs[0] mi.x
6706 /* 3943 */ // No operand predicates
6707 /* 3943 */ // MIs[0] mi.y
6708 /* 3943 */ // No operand predicates
6709 /* 3943 */ // Combiner Rule #236: fold_binop_into_select_a @ [mi[8]]
6710 /* 3943 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
6711 /* 3946 */ // Label 197: @3946
6712 /* 3946 */ GIM_Try, /*On fail goto*//*Label 198*/ GIMT_Encode4(3957), // Rule ID 372 //
6713 /* 3951 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule242Enabled),
6714 /* 3954 */ // MIs[0] dst
6715 /* 3954 */ // No operand predicates
6716 /* 3954 */ // MIs[0] x
6717 /* 3954 */ // No operand predicates
6718 /* 3954 */ // MIs[0] y
6719 /* 3954 */ // No operand predicates
6720 /* 3954 */ // Combiner Rule #242: udiv_by_shifted_pow2
6721 /* 3954 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner99),
6722 /* 3957 */ // Label 198: @3957
6723 /* 3957 */ GIM_Try, /*On fail goto*//*Label 199*/ GIMT_Encode4(3968), // Rule ID 374 //
6724 /* 3962 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule244Enabled),
6725 /* 3965 */ // MIs[0] dst
6726 /* 3965 */ // No operand predicates
6727 /* 3965 */ // MIs[0] x
6728 /* 3965 */ // No operand predicates
6729 /* 3965 */ // MIs[0] y
6730 /* 3965 */ // No operand predicates
6731 /* 3965 */ // Combiner Rule #244: udiv_by_const
6732 /* 3965 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner96),
6733 /* 3968 */ // Label 199: @3968
6734 /* 3968 */ GIM_Reject,
6735 /* 3969 */ // Label 6: @3969
6736 /* 3969 */ GIM_Try, /*On fail goto*//*Label 200*/ GIMT_Encode4(3992), // Rule ID 138 //
6737 /* 3974 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule96Enabled),
6738 /* 3977 */ // MIs[0] dst
6739 /* 3977 */ // No operand predicates
6740 /* 3977 */ // MIs[0] zero
6741 /* 3977 */ // No operand predicates
6742 /* 3977 */ // MIs[0] rhs
6743 /* 3977 */ // No operand predicates
6744 /* 3977 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner13),
6745 /* 3981 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6746 /* 3986 */ // Combiner Rule #96: binop_left_to_zero @ [__binop_left_to_zero_match_0[5]]
6747 /* 3986 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6748 /* 3991 */ GIR_EraseRootFromParent_Done,
6749 /* 3992 */ // Label 200: @3992
6750 /* 3992 */ GIM_Try, /*On fail goto*//*Label 201*/ GIMT_Encode4(4017), // Rule ID 206 //
6751 /* 3997 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule156Enabled),
6752 /* 4000 */ // MIs[0] dst
6753 /* 4000 */ // No operand predicates
6754 /* 4000 */ // MIs[0] x
6755 /* 4000 */ // No operand predicates
6756 /* 4000 */ // MIs[0] y
6757 /* 4000 */ // No operand predicates
6758 /* 4000 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner32),
6759 /* 4004 */ // Combiner Rule #156: srem_to_unsigned
6760 /* 4004 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UREM),
6761 /* 4007 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
6762 /* 4009 */ GIR_RootToRootCopy, /*OpIdx*/1, // x
6763 /* 4011 */ GIR_RootToRootCopy, /*OpIdx*/2, // y
6764 /* 4013 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
6765 /* 4016 */ GIR_EraseRootFromParent_Done,
6766 /* 4017 */ // Label 201: @4017
6767 /* 4017 */ GIM_Try, /*On fail goto*//*Label 202*/ GIMT_Encode4(4028), // Rule ID 258 //
6768 /* 4022 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule196Enabled),
6769 /* 4025 */ // MIs[0] root
6770 /* 4025 */ // No operand predicates
6771 /* 4025 */ // MIs[0] mi.x
6772 /* 4025 */ // No operand predicates
6773 /* 4025 */ // MIs[0] mi.y
6774 /* 4025 */ // No operand predicates
6775 /* 4025 */ // Combiner Rule #196: div_rem_to_divrem @ [mi[2]]
6776 /* 4025 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner72),
6777 /* 4028 */ // Label 202: @4028
6778 /* 4028 */ GIM_Try, /*On fail goto*//*Label 203*/ GIMT_Encode4(4039), // Rule ID 294 //
6779 /* 4033 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule213Enabled),
6780 /* 4036 */ // MIs[0] d
6781 /* 4036 */ // No operand predicates
6782 /* 4036 */ // MIs[0] mi.src0
6783 /* 4036 */ // No operand predicates
6784 /* 4036 */ // MIs[0] mi.src1
6785 /* 4036 */ // No operand predicates
6786 /* 4036 */ // Combiner Rule #213: constant_fold_binop @ [mi[13]]
6787 /* 4036 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner79),
6788 /* 4039 */ // Label 203: @4039
6789 /* 4039 */ GIM_Try, /*On fail goto*//*Label 204*/ GIMT_Encode4(4050), // Rule ID 349 //
6790 /* 4044 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule236Enabled),
6791 /* 4047 */ // MIs[0] root
6792 /* 4047 */ // No operand predicates
6793 /* 4047 */ // MIs[0] mi.x
6794 /* 4047 */ // No operand predicates
6795 /* 4047 */ // MIs[0] mi.y
6796 /* 4047 */ // No operand predicates
6797 /* 4047 */ // Combiner Rule #236: fold_binop_into_select_a @ [mi[7]]
6798 /* 4047 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
6799 /* 4050 */ // Label 204: @4050
6800 /* 4050 */ GIM_Try, /*On fail goto*//*Label 205*/ GIMT_Encode4(4061), // Rule ID 368 //
6801 /* 4055 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule238Enabled),
6802 /* 4058 */ // MIs[0] dst
6803 /* 4058 */ // No operand predicates
6804 /* 4058 */ // MIs[0] x
6805 /* 4058 */ // No operand predicates
6806 /* 4058 */ // MIs[0] y
6807 /* 4058 */ // No operand predicates
6808 /* 4058 */ // Combiner Rule #238: srem_pow2_to_mask
6809 /* 4058 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner95),
6810 /* 4061 */ // Label 205: @4061
6811 /* 4061 */ GIM_Try, /*On fail goto*//*Label 206*/ GIMT_Encode4(4072), // Rule ID 370 //
6812 /* 4066 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule240Enabled),
6813 /* 4069 */ // MIs[0] dst
6814 /* 4069 */ // No operand predicates
6815 /* 4069 */ // MIs[0] x
6816 /* 4069 */ // No operand predicates
6817 /* 4069 */ // MIs[0] y
6818 /* 4069 */ // No operand predicates
6819 /* 4069 */ // Combiner Rule #240: srem_by_const
6820 /* 4069 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner97),
6821 /* 4072 */ // Label 206: @4072
6822 /* 4072 */ GIM_Reject,
6823 /* 4073 */ // Label 7: @4073
6824 /* 4073 */ GIM_Try, /*On fail goto*//*Label 207*/ GIMT_Encode4(4096), // Rule ID 139 //
6825 /* 4078 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule96Enabled),
6826 /* 4081 */ // MIs[0] dst
6827 /* 4081 */ // No operand predicates
6828 /* 4081 */ // MIs[0] zero
6829 /* 4081 */ // No operand predicates
6830 /* 4081 */ // MIs[0] rhs
6831 /* 4081 */ // No operand predicates
6832 /* 4081 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner13),
6833 /* 4085 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6834 /* 4090 */ // Combiner Rule #96: binop_left_to_zero @ [__binop_left_to_zero_match_0[6]]
6835 /* 4090 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6836 /* 4095 */ GIR_EraseRootFromParent_Done,
6837 /* 4096 */ // Label 207: @4096
6838 /* 4096 */ GIM_Try, /*On fail goto*//*Label 208*/ GIMT_Encode4(4117), // Rule ID 93 //
6839 /* 4101 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule80Enabled),
6840 /* 4104 */ // MIs[0] dst
6841 /* 4104 */ // No operand predicates
6842 /* 4104 */ // MIs[0] __binop_left_undef_to_zero_match_0.x
6843 /* 4104 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6844 /* 4108 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
6845 /* 4112 */ // MIs[0] __binop_left_undef_to_zero_match_0.y
6846 /* 4112 */ // No operand predicates
6847 /* 4112 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6848 /* 4114 */ // Combiner Rule #80: binop_left_undef_to_zero @ [__binop_left_undef_to_zero_match_0[2]]
6849 /* 4114 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner31),
6850 /* 4117 */ // Label 208: @4117
6851 /* 4117 */ GIM_Try, /*On fail goto*//*Label 209*/ GIMT_Encode4(4128), // Rule ID 202 //
6852 /* 4122 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule152Enabled),
6853 /* 4125 */ // MIs[0] dst
6854 /* 4125 */ // No operand predicates
6855 /* 4125 */ // MIs[0] x
6856 /* 4125 */ // No operand predicates
6857 /* 4125 */ // MIs[0] y
6858 /* 4125 */ // No operand predicates
6859 /* 4125 */ // Combiner Rule #152: urem_pow2_to_mask
6860 /* 4125 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner57),
6861 /* 4128 */ // Label 209: @4128
6862 /* 4128 */ GIM_Try, /*On fail goto*//*Label 210*/ GIMT_Encode4(4139), // Rule ID 259 //
6863 /* 4133 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule196Enabled),
6864 /* 4136 */ // MIs[0] root
6865 /* 4136 */ // No operand predicates
6866 /* 4136 */ // MIs[0] mi.x
6867 /* 4136 */ // No operand predicates
6868 /* 4136 */ // MIs[0] mi.y
6869 /* 4136 */ // No operand predicates
6870 /* 4136 */ // Combiner Rule #196: div_rem_to_divrem @ [mi[3]]
6871 /* 4136 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner72),
6872 /* 4139 */ // Label 210: @4139
6873 /* 4139 */ GIM_Try, /*On fail goto*//*Label 211*/ GIMT_Encode4(4150), // Rule ID 293 //
6874 /* 4144 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule213Enabled),
6875 /* 4147 */ // MIs[0] d
6876 /* 4147 */ // No operand predicates
6877 /* 4147 */ // MIs[0] mi.src0
6878 /* 4147 */ // No operand predicates
6879 /* 4147 */ // MIs[0] mi.src1
6880 /* 4147 */ // No operand predicates
6881 /* 4147 */ // Combiner Rule #213: constant_fold_binop @ [mi[12]]
6882 /* 4147 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner79),
6883 /* 4150 */ // Label 211: @4150
6884 /* 4150 */ GIM_Try, /*On fail goto*//*Label 212*/ GIMT_Encode4(4161), // Rule ID 351 //
6885 /* 4155 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule236Enabled),
6886 /* 4158 */ // MIs[0] root
6887 /* 4158 */ // No operand predicates
6888 /* 4158 */ // MIs[0] mi.x
6889 /* 4158 */ // No operand predicates
6890 /* 4158 */ // MIs[0] mi.y
6891 /* 4158 */ // No operand predicates
6892 /* 4158 */ // Combiner Rule #236: fold_binop_into_select_a @ [mi[9]]
6893 /* 4158 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
6894 /* 4161 */ // Label 212: @4161
6895 /* 4161 */ GIM_Try, /*On fail goto*//*Label 213*/ GIMT_Encode4(4172), // Rule ID 369 //
6896 /* 4166 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule239Enabled),
6897 /* 4169 */ // MIs[0] dst
6898 /* 4169 */ // No operand predicates
6899 /* 4169 */ // MIs[0] x
6900 /* 4169 */ // No operand predicates
6901 /* 4169 */ // MIs[0] y
6902 /* 4169 */ // No operand predicates
6903 /* 4169 */ // Combiner Rule #239: urem_by_const
6904 /* 4169 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner96),
6905 /* 4172 */ // Label 213: @4172
6906 /* 4172 */ GIM_Reject,
6907 /* 4173 */ // Label 8: @4173
6908 /* 4173 */ GIM_Try, /*On fail goto*//*Label 214*/ GIMT_Encode4(4271), // Rule ID 178 //
6909 /* 4178 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule128Enabled),
6910 /* 4181 */ // MIs[0] root
6911 /* 4181 */ // No operand predicates
6912 /* 4181 */ // MIs[0] d1
6913 /* 4181 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6914 /* 4185 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ICMP),
6915 /* 4189 */ // MIs[1] p
6916 /* 4189 */ // No operand predicates
6917 /* 4189 */ // MIs[1] s1
6918 /* 4189 */ GIM_RecordRegType, /*MI*/1, /*Op*/2, /*TempTypeIdx*/255,
6919 /* 4193 */ // MIs[1] Operand 3
6920 /* 4193 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/3, 0,
6921 /* 4197 */ // MIs[0] d2
6922 /* 4197 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
6923 /* 4201 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ICMP),
6924 /* 4205 */ // MIs[2] p
6925 /* 4205 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/1,
6926 /* 4210 */ // MIs[2] s2
6927 /* 4210 */ // No operand predicates
6928 /* 4210 */ // MIs[2] Operand 3
6929 /* 4210 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/3, 0,
6930 /* 4214 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner23),
6931 /* 4218 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
6932 /* 4220 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
6933 /* 4223 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(0),
6934 /* 4233 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
6935 /* 4236 */ // Combiner Rule #128: double_icmp_zero_and_combine
6936 /* 4236 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR),
6937 /* 4239 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
6938 /* 4244 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // s1
6939 /* 4248 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/2, // s2
6940 /* 4252 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ICMP),
6941 /* 4256 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // root
6942 /* 4260 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // p
6943 /* 4264 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
6944 /* 4267 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/1,
6945 /* 4270 */ GIR_EraseRootFromParent_Done,
6946 /* 4271 */ // Label 214: @4271
6947 /* 4271 */ GIM_Try, /*On fail goto*//*Label 215*/ GIMT_Encode4(4385), // Rule ID 486 //
6948 /* 4276 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule350Enabled),
6949 /* 4279 */ GIM_RootCheckType, /*Op*/1, /*Type*/GILLT_i64,
6950 /* 4282 */ GIM_RootCheckType, /*Op*/2, /*Type*/GILLT_i64,
6951 /* 4285 */ // MIs[0] dst
6952 /* 4285 */ // No operand predicates
6953 /* 4285 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner68),
6954 /* 4289 */ GIR_MakeTempReg, /*TempRegID*/5, /*TypeID*/GILLT_i32,
6955 /* 4292 */ GIR_MakeTempReg, /*TempRegID*/4, /*TypeID*/GILLT_i32,
6956 /* 4295 */ GIR_MakeTempReg, /*TempRegID*/3, /*TypeID*/GILLT_i32,
6957 /* 4298 */ GIR_MakeTempReg, /*TempRegID*/2, /*TypeID*/GILLT_i32,
6958 /* 4301 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/GILLT_i32,
6959 /* 4304 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/GILLT_i32,
6960 /* 4307 */ // Combiner Rule #350: combine_and_s64_with_s32_mask
6961 /* 4307 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UNMERGE_VALUES),
6962 /* 4310 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
6963 /* 4315 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/1, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
6964 /* 4320 */ GIR_RootToRootCopy, /*OpIdx*/1, // x
6965 /* 4322 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UNMERGE_VALUES),
6966 /* 4326 */ GIR_AddTempRegister, /*InsnID*/1, /*TempRegID*/2, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
6967 /* 4331 */ GIR_AddTempRegister, /*InsnID*/1, /*TempRegID*/3, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
6968 /* 4336 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/2, // y
6969 /* 4340 */ GIR_BuildMI, /*InsnID*/2, /*Opcode*/GIMT_Encode2(TargetOpcode::G_AND),
6970 /* 4344 */ GIR_AddTempRegister, /*InsnID*/2, /*TempRegID*/4, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
6971 /* 4349 */ GIR_AddSimpleTempRegister, /*InsnID*/2, /*TempRegID*/0,
6972 /* 4352 */ GIR_AddSimpleTempRegister, /*InsnID*/2, /*TempRegID*/2,
6973 /* 4355 */ GIR_BuildMI, /*InsnID*/3, /*Opcode*/GIMT_Encode2(TargetOpcode::G_AND),
6974 /* 4359 */ GIR_AddTempRegister, /*InsnID*/3, /*TempRegID*/5, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
6975 /* 4364 */ GIR_AddSimpleTempRegister, /*InsnID*/3, /*TempRegID*/1,
6976 /* 4367 */ GIR_AddSimpleTempRegister, /*InsnID*/3, /*TempRegID*/3,
6977 /* 4370 */ GIR_BuildMI, /*InsnID*/4, /*Opcode*/GIMT_Encode2(TargetOpcode::G_MERGE_VALUES),
6978 /* 4374 */ GIR_Copy, /*NewInsnID*/4, /*OldInsnID*/0, /*OpIdx*/0, // dst
6979 /* 4378 */ GIR_AddSimpleTempRegister, /*InsnID*/4, /*TempRegID*/4,
6980 /* 4381 */ GIR_AddSimpleTempRegister, /*InsnID*/4, /*TempRegID*/5,
6981 /* 4384 */ GIR_EraseRootFromParent_Done,
6982 /* 4385 */ // Label 215: @4385
6983 /* 4385 */ GIM_Try, /*On fail goto*//*Label 216*/ GIMT_Encode4(4410), // Rule ID 385 //
6984 /* 4390 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule255Enabled),
6985 /* 4393 */ // MIs[0] dst
6986 /* 4393 */ // No operand predicates
6987 /* 4393 */ // MIs[0] lhs
6988 /* 4393 */ // No operand predicates
6989 /* 4393 */ // MIs[0] rhs
6990 /* 4393 */ // No operand predicates
6991 /* 4393 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner51),
6992 /* 4397 */ // Combiner Rule #255: G_AND_commute_constant_to_rhs
6993 /* 4397 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_AND),
6994 /* 4400 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
6995 /* 4402 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
6996 /* 4404 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
6997 /* 4406 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
6998 /* 4409 */ GIR_EraseRootFromParent_Done,
6999 /* 4410 */ // Label 216: @4410
7000 /* 4410 */ GIM_Try, /*On fail goto*//*Label 217*/ GIMT_Encode4(4496), // Rule ID 417 //
7001 /* 4415 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule287Enabled),
7002 /* 4418 */ // MIs[0] root
7003 /* 4418 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
7004 /* 4422 */ // MIs[0] or
7005 /* 4422 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7006 /* 4426 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_OR),
7007 /* 4430 */ // MIs[1] x
7008 /* 4430 */ // No operand predicates
7009 /* 4430 */ // MIs[1] y
7010 /* 4430 */ // No operand predicates
7011 /* 4430 */ // MIs[0] not
7012 /* 4430 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
7013 /* 4434 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_XOR),
7014 /* 4438 */ // MIs[2] y
7015 /* 4438 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/2,
7016 /* 4443 */ // MIs[2] Operand 2
7017 /* 4443 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/2, 255,
7018 /* 4447 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
7019 /* 4449 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
7020 /* 4452 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(18446744073709551615u),
7021 /* 4462 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
7022 /* 4465 */ // Combiner Rule #287: and_xor_or_to_xor_and
7023 /* 4465 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_XOR),
7024 /* 4468 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
7025 /* 4473 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // y
7026 /* 4477 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/1,
7027 /* 4480 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_AND),
7028 /* 4484 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // root
7029 /* 4488 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // x
7030 /* 4492 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
7031 /* 4495 */ GIR_EraseRootFromParent_Done,
7032 /* 4496 */ // Label 217: @4496
7033 /* 4496 */ GIM_Try, /*On fail goto*//*Label 218*/ GIMT_Encode4(4533), // Rule ID 276 //
7034 /* 4501 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule210Enabled),
7035 /* 4504 */ // MIs[0] root
7036 /* 4504 */ // No operand predicates
7037 /* 4504 */ // MIs[0] shift
7038 /* 4504 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7039 /* 4508 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_LSHR),
7040 /* 4512 */ // MIs[1] x
7041 /* 4512 */ // No operand predicates
7042 /* 4512 */ // MIs[1] lsb
7043 /* 4512 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
7044 /* 4516 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
7045 /* 4520 */ // MIs[2] imm1
7046 /* 4520 */ // No operand predicates
7047 /* 4520 */ // MIs[0] mask
7048 /* 4520 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/0, /*OpIdx*/2, // MIs[3]
7049 /* 4524 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
7050 /* 4528 */ // MIs[3] imm2
7051 /* 4528 */ // No operand predicates
7052 /* 4528 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
7053 /* 4530 */ // Combiner Rule #210: bitfield_extract_from_and
7054 /* 4530 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner76),
7055 /* 4533 */ // Label 218: @4533
7056 /* 4533 */ GIM_Try, /*On fail goto*//*Label 219*/ GIMT_Encode4(4582), // Rule ID 416 //
7057 /* 4538 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule286Enabled),
7058 /* 4541 */ // MIs[0] root
7059 /* 4541 */ // No operand predicates
7060 /* 4541 */ // MIs[0] or
7061 /* 4541 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7062 /* 4545 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_OR),
7063 /* 4549 */ // MIs[1] x
7064 /* 4549 */ // No operand predicates
7065 /* 4549 */ // MIs[1] not
7066 /* 4549 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
7067 /* 4553 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_XOR),
7068 /* 4557 */ // MIs[2] y
7069 /* 4557 */ // No operand predicates
7070 /* 4557 */ // MIs[2] Operand 2
7071 /* 4557 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/2, 255,
7072 /* 4561 */ // MIs[0] y
7073 /* 4561 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/2, /*OtherOpIdx*/1,
7074 /* 4566 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
7075 /* 4568 */ // Combiner Rule #286: and_xor_or_to_and
7076 /* 4568 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_AND),
7077 /* 4571 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
7078 /* 4573 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
7079 /* 4577 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // y
7080 /* 4581 */ GIR_EraseRootFromParent_Done,
7081 /* 4582 */ // Label 219: @4582
7082 /* 4582 */ GIM_Try, /*On fail goto*//*Label 220*/ GIMT_Encode4(4603), // Rule ID 85 //
7083 /* 4587 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule78Enabled),
7084 /* 4590 */ // MIs[0] dst
7085 /* 4590 */ // No operand predicates
7086 /* 4590 */ // MIs[0] __undef_to_int_zero_match_0.x
7087 /* 4590 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7088 /* 4594 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
7089 /* 4598 */ // MIs[0] __undef_to_int_zero_match_0.y
7090 /* 4598 */ // No operand predicates
7091 /* 4598 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7092 /* 4600 */ // Combiner Rule #78: undef_to_int_zero @ [__undef_to_int_zero_match_0[0]]
7093 /* 4600 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner31),
7094 /* 4603 */ // Label 220: @4603
7095 /* 4603 */ GIM_Try, /*On fail goto*//*Label 221*/ GIMT_Encode4(4627), // Rule ID 129 //
7096 /* 4608 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule94Enabled),
7097 /* 4611 */ // MIs[0] dst
7098 /* 4611 */ // No operand predicates
7099 /* 4611 */ // MIs[0] src
7100 /* 4611 */ // No operand predicates
7101 /* 4611 */ // MIs[0] src
7102 /* 4611 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
7103 /* 4616 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7104 /* 4621 */ // Combiner Rule #94: binop_same_val @ [__binop_same_val_match_0[0]]
7105 /* 4621 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7106 /* 4626 */ GIR_EraseRootFromParent_Done,
7107 /* 4627 */ // Label 221: @4627
7108 /* 4627 */ GIM_Try, /*On fail goto*//*Label 222*/ GIMT_Encode4(4648), // Rule ID 87 //
7109 /* 4632 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule78Enabled),
7110 /* 4635 */ // MIs[0] dst
7111 /* 4635 */ // No operand predicates
7112 /* 4635 */ // MIs[0] __undef_to_int_zero_match_0.x
7113 /* 4635 */ // No operand predicates
7114 /* 4635 */ // MIs[0] __undef_to_int_zero_match_0.y
7115 /* 4635 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
7116 /* 4639 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
7117 /* 4643 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7118 /* 4645 */ // Combiner Rule #78: undef_to_int_zero @ [__undef_to_int_zero_match_0[2]]
7119 /* 4645 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner31),
7120 /* 4648 */ // Label 222: @4648
7121 /* 4648 */ GIM_Try, /*On fail goto*//*Label 223*/ GIMT_Encode4(4659), // Rule ID 81 //
7122 /* 4653 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule75Enabled),
7123 /* 4656 */ // MIs[0] dst
7124 /* 4656 */ // No operand predicates
7125 /* 4656 */ // MIs[0] src1
7126 /* 4656 */ // No operand predicates
7127 /* 4656 */ // MIs[0] src2
7128 /* 4656 */ // No operand predicates
7129 /* 4656 */ // Combiner Rule #75: load_and_mask
7130 /* 4656 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner28),
7131 /* 4659 */ // Label 223: @4659
7132 /* 4659 */ GIM_Try, /*On fail goto*//*Label 224*/ GIMT_Encode4(4670), // Rule ID 165 //
7133 /* 4664 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule119Enabled),
7134 /* 4667 */ // MIs[0] root
7135 /* 4667 */ // No operand predicates
7136 /* 4667 */ // MIs[0] mi.x
7137 /* 4667 */ // No operand predicates
7138 /* 4667 */ // MIs[0] mi.y
7139 /* 4667 */ // No operand predicates
7140 /* 4667 */ // Combiner Rule #119: hoist_logic_op_with_same_opcode_hands @ [mi[0]]
7141 /* 4667 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner38),
7142 /* 4670 */ // Label 224: @4670
7143 /* 4670 */ GIM_Try, /*On fail goto*//*Label 225*/ GIMT_Encode4(4681), // Rule ID 185 //
7144 /* 4675 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule135Enabled),
7145 /* 4678 */ // MIs[0] dst
7146 /* 4678 */ // No operand predicates
7147 /* 4678 */ // MIs[0] src1
7148 /* 4678 */ // No operand predicates
7149 /* 4678 */ // MIs[0] src2
7150 /* 4678 */ // No operand predicates
7151 /* 4678 */ // Combiner Rule #135: narrow_binop_feeding_and
7152 /* 4678 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner51),
7153 /* 4681 */ // Label 225: @4681
7154 /* 4681 */ GIM_Try, /*On fail goto*//*Label 226*/ GIMT_Encode4(4692), // Rule ID 200 //
7155 /* 4686 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule150Enabled),
7156 /* 4689 */ // MIs[0] dst
7157 /* 4689 */ // No operand predicates
7158 /* 4689 */ // MIs[0] src1
7159 /* 4689 */ // No operand predicates
7160 /* 4689 */ // MIs[0] src2
7161 /* 4689 */ // No operand predicates
7162 /* 4689 */ // Combiner Rule #150: redundant_and
7163 /* 4689 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner55),
7164 /* 4692 */ // Label 226: @4692
7165 /* 4692 */ GIM_Try, /*On fail goto*//*Label 227*/ GIMT_Encode4(4703), // Rule ID 226 //
7166 /* 4697 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule176Enabled),
7167 /* 4700 */ // MIs[0] dst
7168 /* 4700 */ // No operand predicates
7169 /* 4700 */ // MIs[0] x
7170 /* 4700 */ // No operand predicates
7171 /* 4700 */ // MIs[0] y
7172 /* 4700 */ // No operand predicates
7173 /* 4700 */ // Combiner Rule #176: overlapping_and
7174 /* 4700 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner65),
7175 /* 4703 */ // Label 227: @4703
7176 /* 4703 */ GIM_Try, /*On fail goto*//*Label 228*/ GIMT_Encode4(4714), // Rule ID 283 //
7177 /* 4708 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule213Enabled),
7178 /* 4711 */ // MIs[0] d
7179 /* 4711 */ // No operand predicates
7180 /* 4711 */ // MIs[0] mi.src0
7181 /* 4711 */ // No operand predicates
7182 /* 4711 */ // MIs[0] mi.src1
7183 /* 4711 */ // No operand predicates
7184 /* 4711 */ // Combiner Rule #213: constant_fold_binop @ [mi[2]]
7185 /* 4711 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner79),
7186 /* 4714 */ // Label 228: @4714
7187 /* 4714 */ GIM_Try, /*On fail goto*//*Label 229*/ GIMT_Encode4(4725), // Rule ID 333 //
7188 /* 4719 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule227Enabled),
7189 /* 4722 */ // MIs[0] dst
7190 /* 4722 */ // No operand predicates
7191 /* 4722 */ // MIs[0] src1
7192 /* 4722 */ // No operand predicates
7193 /* 4722 */ // MIs[0] src2
7194 /* 4722 */ // No operand predicates
7195 /* 4722 */ // Combiner Rule #227: and_or_disjoint_mask
7196 /* 4722 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner85),
7197 /* 4725 */ // Label 229: @4725
7198 /* 4725 */ GIM_Try, /*On fail goto*//*Label 230*/ GIMT_Encode4(4736), // Rule ID 345 //
7199 /* 4730 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule236Enabled),
7200 /* 4733 */ // MIs[0] root
7201 /* 4733 */ // No operand predicates
7202 /* 4733 */ // MIs[0] mi.x
7203 /* 4733 */ // No operand predicates
7204 /* 4733 */ // MIs[0] mi.y
7205 /* 4733 */ // No operand predicates
7206 /* 4733 */ // Combiner Rule #236: fold_binop_into_select_a @ [mi[3]]
7207 /* 4733 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
7208 /* 4736 */ // Label 230: @4736
7209 /* 4736 */ GIM_Try, /*On fail goto*//*Label 231*/ GIMT_Encode4(4747), // Rule ID 412 //
7210 /* 4741 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule282Enabled),
7211 /* 4744 */ // MIs[0] dst
7212 /* 4744 */ // No operand predicates
7213 /* 4744 */ // MIs[0] src1
7214 /* 4744 */ // No operand predicates
7215 /* 4744 */ // MIs[0] src2
7216 /* 4744 */ // No operand predicates
7217 /* 4744 */ // Combiner Rule #282: match_ands
7218 /* 4744 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103),
7219 /* 4747 */ // Label 231: @4747
7220 /* 4747 */ GIM_Try, /*On fail goto*//*Label 232*/ GIMT_Encode4(4758), // Rule ID 459 //
7221 /* 4752 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule328Enabled),
7222 /* 4755 */ // MIs[0] root
7223 /* 4755 */ // No operand predicates
7224 /* 4755 */ // MIs[0] mi.x
7225 /* 4755 */ // No operand predicates
7226 /* 4755 */ // MIs[0] mi.y
7227 /* 4755 */ // No operand predicates
7228 /* 4755 */ // Combiner Rule #328: binop_with_neg @ [mi[0]]
7229 /* 4755 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner128),
7230 /* 4758 */ // Label 232: @4758
7231 /* 4758 */ GIM_Reject,
7232 /* 4759 */ // Label 9: @4759
7233 /* 4759 */ GIM_Try, /*On fail goto*//*Label 233*/ GIMT_Encode4(4857), // Rule ID 179 //
7234 /* 4764 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule129Enabled),
7235 /* 4767 */ // MIs[0] root
7236 /* 4767 */ // No operand predicates
7237 /* 4767 */ // MIs[0] d1
7238 /* 4767 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7239 /* 4771 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ICMP),
7240 /* 4775 */ // MIs[1] p
7241 /* 4775 */ // No operand predicates
7242 /* 4775 */ // MIs[1] s1
7243 /* 4775 */ GIM_RecordRegType, /*MI*/1, /*Op*/2, /*TempTypeIdx*/255,
7244 /* 4779 */ // MIs[1] Operand 3
7245 /* 4779 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/3, 0,
7246 /* 4783 */ // MIs[0] d2
7247 /* 4783 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
7248 /* 4787 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ICMP),
7249 /* 4791 */ // MIs[2] p
7250 /* 4791 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/1,
7251 /* 4796 */ // MIs[2] s2
7252 /* 4796 */ // No operand predicates
7253 /* 4796 */ // MIs[2] Operand 3
7254 /* 4796 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/3, 0,
7255 /* 4800 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner24),
7256 /* 4804 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
7257 /* 4806 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
7258 /* 4809 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(0),
7259 /* 4819 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
7260 /* 4822 */ // Combiner Rule #129: double_icmp_zero_or_combine
7261 /* 4822 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR),
7262 /* 4825 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
7263 /* 4830 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // s1
7264 /* 4834 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/2, // s2
7265 /* 4838 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ICMP),
7266 /* 4842 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // root
7267 /* 4846 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // p
7268 /* 4850 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
7269 /* 4853 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/1,
7270 /* 4856 */ GIR_EraseRootFromParent_Done,
7271 /* 4857 */ // Label 233: @4857
7272 /* 4857 */ GIM_Try, /*On fail goto*//*Label 234*/ GIMT_Encode4(4971), // Rule ID 485 //
7273 /* 4862 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule349Enabled),
7274 /* 4865 */ GIM_RootCheckType, /*Op*/1, /*Type*/GILLT_i64,
7275 /* 4868 */ GIM_RootCheckType, /*Op*/2, /*Type*/GILLT_i64,
7276 /* 4871 */ // MIs[0] dst
7277 /* 4871 */ // No operand predicates
7278 /* 4871 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner68),
7279 /* 4875 */ GIR_MakeTempReg, /*TempRegID*/5, /*TypeID*/GILLT_i32,
7280 /* 4878 */ GIR_MakeTempReg, /*TempRegID*/4, /*TypeID*/GILLT_i32,
7281 /* 4881 */ GIR_MakeTempReg, /*TempRegID*/3, /*TypeID*/GILLT_i32,
7282 /* 4884 */ GIR_MakeTempReg, /*TempRegID*/2, /*TypeID*/GILLT_i32,
7283 /* 4887 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/GILLT_i32,
7284 /* 4890 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/GILLT_i32,
7285 /* 4893 */ // Combiner Rule #349: combine_or_s64_with_s32_mask
7286 /* 4893 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UNMERGE_VALUES),
7287 /* 4896 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
7288 /* 4901 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/1, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
7289 /* 4906 */ GIR_RootToRootCopy, /*OpIdx*/1, // x
7290 /* 4908 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UNMERGE_VALUES),
7291 /* 4912 */ GIR_AddTempRegister, /*InsnID*/1, /*TempRegID*/2, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
7292 /* 4917 */ GIR_AddTempRegister, /*InsnID*/1, /*TempRegID*/3, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
7293 /* 4922 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/2, // y
7294 /* 4926 */ GIR_BuildMI, /*InsnID*/2, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR),
7295 /* 4930 */ GIR_AddTempRegister, /*InsnID*/2, /*TempRegID*/4, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
7296 /* 4935 */ GIR_AddSimpleTempRegister, /*InsnID*/2, /*TempRegID*/0,
7297 /* 4938 */ GIR_AddSimpleTempRegister, /*InsnID*/2, /*TempRegID*/2,
7298 /* 4941 */ GIR_BuildMI, /*InsnID*/3, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR),
7299 /* 4945 */ GIR_AddTempRegister, /*InsnID*/3, /*TempRegID*/5, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
7300 /* 4950 */ GIR_AddSimpleTempRegister, /*InsnID*/3, /*TempRegID*/1,
7301 /* 4953 */ GIR_AddSimpleTempRegister, /*InsnID*/3, /*TempRegID*/3,
7302 /* 4956 */ GIR_BuildMI, /*InsnID*/4, /*Opcode*/GIMT_Encode2(TargetOpcode::G_MERGE_VALUES),
7303 /* 4960 */ GIR_Copy, /*NewInsnID*/4, /*OldInsnID*/0, /*OpIdx*/0, // dst
7304 /* 4964 */ GIR_AddSimpleTempRegister, /*InsnID*/4, /*TempRegID*/4,
7305 /* 4967 */ GIR_AddSimpleTempRegister, /*InsnID*/4, /*TempRegID*/5,
7306 /* 4970 */ GIR_EraseRootFromParent_Done,
7307 /* 4971 */ // Label 234: @4971
7308 /* 4971 */ GIM_Try, /*On fail goto*//*Label 235*/ GIMT_Encode4(4996), // Rule ID 386 //
7309 /* 4976 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule256Enabled),
7310 /* 4979 */ // MIs[0] dst
7311 /* 4979 */ // No operand predicates
7312 /* 4979 */ // MIs[0] lhs
7313 /* 4979 */ // No operand predicates
7314 /* 4979 */ // MIs[0] rhs
7315 /* 4979 */ // No operand predicates
7316 /* 4979 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner51),
7317 /* 4983 */ // Combiner Rule #256: G_OR_commute_constant_to_rhs
7318 /* 4983 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR),
7319 /* 4986 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
7320 /* 4988 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
7321 /* 4990 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
7322 /* 4992 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
7323 /* 4995 */ GIR_EraseRootFromParent_Done,
7324 /* 4996 */ // Label 235: @4996
7325 /* 4996 */ GIM_Try, /*On fail goto*//*Label 236*/ GIMT_Encode4(5082), // Rule ID 415 //
7326 /* 5001 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule285Enabled),
7327 /* 5004 */ // MIs[0] root
7328 /* 5004 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
7329 /* 5008 */ // MIs[0] and
7330 /* 5008 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7331 /* 5012 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_AND),
7332 /* 5016 */ // MIs[1] x
7333 /* 5016 */ // No operand predicates
7334 /* 5016 */ // MIs[1] y
7335 /* 5016 */ // No operand predicates
7336 /* 5016 */ // MIs[0] not
7337 /* 5016 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
7338 /* 5020 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_XOR),
7339 /* 5024 */ // MIs[2] y
7340 /* 5024 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/2,
7341 /* 5029 */ // MIs[2] Operand 2
7342 /* 5029 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/2, 255,
7343 /* 5033 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
7344 /* 5035 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
7345 /* 5038 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(18446744073709551615u),
7346 /* 5048 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
7347 /* 5051 */ // Combiner Rule #285: or_and_xor_to_xor_or
7348 /* 5051 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_XOR),
7349 /* 5054 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
7350 /* 5059 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // y
7351 /* 5063 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/1,
7352 /* 5066 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR),
7353 /* 5070 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // root
7354 /* 5074 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // x
7355 /* 5078 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
7356 /* 5081 */ GIR_EraseRootFromParent_Done,
7357 /* 5082 */ // Label 236: @5082
7358 /* 5082 */ GIM_Try, /*On fail goto*//*Label 237*/ GIMT_Encode4(5169), // Rule ID 488 //
7359 /* 5087 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule351Enabled),
7360 /* 5090 */ GIM_RootCheckType, /*Op*/1, /*Type*/GILLT_i64,
7361 /* 5093 */ GIM_RootCheckType, /*Op*/2, /*Type*/GILLT_i64,
7362 /* 5096 */ // MIs[0] dst
7363 /* 5096 */ // No operand predicates
7364 /* 5096 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7365 /* 5100 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ZEXT),
7366 /* 5104 */ GIM_CheckType, /*MI*/1, /*Op*/1, /*Type*/GILLT_i32,
7367 /* 5108 */ GIM_RecordRegType, /*MI*/1, /*Op*/1, /*TempTypeIdx*/255,
7368 /* 5112 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7369 /* 5114 */ GIR_MakeTempReg, /*TempRegID*/2, /*TypeID*/255,
7370 /* 5117 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
7371 /* 5120 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
7372 /* 5123 */ // Combiner Rule #351: combine_or_s64_s32 @ [dst[1]]
7373 /* 5123 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UNMERGE_VALUES),
7374 /* 5126 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
7375 /* 5131 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/1, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
7376 /* 5136 */ GIR_RootToRootCopy, /*OpIdx*/2, // x
7377 /* 5138 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR),
7378 /* 5142 */ GIR_AddTempRegister, /*InsnID*/1, /*TempRegID*/2, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
7379 /* 5147 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
7380 /* 5150 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // y
7381 /* 5154 */ GIR_BuildMI, /*InsnID*/2, /*Opcode*/GIMT_Encode2(TargetOpcode::G_MERGE_VALUES),
7382 /* 5158 */ GIR_Copy, /*NewInsnID*/2, /*OldInsnID*/0, /*OpIdx*/0, // dst
7383 /* 5162 */ GIR_AddSimpleTempRegister, /*InsnID*/2, /*TempRegID*/2,
7384 /* 5165 */ GIR_AddSimpleTempRegister, /*InsnID*/2, /*TempRegID*/1,
7385 /* 5168 */ GIR_EraseRootFromParent_Done,
7386 /* 5169 */ // Label 237: @5169
7387 /* 5169 */ GIM_Try, /*On fail goto*//*Label 238*/ GIMT_Encode4(5216), // Rule ID 267 //
7388 /* 5174 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule203Enabled),
7389 /* 5177 */ // MIs[0] root
7390 /* 5177 */ // No operand predicates
7391 /* 5177 */ // MIs[0] out1
7392 /* 5177 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7393 /* 5181 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FSHL),
7394 /* 5185 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_left_match_0.x
7395 /* 5185 */ // No operand predicates
7396 /* 5185 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_left_match_0.z
7397 /* 5185 */ // No operand predicates
7398 /* 5185 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_left_match_0.y
7399 /* 5185 */ // No operand predicates
7400 /* 5185 */ // MIs[0] out2
7401 /* 5185 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
7402 /* 5189 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SHL),
7403 /* 5193 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_left_match_0.x
7404 /* 5193 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/1,
7405 /* 5198 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_left_match_0.y
7406 /* 5198 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/3,
7407 /* 5203 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7408 /* 5208 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
7409 /* 5210 */ // Combiner Rule #203: funnel_shift_or_shift_to_funnel_shift_left @ [__funnel_shift_or_shift_to_funnel_shift_left_match_0[0]]
7410 /* 5210 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7411 /* 5215 */ GIR_EraseRootFromParent_Done,
7412 /* 5216 */ // Label 238: @5216
7413 /* 5216 */ GIM_Try, /*On fail goto*//*Label 239*/ GIMT_Encode4(5263), // Rule ID 269 //
7414 /* 5221 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
7415 /* 5224 */ // MIs[0] root
7416 /* 5224 */ // No operand predicates
7417 /* 5224 */ // MIs[0] out1
7418 /* 5224 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7419 /* 5228 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FSHR),
7420 /* 5232 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_right_match_0.z
7421 /* 5232 */ // No operand predicates
7422 /* 5232 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_right_match_0.x
7423 /* 5232 */ // No operand predicates
7424 /* 5232 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_right_match_0.y
7425 /* 5232 */ // No operand predicates
7426 /* 5232 */ // MIs[0] out2
7427 /* 5232 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
7428 /* 5236 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_LSHR),
7429 /* 5240 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_right_match_0.x
7430 /* 5240 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/2,
7431 /* 5245 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_right_match_0.y
7432 /* 5245 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/3,
7433 /* 5250 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7434 /* 5255 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
7435 /* 5257 */ // Combiner Rule #204: funnel_shift_or_shift_to_funnel_shift_right @ [__funnel_shift_or_shift_to_funnel_shift_right_match_0[0]]
7436 /* 5257 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7437 /* 5262 */ GIR_EraseRootFromParent_Done,
7438 /* 5263 */ // Label 239: @5263
7439 /* 5263 */ GIM_Try, /*On fail goto*//*Label 240*/ GIMT_Encode4(5312), // Rule ID 414 //
7440 /* 5268 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule284Enabled),
7441 /* 5271 */ // MIs[0] root
7442 /* 5271 */ // No operand predicates
7443 /* 5271 */ // MIs[0] and
7444 /* 5271 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7445 /* 5275 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_AND),
7446 /* 5279 */ // MIs[1] x
7447 /* 5279 */ // No operand predicates
7448 /* 5279 */ // MIs[1] not
7449 /* 5279 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
7450 /* 5283 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_XOR),
7451 /* 5287 */ // MIs[2] y
7452 /* 5287 */ // No operand predicates
7453 /* 5287 */ // MIs[2] Operand 2
7454 /* 5287 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/2, 255,
7455 /* 5291 */ // MIs[0] y
7456 /* 5291 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/2, /*OtherOpIdx*/1,
7457 /* 5296 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
7458 /* 5298 */ // Combiner Rule #284: or_and_xor_to_or
7459 /* 5298 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR),
7460 /* 5301 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
7461 /* 5303 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
7462 /* 5307 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // y
7463 /* 5311 */ GIR_EraseRootFromParent_Done,
7464 /* 5312 */ // Label 240: @5312
7465 /* 5312 */ GIM_Try, /*On fail goto*//*Label 241*/ GIMT_Encode4(5346), // Rule ID 472 //
7466 /* 5317 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule339Enabled),
7467 /* 5320 */ // MIs[0] dst
7468 /* 5320 */ // No operand predicates
7469 /* 5320 */ // MIs[0] __combine_or_of_and_match_0.and
7470 /* 5320 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7471 /* 5324 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_AND),
7472 /* 5328 */ // MIs[1] x
7473 /* 5328 */ // No operand predicates
7474 /* 5328 */ // MIs[1] y
7475 /* 5328 */ // No operand predicates
7476 /* 5328 */ // MIs[0] x
7477 /* 5328 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/1,
7478 /* 5333 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
7479 /* 5338 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7480 /* 5340 */ // Combiner Rule #339: combine_or_of_and @ [__combine_or_of_and_match_0[0]]
7481 /* 5340 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
7482 /* 5345 */ GIR_EraseRootFromParent_Done,
7483 /* 5346 */ // Label 241: @5346
7484 /* 5346 */ GIM_Try, /*On fail goto*//*Label 242*/ GIMT_Encode4(5380), // Rule ID 473 //
7485 /* 5351 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule339Enabled),
7486 /* 5354 */ // MIs[0] dst
7487 /* 5354 */ // No operand predicates
7488 /* 5354 */ // MIs[0] __combine_or_of_and_match_0.and
7489 /* 5354 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7490 /* 5358 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_AND),
7491 /* 5362 */ // MIs[1] y
7492 /* 5362 */ // No operand predicates
7493 /* 5362 */ // MIs[1] x
7494 /* 5362 */ // No operand predicates
7495 /* 5362 */ // MIs[0] x
7496 /* 5362 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/2,
7497 /* 5367 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/2,
7498 /* 5372 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7499 /* 5374 */ // Combiner Rule #339: combine_or_of_and @ [__combine_or_of_and_match_0[1]]
7500 /* 5374 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/2,
7501 /* 5379 */ GIR_EraseRootFromParent_Done,
7502 /* 5380 */ // Label 242: @5380
7503 /* 5380 */ GIM_Try, /*On fail goto*//*Label 243*/ GIMT_Encode4(5427), // Rule ID 270 //
7504 /* 5385 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
7505 /* 5388 */ // MIs[0] root
7506 /* 5388 */ // No operand predicates
7507 /* 5388 */ // MIs[0] out2
7508 /* 5388 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7509 /* 5392 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_LSHR),
7510 /* 5396 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_right_match_0.x
7511 /* 5396 */ // No operand predicates
7512 /* 5396 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_right_match_0.y
7513 /* 5396 */ // No operand predicates
7514 /* 5396 */ // MIs[0] out1
7515 /* 5396 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
7516 /* 5400 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_FSHR),
7517 /* 5404 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_right_match_0.z
7518 /* 5404 */ // No operand predicates
7519 /* 5404 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_right_match_0.x
7520 /* 5404 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/1,
7521 /* 5409 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_right_match_0.y
7522 /* 5409 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/3, /*OtherMI*/1, /*OtherOpIdx*/2,
7523 /* 5414 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
7524 /* 5419 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
7525 /* 5421 */ // Combiner Rule #204: funnel_shift_or_shift_to_funnel_shift_right @ [__funnel_shift_or_shift_to_funnel_shift_right_match_0[1]]
7526 /* 5421 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
7527 /* 5426 */ GIR_EraseRootFromParent_Done,
7528 /* 5427 */ // Label 243: @5427
7529 /* 5427 */ GIM_Try, /*On fail goto*//*Label 244*/ GIMT_Encode4(5474), // Rule ID 268 //
7530 /* 5432 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule203Enabled),
7531 /* 5435 */ // MIs[0] root
7532 /* 5435 */ // No operand predicates
7533 /* 5435 */ // MIs[0] out2
7534 /* 5435 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7535 /* 5439 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SHL),
7536 /* 5443 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_left_match_0.x
7537 /* 5443 */ // No operand predicates
7538 /* 5443 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_left_match_0.y
7539 /* 5443 */ // No operand predicates
7540 /* 5443 */ // MIs[0] out1
7541 /* 5443 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
7542 /* 5447 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_FSHL),
7543 /* 5451 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_left_match_0.x
7544 /* 5451 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/1,
7545 /* 5456 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_left_match_0.z
7546 /* 5456 */ // No operand predicates
7547 /* 5456 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_left_match_0.y
7548 /* 5456 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/3, /*OtherMI*/1, /*OtherOpIdx*/2,
7549 /* 5461 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
7550 /* 5466 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
7551 /* 5468 */ // Combiner Rule #203: funnel_shift_or_shift_to_funnel_shift_left @ [__funnel_shift_or_shift_to_funnel_shift_left_match_0[1]]
7552 /* 5468 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
7553 /* 5473 */ GIR_EraseRootFromParent_Done,
7554 /* 5474 */ // Label 244: @5474
7555 /* 5474 */ GIM_Try, /*On fail goto*//*Label 245*/ GIMT_Encode4(5524), // Rule ID 419 //
7556 /* 5479 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule289Enabled),
7557 /* 5482 */ // MIs[0] root
7558 /* 5482 */ // No operand predicates
7559 /* 5482 */ // MIs[0] xor
7560 /* 5482 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7561 /* 5486 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_XOR),
7562 /* 5490 */ // MIs[1] x
7563 /* 5490 */ // No operand predicates
7564 /* 5490 */ // MIs[1] y
7565 /* 5490 */ // No operand predicates
7566 /* 5490 */ // MIs[0] and
7567 /* 5490 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
7568 /* 5494 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_AND),
7569 /* 5498 */ // MIs[2] x
7570 /* 5498 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/1,
7571 /* 5503 */ // MIs[2] y
7572 /* 5503 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/2,
7573 /* 5508 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
7574 /* 5510 */ // Combiner Rule #289: or_xor_and
7575 /* 5510 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR),
7576 /* 5513 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
7577 /* 5515 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
7578 /* 5519 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // y
7579 /* 5523 */ GIR_EraseRootFromParent_Done,
7580 /* 5524 */ // Label 245: @5524
7581 /* 5524 */ GIM_Try, /*On fail goto*//*Label 246*/ GIMT_Encode4(5574), // Rule ID 418 //
7582 /* 5529 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule288Enabled),
7583 /* 5532 */ // MIs[0] root
7584 /* 5532 */ // No operand predicates
7585 /* 5532 */ // MIs[0] xor
7586 /* 5532 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7587 /* 5536 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_XOR),
7588 /* 5540 */ // MIs[1] x
7589 /* 5540 */ // No operand predicates
7590 /* 5540 */ // MIs[1] y
7591 /* 5540 */ // No operand predicates
7592 /* 5540 */ // MIs[0] or
7593 /* 5540 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
7594 /* 5544 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_OR),
7595 /* 5548 */ // MIs[2] x
7596 /* 5548 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/1,
7597 /* 5553 */ // MIs[2] y
7598 /* 5553 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/2,
7599 /* 5558 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
7600 /* 5560 */ // Combiner Rule #288: or_xor_or
7601 /* 5560 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR),
7602 /* 5563 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
7603 /* 5565 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
7604 /* 5569 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // y
7605 /* 5573 */ GIR_EraseRootFromParent_Done,
7606 /* 5574 */ // Label 246: @5574
7607 /* 5574 */ GIM_Try, /*On fail goto*//*Label 247*/ GIMT_Encode4(5595), // Rule ID 89 //
7608 /* 5579 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule79Enabled),
7609 /* 5582 */ // MIs[0] dst
7610 /* 5582 */ // No operand predicates
7611 /* 5582 */ // MIs[0] __undef_to_negative_one_match_0.x
7612 /* 5582 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7613 /* 5586 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
7614 /* 5590 */ // MIs[0] __undef_to_negative_one_match_0.y
7615 /* 5590 */ // No operand predicates
7616 /* 5590 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7617 /* 5592 */ // Combiner Rule #79: undef_to_negative_one @ [__undef_to_negative_one_match_0[0]]
7618 /* 5592 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner32),
7619 /* 5595 */ // Label 247: @5595
7620 /* 5595 */ GIM_Try, /*On fail goto*//*Label 248*/ GIMT_Encode4(5682), // Rule ID 487 //
7621 /* 5600 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule351Enabled),
7622 /* 5603 */ GIM_RootCheckType, /*Op*/1, /*Type*/GILLT_i64,
7623 /* 5606 */ GIM_RootCheckType, /*Op*/2, /*Type*/GILLT_i64,
7624 /* 5609 */ // MIs[0] dst
7625 /* 5609 */ // No operand predicates
7626 /* 5609 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
7627 /* 5613 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ZEXT),
7628 /* 5617 */ GIM_CheckType, /*MI*/1, /*Op*/1, /*Type*/GILLT_i32,
7629 /* 5621 */ GIM_RecordRegType, /*MI*/1, /*Op*/1, /*TempTypeIdx*/255,
7630 /* 5625 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7631 /* 5627 */ GIR_MakeTempReg, /*TempRegID*/2, /*TypeID*/255,
7632 /* 5630 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
7633 /* 5633 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
7634 /* 5636 */ // Combiner Rule #351: combine_or_s64_s32 @ [dst[0]]
7635 /* 5636 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UNMERGE_VALUES),
7636 /* 5639 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
7637 /* 5644 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/1, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
7638 /* 5649 */ GIR_RootToRootCopy, /*OpIdx*/1, // x
7639 /* 5651 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR),
7640 /* 5655 */ GIR_AddTempRegister, /*InsnID*/1, /*TempRegID*/2, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
7641 /* 5660 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
7642 /* 5663 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // y
7643 /* 5667 */ GIR_BuildMI, /*InsnID*/2, /*Opcode*/GIMT_Encode2(TargetOpcode::G_MERGE_VALUES),
7644 /* 5671 */ GIR_Copy, /*NewInsnID*/2, /*OldInsnID*/0, /*OpIdx*/0, // dst
7645 /* 5675 */ GIR_AddSimpleTempRegister, /*InsnID*/2, /*TempRegID*/2,
7646 /* 5678 */ GIR_AddSimpleTempRegister, /*InsnID*/2, /*TempRegID*/1,
7647 /* 5681 */ GIR_EraseRootFromParent_Done,
7648 /* 5682 */ // Label 248: @5682
7649 /* 5682 */ GIM_Try, /*On fail goto*//*Label 249*/ GIMT_Encode4(5706), // Rule ID 130 //
7650 /* 5687 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule94Enabled),
7651 /* 5690 */ // MIs[0] dst
7652 /* 5690 */ // No operand predicates
7653 /* 5690 */ // MIs[0] src
7654 /* 5690 */ // No operand predicates
7655 /* 5690 */ // MIs[0] src
7656 /* 5690 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
7657 /* 5695 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7658 /* 5700 */ // Combiner Rule #94: binop_same_val @ [__binop_same_val_match_0[1]]
7659 /* 5700 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7660 /* 5705 */ GIR_EraseRootFromParent_Done,
7661 /* 5706 */ // Label 249: @5706
7662 /* 5706 */ GIM_Try, /*On fail goto*//*Label 250*/ GIMT_Encode4(5740), // Rule ID 474 //
7663 /* 5711 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule339Enabled),
7664 /* 5714 */ // MIs[0] dst
7665 /* 5714 */ // No operand predicates
7666 /* 5714 */ // MIs[0] x
7667 /* 5714 */ // No operand predicates
7668 /* 5714 */ // MIs[0] __combine_or_of_and_match_0.and
7669 /* 5714 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
7670 /* 5718 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_AND),
7671 /* 5722 */ // MIs[1] x
7672 /* 5722 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/1, /*OpIdx*/1, /*OtherMI*/0, /*OtherOpIdx*/1,
7673 /* 5727 */ // MIs[1] y
7674 /* 5727 */ // No operand predicates
7675 /* 5727 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7676 /* 5732 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7677 /* 5734 */ // Combiner Rule #339: combine_or_of_and @ [__combine_or_of_and_match_0[2]]
7678 /* 5734 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7679 /* 5739 */ GIR_EraseRootFromParent_Done,
7680 /* 5740 */ // Label 250: @5740
7681 /* 5740 */ GIM_Try, /*On fail goto*//*Label 251*/ GIMT_Encode4(5774), // Rule ID 475 //
7682 /* 5745 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule339Enabled),
7683 /* 5748 */ // MIs[0] dst
7684 /* 5748 */ // No operand predicates
7685 /* 5748 */ // MIs[0] x
7686 /* 5748 */ // No operand predicates
7687 /* 5748 */ // MIs[0] __combine_or_of_and_match_0.and
7688 /* 5748 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
7689 /* 5752 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_AND),
7690 /* 5756 */ // MIs[1] y
7691 /* 5756 */ // No operand predicates
7692 /* 5756 */ // MIs[1] x
7693 /* 5756 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/1, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
7694 /* 5761 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7695 /* 5766 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7696 /* 5768 */ // Combiner Rule #339: combine_or_of_and @ [__combine_or_of_and_match_0[3]]
7697 /* 5768 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7698 /* 5773 */ GIR_EraseRootFromParent_Done,
7699 /* 5774 */ // Label 251: @5774
7700 /* 5774 */ GIM_Try, /*On fail goto*//*Label 252*/ GIMT_Encode4(5795), // Rule ID 90 //
7701 /* 5779 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule79Enabled),
7702 /* 5782 */ // MIs[0] dst
7703 /* 5782 */ // No operand predicates
7704 /* 5782 */ // MIs[0] __undef_to_negative_one_match_0.x
7705 /* 5782 */ // No operand predicates
7706 /* 5782 */ // MIs[0] __undef_to_negative_one_match_0.y
7707 /* 5782 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
7708 /* 5786 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
7709 /* 5790 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7710 /* 5792 */ // Combiner Rule #79: undef_to_negative_one @ [__undef_to_negative_one_match_0[1]]
7711 /* 5792 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner32),
7712 /* 5795 */ // Label 252: @5795
7713 /* 5795 */ GIM_Try, /*On fail goto*//*Label 253*/ GIMT_Encode4(5818), // Rule ID 121 //
7714 /* 5800 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
7715 /* 5803 */ // MIs[0] dst
7716 /* 5803 */ // No operand predicates
7717 /* 5803 */ // MIs[0] lhs
7718 /* 5803 */ // No operand predicates
7719 /* 5803 */ // MIs[0] Operand 2
7720 /* 5803 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
7721 /* 5807 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7722 /* 5812 */ // Combiner Rule #93: right_identity_zero @ [__right_identity_zero_match_0[2]]
7723 /* 5812 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7724 /* 5817 */ GIR_EraseRootFromParent_Done,
7725 /* 5818 */ // Label 253: @5818
7726 /* 5818 */ GIM_Try, /*On fail goto*//*Label 254*/ GIMT_Encode4(5829), // Rule ID 166 //
7727 /* 5823 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule119Enabled),
7728 /* 5826 */ // MIs[0] root
7729 /* 5826 */ // No operand predicates
7730 /* 5826 */ // MIs[0] mi.x
7731 /* 5826 */ // No operand predicates
7732 /* 5826 */ // MIs[0] mi.y
7733 /* 5826 */ // No operand predicates
7734 /* 5826 */ // Combiner Rule #119: hoist_logic_op_with_same_opcode_hands @ [mi[1]]
7735 /* 5826 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner38),
7736 /* 5829 */ // Label 254: @5829
7737 /* 5829 */ GIM_Try, /*On fail goto*//*Label 255*/ GIMT_Encode4(5840), // Rule ID 201 //
7738 /* 5834 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule151Enabled),
7739 /* 5837 */ // MIs[0] dst
7740 /* 5837 */ // No operand predicates
7741 /* 5837 */ // MIs[0] src1
7742 /* 5837 */ // No operand predicates
7743 /* 5837 */ // MIs[0] src2
7744 /* 5837 */ // No operand predicates
7745 /* 5837 */ // Combiner Rule #151: redundant_or
7746 /* 5837 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner56),
7747 /* 5840 */ // Label 255: @5840
7748 /* 5840 */ GIM_Try, /*On fail goto*//*Label 256*/ GIMT_Encode4(5851), // Rule ID 255 //
7749 /* 5845 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule195Enabled),
7750 /* 5848 */ // MIs[0] dst
7751 /* 5848 */ // No operand predicates
7752 /* 5848 */ // MIs[0] src1
7753 /* 5848 */ // No operand predicates
7754 /* 5848 */ // MIs[0] src2
7755 /* 5848 */ // No operand predicates
7756 /* 5848 */ // Combiner Rule #195: load_or_combine
7757 /* 5848 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner71),
7758 /* 5851 */ // Label 256: @5851
7759 /* 5851 */ GIM_Try, /*On fail goto*//*Label 257*/ GIMT_Encode4(5862), // Rule ID 260 //
7760 /* 5856 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule197Enabled),
7761 /* 5859 */ // MIs[0] dst
7762 /* 5859 */ // No operand predicates
7763 /* 5859 */ // MIs[0] src1
7764 /* 5859 */ // No operand predicates
7765 /* 5859 */ // MIs[0] src2
7766 /* 5859 */ // No operand predicates
7767 /* 5859 */ // Combiner Rule #197: funnel_shift_from_or_shift
7768 /* 5859 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner73),
7769 /* 5862 */ // Label 257: @5862
7770 /* 5862 */ GIM_Try, /*On fail goto*//*Label 258*/ GIMT_Encode4(5873), // Rule ID 287 //
7771 /* 5867 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule213Enabled),
7772 /* 5870 */ // MIs[0] d
7773 /* 5870 */ // No operand predicates
7774 /* 5870 */ // MIs[0] mi.src0
7775 /* 5870 */ // No operand predicates
7776 /* 5870 */ // MIs[0] mi.src1
7777 /* 5870 */ // No operand predicates
7778 /* 5870 */ // Combiner Rule #213: constant_fold_binop @ [mi[6]]
7779 /* 5870 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner79),
7780 /* 5873 */ // Label 258: @5873
7781 /* 5873 */ GIM_Try, /*On fail goto*//*Label 259*/ GIMT_Encode4(5884), // Rule ID 346 //
7782 /* 5878 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule236Enabled),
7783 /* 5881 */ // MIs[0] root
7784 /* 5881 */ // No operand predicates
7785 /* 5881 */ // MIs[0] mi.x
7786 /* 5881 */ // No operand predicates
7787 /* 5881 */ // MIs[0] mi.y
7788 /* 5881 */ // No operand predicates
7789 /* 5881 */ // Combiner Rule #236: fold_binop_into_select_a @ [mi[4]]
7790 /* 5881 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
7791 /* 5884 */ // Label 259: @5884
7792 /* 5884 */ GIM_Try, /*On fail goto*//*Label 260*/ GIMT_Encode4(5895), // Rule ID 413 //
7793 /* 5889 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule283Enabled),
7794 /* 5892 */ // MIs[0] dst
7795 /* 5892 */ // No operand predicates
7796 /* 5892 */ // MIs[0] src1
7797 /* 5892 */ // No operand predicates
7798 /* 5892 */ // MIs[0] src2
7799 /* 5892 */ // No operand predicates
7800 /* 5892 */ // Combiner Rule #283: match_ors
7801 /* 5892 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner104),
7802 /* 5895 */ // Label 260: @5895
7803 /* 5895 */ GIM_Try, /*On fail goto*//*Label 261*/ GIMT_Encode4(5906), // Rule ID 460 //
7804 /* 5900 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule328Enabled),
7805 /* 5903 */ // MIs[0] root
7806 /* 5903 */ // No operand predicates
7807 /* 5903 */ // MIs[0] mi.x
7808 /* 5903 */ // No operand predicates
7809 /* 5903 */ // MIs[0] mi.y
7810 /* 5903 */ // No operand predicates
7811 /* 5903 */ // Combiner Rule #328: binop_with_neg @ [mi[1]]
7812 /* 5903 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner128),
7813 /* 5906 */ // Label 261: @5906
7814 /* 5906 */ GIM_Reject,
7815 /* 5907 */ // Label 10: @5907
7816 /* 5907 */ GIM_Try, /*On fail goto*//*Label 262*/ GIMT_Encode4(5967), // Rule ID 13 //
7817 /* 5912 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule13Enabled),
7818 /* 5915 */ // MIs[0] root
7819 /* 5915 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
7820 /* 5919 */ // MIs[0] add
7821 /* 5919 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7822 /* 5923 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
7823 /* 5927 */ // MIs[1] A
7824 /* 5927 */ // No operand predicates
7825 /* 5927 */ // MIs[1] Operand 2
7826 /* 5927 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/2, 255,
7827 /* 5931 */ // MIs[0] Operand 2
7828 /* 5931 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 255,
7829 /* 5935 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner1),
7830 /* 5939 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7831 /* 5941 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
7832 /* 5944 */ GIR_BuildConstant, /*TempRegID*/0, /*Val*/GIMT_Encode8(0),
7833 /* 5954 */ // Combiner Rule #13: NotAPlusNegOne
7834 /* 5954 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
7835 /* 5957 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
7836 /* 5959 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/0,
7837 /* 5962 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // A
7838 /* 5966 */ GIR_EraseRootFromParent_Done,
7839 /* 5967 */ // Label 262: @5967
7840 /* 5967 */ GIM_Try, /*On fail goto*//*Label 263*/ GIMT_Encode4(5992), // Rule ID 387 //
7841 /* 5972 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule257Enabled),
7842 /* 5975 */ // MIs[0] dst
7843 /* 5975 */ // No operand predicates
7844 /* 5975 */ // MIs[0] lhs
7845 /* 5975 */ // No operand predicates
7846 /* 5975 */ // MIs[0] rhs
7847 /* 5975 */ // No operand predicates
7848 /* 5975 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner51),
7849 /* 5979 */ // Combiner Rule #257: G_XOR_commute_constant_to_rhs
7850 /* 5979 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_XOR),
7851 /* 5982 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
7852 /* 5984 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
7853 /* 5986 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
7854 /* 5988 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
7855 /* 5991 */ GIR_EraseRootFromParent_Done,
7856 /* 5992 */ // Label 263: @5992
7857 /* 5992 */ GIM_Try, /*On fail goto*//*Label 264*/ GIMT_Encode4(6016), // Rule ID 107 //
7858 /* 5997 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule84Enabled),
7859 /* 6000 */ // MIs[0] dst
7860 /* 6000 */ // No operand predicates
7861 /* 6000 */ // MIs[0] __propagate_undef_any_op_match_0.x
7862 /* 6000 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7863 /* 6004 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
7864 /* 6008 */ // MIs[0] __propagate_undef_any_op_match_0.y
7865 /* 6008 */ // No operand predicates
7866 /* 6008 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7867 /* 6010 */ // Combiner Rule #84: propagate_undef_any_op @ [__propagate_undef_any_op_match_0[2]]
7868 /* 6010 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
7869 /* 6013 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
7870 /* 6015 */ GIR_EraseRootFromParent_Done,
7871 /* 6016 */ // Label 264: @6016
7872 /* 6016 */ GIM_Try, /*On fail goto*//*Label 265*/ GIMT_Encode4(6055), // Rule ID 132 //
7873 /* 6021 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule95Enabled),
7874 /* 6024 */ // MIs[0] dst
7875 /* 6024 */ // No operand predicates
7876 /* 6024 */ // MIs[0] x
7877 /* 6024 */ GIM_RecordRegType, /*MI*/0, /*Op*/1, /*TempTypeIdx*/255,
7878 /* 6028 */ // MIs[0] x
7879 /* 6028 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
7880 /* 6033 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
7881 /* 6036 */ GIR_BuildConstant, /*TempRegID*/0, /*Val*/GIMT_Encode8(0),
7882 /* 6046 */ // Combiner Rule #95: same_val_zero @ [__same_val_zero_match_0[1]]
7883 /* 6046 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::COPY),
7884 /* 6049 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
7885 /* 6051 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/0,
7886 /* 6054 */ GIR_EraseRootFromParent_Done,
7887 /* 6055 */ // Label 265: @6055
7888 /* 6055 */ GIM_Try, /*On fail goto*//*Label 266*/ GIMT_Encode4(6079), // Rule ID 110 //
7889 /* 6060 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule84Enabled),
7890 /* 6063 */ // MIs[0] dst
7891 /* 6063 */ // No operand predicates
7892 /* 6063 */ // MIs[0] __propagate_undef_any_op_match_0.x
7893 /* 6063 */ // No operand predicates
7894 /* 6063 */ // MIs[0] __propagate_undef_any_op_match_0.y
7895 /* 6063 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
7896 /* 6067 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
7897 /* 6071 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7898 /* 6073 */ // Combiner Rule #84: propagate_undef_any_op @ [__propagate_undef_any_op_match_0[5]]
7899 /* 6073 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
7900 /* 6076 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
7901 /* 6078 */ GIR_EraseRootFromParent_Done,
7902 /* 6079 */ // Label 266: @6079
7903 /* 6079 */ GIM_Try, /*On fail goto*//*Label 267*/ GIMT_Encode4(6102), // Rule ID 122 //
7904 /* 6084 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
7905 /* 6087 */ // MIs[0] dst
7906 /* 6087 */ // No operand predicates
7907 /* 6087 */ // MIs[0] lhs
7908 /* 6087 */ // No operand predicates
7909 /* 6087 */ // MIs[0] Operand 2
7910 /* 6087 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
7911 /* 6091 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7912 /* 6096 */ // Combiner Rule #93: right_identity_zero @ [__right_identity_zero_match_0[3]]
7913 /* 6096 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7914 /* 6101 */ GIR_EraseRootFromParent_Done,
7915 /* 6102 */ // Label 267: @6102
7916 /* 6102 */ GIM_Try, /*On fail goto*//*Label 268*/ GIMT_Encode4(6113), // Rule ID 167 //
7917 /* 6107 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule119Enabled),
7918 /* 6110 */ // MIs[0] root
7919 /* 6110 */ // No operand predicates
7920 /* 6110 */ // MIs[0] mi.x
7921 /* 6110 */ // No operand predicates
7922 /* 6110 */ // MIs[0] mi.y
7923 /* 6110 */ // No operand predicates
7924 /* 6110 */ // Combiner Rule #119: hoist_logic_op_with_same_opcode_hands @ [mi[2]]
7925 /* 6110 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner38),
7926 /* 6113 */ // Label 268: @6113
7927 /* 6113 */ GIM_Try, /*On fail goto*//*Label 269*/ GIMT_Encode4(6124), // Rule ID 208 //
7928 /* 6118 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule158Enabled),
7929 /* 6121 */ // MIs[0] dst
7930 /* 6121 */ // No operand predicates
7931 /* 6121 */ // MIs[0] src1
7932 /* 6121 */ // No operand predicates
7933 /* 6121 */ // MIs[0] src2
7934 /* 6121 */ // No operand predicates
7935 /* 6121 */ // Combiner Rule #158: not_cmp_fold
7936 /* 6121 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner61),
7937 /* 6124 */ // Label 269: @6124
7938 /* 6124 */ GIM_Try, /*On fail goto*//*Label 270*/ GIMT_Encode4(6135), // Rule ID 244 //
7939 /* 6129 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule190Enabled),
7940 /* 6132 */ // MIs[0] dst
7941 /* 6132 */ // No operand predicates
7942 /* 6132 */ // MIs[0] src1
7943 /* 6132 */ // No operand predicates
7944 /* 6132 */ // MIs[0] src2
7945 /* 6132 */ // No operand predicates
7946 /* 6132 */ // Combiner Rule #190: xor_of_and_with_same_reg
7947 /* 6132 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner68),
7948 /* 6135 */ // Label 270: @6135
7949 /* 6135 */ GIM_Try, /*On fail goto*//*Label 271*/ GIMT_Encode4(6146), // Rule ID 290 //
7950 /* 6140 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule213Enabled),
7951 /* 6143 */ // MIs[0] d
7952 /* 6143 */ // No operand predicates
7953 /* 6143 */ // MIs[0] mi.src0
7954 /* 6143 */ // No operand predicates
7955 /* 6143 */ // MIs[0] mi.src1
7956 /* 6143 */ // No operand predicates
7957 /* 6143 */ // Combiner Rule #213: constant_fold_binop @ [mi[9]]
7958 /* 6143 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner79),
7959 /* 6146 */ // Label 271: @6146
7960 /* 6146 */ GIM_Try, /*On fail goto*//*Label 272*/ GIMT_Encode4(6157), // Rule ID 347 //
7961 /* 6151 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule236Enabled),
7962 /* 6154 */ // MIs[0] root
7963 /* 6154 */ // No operand predicates
7964 /* 6154 */ // MIs[0] mi.x
7965 /* 6154 */ // No operand predicates
7966 /* 6154 */ // MIs[0] mi.y
7967 /* 6154 */ // No operand predicates
7968 /* 6154 */ // Combiner Rule #236: fold_binop_into_select_a @ [mi[5]]
7969 /* 6154 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
7970 /* 6157 */ // Label 272: @6157
7971 /* 6157 */ GIM_Try, /*On fail goto*//*Label 273*/ GIMT_Encode4(6168), // Rule ID 461 //
7972 /* 6162 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule328Enabled),
7973 /* 6165 */ // MIs[0] root
7974 /* 6165 */ // No operand predicates
7975 /* 6165 */ // MIs[0] mi.x
7976 /* 6165 */ // No operand predicates
7977 /* 6165 */ // MIs[0] mi.y
7978 /* 6165 */ // No operand predicates
7979 /* 6165 */ // Combiner Rule #328: binop_with_neg @ [mi[2]]
7980 /* 6165 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner128),
7981 /* 6168 */ // Label 273: @6168
7982 /* 6168 */ GIM_Reject,
7983 /* 6169 */ // Label 11: @6169
7984 /* 6169 */ GIM_Try, /*On fail goto*//*Label 274*/ GIMT_Encode4(6183), // Rule ID 162 //
7985 /* 6174 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule117Enabled),
7986 /* 6177 */ GIM_CheckNumOperandsGE, /*MI*/0, /*Expected*/2,
7987 /* 6180 */ // MIs[0] dst
7988 /* 6180 */ // No operand predicates
7989 /* 6180 */ // MIs[0] srcs
7990 /* 6180 */ // No operand predicates
7991 /* 6180 */ // Combiner Rule #117: extend_through_phis
7992 /* 6180 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner37),
7993 /* 6183 */ // Label 274: @6183
7994 /* 6183 */ GIM_Reject,
7995 /* 6184 */ // Label 12: @6184
7996 /* 6184 */ GIM_Try, /*On fail goto*//*Label 275*/ GIMT_Encode4(6195), // Rule ID 429 //
7997 /* 6189 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule299Enabled),
7998 /* 6192 */ // Combiner Rule #299: unmerge_anyext_build_vector; wip_match_opcode 'G_UNMERGE_VALUES'
7999 /* 6192 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner114),
8000 /* 6195 */ // Label 275: @6195
8001 /* 6195 */ GIM_Try, /*On fail goto*//*Label 276*/ GIMT_Encode4(6206), // Rule ID 430 //
8002 /* 6200 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule300Enabled),
8003 /* 6203 */ // Combiner Rule #300: unmerge_merge; wip_match_opcode 'G_UNMERGE_VALUES'
8004 /* 6203 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner115),
8005 /* 6206 */ // Label 276: @6206
8006 /* 6206 */ GIM_Try, /*On fail goto*//*Label 277*/ GIMT_Encode4(6217), // Rule ID 432 //
8007 /* 6211 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule302Enabled),
8008 /* 6214 */ // Combiner Rule #302: unmerge_cst; wip_match_opcode 'G_UNMERGE_VALUES'
8009 /* 6214 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner117),
8010 /* 6217 */ // Label 277: @6217
8011 /* 6217 */ GIM_Try, /*On fail goto*//*Label 278*/ GIMT_Encode4(6228), // Rule ID 433 //
8012 /* 6222 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule303Enabled),
8013 /* 6225 */ // Combiner Rule #303: unmerge_undef; wip_match_opcode 'G_UNMERGE_VALUES'
8014 /* 6225 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner118),
8015 /* 6228 */ // Label 278: @6228
8016 /* 6228 */ GIM_Try, /*On fail goto*//*Label 279*/ GIMT_Encode4(6239), // Rule ID 434 //
8017 /* 6233 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule304Enabled),
8018 /* 6236 */ // Combiner Rule #304: unmerge_dead_to_trunc; wip_match_opcode 'G_UNMERGE_VALUES'
8019 /* 6236 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
8020 /* 6239 */ // Label 279: @6239
8021 /* 6239 */ GIM_Try, /*On fail goto*//*Label 280*/ GIMT_Encode4(6250), // Rule ID 435 //
8022 /* 6244 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule305Enabled),
8023 /* 6247 */ // Combiner Rule #305: unmerge_zext_to_zext; wip_match_opcode 'G_UNMERGE_VALUES'
8024 /* 6247 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner120),
8025 /* 6250 */ // Label 280: @6250
8026 /* 6250 */ GIM_Reject,
8027 /* 6251 */ // Label 13: @6251
8028 /* 6251 */ GIM_Try, /*On fail goto*//*Label 281*/ GIMT_Encode4(6265), // Rule ID 431 //
8029 /* 6256 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule301Enabled),
8030 /* 6259 */ GIM_CheckNumOperandsGE, /*MI*/0, /*Expected*/2,
8031 /* 6262 */ // MIs[0] dst
8032 /* 6262 */ // No operand predicates
8033 /* 6262 */ // MIs[0] merge_srcs
8034 /* 6262 */ // No operand predicates
8035 /* 6262 */ // Combiner Rule #301: merge_unmerge
8036 /* 6262 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner116),
8037 /* 6265 */ // Label 281: @6265
8038 /* 6265 */ GIM_Try, /*On fail goto*//*Label 282*/ GIMT_Encode4(6345),
8039 /* 6270 */ GIM_CheckNumOperands, /*MI*/0, /*Expected*/3,
8040 /* 6273 */ GIM_Try, /*On fail goto*//*Label 283*/ GIMT_Encode4(6303), // Rule ID 436 //
8041 /* 6278 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule306Enabled),
8042 /* 6281 */ // MIs[0] root
8043 /* 6281 */ // No operand predicates
8044 /* 6281 */ // MIs[0] x
8045 /* 6281 */ // No operand predicates
8046 /* 6281 */ // MIs[0] undef
8047 /* 6281 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
8048 /* 6285 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
8049 /* 6289 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner53),
8050 /* 6293 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8051 /* 6295 */ // Combiner Rule #306: merge_of_x_and_undef
8052 /* 6295 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ANYEXT),
8053 /* 6298 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
8054 /* 6300 */ GIR_RootToRootCopy, /*OpIdx*/1, // x
8055 /* 6302 */ GIR_EraseRootFromParent_Done,
8056 /* 6303 */ // Label 283: @6303
8057 /* 6303 */ GIM_Try, /*On fail goto*//*Label 284*/ GIMT_Encode4(6344), // Rule ID 437 //
8058 /* 6308 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule307Enabled),
8059 /* 6311 */ // MIs[0] root
8060 /* 6311 */ // No operand predicates
8061 /* 6311 */ // MIs[0] x
8062 /* 6311 */ // No operand predicates
8063 /* 6311 */ // MIs[0] zero
8064 /* 6311 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
8065 /* 6315 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
8066 /* 6319 */ // MIs[1] Operand 1
8067 /* 6319 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0),
8068 /* 6330 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner54),
8069 /* 6334 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8070 /* 6336 */ // Combiner Rule #307: merge_of_x_and_zero
8071 /* 6336 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ZEXT),
8072 /* 6339 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
8073 /* 6341 */ GIR_RootToRootCopy, /*OpIdx*/1, // x
8074 /* 6343 */ GIR_EraseRootFromParent_Done,
8075 /* 6344 */ // Label 284: @6344
8076 /* 6344 */ GIM_Reject,
8077 /* 6345 */ // Label 282: @6345
8078 /* 6345 */ GIM_Reject,
8079 /* 6346 */ // Label 14: @6346
8080 /* 6346 */ GIM_Try, /*On fail goto*//*Label 285*/ GIMT_Encode4(6417),
8081 /* 6351 */ GIM_CheckNumOperandsGE, /*MI*/0, /*Expected*/2,
8082 /* 6354 */ GIM_Try, /*On fail goto*//*Label 286*/ GIMT_Encode4(6372), // Rule ID 112 //
8083 /* 6359 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule86Enabled),
8084 /* 6362 */ // MIs[0] root
8085 /* 6362 */ // No operand predicates
8086 /* 6362 */ // MIs[0] srcs
8087 /* 6362 */ // No operand predicates
8088 /* 6362 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner8),
8089 /* 6366 */ // Combiner Rule #86: propagate_undef_all_ops_build_vector
8090 /* 6366 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
8091 /* 6369 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
8092 /* 6371 */ GIR_EraseRootFromParent_Done,
8093 /* 6372 */ // Label 286: @6372
8094 /* 6372 */ GIM_Try, /*On fail goto*//*Label 287*/ GIMT_Encode4(6383), // Rule ID 77 //
8095 /* 6377 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule73Enabled),
8096 /* 6380 */ // MIs[0] dst
8097 /* 6380 */ // No operand predicates
8098 /* 6380 */ // MIs[0] srcs
8099 /* 6380 */ // No operand predicates
8100 /* 6380 */ // Combiner Rule #73: extract_all_elts_from_build_vector
8101 /* 6380 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner26),
8102 /* 6383 */ // Label 287: @6383
8103 /* 6383 */ GIM_Try, /*On fail goto*//*Label 288*/ GIMT_Encode4(6394), // Rule ID 152 //
8104 /* 6388 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule107Enabled),
8105 /* 6391 */ // MIs[0] build_vector
8106 /* 6391 */ // No operand predicates
8107 /* 6391 */ // MIs[0] srcs
8108 /* 6391 */ // No operand predicates
8109 /* 6391 */ // Combiner Rule #107: buildvector_identity_fold_bv
8110 /* 6391 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner34),
8111 /* 6394 */ // Label 288: @6394
8112 /* 6394 */ GIM_Try, /*On fail goto*//*Label 289*/ GIMT_Encode4(6405), // Rule ID 428 //
8113 /* 6399 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule298Enabled),
8114 /* 6402 */ // MIs[0] dst
8115 /* 6402 */ // No operand predicates
8116 /* 6402 */ // MIs[0] unused
8117 /* 6402 */ // No operand predicates
8118 /* 6402 */ // Combiner Rule #298: combine_use_vector_truncate
8119 /* 6402 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner113),
8120 /* 6405 */ // Label 289: @6405
8121 /* 6405 */ GIM_Try, /*On fail goto*//*Label 290*/ GIMT_Encode4(6416), // Rule ID 438 //
8122 /* 6410 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule308Enabled),
8123 /* 6413 */ // MIs[0] dst
8124 /* 6413 */ // No operand predicates
8125 /* 6413 */ // MIs[0] unused
8126 /* 6413 */ // No operand predicates
8127 /* 6413 */ // Combiner Rule #308: combine_build_unmerge
8128 /* 6413 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner121),
8129 /* 6416 */ // Label 290: @6416
8130 /* 6416 */ GIM_Reject,
8131 /* 6417 */ // Label 285: @6417
8132 /* 6417 */ GIM_Reject,
8133 /* 6418 */ // Label 15: @6418
8134 /* 6418 */ GIM_Try, /*On fail goto*//*Label 291*/ GIMT_Encode4(6432), // Rule ID 153 //
8135 /* 6423 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule108Enabled),
8136 /* 6426 */ GIM_CheckNumOperandsGE, /*MI*/0, /*Expected*/2,
8137 /* 6429 */ // MIs[0] build_vector
8138 /* 6429 */ // No operand predicates
8139 /* 6429 */ // MIs[0] srcs
8140 /* 6429 */ // No operand predicates
8141 /* 6429 */ // Combiner Rule #108: buildvector_identity_fold_bvt
8142 /* 6429 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner34),
8143 /* 6432 */ // Label 291: @6432
8144 /* 6432 */ GIM_Reject,
8145 /* 6433 */ // Label 16: @6433
8146 /* 6433 */ GIM_Try, /*On fail goto*//*Label 292*/ GIMT_Encode4(6447), // Rule ID 421 //
8147 /* 6438 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule291Enabled),
8148 /* 6441 */ GIM_CheckNumOperandsGE, /*MI*/0, /*Expected*/2,
8149 /* 6444 */ // MIs[0] dst
8150 /* 6444 */ // No operand predicates
8151 /* 6444 */ // MIs[0] srcs
8152 /* 6444 */ // No operand predicates
8153 /* 6444 */ // Combiner Rule #291: combine_concat_vector
8154 /* 6444 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner106),
8155 /* 6447 */ // Label 292: @6447
8156 /* 6447 */ GIM_Reject,
8157 /* 6448 */ // Label 17: @6448
8158 /* 6448 */ GIM_Try, /*On fail goto*//*Label 293*/ GIMT_Encode4(6480), // Rule ID 143 //
8159 /* 6453 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule99Enabled),
8160 /* 6456 */ // MIs[0] dst
8161 /* 6456 */ // No operand predicates
8162 /* 6456 */ // MIs[0] t
8163 /* 6456 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8164 /* 6460 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_INTTOPTR),
8165 /* 6464 */ // MIs[1] ptr
8166 /* 6464 */ // No operand predicates
8167 /* 6464 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner15),
8168 /* 6468 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8169 /* 6470 */ // Combiner Rule #99: i2p_to_p2i_same_size
8170 /* 6470 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::COPY),
8171 /* 6473 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
8172 /* 6475 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // ptr
8173 /* 6479 */ GIR_EraseRootFromParent_Done,
8174 /* 6480 */ // Label 293: @6480
8175 /* 6480 */ GIM_Try, /*On fail goto*//*Label 294*/ GIMT_Encode4(6512), // Rule ID 144 //
8176 /* 6485 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule100Enabled),
8177 /* 6488 */ // MIs[0] dst
8178 /* 6488 */ // No operand predicates
8179 /* 6488 */ // MIs[0] t
8180 /* 6488 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8181 /* 6492 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_INTTOPTR),
8182 /* 6496 */ // MIs[1] ptr
8183 /* 6496 */ // No operand predicates
8184 /* 6496 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner16),
8185 /* 6500 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8186 /* 6502 */ // Combiner Rule #100: i2p_to_p2i_zext
8187 /* 6502 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ZEXT),
8188 /* 6505 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
8189 /* 6507 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // ptr
8190 /* 6511 */ GIR_EraseRootFromParent_Done,
8191 /* 6512 */ // Label 294: @6512
8192 /* 6512 */ GIM_Try, /*On fail goto*//*Label 295*/ GIMT_Encode4(6544), // Rule ID 145 //
8193 /* 6517 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule101Enabled),
8194 /* 6520 */ // MIs[0] dst
8195 /* 6520 */ // No operand predicates
8196 /* 6520 */ // MIs[0] t
8197 /* 6520 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8198 /* 6524 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_INTTOPTR),
8199 /* 6528 */ // MIs[1] ptr
8200 /* 6528 */ // No operand predicates
8201 /* 6528 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner17),
8202 /* 6532 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8203 /* 6534 */ // Combiner Rule #101: i2p_to_p2i_trunc
8204 /* 6534 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_TRUNC),
8205 /* 6537 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
8206 /* 6539 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // ptr
8207 /* 6543 */ GIR_EraseRootFromParent_Done,
8208 /* 6544 */ // Label 295: @6544
8209 /* 6544 */ GIM_Try, /*On fail goto*//*Label 296*/ GIMT_Encode4(6568), // Rule ID 101 //
8210 /* 6549 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule83Enabled),
8211 /* 6552 */ // MIs[0] dst
8212 /* 6552 */ // No operand predicates
8213 /* 6552 */ // MIs[0] __unary_undef_to_undef_match_0.x
8214 /* 6552 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8215 /* 6556 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
8216 /* 6560 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8217 /* 6562 */ // Combiner Rule #83: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[3]]
8218 /* 6562 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
8219 /* 6565 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
8220 /* 6567 */ GIR_EraseRootFromParent_Done,
8221 /* 6568 */ // Label 296: @6568
8222 /* 6568 */ GIM_Reject,
8223 /* 6569 */ // Label 18: @6569
8224 /* 6569 */ GIM_Try, /*On fail goto*//*Label 297*/ GIMT_Encode4(6602), // Rule ID 142 //
8225 /* 6574 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule98Enabled),
8226 /* 6577 */ // MIs[0] dst
8227 /* 6577 */ // No operand predicates
8228 /* 6577 */ // MIs[0] mid
8229 /* 6577 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8230 /* 6581 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_PTRTOINT),
8231 /* 6585 */ // MIs[1] x
8232 /* 6585 */ // No operand predicates
8233 /* 6585 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner14),
8234 /* 6589 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
8235 /* 6594 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8236 /* 6596 */ // Combiner Rule #98: p2i_to_i2p
8237 /* 6596 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
8238 /* 6601 */ GIR_EraseRootFromParent_Done,
8239 /* 6602 */ // Label 297: @6602
8240 /* 6602 */ GIM_Try, /*On fail goto*//*Label 298*/ GIMT_Encode4(6626), // Rule ID 102 //
8241 /* 6607 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule83Enabled),
8242 /* 6610 */ // MIs[0] dst
8243 /* 6610 */ // No operand predicates
8244 /* 6610 */ // MIs[0] __unary_undef_to_undef_match_0.x
8245 /* 6610 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8246 /* 6614 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
8247 /* 6618 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8248 /* 6620 */ // Combiner Rule #83: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[4]]
8249 /* 6620 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
8250 /* 6623 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
8251 /* 6625 */ GIR_EraseRootFromParent_Done,
8252 /* 6626 */ // Label 298: @6626
8253 /* 6626 */ GIM_Reject,
8254 /* 6627 */ // Label 19: @6627
8255 /* 6627 */ GIM_Try, /*On fail goto*//*Label 299*/ GIMT_Encode4(6660), // Rule ID 156 //
8256 /* 6632 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule111Enabled),
8257 /* 6635 */ // MIs[0] dst
8258 /* 6635 */ // No operand predicates
8259 /* 6635 */ // MIs[0] src1
8260 /* 6635 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8261 /* 6639 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BITCAST),
8262 /* 6643 */ // MIs[1] src0
8263 /* 6643 */ // No operand predicates
8264 /* 6643 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner14),
8265 /* 6647 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
8266 /* 6652 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8267 /* 6654 */ // Combiner Rule #111: bitcast_bitcast_fold
8268 /* 6654 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
8269 /* 6659 */ GIR_EraseRootFromParent_Done,
8270 /* 6660 */ // Label 299: @6660
8271 /* 6660 */ GIM_Try, /*On fail goto*//*Label 300*/ GIMT_Encode4(6692), // Rule ID 157 //
8272 /* 6665 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule112Enabled),
8273 /* 6668 */ // MIs[0] dst
8274 /* 6668 */ // No operand predicates
8275 /* 6668 */ // MIs[0] src1
8276 /* 6668 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8277 /* 6672 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BITCAST),
8278 /* 6676 */ // MIs[1] src0
8279 /* 6676 */ // No operand predicates
8280 /* 6676 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner19),
8281 /* 6680 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8282 /* 6682 */ // Combiner Rule #112: bitcast_bitcast_to_bitcast
8283 /* 6682 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_BITCAST),
8284 /* 6685 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
8285 /* 6687 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // src0
8286 /* 6691 */ GIR_EraseRootFromParent_Done,
8287 /* 6692 */ // Label 300: @6692
8288 /* 6692 */ GIM_Try, /*On fail goto*//*Label 301*/ GIMT_Encode4(6716), // Rule ID 99 //
8289 /* 6697 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule83Enabled),
8290 /* 6700 */ // MIs[0] dst
8291 /* 6700 */ // No operand predicates
8292 /* 6700 */ // MIs[0] __unary_undef_to_undef_match_0.x
8293 /* 6700 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8294 /* 6704 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
8295 /* 6708 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8296 /* 6710 */ // Combiner Rule #83: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[1]]
8297 /* 6710 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
8298 /* 6713 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
8299 /* 6715 */ GIR_EraseRootFromParent_Done,
8300 /* 6716 */ // Label 301: @6716
8301 /* 6716 */ GIM_Reject,
8302 /* 6717 */ // Label 20: @6717
8303 /* 6717 */ GIM_Try, /*On fail goto*//*Label 302*/ GIMT_Encode4(6740), // Rule ID 51 //
8304 /* 6722 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule47Enabled),
8305 /* 6725 */ // MIs[0] root
8306 /* 6725 */ // No operand predicates
8307 /* 6725 */ // MIs[0] src
8308 /* 6725 */ // No operand predicates
8309 /* 6725 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner7),
8310 /* 6729 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8311 /* 6734 */ // Combiner Rule #47: freeze_of_non_undef_non_poison
8312 /* 6734 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8313 /* 6739 */ GIR_EraseRootFromParent_Done,
8314 /* 6740 */ // Label 302: @6740
8315 /* 6740 */ GIM_Try, /*On fail goto*//*Label 303*/ GIMT_Encode4(6769), // Rule ID 25 //
8316 /* 6745 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule24Enabled),
8317 /* 6748 */ // MIs[0] dst
8318 /* 6748 */ // No operand predicates
8319 /* 6748 */ // MIs[0] src
8320 /* 6748 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8321 /* 6752 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FREEZE),
8322 /* 6756 */ // MIs[1] __idempotent_prop_match_0.x
8323 /* 6756 */ // No operand predicates
8324 /* 6756 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8325 /* 6761 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8326 /* 6763 */ // Combiner Rule #24: idempotent_prop @ [__idempotent_prop_match_0[0]]
8327 /* 6763 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8328 /* 6768 */ GIR_EraseRootFromParent_Done,
8329 /* 6769 */ // Label 303: @6769
8330 /* 6769 */ GIM_Try, /*On fail goto*//*Label 304*/ GIMT_Encode4(6780), // Rule ID 52 //
8331 /* 6774 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule48Enabled),
8332 /* 6777 */ // MIs[0] dst
8333 /* 6777 */ // No operand predicates
8334 /* 6777 */ // MIs[0] src
8335 /* 6777 */ // No operand predicates
8336 /* 6777 */ // Combiner Rule #48: push_freeze_to_prevent_poison_from_propagating
8337 /* 6777 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner16),
8338 /* 6780 */ // Label 304: @6780
8339 /* 6780 */ GIM_Reject,
8340 /* 6781 */ // Label 21: @6781
8341 /* 6781 */ GIM_Try, /*On fail goto*//*Label 305*/ GIMT_Encode4(6792), // Rule ID 218 //
8342 /* 6786 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule168Enabled),
8343 /* 6789 */ // MIs[0] dst
8344 /* 6789 */ // No operand predicates
8345 /* 6789 */ // MIs[0] src0
8346 /* 6789 */ // No operand predicates
8347 /* 6789 */ // Combiner Rule #168: constant_fold_intrinsic_trunc
8348 /* 6789 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner63),
8349 /* 6792 */ // Label 305: @6792
8350 /* 6792 */ GIM_Reject,
8351 /* 6793 */ // Label 22: @6793
8352 /* 6793 */ GIM_Try, /*On fail goto*//*Label 306*/ GIMT_Encode4(6804), // Rule ID 219 //
8353 /* 6798 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule169Enabled),
8354 /* 6801 */ // MIs[0] dst
8355 /* 6801 */ // No operand predicates
8356 /* 6801 */ // MIs[0] src0
8357 /* 6801 */ // No operand predicates
8358 /* 6801 */ // Combiner Rule #169: constant_fold_intrinsic_round
8359 /* 6801 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner63),
8360 /* 6804 */ // Label 306: @6804
8361 /* 6804 */ GIM_Reject,
8362 /* 6805 */ // Label 23: @6805
8363 /* 6805 */ GIM_Try, /*On fail goto*//*Label 307*/ GIMT_Encode4(6816), // Rule ID 220 //
8364 /* 6810 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule170Enabled),
8365 /* 6813 */ // MIs[0] dst
8366 /* 6813 */ // No operand predicates
8367 /* 6813 */ // MIs[0] src0
8368 /* 6813 */ // No operand predicates
8369 /* 6813 */ // Combiner Rule #170: constant_fold_intrinsic_roundeven
8370 /* 6813 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner63),
8371 /* 6816 */ // Label 307: @6816
8372 /* 6816 */ GIM_Reject,
8373 /* 6817 */ // Label 24: @6817
8374 /* 6817 */ GIM_Try, /*On fail goto*//*Label 308*/ GIMT_Encode4(6828), // Rule ID 78 //
8375 /* 6822 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule74Enabled),
8376 /* 6825 */ // MIs[0] root
8377 /* 6825 */ // No operand predicates
8378 /* 6825 */ // MIs[0] mi.ptr
8379 /* 6825 */ // No operand predicates
8380 /* 6825 */ // Combiner Rule #74: extending_loads @ [mi[0]]
8381 /* 6825 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner27),
8382 /* 6828 */ // Label 308: @6828
8383 /* 6828 */ GIM_Reject,
8384 /* 6829 */ // Label 25: @6829
8385 /* 6829 */ GIM_Try, /*On fail goto*//*Label 309*/ GIMT_Encode4(6840), // Rule ID 79 //
8386 /* 6834 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule74Enabled),
8387 /* 6837 */ // MIs[0] root
8388 /* 6837 */ // No operand predicates
8389 /* 6837 */ // MIs[0] mi.ptr
8390 /* 6837 */ // No operand predicates
8391 /* 6837 */ // Combiner Rule #74: extending_loads @ [mi[1]]
8392 /* 6837 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner27),
8393 /* 6840 */ // Label 309: @6840
8394 /* 6840 */ GIM_Reject,
8395 /* 6841 */ // Label 26: @6841
8396 /* 6841 */ GIM_Try, /*On fail goto*//*Label 310*/ GIMT_Encode4(6852), // Rule ID 80 //
8397 /* 6846 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule74Enabled),
8398 /* 6849 */ // MIs[0] root
8399 /* 6849 */ // No operand predicates
8400 /* 6849 */ // MIs[0] mi.ptr
8401 /* 6849 */ // No operand predicates
8402 /* 6849 */ // Combiner Rule #74: extending_loads @ [mi[2]]
8403 /* 6849 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner27),
8404 /* 6852 */ // Label 310: @6852
8405 /* 6852 */ GIM_Reject,
8406 /* 6853 */ // Label 27: @6853
8407 /* 6853 */ GIM_Try, /*On fail goto*//*Label 311*/ GIMT_Encode4(6876), // Rule ID 114 //
8408 /* 6858 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule88Enabled),
8409 /* 6861 */ // MIs[0] val
8410 /* 6861 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/0, // MIs[1]
8411 /* 6865 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
8412 /* 6869 */ // MIs[0] ptr
8413 /* 6869 */ // No operand predicates
8414 /* 6869 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner10),
8415 /* 6873 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8416 /* 6875 */ // Combiner Rule #88: erase_undef_store
8417 /* 6875 */ GIR_EraseRootFromParent_Done,
8418 /* 6876 */ // Label 311: @6876
8419 /* 6876 */ GIM_Reject,
8420 /* 6877 */ // Label 28: @6877
8421 /* 6877 */ GIM_Try, /*On fail goto*//*Label 312*/ GIMT_Encode4(6898), // Rule ID 65 //
8422 /* 6882 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule61Enabled),
8423 /* 6885 */ // MIs[0] root
8424 /* 6885 */ // No operand predicates
8425 /* 6885 */ // MIs[0] select
8426 /* 6885 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8427 /* 6889 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SELECT),
8428 /* 6893 */ // MIs[1] cond
8429 /* 6893 */ // No operand predicates
8430 /* 6893 */ // MIs[1] true
8431 /* 6893 */ // No operand predicates
8432 /* 6893 */ // MIs[1] false
8433 /* 6893 */ // No operand predicates
8434 /* 6893 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8435 /* 6895 */ // Combiner Rule #61: select_of_anyext
8436 /* 6895 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner20),
8437 /* 6898 */ // Label 312: @6898
8438 /* 6898 */ GIM_Try, /*On fail goto*//*Label 313*/ GIMT_Encode4(6919), // Rule ID 60 //
8439 /* 6903 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule56Enabled),
8440 /* 6906 */ // MIs[0] root
8441 /* 6906 */ // No operand predicates
8442 /* 6906 */ // MIs[0] second
8443 /* 6906 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8444 /* 6910 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ANYEXT),
8445 /* 6914 */ // MIs[1] src
8446 /* 6914 */ // No operand predicates
8447 /* 6914 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8448 /* 6916 */ // Combiner Rule #56: anyext_of_anyext
8449 /* 6916 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner18),
8450 /* 6919 */ // Label 313: @6919
8451 /* 6919 */ GIM_Try, /*On fail goto*//*Label 314*/ GIMT_Encode4(6940), // Rule ID 62 //
8452 /* 6924 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule58Enabled),
8453 /* 6927 */ // MIs[0] root
8454 /* 6927 */ // No operand predicates
8455 /* 6927 */ // MIs[0] second
8456 /* 6927 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8457 /* 6931 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SEXT),
8458 /* 6935 */ // MIs[1] src
8459 /* 6935 */ // No operand predicates
8460 /* 6935 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8461 /* 6937 */ // Combiner Rule #58: anyext_of_sext
8462 /* 6937 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner18),
8463 /* 6940 */ // Label 314: @6940
8464 /* 6940 */ GIM_Try, /*On fail goto*//*Label 315*/ GIMT_Encode4(6961), // Rule ID 61 //
8465 /* 6945 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule57Enabled),
8466 /* 6948 */ // MIs[0] root
8467 /* 6948 */ // No operand predicates
8468 /* 6948 */ // MIs[0] second
8469 /* 6948 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8470 /* 6952 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ZEXT),
8471 /* 6956 */ // MIs[1] src
8472 /* 6956 */ // No operand predicates
8473 /* 6956 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8474 /* 6958 */ // Combiner Rule #57: anyext_of_zext
8475 /* 6958 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner18),
8476 /* 6961 */ // Label 315: @6961
8477 /* 6961 */ GIM_Try, /*On fail goto*//*Label 316*/ GIMT_Encode4(6985), // Rule ID 100 //
8478 /* 6966 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule83Enabled),
8479 /* 6969 */ // MIs[0] dst
8480 /* 6969 */ // No operand predicates
8481 /* 6969 */ // MIs[0] __unary_undef_to_undef_match_0.x
8482 /* 6969 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8483 /* 6973 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
8484 /* 6977 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8485 /* 6979 */ // Combiner Rule #83: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[2]]
8486 /* 6979 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
8487 /* 6982 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
8488 /* 6984 */ GIR_EraseRootFromParent_Done,
8489 /* 6985 */ // Label 316: @6985
8490 /* 6985 */ GIM_Try, /*On fail goto*//*Label 317*/ GIMT_Encode4(6996), // Rule ID 146 //
8491 /* 6990 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule102Enabled),
8492 /* 6993 */ // MIs[0] dst
8493 /* 6993 */ // No operand predicates
8494 /* 6993 */ // MIs[0] src
8495 /* 6993 */ // No operand predicates
8496 /* 6993 */ // Combiner Rule #102: anyext_trunc_fold
8497 /* 6993 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner33),
8498 /* 6996 */ // Label 317: @6996
8499 /* 6996 */ GIM_Try, /*On fail goto*//*Label 318*/ GIMT_Encode4(7007), // Rule ID 315 //
8500 /* 7001 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
8501 /* 7004 */ // MIs[0] dst
8502 /* 7004 */ // No operand predicates
8503 /* 7004 */ // MIs[0] d.src
8504 /* 7004 */ // No operand predicates
8505 /* 7004 */ // Combiner Rule #216: constant_fold_cast_op @ [d[2]]
8506 /* 7004 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner82),
8507 /* 7007 */ // Label 318: @7007
8508 /* 7007 */ GIM_Reject,
8509 /* 7008 */ // Label 29: @7008
8510 /* 7008 */ GIM_SwitchType, /*MI*/0, /*Op*/0, /*[*/GIMT_Encode2(0), GIMT_Encode2(5), /*)*//*default:*//*Label 322*/ GIMT_Encode4(7274),
8511 /* 7019 */ /*GILLT_i16*//*Label 319*/ GIMT_Encode4(7039), GIMT_Encode4(0), GIMT_Encode4(0),
8512 /* 7031 */ /*GILLT_f16*//*Label 320*/ GIMT_Encode4(7106),
8513 /* 7035 */ /*GILLT_bf16*//*Label 321*/ GIMT_Encode4(7190),
8514 /* 7039 */ // Label 319: @7039
8515 /* 7039 */ GIM_Try, /*On fail goto*//*Label 323*/ GIMT_Encode4(7105), // Rule ID 482 //
8516 /* 7044 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule346Enabled),
8517 /* 7047 */ GIM_RootCheckType, /*Op*/1, /*Type*/GILLT_i32,
8518 /* 7050 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8519 /* 7054 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_LSHR),
8520 /* 7058 */ GIM_CheckType, /*MI*/1, /*Op*/2, /*Type*/GILLT_i32,
8521 /* 7062 */ // MIs[1] src
8522 /* 7062 */ // No operand predicates
8523 /* 7062 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
8524 /* 7066 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
8525 /* 7070 */ // MIs[2] Operand 1
8526 /* 7070 */ GIM_CheckLiteralInt, /*MI*/2, /*Op*/1, GIMT_Encode8(16),
8527 /* 7081 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner67),
8528 /* 7085 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
8529 /* 7087 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/GILLT_i16,
8530 /* 7090 */ // Combiner Rule #346: trunc_lshr16_unmerge_i16
8531 /* 7090 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UNMERGE_VALUES),
8532 /* 7093 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
8533 /* 7098 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
8534 /* 7100 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // src
8535 /* 7104 */ GIR_EraseRootFromParent_Done,
8536 /* 7105 */ // Label 323: @7105
8537 /* 7105 */ GIM_Reject,
8538 /* 7106 */ // Label 320: @7106
8539 /* 7106 */ GIM_Try, /*On fail goto*//*Label 324*/ GIMT_Encode4(7189), // Rule ID 483 //
8540 /* 7111 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule347Enabled),
8541 /* 7114 */ GIM_RootCheckType, /*Op*/1, /*Type*/GILLT_i32,
8542 /* 7117 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8543 /* 7121 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_LSHR),
8544 /* 7125 */ GIM_CheckType, /*MI*/1, /*Op*/2, /*Type*/GILLT_i32,
8545 /* 7129 */ // MIs[1] src
8546 /* 7129 */ // No operand predicates
8547 /* 7129 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
8548 /* 7133 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
8549 /* 7137 */ // MIs[2] Operand 1
8550 /* 7137 */ GIM_CheckLiteralInt, /*MI*/2, /*Op*/1, GIMT_Encode8(16),
8551 /* 7148 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner67),
8552 /* 7152 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
8553 /* 7154 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/GILLT_i16,
8554 /* 7157 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/GILLT_i16,
8555 /* 7160 */ // Combiner Rule #347: trunc_lshr16_unmerge_f16
8556 /* 7160 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UNMERGE_VALUES),
8557 /* 7163 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
8558 /* 7168 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/1, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
8559 /* 7173 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // src
8560 /* 7177 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_BITCAST),
8561 /* 7181 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
8562 /* 7185 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/1,
8563 /* 7188 */ GIR_EraseRootFromParent_Done,
8564 /* 7189 */ // Label 324: @7189
8565 /* 7189 */ GIM_Reject,
8566 /* 7190 */ // Label 321: @7190
8567 /* 7190 */ GIM_Try, /*On fail goto*//*Label 325*/ GIMT_Encode4(7273), // Rule ID 484 //
8568 /* 7195 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule348Enabled),
8569 /* 7198 */ GIM_RootCheckType, /*Op*/1, /*Type*/GILLT_i32,
8570 /* 7201 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8571 /* 7205 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_LSHR),
8572 /* 7209 */ GIM_CheckType, /*MI*/1, /*Op*/2, /*Type*/GILLT_i32,
8573 /* 7213 */ // MIs[1] src
8574 /* 7213 */ // No operand predicates
8575 /* 7213 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
8576 /* 7217 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
8577 /* 7221 */ // MIs[2] Operand 1
8578 /* 7221 */ GIM_CheckLiteralInt, /*MI*/2, /*Op*/1, GIMT_Encode8(16),
8579 /* 7232 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner67),
8580 /* 7236 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
8581 /* 7238 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/GILLT_i16,
8582 /* 7241 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/GILLT_i16,
8583 /* 7244 */ // Combiner Rule #348: trunc_lshr16_unmerge_bf16
8584 /* 7244 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UNMERGE_VALUES),
8585 /* 7247 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
8586 /* 7252 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/1, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
8587 /* 7257 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // src
8588 /* 7261 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_BITCAST),
8589 /* 7265 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
8590 /* 7269 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/1,
8591 /* 7272 */ GIR_EraseRootFromParent_Done,
8592 /* 7273 */ // Label 325: @7273
8593 /* 7273 */ GIM_Reject,
8594 /* 7274 */ // Label 322: @7274
8595 /* 7274 */ GIM_Try, /*On fail goto*//*Label 326*/ GIMT_Encode4(7306), // Rule ID 447 //
8596 /* 7279 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule317Enabled),
8597 /* 7282 */ // MIs[0] dst
8598 /* 7282 */ // No operand predicates
8599 /* 7282 */ // MIs[0] min
8600 /* 7282 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8601 /* 7286 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_UMIN),
8602 /* 7290 */ // MIs[1] x
8603 /* 7290 */ // No operand predicates
8604 /* 7290 */ // MIs[1] y
8605 /* 7290 */ // No operand predicates
8606 /* 7290 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner56),
8607 /* 7294 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8608 /* 7296 */ // Combiner Rule #317: trunc_usatu
8609 /* 7296 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_TRUNC_USAT_U),
8610 /* 7299 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
8611 /* 7301 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
8612 /* 7305 */ GIR_EraseRootFromParent_Done,
8613 /* 7306 */ // Label 326: @7306
8614 /* 7306 */ GIM_Try, /*On fail goto*//*Label 327*/ GIMT_Encode4(7327), // Rule ID 66 //
8615 /* 7311 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule62Enabled),
8616 /* 7314 */ // MIs[0] root
8617 /* 7314 */ // No operand predicates
8618 /* 7314 */ // MIs[0] select
8619 /* 7314 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8620 /* 7318 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SELECT),
8621 /* 7322 */ // MIs[1] cond
8622 /* 7322 */ // No operand predicates
8623 /* 7322 */ // MIs[1] true
8624 /* 7322 */ // No operand predicates
8625 /* 7322 */ // MIs[1] false
8626 /* 7322 */ // No operand predicates
8627 /* 7322 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8628 /* 7324 */ // Combiner Rule #62: select_of_truncate
8629 /* 7324 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner20),
8630 /* 7327 */ // Label 327: @7327
8631 /* 7327 */ GIM_Try, /*On fail goto*//*Label 328*/ GIMT_Encode4(7356), // Rule ID 68 //
8632 /* 7332 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule64Enabled),
8633 /* 7335 */ // MIs[0] root
8634 /* 7335 */ // No operand predicates
8635 /* 7335 */ // MIs[0] binop
8636 /* 7335 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8637 /* 7339 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
8638 /* 7343 */ // MIs[1] x
8639 /* 7343 */ // No operand predicates
8640 /* 7343 */ // MIs[1] const
8641 /* 7343 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
8642 /* 7347 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
8643 /* 7351 */ // MIs[2] imm
8644 /* 7351 */ // No operand predicates
8645 /* 7351 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
8646 /* 7353 */ // Combiner Rule #64: narrow_binop_add
8647 /* 7353 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner22),
8648 /* 7356 */ // Label 328: @7356
8649 /* 7356 */ GIM_Try, /*On fail goto*//*Label 329*/ GIMT_Encode4(7385), // Rule ID 71 //
8650 /* 7361 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule67Enabled),
8651 /* 7364 */ // MIs[0] root
8652 /* 7364 */ // No operand predicates
8653 /* 7364 */ // MIs[0] binop
8654 /* 7364 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8655 /* 7368 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_AND),
8656 /* 7372 */ // MIs[1] x
8657 /* 7372 */ // No operand predicates
8658 /* 7372 */ // MIs[1] const
8659 /* 7372 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
8660 /* 7376 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
8661 /* 7380 */ // MIs[2] imm
8662 /* 7380 */ // No operand predicates
8663 /* 7380 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
8664 /* 7382 */ // Combiner Rule #67: narrow_binop_and
8665 /* 7382 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner22),
8666 /* 7385 */ // Label 329: @7385
8667 /* 7385 */ GIM_Try, /*On fail goto*//*Label 330*/ GIMT_Encode4(7414), // Rule ID 70 //
8668 /* 7390 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule66Enabled),
8669 /* 7393 */ // MIs[0] root
8670 /* 7393 */ // No operand predicates
8671 /* 7393 */ // MIs[0] binop
8672 /* 7393 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8673 /* 7397 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_MUL),
8674 /* 7401 */ // MIs[1] x
8675 /* 7401 */ // No operand predicates
8676 /* 7401 */ // MIs[1] const
8677 /* 7401 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
8678 /* 7405 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
8679 /* 7409 */ // MIs[2] imm
8680 /* 7409 */ // No operand predicates
8681 /* 7409 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
8682 /* 7411 */ // Combiner Rule #66: narrow_binop_mul
8683 /* 7411 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner22),
8684 /* 7414 */ // Label 330: @7414
8685 /* 7414 */ GIM_Try, /*On fail goto*//*Label 331*/ GIMT_Encode4(7443), // Rule ID 72 //
8686 /* 7419 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule68Enabled),
8687 /* 7422 */ // MIs[0] root
8688 /* 7422 */ // No operand predicates
8689 /* 7422 */ // MIs[0] binop
8690 /* 7422 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8691 /* 7426 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_OR),
8692 /* 7430 */ // MIs[1] x
8693 /* 7430 */ // No operand predicates
8694 /* 7430 */ // MIs[1] const
8695 /* 7430 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
8696 /* 7434 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
8697 /* 7438 */ // MIs[2] imm
8698 /* 7438 */ // No operand predicates
8699 /* 7438 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
8700 /* 7440 */ // Combiner Rule #68: narrow_binop_or
8701 /* 7440 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner22),
8702 /* 7443 */ // Label 331: @7443
8703 /* 7443 */ GIM_Try, /*On fail goto*//*Label 332*/ GIMT_Encode4(7472), // Rule ID 69 //
8704 /* 7448 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule65Enabled),
8705 /* 7451 */ // MIs[0] root
8706 /* 7451 */ // No operand predicates
8707 /* 7451 */ // MIs[0] binop
8708 /* 7451 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8709 /* 7455 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
8710 /* 7459 */ // MIs[1] x
8711 /* 7459 */ // No operand predicates
8712 /* 7459 */ // MIs[1] const
8713 /* 7459 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
8714 /* 7463 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
8715 /* 7467 */ // MIs[2] imm
8716 /* 7467 */ // No operand predicates
8717 /* 7467 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
8718 /* 7469 */ // Combiner Rule #65: narrow_binop_sub
8719 /* 7469 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner22),
8720 /* 7472 */ // Label 332: @7472
8721 /* 7472 */ GIM_Try, /*On fail goto*//*Label 333*/ GIMT_Encode4(7501), // Rule ID 73 //
8722 /* 7477 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule69Enabled),
8723 /* 7480 */ // MIs[0] root
8724 /* 7480 */ // No operand predicates
8725 /* 7480 */ // MIs[0] binop
8726 /* 7480 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8727 /* 7484 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_XOR),
8728 /* 7488 */ // MIs[1] x
8729 /* 7488 */ // No operand predicates
8730 /* 7488 */ // MIs[1] const
8731 /* 7488 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
8732 /* 7492 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
8733 /* 7496 */ // MIs[2] imm
8734 /* 7496 */ // No operand predicates
8735 /* 7496 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
8736 /* 7498 */ // Combiner Rule #69: narrow_binop_xor
8737 /* 7498 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner22),
8738 /* 7501 */ // Label 333: @7501
8739 /* 7501 */ GIM_Try, /*On fail goto*//*Label 334*/ GIMT_Encode4(7525), // Rule ID 67 //
8740 /* 7506 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule63Enabled),
8741 /* 7509 */ // MIs[0] root
8742 /* 7509 */ // No operand predicates
8743 /* 7509 */ // MIs[0] bv
8744 /* 7509 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8745 /* 7513 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR),
8746 /* 7517 */ GIM_CheckNumOperandsGE, /*MI*/1, /*Expected*/2,
8747 /* 7520 */ // MIs[1] unused
8748 /* 7520 */ // No operand predicates
8749 /* 7520 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8750 /* 7522 */ // Combiner Rule #63: buildvector_of_truncate
8751 /* 7522 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner21),
8752 /* 7525 */ // Label 334: @7525
8753 /* 7525 */ GIM_Try, /*On fail goto*//*Label 335*/ GIMT_Encode4(7546), // Rule ID 55 //
8754 /* 7530 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule51Enabled),
8755 /* 7533 */ // MIs[0] root
8756 /* 7533 */ // No operand predicates
8757 /* 7533 */ // MIs[0] ext
8758 /* 7533 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8759 /* 7537 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ANYEXT),
8760 /* 7541 */ // MIs[1] src
8761 /* 7541 */ // No operand predicates
8762 /* 7541 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8763 /* 7543 */ // Combiner Rule #51: truncate_of_anyext
8764 /* 7543 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner17),
8765 /* 7546 */ // Label 335: @7546
8766 /* 7546 */ GIM_Try, /*On fail goto*//*Label 336*/ GIMT_Encode4(7567), // Rule ID 54 //
8767 /* 7551 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule50Enabled),
8768 /* 7554 */ // MIs[0] root
8769 /* 7554 */ // No operand predicates
8770 /* 7554 */ // MIs[0] ext
8771 /* 7554 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8772 /* 7558 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SEXT),
8773 /* 7562 */ // MIs[1] src
8774 /* 7562 */ // No operand predicates
8775 /* 7562 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8776 /* 7564 */ // Combiner Rule #50: truncate_of_sext
8777 /* 7564 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner17),
8778 /* 7567 */ // Label 336: @7567
8779 /* 7567 */ GIM_Try, /*On fail goto*//*Label 337*/ GIMT_Encode4(7588), // Rule ID 53 //
8780 /* 7572 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule49Enabled),
8781 /* 7575 */ // MIs[0] root
8782 /* 7575 */ // No operand predicates
8783 /* 7575 */ // MIs[0] ext
8784 /* 7575 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8785 /* 7579 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ZEXT),
8786 /* 7583 */ // MIs[1] src
8787 /* 7583 */ // No operand predicates
8788 /* 7583 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8789 /* 7585 */ // Combiner Rule #49: truncate_of_zext
8790 /* 7585 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner17),
8791 /* 7588 */ // Label 337: @7588
8792 /* 7588 */ GIM_Try, /*On fail goto*//*Label 338*/ GIMT_Encode4(7612), // Rule ID 98 //
8793 /* 7593 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule83Enabled),
8794 /* 7596 */ // MIs[0] dst
8795 /* 7596 */ // No operand predicates
8796 /* 7596 */ // MIs[0] __unary_undef_to_undef_match_0.x
8797 /* 7596 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8798 /* 7600 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
8799 /* 7604 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8800 /* 7606 */ // Combiner Rule #83: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[0]]
8801 /* 7606 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
8802 /* 7609 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
8803 /* 7611 */ GIR_EraseRootFromParent_Done,
8804 /* 7612 */ // Label 338: @7612
8805 /* 7612 */ GIM_Try, /*On fail goto*//*Label 339*/ GIMT_Encode4(7633), // Rule ID 74 //
8806 /* 7617 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule70Enabled),
8807 /* 7620 */ // MIs[0] root
8808 /* 7620 */ // No operand predicates
8809 /* 7620 */ // MIs[0] int
8810 /* 7620 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8811 /* 7624 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
8812 /* 7628 */ // MIs[1] imm
8813 /* 7628 */ // No operand predicates
8814 /* 7628 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8815 /* 7630 */ // Combiner Rule #70: integer_of_truncate
8816 /* 7630 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner23),
8817 /* 7633 */ // Label 339: @7633
8818 /* 7633 */ GIM_Try, /*On fail goto*//*Label 340*/ GIMT_Encode4(7644), // Rule ID 154 //
8819 /* 7638 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule109Enabled),
8820 /* 7641 */ // MIs[0] dst
8821 /* 7641 */ // No operand predicates
8822 /* 7641 */ // MIs[0] src
8823 /* 7641 */ // No operand predicates
8824 /* 7641 */ // Combiner Rule #109: trunc_buildvector_fold
8825 /* 7641 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner35),
8826 /* 7644 */ // Label 340: @7644
8827 /* 7644 */ GIM_Try, /*On fail goto*//*Label 341*/ GIMT_Encode4(7655), // Rule ID 155 //
8828 /* 7649 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule110Enabled),
8829 /* 7652 */ // MIs[0] dst
8830 /* 7652 */ // No operand predicates
8831 /* 7652 */ // MIs[0] src
8832 /* 7652 */ // No operand predicates
8833 /* 7652 */ // Combiner Rule #110: trunc_lshr_buildvector_fold
8834 /* 7652 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner36),
8835 /* 7655 */ // Label 341: @7655
8836 /* 7655 */ GIM_Try, /*On fail goto*//*Label 342*/ GIMT_Encode4(7666), // Rule ID 207 //
8837 /* 7660 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule157Enabled),
8838 /* 7663 */ // MIs[0] dst
8839 /* 7663 */ // No operand predicates
8840 /* 7663 */ // MIs[0] src
8841 /* 7663 */ // No operand predicates
8842 /* 7663 */ // Combiner Rule #157: trunc_shift
8843 /* 7663 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner60),
8844 /* 7666 */ // Label 342: @7666
8845 /* 7666 */ GIM_Try, /*On fail goto*//*Label 343*/ GIMT_Encode4(7677), // Rule ID 445 //
8846 /* 7671 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule315Enabled),
8847 /* 7674 */ // MIs[0] dst
8848 /* 7674 */ // No operand predicates
8849 /* 7674 */ // MIs[0] src
8850 /* 7674 */ // No operand predicates
8851 /* 7674 */ // Combiner Rule #315: trunc_ssats
8852 /* 7674 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner124),
8853 /* 7677 */ // Label 343: @7677
8854 /* 7677 */ GIM_Try, /*On fail goto*//*Label 344*/ GIMT_Encode4(7688), // Rule ID 446 //
8855 /* 7682 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule316Enabled),
8856 /* 7685 */ // MIs[0] dst
8857 /* 7685 */ // No operand predicates
8858 /* 7685 */ // MIs[0] src
8859 /* 7685 */ // No operand predicates
8860 /* 7685 */ // Combiner Rule #316: trunc_ssatu
8861 /* 7685 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner125),
8862 /* 7688 */ // Label 344: @7688
8863 /* 7688 */ GIM_Try, /*On fail goto*//*Label 345*/ GIMT_Encode4(7699), // Rule ID 477 //
8864 /* 7693 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule341Enabled),
8865 /* 7696 */ // MIs[0] dst
8866 /* 7696 */ // No operand predicates
8867 /* 7696 */ // MIs[0] src
8868 /* 7696 */ // No operand predicates
8869 /* 7696 */ // Combiner Rule #341: clamp_i64_to_i16
8870 /* 7696 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner130),
8871 /* 7699 */ // Label 345: @7699
8872 /* 7699 */ GIM_Reject,
8873 /* 7700 */ // Label 30: @7700
8874 /* 7700 */ GIM_Try, /*On fail goto*//*Label 346*/ GIMT_Encode4(7732), // Rule ID 448 //
8875 /* 7705 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule318Enabled),
8876 /* 7708 */ // MIs[0] dst
8877 /* 7708 */ // No operand predicates
8878 /* 7708 */ // MIs[0] src
8879 /* 7708 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8880 /* 7712 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FPTOUI),
8881 /* 7716 */ // MIs[1] x
8882 /* 7716 */ // No operand predicates
8883 /* 7716 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner57),
8884 /* 7720 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8885 /* 7722 */ // Combiner Rule #318: truncusatu_to_fptouisat
8886 /* 7722 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FPTOUI_SAT),
8887 /* 7725 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
8888 /* 7727 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
8889 /* 7731 */ GIR_EraseRootFromParent_Done,
8890 /* 7732 */ // Label 346: @7732
8891 /* 7732 */ GIM_Reject,
8892 /* 7733 */ // Label 31: @7733
8893 /* 7733 */ GIM_Try, /*On fail goto*//*Label 347*/ GIMT_Encode4(7754), // Rule ID 59 //
8894 /* 7738 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule55Enabled),
8895 /* 7741 */ // MIs[0] root
8896 /* 7741 */ // No operand predicates
8897 /* 7741 */ // MIs[0] second
8898 /* 7741 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8899 /* 7745 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ANYEXT),
8900 /* 7749 */ // MIs[1] src
8901 /* 7749 */ // No operand predicates
8902 /* 7749 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8903 /* 7751 */ // Combiner Rule #55: sext_of_anyext
8904 /* 7751 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner18),
8905 /* 7754 */ // Label 347: @7754
8906 /* 7754 */ GIM_Try, /*On fail goto*//*Label 348*/ GIMT_Encode4(7775), // Rule ID 58 //
8907 /* 7759 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule54Enabled),
8908 /* 7762 */ // MIs[0] root
8909 /* 7762 */ // No operand predicates
8910 /* 7762 */ // MIs[0] second
8911 /* 7762 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8912 /* 7766 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SEXT),
8913 /* 7770 */ // MIs[1] src
8914 /* 7770 */ // No operand predicates
8915 /* 7770 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8916 /* 7772 */ // Combiner Rule #54: sext_of_sext
8917 /* 7772 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner18),
8918 /* 7775 */ // Label 348: @7775
8919 /* 7775 */ GIM_Try, /*On fail goto*//*Label 349*/ GIMT_Encode4(7796), // Rule ID 422 //
8920 /* 7780 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule292Enabled),
8921 /* 7783 */ // MIs[0] root
8922 /* 7783 */ // No operand predicates
8923 /* 7783 */ // MIs[0] src
8924 /* 7783 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8925 /* 7787 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_TRUNC),
8926 /* 7791 */ // MIs[1] x
8927 /* 7791 */ // No operand predicates
8928 /* 7791 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8929 /* 7793 */ // Combiner Rule #292: sext_trunc
8930 /* 7793 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner107),
8931 /* 7796 */ // Label 349: @7796
8932 /* 7796 */ GIM_Try, /*On fail goto*//*Label 350*/ GIMT_Encode4(7807), // Rule ID 314 //
8933 /* 7801 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
8934 /* 7804 */ // MIs[0] dst
8935 /* 7804 */ // No operand predicates
8936 /* 7804 */ // MIs[0] d.src
8937 /* 7804 */ // No operand predicates
8938 /* 7804 */ // Combiner Rule #216: constant_fold_cast_op @ [d[1]]
8939 /* 7804 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner82),
8940 /* 7807 */ // Label 350: @7807
8941 /* 7807 */ GIM_Reject,
8942 /* 7808 */ // Label 32: @7808
8943 /* 7808 */ GIM_Try, /*On fail goto*//*Label 351*/ GIMT_Encode4(7840), // Rule ID 197 //
8944 /* 7813 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule147Enabled),
8945 /* 7816 */ // MIs[0] dst
8946 /* 7816 */ // No operand predicates
8947 /* 7816 */ // MIs[0] tmp
8948 /* 7816 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8949 /* 7820 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ANYEXT),
8950 /* 7824 */ // MIs[1] src
8951 /* 7824 */ // No operand predicates
8952 /* 7824 */ // MIs[0] amt
8953 /* 7824 */ // No operand predicates
8954 /* 7824 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner30),
8955 /* 7828 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8956 /* 7830 */ // Combiner Rule #147: redundant_aext_sext_inreg
8957 /* 7830 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SEXT),
8958 /* 7833 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
8959 /* 7835 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // src
8960 /* 7839 */ GIR_EraseRootFromParent_Done,
8961 /* 7840 */ // Label 351: @7840
8962 /* 7840 */ GIM_Try, /*On fail goto*//*Label 352*/ GIMT_Encode4(7872), // Rule ID 196 //
8963 /* 7845 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule146Enabled),
8964 /* 7848 */ // MIs[0] dst
8965 /* 7848 */ // No operand predicates
8966 /* 7848 */ // MIs[0] tmp
8967 /* 7848 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8968 /* 7852 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ZEXT),
8969 /* 7856 */ // MIs[1] src
8970 /* 7856 */ // No operand predicates
8971 /* 7856 */ // MIs[0] amt
8972 /* 7856 */ // No operand predicates
8973 /* 7856 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner30),
8974 /* 7860 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8975 /* 7862 */ // Combiner Rule #146: redundant_zext_sext_inreg
8976 /* 7862 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SEXT),
8977 /* 7865 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
8978 /* 7867 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // src
8979 /* 7871 */ GIR_EraseRootFromParent_Done,
8980 /* 7872 */ // Label 352: @7872
8981 /* 7872 */ GIM_Try, /*On fail goto*//*Label 353*/ GIMT_Encode4(7895), // Rule ID 195 //
8982 /* 7877 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule145Enabled),
8983 /* 7880 */ // MIs[0] dst
8984 /* 7880 */ // No operand predicates
8985 /* 7880 */ // MIs[0] src
8986 /* 7880 */ // No operand predicates
8987 /* 7880 */ // MIs[0] sz
8988 /* 7880 */ // No operand predicates
8989 /* 7880 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner29),
8990 /* 7884 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8991 /* 7889 */ // Combiner Rule #145: redundant_sext_inreg
8992 /* 7889 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8993 /* 7894 */ GIR_EraseRootFromParent_Done,
8994 /* 7895 */ // Label 353: @7895
8995 /* 7895 */ GIM_Try, /*On fail goto*//*Label 354*/ GIMT_Encode4(7916), // Rule ID 63 //
8996 /* 7900 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule59Enabled),
8997 /* 7903 */ // MIs[0] dst
8998 /* 7903 */ // No operand predicates
8999 /* 7903 */ // MIs[0] x
9000 /* 7903 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9001 /* 7907 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SEXT_INREG),
9002 /* 7911 */ // MIs[1] src
9003 /* 7911 */ // No operand predicates
9004 /* 7911 */ // MIs[1] a
9005 /* 7911 */ // No operand predicates
9006 /* 7911 */ // MIs[0] b
9007 /* 7911 */ // No operand predicates
9008 /* 7911 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9009 /* 7913 */ // Combiner Rule #59: sext_inreg_of_sext_inreg
9010 /* 7913 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner19),
9011 /* 7916 */ // Label 354: @7916
9012 /* 7916 */ GIM_Try, /*On fail goto*//*Label 355*/ GIMT_Encode4(7956), // Rule ID 199 //
9013 /* 7921 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule149Enabled),
9014 /* 7924 */ // MIs[0] dst
9015 /* 7924 */ // No operand predicates
9016 /* 7924 */ // MIs[0] tmp4
9017 /* 7924 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9018 /* 7928 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ANYEXT),
9019 /* 7932 */ // MIs[1] tmp2
9020 /* 7932 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
9021 /* 7936 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_UNMERGE_VALUES),
9022 /* 7940 */ GIM_CheckNumOperands, /*MI*/2, /*Expected*/3,
9023 /* 7943 */ // MIs[2] tmp3
9024 /* 7943 */ // No operand predicates
9025 /* 7943 */ // MIs[2] tmp1
9026 /* 7943 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/2, /*OpIdx*/2, // MIs[3]
9027 /* 7947 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_ANYEXT),
9028 /* 7951 */ // MIs[3] src
9029 /* 7951 */ // No operand predicates
9030 /* 7951 */ // MIs[0] amt
9031 /* 7951 */ // No operand predicates
9032 /* 7951 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
9033 /* 7953 */ // Combiner Rule #149: redundant_aext_unmerge_sext_inreg
9034 /* 7953 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner54),
9035 /* 7956 */ // Label 355: @7956
9036 /* 7956 */ GIM_Try, /*On fail goto*//*Label 356*/ GIMT_Encode4(7996), // Rule ID 198 //
9037 /* 7961 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule148Enabled),
9038 /* 7964 */ // MIs[0] dst
9039 /* 7964 */ // No operand predicates
9040 /* 7964 */ // MIs[0] tmp4
9041 /* 7964 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9042 /* 7968 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ZEXT),
9043 /* 7972 */ // MIs[1] tmp2
9044 /* 7972 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
9045 /* 7976 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_UNMERGE_VALUES),
9046 /* 7980 */ GIM_CheckNumOperands, /*MI*/2, /*Expected*/3,
9047 /* 7983 */ // MIs[2] tmp3
9048 /* 7983 */ // No operand predicates
9049 /* 7983 */ // MIs[2] tmp1
9050 /* 7983 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/2, /*OpIdx*/2, // MIs[3]
9051 /* 7987 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_ZEXT),
9052 /* 7991 */ // MIs[3] src
9053 /* 7991 */ // No operand predicates
9054 /* 7991 */ // MIs[0] amt
9055 /* 7991 */ // No operand predicates
9056 /* 7991 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
9057 /* 7993 */ // Combiner Rule #148: redundant_zext_unmerge_sext_inreg
9058 /* 7993 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner54),
9059 /* 7996 */ // Label 356: @7996
9060 /* 7996 */ GIM_Try, /*On fail goto*//*Label 357*/ GIMT_Encode4(8007), // Rule ID 183 //
9061 /* 8001 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule133Enabled),
9062 /* 8004 */ // MIs[0] dst
9063 /* 8004 */ // No operand predicates
9064 /* 8004 */ // MIs[0] src
9065 /* 8004 */ // No operand predicates
9066 /* 8004 */ // MIs[0] sz
9067 /* 8004 */ // No operand predicates
9068 /* 8004 */ // Combiner Rule #133: sext_inreg_of_load
9069 /* 8004 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner49),
9070 /* 8007 */ // Label 357: @8007
9071 /* 8007 */ GIM_Try, /*On fail goto*//*Label 358*/ GIMT_Encode4(8018), // Rule ID 204 //
9072 /* 8012 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule154Enabled),
9073 /* 8015 */ // MIs[0] dst
9074 /* 8015 */ // No operand predicates
9075 /* 8015 */ // MIs[0] src
9076 /* 8015 */ // No operand predicates
9077 /* 8015 */ // MIs[0] imm
9078 /* 8015 */ // No operand predicates
9079 /* 8015 */ // Combiner Rule #154: sext_inreg_to_zext_inreg
9080 /* 8015 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner59),
9081 /* 8018 */ // Label 358: @8018
9082 /* 8018 */ GIM_Try, /*On fail goto*//*Label 359*/ GIMT_Encode4(8029), // Rule ID 275 //
9083 /* 8023 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule209Enabled),
9084 /* 8026 */ // MIs[0] dst
9085 /* 8026 */ // No operand predicates
9086 /* 8026 */ // MIs[0] src
9087 /* 8026 */ // No operand predicates
9088 /* 8026 */ // MIs[0] sz
9089 /* 8026 */ // No operand predicates
9090 /* 8026 */ // Combiner Rule #209: bitfield_extract_from_sext_inreg
9091 /* 8026 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner75),
9092 /* 8029 */ // Label 359: @8029
9093 /* 8029 */ GIM_Reject,
9094 /* 8030 */ // Label 33: @8030
9095 /* 8030 */ GIM_Try, /*On fail goto*//*Label 360*/ GIMT_Encode4(8047), // Rule ID 424 //
9096 /* 8035 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule294Enabled),
9097 /* 8038 */ GIM_MIFlags, /*MI*/0, GIMT_Encode4(MachineInstr::NonNeg),
9098 /* 8044 */ // MIs[0] root
9099 /* 8044 */ // No operand predicates
9100 /* 8044 */ // MIs[0] x
9101 /* 8044 */ // No operand predicates
9102 /* 8044 */ // Combiner Rule #294: nneg_zext
9103 /* 8044 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner109),
9104 /* 8047 */ // Label 360: @8047
9105 /* 8047 */ GIM_Try, /*On fail goto*//*Label 361*/ GIMT_Encode4(8068), // Rule ID 64 //
9106 /* 8052 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule60Enabled),
9107 /* 8055 */ // MIs[0] root
9108 /* 8055 */ // No operand predicates
9109 /* 8055 */ // MIs[0] select
9110 /* 8055 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9111 /* 8059 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SELECT),
9112 /* 8063 */ // MIs[1] cond
9113 /* 8063 */ // No operand predicates
9114 /* 8063 */ // MIs[1] true
9115 /* 8063 */ // No operand predicates
9116 /* 8063 */ // MIs[1] false
9117 /* 8063 */ // No operand predicates
9118 /* 8063 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9119 /* 8065 */ // Combiner Rule #60: select_of_zext
9120 /* 8065 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner20),
9121 /* 8068 */ // Label 361: @8068
9122 /* 8068 */ GIM_Try, /*On fail goto*//*Label 362*/ GIMT_Encode4(8095), // Rule ID 423 //
9123 /* 8073 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule293Enabled),
9124 /* 8076 */ // MIs[0] root
9125 /* 8076 */ // No operand predicates
9126 /* 8076 */ // MIs[0] src
9127 /* 8076 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9128 /* 8080 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_TRUNC),
9129 /* 8084 */ GIM_MIFlags, /*MI*/1, GIMT_Encode4(MachineInstr::NoUWrap),
9130 /* 8090 */ // MIs[1] x
9131 /* 8090 */ // No operand predicates
9132 /* 8090 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9133 /* 8092 */ // Combiner Rule #293: zext_trunc
9134 /* 8092 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner108),
9135 /* 8095 */ // Label 362: @8095
9136 /* 8095 */ GIM_Try, /*On fail goto*//*Label 363*/ GIMT_Encode4(8116), // Rule ID 57 //
9137 /* 8100 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule53Enabled),
9138 /* 8103 */ // MIs[0] root
9139 /* 8103 */ // No operand predicates
9140 /* 8103 */ // MIs[0] second
9141 /* 8103 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9142 /* 8107 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ANYEXT),
9143 /* 8111 */ // MIs[1] src
9144 /* 8111 */ // No operand predicates
9145 /* 8111 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9146 /* 8113 */ // Combiner Rule #53: zext_of_anyext
9147 /* 8113 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner18),
9148 /* 8116 */ // Label 363: @8116
9149 /* 8116 */ GIM_Try, /*On fail goto*//*Label 364*/ GIMT_Encode4(8137), // Rule ID 56 //
9150 /* 8121 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule52Enabled),
9151 /* 8124 */ // MIs[0] root
9152 /* 8124 */ // No operand predicates
9153 /* 8124 */ // MIs[0] second
9154 /* 8124 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9155 /* 8128 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ZEXT),
9156 /* 8132 */ // MIs[1] src
9157 /* 8132 */ // No operand predicates
9158 /* 8132 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9159 /* 8134 */ // Combiner Rule #52: zext_of_zext
9160 /* 8134 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner18),
9161 /* 8137 */ // Label 364: @8137
9162 /* 8137 */ GIM_Try, /*On fail goto*//*Label 365*/ GIMT_Encode4(8148), // Rule ID 203 //
9163 /* 8142 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule153Enabled),
9164 /* 8145 */ // MIs[0] dst
9165 /* 8145 */ // No operand predicates
9166 /* 8145 */ // MIs[0] src
9167 /* 8145 */ // No operand predicates
9168 /* 8145 */ // Combiner Rule #153: zext_trunc_fold
9169 /* 8145 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner58),
9170 /* 8148 */ // Label 365: @8148
9171 /* 8148 */ GIM_Try, /*On fail goto*//*Label 366*/ GIMT_Encode4(8159), // Rule ID 313 //
9172 /* 8153 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
9173 /* 8156 */ // MIs[0] dst
9174 /* 8156 */ // No operand predicates
9175 /* 8156 */ // MIs[0] d.src
9176 /* 8156 */ // No operand predicates
9177 /* 8156 */ // Combiner Rule #216: constant_fold_cast_op @ [d[0]]
9178 /* 8156 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner82),
9179 /* 8159 */ // Label 366: @8159
9180 /* 8159 */ GIM_Reject,
9181 /* 8160 */ // Label 34: @8160
9182 /* 8160 */ GIM_Try, /*On fail goto*//*Label 367*/ GIMT_Encode4(8238), // Rule ID 273 //
9183 /* 8165 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule207Enabled),
9184 /* 8168 */ // MIs[0] dst
9185 /* 8168 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
9186 /* 8172 */ // MIs[0] binop_dst
9187 /* 8172 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9188 /* 8176 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
9189 /* 8180 */ // MIs[1] x
9190 /* 8180 */ // No operand predicates
9191 /* 8180 */ // MIs[1] c1
9192 /* 8180 */ // No operand predicates
9193 /* 8180 */ // MIs[0] c2
9194 /* 8180 */ // No operand predicates
9195 /* 8180 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner43),
9196 /* 8184 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9197 /* 8186 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
9198 /* 8189 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
9199 /* 8192 */ // Combiner Rule #207: commute_shift_add
9200 /* 8192 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SHL),
9201 /* 8195 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
9202 /* 8200 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
9203 /* 8204 */ GIR_RootToRootCopy, /*OpIdx*/2, // c2
9204 /* 8206 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SHL),
9205 /* 8210 */ GIR_AddTempRegister, /*InsnID*/1, /*TempRegID*/1, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
9206 /* 8215 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/2, // c1
9207 /* 8219 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/2, // c2
9208 /* 8223 */ GIR_BuildMI, /*InsnID*/2, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ADD),
9209 /* 8227 */ GIR_Copy, /*NewInsnID*/2, /*OldInsnID*/0, /*OpIdx*/0, // dst
9210 /* 8231 */ GIR_AddSimpleTempRegister, /*InsnID*/2, /*TempRegID*/0,
9211 /* 8234 */ GIR_AddSimpleTempRegister, /*InsnID*/2, /*TempRegID*/1,
9212 /* 8237 */ GIR_EraseRootFromParent_Done,
9213 /* 8238 */ // Label 367: @8238
9214 /* 8238 */ GIM_Try, /*On fail goto*//*Label 368*/ GIMT_Encode4(8316), // Rule ID 274 //
9215 /* 8243 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule208Enabled),
9216 /* 8246 */ // MIs[0] dst
9217 /* 8246 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
9218 /* 8250 */ // MIs[0] binop_dst
9219 /* 8250 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9220 /* 8254 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_OR),
9221 /* 8258 */ // MIs[1] x
9222 /* 8258 */ // No operand predicates
9223 /* 8258 */ // MIs[1] c1
9224 /* 8258 */ // No operand predicates
9225 /* 8258 */ // MIs[0] c2
9226 /* 8258 */ // No operand predicates
9227 /* 8258 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner43),
9228 /* 8262 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9229 /* 8264 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
9230 /* 8267 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
9231 /* 8270 */ // Combiner Rule #208: commute_shift_or
9232 /* 8270 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SHL),
9233 /* 8273 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
9234 /* 8278 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
9235 /* 8282 */ GIR_RootToRootCopy, /*OpIdx*/2, // c2
9236 /* 8284 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SHL),
9237 /* 8288 */ GIR_AddTempRegister, /*InsnID*/1, /*TempRegID*/1, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
9238 /* 8293 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/2, // c1
9239 /* 8297 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/2, // c2
9240 /* 8301 */ GIR_BuildMI, /*InsnID*/2, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR),
9241 /* 8305 */ GIR_Copy, /*NewInsnID*/2, /*OldInsnID*/0, /*OpIdx*/0, // dst
9242 /* 8309 */ GIR_AddSimpleTempRegister, /*InsnID*/2, /*TempRegID*/0,
9243 /* 8312 */ GIR_AddSimpleTempRegister, /*InsnID*/2, /*TempRegID*/1,
9244 /* 8315 */ GIR_EraseRootFromParent_Done,
9245 /* 8316 */ // Label 368: @8316
9246 /* 8316 */ GIM_Try, /*On fail goto*//*Label 369*/ GIMT_Encode4(8339), // Rule ID 133 //
9247 /* 8321 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule96Enabled),
9248 /* 8324 */ // MIs[0] dst
9249 /* 8324 */ // No operand predicates
9250 /* 8324 */ // MIs[0] zero
9251 /* 8324 */ // No operand predicates
9252 /* 8324 */ // MIs[0] rhs
9253 /* 8324 */ // No operand predicates
9254 /* 8324 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner13),
9255 /* 8328 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9256 /* 8333 */ // Combiner Rule #96: binop_left_to_zero @ [__binop_left_to_zero_match_0[0]]
9257 /* 8333 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9258 /* 8338 */ GIR_EraseRootFromParent_Done,
9259 /* 8339 */ // Label 369: @8339
9260 /* 8339 */ GIM_Try, /*On fail goto*//*Label 370*/ GIMT_Encode4(8374), // Rule ID 48 //
9261 /* 8344 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule44Enabled),
9262 /* 8347 */ GIM_MIFlags, /*MI*/0, GIMT_Encode4(MachineInstr::NoSWrap),
9263 /* 8353 */ // MIs[0] root
9264 /* 8353 */ // No operand predicates
9265 /* 8353 */ // MIs[0] left
9266 /* 8353 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9267 /* 8357 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_VSCALE),
9268 /* 8361 */ // MIs[1] imm
9269 /* 8361 */ // No operand predicates
9270 /* 8361 */ // MIs[0] x
9271 /* 8361 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
9272 /* 8365 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
9273 /* 8369 */ // MIs[2] imm1
9274 /* 8369 */ // No operand predicates
9275 /* 8369 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
9276 /* 8371 */ // Combiner Rule #44: shl_of_vscale
9277 /* 8371 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner14),
9278 /* 8374 */ // Label 370: @8374
9279 /* 8374 */ GIM_Try, /*On fail goto*//*Label 371*/ GIMT_Encode4(8395), // Rule ID 91 //
9280 /* 8379 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule80Enabled),
9281 /* 8382 */ // MIs[0] dst
9282 /* 8382 */ // No operand predicates
9283 /* 8382 */ // MIs[0] __binop_left_undef_to_zero_match_0.x
9284 /* 8382 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9285 /* 8386 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
9286 /* 8390 */ // MIs[0] __binop_left_undef_to_zero_match_0.y
9287 /* 8390 */ // No operand predicates
9288 /* 8390 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9289 /* 8392 */ // Combiner Rule #80: binop_left_undef_to_zero @ [__binop_left_undef_to_zero_match_0[0]]
9290 /* 8392 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner31),
9291 /* 8395 */ // Label 371: @8395
9292 /* 8395 */ GIM_Try, /*On fail goto*//*Label 372*/ GIMT_Encode4(8419), // Rule ID 94 //
9293 /* 8400 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule81Enabled),
9294 /* 8403 */ // MIs[0] dst
9295 /* 8403 */ // No operand predicates
9296 /* 8403 */ // MIs[0] __binop_right_undef_to_undef_match_0.x
9297 /* 8403 */ // No operand predicates
9298 /* 8403 */ // MIs[0] __binop_right_undef_to_undef_match_0.y
9299 /* 8403 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
9300 /* 8407 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
9301 /* 8411 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9302 /* 8413 */ // Combiner Rule #81: binop_right_undef_to_undef @ [__binop_right_undef_to_undef_match_0[0]]
9303 /* 8413 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
9304 /* 8416 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
9305 /* 8418 */ GIR_EraseRootFromParent_Done,
9306 /* 8419 */ // Label 372: @8419
9307 /* 8419 */ GIM_Try, /*On fail goto*//*Label 373*/ GIMT_Encode4(8442), // Rule ID 123 //
9308 /* 8424 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
9309 /* 8427 */ // MIs[0] dst
9310 /* 8427 */ // No operand predicates
9311 /* 8427 */ // MIs[0] lhs
9312 /* 8427 */ // No operand predicates
9313 /* 8427 */ // MIs[0] Operand 2
9314 /* 8427 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
9315 /* 8431 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9316 /* 8436 */ // Combiner Rule #93: right_identity_zero @ [__right_identity_zero_match_0[4]]
9317 /* 8436 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9318 /* 8441 */ GIR_EraseRootFromParent_Done,
9319 /* 8442 */ // Label 373: @8442
9320 /* 8442 */ GIM_Try, /*On fail goto*//*Label 374*/ GIMT_Encode4(8453), // Rule ID 168 //
9321 /* 8447 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule120Enabled),
9322 /* 8450 */ // MIs[0] root
9323 /* 8450 */ // No operand predicates
9324 /* 8450 */ // MIs[0] mi.shifted
9325 /* 8450 */ // No operand predicates
9326 /* 8450 */ // MIs[0] mi.amt
9327 /* 8450 */ // No operand predicates
9328 /* 8450 */ // Combiner Rule #120: shifts_too_big @ [mi[0]]
9329 /* 8450 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner39),
9330 /* 8453 */ // Label 374: @8453
9331 /* 8453 */ GIM_Try, /*On fail goto*//*Label 375*/ GIMT_Encode4(8464), // Rule ID 184 //
9332 /* 8458 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule134Enabled),
9333 /* 8461 */ // MIs[0] dst
9334 /* 8461 */ // No operand predicates
9335 /* 8461 */ // MIs[0] src0
9336 /* 8461 */ // No operand predicates
9337 /* 8461 */ // MIs[0] src1
9338 /* 8461 */ // No operand predicates
9339 /* 8461 */ // Combiner Rule #134: reduce_shl_of_extend
9340 /* 8461 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner50),
9341 /* 8464 */ // Label 375: @8464
9342 /* 8464 */ GIM_Try, /*On fail goto*//*Label 376*/ GIMT_Encode4(8475), // Rule ID 247 //
9343 /* 8469 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule193Enabled),
9344 /* 8472 */ // MIs[0] d
9345 /* 8472 */ // No operand predicates
9346 /* 8472 */ // MIs[0] mi.base
9347 /* 8472 */ // No operand predicates
9348 /* 8472 */ // MIs[0] mi.amt
9349 /* 8472 */ // No operand predicates
9350 /* 8472 */ // Combiner Rule #193: shift_immed_chain @ [mi[0]]
9351 /* 8472 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner69),
9352 /* 8475 */ // Label 376: @8475
9353 /* 8475 */ GIM_Try, /*On fail goto*//*Label 377*/ GIMT_Encode4(8486), // Rule ID 252 //
9354 /* 8480 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
9355 /* 8483 */ // MIs[0] d
9356 /* 8483 */ // No operand predicates
9357 /* 8483 */ // MIs[0] mi.base
9358 /* 8483 */ // No operand predicates
9359 /* 8483 */ // MIs[0] mi.amt
9360 /* 8483 */ // No operand predicates
9361 /* 8483 */ // Combiner Rule #194: shift_of_shifted_logic_chain @ [mi[0]]
9362 /* 8483 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner70),
9363 /* 8486 */ // Label 377: @8486
9364 /* 8486 */ GIM_Try, /*On fail goto*//*Label 378*/ GIMT_Encode4(8497), // Rule ID 288 //
9365 /* 8491 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule213Enabled),
9366 /* 8494 */ // MIs[0] d
9367 /* 8494 */ // No operand predicates
9368 /* 8494 */ // MIs[0] mi.src0
9369 /* 8494 */ // No operand predicates
9370 /* 8494 */ // MIs[0] mi.src1
9371 /* 8494 */ // No operand predicates
9372 /* 8494 */ // Combiner Rule #213: constant_fold_binop @ [mi[7]]
9373 /* 8494 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner79),
9374 /* 8497 */ // Label 378: @8497
9375 /* 8497 */ GIM_Try, /*On fail goto*//*Label 379*/ GIMT_Encode4(8508), // Rule ID 354 //
9376 /* 8502 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule236Enabled),
9377 /* 8505 */ // MIs[0] root
9378 /* 8505 */ // No operand predicates
9379 /* 8505 */ // MIs[0] mi.x
9380 /* 8505 */ // No operand predicates
9381 /* 8505 */ // MIs[0] mi.y
9382 /* 8505 */ // No operand predicates
9383 /* 8505 */ // Combiner Rule #236: fold_binop_into_select_a @ [mi[12]]
9384 /* 8505 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
9385 /* 8508 */ // Label 379: @8508
9386 /* 8508 */ GIM_Reject,
9387 /* 8509 */ // Label 35: @8509
9388 /* 8509 */ GIM_Try, /*On fail goto*//*Label 380*/ GIMT_Encode4(8598), // Rule ID 470 //
9389 /* 8514 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule337Enabled),
9390 /* 8517 */ // MIs[0] dst
9391 /* 8517 */ // No operand predicates
9392 /* 8517 */ // MIs[0] sum
9393 /* 8517 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9394 /* 8521 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
9395 /* 8525 */ // MIs[1] inner
9396 /* 8525 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
9397 /* 8529 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ADD),
9398 /* 8533 */ // MIs[2] ext1
9399 /* 8533 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/2, /*OpIdx*/1, // MIs[3]
9400 /* 8537 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_ZEXT),
9401 /* 8541 */ // MIs[3] x
9402 /* 8541 */ GIM_RecordRegType, /*MI*/3, /*Op*/1, /*TempTypeIdx*/255,
9403 /* 8545 */ // MIs[2] ext2
9404 /* 8545 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/4, /*MI*/2, /*OpIdx*/2, // MIs[4]
9405 /* 8549 */ GIM_CheckOpcode, /*MI*/4, GIMT_Encode2(TargetOpcode::G_ZEXT),
9406 /* 8553 */ // MIs[4] y
9407 /* 8553 */ // No operand predicates
9408 /* 8553 */ // MIs[1] Operand 2
9409 /* 8553 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/2, 1,
9410 /* 8557 */ // MIs[0] Operand 2
9411 /* 8557 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 1,
9412 /* 8561 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner65),
9413 /* 8565 */ GIM_CheckIsSafeToFold, /*NumInsns*/4,
9414 /* 8567 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
9415 /* 8570 */ // Combiner Rule #337: avgceil_u_match
9416 /* 8570 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UAVGCEIL),
9417 /* 8573 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
9418 /* 8578 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/3, /*OpIdx*/1, // x
9419 /* 8582 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/4, /*OpIdx*/1, // y
9420 /* 8586 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ZEXT),
9421 /* 8590 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
9422 /* 8594 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
9423 /* 8597 */ GIR_EraseRootFromParent_Done,
9424 /* 8598 */ // Label 380: @8598
9425 /* 8598 */ GIM_Try, /*On fail goto*//*Label 381*/ GIMT_Encode4(8675), // Rule ID 468 //
9426 /* 8603 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule335Enabled),
9427 /* 8606 */ // MIs[0] dst
9428 /* 8606 */ // No operand predicates
9429 /* 8606 */ // MIs[0] sum
9430 /* 8606 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9431 /* 8610 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
9432 /* 8614 */ // MIs[1] ext1
9433 /* 8614 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
9434 /* 8618 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ZEXT),
9435 /* 8622 */ // MIs[2] x
9436 /* 8622 */ GIM_RecordRegType, /*MI*/2, /*Op*/1, /*TempTypeIdx*/255,
9437 /* 8626 */ // MIs[1] ext2
9438 /* 8626 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/1, /*OpIdx*/2, // MIs[3]
9439 /* 8630 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_ZEXT),
9440 /* 8634 */ // MIs[3] y
9441 /* 8634 */ // No operand predicates
9442 /* 8634 */ // MIs[0] Operand 2
9443 /* 8634 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 1,
9444 /* 8638 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner63),
9445 /* 8642 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
9446 /* 8644 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
9447 /* 8647 */ // Combiner Rule #335: avgfloor_u_match
9448 /* 8647 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UAVGFLOOR),
9449 /* 8650 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
9450 /* 8655 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // x
9451 /* 8659 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/3, /*OpIdx*/1, // y
9452 /* 8663 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ZEXT),
9453 /* 8667 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
9454 /* 8671 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
9455 /* 8674 */ GIR_EraseRootFromParent_Done,
9456 /* 8675 */ // Label 381: @8675
9457 /* 8675 */ GIM_Try, /*On fail goto*//*Label 382*/ GIMT_Encode4(8698), // Rule ID 134 //
9458 /* 8680 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule96Enabled),
9459 /* 8683 */ // MIs[0] dst
9460 /* 8683 */ // No operand predicates
9461 /* 8683 */ // MIs[0] zero
9462 /* 8683 */ // No operand predicates
9463 /* 8683 */ // MIs[0] rhs
9464 /* 8683 */ // No operand predicates
9465 /* 8683 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner13),
9466 /* 8687 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9467 /* 8692 */ // Combiner Rule #96: binop_left_to_zero @ [__binop_left_to_zero_match_0[1]]
9468 /* 8692 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9469 /* 8697 */ GIR_EraseRootFromParent_Done,
9470 /* 8698 */ // Label 382: @8698
9471 /* 8698 */ GIM_Try, /*On fail goto*//*Label 383*/ GIMT_Encode4(8727), // Rule ID 451 //
9472 /* 8703 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule321Enabled),
9473 /* 8706 */ // MIs[0] dst
9474 /* 8706 */ // No operand predicates
9475 /* 8706 */ // MIs[0] d2
9476 /* 8706 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9477 /* 8710 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_TRUNC),
9478 /* 8714 */ // MIs[1] d1
9479 /* 8714 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
9480 /* 8718 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_LSHR),
9481 /* 8722 */ // MIs[2] x
9482 /* 8722 */ // No operand predicates
9483 /* 8722 */ // MIs[2] y
9484 /* 8722 */ // No operand predicates
9485 /* 8722 */ // MIs[0] z
9486 /* 8722 */ // No operand predicates
9487 /* 8722 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
9488 /* 8724 */ // Combiner Rule #321: lshr_of_trunc_of_lshr
9489 /* 8724 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner126),
9490 /* 8727 */ // Label 383: @8727
9491 /* 8727 */ GIM_Try, /*On fail goto*//*Label 384*/ GIMT_Encode4(8751), // Rule ID 96 //
9492 /* 8732 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule81Enabled),
9493 /* 8735 */ // MIs[0] dst
9494 /* 8735 */ // No operand predicates
9495 /* 8735 */ // MIs[0] __binop_right_undef_to_undef_match_0.x
9496 /* 8735 */ // No operand predicates
9497 /* 8735 */ // MIs[0] __binop_right_undef_to_undef_match_0.y
9498 /* 8735 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
9499 /* 8739 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
9500 /* 8743 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9501 /* 8745 */ // Combiner Rule #81: binop_right_undef_to_undef @ [__binop_right_undef_to_undef_match_0[2]]
9502 /* 8745 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
9503 /* 8748 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
9504 /* 8750 */ GIR_EraseRootFromParent_Done,
9505 /* 8751 */ // Label 384: @8751
9506 /* 8751 */ GIM_Try, /*On fail goto*//*Label 385*/ GIMT_Encode4(8774), // Rule ID 125 //
9507 /* 8756 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
9508 /* 8759 */ // MIs[0] dst
9509 /* 8759 */ // No operand predicates
9510 /* 8759 */ // MIs[0] lhs
9511 /* 8759 */ // No operand predicates
9512 /* 8759 */ // MIs[0] Operand 2
9513 /* 8759 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
9514 /* 8763 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9515 /* 8768 */ // Combiner Rule #93: right_identity_zero @ [__right_identity_zero_match_0[6]]
9516 /* 8768 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9517 /* 8773 */ GIR_EraseRootFromParent_Done,
9518 /* 8774 */ // Label 385: @8774
9519 /* 8774 */ GIM_Try, /*On fail goto*//*Label 386*/ GIMT_Encode4(8785), // Rule ID 170 //
9520 /* 8779 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule120Enabled),
9521 /* 8782 */ // MIs[0] root
9522 /* 8782 */ // No operand predicates
9523 /* 8782 */ // MIs[0] mi.shifted
9524 /* 8782 */ // No operand predicates
9525 /* 8782 */ // MIs[0] mi.amt
9526 /* 8782 */ // No operand predicates
9527 /* 8782 */ // Combiner Rule #120: shifts_too_big @ [mi[2]]
9528 /* 8782 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner39),
9529 /* 8785 */ // Label 386: @8785
9530 /* 8785 */ GIM_Try, /*On fail goto*//*Label 387*/ GIMT_Encode4(8796), // Rule ID 249 //
9531 /* 8790 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule193Enabled),
9532 /* 8793 */ // MIs[0] d
9533 /* 8793 */ // No operand predicates
9534 /* 8793 */ // MIs[0] mi.base
9535 /* 8793 */ // No operand predicates
9536 /* 8793 */ // MIs[0] mi.amt
9537 /* 8793 */ // No operand predicates
9538 /* 8793 */ // Combiner Rule #193: shift_immed_chain @ [mi[2]]
9539 /* 8793 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner69),
9540 /* 8796 */ // Label 387: @8796
9541 /* 8796 */ GIM_Try, /*On fail goto*//*Label 388*/ GIMT_Encode4(8807), // Rule ID 254 //
9542 /* 8801 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
9543 /* 8804 */ // MIs[0] d
9544 /* 8804 */ // No operand predicates
9545 /* 8804 */ // MIs[0] mi.base
9546 /* 8804 */ // No operand predicates
9547 /* 8804 */ // MIs[0] mi.amt
9548 /* 8804 */ // No operand predicates
9549 /* 8804 */ // Combiner Rule #194: shift_of_shifted_logic_chain @ [mi[2]]
9550 /* 8804 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner70),
9551 /* 8807 */ // Label 388: @8807
9552 /* 8807 */ GIM_Try, /*On fail goto*//*Label 389*/ GIMT_Encode4(8818), // Rule ID 278 //
9553 /* 8812 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule211Enabled),
9554 /* 8815 */ // MIs[0] dst
9555 /* 8815 */ // No operand predicates
9556 /* 8815 */ // MIs[0] root.src
9557 /* 8815 */ // No operand predicates
9558 /* 8815 */ // MIs[0] root.amt
9559 /* 8815 */ // No operand predicates
9560 /* 8815 */ // Combiner Rule #211: bitfield_extract_from_shr @ [root[1]]
9561 /* 8815 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner77),
9562 /* 8818 */ // Label 389: @8818
9563 /* 8818 */ GIM_Try, /*On fail goto*//*Label 390*/ GIMT_Encode4(8829), // Rule ID 280 //
9564 /* 8823 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule212Enabled),
9565 /* 8826 */ // MIs[0] dst
9566 /* 8826 */ // No operand predicates
9567 /* 8826 */ // MIs[0] root.src
9568 /* 8826 */ // No operand predicates
9569 /* 8826 */ // MIs[0] root.amt
9570 /* 8826 */ // No operand predicates
9571 /* 8826 */ // Combiner Rule #212: bitfield_extract_from_shr_and @ [root[1]]
9572 /* 8826 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner78),
9573 /* 8829 */ // Label 390: @8829
9574 /* 8829 */ GIM_Try, /*On fail goto*//*Label 391*/ GIMT_Encode4(8840), // Rule ID 285 //
9575 /* 8834 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule213Enabled),
9576 /* 8837 */ // MIs[0] d
9577 /* 8837 */ // No operand predicates
9578 /* 8837 */ // MIs[0] mi.src0
9579 /* 8837 */ // No operand predicates
9580 /* 8837 */ // MIs[0] mi.src1
9581 /* 8837 */ // No operand predicates
9582 /* 8837 */ // Combiner Rule #213: constant_fold_binop @ [mi[4]]
9583 /* 8837 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner79),
9584 /* 8840 */ // Label 391: @8840
9585 /* 8840 */ GIM_Try, /*On fail goto*//*Label 392*/ GIMT_Encode4(8851), // Rule ID 352 //
9586 /* 8845 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule236Enabled),
9587 /* 8848 */ // MIs[0] root
9588 /* 8848 */ // No operand predicates
9589 /* 8848 */ // MIs[0] mi.x
9590 /* 8848 */ // No operand predicates
9591 /* 8848 */ // MIs[0] mi.y
9592 /* 8848 */ // No operand predicates
9593 /* 8848 */ // Combiner Rule #236: fold_binop_into_select_a @ [mi[10]]
9594 /* 8848 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
9595 /* 8851 */ // Label 392: @8851
9596 /* 8851 */ GIM_Reject,
9597 /* 8852 */ // Label 36: @8852
9598 /* 8852 */ GIM_Try, /*On fail goto*//*Label 393*/ GIMT_Encode4(8941), // Rule ID 471 //
9599 /* 8857 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule338Enabled),
9600 /* 8860 */ // MIs[0] dst
9601 /* 8860 */ // No operand predicates
9602 /* 8860 */ // MIs[0] sum
9603 /* 8860 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9604 /* 8864 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
9605 /* 8868 */ // MIs[1] inner
9606 /* 8868 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
9607 /* 8872 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ADD),
9608 /* 8876 */ // MIs[2] ext1
9609 /* 8876 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/2, /*OpIdx*/1, // MIs[3]
9610 /* 8880 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_SEXT),
9611 /* 8884 */ // MIs[3] x
9612 /* 8884 */ GIM_RecordRegType, /*MI*/3, /*Op*/1, /*TempTypeIdx*/255,
9613 /* 8888 */ // MIs[2] ext2
9614 /* 8888 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/4, /*MI*/2, /*OpIdx*/2, // MIs[4]
9615 /* 8892 */ GIM_CheckOpcode, /*MI*/4, GIMT_Encode2(TargetOpcode::G_SEXT),
9616 /* 8896 */ // MIs[4] y
9617 /* 8896 */ // No operand predicates
9618 /* 8896 */ // MIs[1] Operand 2
9619 /* 8896 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/2, 1,
9620 /* 8900 */ // MIs[0] Operand 2
9621 /* 8900 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 1,
9622 /* 8904 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner66),
9623 /* 8908 */ GIM_CheckIsSafeToFold, /*NumInsns*/4,
9624 /* 8910 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
9625 /* 8913 */ // Combiner Rule #338: avgceil_s_match
9626 /* 8913 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SAVGCEIL),
9627 /* 8916 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
9628 /* 8921 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/3, /*OpIdx*/1, // x
9629 /* 8925 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/4, /*OpIdx*/1, // y
9630 /* 8929 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SEXT),
9631 /* 8933 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
9632 /* 8937 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
9633 /* 8940 */ GIR_EraseRootFromParent_Done,
9634 /* 8941 */ // Label 393: @8941
9635 /* 8941 */ GIM_Try, /*On fail goto*//*Label 394*/ GIMT_Encode4(9018), // Rule ID 469 //
9636 /* 8946 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule336Enabled),
9637 /* 8949 */ // MIs[0] dst
9638 /* 8949 */ // No operand predicates
9639 /* 8949 */ // MIs[0] sum
9640 /* 8949 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9641 /* 8953 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
9642 /* 8957 */ // MIs[1] ext1
9643 /* 8957 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
9644 /* 8961 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SEXT),
9645 /* 8965 */ // MIs[2] x
9646 /* 8965 */ GIM_RecordRegType, /*MI*/2, /*Op*/1, /*TempTypeIdx*/255,
9647 /* 8969 */ // MIs[1] ext2
9648 /* 8969 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/1, /*OpIdx*/2, // MIs[3]
9649 /* 8973 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_SEXT),
9650 /* 8977 */ // MIs[3] y
9651 /* 8977 */ // No operand predicates
9652 /* 8977 */ // MIs[0] Operand 2
9653 /* 8977 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 1,
9654 /* 8981 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner64),
9655 /* 8985 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
9656 /* 8987 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
9657 /* 8990 */ // Combiner Rule #336: avgfloor_s_match
9658 /* 8990 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SAVGFLOOR),
9659 /* 8993 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
9660 /* 8998 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // x
9661 /* 9002 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/3, /*OpIdx*/1, // y
9662 /* 9006 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SEXT),
9663 /* 9010 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
9664 /* 9014 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
9665 /* 9017 */ GIR_EraseRootFromParent_Done,
9666 /* 9018 */ // Label 394: @9018
9667 /* 9018 */ GIM_Try, /*On fail goto*//*Label 395*/ GIMT_Encode4(9041), // Rule ID 135 //
9668 /* 9023 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule96Enabled),
9669 /* 9026 */ // MIs[0] dst
9670 /* 9026 */ // No operand predicates
9671 /* 9026 */ // MIs[0] zero
9672 /* 9026 */ // No operand predicates
9673 /* 9026 */ // MIs[0] rhs
9674 /* 9026 */ // No operand predicates
9675 /* 9026 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner13),
9676 /* 9030 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9677 /* 9035 */ // Combiner Rule #96: binop_left_to_zero @ [__binop_left_to_zero_match_0[2]]
9678 /* 9035 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9679 /* 9040 */ GIR_EraseRootFromParent_Done,
9680 /* 9041 */ // Label 395: @9041
9681 /* 9041 */ GIM_Try, /*On fail goto*//*Label 396*/ GIMT_Encode4(9065), // Rule ID 95 //
9682 /* 9046 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule81Enabled),
9683 /* 9049 */ // MIs[0] dst
9684 /* 9049 */ // No operand predicates
9685 /* 9049 */ // MIs[0] __binop_right_undef_to_undef_match_0.x
9686 /* 9049 */ // No operand predicates
9687 /* 9049 */ // MIs[0] __binop_right_undef_to_undef_match_0.y
9688 /* 9049 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
9689 /* 9053 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
9690 /* 9057 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9691 /* 9059 */ // Combiner Rule #81: binop_right_undef_to_undef @ [__binop_right_undef_to_undef_match_0[1]]
9692 /* 9059 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
9693 /* 9062 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
9694 /* 9064 */ GIR_EraseRootFromParent_Done,
9695 /* 9065 */ // Label 396: @9065
9696 /* 9065 */ GIM_Try, /*On fail goto*//*Label 397*/ GIMT_Encode4(9088), // Rule ID 124 //
9697 /* 9070 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
9698 /* 9073 */ // MIs[0] dst
9699 /* 9073 */ // No operand predicates
9700 /* 9073 */ // MIs[0] lhs
9701 /* 9073 */ // No operand predicates
9702 /* 9073 */ // MIs[0] Operand 2
9703 /* 9073 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
9704 /* 9077 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9705 /* 9082 */ // Combiner Rule #93: right_identity_zero @ [__right_identity_zero_match_0[5]]
9706 /* 9082 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9707 /* 9087 */ GIR_EraseRootFromParent_Done,
9708 /* 9088 */ // Label 397: @9088
9709 /* 9088 */ GIM_Try, /*On fail goto*//*Label 398*/ GIMT_Encode4(9099), // Rule ID 169 //
9710 /* 9093 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule120Enabled),
9711 /* 9096 */ // MIs[0] root
9712 /* 9096 */ // No operand predicates
9713 /* 9096 */ // MIs[0] mi.shifted
9714 /* 9096 */ // No operand predicates
9715 /* 9096 */ // MIs[0] mi.amt
9716 /* 9096 */ // No operand predicates
9717 /* 9096 */ // Combiner Rule #120: shifts_too_big @ [mi[1]]
9718 /* 9096 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner39),
9719 /* 9099 */ // Label 398: @9099
9720 /* 9099 */ GIM_Try, /*On fail goto*//*Label 399*/ GIMT_Encode4(9110), // Rule ID 181 //
9721 /* 9104 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule131Enabled),
9722 /* 9107 */ // MIs[0] dst
9723 /* 9107 */ // No operand predicates
9724 /* 9107 */ // MIs[0] src1
9725 /* 9107 */ // No operand predicates
9726 /* 9107 */ // MIs[0] src2
9727 /* 9107 */ // No operand predicates
9728 /* 9107 */ // Combiner Rule #131: shl_ashr_to_sext_inreg
9729 /* 9107 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner48),
9730 /* 9110 */ // Label 399: @9110
9731 /* 9110 */ GIM_Try, /*On fail goto*//*Label 400*/ GIMT_Encode4(9121), // Rule ID 248 //
9732 /* 9115 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule193Enabled),
9733 /* 9118 */ // MIs[0] d
9734 /* 9118 */ // No operand predicates
9735 /* 9118 */ // MIs[0] mi.base
9736 /* 9118 */ // No operand predicates
9737 /* 9118 */ // MIs[0] mi.amt
9738 /* 9118 */ // No operand predicates
9739 /* 9118 */ // Combiner Rule #193: shift_immed_chain @ [mi[1]]
9740 /* 9118 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner69),
9741 /* 9121 */ // Label 400: @9121
9742 /* 9121 */ GIM_Try, /*On fail goto*//*Label 401*/ GIMT_Encode4(9132), // Rule ID 253 //
9743 /* 9126 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
9744 /* 9129 */ // MIs[0] d
9745 /* 9129 */ // No operand predicates
9746 /* 9129 */ // MIs[0] mi.base
9747 /* 9129 */ // No operand predicates
9748 /* 9129 */ // MIs[0] mi.amt
9749 /* 9129 */ // No operand predicates
9750 /* 9129 */ // Combiner Rule #194: shift_of_shifted_logic_chain @ [mi[1]]
9751 /* 9129 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner70),
9752 /* 9132 */ // Label 401: @9132
9753 /* 9132 */ GIM_Try, /*On fail goto*//*Label 402*/ GIMT_Encode4(9143), // Rule ID 277 //
9754 /* 9137 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule211Enabled),
9755 /* 9140 */ // MIs[0] dst
9756 /* 9140 */ // No operand predicates
9757 /* 9140 */ // MIs[0] root.src
9758 /* 9140 */ // No operand predicates
9759 /* 9140 */ // MIs[0] root.amt
9760 /* 9140 */ // No operand predicates
9761 /* 9140 */ // Combiner Rule #211: bitfield_extract_from_shr @ [root[0]]
9762 /* 9140 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner77),
9763 /* 9143 */ // Label 402: @9143
9764 /* 9143 */ GIM_Try, /*On fail goto*//*Label 403*/ GIMT_Encode4(9154), // Rule ID 279 //
9765 /* 9148 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule212Enabled),
9766 /* 9151 */ // MIs[0] dst
9767 /* 9151 */ // No operand predicates
9768 /* 9151 */ // MIs[0] root.src
9769 /* 9151 */ // No operand predicates
9770 /* 9151 */ // MIs[0] root.amt
9771 /* 9151 */ // No operand predicates
9772 /* 9151 */ // Combiner Rule #212: bitfield_extract_from_shr_and @ [root[0]]
9773 /* 9151 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner78),
9774 /* 9154 */ // Label 403: @9154
9775 /* 9154 */ GIM_Try, /*On fail goto*//*Label 404*/ GIMT_Encode4(9165), // Rule ID 284 //
9776 /* 9159 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule213Enabled),
9777 /* 9162 */ // MIs[0] d
9778 /* 9162 */ // No operand predicates
9779 /* 9162 */ // MIs[0] mi.src0
9780 /* 9162 */ // No operand predicates
9781 /* 9162 */ // MIs[0] mi.src1
9782 /* 9162 */ // No operand predicates
9783 /* 9162 */ // Combiner Rule #213: constant_fold_binop @ [mi[3]]
9784 /* 9162 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner79),
9785 /* 9165 */ // Label 404: @9165
9786 /* 9165 */ GIM_Try, /*On fail goto*//*Label 405*/ GIMT_Encode4(9176), // Rule ID 353 //
9787 /* 9170 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule236Enabled),
9788 /* 9173 */ // MIs[0] root
9789 /* 9173 */ // No operand predicates
9790 /* 9173 */ // MIs[0] mi.x
9791 /* 9173 */ // No operand predicates
9792 /* 9173 */ // MIs[0] mi.y
9793 /* 9173 */ // No operand predicates
9794 /* 9173 */ // Combiner Rule #236: fold_binop_into_select_a @ [mi[11]]
9795 /* 9173 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
9796 /* 9176 */ // Label 405: @9176
9797 /* 9176 */ GIM_Reject,
9798 /* 9177 */ // Label 37: @9177
9799 /* 9177 */ GIM_Try, /*On fail goto*//*Label 406*/ GIMT_Encode4(9204), // Rule ID 261 //
9800 /* 9182 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule198Enabled),
9801 /* 9185 */ // MIs[0] dst
9802 /* 9185 */ // No operand predicates
9803 /* 9185 */ // MIs[0] x
9804 /* 9185 */ // No operand predicates
9805 /* 9185 */ // MIs[0] x
9806 /* 9185 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
9807 /* 9190 */ // MIs[0] amt
9808 /* 9190 */ // No operand predicates
9809 /* 9190 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner39),
9810 /* 9194 */ // Combiner Rule #198: funnel_shift_to_rotate_left
9811 /* 9194 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ROTL),
9812 /* 9197 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
9813 /* 9199 */ GIR_RootToRootCopy, /*OpIdx*/1, // x
9814 /* 9201 */ GIR_RootToRootCopy, /*OpIdx*/3, // amt
9815 /* 9203 */ GIR_EraseRootFromParent_Done,
9816 /* 9204 */ // Label 406: @9204
9817 /* 9204 */ GIM_Try, /*On fail goto*//*Label 407*/ GIMT_Encode4(9224), // Rule ID 264 //
9818 /* 9209 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule201Enabled),
9819 /* 9212 */ // MIs[0] x
9820 /* 9212 */ // No operand predicates
9821 /* 9212 */ // MIs[0] y
9822 /* 9212 */ // No operand predicates
9823 /* 9212 */ // MIs[0] z
9824 /* 9212 */ // No operand predicates
9825 /* 9212 */ // MIs[0] Operand 3
9826 /* 9212 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/3, 0,
9827 /* 9216 */ // Combiner Rule #201: funnel_shift_left_zero
9828 /* 9216 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::COPY),
9829 /* 9219 */ GIR_RootToRootCopy, /*OpIdx*/0, // x
9830 /* 9221 */ GIR_RootToRootCopy, /*OpIdx*/1, // y
9831 /* 9223 */ GIR_EraseRootFromParent_Done,
9832 /* 9224 */ // Label 407: @9224
9833 /* 9224 */ GIM_Try, /*On fail goto*//*Label 408*/ GIMT_Encode4(9235), // Rule ID 265 //
9834 /* 9229 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule202Enabled),
9835 /* 9232 */ // MIs[0] dst
9836 /* 9232 */ // No operand predicates
9837 /* 9232 */ // MIs[0] root.x
9838 /* 9232 */ // No operand predicates
9839 /* 9232 */ // MIs[0] root.y
9840 /* 9232 */ // No operand predicates
9841 /* 9232 */ // MIs[0] root.amt
9842 /* 9232 */ // No operand predicates
9843 /* 9232 */ // Combiner Rule #202: funnel_shift_overshift @ [root[0]]
9844 /* 9232 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner74),
9845 /* 9235 */ // Label 408: @9235
9846 /* 9235 */ GIM_Reject,
9847 /* 9236 */ // Label 38: @9236
9848 /* 9236 */ GIM_Try, /*On fail goto*//*Label 409*/ GIMT_Encode4(9263), // Rule ID 262 //
9849 /* 9241 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule199Enabled),
9850 /* 9244 */ // MIs[0] dst
9851 /* 9244 */ // No operand predicates
9852 /* 9244 */ // MIs[0] x
9853 /* 9244 */ // No operand predicates
9854 /* 9244 */ // MIs[0] x
9855 /* 9244 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
9856 /* 9249 */ // MIs[0] amt
9857 /* 9249 */ // No operand predicates
9858 /* 9249 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner40),
9859 /* 9253 */ // Combiner Rule #199: funnel_shift_to_rotate_right
9860 /* 9253 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ROTR),
9861 /* 9256 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
9862 /* 9258 */ GIR_RootToRootCopy, /*OpIdx*/1, // x
9863 /* 9260 */ GIR_RootToRootCopy, /*OpIdx*/3, // amt
9864 /* 9262 */ GIR_EraseRootFromParent_Done,
9865 /* 9263 */ // Label 409: @9263
9866 /* 9263 */ GIM_Try, /*On fail goto*//*Label 410*/ GIMT_Encode4(9283), // Rule ID 263 //
9867 /* 9268 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule200Enabled),
9868 /* 9271 */ // MIs[0] x
9869 /* 9271 */ // No operand predicates
9870 /* 9271 */ // MIs[0] y
9871 /* 9271 */ // No operand predicates
9872 /* 9271 */ // MIs[0] z
9873 /* 9271 */ // No operand predicates
9874 /* 9271 */ // MIs[0] Operand 3
9875 /* 9271 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/3, 0,
9876 /* 9275 */ // Combiner Rule #200: funnel_shift_right_zero
9877 /* 9275 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::COPY),
9878 /* 9278 */ GIR_RootToRootCopy, /*OpIdx*/0, // x
9879 /* 9280 */ GIR_RootToRootCopy, /*OpIdx*/2, // z
9880 /* 9282 */ GIR_EraseRootFromParent_Done,
9881 /* 9283 */ // Label 410: @9283
9882 /* 9283 */ GIM_Try, /*On fail goto*//*Label 411*/ GIMT_Encode4(9294), // Rule ID 266 //
9883 /* 9288 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule202Enabled),
9884 /* 9291 */ // MIs[0] dst
9885 /* 9291 */ // No operand predicates
9886 /* 9291 */ // MIs[0] root.x
9887 /* 9291 */ // No operand predicates
9888 /* 9291 */ // MIs[0] root.y
9889 /* 9291 */ // No operand predicates
9890 /* 9291 */ // MIs[0] root.amt
9891 /* 9291 */ // No operand predicates
9892 /* 9291 */ // Combiner Rule #202: funnel_shift_overshift @ [root[1]]
9893 /* 9291 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner74),
9894 /* 9294 */ // Label 411: @9294
9895 /* 9294 */ GIM_Reject,
9896 /* 9295 */ // Label 39: @9295
9897 /* 9295 */ GIM_Try, /*On fail goto*//*Label 412*/ GIMT_Encode4(9318), // Rule ID 128 //
9898 /* 9300 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
9899 /* 9303 */ // MIs[0] dst
9900 /* 9303 */ // No operand predicates
9901 /* 9303 */ // MIs[0] lhs
9902 /* 9303 */ // No operand predicates
9903 /* 9303 */ // MIs[0] Operand 2
9904 /* 9303 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
9905 /* 9307 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9906 /* 9312 */ // Combiner Rule #93: right_identity_zero @ [__right_identity_zero_match_0[9]]
9907 /* 9312 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9908 /* 9317 */ GIR_EraseRootFromParent_Done,
9909 /* 9318 */ // Label 412: @9318
9910 /* 9318 */ GIM_Reject,
9911 /* 9319 */ // Label 40: @9319
9912 /* 9319 */ GIM_Try, /*On fail goto*//*Label 413*/ GIMT_Encode4(9342), // Rule ID 127 //
9913 /* 9324 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
9914 /* 9327 */ // MIs[0] dst
9915 /* 9327 */ // No operand predicates
9916 /* 9327 */ // MIs[0] lhs
9917 /* 9327 */ // No operand predicates
9918 /* 9327 */ // MIs[0] Operand 2
9919 /* 9327 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
9920 /* 9331 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9921 /* 9336 */ // Combiner Rule #93: right_identity_zero @ [__right_identity_zero_match_0[8]]
9922 /* 9336 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9923 /* 9341 */ GIR_EraseRootFromParent_Done,
9924 /* 9342 */ // Label 413: @9342
9925 /* 9342 */ GIM_Reject,
9926 /* 9343 */ // Label 41: @9343
9927 /* 9343 */ GIM_Try, /*On fail goto*//*Label 414*/ GIMT_Encode4(9354), // Rule ID 174 //
9928 /* 9348 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule124Enabled),
9929 /* 9351 */ // MIs[0] root
9930 /* 9351 */ // No operand predicates
9931 /* 9351 */ // MIs[0] pred
9932 /* 9351 */ // No operand predicates
9933 /* 9351 */ // MIs[0] lhs
9934 /* 9351 */ // No operand predicates
9935 /* 9351 */ // MIs[0] rhs
9936 /* 9351 */ // No operand predicates
9937 /* 9351 */ // Combiner Rule #124: canonicalize_icmp
9938 /* 9351 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner43),
9939 /* 9354 */ // Label 414: @9354
9940 /* 9354 */ GIM_Try, /*On fail goto*//*Label 415*/ GIMT_Encode4(9365), // Rule ID 176 //
9941 /* 9359 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule126Enabled),
9942 /* 9362 */ // MIs[0] dst
9943 /* 9362 */ // No operand predicates
9944 /* 9362 */ // MIs[0] pred
9945 /* 9362 */ // No operand predicates
9946 /* 9362 */ // MIs[0] src1
9947 /* 9362 */ // No operand predicates
9948 /* 9362 */ // MIs[0] src2
9949 /* 9362 */ // No operand predicates
9950 /* 9362 */ // Combiner Rule #126: icmp_to_true_false_known_bits
9951 /* 9362 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner45),
9952 /* 9365 */ // Label 415: @9365
9953 /* 9365 */ GIM_Try, /*On fail goto*//*Label 416*/ GIMT_Encode4(9376), // Rule ID 177 //
9954 /* 9370 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule127Enabled),
9955 /* 9373 */ // MIs[0] dst
9956 /* 9373 */ // No operand predicates
9957 /* 9373 */ // MIs[0] pred
9958 /* 9373 */ // No operand predicates
9959 /* 9373 */ // MIs[0] src1
9960 /* 9373 */ // No operand predicates
9961 /* 9373 */ // MIs[0] src2
9962 /* 9373 */ // No operand predicates
9963 /* 9373 */ // Combiner Rule #127: icmp_to_lhs_known_bits
9964 /* 9373 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner46),
9965 /* 9376 */ // Label 416: @9376
9966 /* 9376 */ GIM_Try, /*On fail goto*//*Label 417*/ GIMT_Encode4(9387), // Rule ID 180 //
9967 /* 9381 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule130Enabled),
9968 /* 9384 */ // MIs[0] dst
9969 /* 9384 */ // No operand predicates
9970 /* 9384 */ // MIs[0] pred
9971 /* 9384 */ // No operand predicates
9972 /* 9384 */ // MIs[0] src1
9973 /* 9384 */ // No operand predicates
9974 /* 9384 */ // MIs[0] src2
9975 /* 9384 */ // No operand predicates
9976 /* 9384 */ // Combiner Rule #130: redundant_binop_in_equality
9977 /* 9384 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner47),
9978 /* 9387 */ // Label 417: @9387
9979 /* 9387 */ GIM_Reject,
9980 /* 9388 */ // Label 42: @9388
9981 /* 9388 */ GIM_Try, /*On fail goto*//*Label 418*/ GIMT_Encode4(9399), // Rule ID 175 //
9982 /* 9393 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule125Enabled),
9983 /* 9396 */ // MIs[0] root
9984 /* 9396 */ // No operand predicates
9985 /* 9396 */ // MIs[0] pred
9986 /* 9396 */ // No operand predicates
9987 /* 9396 */ // MIs[0] lhs
9988 /* 9396 */ // No operand predicates
9989 /* 9396 */ // MIs[0] rhs
9990 /* 9396 */ // No operand predicates
9991 /* 9396 */ // Combiner Rule #125: canonicalize_fcmp
9992 /* 9396 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner44),
9993 /* 9399 */ // Label 418: @9399
9994 /* 9399 */ GIM_Reject,
9995 /* 9400 */ // Label 43: @9400
9996 /* 9400 */ GIM_Try, /*On fail goto*//*Label 419*/ GIMT_Encode4(9449), // Rule ID 193 //
9997 /* 9405 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule143Enabled),
9998 /* 9408 */ // MIs[0] dst
9999 /* 9408 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
10000 /* 9412 */ // MIs[0] c
10001 /* 9412 */ // No operand predicates
10002 /* 9412 */ // MIs[0] x
10003 /* 9412 */ // No operand predicates
10004 /* 9412 */ // MIs[0] Operand 3
10005 /* 9412 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/3, 0,
10006 /* 9416 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner28),
10007 /* 9420 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
10008 /* 9423 */ // Combiner Rule #143: select_zero_false
10009 /* 9423 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FREEZE),
10010 /* 9426 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
10011 /* 9431 */ GIR_RootToRootCopy, /*OpIdx*/2, // x
10012 /* 9433 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_AND),
10013 /* 9437 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
10014 /* 9441 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/1, // c
10015 /* 9445 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
10016 /* 9448 */ GIR_EraseRootFromParent_Done,
10017 /* 9449 */ // Label 419: @9449
10018 /* 9449 */ GIM_Try, /*On fail goto*//*Label 420*/ GIMT_Encode4(9472), // Rule ID 118 //
10019 /* 9454 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule92Enabled),
10020 /* 9457 */ // MIs[0] dst
10021 /* 9457 */ // No operand predicates
10022 /* 9457 */ // MIs[0] cond
10023 /* 9457 */ // No operand predicates
10024 /* 9457 */ // MIs[0] tval
10025 /* 9457 */ // No operand predicates
10026 /* 9457 */ // MIs[0] fval
10027 /* 9457 */ // No operand predicates
10028 /* 9457 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner12),
10029 /* 9461 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
10030 /* 9466 */ // Combiner Rule #92: select_same_val_equiv
10031 /* 9466 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
10032 /* 9471 */ GIR_EraseRootFromParent_Done,
10033 /* 9472 */ // Label 420: @9472
10034 /* 9472 */ GIM_Try, /*On fail goto*//*Label 421*/ GIMT_Encode4(9495), // Rule ID 189 //
10035 /* 9477 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule139Enabled),
10036 /* 9480 */ // MIs[0] dst
10037 /* 9480 */ // No operand predicates
10038 /* 9480 */ // MIs[0] cond
10039 /* 9480 */ // No operand predicates
10040 /* 9480 */ // MIs[0] tval
10041 /* 9480 */ // No operand predicates
10042 /* 9480 */ // MIs[0] fval
10043 /* 9480 */ // No operand predicates
10044 /* 9480 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner26),
10045 /* 9484 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/3,
10046 /* 9489 */ // Combiner Rule #139: select_constant_cmp_general_false
10047 /* 9489 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/3,
10048 /* 9494 */ GIR_EraseRootFromParent_Done,
10049 /* 9495 */ // Label 421: @9495
10050 /* 9495 */ GIM_Try, /*On fail goto*//*Label 422*/ GIMT_Encode4(9518), // Rule ID 190 //
10051 /* 9500 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule140Enabled),
10052 /* 9503 */ // MIs[0] dst
10053 /* 9503 */ // No operand predicates
10054 /* 9503 */ // MIs[0] cond
10055 /* 9503 */ // No operand predicates
10056 /* 9503 */ // MIs[0] tval
10057 /* 9503 */ // No operand predicates
10058 /* 9503 */ // MIs[0] fval
10059 /* 9503 */ // No operand predicates
10060 /* 9503 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner27),
10061 /* 9507 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
10062 /* 9512 */ // Combiner Rule #140: select_constant_cmp_general_true
10063 /* 9512 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
10064 /* 9517 */ GIR_EraseRootFromParent_Done,
10065 /* 9518 */ // Label 422: @9518
10066 /* 9518 */ GIM_Try, /*On fail goto*//*Label 423*/ GIMT_Encode4(9539), // Rule ID 191 //
10067 /* 9523 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule141Enabled),
10068 /* 9526 */ // MIs[0] root
10069 /* 9526 */ // No operand predicates
10070 /* 9526 */ // MIs[0] tst
10071 /* 9526 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
10072 /* 9530 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ICMP),
10073 /* 9534 */ // MIs[1] tst1
10074 /* 9534 */ // No operand predicates
10075 /* 9534 */ // MIs[1] a
10076 /* 9534 */ // No operand predicates
10077 /* 9534 */ // MIs[1] b
10078 /* 9534 */ // No operand predicates
10079 /* 9534 */ // MIs[0] x
10080 /* 9534 */ // No operand predicates
10081 /* 9534 */ // MIs[0] y
10082 /* 9534 */ // No operand predicates
10083 /* 9534 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
10084 /* 9536 */ // Combiner Rule #141: select_to_iminmax
10085 /* 9536 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner52),
10086 /* 9539 */ // Label 423: @9539
10087 /* 9539 */ GIM_Try, /*On fail goto*//*Label 424*/ GIMT_Encode4(9575), // Rule ID 194 //
10088 /* 9544 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule144Enabled),
10089 /* 9547 */ // MIs[0] dst
10090 /* 9547 */ // No operand predicates
10091 /* 9547 */ // MIs[0] c
10092 /* 9547 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
10093 /* 9551 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_XOR),
10094 /* 9555 */ // MIs[1] src
10095 /* 9555 */ // No operand predicates
10096 /* 9555 */ // MIs[1] Operand 2
10097 /* 9555 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/2, 255,
10098 /* 9559 */ // MIs[0] x
10099 /* 9559 */ // No operand predicates
10100 /* 9559 */ // MIs[0] y
10101 /* 9559 */ // No operand predicates
10102 /* 9559 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
10103 /* 9561 */ // Combiner Rule #144: select_not
10104 /* 9561 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SELECT),
10105 /* 9564 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10106 /* 9566 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // src
10107 /* 9570 */ GIR_RootToRootCopy, /*OpIdx*/3, // y
10108 /* 9572 */ GIR_RootToRootCopy, /*OpIdx*/2, // x
10109 /* 9574 */ GIR_EraseRootFromParent_Done,
10110 /* 9575 */ // Label 424: @9575
10111 /* 9575 */ GIM_Try, /*On fail goto*//*Label 425*/ GIMT_Encode4(9604), // Rule ID 186 //
10112 /* 9580 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule136Enabled),
10113 /* 9583 */ // MIs[0] dst
10114 /* 9583 */ // No operand predicates
10115 /* 9583 */ // MIs[0] undef
10116 /* 9583 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
10117 /* 9587 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
10118 /* 9591 */ // MIs[0] x
10119 /* 9591 */ // No operand predicates
10120 /* 9591 */ // MIs[0] y
10121 /* 9591 */ // No operand predicates
10122 /* 9591 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/3,
10123 /* 9596 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
10124 /* 9598 */ // Combiner Rule #136: select_undef_cmp
10125 /* 9598 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/3,
10126 /* 9603 */ GIR_EraseRootFromParent_Done,
10127 /* 9604 */ // Label 425: @9604
10128 /* 9604 */ GIM_Try, /*On fail goto*//*Label 426*/ GIMT_Encode4(9644), // Rule ID 187 //
10129 /* 9609 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule137Enabled),
10130 /* 9612 */ // MIs[0] dst
10131 /* 9612 */ // No operand predicates
10132 /* 9612 */ // MIs[0] cond
10133 /* 9612 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
10134 /* 9616 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
10135 /* 9620 */ // MIs[1] Operand 1
10136 /* 9620 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0),
10137 /* 9631 */ // MIs[0] tval
10138 /* 9631 */ // No operand predicates
10139 /* 9631 */ // MIs[0] fval
10140 /* 9631 */ // No operand predicates
10141 /* 9631 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/3,
10142 /* 9636 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
10143 /* 9638 */ // Combiner Rule #137: select_constant_cmp_false
10144 /* 9638 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/3,
10145 /* 9643 */ GIR_EraseRootFromParent_Done,
10146 /* 9644 */ // Label 426: @9644
10147 /* 9644 */ GIM_Try, /*On fail goto*//*Label 427*/ GIMT_Encode4(9684), // Rule ID 188 //
10148 /* 9649 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule138Enabled),
10149 /* 9652 */ // MIs[0] dst
10150 /* 9652 */ // No operand predicates
10151 /* 9652 */ // MIs[0] cond
10152 /* 9652 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
10153 /* 9656 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
10154 /* 9660 */ // MIs[1] Operand 1
10155 /* 9660 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(1),
10156 /* 9671 */ // MIs[0] tval
10157 /* 9671 */ // No operand predicates
10158 /* 9671 */ // MIs[0] fval
10159 /* 9671 */ // No operand predicates
10160 /* 9671 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
10161 /* 9676 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
10162 /* 9678 */ // Combiner Rule #138: select_constant_cmp_true
10163 /* 9678 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
10164 /* 9683 */ GIR_EraseRootFromParent_Done,
10165 /* 9684 */ // Label 427: @9684
10166 /* 9684 */ GIM_Try, /*On fail goto*//*Label 428*/ GIMT_Encode4(9708), // Rule ID 117 //
10167 /* 9689 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule91Enabled),
10168 /* 9692 */ // MIs[0] dst
10169 /* 9692 */ // No operand predicates
10170 /* 9692 */ // MIs[0] cond
10171 /* 9692 */ // No operand predicates
10172 /* 9692 */ // MIs[0] x
10173 /* 9692 */ // No operand predicates
10174 /* 9692 */ // MIs[0] x
10175 /* 9692 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/3, /*OtherMI*/0, /*OtherOpIdx*/2,
10176 /* 9697 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
10177 /* 9702 */ // Combiner Rule #91: select_same_val_trivial
10178 /* 9702 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
10179 /* 9707 */ GIR_EraseRootFromParent_Done,
10180 /* 9708 */ // Label 428: @9708
10181 /* 9708 */ GIM_Try, /*On fail goto*//*Label 429*/ GIMT_Encode4(9719), // Rule ID 192 //
10182 /* 9713 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule142Enabled),
10183 /* 9716 */ // MIs[0] dst
10184 /* 9716 */ // No operand predicates
10185 /* 9716 */ // MIs[0] cond
10186 /* 9716 */ // No operand predicates
10187 /* 9716 */ // MIs[0] tval
10188 /* 9716 */ // No operand predicates
10189 /* 9716 */ // MIs[0] fval
10190 /* 9716 */ // No operand predicates
10191 /* 9716 */ // Combiner Rule #142: match_selects
10192 /* 9716 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner53),
10193 /* 9719 */ // Label 429: @9719
10194 /* 9719 */ GIM_Try, /*On fail goto*//*Label 430*/ GIMT_Encode4(9730), // Rule ID 381 //
10195 /* 9724 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule251Enabled),
10196 /* 9727 */ // MIs[0] dst
10197 /* 9727 */ // No operand predicates
10198 /* 9727 */ // MIs[0] cond
10199 /* 9727 */ // No operand predicates
10200 /* 9727 */ // MIs[0] tval
10201 /* 9727 */ // No operand predicates
10202 /* 9727 */ // MIs[0] fval
10203 /* 9727 */ // No operand predicates
10204 /* 9727 */ // Combiner Rule #251: select_to_minmax
10205 /* 9727 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner102),
10206 /* 9730 */ // Label 430: @9730
10207 /* 9730 */ GIM_Try, /*On fail goto*//*Label 431*/ GIMT_Encode4(9741), // Rule ID 491 //
10208 /* 9735 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule354Enabled),
10209 /* 9738 */ // MIs[0] dst
10210 /* 9738 */ // No operand predicates
10211 /* 9738 */ // MIs[0] c
10212 /* 9738 */ // No operand predicates
10213 /* 9738 */ // MIs[0] t
10214 /* 9738 */ // No operand predicates
10215 /* 9738 */ // MIs[0] f
10216 /* 9738 */ // No operand predicates
10217 /* 9738 */ // Combiner Rule #354: anonymous_57057
10218 /* 9738 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner135),
10219 /* 9741 */ // Label 431: @9741
10220 /* 9741 */ GIM_Reject,
10221 /* 9742 */ // Label 44: @9742
10222 /* 9742 */ GIM_Try, /*On fail goto*//*Label 432*/ GIMT_Encode4(9769), // Rule ID 400 //
10223 /* 9747 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule270Enabled),
10224 /* 9750 */ // MIs[0] dst
10225 /* 9750 */ // No operand predicates
10226 /* 9750 */ // MIs[0] carry
10227 /* 9750 */ // No operand predicates
10228 /* 9750 */ // MIs[0] lhs
10229 /* 9750 */ // No operand predicates
10230 /* 9750 */ // MIs[0] rhs
10231 /* 9750 */ // No operand predicates
10232 /* 9750 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner51),
10233 /* 9754 */ // Combiner Rule #270: G_UADDO_commute_constant_to_rhs
10234 /* 9754 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UADDO),
10235 /* 9757 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10236 /* 9759 */ GIR_RootToRootCopy, /*OpIdx*/1, // carry
10237 /* 9761 */ GIR_RootToRootCopy, /*OpIdx*/3, // rhs
10238 /* 9763 */ GIR_RootToRootCopy, /*OpIdx*/2, // lhs
10239 /* 9765 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
10240 /* 9768 */ GIR_EraseRootFromParent_Done,
10241 /* 9769 */ // Label 432: @9769
10242 /* 9769 */ GIM_Try, /*On fail goto*//*Label 433*/ GIMT_Encode4(9799), // Rule ID 440 //
10243 /* 9774 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule310Enabled),
10244 /* 9777 */ // MIs[0] dst
10245 /* 9777 */ // No operand predicates
10246 /* 9777 */ // MIs[0] carry
10247 /* 9777 */ // No operand predicates
10248 /* 9777 */ // MIs[0] x
10249 /* 9777 */ // No operand predicates
10250 /* 9777 */ // MIs[0] y
10251 /* 9777 */ // No operand predicates
10252 /* 9777 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner55),
10253 /* 9781 */ // Combiner Rule #310: match_addos_uaddo_dead_carry
10254 /* 9781 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ADD),
10255 /* 9784 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10256 /* 9786 */ GIR_RootToRootCopy, /*OpIdx*/2, // x
10257 /* 9788 */ GIR_RootToRootCopy, /*OpIdx*/3, // y
10258 /* 9790 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
10259 /* 9794 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/1, // carry
10260 /* 9798 */ GIR_EraseRootFromParent_Done,
10261 /* 9799 */ // Label 433: @9799
10262 /* 9799 */ GIM_Try, /*On fail goto*//*Label 434*/ GIMT_Encode4(9810), // Rule ID 442 //
10263 /* 9804 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule312Enabled),
10264 /* 9807 */ // MIs[0] dst
10265 /* 9807 */ // No operand predicates
10266 /* 9807 */ // MIs[0] carry
10267 /* 9807 */ // No operand predicates
10268 /* 9807 */ // MIs[0] x
10269 /* 9807 */ // No operand predicates
10270 /* 9807 */ // MIs[0] y
10271 /* 9807 */ // No operand predicates
10272 /* 9807 */ // Combiner Rule #312: match_addos_uaddo
10273 /* 9807 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner122),
10274 /* 9810 */ // Label 434: @9810
10275 /* 9810 */ GIM_Reject,
10276 /* 9811 */ // Label 45: @9811
10277 /* 9811 */ GIM_Try, /*On fail goto*//*Label 435*/ GIMT_Encode4(9838), // Rule ID 231 //
10278 /* 9816 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule181Enabled),
10279 /* 9819 */ // MIs[0] dst
10280 /* 9819 */ // No operand predicates
10281 /* 9819 */ // MIs[0] carry_out
10282 /* 9819 */ // No operand predicates
10283 /* 9819 */ // MIs[0] x
10284 /* 9819 */ // No operand predicates
10285 /* 9819 */ // MIs[0] y
10286 /* 9819 */ // No operand predicates
10287 /* 9819 */ // MIs[0] carry_in
10288 /* 9819 */ // No operand predicates
10289 /* 9819 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner34),
10290 /* 9823 */ // Combiner Rule #181: adde_to_addo_uadde
10291 /* 9823 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UADDO),
10292 /* 9826 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10293 /* 9828 */ GIR_RootToRootCopy, /*OpIdx*/1, // carry_out
10294 /* 9830 */ GIR_RootToRootCopy, /*OpIdx*/2, // x
10295 /* 9832 */ GIR_RootToRootCopy, /*OpIdx*/3, // y
10296 /* 9834 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
10297 /* 9837 */ GIR_EraseRootFromParent_Done,
10298 /* 9838 */ // Label 435: @9838
10299 /* 9838 */ GIM_Reject,
10300 /* 9839 */ // Label 46: @9839
10301 /* 9839 */ GIM_Try, /*On fail goto*//*Label 436*/ GIMT_Encode4(9850), // Rule ID 444 //
10302 /* 9844 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule314Enabled),
10303 /* 9847 */ // MIs[0] dst
10304 /* 9847 */ // No operand predicates
10305 /* 9847 */ // MIs[0] carry
10306 /* 9847 */ // No operand predicates
10307 /* 9847 */ // MIs[0] x
10308 /* 9847 */ // No operand predicates
10309 /* 9847 */ // MIs[0] y
10310 /* 9847 */ // No operand predicates
10311 /* 9847 */ // Combiner Rule #314: match_subo_no_overflow_usubo
10312 /* 9847 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner123),
10313 /* 9850 */ // Label 436: @9850
10314 /* 9850 */ GIM_Reject,
10315 /* 9851 */ // Label 47: @9851
10316 /* 9851 */ GIM_Try, /*On fail goto*//*Label 437*/ GIMT_Encode4(9878), // Rule ID 233 //
10317 /* 9856 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule183Enabled),
10318 /* 9859 */ // MIs[0] dst
10319 /* 9859 */ // No operand predicates
10320 /* 9859 */ // MIs[0] carry_out
10321 /* 9859 */ // No operand predicates
10322 /* 9859 */ // MIs[0] x
10323 /* 9859 */ // No operand predicates
10324 /* 9859 */ // MIs[0] y
10325 /* 9859 */ // No operand predicates
10326 /* 9859 */ // MIs[0] carry_in
10327 /* 9859 */ // No operand predicates
10328 /* 9859 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner34),
10329 /* 9863 */ // Combiner Rule #183: adde_to_addo_usube
10330 /* 9863 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_USUBO),
10331 /* 9866 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10332 /* 9868 */ GIR_RootToRootCopy, /*OpIdx*/1, // carry_out
10333 /* 9870 */ GIR_RootToRootCopy, /*OpIdx*/2, // x
10334 /* 9872 */ GIR_RootToRootCopy, /*OpIdx*/3, // y
10335 /* 9874 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
10336 /* 9877 */ GIR_EraseRootFromParent_Done,
10337 /* 9878 */ // Label 437: @9878
10338 /* 9878 */ GIM_Reject,
10339 /* 9879 */ // Label 48: @9879
10340 /* 9879 */ GIM_Try, /*On fail goto*//*Label 438*/ GIMT_Encode4(9906), // Rule ID 401 //
10341 /* 9884 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule271Enabled),
10342 /* 9887 */ // MIs[0] dst
10343 /* 9887 */ // No operand predicates
10344 /* 9887 */ // MIs[0] carry
10345 /* 9887 */ // No operand predicates
10346 /* 9887 */ // MIs[0] lhs
10347 /* 9887 */ // No operand predicates
10348 /* 9887 */ // MIs[0] rhs
10349 /* 9887 */ // No operand predicates
10350 /* 9887 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner51),
10351 /* 9891 */ // Combiner Rule #271: G_SADDO_commute_constant_to_rhs
10352 /* 9891 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SADDO),
10353 /* 9894 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10354 /* 9896 */ GIR_RootToRootCopy, /*OpIdx*/1, // carry
10355 /* 9898 */ GIR_RootToRootCopy, /*OpIdx*/3, // rhs
10356 /* 9900 */ GIR_RootToRootCopy, /*OpIdx*/2, // lhs
10357 /* 9902 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
10358 /* 9905 */ GIR_EraseRootFromParent_Done,
10359 /* 9906 */ // Label 438: @9906
10360 /* 9906 */ GIM_Try, /*On fail goto*//*Label 439*/ GIMT_Encode4(9936), // Rule ID 439 //
10361 /* 9911 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule309Enabled),
10362 /* 9914 */ // MIs[0] dst
10363 /* 9914 */ // No operand predicates
10364 /* 9914 */ // MIs[0] carry
10365 /* 9914 */ // No operand predicates
10366 /* 9914 */ // MIs[0] x
10367 /* 9914 */ // No operand predicates
10368 /* 9914 */ // MIs[0] y
10369 /* 9914 */ // No operand predicates
10370 /* 9914 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner55),
10371 /* 9918 */ // Combiner Rule #309: match_addos_saddo_dead_carry
10372 /* 9918 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ADD),
10373 /* 9921 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10374 /* 9923 */ GIR_RootToRootCopy, /*OpIdx*/2, // x
10375 /* 9925 */ GIR_RootToRootCopy, /*OpIdx*/3, // y
10376 /* 9927 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
10377 /* 9931 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/1, // carry
10378 /* 9935 */ GIR_EraseRootFromParent_Done,
10379 /* 9936 */ // Label 439: @9936
10380 /* 9936 */ GIM_Try, /*On fail goto*//*Label 440*/ GIMT_Encode4(9947), // Rule ID 441 //
10381 /* 9941 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule311Enabled),
10382 /* 9944 */ // MIs[0] dst
10383 /* 9944 */ // No operand predicates
10384 /* 9944 */ // MIs[0] carry
10385 /* 9944 */ // No operand predicates
10386 /* 9944 */ // MIs[0] x
10387 /* 9944 */ // No operand predicates
10388 /* 9944 */ // MIs[0] y
10389 /* 9944 */ // No operand predicates
10390 /* 9944 */ // Combiner Rule #311: match_addos_saddo
10391 /* 9944 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner122),
10392 /* 9947 */ // Label 440: @9947
10393 /* 9947 */ GIM_Reject,
10394 /* 9948 */ // Label 49: @9948
10395 /* 9948 */ GIM_Try, /*On fail goto*//*Label 441*/ GIMT_Encode4(9975), // Rule ID 232 //
10396 /* 9953 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule182Enabled),
10397 /* 9956 */ // MIs[0] dst
10398 /* 9956 */ // No operand predicates
10399 /* 9956 */ // MIs[0] carry_out
10400 /* 9956 */ // No operand predicates
10401 /* 9956 */ // MIs[0] x
10402 /* 9956 */ // No operand predicates
10403 /* 9956 */ // MIs[0] y
10404 /* 9956 */ // No operand predicates
10405 /* 9956 */ // MIs[0] carry_in
10406 /* 9956 */ // No operand predicates
10407 /* 9956 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner34),
10408 /* 9960 */ // Combiner Rule #182: adde_to_addo_sadde
10409 /* 9960 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SADDO),
10410 /* 9963 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10411 /* 9965 */ GIR_RootToRootCopy, /*OpIdx*/1, // carry_out
10412 /* 9967 */ GIR_RootToRootCopy, /*OpIdx*/2, // x
10413 /* 9969 */ GIR_RootToRootCopy, /*OpIdx*/3, // y
10414 /* 9971 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
10415 /* 9974 */ GIR_EraseRootFromParent_Done,
10416 /* 9975 */ // Label 441: @9975
10417 /* 9975 */ GIM_Reject,
10418 /* 9976 */ // Label 50: @9976
10419 /* 9976 */ GIM_Try, /*On fail goto*//*Label 442*/ GIMT_Encode4(9987), // Rule ID 443 //
10420 /* 9981 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule313Enabled),
10421 /* 9984 */ // MIs[0] dst
10422 /* 9984 */ // No operand predicates
10423 /* 9984 */ // MIs[0] carry
10424 /* 9984 */ // No operand predicates
10425 /* 9984 */ // MIs[0] x
10426 /* 9984 */ // No operand predicates
10427 /* 9984 */ // MIs[0] y
10428 /* 9984 */ // No operand predicates
10429 /* 9984 */ // Combiner Rule #313: match_subo_no_overflow_ssubo
10430 /* 9984 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner123),
10431 /* 9987 */ // Label 442: @9987
10432 /* 9987 */ GIM_Reject,
10433 /* 9988 */ // Label 51: @9988
10434 /* 9988 */ GIM_Try, /*On fail goto*//*Label 443*/ GIMT_Encode4(10015), // Rule ID 234 //
10435 /* 9993 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule184Enabled),
10436 /* 9996 */ // MIs[0] dst
10437 /* 9996 */ // No operand predicates
10438 /* 9996 */ // MIs[0] carry_out
10439 /* 9996 */ // No operand predicates
10440 /* 9996 */ // MIs[0] x
10441 /* 9996 */ // No operand predicates
10442 /* 9996 */ // MIs[0] y
10443 /* 9996 */ // No operand predicates
10444 /* 9996 */ // MIs[0] carry_in
10445 /* 9996 */ // No operand predicates
10446 /* 9996 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner34),
10447 /* 10000 */ // Combiner Rule #184: adde_to_addo_ssube
10448 /* 10000 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SSUBO),
10449 /* 10003 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10450 /* 10005 */ GIR_RootToRootCopy, /*OpIdx*/1, // carry_out
10451 /* 10007 */ GIR_RootToRootCopy, /*OpIdx*/2, // x
10452 /* 10009 */ GIR_RootToRootCopy, /*OpIdx*/3, // y
10453 /* 10011 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
10454 /* 10014 */ GIR_EraseRootFromParent_Done,
10455 /* 10015 */ // Label 443: @10015
10456 /* 10015 */ GIM_Reject,
10457 /* 10016 */ // Label 52: @10016
10458 /* 10016 */ GIM_Try, /*On fail goto*//*Label 444*/ GIMT_Encode4(10043), // Rule ID 227 //
10459 /* 10021 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule177Enabled),
10460 /* 10024 */ // MIs[0] dst
10461 /* 10024 */ // No operand predicates
10462 /* 10024 */ // MIs[0] carry
10463 /* 10024 */ // No operand predicates
10464 /* 10024 */ // MIs[0] x
10465 /* 10024 */ // No operand predicates
10466 /* 10024 */ // MIs[0] rhs
10467 /* 10024 */ // No operand predicates
10468 /* 10024 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner33),
10469 /* 10028 */ // Combiner Rule #177: mulo_by_2_umulo
10470 /* 10028 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UADDO),
10471 /* 10031 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10472 /* 10033 */ GIR_RootToRootCopy, /*OpIdx*/1, // carry
10473 /* 10035 */ GIR_RootToRootCopy, /*OpIdx*/2, // x
10474 /* 10037 */ GIR_RootToRootCopy, /*OpIdx*/2, // x
10475 /* 10039 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
10476 /* 10042 */ GIR_EraseRootFromParent_Done,
10477 /* 10043 */ // Label 444: @10043
10478 /* 10043 */ GIM_Try, /*On fail goto*//*Label 445*/ GIMT_Encode4(10070), // Rule ID 402 //
10479 /* 10048 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule272Enabled),
10480 /* 10051 */ // MIs[0] dst
10481 /* 10051 */ // No operand predicates
10482 /* 10051 */ // MIs[0] carry
10483 /* 10051 */ // No operand predicates
10484 /* 10051 */ // MIs[0] lhs
10485 /* 10051 */ // No operand predicates
10486 /* 10051 */ // MIs[0] rhs
10487 /* 10051 */ // No operand predicates
10488 /* 10051 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner51),
10489 /* 10055 */ // Combiner Rule #272: G_UMULO_commute_constant_to_rhs
10490 /* 10055 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UMULO),
10491 /* 10058 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10492 /* 10060 */ GIR_RootToRootCopy, /*OpIdx*/1, // carry
10493 /* 10062 */ GIR_RootToRootCopy, /*OpIdx*/3, // rhs
10494 /* 10064 */ GIR_RootToRootCopy, /*OpIdx*/2, // lhs
10495 /* 10066 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
10496 /* 10069 */ GIR_EraseRootFromParent_Done,
10497 /* 10070 */ // Label 445: @10070
10498 /* 10070 */ GIM_Try, /*On fail goto*//*Label 446*/ GIMT_Encode4(10081), // Rule ID 229 //
10499 /* 10075 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule179Enabled),
10500 /* 10078 */ // MIs[0] dst
10501 /* 10078 */ // No operand predicates
10502 /* 10078 */ // MIs[0] carry
10503 /* 10078 */ // No operand predicates
10504 /* 10078 */ // MIs[0] x
10505 /* 10078 */ // No operand predicates
10506 /* 10078 */ // MIs[0] y
10507 /* 10078 */ // No operand predicates
10508 /* 10078 */ // Combiner Rule #179: mulo_by_0_umulo
10509 /* 10078 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner66),
10510 /* 10081 */ // Label 446: @10081
10511 /* 10081 */ GIM_Reject,
10512 /* 10082 */ // Label 53: @10082
10513 /* 10082 */ GIM_Try, /*On fail goto*//*Label 447*/ GIMT_Encode4(10109), // Rule ID 228 //
10514 /* 10087 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule178Enabled),
10515 /* 10090 */ // MIs[0] dst
10516 /* 10090 */ // No operand predicates
10517 /* 10090 */ // MIs[0] carry
10518 /* 10090 */ // No operand predicates
10519 /* 10090 */ // MIs[0] x
10520 /* 10090 */ // No operand predicates
10521 /* 10090 */ // MIs[0] rhs
10522 /* 10090 */ // No operand predicates
10523 /* 10090 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner33),
10524 /* 10094 */ // Combiner Rule #178: mulo_by_2_smulo
10525 /* 10094 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SADDO),
10526 /* 10097 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10527 /* 10099 */ GIR_RootToRootCopy, /*OpIdx*/1, // carry
10528 /* 10101 */ GIR_RootToRootCopy, /*OpIdx*/2, // x
10529 /* 10103 */ GIR_RootToRootCopy, /*OpIdx*/2, // x
10530 /* 10105 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
10531 /* 10108 */ GIR_EraseRootFromParent_Done,
10532 /* 10109 */ // Label 447: @10109
10533 /* 10109 */ GIM_Try, /*On fail goto*//*Label 448*/ GIMT_Encode4(10136), // Rule ID 403 //
10534 /* 10114 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule273Enabled),
10535 /* 10117 */ // MIs[0] dst
10536 /* 10117 */ // No operand predicates
10537 /* 10117 */ // MIs[0] carry
10538 /* 10117 */ // No operand predicates
10539 /* 10117 */ // MIs[0] lhs
10540 /* 10117 */ // No operand predicates
10541 /* 10117 */ // MIs[0] rhs
10542 /* 10117 */ // No operand predicates
10543 /* 10117 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner51),
10544 /* 10121 */ // Combiner Rule #273: G_SMULO_commute_constant_to_rhs
10545 /* 10121 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SMULO),
10546 /* 10124 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10547 /* 10126 */ GIR_RootToRootCopy, /*OpIdx*/1, // carry
10548 /* 10128 */ GIR_RootToRootCopy, /*OpIdx*/3, // rhs
10549 /* 10130 */ GIR_RootToRootCopy, /*OpIdx*/2, // lhs
10550 /* 10132 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
10551 /* 10135 */ GIR_EraseRootFromParent_Done,
10552 /* 10136 */ // Label 448: @10136
10553 /* 10136 */ GIM_Try, /*On fail goto*//*Label 449*/ GIMT_Encode4(10147), // Rule ID 230 //
10554 /* 10141 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule180Enabled),
10555 /* 10144 */ // MIs[0] dst
10556 /* 10144 */ // No operand predicates
10557 /* 10144 */ // MIs[0] carry
10558 /* 10144 */ // No operand predicates
10559 /* 10144 */ // MIs[0] x
10560 /* 10144 */ // No operand predicates
10561 /* 10144 */ // MIs[0] y
10562 /* 10144 */ // No operand predicates
10563 /* 10144 */ // Combiner Rule #180: mulo_by_0_smulo
10564 /* 10144 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner66),
10565 /* 10147 */ // Label 449: @10147
10566 /* 10147 */ GIM_Reject,
10567 /* 10148 */ // Label 54: @10148
10568 /* 10148 */ GIM_Try, /*On fail goto*//*Label 450*/ GIMT_Encode4(10173), // Rule ID 392 //
10569 /* 10153 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule262Enabled),
10570 /* 10156 */ // MIs[0] dst
10571 /* 10156 */ // No operand predicates
10572 /* 10156 */ // MIs[0] lhs
10573 /* 10156 */ // No operand predicates
10574 /* 10156 */ // MIs[0] rhs
10575 /* 10156 */ // No operand predicates
10576 /* 10156 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner51),
10577 /* 10160 */ // Combiner Rule #262: G_UMULH_commute_constant_to_rhs
10578 /* 10160 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UMULH),
10579 /* 10163 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10580 /* 10165 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
10581 /* 10167 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
10582 /* 10169 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
10583 /* 10172 */ GIR_EraseRootFromParent_Done,
10584 /* 10173 */ // Label 450: @10173
10585 /* 10173 */ GIM_Try, /*On fail goto*//*Label 451*/ GIMT_Encode4(10184), // Rule ID 325 //
10586 /* 10178 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule219Enabled),
10587 /* 10181 */ // MIs[0] dst
10588 /* 10181 */ // No operand predicates
10589 /* 10181 */ // MIs[0] src1
10590 /* 10181 */ // No operand predicates
10591 /* 10181 */ // MIs[0] src2
10592 /* 10181 */ // No operand predicates
10593 /* 10181 */ // Combiner Rule #219: mulh_to_lshr
10594 /* 10181 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner84),
10595 /* 10184 */ // Label 451: @10184
10596 /* 10184 */ GIM_Reject,
10597 /* 10185 */ // Label 55: @10185
10598 /* 10185 */ GIM_Try, /*On fail goto*//*Label 452*/ GIMT_Encode4(10210), // Rule ID 393 //
10599 /* 10190 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule263Enabled),
10600 /* 10193 */ // MIs[0] dst
10601 /* 10193 */ // No operand predicates
10602 /* 10193 */ // MIs[0] lhs
10603 /* 10193 */ // No operand predicates
10604 /* 10193 */ // MIs[0] rhs
10605 /* 10193 */ // No operand predicates
10606 /* 10193 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner51),
10607 /* 10197 */ // Combiner Rule #263: G_SMULH_commute_constant_to_rhs
10608 /* 10197 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SMULH),
10609 /* 10200 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10610 /* 10202 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
10611 /* 10204 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
10612 /* 10206 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
10613 /* 10209 */ GIR_EraseRootFromParent_Done,
10614 /* 10210 */ // Label 452: @10210
10615 /* 10210 */ GIM_Reject,
10616 /* 10211 */ // Label 56: @10211
10617 /* 10211 */ GIM_Try, /*On fail goto*//*Label 453*/ GIMT_Encode4(10236), // Rule ID 394 //
10618 /* 10216 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule264Enabled),
10619 /* 10219 */ // MIs[0] dst
10620 /* 10219 */ // No operand predicates
10621 /* 10219 */ // MIs[0] lhs
10622 /* 10219 */ // No operand predicates
10623 /* 10219 */ // MIs[0] rhs
10624 /* 10219 */ // No operand predicates
10625 /* 10219 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner51),
10626 /* 10223 */ // Combiner Rule #264: G_UADDSAT_commute_constant_to_rhs
10627 /* 10223 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UADDSAT),
10628 /* 10226 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10629 /* 10228 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
10630 /* 10230 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
10631 /* 10232 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
10632 /* 10235 */ GIR_EraseRootFromParent_Done,
10633 /* 10236 */ // Label 453: @10236
10634 /* 10236 */ GIM_Reject,
10635 /* 10237 */ // Label 57: @10237
10636 /* 10237 */ GIM_Try, /*On fail goto*//*Label 454*/ GIMT_Encode4(10262), // Rule ID 395 //
10637 /* 10242 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule265Enabled),
10638 /* 10245 */ // MIs[0] dst
10639 /* 10245 */ // No operand predicates
10640 /* 10245 */ // MIs[0] lhs
10641 /* 10245 */ // No operand predicates
10642 /* 10245 */ // MIs[0] rhs
10643 /* 10245 */ // No operand predicates
10644 /* 10245 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner51),
10645 /* 10249 */ // Combiner Rule #265: G_SADDSAT_commute_constant_to_rhs
10646 /* 10249 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SADDSAT),
10647 /* 10252 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10648 /* 10254 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
10649 /* 10256 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
10650 /* 10258 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
10651 /* 10261 */ GIR_EraseRootFromParent_Done,
10652 /* 10262 */ // Label 454: @10262
10653 /* 10262 */ GIM_Reject,
10654 /* 10263 */ // Label 58: @10263
10655 /* 10263 */ GIM_Try, /*On fail goto*//*Label 455*/ GIMT_Encode4(10274), // Rule ID 251 //
10656 /* 10268 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule193Enabled),
10657 /* 10271 */ // MIs[0] d
10658 /* 10271 */ // No operand predicates
10659 /* 10271 */ // MIs[0] mi.base
10660 /* 10271 */ // No operand predicates
10661 /* 10271 */ // MIs[0] mi.amt
10662 /* 10271 */ // No operand predicates
10663 /* 10271 */ // Combiner Rule #193: shift_immed_chain @ [mi[4]]
10664 /* 10271 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner69),
10665 /* 10274 */ // Label 455: @10274
10666 /* 10274 */ GIM_Reject,
10667 /* 10275 */ // Label 59: @10275
10668 /* 10275 */ GIM_Try, /*On fail goto*//*Label 456*/ GIMT_Encode4(10286), // Rule ID 250 //
10669 /* 10280 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule193Enabled),
10670 /* 10283 */ // MIs[0] d
10671 /* 10283 */ // No operand predicates
10672 /* 10283 */ // MIs[0] mi.base
10673 /* 10283 */ // No operand predicates
10674 /* 10283 */ // MIs[0] mi.amt
10675 /* 10283 */ // No operand predicates
10676 /* 10283 */ // Combiner Rule #193: shift_immed_chain @ [mi[3]]
10677 /* 10283 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner69),
10678 /* 10286 */ // Label 456: @10286
10679 /* 10286 */ GIM_Reject,
10680 /* 10287 */ // Label 60: @10287
10681 /* 10287 */ GIM_Try, /*On fail goto*//*Label 457*/ GIMT_Encode4(10314), // Rule ID 396 //
10682 /* 10292 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule266Enabled),
10683 /* 10295 */ // MIs[0] dst
10684 /* 10295 */ // No operand predicates
10685 /* 10295 */ // MIs[0] lhs
10686 /* 10295 */ // No operand predicates
10687 /* 10295 */ // MIs[0] rhs
10688 /* 10295 */ // No operand predicates
10689 /* 10295 */ // MIs[0] scale
10690 /* 10295 */ // No operand predicates
10691 /* 10295 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner51),
10692 /* 10299 */ // Combiner Rule #266: G_SMULFIX_commute_constant_to_rhs
10693 /* 10299 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SMULFIX),
10694 /* 10302 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10695 /* 10304 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
10696 /* 10306 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
10697 /* 10308 */ GIR_RootToRootCopy, /*OpIdx*/3, // scale
10698 /* 10310 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
10699 /* 10313 */ GIR_EraseRootFromParent_Done,
10700 /* 10314 */ // Label 457: @10314
10701 /* 10314 */ GIM_Reject,
10702 /* 10315 */ // Label 61: @10315
10703 /* 10315 */ GIM_Try, /*On fail goto*//*Label 458*/ GIMT_Encode4(10342), // Rule ID 397 //
10704 /* 10320 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule267Enabled),
10705 /* 10323 */ // MIs[0] dst
10706 /* 10323 */ // No operand predicates
10707 /* 10323 */ // MIs[0] lhs
10708 /* 10323 */ // No operand predicates
10709 /* 10323 */ // MIs[0] rhs
10710 /* 10323 */ // No operand predicates
10711 /* 10323 */ // MIs[0] scale
10712 /* 10323 */ // No operand predicates
10713 /* 10323 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner51),
10714 /* 10327 */ // Combiner Rule #267: G_UMULFIX_commute_constant_to_rhs
10715 /* 10327 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UMULFIX),
10716 /* 10330 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10717 /* 10332 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
10718 /* 10334 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
10719 /* 10336 */ GIR_RootToRootCopy, /*OpIdx*/3, // scale
10720 /* 10338 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
10721 /* 10341 */ GIR_EraseRootFromParent_Done,
10722 /* 10342 */ // Label 458: @10342
10723 /* 10342 */ GIM_Reject,
10724 /* 10343 */ // Label 62: @10343
10725 /* 10343 */ GIM_Try, /*On fail goto*//*Label 459*/ GIMT_Encode4(10370), // Rule ID 398 //
10726 /* 10348 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule268Enabled),
10727 /* 10351 */ // MIs[0] dst
10728 /* 10351 */ // No operand predicates
10729 /* 10351 */ // MIs[0] lhs
10730 /* 10351 */ // No operand predicates
10731 /* 10351 */ // MIs[0] rhs
10732 /* 10351 */ // No operand predicates
10733 /* 10351 */ // MIs[0] scale
10734 /* 10351 */ // No operand predicates
10735 /* 10351 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner51),
10736 /* 10355 */ // Combiner Rule #268: G_SMULFIXSAT_commute_constant_to_rhs
10737 /* 10355 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SMULFIXSAT),
10738 /* 10358 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10739 /* 10360 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
10740 /* 10362 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
10741 /* 10364 */ GIR_RootToRootCopy, /*OpIdx*/3, // scale
10742 /* 10366 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
10743 /* 10369 */ GIR_EraseRootFromParent_Done,
10744 /* 10370 */ // Label 459: @10370
10745 /* 10370 */ GIM_Reject,
10746 /* 10371 */ // Label 63: @10371
10747 /* 10371 */ GIM_Try, /*On fail goto*//*Label 460*/ GIMT_Encode4(10398), // Rule ID 399 //
10748 /* 10376 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule269Enabled),
10749 /* 10379 */ // MIs[0] dst
10750 /* 10379 */ // No operand predicates
10751 /* 10379 */ // MIs[0] lhs
10752 /* 10379 */ // No operand predicates
10753 /* 10379 */ // MIs[0] rhs
10754 /* 10379 */ // No operand predicates
10755 /* 10379 */ // MIs[0] scale
10756 /* 10379 */ // No operand predicates
10757 /* 10379 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner51),
10758 /* 10383 */ // Combiner Rule #269: G_UMULFIXSAT_commute_constant_to_rhs
10759 /* 10383 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UMULFIXSAT),
10760 /* 10386 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10761 /* 10388 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
10762 /* 10390 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
10763 /* 10392 */ GIR_RootToRootCopy, /*OpIdx*/3, // scale
10764 /* 10394 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
10765 /* 10397 */ GIR_EraseRootFromParent_Done,
10766 /* 10398 */ // Label 460: @10398
10767 /* 10398 */ GIM_Reject,
10768 /* 10399 */ // Label 64: @10399
10769 /* 10399 */ GIM_Try, /*On fail goto*//*Label 461*/ GIMT_Encode4(10428), // Rule ID 160 //
10770 /* 10404 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule115Enabled),
10771 /* 10407 */ GIM_MIFlags, /*MI*/0, GIMT_Encode4(MachineInstr::FmNsz),
10772 /* 10413 */ // MIs[0] dst
10773 /* 10413 */ // No operand predicates
10774 /* 10413 */ // MIs[0] x
10775 /* 10413 */ // No operand predicates
10776 /* 10413 */ // MIs[0] y
10777 /* 10413 */ // No operand predicates
10778 /* 10413 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner21),
10779 /* 10417 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
10780 /* 10422 */ // Combiner Rule #115: right_identity_neg_zero_fp_nsz
10781 /* 10422 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
10782 /* 10427 */ GIR_EraseRootFromParent_Done,
10783 /* 10428 */ // Label 461: @10428
10784 /* 10428 */ GIM_Try, /*On fail goto*//*Label 462*/ GIMT_Encode4(10465), // Rule ID 327 //
10785 /* 10433 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule221Enabled),
10786 /* 10436 */ // MIs[0] dst
10787 /* 10436 */ // No operand predicates
10788 /* 10436 */ // MIs[0] negy
10789 /* 10436 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
10790 /* 10440 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FNEG),
10791 /* 10444 */ // MIs[1] y
10792 /* 10444 */ // No operand predicates
10793 /* 10444 */ // MIs[0] x
10794 /* 10444 */ // No operand predicates
10795 /* 10444 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner44),
10796 /* 10448 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
10797 /* 10450 */ // Combiner Rule #221: redundant_neg_operands_fadd_lhs
10798 /* 10450 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FSUB),
10799 /* 10453 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10800 /* 10455 */ GIR_RootToRootCopy, /*OpIdx*/2, // x
10801 /* 10457 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // y
10802 /* 10461 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
10803 /* 10464 */ GIR_EraseRootFromParent_Done,
10804 /* 10465 */ // Label 462: @10465
10805 /* 10465 */ GIM_Try, /*On fail goto*//*Label 463*/ GIMT_Encode4(10502), // Rule ID 326 //
10806 /* 10470 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule220Enabled),
10807 /* 10473 */ // MIs[0] dst
10808 /* 10473 */ // No operand predicates
10809 /* 10473 */ // MIs[0] x
10810 /* 10473 */ // No operand predicates
10811 /* 10473 */ // MIs[0] negy
10812 /* 10473 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
10813 /* 10477 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FNEG),
10814 /* 10481 */ // MIs[1] y
10815 /* 10481 */ // No operand predicates
10816 /* 10481 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner44),
10817 /* 10485 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
10818 /* 10487 */ // Combiner Rule #220: redundant_neg_operands_fadd_rhs
10819 /* 10487 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FSUB),
10820 /* 10490 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10821 /* 10492 */ GIR_RootToRootCopy, /*OpIdx*/1, // x
10822 /* 10494 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // y
10823 /* 10498 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
10824 /* 10501 */ GIR_EraseRootFromParent_Done,
10825 /* 10502 */ // Label 463: @10502
10826 /* 10502 */ GIM_Try, /*On fail goto*//*Label 464*/ GIMT_Encode4(10525), // Rule ID 159 //
10827 /* 10507 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule114Enabled),
10828 /* 10510 */ // MIs[0] dst
10829 /* 10510 */ // No operand predicates
10830 /* 10510 */ // MIs[0] x
10831 /* 10510 */ // No operand predicates
10832 /* 10510 */ // MIs[0] y
10833 /* 10510 */ // No operand predicates
10834 /* 10510 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner20),
10835 /* 10514 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
10836 /* 10519 */ // Combiner Rule #114: right_identity_neg_zero_fp
10837 /* 10519 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
10838 /* 10524 */ GIR_EraseRootFromParent_Done,
10839 /* 10525 */ // Label 464: @10525
10840 /* 10525 */ GIM_Try, /*On fail goto*//*Label 465*/ GIMT_Encode4(10550), // Rule ID 404 //
10841 /* 10530 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule274Enabled),
10842 /* 10533 */ // MIs[0] dst
10843 /* 10533 */ // No operand predicates
10844 /* 10533 */ // MIs[0] lhs
10845 /* 10533 */ // No operand predicates
10846 /* 10533 */ // MIs[0] rhs
10847 /* 10533 */ // No operand predicates
10848 /* 10533 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner52),
10849 /* 10537 */ // Combiner Rule #274: G_FADD_commute_fp_constant_to_rhs
10850 /* 10537 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FADD),
10851 /* 10540 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10852 /* 10542 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
10853 /* 10544 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
10854 /* 10546 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
10855 /* 10549 */ GIR_EraseRootFromParent_Done,
10856 /* 10550 */ // Label 465: @10550
10857 /* 10550 */ GIM_Try, /*On fail goto*//*Label 466*/ GIMT_Encode4(10561), // Rule ID 299 //
10858 /* 10555 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule214Enabled),
10859 /* 10558 */ // MIs[0] d
10860 /* 10558 */ // No operand predicates
10861 /* 10558 */ // MIs[0] mi.src0
10862 /* 10558 */ // No operand predicates
10863 /* 10558 */ // MIs[0] mi.src1
10864 /* 10558 */ // No operand predicates
10865 /* 10558 */ // Combiner Rule #214: constant_fold_fp_binop @ [mi[0]]
10866 /* 10558 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
10867 /* 10561 */ // Label 466: @10561
10868 /* 10561 */ GIM_Try, /*On fail goto*//*Label 467*/ GIMT_Encode4(10572), // Rule ID 334 //
10869 /* 10566 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule228Enabled),
10870 /* 10569 */ // MIs[0] dst
10871 /* 10569 */ // No operand predicates
10872 /* 10569 */ // MIs[0] src1
10873 /* 10569 */ // No operand predicates
10874 /* 10569 */ // MIs[0] src2
10875 /* 10569 */ // No operand predicates
10876 /* 10569 */ // Combiner Rule #228: combine_fadd_fmul_to_fmad_or_fma
10877 /* 10569 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner86),
10878 /* 10572 */ // Label 467: @10572
10879 /* 10572 */ GIM_Try, /*On fail goto*//*Label 468*/ GIMT_Encode4(10583), // Rule ID 335 //
10880 /* 10577 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule229Enabled),
10881 /* 10580 */ // MIs[0] dst
10882 /* 10580 */ // No operand predicates
10883 /* 10580 */ // MIs[0] src1
10884 /* 10580 */ // No operand predicates
10885 /* 10580 */ // MIs[0] src2
10886 /* 10580 */ // No operand predicates
10887 /* 10580 */ // Combiner Rule #229: combine_fadd_fpext_fmul_to_fmad_or_fma
10888 /* 10580 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner87),
10889 /* 10583 */ // Label 468: @10583
10890 /* 10583 */ GIM_Try, /*On fail goto*//*Label 469*/ GIMT_Encode4(10594), // Rule ID 336 //
10891 /* 10588 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule230Enabled),
10892 /* 10591 */ // MIs[0] dst
10893 /* 10591 */ // No operand predicates
10894 /* 10591 */ // MIs[0] src1
10895 /* 10591 */ // No operand predicates
10896 /* 10591 */ // MIs[0] src2
10897 /* 10591 */ // No operand predicates
10898 /* 10591 */ // Combiner Rule #230: combine_fadd_fma_fmul_to_fmad_or_fma
10899 /* 10591 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner88),
10900 /* 10594 */ // Label 469: @10594
10901 /* 10594 */ GIM_Try, /*On fail goto*//*Label 470*/ GIMT_Encode4(10605), // Rule ID 337 //
10902 /* 10599 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule231Enabled),
10903 /* 10602 */ // MIs[0] dst
10904 /* 10602 */ // No operand predicates
10905 /* 10602 */ // MIs[0] src1
10906 /* 10602 */ // No operand predicates
10907 /* 10602 */ // MIs[0] src2
10908 /* 10602 */ // No operand predicates
10909 /* 10602 */ // Combiner Rule #231: combine_fadd_fpext_fma_fmul_to_fmad_or_fma
10910 /* 10602 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner89),
10911 /* 10605 */ // Label 470: @10605
10912 /* 10605 */ GIM_Try, /*On fail goto*//*Label 471*/ GIMT_Encode4(10616), // Rule ID 360 //
10913 /* 10610 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule237Enabled),
10914 /* 10613 */ // MIs[0] root
10915 /* 10613 */ // No operand predicates
10916 /* 10613 */ // MIs[0] mi.x
10917 /* 10613 */ // No operand predicates
10918 /* 10613 */ // MIs[0] mi.y
10919 /* 10613 */ // No operand predicates
10920 /* 10613 */ // Combiner Rule #237: fold_binop_into_select_b @ [mi[5]]
10921 /* 10613 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
10922 /* 10616 */ // Label 471: @10616
10923 /* 10616 */ GIM_Reject,
10924 /* 10617 */ // Label 65: @10617
10925 /* 10617 */ GIM_Try, /*On fail goto*//*Label 472*/ GIMT_Encode4(10658), // Rule ID 382 //
10926 /* 10622 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule252Enabled),
10927 /* 10625 */ // MIs[0] dst
10928 /* 10625 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
10929 /* 10629 */ // MIs[0] lhs
10930 /* 10629 */ // No operand predicates
10931 /* 10629 */ // MIs[0] rhs
10932 /* 10629 */ // No operand predicates
10933 /* 10629 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner50),
10934 /* 10633 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
10935 /* 10636 */ // Combiner Rule #252: fsub_to_fneg
10936 /* 10636 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FCANONICALIZE),
10937 /* 10639 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
10938 /* 10644 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
10939 /* 10646 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FNEG),
10940 /* 10650 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
10941 /* 10654 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
10942 /* 10657 */ GIR_EraseRootFromParent_Done,
10943 /* 10658 */ // Label 472: @10658
10944 /* 10658 */ GIM_Try, /*On fail goto*//*Label 473*/ GIMT_Encode4(10695), // Rule ID 328 //
10945 /* 10663 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule222Enabled),
10946 /* 10666 */ // MIs[0] dst
10947 /* 10666 */ // No operand predicates
10948 /* 10666 */ // MIs[0] x
10949 /* 10666 */ // No operand predicates
10950 /* 10666 */ // MIs[0] negy
10951 /* 10666 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
10952 /* 10670 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FNEG),
10953 /* 10674 */ // MIs[1] y
10954 /* 10674 */ // No operand predicates
10955 /* 10674 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner45),
10956 /* 10678 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
10957 /* 10680 */ // Combiner Rule #222: redundant_neg_operands_fsub
10958 /* 10680 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FADD),
10959 /* 10683 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10960 /* 10685 */ GIR_RootToRootCopy, /*OpIdx*/1, // x
10961 /* 10687 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // y
10962 /* 10691 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
10963 /* 10694 */ GIR_EraseRootFromParent_Done,
10964 /* 10695 */ // Label 473: @10695
10965 /* 10695 */ GIM_Try, /*On fail goto*//*Label 474*/ GIMT_Encode4(10706), // Rule ID 300 //
10966 /* 10700 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule214Enabled),
10967 /* 10703 */ // MIs[0] d
10968 /* 10703 */ // No operand predicates
10969 /* 10703 */ // MIs[0] mi.src0
10970 /* 10703 */ // No operand predicates
10971 /* 10703 */ // MIs[0] mi.src1
10972 /* 10703 */ // No operand predicates
10973 /* 10703 */ // Combiner Rule #214: constant_fold_fp_binop @ [mi[1]]
10974 /* 10703 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
10975 /* 10706 */ // Label 474: @10706
10976 /* 10706 */ GIM_Try, /*On fail goto*//*Label 475*/ GIMT_Encode4(10717), // Rule ID 338 //
10977 /* 10711 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule232Enabled),
10978 /* 10714 */ // MIs[0] dst
10979 /* 10714 */ // No operand predicates
10980 /* 10714 */ // MIs[0] src1
10981 /* 10714 */ // No operand predicates
10982 /* 10714 */ // MIs[0] src2
10983 /* 10714 */ // No operand predicates
10984 /* 10714 */ // Combiner Rule #232: combine_fsub_fmul_to_fmad_or_fma
10985 /* 10714 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner90),
10986 /* 10717 */ // Label 475: @10717
10987 /* 10717 */ GIM_Try, /*On fail goto*//*Label 476*/ GIMT_Encode4(10728), // Rule ID 339 //
10988 /* 10722 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule233Enabled),
10989 /* 10725 */ // MIs[0] dst
10990 /* 10725 */ // No operand predicates
10991 /* 10725 */ // MIs[0] src1
10992 /* 10725 */ // No operand predicates
10993 /* 10725 */ // MIs[0] src2
10994 /* 10725 */ // No operand predicates
10995 /* 10725 */ // Combiner Rule #233: combine_fsub_fneg_fmul_to_fmad_or_fma
10996 /* 10725 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner91),
10997 /* 10728 */ // Label 476: @10728
10998 /* 10728 */ GIM_Try, /*On fail goto*//*Label 477*/ GIMT_Encode4(10739), // Rule ID 340 //
10999 /* 10733 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule234Enabled),
11000 /* 10736 */ // MIs[0] dst
11001 /* 10736 */ // No operand predicates
11002 /* 10736 */ // MIs[0] src1
11003 /* 10736 */ // No operand predicates
11004 /* 10736 */ // MIs[0] src2
11005 /* 10736 */ // No operand predicates
11006 /* 10736 */ // Combiner Rule #234: combine_fsub_fpext_fmul_to_fmad_or_fma
11007 /* 10736 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner92),
11008 /* 10739 */ // Label 477: @10739
11009 /* 10739 */ GIM_Try, /*On fail goto*//*Label 478*/ GIMT_Encode4(10750), // Rule ID 341 //
11010 /* 10744 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule235Enabled),
11011 /* 10747 */ // MIs[0] dst
11012 /* 10747 */ // No operand predicates
11013 /* 10747 */ // MIs[0] src1
11014 /* 10747 */ // No operand predicates
11015 /* 10747 */ // MIs[0] src2
11016 /* 10747 */ // No operand predicates
11017 /* 10747 */ // Combiner Rule #235: combine_fsub_fpext_fneg_fmul_to_fmad_or_fma
11018 /* 10747 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner93),
11019 /* 10750 */ // Label 478: @10750
11020 /* 10750 */ GIM_Try, /*On fail goto*//*Label 479*/ GIMT_Encode4(10761), // Rule ID 361 //
11021 /* 10755 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule237Enabled),
11022 /* 10758 */ // MIs[0] root
11023 /* 10758 */ // No operand predicates
11024 /* 10758 */ // MIs[0] mi.x
11025 /* 10758 */ // No operand predicates
11026 /* 10758 */ // MIs[0] mi.y
11027 /* 10758 */ // No operand predicates
11028 /* 10758 */ // Combiner Rule #237: fold_binop_into_select_b @ [mi[6]]
11029 /* 10758 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
11030 /* 10761 */ // Label 479: @10761
11031 /* 10761 */ GIM_Reject,
11032 /* 10762 */ // Label 66: @10762
11033 /* 10762 */ GIM_Try, /*On fail goto*//*Label 480*/ GIMT_Encode4(10785), // Rule ID 149 //
11034 /* 10767 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule105Enabled),
11035 /* 10770 */ // MIs[0] dst
11036 /* 10770 */ // No operand predicates
11037 /* 10770 */ // MIs[0] x
11038 /* 10770 */ // No operand predicates
11039 /* 10770 */ // MIs[0] y
11040 /* 10770 */ // No operand predicates
11041 /* 10770 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner18),
11042 /* 10774 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
11043 /* 10779 */ // Combiner Rule #105: right_identity_one_fp
11044 /* 10779 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
11045 /* 10784 */ GIR_EraseRootFromParent_Done,
11046 /* 10785 */ // Label 480: @10785
11047 /* 10785 */ GIM_Try, /*On fail goto*//*Label 481*/ GIMT_Encode4(10805), // Rule ID 161 //
11048 /* 10790 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule116Enabled),
11049 /* 10793 */ // MIs[0] dst
11050 /* 10793 */ // No operand predicates
11051 /* 10793 */ // MIs[0] x
11052 /* 10793 */ // No operand predicates
11053 /* 10793 */ // MIs[0] y
11054 /* 10793 */ // No operand predicates
11055 /* 10793 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner22),
11056 /* 10797 */ // Combiner Rule #116: right_identity_neg_one_fp
11057 /* 10797 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FNEG),
11058 /* 10800 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
11059 /* 10802 */ GIR_RootToRootCopy, /*OpIdx*/1, // x
11060 /* 10804 */ GIR_EraseRootFromParent_Done,
11061 /* 10805 */ // Label 481: @10805
11062 /* 10805 */ GIM_Try, /*On fail goto*//*Label 482*/ GIMT_Encode4(10830), // Rule ID 405 //
11063 /* 10810 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule275Enabled),
11064 /* 10813 */ // MIs[0] dst
11065 /* 10813 */ // No operand predicates
11066 /* 10813 */ // MIs[0] lhs
11067 /* 10813 */ // No operand predicates
11068 /* 10813 */ // MIs[0] rhs
11069 /* 10813 */ // No operand predicates
11070 /* 10813 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner52),
11071 /* 10817 */ // Combiner Rule #275: G_FMUL_commute_fp_constant_to_rhs
11072 /* 10817 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FMUL),
11073 /* 10820 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
11074 /* 10822 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
11075 /* 10824 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
11076 /* 10826 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
11077 /* 10829 */ GIR_EraseRootFromParent_Done,
11078 /* 10830 */ // Label 482: @10830
11079 /* 10830 */ GIM_Try, /*On fail goto*//*Label 483*/ GIMT_Encode4(10873), // Rule ID 329 //
11080 /* 10835 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule223Enabled),
11081 /* 10838 */ // MIs[0] dst
11082 /* 10838 */ // No operand predicates
11083 /* 10838 */ // MIs[0] nx
11084 /* 10838 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
11085 /* 10842 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FNEG),
11086 /* 10846 */ // MIs[1] x
11087 /* 10846 */ // No operand predicates
11088 /* 10846 */ // MIs[0] ny
11089 /* 10846 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
11090 /* 10850 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_FNEG),
11091 /* 10854 */ // MIs[2] y
11092 /* 10854 */ // No operand predicates
11093 /* 10854 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
11094 /* 10856 */ // Combiner Rule #223: G_FMUL_fneg_fneg
11095 /* 10856 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FMUL),
11096 /* 10859 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
11097 /* 10861 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
11098 /* 10865 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // y
11099 /* 10869 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
11100 /* 10872 */ GIR_EraseRootFromParent_Done,
11101 /* 10873 */ // Label 483: @10873
11102 /* 10873 */ GIM_Try, /*On fail goto*//*Label 484*/ GIMT_Encode4(10894), // Rule ID 476 //
11103 /* 10878 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule340Enabled),
11104 /* 10881 */ // MIs[0] dst
11105 /* 10881 */ // No operand predicates
11106 /* 10881 */ // MIs[0] x
11107 /* 10881 */ // No operand predicates
11108 /* 10881 */ // MIs[0] select
11109 /* 10881 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
11110 /* 10885 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SELECT),
11111 /* 10889 */ // MIs[1] y
11112 /* 10889 */ // No operand predicates
11113 /* 10889 */ // MIs[1] A
11114 /* 10889 */ // No operand predicates
11115 /* 10889 */ // MIs[1] B
11116 /* 10889 */ // No operand predicates
11117 /* 10889 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
11118 /* 10891 */ // Combiner Rule #340: combine_fmul_with_select_to_fldexp
11119 /* 10891 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129),
11120 /* 10894 */ // Label 484: @10894
11121 /* 10894 */ GIM_Try, /*On fail goto*//*Label 485*/ GIMT_Encode4(10905), // Rule ID 301 //
11122 /* 10899 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule214Enabled),
11123 /* 10902 */ // MIs[0] d
11124 /* 10902 */ // No operand predicates
11125 /* 10902 */ // MIs[0] mi.src0
11126 /* 10902 */ // No operand predicates
11127 /* 10902 */ // MIs[0] mi.src1
11128 /* 10902 */ // No operand predicates
11129 /* 10902 */ // Combiner Rule #214: constant_fold_fp_binop @ [mi[2]]
11130 /* 10902 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
11131 /* 10905 */ // Label 485: @10905
11132 /* 10905 */ GIM_Try, /*On fail goto*//*Label 486*/ GIMT_Encode4(10916), // Rule ID 359 //
11133 /* 10910 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule237Enabled),
11134 /* 10913 */ // MIs[0] root
11135 /* 10913 */ // No operand predicates
11136 /* 10913 */ // MIs[0] mi.x
11137 /* 10913 */ // No operand predicates
11138 /* 10913 */ // MIs[0] mi.y
11139 /* 10913 */ // No operand predicates
11140 /* 10913 */ // Combiner Rule #237: fold_binop_into_select_b @ [mi[4]]
11141 /* 10913 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
11142 /* 10916 */ // Label 486: @10916
11143 /* 10916 */ GIM_Reject,
11144 /* 10917 */ // Label 67: @10917
11145 /* 10917 */ GIM_Try, /*On fail goto*//*Label 487*/ GIMT_Encode4(10962), // Rule ID 332 //
11146 /* 10922 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule226Enabled),
11147 /* 10925 */ // MIs[0] dst
11148 /* 10925 */ // No operand predicates
11149 /* 10925 */ // MIs[0] nx
11150 /* 10925 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
11151 /* 10929 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FNEG),
11152 /* 10933 */ // MIs[1] x
11153 /* 10933 */ // No operand predicates
11154 /* 10933 */ // MIs[0] ny
11155 /* 10933 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
11156 /* 10937 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_FNEG),
11157 /* 10941 */ // MIs[2] y
11158 /* 10941 */ // No operand predicates
11159 /* 10941 */ // MIs[0] z
11160 /* 10941 */ // No operand predicates
11161 /* 10941 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
11162 /* 10943 */ // Combiner Rule #226: G_FMA_fneg_fneg
11163 /* 10943 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FMA),
11164 /* 10946 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
11165 /* 10948 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
11166 /* 10952 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // y
11167 /* 10956 */ GIR_RootToRootCopy, /*OpIdx*/3, // z
11168 /* 10958 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
11169 /* 10961 */ GIR_EraseRootFromParent_Done,
11170 /* 10962 */ // Label 487: @10962
11171 /* 10962 */ GIM_Try, /*On fail goto*//*Label 488*/ GIMT_Encode4(10973), // Rule ID 312 //
11172 /* 10967 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule215Enabled),
11173 /* 10970 */ // MIs[0] dst
11174 /* 10970 */ // No operand predicates
11175 /* 10970 */ // MIs[0] d.src0
11176 /* 10970 */ // No operand predicates
11177 /* 10970 */ // MIs[0] d.src1
11178 /* 10970 */ // No operand predicates
11179 /* 10970 */ // MIs[0] d.src2
11180 /* 10970 */ // No operand predicates
11181 /* 10970 */ // Combiner Rule #215: constant_fold_fma @ [d[1]]
11182 /* 10970 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner81),
11183 /* 10973 */ // Label 488: @10973
11184 /* 10973 */ GIM_Reject,
11185 /* 10974 */ // Label 68: @10974
11186 /* 10974 */ GIM_Try, /*On fail goto*//*Label 489*/ GIMT_Encode4(11019), // Rule ID 331 //
11187 /* 10979 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule225Enabled),
11188 /* 10982 */ // MIs[0] dst
11189 /* 10982 */ // No operand predicates
11190 /* 10982 */ // MIs[0] nx
11191 /* 10982 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
11192 /* 10986 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FNEG),
11193 /* 10990 */ // MIs[1] x
11194 /* 10990 */ // No operand predicates
11195 /* 10990 */ // MIs[0] ny
11196 /* 10990 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
11197 /* 10994 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_FNEG),
11198 /* 10998 */ // MIs[2] y
11199 /* 10998 */ // No operand predicates
11200 /* 10998 */ // MIs[0] z
11201 /* 10998 */ // No operand predicates
11202 /* 10998 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
11203 /* 11000 */ // Combiner Rule #225: G_FMAD_fneg_fneg
11204 /* 11000 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FMAD),
11205 /* 11003 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
11206 /* 11005 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
11207 /* 11009 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // y
11208 /* 11013 */ GIR_RootToRootCopy, /*OpIdx*/3, // z
11209 /* 11015 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
11210 /* 11018 */ GIR_EraseRootFromParent_Done,
11211 /* 11019 */ // Label 489: @11019
11212 /* 11019 */ GIM_Try, /*On fail goto*//*Label 490*/ GIMT_Encode4(11030), // Rule ID 311 //
11213 /* 11024 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule215Enabled),
11214 /* 11027 */ // MIs[0] dst
11215 /* 11027 */ // No operand predicates
11216 /* 11027 */ // MIs[0] d.src0
11217 /* 11027 */ // No operand predicates
11218 /* 11027 */ // MIs[0] d.src1
11219 /* 11027 */ // No operand predicates
11220 /* 11027 */ // MIs[0] d.src2
11221 /* 11027 */ // No operand predicates
11222 /* 11027 */ // Combiner Rule #215: constant_fold_fma @ [d[0]]
11223 /* 11027 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner81),
11224 /* 11030 */ // Label 490: @11030
11225 /* 11030 */ GIM_Reject,
11226 /* 11031 */ // Label 69: @11031
11227 /* 11031 */ GIM_Try, /*On fail goto*//*Label 491*/ GIMT_Encode4(11074), // Rule ID 330 //
11228 /* 11036 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule224Enabled),
11229 /* 11039 */ // MIs[0] dst
11230 /* 11039 */ // No operand predicates
11231 /* 11039 */ // MIs[0] nx
11232 /* 11039 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
11233 /* 11043 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FNEG),
11234 /* 11047 */ // MIs[1] x
11235 /* 11047 */ // No operand predicates
11236 /* 11047 */ // MIs[0] ny
11237 /* 11047 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
11238 /* 11051 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_FNEG),
11239 /* 11055 */ // MIs[2] y
11240 /* 11055 */ // No operand predicates
11241 /* 11055 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
11242 /* 11057 */ // Combiner Rule #224: G_FDIV_fneg_fneg
11243 /* 11057 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FDIV),
11244 /* 11060 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
11245 /* 11062 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
11246 /* 11066 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // y
11247 /* 11070 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
11248 /* 11073 */ GIR_EraseRootFromParent_Done,
11249 /* 11074 */ // Label 491: @11074
11250 /* 11074 */ GIM_Try, /*On fail goto*//*Label 492*/ GIMT_Encode4(11085), // Rule ID 302 //
11251 /* 11079 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule214Enabled),
11252 /* 11082 */ // MIs[0] d
11253 /* 11082 */ // No operand predicates
11254 /* 11082 */ // MIs[0] mi.src0
11255 /* 11082 */ // No operand predicates
11256 /* 11082 */ // MIs[0] mi.src1
11257 /* 11082 */ // No operand predicates
11258 /* 11082 */ // Combiner Rule #214: constant_fold_fp_binop @ [mi[3]]
11259 /* 11082 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
11260 /* 11085 */ // Label 492: @11085
11261 /* 11085 */ GIM_Try, /*On fail goto*//*Label 493*/ GIMT_Encode4(11096), // Rule ID 362 //
11262 /* 11090 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule237Enabled),
11263 /* 11093 */ // MIs[0] root
11264 /* 11093 */ // No operand predicates
11265 /* 11093 */ // MIs[0] mi.x
11266 /* 11093 */ // No operand predicates
11267 /* 11093 */ // MIs[0] mi.y
11268 /* 11093 */ // No operand predicates
11269 /* 11093 */ // Combiner Rule #237: fold_binop_into_select_b @ [mi[7]]
11270 /* 11093 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
11271 /* 11096 */ // Label 493: @11096
11272 /* 11096 */ GIM_Try, /*On fail goto*//*Label 494*/ GIMT_Encode4(11107), // Rule ID 376 //
11273 /* 11101 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule246Enabled),
11274 /* 11104 */ // MIs[0] dst
11275 /* 11104 */ // No operand predicates
11276 /* 11104 */ // MIs[0] src1
11277 /* 11104 */ // No operand predicates
11278 /* 11104 */ // MIs[0] src2
11279 /* 11104 */ // No operand predicates
11280 /* 11104 */ // Combiner Rule #246: fdiv_repeated_divison
11281 /* 11104 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner101),
11282 /* 11107 */ // Label 494: @11107
11283 /* 11107 */ GIM_Reject,
11284 /* 11108 */ // Label 70: @11108
11285 /* 11108 */ GIM_Try, /*On fail goto*//*Label 495*/ GIMT_Encode4(11119), // Rule ID 303 //
11286 /* 11113 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule214Enabled),
11287 /* 11116 */ // MIs[0] d
11288 /* 11116 */ // No operand predicates
11289 /* 11116 */ // MIs[0] mi.src0
11290 /* 11116 */ // No operand predicates
11291 /* 11116 */ // MIs[0] mi.src1
11292 /* 11116 */ // No operand predicates
11293 /* 11116 */ // Combiner Rule #214: constant_fold_fp_binop @ [mi[4]]
11294 /* 11116 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
11295 /* 11119 */ // Label 495: @11119
11296 /* 11119 */ GIM_Try, /*On fail goto*//*Label 496*/ GIMT_Encode4(11130), // Rule ID 363 //
11297 /* 11124 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule237Enabled),
11298 /* 11127 */ // MIs[0] root
11299 /* 11127 */ // No operand predicates
11300 /* 11127 */ // MIs[0] mi.x
11301 /* 11127 */ // No operand predicates
11302 /* 11127 */ // MIs[0] mi.y
11303 /* 11127 */ // No operand predicates
11304 /* 11127 */ // Combiner Rule #237: fold_binop_into_select_b @ [mi[8]]
11305 /* 11127 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
11306 /* 11130 */ // Label 496: @11130
11307 /* 11130 */ GIM_Reject,
11308 /* 11131 */ // Label 71: @11131
11309 /* 11131 */ GIM_Try, /*On fail goto*//*Label 497*/ GIMT_Encode4(11152), // Rule ID 243 //
11310 /* 11136 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule189Enabled),
11311 /* 11139 */ // MIs[0] dst
11312 /* 11139 */ // No operand predicates
11313 /* 11139 */ // MIs[0] float
11314 /* 11139 */ // No operand predicates
11315 /* 11139 */ // MIs[0] int
11316 /* 11139 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
11317 /* 11143 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
11318 /* 11147 */ // MIs[1] imm
11319 /* 11147 */ // No operand predicates
11320 /* 11147 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
11321 /* 11149 */ // Combiner Rule #189: expand_const_fpowi
11322 /* 11149 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner67),
11323 /* 11152 */ // Label 497: @11152
11324 /* 11152 */ GIM_Reject,
11325 /* 11153 */ // Label 72: @11153
11326 /* 11153 */ GIM_Try, /*On fail goto*//*Label 498*/ GIMT_Encode4(11164), // Rule ID 213 //
11327 /* 11158 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule163Enabled),
11328 /* 11161 */ // MIs[0] dst
11329 /* 11161 */ // No operand predicates
11330 /* 11161 */ // MIs[0] src0
11331 /* 11161 */ // No operand predicates
11332 /* 11161 */ // Combiner Rule #163: constant_fold_flog2
11333 /* 11161 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner63),
11334 /* 11164 */ // Label 498: @11164
11335 /* 11164 */ GIM_Reject,
11336 /* 11165 */ // Label 73: @11165
11337 /* 11165 */ GIM_Try, /*On fail goto*//*Label 499*/ GIMT_Encode4(11194), // Rule ID 147 //
11338 /* 11170 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule103Enabled),
11339 /* 11173 */ // MIs[0] dst
11340 /* 11173 */ // No operand predicates
11341 /* 11173 */ // MIs[0] t
11342 /* 11173 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
11343 /* 11177 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FNEG),
11344 /* 11181 */ // MIs[1] src
11345 /* 11181 */ // No operand predicates
11346 /* 11181 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
11347 /* 11186 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
11348 /* 11188 */ // Combiner Rule #103: fneg_fneg_fold
11349 /* 11188 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
11350 /* 11193 */ GIR_EraseRootFromParent_Done,
11351 /* 11194 */ // Label 499: @11194
11352 /* 11194 */ GIM_Try, /*On fail goto*//*Label 500*/ GIMT_Encode4(11205), // Rule ID 210 //
11353 /* 11199 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule160Enabled),
11354 /* 11202 */ // MIs[0] dst
11355 /* 11202 */ // No operand predicates
11356 /* 11202 */ // MIs[0] src0
11357 /* 11202 */ // No operand predicates
11358 /* 11202 */ // Combiner Rule #160: constant_fold_fneg
11359 /* 11202 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner63),
11360 /* 11205 */ // Label 500: @11205
11361 /* 11205 */ GIM_Try, /*On fail goto*//*Label 501*/ GIMT_Encode4(11216), // Rule ID 478 //
11362 /* 11210 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule342Enabled),
11363 /* 11213 */ // MIs[0] dst
11364 /* 11213 */ // No operand predicates
11365 /* 11213 */ // MIs[0] src
11366 /* 11213 */ // No operand predicates
11367 /* 11213 */ // Combiner Rule #342: foldable_fneg
11368 /* 11213 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner131),
11369 /* 11216 */ // Label 501: @11216
11370 /* 11216 */ GIM_Reject,
11371 /* 11217 */ // Label 74: @11217
11372 /* 11217 */ GIM_Try, /*On fail goto*//*Label 502*/ GIMT_Encode4(11228), // Rule ID 215 //
11373 /* 11222 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule165Enabled),
11374 /* 11225 */ // MIs[0] dst
11375 /* 11225 */ // No operand predicates
11376 /* 11225 */ // MIs[0] src0
11377 /* 11225 */ // No operand predicates
11378 /* 11225 */ // Combiner Rule #165: constant_fold_fpext
11379 /* 11225 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner63),
11380 /* 11228 */ // Label 502: @11228
11381 /* 11228 */ GIM_Reject,
11382 /* 11229 */ // Label 75: @11229
11383 /* 11229 */ GIM_Try, /*On fail goto*//*Label 503*/ GIMT_Encode4(11262), // Rule ID 158 //
11384 /* 11234 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule113Enabled),
11385 /* 11237 */ // MIs[0] dst
11386 /* 11237 */ // No operand predicates
11387 /* 11237 */ // MIs[0] src1
11388 /* 11237 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
11389 /* 11241 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FPEXT),
11390 /* 11245 */ // MIs[1] src0
11391 /* 11245 */ // No operand predicates
11392 /* 11245 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner14),
11393 /* 11249 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
11394 /* 11254 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
11395 /* 11256 */ // Combiner Rule #113: fptrunc_fpext_fold
11396 /* 11256 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
11397 /* 11261 */ GIR_EraseRootFromParent_Done,
11398 /* 11262 */ // Label 503: @11262
11399 /* 11262 */ GIM_Try, /*On fail goto*//*Label 504*/ GIMT_Encode4(11273), // Rule ID 214 //
11400 /* 11267 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule164Enabled),
11401 /* 11270 */ // MIs[0] dst
11402 /* 11270 */ // No operand predicates
11403 /* 11270 */ // MIs[0] src0
11404 /* 11270 */ // No operand predicates
11405 /* 11270 */ // Combiner Rule #164: constant_fold_fptrunc
11406 /* 11270 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner63),
11407 /* 11273 */ // Label 504: @11273
11408 /* 11273 */ GIM_Reject,
11409 /* 11274 */ // Label 76: @11274
11410 /* 11274 */ GIM_Try, /*On fail goto*//*Label 505*/ GIMT_Encode4(11298), // Rule ID 103 //
11411 /* 11279 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule83Enabled),
11412 /* 11282 */ // MIs[0] dst
11413 /* 11282 */ // No operand predicates
11414 /* 11282 */ // MIs[0] __unary_undef_to_undef_match_0.x
11415 /* 11282 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
11416 /* 11286 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
11417 /* 11290 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
11418 /* 11292 */ // Combiner Rule #83: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[5]]
11419 /* 11292 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
11420 /* 11295 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
11421 /* 11297 */ GIR_EraseRootFromParent_Done,
11422 /* 11298 */ // Label 505: @11298
11423 /* 11298 */ GIM_Reject,
11424 /* 11299 */ // Label 77: @11299
11425 /* 11299 */ GIM_Try, /*On fail goto*//*Label 506*/ GIMT_Encode4(11327), // Rule ID 449 //
11426 /* 11304 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule319Enabled),
11427 /* 11307 */ // MIs[0] dst
11428 /* 11307 */ // No operand predicates
11429 /* 11307 */ // MIs[0] floor
11430 /* 11307 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
11431 /* 11311 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FFLOOR),
11432 /* 11315 */ // MIs[1] x
11433 /* 11315 */ // No operand predicates
11434 /* 11315 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
11435 /* 11317 */ // Combiner Rule #319: fptoui_ffloor_fold
11436 /* 11317 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FPTOUI),
11437 /* 11320 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
11438 /* 11322 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
11439 /* 11326 */ GIR_EraseRootFromParent_Done,
11440 /* 11327 */ // Label 506: @11327
11441 /* 11327 */ GIM_Try, /*On fail goto*//*Label 507*/ GIMT_Encode4(11351), // Rule ID 104 //
11442 /* 11332 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule83Enabled),
11443 /* 11335 */ // MIs[0] dst
11444 /* 11335 */ // No operand predicates
11445 /* 11335 */ // MIs[0] __unary_undef_to_undef_match_0.x
11446 /* 11335 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
11447 /* 11339 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
11448 /* 11343 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
11449 /* 11345 */ // Combiner Rule #83: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[6]]
11450 /* 11345 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
11451 /* 11348 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
11452 /* 11350 */ GIR_EraseRootFromParent_Done,
11453 /* 11351 */ // Label 507: @11351
11454 /* 11351 */ GIM_Reject,
11455 /* 11352 */ // Label 78: @11352
11456 /* 11352 */ GIM_Try, /*On fail goto*//*Label 508*/ GIMT_Encode4(11373), // Rule ID 84 //
11457 /* 11357 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule77Enabled),
11458 /* 11360 */ // MIs[0] dst
11459 /* 11360 */ // No operand predicates
11460 /* 11360 */ // MIs[0] __undef_to_fp_zero_match_0.x
11461 /* 11360 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
11462 /* 11364 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
11463 /* 11368 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
11464 /* 11370 */ // Combiner Rule #77: undef_to_fp_zero @ [__undef_to_fp_zero_match_0[1]]
11465 /* 11370 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner30),
11466 /* 11373 */ // Label 508: @11373
11467 /* 11373 */ GIM_Try, /*On fail goto*//*Label 509*/ GIMT_Encode4(11388), // Rule ID 223 //
11468 /* 11378 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule173Enabled),
11469 /* 11381 */ // MIs[0] dst
11470 /* 11381 */ // No operand predicates
11471 /* 11381 */ // MIs[0] Operand 1
11472 /* 11381 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/1, 0,
11473 /* 11385 */ // Combiner Rule #173: itof_const_zero_fold_si
11474 /* 11385 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner30),
11475 /* 11388 */ // Label 509: @11388
11476 /* 11388 */ GIM_Reject,
11477 /* 11389 */ // Label 79: @11389
11478 /* 11389 */ GIM_Try, /*On fail goto*//*Label 510*/ GIMT_Encode4(11410), // Rule ID 83 //
11479 /* 11394 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule77Enabled),
11480 /* 11397 */ // MIs[0] dst
11481 /* 11397 */ // No operand predicates
11482 /* 11397 */ // MIs[0] __undef_to_fp_zero_match_0.x
11483 /* 11397 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
11484 /* 11401 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
11485 /* 11405 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
11486 /* 11407 */ // Combiner Rule #77: undef_to_fp_zero @ [__undef_to_fp_zero_match_0[0]]
11487 /* 11407 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner30),
11488 /* 11410 */ // Label 510: @11410
11489 /* 11410 */ GIM_Try, /*On fail goto*//*Label 511*/ GIMT_Encode4(11425), // Rule ID 224 //
11490 /* 11415 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule174Enabled),
11491 /* 11418 */ // MIs[0] dst
11492 /* 11418 */ // No operand predicates
11493 /* 11418 */ // MIs[0] Operand 1
11494 /* 11418 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/1, 0,
11495 /* 11422 */ // Combiner Rule #174: itof_const_zero_fold_ui
11496 /* 11422 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner30),
11497 /* 11425 */ // Label 511: @11425
11498 /* 11425 */ GIM_Reject,
11499 /* 11426 */ // Label 80: @11426
11500 /* 11426 */ GIM_Try, /*On fail goto*//*Label 512*/ GIMT_Encode4(11454), // Rule ID 450 //
11501 /* 11431 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule320Enabled),
11502 /* 11434 */ // MIs[0] dst
11503 /* 11434 */ // No operand predicates
11504 /* 11434 */ // MIs[0] floor
11505 /* 11434 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
11506 /* 11438 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FFLOOR),
11507 /* 11442 */ // MIs[1] x
11508 /* 11442 */ // No operand predicates
11509 /* 11442 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
11510 /* 11444 */ // Combiner Rule #320: fptouisat_ffloor_fold
11511 /* 11444 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FPTOUI_SAT),
11512 /* 11447 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
11513 /* 11449 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
11514 /* 11453 */ GIR_EraseRootFromParent_Done,
11515 /* 11454 */ // Label 512: @11454
11516 /* 11454 */ GIM_Reject,
11517 /* 11455 */ // Label 81: @11455
11518 /* 11455 */ GIM_Try, /*On fail goto*//*Label 513*/ GIMT_Encode4(11484), // Rule ID 26 //
11519 /* 11460 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule24Enabled),
11520 /* 11463 */ // MIs[0] dst
11521 /* 11463 */ // No operand predicates
11522 /* 11463 */ // MIs[0] src
11523 /* 11463 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
11524 /* 11467 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FABS),
11525 /* 11471 */ // MIs[1] __idempotent_prop_match_0.x
11526 /* 11471 */ // No operand predicates
11527 /* 11471 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
11528 /* 11476 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
11529 /* 11478 */ // Combiner Rule #24: idempotent_prop @ [__idempotent_prop_match_0[1]]
11530 /* 11478 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
11531 /* 11483 */ GIR_EraseRootFromParent_Done,
11532 /* 11484 */ // Label 513: @11484
11533 /* 11484 */ GIM_Try, /*On fail goto*//*Label 514*/ GIMT_Encode4(11512), // Rule ID 324 //
11534 /* 11489 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule218Enabled),
11535 /* 11492 */ // MIs[0] dst
11536 /* 11492 */ // No operand predicates
11537 /* 11492 */ // MIs[0] tmp
11538 /* 11492 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
11539 /* 11496 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FNEG),
11540 /* 11500 */ // MIs[1] x
11541 /* 11500 */ // No operand predicates
11542 /* 11500 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
11543 /* 11502 */ // Combiner Rule #218: fabs_fneg_fold
11544 /* 11502 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FABS),
11545 /* 11505 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
11546 /* 11507 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
11547 /* 11511 */ GIR_EraseRootFromParent_Done,
11548 /* 11512 */ // Label 514: @11512
11549 /* 11512 */ GIM_Try, /*On fail goto*//*Label 515*/ GIMT_Encode4(11533), // Rule ID 479 //
11550 /* 11517 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule343Enabled),
11551 /* 11520 */ // MIs[0] dst
11552 /* 11520 */ // No operand predicates
11553 /* 11520 */ // MIs[0] round
11554 /* 11520 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
11555 /* 11524 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FPTRUNC),
11556 /* 11528 */ // MIs[1] src
11557 /* 11528 */ // No operand predicates
11558 /* 11528 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
11559 /* 11530 */ // Combiner Rule #343: fold_fabs_fptrunc
11560 /* 11530 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner132),
11561 /* 11533 */ // Label 515: @11533
11562 /* 11533 */ GIM_Try, /*On fail goto*//*Label 516*/ GIMT_Encode4(11544), // Rule ID 211 //
11563 /* 11538 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule161Enabled),
11564 /* 11541 */ // MIs[0] dst
11565 /* 11541 */ // No operand predicates
11566 /* 11541 */ // MIs[0] src0
11567 /* 11541 */ // No operand predicates
11568 /* 11541 */ // Combiner Rule #161: constant_fold_fabs
11569 /* 11541 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner63),
11570 /* 11544 */ // Label 516: @11544
11571 /* 11544 */ GIM_Reject,
11572 /* 11545 */ // Label 82: @11545
11573 /* 11545 */ GIM_Try, /*On fail goto*//*Label 517*/ GIMT_Encode4(11556), // Rule ID 304 //
11574 /* 11550 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule214Enabled),
11575 /* 11553 */ // MIs[0] d
11576 /* 11553 */ // No operand predicates
11577 /* 11553 */ // MIs[0] mi.src0
11578 /* 11553 */ // No operand predicates
11579 /* 11553 */ // MIs[0] mi.src1
11580 /* 11553 */ // No operand predicates
11581 /* 11553 */ // Combiner Rule #214: constant_fold_fp_binop @ [mi[5]]
11582 /* 11553 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
11583 /* 11556 */ // Label 517: @11556
11584 /* 11556 */ GIM_Reject,
11585 /* 11557 */ // Label 83: @11557
11586 /* 11557 */ GIM_Try, /*On fail goto*//*Label 518*/ GIMT_Encode4(11586), // Rule ID 27 //
11587 /* 11562 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule24Enabled),
11588 /* 11565 */ // MIs[0] dst
11589 /* 11565 */ // No operand predicates
11590 /* 11565 */ // MIs[0] src
11591 /* 11565 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
11592 /* 11569 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCANONICALIZE),
11593 /* 11573 */ // MIs[1] __idempotent_prop_match_0.x
11594 /* 11573 */ // No operand predicates
11595 /* 11573 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
11596 /* 11578 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
11597 /* 11580 */ // Combiner Rule #24: idempotent_prop @ [__idempotent_prop_match_0[2]]
11598 /* 11580 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
11599 /* 11585 */ GIR_EraseRootFromParent_Done,
11600 /* 11586 */ // Label 518: @11586
11601 /* 11586 */ GIM_Reject,
11602 /* 11587 */ // Label 84: @11587
11603 /* 11587 */ GIM_Try, /*On fail goto*//*Label 519*/ GIMT_Encode4(11610), // Rule ID 235 //
11604 /* 11592 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule185Enabled),
11605 /* 11595 */ // MIs[0] dst
11606 /* 11595 */ // No operand predicates
11607 /* 11595 */ // MIs[0] lhs
11608 /* 11595 */ // No operand predicates
11609 /* 11595 */ // MIs[0] rhs
11610 /* 11595 */ // No operand predicates
11611 /* 11595 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner35),
11612 /* 11599 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
11613 /* 11604 */ // Combiner Rule #185: minmax_nan_num_lhs @ [__minmax_nan_num_lhs_match_0[0]]
11614 /* 11604 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
11615 /* 11609 */ GIR_EraseRootFromParent_Done,
11616 /* 11610 */ // Label 519: @11610
11617 /* 11610 */ GIM_Try, /*On fail goto*//*Label 520*/ GIMT_Encode4(11633), // Rule ID 237 //
11618 /* 11615 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule186Enabled),
11619 /* 11618 */ // MIs[0] dst
11620 /* 11618 */ // No operand predicates
11621 /* 11618 */ // MIs[0] lhs
11622 /* 11618 */ // No operand predicates
11623 /* 11618 */ // MIs[0] rhs
11624 /* 11618 */ // No operand predicates
11625 /* 11618 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner36),
11626 /* 11622 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
11627 /* 11627 */ // Combiner Rule #186: minmax_nan_num_rhs @ [__minmax_nan_num_rhs_match_0[0]]
11628 /* 11627 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
11629 /* 11632 */ GIR_EraseRootFromParent_Done,
11630 /* 11633 */ // Label 520: @11633
11631 /* 11633 */ GIM_Try, /*On fail goto*//*Label 521*/ GIMT_Encode4(11658), // Rule ID 406 //
11632 /* 11638 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule276Enabled),
11633 /* 11641 */ // MIs[0] dst
11634 /* 11641 */ // No operand predicates
11635 /* 11641 */ // MIs[0] lhs
11636 /* 11641 */ // No operand predicates
11637 /* 11641 */ // MIs[0] rhs
11638 /* 11641 */ // No operand predicates
11639 /* 11641 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner52),
11640 /* 11645 */ // Combiner Rule #276: G_FMINNUM_commute_fp_constant_to_rhs
11641 /* 11645 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FMINNUM),
11642 /* 11648 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
11643 /* 11650 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
11644 /* 11652 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
11645 /* 11654 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
11646 /* 11657 */ GIR_EraseRootFromParent_Done,
11647 /* 11658 */ // Label 521: @11658
11648 /* 11658 */ GIM_Try, /*On fail goto*//*Label 522*/ GIMT_Encode4(11669), // Rule ID 305 //
11649 /* 11663 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule214Enabled),
11650 /* 11666 */ // MIs[0] d
11651 /* 11666 */ // No operand predicates
11652 /* 11666 */ // MIs[0] mi.src0
11653 /* 11666 */ // No operand predicates
11654 /* 11666 */ // MIs[0] mi.src1
11655 /* 11666 */ // No operand predicates
11656 /* 11666 */ // Combiner Rule #214: constant_fold_fp_binop @ [mi[6]]
11657 /* 11666 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
11658 /* 11669 */ // Label 522: @11669
11659 /* 11669 */ GIM_Try, /*On fail goto*//*Label 523*/ GIMT_Encode4(11680), // Rule ID 364 //
11660 /* 11674 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule237Enabled),
11661 /* 11677 */ // MIs[0] root
11662 /* 11677 */ // No operand predicates
11663 /* 11677 */ // MIs[0] mi.x
11664 /* 11677 */ // No operand predicates
11665 /* 11677 */ // MIs[0] mi.y
11666 /* 11677 */ // No operand predicates
11667 /* 11677 */ // Combiner Rule #237: fold_binop_into_select_b @ [mi[9]]
11668 /* 11677 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
11669 /* 11680 */ // Label 523: @11680
11670 /* 11680 */ GIM_Reject,
11671 /* 11681 */ // Label 85: @11681
11672 /* 11681 */ GIM_Try, /*On fail goto*//*Label 524*/ GIMT_Encode4(11704), // Rule ID 236 //
11673 /* 11686 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule185Enabled),
11674 /* 11689 */ // MIs[0] dst
11675 /* 11689 */ // No operand predicates
11676 /* 11689 */ // MIs[0] lhs
11677 /* 11689 */ // No operand predicates
11678 /* 11689 */ // MIs[0] rhs
11679 /* 11689 */ // No operand predicates
11680 /* 11689 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner35),
11681 /* 11693 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
11682 /* 11698 */ // Combiner Rule #185: minmax_nan_num_lhs @ [__minmax_nan_num_lhs_match_0[1]]
11683 /* 11698 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
11684 /* 11703 */ GIR_EraseRootFromParent_Done,
11685 /* 11704 */ // Label 524: @11704
11686 /* 11704 */ GIM_Try, /*On fail goto*//*Label 525*/ GIMT_Encode4(11727), // Rule ID 238 //
11687 /* 11709 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule186Enabled),
11688 /* 11712 */ // MIs[0] dst
11689 /* 11712 */ // No operand predicates
11690 /* 11712 */ // MIs[0] lhs
11691 /* 11712 */ // No operand predicates
11692 /* 11712 */ // MIs[0] rhs
11693 /* 11712 */ // No operand predicates
11694 /* 11712 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner36),
11695 /* 11716 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
11696 /* 11721 */ // Combiner Rule #186: minmax_nan_num_rhs @ [__minmax_nan_num_rhs_match_0[1]]
11697 /* 11721 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
11698 /* 11726 */ GIR_EraseRootFromParent_Done,
11699 /* 11727 */ // Label 525: @11727
11700 /* 11727 */ GIM_Try, /*On fail goto*//*Label 526*/ GIMT_Encode4(11752), // Rule ID 407 //
11701 /* 11732 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule277Enabled),
11702 /* 11735 */ // MIs[0] dst
11703 /* 11735 */ // No operand predicates
11704 /* 11735 */ // MIs[0] lhs
11705 /* 11735 */ // No operand predicates
11706 /* 11735 */ // MIs[0] rhs
11707 /* 11735 */ // No operand predicates
11708 /* 11735 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner52),
11709 /* 11739 */ // Combiner Rule #277: G_FMAXNUM_commute_fp_constant_to_rhs
11710 /* 11739 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FMAXNUM),
11711 /* 11742 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
11712 /* 11744 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
11713 /* 11746 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
11714 /* 11748 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
11715 /* 11751 */ GIR_EraseRootFromParent_Done,
11716 /* 11752 */ // Label 526: @11752
11717 /* 11752 */ GIM_Try, /*On fail goto*//*Label 527*/ GIMT_Encode4(11763), // Rule ID 306 //
11718 /* 11757 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule214Enabled),
11719 /* 11760 */ // MIs[0] d
11720 /* 11760 */ // No operand predicates
11721 /* 11760 */ // MIs[0] mi.src0
11722 /* 11760 */ // No operand predicates
11723 /* 11760 */ // MIs[0] mi.src1
11724 /* 11760 */ // No operand predicates
11725 /* 11760 */ // Combiner Rule #214: constant_fold_fp_binop @ [mi[7]]
11726 /* 11760 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
11727 /* 11763 */ // Label 527: @11763
11728 /* 11763 */ GIM_Try, /*On fail goto*//*Label 528*/ GIMT_Encode4(11774), // Rule ID 365 //
11729 /* 11768 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule237Enabled),
11730 /* 11771 */ // MIs[0] root
11731 /* 11771 */ // No operand predicates
11732 /* 11771 */ // MIs[0] mi.x
11733 /* 11771 */ // No operand predicates
11734 /* 11771 */ // MIs[0] mi.y
11735 /* 11771 */ // No operand predicates
11736 /* 11771 */ // Combiner Rule #237: fold_binop_into_select_b @ [mi[10]]
11737 /* 11771 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
11738 /* 11774 */ // Label 528: @11774
11739 /* 11774 */ GIM_Reject,
11740 /* 11775 */ // Label 86: @11775
11741 /* 11775 */ GIM_Try, /*On fail goto*//*Label 529*/ GIMT_Encode4(11800), // Rule ID 408 //
11742 /* 11780 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule278Enabled),
11743 /* 11783 */ // MIs[0] dst
11744 /* 11783 */ // No operand predicates
11745 /* 11783 */ // MIs[0] lhs
11746 /* 11783 */ // No operand predicates
11747 /* 11783 */ // MIs[0] rhs
11748 /* 11783 */ // No operand predicates
11749 /* 11783 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner52),
11750 /* 11787 */ // Combiner Rule #278: G_FMINNUM_IEEE_commute_fp_constant_to_rhs
11751 /* 11787 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FMINNUM_IEEE),
11752 /* 11790 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
11753 /* 11792 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
11754 /* 11794 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
11755 /* 11796 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
11756 /* 11799 */ GIR_EraseRootFromParent_Done,
11757 /* 11800 */ // Label 529: @11800
11758 /* 11800 */ GIM_Reject,
11759 /* 11801 */ // Label 87: @11801
11760 /* 11801 */ GIM_Try, /*On fail goto*//*Label 530*/ GIMT_Encode4(11826), // Rule ID 409 //
11761 /* 11806 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule279Enabled),
11762 /* 11809 */ // MIs[0] dst
11763 /* 11809 */ // No operand predicates
11764 /* 11809 */ // MIs[0] lhs
11765 /* 11809 */ // No operand predicates
11766 /* 11809 */ // MIs[0] rhs
11767 /* 11809 */ // No operand predicates
11768 /* 11809 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner52),
11769 /* 11813 */ // Combiner Rule #279: G_FMAXNUM_IEEE_commute_fp_constant_to_rhs
11770 /* 11813 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FMAXNUM_IEEE),
11771 /* 11816 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
11772 /* 11818 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
11773 /* 11820 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
11774 /* 11822 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
11775 /* 11825 */ GIR_EraseRootFromParent_Done,
11776 /* 11826 */ // Label 530: @11826
11777 /* 11826 */ GIM_Reject,
11778 /* 11827 */ // Label 88: @11827
11779 /* 11827 */ GIM_Try, /*On fail goto*//*Label 531*/ GIMT_Encode4(11850), // Rule ID 239 //
11780 /* 11832 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled),
11781 /* 11835 */ // MIs[0] dst
11782 /* 11835 */ // No operand predicates
11783 /* 11835 */ // MIs[0] lhs
11784 /* 11835 */ // No operand predicates
11785 /* 11835 */ // MIs[0] rhs
11786 /* 11835 */ // No operand predicates
11787 /* 11835 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner35),
11788 /* 11839 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
11789 /* 11844 */ // Combiner Rule #187: minmax_nan_ieee_lhs @ [__minmax_nan_ieee_lhs_match_0[0]]
11790 /* 11844 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
11791 /* 11849 */ GIR_EraseRootFromParent_Done,
11792 /* 11850 */ // Label 531: @11850
11793 /* 11850 */ GIM_Try, /*On fail goto*//*Label 532*/ GIMT_Encode4(11873), // Rule ID 241 //
11794 /* 11855 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule188Enabled),
11795 /* 11858 */ // MIs[0] dst
11796 /* 11858 */ // No operand predicates
11797 /* 11858 */ // MIs[0] lhs
11798 /* 11858 */ // No operand predicates
11799 /* 11858 */ // MIs[0] rhs
11800 /* 11858 */ // No operand predicates
11801 /* 11858 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner36),
11802 /* 11862 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
11803 /* 11867 */ // Combiner Rule #188: minmax_nan_ieee_rhs @ [__minmax_nan_ieee_rhs_match_0[0]]
11804 /* 11867 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
11805 /* 11872 */ GIR_EraseRootFromParent_Done,
11806 /* 11873 */ // Label 532: @11873
11807 /* 11873 */ GIM_Try, /*On fail goto*//*Label 533*/ GIMT_Encode4(11898), // Rule ID 410 //
11808 /* 11878 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule280Enabled),
11809 /* 11881 */ // MIs[0] dst
11810 /* 11881 */ // No operand predicates
11811 /* 11881 */ // MIs[0] lhs
11812 /* 11881 */ // No operand predicates
11813 /* 11881 */ // MIs[0] rhs
11814 /* 11881 */ // No operand predicates
11815 /* 11881 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner52),
11816 /* 11885 */ // Combiner Rule #280: G_FMINIMUM_commute_fp_constant_to_rhs
11817 /* 11885 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FMINIMUM),
11818 /* 11888 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
11819 /* 11890 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
11820 /* 11892 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
11821 /* 11894 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
11822 /* 11897 */ GIR_EraseRootFromParent_Done,
11823 /* 11898 */ // Label 533: @11898
11824 /* 11898 */ GIM_Try, /*On fail goto*//*Label 534*/ GIMT_Encode4(11909), // Rule ID 307 //
11825 /* 11903 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule214Enabled),
11826 /* 11906 */ // MIs[0] d
11827 /* 11906 */ // No operand predicates
11828 /* 11906 */ // MIs[0] mi.src0
11829 /* 11906 */ // No operand predicates
11830 /* 11906 */ // MIs[0] mi.src1
11831 /* 11906 */ // No operand predicates
11832 /* 11906 */ // Combiner Rule #214: constant_fold_fp_binop @ [mi[8]]
11833 /* 11906 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
11834 /* 11909 */ // Label 534: @11909
11835 /* 11909 */ GIM_Try, /*On fail goto*//*Label 535*/ GIMT_Encode4(11920), // Rule ID 366 //
11836 /* 11914 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule237Enabled),
11837 /* 11917 */ // MIs[0] root
11838 /* 11917 */ // No operand predicates
11839 /* 11917 */ // MIs[0] mi.x
11840 /* 11917 */ // No operand predicates
11841 /* 11917 */ // MIs[0] mi.y
11842 /* 11917 */ // No operand predicates
11843 /* 11917 */ // Combiner Rule #237: fold_binop_into_select_b @ [mi[11]]
11844 /* 11917 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
11845 /* 11920 */ // Label 535: @11920
11846 /* 11920 */ GIM_Reject,
11847 /* 11921 */ // Label 89: @11921
11848 /* 11921 */ GIM_Try, /*On fail goto*//*Label 536*/ GIMT_Encode4(11944), // Rule ID 240 //
11849 /* 11926 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled),
11850 /* 11929 */ // MIs[0] dst
11851 /* 11929 */ // No operand predicates
11852 /* 11929 */ // MIs[0] lhs
11853 /* 11929 */ // No operand predicates
11854 /* 11929 */ // MIs[0] rhs
11855 /* 11929 */ // No operand predicates
11856 /* 11929 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner35),
11857 /* 11933 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
11858 /* 11938 */ // Combiner Rule #187: minmax_nan_ieee_lhs @ [__minmax_nan_ieee_lhs_match_0[1]]
11859 /* 11938 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
11860 /* 11943 */ GIR_EraseRootFromParent_Done,
11861 /* 11944 */ // Label 536: @11944
11862 /* 11944 */ GIM_Try, /*On fail goto*//*Label 537*/ GIMT_Encode4(11967), // Rule ID 242 //
11863 /* 11949 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule188Enabled),
11864 /* 11952 */ // MIs[0] dst
11865 /* 11952 */ // No operand predicates
11866 /* 11952 */ // MIs[0] lhs
11867 /* 11952 */ // No operand predicates
11868 /* 11952 */ // MIs[0] rhs
11869 /* 11952 */ // No operand predicates
11870 /* 11952 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner36),
11871 /* 11956 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
11872 /* 11961 */ // Combiner Rule #188: minmax_nan_ieee_rhs @ [__minmax_nan_ieee_rhs_match_0[1]]
11873 /* 11961 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
11874 /* 11966 */ GIR_EraseRootFromParent_Done,
11875 /* 11967 */ // Label 537: @11967
11876 /* 11967 */ GIM_Try, /*On fail goto*//*Label 538*/ GIMT_Encode4(11992), // Rule ID 411 //
11877 /* 11972 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule281Enabled),
11878 /* 11975 */ // MIs[0] dst
11879 /* 11975 */ // No operand predicates
11880 /* 11975 */ // MIs[0] lhs
11881 /* 11975 */ // No operand predicates
11882 /* 11975 */ // MIs[0] rhs
11883 /* 11975 */ // No operand predicates
11884 /* 11975 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner52),
11885 /* 11979 */ // Combiner Rule #281: G_FMAXIMUM_commute_fp_constant_to_rhs
11886 /* 11979 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FMAXIMUM),
11887 /* 11982 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
11888 /* 11984 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
11889 /* 11986 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
11890 /* 11988 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
11891 /* 11991 */ GIR_EraseRootFromParent_Done,
11892 /* 11992 */ // Label 538: @11992
11893 /* 11992 */ GIM_Try, /*On fail goto*//*Label 539*/ GIMT_Encode4(12003), // Rule ID 308 //
11894 /* 11997 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule214Enabled),
11895 /* 12000 */ // MIs[0] d
11896 /* 12000 */ // No operand predicates
11897 /* 12000 */ // MIs[0] mi.src0
11898 /* 12000 */ // No operand predicates
11899 /* 12000 */ // MIs[0] mi.src1
11900 /* 12000 */ // No operand predicates
11901 /* 12000 */ // Combiner Rule #214: constant_fold_fp_binop @ [mi[9]]
11902 /* 12000 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
11903 /* 12003 */ // Label 539: @12003
11904 /* 12003 */ GIM_Try, /*On fail goto*//*Label 540*/ GIMT_Encode4(12014), // Rule ID 367 //
11905 /* 12008 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule237Enabled),
11906 /* 12011 */ // MIs[0] root
11907 /* 12011 */ // No operand predicates
11908 /* 12011 */ // MIs[0] mi.x
11909 /* 12011 */ // No operand predicates
11910 /* 12011 */ // MIs[0] mi.y
11911 /* 12011 */ // No operand predicates
11912 /* 12011 */ // Combiner Rule #237: fold_binop_into_select_b @ [mi[12]]
11913 /* 12011 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
11914 /* 12014 */ // Label 540: @12014
11915 /* 12014 */ GIM_Reject,
11916 /* 12015 */ // Label 90: @12015
11917 /* 12015 */ GIM_Try, /*On fail goto*//*Label 541*/ GIMT_Encode4(12026), // Rule ID 309 //
11918 /* 12020 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule214Enabled),
11919 /* 12023 */ // MIs[0] d
11920 /* 12023 */ // No operand predicates
11921 /* 12023 */ // MIs[0] mi.src0
11922 /* 12023 */ // No operand predicates
11923 /* 12023 */ // MIs[0] mi.src1
11924 /* 12023 */ // No operand predicates
11925 /* 12023 */ // Combiner Rule #214: constant_fold_fp_binop @ [mi[10]]
11926 /* 12023 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
11927 /* 12026 */ // Label 541: @12026
11928 /* 12026 */ GIM_Reject,
11929 /* 12027 */ // Label 91: @12027
11930 /* 12027 */ GIM_Try, /*On fail goto*//*Label 542*/ GIMT_Encode4(12038), // Rule ID 310 //
11931 /* 12032 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule214Enabled),
11932 /* 12035 */ // MIs[0] d
11933 /* 12035 */ // No operand predicates
11934 /* 12035 */ // MIs[0] mi.src0
11935 /* 12035 */ // No operand predicates
11936 /* 12035 */ // MIs[0] mi.src1
11937 /* 12035 */ // No operand predicates
11938 /* 12035 */ // Combiner Rule #214: constant_fold_fp_binop @ [mi[11]]
11939 /* 12035 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
11940 /* 12038 */ // Label 542: @12038
11941 /* 12038 */ GIM_Reject,
11942 /* 12039 */ // Label 92: @12039
11943 /* 12039 */ GIM_Try, /*On fail goto*//*Label 543*/ GIMT_Encode4(12080), // Rule ID 245 //
11944 /* 12044 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule191Enabled),
11945 /* 12047 */ // MIs[0] dst
11946 /* 12047 */ // No operand predicates
11947 /* 12047 */ // MIs[0] base
11948 /* 12047 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
11949 /* 12051 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
11950 /* 12055 */ // MIs[1] Operand 1
11951 /* 12055 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0),
11952 /* 12066 */ // MIs[0] offset
11953 /* 12066 */ // No operand predicates
11954 /* 12066 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner37),
11955 /* 12070 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
11956 /* 12072 */ // Combiner Rule #191: ptr_add_with_zero_scalar
11957 /* 12072 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_INTTOPTR),
11958 /* 12075 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
11959 /* 12077 */ GIR_RootToRootCopy, /*OpIdx*/2, // offset
11960 /* 12079 */ GIR_EraseRootFromParent_Done,
11961 /* 12080 */ // Label 543: @12080
11962 /* 12080 */ GIM_Try, /*On fail goto*//*Label 544*/ GIMT_Encode4(12100), // Rule ID 246 //
11963 /* 12085 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule192Enabled),
11964 /* 12088 */ // MIs[0] dst
11965 /* 12088 */ // No operand predicates
11966 /* 12088 */ // MIs[0] base
11967 /* 12088 */ // No operand predicates
11968 /* 12088 */ // MIs[0] offset
11969 /* 12088 */ // No operand predicates
11970 /* 12088 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner38),
11971 /* 12092 */ // Combiner Rule #192: ptr_add_with_zero_vector
11972 /* 12092 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_INTTOPTR),
11973 /* 12095 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
11974 /* 12097 */ GIR_RootToRootCopy, /*OpIdx*/2, // offset
11975 /* 12099 */ GIR_EraseRootFromParent_Done,
11976 /* 12100 */ // Label 544: @12100
11977 /* 12100 */ GIM_Try, /*On fail goto*//*Label 545*/ GIMT_Encode4(12137), // Rule ID 225 //
11978 /* 12105 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule175Enabled),
11979 /* 12108 */ // MIs[0] dst
11980 /* 12108 */ // No operand predicates
11981 /* 12108 */ // MIs[0] base
11982 /* 12108 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
11983 /* 12112 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_INTTOPTR),
11984 /* 12116 */ // MIs[1] c1reg
11985 /* 12116 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
11986 /* 12120 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
11987 /* 12124 */ // MIs[2] c1imm
11988 /* 12124 */ // No operand predicates
11989 /* 12124 */ // MIs[0] c2reg
11990 /* 12124 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/0, /*OpIdx*/2, // MIs[3]
11991 /* 12128 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
11992 /* 12132 */ // MIs[3] c2imm
11993 /* 12132 */ // No operand predicates
11994 /* 12132 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
11995 /* 12134 */ // Combiner Rule #175: const_ptradd_to_i2p
11996 /* 12134 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner64),
11997 /* 12137 */ // Label 545: @12137
11998 /* 12137 */ GIM_Try, /*On fail goto*//*Label 546*/ GIMT_Encode4(12160), // Rule ID 126 //
11999 /* 12142 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
12000 /* 12145 */ // MIs[0] dst
12001 /* 12145 */ // No operand predicates
12002 /* 12145 */ // MIs[0] lhs
12003 /* 12145 */ // No operand predicates
12004 /* 12145 */ // MIs[0] Operand 2
12005 /* 12145 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
12006 /* 12149 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
12007 /* 12154 */ // Combiner Rule #93: right_identity_zero @ [__right_identity_zero_match_0[7]]
12008 /* 12154 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
12009 /* 12159 */ GIR_EraseRootFromParent_Done,
12010 /* 12160 */ // Label 546: @12160
12011 /* 12160 */ GIM_Try, /*On fail goto*//*Label 547*/ GIMT_Encode4(12171), // Rule ID 171 //
12012 /* 12165 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule121Enabled),
12013 /* 12168 */ // MIs[0] dst
12014 /* 12168 */ // No operand predicates
12015 /* 12168 */ // MIs[0] base
12016 /* 12168 */ // No operand predicates
12017 /* 12168 */ // MIs[0] offset
12018 /* 12168 */ // No operand predicates
12019 /* 12168 */ // Combiner Rule #121: reassoc_ptradd
12020 /* 12168 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner40),
12021 /* 12171 */ // Label 547: @12171
12022 /* 12171 */ GIM_Try, /*On fail goto*//*Label 548*/ GIMT_Encode4(12182), // Rule ID 173 //
12023 /* 12176 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule123Enabled),
12024 /* 12179 */ // MIs[0] dst
12025 /* 12179 */ // No operand predicates
12026 /* 12179 */ // MIs[0] base
12027 /* 12179 */ // No operand predicates
12028 /* 12179 */ // MIs[0] offset
12029 /* 12179 */ // No operand predicates
12030 /* 12179 */ // Combiner Rule #123: ptr_add_immed_chain
12031 /* 12179 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner42),
12032 /* 12182 */ // Label 548: @12182
12033 /* 12182 */ GIM_Try, /*On fail goto*//*Label 549*/ GIMT_Encode4(12193), // Rule ID 282 //
12034 /* 12187 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule213Enabled),
12035 /* 12190 */ // MIs[0] d
12036 /* 12190 */ // No operand predicates
12037 /* 12190 */ // MIs[0] mi.src0
12038 /* 12190 */ // No operand predicates
12039 /* 12190 */ // MIs[0] mi.src1
12040 /* 12190 */ // No operand predicates
12041 /* 12190 */ // Combiner Rule #213: constant_fold_binop @ [mi[1]]
12042 /* 12190 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner79),
12043 /* 12193 */ // Label 549: @12193
12044 /* 12193 */ GIM_Try, /*On fail goto*//*Label 550*/ GIMT_Encode4(12204), // Rule ID 344 //
12045 /* 12198 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule236Enabled),
12046 /* 12201 */ // MIs[0] root
12047 /* 12201 */ // No operand predicates
12048 /* 12201 */ // MIs[0] mi.x
12049 /* 12201 */ // No operand predicates
12050 /* 12201 */ // MIs[0] mi.y
12051 /* 12201 */ // No operand predicates
12052 /* 12201 */ // Combiner Rule #236: fold_binop_into_select_a @ [mi[2]]
12053 /* 12201 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
12054 /* 12204 */ // Label 550: @12204
12055 /* 12204 */ GIM_Reject,
12056 /* 12205 */ // Label 93: @12205
12057 /* 12205 */ GIM_Try, /*On fail goto*//*Label 551*/ GIMT_Encode4(12230), // Rule ID 388 //
12058 /* 12210 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule258Enabled),
12059 /* 12213 */ // MIs[0] dst
12060 /* 12213 */ // No operand predicates
12061 /* 12213 */ // MIs[0] lhs
12062 /* 12213 */ // No operand predicates
12063 /* 12213 */ // MIs[0] rhs
12064 /* 12213 */ // No operand predicates
12065 /* 12213 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner51),
12066 /* 12217 */ // Combiner Rule #258: G_SMIN_commute_constant_to_rhs
12067 /* 12217 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SMIN),
12068 /* 12220 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
12069 /* 12222 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
12070 /* 12224 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
12071 /* 12226 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
12072 /* 12229 */ GIR_EraseRootFromParent_Done,
12073 /* 12230 */ // Label 551: @12230
12074 /* 12230 */ GIM_Try, /*On fail goto*//*Label 552*/ GIMT_Encode4(12241), // Rule ID 295 //
12075 /* 12235 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule213Enabled),
12076 /* 12238 */ // MIs[0] d
12077 /* 12238 */ // No operand predicates
12078 /* 12238 */ // MIs[0] mi.src0
12079 /* 12238 */ // No operand predicates
12080 /* 12238 */ // MIs[0] mi.src1
12081 /* 12238 */ // No operand predicates
12082 /* 12238 */ // Combiner Rule #213: constant_fold_binop @ [mi[14]]
12083 /* 12238 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner79),
12084 /* 12241 */ // Label 552: @12241
12085 /* 12241 */ GIM_Try, /*On fail goto*//*Label 553*/ GIMT_Encode4(12252), // Rule ID 355 //
12086 /* 12246 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule237Enabled),
12087 /* 12249 */ // MIs[0] root
12088 /* 12249 */ // No operand predicates
12089 /* 12249 */ // MIs[0] mi.x
12090 /* 12249 */ // No operand predicates
12091 /* 12249 */ // MIs[0] mi.y
12092 /* 12249 */ // No operand predicates
12093 /* 12249 */ // Combiner Rule #237: fold_binop_into_select_b @ [mi[0]]
12094 /* 12249 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
12095 /* 12252 */ // Label 553: @12252
12096 /* 12252 */ GIM_Reject,
12097 /* 12253 */ // Label 94: @12253
12098 /* 12253 */ GIM_Try, /*On fail goto*//*Label 554*/ GIMT_Encode4(12278), // Rule ID 389 //
12099 /* 12258 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule259Enabled),
12100 /* 12261 */ // MIs[0] dst
12101 /* 12261 */ // No operand predicates
12102 /* 12261 */ // MIs[0] lhs
12103 /* 12261 */ // No operand predicates
12104 /* 12261 */ // MIs[0] rhs
12105 /* 12261 */ // No operand predicates
12106 /* 12261 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner51),
12107 /* 12265 */ // Combiner Rule #259: G_SMAX_commute_constant_to_rhs
12108 /* 12265 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SMAX),
12109 /* 12268 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
12110 /* 12270 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
12111 /* 12272 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
12112 /* 12274 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
12113 /* 12277 */ GIR_EraseRootFromParent_Done,
12114 /* 12278 */ // Label 554: @12278
12115 /* 12278 */ GIM_Try, /*On fail goto*//*Label 555*/ GIMT_Encode4(12289), // Rule ID 296 //
12116 /* 12283 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule213Enabled),
12117 /* 12286 */ // MIs[0] d
12118 /* 12286 */ // No operand predicates
12119 /* 12286 */ // MIs[0] mi.src0
12120 /* 12286 */ // No operand predicates
12121 /* 12286 */ // MIs[0] mi.src1
12122 /* 12286 */ // No operand predicates
12123 /* 12286 */ // Combiner Rule #213: constant_fold_binop @ [mi[15]]
12124 /* 12286 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner79),
12125 /* 12289 */ // Label 555: @12289
12126 /* 12289 */ GIM_Try, /*On fail goto*//*Label 556*/ GIMT_Encode4(12300), // Rule ID 356 //
12127 /* 12294 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule237Enabled),
12128 /* 12297 */ // MIs[0] root
12129 /* 12297 */ // No operand predicates
12130 /* 12297 */ // MIs[0] mi.x
12131 /* 12297 */ // No operand predicates
12132 /* 12297 */ // MIs[0] mi.y
12133 /* 12297 */ // No operand predicates
12134 /* 12297 */ // Combiner Rule #237: fold_binop_into_select_b @ [mi[1]]
12135 /* 12297 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
12136 /* 12300 */ // Label 556: @12300
12137 /* 12300 */ GIM_Reject,
12138 /* 12301 */ // Label 95: @12301
12139 /* 12301 */ GIM_Try, /*On fail goto*//*Label 557*/ GIMT_Encode4(12326), // Rule ID 390 //
12140 /* 12306 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule260Enabled),
12141 /* 12309 */ // MIs[0] dst
12142 /* 12309 */ // No operand predicates
12143 /* 12309 */ // MIs[0] lhs
12144 /* 12309 */ // No operand predicates
12145 /* 12309 */ // MIs[0] rhs
12146 /* 12309 */ // No operand predicates
12147 /* 12309 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner51),
12148 /* 12313 */ // Combiner Rule #260: G_UMIN_commute_constant_to_rhs
12149 /* 12313 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UMIN),
12150 /* 12316 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
12151 /* 12318 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
12152 /* 12320 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
12153 /* 12322 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
12154 /* 12325 */ GIR_EraseRootFromParent_Done,
12155 /* 12326 */ // Label 557: @12326
12156 /* 12326 */ GIM_Try, /*On fail goto*//*Label 558*/ GIMT_Encode4(12337), // Rule ID 297 //
12157 /* 12331 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule213Enabled),
12158 /* 12334 */ // MIs[0] d
12159 /* 12334 */ // No operand predicates
12160 /* 12334 */ // MIs[0] mi.src0
12161 /* 12334 */ // No operand predicates
12162 /* 12334 */ // MIs[0] mi.src1
12163 /* 12334 */ // No operand predicates
12164 /* 12334 */ // Combiner Rule #213: constant_fold_binop @ [mi[16]]
12165 /* 12334 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner79),
12166 /* 12337 */ // Label 558: @12337
12167 /* 12337 */ GIM_Try, /*On fail goto*//*Label 559*/ GIMT_Encode4(12348), // Rule ID 357 //
12168 /* 12342 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule237Enabled),
12169 /* 12345 */ // MIs[0] root
12170 /* 12345 */ // No operand predicates
12171 /* 12345 */ // MIs[0] mi.x
12172 /* 12345 */ // No operand predicates
12173 /* 12345 */ // MIs[0] mi.y
12174 /* 12345 */ // No operand predicates
12175 /* 12345 */ // Combiner Rule #237: fold_binop_into_select_b @ [mi[2]]
12176 /* 12345 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
12177 /* 12348 */ // Label 559: @12348
12178 /* 12348 */ GIM_Reject,
12179 /* 12349 */ // Label 96: @12349
12180 /* 12349 */ GIM_Try, /*On fail goto*//*Label 560*/ GIMT_Encode4(12374), // Rule ID 391 //
12181 /* 12354 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule261Enabled),
12182 /* 12357 */ // MIs[0] dst
12183 /* 12357 */ // No operand predicates
12184 /* 12357 */ // MIs[0] lhs
12185 /* 12357 */ // No operand predicates
12186 /* 12357 */ // MIs[0] rhs
12187 /* 12357 */ // No operand predicates
12188 /* 12357 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner51),
12189 /* 12361 */ // Combiner Rule #261: G_UMAX_commute_constant_to_rhs
12190 /* 12361 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UMAX),
12191 /* 12364 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
12192 /* 12366 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
12193 /* 12368 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
12194 /* 12370 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
12195 /* 12373 */ GIR_EraseRootFromParent_Done,
12196 /* 12374 */ // Label 560: @12374
12197 /* 12374 */ GIM_Try, /*On fail goto*//*Label 561*/ GIMT_Encode4(12385), // Rule ID 298 //
12198 /* 12379 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule213Enabled),
12199 /* 12382 */ // MIs[0] d
12200 /* 12382 */ // No operand predicates
12201 /* 12382 */ // MIs[0] mi.src0
12202 /* 12382 */ // No operand predicates
12203 /* 12382 */ // MIs[0] mi.src1
12204 /* 12382 */ // No operand predicates
12205 /* 12382 */ // Combiner Rule #213: constant_fold_binop @ [mi[17]]
12206 /* 12382 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner79),
12207 /* 12385 */ // Label 561: @12385
12208 /* 12385 */ GIM_Try, /*On fail goto*//*Label 562*/ GIMT_Encode4(12396), // Rule ID 358 //
12209 /* 12390 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule237Enabled),
12210 /* 12393 */ // MIs[0] root
12211 /* 12393 */ // No operand predicates
12212 /* 12393 */ // MIs[0] mi.x
12213 /* 12393 */ // No operand predicates
12214 /* 12393 */ // MIs[0] mi.y
12215 /* 12393 */ // No operand predicates
12216 /* 12393 */ // Combiner Rule #237: fold_binop_into_select_b @ [mi[3]]
12217 /* 12393 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
12218 /* 12396 */ // Label 562: @12396
12219 /* 12396 */ GIM_Reject,
12220 /* 12397 */ // Label 97: @12397
12221 /* 12397 */ GIM_Try, /*On fail goto*//*Label 563*/ GIMT_Encode4(12418), // Rule ID 97 //
12222 /* 12402 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule82Enabled),
12223 /* 12405 */ // MIs[0] dst
12224 /* 12405 */ // No operand predicates
12225 /* 12405 */ // MIs[0] __unary_undef_to_zero_match_0.x
12226 /* 12405 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
12227 /* 12409 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
12228 /* 12413 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
12229 /* 12415 */ // Combiner Rule #82: unary_undef_to_zero @ [__unary_undef_to_zero_match_0[0]]
12230 /* 12415 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner31),
12231 /* 12418 */ // Label 563: @12418
12232 /* 12418 */ GIM_Try, /*On fail goto*//*Label 564*/ GIMT_Encode4(12429), // Rule ID 321 //
12233 /* 12423 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule217Enabled),
12234 /* 12426 */ // MIs[0] dst
12235 /* 12426 */ // No operand predicates
12236 /* 12426 */ // MIs[0] mi.src
12237 /* 12426 */ // No operand predicates
12238 /* 12426 */ // Combiner Rule #217: constant_fold_unary_int_op @ [mi[5]]
12239 /* 12426 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner83),
12240 /* 12429 */ // Label 564: @12429
12241 /* 12429 */ GIM_Reject,
12242 /* 12430 */ // Label 98: @12430
12243 /* 12430 */ GIM_Try, /*On fail goto*//*Label 565*/ GIMT_Encode4(12441), // Rule ID 209 //
12244 /* 12435 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule159Enabled),
12245 /* 12438 */ // MIs[0] tgt
12246 /* 12438 */ // No operand predicates
12247 /* 12438 */ // Combiner Rule #159: opt_brcond_by_inverting_cond
12248 /* 12438 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner62),
12249 /* 12441 */ // Label 565: @12441
12250 /* 12441 */ GIM_Reject,
12251 /* 12442 */ // Label 99: @12442
12252 /* 12442 */ GIM_Try, /*On fail goto*//*Label 566*/ GIMT_Encode4(12475), // Rule ID 31 //
12253 /* 12447 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule27Enabled),
12254 /* 12450 */ // MIs[0] root
12255 /* 12450 */ // No operand predicates
12256 /* 12450 */ // MIs[0] src
12257 /* 12450 */ // No operand predicates
12258 /* 12450 */ // MIs[0] elt
12259 /* 12450 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
12260 /* 12454 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
12261 /* 12458 */ // MIs[0] idx
12262 /* 12458 */ // No operand predicates
12263 /* 12458 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner3),
12264 /* 12462 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
12265 /* 12467 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
12266 /* 12469 */ // Combiner Rule #27: insert_vector_element_elt_undef
12267 /* 12469 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
12268 /* 12474 */ GIR_EraseRootFromParent_Done,
12269 /* 12475 */ // Label 566: @12475
12270 /* 12475 */ GIM_Try, /*On fail goto*//*Label 567*/ GIMT_Encode4(12493), // Rule ID 33 //
12271 /* 12480 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule29Enabled),
12272 /* 12483 */ // MIs[0] dst
12273 /* 12483 */ // No operand predicates
12274 /* 12483 */ // MIs[0] src
12275 /* 12483 */ // No operand predicates
12276 /* 12483 */ // MIs[0] elt
12277 /* 12483 */ // No operand predicates
12278 /* 12483 */ // MIs[0] idx
12279 /* 12483 */ // No operand predicates
12280 /* 12483 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner5),
12281 /* 12487 */ // Combiner Rule #29: insert_vector_elt_oob
12282 /* 12487 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
12283 /* 12490 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
12284 /* 12492 */ GIR_EraseRootFromParent_Done,
12285 /* 12493 */ // Label 567: @12493
12286 /* 12493 */ GIM_Try, /*On fail goto*//*Label 568*/ GIMT_Encode4(12511), // Rule ID 115 //
12287 /* 12498 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule89Enabled),
12288 /* 12501 */ // MIs[0] root
12289 /* 12501 */ // No operand predicates
12290 /* 12501 */ // MIs[0] vec
12291 /* 12501 */ // No operand predicates
12292 /* 12501 */ // MIs[0] elt
12293 /* 12501 */ // No operand predicates
12294 /* 12501 */ // MIs[0] idx
12295 /* 12501 */ // No operand predicates
12296 /* 12501 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner11),
12297 /* 12505 */ // Combiner Rule #89: insert_vec_elt_out_of_bounds
12298 /* 12505 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
12299 /* 12508 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
12300 /* 12510 */ GIR_EraseRootFromParent_Done,
12301 /* 12511 */ // Label 568: @12511
12302 /* 12511 */ GIM_Try, /*On fail goto*//*Label 569*/ GIMT_Encode4(12550), // Rule ID 45 //
12303 /* 12516 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule41Enabled),
12304 /* 12519 */ // MIs[0] root
12305 /* 12519 */ // No operand predicates
12306 /* 12519 */ // MIs[0] src
12307 /* 12519 */ // No operand predicates
12308 /* 12519 */ // MIs[0] elt
12309 /* 12519 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
12310 /* 12523 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_EXTRACT_VECTOR_ELT),
12311 /* 12527 */ // MIs[1] src
12312 /* 12527 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/1, /*OpIdx*/1, /*OtherMI*/0, /*OtherOpIdx*/1,
12313 /* 12532 */ // MIs[1] idx
12314 /* 12532 */ // No operand predicates
12315 /* 12532 */ // MIs[0] idx
12316 /* 12532 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/3, /*OtherMI*/1, /*OtherOpIdx*/2,
12317 /* 12537 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
12318 /* 12542 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
12319 /* 12544 */ // Combiner Rule #41: insert_vector_element_extract_vector_element
12320 /* 12544 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
12321 /* 12549 */ GIR_EraseRootFromParent_Done,
12322 /* 12550 */ // Label 569: @12550
12323 /* 12550 */ GIM_Try, /*On fail goto*//*Label 570*/ GIMT_Encode4(12574), // Rule ID 30 //
12324 /* 12555 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule26Enabled),
12325 /* 12558 */ // MIs[0] root
12326 /* 12558 */ // No operand predicates
12327 /* 12558 */ // MIs[0] src
12328 /* 12558 */ // No operand predicates
12329 /* 12558 */ // MIs[0] elt
12330 /* 12558 */ // No operand predicates
12331 /* 12558 */ // MIs[0] idx
12332 /* 12558 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/3, // MIs[1]
12333 /* 12562 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
12334 /* 12566 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
12335 /* 12568 */ // Combiner Rule #26: insert_vector_element_idx_undef
12336 /* 12568 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
12337 /* 12571 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
12338 /* 12573 */ GIR_EraseRootFromParent_Done,
12339 /* 12574 */ // Label 570: @12574
12340 /* 12574 */ GIM_Try, /*On fail goto*//*Label 571*/ GIMT_Encode4(12585), // Rule ID 75 //
12341 /* 12579 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule71Enabled),
12342 /* 12582 */ // MIs[0] dst
12343 /* 12582 */ // No operand predicates
12344 /* 12582 */ // MIs[0] src
12345 /* 12582 */ // No operand predicates
12346 /* 12582 */ // MIs[0] elt
12347 /* 12582 */ // No operand predicates
12348 /* 12582 */ // MIs[0] idx
12349 /* 12582 */ // No operand predicates
12350 /* 12582 */ // Combiner Rule #71: combine_insert_vec_elts_build_vector
12351 /* 12582 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner24),
12352 /* 12585 */ // Label 571: @12585
12353 /* 12585 */ GIM_Reject,
12354 /* 12586 */ // Label 100: @12586
12355 /* 12586 */ GIM_Try, /*On fail goto*//*Label 572*/ GIMT_Encode4(12604), // Rule ID 32 //
12356 /* 12591 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule28Enabled),
12357 /* 12594 */ // MIs[0] dst
12358 /* 12594 */ // No operand predicates
12359 /* 12594 */ // MIs[0] src
12360 /* 12594 */ // No operand predicates
12361 /* 12594 */ // MIs[0] idx
12362 /* 12594 */ // No operand predicates
12363 /* 12594 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner4),
12364 /* 12598 */ // Combiner Rule #28: match_extract_of_element
12365 /* 12598 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
12366 /* 12601 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
12367 /* 12603 */ GIR_EraseRootFromParent_Done,
12368 /* 12604 */ // Label 572: @12604
12369 /* 12604 */ GIM_Try, /*On fail goto*//*Label 573*/ GIMT_Encode4(12622), // Rule ID 116 //
12370 /* 12609 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled),
12371 /* 12612 */ // MIs[0] root
12372 /* 12612 */ // No operand predicates
12373 /* 12612 */ // MIs[0] vec
12374 /* 12612 */ // No operand predicates
12375 /* 12612 */ // MIs[0] idx
12376 /* 12612 */ // No operand predicates
12377 /* 12612 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner11),
12378 /* 12616 */ // Combiner Rule #90: extract_vec_elt_out_of_bounds
12379 /* 12616 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
12380 /* 12619 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
12381 /* 12621 */ GIR_EraseRootFromParent_Done,
12382 /* 12622 */ // Label 573: @12622
12383 /* 12622 */ GIM_Try, /*On fail goto*//*Label 574*/ GIMT_Encode4(12646), // Rule ID 43 //
12384 /* 12627 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule39Enabled),
12385 /* 12630 */ // MIs[0] root
12386 /* 12630 */ // No operand predicates
12387 /* 12630 */ // MIs[0] src
12388 /* 12630 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
12389 /* 12634 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR_TRUNC),
12390 /* 12638 */ GIM_CheckNumOperands, /*MI*/1, /*Expected*/9,
12391 /* 12641 */ // MIs[1] x
12392 /* 12641 */ // No operand predicates
12393 /* 12641 */ // MIs[1] y
12394 /* 12641 */ // No operand predicates
12395 /* 12641 */ // MIs[1] z
12396 /* 12641 */ // No operand predicates
12397 /* 12641 */ // MIs[1] a
12398 /* 12641 */ // No operand predicates
12399 /* 12641 */ // MIs[1] b
12400 /* 12641 */ // No operand predicates
12401 /* 12641 */ // MIs[1] c
12402 /* 12641 */ // No operand predicates
12403 /* 12641 */ // MIs[1] d
12404 /* 12641 */ // No operand predicates
12405 /* 12641 */ // MIs[1] e
12406 /* 12641 */ // No operand predicates
12407 /* 12641 */ // MIs[0] idx
12408 /* 12641 */ // No operand predicates
12409 /* 12641 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
12410 /* 12643 */ // Combiner Rule #39: extract_vector_element_build_vector_trunc8
12411 /* 12643 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner10),
12412 /* 12646 */ // Label 574: @12646
12413 /* 12646 */ GIM_Try, /*On fail goto*//*Label 575*/ GIMT_Encode4(12670), // Rule ID 42 //
12414 /* 12651 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule38Enabled),
12415 /* 12654 */ // MIs[0] root
12416 /* 12654 */ // No operand predicates
12417 /* 12654 */ // MIs[0] src
12418 /* 12654 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
12419 /* 12658 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR_TRUNC),
12420 /* 12662 */ GIM_CheckNumOperands, /*MI*/1, /*Expected*/8,
12421 /* 12665 */ // MIs[1] x
12422 /* 12665 */ // No operand predicates
12423 /* 12665 */ // MIs[1] y
12424 /* 12665 */ // No operand predicates
12425 /* 12665 */ // MIs[1] z
12426 /* 12665 */ // No operand predicates
12427 /* 12665 */ // MIs[1] a
12428 /* 12665 */ // No operand predicates
12429 /* 12665 */ // MIs[1] b
12430 /* 12665 */ // No operand predicates
12431 /* 12665 */ // MIs[1] c
12432 /* 12665 */ // No operand predicates
12433 /* 12665 */ // MIs[1] d
12434 /* 12665 */ // No operand predicates
12435 /* 12665 */ // MIs[0] idx
12436 /* 12665 */ // No operand predicates
12437 /* 12665 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
12438 /* 12667 */ // Combiner Rule #38: extract_vector_element_build_vector_trunc7
12439 /* 12667 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner10),
12440 /* 12670 */ // Label 575: @12670
12441 /* 12670 */ GIM_Try, /*On fail goto*//*Label 576*/ GIMT_Encode4(12694), // Rule ID 41 //
12442 /* 12675 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule37Enabled),
12443 /* 12678 */ // MIs[0] root
12444 /* 12678 */ // No operand predicates
12445 /* 12678 */ // MIs[0] src
12446 /* 12678 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
12447 /* 12682 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR_TRUNC),
12448 /* 12686 */ GIM_CheckNumOperands, /*MI*/1, /*Expected*/7,
12449 /* 12689 */ // MIs[1] x
12450 /* 12689 */ // No operand predicates
12451 /* 12689 */ // MIs[1] y
12452 /* 12689 */ // No operand predicates
12453 /* 12689 */ // MIs[1] z
12454 /* 12689 */ // No operand predicates
12455 /* 12689 */ // MIs[1] a
12456 /* 12689 */ // No operand predicates
12457 /* 12689 */ // MIs[1] b
12458 /* 12689 */ // No operand predicates
12459 /* 12689 */ // MIs[1] c
12460 /* 12689 */ // No operand predicates
12461 /* 12689 */ // MIs[0] idx
12462 /* 12689 */ // No operand predicates
12463 /* 12689 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
12464 /* 12691 */ // Combiner Rule #37: extract_vector_element_build_vector_trunc6
12465 /* 12691 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner10),
12466 /* 12694 */ // Label 576: @12694
12467 /* 12694 */ GIM_Try, /*On fail goto*//*Label 577*/ GIMT_Encode4(12718), // Rule ID 40 //
12468 /* 12699 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule36Enabled),
12469 /* 12702 */ // MIs[0] root
12470 /* 12702 */ // No operand predicates
12471 /* 12702 */ // MIs[0] src
12472 /* 12702 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
12473 /* 12706 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR_TRUNC),
12474 /* 12710 */ GIM_CheckNumOperands, /*MI*/1, /*Expected*/6,
12475 /* 12713 */ // MIs[1] x
12476 /* 12713 */ // No operand predicates
12477 /* 12713 */ // MIs[1] y
12478 /* 12713 */ // No operand predicates
12479 /* 12713 */ // MIs[1] z
12480 /* 12713 */ // No operand predicates
12481 /* 12713 */ // MIs[1] a
12482 /* 12713 */ // No operand predicates
12483 /* 12713 */ // MIs[1] b
12484 /* 12713 */ // No operand predicates
12485 /* 12713 */ // MIs[0] idx
12486 /* 12713 */ // No operand predicates
12487 /* 12713 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
12488 /* 12715 */ // Combiner Rule #36: extract_vector_element_build_vector_trunc5
12489 /* 12715 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner10),
12490 /* 12718 */ // Label 577: @12718
12491 /* 12718 */ GIM_Try, /*On fail goto*//*Label 578*/ GIMT_Encode4(12742), // Rule ID 39 //
12492 /* 12723 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule35Enabled),
12493 /* 12726 */ // MIs[0] root
12494 /* 12726 */ // No operand predicates
12495 /* 12726 */ // MIs[0] src
12496 /* 12726 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
12497 /* 12730 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR_TRUNC),
12498 /* 12734 */ GIM_CheckNumOperands, /*MI*/1, /*Expected*/5,
12499 /* 12737 */ // MIs[1] x
12500 /* 12737 */ // No operand predicates
12501 /* 12737 */ // MIs[1] y
12502 /* 12737 */ // No operand predicates
12503 /* 12737 */ // MIs[1] z
12504 /* 12737 */ // No operand predicates
12505 /* 12737 */ // MIs[1] a
12506 /* 12737 */ // No operand predicates
12507 /* 12737 */ // MIs[0] idx
12508 /* 12737 */ // No operand predicates
12509 /* 12737 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
12510 /* 12739 */ // Combiner Rule #35: extract_vector_element_build_vector_trunc4
12511 /* 12739 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner10),
12512 /* 12742 */ // Label 578: @12742
12513 /* 12742 */ GIM_Try, /*On fail goto*//*Label 579*/ GIMT_Encode4(12766), // Rule ID 38 //
12514 /* 12747 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule34Enabled),
12515 /* 12750 */ // MIs[0] root
12516 /* 12750 */ // No operand predicates
12517 /* 12750 */ // MIs[0] src
12518 /* 12750 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
12519 /* 12754 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR_TRUNC),
12520 /* 12758 */ GIM_CheckNumOperands, /*MI*/1, /*Expected*/4,
12521 /* 12761 */ // MIs[1] x
12522 /* 12761 */ // No operand predicates
12523 /* 12761 */ // MIs[1] y
12524 /* 12761 */ // No operand predicates
12525 /* 12761 */ // MIs[1] z
12526 /* 12761 */ // No operand predicates
12527 /* 12761 */ // MIs[0] idx
12528 /* 12761 */ // No operand predicates
12529 /* 12761 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
12530 /* 12763 */ // Combiner Rule #34: extract_vector_element_build_vector_trunc3
12531 /* 12763 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner10),
12532 /* 12766 */ // Label 579: @12766
12533 /* 12766 */ GIM_Try, /*On fail goto*//*Label 580*/ GIMT_Encode4(12800), // Rule ID 34 //
12534 /* 12771 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule30Enabled),
12535 /* 12774 */ // MIs[0] root
12536 /* 12774 */ // No operand predicates
12537 /* 12774 */ // MIs[0] src
12538 /* 12774 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
12539 /* 12778 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_INSERT_VECTOR_ELT),
12540 /* 12782 */ // MIs[1] x
12541 /* 12782 */ // No operand predicates
12542 /* 12782 */ // MIs[1] value
12543 /* 12782 */ // No operand predicates
12544 /* 12782 */ // MIs[1] idx
12545 /* 12782 */ // No operand predicates
12546 /* 12782 */ // MIs[0] idx
12547 /* 12782 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/3,
12548 /* 12787 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/2,
12549 /* 12792 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
12550 /* 12794 */ // Combiner Rule #30: extract_vector_element_not_const
12551 /* 12794 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/2,
12552 /* 12799 */ GIR_EraseRootFromParent_Done,
12553 /* 12800 */ // Label 580: @12800
12554 /* 12800 */ GIM_Try, /*On fail goto*//*Label 581*/ GIMT_Encode4(12821), // Rule ID 35 //
12555 /* 12805 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule31Enabled),
12556 /* 12808 */ // MIs[0] root
12557 /* 12808 */ // No operand predicates
12558 /* 12808 */ // MIs[0] src
12559 /* 12808 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
12560 /* 12812 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_INSERT_VECTOR_ELT),
12561 /* 12816 */ // MIs[1] x
12562 /* 12816 */ // No operand predicates
12563 /* 12816 */ // MIs[1] value
12564 /* 12816 */ // No operand predicates
12565 /* 12816 */ // MIs[1] idx2
12566 /* 12816 */ // No operand predicates
12567 /* 12816 */ // MIs[0] idx1
12568 /* 12816 */ // No operand predicates
12569 /* 12816 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
12570 /* 12818 */ // Combiner Rule #31: extract_vector_element_different_indices
12571 /* 12818 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner8),
12572 /* 12821 */ // Label 581: @12821
12573 /* 12821 */ GIM_Try, /*On fail goto*//*Label 582*/ GIMT_Encode4(12850), // Rule ID 44 //
12574 /* 12826 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule40Enabled),
12575 /* 12829 */ // MIs[0] root
12576 /* 12829 */ // No operand predicates
12577 /* 12829 */ // MIs[0] src
12578 /* 12829 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
12579 /* 12833 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SHUFFLE_VECTOR),
12580 /* 12837 */ // MIs[1] src1
12581 /* 12837 */ // No operand predicates
12582 /* 12837 */ // MIs[1] src2
12583 /* 12837 */ // No operand predicates
12584 /* 12837 */ // MIs[1] mask
12585 /* 12837 */ // No operand predicates
12586 /* 12837 */ // MIs[0] idx
12587 /* 12837 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
12588 /* 12841 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
12589 /* 12845 */ // MIs[2] imm
12590 /* 12845 */ // No operand predicates
12591 /* 12845 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
12592 /* 12847 */ // Combiner Rule #40: extract_vector_element_shuffle_vector
12593 /* 12847 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner11),
12594 /* 12850 */ // Label 582: @12850
12595 /* 12850 */ GIM_Try, /*On fail goto*//*Label 583*/ GIMT_Encode4(12874), // Rule ID 37 //
12596 /* 12855 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule33Enabled),
12597 /* 12858 */ // MIs[0] root
12598 /* 12858 */ // No operand predicates
12599 /* 12858 */ // MIs[0] src
12600 /* 12858 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
12601 /* 12862 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR_TRUNC),
12602 /* 12866 */ GIM_CheckNumOperands, /*MI*/1, /*Expected*/3,
12603 /* 12869 */ // MIs[1] x
12604 /* 12869 */ // No operand predicates
12605 /* 12869 */ // MIs[1] y
12606 /* 12869 */ // No operand predicates
12607 /* 12869 */ // MIs[0] idx
12608 /* 12869 */ // No operand predicates
12609 /* 12869 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
12610 /* 12871 */ // Combiner Rule #33: extract_vector_element_build_vector_trunc2
12611 /* 12871 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner10),
12612 /* 12874 */ // Label 583: @12874
12613 /* 12874 */ GIM_Try, /*On fail goto*//*Label 584*/ GIMT_Encode4(12906), // Rule ID 36 //
12614 /* 12879 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule32Enabled),
12615 /* 12882 */ // MIs[0] root
12616 /* 12882 */ // No operand predicates
12617 /* 12882 */ // MIs[0] src
12618 /* 12882 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
12619 /* 12886 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR),
12620 /* 12890 */ GIM_CheckNumOperandsGE, /*MI*/1, /*Expected*/2,
12621 /* 12893 */ // MIs[1] unused
12622 /* 12893 */ // No operand predicates
12623 /* 12893 */ // MIs[0] idx
12624 /* 12893 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
12625 /* 12897 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
12626 /* 12901 */ // MIs[2] imm
12627 /* 12901 */ // No operand predicates
12628 /* 12901 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
12629 /* 12903 */ // Combiner Rule #32: extract_vector_element_build_vector
12630 /* 12903 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner9),
12631 /* 12906 */ // Label 584: @12906
12632 /* 12906 */ GIM_Try, /*On fail goto*//*Label 585*/ GIMT_Encode4(12930), // Rule ID 28 //
12633 /* 12911 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule25Enabled),
12634 /* 12914 */ // MIs[0] root
12635 /* 12914 */ // No operand predicates
12636 /* 12914 */ // MIs[0] __extract_vector_element_undef_match_0.x
12637 /* 12914 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
12638 /* 12918 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
12639 /* 12922 */ // MIs[0] __extract_vector_element_undef_match_0.y
12640 /* 12922 */ // No operand predicates
12641 /* 12922 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
12642 /* 12924 */ // Combiner Rule #25: extract_vector_element_undef @ [__extract_vector_element_undef_match_0[0]]
12643 /* 12924 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
12644 /* 12927 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
12645 /* 12929 */ GIR_EraseRootFromParent_Done,
12646 /* 12930 */ // Label 585: @12930
12647 /* 12930 */ GIM_Try, /*On fail goto*//*Label 586*/ GIMT_Encode4(12954), // Rule ID 29 //
12648 /* 12935 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule25Enabled),
12649 /* 12938 */ // MIs[0] root
12650 /* 12938 */ // No operand predicates
12651 /* 12938 */ // MIs[0] __extract_vector_element_undef_match_0.x
12652 /* 12938 */ // No operand predicates
12653 /* 12938 */ // MIs[0] __extract_vector_element_undef_match_0.y
12654 /* 12938 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
12655 /* 12942 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
12656 /* 12946 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
12657 /* 12948 */ // Combiner Rule #25: extract_vector_element_undef @ [__extract_vector_element_undef_match_0[1]]
12658 /* 12948 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
12659 /* 12951 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
12660 /* 12953 */ GIR_EraseRootFromParent_Done,
12661 /* 12954 */ // Label 586: @12954
12662 /* 12954 */ GIM_Try, /*On fail goto*//*Label 587*/ GIMT_Encode4(12965), // Rule ID 76 //
12663 /* 12959 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule72Enabled),
12664 /* 12962 */ // MIs[0] dst
12665 /* 12962 */ // No operand predicates
12666 /* 12962 */ // MIs[0] src
12667 /* 12962 */ // No operand predicates
12668 /* 12962 */ // MIs[0] idx
12669 /* 12962 */ // No operand predicates
12670 /* 12962 */ // Combiner Rule #72: extract_vec_elt_build_vec
12671 /* 12962 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner25),
12672 /* 12965 */ // Label 587: @12965
12673 /* 12965 */ GIM_Try, /*On fail goto*//*Label 588*/ GIMT_Encode4(12976), // Rule ID 82 //
12674 /* 12970 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule76Enabled),
12675 /* 12973 */ // MIs[0] dst
12676 /* 12973 */ // No operand predicates
12677 /* 12973 */ // MIs[0] src
12678 /* 12973 */ // No operand predicates
12679 /* 12973 */ // MIs[0] idx
12680 /* 12973 */ // No operand predicates
12681 /* 12973 */ // Combiner Rule #76: combine_extracted_vector_load
12682 /* 12973 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner29),
12683 /* 12976 */ // Label 588: @12976
12684 /* 12976 */ GIM_Reject,
12685 /* 12977 */ // Label 101: @12977
12686 /* 12977 */ GIM_Try, /*On fail goto*//*Label 589*/ GIMT_Encode4(12995), // Rule ID 111 //
12687 /* 12982 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule85Enabled),
12688 /* 12985 */ // MIs[0] root
12689 /* 12985 */ // No operand predicates
12690 /* 12985 */ // MIs[0] src1
12691 /* 12985 */ // No operand predicates
12692 /* 12985 */ // MIs[0] src2
12693 /* 12985 */ // No operand predicates
12694 /* 12985 */ // MIs[0] mask
12695 /* 12985 */ // No operand predicates
12696 /* 12985 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner8),
12697 /* 12989 */ // Combiner Rule #85: propagate_undef_all_ops_shuffle_vector
12698 /* 12989 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
12699 /* 12992 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
12700 /* 12994 */ GIR_EraseRootFromParent_Done,
12701 /* 12995 */ // Label 589: @12995
12702 /* 12995 */ GIM_Try, /*On fail goto*//*Label 590*/ GIMT_Encode4(13013), // Rule ID 113 //
12703 /* 13000 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule87Enabled),
12704 /* 13003 */ // MIs[0] dst
12705 /* 13003 */ // No operand predicates
12706 /* 13003 */ // MIs[0] src1
12707 /* 13003 */ // No operand predicates
12708 /* 13003 */ // MIs[0] src2
12709 /* 13003 */ // No operand predicates
12710 /* 13003 */ // MIs[0] mask
12711 /* 13003 */ // No operand predicates
12712 /* 13003 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner9),
12713 /* 13007 */ // Combiner Rule #87: propagate_undef_shuffle_mask
12714 /* 13007 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
12715 /* 13010 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
12716 /* 13012 */ GIR_EraseRootFromParent_Done,
12717 /* 13013 */ // Label 590: @13013
12718 /* 13013 */ GIM_Try, /*On fail goto*//*Label 591*/ GIMT_Encode4(13034), // Rule ID 426 //
12719 /* 13018 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule296Enabled),
12720 /* 13021 */ // MIs[0] root
12721 /* 13021 */ // No operand predicates
12722 /* 13021 */ // MIs[0] src1
12723 /* 13021 */ // No operand predicates
12724 /* 13021 */ // MIs[0] undef
12725 /* 13021 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
12726 /* 13025 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
12727 /* 13029 */ // MIs[0] mask
12728 /* 13029 */ // No operand predicates
12729 /* 13029 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
12730 /* 13031 */ // Combiner Rule #296: combine_shuffle_undef_rhs
12731 /* 13031 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner111),
12732 /* 13034 */ // Label 591: @13034
12733 /* 13034 */ GIM_Try, /*On fail goto*//*Label 592*/ GIMT_Encode4(13045), // Rule ID 425 //
12734 /* 13039 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule295Enabled),
12735 /* 13042 */ // MIs[0] dst
12736 /* 13042 */ // No operand predicates
12737 /* 13042 */ // MIs[0] src1
12738 /* 13042 */ // No operand predicates
12739 /* 13042 */ // MIs[0] src2
12740 /* 13042 */ // No operand predicates
12741 /* 13042 */ // MIs[0] mask
12742 /* 13042 */ // No operand predicates
12743 /* 13042 */ // Combiner Rule #295: combine_shuffle_concat
12744 /* 13042 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner110),
12745 /* 13045 */ // Label 592: @13045
12746 /* 13045 */ GIM_Try, /*On fail goto*//*Label 593*/ GIMT_Encode4(13056), // Rule ID 427 //
12747 /* 13050 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule297Enabled),
12748 /* 13053 */ // MIs[0] dst
12749 /* 13053 */ // No operand predicates
12750 /* 13053 */ // MIs[0] src1
12751 /* 13053 */ // No operand predicates
12752 /* 13053 */ // MIs[0] src2
12753 /* 13053 */ // No operand predicates
12754 /* 13053 */ // MIs[0] mask
12755 /* 13053 */ // No operand predicates
12756 /* 13053 */ // Combiner Rule #297: combine_shuffle_disjoint_mask
12757 /* 13053 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner112),
12758 /* 13056 */ // Label 593: @13056
12759 /* 13056 */ GIM_Try, /*On fail goto*//*Label 594*/ GIMT_Encode4(13067), // Rule ID 480 //
12760 /* 13061 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule344Enabled),
12761 /* 13064 */ // MIs[0] dst
12762 /* 13064 */ // No operand predicates
12763 /* 13064 */ // MIs[0] src1
12764 /* 13064 */ // No operand predicates
12765 /* 13064 */ // MIs[0] src2
12766 /* 13064 */ // No operand predicates
12767 /* 13064 */ // MIs[0] mask
12768 /* 13064 */ // No operand predicates
12769 /* 13064 */ // Combiner Rule #344: combine_shuffle_vector
12770 /* 13064 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner133),
12771 /* 13067 */ // Label 594: @13067
12772 /* 13067 */ GIM_Try, /*On fail goto*//*Label 595*/ GIMT_Encode4(13078), // Rule ID 481 //
12773 /* 13072 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule345Enabled),
12774 /* 13075 */ // MIs[0] dst
12775 /* 13075 */ // No operand predicates
12776 /* 13075 */ // MIs[0] src1
12777 /* 13075 */ // No operand predicates
12778 /* 13075 */ // MIs[0] src2
12779 /* 13075 */ // No operand predicates
12780 /* 13075 */ // MIs[0] mask
12781 /* 13075 */ // No operand predicates
12782 /* 13075 */ // Combiner Rule #345: combine_shuffle_vector_to_build_vector
12783 /* 13075 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner134),
12784 /* 13078 */ // Label 595: @13078
12785 /* 13078 */ GIM_Reject,
12786 /* 13079 */ // Label 102: @13079
12787 /* 13079 */ GIM_Try, /*On fail goto*//*Label 596*/ GIMT_Encode4(13102), // Rule ID 455 //
12788 /* 13084 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule325Enabled),
12789 /* 13087 */ // MIs[0] dst
12790 /* 13087 */ // No operand predicates
12791 /* 13087 */ // MIs[0] src
12792 /* 13087 */ // No operand predicates
12793 /* 13087 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner59),
12794 /* 13091 */ // Combiner Rule #325: cttz_to_cttz_zero_poison
12795 /* 13091 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_CTTZ_ZERO_POISON),
12796 /* 13094 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
12797 /* 13096 */ GIR_RootToRootCopy, /*OpIdx*/1, // src
12798 /* 13098 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
12799 /* 13101 */ GIR_EraseRootFromParent_Done,
12800 /* 13102 */ // Label 596: @13102
12801 /* 13102 */ GIM_Try, /*On fail goto*//*Label 597*/ GIMT_Encode4(13113), // Rule ID 318 //
12802 /* 13107 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule217Enabled),
12803 /* 13110 */ // MIs[0] dst
12804 /* 13110 */ // No operand predicates
12805 /* 13110 */ // MIs[0] mi.src
12806 /* 13110 */ // No operand predicates
12807 /* 13110 */ // Combiner Rule #217: constant_fold_unary_int_op @ [mi[2]]
12808 /* 13110 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner83),
12809 /* 13113 */ // Label 597: @13113
12810 /* 13113 */ GIM_Reject,
12811 /* 13114 */ // Label 103: @13114
12812 /* 13114 */ GIM_Try, /*On fail goto*//*Label 598*/ GIMT_Encode4(13125), // Rule ID 319 //
12813 /* 13119 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule217Enabled),
12814 /* 13122 */ // MIs[0] dst
12815 /* 13122 */ // No operand predicates
12816 /* 13122 */ // MIs[0] mi.src
12817 /* 13122 */ // No operand predicates
12818 /* 13122 */ // Combiner Rule #217: constant_fold_unary_int_op @ [mi[3]]
12819 /* 13122 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner83),
12820 /* 13125 */ // Label 598: @13125
12821 /* 13125 */ GIM_Reject,
12822 /* 13126 */ // Label 104: @13126
12823 /* 13126 */ GIM_Try, /*On fail goto*//*Label 599*/ GIMT_Encode4(13149), // Rule ID 454 //
12824 /* 13131 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule324Enabled),
12825 /* 13134 */ // MIs[0] dst
12826 /* 13134 */ // No operand predicates
12827 /* 13134 */ // MIs[0] src
12828 /* 13134 */ // No operand predicates
12829 /* 13134 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner58),
12830 /* 13138 */ // Combiner Rule #324: ctlz_to_ctlz_zero_poison
12831 /* 13138 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_CTLZ_ZERO_POISON),
12832 /* 13141 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
12833 /* 13143 */ GIR_RootToRootCopy, /*OpIdx*/1, // src
12834 /* 13145 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
12835 /* 13148 */ GIR_EraseRootFromParent_Done,
12836 /* 13149 */ // Label 599: @13149
12837 /* 13149 */ GIM_Try, /*On fail goto*//*Label 600*/ GIMT_Encode4(13160), // Rule ID 316 //
12838 /* 13154 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule217Enabled),
12839 /* 13157 */ // MIs[0] dst
12840 /* 13157 */ // No operand predicates
12841 /* 13157 */ // MIs[0] mi.src
12842 /* 13157 */ // No operand predicates
12843 /* 13157 */ // Combiner Rule #217: constant_fold_unary_int_op @ [mi[0]]
12844 /* 13157 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner83),
12845 /* 13160 */ // Label 600: @13160
12846 /* 13160 */ GIM_Try, /*On fail goto*//*Label 601*/ GIMT_Encode4(13171), // Rule ID 452 //
12847 /* 13165 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule322Enabled),
12848 /* 13168 */ // MIs[0] dst
12849 /* 13168 */ // No operand predicates
12850 /* 13168 */ // MIs[0] src
12851 /* 13168 */ // No operand predicates
12852 /* 13168 */ // Combiner Rule #322: ctlz_to_ctls
12853 /* 13168 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner127),
12854 /* 13171 */ // Label 601: @13171
12855 /* 13171 */ GIM_Reject,
12856 /* 13172 */ // Label 105: @13172
12857 /* 13172 */ GIM_Try, /*On fail goto*//*Label 602*/ GIMT_Encode4(13183), // Rule ID 317 //
12858 /* 13177 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule217Enabled),
12859 /* 13180 */ // MIs[0] dst
12860 /* 13180 */ // No operand predicates
12861 /* 13180 */ // MIs[0] mi.src
12862 /* 13180 */ // No operand predicates
12863 /* 13180 */ // Combiner Rule #217: constant_fold_unary_int_op @ [mi[1]]
12864 /* 13180 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner83),
12865 /* 13183 */ // Label 602: @13183
12866 /* 13183 */ GIM_Try, /*On fail goto*//*Label 603*/ GIMT_Encode4(13194), // Rule ID 453 //
12867 /* 13188 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule323Enabled),
12868 /* 13191 */ // MIs[0] dst
12869 /* 13191 */ // No operand predicates
12870 /* 13191 */ // MIs[0] src
12871 /* 13191 */ // No operand predicates
12872 /* 13191 */ // Combiner Rule #323: ctlz_zero_poison_to_ctls
12873 /* 13191 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner127),
12874 /* 13194 */ // Label 603: @13194
12875 /* 13194 */ GIM_Reject,
12876 /* 13195 */ // Label 106: @13195
12877 /* 13195 */ GIM_Try, /*On fail goto*//*Label 604*/ GIMT_Encode4(13206), // Rule ID 320 //
12878 /* 13200 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule217Enabled),
12879 /* 13203 */ // MIs[0] dst
12880 /* 13203 */ // No operand predicates
12881 /* 13203 */ // MIs[0] mi.src
12882 /* 13203 */ // No operand predicates
12883 /* 13203 */ // Combiner Rule #217: constant_fold_unary_int_op @ [mi[4]]
12884 /* 13203 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner83),
12885 /* 13206 */ // Label 604: @13206
12886 /* 13206 */ GIM_Reject,
12887 /* 13207 */ // Label 107: @13207
12888 /* 13207 */ GIM_Try, /*On fail goto*//*Label 605*/ GIMT_Encode4(13218), // Rule ID 322 //
12889 /* 13212 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule217Enabled),
12890 /* 13215 */ // MIs[0] dst
12891 /* 13215 */ // No operand predicates
12892 /* 13215 */ // MIs[0] mi.src
12893 /* 13215 */ // No operand predicates
12894 /* 13215 */ // Combiner Rule #217: constant_fold_unary_int_op @ [mi[6]]
12895 /* 13215 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner83),
12896 /* 13218 */ // Label 605: @13218
12897 /* 13218 */ GIM_Reject,
12898 /* 13219 */ // Label 108: @13219
12899 /* 13219 */ GIM_Try, /*On fail goto*//*Label 606*/ GIMT_Encode4(13263), // Rule ID 272 //
12900 /* 13224 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule206Enabled),
12901 /* 13227 */ // MIs[0] d
12902 /* 13227 */ // No operand predicates
12903 /* 13227 */ // MIs[0] src
12904 /* 13227 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
12905 /* 13231 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_LSHR),
12906 /* 13235 */ // MIs[1] rev
12907 /* 13235 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
12908 /* 13239 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_BITREVERSE),
12909 /* 13243 */ // MIs[2] val
12910 /* 13243 */ // No operand predicates
12911 /* 13243 */ // MIs[1] amt
12912 /* 13243 */ // No operand predicates
12913 /* 13243 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner42),
12914 /* 13247 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
12915 /* 13249 */ // Combiner Rule #206: bitreverse_lshr
12916 /* 13249 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SHL),
12917 /* 13252 */ GIR_RootToRootCopy, /*OpIdx*/0, // d
12918 /* 13254 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // val
12919 /* 13258 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // amt
12920 /* 13262 */ GIR_EraseRootFromParent_Done,
12921 /* 13263 */ // Label 606: @13263
12922 /* 13263 */ GIM_Try, /*On fail goto*//*Label 607*/ GIMT_Encode4(13307), // Rule ID 271 //
12923 /* 13268 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule205Enabled),
12924 /* 13271 */ // MIs[0] d
12925 /* 13271 */ // No operand predicates
12926 /* 13271 */ // MIs[0] src
12927 /* 13271 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
12928 /* 13275 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SHL),
12929 /* 13279 */ // MIs[1] rev
12930 /* 13279 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
12931 /* 13283 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_BITREVERSE),
12932 /* 13287 */ // MIs[2] val
12933 /* 13287 */ // No operand predicates
12934 /* 13287 */ // MIs[1] amt
12935 /* 13287 */ // No operand predicates
12936 /* 13287 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner41),
12937 /* 13291 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
12938 /* 13293 */ // Combiner Rule #205: bitreverse_shl
12939 /* 13293 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_LSHR),
12940 /* 13296 */ GIR_RootToRootCopy, /*OpIdx*/0, // d
12941 /* 13298 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // val
12942 /* 13302 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // amt
12943 /* 13306 */ GIR_EraseRootFromParent_Done,
12944 /* 13307 */ // Label 607: @13307
12945 /* 13307 */ GIM_Try, /*On fail goto*//*Label 608*/ GIMT_Encode4(13318), // Rule ID 323 //
12946 /* 13312 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule217Enabled),
12947 /* 13315 */ // MIs[0] dst
12948 /* 13315 */ // No operand predicates
12949 /* 13315 */ // MIs[0] mi.src
12950 /* 13315 */ // No operand predicates
12951 /* 13315 */ // Combiner Rule #217: constant_fold_unary_int_op @ [mi[7]]
12952 /* 13315 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner83),
12953 /* 13318 */ // Label 608: @13318
12954 /* 13318 */ GIM_Reject,
12955 /* 13319 */ // Label 109: @13319
12956 /* 13319 */ GIM_Try, /*On fail goto*//*Label 609*/ GIMT_Encode4(13330), // Rule ID 216 //
12957 /* 13324 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule166Enabled),
12958 /* 13327 */ // MIs[0] dst
12959 /* 13327 */ // No operand predicates
12960 /* 13327 */ // MIs[0] src0
12961 /* 13327 */ // No operand predicates
12962 /* 13327 */ // Combiner Rule #166: constant_fold_fceil
12963 /* 13327 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner63),
12964 /* 13330 */ // Label 609: @13330
12965 /* 13330 */ GIM_Reject,
12966 /* 13331 */ // Label 110: @13331
12967 /* 13331 */ GIM_Try, /*On fail goto*//*Label 610*/ GIMT_Encode4(13342), // Rule ID 212 //
12968 /* 13336 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule162Enabled),
12969 /* 13339 */ // MIs[0] dst
12970 /* 13339 */ // No operand predicates
12971 /* 13339 */ // MIs[0] src0
12972 /* 13339 */ // No operand predicates
12973 /* 13339 */ // Combiner Rule #162: constant_fold_fsqrt
12974 /* 13339 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner63),
12975 /* 13342 */ // Label 610: @13342
12976 /* 13342 */ GIM_Reject,
12977 /* 13343 */ // Label 111: @13343
12978 /* 13343 */ GIM_Try, /*On fail goto*//*Label 611*/ GIMT_Encode4(13354), // Rule ID 217 //
12979 /* 13348 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule167Enabled),
12980 /* 13351 */ // MIs[0] dst
12981 /* 13351 */ // No operand predicates
12982 /* 13351 */ // MIs[0] src0
12983 /* 13351 */ // No operand predicates
12984 /* 13351 */ // Combiner Rule #167: constant_fold_ffloor
12985 /* 13351 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner63),
12986 /* 13354 */ // Label 611: @13354
12987 /* 13354 */ GIM_Reject,
12988 /* 13355 */ // Label 112: @13355
12989 /* 13355 */ GIM_Try, /*On fail goto*//*Label 612*/ GIMT_Encode4(13366), // Rule ID 221 //
12990 /* 13360 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule171Enabled),
12991 /* 13363 */ // MIs[0] dst
12992 /* 13363 */ // No operand predicates
12993 /* 13363 */ // MIs[0] src0
12994 /* 13363 */ // No operand predicates
12995 /* 13363 */ // Combiner Rule #171: constant_fold_frint
12996 /* 13363 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner63),
12997 /* 13366 */ // Label 612: @13366
12998 /* 13366 */ GIM_Reject,
12999 /* 13367 */ // Label 113: @13367
13000 /* 13367 */ GIM_Try, /*On fail goto*//*Label 613*/ GIMT_Encode4(13378), // Rule ID 222 //
13001 /* 13372 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule172Enabled),
13002 /* 13375 */ // MIs[0] dst
13003 /* 13375 */ // No operand predicates
13004 /* 13375 */ // MIs[0] src0
13005 /* 13375 */ // No operand predicates
13006 /* 13375 */ // Combiner Rule #172: constant_fold_fnearbyint
13007 /* 13375 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner63),
13008 /* 13378 */ // Label 613: @13378
13009 /* 13378 */ GIM_Reject,
13010 /* 13379 */ // Label 114: @13379
13011 /* 13379 */ GIM_Reject,
13012 /* 13380 */ }; // Size: 13380 bytes
13013 return MatchTable0;
13014}
13015#undef GIMT_Encode2
13016#undef GIMT_Encode4
13017#undef GIMT_Encode8
13018
13019LLT AMDGPUPreLegalizerCombinerImpl::getLLTForHwMode(unsigned Index) const {
13020 llvm_unreachable("Unexpected index");
13021}
13022
13023
13024#endif // GET_GICOMBINER_IMPL
13025
13026#ifdef GET_GICOMBINER_CONSTRUCTOR_INITS
13027
13028AvailableModuleFeatures(computeAvailableModuleFeatures(&STI)),
13029AvailableFunctionFeatures()
13030
13031#endif // GET_GICOMBINER_CONSTRUCTOR_INITS
13032
13033#ifdef GET_GICOMBINER_CONSTRUCTOR_INITS
13034
13035, State(0),
13036ExecInfo(TypeObjects, NumTypeObjects, FeatureBitsets, ComplexPredicateFns, CustomRenderers)
13037
13038#endif // GET_GICOMBINER_CONSTRUCTOR_INITS
13039
13040