1/*===- TableGen'erated file -------------------------------------*- C++ -*-===*\
2|* *|
3|* RISCVPreLegalizerCombinerImpl Combiner Match Table *|
4|* *|
5|* Automatically generated file, do not edit! *|
6|* *|
7\*===----------------------------------------------------------------------===*/
8
9#ifdef GET_GICOMBINER_DEPS
10
11#include "llvm/ADT/SparseBitVector.h"
12namespace llvm {
13
14extern cl::OptionCategory GICombinerOptionCategory;
15
16} // namespace llvm
17
18#endif // GET_GICOMBINER_DEPS
19
20#ifdef GET_GICOMBINER_TYPES
21
22struct RISCVPreLegalizerCombinerImplRuleConfig {
23 SparseBitVector<> DisabledRules;
24
25 bool isRuleEnabled(unsigned RuleID) const;
26 bool parseCommandLineOption();
27 bool setRuleEnabled(StringRef RuleIdentifier);
28 bool setRuleDisabled(StringRef RuleIdentifier);
29};
30
31static std::optional<uint64_t> getRuleIdxForIdentifier(StringRef RuleIdentifier) {
32 uint64_t I;
33 // getAtInteger(...) returns false on success
34 bool Parsed = !RuleIdentifier.getAsInteger(0, I);
35 if (Parsed)
36 return I;
37
38#ifndef NDEBUG
39 switch (RuleIdentifier.size()) {
40 default: break;
41 case 9: // 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: // 18 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 'l': // 1 string to match.
265 if (memcmp(RuleIdentifier.data()+1, "oad_and_mask", 12) != 0)
266 break;
267 return 75; // "load_and_mask"
268 case 'm': // 3 strings to match.
269 switch (RuleIdentifier[1]) {
270 default: break;
271 case 'a': // 1 string to match.
272 if (memcmp(RuleIdentifier.data()+2, "tch_selects", 11) != 0)
273 break;
274 return 142; // "match_selects"
275 case 'e': // 1 string to match.
276 if (memcmp(RuleIdentifier.data()+2, "rge_unmerge", 11) != 0)
277 break;
278 return 301; // "merge_unmerge"
279 case 'u': // 1 string to match.
280 if (memcmp(RuleIdentifier.data()+2, "l_of_vscale", 11) != 0)
281 break;
282 return 43; // "mul_of_vscale"
283 }
284 break;
285 case 'r': // 1 string to match.
286 if (memcmp(RuleIdentifier.data()+1, "edundant_and", 12) != 0)
287 break;
288 return 150; // "redundant_and"
289 case 's': // 6 strings to match.
290 switch (RuleIdentifier[1]) {
291 default: break;
292 case 'a': // 1 string to match.
293 if (memcmp(RuleIdentifier.data()+2, "me_val_zero", 11) != 0)
294 break;
295 return 95; // "same_val_zero"
296 case 'd': // 1 string to match.
297 if (memcmp(RuleIdentifier.data()+2, "iv_by_const", 11) != 0)
298 break;
299 return 245; // "sdiv_by_const"
300 case 'h': // 1 string to match.
301 if (memcmp(RuleIdentifier.data()+2, "l_of_vscale", 11) != 0)
302 break;
303 return 44; // "shl_of_vscale"
304 case 'r': // 1 string to match.
305 if (memcmp(RuleIdentifier.data()+2, "em_by_const", 11) != 0)
306 break;
307 return 240; // "srem_by_const"
308 case 'u': // 2 strings to match.
309 if (memcmp(RuleIdentifier.data()+2, "b_", 2) != 0)
310 break;
311 switch (RuleIdentifier[4]) {
312 default: break;
313 case 'm': // 1 string to match.
314 if (memcmp(RuleIdentifier.data()+5, "inus_one", 8) != 0)
315 break;
316 return 329; // "sub_minus_one"
317 case 'o': // 1 string to match.
318 if (memcmp(RuleIdentifier.data()+5, "f_vscale", 8) != 0)
319 break;
320 return 45; // "sub_of_vscale"
321 }
322 break;
323 }
324 break;
325 case 'u': // 4 strings to match.
326 switch (RuleIdentifier[1]) {
327 default: break;
328 case 'd': // 1 string to match.
329 if (memcmp(RuleIdentifier.data()+2, "iv_by_const", 11) != 0)
330 break;
331 return 244; // "udiv_by_const"
332 case 'n': // 2 strings to match.
333 if (memcmp(RuleIdentifier.data()+2, "merge_", 6) != 0)
334 break;
335 switch (RuleIdentifier[8]) {
336 default: break;
337 case 'm': // 1 string to match.
338 if (memcmp(RuleIdentifier.data()+9, "erge", 4) != 0)
339 break;
340 return 300; // "unmerge_merge"
341 case 'u': // 1 string to match.
342 if (memcmp(RuleIdentifier.data()+9, "ndef", 4) != 0)
343 break;
344 return 303; // "unmerge_undef"
345 }
346 break;
347 case 'r': // 1 string to match.
348 if (memcmp(RuleIdentifier.data()+2, "em_by_const", 11) != 0)
349 break;
350 return 239; // "urem_by_const"
351 }
352 break;
353 }
354 break;
355 case 14: // 17 strings to match.
356 switch (RuleIdentifier[0]) {
357 default: break;
358 case 'A': // 2 strings to match.
359 switch (RuleIdentifier[1]) {
360 default: break;
361 case 'M': // 1 string to match.
362 if (memcmp(RuleIdentifier.data()+2, "inusC1PlusC2", 12) != 0)
363 break;
364 return 18; // "AMinusC1PlusC2"
365 case 'P': // 1 string to match.
366 if (memcmp(RuleIdentifier.data()+2, "lusC1MinusC2", 12) != 0)
367 break;
368 return 14; // "APlusC1MinusC2"
369 }
370 break;
371 case 'C': // 1 string to match.
372 if (memcmp(RuleIdentifier.data()+1, "2MinusAPlusC1", 13) != 0)
373 break;
374 return 15; // "C2MinusAPlusC1"
375 case 'N': // 1 string to match.
376 if (memcmp(RuleIdentifier.data()+1, "otAPlusNegOne", 13) != 0)
377 break;
378 return 13; // "NotAPlusNegOne"
379 case 'a': // 2 strings to match.
380 if (memcmp(RuleIdentifier.data()+1, "nyext_of_", 9) != 0)
381 break;
382 switch (RuleIdentifier[10]) {
383 default: break;
384 case 's': // 1 string to match.
385 if (memcmp(RuleIdentifier.data()+11, "ext", 3) != 0)
386 break;
387 return 58; // "anyext_of_sext"
388 case 'z': // 1 string to match.
389 if (memcmp(RuleIdentifier.data()+11, "ext", 3) != 0)
390 break;
391 return 57; // "anyext_of_zext"
392 }
393 break;
394 case 'b': // 3 strings to match.
395 if (RuleIdentifier[1] != 'i')
396 break;
397 switch (RuleIdentifier[2]) {
398 default: break;
399 case 'n': // 2 strings to match.
400 if (memcmp(RuleIdentifier.data()+3, "op_", 3) != 0)
401 break;
402 switch (RuleIdentifier[6]) {
403 default: break;
404 case 's': // 1 string to match.
405 if (memcmp(RuleIdentifier.data()+7, "ame_val", 7) != 0)
406 break;
407 return 94; // "binop_same_val"
408 case 'w': // 1 string to match.
409 if (memcmp(RuleIdentifier.data()+7, "ith_neg", 7) != 0)
410 break;
411 return 328; // "binop_with_neg"
412 }
413 break;
414 case 't': // 1 string to match.
415 if (memcmp(RuleIdentifier.data()+3, "reverse_shl", 11) != 0)
416 break;
417 return 205; // "bitreverse_shl"
418 }
419 break;
420 case 'f': // 2 strings to match.
421 switch (RuleIdentifier[1]) {
422 default: break;
423 case 'a': // 1 string to match.
424 if (memcmp(RuleIdentifier.data()+2, "bs_fneg_fold", 12) != 0)
425 break;
426 return 218; // "fabs_fneg_fold"
427 case 'n': // 1 string to match.
428 if (memcmp(RuleIdentifier.data()+2, "eg_fneg_fold", 12) != 0)
429 break;
430 return 103; // "fneg_fneg_fold"
431 }
432 break;
433 case 'm': // 1 string to match.
434 if (memcmp(RuleIdentifier.data()+1, "ul_by_neg_one", 13) != 0)
435 break;
436 return 23; // "mul_by_neg_one"
437 case 'r': // 1 string to match.
438 if (memcmp(RuleIdentifier.data()+1, "eassoc_ptradd", 13) != 0)
439 break;
440 return 121; // "reassoc_ptradd"
441 case 's': // 3 strings to match.
442 switch (RuleIdentifier[1]) {
443 default: break;
444 case 'e': // 2 strings to match.
445 switch (RuleIdentifier[2]) {
446 default: break;
447 case 'l': // 1 string to match.
448 if (memcmp(RuleIdentifier.data()+3, "ect_of_zext", 11) != 0)
449 break;
450 return 60; // "select_of_zext"
451 case 'x': // 1 string to match.
452 if (memcmp(RuleIdentifier.data()+3, "t_of_anyext", 11) != 0)
453 break;
454 return 55; // "sext_of_anyext"
455 }
456 break;
457 case 'h': // 1 string to match.
458 if (memcmp(RuleIdentifier.data()+2, "ifts_too_big", 12) != 0)
459 break;
460 return 120; // "shifts_too_big"
461 }
462 break;
463 case 'z': // 1 string to match.
464 if (memcmp(RuleIdentifier.data()+1, "ext_of_anyext", 13) != 0)
465 break;
466 return 53; // "zext_of_anyext"
467 }
468 break;
469 case 15: // 23 strings to match.
470 switch (RuleIdentifier[0]) {
471 default: break;
472 case 'A': // 2 strings to match.
473 switch (RuleIdentifier[1]) {
474 default: break;
475 case 'M': // 1 string to match.
476 if (memcmp(RuleIdentifier.data()+2, "inusC1MinusC2", 13) != 0)
477 break;
478 return 16; // "AMinusC1MinusC2"
479 case 'P': // 1 string to match.
480 if (memcmp(RuleIdentifier.data()+2, "lusZeroMinusB", 13) != 0)
481 break;
482 return 3; // "APlusZeroMinusB"
483 }
484 break;
485 case 'C': // 1 string to match.
486 if (memcmp(RuleIdentifier.data()+1, "1Minus2MinusC2", 14) != 0)
487 break;
488 return 17; // "C1Minus2MinusC2"
489 case 'G': // 1 string to match.
490 if (memcmp(RuleIdentifier.data()+1, "_FMA_fneg_fneg", 14) != 0)
491 break;
492 return 226; // "G_FMA_fneg_fneg"
493 case 'Z': // 1 string to match.
494 if (memcmp(RuleIdentifier.data()+1, "eroMinusAPlusB", 14) != 0)
495 break;
496 return 2; // "ZeroMinusAPlusB"
497 case 'a': // 2 strings to match.
498 if (memcmp(RuleIdentifier.data()+1, "vgceil_", 7) != 0)
499 break;
500 switch (RuleIdentifier[8]) {
501 default: break;
502 case 's': // 1 string to match.
503 if (memcmp(RuleIdentifier.data()+9, "_match", 6) != 0)
504 break;
505 return 338; // "avgceil_s_match"
506 case 'u': // 1 string to match.
507 if (memcmp(RuleIdentifier.data()+9, "_match", 6) != 0)
508 break;
509 return 337; // "avgceil_u_match"
510 }
511 break;
512 case 'b': // 1 string to match.
513 if (memcmp(RuleIdentifier.data()+1, "itreverse_lshr", 14) != 0)
514 break;
515 return 206; // "bitreverse_lshr"
516 case 'e': // 1 string to match.
517 if (memcmp(RuleIdentifier.data()+1, "xtending_loads", 14) != 0)
518 break;
519 return 74; // "extending_loads"
520 case 'i': // 2 strings to match.
521 switch (RuleIdentifier[1]) {
522 default: break;
523 case '2': // 1 string to match.
524 if (memcmp(RuleIdentifier.data()+2, "p_to_p2i_zext", 13) != 0)
525 break;
526 return 100; // "i2p_to_p2i_zext"
527 case 'd': // 1 string to match.
528 if (memcmp(RuleIdentifier.data()+2, "empotent_prop", 13) != 0)
529 break;
530 return 24; // "idempotent_prop"
531 }
532 break;
533 case 'l': // 1 string to match.
534 if (memcmp(RuleIdentifier.data()+1, "oad_or_combine", 14) != 0)
535 break;
536 return 195; // "load_or_combine"
537 case 'm': // 4 strings to match.
538 if (memcmp(RuleIdentifier.data()+1, "ulo_by_", 7) != 0)
539 break;
540 switch (RuleIdentifier[8]) {
541 default: break;
542 case '0': // 2 strings to match.
543 if (RuleIdentifier[9] != '_')
544 break;
545 switch (RuleIdentifier[10]) {
546 default: break;
547 case 's': // 1 string to match.
548 if (memcmp(RuleIdentifier.data()+11, "mulo", 4) != 0)
549 break;
550 return 180; // "mulo_by_0_smulo"
551 case 'u': // 1 string to match.
552 if (memcmp(RuleIdentifier.data()+11, "mulo", 4) != 0)
553 break;
554 return 179; // "mulo_by_0_umulo"
555 }
556 break;
557 case '2': // 2 strings to match.
558 if (RuleIdentifier[9] != '_')
559 break;
560 switch (RuleIdentifier[10]) {
561 default: break;
562 case 's': // 1 string to match.
563 if (memcmp(RuleIdentifier.data()+11, "mulo", 4) != 0)
564 break;
565 return 178; // "mulo_by_2_smulo"
566 case 'u': // 1 string to match.
567 if (memcmp(RuleIdentifier.data()+11, "mulo", 4) != 0)
568 break;
569 return 177; // "mulo_by_2_umulo"
570 }
571 break;
572 }
573 break;
574 case 'n': // 1 string to match.
575 if (memcmp(RuleIdentifier.data()+1, "arrow_binop_or", 14) != 0)
576 break;
577 return 68; // "narrow_binop_or"
578 case 'o': // 1 string to match.
579 if (memcmp(RuleIdentifier.data()+1, "verlapping_and", 14) != 0)
580 break;
581 return 176; // "overlapping_and"
582 case 's': // 4 strings to match.
583 if (memcmp(RuleIdentifier.data()+1, "ub_add_", 7) != 0)
584 break;
585 switch (RuleIdentifier[8]) {
586 default: break;
587 case 'n': // 2 strings to match.
588 if (memcmp(RuleIdentifier.data()+9, "eg_", 3) != 0)
589 break;
590 switch (RuleIdentifier[12]) {
591 default: break;
592 case 'l': // 1 string to match.
593 if (memcmp(RuleIdentifier.data()+13, "hs", 2) != 0)
594 break;
595 return 250; // "sub_add_neg_lhs"
596 case 'r': // 1 string to match.
597 if (memcmp(RuleIdentifier.data()+13, "hs", 2) != 0)
598 break;
599 return 249; // "sub_add_neg_rhs"
600 }
601 break;
602 case 'r': // 2 strings to match.
603 if (memcmp(RuleIdentifier.data()+9, "eg_", 3) != 0)
604 break;
605 switch (RuleIdentifier[12]) {
606 default: break;
607 case 'l': // 1 string to match.
608 if (memcmp(RuleIdentifier.data()+13, "hs", 2) != 0)
609 break;
610 return 248; // "sub_add_reg_lhs"
611 case 'r': // 1 string to match.
612 if (memcmp(RuleIdentifier.data()+13, "hs", 2) != 0)
613 break;
614 return 247; // "sub_add_reg_rhs"
615 }
616 break;
617 }
618 break;
619 case 'z': // 1 string to match.
620 if (memcmp(RuleIdentifier.data()+1, "ext_trunc_fold", 14) != 0)
621 break;
622 return 153; // "zext_trunc_fold"
623 }
624 break;
625 case 16: // 25 strings to match.
626 switch (RuleIdentifier[0]) {
627 default: break;
628 case 'A': // 1 string to match.
629 if (memcmp(RuleIdentifier.data()+1, "MinusZeroMinusB", 15) != 0)
630 break;
631 return 11; // "AMinusZeroMinusB"
632 case 'G': // 3 strings to match.
633 if (memcmp(RuleIdentifier.data()+1, "_F", 2) != 0)
634 break;
635 switch (RuleIdentifier[3]) {
636 default: break;
637 case 'D': // 1 string to match.
638 if (memcmp(RuleIdentifier.data()+4, "IV_fneg_fneg", 12) != 0)
639 break;
640 return 224; // "G_FDIV_fneg_fneg"
641 case 'M': // 2 strings to match.
642 switch (RuleIdentifier[4]) {
643 default: break;
644 case 'A': // 1 string to match.
645 if (memcmp(RuleIdentifier.data()+5, "D_fneg_fneg", 11) != 0)
646 break;
647 return 225; // "G_FMAD_fneg_fneg"
648 case 'U': // 1 string to match.
649 if (memcmp(RuleIdentifier.data()+5, "L_fneg_fneg", 11) != 0)
650 break;
651 return 223; // "G_FMUL_fneg_fneg"
652 }
653 break;
654 }
655 break;
656 case 'a': // 3 strings to match.
657 switch (RuleIdentifier[1]) {
658 default: break;
659 case 'n': // 1 string to match.
660 if (memcmp(RuleIdentifier.data()+2, "yext_of_anyext", 14) != 0)
661 break;
662 return 56; // "anyext_of_anyext"
663 case 'v': // 2 strings to match.
664 if (memcmp(RuleIdentifier.data()+2, "gfloor_", 7) != 0)
665 break;
666 switch (RuleIdentifier[9]) {
667 default: break;
668 case 's': // 1 string to match.
669 if (memcmp(RuleIdentifier.data()+10, "_match", 6) != 0)
670 break;
671 return 336; // "avgfloor_s_match"
672 case 'u': // 1 string to match.
673 if (memcmp(RuleIdentifier.data()+10, "_match", 6) != 0)
674 break;
675 return 335; // "avgfloor_u_match"
676 }
677 break;
678 }
679 break;
680 case 'c': // 1 string to match.
681 if (memcmp(RuleIdentifier.data()+1, "ommute_shift_or", 15) != 0)
682 break;
683 return 208; // "commute_shift_or"
684 case 'i': // 1 string to match.
685 if (memcmp(RuleIdentifier.data()+1, "2p_to_p2i_trunc", 15) != 0)
686 break;
687 return 101; // "i2p_to_p2i_trunc"
688 case 'n': // 5 strings to match.
689 if (memcmp(RuleIdentifier.data()+1, "arrow_binop_", 12) != 0)
690 break;
691 switch (RuleIdentifier[13]) {
692 default: break;
693 case 'a': // 2 strings to match.
694 switch (RuleIdentifier[14]) {
695 default: break;
696 case 'd': // 1 string to match.
697 if (RuleIdentifier[15] != 'd')
698 break;
699 return 64; // "narrow_binop_add"
700 case 'n': // 1 string to match.
701 if (RuleIdentifier[15] != 'd')
702 break;
703 return 67; // "narrow_binop_and"
704 }
705 break;
706 case 'm': // 1 string to match.
707 if (memcmp(RuleIdentifier.data()+14, "ul", 2) != 0)
708 break;
709 return 66; // "narrow_binop_mul"
710 case 's': // 1 string to match.
711 if (memcmp(RuleIdentifier.data()+14, "ub", 2) != 0)
712 break;
713 return 65; // "narrow_binop_sub"
714 case 'x': // 1 string to match.
715 if (memcmp(RuleIdentifier.data()+14, "or", 2) != 0)
716 break;
717 return 69; // "narrow_binop_xor"
718 }
719 break;
720 case 'o': // 1 string to match.
721 if (memcmp(RuleIdentifier.data()+1, "r_and_xor_to_or", 15) != 0)
722 break;
723 return 284; // "or_and_xor_to_or"
724 case 's': // 7 strings to match.
725 switch (RuleIdentifier[1]) {
726 default: break;
727 case 'd': // 1 string to match.
728 if (memcmp(RuleIdentifier.data()+2, "iv_to_unsigned", 14) != 0)
729 break;
730 return 155; // "sdiv_to_unsigned"
731 case 'e': // 3 strings to match.
732 if (memcmp(RuleIdentifier.data()+2, "lect_", 5) != 0)
733 break;
734 switch (RuleIdentifier[7]) {
735 default: break;
736 case 'o': // 1 string to match.
737 if (memcmp(RuleIdentifier.data()+8, "f_anyext", 8) != 0)
738 break;
739 return 61; // "select_of_anyext"
740 case 't': // 1 string to match.
741 if (memcmp(RuleIdentifier.data()+8, "o_minmax", 8) != 0)
742 break;
743 return 251; // "select_to_minmax"
744 case 'u': // 1 string to match.
745 if (memcmp(RuleIdentifier.data()+8, "ndef_cmp", 8) != 0)
746 break;
747 return 136; // "select_undef_cmp"
748 }
749 break;
750 case 'r': // 1 string to match.
751 if (memcmp(RuleIdentifier.data()+2, "em_to_unsigned", 14) != 0)
752 break;
753 return 156; // "srem_to_unsigned"
754 case 'u': // 2 strings to match.
755 if (memcmp(RuleIdentifier.data()+2, "b_o", 3) != 0)
756 break;
757 switch (RuleIdentifier[5]) {
758 default: break;
759 case 'f': // 1 string to match.
760 if (memcmp(RuleIdentifier.data()+6, "_mul_const", 10) != 0)
761 break;
762 return 330; // "sub_of_mul_const"
763 case 'n': // 1 string to match.
764 if (memcmp(RuleIdentifier.data()+6, "e_from_sub", 10) != 0)
765 break;
766 return 327; // "sub_one_from_sub"
767 }
768 break;
769 }
770 break;
771 case 't': // 2 strings to match.
772 if (memcmp(RuleIdentifier.data()+1, "runcate_of_", 11) != 0)
773 break;
774 switch (RuleIdentifier[12]) {
775 default: break;
776 case 's': // 1 string to match.
777 if (memcmp(RuleIdentifier.data()+13, "ext", 3) != 0)
778 break;
779 return 50; // "truncate_of_sext"
780 case 'z': // 1 string to match.
781 if (memcmp(RuleIdentifier.data()+13, "ext", 3) != 0)
782 break;
783 return 49; // "truncate_of_zext"
784 }
785 break;
786 case 'u': // 1 string to match.
787 if (memcmp(RuleIdentifier.data()+1, "ndef_to_fp_zero", 15) != 0)
788 break;
789 return 77; // "undef_to_fp_zero"
790 }
791 break;
792 case 17: // 20 strings to match.
793 switch (RuleIdentifier[0]) {
794 default: break;
795 case 'A': // 2 strings to match.
796 if (memcmp(RuleIdentifier.data()+1, "PlusBMinus", 10) != 0)
797 break;
798 switch (RuleIdentifier[11]) {
799 default: break;
800 case 'A': // 1 string to match.
801 if (memcmp(RuleIdentifier.data()+12, "plusC", 5) != 0)
802 break;
803 return 8; // "APlusBMinusAplusC"
804 case 'C': // 1 string to match.
805 if (memcmp(RuleIdentifier.data()+12, "PlusA", 5) != 0)
806 break;
807 return 10; // "APlusBMinusCPlusA"
808 }
809 break;
810 case 'a': // 3 strings to match.
811 switch (RuleIdentifier[1]) {
812 default: break;
813 case 'd': // 1 string to match.
814 if (memcmp(RuleIdentifier.data()+2, "d_p2i_to_ptradd", 15) != 0)
815 break;
816 return 22; // "add_p2i_to_ptradd"
817 case 'n': // 2 strings to match.
818 switch (RuleIdentifier[2]) {
819 default: break;
820 case 'd': // 1 string to match.
821 if (memcmp(RuleIdentifier.data()+3, "_xor_or_to_and", 14) != 0)
822 break;
823 return 286; // "and_xor_or_to_and"
824 case 'y': // 1 string to match.
825 if (memcmp(RuleIdentifier.data()+3, "ext_trunc_fold", 14) != 0)
826 break;
827 return 102; // "anyext_trunc_fold"
828 }
829 break;
830 }
831 break;
832 case 'c': // 5 strings to match.
833 switch (RuleIdentifier[1]) {
834 default: break;
835 case 'a': // 2 strings to match.
836 if (memcmp(RuleIdentifier.data()+2, "nonicalize_", 11) != 0)
837 break;
838 switch (RuleIdentifier[13]) {
839 default: break;
840 case 'f': // 1 string to match.
841 if (memcmp(RuleIdentifier.data()+14, "cmp", 3) != 0)
842 break;
843 return 125; // "canonicalize_fcmp"
844 case 'i': // 1 string to match.
845 if (memcmp(RuleIdentifier.data()+14, "cmp", 3) != 0)
846 break;
847 return 124; // "canonicalize_icmp"
848 }
849 break;
850 case 'o': // 3 strings to match.
851 switch (RuleIdentifier[2]) {
852 default: break;
853 case 'm': // 2 strings to match.
854 switch (RuleIdentifier[3]) {
855 default: break;
856 case 'b': // 1 string to match.
857 if (memcmp(RuleIdentifier.data()+4, "ine_or_of_and", 13) != 0)
858 break;
859 return 339; // "combine_or_of_and"
860 case 'm': // 1 string to match.
861 if (memcmp(RuleIdentifier.data()+4, "ute_shift_add", 13) != 0)
862 break;
863 return 207; // "commute_shift_add"
864 }
865 break;
866 case 'n': // 1 string to match.
867 if (memcmp(RuleIdentifier.data()+3, "stant_fold_fma", 14) != 0)
868 break;
869 return 215; // "constant_fold_fma"
870 }
871 break;
872 }
873 break;
874 case 'd': // 1 string to match.
875 if (memcmp(RuleIdentifier.data()+1, "iv_rem_to_divrem", 16) != 0)
876 break;
877 return 196; // "div_rem_to_divrem"
878 case 'e': // 1 string to match.
879 if (memcmp(RuleIdentifier.data()+1, "rase_undef_store", 16) != 0)
880 break;
881 return 88; // "erase_undef_store"
882 case 'm': // 2 strings to match.
883 if (memcmp(RuleIdentifier.data()+1, "atch_addos_", 11) != 0)
884 break;
885 switch (RuleIdentifier[12]) {
886 default: break;
887 case 's': // 1 string to match.
888 if (memcmp(RuleIdentifier.data()+13, "addo", 4) != 0)
889 break;
890 return 311; // "match_addos_saddo"
891 case 'u': // 1 string to match.
892 if (memcmp(RuleIdentifier.data()+13, "addo", 4) != 0)
893 break;
894 return 312; // "match_addos_uaddo"
895 }
896 break;
897 case 's': // 4 strings to match.
898 switch (RuleIdentifier[1]) {
899 default: break;
900 case 'e': // 2 strings to match.
901 if (memcmp(RuleIdentifier.data()+2, "lect_", 5) != 0)
902 break;
903 switch (RuleIdentifier[7]) {
904 default: break;
905 case 't': // 1 string to match.
906 if (memcmp(RuleIdentifier.data()+8, "o_iminmax", 9) != 0)
907 break;
908 return 141; // "select_to_iminmax"
909 case 'z': // 1 string to match.
910 if (memcmp(RuleIdentifier.data()+8, "ero_false", 9) != 0)
911 break;
912 return 143; // "select_zero_false"
913 }
914 break;
915 case 'h': // 1 string to match.
916 if (memcmp(RuleIdentifier.data()+2, "ift_immed_chain", 15) != 0)
917 break;
918 return 193; // "shift_immed_chain"
919 case 'r': // 1 string to match.
920 if (memcmp(RuleIdentifier.data()+2, "em_pow2_to_mask", 15) != 0)
921 break;
922 return 238; // "srem_pow2_to_mask"
923 }
924 break;
925 case 'u': // 2 strings to match.
926 switch (RuleIdentifier[1]) {
927 default: break;
928 case 'n': // 1 string to match.
929 if (memcmp(RuleIdentifier.data()+2, "def_to_int_zero", 15) != 0)
930 break;
931 return 78; // "undef_to_int_zero"
932 case 'r': // 1 string to match.
933 if (memcmp(RuleIdentifier.data()+2, "em_pow2_to_mask", 15) != 0)
934 break;
935 return 152; // "urem_pow2_to_mask"
936 }
937 break;
938 }
939 break;
940 case 18: // 18 strings to match.
941 switch (RuleIdentifier[0]) {
942 default: break;
943 case 'A': // 3 strings to match.
944 switch (RuleIdentifier[1]) {
945 default: break;
946 case 'M': // 2 strings to match.
947 if (memcmp(RuleIdentifier.data()+2, "inusBPlus", 9) != 0)
948 break;
949 switch (RuleIdentifier[11]) {
950 default: break;
951 case 'B': // 1 string to match.
952 if (memcmp(RuleIdentifier.data()+12, "MinusC", 6) != 0)
953 break;
954 return 7; // "AMinusBPlusBMinusC"
955 case 'C': // 1 string to match.
956 if (memcmp(RuleIdentifier.data()+12, "MinusA", 6) != 0)
957 break;
958 return 6; // "AMinusBPlusCMinusA"
959 }
960 break;
961 case 'P': // 1 string to match.
962 if (memcmp(RuleIdentifier.data()+2, "lusBMinusCMinusB", 16) != 0)
963 break;
964 return 0; // "APlusBMinusCMinusB"
965 }
966 break;
967 case 'a': // 4 strings to match.
968 if (memcmp(RuleIdentifier.data()+1, "dde_to_addo_", 12) != 0)
969 break;
970 switch (RuleIdentifier[13]) {
971 default: break;
972 case 's': // 2 strings to match.
973 switch (RuleIdentifier[14]) {
974 default: break;
975 case 'a': // 1 string to match.
976 if (memcmp(RuleIdentifier.data()+15, "dde", 3) != 0)
977 break;
978 return 182; // "adde_to_addo_sadde"
979 case 's': // 1 string to match.
980 if (memcmp(RuleIdentifier.data()+15, "ube", 3) != 0)
981 break;
982 return 184; // "adde_to_addo_ssube"
983 }
984 break;
985 case 'u': // 2 strings to match.
986 switch (RuleIdentifier[14]) {
987 default: break;
988 case 'a': // 1 string to match.
989 if (memcmp(RuleIdentifier.data()+15, "dde", 3) != 0)
990 break;
991 return 181; // "adde_to_addo_uadde"
992 case 's': // 1 string to match.
993 if (memcmp(RuleIdentifier.data()+15, "ube", 3) != 0)
994 break;
995 return 183; // "adde_to_addo_usube"
996 }
997 break;
998 }
999 break;
1000 case 'b': // 1 string to match.
1001 if (memcmp(RuleIdentifier.data()+1, "inop_left_to_zero", 17) != 0)
1002 break;
1003 return 96; // "binop_left_to_zero"
1004 case 'c': // 2 strings to match.
1005 if (memcmp(RuleIdentifier.data()+1, "onstant_fold_f", 14) != 0)
1006 break;
1007 switch (RuleIdentifier[15]) {
1008 default: break;
1009 case 'a': // 1 string to match.
1010 if (memcmp(RuleIdentifier.data()+16, "bs", 2) != 0)
1011 break;
1012 return 161; // "constant_fold_fabs"
1013 case 'n': // 1 string to match.
1014 if (memcmp(RuleIdentifier.data()+16, "eg", 2) != 0)
1015 break;
1016 return 160; // "constant_fold_fneg"
1017 }
1018 break;
1019 case 'e': // 1 string to match.
1020 if (memcmp(RuleIdentifier.data()+1, "xpand_const_fpowi", 17) != 0)
1021 break;
1022 return 189; // "expand_const_fpowi"
1023 case 'f': // 2 strings to match.
1024 if (memcmp(RuleIdentifier.data()+1, "pt", 2) != 0)
1025 break;
1026 switch (RuleIdentifier[3]) {
1027 default: break;
1028 case 'o': // 1 string to match.
1029 if (memcmp(RuleIdentifier.data()+4, "ui_ffloor_fold", 14) != 0)
1030 break;
1031 return 319; // "fptoui_ffloor_fold"
1032 case 'r': // 1 string to match.
1033 if (memcmp(RuleIdentifier.data()+4, "unc_fpext_fold", 14) != 0)
1034 break;
1035 return 113; // "fptrunc_fpext_fold"
1036 }
1037 break;
1038 case 'm': // 2 strings to match.
1039 if (memcmp(RuleIdentifier.data()+1, "inmax_nan_num_", 14) != 0)
1040 break;
1041 switch (RuleIdentifier[15]) {
1042 default: break;
1043 case 'l': // 1 string to match.
1044 if (memcmp(RuleIdentifier.data()+16, "hs", 2) != 0)
1045 break;
1046 return 185; // "minmax_nan_num_lhs"
1047 case 'r': // 1 string to match.
1048 if (memcmp(RuleIdentifier.data()+16, "hs", 2) != 0)
1049 break;
1050 return 186; // "minmax_nan_num_rhs"
1051 }
1052 break;
1053 case 's': // 2 strings to match.
1054 if (RuleIdentifier[1] != 'e')
1055 break;
1056 switch (RuleIdentifier[2]) {
1057 default: break;
1058 case 'l': // 1 string to match.
1059 if (memcmp(RuleIdentifier.data()+3, "ect_of_truncate", 15) != 0)
1060 break;
1061 return 62; // "select_of_truncate"
1062 case 'x': // 1 string to match.
1063 if (memcmp(RuleIdentifier.data()+3, "t_inreg_of_load", 15) != 0)
1064 break;
1065 return 133; // "sext_inreg_of_load"
1066 }
1067 break;
1068 case 't': // 1 string to match.
1069 if (memcmp(RuleIdentifier.data()+1, "runcate_of_anyext", 17) != 0)
1070 break;
1071 return 51; // "truncate_of_anyext"
1072 }
1073 break;
1074 case 19: // 20 strings to match.
1075 switch (RuleIdentifier[0]) {
1076 default: break;
1077 case 'A': // 1 string to match.
1078 if (memcmp(RuleIdentifier.data()+1, "MinusBMinusCMinusC", 18) != 0)
1079 break;
1080 return 1; // "AMinusBMinusCMinusC"
1081 case 'b': // 1 string to match.
1082 if (memcmp(RuleIdentifier.data()+1, "inop_right_to_zero", 18) != 0)
1083 break;
1084 return 97; // "binop_right_to_zero"
1085 case 'c': // 7 strings to match.
1086 if (memcmp(RuleIdentifier.data()+1, "onst", 4) != 0)
1087 break;
1088 switch (RuleIdentifier[5]) {
1089 default: break;
1090 case '_': // 1 string to match.
1091 if (memcmp(RuleIdentifier.data()+6, "ptradd_to_i2p", 13) != 0)
1092 break;
1093 return 175; // "const_ptradd_to_i2p"
1094 case 'a': // 6 strings to match.
1095 if (memcmp(RuleIdentifier.data()+6, "nt_fold_", 8) != 0)
1096 break;
1097 switch (RuleIdentifier[14]) {
1098 default: break;
1099 case 'b': // 1 string to match.
1100 if (memcmp(RuleIdentifier.data()+15, "inop", 4) != 0)
1101 break;
1102 return 213; // "constant_fold_binop"
1103 case 'f': // 5 strings to match.
1104 switch (RuleIdentifier[15]) {
1105 default: break;
1106 case 'c': // 1 string to match.
1107 if (memcmp(RuleIdentifier.data()+16, "eil", 3) != 0)
1108 break;
1109 return 166; // "constant_fold_fceil"
1110 case 'l': // 1 string to match.
1111 if (memcmp(RuleIdentifier.data()+16, "og2", 3) != 0)
1112 break;
1113 return 163; // "constant_fold_flog2"
1114 case 'p': // 1 string to match.
1115 if (memcmp(RuleIdentifier.data()+16, "ext", 3) != 0)
1116 break;
1117 return 165; // "constant_fold_fpext"
1118 case 'r': // 1 string to match.
1119 if (memcmp(RuleIdentifier.data()+16, "int", 3) != 0)
1120 break;
1121 return 171; // "constant_fold_frint"
1122 case 's': // 1 string to match.
1123 if (memcmp(RuleIdentifier.data()+16, "qrt", 3) != 0)
1124 break;
1125 return 162; // "constant_fold_fsqrt"
1126 }
1127 break;
1128 }
1129 break;
1130 }
1131 break;
1132 case 'e': // 1 string to match.
1133 if (memcmp(RuleIdentifier.data()+1, "xtend_through_phis", 18) != 0)
1134 break;
1135 return 117; // "extend_through_phis"
1136 case 'i': // 1 string to match.
1137 if (memcmp(RuleIdentifier.data()+1, "nteger_of_truncate", 18) != 0)
1138 break;
1139 return 70; // "integer_of_truncate"
1140 case 'm': // 3 strings to match.
1141 switch (RuleIdentifier[1]) {
1142 default: break;
1143 case 'e': // 1 string to match.
1144 if (memcmp(RuleIdentifier.data()+2, "rge_of_x_and_zero", 17) != 0)
1145 break;
1146 return 307; // "merge_of_x_and_zero"
1147 case 'i': // 2 strings to match.
1148 if (memcmp(RuleIdentifier.data()+2, "nmax_nan_ieee_", 14) != 0)
1149 break;
1150 switch (RuleIdentifier[16]) {
1151 default: break;
1152 case 'l': // 1 string to match.
1153 if (memcmp(RuleIdentifier.data()+17, "hs", 2) != 0)
1154 break;
1155 return 187; // "minmax_nan_ieee_lhs"
1156 case 'r': // 1 string to match.
1157 if (memcmp(RuleIdentifier.data()+17, "hs", 2) != 0)
1158 break;
1159 return 188; // "minmax_nan_ieee_rhs"
1160 }
1161 break;
1162 }
1163 break;
1164 case 'p': // 1 string to match.
1165 if (memcmp(RuleIdentifier.data()+1, "tr_add_immed_chain", 18) != 0)
1166 break;
1167 return 123; // "ptr_add_immed_chain"
1168 case 'r': // 2 strings to match.
1169 switch (RuleIdentifier[1]) {
1170 default: break;
1171 case 'e': // 1 string to match.
1172 if (memcmp(RuleIdentifier.data()+2, "assoc_comm_binops", 17) != 0)
1173 break;
1174 return 122; // "reassoc_comm_binops"
1175 case 'i': // 1 string to match.
1176 if (memcmp(RuleIdentifier.data()+2, "ght_identity_zero", 17) != 0)
1177 break;
1178 return 93; // "right_identity_zero"
1179 }
1180 break;
1181 case 's': // 2 strings to match.
1182 if (memcmp(RuleIdentifier.data()+1, "implify_", 8) != 0)
1183 break;
1184 switch (RuleIdentifier[9]) {
1185 default: break;
1186 case 'a': // 1 string to match.
1187 if (memcmp(RuleIdentifier.data()+10, "dd_to_sub", 9) != 0)
1188 break;
1189 return 118; // "simplify_add_to_sub"
1190 case 'n': // 1 string to match.
1191 if (memcmp(RuleIdentifier.data()+10, "eg_minmax", 9) != 0)
1192 break;
1193 return 290; // "simplify_neg_minmax"
1194 }
1195 break;
1196 case 'u': // 1 string to match.
1197 if (memcmp(RuleIdentifier.data()+1, "nary_undef_to_zero", 18) != 0)
1198 break;
1199 return 82; // "unary_undef_to_zero"
1200 }
1201 break;
1202 case 20: // 11 strings to match.
1203 switch (RuleIdentifier[0]) {
1204 default: break;
1205 case 'a': // 1 string to match.
1206 if (memcmp(RuleIdentifier.data()+1, "nd_or_disjoint_mask", 19) != 0)
1207 break;
1208 return 227; // "and_or_disjoint_mask"
1209 case 'b': // 1 string to match.
1210 if (memcmp(RuleIdentifier.data()+1, "itcast_bitcast_fold", 19) != 0)
1211 break;
1212 return 111; // "bitcast_bitcast_fold"
1213 case 'c': // 1 string to match.
1214 if (memcmp(RuleIdentifier.data()+1, "onstant_fold_ffloor", 19) != 0)
1215 break;
1216 return 167; // "constant_fold_ffloor"
1217 case 'i': // 1 string to match.
1218 if (memcmp(RuleIdentifier.data()+1, "2p_to_p2i_same_size", 19) != 0)
1219 break;
1220 return 99; // "i2p_to_p2i_same_size"
1221 case 'm': // 1 string to match.
1222 if (memcmp(RuleIdentifier.data()+1, "erge_of_x_and_undef", 19) != 0)
1223 break;
1224 return 306; // "merge_of_x_and_undef"
1225 case 'o': // 1 string to match.
1226 if (memcmp(RuleIdentifier.data()+1, "r_and_xor_to_xor_or", 19) != 0)
1227 break;
1228 return 285; // "or_and_xor_to_xor_or"
1229 case 'r': // 2 strings to match.
1230 if (memcmp(RuleIdentifier.data()+1, "edu", 3) != 0)
1231 break;
1232 switch (RuleIdentifier[4]) {
1233 default: break;
1234 case 'c': // 1 string to match.
1235 if (memcmp(RuleIdentifier.data()+5, "e_shl_of_extend", 15) != 0)
1236 break;
1237 return 134; // "reduce_shl_of_extend"
1238 case 'n': // 1 string to match.
1239 if (memcmp(RuleIdentifier.data()+5, "dant_sext_inreg", 15) != 0)
1240 break;
1241 return 145; // "redundant_sext_inreg"
1242 }
1243 break;
1244 case 'u': // 3 strings to match.
1245 switch (RuleIdentifier[1]) {
1246 default: break;
1247 case 'd': // 1 string to match.
1248 if (memcmp(RuleIdentifier.data()+2, "iv_by_shifted_pow2", 18) != 0)
1249 break;
1250 return 242; // "udiv_by_shifted_pow2"
1251 case 'n': // 2 strings to match.
1252 switch (RuleIdentifier[2]) {
1253 default: break;
1254 case 'a': // 1 string to match.
1255 if (memcmp(RuleIdentifier.data()+3, "ry_undef_to_undef", 17) != 0)
1256 break;
1257 return 83; // "unary_undef_to_undef"
1258 case 'm': // 1 string to match.
1259 if (memcmp(RuleIdentifier.data()+3, "erge_zext_to_zext", 17) != 0)
1260 break;
1261 return 305; // "unmerge_zext_to_zext"
1262 }
1263 break;
1264 }
1265 break;
1266 }
1267 break;
1268 case 21: // 13 strings to match.
1269 switch (RuleIdentifier[0]) {
1270 default: break;
1271 case 'a': // 1 string to match.
1272 if (memcmp(RuleIdentifier.data()+1, "nd_xor_or_to_xor_and", 20) != 0)
1273 break;
1274 return 287; // "and_xor_or_to_xor_and"
1275 case 'c': // 4 strings to match.
1276 if (RuleIdentifier[1] != 'o')
1277 break;
1278 switch (RuleIdentifier[2]) {
1279 default: break;
1280 case 'm': // 2 strings to match.
1281 if (memcmp(RuleIdentifier.data()+3, "bine_", 5) != 0)
1282 break;
1283 switch (RuleIdentifier[8]) {
1284 default: break;
1285 case 'b': // 1 string to match.
1286 if (memcmp(RuleIdentifier.data()+9, "uild_unmerge", 12) != 0)
1287 break;
1288 return 308; // "combine_build_unmerge"
1289 case 'c': // 1 string to match.
1290 if (memcmp(RuleIdentifier.data()+9, "oncat_vector", 12) != 0)
1291 break;
1292 return 291; // "combine_concat_vector"
1293 }
1294 break;
1295 case 'n': // 2 strings to match.
1296 if (memcmp(RuleIdentifier.data()+3, "stant_fold_", 11) != 0)
1297 break;
1298 switch (RuleIdentifier[14]) {
1299 default: break;
1300 case 'c': // 1 string to match.
1301 if (memcmp(RuleIdentifier.data()+15, "ast_op", 6) != 0)
1302 break;
1303 return 216; // "constant_fold_cast_op"
1304 case 'f': // 1 string to match.
1305 if (memcmp(RuleIdentifier.data()+15, "ptrunc", 6) != 0)
1306 break;
1307 return 164; // "constant_fold_fptrunc"
1308 }
1309 break;
1310 }
1311 break;
1312 case 'f': // 2 strings to match.
1313 switch (RuleIdentifier[1]) {
1314 default: break;
1315 case 'd': // 1 string to match.
1316 if (memcmp(RuleIdentifier.data()+2, "iv_repeated_divison", 19) != 0)
1317 break;
1318 return 246; // "fdiv_repeated_divison"
1319 case 'p': // 1 string to match.
1320 if (memcmp(RuleIdentifier.data()+2, "touisat_ffloor_fold", 19) != 0)
1321 break;
1322 return 320; // "fptouisat_ffloor_fold"
1323 }
1324 break;
1325 case 'i': // 1 string to match.
1326 if (memcmp(RuleIdentifier.data()+1, "nsert_vector_elt_oob", 20) != 0)
1327 break;
1328 return 29; // "insert_vector_elt_oob"
1329 case 'l': // 1 string to match.
1330 if (memcmp(RuleIdentifier.data()+1, "shr_of_trunc_of_lshr", 20) != 0)
1331 break;
1332 return 321; // "lshr_of_trunc_of_lshr"
1333 case 'r': // 1 string to match.
1334 if (memcmp(RuleIdentifier.data()+1, "ight_identity_one_fp", 20) != 0)
1335 break;
1336 return 105; // "right_identity_one_fp"
1337 case 's': // 1 string to match.
1338 if (memcmp(RuleIdentifier.data()+1, "elect_same_val_equiv", 20) != 0)
1339 break;
1340 return 92; // "select_same_val_equiv"
1341 case 'u': // 2 strings to match.
1342 if (RuleIdentifier[1] != 'n')
1343 break;
1344 switch (RuleIdentifier[2]) {
1345 default: break;
1346 case 'd': // 1 string to match.
1347 if (memcmp(RuleIdentifier.data()+3, "ef_to_negative_one", 18) != 0)
1348 break;
1349 return 79; // "undef_to_negative_one"
1350 case 'm': // 1 string to match.
1351 if (memcmp(RuleIdentifier.data()+3, "erge_dead_to_trunc", 18) != 0)
1352 break;
1353 return 304; // "unmerge_dead_to_trunc"
1354 }
1355 break;
1356 }
1357 break;
1358 case 22: // 10 strings to match.
1359 switch (RuleIdentifier[0]) {
1360 default: break;
1361 case 'c': // 2 strings to match.
1362 if (RuleIdentifier[1] != 'o')
1363 break;
1364 switch (RuleIdentifier[2]) {
1365 default: break;
1366 case 'm': // 1 string to match.
1367 if (memcmp(RuleIdentifier.data()+3, "bine_shuffle_concat", 19) != 0)
1368 break;
1369 return 295; // "combine_shuffle_concat"
1370 case 'n': // 1 string to match.
1371 if (memcmp(RuleIdentifier.data()+3, "stant_fold_fp_binop", 19) != 0)
1372 break;
1373 return 214; // "constant_fold_fp_binop"
1374 }
1375 break;
1376 case 'f': // 2 strings to match.
1377 if (memcmp(RuleIdentifier.data()+1, "unnel_shift_", 12) != 0)
1378 break;
1379 switch (RuleIdentifier[13]) {
1380 default: break;
1381 case 'l': // 1 string to match.
1382 if (memcmp(RuleIdentifier.data()+14, "eft_zero", 8) != 0)
1383 break;
1384 return 201; // "funnel_shift_left_zero"
1385 case 'o': // 1 string to match.
1386 if (memcmp(RuleIdentifier.data()+14, "vershift", 8) != 0)
1387 break;
1388 return 202; // "funnel_shift_overshift"
1389 }
1390 break;
1391 case 'i': // 1 string to match.
1392 if (memcmp(RuleIdentifier.data()+1, "cmp_to_lhs_known_bits", 21) != 0)
1393 break;
1394 return 127; // "icmp_to_lhs_known_bits"
1395 case 'm': // 1 string to match.
1396 if (memcmp(RuleIdentifier.data()+1, "ul_by_zero_one_vector", 21) != 0)
1397 break;
1398 return 46; // "mul_by_zero_one_vector"
1399 case 'p': // 1 string to match.
1400 if (memcmp(RuleIdentifier.data()+1, "ropagate_undef_any_op", 21) != 0)
1401 break;
1402 return 84; // "propagate_undef_any_op"
1403 case 'r': // 1 string to match.
1404 if (memcmp(RuleIdentifier.data()+1, "ight_identity_one_int", 21) != 0)
1405 break;
1406 return 104; // "right_identity_one_int"
1407 case 's': // 1 string to match.
1408 if (memcmp(RuleIdentifier.data()+1, "hl_ashr_to_sext_inreg", 21) != 0)
1409 break;
1410 return 131; // "shl_ashr_to_sext_inreg"
1411 case 't': // 1 string to match.
1412 if (memcmp(RuleIdentifier.data()+1, "runc_buildvector_fold", 21) != 0)
1413 break;
1414 return 109; // "trunc_buildvector_fold"
1415 }
1416 break;
1417 case 23: // 6 strings to match.
1418 switch (RuleIdentifier[0]) {
1419 default: break;
1420 case 'b': // 1 string to match.
1421 if (memcmp(RuleIdentifier.data()+1, "uildvector_of_truncate", 22) != 0)
1422 break;
1423 return 63; // "buildvector_of_truncate"
1424 case 'f': // 1 string to match.
1425 if (memcmp(RuleIdentifier.data()+1, "unnel_shift_right_zero", 22) != 0)
1426 break;
1427 return 200; // "funnel_shift_right_zero"
1428 case 'i': // 2 strings to match.
1429 if (memcmp(RuleIdentifier.data()+1, "tof_const_zero_fold_", 20) != 0)
1430 break;
1431 switch (RuleIdentifier[21]) {
1432 default: break;
1433 case 's': // 1 string to match.
1434 if (RuleIdentifier[22] != 'i')
1435 break;
1436 return 173; // "itof_const_zero_fold_si"
1437 case 'u': // 1 string to match.
1438 if (RuleIdentifier[22] != 'i')
1439 break;
1440 return 174; // "itof_const_zero_fold_ui"
1441 }
1442 break;
1443 case 's': // 1 string to match.
1444 if (memcmp(RuleIdentifier.data()+1, "elect_same_val_trivial", 22) != 0)
1445 break;
1446 return 91; // "select_same_val_trivial"
1447 case 't': // 1 string to match.
1448 if (memcmp(RuleIdentifier.data()+1, "runcusatu_to_fptouisat", 22) != 0)
1449 break;
1450 return 318; // "truncusatu_to_fptouisat"
1451 }
1452 break;
1453 case 24: // 15 strings to match.
1454 switch (RuleIdentifier[0]) {
1455 default: break;
1456 case 'b': // 1 string to match.
1457 if (memcmp(RuleIdentifier.data()+1, "inop_left_undef_to_zero", 23) != 0)
1458 break;
1459 return 80; // "binop_left_undef_to_zero"
1460 case 'c': // 4 strings to match.
1461 switch (RuleIdentifier[1]) {
1462 default: break;
1463 case 'o': // 1 string to match.
1464 if (memcmp(RuleIdentifier.data()+2, "nstant_fold_fnearbyint", 22) != 0)
1465 break;
1466 return 172; // "constant_fold_fnearbyint"
1467 case 't': // 3 strings to match.
1468 switch (RuleIdentifier[2]) {
1469 default: break;
1470 case 'l': // 2 strings to match.
1471 if (memcmp(RuleIdentifier.data()+3, "z_", 2) != 0)
1472 break;
1473 switch (RuleIdentifier[5]) {
1474 default: break;
1475 case 't': // 1 string to match.
1476 if (memcmp(RuleIdentifier.data()+6, "o_ctlz_zero_poison", 18) != 0)
1477 break;
1478 return 324; // "ctlz_to_ctlz_zero_poison"
1479 case 'z': // 1 string to match.
1480 if (memcmp(RuleIdentifier.data()+6, "ero_poison_to_ctls", 18) != 0)
1481 break;
1482 return 323; // "ctlz_zero_poison_to_ctls"
1483 }
1484 break;
1485 case 't': // 1 string to match.
1486 if (memcmp(RuleIdentifier.data()+3, "z_to_cttz_zero_poison", 21) != 0)
1487 break;
1488 return 325; // "cttz_to_cttz_zero_poison"
1489 }
1490 break;
1491 }
1492 break;
1493 case 'f': // 2 strings to match.
1494 if (memcmp(RuleIdentifier.data()+1, "old_binop_into_select_", 22) != 0)
1495 break;
1496 switch (RuleIdentifier[23]) {
1497 default: break;
1498 case 'a': // 1 string to match.
1499 return 236; // "fold_binop_into_select_a"
1500 case 'b': // 1 string to match.
1501 return 237; // "fold_binop_into_select_b"
1502 }
1503 break;
1504 case 'm': // 1 string to match.
1505 if (memcmp(RuleIdentifier.data()+1, "atch_extract_of_element", 23) != 0)
1506 break;
1507 return 28; // "match_extract_of_element"
1508 case 'n': // 1 string to match.
1509 if (memcmp(RuleIdentifier.data()+1, "arrow_binop_feeding_and", 23) != 0)
1510 break;
1511 return 135; // "narrow_binop_feeding_and"
1512 case 'p': // 2 strings to match.
1513 if (memcmp(RuleIdentifier.data()+1, "tr_add_with_zero_", 17) != 0)
1514 break;
1515 switch (RuleIdentifier[18]) {
1516 default: break;
1517 case 's': // 1 string to match.
1518 if (memcmp(RuleIdentifier.data()+19, "calar", 5) != 0)
1519 break;
1520 return 191; // "ptr_add_with_zero_scalar"
1521 case 'v': // 1 string to match.
1522 if (memcmp(RuleIdentifier.data()+19, "ector", 5) != 0)
1523 break;
1524 return 192; // "ptr_add_with_zero_vector"
1525 }
1526 break;
1527 case 's': // 3 strings to match.
1528 if (RuleIdentifier[1] != 'e')
1529 break;
1530 switch (RuleIdentifier[2]) {
1531 default: break;
1532 case 'l': // 1 string to match.
1533 if (memcmp(RuleIdentifier.data()+3, "ect_constant_cmp_true", 21) != 0)
1534 break;
1535 return 138; // "select_constant_cmp_true"
1536 case 'x': // 2 strings to match.
1537 if (memcmp(RuleIdentifier.data()+3, "t_inreg_", 8) != 0)
1538 break;
1539 switch (RuleIdentifier[11]) {
1540 default: break;
1541 case 'o': // 1 string to match.
1542 if (memcmp(RuleIdentifier.data()+12, "f_sext_inreg", 12) != 0)
1543 break;
1544 return 59; // "sext_inreg_of_sext_inreg"
1545 case 't': // 1 string to match.
1546 if (memcmp(RuleIdentifier.data()+12, "o_zext_inreg", 12) != 0)
1547 break;
1548 return 154; // "sext_inreg_to_zext_inreg"
1549 }
1550 break;
1551 }
1552 break;
1553 case 'x': // 1 string to match.
1554 if (memcmp(RuleIdentifier.data()+1, "or_of_and_with_same_reg", 23) != 0)
1555 break;
1556 return 190; // "xor_of_and_with_same_reg"
1557 }
1558 break;
1559 case 25: // 9 strings to match.
1560 switch (RuleIdentifier[0]) {
1561 default: break;
1562 case 'b': // 2 strings to match.
1563 if (memcmp(RuleIdentifier.data()+1, "itfield_extract_from_", 21) != 0)
1564 break;
1565 switch (RuleIdentifier[22]) {
1566 default: break;
1567 case 'a': // 1 string to match.
1568 if (memcmp(RuleIdentifier.data()+23, "nd", 2) != 0)
1569 break;
1570 return 210; // "bitfield_extract_from_and"
1571 case 's': // 1 string to match.
1572 if (memcmp(RuleIdentifier.data()+23, "hr", 2) != 0)
1573 break;
1574 return 211; // "bitfield_extract_from_shr"
1575 }
1576 break;
1577 case 'c': // 1 string to match.
1578 if (memcmp(RuleIdentifier.data()+1, "ombine_shuffle_undef_rhs", 24) != 0)
1579 break;
1580 return 296; // "combine_shuffle_undef_rhs"
1581 case 'e': // 1 string to match.
1582 if (memcmp(RuleIdentifier.data()+1, "xtract_vec_elt_build_vec", 24) != 0)
1583 break;
1584 return 72; // "extract_vec_elt_build_vec"
1585 case 'n': // 1 string to match.
1586 if (memcmp(RuleIdentifier.data()+1, "eg_and_one_to_sext_inreg", 24) != 0)
1587 break;
1588 return 132; // "neg_and_one_to_sext_inreg"
1589 case 'r': // 3 strings to match.
1590 switch (RuleIdentifier[1]) {
1591 default: break;
1592 case 'e': // 2 strings to match.
1593 if (memcmp(RuleIdentifier.data()+2, "dundant_", 8) != 0)
1594 break;
1595 switch (RuleIdentifier[10]) {
1596 default: break;
1597 case 'a': // 1 string to match.
1598 if (memcmp(RuleIdentifier.data()+11, "ext_sext_inreg", 14) != 0)
1599 break;
1600 return 147; // "redundant_aext_sext_inreg"
1601 case 'z': // 1 string to match.
1602 if (memcmp(RuleIdentifier.data()+11, "ext_sext_inreg", 14) != 0)
1603 break;
1604 return 146; // "redundant_zext_sext_inreg"
1605 }
1606 break;
1607 case 'i': // 1 string to match.
1608 if (memcmp(RuleIdentifier.data()+2, "ght_identity_neg_one_fp", 23) != 0)
1609 break;
1610 return 116; // "right_identity_neg_one_fp"
1611 }
1612 break;
1613 case 's': // 1 string to match.
1614 if (memcmp(RuleIdentifier.data()+1, "elect_constant_cmp_false", 24) != 0)
1615 break;
1616 return 137; // "select_constant_cmp_false"
1617 }
1618 break;
1619 case 26: // 5 strings to match.
1620 switch (RuleIdentifier[0]) {
1621 default: break;
1622 case 'b': // 2 strings to match.
1623 if (RuleIdentifier[1] != 'i')
1624 break;
1625 switch (RuleIdentifier[2]) {
1626 default: break;
1627 case 'n': // 1 string to match.
1628 if (memcmp(RuleIdentifier.data()+3, "op_right_undef_to_undef", 23) != 0)
1629 break;
1630 return 81; // "binop_right_undef_to_undef"
1631 case 't': // 1 string to match.
1632 if (memcmp(RuleIdentifier.data()+3, "cast_bitcast_to_bitcast", 23) != 0)
1633 break;
1634 return 112; // "bitcast_bitcast_to_bitcast"
1635 }
1636 break;
1637 case 'c': // 1 string to match.
1638 if (memcmp(RuleIdentifier.data()+1, "onstant_fold_unary_int_op", 25) != 0)
1639 break;
1640 return 217; // "constant_fold_unary_int_op"
1641 case 'f': // 1 string to match.
1642 if (memcmp(RuleIdentifier.data()+1, "unnel_shift_from_or_shift", 25) != 0)
1643 break;
1644 return 197; // "funnel_shift_from_or_shift"
1645 case 'r': // 1 string to match.
1646 if (memcmp(RuleIdentifier.data()+1, "ight_identity_neg_zero_fp", 25) != 0)
1647 break;
1648 return 114; // "right_identity_neg_zero_fp"
1649 }
1650 break;
1651 case 27: // 7 strings to match.
1652 switch (RuleIdentifier[0]) {
1653 default: break;
1654 case 'c': // 1 string to match.
1655 if (memcmp(RuleIdentifier.data()+1, "ombine_use_vector_truncate", 26) != 0)
1656 break;
1657 return 298; // "combine_use_vector_truncate"
1658 case 'd': // 1 string to match.
1659 if (memcmp(RuleIdentifier.data()+1, "ouble_icmp_zero_or_combine", 26) != 0)
1660 break;
1661 return 129; // "double_icmp_zero_or_combine"
1662 case 'f': // 1 string to match.
1663 if (memcmp(RuleIdentifier.data()+1, "unnel_shift_to_rotate_left", 26) != 0)
1664 break;
1665 return 198; // "funnel_shift_to_rotate_left"
1666 case 'r': // 2 strings to match.
1667 if (memcmp(RuleIdentifier.data()+1, "edundant_", 9) != 0)
1668 break;
1669 switch (RuleIdentifier[10]) {
1670 default: break;
1671 case 'b': // 1 string to match.
1672 if (memcmp(RuleIdentifier.data()+11, "inop_in_equality", 16) != 0)
1673 break;
1674 return 130; // "redundant_binop_in_equality"
1675 case 'n': // 1 string to match.
1676 if (memcmp(RuleIdentifier.data()+11, "eg_operands_fsub", 16) != 0)
1677 break;
1678 return 222; // "redundant_neg_operands_fsub"
1679 }
1680 break;
1681 case 't': // 1 string to match.
1682 if (memcmp(RuleIdentifier.data()+1, "runc_lshr_buildvector_fold", 26) != 0)
1683 break;
1684 return 110; // "trunc_lshr_buildvector_fold"
1685 case 'u': // 1 string to match.
1686 if (memcmp(RuleIdentifier.data()+1, "nmerge_anyext_build_vector", 26) != 0)
1687 break;
1688 return 299; // "unmerge_anyext_build_vector"
1689 }
1690 break;
1691 case 28: // 13 strings to match.
1692 switch (RuleIdentifier[0]) {
1693 default: break;
1694 case 'G': // 1 string to match.
1695 if (memcmp(RuleIdentifier.data()+1, "_OR_commute_constant_to_rhs", 27) != 0)
1696 break;
1697 return 256; // "G_OR_commute_constant_to_rhs"
1698 case 'b': // 1 string to match.
1699 if (memcmp(RuleIdentifier.data()+1, "uildvector_identity_fold_bv", 27) != 0)
1700 break;
1701 return 107; // "buildvector_identity_fold_bv"
1702 case 'd': // 1 string to match.
1703 if (memcmp(RuleIdentifier.data()+1, "ouble_icmp_zero_and_combine", 27) != 0)
1704 break;
1705 return 128; // "double_icmp_zero_and_combine"
1706 case 'e': // 1 string to match.
1707 if (memcmp(RuleIdentifier.data()+1, "xtract_vector_element_undef", 27) != 0)
1708 break;
1709 return 25; // "extract_vector_element_undef"
1710 case 'f': // 1 string to match.
1711 if (memcmp(RuleIdentifier.data()+1, "unnel_shift_to_rotate_right", 27) != 0)
1712 break;
1713 return 199; // "funnel_shift_to_rotate_right"
1714 case 'i': // 1 string to match.
1715 if (memcmp(RuleIdentifier.data()+1, "nsert_vec_elt_out_of_bounds", 27) != 0)
1716 break;
1717 return 89; // "insert_vec_elt_out_of_bounds"
1718 case 'm': // 4 strings to match.
1719 if (memcmp(RuleIdentifier.data()+1, "atch_", 5) != 0)
1720 break;
1721 switch (RuleIdentifier[6]) {
1722 default: break;
1723 case 'a': // 2 strings to match.
1724 if (memcmp(RuleIdentifier.data()+7, "ddos_", 5) != 0)
1725 break;
1726 switch (RuleIdentifier[12]) {
1727 default: break;
1728 case 's': // 1 string to match.
1729 if (memcmp(RuleIdentifier.data()+13, "addo_dead_carry", 15) != 0)
1730 break;
1731 return 309; // "match_addos_saddo_dead_carry"
1732 case 'u': // 1 string to match.
1733 if (memcmp(RuleIdentifier.data()+13, "addo_dead_carry", 15) != 0)
1734 break;
1735 return 310; // "match_addos_uaddo_dead_carry"
1736 }
1737 break;
1738 case 's': // 2 strings to match.
1739 if (memcmp(RuleIdentifier.data()+7, "ubo_no_overflow_", 16) != 0)
1740 break;
1741 switch (RuleIdentifier[23]) {
1742 default: break;
1743 case 's': // 1 string to match.
1744 if (memcmp(RuleIdentifier.data()+24, "subo", 4) != 0)
1745 break;
1746 return 313; // "match_subo_no_overflow_ssubo"
1747 case 'u': // 1 string to match.
1748 if (memcmp(RuleIdentifier.data()+24, "subo", 4) != 0)
1749 break;
1750 return 314; // "match_subo_no_overflow_usubo"
1751 }
1752 break;
1753 }
1754 break;
1755 case 'o': // 1 string to match.
1756 if (memcmp(RuleIdentifier.data()+1, "pt_brcond_by_inverting_cond", 27) != 0)
1757 break;
1758 return 159; // "opt_brcond_by_inverting_cond"
1759 case 'p': // 1 string to match.
1760 if (memcmp(RuleIdentifier.data()+1, "ropagate_undef_shuffle_mask", 27) != 0)
1761 break;
1762 return 87; // "propagate_undef_shuffle_mask"
1763 case 's': // 1 string to match.
1764 if (memcmp(RuleIdentifier.data()+1, "hift_of_shifted_logic_chain", 27) != 0)
1765 break;
1766 return 194; // "shift_of_shifted_logic_chain"
1767 }
1768 break;
1769 case 29: // 12 strings to match.
1770 switch (RuleIdentifier[0]) {
1771 default: break;
1772 case 'G': // 4 strings to match.
1773 if (RuleIdentifier[1] != '_')
1774 break;
1775 switch (RuleIdentifier[2]) {
1776 default: break;
1777 case 'A': // 2 strings to match.
1778 switch (RuleIdentifier[3]) {
1779 default: break;
1780 case 'D': // 1 string to match.
1781 if (memcmp(RuleIdentifier.data()+4, "D_commute_constant_to_rhs", 25) != 0)
1782 break;
1783 return 253; // "G_ADD_commute_constant_to_rhs"
1784 case 'N': // 1 string to match.
1785 if (memcmp(RuleIdentifier.data()+4, "D_commute_constant_to_rhs", 25) != 0)
1786 break;
1787 return 255; // "G_AND_commute_constant_to_rhs"
1788 }
1789 break;
1790 case 'M': // 1 string to match.
1791 if (memcmp(RuleIdentifier.data()+3, "UL_commute_constant_to_rhs", 26) != 0)
1792 break;
1793 return 254; // "G_MUL_commute_constant_to_rhs"
1794 case 'X': // 1 string to match.
1795 if (memcmp(RuleIdentifier.data()+3, "OR_commute_constant_to_rhs", 26) != 0)
1796 break;
1797 return 257; // "G_XOR_commute_constant_to_rhs"
1798 }
1799 break;
1800 case 'b': // 2 strings to match.
1801 switch (RuleIdentifier[1]) {
1802 default: break;
1803 case 'i': // 1 string to match.
1804 if (memcmp(RuleIdentifier.data()+2, "tfield_extract_from_shr_and", 27) != 0)
1805 break;
1806 return 212; // "bitfield_extract_from_shr_and"
1807 case 'u': // 1 string to match.
1808 if (memcmp(RuleIdentifier.data()+2, "ildvector_identity_fold_bvt", 27) != 0)
1809 break;
1810 return 108; // "buildvector_identity_fold_bvt"
1811 }
1812 break;
1813 case 'c': // 4 strings to match.
1814 if (RuleIdentifier[1] != 'o')
1815 break;
1816 switch (RuleIdentifier[2]) {
1817 default: break;
1818 case 'm': // 2 strings to match.
1819 if (memcmp(RuleIdentifier.data()+3, "bine_", 5) != 0)
1820 break;
1821 switch (RuleIdentifier[8]) {
1822 default: break;
1823 case 'e': // 1 string to match.
1824 if (memcmp(RuleIdentifier.data()+9, "xtracted_vector_load", 20) != 0)
1825 break;
1826 return 76; // "combine_extracted_vector_load"
1827 case 's': // 1 string to match.
1828 if (memcmp(RuleIdentifier.data()+9, "huffle_disjoint_mask", 20) != 0)
1829 break;
1830 return 297; // "combine_shuffle_disjoint_mask"
1831 }
1832 break;
1833 case 'n': // 2 strings to match.
1834 if (memcmp(RuleIdentifier.data()+3, "stant_fold_intrinsic_", 21) != 0)
1835 break;
1836 switch (RuleIdentifier[24]) {
1837 default: break;
1838 case 'r': // 1 string to match.
1839 if (memcmp(RuleIdentifier.data()+25, "ound", 4) != 0)
1840 break;
1841 return 169; // "constant_fold_intrinsic_round"
1842 case 't': // 1 string to match.
1843 if (memcmp(RuleIdentifier.data()+25, "runc", 4) != 0)
1844 break;
1845 return 168; // "constant_fold_intrinsic_trunc"
1846 }
1847 break;
1848 }
1849 break;
1850 case 'e': // 1 string to match.
1851 if (memcmp(RuleIdentifier.data()+1, "xtract_vec_elt_out_of_bounds", 28) != 0)
1852 break;
1853 return 90; // "extract_vec_elt_out_of_bounds"
1854 case 'i': // 1 string to match.
1855 if (memcmp(RuleIdentifier.data()+1, "cmp_to_true_false_known_bits", 28) != 0)
1856 break;
1857 return 126; // "icmp_to_true_false_known_bits"
1858 }
1859 break;
1860 case 30: // 6 strings to match.
1861 switch (RuleIdentifier[0]) {
1862 default: break;
1863 case 'G': // 4 strings to match.
1864 if (RuleIdentifier[1] != '_')
1865 break;
1866 switch (RuleIdentifier[2]) {
1867 default: break;
1868 case 'S': // 2 strings to match.
1869 if (RuleIdentifier[3] != 'M')
1870 break;
1871 switch (RuleIdentifier[4]) {
1872 default: break;
1873 case 'A': // 1 string to match.
1874 if (memcmp(RuleIdentifier.data()+5, "X_commute_constant_to_rhs", 25) != 0)
1875 break;
1876 return 259; // "G_SMAX_commute_constant_to_rhs"
1877 case 'I': // 1 string to match.
1878 if (memcmp(RuleIdentifier.data()+5, "N_commute_constant_to_rhs", 25) != 0)
1879 break;
1880 return 258; // "G_SMIN_commute_constant_to_rhs"
1881 }
1882 break;
1883 case 'U': // 2 strings to match.
1884 if (RuleIdentifier[3] != 'M')
1885 break;
1886 switch (RuleIdentifier[4]) {
1887 default: break;
1888 case 'A': // 1 string to match.
1889 if (memcmp(RuleIdentifier.data()+5, "X_commute_constant_to_rhs", 25) != 0)
1890 break;
1891 return 261; // "G_UMAX_commute_constant_to_rhs"
1892 case 'I': // 1 string to match.
1893 if (memcmp(RuleIdentifier.data()+5, "N_commute_constant_to_rhs", 25) != 0)
1894 break;
1895 return 260; // "G_UMIN_commute_constant_to_rhs"
1896 }
1897 break;
1898 }
1899 break;
1900 case 'f': // 1 string to match.
1901 if (memcmp(RuleIdentifier.data()+1, "reeze_of_non_undef_non_poison", 29) != 0)
1902 break;
1903 return 47; // "freeze_of_non_undef_non_poison"
1904 case 'r': // 1 string to match.
1905 if (memcmp(RuleIdentifier.data()+1, "ight_identity_neg_zero_fp_nsz", 29) != 0)
1906 break;
1907 return 115; // "right_identity_neg_zero_fp_nsz"
1908 }
1909 break;
1910 case 31: // 10 strings to match.
1911 switch (RuleIdentifier[0]) {
1912 default: break;
1913 case 'G': // 6 strings to match.
1914 if (RuleIdentifier[1] != '_')
1915 break;
1916 switch (RuleIdentifier[2]) {
1917 default: break;
1918 case 'S': // 3 strings to match.
1919 switch (RuleIdentifier[3]) {
1920 default: break;
1921 case 'A': // 1 string to match.
1922 if (memcmp(RuleIdentifier.data()+4, "DDO_commute_constant_to_rhs", 27) != 0)
1923 break;
1924 return 271; // "G_SADDO_commute_constant_to_rhs"
1925 case 'M': // 2 strings to match.
1926 if (memcmp(RuleIdentifier.data()+4, "UL", 2) != 0)
1927 break;
1928 switch (RuleIdentifier[6]) {
1929 default: break;
1930 case 'H': // 1 string to match.
1931 if (memcmp(RuleIdentifier.data()+7, "_commute_constant_to_rhs", 24) != 0)
1932 break;
1933 return 263; // "G_SMULH_commute_constant_to_rhs"
1934 case 'O': // 1 string to match.
1935 if (memcmp(RuleIdentifier.data()+7, "_commute_constant_to_rhs", 24) != 0)
1936 break;
1937 return 273; // "G_SMULO_commute_constant_to_rhs"
1938 }
1939 break;
1940 }
1941 break;
1942 case 'U': // 3 strings to match.
1943 switch (RuleIdentifier[3]) {
1944 default: break;
1945 case 'A': // 1 string to match.
1946 if (memcmp(RuleIdentifier.data()+4, "DDO_commute_constant_to_rhs", 27) != 0)
1947 break;
1948 return 270; // "G_UADDO_commute_constant_to_rhs"
1949 case 'M': // 2 strings to match.
1950 if (memcmp(RuleIdentifier.data()+4, "UL", 2) != 0)
1951 break;
1952 switch (RuleIdentifier[6]) {
1953 default: break;
1954 case 'H': // 1 string to match.
1955 if (memcmp(RuleIdentifier.data()+7, "_commute_constant_to_rhs", 24) != 0)
1956 break;
1957 return 262; // "G_UMULH_commute_constant_to_rhs"
1958 case 'O': // 1 string to match.
1959 if (memcmp(RuleIdentifier.data()+7, "_commute_constant_to_rhs", 24) != 0)
1960 break;
1961 return 272; // "G_UMULO_commute_constant_to_rhs"
1962 }
1963 break;
1964 }
1965 break;
1966 }
1967 break;
1968 case 'i': // 2 strings to match.
1969 if (memcmp(RuleIdentifier.data()+1, "nsert_vector_element_", 21) != 0)
1970 break;
1971 switch (RuleIdentifier[22]) {
1972 default: break;
1973 case 'e': // 1 string to match.
1974 if (memcmp(RuleIdentifier.data()+23, "lt_undef", 8) != 0)
1975 break;
1976 return 27; // "insert_vector_element_elt_undef"
1977 case 'i': // 1 string to match.
1978 if (memcmp(RuleIdentifier.data()+23, "dx_undef", 8) != 0)
1979 break;
1980 return 26; // "insert_vector_element_idx_undef"
1981 }
1982 break;
1983 case 'r': // 2 strings to match.
1984 if (memcmp(RuleIdentifier.data()+1, "edundant_neg_operands_fadd_", 27) != 0)
1985 break;
1986 switch (RuleIdentifier[28]) {
1987 default: break;
1988 case 'l': // 1 string to match.
1989 if (memcmp(RuleIdentifier.data()+29, "hs", 2) != 0)
1990 break;
1991 return 221; // "redundant_neg_operands_fadd_lhs"
1992 case 'r': // 1 string to match.
1993 if (memcmp(RuleIdentifier.data()+29, "hs", 2) != 0)
1994 break;
1995 return 220; // "redundant_neg_operands_fadd_rhs"
1996 }
1997 break;
1998 }
1999 break;
2000 case 32: // 5 strings to match.
2001 switch (RuleIdentifier[0]) {
2002 default: break;
2003 case 'b': // 1 string to match.
2004 if (memcmp(RuleIdentifier.data()+1, "itfield_extract_from_sext_inreg", 31) != 0)
2005 break;
2006 return 209; // "bitfield_extract_from_sext_inreg"
2007 case 'c': // 2 strings to match.
2008 if (memcmp(RuleIdentifier.data()+1, "ombine_f", 8) != 0)
2009 break;
2010 switch (RuleIdentifier[9]) {
2011 default: break;
2012 case 'a': // 1 string to match.
2013 if (memcmp(RuleIdentifier.data()+10, "dd_fmul_to_fmad_or_fma", 22) != 0)
2014 break;
2015 return 228; // "combine_fadd_fmul_to_fmad_or_fma"
2016 case 's': // 1 string to match.
2017 if (memcmp(RuleIdentifier.data()+10, "ub_fmul_to_fmad_or_fma", 22) != 0)
2018 break;
2019 return 232; // "combine_fsub_fmul_to_fmad_or_fma"
2020 }
2021 break;
2022 case 'e': // 1 string to match.
2023 if (memcmp(RuleIdentifier.data()+1, "xtract_vector_element_not_const", 31) != 0)
2024 break;
2025 return 30; // "extract_vector_element_not_const"
2026 case 's': // 1 string to match.
2027 if (memcmp(RuleIdentifier.data()+1, "elect_constant_cmp_general_true", 31) != 0)
2028 break;
2029 return 140; // "select_constant_cmp_general_true"
2030 }
2031 break;
2032 case 33: // 10 strings to match.
2033 switch (RuleIdentifier[0]) {
2034 default: break;
2035 case 'G': // 6 strings to match.
2036 if (RuleIdentifier[1] != '_')
2037 break;
2038 switch (RuleIdentifier[2]) {
2039 default: break;
2040 case 'F': // 2 strings to match.
2041 switch (RuleIdentifier[3]) {
2042 default: break;
2043 case 'A': // 1 string to match.
2044 if (memcmp(RuleIdentifier.data()+4, "DD_commute_fp_constant_to_rhs", 29) != 0)
2045 break;
2046 return 274; // "G_FADD_commute_fp_constant_to_rhs"
2047 case 'M': // 1 string to match.
2048 if (memcmp(RuleIdentifier.data()+4, "UL_commute_fp_constant_to_rhs", 29) != 0)
2049 break;
2050 return 275; // "G_FMUL_commute_fp_constant_to_rhs"
2051 }
2052 break;
2053 case 'S': // 2 strings to match.
2054 switch (RuleIdentifier[3]) {
2055 default: break;
2056 case 'A': // 1 string to match.
2057 if (memcmp(RuleIdentifier.data()+4, "DDSAT_commute_constant_to_rhs", 29) != 0)
2058 break;
2059 return 265; // "G_SADDSAT_commute_constant_to_rhs"
2060 case 'M': // 1 string to match.
2061 if (memcmp(RuleIdentifier.data()+4, "ULFIX_commute_constant_to_rhs", 29) != 0)
2062 break;
2063 return 266; // "G_SMULFIX_commute_constant_to_rhs"
2064 }
2065 break;
2066 case 'U': // 2 strings to match.
2067 switch (RuleIdentifier[3]) {
2068 default: break;
2069 case 'A': // 1 string to match.
2070 if (memcmp(RuleIdentifier.data()+4, "DDSAT_commute_constant_to_rhs", 29) != 0)
2071 break;
2072 return 264; // "G_UADDSAT_commute_constant_to_rhs"
2073 case 'M': // 1 string to match.
2074 if (memcmp(RuleIdentifier.data()+4, "ULFIX_commute_constant_to_rhs", 29) != 0)
2075 break;
2076 return 267; // "G_UMULFIX_commute_constant_to_rhs"
2077 }
2078 break;
2079 }
2080 break;
2081 case 'c': // 1 string to match.
2082 if (memcmp(RuleIdentifier.data()+1, "onstant_fold_intrinsic_roundeven", 32) != 0)
2083 break;
2084 return 170; // "constant_fold_intrinsic_roundeven"
2085 case 'r': // 2 strings to match.
2086 if (memcmp(RuleIdentifier.data()+1, "edundant_", 9) != 0)
2087 break;
2088 switch (RuleIdentifier[10]) {
2089 default: break;
2090 case 'a': // 1 string to match.
2091 if (memcmp(RuleIdentifier.data()+11, "ext_unmerge_sext_inreg", 22) != 0)
2092 break;
2093 return 149; // "redundant_aext_unmerge_sext_inreg"
2094 case 'z': // 1 string to match.
2095 if (memcmp(RuleIdentifier.data()+11, "ext_unmerge_sext_inreg", 22) != 0)
2096 break;
2097 return 148; // "redundant_zext_unmerge_sext_inreg"
2098 }
2099 break;
2100 case 's': // 1 string to match.
2101 if (memcmp(RuleIdentifier.data()+1, "elect_constant_cmp_general_false", 32) != 0)
2102 break;
2103 return 139; // "select_constant_cmp_general_false"
2104 }
2105 break;
2106 case 34: // 1 string to match.
2107 if (memcmp(RuleIdentifier.data()+0, "extract_all_elts_from_build_vector", 34) != 0)
2108 break;
2109 return 73; // "extract_all_elts_from_build_vector"
2110 case 35: // 1 string to match.
2111 if (memcmp(RuleIdentifier.data()+0, "extract_vector_element_build_vector", 35) != 0)
2112 break;
2113 return 32; // "extract_vector_element_build_vector"
2114 case 36: // 7 strings to match.
2115 switch (RuleIdentifier[0]) {
2116 default: break;
2117 case 'G': // 4 strings to match.
2118 if (RuleIdentifier[1] != '_')
2119 break;
2120 switch (RuleIdentifier[2]) {
2121 default: break;
2122 case 'F': // 2 strings to match.
2123 if (RuleIdentifier[3] != 'M')
2124 break;
2125 switch (RuleIdentifier[4]) {
2126 default: break;
2127 case 'A': // 1 string to match.
2128 if (memcmp(RuleIdentifier.data()+5, "XNUM_commute_fp_constant_to_rhs", 31) != 0)
2129 break;
2130 return 277; // "G_FMAXNUM_commute_fp_constant_to_rhs"
2131 case 'I': // 1 string to match.
2132 if (memcmp(RuleIdentifier.data()+5, "NNUM_commute_fp_constant_to_rhs", 31) != 0)
2133 break;
2134 return 276; // "G_FMINNUM_commute_fp_constant_to_rhs"
2135 }
2136 break;
2137 case 'S': // 1 string to match.
2138 if (memcmp(RuleIdentifier.data()+3, "MULFIXSAT_commute_constant_to_rhs", 33) != 0)
2139 break;
2140 return 268; // "G_SMULFIXSAT_commute_constant_to_rhs"
2141 case 'U': // 1 string to match.
2142 if (memcmp(RuleIdentifier.data()+3, "MULFIXSAT_commute_constant_to_rhs", 33) != 0)
2143 break;
2144 return 269; // "G_UMULFIXSAT_commute_constant_to_rhs"
2145 }
2146 break;
2147 case 'c': // 2 strings to match.
2148 if (memcmp(RuleIdentifier.data()+1, "ombine_", 7) != 0)
2149 break;
2150 switch (RuleIdentifier[8]) {
2151 default: break;
2152 case 'f': // 1 string to match.
2153 if (memcmp(RuleIdentifier.data()+9, "add_fma_fmul_to_fmad_or_fma", 27) != 0)
2154 break;
2155 return 230; // "combine_fadd_fma_fmul_to_fmad_or_fma"
2156 case 'i': // 1 string to match.
2157 if (memcmp(RuleIdentifier.data()+9, "nsert_vec_elts_build_vector", 27) != 0)
2158 break;
2159 return 71; // "combine_insert_vec_elts_build_vector"
2160 }
2161 break;
2162 case 'p': // 1 string to match.
2163 if (memcmp(RuleIdentifier.data()+1, "ropagate_undef_all_ops_build_vector", 35) != 0)
2164 break;
2165 return 86; // "propagate_undef_all_ops_build_vector"
2166 }
2167 break;
2168 case 37: // 5 strings to match.
2169 switch (RuleIdentifier[0]) {
2170 default: break;
2171 case 'G': // 2 strings to match.
2172 if (memcmp(RuleIdentifier.data()+1, "_FM", 3) != 0)
2173 break;
2174 switch (RuleIdentifier[4]) {
2175 default: break;
2176 case 'A': // 1 string to match.
2177 if (memcmp(RuleIdentifier.data()+5, "XIMUM_commute_fp_constant_to_rhs", 32) != 0)
2178 break;
2179 return 281; // "G_FMAXIMUM_commute_fp_constant_to_rhs"
2180 case 'I': // 1 string to match.
2181 if (memcmp(RuleIdentifier.data()+5, "NIMUM_commute_fp_constant_to_rhs", 32) != 0)
2182 break;
2183 return 280; // "G_FMINIMUM_commute_fp_constant_to_rhs"
2184 }
2185 break;
2186 case 'c': // 1 string to match.
2187 if (memcmp(RuleIdentifier.data()+1, "ombine_fsub_fneg_fmul_to_fmad_or_fma", 36) != 0)
2188 break;
2189 return 233; // "combine_fsub_fneg_fmul_to_fmad_or_fma"
2190 case 'e': // 1 string to match.
2191 if (memcmp(RuleIdentifier.data()+1, "xtract_vector_element_shuffle_vector", 36) != 0)
2192 break;
2193 return 40; // "extract_vector_element_shuffle_vector"
2194 case 'h': // 1 string to match.
2195 if (memcmp(RuleIdentifier.data()+1, "oist_logic_op_with_same_opcode_hands", 36) != 0)
2196 break;
2197 return 119; // "hoist_logic_op_with_same_opcode_hands"
2198 }
2199 break;
2200 case 38: // 3 strings to match.
2201 switch (RuleIdentifier[0]) {
2202 default: break;
2203 case 'c': // 2 strings to match.
2204 if (memcmp(RuleIdentifier.data()+1, "ombine_f", 8) != 0)
2205 break;
2206 switch (RuleIdentifier[9]) {
2207 default: break;
2208 case 'a': // 1 string to match.
2209 if (memcmp(RuleIdentifier.data()+10, "dd_fpext_fmul_to_fmad_or_fma", 28) != 0)
2210 break;
2211 return 229; // "combine_fadd_fpext_fmul_to_fmad_or_fma"
2212 case 's': // 1 string to match.
2213 if (memcmp(RuleIdentifier.data()+10, "ub_fpext_fmul_to_fmad_or_fma", 28) != 0)
2214 break;
2215 return 234; // "combine_fsub_fpext_fmul_to_fmad_or_fma"
2216 }
2217 break;
2218 case 'p': // 1 string to match.
2219 if (memcmp(RuleIdentifier.data()+1, "ropagate_undef_all_ops_shuffle_vector", 37) != 0)
2220 break;
2221 return 85; // "propagate_undef_all_ops_shuffle_vector"
2222 }
2223 break;
2224 case 40: // 1 string to match.
2225 if (memcmp(RuleIdentifier.data()+0, "extract_vector_element_different_indices", 40) != 0)
2226 break;
2227 return 31; // "extract_vector_element_different_indices"
2228 case 41: // 2 strings to match.
2229 if (memcmp(RuleIdentifier.data()+0, "G_FM", 4) != 0)
2230 break;
2231 switch (RuleIdentifier[4]) {
2232 default: break;
2233 case 'A': // 1 string to match.
2234 if (memcmp(RuleIdentifier.data()+5, "XNUM_IEEE_commute_fp_constant_to_rhs", 36) != 0)
2235 break;
2236 return 279; // "G_FMAXNUM_IEEE_commute_fp_constant_to_rhs"
2237 case 'I': // 1 string to match.
2238 if (memcmp(RuleIdentifier.data()+5, "NNUM_IEEE_commute_fp_constant_to_rhs", 36) != 0)
2239 break;
2240 return 278; // "G_FMINNUM_IEEE_commute_fp_constant_to_rhs"
2241 }
2242 break;
2243 case 42: // 9 strings to match.
2244 switch (RuleIdentifier[0]) {
2245 default: break;
2246 case 'c': // 1 string to match.
2247 if (memcmp(RuleIdentifier.data()+1, "ombine_fadd_fpext_fma_fmul_to_fmad_or_fma", 41) != 0)
2248 break;
2249 return 231; // "combine_fadd_fpext_fma_fmul_to_fmad_or_fma"
2250 case 'e': // 7 strings to match.
2251 if (memcmp(RuleIdentifier.data()+1, "xtract_vector_element_build_vector_trunc", 40) != 0)
2252 break;
2253 switch (RuleIdentifier[41]) {
2254 default: break;
2255 case '2': // 1 string to match.
2256 return 33; // "extract_vector_element_build_vector_trunc2"
2257 case '3': // 1 string to match.
2258 return 34; // "extract_vector_element_build_vector_trunc3"
2259 case '4': // 1 string to match.
2260 return 35; // "extract_vector_element_build_vector_trunc4"
2261 case '5': // 1 string to match.
2262 return 36; // "extract_vector_element_build_vector_trunc5"
2263 case '6': // 1 string to match.
2264 return 37; // "extract_vector_element_build_vector_trunc6"
2265 case '7': // 1 string to match.
2266 return 38; // "extract_vector_element_build_vector_trunc7"
2267 case '8': // 1 string to match.
2268 return 39; // "extract_vector_element_build_vector_trunc8"
2269 }
2270 break;
2271 case 'f': // 1 string to match.
2272 if (memcmp(RuleIdentifier.data()+1, "unnel_shift_or_shift_to_funnel_shift_left", 41) != 0)
2273 break;
2274 return 203; // "funnel_shift_or_shift_to_funnel_shift_left"
2275 }
2276 break;
2277 case 43: // 2 strings to match.
2278 switch (RuleIdentifier[0]) {
2279 default: break;
2280 case 'c': // 1 string to match.
2281 if (memcmp(RuleIdentifier.data()+1, "ombine_fsub_fpext_fneg_fmul_to_fmad_or_fma", 42) != 0)
2282 break;
2283 return 235; // "combine_fsub_fpext_fneg_fmul_to_fmad_or_fma"
2284 case 'f': // 1 string to match.
2285 if (memcmp(RuleIdentifier.data()+1, "unnel_shift_or_shift_to_funnel_shift_right", 42) != 0)
2286 break;
2287 return 204; // "funnel_shift_or_shift_to_funnel_shift_right"
2288 }
2289 break;
2290 case 44: // 1 string to match.
2291 if (memcmp(RuleIdentifier.data()+0, "insert_vector_element_extract_vector_element", 44) != 0)
2292 break;
2293 return 41; // "insert_vector_element_extract_vector_element"
2294 case 46: // 1 string to match.
2295 if (memcmp(RuleIdentifier.data()+0, "push_freeze_to_prevent_poison_from_propagating", 46) != 0)
2296 break;
2297 return 48; // "push_freeze_to_prevent_poison_from_propagating"
2298 }
2299#endif // ifndef NDEBUG
2300
2301 return std::nullopt;
2302}
2303static std::optional<std::pair<uint64_t, uint64_t>> getRuleRangeForIdentifier(StringRef RuleIdentifier) {
2304 std::pair<StringRef, StringRef> RangePair = RuleIdentifier.split('-');
2305 if (!RangePair.second.empty()) {
2306 const auto First = getRuleIdxForIdentifier(RangePair.first);
2307 const auto Last = getRuleIdxForIdentifier(RangePair.second);
2308 if (!First || !Last)
2309 return std::nullopt;
2310 if (First >= Last)
2311 report_fatal_error("Beginning of range should be before end of range");
2312 return {{*First, *Last + 1}};
2313 }
2314 if (RangePair.first == "*") {
2315 return {{0, 340}};
2316 }
2317 const auto I = getRuleIdxForIdentifier(RangePair.first);
2318 if (!I)
2319 return std::nullopt;
2320 return {{*I, *I + 1}};
2321}
2322
2323bool RISCVPreLegalizerCombinerImplRuleConfig::setRuleEnabled(StringRef RuleIdentifier) {
2324 auto MaybeRange = getRuleRangeForIdentifier(RuleIdentifier);
2325 if (!MaybeRange)
2326 return false;
2327 for (auto I = MaybeRange->first; I < MaybeRange->second; ++I)
2328 DisabledRules.reset(I);
2329 return true;
2330}
2331
2332bool RISCVPreLegalizerCombinerImplRuleConfig::setRuleDisabled(StringRef RuleIdentifier) {
2333 auto MaybeRange = getRuleRangeForIdentifier(RuleIdentifier);
2334 if (!MaybeRange)
2335 return false;
2336 for (auto I = MaybeRange->first; I < MaybeRange->second; ++I)
2337 DisabledRules.set(I);
2338 return true;
2339}
2340
2341static std::vector<std::string> RISCVPreLegalizerCombinerOption;
2342static cl::list<std::string> RISCVPreLegalizerCombinerDisableOption(
2343 "riscvprelegalizercombiner-disable-rule",
2344 cl::desc("Disable one or more combiner rules temporarily in the RISCVPreLegalizerCombiner pass"),
2345 cl::CommaSeparated,
2346 cl::Hidden,
2347 cl::cat(GICombinerOptionCategory),
2348 cl::callback([](const std::string &Str) {
2349 RISCVPreLegalizerCombinerOption.push_back(Str);
2350 }));
2351static cl::list<std::string> RISCVPreLegalizerCombinerOnlyEnableOption(
2352 "riscvprelegalizercombiner-only-enable-rule",
2353 cl::desc("Disable all rules in the RISCVPreLegalizerCombiner pass then re-enable the specified ones"),
2354 cl::Hidden,
2355 cl::cat(GICombinerOptionCategory),
2356 cl::callback([](const std::string &CommaSeparatedArg) {
2357 StringRef Str = CommaSeparatedArg;
2358 RISCVPreLegalizerCombinerOption.push_back("*");
2359 do {
2360 auto X = Str.split(",");
2361 RISCVPreLegalizerCombinerOption.push_back(("!" + X.first).str());
2362 Str = X.second;
2363 } while (!Str.empty());
2364 }));
2365
2366
2367bool RISCVPreLegalizerCombinerImplRuleConfig::isRuleEnabled(unsigned RuleID) const {
2368 return !DisabledRules.test(RuleID);
2369}
2370bool RISCVPreLegalizerCombinerImplRuleConfig::parseCommandLineOption() {
2371 for (StringRef Identifier : RISCVPreLegalizerCombinerOption) {
2372 bool Enabled = Identifier.consume_front("!");
2373 if (Enabled && !setRuleEnabled(Identifier))
2374 return false;
2375 if (!Enabled && !setRuleDisabled(Identifier))
2376 return false;
2377 }
2378 return true;
2379}
2380
2381
2382#endif // GET_GICOMBINER_TYPES
2383
2384#ifdef GET_GICOMBINER_TYPES
2385
2386const unsigned MAX_SUBTARGET_PREDICATES = 0;
2387using PredicateBitset = llvm::Bitset<MAX_SUBTARGET_PREDICATES>;
2388
2389#endif // GET_GICOMBINER_TYPES
2390
2391#ifdef GET_GICOMBINER_CLASS_MEMBERS
2392
2393 bool canMatchOpcode(unsigned Opc) const override;
2394 uint32_t getRootFlagsToDrop() const override;
2395
2396#endif // GET_GICOMBINER_CLASS_MEMBERS
2397
2398#ifdef GET_GICOMBINER_CLASS_MEMBERS
2399
2400PredicateBitset AvailableModuleFeatures;
2401mutable PredicateBitset AvailableFunctionFeatures;
2402PredicateBitset getAvailableFeatures() const {
2403 return AvailableModuleFeatures | AvailableFunctionFeatures;
2404}
2405PredicateBitset
2406computeAvailableModuleFeatures(const RISCVSubtarget *Subtarget) const;
2407PredicateBitset
2408computeAvailableFunctionFeatures(const RISCVSubtarget *Subtarget,
2409 const MachineFunction *MF) const;
2410void setupGeneratedPerFunctionState(MachineFunction &MF) override;
2411
2412#endif // GET_GICOMBINER_CLASS_MEMBERS
2413
2414#ifdef GET_GICOMBINER_CLASS_MEMBERS
2415
2416 mutable MatcherState State;
2417 typedef ComplexRendererFns(RISCVPreLegalizerCombinerImpl::*ComplexMatcherMemFn)(MachineOperand &) const;
2418 typedef void(RISCVPreLegalizerCombinerImpl::*CustomRendererFn)(MachineInstrBuilder &, const MachineInstr &, int) const;
2419 const ExecInfoTy<PredicateBitset, ComplexMatcherMemFn, CustomRendererFn> ExecInfo;
2420 static RISCVPreLegalizerCombinerImpl::ComplexMatcherMemFn ComplexPredicateFns[];
2421 static RISCVPreLegalizerCombinerImpl::CustomRendererFn CustomRenderers[];
2422 bool testImmPredicate_I64(unsigned PredicateID, int64_t Imm) const override;
2423 bool testImmPredicate_APInt(unsigned PredicateID, const APInt &Imm) const override;
2424 bool testImmPredicate_APFloat(unsigned PredicateID, const APFloat &Imm) const override;
2425 const uint8_t *getMatchTable() const override;
2426 LLT getLLTForHwMode(unsigned Index) const override;
2427 bool testMIPredicate_MI(unsigned PredicateID, const MachineInstr &MI, const MatcherState &State) const override;
2428 bool testMOPredicate_MO(unsigned PredicateID, const MachineOperand &MO, const MatcherState &State) const override;
2429 bool testSimplePredicate(unsigned PredicateID) const override;
2430 bool runCustomAction(unsigned FnID, const MatcherState &State, NewMIVector &OutMIs) const override;
2431
2432#endif // GET_GICOMBINER_CLASS_MEMBERS
2433
2434#ifdef GET_GICOMBINER_IMPL
2435
2436// LLT Objects.
2437enum {
2438 GILLT_s1,
2439};
2440const static size_t NumTypeObjects = 1;
2441const static LLT TypeObjects[] = {
2442 LLT::scalar(1),
2443};
2444
2445// Bits for subtarget features that participate in instruction matching.
2446enum SubtargetFeatureBits : uint8_t {
2447};
2448
2449PredicateBitset RISCVPreLegalizerCombinerImpl::
2450computeAvailableModuleFeatures(const RISCVSubtarget *Subtarget) const {
2451 PredicateBitset Features{};
2452 return Features;
2453}
2454
2455void RISCVPreLegalizerCombinerImpl::setupGeneratedPerFunctionState(MachineFunction &MF) {
2456 AvailableFunctionFeatures = computeAvailableFunctionFeatures((const RISCVSubtarget *)&MF.getSubtarget(), &MF);
2457}
2458PredicateBitset RISCVPreLegalizerCombinerImpl::
2459computeAvailableFunctionFeatures(const RISCVSubtarget *Subtarget, const MachineFunction *MF) const {
2460 PredicateBitset Features{};
2461 return Features;
2462}
2463
2464// Feature bitsets.
2465enum {
2466 GIFBS_Invalid,
2467};
2468constexpr static PredicateBitset FeatureBitsets[] {
2469 {}, // GIFBS_Invalid
2470};
2471
2472// ComplexPattern predicates.
2473enum {
2474 GICP_Invalid,
2475};
2476// See constructor for table contents
2477
2478RISCVPreLegalizerCombinerImpl::ComplexMatcherMemFn
2479RISCVPreLegalizerCombinerImpl::ComplexPredicateFns[] = {
2480 nullptr, // GICP_Invalid
2481};
2482
2483enum {
2484 GICXXPred_MI_Predicate_GICombiner0 = GICXXPred_Invalid + 1,
2485 GICXXPred_MI_Predicate_GICombiner1,
2486 GICXXPred_MI_Predicate_GICombiner2,
2487 GICXXPred_MI_Predicate_GICombiner3,
2488 GICXXPred_MI_Predicate_GICombiner4,
2489 GICXXPred_MI_Predicate_GICombiner5,
2490 GICXXPred_MI_Predicate_GICombiner6,
2491 GICXXPred_MI_Predicate_GICombiner7,
2492 GICXXPred_MI_Predicate_GICombiner8,
2493 GICXXPred_MI_Predicate_GICombiner9,
2494 GICXXPred_MI_Predicate_GICombiner10,
2495 GICXXPred_MI_Predicate_GICombiner11,
2496 GICXXPred_MI_Predicate_GICombiner12,
2497 GICXXPred_MI_Predicate_GICombiner13,
2498 GICXXPred_MI_Predicate_GICombiner14,
2499 GICXXPred_MI_Predicate_GICombiner15,
2500 GICXXPred_MI_Predicate_GICombiner16,
2501 GICXXPred_MI_Predicate_GICombiner17,
2502 GICXXPred_MI_Predicate_GICombiner18,
2503 GICXXPred_MI_Predicate_GICombiner19,
2504 GICXXPred_MI_Predicate_GICombiner20,
2505 GICXXPred_MI_Predicate_GICombiner21,
2506 GICXXPred_MI_Predicate_GICombiner22,
2507 GICXXPred_MI_Predicate_GICombiner23,
2508 GICXXPred_MI_Predicate_GICombiner24,
2509 GICXXPred_MI_Predicate_GICombiner25,
2510 GICXXPred_MI_Predicate_GICombiner26,
2511 GICXXPred_MI_Predicate_GICombiner27,
2512 GICXXPred_MI_Predicate_GICombiner28,
2513 GICXXPred_MI_Predicate_GICombiner29,
2514 GICXXPred_MI_Predicate_GICombiner30,
2515 GICXXPred_MI_Predicate_GICombiner31,
2516 GICXXPred_MI_Predicate_GICombiner32,
2517 GICXXPred_MI_Predicate_GICombiner33,
2518 GICXXPred_MI_Predicate_GICombiner34,
2519 GICXXPred_MI_Predicate_GICombiner35,
2520 GICXXPred_MI_Predicate_GICombiner36,
2521 GICXXPred_MI_Predicate_GICombiner37,
2522 GICXXPred_MI_Predicate_GICombiner38,
2523 GICXXPred_MI_Predicate_GICombiner39,
2524 GICXXPred_MI_Predicate_GICombiner40,
2525 GICXXPred_MI_Predicate_GICombiner41,
2526 GICXXPred_MI_Predicate_GICombiner42,
2527 GICXXPred_MI_Predicate_GICombiner43,
2528 GICXXPred_MI_Predicate_GICombiner44,
2529 GICXXPred_MI_Predicate_GICombiner45,
2530 GICXXPred_MI_Predicate_GICombiner46,
2531 GICXXPred_MI_Predicate_GICombiner47,
2532 GICXXPred_MI_Predicate_GICombiner48,
2533 GICXXPred_MI_Predicate_GICombiner49,
2534 GICXXPred_MI_Predicate_GICombiner50,
2535 GICXXPred_MI_Predicate_GICombiner51,
2536 GICXXPred_MI_Predicate_GICombiner52,
2537 GICXXPred_MI_Predicate_GICombiner53,
2538 GICXXPred_MI_Predicate_GICombiner54,
2539 GICXXPred_MI_Predicate_GICombiner55,
2540 GICXXPred_MI_Predicate_GICombiner56,
2541 GICXXPred_MI_Predicate_GICombiner57,
2542 GICXXPred_MI_Predicate_GICombiner58,
2543 GICXXPred_MI_Predicate_GICombiner59,
2544 GICXXPred_MI_Predicate_GICombiner60,
2545 GICXXPred_MI_Predicate_GICombiner61,
2546 GICXXPred_MI_Predicate_GICombiner62,
2547 GICXXPred_MI_Predicate_GICombiner63,
2548 GICXXPred_MI_Predicate_GICombiner64,
2549 GICXXPred_MI_Predicate_GICombiner65,
2550 GICXXPred_MI_Predicate_GICombiner66,
2551};
2552bool RISCVPreLegalizerCombinerImpl::testMIPredicate_MI(unsigned PredicateID, const MachineInstr & MI, const MatcherState &State) const {
2553 switch (PredicateID) {
2554 case GICXXPred_MI_Predicate_GICombiner0: {
2555 return MRI.hasOneNonDBGUse(State.MIs[0]->getOperand(2).getReg());
2556 }
2557 case GICXXPred_MI_Predicate_GICombiner1: {
2558 return MRI.hasOneNonDBGUse(State.MIs[0]->getOperand(1).getReg());
2559 }
2560 case GICXXPred_MI_Predicate_GICombiner2: {
2561 return MRI.getType(State.MIs[1]->getOperand(1).getReg()).getScalarSizeInBits() ==
2562 MRI.getType(State.MIs[0]->getOperand(0).getReg()).getScalarSizeInBits();
2563 }
2564 case GICXXPred_MI_Predicate_GICombiner3: {
2565 return isGuaranteedNotToBePoison(State.MIs[0]->getOperand(1).getReg(), MRI);
2566 }
2567 case GICXXPred_MI_Predicate_GICombiner4: {
2568 return Helper.matchExtractVectorElement(*State.MIs[0]);
2569 }
2570 case GICXXPred_MI_Predicate_GICombiner5: {
2571 return Helper.matchInsertVectorElementOOB(*State.MIs[0]);
2572 }
2573 case GICXXPred_MI_Predicate_GICombiner6: {
2574 return Helper.isZeroOrOneVector(State.MIs[0]->getOperand(2).getReg());
2575 }
2576 case GICXXPred_MI_Predicate_GICombiner7: {
2577 return isGuaranteedNotToBeUndefOrPoison(State.MIs[0]->getOperand(1).getReg(), MRI);
2578 }
2579 case GICXXPred_MI_Predicate_GICombiner8: {
2580 return Helper.matchAllExplicitUsesAreUndef(*State.MIs[0]);
2581 }
2582 case GICXXPred_MI_Predicate_GICombiner9: {
2583 return Helper.matchUndefShuffleVectorMask(*State.MIs[0]);
2584 }
2585 case GICXXPred_MI_Predicate_GICombiner10: {
2586 return cast<GStore>(State.MIs[0])->isUnordered();
2587 }
2588 case GICXXPred_MI_Predicate_GICombiner11: {
2589 return Helper.matchInsertExtractVecEltOutOfBounds(*State.MIs[0]);
2590 }
2591 case GICXXPred_MI_Predicate_GICombiner12: {
2592 return Helper.matchSelectSameVal(*State.MIs[0]);
2593 }
2594 case GICXXPred_MI_Predicate_GICombiner13: {
2595 return Helper.matchConstantOp(State.MIs[0]->getOperand(1), 0);
2596 }
2597 case GICXXPred_MI_Predicate_GICombiner14: {
2598 return MRI.getType(State.MIs[1]->getOperand(1).getReg()) == MRI.getType(State.MIs[0]->getOperand(0).getReg());
2599 }
2600 case GICXXPred_MI_Predicate_GICombiner15: {
2601 return MRI.getType(State.MIs[0]->getOperand(0).getReg()).getSizeInBits() ==
2602 MRI.getType(State.MIs[1]->getOperand(1).getReg()).getSizeInBits();
2603 }
2604 case GICXXPred_MI_Predicate_GICombiner16: {
2605 return MRI.getType(State.MIs[0]->getOperand(0).getReg()).getSizeInBits() >
2606 MRI.getType(State.MIs[1]->getOperand(1).getReg()).getSizeInBits();
2607 }
2608 case GICXXPred_MI_Predicate_GICombiner17: {
2609 return MRI.getType(State.MIs[0]->getOperand(0).getReg()).getSizeInBits() <
2610 MRI.getType(State.MIs[1]->getOperand(1).getReg()).getSizeInBits();
2611 }
2612 case GICXXPred_MI_Predicate_GICombiner18: {
2613 return Helper.matchConstantFPOp(State.MIs[0]->getOperand(2), 1.0);
2614 }
2615 case GICXXPred_MI_Predicate_GICombiner19: {
2616 return MRI.getType(State.MIs[1]->getOperand(1).getReg()) != MRI.getType(State.MIs[0]->getOperand(0).getReg());
2617 }
2618 case GICXXPred_MI_Predicate_GICombiner20: {
2619 return Helper.matchConstantFPOp(State.MIs[0]->getOperand(2), -0.0);
2620 }
2621 case GICXXPred_MI_Predicate_GICombiner21: {
2622 return Helper.matchConstantFPOp(State.MIs[0]->getOperand(2), 0.0);
2623 }
2624 case GICXXPred_MI_Predicate_GICombiner22: {
2625 return Helper.matchConstantFPOp(State.MIs[0]->getOperand(2), -1.0);
2626 }
2627 case GICXXPred_MI_Predicate_GICombiner23: {
2628 return State.MIs[1]->getOperand(1).getPredicate() == CmpInst::ICMP_EQ &&
2629 !MRI.getType(State.MIs[1]->getOperand(2).getReg()).getScalarType().isPointer() &&
2630 (MRI.getType(State.MIs[1]->getOperand(2).getReg()) ==
2631 MRI.getType(State.MIs[2]->getOperand(2).getReg()));
2632 }
2633 case GICXXPred_MI_Predicate_GICombiner24: {
2634 return State.MIs[1]->getOperand(1).getPredicate() == CmpInst::ICMP_NE &&
2635 !MRI.getType(State.MIs[1]->getOperand(2).getReg()).getScalarType().isPointer() &&
2636 (MRI.getType(State.MIs[1]->getOperand(2).getReg()) ==
2637 MRI.getType(State.MIs[2]->getOperand(2).getReg()));
2638 }
2639 case GICXXPred_MI_Predicate_GICombiner25: {
2640 return MRI.hasOneNonDBGUse(State.MIs[0]->getOperand(2).getReg()) &&
2641 Helper.isLegalOrBeforeLegalizer({
2642 TargetOpcode::G_SEXT_INREG,
2643 {MRI.getType(State.MIs[1]->getOperand(1).getReg())},
2644 {},
2645 {1}
2646 });
2647 }
2648 case GICXXPred_MI_Predicate_GICombiner26: {
2649 auto C = isConstantOrConstantSplatVector(State.MIs[0]->getOperand(1).getReg(), MRI);
2650 return C && C->isZero();
2651 llvm_unreachable("GICombiner26 should have returned");
2652 }
2653 case GICXXPred_MI_Predicate_GICombiner27: {
2654 auto C = isConstantOrConstantSplatVector(State.MIs[0]->getOperand(1).getReg(), MRI);
2655 return C && !C->isZero();
2656 llvm_unreachable("GICombiner27 should have returned");
2657 }
2658 case GICXXPred_MI_Predicate_GICombiner28: {
2659 return !isConstantOrConstantSplatVector(State.MIs[0]->getOperand(1).getReg(), MRI) &&
2660 MRI.getType(State.MIs[0]->getOperand(1).getReg()) == MRI.getType(State.MIs[0]->getOperand(0).getReg()) &&
2661 VT->computeNumSignBits(State.MIs[0]->getOperand(1).getReg()) == MRI.getType(State.MIs[0]->getOperand(0).getReg()).getScalarSizeInBits();
2662 }
2663 case GICXXPred_MI_Predicate_GICombiner29: {
2664 return Helper.matchRedundantSExtInReg(*State.MIs[0]);
2665 }
2666 case GICXXPred_MI_Predicate_GICombiner30: {
2667 LLT SrcTy = MRI.getType(State.MIs[1]->getOperand(1).getReg());
2668 return State.MIs[0]->getOperand(2).getImm() <= SrcTy.getScalarSizeInBits() &&
2669 VT->computeNumSignBits(State.MIs[1]->getOperand(1).getReg()) >=
2670 (SrcTy.getScalarSizeInBits() - State.MIs[0]->getOperand(2).getImm() + 1);
2671 llvm_unreachable("GICombiner30 should have returned");
2672 }
2673 case GICXXPred_MI_Predicate_GICombiner31: {
2674 return Helper.matchSignedDivRemToUnsigned(*State.MIs[0],
2675 TargetOpcode::G_UDIV);
2676 }
2677 case GICXXPred_MI_Predicate_GICombiner32: {
2678 return Helper.matchSignedDivRemToUnsigned(*State.MIs[0],
2679 TargetOpcode::G_UREM);
2680 }
2681 case GICXXPred_MI_Predicate_GICombiner33: {
2682 return Helper.matchConstantOp(State.MIs[0]->getOperand(3), 2);
2683 }
2684 case GICXXPred_MI_Predicate_GICombiner34: {
2685 return Helper.matchConstantOp(State.MIs[0]->getOperand(4), 0);
2686 }
2687 case GICXXPred_MI_Predicate_GICombiner35: {
2688 return Helper.isConstantNaN(State.MIs[0]->getOperand(1).getReg());
2689 }
2690 case GICXXPred_MI_Predicate_GICombiner36: {
2691 return Helper.isConstantNaN(State.MIs[0]->getOperand(2).getReg()) &&
2692 !Helper.isConstantNaN(State.MIs[0]->getOperand(1).getReg());
2693 }
2694 case GICXXPred_MI_Predicate_GICombiner37: {
2695 LLT Ty = MRI.getType(State.MIs[0]->getOperand(0).getReg());
2696 return Ty.isPointer() &&
2697 !isConstantOrConstantSplatVector(State.MIs[0]->getOperand(2).getReg(), MRI) &&
2698 !State.MIs[0]->getMF()->getDataLayout().isNonIntegralAddressSpace(
2699 Ty.getAddressSpace());
2700 llvm_unreachable("GICombiner37 should have returned");
2701 }
2702 case GICXXPred_MI_Predicate_GICombiner38: {
2703 return Helper.matchPtrAddZeroVector(*State.MIs[0]);
2704 }
2705 case GICXXPred_MI_Predicate_GICombiner39: {
2706 return Helper.isLegalOrBeforeLegalizer(
2707 {TargetOpcode::G_ROTL,
2708 {MRI.getType(State.MIs[0]->getOperand(1).getReg()),
2709 MRI.getType(State.MIs[0]->getOperand(1).getReg())}});
2710 }
2711 case GICXXPred_MI_Predicate_GICombiner40: {
2712 return Helper.isLegalOrBeforeLegalizer(
2713 {TargetOpcode::G_ROTR,
2714 {MRI.getType(State.MIs[0]->getOperand(1).getReg()),
2715 MRI.getType(State.MIs[0]->getOperand(1).getReg())}});
2716 }
2717 case GICXXPred_MI_Predicate_GICombiner41: {
2718 return Helper.isLegalOrBeforeLegalizer({TargetOpcode::G_LSHR,
2719 {MRI.getType(State.MIs[2]->getOperand(1).getReg()),
2720 MRI.getType(State.MIs[1]->getOperand(2).getReg())}});
2721 }
2722 case GICXXPred_MI_Predicate_GICombiner42: {
2723 return Helper.isLegalOrBeforeLegalizer({TargetOpcode::G_SHL,
2724 {MRI.getType(State.MIs[2]->getOperand(1).getReg()),
2725 MRI.getType(State.MIs[1]->getOperand(2).getReg())}});
2726 }
2727 case GICXXPred_MI_Predicate_GICombiner43: {
2728 return MRI.hasOneNonDBGUse(State.MIs[0]->getOperand(1).getReg()) &&
2729 isConstantOrConstantSplatVector(State.MIs[1]->getOperand(2).getReg(), MRI) &&
2730 isConstantOrConstantSplatVector(State.MIs[0]->getOperand(2).getReg(), MRI) &&
2731 Helper.isDesirableToCommuteWithShift(*State.MIs[0]);
2732 }
2733 case GICXXPred_MI_Predicate_GICombiner44: {
2734 return Helper.isLegalOrBeforeLegalizer({TargetOpcode::G_FSUB,
2735 {MRI.getType(State.MIs[0]->getOperand(0).getReg())}});
2736 }
2737 case GICXXPred_MI_Predicate_GICombiner45: {
2738 return Helper.isLegalOrBeforeLegalizer({TargetOpcode::G_FADD,
2739 {MRI.getType(State.MIs[0]->getOperand(0).getReg())}});
2740 }
2741 case GICXXPred_MI_Predicate_GICombiner46: {
2742 return Helper.matchSameRegOrICstOrSplat(State.MIs[1]->getOperand(2).getReg(),
2743 State.MIs[0]->getOperand(2).getReg());
2744 }
2745 case GICXXPred_MI_Predicate_GICombiner47: {
2746 return Helper.matchSameRegOrICstOrSplat(State.MIs[1]->getOperand(1).getReg(),
2747 State.MIs[0]->getOperand(2).getReg());
2748 }
2749 case GICXXPred_MI_Predicate_GICombiner48: {
2750 return Helper.matchSameRegOrICstOrSplat(State.MIs[0]->getOperand(1).getReg(),
2751 State.MIs[1]->getOperand(2).getReg());
2752 }
2753 case GICXXPred_MI_Predicate_GICombiner49: {
2754 return Helper.matchSameRegOrICstOrSplat(State.MIs[0]->getOperand(1).getReg(),
2755 State.MIs[1]->getOperand(1).getReg());
2756 }
2757 case GICXXPred_MI_Predicate_GICombiner50: {
2758 return Helper.matchFsubToFneg(*State.MIs[0]);
2759 }
2760 case GICXXPred_MI_Predicate_GICombiner51: {
2761 return Helper.matchCommuteConstantToRHS(*State.MIs[0]);
2762 }
2763 case GICXXPred_MI_Predicate_GICombiner52: {
2764 return Helper.matchCommuteFPConstantToRHS(*State.MIs[0]);
2765 }
2766 case GICXXPred_MI_Predicate_GICombiner53: {
2767 return Helper.isLegalOrBeforeLegalizer(
2768 {TargetOpcode::G_ANYEXT,
2769 {MRI.getType(State.MIs[0]->getOperand(0).getReg()),
2770 MRI.getType(State.MIs[0]->getOperand(1).getReg())}});
2771 }
2772 case GICXXPred_MI_Predicate_GICombiner54: {
2773 return Helper.isLegalOrBeforeLegalizer(
2774 {TargetOpcode::G_ZEXT,
2775 {MRI.getType(State.MIs[0]->getOperand(0).getReg()),
2776 MRI.getType(State.MIs[0]->getOperand(1).getReg())}});
2777 }
2778 case GICXXPred_MI_Predicate_GICombiner55: {
2779 return MRI.use_nodbg_empty(State.MIs[0]->getOperand(1).getReg()) &&
2780 Helper.isLegalOrBeforeLegalizer(
2781 {TargetOpcode::G_ADD,
2782 {MRI.getType(State.MIs[0]->getOperand(0).getReg())}});
2783 }
2784 case GICXXPred_MI_Predicate_GICombiner56: {
2785 return Helper.matchTruncUSatU(*State.MIs[0], *State.MIs[1]);
2786 }
2787 case GICXXPred_MI_Predicate_GICombiner57: {
2788 return Helper.matchTruncUSatUToFPTOUISat(*State.MIs[0], *State.MIs[1]);
2789 }
2790 case GICXXPred_MI_Predicate_GICombiner58: {
2791 return Helper.matchCountZeroToZeroPoison(*State.MIs[0],
2792 TargetOpcode::G_CTLZ, TargetOpcode::G_CTLZ_ZERO_POISON);
2793 }
2794 case GICXXPred_MI_Predicate_GICombiner59: {
2795 return Helper.matchCountZeroToZeroPoison(*State.MIs[0],
2796 TargetOpcode::G_CTTZ, TargetOpcode::G_CTTZ_ZERO_POISON);
2797 }
2798 case GICXXPred_MI_Predicate_GICombiner60: {
2799 return MRI.hasOneNonDBGUse(State.MIs[0]->getOperand(2).getReg()) &&
2800 MRI.hasOneNonDBGUse(State.MIs[1]->getOperand(1).getReg());
2801 }
2802 case GICXXPred_MI_Predicate_GICombiner61: {
2803 return MRI.hasOneNonDBGUse(State.MIs[0]->getOperand(1).getReg()) &&
2804 MRI.hasOneNonDBGUse(State.MIs[1]->getOperand(1).getReg());
2805 }
2806 case GICXXPred_MI_Predicate_GICombiner62: {
2807 return MRI.hasOneNonDBGUse(State.MIs[1]->getOperand(2).getReg()) &&
2808 MRI.hasOneNonDBGUse(State.MIs[0]->getOperand(2).getReg());
2809 }
2810 case GICXXPred_MI_Predicate_GICombiner63: {
2811 return MRI.getType(State.MIs[2]->getOperand(1).getReg()) ==
2812 MRI.getType(State.MIs[3]->getOperand(1).getReg()) &&
2813 Helper.isLegal({TargetOpcode::G_UAVGFLOOR,
2814 {MRI.getType(State.MIs[2]->getOperand(1).getReg())}});
2815 }
2816 case GICXXPred_MI_Predicate_GICombiner64: {
2817 return MRI.getType(State.MIs[2]->getOperand(1).getReg()) ==
2818 MRI.getType(State.MIs[3]->getOperand(1).getReg()) &&
2819 Helper.isLegal({TargetOpcode::G_SAVGFLOOR,
2820 {MRI.getType(State.MIs[2]->getOperand(1).getReg())}});
2821 }
2822 case GICXXPred_MI_Predicate_GICombiner65: {
2823 return MRI.getType(State.MIs[3]->getOperand(1).getReg()) ==
2824 MRI.getType(State.MIs[4]->getOperand(1).getReg()) &&
2825 Helper.isLegal({TargetOpcode::G_UAVGCEIL,
2826 {MRI.getType(State.MIs[3]->getOperand(1).getReg())}});
2827 }
2828 case GICXXPred_MI_Predicate_GICombiner66: {
2829 return MRI.getType(State.MIs[3]->getOperand(1).getReg()) ==
2830 MRI.getType(State.MIs[4]->getOperand(1).getReg()) &&
2831 Helper.isLegal({TargetOpcode::G_SAVGCEIL,
2832 {MRI.getType(State.MIs[3]->getOperand(1).getReg())}});
2833 }
2834 }
2835 llvm_unreachable("Unknown predicate");
2836 return false;
2837}
2838bool RISCVPreLegalizerCombinerImpl::testMOPredicate_MO(unsigned PredicateID, const MachineOperand & MO, const MatcherState &State) const {
2839 llvm_unreachable("Unknown predicate");
2840 return false;
2841}
2842bool RISCVPreLegalizerCombinerImpl::testImmPredicate_I64(unsigned PredicateID, int64_t Imm) const {
2843 llvm_unreachable("Unknown predicate");
2844 return false;
2845}
2846bool RISCVPreLegalizerCombinerImpl::testImmPredicate_APFloat(unsigned PredicateID, const APFloat & Imm) const {
2847 llvm_unreachable("Unknown predicate");
2848 return false;
2849}
2850bool RISCVPreLegalizerCombinerImpl::testImmPredicate_APInt(unsigned PredicateID, const APInt & Imm) const {
2851 llvm_unreachable("Unknown predicate");
2852 return false;
2853}
2854enum {
2855 GICXXPred_Simple_IsRule0Enabled = GICXXPred_Invalid + 1,
2856 GICXXPred_Simple_IsRule1Enabled,
2857 GICXXPred_Simple_IsRule2Enabled,
2858 GICXXPred_Simple_IsRule3Enabled,
2859 GICXXPred_Simple_IsRule4Enabled,
2860 GICXXPred_Simple_IsRule5Enabled,
2861 GICXXPred_Simple_IsRule6Enabled,
2862 GICXXPred_Simple_IsRule7Enabled,
2863 GICXXPred_Simple_IsRule8Enabled,
2864 GICXXPred_Simple_IsRule9Enabled,
2865 GICXXPred_Simple_IsRule10Enabled,
2866 GICXXPred_Simple_IsRule11Enabled,
2867 GICXXPred_Simple_IsRule12Enabled,
2868 GICXXPred_Simple_IsRule13Enabled,
2869 GICXXPred_Simple_IsRule14Enabled,
2870 GICXXPred_Simple_IsRule15Enabled,
2871 GICXXPred_Simple_IsRule16Enabled,
2872 GICXXPred_Simple_IsRule17Enabled,
2873 GICXXPred_Simple_IsRule18Enabled,
2874 GICXXPred_Simple_IsRule19Enabled,
2875 GICXXPred_Simple_IsRule20Enabled,
2876 GICXXPred_Simple_IsRule21Enabled,
2877 GICXXPred_Simple_IsRule22Enabled,
2878 GICXXPred_Simple_IsRule23Enabled,
2879 GICXXPred_Simple_IsRule24Enabled,
2880 GICXXPred_Simple_IsRule25Enabled,
2881 GICXXPred_Simple_IsRule26Enabled,
2882 GICXXPred_Simple_IsRule27Enabled,
2883 GICXXPred_Simple_IsRule28Enabled,
2884 GICXXPred_Simple_IsRule29Enabled,
2885 GICXXPred_Simple_IsRule30Enabled,
2886 GICXXPred_Simple_IsRule31Enabled,
2887 GICXXPred_Simple_IsRule32Enabled,
2888 GICXXPred_Simple_IsRule33Enabled,
2889 GICXXPred_Simple_IsRule34Enabled,
2890 GICXXPred_Simple_IsRule35Enabled,
2891 GICXXPred_Simple_IsRule36Enabled,
2892 GICXXPred_Simple_IsRule37Enabled,
2893 GICXXPred_Simple_IsRule38Enabled,
2894 GICXXPred_Simple_IsRule39Enabled,
2895 GICXXPred_Simple_IsRule40Enabled,
2896 GICXXPred_Simple_IsRule41Enabled,
2897 GICXXPred_Simple_IsRule42Enabled,
2898 GICXXPred_Simple_IsRule43Enabled,
2899 GICXXPred_Simple_IsRule44Enabled,
2900 GICXXPred_Simple_IsRule45Enabled,
2901 GICXXPred_Simple_IsRule46Enabled,
2902 GICXXPred_Simple_IsRule47Enabled,
2903 GICXXPred_Simple_IsRule48Enabled,
2904 GICXXPred_Simple_IsRule49Enabled,
2905 GICXXPred_Simple_IsRule50Enabled,
2906 GICXXPred_Simple_IsRule51Enabled,
2907 GICXXPred_Simple_IsRule52Enabled,
2908 GICXXPred_Simple_IsRule53Enabled,
2909 GICXXPred_Simple_IsRule54Enabled,
2910 GICXXPred_Simple_IsRule55Enabled,
2911 GICXXPred_Simple_IsRule56Enabled,
2912 GICXXPred_Simple_IsRule57Enabled,
2913 GICXXPred_Simple_IsRule58Enabled,
2914 GICXXPred_Simple_IsRule59Enabled,
2915 GICXXPred_Simple_IsRule60Enabled,
2916 GICXXPred_Simple_IsRule61Enabled,
2917 GICXXPred_Simple_IsRule62Enabled,
2918 GICXXPred_Simple_IsRule63Enabled,
2919 GICXXPred_Simple_IsRule64Enabled,
2920 GICXXPred_Simple_IsRule65Enabled,
2921 GICXXPred_Simple_IsRule66Enabled,
2922 GICXXPred_Simple_IsRule67Enabled,
2923 GICXXPred_Simple_IsRule68Enabled,
2924 GICXXPred_Simple_IsRule69Enabled,
2925 GICXXPred_Simple_IsRule70Enabled,
2926 GICXXPred_Simple_IsRule71Enabled,
2927 GICXXPred_Simple_IsRule72Enabled,
2928 GICXXPred_Simple_IsRule73Enabled,
2929 GICXXPred_Simple_IsRule74Enabled,
2930 GICXXPred_Simple_IsRule75Enabled,
2931 GICXXPred_Simple_IsRule76Enabled,
2932 GICXXPred_Simple_IsRule77Enabled,
2933 GICXXPred_Simple_IsRule78Enabled,
2934 GICXXPred_Simple_IsRule79Enabled,
2935 GICXXPred_Simple_IsRule80Enabled,
2936 GICXXPred_Simple_IsRule81Enabled,
2937 GICXXPred_Simple_IsRule82Enabled,
2938 GICXXPred_Simple_IsRule83Enabled,
2939 GICXXPred_Simple_IsRule84Enabled,
2940 GICXXPred_Simple_IsRule85Enabled,
2941 GICXXPred_Simple_IsRule86Enabled,
2942 GICXXPred_Simple_IsRule87Enabled,
2943 GICXXPred_Simple_IsRule88Enabled,
2944 GICXXPred_Simple_IsRule89Enabled,
2945 GICXXPred_Simple_IsRule90Enabled,
2946 GICXXPred_Simple_IsRule91Enabled,
2947 GICXXPred_Simple_IsRule92Enabled,
2948 GICXXPred_Simple_IsRule93Enabled,
2949 GICXXPred_Simple_IsRule94Enabled,
2950 GICXXPred_Simple_IsRule95Enabled,
2951 GICXXPred_Simple_IsRule96Enabled,
2952 GICXXPred_Simple_IsRule97Enabled,
2953 GICXXPred_Simple_IsRule98Enabled,
2954 GICXXPred_Simple_IsRule99Enabled,
2955 GICXXPred_Simple_IsRule100Enabled,
2956 GICXXPred_Simple_IsRule101Enabled,
2957 GICXXPred_Simple_IsRule102Enabled,
2958 GICXXPred_Simple_IsRule103Enabled,
2959 GICXXPred_Simple_IsRule104Enabled,
2960 GICXXPred_Simple_IsRule105Enabled,
2961 GICXXPred_Simple_IsRule106Enabled,
2962 GICXXPred_Simple_IsRule107Enabled,
2963 GICXXPred_Simple_IsRule108Enabled,
2964 GICXXPred_Simple_IsRule109Enabled,
2965 GICXXPred_Simple_IsRule110Enabled,
2966 GICXXPred_Simple_IsRule111Enabled,
2967 GICXXPred_Simple_IsRule112Enabled,
2968 GICXXPred_Simple_IsRule113Enabled,
2969 GICXXPred_Simple_IsRule114Enabled,
2970 GICXXPred_Simple_IsRule115Enabled,
2971 GICXXPred_Simple_IsRule116Enabled,
2972 GICXXPred_Simple_IsRule117Enabled,
2973 GICXXPred_Simple_IsRule118Enabled,
2974 GICXXPred_Simple_IsRule119Enabled,
2975 GICXXPred_Simple_IsRule120Enabled,
2976 GICXXPred_Simple_IsRule121Enabled,
2977 GICXXPred_Simple_IsRule122Enabled,
2978 GICXXPred_Simple_IsRule123Enabled,
2979 GICXXPred_Simple_IsRule124Enabled,
2980 GICXXPred_Simple_IsRule125Enabled,
2981 GICXXPred_Simple_IsRule126Enabled,
2982 GICXXPred_Simple_IsRule127Enabled,
2983 GICXXPred_Simple_IsRule128Enabled,
2984 GICXXPred_Simple_IsRule129Enabled,
2985 GICXXPred_Simple_IsRule130Enabled,
2986 GICXXPred_Simple_IsRule131Enabled,
2987 GICXXPred_Simple_IsRule132Enabled,
2988 GICXXPred_Simple_IsRule133Enabled,
2989 GICXXPred_Simple_IsRule134Enabled,
2990 GICXXPred_Simple_IsRule135Enabled,
2991 GICXXPred_Simple_IsRule136Enabled,
2992 GICXXPred_Simple_IsRule137Enabled,
2993 GICXXPred_Simple_IsRule138Enabled,
2994 GICXXPred_Simple_IsRule139Enabled,
2995 GICXXPred_Simple_IsRule140Enabled,
2996 GICXXPred_Simple_IsRule141Enabled,
2997 GICXXPred_Simple_IsRule142Enabled,
2998 GICXXPred_Simple_IsRule143Enabled,
2999 GICXXPred_Simple_IsRule144Enabled,
3000 GICXXPred_Simple_IsRule145Enabled,
3001 GICXXPred_Simple_IsRule146Enabled,
3002 GICXXPred_Simple_IsRule147Enabled,
3003 GICXXPred_Simple_IsRule148Enabled,
3004 GICXXPred_Simple_IsRule149Enabled,
3005 GICXXPred_Simple_IsRule150Enabled,
3006 GICXXPred_Simple_IsRule151Enabled,
3007 GICXXPred_Simple_IsRule152Enabled,
3008 GICXXPred_Simple_IsRule153Enabled,
3009 GICXXPred_Simple_IsRule154Enabled,
3010 GICXXPred_Simple_IsRule155Enabled,
3011 GICXXPred_Simple_IsRule156Enabled,
3012 GICXXPred_Simple_IsRule157Enabled,
3013 GICXXPred_Simple_IsRule158Enabled,
3014 GICXXPred_Simple_IsRule159Enabled,
3015 GICXXPred_Simple_IsRule160Enabled,
3016 GICXXPred_Simple_IsRule161Enabled,
3017 GICXXPred_Simple_IsRule162Enabled,
3018 GICXXPred_Simple_IsRule163Enabled,
3019 GICXXPred_Simple_IsRule164Enabled,
3020 GICXXPred_Simple_IsRule165Enabled,
3021 GICXXPred_Simple_IsRule166Enabled,
3022 GICXXPred_Simple_IsRule167Enabled,
3023 GICXXPred_Simple_IsRule168Enabled,
3024 GICXXPred_Simple_IsRule169Enabled,
3025 GICXXPred_Simple_IsRule170Enabled,
3026 GICXXPred_Simple_IsRule171Enabled,
3027 GICXXPred_Simple_IsRule172Enabled,
3028 GICXXPred_Simple_IsRule173Enabled,
3029 GICXXPred_Simple_IsRule174Enabled,
3030 GICXXPred_Simple_IsRule175Enabled,
3031 GICXXPred_Simple_IsRule176Enabled,
3032 GICXXPred_Simple_IsRule177Enabled,
3033 GICXXPred_Simple_IsRule178Enabled,
3034 GICXXPred_Simple_IsRule179Enabled,
3035 GICXXPred_Simple_IsRule180Enabled,
3036 GICXXPred_Simple_IsRule181Enabled,
3037 GICXXPred_Simple_IsRule182Enabled,
3038 GICXXPred_Simple_IsRule183Enabled,
3039 GICXXPred_Simple_IsRule184Enabled,
3040 GICXXPred_Simple_IsRule185Enabled,
3041 GICXXPred_Simple_IsRule186Enabled,
3042 GICXXPred_Simple_IsRule187Enabled,
3043 GICXXPred_Simple_IsRule188Enabled,
3044 GICXXPred_Simple_IsRule189Enabled,
3045 GICXXPred_Simple_IsRule190Enabled,
3046 GICXXPred_Simple_IsRule191Enabled,
3047 GICXXPred_Simple_IsRule192Enabled,
3048 GICXXPred_Simple_IsRule193Enabled,
3049 GICXXPred_Simple_IsRule194Enabled,
3050 GICXXPred_Simple_IsRule195Enabled,
3051 GICXXPred_Simple_IsRule196Enabled,
3052 GICXXPred_Simple_IsRule197Enabled,
3053 GICXXPred_Simple_IsRule198Enabled,
3054 GICXXPred_Simple_IsRule199Enabled,
3055 GICXXPred_Simple_IsRule200Enabled,
3056 GICXXPred_Simple_IsRule201Enabled,
3057 GICXXPred_Simple_IsRule202Enabled,
3058 GICXXPred_Simple_IsRule203Enabled,
3059 GICXXPred_Simple_IsRule204Enabled,
3060 GICXXPred_Simple_IsRule205Enabled,
3061 GICXXPred_Simple_IsRule206Enabled,
3062 GICXXPred_Simple_IsRule207Enabled,
3063 GICXXPred_Simple_IsRule208Enabled,
3064 GICXXPred_Simple_IsRule209Enabled,
3065 GICXXPred_Simple_IsRule210Enabled,
3066 GICXXPred_Simple_IsRule211Enabled,
3067 GICXXPred_Simple_IsRule212Enabled,
3068 GICXXPred_Simple_IsRule213Enabled,
3069 GICXXPred_Simple_IsRule214Enabled,
3070 GICXXPred_Simple_IsRule215Enabled,
3071 GICXXPred_Simple_IsRule216Enabled,
3072 GICXXPred_Simple_IsRule217Enabled,
3073 GICXXPred_Simple_IsRule218Enabled,
3074 GICXXPred_Simple_IsRule219Enabled,
3075 GICXXPred_Simple_IsRule220Enabled,
3076 GICXXPred_Simple_IsRule221Enabled,
3077 GICXXPred_Simple_IsRule222Enabled,
3078 GICXXPred_Simple_IsRule223Enabled,
3079 GICXXPred_Simple_IsRule224Enabled,
3080 GICXXPred_Simple_IsRule225Enabled,
3081 GICXXPred_Simple_IsRule226Enabled,
3082 GICXXPred_Simple_IsRule227Enabled,
3083 GICXXPred_Simple_IsRule228Enabled,
3084 GICXXPred_Simple_IsRule229Enabled,
3085 GICXXPred_Simple_IsRule230Enabled,
3086 GICXXPred_Simple_IsRule231Enabled,
3087 GICXXPred_Simple_IsRule232Enabled,
3088 GICXXPred_Simple_IsRule233Enabled,
3089 GICXXPred_Simple_IsRule234Enabled,
3090 GICXXPred_Simple_IsRule235Enabled,
3091 GICXXPred_Simple_IsRule236Enabled,
3092 GICXXPred_Simple_IsRule237Enabled,
3093 GICXXPred_Simple_IsRule238Enabled,
3094 GICXXPred_Simple_IsRule239Enabled,
3095 GICXXPred_Simple_IsRule240Enabled,
3096 GICXXPred_Simple_IsRule241Enabled,
3097 GICXXPred_Simple_IsRule242Enabled,
3098 GICXXPred_Simple_IsRule243Enabled,
3099 GICXXPred_Simple_IsRule244Enabled,
3100 GICXXPred_Simple_IsRule245Enabled,
3101 GICXXPred_Simple_IsRule246Enabled,
3102 GICXXPred_Simple_IsRule247Enabled,
3103 GICXXPred_Simple_IsRule248Enabled,
3104 GICXXPred_Simple_IsRule249Enabled,
3105 GICXXPred_Simple_IsRule250Enabled,
3106 GICXXPred_Simple_IsRule251Enabled,
3107 GICXXPred_Simple_IsRule252Enabled,
3108 GICXXPred_Simple_IsRule253Enabled,
3109 GICXXPred_Simple_IsRule254Enabled,
3110 GICXXPred_Simple_IsRule255Enabled,
3111 GICXXPred_Simple_IsRule256Enabled,
3112 GICXXPred_Simple_IsRule257Enabled,
3113 GICXXPred_Simple_IsRule258Enabled,
3114 GICXXPred_Simple_IsRule259Enabled,
3115 GICXXPred_Simple_IsRule260Enabled,
3116 GICXXPred_Simple_IsRule261Enabled,
3117 GICXXPred_Simple_IsRule262Enabled,
3118 GICXXPred_Simple_IsRule263Enabled,
3119 GICXXPred_Simple_IsRule264Enabled,
3120 GICXXPred_Simple_IsRule265Enabled,
3121 GICXXPred_Simple_IsRule266Enabled,
3122 GICXXPred_Simple_IsRule267Enabled,
3123 GICXXPred_Simple_IsRule268Enabled,
3124 GICXXPred_Simple_IsRule269Enabled,
3125 GICXXPred_Simple_IsRule270Enabled,
3126 GICXXPred_Simple_IsRule271Enabled,
3127 GICXXPred_Simple_IsRule272Enabled,
3128 GICXXPred_Simple_IsRule273Enabled,
3129 GICXXPred_Simple_IsRule274Enabled,
3130 GICXXPred_Simple_IsRule275Enabled,
3131 GICXXPred_Simple_IsRule276Enabled,
3132 GICXXPred_Simple_IsRule277Enabled,
3133 GICXXPred_Simple_IsRule278Enabled,
3134 GICXXPred_Simple_IsRule279Enabled,
3135 GICXXPred_Simple_IsRule280Enabled,
3136 GICXXPred_Simple_IsRule281Enabled,
3137 GICXXPred_Simple_IsRule282Enabled,
3138 GICXXPred_Simple_IsRule283Enabled,
3139 GICXXPred_Simple_IsRule284Enabled,
3140 GICXXPred_Simple_IsRule285Enabled,
3141 GICXXPred_Simple_IsRule286Enabled,
3142 GICXXPred_Simple_IsRule287Enabled,
3143 GICXXPred_Simple_IsRule288Enabled,
3144 GICXXPred_Simple_IsRule289Enabled,
3145 GICXXPred_Simple_IsRule290Enabled,
3146 GICXXPred_Simple_IsRule291Enabled,
3147 GICXXPred_Simple_IsRule292Enabled,
3148 GICXXPred_Simple_IsRule293Enabled,
3149 GICXXPred_Simple_IsRule294Enabled,
3150 GICXXPred_Simple_IsRule295Enabled,
3151 GICXXPred_Simple_IsRule296Enabled,
3152 GICXXPred_Simple_IsRule297Enabled,
3153 GICXXPred_Simple_IsRule298Enabled,
3154 GICXXPred_Simple_IsRule299Enabled,
3155 GICXXPred_Simple_IsRule300Enabled,
3156 GICXXPred_Simple_IsRule301Enabled,
3157 GICXXPred_Simple_IsRule302Enabled,
3158 GICXXPred_Simple_IsRule303Enabled,
3159 GICXXPred_Simple_IsRule304Enabled,
3160 GICXXPred_Simple_IsRule305Enabled,
3161 GICXXPred_Simple_IsRule306Enabled,
3162 GICXXPred_Simple_IsRule307Enabled,
3163 GICXXPred_Simple_IsRule308Enabled,
3164 GICXXPred_Simple_IsRule309Enabled,
3165 GICXXPred_Simple_IsRule310Enabled,
3166 GICXXPred_Simple_IsRule311Enabled,
3167 GICXXPred_Simple_IsRule312Enabled,
3168 GICXXPred_Simple_IsRule313Enabled,
3169 GICXXPred_Simple_IsRule314Enabled,
3170 GICXXPred_Simple_IsRule315Enabled,
3171 GICXXPred_Simple_IsRule316Enabled,
3172 GICXXPred_Simple_IsRule317Enabled,
3173 GICXXPred_Simple_IsRule318Enabled,
3174 GICXXPred_Simple_IsRule319Enabled,
3175 GICXXPred_Simple_IsRule320Enabled,
3176 GICXXPred_Simple_IsRule321Enabled,
3177 GICXXPred_Simple_IsRule322Enabled,
3178 GICXXPred_Simple_IsRule323Enabled,
3179 GICXXPred_Simple_IsRule324Enabled,
3180 GICXXPred_Simple_IsRule325Enabled,
3181 GICXXPred_Simple_IsRule326Enabled,
3182 GICXXPred_Simple_IsRule327Enabled,
3183 GICXXPred_Simple_IsRule328Enabled,
3184 GICXXPred_Simple_IsRule329Enabled,
3185 GICXXPred_Simple_IsRule330Enabled,
3186 GICXXPred_Simple_IsRule331Enabled,
3187 GICXXPred_Simple_IsRule332Enabled,
3188 GICXXPred_Simple_IsRule333Enabled,
3189 GICXXPred_Simple_IsRule334Enabled,
3190 GICXXPred_Simple_IsRule335Enabled,
3191 GICXXPred_Simple_IsRule336Enabled,
3192 GICXXPred_Simple_IsRule337Enabled,
3193 GICXXPred_Simple_IsRule338Enabled,
3194 GICXXPred_Simple_IsRule339Enabled,
3195};
3196
3197bool RISCVPreLegalizerCombinerImpl::testSimplePredicate(unsigned Predicate) const {
3198 return RuleConfig.isRuleEnabled(Predicate - GICXXPred_Invalid - 1);
3199}
3200// Custom renderers.
3201enum {
3202 GICR_Invalid,
3203};
3204RISCVPreLegalizerCombinerImpl::CustomRendererFn
3205RISCVPreLegalizerCombinerImpl::CustomRenderers[] = {
3206 nullptr, // GICR_Invalid
3207};
3208
3209bool RISCVPreLegalizerCombinerImpl::canMatchOpcode(unsigned Opc) const {
3210 switch (Opc) {
3211 case TargetOpcode::G_SADDE:
3212 case TargetOpcode::G_SSUBE:
3213 case TargetOpcode::G_UADDE:
3214 case TargetOpcode::G_USUBE:
3215 case TargetOpcode::G_FSHL:
3216 case TargetOpcode::G_FSHR:
3217 case TargetOpcode::G_INSERT_VECTOR_ELT:
3218 case TargetOpcode::G_SADDO:
3219 case TargetOpcode::G_SELECT:
3220 case TargetOpcode::G_SHUFFLE_VECTOR:
3221 case TargetOpcode::G_SMULFIX:
3222 case TargetOpcode::G_SMULFIXSAT:
3223 case TargetOpcode::G_SMULO:
3224 case TargetOpcode::G_UADDO:
3225 case TargetOpcode::G_UMULFIX:
3226 case TargetOpcode::G_UMULFIXSAT:
3227 case TargetOpcode::G_UMULO:
3228 case TargetOpcode::G_FCMP:
3229 case TargetOpcode::G_FMA:
3230 case TargetOpcode::G_FMAD:
3231 case TargetOpcode::G_ICMP:
3232 case TargetOpcode::G_SSUBO:
3233 case TargetOpcode::G_USUBO:
3234 case TargetOpcode::G_FADD:
3235 case TargetOpcode::G_ADD:
3236 case TargetOpcode::G_AND:
3237 case TargetOpcode::G_ASHR:
3238 case TargetOpcode::G_EXTRACT_VECTOR_ELT:
3239 case TargetOpcode::G_FMAXIMUM:
3240 case TargetOpcode::G_FMAXNUM:
3241 case TargetOpcode::G_FMAXNUM_IEEE:
3242 case TargetOpcode::G_FMINIMUM:
3243 case TargetOpcode::G_FMINNUM:
3244 case TargetOpcode::G_FMINNUM_IEEE:
3245 case TargetOpcode::G_FMUL:
3246 case TargetOpcode::G_FSUB:
3247 case TargetOpcode::G_LSHR:
3248 case TargetOpcode::G_MERGE_VALUES:
3249 case TargetOpcode::G_MUL:
3250 case TargetOpcode::G_OR:
3251 case TargetOpcode::G_PTR_ADD:
3252 case TargetOpcode::G_SADDSAT:
3253 case TargetOpcode::G_SDIV:
3254 case TargetOpcode::G_SEXT_INREG:
3255 case TargetOpcode::G_SHL:
3256 case TargetOpcode::G_SMAX:
3257 case TargetOpcode::G_SMIN:
3258 case TargetOpcode::G_SMULH:
3259 case TargetOpcode::G_SREM:
3260 case TargetOpcode::G_SUB:
3261 case TargetOpcode::G_UADDSAT:
3262 case TargetOpcode::G_UDIV:
3263 case TargetOpcode::G_UMAX:
3264 case TargetOpcode::G_UMIN:
3265 case TargetOpcode::G_UMULH:
3266 case TargetOpcode::G_UREM:
3267 case TargetOpcode::G_XOR:
3268 case TargetOpcode::G_FCOPYSIGN:
3269 case TargetOpcode::G_FDIV:
3270 case TargetOpcode::G_FMAXIMUMNUM:
3271 case TargetOpcode::G_FMINIMUMNUM:
3272 case TargetOpcode::G_FPOWI:
3273 case TargetOpcode::G_FREM:
3274 case TargetOpcode::G_ROTL:
3275 case TargetOpcode::G_ROTR:
3276 case TargetOpcode::G_SSHLSAT:
3277 case TargetOpcode::G_USHLSAT:
3278 case TargetOpcode::G_BUILD_VECTOR:
3279 case TargetOpcode::G_BITCAST:
3280 case TargetOpcode::G_BITREVERSE:
3281 case TargetOpcode::G_BUILD_VECTOR_TRUNC:
3282 case TargetOpcode::G_CONCAT_VECTORS:
3283 case TargetOpcode::G_CTLZ:
3284 case TargetOpcode::G_CTTZ:
3285 case TargetOpcode::G_FPTRUNC:
3286 case TargetOpcode::G_FREEZE:
3287 case TargetOpcode::G_INTTOPTR:
3288 case TargetOpcode::G_PHI:
3289 case TargetOpcode::G_PTRTOINT:
3290 case TargetOpcode::G_STORE:
3291 case TargetOpcode::G_TRUNC:
3292 case TargetOpcode::G_TRUNC_USAT_U:
3293 case TargetOpcode::G_ZEXT:
3294 case TargetOpcode::COPY:
3295 case TargetOpcode::G_ABS:
3296 case TargetOpcode::G_ANYEXT:
3297 case TargetOpcode::G_BSWAP:
3298 case TargetOpcode::G_CTLZ_ZERO_POISON:
3299 case TargetOpcode::G_CTPOP:
3300 case TargetOpcode::G_CTTZ_ZERO_POISON:
3301 case TargetOpcode::G_FABS:
3302 case TargetOpcode::G_FCANONICALIZE:
3303 case TargetOpcode::G_FCEIL:
3304 case TargetOpcode::G_FFLOOR:
3305 case TargetOpcode::G_FLOG2:
3306 case TargetOpcode::G_FNEARBYINT:
3307 case TargetOpcode::G_FNEG:
3308 case TargetOpcode::G_FPEXT:
3309 case TargetOpcode::G_FPTOSI:
3310 case TargetOpcode::G_FPTOUI:
3311 case TargetOpcode::G_FPTOUI_SAT:
3312 case TargetOpcode::G_FRINT:
3313 case TargetOpcode::G_FSQRT:
3314 case TargetOpcode::G_INTRINSIC_ROUND:
3315 case TargetOpcode::G_INTRINSIC_ROUNDEVEN:
3316 case TargetOpcode::G_INTRINSIC_TRUNC:
3317 case TargetOpcode::G_LOAD:
3318 case TargetOpcode::G_SEXT:
3319 case TargetOpcode::G_SEXTLOAD:
3320 case TargetOpcode::G_SITOFP:
3321 case TargetOpcode::G_UITOFP:
3322 case TargetOpcode::G_ZEXTLOAD:
3323 case TargetOpcode::G_BR:
3324 case TargetOpcode::G_UNMERGE_VALUES:
3325 return true;
3326 default:
3327 return false;
3328 }
3329}
3330
3331uint32_t RISCVPreLegalizerCombinerImpl::getRootFlagsToDrop() const {
3332 return MachineInstr::getPoisonGeneratingFlags();
3333}
3334
3335bool RISCVPreLegalizerCombinerImpl::tryCombineAll(MachineInstr &I) const {
3336 const PredicateBitset AvailableFeatures = getAvailableFeatures();
3337 State.MIs.clear();
3338 State.MIs.push_back(&I);
3339 if (executeMatchTable(*this, State, ExecInfo, B, getMatchTable(), Helper.getTII(), MRI, Helper.getTRI(), Helper.getRBI(), AvailableFeatures, /*CoverageInfo*/ nullptr)) {
3340 return true;
3341 }
3342
3343 return false;
3344}
3345
3346enum {
3347 GICXXCustomAction_GICombiner0 = GICXXCustomAction_Invalid + 1,
3348 GICXXCustomAction_GICombiner1,
3349 GICXXCustomAction_GICombiner2,
3350 GICXXCustomAction_GICombiner3,
3351 GICXXCustomAction_GICombiner4,
3352 GICXXCustomAction_GICombiner5,
3353 GICXXCustomAction_GICombiner6,
3354 GICXXCustomAction_GICombiner7,
3355 GICXXCustomAction_GICombiner8,
3356 GICXXCustomAction_GICombiner9,
3357 GICXXCustomAction_GICombiner10,
3358 GICXXCustomAction_GICombiner11,
3359 GICXXCustomAction_GICombiner12,
3360 GICXXCustomAction_GICombiner13,
3361 GICXXCustomAction_GICombiner14,
3362 GICXXCustomAction_GICombiner15,
3363 GICXXCustomAction_GICombiner16,
3364 GICXXCustomAction_GICombiner17,
3365 GICXXCustomAction_GICombiner18,
3366 GICXXCustomAction_GICombiner19,
3367 GICXXCustomAction_GICombiner20,
3368 GICXXCustomAction_GICombiner21,
3369 GICXXCustomAction_GICombiner22,
3370 GICXXCustomAction_GICombiner23,
3371 GICXXCustomAction_GICombiner24,
3372 GICXXCustomAction_GICombiner25,
3373 GICXXCustomAction_GICombiner26,
3374 GICXXCustomAction_GICombiner27,
3375 GICXXCustomAction_GICombiner28,
3376 GICXXCustomAction_GICombiner29,
3377 GICXXCustomAction_GICombiner30,
3378 GICXXCustomAction_GICombiner31,
3379 GICXXCustomAction_GICombiner32,
3380 GICXXCustomAction_GICombiner33,
3381 GICXXCustomAction_GICombiner34,
3382 GICXXCustomAction_GICombiner35,
3383 GICXXCustomAction_GICombiner36,
3384 GICXXCustomAction_GICombiner37,
3385 GICXXCustomAction_GICombiner38,
3386 GICXXCustomAction_GICombiner39,
3387 GICXXCustomAction_GICombiner40,
3388 GICXXCustomAction_GICombiner41,
3389 GICXXCustomAction_GICombiner42,
3390 GICXXCustomAction_GICombiner43,
3391 GICXXCustomAction_GICombiner44,
3392 GICXXCustomAction_GICombiner45,
3393 GICXXCustomAction_GICombiner46,
3394 GICXXCustomAction_GICombiner47,
3395 GICXXCustomAction_GICombiner48,
3396 GICXXCustomAction_GICombiner49,
3397 GICXXCustomAction_GICombiner50,
3398 GICXXCustomAction_GICombiner51,
3399 GICXXCustomAction_GICombiner52,
3400 GICXXCustomAction_GICombiner53,
3401 GICXXCustomAction_GICombiner54,
3402 GICXXCustomAction_GICombiner55,
3403 GICXXCustomAction_GICombiner56,
3404 GICXXCustomAction_GICombiner57,
3405 GICXXCustomAction_GICombiner58,
3406 GICXXCustomAction_GICombiner59,
3407 GICXXCustomAction_GICombiner60,
3408 GICXXCustomAction_GICombiner61,
3409 GICXXCustomAction_GICombiner62,
3410 GICXXCustomAction_GICombiner63,
3411 GICXXCustomAction_GICombiner64,
3412 GICXXCustomAction_GICombiner65,
3413 GICXXCustomAction_GICombiner66,
3414 GICXXCustomAction_GICombiner67,
3415 GICXXCustomAction_GICombiner68,
3416 GICXXCustomAction_GICombiner69,
3417 GICXXCustomAction_GICombiner70,
3418 GICXXCustomAction_GICombiner71,
3419 GICXXCustomAction_GICombiner72,
3420 GICXXCustomAction_GICombiner73,
3421 GICXXCustomAction_GICombiner74,
3422 GICXXCustomAction_GICombiner75,
3423 GICXXCustomAction_GICombiner76,
3424 GICXXCustomAction_GICombiner77,
3425 GICXXCustomAction_GICombiner78,
3426 GICXXCustomAction_GICombiner79,
3427 GICXXCustomAction_GICombiner80,
3428 GICXXCustomAction_GICombiner81,
3429 GICXXCustomAction_GICombiner82,
3430 GICXXCustomAction_GICombiner83,
3431 GICXXCustomAction_GICombiner84,
3432 GICXXCustomAction_GICombiner85,
3433 GICXXCustomAction_GICombiner86,
3434 GICXXCustomAction_GICombiner87,
3435 GICXXCustomAction_GICombiner88,
3436 GICXXCustomAction_GICombiner89,
3437 GICXXCustomAction_GICombiner90,
3438 GICXXCustomAction_GICombiner91,
3439 GICXXCustomAction_GICombiner92,
3440 GICXXCustomAction_GICombiner93,
3441 GICXXCustomAction_GICombiner94,
3442 GICXXCustomAction_GICombiner95,
3443 GICXXCustomAction_GICombiner96,
3444 GICXXCustomAction_GICombiner97,
3445 GICXXCustomAction_GICombiner98,
3446 GICXXCustomAction_GICombiner99,
3447 GICXXCustomAction_GICombiner100,
3448 GICXXCustomAction_GICombiner101,
3449 GICXXCustomAction_GICombiner102,
3450 GICXXCustomAction_GICombiner103,
3451 GICXXCustomAction_GICombiner104,
3452 GICXXCustomAction_GICombiner105,
3453 GICXXCustomAction_GICombiner106,
3454 GICXXCustomAction_GICombiner107,
3455 GICXXCustomAction_GICombiner108,
3456 GICXXCustomAction_GICombiner109,
3457 GICXXCustomAction_GICombiner110,
3458 GICXXCustomAction_GICombiner111,
3459 GICXXCustomAction_GICombiner112,
3460 GICXXCustomAction_GICombiner113,
3461 GICXXCustomAction_GICombiner114,
3462 GICXXCustomAction_GICombiner115,
3463 GICXXCustomAction_GICombiner116,
3464 GICXXCustomAction_GICombiner117,
3465 GICXXCustomAction_GICombiner118,
3466 GICXXCustomAction_GICombiner119,
3467 GICXXCustomAction_GICombiner120,
3468 GICXXCustomAction_GICombiner121,
3469 GICXXCustomAction_GICombiner122,
3470 GICXXCustomAction_GICombiner123,
3471 GICXXCustomAction_GICombiner124,
3472 GICXXCustomAction_GICombiner125,
3473 GICXXCustomAction_GICombiner126,
3474 GICXXCustomAction_GICombiner127,
3475 GICXXCustomAction_GICombiner128,
3476};
3477bool RISCVPreLegalizerCombinerImpl::runCustomAction(unsigned ApplyID, const MatcherState &State, NewMIVector &OutMIs) const {
3478 Helper.getBuilder().setInstrAndDebugLoc(*State.MIs[0]);
3479 switch(ApplyID) {
3480 case GICXXCustomAction_GICombiner0:{
3481 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3482 // Match Patterns
3483 if(![&](){return Helper.matchFoldAPlusC1MinusC2(*State.MIs[0], GIMatchData_matchinfo);}()) {
3484 return false;
3485 }
3486 // Apply Patterns
3487 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3488 return true;
3489 }
3490 case GICXXCustomAction_GICombiner1:{
3491 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3492 // Match Patterns
3493 if(![&](){return Helper.matchFoldC2MinusAPlusC1(*State.MIs[0], GIMatchData_matchinfo);}()) {
3494 return false;
3495 }
3496 // Apply Patterns
3497 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3498 return true;
3499 }
3500 case GICXXCustomAction_GICombiner2:{
3501 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3502 // Match Patterns
3503 if(![&](){return Helper.matchFoldAMinusC1MinusC2(*State.MIs[0], GIMatchData_matchinfo);}()) {
3504 return false;
3505 }
3506 // Apply Patterns
3507 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3508 return true;
3509 }
3510 case GICXXCustomAction_GICombiner3:{
3511 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3512 // Match Patterns
3513 if(![&](){return Helper.matchFoldC1Minus2MinusC2(*State.MIs[0], GIMatchData_matchinfo);}()) {
3514 return false;
3515 }
3516 // Apply Patterns
3517 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3518 return true;
3519 }
3520 case GICXXCustomAction_GICombiner4:{
3521 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3522 // Match Patterns
3523 if(![&](){return Helper.matchFoldAMinusC1PlusC2(*State.MIs[0], GIMatchData_matchinfo);}()) {
3524 return false;
3525 }
3526 // Apply Patterns
3527 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3528 return true;
3529 }
3530 case GICXXCustomAction_GICombiner5:{
3531 // Match Patterns
3532 if(![&](){return Helper.matchCombineCopy(*State.MIs[0]);}()) {
3533 return false;
3534 }
3535 // Apply Patterns
3536 Helper.applyCombineCopy(*State.MIs[0]);
3537 return true;
3538 }
3539 case GICXXCustomAction_GICombiner6:{
3540 unsigned GIMatchData_matchinfo;
3541 // Match Patterns
3542 if(![&](){return Helper.matchCombineMulToShl(*State.MIs[0], GIMatchData_matchinfo);}()) {
3543 return false;
3544 }
3545 // Apply Patterns
3546 Helper.applyCombineMulToShl(*State.MIs[0], GIMatchData_matchinfo);
3547 return true;
3548 }
3549 case GICXXCustomAction_GICombiner7:{
3550 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3551 // Match Patterns
3552 if(![&](){return Helper.matchCombineSubToAdd(*State.MIs[0], GIMatchData_matchinfo);}()) {
3553 return false;
3554 }
3555 // Apply Patterns
3556 Helper.applyBuildFnNoErase(*State.MIs[0], GIMatchData_matchinfo);
3557 return true;
3558 }
3559 case GICXXCustomAction_GICombiner8:{
3560 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3561 // Match Patterns
3562 if(![&](){return Helper.matchExtractVectorElementWithDifferentIndices(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
3563 return false;
3564 }
3565 // Apply Patterns
3566 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
3567 return true;
3568 }
3569 case GICXXCustomAction_GICombiner9:{
3570 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3571 // Match Patterns
3572 if(![&](){return Helper.matchExtractVectorElementWithBuildVector(*State.MIs[0], *State.MIs[1],
3573 GIMatchData_matchinfo);}()) {
3574 return false;
3575 }
3576 // Apply Patterns
3577 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3578 return true;
3579 }
3580 case GICXXCustomAction_GICombiner10:{
3581 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3582 // Match Patterns
3583 if(![&](){return Helper.matchExtractVectorElementWithBuildVectorTrunc(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
3584 return false;
3585 }
3586 // Apply Patterns
3587 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
3588 return true;
3589 }
3590 case GICXXCustomAction_GICombiner11:{
3591 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3592 // Match Patterns
3593 if(![&](){return Helper.matchExtractVectorElementWithShuffleVector(*State.MIs[0], *State.MIs[1],
3594 GIMatchData_matchinfo);}()) {
3595 return false;
3596 }
3597 // Apply Patterns
3598 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3599 return true;
3600 }
3601 case GICXXCustomAction_GICombiner12:{
3602 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3603 // Match Patterns
3604 if(![&](){return Helper.matchAddOfVScale(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
3605 return false;
3606 }
3607 // Apply Patterns
3608 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
3609 return true;
3610 }
3611 case GICXXCustomAction_GICombiner13:{
3612 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3613 // Match Patterns
3614 if(![&](){return Helper.matchMulOfVScale(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
3615 return false;
3616 }
3617 // Apply Patterns
3618 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
3619 return true;
3620 }
3621 case GICXXCustomAction_GICombiner14:{
3622 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3623 // Match Patterns
3624 if(![&](){return Helper.matchShlOfVScale(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
3625 return false;
3626 }
3627 // Apply Patterns
3628 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
3629 return true;
3630 }
3631 case GICXXCustomAction_GICombiner15:{
3632 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3633 // Match Patterns
3634 if(![&](){return Helper.matchSubOfVScale(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
3635 return false;
3636 }
3637 // Apply Patterns
3638 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
3639 return true;
3640 }
3641 case GICXXCustomAction_GICombiner16:{
3642 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3643 // Match Patterns
3644 if(![&](){return !isGuaranteedNotToBePoison(State.MIs[0]->getOperand(1).getReg(), MRI) && Helper.matchFreezeOfSingleMaybePoisonOperand(*State.MIs[0], GIMatchData_matchinfo);}()) {
3645 return false;
3646 }
3647 // Apply Patterns
3648 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3649 return true;
3650 }
3651 case GICXXCustomAction_GICombiner17:{
3652 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3653 // Match Patterns
3654 if(![&](){return Helper.matchTruncateOfExt(*State.MIs[0], *State.MIs[1], GIMatchData_matchinfo);}()) {
3655 return false;
3656 }
3657 // Apply Patterns
3658 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3659 return true;
3660 }
3661 case GICXXCustomAction_GICombiner18:{
3662 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3663 // Match Patterns
3664 if(![&](){return Helper.matchExtOfExt(*State.MIs[0], *State.MIs[1], GIMatchData_matchinfo);}()) {
3665 return false;
3666 }
3667 // Apply Patterns
3668 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3669 return true;
3670 }
3671 case GICXXCustomAction_GICombiner19:{
3672 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3673 // Match Patterns
3674 if(![&](){return Helper.matchRedundantSextInReg(*State.MIs[0], *State.MIs[1], GIMatchData_matchinfo);}()) {
3675 return false;
3676 }
3677 // Apply Patterns
3678 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3679 return true;
3680 }
3681 case GICXXCustomAction_GICombiner20:{
3682 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3683 // Match Patterns
3684 if(![&](){return Helper.matchCastOfSelect(*State.MIs[0], *State.MIs[1], GIMatchData_matchinfo);}()) {
3685 return false;
3686 }
3687 // Apply Patterns
3688 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3689 return true;
3690 }
3691 case GICXXCustomAction_GICombiner21:{
3692 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3693 // Match Patterns
3694 if(![&](){return Helper.matchCastOfBuildVector(*State.MIs[0], *State.MIs[1], GIMatchData_matchinfo);}()) {
3695 return false;
3696 }
3697 // Apply Patterns
3698 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3699 return true;
3700 }
3701 case GICXXCustomAction_GICombiner22:{
3702 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3703 // Match Patterns
3704 if(![&](){return Helper.matchNarrowBinop(*State.MIs[0], *State.MIs[1], GIMatchData_matchinfo);}()) {
3705 return false;
3706 }
3707 // Apply Patterns
3708 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3709 return true;
3710 }
3711 case GICXXCustomAction_GICombiner23:{
3712 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3713 // Match Patterns
3714 if(![&](){return Helper.matchCastOfInteger(*State.MIs[0], GIMatchData_matchinfo);}()) {
3715 return false;
3716 }
3717 // Apply Patterns
3718 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3719 return true;
3720 }
3721 case GICXXCustomAction_GICombiner24:{
3722 SmallVector<Register> GIMatchData_info;
3723 // Match Patterns
3724 if(![&](){return Helper.matchCombineInsertVecElts(*State.MIs[0], GIMatchData_info);}()) {
3725 return false;
3726 }
3727 // Apply Patterns
3728 Helper.applyCombineInsertVecElts(*State.MIs[0], GIMatchData_info);
3729 return true;
3730 }
3731 case GICXXCustomAction_GICombiner25:{
3732 Register GIMatchData_matchinfo;
3733 // Match Patterns
3734 if(![&](){return Helper.matchExtractVecEltBuildVec(*State.MIs[0], GIMatchData_matchinfo);}()) {
3735 return false;
3736 }
3737 // Apply Patterns
3738 Helper.applyExtractVecEltBuildVec(*State.MIs[0], GIMatchData_matchinfo);
3739 return true;
3740 }
3741 case GICXXCustomAction_GICombiner26:{
3742 SmallVector<std::pair<Register, MachineInstr*>> GIMatchData_matchinfo;
3743 // Match Patterns
3744 if(![&](){return Helper.matchExtractAllEltsFromBuildVector(*State.MIs[0], GIMatchData_matchinfo);}()) {
3745 return false;
3746 }
3747 // Apply Patterns
3748 Helper.applyExtractAllEltsFromBuildVector(*State.MIs[0], GIMatchData_matchinfo);
3749 return true;
3750 }
3751 case GICXXCustomAction_GICombiner27:{
3752 PreferredTuple GIMatchData_matchinfo;
3753 // Match Patterns
3754 if(![&](){return Helper.matchCombineExtendingLoads(*State.MIs[0], GIMatchData_matchinfo);}()) {
3755 return false;
3756 }
3757 // Apply Patterns
3758 Helper.applyCombineExtendingLoads(*State.MIs[0], GIMatchData_matchinfo);
3759 return true;
3760 }
3761 case GICXXCustomAction_GICombiner28:{
3762 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3763 // Match Patterns
3764 if(![&](){return Helper.matchCombineLoadWithAndMask(*State.MIs[0], GIMatchData_matchinfo);}()) {
3765 return false;
3766 }
3767 // Apply Patterns
3768 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3769 return true;
3770 }
3771 case GICXXCustomAction_GICombiner29:{
3772 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3773 // Match Patterns
3774 if(![&](){return Helper.matchCombineExtractedVectorLoad(*State.MIs[0], GIMatchData_matchinfo);}()) {
3775 return false;
3776 }
3777 // Apply Patterns
3778 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3779 return true;
3780 }
3781 case GICXXCustomAction_GICombiner30:{
3782 // Apply Patterns
3783 Helper.replaceInstWithFConstant(*State.MIs[0]->getOperand(0).getParent(), 0.0);
3784 return true;
3785 }
3786 case GICXXCustomAction_GICombiner31:{
3787 // Apply Patterns
3788 Helper.replaceInstWithConstant(*State.MIs[0]->getOperand(0).getParent(), 0);
3789 return true;
3790 }
3791 case GICXXCustomAction_GICombiner32:{
3792 // Apply Patterns
3793 Helper.replaceInstWithConstant(*State.MIs[0]->getOperand(0).getParent(), -1);
3794 return true;
3795 }
3796 case GICXXCustomAction_GICombiner33:{
3797 Register GIMatchData_matchinfo;
3798 // Match Patterns
3799 if(![&](){return Helper.matchCombineAnyExtTrunc(*State.MIs[0], GIMatchData_matchinfo);}()) {
3800 return false;
3801 }
3802 // Apply Patterns
3803 Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo);
3804 return true;
3805 }
3806 case GICXXCustomAction_GICombiner34:{
3807 Register GIMatchData_matchinfo;
3808 // Match Patterns
3809 if(![&](){return Helper.matchBuildVectorIdentityFold(*State.MIs[0], GIMatchData_matchinfo);}()) {
3810 return false;
3811 }
3812 // Apply Patterns
3813 Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo);
3814 return true;
3815 }
3816 case GICXXCustomAction_GICombiner35:{
3817 Register GIMatchData_matchinfo;
3818 // Match Patterns
3819 if(![&](){return Helper.matchTruncBuildVectorFold(*State.MIs[0], GIMatchData_matchinfo);}()) {
3820 return false;
3821 }
3822 // Apply Patterns
3823 Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo);
3824 return true;
3825 }
3826 case GICXXCustomAction_GICombiner36:{
3827 Register GIMatchData_matchinfo;
3828 // Match Patterns
3829 if(![&](){return Helper.matchTruncLshrBuildVectorFold(*State.MIs[0], GIMatchData_matchinfo);}()) {
3830 return false;
3831 }
3832 // Apply Patterns
3833 Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo);
3834 return true;
3835 }
3836 case GICXXCustomAction_GICombiner37:{
3837 MachineInstr* GIMatchData_matchinfo;
3838 // Match Patterns
3839 if(![&](){return Helper.matchExtendThroughPhis(*State.MIs[0], GIMatchData_matchinfo);}()) {
3840 return false;
3841 }
3842 // Apply Patterns
3843 Helper.applyExtendThroughPhis(*State.MIs[0], GIMatchData_matchinfo);
3844 return true;
3845 }
3846 case GICXXCustomAction_GICombiner38:{
3847 InstructionStepsMatchInfo GIMatchData_info;
3848 // Match Patterns
3849 if(![&](){return Helper.matchHoistLogicOpWithSameOpcodeHands(*State.MIs[0], GIMatchData_info);}()) {
3850 return false;
3851 }
3852 // Apply Patterns
3853 Helper.applyBuildInstructionSteps(*State.MIs[0], GIMatchData_info);
3854 return true;
3855 }
3856 case GICXXCustomAction_GICombiner39:{
3857 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3858 // Match Patterns
3859 if(![&](){return Helper.matchShiftsTooBig(*State.MIs[0], GIMatchData_matchinfo);}()) {
3860 return false;
3861 }
3862 // Apply Patterns
3863 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3864 return true;
3865 }
3866 case GICXXCustomAction_GICombiner40:{
3867 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3868 // Match Patterns
3869 if(![&](){return Helper.matchReassocPtrAdd(*State.MIs[0], GIMatchData_matchinfo);}()) {
3870 return false;
3871 }
3872 // Apply Patterns
3873 Helper.applyBuildFnNoErase(*State.MIs[0], GIMatchData_matchinfo);
3874 return true;
3875 }
3876 case GICXXCustomAction_GICombiner41:{
3877 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3878 // Match Patterns
3879 if(![&](){return Helper.matchReassocCommBinOp(*State.MIs[0], GIMatchData_matchinfo);}()) {
3880 return false;
3881 }
3882 // Apply Patterns
3883 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3884 return true;
3885 }
3886 case GICXXCustomAction_GICombiner42:{
3887 PtrAddChain GIMatchData_matchinfo;
3888 // Match Patterns
3889 if(![&](){return Helper.matchPtrAddImmedChain(*State.MIs[0], GIMatchData_matchinfo);}()) {
3890 return false;
3891 }
3892 // Apply Patterns
3893 Helper.applyPtrAddImmedChain(*State.MIs[0], GIMatchData_matchinfo);
3894 return true;
3895 }
3896 case GICXXCustomAction_GICombiner43:{
3897 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3898 // Match Patterns
3899 if(![&](){return Helper.matchCanonicalizeICmp(*State.MIs[0], GIMatchData_matchinfo);}()) {
3900 return false;
3901 }
3902 // Apply Patterns
3903 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3904 return true;
3905 }
3906 case GICXXCustomAction_GICombiner44:{
3907 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3908 // Match Patterns
3909 if(![&](){return Helper.matchCanonicalizeFCmp(*State.MIs[0], GIMatchData_matchinfo);}()) {
3910 return false;
3911 }
3912 // Apply Patterns
3913 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3914 return true;
3915 }
3916 case GICXXCustomAction_GICombiner45:{
3917 int64_t GIMatchData_matchinfo;
3918 // Match Patterns
3919 if(![&](){return Helper.matchICmpToTrueFalseKnownBits(*State.MIs[0], GIMatchData_matchinfo);}()) {
3920 return false;
3921 }
3922 // Apply Patterns
3923 Helper.replaceInstWithConstant(*State.MIs[0], GIMatchData_matchinfo);
3924 return true;
3925 }
3926 case GICXXCustomAction_GICombiner46:{
3927 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3928 // Match Patterns
3929 if(![&](){return Helper.matchICmpToLHSKnownBits(*State.MIs[0], GIMatchData_info);}()) {
3930 return false;
3931 }
3932 // Apply Patterns
3933 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3934 return true;
3935 }
3936 case GICXXCustomAction_GICombiner47:{
3937 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3938 // Match Patterns
3939 if(![&](){return Helper.matchRedundantBinOpInEquality(*State.MIs[0], GIMatchData_info);}()) {
3940 return false;
3941 }
3942 // Apply Patterns
3943 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3944 return true;
3945 }
3946 case GICXXCustomAction_GICombiner48:{
3947 std::tuple<Register, int64_t> GIMatchData_info;
3948 // Match Patterns
3949 if(![&](){return Helper.matchAshrShlToSextInreg(*State.MIs[0], GIMatchData_info);}()) {
3950 return false;
3951 }
3952 // Apply Patterns
3953 Helper.applyAshShlToSextInreg(*State.MIs[0], GIMatchData_info);
3954 return true;
3955 }
3956 case GICXXCustomAction_GICombiner49:{
3957 std::tuple<Register, unsigned> GIMatchData_matchinfo;
3958 // Match Patterns
3959 if(![&](){return Helper.matchSextInRegOfLoad(*State.MIs[0], GIMatchData_matchinfo);}()) {
3960 return false;
3961 }
3962 // Apply Patterns
3963 Helper.applySextInRegOfLoad(*State.MIs[0], GIMatchData_matchinfo);
3964 return true;
3965 }
3966 case GICXXCustomAction_GICombiner50:{
3967 RegisterImmPair GIMatchData_matchinfo;
3968 // Match Patterns
3969 if(![&](){return Helper.matchCombineShlOfExtend(*State.MIs[0], GIMatchData_matchinfo);}()) {
3970 return false;
3971 }
3972 // Apply Patterns
3973 Helper.applyCombineShlOfExtend(*State.MIs[0], GIMatchData_matchinfo);
3974 return true;
3975 }
3976 case GICXXCustomAction_GICombiner51:{
3977 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3978 // Match Patterns
3979 if(![&](){return Helper.matchNarrowBinopFeedingAnd(*State.MIs[0], GIMatchData_matchinfo);}()) {
3980 return false;
3981 }
3982 // Apply Patterns
3983 Helper.applyBuildFnNoErase(*State.MIs[0], GIMatchData_matchinfo);
3984 return true;
3985 }
3986 case GICXXCustomAction_GICombiner52:{
3987 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3988 // Match Patterns
3989 if(![&](){return Helper.matchSelectIMinMax(State.MIs[0]->getOperand(0), GIMatchData_info);}()) {
3990 return false;
3991 }
3992 // Apply Patterns
3993 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_info);
3994 return true;
3995 }
3996 case GICXXCustomAction_GICombiner53:{
3997 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3998 // Match Patterns
3999 if(![&](){return Helper.matchSelect(*State.MIs[0], GIMatchData_matchinfo);}()) {
4000 return false;
4001 }
4002 // Apply Patterns
4003 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4004 return true;
4005 }
4006 case GICXXCustomAction_GICombiner54:{
4007 // Match Patterns
4008 if(![&](){LLT SrcTy = MRI.getType(State.MIs[3]->getOperand(1).getReg());
4009 return State.MIs[0]->getOperand(2).getImm() <= SrcTy.getScalarSizeInBits() &&
4010 MRI.getType(State.MIs[1]->getOperand(1).getReg()).getScalarType() ==
4011 MRI.getType(State.MIs[2]->getOperand(2).getReg()).getScalarType() &&
4012 VT->computeNumSignBits(State.MIs[3]->getOperand(1).getReg()) >=
4013 (SrcTy.getScalarSizeInBits() - State.MIs[0]->getOperand(2).getImm() + 1);}()) {
4014 return false;
4015 }
4016 // Apply Patterns
4017 auto SExt1 = Helper.getBuilder().buildSExt(MRI.getType(State.MIs[2]->getOperand(2).getReg()), State.MIs[3]->getOperand(1).getReg());
4018 auto Unmerge = Helper.getBuilder().buildUnmerge(MRI.getType(State.MIs[1]->getOperand(1).getReg()), SExt1);
4019 unsigned UnmergeDef = State.MIs[1]->getOperand(1).getReg() == State.MIs[2]->getOperand(0).getReg() ? 0 : 1;
4020 Helper.getBuilder().buildSExt(State.MIs[0]->getOperand(0).getReg(), Unmerge.getReg(UnmergeDef));
4021 State.MIs[0]->eraseFromParent();
4022 return true;
4023 }
4024 case GICXXCustomAction_GICombiner55:{
4025 Register GIMatchData_matchinfo;
4026 // Match Patterns
4027 if(![&](){return Helper.matchRedundantAnd(*State.MIs[0], GIMatchData_matchinfo);}()) {
4028 return false;
4029 }
4030 // Apply Patterns
4031 Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo);
4032 return true;
4033 }
4034 case GICXXCustomAction_GICombiner56:{
4035 Register GIMatchData_matchinfo;
4036 // Match Patterns
4037 if(![&](){return Helper.matchRedundantOr(*State.MIs[0], GIMatchData_matchinfo);}()) {
4038 return false;
4039 }
4040 // Apply Patterns
4041 Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo);
4042 return true;
4043 }
4044 case GICXXCustomAction_GICombiner57:{
4045 // Match Patterns
4046 if(![&](){return Helper.matchOperandIsKnownToBeAPowerOfTwo(State.MIs[0]->getOperand(2),
4047 /*OrNegative=*/false,
4048 /*OrZero=*/true);}()) {
4049 return false;
4050 }
4051 // Apply Patterns
4052 Helper.applySimplifyURemByPow2(*State.MIs[0]);
4053 return true;
4054 }
4055 case GICXXCustomAction_GICombiner58:{
4056 Register GIMatchData_matchinfo;
4057 // Match Patterns
4058 if(![&](){return Helper.matchCombineZextTrunc(*State.MIs[0], GIMatchData_matchinfo);}()) {
4059 return false;
4060 }
4061 // Apply Patterns
4062 Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo);
4063 return true;
4064 }
4065 case GICXXCustomAction_GICombiner59:{
4066 // Match Patterns
4067 if(![&](){unsigned BitWidth = MRI.getType(State.MIs[0]->getOperand(1).getReg()).getScalarSizeInBits();
4068 return Helper.getValueTracking()->maskedValueIsZero(State.MIs[0]->getOperand(1).getReg(),
4069 APInt::getOneBitSet(BitWidth, State.MIs[0]->getOperand(2).getImm() - 1));}()) {
4070 return false;
4071 }
4072 // Apply Patterns
4073 Helper.getBuilder().setInstrAndDebugLoc(*State.MIs[0]);
4074 Helper.getBuilder().buildZExtInReg(State.MIs[0]->getOperand(0), State.MIs[0]->getOperand(1), State.MIs[0]->getOperand(2).getImm());
4075 State.MIs[0]->eraseFromParent();
4076 return true;
4077 }
4078 case GICXXCustomAction_GICombiner60:{
4079 std::pair<MachineInstr*, LLT> GIMatchData_matchinfo;
4080 // Match Patterns
4081 if(![&](){return Helper.matchCombineTruncOfShift(*State.MIs[0], GIMatchData_matchinfo);}()) {
4082 return false;
4083 }
4084 // Apply Patterns
4085 Helper.applyCombineTruncOfShift(*State.MIs[0], GIMatchData_matchinfo);
4086 return true;
4087 }
4088 case GICXXCustomAction_GICombiner61:{
4089 SmallVector<Register> GIMatchData_info;
4090 // Match Patterns
4091 if(![&](){return Helper.matchNotCmp(*State.MIs[0], GIMatchData_info);}()) {
4092 return false;
4093 }
4094 // Apply Patterns
4095 Helper.applyNotCmp(*State.MIs[0], GIMatchData_info);
4096 return true;
4097 }
4098 case GICXXCustomAction_GICombiner62:{
4099 MachineInstr * GIMatchData_matchinfo;
4100 // Match Patterns
4101 if(![&](){return Helper.matchOptBrCondByInvertingCond(*State.MIs[0], GIMatchData_matchinfo);}()) {
4102 return false;
4103 }
4104 // Apply Patterns
4105 Helper.applyOptBrCondByInvertingCond(*State.MIs[0], GIMatchData_matchinfo);
4106 return true;
4107 }
4108 case GICXXCustomAction_GICombiner63:{
4109 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4110 // Match Patterns
4111 if(![&](){return Helper.matchConstantFoldFPUnary(*State.MIs[0], GIMatchData_matchinfo);}()) {
4112 return false;
4113 }
4114 // Apply Patterns
4115 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4116 return true;
4117 }
4118 case GICXXCustomAction_GICombiner64:{
4119 APInt GIMatchData_info;
4120 // Match Patterns
4121 if(![&](){LLT DstTy = MRI.getType(State.MIs[0]->getOperand(0).getReg());
4122 APInt NewCst = State.MIs[2]->getOperand(1).getCImm()->getValue().zextOrTrunc(
4123 DstTy.getSizeInBits());
4124 NewCst += State.MIs[3]->getOperand(1).getCImm()->getValue().sextOrTrunc(
4125 DstTy.getSizeInBits());
4126 GIMatchData_info = NewCst;
4127 return true;}()) {
4128 return false;
4129 }
4130 // Apply Patterns
4131 Helper.getBuilder().setInstrAndDebugLoc(*State.MIs[0]);
4132 Helper.getBuilder().buildConstant(State.MIs[0]->getOperand(0), GIMatchData_info);
4133 State.MIs[0]->eraseFromParent();
4134 return true;
4135 }
4136 case GICXXCustomAction_GICombiner65:{
4137 std::function<void(MachineIRBuilder &)> GIMatchData_info;
4138 // Match Patterns
4139 if(![&](){return Helper.matchOverlappingAnd(*State.MIs[0], GIMatchData_info);}()) {
4140 return false;
4141 }
4142 // Apply Patterns
4143 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
4144 return true;
4145 }
4146 case GICXXCustomAction_GICombiner66:{
4147 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4148 // Match Patterns
4149 if(![&](){return Helper.matchMulOBy0(*State.MIs[0], GIMatchData_matchinfo);}()) {
4150 return false;
4151 }
4152 // Apply Patterns
4153 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4154 return true;
4155 }
4156 case GICXXCustomAction_GICombiner67:{
4157 // Match Patterns
4158 if(![&](){return Helper.matchFPowIExpansion(*State.MIs[0], State.MIs[1]->getOperand(1).getCImm()->getSExtValue());}()) {
4159 return false;
4160 }
4161 // Apply Patterns
4162 Helper.applyExpandFPowI(*State.MIs[0], State.MIs[1]->getOperand(1).getCImm()->getSExtValue());
4163 return true;
4164 }
4165 case GICXXCustomAction_GICombiner68:{
4166 std::pair<Register, Register> GIMatchData_matchinfo;
4167 // Match Patterns
4168 if(![&](){return Helper.matchXorOfAndWithSameReg(*State.MIs[0], GIMatchData_matchinfo);}()) {
4169 return false;
4170 }
4171 // Apply Patterns
4172 Helper.applyXorOfAndWithSameReg(*State.MIs[0], GIMatchData_matchinfo);
4173 return true;
4174 }
4175 case GICXXCustomAction_GICombiner69:{
4176 RegisterImmPair GIMatchData_matchinfo;
4177 // Match Patterns
4178 if(![&](){return Helper.matchShiftImmedChain(*State.MIs[0], GIMatchData_matchinfo);}()) {
4179 return false;
4180 }
4181 // Apply Patterns
4182 Helper.applyShiftImmedChain(*State.MIs[0], GIMatchData_matchinfo);
4183 return true;
4184 }
4185 case GICXXCustomAction_GICombiner70:{
4186 ShiftOfShiftedLogic GIMatchData_matchinfo;
4187 // Match Patterns
4188 if(![&](){return Helper.matchShiftOfShiftedLogic(*State.MIs[0], GIMatchData_matchinfo);}()) {
4189 return false;
4190 }
4191 // Apply Patterns
4192 Helper.applyShiftOfShiftedLogic(*State.MIs[0], GIMatchData_matchinfo);
4193 return true;
4194 }
4195 case GICXXCustomAction_GICombiner71:{
4196 std::function<void(MachineIRBuilder &)> GIMatchData_info;
4197 // Match Patterns
4198 if(![&](){return Helper.matchLoadOrCombine(*State.MIs[0], GIMatchData_info);}()) {
4199 return false;
4200 }
4201 // Apply Patterns
4202 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
4203 return true;
4204 }
4205 case GICXXCustomAction_GICombiner72:{
4206 MachineInstr * GIMatchData_matchinfo;
4207 // Match Patterns
4208 if(![&](){return Helper.matchCombineDivRem(*State.MIs[0], GIMatchData_matchinfo);}()) {
4209 return false;
4210 }
4211 // Apply Patterns
4212 Helper.applyCombineDivRem(*State.MIs[0], GIMatchData_matchinfo);
4213 return true;
4214 }
4215 case GICXXCustomAction_GICombiner73:{
4216 std::function<void(MachineIRBuilder &)> GIMatchData_info;
4217 // Match Patterns
4218 if(![&](){return Helper.matchOrShiftToFunnelShift(*State.MIs[0], false, GIMatchData_info);}()) {
4219 return false;
4220 }
4221 // Apply Patterns
4222 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
4223 return true;
4224 }
4225 case GICXXCustomAction_GICombiner74:{
4226 // Match Patterns
4227 if(![&](){return Helper.matchConstantLargerBitWidth(*State.MIs[0], 3);}()) {
4228 return false;
4229 }
4230 // Apply Patterns
4231 Helper.applyFunnelShiftConstantModulo(*State.MIs[0]);
4232 return true;
4233 }
4234 case GICXXCustomAction_GICombiner75:{
4235 std::function<void(MachineIRBuilder &)> GIMatchData_info;
4236 // Match Patterns
4237 if(![&](){return Helper.matchBitfieldExtractFromSExtInReg(*State.MIs[0], GIMatchData_info);}()) {
4238 return false;
4239 }
4240 // Apply Patterns
4241 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
4242 return true;
4243 }
4244 case GICXXCustomAction_GICombiner76:{
4245 std::function<void(MachineIRBuilder &)> GIMatchData_info;
4246 // Match Patterns
4247 if(![&](){return Helper.matchBitfieldExtractFromAnd(*State.MIs[0], GIMatchData_info);}()) {
4248 return false;
4249 }
4250 // Apply Patterns
4251 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
4252 return true;
4253 }
4254 case GICXXCustomAction_GICombiner77:{
4255 std::function<void(MachineIRBuilder &)> GIMatchData_info;
4256 // Match Patterns
4257 if(![&](){return Helper.matchBitfieldExtractFromShr(*State.MIs[0], GIMatchData_info);}()) {
4258 return false;
4259 }
4260 // Apply Patterns
4261 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
4262 return true;
4263 }
4264 case GICXXCustomAction_GICombiner78:{
4265 std::function<void(MachineIRBuilder &)> GIMatchData_info;
4266 // Match Patterns
4267 if(![&](){return Helper.matchBitfieldExtractFromShrAnd(*State.MIs[0], GIMatchData_info);}()) {
4268 return false;
4269 }
4270 // Apply Patterns
4271 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
4272 return true;
4273 }
4274 case GICXXCustomAction_GICombiner79:{
4275 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4276 // Match Patterns
4277 if(![&](){return Helper.matchConstantFoldBinOp(*State.MIs[0], GIMatchData_matchinfo);}()) {
4278 return false;
4279 }
4280 // Apply Patterns
4281 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4282 return true;
4283 }
4284 case GICXXCustomAction_GICombiner80:{
4285 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4286 // Match Patterns
4287 if(![&](){return Helper.matchConstantFoldFPBinOp(*State.MIs[0], GIMatchData_matchinfo);}()) {
4288 return false;
4289 }
4290 // Apply Patterns
4291 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4292 return true;
4293 }
4294 case GICXXCustomAction_GICombiner81:{
4295 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4296 // Match Patterns
4297 if(![&](){return Helper.matchConstantFoldFMA(*State.MIs[0], GIMatchData_matchinfo);}()) {
4298 return false;
4299 }
4300 // Apply Patterns
4301 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4302 return true;
4303 }
4304 case GICXXCustomAction_GICombiner82:{
4305 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4306 // Match Patterns
4307 if(![&](){return Helper.matchConstantFoldCastOp(*State.MIs[0], GIMatchData_matchinfo);}()) {
4308 return false;
4309 }
4310 // Apply Patterns
4311 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4312 return true;
4313 }
4314 case GICXXCustomAction_GICombiner83:{
4315 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4316 // Match Patterns
4317 if(![&](){return Helper.matchConstantFoldUnaryIntOp(*State.MIs[0], GIMatchData_matchinfo);}()) {
4318 return false;
4319 }
4320 // Apply Patterns
4321 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4322 return true;
4323 }
4324 case GICXXCustomAction_GICombiner84:{
4325 // Match Patterns
4326 if(![&](){return Helper.matchUMulHToLShr(*State.MIs[0]);}()) {
4327 return false;
4328 }
4329 // Apply Patterns
4330 Helper.applyUMulHToLShr(*State.MIs[0]);
4331 return true;
4332 }
4333 case GICXXCustomAction_GICombiner85:{
4334 std::function<void(MachineIRBuilder &)> GIMatchData_info;
4335 // Match Patterns
4336 if(![&](){return Helper.matchAndOrDisjointMask(*State.MIs[0], GIMatchData_info);}()) {
4337 return false;
4338 }
4339 // Apply Patterns
4340 Helper.applyBuildFnNoErase(*State.MIs[0], GIMatchData_info);
4341 return true;
4342 }
4343 case GICXXCustomAction_GICombiner86:{
4344 std::function<void(MachineIRBuilder &)> GIMatchData_info;
4345 // Match Patterns
4346 if(![&](){return Helper.matchCombineFAddFMulToFMadOrFMA(*State.MIs[0],
4347 GIMatchData_info);}()) {
4348 return false;
4349 }
4350 // Apply Patterns
4351 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
4352 return true;
4353 }
4354 case GICXXCustomAction_GICombiner87:{
4355 std::function<void(MachineIRBuilder &)> GIMatchData_info;
4356 // Match Patterns
4357 if(![&](){return Helper.matchCombineFAddFpExtFMulToFMadOrFMA(*State.MIs[0],
4358 GIMatchData_info);}()) {
4359 return false;
4360 }
4361 // Apply Patterns
4362 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
4363 return true;
4364 }
4365 case GICXXCustomAction_GICombiner88:{
4366 std::function<void(MachineIRBuilder &)> GIMatchData_info;
4367 // Match Patterns
4368 if(![&](){return Helper.matchCombineFAddFMAFMulToFMadOrFMA(*State.MIs[0],
4369 GIMatchData_info);}()) {
4370 return false;
4371 }
4372 // Apply Patterns
4373 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
4374 return true;
4375 }
4376 case GICXXCustomAction_GICombiner89:{
4377 std::function<void(MachineIRBuilder &)> GIMatchData_info;
4378 // Match Patterns
4379 if(![&](){return Helper.matchCombineFAddFpExtFMulToFMadOrFMAAggressive(
4380 *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_GICombiner90:{
4388 std::function<void(MachineIRBuilder &)> GIMatchData_info;
4389 // Match Patterns
4390 if(![&](){return Helper.matchCombineFSubFMulToFMadOrFMA(*State.MIs[0],
4391 GIMatchData_info);}()) {
4392 return false;
4393 }
4394 // Apply Patterns
4395 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
4396 return true;
4397 }
4398 case GICXXCustomAction_GICombiner91:{
4399 std::function<void(MachineIRBuilder &)> GIMatchData_info;
4400 // Match Patterns
4401 if(![&](){return Helper.matchCombineFSubFNegFMulToFMadOrFMA(*State.MIs[0],
4402 GIMatchData_info);}()) {
4403 return false;
4404 }
4405 // Apply Patterns
4406 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
4407 return true;
4408 }
4409 case GICXXCustomAction_GICombiner92:{
4410 std::function<void(MachineIRBuilder &)> GIMatchData_info;
4411 // Match Patterns
4412 if(![&](){return Helper.matchCombineFSubFpExtFMulToFMadOrFMA(*State.MIs[0],
4413 GIMatchData_info);}()) {
4414 return false;
4415 }
4416 // Apply Patterns
4417 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
4418 return true;
4419 }
4420 case GICXXCustomAction_GICombiner93:{
4421 std::function<void(MachineIRBuilder &)> GIMatchData_info;
4422 // Match Patterns
4423 if(![&](){return Helper.matchCombineFSubFpExtFNegFMulToFMadOrFMA(
4424 *State.MIs[0], GIMatchData_info);}()) {
4425 return false;
4426 }
4427 // Apply Patterns
4428 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
4429 return true;
4430 }
4431 case GICXXCustomAction_GICombiner94:{
4432 unsigned GIMatchData_select_op_no;
4433 // Match Patterns
4434 if(![&](){return Helper.matchFoldBinOpIntoSelect(*State.MIs[0], GIMatchData_select_op_no);}()) {
4435 return false;
4436 }
4437 // Apply Patterns
4438 Helper.applyFoldBinOpIntoSelect(*State.MIs[0], GIMatchData_select_op_no);
4439 return true;
4440 }
4441 case GICXXCustomAction_GICombiner95:{
4442 // Match Patterns
4443 if(![&](){return Helper.matchOperandIsKnownToBeAPowerOfTwo(State.MIs[0]->getOperand(2),
4444 /*OrNegative=*/true);}()) {
4445 return false;
4446 }
4447 // Apply Patterns
4448 Helper.applySimplifySRemByPow2(*State.MIs[0]);
4449 return true;
4450 }
4451 case GICXXCustomAction_GICombiner96:{
4452 // Match Patterns
4453 if(![&](){return Helper.matchUDivOrURemByConst(*State.MIs[0]);}()) {
4454 return false;
4455 }
4456 // Apply Patterns
4457 Helper.applyUDivOrURemByConst(*State.MIs[0]);
4458 return true;
4459 }
4460 case GICXXCustomAction_GICombiner97:{
4461 // Match Patterns
4462 if(![&](){return Helper.matchSDivOrSRemByConst(*State.MIs[0]);}()) {
4463 return false;
4464 }
4465 // Apply Patterns
4466 Helper.applySDivOrSRemByConst(*State.MIs[0]);
4467 return true;
4468 }
4469 case GICXXCustomAction_GICombiner98:{
4470 // Match Patterns
4471 if(![&](){return Helper.matchDivByPow2(*State.MIs[0], /*IsSigned=*/false);}()) {
4472 return false;
4473 }
4474 // Apply Patterns
4475 Helper.applyUDivByPow2(*State.MIs[0]);
4476 return true;
4477 }
4478 case GICXXCustomAction_GICombiner99:{
4479 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4480 // Match Patterns
4481 if(![&](){return Helper.matchUDivByShiftedPow2(*State.MIs[0], GIMatchData_matchinfo);}()) {
4482 return false;
4483 }
4484 // Apply Patterns
4485 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4486 return true;
4487 }
4488 case GICXXCustomAction_GICombiner100:{
4489 // Match Patterns
4490 if(![&](){return Helper.matchDivByPow2(*State.MIs[0], /*IsSigned=*/true);}()) {
4491 return false;
4492 }
4493 // Apply Patterns
4494 Helper.applySDivByPow2(*State.MIs[0]);
4495 return true;
4496 }
4497 case GICXXCustomAction_GICombiner101:{
4498 SmallVector<MachineInstr *> GIMatchData_matchinfo;
4499 // Match Patterns
4500 if(![&](){return Helper.matchRepeatedFPDivisor(*State.MIs[0], GIMatchData_matchinfo);}()) {
4501 return false;
4502 }
4503 // Apply Patterns
4504 Helper.applyRepeatedFPDivisor(GIMatchData_matchinfo);
4505 return true;
4506 }
4507 case GICXXCustomAction_GICombiner102:{
4508 std::function<void(MachineIRBuilder &)> GIMatchData_info;
4509 // Match Patterns
4510 if(![&](){return Helper.matchSimplifySelectToMinMax(*State.MIs[0], GIMatchData_info);}()) {
4511 return false;
4512 }
4513 // Apply Patterns
4514 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
4515 return true;
4516 }
4517 case GICXXCustomAction_GICombiner103:{
4518 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4519 // Match Patterns
4520 if(![&](){return Helper.matchAnd(*State.MIs[0], GIMatchData_matchinfo);}()) {
4521 return false;
4522 }
4523 // Apply Patterns
4524 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4525 return true;
4526 }
4527 case GICXXCustomAction_GICombiner104:{
4528 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4529 // Match Patterns
4530 if(![&](){return Helper.matchOr(*State.MIs[0], GIMatchData_matchinfo);}()) {
4531 return false;
4532 }
4533 // Apply Patterns
4534 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4535 return true;
4536 }
4537 case GICXXCustomAction_GICombiner105:{
4538 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4539 // Match Patterns
4540 if(![&](){return Helper.matchSimplifyNegMinMax(*State.MIs[0], GIMatchData_matchinfo);}()) {
4541 return false;
4542 }
4543 // Apply Patterns
4544 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4545 return true;
4546 }
4547 case GICXXCustomAction_GICombiner106:{
4548 SmallVector<Register> GIMatchData_matchinfo;
4549 // Match Patterns
4550 if(![&](){return Helper.matchCombineConcatVectors(*State.MIs[0], GIMatchData_matchinfo);}()) {
4551 return false;
4552 }
4553 // Apply Patterns
4554 Helper.applyCombineConcatVectors(*State.MIs[0], GIMatchData_matchinfo);
4555 return true;
4556 }
4557 case GICXXCustomAction_GICombiner107:{
4558 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4559 // Match Patterns
4560 if(![&](){return Helper.matchSextOfTrunc(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
4561 return false;
4562 }
4563 // Apply Patterns
4564 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
4565 return true;
4566 }
4567 case GICXXCustomAction_GICombiner108:{
4568 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4569 // Match Patterns
4570 if(![&](){return Helper.matchZextOfTrunc(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
4571 return false;
4572 }
4573 // Apply Patterns
4574 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
4575 return true;
4576 }
4577 case GICXXCustomAction_GICombiner109:{
4578 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4579 // Match Patterns
4580 if(![&](){return Helper.matchNonNegZext(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
4581 return false;
4582 }
4583 // Apply Patterns
4584 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
4585 return true;
4586 }
4587 case GICXXCustomAction_GICombiner110:{
4588 SmallVector<Register> GIMatchData_matchinfo;
4589 // Match Patterns
4590 if(![&](){return Helper.matchCombineShuffleConcat(*State.MIs[0], GIMatchData_matchinfo);}()) {
4591 return false;
4592 }
4593 // Apply Patterns
4594 Helper.applyCombineShuffleConcat(*State.MIs[0], GIMatchData_matchinfo);
4595 return true;
4596 }
4597 case GICXXCustomAction_GICombiner111:{
4598 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4599 // Match Patterns
4600 if(![&](){return Helper.matchShuffleUndefRHS(*State.MIs[0], GIMatchData_matchinfo);}()) {
4601 return false;
4602 }
4603 // Apply Patterns
4604 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4605 return true;
4606 }
4607 case GICXXCustomAction_GICombiner112:{
4608 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4609 // Match Patterns
4610 if(![&](){return Helper.matchShuffleDisjointMask(*State.MIs[0], GIMatchData_matchinfo);}()) {
4611 return false;
4612 }
4613 // Apply Patterns
4614 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4615 return true;
4616 }
4617 case GICXXCustomAction_GICombiner113:{
4618 Register GIMatchData_matchinfo;
4619 // Match Patterns
4620 if(![&](){return Helper.matchUseVectorTruncate(*State.MIs[0], GIMatchData_matchinfo);}()) {
4621 return false;
4622 }
4623 // Apply Patterns
4624 Helper.applyUseVectorTruncate(*State.MIs[0], GIMatchData_matchinfo);
4625 return true;
4626 }
4627 case GICXXCustomAction_GICombiner114:{
4628 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4629 // Match Patterns
4630 if(![&](){return Helper.matchUnmergeValuesAnyExtBuildVector(*State.MIs[0], GIMatchData_matchinfo);}()) {
4631 return false;
4632 }
4633 // Apply Patterns
4634 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4635 return true;
4636 }
4637 case GICXXCustomAction_GICombiner115:{
4638 SmallVector<Register> GIMatchData_info;
4639 // Match Patterns
4640 if(![&](){return Helper.matchCombineUnmergeMergeToPlainValues(*State.MIs[0], GIMatchData_info);}()) {
4641 return false;
4642 }
4643 // Apply Patterns
4644 Helper.applyCombineUnmergeMergeToPlainValues(*State.MIs[0], GIMatchData_info);
4645 return true;
4646 }
4647 case GICXXCustomAction_GICombiner116:{
4648 Register GIMatchData_src;
4649 // Match Patterns
4650 if(![&](){// Check if first source comes from G_UNMERGE_VALUES.
4651 Register FirstMergeSrc = getRemainingOperands(*State.MIs[0], 1)[0].getReg();
4652 MachineInstr *UnmergeMI = MRI.getVRegDef(FirstMergeSrc);
4653 if (!UnmergeMI || UnmergeMI->getOpcode() != TargetOpcode::G_UNMERGE_VALUES)
4654 return false;
4655
4656 // Check counts match.
4657 unsigned NumMergeSrcs = getRemainingOperands(*State.MIs[0], 1).size();
4658 unsigned NumUnmergeDefs = UnmergeMI->getNumDefs();
4659 if (NumMergeSrcs != NumUnmergeDefs)
4660 return false;
4661
4662 // Verify all merge sources match unmerge defs in order.
4663 for (unsigned I = 0; I < NumMergeSrcs; ++I) {
4664 Register MergeSrc = getRemainingOperands(*State.MIs[0], 1)[I].getReg();
4665 Register UnmergeDef = UnmergeMI->getOperand(I).getReg();
4666
4667 if (MergeSrc != UnmergeDef)
4668 return false;
4669
4670 if (!MRI.hasOneNonDBGUse(MergeSrc))
4671 return false;
4672 }
4673
4674 // Check size compatibility.
4675 GIMatchData_src = UnmergeMI->getOperand(NumUnmergeDefs).getReg();
4676 LLT SrcTy = MRI.getType(GIMatchData_src);
4677 LLT DstTy = MRI.getType(State.MIs[0]->getOperand(0).getReg());
4678 if (SrcTy.getSizeInBits() != DstTy.getSizeInBits())
4679 return false;
4680
4681 // Check bitcast legality.
4682 if (SrcTy != DstTy) {
4683 std::array<LLT, 2> Types = {{DstTy, SrcTy}};
4684 LegalityQuery Query(TargetOpcode::G_BITCAST, Types);
4685 if (!Helper.isLegalOrBeforeLegalizer(Query))
4686 return false;
4687 }
4688
4689 return true;}()) {
4690 return false;
4691 }
4692 // Apply Patterns
4693 LLT SrcTy = MRI.getType(GIMatchData_src);
4694 LLT DstTy = MRI.getType(State.MIs[0]->getOperand(0).getReg());
4695
4696 Helper.getBuilder().setInstrAndDebugLoc(*State.MIs[0]);
4697
4698 if (SrcTy == DstTy) {
4699 Helper.replaceRegWith(MRI, State.MIs[0]->getOperand(0).getReg(), GIMatchData_src);
4700 } else {
4701 Helper.getBuilder().buildBitcast(State.MIs[0]->getOperand(0).getReg(), GIMatchData_src);
4702 }
4703
4704 State.MIs[0]->eraseFromParent();
4705 return true;
4706 }
4707 case GICXXCustomAction_GICombiner117:{
4708 SmallVector<APInt, 8> GIMatchData_info;
4709 // Match Patterns
4710 if(![&](){return Helper.matchCombineUnmergeConstant(*State.MIs[0], GIMatchData_info);}()) {
4711 return false;
4712 }
4713 // Apply Patterns
4714 Helper.applyCombineUnmergeConstant(*State.MIs[0], GIMatchData_info);
4715 return true;
4716 }
4717 case GICXXCustomAction_GICombiner118:{
4718 std::function<void(MachineIRBuilder &)> GIMatchData_info;
4719 // Match Patterns
4720 if(![&](){return Helper.matchCombineUnmergeUndef(*State.MIs[0], GIMatchData_info);}()) {
4721 return false;
4722 }
4723 // Apply Patterns
4724 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
4725 return true;
4726 }
4727 case GICXXCustomAction_GICombiner119:{
4728 // Match Patterns
4729 if(![&](){return Helper.matchCombineUnmergeWithDeadLanesToTrunc(*State.MIs[0]);}()) {
4730 return false;
4731 }
4732 // Apply Patterns
4733 Helper.applyCombineUnmergeWithDeadLanesToTrunc(*State.MIs[0]);
4734 return true;
4735 }
4736 case GICXXCustomAction_GICombiner120:{
4737 // Match Patterns
4738 if(![&](){return Helper.matchCombineUnmergeZExtToZExt(*State.MIs[0]);}()) {
4739 return false;
4740 }
4741 // Apply Patterns
4742 Helper.applyCombineUnmergeZExtToZExt(*State.MIs[0]);
4743 return true;
4744 }
4745 case GICXXCustomAction_GICombiner121:{
4746 Register GIMatchData_unmergeSrc;
4747 // Match Patterns
4748 if(![&](){return Helper.matchCombineBuildUnmerge(*State.MIs[0], MRI, GIMatchData_unmergeSrc);}()) {
4749 return false;
4750 }
4751 // Apply Patterns
4752 Helper.applyCombineBuildUnmerge(*State.MIs[0], MRI, B, GIMatchData_unmergeSrc);
4753 return true;
4754 }
4755 case GICXXCustomAction_GICombiner122:{
4756 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4757 // Match Patterns
4758 if(![&](){return Helper.matchAddOverflow(*State.MIs[0], GIMatchData_matchinfo);}()) {
4759 return false;
4760 }
4761 // Apply Patterns
4762 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4763 return true;
4764 }
4765 case GICXXCustomAction_GICombiner123:{
4766 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4767 // Match Patterns
4768 if(![&](){return Helper.matchSuboCarryOut(*State.MIs[0], GIMatchData_matchinfo);}()) {
4769 return false;
4770 }
4771 // Apply Patterns
4772 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4773 return true;
4774 }
4775 case GICXXCustomAction_GICombiner124:{
4776 Register GIMatchData_matchinfo;
4777 // Match Patterns
4778 if(![&](){return Helper.matchTruncSSatS(*State.MIs[0], GIMatchData_matchinfo);}()) {
4779 return false;
4780 }
4781 // Apply Patterns
4782 Helper.applyTruncSSatS(*State.MIs[0], GIMatchData_matchinfo);
4783 return true;
4784 }
4785 case GICXXCustomAction_GICombiner125:{
4786 Register GIMatchData_matchinfo;
4787 // Match Patterns
4788 if(![&](){return Helper.matchTruncSSatU(*State.MIs[0], GIMatchData_matchinfo);}()) {
4789 return false;
4790 }
4791 // Apply Patterns
4792 Helper.applyTruncSSatU(*State.MIs[0], GIMatchData_matchinfo);
4793 return true;
4794 }
4795 case GICXXCustomAction_GICombiner126:{
4796 LshrOfTruncOfLshr GIMatchData_matchinfo;
4797 // Match Patterns
4798 if(![&](){return Helper.matchLshrOfTruncOfLshr(*State.MIs[0], GIMatchData_matchinfo, *State.MIs[2]);}()) {
4799 return false;
4800 }
4801 // Apply Patterns
4802 Helper.applyLshrOfTruncOfLshr(*State.MIs[0], GIMatchData_matchinfo);
4803 return true;
4804 }
4805 case GICXXCustomAction_GICombiner127:{
4806 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4807 // Match Patterns
4808 if(![&](){return Helper.matchCtls(*State.MIs[0], GIMatchData_matchinfo);}()) {
4809 return false;
4810 }
4811 // Apply Patterns
4812 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4813 return true;
4814 }
4815 case GICXXCustomAction_GICombiner128:{
4816 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4817 // Match Patterns
4818 if(![&](){return Helper.matchBinopWithNeg(*State.MIs[0], GIMatchData_matchinfo);}()) {
4819 return false;
4820 }
4821 // Apply Patterns
4822 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4823 return true;
4824 }
4825 }
4826 llvm_unreachable("Unknown Apply Action");
4827}
4828#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
4829#define GIMT_Encode2(Val) uint8_t(Val), uint8_t((Val) >> 8)
4830#define GIMT_Encode4(Val) uint8_t(Val), uint8_t((Val) >> 8), uint8_t((Val) >> 16), uint8_t((Val) >> 24)
4831#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)
4832#else
4833#define GIMT_Encode2(Val) uint8_t((Val) >> 8), uint8_t(Val)
4834#define GIMT_Encode4(Val) uint8_t((Val) >> 24), uint8_t((Val) >> 16), uint8_t((Val) >> 8), uint8_t(Val)
4835#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)
4836#endif
4837const uint8_t *RISCVPreLegalizerCombinerImpl::getMatchTable() const {
4838 constexpr static uint8_t MatchTable0[] = {
4839 /* 0 */ GIM_SwitchOpcode, /*MI*/0, /*[*/GIMT_Encode2(21), GIMT_Encode2(288), /*)*//*default:*//*Label 114*/ GIMT_Encode4(12592),
4840 /* 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),
4841 /* 150 */ /*TargetOpcode::G_ADD*//*Label 1*/ GIMT_Encode4(1090),
4842 /* 154 */ /*TargetOpcode::G_SUB*//*Label 2*/ GIMT_Encode4(2060),
4843 /* 158 */ /*TargetOpcode::G_MUL*//*Label 3*/ GIMT_Encode4(3425),
4844 /* 162 */ /*TargetOpcode::G_SDIV*//*Label 4*/ GIMT_Encode4(3720),
4845 /* 166 */ /*TargetOpcode::G_UDIV*//*Label 5*/ GIMT_Encode4(3830),
4846 /* 170 */ /*TargetOpcode::G_SREM*//*Label 6*/ GIMT_Encode4(3947),
4847 /* 174 */ /*TargetOpcode::G_UREM*//*Label 7*/ GIMT_Encode4(4051), GIMT_Encode4(0), GIMT_Encode4(0),
4848 /* 186 */ /*TargetOpcode::G_AND*//*Label 8*/ GIMT_Encode4(4151),
4849 /* 190 */ /*TargetOpcode::G_OR*//*Label 9*/ GIMT_Encode4(4623),
4850 /* 194 */ /*TargetOpcode::G_XOR*//*Label 10*/ GIMT_Encode4(5483), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4851 /* 226 */ /*TargetOpcode::G_PHI*//*Label 11*/ GIMT_Encode4(5745), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4852 /* 250 */ /*TargetOpcode::G_UNMERGE_VALUES*//*Label 12*/ GIMT_Encode4(5760), GIMT_Encode4(0),
4853 /* 258 */ /*TargetOpcode::G_MERGE_VALUES*//*Label 13*/ GIMT_Encode4(5827),
4854 /* 262 */ /*TargetOpcode::G_BUILD_VECTOR*//*Label 14*/ GIMT_Encode4(5922),
4855 /* 266 */ /*TargetOpcode::G_BUILD_VECTOR_TRUNC*//*Label 15*/ GIMT_Encode4(5994),
4856 /* 270 */ /*TargetOpcode::G_CONCAT_VECTORS*//*Label 16*/ GIMT_Encode4(6009),
4857 /* 274 */ /*TargetOpcode::G_PTRTOINT*//*Label 17*/ GIMT_Encode4(6024),
4858 /* 278 */ /*TargetOpcode::G_INTTOPTR*//*Label 18*/ GIMT_Encode4(6145),
4859 /* 282 */ /*TargetOpcode::G_BITCAST*//*Label 19*/ GIMT_Encode4(6203),
4860 /* 286 */ /*TargetOpcode::G_FREEZE*//*Label 20*/ GIMT_Encode4(6293), GIMT_Encode4(0), GIMT_Encode4(0),
4861 /* 298 */ /*TargetOpcode::G_INTRINSIC_TRUNC*//*Label 21*/ GIMT_Encode4(6357),
4862 /* 302 */ /*TargetOpcode::G_INTRINSIC_ROUND*//*Label 22*/ GIMT_Encode4(6369), GIMT_Encode4(0), GIMT_Encode4(0),
4863 /* 314 */ /*TargetOpcode::G_INTRINSIC_ROUNDEVEN*//*Label 23*/ GIMT_Encode4(6381), GIMT_Encode4(0), GIMT_Encode4(0),
4864 /* 326 */ /*TargetOpcode::G_LOAD*//*Label 24*/ GIMT_Encode4(6393),
4865 /* 330 */ /*TargetOpcode::G_SEXTLOAD*//*Label 25*/ GIMT_Encode4(6405),
4866 /* 334 */ /*TargetOpcode::G_ZEXTLOAD*//*Label 26*/ GIMT_Encode4(6417), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4867 /* 354 */ /*TargetOpcode::G_STORE*//*Label 27*/ GIMT_Encode4(6429), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4868 /* 502 */ /*TargetOpcode::G_ANYEXT*//*Label 28*/ GIMT_Encode4(6453),
4869 /* 506 */ /*TargetOpcode::G_TRUNC*//*Label 29*/ GIMT_Encode4(6584), GIMT_Encode4(0), GIMT_Encode4(0),
4870 /* 518 */ /*TargetOpcode::G_TRUNC_USAT_U*//*Label 30*/ GIMT_Encode4(6999), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4871 /* 538 */ /*TargetOpcode::G_SEXT*//*Label 31*/ GIMT_Encode4(7032),
4872 /* 542 */ /*TargetOpcode::G_SEXT_INREG*//*Label 32*/ GIMT_Encode4(7107),
4873 /* 546 */ /*TargetOpcode::G_ZEXT*//*Label 33*/ GIMT_Encode4(7329),
4874 /* 550 */ /*TargetOpcode::G_SHL*//*Label 34*/ GIMT_Encode4(7459),
4875 /* 554 */ /*TargetOpcode::G_LSHR*//*Label 35*/ GIMT_Encode4(7808),
4876 /* 558 */ /*TargetOpcode::G_ASHR*//*Label 36*/ GIMT_Encode4(8151),
4877 /* 562 */ /*TargetOpcode::G_FSHL*//*Label 37*/ GIMT_Encode4(8476),
4878 /* 566 */ /*TargetOpcode::G_FSHR*//*Label 38*/ GIMT_Encode4(8535),
4879 /* 570 */ /*TargetOpcode::G_ROTR*//*Label 39*/ GIMT_Encode4(8594),
4880 /* 574 */ /*TargetOpcode::G_ROTL*//*Label 40*/ GIMT_Encode4(8618),
4881 /* 578 */ /*TargetOpcode::G_ICMP*//*Label 41*/ GIMT_Encode4(8642),
4882 /* 582 */ /*TargetOpcode::G_FCMP*//*Label 42*/ GIMT_Encode4(8687), GIMT_Encode4(0), GIMT_Encode4(0),
4883 /* 594 */ /*TargetOpcode::G_SELECT*//*Label 43*/ GIMT_Encode4(8699),
4884 /* 598 */ /*TargetOpcode::G_UADDO*//*Label 44*/ GIMT_Encode4(9030),
4885 /* 602 */ /*TargetOpcode::G_UADDE*//*Label 45*/ GIMT_Encode4(9099),
4886 /* 606 */ /*TargetOpcode::G_USUBO*//*Label 46*/ GIMT_Encode4(9127),
4887 /* 610 */ /*TargetOpcode::G_USUBE*//*Label 47*/ GIMT_Encode4(9139),
4888 /* 614 */ /*TargetOpcode::G_SADDO*//*Label 48*/ GIMT_Encode4(9167),
4889 /* 618 */ /*TargetOpcode::G_SADDE*//*Label 49*/ GIMT_Encode4(9236),
4890 /* 622 */ /*TargetOpcode::G_SSUBO*//*Label 50*/ GIMT_Encode4(9264),
4891 /* 626 */ /*TargetOpcode::G_SSUBE*//*Label 51*/ GIMT_Encode4(9276),
4892 /* 630 */ /*TargetOpcode::G_UMULO*//*Label 52*/ GIMT_Encode4(9304),
4893 /* 634 */ /*TargetOpcode::G_SMULO*//*Label 53*/ GIMT_Encode4(9370),
4894 /* 638 */ /*TargetOpcode::G_UMULH*//*Label 54*/ GIMT_Encode4(9436),
4895 /* 642 */ /*TargetOpcode::G_SMULH*//*Label 55*/ GIMT_Encode4(9473),
4896 /* 646 */ /*TargetOpcode::G_UADDSAT*//*Label 56*/ GIMT_Encode4(9499),
4897 /* 650 */ /*TargetOpcode::G_SADDSAT*//*Label 57*/ GIMT_Encode4(9525), GIMT_Encode4(0), GIMT_Encode4(0),
4898 /* 662 */ /*TargetOpcode::G_USHLSAT*//*Label 58*/ GIMT_Encode4(9551),
4899 /* 666 */ /*TargetOpcode::G_SSHLSAT*//*Label 59*/ GIMT_Encode4(9563),
4900 /* 670 */ /*TargetOpcode::G_SMULFIX*//*Label 60*/ GIMT_Encode4(9575),
4901 /* 674 */ /*TargetOpcode::G_UMULFIX*//*Label 61*/ GIMT_Encode4(9603),
4902 /* 678 */ /*TargetOpcode::G_SMULFIXSAT*//*Label 62*/ GIMT_Encode4(9631),
4903 /* 682 */ /*TargetOpcode::G_UMULFIXSAT*//*Label 63*/ GIMT_Encode4(9659), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4904 /* 702 */ /*TargetOpcode::G_FADD*//*Label 64*/ GIMT_Encode4(9687),
4905 /* 706 */ /*TargetOpcode::G_FSUB*//*Label 65*/ GIMT_Encode4(9905),
4906 /* 710 */ /*TargetOpcode::G_FMUL*//*Label 66*/ GIMT_Encode4(10050),
4907 /* 714 */ /*TargetOpcode::G_FMA*//*Label 67*/ GIMT_Encode4(10184),
4908 /* 718 */ /*TargetOpcode::G_FMAD*//*Label 68*/ GIMT_Encode4(10241),
4909 /* 722 */ /*TargetOpcode::G_FDIV*//*Label 69*/ GIMT_Encode4(10298),
4910 /* 726 */ /*TargetOpcode::G_FREM*//*Label 70*/ GIMT_Encode4(10375), GIMT_Encode4(0), GIMT_Encode4(0),
4911 /* 738 */ /*TargetOpcode::G_FPOWI*//*Label 71*/ GIMT_Encode4(10398), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4912 /* 758 */ /*TargetOpcode::G_FLOG2*//*Label 72*/ GIMT_Encode4(10420), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4913 /* 774 */ /*TargetOpcode::G_FNEG*//*Label 73*/ GIMT_Encode4(10432),
4914 /* 778 */ /*TargetOpcode::G_FPEXT*//*Label 74*/ GIMT_Encode4(10473),
4915 /* 782 */ /*TargetOpcode::G_FPTRUNC*//*Label 75*/ GIMT_Encode4(10485),
4916 /* 786 */ /*TargetOpcode::G_FPTOSI*//*Label 76*/ GIMT_Encode4(10530),
4917 /* 790 */ /*TargetOpcode::G_FPTOUI*//*Label 77*/ GIMT_Encode4(10555),
4918 /* 794 */ /*TargetOpcode::G_SITOFP*//*Label 78*/ GIMT_Encode4(10608),
4919 /* 798 */ /*TargetOpcode::G_UITOFP*//*Label 79*/ GIMT_Encode4(10645), GIMT_Encode4(0),
4920 /* 806 */ /*TargetOpcode::G_FPTOUI_SAT*//*Label 80*/ GIMT_Encode4(10682),
4921 /* 810 */ /*TargetOpcode::G_FABS*//*Label 81*/ GIMT_Encode4(10711),
4922 /* 814 */ /*TargetOpcode::G_FCOPYSIGN*//*Label 82*/ GIMT_Encode4(10780), GIMT_Encode4(0),
4923 /* 822 */ /*TargetOpcode::G_FCANONICALIZE*//*Label 83*/ GIMT_Encode4(10792),
4924 /* 826 */ /*TargetOpcode::G_FMINNUM*//*Label 84*/ GIMT_Encode4(10822),
4925 /* 830 */ /*TargetOpcode::G_FMAXNUM*//*Label 85*/ GIMT_Encode4(10916),
4926 /* 834 */ /*TargetOpcode::G_FMINNUM_IEEE*//*Label 86*/ GIMT_Encode4(11010),
4927 /* 838 */ /*TargetOpcode::G_FMAXNUM_IEEE*//*Label 87*/ GIMT_Encode4(11036),
4928 /* 842 */ /*TargetOpcode::G_FMINIMUM*//*Label 88*/ GIMT_Encode4(11062),
4929 /* 846 */ /*TargetOpcode::G_FMAXIMUM*//*Label 89*/ GIMT_Encode4(11156),
4930 /* 850 */ /*TargetOpcode::G_FMINIMUMNUM*//*Label 90*/ GIMT_Encode4(11250),
4931 /* 854 */ /*TargetOpcode::G_FMAXIMUMNUM*//*Label 91*/ GIMT_Encode4(11262), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4932 /* 890 */ /*TargetOpcode::G_PTR_ADD*//*Label 92*/ GIMT_Encode4(11274), GIMT_Encode4(0),
4933 /* 898 */ /*TargetOpcode::G_SMIN*//*Label 93*/ GIMT_Encode4(11440),
4934 /* 902 */ /*TargetOpcode::G_SMAX*//*Label 94*/ GIMT_Encode4(11488),
4935 /* 906 */ /*TargetOpcode::G_UMIN*//*Label 95*/ GIMT_Encode4(11536),
4936 /* 910 */ /*TargetOpcode::G_UMAX*//*Label 96*/ GIMT_Encode4(11584),
4937 /* 914 */ /*TargetOpcode::G_ABS*//*Label 97*/ GIMT_Encode4(11632), GIMT_Encode4(0), GIMT_Encode4(0),
4938 /* 926 */ /*TargetOpcode::G_BR*//*Label 98*/ GIMT_Encode4(11665), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4939 /* 946 */ /*TargetOpcode::G_INSERT_VECTOR_ELT*//*Label 99*/ GIMT_Encode4(11677),
4940 /* 950 */ /*TargetOpcode::G_EXTRACT_VECTOR_ELT*//*Label 100*/ GIMT_Encode4(11821),
4941 /* 954 */ /*TargetOpcode::G_SHUFFLE_VECTOR*//*Label 101*/ GIMT_Encode4(12212), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4942 /* 970 */ /*TargetOpcode::G_CTTZ*//*Label 102*/ GIMT_Encode4(12292),
4943 /* 974 */ /*TargetOpcode::G_CTTZ_ZERO_POISON*//*Label 103*/ GIMT_Encode4(12327),
4944 /* 978 */ /*TargetOpcode::G_CTLZ*//*Label 104*/ GIMT_Encode4(12339),
4945 /* 982 */ /*TargetOpcode::G_CTLZ_ZERO_POISON*//*Label 105*/ GIMT_Encode4(12385), GIMT_Encode4(0),
4946 /* 990 */ /*TargetOpcode::G_CTPOP*//*Label 106*/ GIMT_Encode4(12408),
4947 /* 994 */ /*TargetOpcode::G_BSWAP*//*Label 107*/ GIMT_Encode4(12420),
4948 /* 998 */ /*TargetOpcode::G_BITREVERSE*//*Label 108*/ GIMT_Encode4(12432), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4949 /* 1014 */ /*TargetOpcode::G_FCEIL*//*Label 109*/ GIMT_Encode4(12532), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4950 /* 1062 */ /*TargetOpcode::G_FSQRT*//*Label 110*/ GIMT_Encode4(12544),
4951 /* 1066 */ /*TargetOpcode::G_FFLOOR*//*Label 111*/ GIMT_Encode4(12556),
4952 /* 1070 */ /*TargetOpcode::G_FRINT*//*Label 112*/ GIMT_Encode4(12568),
4953 /* 1074 */ /*TargetOpcode::G_FNEARBYINT*//*Label 113*/ GIMT_Encode4(12580),
4954 /* 1078 */ // Label 0: @1078
4955 /* 1078 */ GIM_Try, /*On fail goto*//*Label 115*/ GIMT_Encode4(1089), // Rule ID 19 //
4956 /* 1083 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule19Enabled),
4957 /* 1086 */ // MIs[0] d
4958 /* 1086 */ // No operand predicates
4959 /* 1086 */ // MIs[0] s
4960 /* 1086 */ // No operand predicates
4961 /* 1086 */ // Combiner Rule #19: copy_prop
4962 /* 1086 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner5),
4963 /* 1089 */ // Label 115: @1089
4964 /* 1089 */ GIM_Reject,
4965 /* 1090 */ // Label 1: @1090
4966 /* 1090 */ GIM_Try, /*On fail goto*//*Label 116*/ GIMT_Encode4(1178), // Rule ID 457 //
4967 /* 1095 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule326Enabled),
4968 /* 1098 */ // MIs[0] dst
4969 /* 1098 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
4970 /* 1102 */ // MIs[0] __add_shift_match_0.shl_neg
4971 /* 1102 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4972 /* 1106 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SHL),
4973 /* 1110 */ // MIs[1] __add_shift_match_0.neg_y
4974 /* 1110 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
4975 /* 1114 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB),
4976 /* 1118 */ // MIs[2] __add_shift_match_0.zero
4977 /* 1118 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/2, /*OpIdx*/1, // MIs[3]
4978 /* 1122 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
4979 /* 1126 */ // MIs[3] Operand 1
4980 /* 1126 */ GIM_CheckLiteralInt, /*MI*/3, /*Op*/1, GIMT_Encode8(0),
4981 /* 1137 */ // MIs[2] y
4982 /* 1137 */ // No operand predicates
4983 /* 1137 */ // MIs[1] n
4984 /* 1137 */ // No operand predicates
4985 /* 1137 */ // MIs[0] x
4986 /* 1137 */ // No operand predicates
4987 /* 1137 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner61),
4988 /* 1141 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
4989 /* 1143 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
4990 /* 1146 */ // Combiner Rule #326: add_shift @ [__add_shift_match_0[1]]
4991 /* 1146 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SHL),
4992 /* 1149 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
4993 /* 1154 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/2, // y
4994 /* 1158 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // n
4995 /* 1162 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
4996 /* 1166 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
4997 /* 1170 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/2, // x
4998 /* 1174 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
4999 /* 1177 */ GIR_EraseRootFromParent_Done,
5000 /* 1178 */ // Label 116: @1178
5001 /* 1178 */ GIM_Try, /*On fail goto*//*Label 117*/ GIMT_Encode4(1266), // Rule ID 456 //
5002 /* 1183 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule326Enabled),
5003 /* 1186 */ // MIs[0] dst
5004 /* 1186 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
5005 /* 1190 */ // MIs[0] x
5006 /* 1190 */ // No operand predicates
5007 /* 1190 */ // MIs[0] __add_shift_match_0.shl_neg
5008 /* 1190 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5009 /* 1194 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SHL),
5010 /* 1198 */ // MIs[1] __add_shift_match_0.neg_y
5011 /* 1198 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
5012 /* 1202 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB),
5013 /* 1206 */ // MIs[2] __add_shift_match_0.zero
5014 /* 1206 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/2, /*OpIdx*/1, // MIs[3]
5015 /* 1210 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5016 /* 1214 */ // MIs[3] Operand 1
5017 /* 1214 */ GIM_CheckLiteralInt, /*MI*/3, /*Op*/1, GIMT_Encode8(0),
5018 /* 1225 */ // MIs[2] y
5019 /* 1225 */ // No operand predicates
5020 /* 1225 */ // MIs[1] n
5021 /* 1225 */ // No operand predicates
5022 /* 1225 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner60),
5023 /* 1229 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
5024 /* 1231 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5025 /* 1234 */ // Combiner Rule #326: add_shift @ [__add_shift_match_0[0]]
5026 /* 1234 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SHL),
5027 /* 1237 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5028 /* 1242 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/2, // y
5029 /* 1246 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // n
5030 /* 1250 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5031 /* 1254 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
5032 /* 1258 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/1, // x
5033 /* 1262 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
5034 /* 1265 */ GIR_EraseRootFromParent_Done,
5035 /* 1266 */ // Label 117: @1266
5036 /* 1266 */ GIM_Try, /*On fail goto*//*Label 118*/ GIMT_Encode4(1321), // Rule ID 22 //
5037 /* 1271 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule22Enabled),
5038 /* 1274 */ // MIs[0] dst
5039 /* 1274 */ // No operand predicates
5040 /* 1274 */ // MIs[0] __add_p2i_to_ptradd_match_0.x
5041 /* 1274 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5042 /* 1278 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_PTRTOINT),
5043 /* 1282 */ // MIs[1] ptr
5044 /* 1282 */ GIM_RecordRegType, /*MI*/1, /*Op*/1, /*TempTypeIdx*/255,
5045 /* 1286 */ // MIs[0] other
5046 /* 1286 */ // No operand predicates
5047 /* 1286 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner2),
5048 /* 1290 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5049 /* 1292 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5050 /* 1295 */ // Combiner Rule #22: add_p2i_to_ptradd @ [__add_p2i_to_ptradd_match_0[0]]
5051 /* 1295 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_PTR_ADD),
5052 /* 1298 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5053 /* 1303 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // ptr
5054 /* 1307 */ GIR_RootToRootCopy, /*OpIdx*/2, // other
5055 /* 1309 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_PTRTOINT),
5056 /* 1313 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
5057 /* 1317 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
5058 /* 1320 */ GIR_EraseRootFromParent_Done,
5059 /* 1321 */ // Label 118: @1321
5060 /* 1321 */ GIM_Try, /*On fail goto*//*Label 119*/ GIMT_Encode4(1376), // Rule ID 23 //
5061 /* 1326 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule22Enabled),
5062 /* 1329 */ // MIs[0] dst
5063 /* 1329 */ // No operand predicates
5064 /* 1329 */ // MIs[0] other
5065 /* 1329 */ // No operand predicates
5066 /* 1329 */ // MIs[0] __add_p2i_to_ptradd_match_0.x
5067 /* 1329 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5068 /* 1333 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_PTRTOINT),
5069 /* 1337 */ // MIs[1] ptr
5070 /* 1337 */ GIM_RecordRegType, /*MI*/1, /*Op*/1, /*TempTypeIdx*/255,
5071 /* 1341 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner2),
5072 /* 1345 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5073 /* 1347 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5074 /* 1350 */ // Combiner Rule #22: add_p2i_to_ptradd @ [__add_p2i_to_ptradd_match_0[1]]
5075 /* 1350 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_PTR_ADD),
5076 /* 1353 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5077 /* 1358 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // ptr
5078 /* 1362 */ GIR_RootToRootCopy, /*OpIdx*/1, // other
5079 /* 1364 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_PTRTOINT),
5080 /* 1368 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
5081 /* 1372 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
5082 /* 1375 */ GIR_EraseRootFromParent_Done,
5083 /* 1376 */ // Label 119: @1376
5084 /* 1376 */ GIM_Try, /*On fail goto*//*Label 120*/ GIMT_Encode4(1401), // Rule ID 383 //
5085 /* 1381 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule253Enabled),
5086 /* 1384 */ // MIs[0] dst
5087 /* 1384 */ // No operand predicates
5088 /* 1384 */ // MIs[0] lhs
5089 /* 1384 */ // No operand predicates
5090 /* 1384 */ // MIs[0] rhs
5091 /* 1384 */ // No operand predicates
5092 /* 1384 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner51),
5093 /* 1388 */ // Combiner Rule #253: G_ADD_commute_constant_to_rhs
5094 /* 1388 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ADD),
5095 /* 1391 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
5096 /* 1393 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
5097 /* 1395 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
5098 /* 1397 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
5099 /* 1400 */ GIR_EraseRootFromParent_Done,
5100 /* 1401 */ // Label 120: @1401
5101 /* 1401 */ GIM_Try, /*On fail goto*//*Label 121*/ GIMT_Encode4(1436), // Rule ID 46 //
5102 /* 1406 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule42Enabled),
5103 /* 1409 */ GIM_MIFlags, /*MI*/0, GIMT_Encode4(MachineInstr::NoSWrap),
5104 /* 1415 */ // MIs[0] root
5105 /* 1415 */ // No operand predicates
5106 /* 1415 */ // MIs[0] left
5107 /* 1415 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5108 /* 1419 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_VSCALE),
5109 /* 1423 */ // MIs[1] imm1
5110 /* 1423 */ // No operand predicates
5111 /* 1423 */ // MIs[0] right
5112 /* 1423 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
5113 /* 1427 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_VSCALE),
5114 /* 1431 */ // MIs[2] imm2
5115 /* 1431 */ // No operand predicates
5116 /* 1431 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5117 /* 1433 */ // Combiner Rule #42: add_of_vscale
5118 /* 1433 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner12),
5119 /* 1436 */ // Label 121: @1436
5120 /* 1436 */ GIM_Try, /*On fail goto*//*Label 122*/ GIMT_Encode4(1470), // Rule ID 2 //
5121 /* 1441 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule2Enabled),
5122 /* 1444 */ // MIs[0] root
5123 /* 1444 */ // No operand predicates
5124 /* 1444 */ // MIs[0] sub
5125 /* 1444 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5126 /* 1448 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5127 /* 1452 */ // MIs[1] Operand 1
5128 /* 1452 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/1, 0,
5129 /* 1456 */ // MIs[1] A
5130 /* 1456 */ // No operand predicates
5131 /* 1456 */ // MIs[0] B
5132 /* 1456 */ // No operand predicates
5133 /* 1456 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5134 /* 1458 */ // Combiner Rule #2: ZeroMinusAPlusB
5135 /* 1458 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5136 /* 1461 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
5137 /* 1463 */ GIR_RootToRootCopy, /*OpIdx*/2, // B
5138 /* 1465 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // A
5139 /* 1469 */ GIR_EraseRootFromParent_Done,
5140 /* 1470 */ // Label 122: @1470
5141 /* 1470 */ GIM_Try, /*On fail goto*//*Label 123*/ GIMT_Encode4(1519), // Rule ID 163 //
5142 /* 1475 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule118Enabled),
5143 /* 1478 */ // MIs[0] dst
5144 /* 1478 */ // No operand predicates
5145 /* 1478 */ // MIs[0] __simplify_add_to_sub_match_0.neg
5146 /* 1478 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5147 /* 1482 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5148 /* 1486 */ // MIs[1] __simplify_add_to_sub_match_0.zero
5149 /* 1486 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
5150 /* 1490 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5151 /* 1494 */ // MIs[2] Operand 1
5152 /* 1494 */ GIM_CheckLiteralInt, /*MI*/2, /*Op*/1, GIMT_Encode8(0),
5153 /* 1505 */ // MIs[1] newrhs
5154 /* 1505 */ // No operand predicates
5155 /* 1505 */ // MIs[0] newlhs
5156 /* 1505 */ // No operand predicates
5157 /* 1505 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5158 /* 1507 */ // Combiner Rule #118: simplify_add_to_sub @ [__simplify_add_to_sub_match_0[0]]
5159 /* 1507 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5160 /* 1510 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
5161 /* 1512 */ GIR_RootToRootCopy, /*OpIdx*/2, // newlhs
5162 /* 1514 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // newrhs
5163 /* 1518 */ GIR_EraseRootFromParent_Done,
5164 /* 1519 */ // Label 123: @1519
5165 /* 1519 */ GIM_Try, /*On fail goto*//*Label 124*/ GIMT_Encode4(1556), // Rule ID 18 //
5166 /* 1524 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule18Enabled),
5167 /* 1527 */ // MIs[0] root
5168 /* 1527 */ // No operand predicates
5169 /* 1527 */ // MIs[0] sub
5170 /* 1527 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5171 /* 1531 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5172 /* 1535 */ // MIs[1] A
5173 /* 1535 */ // No operand predicates
5174 /* 1535 */ // MIs[1] c1
5175 /* 1535 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
5176 /* 1539 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5177 /* 1543 */ // MIs[2] imm1
5178 /* 1543 */ // No operand predicates
5179 /* 1543 */ // MIs[0] c2
5180 /* 1543 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/0, /*OpIdx*/2, // MIs[3]
5181 /* 1547 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5182 /* 1551 */ // MIs[3] imm2
5183 /* 1551 */ // No operand predicates
5184 /* 1551 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
5185 /* 1553 */ // Combiner Rule #18: AMinusC1PlusC2
5186 /* 1553 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner4),
5187 /* 1556 */ // Label 124: @1556
5188 /* 1556 */ GIM_Try, /*On fail goto*//*Label 125*/ GIMT_Encode4(1590), // Rule ID 5 //
5189 /* 1561 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule5Enabled),
5190 /* 1564 */ // MIs[0] root
5191 /* 1564 */ // No operand predicates
5192 /* 1564 */ // MIs[0] sub
5193 /* 1564 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5194 /* 1568 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5195 /* 1572 */ // MIs[1] B
5196 /* 1572 */ // No operand predicates
5197 /* 1572 */ // MIs[1] A
5198 /* 1572 */ // No operand predicates
5199 /* 1572 */ // MIs[0] A
5200 /* 1572 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/2,
5201 /* 1577 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
5202 /* 1582 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5203 /* 1584 */ // Combiner Rule #5: BMinusAPlusA
5204 /* 1584 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
5205 /* 1589 */ GIR_EraseRootFromParent_Done,
5206 /* 1590 */ // Label 125: @1590
5207 /* 1590 */ GIM_Try, /*On fail goto*//*Label 126*/ GIMT_Encode4(1624), // Rule ID 151 //
5208 /* 1595 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule106Enabled),
5209 /* 1598 */ // MIs[0] dst
5210 /* 1598 */ // No operand predicates
5211 /* 1598 */ // MIs[0] __add_sub_reg_match_0.tmp
5212 /* 1598 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5213 /* 1602 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5214 /* 1606 */ // MIs[1] src
5215 /* 1606 */ // No operand predicates
5216 /* 1606 */ // MIs[1] __add_sub_reg_match_0.x
5217 /* 1606 */ // No operand predicates
5218 /* 1606 */ // MIs[0] __add_sub_reg_match_0.x
5219 /* 1606 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/2,
5220 /* 1611 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
5221 /* 1616 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5222 /* 1618 */ // Combiner Rule #106: add_sub_reg @ [__add_sub_reg_match_0[1]]
5223 /* 1618 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
5224 /* 1623 */ GIR_EraseRootFromParent_Done,
5225 /* 1624 */ // Label 126: @1624
5226 /* 1624 */ GIM_Try, /*On fail goto*//*Label 127*/ GIMT_Encode4(1669), // Rule ID 7 //
5227 /* 1629 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule7Enabled),
5228 /* 1632 */ // MIs[0] root
5229 /* 1632 */ // No operand predicates
5230 /* 1632 */ // MIs[0] sub1
5231 /* 1632 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5232 /* 1636 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5233 /* 1640 */ // MIs[1] A
5234 /* 1640 */ // No operand predicates
5235 /* 1640 */ // MIs[1] B
5236 /* 1640 */ // No operand predicates
5237 /* 1640 */ // MIs[0] sub2
5238 /* 1640 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
5239 /* 1644 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB),
5240 /* 1648 */ // MIs[2] B
5241 /* 1648 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/2,
5242 /* 1653 */ // MIs[2] C
5243 /* 1653 */ // No operand predicates
5244 /* 1653 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5245 /* 1655 */ // Combiner Rule #7: AMinusBPlusBMinusC
5246 /* 1655 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5247 /* 1658 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
5248 /* 1660 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // A
5249 /* 1664 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/2, // C
5250 /* 1668 */ GIR_EraseRootFromParent_Done,
5251 /* 1669 */ // Label 127: @1669
5252 /* 1669 */ GIM_Try, /*On fail goto*//*Label 128*/ GIMT_Encode4(1714), // Rule ID 6 //
5253 /* 1674 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule6Enabled),
5254 /* 1677 */ // MIs[0] root
5255 /* 1677 */ // No operand predicates
5256 /* 1677 */ // MIs[0] sub1
5257 /* 1677 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5258 /* 1681 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5259 /* 1685 */ // MIs[1] A
5260 /* 1685 */ // No operand predicates
5261 /* 1685 */ // MIs[1] B
5262 /* 1685 */ // No operand predicates
5263 /* 1685 */ // MIs[0] sub2
5264 /* 1685 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
5265 /* 1689 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB),
5266 /* 1693 */ // MIs[2] C
5267 /* 1693 */ // No operand predicates
5268 /* 1693 */ // MIs[2] A
5269 /* 1693 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/1,
5270 /* 1698 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5271 /* 1700 */ // Combiner Rule #6: AMinusBPlusCMinusA
5272 /* 1700 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5273 /* 1703 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
5274 /* 1705 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // C
5275 /* 1709 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // B
5276 /* 1713 */ GIR_EraseRootFromParent_Done,
5277 /* 1714 */ // Label 128: @1714
5278 /* 1714 */ GIM_Try, /*On fail goto*//*Label 129*/ GIMT_Encode4(1738), // Rule ID 105 //
5279 /* 1719 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule84Enabled),
5280 /* 1722 */ // MIs[0] dst
5281 /* 1722 */ // No operand predicates
5282 /* 1722 */ // MIs[0] __propagate_undef_any_op_match_0.x
5283 /* 1722 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5284 /* 1726 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
5285 /* 1730 */ // MIs[0] __propagate_undef_any_op_match_0.y
5286 /* 1730 */ // No operand predicates
5287 /* 1730 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5288 /* 1732 */ // Combiner Rule #84: propagate_undef_any_op @ [__propagate_undef_any_op_match_0[0]]
5289 /* 1732 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
5290 /* 1735 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
5291 /* 1737 */ GIR_EraseRootFromParent_Done,
5292 /* 1738 */ // Label 129: @1738
5293 /* 1738 */ GIM_Try, /*On fail goto*//*Label 130*/ GIMT_Encode4(1772), // Rule ID 3 //
5294 /* 1743 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule3Enabled),
5295 /* 1746 */ // MIs[0] root
5296 /* 1746 */ // No operand predicates
5297 /* 1746 */ // MIs[0] A
5298 /* 1746 */ // No operand predicates
5299 /* 1746 */ // MIs[0] sub
5300 /* 1746 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5301 /* 1750 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5302 /* 1754 */ // MIs[1] Operand 1
5303 /* 1754 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/1, 0,
5304 /* 1758 */ // MIs[1] B
5305 /* 1758 */ // No operand predicates
5306 /* 1758 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5307 /* 1760 */ // Combiner Rule #3: APlusZeroMinusB
5308 /* 1760 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5309 /* 1763 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
5310 /* 1765 */ GIR_RootToRootCopy, /*OpIdx*/1, // A
5311 /* 1767 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // B
5312 /* 1771 */ GIR_EraseRootFromParent_Done,
5313 /* 1772 */ // Label 130: @1772
5314 /* 1772 */ GIM_Try, /*On fail goto*//*Label 131*/ GIMT_Encode4(1821), // Rule ID 164 //
5315 /* 1777 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule118Enabled),
5316 /* 1780 */ // MIs[0] dst
5317 /* 1780 */ // No operand predicates
5318 /* 1780 */ // MIs[0] newlhs
5319 /* 1780 */ // No operand predicates
5320 /* 1780 */ // MIs[0] __simplify_add_to_sub_match_0.neg
5321 /* 1780 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5322 /* 1784 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5323 /* 1788 */ // MIs[1] __simplify_add_to_sub_match_0.zero
5324 /* 1788 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
5325 /* 1792 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5326 /* 1796 */ // MIs[2] Operand 1
5327 /* 1796 */ GIM_CheckLiteralInt, /*MI*/2, /*Op*/1, GIMT_Encode8(0),
5328 /* 1807 */ // MIs[1] newrhs
5329 /* 1807 */ // No operand predicates
5330 /* 1807 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5331 /* 1809 */ // Combiner Rule #118: simplify_add_to_sub @ [__simplify_add_to_sub_match_0[1]]
5332 /* 1809 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5333 /* 1812 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
5334 /* 1814 */ GIR_RootToRootCopy, /*OpIdx*/1, // newlhs
5335 /* 1816 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // newrhs
5336 /* 1820 */ GIR_EraseRootFromParent_Done,
5337 /* 1821 */ // Label 131: @1821
5338 /* 1821 */ GIM_Try, /*On fail goto*//*Label 132*/ GIMT_Encode4(1855), // Rule ID 4 //
5339 /* 1826 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule4Enabled),
5340 /* 1829 */ // MIs[0] root
5341 /* 1829 */ // No operand predicates
5342 /* 1829 */ // MIs[0] A
5343 /* 1829 */ // No operand predicates
5344 /* 1829 */ // MIs[0] sub
5345 /* 1829 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5346 /* 1833 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5347 /* 1837 */ // MIs[1] B
5348 /* 1837 */ // No operand predicates
5349 /* 1837 */ // MIs[1] A
5350 /* 1837 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/1, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
5351 /* 1842 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
5352 /* 1847 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5353 /* 1849 */ // Combiner Rule #4: APlusBMinusB
5354 /* 1849 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
5355 /* 1854 */ GIR_EraseRootFromParent_Done,
5356 /* 1855 */ // Label 132: @1855
5357 /* 1855 */ GIM_Try, /*On fail goto*//*Label 133*/ GIMT_Encode4(1889), // Rule ID 150 //
5358 /* 1860 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule106Enabled),
5359 /* 1863 */ // MIs[0] dst
5360 /* 1863 */ // No operand predicates
5361 /* 1863 */ // MIs[0] __add_sub_reg_match_0.x
5362 /* 1863 */ // No operand predicates
5363 /* 1863 */ // MIs[0] __add_sub_reg_match_0.tmp
5364 /* 1863 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5365 /* 1867 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5366 /* 1871 */ // MIs[1] src
5367 /* 1871 */ // No operand predicates
5368 /* 1871 */ // MIs[1] __add_sub_reg_match_0.x
5369 /* 1871 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/1, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
5370 /* 1876 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
5371 /* 1881 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5372 /* 1883 */ // Combiner Rule #106: add_sub_reg @ [__add_sub_reg_match_0[0]]
5373 /* 1883 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
5374 /* 1888 */ GIR_EraseRootFromParent_Done,
5375 /* 1889 */ // Label 133: @1889
5376 /* 1889 */ GIM_Try, /*On fail goto*//*Label 134*/ GIMT_Encode4(1934), // Rule ID 8 //
5377 /* 1894 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule8Enabled),
5378 /* 1897 */ // MIs[0] root
5379 /* 1897 */ // No operand predicates
5380 /* 1897 */ // MIs[0] A
5381 /* 1897 */ // No operand predicates
5382 /* 1897 */ // MIs[0] sub1
5383 /* 1897 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5384 /* 1901 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5385 /* 1905 */ // MIs[1] B
5386 /* 1905 */ // No operand predicates
5387 /* 1905 */ // MIs[1] add1
5388 /* 1905 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
5389 /* 1909 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ADD),
5390 /* 1913 */ // MIs[2] A
5391 /* 1913 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/0, /*OtherOpIdx*/1,
5392 /* 1918 */ // MIs[2] C
5393 /* 1918 */ // No operand predicates
5394 /* 1918 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5395 /* 1920 */ // Combiner Rule #8: APlusBMinusAplusC
5396 /* 1920 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5397 /* 1923 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
5398 /* 1925 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // B
5399 /* 1929 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/2, // C
5400 /* 1933 */ GIR_EraseRootFromParent_Done,
5401 /* 1934 */ // Label 134: @1934
5402 /* 1934 */ GIM_Try, /*On fail goto*//*Label 135*/ GIMT_Encode4(1979), // Rule ID 10 //
5403 /* 1939 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule10Enabled),
5404 /* 1942 */ // MIs[0] root
5405 /* 1942 */ // No operand predicates
5406 /* 1942 */ // MIs[0] A
5407 /* 1942 */ // No operand predicates
5408 /* 1942 */ // MIs[0] sub1
5409 /* 1942 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5410 /* 1946 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5411 /* 1950 */ // MIs[1] B
5412 /* 1950 */ // No operand predicates
5413 /* 1950 */ // MIs[1] add1
5414 /* 1950 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
5415 /* 1954 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ADD),
5416 /* 1958 */ // MIs[2] C
5417 /* 1958 */ // No operand predicates
5418 /* 1958 */ // MIs[2] A
5419 /* 1958 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
5420 /* 1963 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5421 /* 1965 */ // Combiner Rule #10: APlusBMinusCPlusA
5422 /* 1965 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5423 /* 1968 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
5424 /* 1970 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // B
5425 /* 1974 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // C
5426 /* 1978 */ GIR_EraseRootFromParent_Done,
5427 /* 1979 */ // Label 135: @1979
5428 /* 1979 */ GIM_Try, /*On fail goto*//*Label 136*/ GIMT_Encode4(2003), // Rule ID 108 //
5429 /* 1984 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule84Enabled),
5430 /* 1987 */ // MIs[0] dst
5431 /* 1987 */ // No operand predicates
5432 /* 1987 */ // MIs[0] __propagate_undef_any_op_match_0.x
5433 /* 1987 */ // No operand predicates
5434 /* 1987 */ // MIs[0] __propagate_undef_any_op_match_0.y
5435 /* 1987 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5436 /* 1991 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
5437 /* 1995 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5438 /* 1997 */ // Combiner Rule #84: propagate_undef_any_op @ [__propagate_undef_any_op_match_0[3]]
5439 /* 1997 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
5440 /* 2000 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
5441 /* 2002 */ GIR_EraseRootFromParent_Done,
5442 /* 2003 */ // Label 136: @2003
5443 /* 2003 */ GIM_Try, /*On fail goto*//*Label 137*/ GIMT_Encode4(2026), // Rule ID 120 //
5444 /* 2008 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
5445 /* 2011 */ // MIs[0] dst
5446 /* 2011 */ // No operand predicates
5447 /* 2011 */ // MIs[0] lhs
5448 /* 2011 */ // No operand predicates
5449 /* 2011 */ // MIs[0] Operand 2
5450 /* 2011 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
5451 /* 2015 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5452 /* 2020 */ // Combiner Rule #93: right_identity_zero @ [__right_identity_zero_match_0[1]]
5453 /* 2020 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5454 /* 2025 */ GIR_EraseRootFromParent_Done,
5455 /* 2026 */ // Label 137: @2026
5456 /* 2026 */ GIM_Try, /*On fail goto*//*Label 138*/ GIMT_Encode4(2037), // Rule ID 172 //
5457 /* 2031 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule122Enabled),
5458 /* 2034 */ // MIs[0] root
5459 /* 2034 */ // No operand predicates
5460 /* 2034 */ // MIs[0] src1
5461 /* 2034 */ // No operand predicates
5462 /* 2034 */ // MIs[0] src2
5463 /* 2034 */ // No operand predicates
5464 /* 2034 */ // Combiner Rule #122: reassoc_comm_binops
5465 /* 2034 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner41),
5466 /* 2037 */ // Label 138: @2037
5467 /* 2037 */ GIM_Try, /*On fail goto*//*Label 139*/ GIMT_Encode4(2048), // Rule ID 281 //
5468 /* 2042 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule213Enabled),
5469 /* 2045 */ // MIs[0] d
5470 /* 2045 */ // No operand predicates
5471 /* 2045 */ // MIs[0] mi.src0
5472 /* 2045 */ // No operand predicates
5473 /* 2045 */ // MIs[0] mi.src1
5474 /* 2045 */ // No operand predicates
5475 /* 2045 */ // Combiner Rule #213: constant_fold_binop @ [mi[0]]
5476 /* 2045 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner79),
5477 /* 2048 */ // Label 139: @2048
5478 /* 2048 */ GIM_Try, /*On fail goto*//*Label 140*/ GIMT_Encode4(2059), // Rule ID 342 //
5479 /* 2053 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule236Enabled),
5480 /* 2056 */ // MIs[0] root
5481 /* 2056 */ // No operand predicates
5482 /* 2056 */ // MIs[0] mi.x
5483 /* 2056 */ // No operand predicates
5484 /* 2056 */ // MIs[0] mi.y
5485 /* 2056 */ // No operand predicates
5486 /* 2056 */ // Combiner Rule #236: fold_binop_into_select_a @ [mi[0]]
5487 /* 2056 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
5488 /* 2059 */ // Label 140: @2059
5489 /* 2059 */ GIM_Reject,
5490 /* 2060 */ // Label 2: @2060
5491 /* 2060 */ GIM_Try, /*On fail goto*//*Label 141*/ GIMT_Encode4(2137), // Rule ID 458 //
5492 /* 2065 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule327Enabled),
5493 /* 2068 */ // MIs[0] dst
5494 /* 2068 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
5495 /* 2072 */ // MIs[0] sub1
5496 /* 2072 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5497 /* 2076 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5498 /* 2080 */ // MIs[1] a
5499 /* 2080 */ // No operand predicates
5500 /* 2080 */ // MIs[1] b
5501 /* 2080 */ // No operand predicates
5502 /* 2080 */ // MIs[0] Operand 2
5503 /* 2080 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 1,
5504 /* 2084 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner1),
5505 /* 2088 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5506 /* 2090 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
5507 /* 2093 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(18446744073709551615u),
5508 /* 2103 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5509 /* 2106 */ // Combiner Rule #327: sub_one_from_sub
5510 /* 2106 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_XOR),
5511 /* 2109 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5512 /* 2114 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // b
5513 /* 2118 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/1,
5514 /* 2121 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ADD),
5515 /* 2125 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
5516 /* 2129 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
5517 /* 2132 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // a
5518 /* 2136 */ GIR_EraseRootFromParent_Done,
5519 /* 2137 */ // Label 141: @2137
5520 /* 2137 */ GIM_Try, /*On fail goto*//*Label 142*/ GIMT_Encode4(2231), // Rule ID 464 //
5521 /* 2142 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule331Enabled),
5522 /* 2145 */ // MIs[0] root
5523 /* 2145 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
5524 /* 2149 */ // MIs[0] Operand 1
5525 /* 2149 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/1, 0,
5526 /* 2153 */ // MIs[0] max
5527 /* 2153 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5528 /* 2157 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SMAX),
5529 /* 2161 */ // MIs[1] A
5530 /* 2161 */ // No operand predicates
5531 /* 2161 */ // MIs[1] sub
5532 /* 2161 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
5533 /* 2165 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB),
5534 /* 2169 */ // MIs[2] Operand 1
5535 /* 2169 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/1, 0,
5536 /* 2173 */ // MIs[2] A
5537 /* 2173 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/1,
5538 /* 2178 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner62),
5539 /* 2182 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5540 /* 2184 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
5541 /* 2187 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(0),
5542 /* 2197 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5543 /* 2200 */ // Combiner Rule #331: SubSmaxSub
5544 /* 2200 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5545 /* 2203 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5546 /* 2208 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/1,
5547 /* 2211 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // A
5548 /* 2215 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SMIN),
5549 /* 2219 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // root
5550 /* 2223 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // A
5551 /* 2227 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
5552 /* 2230 */ GIR_EraseRootFromParent_Done,
5553 /* 2231 */ // Label 142: @2231
5554 /* 2231 */ GIM_Try, /*On fail goto*//*Label 143*/ GIMT_Encode4(2325), // Rule ID 466 //
5555 /* 2236 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule333Enabled),
5556 /* 2239 */ // MIs[0] root
5557 /* 2239 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
5558 /* 2243 */ // MIs[0] Operand 1
5559 /* 2243 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/1, 0,
5560 /* 2247 */ // MIs[0] max
5561 /* 2247 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5562 /* 2251 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SMIN),
5563 /* 2255 */ // MIs[1] A
5564 /* 2255 */ // No operand predicates
5565 /* 2255 */ // MIs[1] sub
5566 /* 2255 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
5567 /* 2259 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB),
5568 /* 2263 */ // MIs[2] Operand 1
5569 /* 2263 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/1, 0,
5570 /* 2267 */ // MIs[2] A
5571 /* 2267 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/1,
5572 /* 2272 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner62),
5573 /* 2276 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5574 /* 2278 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
5575 /* 2281 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(0),
5576 /* 2291 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5577 /* 2294 */ // Combiner Rule #333: NegSminNeg
5578 /* 2294 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5579 /* 2297 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5580 /* 2302 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/1,
5581 /* 2305 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // A
5582 /* 2309 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SMAX),
5583 /* 2313 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // root
5584 /* 2317 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // A
5585 /* 2321 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
5586 /* 2324 */ GIR_EraseRootFromParent_Done,
5587 /* 2325 */ // Label 143: @2325
5588 /* 2325 */ GIM_Try, /*On fail goto*//*Label 144*/ GIMT_Encode4(2419), // Rule ID 465 //
5589 /* 2330 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule332Enabled),
5590 /* 2333 */ // MIs[0] root
5591 /* 2333 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
5592 /* 2337 */ // MIs[0] Operand 1
5593 /* 2337 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/1, 0,
5594 /* 2341 */ // MIs[0] max
5595 /* 2341 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5596 /* 2345 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_UMAX),
5597 /* 2349 */ // MIs[1] A
5598 /* 2349 */ // No operand predicates
5599 /* 2349 */ // MIs[1] sub
5600 /* 2349 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
5601 /* 2353 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB),
5602 /* 2357 */ // MIs[2] Operand 1
5603 /* 2357 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/1, 0,
5604 /* 2361 */ // MIs[2] A
5605 /* 2361 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/1,
5606 /* 2366 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner62),
5607 /* 2370 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5608 /* 2372 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
5609 /* 2375 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(0),
5610 /* 2385 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5611 /* 2388 */ // Combiner Rule #332: SubUmaxSub
5612 /* 2388 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5613 /* 2391 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5614 /* 2396 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/1,
5615 /* 2399 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // A
5616 /* 2403 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UMIN),
5617 /* 2407 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // root
5618 /* 2411 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // A
5619 /* 2415 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
5620 /* 2418 */ GIR_EraseRootFromParent_Done,
5621 /* 2419 */ // Label 144: @2419
5622 /* 2419 */ GIM_Try, /*On fail goto*//*Label 145*/ GIMT_Encode4(2513), // Rule ID 467 //
5623 /* 2424 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule334Enabled),
5624 /* 2427 */ // MIs[0] root
5625 /* 2427 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
5626 /* 2431 */ // MIs[0] Operand 1
5627 /* 2431 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/1, 0,
5628 /* 2435 */ // MIs[0] max
5629 /* 2435 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5630 /* 2439 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_UMIN),
5631 /* 2443 */ // MIs[1] A
5632 /* 2443 */ // No operand predicates
5633 /* 2443 */ // MIs[1] sub
5634 /* 2443 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
5635 /* 2447 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB),
5636 /* 2451 */ // MIs[2] Operand 1
5637 /* 2451 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/1, 0,
5638 /* 2455 */ // MIs[2] A
5639 /* 2455 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/1,
5640 /* 2460 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner62),
5641 /* 2464 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5642 /* 2466 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
5643 /* 2469 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(0),
5644 /* 2479 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5645 /* 2482 */ // Combiner Rule #334: NegUminNeg
5646 /* 2482 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5647 /* 2485 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5648 /* 2490 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/1,
5649 /* 2493 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // A
5650 /* 2497 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UMAX),
5651 /* 2501 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // root
5652 /* 2505 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // A
5653 /* 2509 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
5654 /* 2512 */ GIR_EraseRootFromParent_Done,
5655 /* 2513 */ // Label 145: @2513
5656 /* 2513 */ GIM_Try, /*On fail goto*//*Label 146*/ GIMT_Encode4(2565), // Rule ID 379 //
5657 /* 2518 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule249Enabled),
5658 /* 2521 */ // MIs[0] dst
5659 /* 2521 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
5660 /* 2525 */ // MIs[0] x
5661 /* 2525 */ // No operand predicates
5662 /* 2525 */ // MIs[0] sum
5663 /* 2525 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5664 /* 2529 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
5665 /* 2533 */ // MIs[1] y
5666 /* 2533 */ // No operand predicates
5667 /* 2533 */ // MIs[1] z
5668 /* 2533 */ // No operand predicates
5669 /* 2533 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner48),
5670 /* 2537 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5671 /* 2539 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5672 /* 2542 */ GIR_BuildConstant, /*TempRegID*/0, /*Val*/GIMT_Encode8(0),
5673 /* 2552 */ // Combiner Rule #249: sub_add_neg_rhs
5674 /* 2552 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5675 /* 2555 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
5676 /* 2557 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/0,
5677 /* 2560 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // y
5678 /* 2564 */ GIR_EraseRootFromParent_Done,
5679 /* 2565 */ // Label 146: @2565
5680 /* 2565 */ GIM_Try, /*On fail goto*//*Label 147*/ GIMT_Encode4(2617), // Rule ID 380 //
5681 /* 2570 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule250Enabled),
5682 /* 2573 */ // MIs[0] dst
5683 /* 2573 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
5684 /* 2577 */ // MIs[0] x
5685 /* 2577 */ // No operand predicates
5686 /* 2577 */ // MIs[0] sum
5687 /* 2577 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5688 /* 2581 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
5689 /* 2585 */ // MIs[1] y
5690 /* 2585 */ // No operand predicates
5691 /* 2585 */ // MIs[1] z
5692 /* 2585 */ // No operand predicates
5693 /* 2585 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner49),
5694 /* 2589 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5695 /* 2591 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5696 /* 2594 */ GIR_BuildConstant, /*TempRegID*/0, /*Val*/GIMT_Encode8(0),
5697 /* 2604 */ // Combiner Rule #250: sub_add_neg_lhs
5698 /* 2604 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5699 /* 2607 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
5700 /* 2609 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/0,
5701 /* 2612 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // z
5702 /* 2616 */ GIR_EraseRootFromParent_Done,
5703 /* 2617 */ // Label 147: @2617
5704 /* 2617 */ GIM_Try, /*On fail goto*//*Label 148*/ GIMT_Encode4(2678), // Rule ID 9 //
5705 /* 2622 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule9Enabled),
5706 /* 2625 */ // MIs[0] root
5707 /* 2625 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
5708 /* 2629 */ // MIs[0] A
5709 /* 2629 */ // No operand predicates
5710 /* 2629 */ // MIs[0] sub1
5711 /* 2629 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5712 /* 2633 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5713 /* 2637 */ // MIs[1] B
5714 /* 2637 */ // No operand predicates
5715 /* 2637 */ // MIs[1] C
5716 /* 2637 */ // No operand predicates
5717 /* 2637 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner0),
5718 /* 2641 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5719 /* 2643 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5720 /* 2646 */ // Combiner Rule #9: AMinusBMinusC
5721 /* 2646 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5722 /* 2649 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5723 /* 2654 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // C
5724 /* 2658 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // B
5725 /* 2662 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ADD),
5726 /* 2666 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // root
5727 /* 2670 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/1, // A
5728 /* 2674 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
5729 /* 2677 */ GIR_EraseRootFromParent_Done,
5730 /* 2678 */ // Label 148: @2678
5731 /* 2678 */ GIM_Try, /*On fail goto*//*Label 149*/ GIMT_Encode4(2711), // Rule ID 377 //
5732 /* 2683 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule247Enabled),
5733 /* 2686 */ // MIs[0] dst
5734 /* 2686 */ // No operand predicates
5735 /* 2686 */ // MIs[0] sum
5736 /* 2686 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5737 /* 2690 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
5738 /* 2694 */ // MIs[1] x
5739 /* 2694 */ // No operand predicates
5740 /* 2694 */ // MIs[1] y
5741 /* 2694 */ // No operand predicates
5742 /* 2694 */ // MIs[0] z
5743 /* 2694 */ // No operand predicates
5744 /* 2694 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner46),
5745 /* 2698 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
5746 /* 2703 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5747 /* 2705 */ // Combiner Rule #247: sub_add_reg_rhs
5748 /* 2705 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
5749 /* 2710 */ GIR_EraseRootFromParent_Done,
5750 /* 2711 */ // Label 149: @2711
5751 /* 2711 */ GIM_Try, /*On fail goto*//*Label 150*/ GIMT_Encode4(2744), // Rule ID 378 //
5752 /* 2716 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule248Enabled),
5753 /* 2719 */ // MIs[0] dst
5754 /* 2719 */ // No operand predicates
5755 /* 2719 */ // MIs[0] sum
5756 /* 2719 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5757 /* 2723 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
5758 /* 2727 */ // MIs[1] x
5759 /* 2727 */ // No operand predicates
5760 /* 2727 */ // MIs[1] y
5761 /* 2727 */ // No operand predicates
5762 /* 2727 */ // MIs[0] z
5763 /* 2727 */ // No operand predicates
5764 /* 2727 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner47),
5765 /* 2731 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/2,
5766 /* 2736 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5767 /* 2738 */ // Combiner Rule #248: sub_add_reg_lhs
5768 /* 2738 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/2,
5769 /* 2743 */ GIR_EraseRootFromParent_Done,
5770 /* 2744 */ // Label 150: @2744
5771 /* 2744 */ GIM_Try, /*On fail goto*//*Label 151*/ GIMT_Encode4(2787), // Rule ID 182 //
5772 /* 2749 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule132Enabled),
5773 /* 2752 */ // MIs[0] dst
5774 /* 2752 */ // No operand predicates
5775 /* 2752 */ // MIs[0] Operand 1
5776 /* 2752 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/1, 0,
5777 /* 2756 */ // MIs[0] and
5778 /* 2756 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5779 /* 2760 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_AND),
5780 /* 2764 */ // MIs[1] x
5781 /* 2764 */ // No operand predicates
5782 /* 2764 */ // MIs[1] Operand 2
5783 /* 2764 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/2, 1,
5784 /* 2768 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner25),
5785 /* 2772 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5786 /* 2774 */ // Combiner Rule #132: neg_and_one_to_sext_inreg
5787 /* 2774 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SEXT_INREG),
5788 /* 2777 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
5789 /* 2779 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
5790 /* 2783 */ GIR_AddImm8, /*InsnID*/0, /*Imm*/1,
5791 /* 2786 */ GIR_EraseRootFromParent_Done,
5792 /* 2787 */ // Label 151: @2787
5793 /* 2787 */ GIM_Try, /*On fail goto*//*Label 152*/ GIMT_Encode4(2814), // Rule ID 49 //
5794 /* 2792 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule45Enabled),
5795 /* 2795 */ GIM_MIFlags, /*MI*/0, GIMT_Encode4(MachineInstr::NoSWrap),
5796 /* 2801 */ // MIs[0] root
5797 /* 2801 */ // No operand predicates
5798 /* 2801 */ // MIs[0] x
5799 /* 2801 */ // No operand predicates
5800 /* 2801 */ // MIs[0] right
5801 /* 2801 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5802 /* 2805 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_VSCALE),
5803 /* 2809 */ // MIs[1] imm
5804 /* 2809 */ // No operand predicates
5805 /* 2809 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5806 /* 2811 */ // Combiner Rule #45: sub_of_vscale
5807 /* 2811 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner15),
5808 /* 2814 */ // Label 152: @2814
5809 /* 2814 */ GIM_Try, /*On fail goto*//*Label 153*/ GIMT_Encode4(2954),
5810 /* 2819 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
5811 /* 2823 */ GIM_Try, /*On fail goto*//*Label 154*/ GIMT_Encode4(2859), // Rule ID 462 //
5812 /* 2828 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule329Enabled),
5813 /* 2831 */ // MIs[0] Operand 1
5814 /* 2831 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/1, 255,
5815 /* 2835 */ // MIs[0] op1
5816 /* 2835 */ // No operand predicates
5817 /* 2835 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5818 /* 2838 */ GIR_BuildConstant, /*TempRegID*/0, /*Val*/GIMT_Encode8(18446744073709551615u),
5819 /* 2848 */ // Combiner Rule #329: sub_minus_one
5820 /* 2848 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_XOR),
5821 /* 2851 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
5822 /* 2853 */ GIR_RootToRootCopy, /*OpIdx*/2, // op1
5823 /* 2855 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/0,
5824 /* 2858 */ GIR_EraseRootFromParent_Done,
5825 /* 2859 */ // Label 154: @2859
5826 /* 2859 */ GIM_Try, /*On fail goto*//*Label 155*/ GIMT_Encode4(2953), // Rule ID 463 //
5827 /* 2864 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule330Enabled),
5828 /* 2867 */ // MIs[0] a
5829 /* 2867 */ // No operand predicates
5830 /* 2867 */ // MIs[0] mul
5831 /* 2867 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5832 /* 2871 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_MUL),
5833 /* 2875 */ GIM_CheckHasOneUse, /*MI*/1,
5834 /* 2877 */ // MIs[1] x
5835 /* 2877 */ // No operand predicates
5836 /* 2877 */ // MIs[1] c
5837 /* 2877 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
5838 /* 2881 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5839 /* 2885 */ // MIs[2] imm
5840 /* 2885 */ // No operand predicates
5841 /* 2885 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5842 /* 2887 */ GIR_MakeTempReg, /*TempRegID*/2, /*TypeID*/255,
5843 /* 2890 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
5844 /* 2893 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(0),
5845 /* 2903 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5846 /* 2906 */ // Combiner Rule #330: sub_of_mul_const
5847 /* 2906 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5848 /* 2909 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5849 /* 2914 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/1,
5850 /* 2917 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // c
5851 /* 2921 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_MUL),
5852 /* 2925 */ GIR_AddTempRegister, /*InsnID*/1, /*TempRegID*/2, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5853 /* 2930 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // x
5854 /* 2934 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
5855 /* 2937 */ GIR_BuildMI, /*InsnID*/2, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ADD),
5856 /* 2941 */ GIR_Copy, /*NewInsnID*/2, /*OldInsnID*/0, /*OpIdx*/0, // d
5857 /* 2945 */ GIR_Copy, /*NewInsnID*/2, /*OldInsnID*/0, /*OpIdx*/1, // a
5858 /* 2949 */ GIR_AddSimpleTempRegister, /*InsnID*/2, /*TempRegID*/2,
5859 /* 2952 */ GIR_EraseRootFromParent_Done,
5860 /* 2953 */ // Label 155: @2953
5861 /* 2953 */ GIM_Reject,
5862 /* 2954 */ // Label 153: @2954
5863 /* 2954 */ GIM_Try, /*On fail goto*//*Label 156*/ GIMT_Encode4(2999), // Rule ID 0 //
5864 /* 2959 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule0Enabled),
5865 /* 2962 */ // MIs[0] root
5866 /* 2962 */ // No operand predicates
5867 /* 2962 */ // MIs[0] add1
5868 /* 2962 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5869 /* 2966 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
5870 /* 2970 */ // MIs[1] A
5871 /* 2970 */ // No operand predicates
5872 /* 2970 */ // MIs[1] sub1
5873 /* 2970 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
5874 /* 2974 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB),
5875 /* 2978 */ // MIs[2] B
5876 /* 2978 */ // No operand predicates
5877 /* 2978 */ // MIs[2] C
5878 /* 2978 */ // No operand predicates
5879 /* 2978 */ // MIs[0] B
5880 /* 2978 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/2, /*OtherOpIdx*/1,
5881 /* 2983 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5882 /* 2985 */ // Combiner Rule #0: APlusBMinusCMinusB
5883 /* 2985 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5884 /* 2988 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
5885 /* 2990 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // A
5886 /* 2994 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/2, // C
5887 /* 2998 */ GIR_EraseRootFromParent_Done,
5888 /* 2999 */ // Label 156: @2999
5889 /* 2999 */ GIM_Try, /*On fail goto*//*Label 157*/ GIMT_Encode4(3036), // Rule ID 14 //
5890 /* 3004 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule14Enabled),
5891 /* 3007 */ // MIs[0] root
5892 /* 3007 */ // No operand predicates
5893 /* 3007 */ // MIs[0] add
5894 /* 3007 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5895 /* 3011 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
5896 /* 3015 */ // MIs[1] A
5897 /* 3015 */ // No operand predicates
5898 /* 3015 */ // MIs[1] c1
5899 /* 3015 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
5900 /* 3019 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5901 /* 3023 */ // MIs[2] imm1
5902 /* 3023 */ // No operand predicates
5903 /* 3023 */ // MIs[0] c2
5904 /* 3023 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/0, /*OpIdx*/2, // MIs[3]
5905 /* 3027 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5906 /* 3031 */ // MIs[3] imm2
5907 /* 3031 */ // No operand predicates
5908 /* 3031 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
5909 /* 3033 */ // Combiner Rule #14: APlusC1MinusC2
5910 /* 3033 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner0),
5911 /* 3036 */ // Label 157: @3036
5912 /* 3036 */ GIM_Try, /*On fail goto*//*Label 158*/ GIMT_Encode4(3073), // Rule ID 17 //
5913 /* 3041 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule17Enabled),
5914 /* 3044 */ // MIs[0] root
5915 /* 3044 */ // No operand predicates
5916 /* 3044 */ // MIs[0] sub1
5917 /* 3044 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5918 /* 3048 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5919 /* 3052 */ // MIs[1] c1
5920 /* 3052 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
5921 /* 3056 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5922 /* 3060 */ // MIs[2] imm1
5923 /* 3060 */ // No operand predicates
5924 /* 3060 */ // MIs[1] A
5925 /* 3060 */ // No operand predicates
5926 /* 3060 */ // MIs[0] c2
5927 /* 3060 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/0, /*OpIdx*/2, // MIs[3]
5928 /* 3064 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5929 /* 3068 */ // MIs[3] imm2
5930 /* 3068 */ // No operand predicates
5931 /* 3068 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
5932 /* 3070 */ // Combiner Rule #17: C1Minus2MinusC2
5933 /* 3070 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner3),
5934 /* 3073 */ // Label 158: @3073
5935 /* 3073 */ GIM_Try, /*On fail goto*//*Label 159*/ GIMT_Encode4(3118), // Rule ID 1 //
5936 /* 3078 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule1Enabled),
5937 /* 3081 */ // MIs[0] root
5938 /* 3081 */ // No operand predicates
5939 /* 3081 */ // MIs[0] sub2
5940 /* 3081 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5941 /* 3085 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5942 /* 3089 */ // MIs[1] A
5943 /* 3089 */ // No operand predicates
5944 /* 3089 */ // MIs[1] sub1
5945 /* 3089 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
5946 /* 3093 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB),
5947 /* 3097 */ // MIs[2] B
5948 /* 3097 */ // No operand predicates
5949 /* 3097 */ // MIs[2] C
5950 /* 3097 */ // No operand predicates
5951 /* 3097 */ // MIs[0] C
5952 /* 3097 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/2, /*OtherOpIdx*/2,
5953 /* 3102 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5954 /* 3104 */ // Combiner Rule #1: AMinusBMinusCMinusC
5955 /* 3104 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5956 /* 3107 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
5957 /* 3109 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // A
5958 /* 3113 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // B
5959 /* 3117 */ GIR_EraseRootFromParent_Done,
5960 /* 3118 */ // Label 159: @3118
5961 /* 3118 */ GIM_Try, /*On fail goto*//*Label 160*/ GIMT_Encode4(3155), // Rule ID 16 //
5962 /* 3123 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule16Enabled),
5963 /* 3126 */ // MIs[0] root
5964 /* 3126 */ // No operand predicates
5965 /* 3126 */ // MIs[0] sub1
5966 /* 3126 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5967 /* 3130 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5968 /* 3134 */ // MIs[1] A
5969 /* 3134 */ // No operand predicates
5970 /* 3134 */ // MIs[1] c1
5971 /* 3134 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
5972 /* 3138 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5973 /* 3142 */ // MIs[2] imm1
5974 /* 3142 */ // No operand predicates
5975 /* 3142 */ // MIs[0] c2
5976 /* 3142 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/0, /*OpIdx*/2, // MIs[3]
5977 /* 3146 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5978 /* 3150 */ // MIs[3] imm2
5979 /* 3150 */ // No operand predicates
5980 /* 3150 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
5981 /* 3152 */ // Combiner Rule #16: AMinusC1MinusC2
5982 /* 3152 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner2),
5983 /* 3155 */ // Label 160: @3155
5984 /* 3155 */ GIM_Try, /*On fail goto*//*Label 161*/ GIMT_Encode4(3179), // Rule ID 106 //
5985 /* 3160 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule84Enabled),
5986 /* 3163 */ // MIs[0] dst
5987 /* 3163 */ // No operand predicates
5988 /* 3163 */ // MIs[0] __propagate_undef_any_op_match_0.x
5989 /* 3163 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5990 /* 3167 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
5991 /* 3171 */ // MIs[0] __propagate_undef_any_op_match_0.y
5992 /* 3171 */ // No operand predicates
5993 /* 3171 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5994 /* 3173 */ // Combiner Rule #84: propagate_undef_any_op @ [__propagate_undef_any_op_match_0[1]]
5995 /* 3173 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
5996 /* 3176 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
5997 /* 3178 */ GIR_EraseRootFromParent_Done,
5998 /* 3179 */ // Label 161: @3179
5999 /* 3179 */ GIM_Try, /*On fail goto*//*Label 162*/ GIMT_Encode4(3216), // Rule ID 15 //
6000 /* 3184 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule15Enabled),
6001 /* 3187 */ // MIs[0] root
6002 /* 3187 */ // No operand predicates
6003 /* 3187 */ // MIs[0] c2
6004 /* 3187 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6005 /* 3191 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
6006 /* 3195 */ // MIs[1] imm2
6007 /* 3195 */ // No operand predicates
6008 /* 3195 */ // MIs[0] add
6009 /* 3195 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
6010 /* 3199 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ADD),
6011 /* 3203 */ // MIs[2] A
6012 /* 3203 */ // No operand predicates
6013 /* 3203 */ // MIs[2] c1
6014 /* 3203 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/2, /*OpIdx*/2, // MIs[3]
6015 /* 3207 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
6016 /* 3211 */ // MIs[3] imm1
6017 /* 3211 */ // No operand predicates
6018 /* 3211 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
6019 /* 3213 */ // Combiner Rule #15: C2MinusAPlusC1
6020 /* 3213 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner1),
6021 /* 3216 */ // Label 162: @3216
6022 /* 3216 */ GIM_Try, /*On fail goto*//*Label 163*/ GIMT_Encode4(3255), // Rule ID 131 //
6023 /* 3221 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule95Enabled),
6024 /* 3224 */ // MIs[0] dst
6025 /* 3224 */ // No operand predicates
6026 /* 3224 */ // MIs[0] x
6027 /* 3224 */ GIM_RecordRegType, /*MI*/0, /*Op*/1, /*TempTypeIdx*/255,
6028 /* 3228 */ // MIs[0] x
6029 /* 3228 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
6030 /* 3233 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
6031 /* 3236 */ GIR_BuildConstant, /*TempRegID*/0, /*Val*/GIMT_Encode8(0),
6032 /* 3246 */ // Combiner Rule #95: same_val_zero @ [__same_val_zero_match_0[0]]
6033 /* 3246 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::COPY),
6034 /* 3249 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
6035 /* 3251 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/0,
6036 /* 3254 */ GIR_EraseRootFromParent_Done,
6037 /* 3255 */ // Label 163: @3255
6038 /* 3255 */ GIM_Try, /*On fail goto*//*Label 164*/ GIMT_Encode4(3289), // Rule ID 12 //
6039 /* 3260 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule12Enabled),
6040 /* 3263 */ // MIs[0] root
6041 /* 3263 */ // No operand predicates
6042 /* 3263 */ // MIs[0] A
6043 /* 3263 */ // No operand predicates
6044 /* 3263 */ // MIs[0] add
6045 /* 3263 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
6046 /* 3267 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
6047 /* 3271 */ // MIs[1] A
6048 /* 3271 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/1, /*OpIdx*/1, /*OtherMI*/0, /*OtherOpIdx*/1,
6049 /* 3276 */ // MIs[1] B
6050 /* 3276 */ // No operand predicates
6051 /* 3276 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/2,
6052 /* 3281 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6053 /* 3283 */ // Combiner Rule #12: AMinusBMinusA
6054 /* 3283 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/2,
6055 /* 3288 */ GIR_EraseRootFromParent_Done,
6056 /* 3289 */ // Label 164: @3289
6057 /* 3289 */ GIM_Try, /*On fail goto*//*Label 165*/ GIMT_Encode4(3323), // Rule ID 11 //
6058 /* 3294 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule11Enabled),
6059 /* 3297 */ // MIs[0] root
6060 /* 3297 */ // No operand predicates
6061 /* 3297 */ // MIs[0] A
6062 /* 3297 */ // No operand predicates
6063 /* 3297 */ // MIs[0] sub1
6064 /* 3297 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
6065 /* 3301 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
6066 /* 3305 */ // MIs[1] Operand 1
6067 /* 3305 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/1, 0,
6068 /* 3309 */ // MIs[1] B
6069 /* 3309 */ // No operand predicates
6070 /* 3309 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6071 /* 3311 */ // Combiner Rule #11: AMinusZeroMinusB
6072 /* 3311 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ADD),
6073 /* 3314 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
6074 /* 3316 */ GIR_RootToRootCopy, /*OpIdx*/1, // A
6075 /* 3318 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // B
6076 /* 3322 */ GIR_EraseRootFromParent_Done,
6077 /* 3323 */ // Label 165: @3323
6078 /* 3323 */ GIM_Try, /*On fail goto*//*Label 166*/ GIMT_Encode4(3347), // Rule ID 109 //
6079 /* 3328 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule84Enabled),
6080 /* 3331 */ // MIs[0] dst
6081 /* 3331 */ // No operand predicates
6082 /* 3331 */ // MIs[0] __propagate_undef_any_op_match_0.x
6083 /* 3331 */ // No operand predicates
6084 /* 3331 */ // MIs[0] __propagate_undef_any_op_match_0.y
6085 /* 3331 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
6086 /* 3335 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
6087 /* 3339 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6088 /* 3341 */ // Combiner Rule #84: propagate_undef_any_op @ [__propagate_undef_any_op_match_0[4]]
6089 /* 3341 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
6090 /* 3344 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
6091 /* 3346 */ GIR_EraseRootFromParent_Done,
6092 /* 3347 */ // Label 166: @3347
6093 /* 3347 */ GIM_Try, /*On fail goto*//*Label 167*/ GIMT_Encode4(3370), // Rule ID 119 //
6094 /* 3352 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
6095 /* 3355 */ // MIs[0] dst
6096 /* 3355 */ // No operand predicates
6097 /* 3355 */ // MIs[0] lhs
6098 /* 3355 */ // No operand predicates
6099 /* 3355 */ // MIs[0] Operand 2
6100 /* 3355 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
6101 /* 3359 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6102 /* 3364 */ // Combiner Rule #93: right_identity_zero @ [__right_identity_zero_match_0[0]]
6103 /* 3364 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6104 /* 3369 */ GIR_EraseRootFromParent_Done,
6105 /* 3370 */ // Label 167: @3370
6106 /* 3370 */ GIM_Try, /*On fail goto*//*Label 168*/ GIMT_Encode4(3391), // Rule ID 21 //
6107 /* 3375 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule21Enabled),
6108 /* 3378 */ // MIs[0] d
6109 /* 3378 */ // No operand predicates
6110 /* 3378 */ // MIs[0] op1
6111 /* 3378 */ // No operand predicates
6112 /* 3378 */ // MIs[0] c
6113 /* 3378 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
6114 /* 3382 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
6115 /* 3386 */ // MIs[1] imm
6116 /* 3386 */ // No operand predicates
6117 /* 3386 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6118 /* 3388 */ // Combiner Rule #21: sub_to_add
6119 /* 3388 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner7),
6120 /* 3391 */ // Label 168: @3391
6121 /* 3391 */ GIM_Try, /*On fail goto*//*Label 169*/ GIMT_Encode4(3402), // Rule ID 289 //
6122 /* 3396 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule213Enabled),
6123 /* 3399 */ // MIs[0] d
6124 /* 3399 */ // No operand predicates
6125 /* 3399 */ // MIs[0] mi.src0
6126 /* 3399 */ // No operand predicates
6127 /* 3399 */ // MIs[0] mi.src1
6128 /* 3399 */ // No operand predicates
6129 /* 3399 */ // Combiner Rule #213: constant_fold_binop @ [mi[8]]
6130 /* 3399 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner79),
6131 /* 3402 */ // Label 169: @3402
6132 /* 3402 */ GIM_Try, /*On fail goto*//*Label 170*/ GIMT_Encode4(3413), // Rule ID 343 //
6133 /* 3407 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule236Enabled),
6134 /* 3410 */ // MIs[0] root
6135 /* 3410 */ // No operand predicates
6136 /* 3410 */ // MIs[0] mi.x
6137 /* 3410 */ // No operand predicates
6138 /* 3410 */ // MIs[0] mi.y
6139 /* 3410 */ // No operand predicates
6140 /* 3410 */ // Combiner Rule #236: fold_binop_into_select_a @ [mi[1]]
6141 /* 3410 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
6142 /* 3413 */ // Label 170: @3413
6143 /* 3413 */ GIM_Try, /*On fail goto*//*Label 171*/ GIMT_Encode4(3424), // Rule ID 420 //
6144 /* 3418 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule290Enabled),
6145 /* 3421 */ // MIs[0] dst
6146 /* 3421 */ // No operand predicates
6147 /* 3421 */ // MIs[0] src1
6148 /* 3421 */ // No operand predicates
6149 /* 3421 */ // MIs[0] src2
6150 /* 3421 */ // No operand predicates
6151 /* 3421 */ // Combiner Rule #290: simplify_neg_minmax
6152 /* 3421 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner105),
6153 /* 3424 */ // Label 171: @3424
6154 /* 3424 */ GIM_Reject,
6155 /* 3425 */ // Label 3: @3425
6156 /* 3425 */ GIM_Try, /*On fail goto*//*Label 172*/ GIMT_Encode4(3486), // Rule ID 50 //
6157 /* 3430 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule46Enabled),
6158 /* 3433 */ // MIs[0] dst
6159 /* 3433 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
6160 /* 3437 */ // MIs[0] x
6161 /* 3437 */ // No operand predicates
6162 /* 3437 */ // MIs[0] mask
6163 /* 3437 */ // No operand predicates
6164 /* 3437 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner6),
6165 /* 3441 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
6166 /* 3444 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(0),
6167 /* 3454 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
6168 /* 3457 */ // Combiner Rule #46: mul_by_zero_one_vector
6169 /* 3457 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
6170 /* 3460 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
6171 /* 3465 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/1,
6172 /* 3468 */ GIR_RootToRootCopy, /*OpIdx*/2, // mask
6173 /* 3470 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_AND),
6174 /* 3474 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
6175 /* 3478 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/1, // x
6176 /* 3482 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
6177 /* 3485 */ GIR_EraseRootFromParent_Done,
6178 /* 3486 */ // Label 172: @3486
6179 /* 3486 */ GIM_Try, /*On fail goto*//*Label 173*/ GIMT_Encode4(3509), // Rule ID 140 //
6180 /* 3491 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule96Enabled),
6181 /* 3494 */ // MIs[0] dst
6182 /* 3494 */ // No operand predicates
6183 /* 3494 */ // MIs[0] zero
6184 /* 3494 */ // No operand predicates
6185 /* 3494 */ // MIs[0] rhs
6186 /* 3494 */ // No operand predicates
6187 /* 3494 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner13),
6188 /* 3498 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6189 /* 3503 */ // Combiner Rule #96: binop_left_to_zero @ [__binop_left_to_zero_match_0[7]]
6190 /* 3503 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6191 /* 3508 */ GIR_EraseRootFromParent_Done,
6192 /* 3509 */ // Label 173: @3509
6193 /* 3509 */ GIM_Try, /*On fail goto*//*Label 174*/ GIMT_Encode4(3534), // Rule ID 384 //
6194 /* 3514 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule254Enabled),
6195 /* 3517 */ // MIs[0] dst
6196 /* 3517 */ // No operand predicates
6197 /* 3517 */ // MIs[0] lhs
6198 /* 3517 */ // No operand predicates
6199 /* 3517 */ // MIs[0] rhs
6200 /* 3517 */ // No operand predicates
6201 /* 3517 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner51),
6202 /* 3521 */ // Combiner Rule #254: G_MUL_commute_constant_to_rhs
6203 /* 3521 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_MUL),
6204 /* 3524 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
6205 /* 3526 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
6206 /* 3528 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
6207 /* 3530 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
6208 /* 3533 */ GIR_EraseRootFromParent_Done,
6209 /* 3534 */ // Label 174: @3534
6210 /* 3534 */ GIM_Try, /*On fail goto*//*Label 175*/ GIMT_Encode4(3569), // Rule ID 47 //
6211 /* 3539 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule43Enabled),
6212 /* 3542 */ GIM_MIFlags, /*MI*/0, GIMT_Encode4(MachineInstr::NoSWrap),
6213 /* 3548 */ // MIs[0] root
6214 /* 3548 */ // No operand predicates
6215 /* 3548 */ // MIs[0] left
6216 /* 3548 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6217 /* 3552 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_VSCALE),
6218 /* 3556 */ // MIs[1] scale
6219 /* 3556 */ // No operand predicates
6220 /* 3556 */ // MIs[0] x
6221 /* 3556 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
6222 /* 3560 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
6223 /* 3564 */ // MIs[2] imm1
6224 /* 3564 */ // No operand predicates
6225 /* 3564 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
6226 /* 3566 */ // Combiner Rule #43: mul_of_vscale
6227 /* 3566 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner13),
6228 /* 3569 */ // Label 175: @3569
6229 /* 3569 */ GIM_Try, /*On fail goto*//*Label 176*/ GIMT_Encode4(3609), // Rule ID 24 //
6230 /* 3574 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule23Enabled),
6231 /* 3577 */ // MIs[0] dst
6232 /* 3577 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
6233 /* 3581 */ // MIs[0] x
6234 /* 3581 */ // No operand predicates
6235 /* 3581 */ // MIs[0] Operand 2
6236 /* 3581 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 255,
6237 /* 3585 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
6238 /* 3588 */ GIR_BuildConstant, /*TempRegID*/0, /*Val*/GIMT_Encode8(0),
6239 /* 3598 */ // Combiner Rule #23: mul_by_neg_one
6240 /* 3598 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
6241 /* 3601 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
6242 /* 3603 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/0,
6243 /* 3606 */ GIR_RootToRootCopy, /*OpIdx*/1, // x
6244 /* 3608 */ GIR_EraseRootFromParent_Done,
6245 /* 3609 */ // Label 176: @3609
6246 /* 3609 */ GIM_Try, /*On fail goto*//*Label 177*/ GIMT_Encode4(3630), // Rule ID 86 //
6247 /* 3614 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule78Enabled),
6248 /* 3617 */ // MIs[0] dst
6249 /* 3617 */ // No operand predicates
6250 /* 3617 */ // MIs[0] __undef_to_int_zero_match_0.x
6251 /* 3617 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6252 /* 3621 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
6253 /* 3625 */ // MIs[0] __undef_to_int_zero_match_0.y
6254 /* 3625 */ // No operand predicates
6255 /* 3625 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6256 /* 3627 */ // Combiner Rule #78: undef_to_int_zero @ [__undef_to_int_zero_match_0[1]]
6257 /* 3627 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner31),
6258 /* 3630 */ // Label 177: @3630
6259 /* 3630 */ GIM_Try, /*On fail goto*//*Label 178*/ GIMT_Encode4(3651), // Rule ID 88 //
6260 /* 3635 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule78Enabled),
6261 /* 3638 */ // MIs[0] dst
6262 /* 3638 */ // No operand predicates
6263 /* 3638 */ // MIs[0] __undef_to_int_zero_match_0.x
6264 /* 3638 */ // No operand predicates
6265 /* 3638 */ // MIs[0] __undef_to_int_zero_match_0.y
6266 /* 3638 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
6267 /* 3642 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
6268 /* 3646 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6269 /* 3648 */ // Combiner Rule #78: undef_to_int_zero @ [__undef_to_int_zero_match_0[3]]
6270 /* 3648 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner31),
6271 /* 3651 */ // Label 178: @3651
6272 /* 3651 */ GIM_Try, /*On fail goto*//*Label 179*/ GIMT_Encode4(3674), // Rule ID 141 //
6273 /* 3656 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule97Enabled),
6274 /* 3659 */ // MIs[0] dst
6275 /* 3659 */ // No operand predicates
6276 /* 3659 */ // MIs[0] lhs
6277 /* 3659 */ // No operand predicates
6278 /* 3659 */ // MIs[0] zero
6279 /* 3659 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
6280 /* 3663 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
6281 /* 3668 */ // Combiner Rule #97: binop_right_to_zero
6282 /* 3668 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
6283 /* 3673 */ GIR_EraseRootFromParent_Done,
6284 /* 3674 */ // Label 179: @3674
6285 /* 3674 */ GIM_Try, /*On fail goto*//*Label 180*/ GIMT_Encode4(3697), // Rule ID 148 //
6286 /* 3679 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule104Enabled),
6287 /* 3682 */ // MIs[0] dst
6288 /* 3682 */ // No operand predicates
6289 /* 3682 */ // MIs[0] x
6290 /* 3682 */ // No operand predicates
6291 /* 3682 */ // MIs[0] Operand 2
6292 /* 3682 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 1,
6293 /* 3686 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6294 /* 3691 */ // Combiner Rule #104: right_identity_one_int
6295 /* 3691 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6296 /* 3696 */ GIR_EraseRootFromParent_Done,
6297 /* 3697 */ // Label 180: @3697
6298 /* 3697 */ GIM_Try, /*On fail goto*//*Label 181*/ GIMT_Encode4(3708), // Rule ID 20 //
6299 /* 3702 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule20Enabled),
6300 /* 3705 */ // MIs[0] d
6301 /* 3705 */ // No operand predicates
6302 /* 3705 */ // MIs[0] op1
6303 /* 3705 */ // No operand predicates
6304 /* 3705 */ // MIs[0] op2
6305 /* 3705 */ // No operand predicates
6306 /* 3705 */ // Combiner Rule #20: mul_to_shl
6307 /* 3705 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner6),
6308 /* 3708 */ // Label 181: @3708
6309 /* 3708 */ GIM_Try, /*On fail goto*//*Label 182*/ GIMT_Encode4(3719), // Rule ID 286 //
6310 /* 3713 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule213Enabled),
6311 /* 3716 */ // MIs[0] d
6312 /* 3716 */ // No operand predicates
6313 /* 3716 */ // MIs[0] mi.src0
6314 /* 3716 */ // No operand predicates
6315 /* 3716 */ // MIs[0] mi.src1
6316 /* 3716 */ // No operand predicates
6317 /* 3716 */ // Combiner Rule #213: constant_fold_binop @ [mi[5]]
6318 /* 3716 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner79),
6319 /* 3719 */ // Label 182: @3719
6320 /* 3719 */ GIM_Reject,
6321 /* 3720 */ // Label 4: @3720
6322 /* 3720 */ GIM_Try, /*On fail goto*//*Label 183*/ GIMT_Encode4(3743), // Rule ID 136 //
6323 /* 3725 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule96Enabled),
6324 /* 3728 */ // MIs[0] dst
6325 /* 3728 */ // No operand predicates
6326 /* 3728 */ // MIs[0] zero
6327 /* 3728 */ // No operand predicates
6328 /* 3728 */ // MIs[0] rhs
6329 /* 3728 */ // No operand predicates
6330 /* 3728 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner13),
6331 /* 3732 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6332 /* 3737 */ // Combiner Rule #96: binop_left_to_zero @ [__binop_left_to_zero_match_0[3]]
6333 /* 3737 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6334 /* 3742 */ GIR_EraseRootFromParent_Done,
6335 /* 3743 */ // Label 183: @3743
6336 /* 3743 */ GIM_Try, /*On fail goto*//*Label 184*/ GIMT_Encode4(3768), // Rule ID 205 //
6337 /* 3748 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule155Enabled),
6338 /* 3751 */ // MIs[0] dst
6339 /* 3751 */ // No operand predicates
6340 /* 3751 */ // MIs[0] x
6341 /* 3751 */ // No operand predicates
6342 /* 3751 */ // MIs[0] y
6343 /* 3751 */ // No operand predicates
6344 /* 3751 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner31),
6345 /* 3755 */ // Combiner Rule #155: sdiv_to_unsigned
6346 /* 3755 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UDIV),
6347 /* 3758 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
6348 /* 3760 */ GIR_RootToRootCopy, /*OpIdx*/1, // x
6349 /* 3762 */ GIR_RootToRootCopy, /*OpIdx*/2, // y
6350 /* 3764 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
6351 /* 3767 */ GIR_EraseRootFromParent_Done,
6352 /* 3768 */ // Label 184: @3768
6353 /* 3768 */ GIM_Try, /*On fail goto*//*Label 185*/ GIMT_Encode4(3785), // Rule ID 373 //
6354 /* 3773 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule243Enabled),
6355 /* 3776 */ GIM_MIFlagsNot, /*MI*/0, GIMT_Encode4(MachineInstr::IsExact),
6356 /* 3782 */ // MIs[0] dst
6357 /* 3782 */ // No operand predicates
6358 /* 3782 */ // MIs[0] x
6359 /* 3782 */ // No operand predicates
6360 /* 3782 */ // MIs[0] y
6361 /* 3782 */ // No operand predicates
6362 /* 3782 */ // Combiner Rule #243: sdiv_by_pow2
6363 /* 3782 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner100),
6364 /* 3785 */ // Label 185: @3785
6365 /* 3785 */ GIM_Try, /*On fail goto*//*Label 186*/ GIMT_Encode4(3796), // Rule ID 256 //
6366 /* 3790 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule196Enabled),
6367 /* 3793 */ // MIs[0] root
6368 /* 3793 */ // No operand predicates
6369 /* 3793 */ // MIs[0] mi.x
6370 /* 3793 */ // No operand predicates
6371 /* 3793 */ // MIs[0] mi.y
6372 /* 3793 */ // No operand predicates
6373 /* 3793 */ // Combiner Rule #196: div_rem_to_divrem @ [mi[0]]
6374 /* 3793 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner72),
6375 /* 3796 */ // Label 186: @3796
6376 /* 3796 */ GIM_Try, /*On fail goto*//*Label 187*/ GIMT_Encode4(3807), // Rule ID 292 //
6377 /* 3801 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule213Enabled),
6378 /* 3804 */ // MIs[0] d
6379 /* 3804 */ // No operand predicates
6380 /* 3804 */ // MIs[0] mi.src0
6381 /* 3804 */ // No operand predicates
6382 /* 3804 */ // MIs[0] mi.src1
6383 /* 3804 */ // No operand predicates
6384 /* 3804 */ // Combiner Rule #213: constant_fold_binop @ [mi[11]]
6385 /* 3804 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner79),
6386 /* 3807 */ // Label 187: @3807
6387 /* 3807 */ GIM_Try, /*On fail goto*//*Label 188*/ GIMT_Encode4(3818), // Rule ID 348 //
6388 /* 3812 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule236Enabled),
6389 /* 3815 */ // MIs[0] root
6390 /* 3815 */ // No operand predicates
6391 /* 3815 */ // MIs[0] mi.x
6392 /* 3815 */ // No operand predicates
6393 /* 3815 */ // MIs[0] mi.y
6394 /* 3815 */ // No operand predicates
6395 /* 3815 */ // Combiner Rule #236: fold_binop_into_select_a @ [mi[6]]
6396 /* 3815 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
6397 /* 3818 */ // Label 188: @3818
6398 /* 3818 */ GIM_Try, /*On fail goto*//*Label 189*/ GIMT_Encode4(3829), // Rule ID 375 //
6399 /* 3823 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule245Enabled),
6400 /* 3826 */ // MIs[0] dst
6401 /* 3826 */ // No operand predicates
6402 /* 3826 */ // MIs[0] x
6403 /* 3826 */ // No operand predicates
6404 /* 3826 */ // MIs[0] y
6405 /* 3826 */ // No operand predicates
6406 /* 3826 */ // Combiner Rule #245: sdiv_by_const
6407 /* 3826 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner97),
6408 /* 3829 */ // Label 189: @3829
6409 /* 3829 */ GIM_Reject,
6410 /* 3830 */ // Label 5: @3830
6411 /* 3830 */ GIM_Try, /*On fail goto*//*Label 190*/ GIMT_Encode4(3853), // Rule ID 137 //
6412 /* 3835 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule96Enabled),
6413 /* 3838 */ // MIs[0] dst
6414 /* 3838 */ // No operand predicates
6415 /* 3838 */ // MIs[0] zero
6416 /* 3838 */ // No operand predicates
6417 /* 3838 */ // MIs[0] rhs
6418 /* 3838 */ // No operand predicates
6419 /* 3838 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner13),
6420 /* 3842 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6421 /* 3847 */ // Combiner Rule #96: binop_left_to_zero @ [__binop_left_to_zero_match_0[4]]
6422 /* 3847 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6423 /* 3852 */ GIR_EraseRootFromParent_Done,
6424 /* 3853 */ // Label 190: @3853
6425 /* 3853 */ GIM_Try, /*On fail goto*//*Label 191*/ GIMT_Encode4(3870), // Rule ID 371 //
6426 /* 3858 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule241Enabled),
6427 /* 3861 */ GIM_MIFlagsNot, /*MI*/0, GIMT_Encode4(MachineInstr::IsExact),
6428 /* 3867 */ // MIs[0] dst
6429 /* 3867 */ // No operand predicates
6430 /* 3867 */ // MIs[0] x
6431 /* 3867 */ // No operand predicates
6432 /* 3867 */ // MIs[0] y
6433 /* 3867 */ // No operand predicates
6434 /* 3867 */ // Combiner Rule #241: udiv_by_pow2
6435 /* 3867 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner98),
6436 /* 3870 */ // Label 191: @3870
6437 /* 3870 */ GIM_Try, /*On fail goto*//*Label 192*/ GIMT_Encode4(3891), // Rule ID 92 //
6438 /* 3875 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule80Enabled),
6439 /* 3878 */ // MIs[0] dst
6440 /* 3878 */ // No operand predicates
6441 /* 3878 */ // MIs[0] __binop_left_undef_to_zero_match_0.x
6442 /* 3878 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6443 /* 3882 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
6444 /* 3886 */ // MIs[0] __binop_left_undef_to_zero_match_0.y
6445 /* 3886 */ // No operand predicates
6446 /* 3886 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6447 /* 3888 */ // Combiner Rule #80: binop_left_undef_to_zero @ [__binop_left_undef_to_zero_match_0[1]]
6448 /* 3888 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner31),
6449 /* 3891 */ // Label 192: @3891
6450 /* 3891 */ GIM_Try, /*On fail goto*//*Label 193*/ GIMT_Encode4(3902), // Rule ID 257 //
6451 /* 3896 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule196Enabled),
6452 /* 3899 */ // MIs[0] root
6453 /* 3899 */ // No operand predicates
6454 /* 3899 */ // MIs[0] mi.x
6455 /* 3899 */ // No operand predicates
6456 /* 3899 */ // MIs[0] mi.y
6457 /* 3899 */ // No operand predicates
6458 /* 3899 */ // Combiner Rule #196: div_rem_to_divrem @ [mi[1]]
6459 /* 3899 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner72),
6460 /* 3902 */ // Label 193: @3902
6461 /* 3902 */ GIM_Try, /*On fail goto*//*Label 194*/ GIMT_Encode4(3913), // Rule ID 291 //
6462 /* 3907 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule213Enabled),
6463 /* 3910 */ // MIs[0] d
6464 /* 3910 */ // No operand predicates
6465 /* 3910 */ // MIs[0] mi.src0
6466 /* 3910 */ // No operand predicates
6467 /* 3910 */ // MIs[0] mi.src1
6468 /* 3910 */ // No operand predicates
6469 /* 3910 */ // Combiner Rule #213: constant_fold_binop @ [mi[10]]
6470 /* 3910 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner79),
6471 /* 3913 */ // Label 194: @3913
6472 /* 3913 */ GIM_Try, /*On fail goto*//*Label 195*/ GIMT_Encode4(3924), // Rule ID 350 //
6473 /* 3918 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule236Enabled),
6474 /* 3921 */ // MIs[0] root
6475 /* 3921 */ // No operand predicates
6476 /* 3921 */ // MIs[0] mi.x
6477 /* 3921 */ // No operand predicates
6478 /* 3921 */ // MIs[0] mi.y
6479 /* 3921 */ // No operand predicates
6480 /* 3921 */ // Combiner Rule #236: fold_binop_into_select_a @ [mi[8]]
6481 /* 3921 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
6482 /* 3924 */ // Label 195: @3924
6483 /* 3924 */ GIM_Try, /*On fail goto*//*Label 196*/ GIMT_Encode4(3935), // Rule ID 372 //
6484 /* 3929 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule242Enabled),
6485 /* 3932 */ // MIs[0] dst
6486 /* 3932 */ // No operand predicates
6487 /* 3932 */ // MIs[0] x
6488 /* 3932 */ // No operand predicates
6489 /* 3932 */ // MIs[0] y
6490 /* 3932 */ // No operand predicates
6491 /* 3932 */ // Combiner Rule #242: udiv_by_shifted_pow2
6492 /* 3932 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner99),
6493 /* 3935 */ // Label 196: @3935
6494 /* 3935 */ GIM_Try, /*On fail goto*//*Label 197*/ GIMT_Encode4(3946), // Rule ID 374 //
6495 /* 3940 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule244Enabled),
6496 /* 3943 */ // MIs[0] dst
6497 /* 3943 */ // No operand predicates
6498 /* 3943 */ // MIs[0] x
6499 /* 3943 */ // No operand predicates
6500 /* 3943 */ // MIs[0] y
6501 /* 3943 */ // No operand predicates
6502 /* 3943 */ // Combiner Rule #244: udiv_by_const
6503 /* 3943 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner96),
6504 /* 3946 */ // Label 197: @3946
6505 /* 3946 */ GIM_Reject,
6506 /* 3947 */ // Label 6: @3947
6507 /* 3947 */ GIM_Try, /*On fail goto*//*Label 198*/ GIMT_Encode4(3970), // Rule ID 138 //
6508 /* 3952 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule96Enabled),
6509 /* 3955 */ // MIs[0] dst
6510 /* 3955 */ // No operand predicates
6511 /* 3955 */ // MIs[0] zero
6512 /* 3955 */ // No operand predicates
6513 /* 3955 */ // MIs[0] rhs
6514 /* 3955 */ // No operand predicates
6515 /* 3955 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner13),
6516 /* 3959 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6517 /* 3964 */ // Combiner Rule #96: binop_left_to_zero @ [__binop_left_to_zero_match_0[5]]
6518 /* 3964 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6519 /* 3969 */ GIR_EraseRootFromParent_Done,
6520 /* 3970 */ // Label 198: @3970
6521 /* 3970 */ GIM_Try, /*On fail goto*//*Label 199*/ GIMT_Encode4(3995), // Rule ID 206 //
6522 /* 3975 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule156Enabled),
6523 /* 3978 */ // MIs[0] dst
6524 /* 3978 */ // No operand predicates
6525 /* 3978 */ // MIs[0] x
6526 /* 3978 */ // No operand predicates
6527 /* 3978 */ // MIs[0] y
6528 /* 3978 */ // No operand predicates
6529 /* 3978 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner32),
6530 /* 3982 */ // Combiner Rule #156: srem_to_unsigned
6531 /* 3982 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UREM),
6532 /* 3985 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
6533 /* 3987 */ GIR_RootToRootCopy, /*OpIdx*/1, // x
6534 /* 3989 */ GIR_RootToRootCopy, /*OpIdx*/2, // y
6535 /* 3991 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
6536 /* 3994 */ GIR_EraseRootFromParent_Done,
6537 /* 3995 */ // Label 199: @3995
6538 /* 3995 */ GIM_Try, /*On fail goto*//*Label 200*/ GIMT_Encode4(4006), // Rule ID 258 //
6539 /* 4000 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule196Enabled),
6540 /* 4003 */ // MIs[0] root
6541 /* 4003 */ // No operand predicates
6542 /* 4003 */ // MIs[0] mi.x
6543 /* 4003 */ // No operand predicates
6544 /* 4003 */ // MIs[0] mi.y
6545 /* 4003 */ // No operand predicates
6546 /* 4003 */ // Combiner Rule #196: div_rem_to_divrem @ [mi[2]]
6547 /* 4003 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner72),
6548 /* 4006 */ // Label 200: @4006
6549 /* 4006 */ GIM_Try, /*On fail goto*//*Label 201*/ GIMT_Encode4(4017), // Rule ID 294 //
6550 /* 4011 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule213Enabled),
6551 /* 4014 */ // MIs[0] d
6552 /* 4014 */ // No operand predicates
6553 /* 4014 */ // MIs[0] mi.src0
6554 /* 4014 */ // No operand predicates
6555 /* 4014 */ // MIs[0] mi.src1
6556 /* 4014 */ // No operand predicates
6557 /* 4014 */ // Combiner Rule #213: constant_fold_binop @ [mi[13]]
6558 /* 4014 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner79),
6559 /* 4017 */ // Label 201: @4017
6560 /* 4017 */ GIM_Try, /*On fail goto*//*Label 202*/ GIMT_Encode4(4028), // Rule ID 349 //
6561 /* 4022 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule236Enabled),
6562 /* 4025 */ // MIs[0] root
6563 /* 4025 */ // No operand predicates
6564 /* 4025 */ // MIs[0] mi.x
6565 /* 4025 */ // No operand predicates
6566 /* 4025 */ // MIs[0] mi.y
6567 /* 4025 */ // No operand predicates
6568 /* 4025 */ // Combiner Rule #236: fold_binop_into_select_a @ [mi[7]]
6569 /* 4025 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
6570 /* 4028 */ // Label 202: @4028
6571 /* 4028 */ GIM_Try, /*On fail goto*//*Label 203*/ GIMT_Encode4(4039), // Rule ID 368 //
6572 /* 4033 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule238Enabled),
6573 /* 4036 */ // MIs[0] dst
6574 /* 4036 */ // No operand predicates
6575 /* 4036 */ // MIs[0] x
6576 /* 4036 */ // No operand predicates
6577 /* 4036 */ // MIs[0] y
6578 /* 4036 */ // No operand predicates
6579 /* 4036 */ // Combiner Rule #238: srem_pow2_to_mask
6580 /* 4036 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner95),
6581 /* 4039 */ // Label 203: @4039
6582 /* 4039 */ GIM_Try, /*On fail goto*//*Label 204*/ GIMT_Encode4(4050), // Rule ID 370 //
6583 /* 4044 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule240Enabled),
6584 /* 4047 */ // MIs[0] dst
6585 /* 4047 */ // No operand predicates
6586 /* 4047 */ // MIs[0] x
6587 /* 4047 */ // No operand predicates
6588 /* 4047 */ // MIs[0] y
6589 /* 4047 */ // No operand predicates
6590 /* 4047 */ // Combiner Rule #240: srem_by_const
6591 /* 4047 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner97),
6592 /* 4050 */ // Label 204: @4050
6593 /* 4050 */ GIM_Reject,
6594 /* 4051 */ // Label 7: @4051
6595 /* 4051 */ GIM_Try, /*On fail goto*//*Label 205*/ GIMT_Encode4(4074), // Rule ID 139 //
6596 /* 4056 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule96Enabled),
6597 /* 4059 */ // MIs[0] dst
6598 /* 4059 */ // No operand predicates
6599 /* 4059 */ // MIs[0] zero
6600 /* 4059 */ // No operand predicates
6601 /* 4059 */ // MIs[0] rhs
6602 /* 4059 */ // No operand predicates
6603 /* 4059 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner13),
6604 /* 4063 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6605 /* 4068 */ // Combiner Rule #96: binop_left_to_zero @ [__binop_left_to_zero_match_0[6]]
6606 /* 4068 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6607 /* 4073 */ GIR_EraseRootFromParent_Done,
6608 /* 4074 */ // Label 205: @4074
6609 /* 4074 */ GIM_Try, /*On fail goto*//*Label 206*/ GIMT_Encode4(4095), // Rule ID 93 //
6610 /* 4079 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule80Enabled),
6611 /* 4082 */ // MIs[0] dst
6612 /* 4082 */ // No operand predicates
6613 /* 4082 */ // MIs[0] __binop_left_undef_to_zero_match_0.x
6614 /* 4082 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6615 /* 4086 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
6616 /* 4090 */ // MIs[0] __binop_left_undef_to_zero_match_0.y
6617 /* 4090 */ // No operand predicates
6618 /* 4090 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6619 /* 4092 */ // Combiner Rule #80: binop_left_undef_to_zero @ [__binop_left_undef_to_zero_match_0[2]]
6620 /* 4092 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner31),
6621 /* 4095 */ // Label 206: @4095
6622 /* 4095 */ GIM_Try, /*On fail goto*//*Label 207*/ GIMT_Encode4(4106), // Rule ID 202 //
6623 /* 4100 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule152Enabled),
6624 /* 4103 */ // MIs[0] dst
6625 /* 4103 */ // No operand predicates
6626 /* 4103 */ // MIs[0] x
6627 /* 4103 */ // No operand predicates
6628 /* 4103 */ // MIs[0] y
6629 /* 4103 */ // No operand predicates
6630 /* 4103 */ // Combiner Rule #152: urem_pow2_to_mask
6631 /* 4103 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner57),
6632 /* 4106 */ // Label 207: @4106
6633 /* 4106 */ GIM_Try, /*On fail goto*//*Label 208*/ GIMT_Encode4(4117), // Rule ID 259 //
6634 /* 4111 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule196Enabled),
6635 /* 4114 */ // MIs[0] root
6636 /* 4114 */ // No operand predicates
6637 /* 4114 */ // MIs[0] mi.x
6638 /* 4114 */ // No operand predicates
6639 /* 4114 */ // MIs[0] mi.y
6640 /* 4114 */ // No operand predicates
6641 /* 4114 */ // Combiner Rule #196: div_rem_to_divrem @ [mi[3]]
6642 /* 4114 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner72),
6643 /* 4117 */ // Label 208: @4117
6644 /* 4117 */ GIM_Try, /*On fail goto*//*Label 209*/ GIMT_Encode4(4128), // Rule ID 293 //
6645 /* 4122 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule213Enabled),
6646 /* 4125 */ // MIs[0] d
6647 /* 4125 */ // No operand predicates
6648 /* 4125 */ // MIs[0] mi.src0
6649 /* 4125 */ // No operand predicates
6650 /* 4125 */ // MIs[0] mi.src1
6651 /* 4125 */ // No operand predicates
6652 /* 4125 */ // Combiner Rule #213: constant_fold_binop @ [mi[12]]
6653 /* 4125 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner79),
6654 /* 4128 */ // Label 209: @4128
6655 /* 4128 */ GIM_Try, /*On fail goto*//*Label 210*/ GIMT_Encode4(4139), // Rule ID 351 //
6656 /* 4133 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule236Enabled),
6657 /* 4136 */ // MIs[0] root
6658 /* 4136 */ // No operand predicates
6659 /* 4136 */ // MIs[0] mi.x
6660 /* 4136 */ // No operand predicates
6661 /* 4136 */ // MIs[0] mi.y
6662 /* 4136 */ // No operand predicates
6663 /* 4136 */ // Combiner Rule #236: fold_binop_into_select_a @ [mi[9]]
6664 /* 4136 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
6665 /* 4139 */ // Label 210: @4139
6666 /* 4139 */ GIM_Try, /*On fail goto*//*Label 211*/ GIMT_Encode4(4150), // Rule ID 369 //
6667 /* 4144 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule239Enabled),
6668 /* 4147 */ // MIs[0] dst
6669 /* 4147 */ // No operand predicates
6670 /* 4147 */ // MIs[0] x
6671 /* 4147 */ // No operand predicates
6672 /* 4147 */ // MIs[0] y
6673 /* 4147 */ // No operand predicates
6674 /* 4147 */ // Combiner Rule #239: urem_by_const
6675 /* 4147 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner96),
6676 /* 4150 */ // Label 211: @4150
6677 /* 4150 */ GIM_Reject,
6678 /* 4151 */ // Label 8: @4151
6679 /* 4151 */ GIM_Try, /*On fail goto*//*Label 212*/ GIMT_Encode4(4249), // Rule ID 178 //
6680 /* 4156 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule128Enabled),
6681 /* 4159 */ // MIs[0] root
6682 /* 4159 */ // No operand predicates
6683 /* 4159 */ // MIs[0] d1
6684 /* 4159 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6685 /* 4163 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ICMP),
6686 /* 4167 */ // MIs[1] p
6687 /* 4167 */ // No operand predicates
6688 /* 4167 */ // MIs[1] s1
6689 /* 4167 */ GIM_RecordRegType, /*MI*/1, /*Op*/2, /*TempTypeIdx*/255,
6690 /* 4171 */ // MIs[1] Operand 3
6691 /* 4171 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/3, 0,
6692 /* 4175 */ // MIs[0] d2
6693 /* 4175 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
6694 /* 4179 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ICMP),
6695 /* 4183 */ // MIs[2] p
6696 /* 4183 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/1,
6697 /* 4188 */ // MIs[2] s2
6698 /* 4188 */ // No operand predicates
6699 /* 4188 */ // MIs[2] Operand 3
6700 /* 4188 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/3, 0,
6701 /* 4192 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner23),
6702 /* 4196 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
6703 /* 4198 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
6704 /* 4201 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(0),
6705 /* 4211 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
6706 /* 4214 */ // Combiner Rule #128: double_icmp_zero_and_combine
6707 /* 4214 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR),
6708 /* 4217 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
6709 /* 4222 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // s1
6710 /* 4226 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/2, // s2
6711 /* 4230 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ICMP),
6712 /* 4234 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // root
6713 /* 4238 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // p
6714 /* 4242 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
6715 /* 4245 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/1,
6716 /* 4248 */ GIR_EraseRootFromParent_Done,
6717 /* 4249 */ // Label 212: @4249
6718 /* 4249 */ GIM_Try, /*On fail goto*//*Label 213*/ GIMT_Encode4(4274), // Rule ID 385 //
6719 /* 4254 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule255Enabled),
6720 /* 4257 */ // MIs[0] dst
6721 /* 4257 */ // No operand predicates
6722 /* 4257 */ // MIs[0] lhs
6723 /* 4257 */ // No operand predicates
6724 /* 4257 */ // MIs[0] rhs
6725 /* 4257 */ // No operand predicates
6726 /* 4257 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner51),
6727 /* 4261 */ // Combiner Rule #255: G_AND_commute_constant_to_rhs
6728 /* 4261 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_AND),
6729 /* 4264 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
6730 /* 4266 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
6731 /* 4268 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
6732 /* 4270 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
6733 /* 4273 */ GIR_EraseRootFromParent_Done,
6734 /* 4274 */ // Label 213: @4274
6735 /* 4274 */ GIM_Try, /*On fail goto*//*Label 214*/ GIMT_Encode4(4360), // Rule ID 417 //
6736 /* 4279 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule287Enabled),
6737 /* 4282 */ // MIs[0] root
6738 /* 4282 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
6739 /* 4286 */ // MIs[0] or
6740 /* 4286 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6741 /* 4290 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_OR),
6742 /* 4294 */ // MIs[1] x
6743 /* 4294 */ // No operand predicates
6744 /* 4294 */ // MIs[1] y
6745 /* 4294 */ // No operand predicates
6746 /* 4294 */ // MIs[0] not
6747 /* 4294 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
6748 /* 4298 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_XOR),
6749 /* 4302 */ // MIs[2] y
6750 /* 4302 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/2,
6751 /* 4307 */ // MIs[2] Operand 2
6752 /* 4307 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/2, 255,
6753 /* 4311 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
6754 /* 4313 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
6755 /* 4316 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(18446744073709551615u),
6756 /* 4326 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
6757 /* 4329 */ // Combiner Rule #287: and_xor_or_to_xor_and
6758 /* 4329 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_XOR),
6759 /* 4332 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
6760 /* 4337 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // y
6761 /* 4341 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/1,
6762 /* 4344 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_AND),
6763 /* 4348 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // root
6764 /* 4352 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // x
6765 /* 4356 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
6766 /* 4359 */ GIR_EraseRootFromParent_Done,
6767 /* 4360 */ // Label 214: @4360
6768 /* 4360 */ GIM_Try, /*On fail goto*//*Label 215*/ GIMT_Encode4(4397), // Rule ID 276 //
6769 /* 4365 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule210Enabled),
6770 /* 4368 */ // MIs[0] root
6771 /* 4368 */ // No operand predicates
6772 /* 4368 */ // MIs[0] shift
6773 /* 4368 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6774 /* 4372 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_LSHR),
6775 /* 4376 */ // MIs[1] x
6776 /* 4376 */ // No operand predicates
6777 /* 4376 */ // MIs[1] lsb
6778 /* 4376 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
6779 /* 4380 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
6780 /* 4384 */ // MIs[2] imm1
6781 /* 4384 */ // No operand predicates
6782 /* 4384 */ // MIs[0] mask
6783 /* 4384 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/0, /*OpIdx*/2, // MIs[3]
6784 /* 4388 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
6785 /* 4392 */ // MIs[3] imm2
6786 /* 4392 */ // No operand predicates
6787 /* 4392 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
6788 /* 4394 */ // Combiner Rule #210: bitfield_extract_from_and
6789 /* 4394 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner76),
6790 /* 4397 */ // Label 215: @4397
6791 /* 4397 */ GIM_Try, /*On fail goto*//*Label 216*/ GIMT_Encode4(4446), // Rule ID 416 //
6792 /* 4402 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule286Enabled),
6793 /* 4405 */ // MIs[0] root
6794 /* 4405 */ // No operand predicates
6795 /* 4405 */ // MIs[0] or
6796 /* 4405 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6797 /* 4409 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_OR),
6798 /* 4413 */ // MIs[1] x
6799 /* 4413 */ // No operand predicates
6800 /* 4413 */ // MIs[1] not
6801 /* 4413 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
6802 /* 4417 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_XOR),
6803 /* 4421 */ // MIs[2] y
6804 /* 4421 */ // No operand predicates
6805 /* 4421 */ // MIs[2] Operand 2
6806 /* 4421 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/2, 255,
6807 /* 4425 */ // MIs[0] y
6808 /* 4425 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/2, /*OtherOpIdx*/1,
6809 /* 4430 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
6810 /* 4432 */ // Combiner Rule #286: and_xor_or_to_and
6811 /* 4432 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_AND),
6812 /* 4435 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
6813 /* 4437 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
6814 /* 4441 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // y
6815 /* 4445 */ GIR_EraseRootFromParent_Done,
6816 /* 4446 */ // Label 216: @4446
6817 /* 4446 */ GIM_Try, /*On fail goto*//*Label 217*/ GIMT_Encode4(4467), // Rule ID 85 //
6818 /* 4451 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule78Enabled),
6819 /* 4454 */ // MIs[0] dst
6820 /* 4454 */ // No operand predicates
6821 /* 4454 */ // MIs[0] __undef_to_int_zero_match_0.x
6822 /* 4454 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6823 /* 4458 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
6824 /* 4462 */ // MIs[0] __undef_to_int_zero_match_0.y
6825 /* 4462 */ // No operand predicates
6826 /* 4462 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6827 /* 4464 */ // Combiner Rule #78: undef_to_int_zero @ [__undef_to_int_zero_match_0[0]]
6828 /* 4464 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner31),
6829 /* 4467 */ // Label 217: @4467
6830 /* 4467 */ GIM_Try, /*On fail goto*//*Label 218*/ GIMT_Encode4(4491), // Rule ID 129 //
6831 /* 4472 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule94Enabled),
6832 /* 4475 */ // MIs[0] dst
6833 /* 4475 */ // No operand predicates
6834 /* 4475 */ // MIs[0] src
6835 /* 4475 */ // No operand predicates
6836 /* 4475 */ // MIs[0] src
6837 /* 4475 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
6838 /* 4480 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6839 /* 4485 */ // Combiner Rule #94: binop_same_val @ [__binop_same_val_match_0[0]]
6840 /* 4485 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6841 /* 4490 */ GIR_EraseRootFromParent_Done,
6842 /* 4491 */ // Label 218: @4491
6843 /* 4491 */ GIM_Try, /*On fail goto*//*Label 219*/ GIMT_Encode4(4512), // Rule ID 87 //
6844 /* 4496 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule78Enabled),
6845 /* 4499 */ // MIs[0] dst
6846 /* 4499 */ // No operand predicates
6847 /* 4499 */ // MIs[0] __undef_to_int_zero_match_0.x
6848 /* 4499 */ // No operand predicates
6849 /* 4499 */ // MIs[0] __undef_to_int_zero_match_0.y
6850 /* 4499 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
6851 /* 4503 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
6852 /* 4507 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6853 /* 4509 */ // Combiner Rule #78: undef_to_int_zero @ [__undef_to_int_zero_match_0[2]]
6854 /* 4509 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner31),
6855 /* 4512 */ // Label 219: @4512
6856 /* 4512 */ GIM_Try, /*On fail goto*//*Label 220*/ GIMT_Encode4(4523), // Rule ID 81 //
6857 /* 4517 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule75Enabled),
6858 /* 4520 */ // MIs[0] dst
6859 /* 4520 */ // No operand predicates
6860 /* 4520 */ // MIs[0] src1
6861 /* 4520 */ // No operand predicates
6862 /* 4520 */ // MIs[0] src2
6863 /* 4520 */ // No operand predicates
6864 /* 4520 */ // Combiner Rule #75: load_and_mask
6865 /* 4520 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner28),
6866 /* 4523 */ // Label 220: @4523
6867 /* 4523 */ GIM_Try, /*On fail goto*//*Label 221*/ GIMT_Encode4(4534), // Rule ID 165 //
6868 /* 4528 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule119Enabled),
6869 /* 4531 */ // MIs[0] root
6870 /* 4531 */ // No operand predicates
6871 /* 4531 */ // MIs[0] mi.x
6872 /* 4531 */ // No operand predicates
6873 /* 4531 */ // MIs[0] mi.y
6874 /* 4531 */ // No operand predicates
6875 /* 4531 */ // Combiner Rule #119: hoist_logic_op_with_same_opcode_hands @ [mi[0]]
6876 /* 4531 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner38),
6877 /* 4534 */ // Label 221: @4534
6878 /* 4534 */ GIM_Try, /*On fail goto*//*Label 222*/ GIMT_Encode4(4545), // Rule ID 185 //
6879 /* 4539 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule135Enabled),
6880 /* 4542 */ // MIs[0] dst
6881 /* 4542 */ // No operand predicates
6882 /* 4542 */ // MIs[0] src1
6883 /* 4542 */ // No operand predicates
6884 /* 4542 */ // MIs[0] src2
6885 /* 4542 */ // No operand predicates
6886 /* 4542 */ // Combiner Rule #135: narrow_binop_feeding_and
6887 /* 4542 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner51),
6888 /* 4545 */ // Label 222: @4545
6889 /* 4545 */ GIM_Try, /*On fail goto*//*Label 223*/ GIMT_Encode4(4556), // Rule ID 200 //
6890 /* 4550 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule150Enabled),
6891 /* 4553 */ // MIs[0] dst
6892 /* 4553 */ // No operand predicates
6893 /* 4553 */ // MIs[0] src1
6894 /* 4553 */ // No operand predicates
6895 /* 4553 */ // MIs[0] src2
6896 /* 4553 */ // No operand predicates
6897 /* 4553 */ // Combiner Rule #150: redundant_and
6898 /* 4553 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner55),
6899 /* 4556 */ // Label 223: @4556
6900 /* 4556 */ GIM_Try, /*On fail goto*//*Label 224*/ GIMT_Encode4(4567), // Rule ID 226 //
6901 /* 4561 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule176Enabled),
6902 /* 4564 */ // MIs[0] dst
6903 /* 4564 */ // No operand predicates
6904 /* 4564 */ // MIs[0] x
6905 /* 4564 */ // No operand predicates
6906 /* 4564 */ // MIs[0] y
6907 /* 4564 */ // No operand predicates
6908 /* 4564 */ // Combiner Rule #176: overlapping_and
6909 /* 4564 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner65),
6910 /* 4567 */ // Label 224: @4567
6911 /* 4567 */ GIM_Try, /*On fail goto*//*Label 225*/ GIMT_Encode4(4578), // Rule ID 283 //
6912 /* 4572 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule213Enabled),
6913 /* 4575 */ // MIs[0] d
6914 /* 4575 */ // No operand predicates
6915 /* 4575 */ // MIs[0] mi.src0
6916 /* 4575 */ // No operand predicates
6917 /* 4575 */ // MIs[0] mi.src1
6918 /* 4575 */ // No operand predicates
6919 /* 4575 */ // Combiner Rule #213: constant_fold_binop @ [mi[2]]
6920 /* 4575 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner79),
6921 /* 4578 */ // Label 225: @4578
6922 /* 4578 */ GIM_Try, /*On fail goto*//*Label 226*/ GIMT_Encode4(4589), // Rule ID 333 //
6923 /* 4583 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule227Enabled),
6924 /* 4586 */ // MIs[0] dst
6925 /* 4586 */ // No operand predicates
6926 /* 4586 */ // MIs[0] src1
6927 /* 4586 */ // No operand predicates
6928 /* 4586 */ // MIs[0] src2
6929 /* 4586 */ // No operand predicates
6930 /* 4586 */ // Combiner Rule #227: and_or_disjoint_mask
6931 /* 4586 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner85),
6932 /* 4589 */ // Label 226: @4589
6933 /* 4589 */ GIM_Try, /*On fail goto*//*Label 227*/ GIMT_Encode4(4600), // Rule ID 345 //
6934 /* 4594 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule236Enabled),
6935 /* 4597 */ // MIs[0] root
6936 /* 4597 */ // No operand predicates
6937 /* 4597 */ // MIs[0] mi.x
6938 /* 4597 */ // No operand predicates
6939 /* 4597 */ // MIs[0] mi.y
6940 /* 4597 */ // No operand predicates
6941 /* 4597 */ // Combiner Rule #236: fold_binop_into_select_a @ [mi[3]]
6942 /* 4597 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
6943 /* 4600 */ // Label 227: @4600
6944 /* 4600 */ GIM_Try, /*On fail goto*//*Label 228*/ GIMT_Encode4(4611), // Rule ID 412 //
6945 /* 4605 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule282Enabled),
6946 /* 4608 */ // MIs[0] dst
6947 /* 4608 */ // No operand predicates
6948 /* 4608 */ // MIs[0] src1
6949 /* 4608 */ // No operand predicates
6950 /* 4608 */ // MIs[0] src2
6951 /* 4608 */ // No operand predicates
6952 /* 4608 */ // Combiner Rule #282: match_ands
6953 /* 4608 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103),
6954 /* 4611 */ // Label 228: @4611
6955 /* 4611 */ GIM_Try, /*On fail goto*//*Label 229*/ GIMT_Encode4(4622), // Rule ID 459 //
6956 /* 4616 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule328Enabled),
6957 /* 4619 */ // MIs[0] root
6958 /* 4619 */ // No operand predicates
6959 /* 4619 */ // MIs[0] mi.x
6960 /* 4619 */ // No operand predicates
6961 /* 4619 */ // MIs[0] mi.y
6962 /* 4619 */ // No operand predicates
6963 /* 4619 */ // Combiner Rule #328: binop_with_neg @ [mi[0]]
6964 /* 4619 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner128),
6965 /* 4622 */ // Label 229: @4622
6966 /* 4622 */ GIM_Reject,
6967 /* 4623 */ // Label 9: @4623
6968 /* 4623 */ GIM_Try, /*On fail goto*//*Label 230*/ GIMT_Encode4(4721), // Rule ID 179 //
6969 /* 4628 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule129Enabled),
6970 /* 4631 */ // MIs[0] root
6971 /* 4631 */ // No operand predicates
6972 /* 4631 */ // MIs[0] d1
6973 /* 4631 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6974 /* 4635 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ICMP),
6975 /* 4639 */ // MIs[1] p
6976 /* 4639 */ // No operand predicates
6977 /* 4639 */ // MIs[1] s1
6978 /* 4639 */ GIM_RecordRegType, /*MI*/1, /*Op*/2, /*TempTypeIdx*/255,
6979 /* 4643 */ // MIs[1] Operand 3
6980 /* 4643 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/3, 0,
6981 /* 4647 */ // MIs[0] d2
6982 /* 4647 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
6983 /* 4651 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ICMP),
6984 /* 4655 */ // MIs[2] p
6985 /* 4655 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/1,
6986 /* 4660 */ // MIs[2] s2
6987 /* 4660 */ // No operand predicates
6988 /* 4660 */ // MIs[2] Operand 3
6989 /* 4660 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/3, 0,
6990 /* 4664 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner24),
6991 /* 4668 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
6992 /* 4670 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
6993 /* 4673 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(0),
6994 /* 4683 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
6995 /* 4686 */ // Combiner Rule #129: double_icmp_zero_or_combine
6996 /* 4686 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR),
6997 /* 4689 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
6998 /* 4694 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // s1
6999 /* 4698 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/2, // s2
7000 /* 4702 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ICMP),
7001 /* 4706 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // root
7002 /* 4710 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // p
7003 /* 4714 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
7004 /* 4717 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/1,
7005 /* 4720 */ GIR_EraseRootFromParent_Done,
7006 /* 4721 */ // Label 230: @4721
7007 /* 4721 */ GIM_Try, /*On fail goto*//*Label 231*/ GIMT_Encode4(4746), // Rule ID 386 //
7008 /* 4726 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule256Enabled),
7009 /* 4729 */ // MIs[0] dst
7010 /* 4729 */ // No operand predicates
7011 /* 4729 */ // MIs[0] lhs
7012 /* 4729 */ // No operand predicates
7013 /* 4729 */ // MIs[0] rhs
7014 /* 4729 */ // No operand predicates
7015 /* 4729 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner51),
7016 /* 4733 */ // Combiner Rule #256: G_OR_commute_constant_to_rhs
7017 /* 4733 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR),
7018 /* 4736 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
7019 /* 4738 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
7020 /* 4740 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
7021 /* 4742 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
7022 /* 4745 */ GIR_EraseRootFromParent_Done,
7023 /* 4746 */ // Label 231: @4746
7024 /* 4746 */ GIM_Try, /*On fail goto*//*Label 232*/ GIMT_Encode4(4832), // Rule ID 415 //
7025 /* 4751 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule285Enabled),
7026 /* 4754 */ // MIs[0] root
7027 /* 4754 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
7028 /* 4758 */ // MIs[0] and
7029 /* 4758 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7030 /* 4762 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_AND),
7031 /* 4766 */ // MIs[1] x
7032 /* 4766 */ // No operand predicates
7033 /* 4766 */ // MIs[1] y
7034 /* 4766 */ // No operand predicates
7035 /* 4766 */ // MIs[0] not
7036 /* 4766 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
7037 /* 4770 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_XOR),
7038 /* 4774 */ // MIs[2] y
7039 /* 4774 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/2,
7040 /* 4779 */ // MIs[2] Operand 2
7041 /* 4779 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/2, 255,
7042 /* 4783 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
7043 /* 4785 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
7044 /* 4788 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(18446744073709551615u),
7045 /* 4798 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
7046 /* 4801 */ // Combiner Rule #285: or_and_xor_to_xor_or
7047 /* 4801 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_XOR),
7048 /* 4804 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
7049 /* 4809 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // y
7050 /* 4813 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/1,
7051 /* 4816 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR),
7052 /* 4820 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // root
7053 /* 4824 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // x
7054 /* 4828 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
7055 /* 4831 */ GIR_EraseRootFromParent_Done,
7056 /* 4832 */ // Label 232: @4832
7057 /* 4832 */ GIM_Try, /*On fail goto*//*Label 233*/ GIMT_Encode4(4879), // Rule ID 267 //
7058 /* 4837 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule203Enabled),
7059 /* 4840 */ // MIs[0] root
7060 /* 4840 */ // No operand predicates
7061 /* 4840 */ // MIs[0] out1
7062 /* 4840 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7063 /* 4844 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FSHL),
7064 /* 4848 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_left_match_0.x
7065 /* 4848 */ // No operand predicates
7066 /* 4848 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_left_match_0.z
7067 /* 4848 */ // No operand predicates
7068 /* 4848 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_left_match_0.y
7069 /* 4848 */ // No operand predicates
7070 /* 4848 */ // MIs[0] out2
7071 /* 4848 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
7072 /* 4852 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SHL),
7073 /* 4856 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_left_match_0.x
7074 /* 4856 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/1,
7075 /* 4861 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_left_match_0.y
7076 /* 4861 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/3,
7077 /* 4866 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7078 /* 4871 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
7079 /* 4873 */ // Combiner Rule #203: funnel_shift_or_shift_to_funnel_shift_left @ [__funnel_shift_or_shift_to_funnel_shift_left_match_0[0]]
7080 /* 4873 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7081 /* 4878 */ GIR_EraseRootFromParent_Done,
7082 /* 4879 */ // Label 233: @4879
7083 /* 4879 */ GIM_Try, /*On fail goto*//*Label 234*/ GIMT_Encode4(4926), // Rule ID 269 //
7084 /* 4884 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
7085 /* 4887 */ // MIs[0] root
7086 /* 4887 */ // No operand predicates
7087 /* 4887 */ // MIs[0] out1
7088 /* 4887 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7089 /* 4891 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FSHR),
7090 /* 4895 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_right_match_0.z
7091 /* 4895 */ // No operand predicates
7092 /* 4895 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_right_match_0.x
7093 /* 4895 */ // No operand predicates
7094 /* 4895 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_right_match_0.y
7095 /* 4895 */ // No operand predicates
7096 /* 4895 */ // MIs[0] out2
7097 /* 4895 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
7098 /* 4899 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_LSHR),
7099 /* 4903 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_right_match_0.x
7100 /* 4903 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/2,
7101 /* 4908 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_right_match_0.y
7102 /* 4908 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/3,
7103 /* 4913 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7104 /* 4918 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
7105 /* 4920 */ // Combiner Rule #204: funnel_shift_or_shift_to_funnel_shift_right @ [__funnel_shift_or_shift_to_funnel_shift_right_match_0[0]]
7106 /* 4920 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7107 /* 4925 */ GIR_EraseRootFromParent_Done,
7108 /* 4926 */ // Label 234: @4926
7109 /* 4926 */ GIM_Try, /*On fail goto*//*Label 235*/ GIMT_Encode4(4975), // Rule ID 414 //
7110 /* 4931 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule284Enabled),
7111 /* 4934 */ // MIs[0] root
7112 /* 4934 */ // No operand predicates
7113 /* 4934 */ // MIs[0] and
7114 /* 4934 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7115 /* 4938 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_AND),
7116 /* 4942 */ // MIs[1] x
7117 /* 4942 */ // No operand predicates
7118 /* 4942 */ // MIs[1] not
7119 /* 4942 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
7120 /* 4946 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_XOR),
7121 /* 4950 */ // MIs[2] y
7122 /* 4950 */ // No operand predicates
7123 /* 4950 */ // MIs[2] Operand 2
7124 /* 4950 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/2, 255,
7125 /* 4954 */ // MIs[0] y
7126 /* 4954 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/2, /*OtherOpIdx*/1,
7127 /* 4959 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
7128 /* 4961 */ // Combiner Rule #284: or_and_xor_to_or
7129 /* 4961 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR),
7130 /* 4964 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
7131 /* 4966 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
7132 /* 4970 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // y
7133 /* 4974 */ GIR_EraseRootFromParent_Done,
7134 /* 4975 */ // Label 235: @4975
7135 /* 4975 */ GIM_Try, /*On fail goto*//*Label 236*/ GIMT_Encode4(5009), // Rule ID 472 //
7136 /* 4980 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule339Enabled),
7137 /* 4983 */ // MIs[0] dst
7138 /* 4983 */ // No operand predicates
7139 /* 4983 */ // MIs[0] __combine_or_of_and_match_0.and
7140 /* 4983 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7141 /* 4987 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_AND),
7142 /* 4991 */ // MIs[1] x
7143 /* 4991 */ // No operand predicates
7144 /* 4991 */ // MIs[1] y
7145 /* 4991 */ // No operand predicates
7146 /* 4991 */ // MIs[0] x
7147 /* 4991 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/1,
7148 /* 4996 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
7149 /* 5001 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7150 /* 5003 */ // Combiner Rule #339: combine_or_of_and @ [__combine_or_of_and_match_0[0]]
7151 /* 5003 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
7152 /* 5008 */ GIR_EraseRootFromParent_Done,
7153 /* 5009 */ // Label 236: @5009
7154 /* 5009 */ GIM_Try, /*On fail goto*//*Label 237*/ GIMT_Encode4(5043), // Rule ID 473 //
7155 /* 5014 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule339Enabled),
7156 /* 5017 */ // MIs[0] dst
7157 /* 5017 */ // No operand predicates
7158 /* 5017 */ // MIs[0] __combine_or_of_and_match_0.and
7159 /* 5017 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7160 /* 5021 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_AND),
7161 /* 5025 */ // MIs[1] y
7162 /* 5025 */ // No operand predicates
7163 /* 5025 */ // MIs[1] x
7164 /* 5025 */ // No operand predicates
7165 /* 5025 */ // MIs[0] x
7166 /* 5025 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/2,
7167 /* 5030 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/2,
7168 /* 5035 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7169 /* 5037 */ // Combiner Rule #339: combine_or_of_and @ [__combine_or_of_and_match_0[1]]
7170 /* 5037 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/2,
7171 /* 5042 */ GIR_EraseRootFromParent_Done,
7172 /* 5043 */ // Label 237: @5043
7173 /* 5043 */ GIM_Try, /*On fail goto*//*Label 238*/ GIMT_Encode4(5090), // Rule ID 270 //
7174 /* 5048 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
7175 /* 5051 */ // MIs[0] root
7176 /* 5051 */ // No operand predicates
7177 /* 5051 */ // MIs[0] out2
7178 /* 5051 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7179 /* 5055 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_LSHR),
7180 /* 5059 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_right_match_0.x
7181 /* 5059 */ // No operand predicates
7182 /* 5059 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_right_match_0.y
7183 /* 5059 */ // No operand predicates
7184 /* 5059 */ // MIs[0] out1
7185 /* 5059 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
7186 /* 5063 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_FSHR),
7187 /* 5067 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_right_match_0.z
7188 /* 5067 */ // No operand predicates
7189 /* 5067 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_right_match_0.x
7190 /* 5067 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/1,
7191 /* 5072 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_right_match_0.y
7192 /* 5072 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/3, /*OtherMI*/1, /*OtherOpIdx*/2,
7193 /* 5077 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
7194 /* 5082 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
7195 /* 5084 */ // Combiner Rule #204: funnel_shift_or_shift_to_funnel_shift_right @ [__funnel_shift_or_shift_to_funnel_shift_right_match_0[1]]
7196 /* 5084 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
7197 /* 5089 */ GIR_EraseRootFromParent_Done,
7198 /* 5090 */ // Label 238: @5090
7199 /* 5090 */ GIM_Try, /*On fail goto*//*Label 239*/ GIMT_Encode4(5137), // Rule ID 268 //
7200 /* 5095 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule203Enabled),
7201 /* 5098 */ // MIs[0] root
7202 /* 5098 */ // No operand predicates
7203 /* 5098 */ // MIs[0] out2
7204 /* 5098 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7205 /* 5102 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SHL),
7206 /* 5106 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_left_match_0.x
7207 /* 5106 */ // No operand predicates
7208 /* 5106 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_left_match_0.y
7209 /* 5106 */ // No operand predicates
7210 /* 5106 */ // MIs[0] out1
7211 /* 5106 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
7212 /* 5110 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_FSHL),
7213 /* 5114 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_left_match_0.x
7214 /* 5114 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/1,
7215 /* 5119 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_left_match_0.z
7216 /* 5119 */ // No operand predicates
7217 /* 5119 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_left_match_0.y
7218 /* 5119 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/3, /*OtherMI*/1, /*OtherOpIdx*/2,
7219 /* 5124 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
7220 /* 5129 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
7221 /* 5131 */ // Combiner Rule #203: funnel_shift_or_shift_to_funnel_shift_left @ [__funnel_shift_or_shift_to_funnel_shift_left_match_0[1]]
7222 /* 5131 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
7223 /* 5136 */ GIR_EraseRootFromParent_Done,
7224 /* 5137 */ // Label 239: @5137
7225 /* 5137 */ GIM_Try, /*On fail goto*//*Label 240*/ GIMT_Encode4(5187), // Rule ID 419 //
7226 /* 5142 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule289Enabled),
7227 /* 5145 */ // MIs[0] root
7228 /* 5145 */ // No operand predicates
7229 /* 5145 */ // MIs[0] xor
7230 /* 5145 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7231 /* 5149 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_XOR),
7232 /* 5153 */ // MIs[1] x
7233 /* 5153 */ // No operand predicates
7234 /* 5153 */ // MIs[1] y
7235 /* 5153 */ // No operand predicates
7236 /* 5153 */ // MIs[0] and
7237 /* 5153 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
7238 /* 5157 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_AND),
7239 /* 5161 */ // MIs[2] x
7240 /* 5161 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/1,
7241 /* 5166 */ // MIs[2] y
7242 /* 5166 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/2,
7243 /* 5171 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
7244 /* 5173 */ // Combiner Rule #289: or_xor_and
7245 /* 5173 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR),
7246 /* 5176 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
7247 /* 5178 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
7248 /* 5182 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // y
7249 /* 5186 */ GIR_EraseRootFromParent_Done,
7250 /* 5187 */ // Label 240: @5187
7251 /* 5187 */ GIM_Try, /*On fail goto*//*Label 241*/ GIMT_Encode4(5237), // Rule ID 418 //
7252 /* 5192 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule288Enabled),
7253 /* 5195 */ // MIs[0] root
7254 /* 5195 */ // No operand predicates
7255 /* 5195 */ // MIs[0] xor
7256 /* 5195 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7257 /* 5199 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_XOR),
7258 /* 5203 */ // MIs[1] x
7259 /* 5203 */ // No operand predicates
7260 /* 5203 */ // MIs[1] y
7261 /* 5203 */ // No operand predicates
7262 /* 5203 */ // MIs[0] or
7263 /* 5203 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
7264 /* 5207 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_OR),
7265 /* 5211 */ // MIs[2] x
7266 /* 5211 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/1,
7267 /* 5216 */ // MIs[2] y
7268 /* 5216 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/2,
7269 /* 5221 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
7270 /* 5223 */ // Combiner Rule #288: or_xor_or
7271 /* 5223 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR),
7272 /* 5226 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
7273 /* 5228 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
7274 /* 5232 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // y
7275 /* 5236 */ GIR_EraseRootFromParent_Done,
7276 /* 5237 */ // Label 241: @5237
7277 /* 5237 */ GIM_Try, /*On fail goto*//*Label 242*/ GIMT_Encode4(5258), // Rule ID 89 //
7278 /* 5242 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule79Enabled),
7279 /* 5245 */ // MIs[0] dst
7280 /* 5245 */ // No operand predicates
7281 /* 5245 */ // MIs[0] __undef_to_negative_one_match_0.x
7282 /* 5245 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7283 /* 5249 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
7284 /* 5253 */ // MIs[0] __undef_to_negative_one_match_0.y
7285 /* 5253 */ // No operand predicates
7286 /* 5253 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7287 /* 5255 */ // Combiner Rule #79: undef_to_negative_one @ [__undef_to_negative_one_match_0[0]]
7288 /* 5255 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner32),
7289 /* 5258 */ // Label 242: @5258
7290 /* 5258 */ GIM_Try, /*On fail goto*//*Label 243*/ GIMT_Encode4(5282), // Rule ID 130 //
7291 /* 5263 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule94Enabled),
7292 /* 5266 */ // MIs[0] dst
7293 /* 5266 */ // No operand predicates
7294 /* 5266 */ // MIs[0] src
7295 /* 5266 */ // No operand predicates
7296 /* 5266 */ // MIs[0] src
7297 /* 5266 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
7298 /* 5271 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7299 /* 5276 */ // Combiner Rule #94: binop_same_val @ [__binop_same_val_match_0[1]]
7300 /* 5276 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7301 /* 5281 */ GIR_EraseRootFromParent_Done,
7302 /* 5282 */ // Label 243: @5282
7303 /* 5282 */ GIM_Try, /*On fail goto*//*Label 244*/ GIMT_Encode4(5316), // Rule ID 474 //
7304 /* 5287 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule339Enabled),
7305 /* 5290 */ // MIs[0] dst
7306 /* 5290 */ // No operand predicates
7307 /* 5290 */ // MIs[0] x
7308 /* 5290 */ // No operand predicates
7309 /* 5290 */ // MIs[0] __combine_or_of_and_match_0.and
7310 /* 5290 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
7311 /* 5294 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_AND),
7312 /* 5298 */ // MIs[1] x
7313 /* 5298 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/1, /*OpIdx*/1, /*OtherMI*/0, /*OtherOpIdx*/1,
7314 /* 5303 */ // MIs[1] y
7315 /* 5303 */ // No operand predicates
7316 /* 5303 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7317 /* 5308 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7318 /* 5310 */ // Combiner Rule #339: combine_or_of_and @ [__combine_or_of_and_match_0[2]]
7319 /* 5310 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7320 /* 5315 */ GIR_EraseRootFromParent_Done,
7321 /* 5316 */ // Label 244: @5316
7322 /* 5316 */ GIM_Try, /*On fail goto*//*Label 245*/ GIMT_Encode4(5350), // Rule ID 475 //
7323 /* 5321 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule339Enabled),
7324 /* 5324 */ // MIs[0] dst
7325 /* 5324 */ // No operand predicates
7326 /* 5324 */ // MIs[0] x
7327 /* 5324 */ // No operand predicates
7328 /* 5324 */ // MIs[0] __combine_or_of_and_match_0.and
7329 /* 5324 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
7330 /* 5328 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_AND),
7331 /* 5332 */ // MIs[1] y
7332 /* 5332 */ // No operand predicates
7333 /* 5332 */ // MIs[1] x
7334 /* 5332 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/1, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
7335 /* 5337 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7336 /* 5342 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7337 /* 5344 */ // Combiner Rule #339: combine_or_of_and @ [__combine_or_of_and_match_0[3]]
7338 /* 5344 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7339 /* 5349 */ GIR_EraseRootFromParent_Done,
7340 /* 5350 */ // Label 245: @5350
7341 /* 5350 */ GIM_Try, /*On fail goto*//*Label 246*/ GIMT_Encode4(5371), // Rule ID 90 //
7342 /* 5355 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule79Enabled),
7343 /* 5358 */ // MIs[0] dst
7344 /* 5358 */ // No operand predicates
7345 /* 5358 */ // MIs[0] __undef_to_negative_one_match_0.x
7346 /* 5358 */ // No operand predicates
7347 /* 5358 */ // MIs[0] __undef_to_negative_one_match_0.y
7348 /* 5358 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
7349 /* 5362 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
7350 /* 5366 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7351 /* 5368 */ // Combiner Rule #79: undef_to_negative_one @ [__undef_to_negative_one_match_0[1]]
7352 /* 5368 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner32),
7353 /* 5371 */ // Label 246: @5371
7354 /* 5371 */ GIM_Try, /*On fail goto*//*Label 247*/ GIMT_Encode4(5394), // Rule ID 121 //
7355 /* 5376 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
7356 /* 5379 */ // MIs[0] dst
7357 /* 5379 */ // No operand predicates
7358 /* 5379 */ // MIs[0] lhs
7359 /* 5379 */ // No operand predicates
7360 /* 5379 */ // MIs[0] Operand 2
7361 /* 5379 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
7362 /* 5383 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7363 /* 5388 */ // Combiner Rule #93: right_identity_zero @ [__right_identity_zero_match_0[2]]
7364 /* 5388 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7365 /* 5393 */ GIR_EraseRootFromParent_Done,
7366 /* 5394 */ // Label 247: @5394
7367 /* 5394 */ GIM_Try, /*On fail goto*//*Label 248*/ GIMT_Encode4(5405), // Rule ID 166 //
7368 /* 5399 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule119Enabled),
7369 /* 5402 */ // MIs[0] root
7370 /* 5402 */ // No operand predicates
7371 /* 5402 */ // MIs[0] mi.x
7372 /* 5402 */ // No operand predicates
7373 /* 5402 */ // MIs[0] mi.y
7374 /* 5402 */ // No operand predicates
7375 /* 5402 */ // Combiner Rule #119: hoist_logic_op_with_same_opcode_hands @ [mi[1]]
7376 /* 5402 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner38),
7377 /* 5405 */ // Label 248: @5405
7378 /* 5405 */ GIM_Try, /*On fail goto*//*Label 249*/ GIMT_Encode4(5416), // Rule ID 201 //
7379 /* 5410 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule151Enabled),
7380 /* 5413 */ // MIs[0] dst
7381 /* 5413 */ // No operand predicates
7382 /* 5413 */ // MIs[0] src1
7383 /* 5413 */ // No operand predicates
7384 /* 5413 */ // MIs[0] src2
7385 /* 5413 */ // No operand predicates
7386 /* 5413 */ // Combiner Rule #151: redundant_or
7387 /* 5413 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner56),
7388 /* 5416 */ // Label 249: @5416
7389 /* 5416 */ GIM_Try, /*On fail goto*//*Label 250*/ GIMT_Encode4(5427), // Rule ID 255 //
7390 /* 5421 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule195Enabled),
7391 /* 5424 */ // MIs[0] dst
7392 /* 5424 */ // No operand predicates
7393 /* 5424 */ // MIs[0] src1
7394 /* 5424 */ // No operand predicates
7395 /* 5424 */ // MIs[0] src2
7396 /* 5424 */ // No operand predicates
7397 /* 5424 */ // Combiner Rule #195: load_or_combine
7398 /* 5424 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner71),
7399 /* 5427 */ // Label 250: @5427
7400 /* 5427 */ GIM_Try, /*On fail goto*//*Label 251*/ GIMT_Encode4(5438), // Rule ID 260 //
7401 /* 5432 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule197Enabled),
7402 /* 5435 */ // MIs[0] dst
7403 /* 5435 */ // No operand predicates
7404 /* 5435 */ // MIs[0] src1
7405 /* 5435 */ // No operand predicates
7406 /* 5435 */ // MIs[0] src2
7407 /* 5435 */ // No operand predicates
7408 /* 5435 */ // Combiner Rule #197: funnel_shift_from_or_shift
7409 /* 5435 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner73),
7410 /* 5438 */ // Label 251: @5438
7411 /* 5438 */ GIM_Try, /*On fail goto*//*Label 252*/ GIMT_Encode4(5449), // Rule ID 287 //
7412 /* 5443 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule213Enabled),
7413 /* 5446 */ // MIs[0] d
7414 /* 5446 */ // No operand predicates
7415 /* 5446 */ // MIs[0] mi.src0
7416 /* 5446 */ // No operand predicates
7417 /* 5446 */ // MIs[0] mi.src1
7418 /* 5446 */ // No operand predicates
7419 /* 5446 */ // Combiner Rule #213: constant_fold_binop @ [mi[6]]
7420 /* 5446 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner79),
7421 /* 5449 */ // Label 252: @5449
7422 /* 5449 */ GIM_Try, /*On fail goto*//*Label 253*/ GIMT_Encode4(5460), // Rule ID 346 //
7423 /* 5454 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule236Enabled),
7424 /* 5457 */ // MIs[0] root
7425 /* 5457 */ // No operand predicates
7426 /* 5457 */ // MIs[0] mi.x
7427 /* 5457 */ // No operand predicates
7428 /* 5457 */ // MIs[0] mi.y
7429 /* 5457 */ // No operand predicates
7430 /* 5457 */ // Combiner Rule #236: fold_binop_into_select_a @ [mi[4]]
7431 /* 5457 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
7432 /* 5460 */ // Label 253: @5460
7433 /* 5460 */ GIM_Try, /*On fail goto*//*Label 254*/ GIMT_Encode4(5471), // Rule ID 413 //
7434 /* 5465 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule283Enabled),
7435 /* 5468 */ // MIs[0] dst
7436 /* 5468 */ // No operand predicates
7437 /* 5468 */ // MIs[0] src1
7438 /* 5468 */ // No operand predicates
7439 /* 5468 */ // MIs[0] src2
7440 /* 5468 */ // No operand predicates
7441 /* 5468 */ // Combiner Rule #283: match_ors
7442 /* 5468 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner104),
7443 /* 5471 */ // Label 254: @5471
7444 /* 5471 */ GIM_Try, /*On fail goto*//*Label 255*/ GIMT_Encode4(5482), // Rule ID 460 //
7445 /* 5476 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule328Enabled),
7446 /* 5479 */ // MIs[0] root
7447 /* 5479 */ // No operand predicates
7448 /* 5479 */ // MIs[0] mi.x
7449 /* 5479 */ // No operand predicates
7450 /* 5479 */ // MIs[0] mi.y
7451 /* 5479 */ // No operand predicates
7452 /* 5479 */ // Combiner Rule #328: binop_with_neg @ [mi[1]]
7453 /* 5479 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner128),
7454 /* 5482 */ // Label 255: @5482
7455 /* 5482 */ GIM_Reject,
7456 /* 5483 */ // Label 10: @5483
7457 /* 5483 */ GIM_Try, /*On fail goto*//*Label 256*/ GIMT_Encode4(5543), // Rule ID 13 //
7458 /* 5488 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule13Enabled),
7459 /* 5491 */ // MIs[0] root
7460 /* 5491 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
7461 /* 5495 */ // MIs[0] add
7462 /* 5495 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7463 /* 5499 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
7464 /* 5503 */ // MIs[1] A
7465 /* 5503 */ // No operand predicates
7466 /* 5503 */ // MIs[1] Operand 2
7467 /* 5503 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/2, 255,
7468 /* 5507 */ // MIs[0] Operand 2
7469 /* 5507 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 255,
7470 /* 5511 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner1),
7471 /* 5515 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7472 /* 5517 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
7473 /* 5520 */ GIR_BuildConstant, /*TempRegID*/0, /*Val*/GIMT_Encode8(0),
7474 /* 5530 */ // Combiner Rule #13: NotAPlusNegOne
7475 /* 5530 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
7476 /* 5533 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
7477 /* 5535 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/0,
7478 /* 5538 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // A
7479 /* 5542 */ GIR_EraseRootFromParent_Done,
7480 /* 5543 */ // Label 256: @5543
7481 /* 5543 */ GIM_Try, /*On fail goto*//*Label 257*/ GIMT_Encode4(5568), // Rule ID 387 //
7482 /* 5548 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule257Enabled),
7483 /* 5551 */ // MIs[0] dst
7484 /* 5551 */ // No operand predicates
7485 /* 5551 */ // MIs[0] lhs
7486 /* 5551 */ // No operand predicates
7487 /* 5551 */ // MIs[0] rhs
7488 /* 5551 */ // No operand predicates
7489 /* 5551 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner51),
7490 /* 5555 */ // Combiner Rule #257: G_XOR_commute_constant_to_rhs
7491 /* 5555 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_XOR),
7492 /* 5558 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
7493 /* 5560 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
7494 /* 5562 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
7495 /* 5564 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
7496 /* 5567 */ GIR_EraseRootFromParent_Done,
7497 /* 5568 */ // Label 257: @5568
7498 /* 5568 */ GIM_Try, /*On fail goto*//*Label 258*/ GIMT_Encode4(5592), // Rule ID 107 //
7499 /* 5573 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule84Enabled),
7500 /* 5576 */ // MIs[0] dst
7501 /* 5576 */ // No operand predicates
7502 /* 5576 */ // MIs[0] __propagate_undef_any_op_match_0.x
7503 /* 5576 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7504 /* 5580 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
7505 /* 5584 */ // MIs[0] __propagate_undef_any_op_match_0.y
7506 /* 5584 */ // No operand predicates
7507 /* 5584 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7508 /* 5586 */ // Combiner Rule #84: propagate_undef_any_op @ [__propagate_undef_any_op_match_0[2]]
7509 /* 5586 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
7510 /* 5589 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
7511 /* 5591 */ GIR_EraseRootFromParent_Done,
7512 /* 5592 */ // Label 258: @5592
7513 /* 5592 */ GIM_Try, /*On fail goto*//*Label 259*/ GIMT_Encode4(5631), // Rule ID 132 //
7514 /* 5597 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule95Enabled),
7515 /* 5600 */ // MIs[0] dst
7516 /* 5600 */ // No operand predicates
7517 /* 5600 */ // MIs[0] x
7518 /* 5600 */ GIM_RecordRegType, /*MI*/0, /*Op*/1, /*TempTypeIdx*/255,
7519 /* 5604 */ // MIs[0] x
7520 /* 5604 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
7521 /* 5609 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
7522 /* 5612 */ GIR_BuildConstant, /*TempRegID*/0, /*Val*/GIMT_Encode8(0),
7523 /* 5622 */ // Combiner Rule #95: same_val_zero @ [__same_val_zero_match_0[1]]
7524 /* 5622 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::COPY),
7525 /* 5625 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
7526 /* 5627 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/0,
7527 /* 5630 */ GIR_EraseRootFromParent_Done,
7528 /* 5631 */ // Label 259: @5631
7529 /* 5631 */ GIM_Try, /*On fail goto*//*Label 260*/ GIMT_Encode4(5655), // Rule ID 110 //
7530 /* 5636 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule84Enabled),
7531 /* 5639 */ // MIs[0] dst
7532 /* 5639 */ // No operand predicates
7533 /* 5639 */ // MIs[0] __propagate_undef_any_op_match_0.x
7534 /* 5639 */ // No operand predicates
7535 /* 5639 */ // MIs[0] __propagate_undef_any_op_match_0.y
7536 /* 5639 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
7537 /* 5643 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
7538 /* 5647 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7539 /* 5649 */ // Combiner Rule #84: propagate_undef_any_op @ [__propagate_undef_any_op_match_0[5]]
7540 /* 5649 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
7541 /* 5652 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
7542 /* 5654 */ GIR_EraseRootFromParent_Done,
7543 /* 5655 */ // Label 260: @5655
7544 /* 5655 */ GIM_Try, /*On fail goto*//*Label 261*/ GIMT_Encode4(5678), // Rule ID 122 //
7545 /* 5660 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
7546 /* 5663 */ // MIs[0] dst
7547 /* 5663 */ // No operand predicates
7548 /* 5663 */ // MIs[0] lhs
7549 /* 5663 */ // No operand predicates
7550 /* 5663 */ // MIs[0] Operand 2
7551 /* 5663 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
7552 /* 5667 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7553 /* 5672 */ // Combiner Rule #93: right_identity_zero @ [__right_identity_zero_match_0[3]]
7554 /* 5672 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7555 /* 5677 */ GIR_EraseRootFromParent_Done,
7556 /* 5678 */ // Label 261: @5678
7557 /* 5678 */ GIM_Try, /*On fail goto*//*Label 262*/ GIMT_Encode4(5689), // Rule ID 167 //
7558 /* 5683 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule119Enabled),
7559 /* 5686 */ // MIs[0] root
7560 /* 5686 */ // No operand predicates
7561 /* 5686 */ // MIs[0] mi.x
7562 /* 5686 */ // No operand predicates
7563 /* 5686 */ // MIs[0] mi.y
7564 /* 5686 */ // No operand predicates
7565 /* 5686 */ // Combiner Rule #119: hoist_logic_op_with_same_opcode_hands @ [mi[2]]
7566 /* 5686 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner38),
7567 /* 5689 */ // Label 262: @5689
7568 /* 5689 */ GIM_Try, /*On fail goto*//*Label 263*/ GIMT_Encode4(5700), // Rule ID 208 //
7569 /* 5694 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule158Enabled),
7570 /* 5697 */ // MIs[0] dst
7571 /* 5697 */ // No operand predicates
7572 /* 5697 */ // MIs[0] src1
7573 /* 5697 */ // No operand predicates
7574 /* 5697 */ // MIs[0] src2
7575 /* 5697 */ // No operand predicates
7576 /* 5697 */ // Combiner Rule #158: not_cmp_fold
7577 /* 5697 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner61),
7578 /* 5700 */ // Label 263: @5700
7579 /* 5700 */ GIM_Try, /*On fail goto*//*Label 264*/ GIMT_Encode4(5711), // Rule ID 244 //
7580 /* 5705 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule190Enabled),
7581 /* 5708 */ // MIs[0] dst
7582 /* 5708 */ // No operand predicates
7583 /* 5708 */ // MIs[0] src1
7584 /* 5708 */ // No operand predicates
7585 /* 5708 */ // MIs[0] src2
7586 /* 5708 */ // No operand predicates
7587 /* 5708 */ // Combiner Rule #190: xor_of_and_with_same_reg
7588 /* 5708 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner68),
7589 /* 5711 */ // Label 264: @5711
7590 /* 5711 */ GIM_Try, /*On fail goto*//*Label 265*/ GIMT_Encode4(5722), // Rule ID 290 //
7591 /* 5716 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule213Enabled),
7592 /* 5719 */ // MIs[0] d
7593 /* 5719 */ // No operand predicates
7594 /* 5719 */ // MIs[0] mi.src0
7595 /* 5719 */ // No operand predicates
7596 /* 5719 */ // MIs[0] mi.src1
7597 /* 5719 */ // No operand predicates
7598 /* 5719 */ // Combiner Rule #213: constant_fold_binop @ [mi[9]]
7599 /* 5719 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner79),
7600 /* 5722 */ // Label 265: @5722
7601 /* 5722 */ GIM_Try, /*On fail goto*//*Label 266*/ GIMT_Encode4(5733), // Rule ID 347 //
7602 /* 5727 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule236Enabled),
7603 /* 5730 */ // MIs[0] root
7604 /* 5730 */ // No operand predicates
7605 /* 5730 */ // MIs[0] mi.x
7606 /* 5730 */ // No operand predicates
7607 /* 5730 */ // MIs[0] mi.y
7608 /* 5730 */ // No operand predicates
7609 /* 5730 */ // Combiner Rule #236: fold_binop_into_select_a @ [mi[5]]
7610 /* 5730 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
7611 /* 5733 */ // Label 266: @5733
7612 /* 5733 */ GIM_Try, /*On fail goto*//*Label 267*/ GIMT_Encode4(5744), // Rule ID 461 //
7613 /* 5738 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule328Enabled),
7614 /* 5741 */ // MIs[0] root
7615 /* 5741 */ // No operand predicates
7616 /* 5741 */ // MIs[0] mi.x
7617 /* 5741 */ // No operand predicates
7618 /* 5741 */ // MIs[0] mi.y
7619 /* 5741 */ // No operand predicates
7620 /* 5741 */ // Combiner Rule #328: binop_with_neg @ [mi[2]]
7621 /* 5741 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner128),
7622 /* 5744 */ // Label 267: @5744
7623 /* 5744 */ GIM_Reject,
7624 /* 5745 */ // Label 11: @5745
7625 /* 5745 */ GIM_Try, /*On fail goto*//*Label 268*/ GIMT_Encode4(5759), // Rule ID 162 //
7626 /* 5750 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule117Enabled),
7627 /* 5753 */ GIM_CheckNumOperandsGE, /*MI*/0, /*Expected*/2,
7628 /* 5756 */ // MIs[0] dst
7629 /* 5756 */ // No operand predicates
7630 /* 5756 */ // MIs[0] srcs
7631 /* 5756 */ // No operand predicates
7632 /* 5756 */ // Combiner Rule #117: extend_through_phis
7633 /* 5756 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner37),
7634 /* 5759 */ // Label 268: @5759
7635 /* 5759 */ GIM_Reject,
7636 /* 5760 */ // Label 12: @5760
7637 /* 5760 */ GIM_Try, /*On fail goto*//*Label 269*/ GIMT_Encode4(5771), // Rule ID 429 //
7638 /* 5765 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule299Enabled),
7639 /* 5768 */ // Combiner Rule #299: unmerge_anyext_build_vector; wip_match_opcode 'G_UNMERGE_VALUES'
7640 /* 5768 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner114),
7641 /* 5771 */ // Label 269: @5771
7642 /* 5771 */ GIM_Try, /*On fail goto*//*Label 270*/ GIMT_Encode4(5782), // Rule ID 430 //
7643 /* 5776 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule300Enabled),
7644 /* 5779 */ // Combiner Rule #300: unmerge_merge; wip_match_opcode 'G_UNMERGE_VALUES'
7645 /* 5779 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner115),
7646 /* 5782 */ // Label 270: @5782
7647 /* 5782 */ GIM_Try, /*On fail goto*//*Label 271*/ GIMT_Encode4(5793), // Rule ID 432 //
7648 /* 5787 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule302Enabled),
7649 /* 5790 */ // Combiner Rule #302: unmerge_cst; wip_match_opcode 'G_UNMERGE_VALUES'
7650 /* 5790 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner117),
7651 /* 5793 */ // Label 271: @5793
7652 /* 5793 */ GIM_Try, /*On fail goto*//*Label 272*/ GIMT_Encode4(5804), // Rule ID 433 //
7653 /* 5798 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule303Enabled),
7654 /* 5801 */ // Combiner Rule #303: unmerge_undef; wip_match_opcode 'G_UNMERGE_VALUES'
7655 /* 5801 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner118),
7656 /* 5804 */ // Label 272: @5804
7657 /* 5804 */ GIM_Try, /*On fail goto*//*Label 273*/ GIMT_Encode4(5815), // Rule ID 434 //
7658 /* 5809 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule304Enabled),
7659 /* 5812 */ // Combiner Rule #304: unmerge_dead_to_trunc; wip_match_opcode 'G_UNMERGE_VALUES'
7660 /* 5812 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
7661 /* 5815 */ // Label 273: @5815
7662 /* 5815 */ GIM_Try, /*On fail goto*//*Label 274*/ GIMT_Encode4(5826), // Rule ID 435 //
7663 /* 5820 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule305Enabled),
7664 /* 5823 */ // Combiner Rule #305: unmerge_zext_to_zext; wip_match_opcode 'G_UNMERGE_VALUES'
7665 /* 5823 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner120),
7666 /* 5826 */ // Label 274: @5826
7667 /* 5826 */ GIM_Reject,
7668 /* 5827 */ // Label 13: @5827
7669 /* 5827 */ GIM_Try, /*On fail goto*//*Label 275*/ GIMT_Encode4(5841), // Rule ID 431 //
7670 /* 5832 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule301Enabled),
7671 /* 5835 */ GIM_CheckNumOperandsGE, /*MI*/0, /*Expected*/2,
7672 /* 5838 */ // MIs[0] dst
7673 /* 5838 */ // No operand predicates
7674 /* 5838 */ // MIs[0] merge_srcs
7675 /* 5838 */ // No operand predicates
7676 /* 5838 */ // Combiner Rule #301: merge_unmerge
7677 /* 5838 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner116),
7678 /* 5841 */ // Label 275: @5841
7679 /* 5841 */ GIM_Try, /*On fail goto*//*Label 276*/ GIMT_Encode4(5921),
7680 /* 5846 */ GIM_CheckNumOperands, /*MI*/0, /*Expected*/3,
7681 /* 5849 */ GIM_Try, /*On fail goto*//*Label 277*/ GIMT_Encode4(5879), // Rule ID 436 //
7682 /* 5854 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule306Enabled),
7683 /* 5857 */ // MIs[0] root
7684 /* 5857 */ // No operand predicates
7685 /* 5857 */ // MIs[0] x
7686 /* 5857 */ // No operand predicates
7687 /* 5857 */ // MIs[0] undef
7688 /* 5857 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
7689 /* 5861 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
7690 /* 5865 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner53),
7691 /* 5869 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7692 /* 5871 */ // Combiner Rule #306: merge_of_x_and_undef
7693 /* 5871 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ANYEXT),
7694 /* 5874 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
7695 /* 5876 */ GIR_RootToRootCopy, /*OpIdx*/1, // x
7696 /* 5878 */ GIR_EraseRootFromParent_Done,
7697 /* 5879 */ // Label 277: @5879
7698 /* 5879 */ GIM_Try, /*On fail goto*//*Label 278*/ GIMT_Encode4(5920), // Rule ID 437 //
7699 /* 5884 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule307Enabled),
7700 /* 5887 */ // MIs[0] root
7701 /* 5887 */ // No operand predicates
7702 /* 5887 */ // MIs[0] x
7703 /* 5887 */ // No operand predicates
7704 /* 5887 */ // MIs[0] zero
7705 /* 5887 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
7706 /* 5891 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
7707 /* 5895 */ // MIs[1] Operand 1
7708 /* 5895 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0),
7709 /* 5906 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner54),
7710 /* 5910 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7711 /* 5912 */ // Combiner Rule #307: merge_of_x_and_zero
7712 /* 5912 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ZEXT),
7713 /* 5915 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
7714 /* 5917 */ GIR_RootToRootCopy, /*OpIdx*/1, // x
7715 /* 5919 */ GIR_EraseRootFromParent_Done,
7716 /* 5920 */ // Label 278: @5920
7717 /* 5920 */ GIM_Reject,
7718 /* 5921 */ // Label 276: @5921
7719 /* 5921 */ GIM_Reject,
7720 /* 5922 */ // Label 14: @5922
7721 /* 5922 */ GIM_Try, /*On fail goto*//*Label 279*/ GIMT_Encode4(5993),
7722 /* 5927 */ GIM_CheckNumOperandsGE, /*MI*/0, /*Expected*/2,
7723 /* 5930 */ GIM_Try, /*On fail goto*//*Label 280*/ GIMT_Encode4(5948), // Rule ID 112 //
7724 /* 5935 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule86Enabled),
7725 /* 5938 */ // MIs[0] root
7726 /* 5938 */ // No operand predicates
7727 /* 5938 */ // MIs[0] srcs
7728 /* 5938 */ // No operand predicates
7729 /* 5938 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner8),
7730 /* 5942 */ // Combiner Rule #86: propagate_undef_all_ops_build_vector
7731 /* 5942 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
7732 /* 5945 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
7733 /* 5947 */ GIR_EraseRootFromParent_Done,
7734 /* 5948 */ // Label 280: @5948
7735 /* 5948 */ GIM_Try, /*On fail goto*//*Label 281*/ GIMT_Encode4(5959), // Rule ID 77 //
7736 /* 5953 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule73Enabled),
7737 /* 5956 */ // MIs[0] dst
7738 /* 5956 */ // No operand predicates
7739 /* 5956 */ // MIs[0] srcs
7740 /* 5956 */ // No operand predicates
7741 /* 5956 */ // Combiner Rule #73: extract_all_elts_from_build_vector
7742 /* 5956 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner26),
7743 /* 5959 */ // Label 281: @5959
7744 /* 5959 */ GIM_Try, /*On fail goto*//*Label 282*/ GIMT_Encode4(5970), // Rule ID 152 //
7745 /* 5964 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule107Enabled),
7746 /* 5967 */ // MIs[0] build_vector
7747 /* 5967 */ // No operand predicates
7748 /* 5967 */ // MIs[0] srcs
7749 /* 5967 */ // No operand predicates
7750 /* 5967 */ // Combiner Rule #107: buildvector_identity_fold_bv
7751 /* 5967 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner34),
7752 /* 5970 */ // Label 282: @5970
7753 /* 5970 */ GIM_Try, /*On fail goto*//*Label 283*/ GIMT_Encode4(5981), // Rule ID 428 //
7754 /* 5975 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule298Enabled),
7755 /* 5978 */ // MIs[0] dst
7756 /* 5978 */ // No operand predicates
7757 /* 5978 */ // MIs[0] unused
7758 /* 5978 */ // No operand predicates
7759 /* 5978 */ // Combiner Rule #298: combine_use_vector_truncate
7760 /* 5978 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner113),
7761 /* 5981 */ // Label 283: @5981
7762 /* 5981 */ GIM_Try, /*On fail goto*//*Label 284*/ GIMT_Encode4(5992), // Rule ID 438 //
7763 /* 5986 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule308Enabled),
7764 /* 5989 */ // MIs[0] dst
7765 /* 5989 */ // No operand predicates
7766 /* 5989 */ // MIs[0] unused
7767 /* 5989 */ // No operand predicates
7768 /* 5989 */ // Combiner Rule #308: combine_build_unmerge
7769 /* 5989 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner121),
7770 /* 5992 */ // Label 284: @5992
7771 /* 5992 */ GIM_Reject,
7772 /* 5993 */ // Label 279: @5993
7773 /* 5993 */ GIM_Reject,
7774 /* 5994 */ // Label 15: @5994
7775 /* 5994 */ GIM_Try, /*On fail goto*//*Label 285*/ GIMT_Encode4(6008), // Rule ID 153 //
7776 /* 5999 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule108Enabled),
7777 /* 6002 */ GIM_CheckNumOperandsGE, /*MI*/0, /*Expected*/2,
7778 /* 6005 */ // MIs[0] build_vector
7779 /* 6005 */ // No operand predicates
7780 /* 6005 */ // MIs[0] srcs
7781 /* 6005 */ // No operand predicates
7782 /* 6005 */ // Combiner Rule #108: buildvector_identity_fold_bvt
7783 /* 6005 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner34),
7784 /* 6008 */ // Label 285: @6008
7785 /* 6008 */ GIM_Reject,
7786 /* 6009 */ // Label 16: @6009
7787 /* 6009 */ GIM_Try, /*On fail goto*//*Label 286*/ GIMT_Encode4(6023), // Rule ID 421 //
7788 /* 6014 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule291Enabled),
7789 /* 6017 */ GIM_CheckNumOperandsGE, /*MI*/0, /*Expected*/2,
7790 /* 6020 */ // MIs[0] dst
7791 /* 6020 */ // No operand predicates
7792 /* 6020 */ // MIs[0] srcs
7793 /* 6020 */ // No operand predicates
7794 /* 6020 */ // Combiner Rule #291: combine_concat_vector
7795 /* 6020 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner106),
7796 /* 6023 */ // Label 286: @6023
7797 /* 6023 */ GIM_Reject,
7798 /* 6024 */ // Label 17: @6024
7799 /* 6024 */ GIM_Try, /*On fail goto*//*Label 287*/ GIMT_Encode4(6056), // Rule ID 143 //
7800 /* 6029 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule99Enabled),
7801 /* 6032 */ // MIs[0] dst
7802 /* 6032 */ // No operand predicates
7803 /* 6032 */ // MIs[0] t
7804 /* 6032 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7805 /* 6036 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_INTTOPTR),
7806 /* 6040 */ // MIs[1] ptr
7807 /* 6040 */ // No operand predicates
7808 /* 6040 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner15),
7809 /* 6044 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7810 /* 6046 */ // Combiner Rule #99: i2p_to_p2i_same_size
7811 /* 6046 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::COPY),
7812 /* 6049 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
7813 /* 6051 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // ptr
7814 /* 6055 */ GIR_EraseRootFromParent_Done,
7815 /* 6056 */ // Label 287: @6056
7816 /* 6056 */ GIM_Try, /*On fail goto*//*Label 288*/ GIMT_Encode4(6088), // Rule ID 144 //
7817 /* 6061 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule100Enabled),
7818 /* 6064 */ // MIs[0] dst
7819 /* 6064 */ // No operand predicates
7820 /* 6064 */ // MIs[0] t
7821 /* 6064 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7822 /* 6068 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_INTTOPTR),
7823 /* 6072 */ // MIs[1] ptr
7824 /* 6072 */ // No operand predicates
7825 /* 6072 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner16),
7826 /* 6076 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7827 /* 6078 */ // Combiner Rule #100: i2p_to_p2i_zext
7828 /* 6078 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ZEXT),
7829 /* 6081 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
7830 /* 6083 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // ptr
7831 /* 6087 */ GIR_EraseRootFromParent_Done,
7832 /* 6088 */ // Label 288: @6088
7833 /* 6088 */ GIM_Try, /*On fail goto*//*Label 289*/ GIMT_Encode4(6120), // Rule ID 145 //
7834 /* 6093 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule101Enabled),
7835 /* 6096 */ // MIs[0] dst
7836 /* 6096 */ // No operand predicates
7837 /* 6096 */ // MIs[0] t
7838 /* 6096 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7839 /* 6100 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_INTTOPTR),
7840 /* 6104 */ // MIs[1] ptr
7841 /* 6104 */ // No operand predicates
7842 /* 6104 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner17),
7843 /* 6108 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7844 /* 6110 */ // Combiner Rule #101: i2p_to_p2i_trunc
7845 /* 6110 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_TRUNC),
7846 /* 6113 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
7847 /* 6115 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // ptr
7848 /* 6119 */ GIR_EraseRootFromParent_Done,
7849 /* 6120 */ // Label 289: @6120
7850 /* 6120 */ GIM_Try, /*On fail goto*//*Label 290*/ GIMT_Encode4(6144), // Rule ID 101 //
7851 /* 6125 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule83Enabled),
7852 /* 6128 */ // MIs[0] dst
7853 /* 6128 */ // No operand predicates
7854 /* 6128 */ // MIs[0] __unary_undef_to_undef_match_0.x
7855 /* 6128 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7856 /* 6132 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
7857 /* 6136 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7858 /* 6138 */ // Combiner Rule #83: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[3]]
7859 /* 6138 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
7860 /* 6141 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
7861 /* 6143 */ GIR_EraseRootFromParent_Done,
7862 /* 6144 */ // Label 290: @6144
7863 /* 6144 */ GIM_Reject,
7864 /* 6145 */ // Label 18: @6145
7865 /* 6145 */ GIM_Try, /*On fail goto*//*Label 291*/ GIMT_Encode4(6178), // Rule ID 142 //
7866 /* 6150 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule98Enabled),
7867 /* 6153 */ // MIs[0] dst
7868 /* 6153 */ // No operand predicates
7869 /* 6153 */ // MIs[0] mid
7870 /* 6153 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7871 /* 6157 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_PTRTOINT),
7872 /* 6161 */ // MIs[1] x
7873 /* 6161 */ // No operand predicates
7874 /* 6161 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner14),
7875 /* 6165 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
7876 /* 6170 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7877 /* 6172 */ // Combiner Rule #98: p2i_to_i2p
7878 /* 6172 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
7879 /* 6177 */ GIR_EraseRootFromParent_Done,
7880 /* 6178 */ // Label 291: @6178
7881 /* 6178 */ GIM_Try, /*On fail goto*//*Label 292*/ GIMT_Encode4(6202), // Rule ID 102 //
7882 /* 6183 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule83Enabled),
7883 /* 6186 */ // MIs[0] dst
7884 /* 6186 */ // No operand predicates
7885 /* 6186 */ // MIs[0] __unary_undef_to_undef_match_0.x
7886 /* 6186 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7887 /* 6190 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
7888 /* 6194 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7889 /* 6196 */ // Combiner Rule #83: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[4]]
7890 /* 6196 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
7891 /* 6199 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
7892 /* 6201 */ GIR_EraseRootFromParent_Done,
7893 /* 6202 */ // Label 292: @6202
7894 /* 6202 */ GIM_Reject,
7895 /* 6203 */ // Label 19: @6203
7896 /* 6203 */ GIM_Try, /*On fail goto*//*Label 293*/ GIMT_Encode4(6236), // Rule ID 156 //
7897 /* 6208 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule111Enabled),
7898 /* 6211 */ // MIs[0] dst
7899 /* 6211 */ // No operand predicates
7900 /* 6211 */ // MIs[0] src1
7901 /* 6211 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7902 /* 6215 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BITCAST),
7903 /* 6219 */ // MIs[1] src0
7904 /* 6219 */ // No operand predicates
7905 /* 6219 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner14),
7906 /* 6223 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
7907 /* 6228 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7908 /* 6230 */ // Combiner Rule #111: bitcast_bitcast_fold
7909 /* 6230 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
7910 /* 6235 */ GIR_EraseRootFromParent_Done,
7911 /* 6236 */ // Label 293: @6236
7912 /* 6236 */ GIM_Try, /*On fail goto*//*Label 294*/ GIMT_Encode4(6268), // Rule ID 157 //
7913 /* 6241 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule112Enabled),
7914 /* 6244 */ // MIs[0] dst
7915 /* 6244 */ // No operand predicates
7916 /* 6244 */ // MIs[0] src1
7917 /* 6244 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7918 /* 6248 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BITCAST),
7919 /* 6252 */ // MIs[1] src0
7920 /* 6252 */ // No operand predicates
7921 /* 6252 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner19),
7922 /* 6256 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7923 /* 6258 */ // Combiner Rule #112: bitcast_bitcast_to_bitcast
7924 /* 6258 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_BITCAST),
7925 /* 6261 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
7926 /* 6263 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // src0
7927 /* 6267 */ GIR_EraseRootFromParent_Done,
7928 /* 6268 */ // Label 294: @6268
7929 /* 6268 */ GIM_Try, /*On fail goto*//*Label 295*/ GIMT_Encode4(6292), // Rule ID 99 //
7930 /* 6273 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule83Enabled),
7931 /* 6276 */ // MIs[0] dst
7932 /* 6276 */ // No operand predicates
7933 /* 6276 */ // MIs[0] __unary_undef_to_undef_match_0.x
7934 /* 6276 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7935 /* 6280 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
7936 /* 6284 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7937 /* 6286 */ // Combiner Rule #83: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[1]]
7938 /* 6286 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
7939 /* 6289 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
7940 /* 6291 */ GIR_EraseRootFromParent_Done,
7941 /* 6292 */ // Label 295: @6292
7942 /* 6292 */ GIM_Reject,
7943 /* 6293 */ // Label 20: @6293
7944 /* 6293 */ GIM_Try, /*On fail goto*//*Label 296*/ GIMT_Encode4(6316), // Rule ID 51 //
7945 /* 6298 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule47Enabled),
7946 /* 6301 */ // MIs[0] root
7947 /* 6301 */ // No operand predicates
7948 /* 6301 */ // MIs[0] src
7949 /* 6301 */ // No operand predicates
7950 /* 6301 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner7),
7951 /* 6305 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7952 /* 6310 */ // Combiner Rule #47: freeze_of_non_undef_non_poison
7953 /* 6310 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7954 /* 6315 */ GIR_EraseRootFromParent_Done,
7955 /* 6316 */ // Label 296: @6316
7956 /* 6316 */ GIM_Try, /*On fail goto*//*Label 297*/ GIMT_Encode4(6345), // Rule ID 25 //
7957 /* 6321 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule24Enabled),
7958 /* 6324 */ // MIs[0] dst
7959 /* 6324 */ // No operand predicates
7960 /* 6324 */ // MIs[0] src
7961 /* 6324 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7962 /* 6328 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FREEZE),
7963 /* 6332 */ // MIs[1] __idempotent_prop_match_0.x
7964 /* 6332 */ // No operand predicates
7965 /* 6332 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7966 /* 6337 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7967 /* 6339 */ // Combiner Rule #24: idempotent_prop @ [__idempotent_prop_match_0[0]]
7968 /* 6339 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7969 /* 6344 */ GIR_EraseRootFromParent_Done,
7970 /* 6345 */ // Label 297: @6345
7971 /* 6345 */ GIM_Try, /*On fail goto*//*Label 298*/ GIMT_Encode4(6356), // Rule ID 52 //
7972 /* 6350 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule48Enabled),
7973 /* 6353 */ // MIs[0] dst
7974 /* 6353 */ // No operand predicates
7975 /* 6353 */ // MIs[0] src
7976 /* 6353 */ // No operand predicates
7977 /* 6353 */ // Combiner Rule #48: push_freeze_to_prevent_poison_from_propagating
7978 /* 6353 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner16),
7979 /* 6356 */ // Label 298: @6356
7980 /* 6356 */ GIM_Reject,
7981 /* 6357 */ // Label 21: @6357
7982 /* 6357 */ GIM_Try, /*On fail goto*//*Label 299*/ GIMT_Encode4(6368), // Rule ID 218 //
7983 /* 6362 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule168Enabled),
7984 /* 6365 */ // MIs[0] dst
7985 /* 6365 */ // No operand predicates
7986 /* 6365 */ // MIs[0] src0
7987 /* 6365 */ // No operand predicates
7988 /* 6365 */ // Combiner Rule #168: constant_fold_intrinsic_trunc
7989 /* 6365 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner63),
7990 /* 6368 */ // Label 299: @6368
7991 /* 6368 */ GIM_Reject,
7992 /* 6369 */ // Label 22: @6369
7993 /* 6369 */ GIM_Try, /*On fail goto*//*Label 300*/ GIMT_Encode4(6380), // Rule ID 219 //
7994 /* 6374 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule169Enabled),
7995 /* 6377 */ // MIs[0] dst
7996 /* 6377 */ // No operand predicates
7997 /* 6377 */ // MIs[0] src0
7998 /* 6377 */ // No operand predicates
7999 /* 6377 */ // Combiner Rule #169: constant_fold_intrinsic_round
8000 /* 6377 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner63),
8001 /* 6380 */ // Label 300: @6380
8002 /* 6380 */ GIM_Reject,
8003 /* 6381 */ // Label 23: @6381
8004 /* 6381 */ GIM_Try, /*On fail goto*//*Label 301*/ GIMT_Encode4(6392), // Rule ID 220 //
8005 /* 6386 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule170Enabled),
8006 /* 6389 */ // MIs[0] dst
8007 /* 6389 */ // No operand predicates
8008 /* 6389 */ // MIs[0] src0
8009 /* 6389 */ // No operand predicates
8010 /* 6389 */ // Combiner Rule #170: constant_fold_intrinsic_roundeven
8011 /* 6389 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner63),
8012 /* 6392 */ // Label 301: @6392
8013 /* 6392 */ GIM_Reject,
8014 /* 6393 */ // Label 24: @6393
8015 /* 6393 */ GIM_Try, /*On fail goto*//*Label 302*/ GIMT_Encode4(6404), // Rule ID 78 //
8016 /* 6398 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule74Enabled),
8017 /* 6401 */ // MIs[0] root
8018 /* 6401 */ // No operand predicates
8019 /* 6401 */ // MIs[0] mi.ptr
8020 /* 6401 */ // No operand predicates
8021 /* 6401 */ // Combiner Rule #74: extending_loads @ [mi[0]]
8022 /* 6401 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner27),
8023 /* 6404 */ // Label 302: @6404
8024 /* 6404 */ GIM_Reject,
8025 /* 6405 */ // Label 25: @6405
8026 /* 6405 */ GIM_Try, /*On fail goto*//*Label 303*/ GIMT_Encode4(6416), // Rule ID 79 //
8027 /* 6410 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule74Enabled),
8028 /* 6413 */ // MIs[0] root
8029 /* 6413 */ // No operand predicates
8030 /* 6413 */ // MIs[0] mi.ptr
8031 /* 6413 */ // No operand predicates
8032 /* 6413 */ // Combiner Rule #74: extending_loads @ [mi[1]]
8033 /* 6413 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner27),
8034 /* 6416 */ // Label 303: @6416
8035 /* 6416 */ GIM_Reject,
8036 /* 6417 */ // Label 26: @6417
8037 /* 6417 */ GIM_Try, /*On fail goto*//*Label 304*/ GIMT_Encode4(6428), // Rule ID 80 //
8038 /* 6422 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule74Enabled),
8039 /* 6425 */ // MIs[0] root
8040 /* 6425 */ // No operand predicates
8041 /* 6425 */ // MIs[0] mi.ptr
8042 /* 6425 */ // No operand predicates
8043 /* 6425 */ // Combiner Rule #74: extending_loads @ [mi[2]]
8044 /* 6425 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner27),
8045 /* 6428 */ // Label 304: @6428
8046 /* 6428 */ GIM_Reject,
8047 /* 6429 */ // Label 27: @6429
8048 /* 6429 */ GIM_Try, /*On fail goto*//*Label 305*/ GIMT_Encode4(6452), // Rule ID 114 //
8049 /* 6434 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule88Enabled),
8050 /* 6437 */ // MIs[0] val
8051 /* 6437 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/0, // MIs[1]
8052 /* 6441 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
8053 /* 6445 */ // MIs[0] ptr
8054 /* 6445 */ // No operand predicates
8055 /* 6445 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner10),
8056 /* 6449 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8057 /* 6451 */ // Combiner Rule #88: erase_undef_store
8058 /* 6451 */ GIR_EraseRootFromParent_Done,
8059 /* 6452 */ // Label 305: @6452
8060 /* 6452 */ GIM_Reject,
8061 /* 6453 */ // Label 28: @6453
8062 /* 6453 */ GIM_Try, /*On fail goto*//*Label 306*/ GIMT_Encode4(6474), // Rule ID 65 //
8063 /* 6458 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule61Enabled),
8064 /* 6461 */ // MIs[0] root
8065 /* 6461 */ // No operand predicates
8066 /* 6461 */ // MIs[0] select
8067 /* 6461 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8068 /* 6465 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SELECT),
8069 /* 6469 */ // MIs[1] cond
8070 /* 6469 */ // No operand predicates
8071 /* 6469 */ // MIs[1] true
8072 /* 6469 */ // No operand predicates
8073 /* 6469 */ // MIs[1] false
8074 /* 6469 */ // No operand predicates
8075 /* 6469 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8076 /* 6471 */ // Combiner Rule #61: select_of_anyext
8077 /* 6471 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner20),
8078 /* 6474 */ // Label 306: @6474
8079 /* 6474 */ GIM_Try, /*On fail goto*//*Label 307*/ GIMT_Encode4(6495), // Rule ID 60 //
8080 /* 6479 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule56Enabled),
8081 /* 6482 */ // MIs[0] root
8082 /* 6482 */ // No operand predicates
8083 /* 6482 */ // MIs[0] second
8084 /* 6482 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8085 /* 6486 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ANYEXT),
8086 /* 6490 */ // MIs[1] src
8087 /* 6490 */ // No operand predicates
8088 /* 6490 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8089 /* 6492 */ // Combiner Rule #56: anyext_of_anyext
8090 /* 6492 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner18),
8091 /* 6495 */ // Label 307: @6495
8092 /* 6495 */ GIM_Try, /*On fail goto*//*Label 308*/ GIMT_Encode4(6516), // Rule ID 62 //
8093 /* 6500 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule58Enabled),
8094 /* 6503 */ // MIs[0] root
8095 /* 6503 */ // No operand predicates
8096 /* 6503 */ // MIs[0] second
8097 /* 6503 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8098 /* 6507 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SEXT),
8099 /* 6511 */ // MIs[1] src
8100 /* 6511 */ // No operand predicates
8101 /* 6511 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8102 /* 6513 */ // Combiner Rule #58: anyext_of_sext
8103 /* 6513 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner18),
8104 /* 6516 */ // Label 308: @6516
8105 /* 6516 */ GIM_Try, /*On fail goto*//*Label 309*/ GIMT_Encode4(6537), // Rule ID 61 //
8106 /* 6521 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule57Enabled),
8107 /* 6524 */ // MIs[0] root
8108 /* 6524 */ // No operand predicates
8109 /* 6524 */ // MIs[0] second
8110 /* 6524 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8111 /* 6528 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ZEXT),
8112 /* 6532 */ // MIs[1] src
8113 /* 6532 */ // No operand predicates
8114 /* 6532 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8115 /* 6534 */ // Combiner Rule #57: anyext_of_zext
8116 /* 6534 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner18),
8117 /* 6537 */ // Label 309: @6537
8118 /* 6537 */ GIM_Try, /*On fail goto*//*Label 310*/ GIMT_Encode4(6561), // Rule ID 100 //
8119 /* 6542 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule83Enabled),
8120 /* 6545 */ // MIs[0] dst
8121 /* 6545 */ // No operand predicates
8122 /* 6545 */ // MIs[0] __unary_undef_to_undef_match_0.x
8123 /* 6545 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8124 /* 6549 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
8125 /* 6553 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8126 /* 6555 */ // Combiner Rule #83: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[2]]
8127 /* 6555 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
8128 /* 6558 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
8129 /* 6560 */ GIR_EraseRootFromParent_Done,
8130 /* 6561 */ // Label 310: @6561
8131 /* 6561 */ GIM_Try, /*On fail goto*//*Label 311*/ GIMT_Encode4(6572), // Rule ID 146 //
8132 /* 6566 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule102Enabled),
8133 /* 6569 */ // MIs[0] dst
8134 /* 6569 */ // No operand predicates
8135 /* 6569 */ // MIs[0] src
8136 /* 6569 */ // No operand predicates
8137 /* 6569 */ // Combiner Rule #102: anyext_trunc_fold
8138 /* 6569 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner33),
8139 /* 6572 */ // Label 311: @6572
8140 /* 6572 */ GIM_Try, /*On fail goto*//*Label 312*/ GIMT_Encode4(6583), // Rule ID 315 //
8141 /* 6577 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
8142 /* 6580 */ // MIs[0] dst
8143 /* 6580 */ // No operand predicates
8144 /* 6580 */ // MIs[0] d.src
8145 /* 6580 */ // No operand predicates
8146 /* 6580 */ // Combiner Rule #216: constant_fold_cast_op @ [d[2]]
8147 /* 6580 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner82),
8148 /* 6583 */ // Label 312: @6583
8149 /* 6583 */ GIM_Reject,
8150 /* 6584 */ // Label 29: @6584
8151 /* 6584 */ GIM_Try, /*On fail goto*//*Label 313*/ GIMT_Encode4(6616), // Rule ID 447 //
8152 /* 6589 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule317Enabled),
8153 /* 6592 */ // MIs[0] dst
8154 /* 6592 */ // No operand predicates
8155 /* 6592 */ // MIs[0] min
8156 /* 6592 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8157 /* 6596 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_UMIN),
8158 /* 6600 */ // MIs[1] x
8159 /* 6600 */ // No operand predicates
8160 /* 6600 */ // MIs[1] y
8161 /* 6600 */ // No operand predicates
8162 /* 6600 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner56),
8163 /* 6604 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8164 /* 6606 */ // Combiner Rule #317: trunc_usatu
8165 /* 6606 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_TRUNC_USAT_U),
8166 /* 6609 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
8167 /* 6611 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
8168 /* 6615 */ GIR_EraseRootFromParent_Done,
8169 /* 6616 */ // Label 313: @6616
8170 /* 6616 */ GIM_Try, /*On fail goto*//*Label 314*/ GIMT_Encode4(6637), // Rule ID 66 //
8171 /* 6621 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule62Enabled),
8172 /* 6624 */ // MIs[0] root
8173 /* 6624 */ // No operand predicates
8174 /* 6624 */ // MIs[0] select
8175 /* 6624 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8176 /* 6628 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SELECT),
8177 /* 6632 */ // MIs[1] cond
8178 /* 6632 */ // No operand predicates
8179 /* 6632 */ // MIs[1] true
8180 /* 6632 */ // No operand predicates
8181 /* 6632 */ // MIs[1] false
8182 /* 6632 */ // No operand predicates
8183 /* 6632 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8184 /* 6634 */ // Combiner Rule #62: select_of_truncate
8185 /* 6634 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner20),
8186 /* 6637 */ // Label 314: @6637
8187 /* 6637 */ GIM_Try, /*On fail goto*//*Label 315*/ GIMT_Encode4(6666), // Rule ID 68 //
8188 /* 6642 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule64Enabled),
8189 /* 6645 */ // MIs[0] root
8190 /* 6645 */ // No operand predicates
8191 /* 6645 */ // MIs[0] binop
8192 /* 6645 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8193 /* 6649 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
8194 /* 6653 */ // MIs[1] x
8195 /* 6653 */ // No operand predicates
8196 /* 6653 */ // MIs[1] const
8197 /* 6653 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
8198 /* 6657 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
8199 /* 6661 */ // MIs[2] imm
8200 /* 6661 */ // No operand predicates
8201 /* 6661 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
8202 /* 6663 */ // Combiner Rule #64: narrow_binop_add
8203 /* 6663 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner22),
8204 /* 6666 */ // Label 315: @6666
8205 /* 6666 */ GIM_Try, /*On fail goto*//*Label 316*/ GIMT_Encode4(6695), // Rule ID 71 //
8206 /* 6671 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule67Enabled),
8207 /* 6674 */ // MIs[0] root
8208 /* 6674 */ // No operand predicates
8209 /* 6674 */ // MIs[0] binop
8210 /* 6674 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8211 /* 6678 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_AND),
8212 /* 6682 */ // MIs[1] x
8213 /* 6682 */ // No operand predicates
8214 /* 6682 */ // MIs[1] const
8215 /* 6682 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
8216 /* 6686 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
8217 /* 6690 */ // MIs[2] imm
8218 /* 6690 */ // No operand predicates
8219 /* 6690 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
8220 /* 6692 */ // Combiner Rule #67: narrow_binop_and
8221 /* 6692 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner22),
8222 /* 6695 */ // Label 316: @6695
8223 /* 6695 */ GIM_Try, /*On fail goto*//*Label 317*/ GIMT_Encode4(6724), // Rule ID 70 //
8224 /* 6700 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule66Enabled),
8225 /* 6703 */ // MIs[0] root
8226 /* 6703 */ // No operand predicates
8227 /* 6703 */ // MIs[0] binop
8228 /* 6703 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8229 /* 6707 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_MUL),
8230 /* 6711 */ // MIs[1] x
8231 /* 6711 */ // No operand predicates
8232 /* 6711 */ // MIs[1] const
8233 /* 6711 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
8234 /* 6715 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
8235 /* 6719 */ // MIs[2] imm
8236 /* 6719 */ // No operand predicates
8237 /* 6719 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
8238 /* 6721 */ // Combiner Rule #66: narrow_binop_mul
8239 /* 6721 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner22),
8240 /* 6724 */ // Label 317: @6724
8241 /* 6724 */ GIM_Try, /*On fail goto*//*Label 318*/ GIMT_Encode4(6753), // Rule ID 72 //
8242 /* 6729 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule68Enabled),
8243 /* 6732 */ // MIs[0] root
8244 /* 6732 */ // No operand predicates
8245 /* 6732 */ // MIs[0] binop
8246 /* 6732 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8247 /* 6736 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_OR),
8248 /* 6740 */ // MIs[1] x
8249 /* 6740 */ // No operand predicates
8250 /* 6740 */ // MIs[1] const
8251 /* 6740 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
8252 /* 6744 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
8253 /* 6748 */ // MIs[2] imm
8254 /* 6748 */ // No operand predicates
8255 /* 6748 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
8256 /* 6750 */ // Combiner Rule #68: narrow_binop_or
8257 /* 6750 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner22),
8258 /* 6753 */ // Label 318: @6753
8259 /* 6753 */ GIM_Try, /*On fail goto*//*Label 319*/ GIMT_Encode4(6782), // Rule ID 69 //
8260 /* 6758 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule65Enabled),
8261 /* 6761 */ // MIs[0] root
8262 /* 6761 */ // No operand predicates
8263 /* 6761 */ // MIs[0] binop
8264 /* 6761 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8265 /* 6765 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
8266 /* 6769 */ // MIs[1] x
8267 /* 6769 */ // No operand predicates
8268 /* 6769 */ // MIs[1] const
8269 /* 6769 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
8270 /* 6773 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
8271 /* 6777 */ // MIs[2] imm
8272 /* 6777 */ // No operand predicates
8273 /* 6777 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
8274 /* 6779 */ // Combiner Rule #65: narrow_binop_sub
8275 /* 6779 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner22),
8276 /* 6782 */ // Label 319: @6782
8277 /* 6782 */ GIM_Try, /*On fail goto*//*Label 320*/ GIMT_Encode4(6811), // Rule ID 73 //
8278 /* 6787 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule69Enabled),
8279 /* 6790 */ // MIs[0] root
8280 /* 6790 */ // No operand predicates
8281 /* 6790 */ // MIs[0] binop
8282 /* 6790 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8283 /* 6794 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_XOR),
8284 /* 6798 */ // MIs[1] x
8285 /* 6798 */ // No operand predicates
8286 /* 6798 */ // MIs[1] const
8287 /* 6798 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
8288 /* 6802 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
8289 /* 6806 */ // MIs[2] imm
8290 /* 6806 */ // No operand predicates
8291 /* 6806 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
8292 /* 6808 */ // Combiner Rule #69: narrow_binop_xor
8293 /* 6808 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner22),
8294 /* 6811 */ // Label 320: @6811
8295 /* 6811 */ GIM_Try, /*On fail goto*//*Label 321*/ GIMT_Encode4(6835), // Rule ID 67 //
8296 /* 6816 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule63Enabled),
8297 /* 6819 */ // MIs[0] root
8298 /* 6819 */ // No operand predicates
8299 /* 6819 */ // MIs[0] bv
8300 /* 6819 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8301 /* 6823 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR),
8302 /* 6827 */ GIM_CheckNumOperandsGE, /*MI*/1, /*Expected*/2,
8303 /* 6830 */ // MIs[1] unused
8304 /* 6830 */ // No operand predicates
8305 /* 6830 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8306 /* 6832 */ // Combiner Rule #63: buildvector_of_truncate
8307 /* 6832 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner21),
8308 /* 6835 */ // Label 321: @6835
8309 /* 6835 */ GIM_Try, /*On fail goto*//*Label 322*/ GIMT_Encode4(6856), // Rule ID 55 //
8310 /* 6840 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule51Enabled),
8311 /* 6843 */ // MIs[0] root
8312 /* 6843 */ // No operand predicates
8313 /* 6843 */ // MIs[0] ext
8314 /* 6843 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8315 /* 6847 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ANYEXT),
8316 /* 6851 */ // MIs[1] src
8317 /* 6851 */ // No operand predicates
8318 /* 6851 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8319 /* 6853 */ // Combiner Rule #51: truncate_of_anyext
8320 /* 6853 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner17),
8321 /* 6856 */ // Label 322: @6856
8322 /* 6856 */ GIM_Try, /*On fail goto*//*Label 323*/ GIMT_Encode4(6877), // Rule ID 54 //
8323 /* 6861 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule50Enabled),
8324 /* 6864 */ // MIs[0] root
8325 /* 6864 */ // No operand predicates
8326 /* 6864 */ // MIs[0] ext
8327 /* 6864 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8328 /* 6868 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SEXT),
8329 /* 6872 */ // MIs[1] src
8330 /* 6872 */ // No operand predicates
8331 /* 6872 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8332 /* 6874 */ // Combiner Rule #50: truncate_of_sext
8333 /* 6874 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner17),
8334 /* 6877 */ // Label 323: @6877
8335 /* 6877 */ GIM_Try, /*On fail goto*//*Label 324*/ GIMT_Encode4(6898), // Rule ID 53 //
8336 /* 6882 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule49Enabled),
8337 /* 6885 */ // MIs[0] root
8338 /* 6885 */ // No operand predicates
8339 /* 6885 */ // MIs[0] ext
8340 /* 6885 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8341 /* 6889 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ZEXT),
8342 /* 6893 */ // MIs[1] src
8343 /* 6893 */ // No operand predicates
8344 /* 6893 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8345 /* 6895 */ // Combiner Rule #49: truncate_of_zext
8346 /* 6895 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner17),
8347 /* 6898 */ // Label 324: @6898
8348 /* 6898 */ GIM_Try, /*On fail goto*//*Label 325*/ GIMT_Encode4(6922), // Rule ID 98 //
8349 /* 6903 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule83Enabled),
8350 /* 6906 */ // MIs[0] dst
8351 /* 6906 */ // No operand predicates
8352 /* 6906 */ // MIs[0] __unary_undef_to_undef_match_0.x
8353 /* 6906 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8354 /* 6910 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
8355 /* 6914 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8356 /* 6916 */ // Combiner Rule #83: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[0]]
8357 /* 6916 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
8358 /* 6919 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
8359 /* 6921 */ GIR_EraseRootFromParent_Done,
8360 /* 6922 */ // Label 325: @6922
8361 /* 6922 */ GIM_Try, /*On fail goto*//*Label 326*/ GIMT_Encode4(6943), // Rule ID 74 //
8362 /* 6927 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule70Enabled),
8363 /* 6930 */ // MIs[0] root
8364 /* 6930 */ // No operand predicates
8365 /* 6930 */ // MIs[0] int
8366 /* 6930 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8367 /* 6934 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
8368 /* 6938 */ // MIs[1] imm
8369 /* 6938 */ // No operand predicates
8370 /* 6938 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8371 /* 6940 */ // Combiner Rule #70: integer_of_truncate
8372 /* 6940 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner23),
8373 /* 6943 */ // Label 326: @6943
8374 /* 6943 */ GIM_Try, /*On fail goto*//*Label 327*/ GIMT_Encode4(6954), // Rule ID 154 //
8375 /* 6948 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule109Enabled),
8376 /* 6951 */ // MIs[0] dst
8377 /* 6951 */ // No operand predicates
8378 /* 6951 */ // MIs[0] src
8379 /* 6951 */ // No operand predicates
8380 /* 6951 */ // Combiner Rule #109: trunc_buildvector_fold
8381 /* 6951 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner35),
8382 /* 6954 */ // Label 327: @6954
8383 /* 6954 */ GIM_Try, /*On fail goto*//*Label 328*/ GIMT_Encode4(6965), // Rule ID 155 //
8384 /* 6959 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule110Enabled),
8385 /* 6962 */ // MIs[0] dst
8386 /* 6962 */ // No operand predicates
8387 /* 6962 */ // MIs[0] src
8388 /* 6962 */ // No operand predicates
8389 /* 6962 */ // Combiner Rule #110: trunc_lshr_buildvector_fold
8390 /* 6962 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner36),
8391 /* 6965 */ // Label 328: @6965
8392 /* 6965 */ GIM_Try, /*On fail goto*//*Label 329*/ GIMT_Encode4(6976), // Rule ID 207 //
8393 /* 6970 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule157Enabled),
8394 /* 6973 */ // MIs[0] dst
8395 /* 6973 */ // No operand predicates
8396 /* 6973 */ // MIs[0] src
8397 /* 6973 */ // No operand predicates
8398 /* 6973 */ // Combiner Rule #157: trunc_shift
8399 /* 6973 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner60),
8400 /* 6976 */ // Label 329: @6976
8401 /* 6976 */ GIM_Try, /*On fail goto*//*Label 330*/ GIMT_Encode4(6987), // Rule ID 445 //
8402 /* 6981 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule315Enabled),
8403 /* 6984 */ // MIs[0] dst
8404 /* 6984 */ // No operand predicates
8405 /* 6984 */ // MIs[0] src
8406 /* 6984 */ // No operand predicates
8407 /* 6984 */ // Combiner Rule #315: trunc_ssats
8408 /* 6984 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner124),
8409 /* 6987 */ // Label 330: @6987
8410 /* 6987 */ GIM_Try, /*On fail goto*//*Label 331*/ GIMT_Encode4(6998), // Rule ID 446 //
8411 /* 6992 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule316Enabled),
8412 /* 6995 */ // MIs[0] dst
8413 /* 6995 */ // No operand predicates
8414 /* 6995 */ // MIs[0] src
8415 /* 6995 */ // No operand predicates
8416 /* 6995 */ // Combiner Rule #316: trunc_ssatu
8417 /* 6995 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner125),
8418 /* 6998 */ // Label 331: @6998
8419 /* 6998 */ GIM_Reject,
8420 /* 6999 */ // Label 30: @6999
8421 /* 6999 */ GIM_Try, /*On fail goto*//*Label 332*/ GIMT_Encode4(7031), // Rule ID 448 //
8422 /* 7004 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule318Enabled),
8423 /* 7007 */ // MIs[0] dst
8424 /* 7007 */ // No operand predicates
8425 /* 7007 */ // MIs[0] src
8426 /* 7007 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8427 /* 7011 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FPTOUI),
8428 /* 7015 */ // MIs[1] x
8429 /* 7015 */ // No operand predicates
8430 /* 7015 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner57),
8431 /* 7019 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8432 /* 7021 */ // Combiner Rule #318: truncusatu_to_fptouisat
8433 /* 7021 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FPTOUI_SAT),
8434 /* 7024 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
8435 /* 7026 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
8436 /* 7030 */ GIR_EraseRootFromParent_Done,
8437 /* 7031 */ // Label 332: @7031
8438 /* 7031 */ GIM_Reject,
8439 /* 7032 */ // Label 31: @7032
8440 /* 7032 */ GIM_Try, /*On fail goto*//*Label 333*/ GIMT_Encode4(7053), // Rule ID 59 //
8441 /* 7037 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule55Enabled),
8442 /* 7040 */ // MIs[0] root
8443 /* 7040 */ // No operand predicates
8444 /* 7040 */ // MIs[0] second
8445 /* 7040 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8446 /* 7044 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ANYEXT),
8447 /* 7048 */ // MIs[1] src
8448 /* 7048 */ // No operand predicates
8449 /* 7048 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8450 /* 7050 */ // Combiner Rule #55: sext_of_anyext
8451 /* 7050 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner18),
8452 /* 7053 */ // Label 333: @7053
8453 /* 7053 */ GIM_Try, /*On fail goto*//*Label 334*/ GIMT_Encode4(7074), // Rule ID 58 //
8454 /* 7058 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule54Enabled),
8455 /* 7061 */ // MIs[0] root
8456 /* 7061 */ // No operand predicates
8457 /* 7061 */ // MIs[0] second
8458 /* 7061 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8459 /* 7065 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SEXT),
8460 /* 7069 */ // MIs[1] src
8461 /* 7069 */ // No operand predicates
8462 /* 7069 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8463 /* 7071 */ // Combiner Rule #54: sext_of_sext
8464 /* 7071 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner18),
8465 /* 7074 */ // Label 334: @7074
8466 /* 7074 */ GIM_Try, /*On fail goto*//*Label 335*/ GIMT_Encode4(7095), // Rule ID 422 //
8467 /* 7079 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule292Enabled),
8468 /* 7082 */ // MIs[0] root
8469 /* 7082 */ // No operand predicates
8470 /* 7082 */ // MIs[0] src
8471 /* 7082 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8472 /* 7086 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_TRUNC),
8473 /* 7090 */ // MIs[1] x
8474 /* 7090 */ // No operand predicates
8475 /* 7090 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8476 /* 7092 */ // Combiner Rule #292: sext_trunc
8477 /* 7092 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner107),
8478 /* 7095 */ // Label 335: @7095
8479 /* 7095 */ GIM_Try, /*On fail goto*//*Label 336*/ GIMT_Encode4(7106), // Rule ID 314 //
8480 /* 7100 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
8481 /* 7103 */ // MIs[0] dst
8482 /* 7103 */ // No operand predicates
8483 /* 7103 */ // MIs[0] d.src
8484 /* 7103 */ // No operand predicates
8485 /* 7103 */ // Combiner Rule #216: constant_fold_cast_op @ [d[1]]
8486 /* 7103 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner82),
8487 /* 7106 */ // Label 336: @7106
8488 /* 7106 */ GIM_Reject,
8489 /* 7107 */ // Label 32: @7107
8490 /* 7107 */ GIM_Try, /*On fail goto*//*Label 337*/ GIMT_Encode4(7139), // Rule ID 197 //
8491 /* 7112 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule147Enabled),
8492 /* 7115 */ // MIs[0] dst
8493 /* 7115 */ // No operand predicates
8494 /* 7115 */ // MIs[0] tmp
8495 /* 7115 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8496 /* 7119 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ANYEXT),
8497 /* 7123 */ // MIs[1] src
8498 /* 7123 */ // No operand predicates
8499 /* 7123 */ // MIs[0] amt
8500 /* 7123 */ // No operand predicates
8501 /* 7123 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner30),
8502 /* 7127 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8503 /* 7129 */ // Combiner Rule #147: redundant_aext_sext_inreg
8504 /* 7129 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SEXT),
8505 /* 7132 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
8506 /* 7134 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // src
8507 /* 7138 */ GIR_EraseRootFromParent_Done,
8508 /* 7139 */ // Label 337: @7139
8509 /* 7139 */ GIM_Try, /*On fail goto*//*Label 338*/ GIMT_Encode4(7171), // Rule ID 196 //
8510 /* 7144 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule146Enabled),
8511 /* 7147 */ // MIs[0] dst
8512 /* 7147 */ // No operand predicates
8513 /* 7147 */ // MIs[0] tmp
8514 /* 7147 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8515 /* 7151 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ZEXT),
8516 /* 7155 */ // MIs[1] src
8517 /* 7155 */ // No operand predicates
8518 /* 7155 */ // MIs[0] amt
8519 /* 7155 */ // No operand predicates
8520 /* 7155 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner30),
8521 /* 7159 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8522 /* 7161 */ // Combiner Rule #146: redundant_zext_sext_inreg
8523 /* 7161 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SEXT),
8524 /* 7164 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
8525 /* 7166 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // src
8526 /* 7170 */ GIR_EraseRootFromParent_Done,
8527 /* 7171 */ // Label 338: @7171
8528 /* 7171 */ GIM_Try, /*On fail goto*//*Label 339*/ GIMT_Encode4(7194), // Rule ID 195 //
8529 /* 7176 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule145Enabled),
8530 /* 7179 */ // MIs[0] dst
8531 /* 7179 */ // No operand predicates
8532 /* 7179 */ // MIs[0] src
8533 /* 7179 */ // No operand predicates
8534 /* 7179 */ // MIs[0] sz
8535 /* 7179 */ // No operand predicates
8536 /* 7179 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner29),
8537 /* 7183 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8538 /* 7188 */ // Combiner Rule #145: redundant_sext_inreg
8539 /* 7188 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8540 /* 7193 */ GIR_EraseRootFromParent_Done,
8541 /* 7194 */ // Label 339: @7194
8542 /* 7194 */ GIM_Try, /*On fail goto*//*Label 340*/ GIMT_Encode4(7215), // Rule ID 63 //
8543 /* 7199 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule59Enabled),
8544 /* 7202 */ // MIs[0] dst
8545 /* 7202 */ // No operand predicates
8546 /* 7202 */ // MIs[0] x
8547 /* 7202 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8548 /* 7206 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SEXT_INREG),
8549 /* 7210 */ // MIs[1] src
8550 /* 7210 */ // No operand predicates
8551 /* 7210 */ // MIs[1] a
8552 /* 7210 */ // No operand predicates
8553 /* 7210 */ // MIs[0] b
8554 /* 7210 */ // No operand predicates
8555 /* 7210 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8556 /* 7212 */ // Combiner Rule #59: sext_inreg_of_sext_inreg
8557 /* 7212 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner19),
8558 /* 7215 */ // Label 340: @7215
8559 /* 7215 */ GIM_Try, /*On fail goto*//*Label 341*/ GIMT_Encode4(7255), // Rule ID 199 //
8560 /* 7220 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule149Enabled),
8561 /* 7223 */ // MIs[0] dst
8562 /* 7223 */ // No operand predicates
8563 /* 7223 */ // MIs[0] tmp4
8564 /* 7223 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8565 /* 7227 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ANYEXT),
8566 /* 7231 */ // MIs[1] tmp2
8567 /* 7231 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
8568 /* 7235 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_UNMERGE_VALUES),
8569 /* 7239 */ GIM_CheckNumOperands, /*MI*/2, /*Expected*/3,
8570 /* 7242 */ // MIs[2] tmp3
8571 /* 7242 */ // No operand predicates
8572 /* 7242 */ // MIs[2] tmp1
8573 /* 7242 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/2, /*OpIdx*/2, // MIs[3]
8574 /* 7246 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_ANYEXT),
8575 /* 7250 */ // MIs[3] src
8576 /* 7250 */ // No operand predicates
8577 /* 7250 */ // MIs[0] amt
8578 /* 7250 */ // No operand predicates
8579 /* 7250 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
8580 /* 7252 */ // Combiner Rule #149: redundant_aext_unmerge_sext_inreg
8581 /* 7252 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner54),
8582 /* 7255 */ // Label 341: @7255
8583 /* 7255 */ GIM_Try, /*On fail goto*//*Label 342*/ GIMT_Encode4(7295), // Rule ID 198 //
8584 /* 7260 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule148Enabled),
8585 /* 7263 */ // MIs[0] dst
8586 /* 7263 */ // No operand predicates
8587 /* 7263 */ // MIs[0] tmp4
8588 /* 7263 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8589 /* 7267 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ZEXT),
8590 /* 7271 */ // MIs[1] tmp2
8591 /* 7271 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
8592 /* 7275 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_UNMERGE_VALUES),
8593 /* 7279 */ GIM_CheckNumOperands, /*MI*/2, /*Expected*/3,
8594 /* 7282 */ // MIs[2] tmp3
8595 /* 7282 */ // No operand predicates
8596 /* 7282 */ // MIs[2] tmp1
8597 /* 7282 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/2, /*OpIdx*/2, // MIs[3]
8598 /* 7286 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_ZEXT),
8599 /* 7290 */ // MIs[3] src
8600 /* 7290 */ // No operand predicates
8601 /* 7290 */ // MIs[0] amt
8602 /* 7290 */ // No operand predicates
8603 /* 7290 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
8604 /* 7292 */ // Combiner Rule #148: redundant_zext_unmerge_sext_inreg
8605 /* 7292 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner54),
8606 /* 7295 */ // Label 342: @7295
8607 /* 7295 */ GIM_Try, /*On fail goto*//*Label 343*/ GIMT_Encode4(7306), // Rule ID 183 //
8608 /* 7300 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule133Enabled),
8609 /* 7303 */ // MIs[0] dst
8610 /* 7303 */ // No operand predicates
8611 /* 7303 */ // MIs[0] src
8612 /* 7303 */ // No operand predicates
8613 /* 7303 */ // MIs[0] sz
8614 /* 7303 */ // No operand predicates
8615 /* 7303 */ // Combiner Rule #133: sext_inreg_of_load
8616 /* 7303 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner49),
8617 /* 7306 */ // Label 343: @7306
8618 /* 7306 */ GIM_Try, /*On fail goto*//*Label 344*/ GIMT_Encode4(7317), // Rule ID 204 //
8619 /* 7311 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule154Enabled),
8620 /* 7314 */ // MIs[0] dst
8621 /* 7314 */ // No operand predicates
8622 /* 7314 */ // MIs[0] src
8623 /* 7314 */ // No operand predicates
8624 /* 7314 */ // MIs[0] imm
8625 /* 7314 */ // No operand predicates
8626 /* 7314 */ // Combiner Rule #154: sext_inreg_to_zext_inreg
8627 /* 7314 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner59),
8628 /* 7317 */ // Label 344: @7317
8629 /* 7317 */ GIM_Try, /*On fail goto*//*Label 345*/ GIMT_Encode4(7328), // Rule ID 275 //
8630 /* 7322 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule209Enabled),
8631 /* 7325 */ // MIs[0] dst
8632 /* 7325 */ // No operand predicates
8633 /* 7325 */ // MIs[0] src
8634 /* 7325 */ // No operand predicates
8635 /* 7325 */ // MIs[0] sz
8636 /* 7325 */ // No operand predicates
8637 /* 7325 */ // Combiner Rule #209: bitfield_extract_from_sext_inreg
8638 /* 7325 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner75),
8639 /* 7328 */ // Label 345: @7328
8640 /* 7328 */ GIM_Reject,
8641 /* 7329 */ // Label 33: @7329
8642 /* 7329 */ GIM_Try, /*On fail goto*//*Label 346*/ GIMT_Encode4(7346), // Rule ID 424 //
8643 /* 7334 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule294Enabled),
8644 /* 7337 */ GIM_MIFlags, /*MI*/0, GIMT_Encode4(MachineInstr::NonNeg),
8645 /* 7343 */ // MIs[0] root
8646 /* 7343 */ // No operand predicates
8647 /* 7343 */ // MIs[0] x
8648 /* 7343 */ // No operand predicates
8649 /* 7343 */ // Combiner Rule #294: nneg_zext
8650 /* 7343 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner109),
8651 /* 7346 */ // Label 346: @7346
8652 /* 7346 */ GIM_Try, /*On fail goto*//*Label 347*/ GIMT_Encode4(7367), // Rule ID 64 //
8653 /* 7351 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule60Enabled),
8654 /* 7354 */ // MIs[0] root
8655 /* 7354 */ // No operand predicates
8656 /* 7354 */ // MIs[0] select
8657 /* 7354 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8658 /* 7358 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SELECT),
8659 /* 7362 */ // MIs[1] cond
8660 /* 7362 */ // No operand predicates
8661 /* 7362 */ // MIs[1] true
8662 /* 7362 */ // No operand predicates
8663 /* 7362 */ // MIs[1] false
8664 /* 7362 */ // No operand predicates
8665 /* 7362 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8666 /* 7364 */ // Combiner Rule #60: select_of_zext
8667 /* 7364 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner20),
8668 /* 7367 */ // Label 347: @7367
8669 /* 7367 */ GIM_Try, /*On fail goto*//*Label 348*/ GIMT_Encode4(7394), // Rule ID 423 //
8670 /* 7372 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule293Enabled),
8671 /* 7375 */ // MIs[0] root
8672 /* 7375 */ // No operand predicates
8673 /* 7375 */ // MIs[0] src
8674 /* 7375 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8675 /* 7379 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_TRUNC),
8676 /* 7383 */ GIM_MIFlags, /*MI*/1, GIMT_Encode4(MachineInstr::NoUWrap),
8677 /* 7389 */ // MIs[1] x
8678 /* 7389 */ // No operand predicates
8679 /* 7389 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8680 /* 7391 */ // Combiner Rule #293: zext_trunc
8681 /* 7391 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner108),
8682 /* 7394 */ // Label 348: @7394
8683 /* 7394 */ GIM_Try, /*On fail goto*//*Label 349*/ GIMT_Encode4(7415), // Rule ID 57 //
8684 /* 7399 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule53Enabled),
8685 /* 7402 */ // MIs[0] root
8686 /* 7402 */ // No operand predicates
8687 /* 7402 */ // MIs[0] second
8688 /* 7402 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8689 /* 7406 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ANYEXT),
8690 /* 7410 */ // MIs[1] src
8691 /* 7410 */ // No operand predicates
8692 /* 7410 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8693 /* 7412 */ // Combiner Rule #53: zext_of_anyext
8694 /* 7412 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner18),
8695 /* 7415 */ // Label 349: @7415
8696 /* 7415 */ GIM_Try, /*On fail goto*//*Label 350*/ GIMT_Encode4(7436), // Rule ID 56 //
8697 /* 7420 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule52Enabled),
8698 /* 7423 */ // MIs[0] root
8699 /* 7423 */ // No operand predicates
8700 /* 7423 */ // MIs[0] second
8701 /* 7423 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8702 /* 7427 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ZEXT),
8703 /* 7431 */ // MIs[1] src
8704 /* 7431 */ // No operand predicates
8705 /* 7431 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8706 /* 7433 */ // Combiner Rule #52: zext_of_zext
8707 /* 7433 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner18),
8708 /* 7436 */ // Label 350: @7436
8709 /* 7436 */ GIM_Try, /*On fail goto*//*Label 351*/ GIMT_Encode4(7447), // Rule ID 203 //
8710 /* 7441 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule153Enabled),
8711 /* 7444 */ // MIs[0] dst
8712 /* 7444 */ // No operand predicates
8713 /* 7444 */ // MIs[0] src
8714 /* 7444 */ // No operand predicates
8715 /* 7444 */ // Combiner Rule #153: zext_trunc_fold
8716 /* 7444 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner58),
8717 /* 7447 */ // Label 351: @7447
8718 /* 7447 */ GIM_Try, /*On fail goto*//*Label 352*/ GIMT_Encode4(7458), // Rule ID 313 //
8719 /* 7452 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
8720 /* 7455 */ // MIs[0] dst
8721 /* 7455 */ // No operand predicates
8722 /* 7455 */ // MIs[0] d.src
8723 /* 7455 */ // No operand predicates
8724 /* 7455 */ // Combiner Rule #216: constant_fold_cast_op @ [d[0]]
8725 /* 7455 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner82),
8726 /* 7458 */ // Label 352: @7458
8727 /* 7458 */ GIM_Reject,
8728 /* 7459 */ // Label 34: @7459
8729 /* 7459 */ GIM_Try, /*On fail goto*//*Label 353*/ GIMT_Encode4(7537), // Rule ID 273 //
8730 /* 7464 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule207Enabled),
8731 /* 7467 */ // MIs[0] dst
8732 /* 7467 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
8733 /* 7471 */ // MIs[0] binop_dst
8734 /* 7471 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8735 /* 7475 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
8736 /* 7479 */ // MIs[1] x
8737 /* 7479 */ // No operand predicates
8738 /* 7479 */ // MIs[1] c1
8739 /* 7479 */ // No operand predicates
8740 /* 7479 */ // MIs[0] c2
8741 /* 7479 */ // No operand predicates
8742 /* 7479 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner43),
8743 /* 7483 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8744 /* 7485 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
8745 /* 7488 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
8746 /* 7491 */ // Combiner Rule #207: commute_shift_add
8747 /* 7491 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SHL),
8748 /* 7494 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
8749 /* 7499 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
8750 /* 7503 */ GIR_RootToRootCopy, /*OpIdx*/2, // c2
8751 /* 7505 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SHL),
8752 /* 7509 */ GIR_AddTempRegister, /*InsnID*/1, /*TempRegID*/1, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
8753 /* 7514 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/2, // c1
8754 /* 7518 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/2, // c2
8755 /* 7522 */ GIR_BuildMI, /*InsnID*/2, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ADD),
8756 /* 7526 */ GIR_Copy, /*NewInsnID*/2, /*OldInsnID*/0, /*OpIdx*/0, // dst
8757 /* 7530 */ GIR_AddSimpleTempRegister, /*InsnID*/2, /*TempRegID*/0,
8758 /* 7533 */ GIR_AddSimpleTempRegister, /*InsnID*/2, /*TempRegID*/1,
8759 /* 7536 */ GIR_EraseRootFromParent_Done,
8760 /* 7537 */ // Label 353: @7537
8761 /* 7537 */ GIM_Try, /*On fail goto*//*Label 354*/ GIMT_Encode4(7615), // Rule ID 274 //
8762 /* 7542 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule208Enabled),
8763 /* 7545 */ // MIs[0] dst
8764 /* 7545 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
8765 /* 7549 */ // MIs[0] binop_dst
8766 /* 7549 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8767 /* 7553 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_OR),
8768 /* 7557 */ // MIs[1] x
8769 /* 7557 */ // No operand predicates
8770 /* 7557 */ // MIs[1] c1
8771 /* 7557 */ // No operand predicates
8772 /* 7557 */ // MIs[0] c2
8773 /* 7557 */ // No operand predicates
8774 /* 7557 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner43),
8775 /* 7561 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8776 /* 7563 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
8777 /* 7566 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
8778 /* 7569 */ // Combiner Rule #208: commute_shift_or
8779 /* 7569 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SHL),
8780 /* 7572 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
8781 /* 7577 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
8782 /* 7581 */ GIR_RootToRootCopy, /*OpIdx*/2, // c2
8783 /* 7583 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SHL),
8784 /* 7587 */ GIR_AddTempRegister, /*InsnID*/1, /*TempRegID*/1, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
8785 /* 7592 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/2, // c1
8786 /* 7596 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/2, // c2
8787 /* 7600 */ GIR_BuildMI, /*InsnID*/2, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR),
8788 /* 7604 */ GIR_Copy, /*NewInsnID*/2, /*OldInsnID*/0, /*OpIdx*/0, // dst
8789 /* 7608 */ GIR_AddSimpleTempRegister, /*InsnID*/2, /*TempRegID*/0,
8790 /* 7611 */ GIR_AddSimpleTempRegister, /*InsnID*/2, /*TempRegID*/1,
8791 /* 7614 */ GIR_EraseRootFromParent_Done,
8792 /* 7615 */ // Label 354: @7615
8793 /* 7615 */ GIM_Try, /*On fail goto*//*Label 355*/ GIMT_Encode4(7638), // Rule ID 133 //
8794 /* 7620 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule96Enabled),
8795 /* 7623 */ // MIs[0] dst
8796 /* 7623 */ // No operand predicates
8797 /* 7623 */ // MIs[0] zero
8798 /* 7623 */ // No operand predicates
8799 /* 7623 */ // MIs[0] rhs
8800 /* 7623 */ // No operand predicates
8801 /* 7623 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner13),
8802 /* 7627 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8803 /* 7632 */ // Combiner Rule #96: binop_left_to_zero @ [__binop_left_to_zero_match_0[0]]
8804 /* 7632 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8805 /* 7637 */ GIR_EraseRootFromParent_Done,
8806 /* 7638 */ // Label 355: @7638
8807 /* 7638 */ GIM_Try, /*On fail goto*//*Label 356*/ GIMT_Encode4(7673), // Rule ID 48 //
8808 /* 7643 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule44Enabled),
8809 /* 7646 */ GIM_MIFlags, /*MI*/0, GIMT_Encode4(MachineInstr::NoSWrap),
8810 /* 7652 */ // MIs[0] root
8811 /* 7652 */ // No operand predicates
8812 /* 7652 */ // MIs[0] left
8813 /* 7652 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8814 /* 7656 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_VSCALE),
8815 /* 7660 */ // MIs[1] imm
8816 /* 7660 */ // No operand predicates
8817 /* 7660 */ // MIs[0] x
8818 /* 7660 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
8819 /* 7664 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
8820 /* 7668 */ // MIs[2] imm1
8821 /* 7668 */ // No operand predicates
8822 /* 7668 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
8823 /* 7670 */ // Combiner Rule #44: shl_of_vscale
8824 /* 7670 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner14),
8825 /* 7673 */ // Label 356: @7673
8826 /* 7673 */ GIM_Try, /*On fail goto*//*Label 357*/ GIMT_Encode4(7694), // Rule ID 91 //
8827 /* 7678 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule80Enabled),
8828 /* 7681 */ // MIs[0] dst
8829 /* 7681 */ // No operand predicates
8830 /* 7681 */ // MIs[0] __binop_left_undef_to_zero_match_0.x
8831 /* 7681 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8832 /* 7685 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
8833 /* 7689 */ // MIs[0] __binop_left_undef_to_zero_match_0.y
8834 /* 7689 */ // No operand predicates
8835 /* 7689 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8836 /* 7691 */ // Combiner Rule #80: binop_left_undef_to_zero @ [__binop_left_undef_to_zero_match_0[0]]
8837 /* 7691 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner31),
8838 /* 7694 */ // Label 357: @7694
8839 /* 7694 */ GIM_Try, /*On fail goto*//*Label 358*/ GIMT_Encode4(7718), // Rule ID 94 //
8840 /* 7699 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule81Enabled),
8841 /* 7702 */ // MIs[0] dst
8842 /* 7702 */ // No operand predicates
8843 /* 7702 */ // MIs[0] __binop_right_undef_to_undef_match_0.x
8844 /* 7702 */ // No operand predicates
8845 /* 7702 */ // MIs[0] __binop_right_undef_to_undef_match_0.y
8846 /* 7702 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
8847 /* 7706 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
8848 /* 7710 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8849 /* 7712 */ // Combiner Rule #81: binop_right_undef_to_undef @ [__binop_right_undef_to_undef_match_0[0]]
8850 /* 7712 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
8851 /* 7715 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
8852 /* 7717 */ GIR_EraseRootFromParent_Done,
8853 /* 7718 */ // Label 358: @7718
8854 /* 7718 */ GIM_Try, /*On fail goto*//*Label 359*/ GIMT_Encode4(7741), // Rule ID 123 //
8855 /* 7723 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
8856 /* 7726 */ // MIs[0] dst
8857 /* 7726 */ // No operand predicates
8858 /* 7726 */ // MIs[0] lhs
8859 /* 7726 */ // No operand predicates
8860 /* 7726 */ // MIs[0] Operand 2
8861 /* 7726 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
8862 /* 7730 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8863 /* 7735 */ // Combiner Rule #93: right_identity_zero @ [__right_identity_zero_match_0[4]]
8864 /* 7735 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8865 /* 7740 */ GIR_EraseRootFromParent_Done,
8866 /* 7741 */ // Label 359: @7741
8867 /* 7741 */ GIM_Try, /*On fail goto*//*Label 360*/ GIMT_Encode4(7752), // Rule ID 168 //
8868 /* 7746 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule120Enabled),
8869 /* 7749 */ // MIs[0] root
8870 /* 7749 */ // No operand predicates
8871 /* 7749 */ // MIs[0] mi.shifted
8872 /* 7749 */ // No operand predicates
8873 /* 7749 */ // MIs[0] mi.amt
8874 /* 7749 */ // No operand predicates
8875 /* 7749 */ // Combiner Rule #120: shifts_too_big @ [mi[0]]
8876 /* 7749 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner39),
8877 /* 7752 */ // Label 360: @7752
8878 /* 7752 */ GIM_Try, /*On fail goto*//*Label 361*/ GIMT_Encode4(7763), // Rule ID 184 //
8879 /* 7757 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule134Enabled),
8880 /* 7760 */ // MIs[0] dst
8881 /* 7760 */ // No operand predicates
8882 /* 7760 */ // MIs[0] src0
8883 /* 7760 */ // No operand predicates
8884 /* 7760 */ // MIs[0] src1
8885 /* 7760 */ // No operand predicates
8886 /* 7760 */ // Combiner Rule #134: reduce_shl_of_extend
8887 /* 7760 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner50),
8888 /* 7763 */ // Label 361: @7763
8889 /* 7763 */ GIM_Try, /*On fail goto*//*Label 362*/ GIMT_Encode4(7774), // Rule ID 247 //
8890 /* 7768 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule193Enabled),
8891 /* 7771 */ // MIs[0] d
8892 /* 7771 */ // No operand predicates
8893 /* 7771 */ // MIs[0] mi.base
8894 /* 7771 */ // No operand predicates
8895 /* 7771 */ // MIs[0] mi.amt
8896 /* 7771 */ // No operand predicates
8897 /* 7771 */ // Combiner Rule #193: shift_immed_chain @ [mi[0]]
8898 /* 7771 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner69),
8899 /* 7774 */ // Label 362: @7774
8900 /* 7774 */ GIM_Try, /*On fail goto*//*Label 363*/ GIMT_Encode4(7785), // Rule ID 252 //
8901 /* 7779 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
8902 /* 7782 */ // MIs[0] d
8903 /* 7782 */ // No operand predicates
8904 /* 7782 */ // MIs[0] mi.base
8905 /* 7782 */ // No operand predicates
8906 /* 7782 */ // MIs[0] mi.amt
8907 /* 7782 */ // No operand predicates
8908 /* 7782 */ // Combiner Rule #194: shift_of_shifted_logic_chain @ [mi[0]]
8909 /* 7782 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner70),
8910 /* 7785 */ // Label 363: @7785
8911 /* 7785 */ GIM_Try, /*On fail goto*//*Label 364*/ GIMT_Encode4(7796), // Rule ID 288 //
8912 /* 7790 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule213Enabled),
8913 /* 7793 */ // MIs[0] d
8914 /* 7793 */ // No operand predicates
8915 /* 7793 */ // MIs[0] mi.src0
8916 /* 7793 */ // No operand predicates
8917 /* 7793 */ // MIs[0] mi.src1
8918 /* 7793 */ // No operand predicates
8919 /* 7793 */ // Combiner Rule #213: constant_fold_binop @ [mi[7]]
8920 /* 7793 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner79),
8921 /* 7796 */ // Label 364: @7796
8922 /* 7796 */ GIM_Try, /*On fail goto*//*Label 365*/ GIMT_Encode4(7807), // Rule ID 354 //
8923 /* 7801 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule236Enabled),
8924 /* 7804 */ // MIs[0] root
8925 /* 7804 */ // No operand predicates
8926 /* 7804 */ // MIs[0] mi.x
8927 /* 7804 */ // No operand predicates
8928 /* 7804 */ // MIs[0] mi.y
8929 /* 7804 */ // No operand predicates
8930 /* 7804 */ // Combiner Rule #236: fold_binop_into_select_a @ [mi[12]]
8931 /* 7804 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
8932 /* 7807 */ // Label 365: @7807
8933 /* 7807 */ GIM_Reject,
8934 /* 7808 */ // Label 35: @7808
8935 /* 7808 */ GIM_Try, /*On fail goto*//*Label 366*/ GIMT_Encode4(7897), // Rule ID 470 //
8936 /* 7813 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule337Enabled),
8937 /* 7816 */ // MIs[0] dst
8938 /* 7816 */ // No operand predicates
8939 /* 7816 */ // MIs[0] sum
8940 /* 7816 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8941 /* 7820 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
8942 /* 7824 */ // MIs[1] inner
8943 /* 7824 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
8944 /* 7828 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ADD),
8945 /* 7832 */ // MIs[2] ext1
8946 /* 7832 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/2, /*OpIdx*/1, // MIs[3]
8947 /* 7836 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_ZEXT),
8948 /* 7840 */ // MIs[3] x
8949 /* 7840 */ GIM_RecordRegType, /*MI*/3, /*Op*/1, /*TempTypeIdx*/255,
8950 /* 7844 */ // MIs[2] ext2
8951 /* 7844 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/4, /*MI*/2, /*OpIdx*/2, // MIs[4]
8952 /* 7848 */ GIM_CheckOpcode, /*MI*/4, GIMT_Encode2(TargetOpcode::G_ZEXT),
8953 /* 7852 */ // MIs[4] y
8954 /* 7852 */ // No operand predicates
8955 /* 7852 */ // MIs[1] Operand 2
8956 /* 7852 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/2, 1,
8957 /* 7856 */ // MIs[0] Operand 2
8958 /* 7856 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 1,
8959 /* 7860 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner65),
8960 /* 7864 */ GIM_CheckIsSafeToFold, /*NumInsns*/4,
8961 /* 7866 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
8962 /* 7869 */ // Combiner Rule #337: avgceil_u_match
8963 /* 7869 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UAVGCEIL),
8964 /* 7872 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
8965 /* 7877 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/3, /*OpIdx*/1, // x
8966 /* 7881 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/4, /*OpIdx*/1, // y
8967 /* 7885 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ZEXT),
8968 /* 7889 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
8969 /* 7893 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
8970 /* 7896 */ GIR_EraseRootFromParent_Done,
8971 /* 7897 */ // Label 366: @7897
8972 /* 7897 */ GIM_Try, /*On fail goto*//*Label 367*/ GIMT_Encode4(7974), // Rule ID 468 //
8973 /* 7902 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule335Enabled),
8974 /* 7905 */ // MIs[0] dst
8975 /* 7905 */ // No operand predicates
8976 /* 7905 */ // MIs[0] sum
8977 /* 7905 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8978 /* 7909 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
8979 /* 7913 */ // MIs[1] ext1
8980 /* 7913 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
8981 /* 7917 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ZEXT),
8982 /* 7921 */ // MIs[2] x
8983 /* 7921 */ GIM_RecordRegType, /*MI*/2, /*Op*/1, /*TempTypeIdx*/255,
8984 /* 7925 */ // MIs[1] ext2
8985 /* 7925 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/1, /*OpIdx*/2, // MIs[3]
8986 /* 7929 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_ZEXT),
8987 /* 7933 */ // MIs[3] y
8988 /* 7933 */ // No operand predicates
8989 /* 7933 */ // MIs[0] Operand 2
8990 /* 7933 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 1,
8991 /* 7937 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner63),
8992 /* 7941 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
8993 /* 7943 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
8994 /* 7946 */ // Combiner Rule #335: avgfloor_u_match
8995 /* 7946 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UAVGFLOOR),
8996 /* 7949 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
8997 /* 7954 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // x
8998 /* 7958 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/3, /*OpIdx*/1, // y
8999 /* 7962 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ZEXT),
9000 /* 7966 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
9001 /* 7970 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
9002 /* 7973 */ GIR_EraseRootFromParent_Done,
9003 /* 7974 */ // Label 367: @7974
9004 /* 7974 */ GIM_Try, /*On fail goto*//*Label 368*/ GIMT_Encode4(7997), // Rule ID 134 //
9005 /* 7979 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule96Enabled),
9006 /* 7982 */ // MIs[0] dst
9007 /* 7982 */ // No operand predicates
9008 /* 7982 */ // MIs[0] zero
9009 /* 7982 */ // No operand predicates
9010 /* 7982 */ // MIs[0] rhs
9011 /* 7982 */ // No operand predicates
9012 /* 7982 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner13),
9013 /* 7986 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9014 /* 7991 */ // Combiner Rule #96: binop_left_to_zero @ [__binop_left_to_zero_match_0[1]]
9015 /* 7991 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9016 /* 7996 */ GIR_EraseRootFromParent_Done,
9017 /* 7997 */ // Label 368: @7997
9018 /* 7997 */ GIM_Try, /*On fail goto*//*Label 369*/ GIMT_Encode4(8026), // Rule ID 451 //
9019 /* 8002 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule321Enabled),
9020 /* 8005 */ // MIs[0] dst
9021 /* 8005 */ // No operand predicates
9022 /* 8005 */ // MIs[0] d2
9023 /* 8005 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9024 /* 8009 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_TRUNC),
9025 /* 8013 */ // MIs[1] d1
9026 /* 8013 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
9027 /* 8017 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_LSHR),
9028 /* 8021 */ // MIs[2] x
9029 /* 8021 */ // No operand predicates
9030 /* 8021 */ // MIs[2] y
9031 /* 8021 */ // No operand predicates
9032 /* 8021 */ // MIs[0] z
9033 /* 8021 */ // No operand predicates
9034 /* 8021 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
9035 /* 8023 */ // Combiner Rule #321: lshr_of_trunc_of_lshr
9036 /* 8023 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner126),
9037 /* 8026 */ // Label 369: @8026
9038 /* 8026 */ GIM_Try, /*On fail goto*//*Label 370*/ GIMT_Encode4(8050), // Rule ID 96 //
9039 /* 8031 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule81Enabled),
9040 /* 8034 */ // MIs[0] dst
9041 /* 8034 */ // No operand predicates
9042 /* 8034 */ // MIs[0] __binop_right_undef_to_undef_match_0.x
9043 /* 8034 */ // No operand predicates
9044 /* 8034 */ // MIs[0] __binop_right_undef_to_undef_match_0.y
9045 /* 8034 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
9046 /* 8038 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
9047 /* 8042 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9048 /* 8044 */ // Combiner Rule #81: binop_right_undef_to_undef @ [__binop_right_undef_to_undef_match_0[2]]
9049 /* 8044 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
9050 /* 8047 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
9051 /* 8049 */ GIR_EraseRootFromParent_Done,
9052 /* 8050 */ // Label 370: @8050
9053 /* 8050 */ GIM_Try, /*On fail goto*//*Label 371*/ GIMT_Encode4(8073), // Rule ID 125 //
9054 /* 8055 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
9055 /* 8058 */ // MIs[0] dst
9056 /* 8058 */ // No operand predicates
9057 /* 8058 */ // MIs[0] lhs
9058 /* 8058 */ // No operand predicates
9059 /* 8058 */ // MIs[0] Operand 2
9060 /* 8058 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
9061 /* 8062 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9062 /* 8067 */ // Combiner Rule #93: right_identity_zero @ [__right_identity_zero_match_0[6]]
9063 /* 8067 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9064 /* 8072 */ GIR_EraseRootFromParent_Done,
9065 /* 8073 */ // Label 371: @8073
9066 /* 8073 */ GIM_Try, /*On fail goto*//*Label 372*/ GIMT_Encode4(8084), // Rule ID 170 //
9067 /* 8078 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule120Enabled),
9068 /* 8081 */ // MIs[0] root
9069 /* 8081 */ // No operand predicates
9070 /* 8081 */ // MIs[0] mi.shifted
9071 /* 8081 */ // No operand predicates
9072 /* 8081 */ // MIs[0] mi.amt
9073 /* 8081 */ // No operand predicates
9074 /* 8081 */ // Combiner Rule #120: shifts_too_big @ [mi[2]]
9075 /* 8081 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner39),
9076 /* 8084 */ // Label 372: @8084
9077 /* 8084 */ GIM_Try, /*On fail goto*//*Label 373*/ GIMT_Encode4(8095), // Rule ID 249 //
9078 /* 8089 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule193Enabled),
9079 /* 8092 */ // MIs[0] d
9080 /* 8092 */ // No operand predicates
9081 /* 8092 */ // MIs[0] mi.base
9082 /* 8092 */ // No operand predicates
9083 /* 8092 */ // MIs[0] mi.amt
9084 /* 8092 */ // No operand predicates
9085 /* 8092 */ // Combiner Rule #193: shift_immed_chain @ [mi[2]]
9086 /* 8092 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner69),
9087 /* 8095 */ // Label 373: @8095
9088 /* 8095 */ GIM_Try, /*On fail goto*//*Label 374*/ GIMT_Encode4(8106), // Rule ID 254 //
9089 /* 8100 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
9090 /* 8103 */ // MIs[0] d
9091 /* 8103 */ // No operand predicates
9092 /* 8103 */ // MIs[0] mi.base
9093 /* 8103 */ // No operand predicates
9094 /* 8103 */ // MIs[0] mi.amt
9095 /* 8103 */ // No operand predicates
9096 /* 8103 */ // Combiner Rule #194: shift_of_shifted_logic_chain @ [mi[2]]
9097 /* 8103 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner70),
9098 /* 8106 */ // Label 374: @8106
9099 /* 8106 */ GIM_Try, /*On fail goto*//*Label 375*/ GIMT_Encode4(8117), // Rule ID 278 //
9100 /* 8111 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule211Enabled),
9101 /* 8114 */ // MIs[0] dst
9102 /* 8114 */ // No operand predicates
9103 /* 8114 */ // MIs[0] root.src
9104 /* 8114 */ // No operand predicates
9105 /* 8114 */ // MIs[0] root.amt
9106 /* 8114 */ // No operand predicates
9107 /* 8114 */ // Combiner Rule #211: bitfield_extract_from_shr @ [root[1]]
9108 /* 8114 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner77),
9109 /* 8117 */ // Label 375: @8117
9110 /* 8117 */ GIM_Try, /*On fail goto*//*Label 376*/ GIMT_Encode4(8128), // Rule ID 280 //
9111 /* 8122 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule212Enabled),
9112 /* 8125 */ // MIs[0] dst
9113 /* 8125 */ // No operand predicates
9114 /* 8125 */ // MIs[0] root.src
9115 /* 8125 */ // No operand predicates
9116 /* 8125 */ // MIs[0] root.amt
9117 /* 8125 */ // No operand predicates
9118 /* 8125 */ // Combiner Rule #212: bitfield_extract_from_shr_and @ [root[1]]
9119 /* 8125 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner78),
9120 /* 8128 */ // Label 376: @8128
9121 /* 8128 */ GIM_Try, /*On fail goto*//*Label 377*/ GIMT_Encode4(8139), // Rule ID 285 //
9122 /* 8133 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule213Enabled),
9123 /* 8136 */ // MIs[0] d
9124 /* 8136 */ // No operand predicates
9125 /* 8136 */ // MIs[0] mi.src0
9126 /* 8136 */ // No operand predicates
9127 /* 8136 */ // MIs[0] mi.src1
9128 /* 8136 */ // No operand predicates
9129 /* 8136 */ // Combiner Rule #213: constant_fold_binop @ [mi[4]]
9130 /* 8136 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner79),
9131 /* 8139 */ // Label 377: @8139
9132 /* 8139 */ GIM_Try, /*On fail goto*//*Label 378*/ GIMT_Encode4(8150), // Rule ID 352 //
9133 /* 8144 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule236Enabled),
9134 /* 8147 */ // MIs[0] root
9135 /* 8147 */ // No operand predicates
9136 /* 8147 */ // MIs[0] mi.x
9137 /* 8147 */ // No operand predicates
9138 /* 8147 */ // MIs[0] mi.y
9139 /* 8147 */ // No operand predicates
9140 /* 8147 */ // Combiner Rule #236: fold_binop_into_select_a @ [mi[10]]
9141 /* 8147 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
9142 /* 8150 */ // Label 378: @8150
9143 /* 8150 */ GIM_Reject,
9144 /* 8151 */ // Label 36: @8151
9145 /* 8151 */ GIM_Try, /*On fail goto*//*Label 379*/ GIMT_Encode4(8240), // Rule ID 471 //
9146 /* 8156 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule338Enabled),
9147 /* 8159 */ // MIs[0] dst
9148 /* 8159 */ // No operand predicates
9149 /* 8159 */ // MIs[0] sum
9150 /* 8159 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9151 /* 8163 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
9152 /* 8167 */ // MIs[1] inner
9153 /* 8167 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
9154 /* 8171 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ADD),
9155 /* 8175 */ // MIs[2] ext1
9156 /* 8175 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/2, /*OpIdx*/1, // MIs[3]
9157 /* 8179 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_SEXT),
9158 /* 8183 */ // MIs[3] x
9159 /* 8183 */ GIM_RecordRegType, /*MI*/3, /*Op*/1, /*TempTypeIdx*/255,
9160 /* 8187 */ // MIs[2] ext2
9161 /* 8187 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/4, /*MI*/2, /*OpIdx*/2, // MIs[4]
9162 /* 8191 */ GIM_CheckOpcode, /*MI*/4, GIMT_Encode2(TargetOpcode::G_SEXT),
9163 /* 8195 */ // MIs[4] y
9164 /* 8195 */ // No operand predicates
9165 /* 8195 */ // MIs[1] Operand 2
9166 /* 8195 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/2, 1,
9167 /* 8199 */ // MIs[0] Operand 2
9168 /* 8199 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 1,
9169 /* 8203 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner66),
9170 /* 8207 */ GIM_CheckIsSafeToFold, /*NumInsns*/4,
9171 /* 8209 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
9172 /* 8212 */ // Combiner Rule #338: avgceil_s_match
9173 /* 8212 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SAVGCEIL),
9174 /* 8215 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
9175 /* 8220 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/3, /*OpIdx*/1, // x
9176 /* 8224 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/4, /*OpIdx*/1, // y
9177 /* 8228 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SEXT),
9178 /* 8232 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
9179 /* 8236 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
9180 /* 8239 */ GIR_EraseRootFromParent_Done,
9181 /* 8240 */ // Label 379: @8240
9182 /* 8240 */ GIM_Try, /*On fail goto*//*Label 380*/ GIMT_Encode4(8317), // Rule ID 469 //
9183 /* 8245 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule336Enabled),
9184 /* 8248 */ // MIs[0] dst
9185 /* 8248 */ // No operand predicates
9186 /* 8248 */ // MIs[0] sum
9187 /* 8248 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9188 /* 8252 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
9189 /* 8256 */ // MIs[1] ext1
9190 /* 8256 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
9191 /* 8260 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SEXT),
9192 /* 8264 */ // MIs[2] x
9193 /* 8264 */ GIM_RecordRegType, /*MI*/2, /*Op*/1, /*TempTypeIdx*/255,
9194 /* 8268 */ // MIs[1] ext2
9195 /* 8268 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/1, /*OpIdx*/2, // MIs[3]
9196 /* 8272 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_SEXT),
9197 /* 8276 */ // MIs[3] y
9198 /* 8276 */ // No operand predicates
9199 /* 8276 */ // MIs[0] Operand 2
9200 /* 8276 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 1,
9201 /* 8280 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner64),
9202 /* 8284 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
9203 /* 8286 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
9204 /* 8289 */ // Combiner Rule #336: avgfloor_s_match
9205 /* 8289 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SAVGFLOOR),
9206 /* 8292 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
9207 /* 8297 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // x
9208 /* 8301 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/3, /*OpIdx*/1, // y
9209 /* 8305 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SEXT),
9210 /* 8309 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
9211 /* 8313 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
9212 /* 8316 */ GIR_EraseRootFromParent_Done,
9213 /* 8317 */ // Label 380: @8317
9214 /* 8317 */ GIM_Try, /*On fail goto*//*Label 381*/ GIMT_Encode4(8340), // Rule ID 135 //
9215 /* 8322 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule96Enabled),
9216 /* 8325 */ // MIs[0] dst
9217 /* 8325 */ // No operand predicates
9218 /* 8325 */ // MIs[0] zero
9219 /* 8325 */ // No operand predicates
9220 /* 8325 */ // MIs[0] rhs
9221 /* 8325 */ // No operand predicates
9222 /* 8325 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner13),
9223 /* 8329 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9224 /* 8334 */ // Combiner Rule #96: binop_left_to_zero @ [__binop_left_to_zero_match_0[2]]
9225 /* 8334 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9226 /* 8339 */ GIR_EraseRootFromParent_Done,
9227 /* 8340 */ // Label 381: @8340
9228 /* 8340 */ GIM_Try, /*On fail goto*//*Label 382*/ GIMT_Encode4(8364), // Rule ID 95 //
9229 /* 8345 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule81Enabled),
9230 /* 8348 */ // MIs[0] dst
9231 /* 8348 */ // No operand predicates
9232 /* 8348 */ // MIs[0] __binop_right_undef_to_undef_match_0.x
9233 /* 8348 */ // No operand predicates
9234 /* 8348 */ // MIs[0] __binop_right_undef_to_undef_match_0.y
9235 /* 8348 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
9236 /* 8352 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
9237 /* 8356 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9238 /* 8358 */ // Combiner Rule #81: binop_right_undef_to_undef @ [__binop_right_undef_to_undef_match_0[1]]
9239 /* 8358 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
9240 /* 8361 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
9241 /* 8363 */ GIR_EraseRootFromParent_Done,
9242 /* 8364 */ // Label 382: @8364
9243 /* 8364 */ GIM_Try, /*On fail goto*//*Label 383*/ GIMT_Encode4(8387), // Rule ID 124 //
9244 /* 8369 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
9245 /* 8372 */ // MIs[0] dst
9246 /* 8372 */ // No operand predicates
9247 /* 8372 */ // MIs[0] lhs
9248 /* 8372 */ // No operand predicates
9249 /* 8372 */ // MIs[0] Operand 2
9250 /* 8372 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
9251 /* 8376 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9252 /* 8381 */ // Combiner Rule #93: right_identity_zero @ [__right_identity_zero_match_0[5]]
9253 /* 8381 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9254 /* 8386 */ GIR_EraseRootFromParent_Done,
9255 /* 8387 */ // Label 383: @8387
9256 /* 8387 */ GIM_Try, /*On fail goto*//*Label 384*/ GIMT_Encode4(8398), // Rule ID 169 //
9257 /* 8392 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule120Enabled),
9258 /* 8395 */ // MIs[0] root
9259 /* 8395 */ // No operand predicates
9260 /* 8395 */ // MIs[0] mi.shifted
9261 /* 8395 */ // No operand predicates
9262 /* 8395 */ // MIs[0] mi.amt
9263 /* 8395 */ // No operand predicates
9264 /* 8395 */ // Combiner Rule #120: shifts_too_big @ [mi[1]]
9265 /* 8395 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner39),
9266 /* 8398 */ // Label 384: @8398
9267 /* 8398 */ GIM_Try, /*On fail goto*//*Label 385*/ GIMT_Encode4(8409), // Rule ID 181 //
9268 /* 8403 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule131Enabled),
9269 /* 8406 */ // MIs[0] dst
9270 /* 8406 */ // No operand predicates
9271 /* 8406 */ // MIs[0] src1
9272 /* 8406 */ // No operand predicates
9273 /* 8406 */ // MIs[0] src2
9274 /* 8406 */ // No operand predicates
9275 /* 8406 */ // Combiner Rule #131: shl_ashr_to_sext_inreg
9276 /* 8406 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner48),
9277 /* 8409 */ // Label 385: @8409
9278 /* 8409 */ GIM_Try, /*On fail goto*//*Label 386*/ GIMT_Encode4(8420), // Rule ID 248 //
9279 /* 8414 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule193Enabled),
9280 /* 8417 */ // MIs[0] d
9281 /* 8417 */ // No operand predicates
9282 /* 8417 */ // MIs[0] mi.base
9283 /* 8417 */ // No operand predicates
9284 /* 8417 */ // MIs[0] mi.amt
9285 /* 8417 */ // No operand predicates
9286 /* 8417 */ // Combiner Rule #193: shift_immed_chain @ [mi[1]]
9287 /* 8417 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner69),
9288 /* 8420 */ // Label 386: @8420
9289 /* 8420 */ GIM_Try, /*On fail goto*//*Label 387*/ GIMT_Encode4(8431), // Rule ID 253 //
9290 /* 8425 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
9291 /* 8428 */ // MIs[0] d
9292 /* 8428 */ // No operand predicates
9293 /* 8428 */ // MIs[0] mi.base
9294 /* 8428 */ // No operand predicates
9295 /* 8428 */ // MIs[0] mi.amt
9296 /* 8428 */ // No operand predicates
9297 /* 8428 */ // Combiner Rule #194: shift_of_shifted_logic_chain @ [mi[1]]
9298 /* 8428 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner70),
9299 /* 8431 */ // Label 387: @8431
9300 /* 8431 */ GIM_Try, /*On fail goto*//*Label 388*/ GIMT_Encode4(8442), // Rule ID 277 //
9301 /* 8436 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule211Enabled),
9302 /* 8439 */ // MIs[0] dst
9303 /* 8439 */ // No operand predicates
9304 /* 8439 */ // MIs[0] root.src
9305 /* 8439 */ // No operand predicates
9306 /* 8439 */ // MIs[0] root.amt
9307 /* 8439 */ // No operand predicates
9308 /* 8439 */ // Combiner Rule #211: bitfield_extract_from_shr @ [root[0]]
9309 /* 8439 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner77),
9310 /* 8442 */ // Label 388: @8442
9311 /* 8442 */ GIM_Try, /*On fail goto*//*Label 389*/ GIMT_Encode4(8453), // Rule ID 279 //
9312 /* 8447 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule212Enabled),
9313 /* 8450 */ // MIs[0] dst
9314 /* 8450 */ // No operand predicates
9315 /* 8450 */ // MIs[0] root.src
9316 /* 8450 */ // No operand predicates
9317 /* 8450 */ // MIs[0] root.amt
9318 /* 8450 */ // No operand predicates
9319 /* 8450 */ // Combiner Rule #212: bitfield_extract_from_shr_and @ [root[0]]
9320 /* 8450 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner78),
9321 /* 8453 */ // Label 389: @8453
9322 /* 8453 */ GIM_Try, /*On fail goto*//*Label 390*/ GIMT_Encode4(8464), // Rule ID 284 //
9323 /* 8458 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule213Enabled),
9324 /* 8461 */ // MIs[0] d
9325 /* 8461 */ // No operand predicates
9326 /* 8461 */ // MIs[0] mi.src0
9327 /* 8461 */ // No operand predicates
9328 /* 8461 */ // MIs[0] mi.src1
9329 /* 8461 */ // No operand predicates
9330 /* 8461 */ // Combiner Rule #213: constant_fold_binop @ [mi[3]]
9331 /* 8461 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner79),
9332 /* 8464 */ // Label 390: @8464
9333 /* 8464 */ GIM_Try, /*On fail goto*//*Label 391*/ GIMT_Encode4(8475), // Rule ID 353 //
9334 /* 8469 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule236Enabled),
9335 /* 8472 */ // MIs[0] root
9336 /* 8472 */ // No operand predicates
9337 /* 8472 */ // MIs[0] mi.x
9338 /* 8472 */ // No operand predicates
9339 /* 8472 */ // MIs[0] mi.y
9340 /* 8472 */ // No operand predicates
9341 /* 8472 */ // Combiner Rule #236: fold_binop_into_select_a @ [mi[11]]
9342 /* 8472 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
9343 /* 8475 */ // Label 391: @8475
9344 /* 8475 */ GIM_Reject,
9345 /* 8476 */ // Label 37: @8476
9346 /* 8476 */ GIM_Try, /*On fail goto*//*Label 392*/ GIMT_Encode4(8503), // Rule ID 261 //
9347 /* 8481 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule198Enabled),
9348 /* 8484 */ // MIs[0] dst
9349 /* 8484 */ // No operand predicates
9350 /* 8484 */ // MIs[0] x
9351 /* 8484 */ // No operand predicates
9352 /* 8484 */ // MIs[0] x
9353 /* 8484 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
9354 /* 8489 */ // MIs[0] amt
9355 /* 8489 */ // No operand predicates
9356 /* 8489 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner39),
9357 /* 8493 */ // Combiner Rule #198: funnel_shift_to_rotate_left
9358 /* 8493 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ROTL),
9359 /* 8496 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
9360 /* 8498 */ GIR_RootToRootCopy, /*OpIdx*/1, // x
9361 /* 8500 */ GIR_RootToRootCopy, /*OpIdx*/3, // amt
9362 /* 8502 */ GIR_EraseRootFromParent_Done,
9363 /* 8503 */ // Label 392: @8503
9364 /* 8503 */ GIM_Try, /*On fail goto*//*Label 393*/ GIMT_Encode4(8523), // Rule ID 264 //
9365 /* 8508 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule201Enabled),
9366 /* 8511 */ // MIs[0] x
9367 /* 8511 */ // No operand predicates
9368 /* 8511 */ // MIs[0] y
9369 /* 8511 */ // No operand predicates
9370 /* 8511 */ // MIs[0] z
9371 /* 8511 */ // No operand predicates
9372 /* 8511 */ // MIs[0] Operand 3
9373 /* 8511 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/3, 0,
9374 /* 8515 */ // Combiner Rule #201: funnel_shift_left_zero
9375 /* 8515 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::COPY),
9376 /* 8518 */ GIR_RootToRootCopy, /*OpIdx*/0, // x
9377 /* 8520 */ GIR_RootToRootCopy, /*OpIdx*/1, // y
9378 /* 8522 */ GIR_EraseRootFromParent_Done,
9379 /* 8523 */ // Label 393: @8523
9380 /* 8523 */ GIM_Try, /*On fail goto*//*Label 394*/ GIMT_Encode4(8534), // Rule ID 265 //
9381 /* 8528 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule202Enabled),
9382 /* 8531 */ // MIs[0] dst
9383 /* 8531 */ // No operand predicates
9384 /* 8531 */ // MIs[0] root.x
9385 /* 8531 */ // No operand predicates
9386 /* 8531 */ // MIs[0] root.y
9387 /* 8531 */ // No operand predicates
9388 /* 8531 */ // MIs[0] root.amt
9389 /* 8531 */ // No operand predicates
9390 /* 8531 */ // Combiner Rule #202: funnel_shift_overshift @ [root[0]]
9391 /* 8531 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner74),
9392 /* 8534 */ // Label 394: @8534
9393 /* 8534 */ GIM_Reject,
9394 /* 8535 */ // Label 38: @8535
9395 /* 8535 */ GIM_Try, /*On fail goto*//*Label 395*/ GIMT_Encode4(8562), // Rule ID 262 //
9396 /* 8540 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule199Enabled),
9397 /* 8543 */ // MIs[0] dst
9398 /* 8543 */ // No operand predicates
9399 /* 8543 */ // MIs[0] x
9400 /* 8543 */ // No operand predicates
9401 /* 8543 */ // MIs[0] x
9402 /* 8543 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
9403 /* 8548 */ // MIs[0] amt
9404 /* 8548 */ // No operand predicates
9405 /* 8548 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner40),
9406 /* 8552 */ // Combiner Rule #199: funnel_shift_to_rotate_right
9407 /* 8552 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ROTR),
9408 /* 8555 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
9409 /* 8557 */ GIR_RootToRootCopy, /*OpIdx*/1, // x
9410 /* 8559 */ GIR_RootToRootCopy, /*OpIdx*/3, // amt
9411 /* 8561 */ GIR_EraseRootFromParent_Done,
9412 /* 8562 */ // Label 395: @8562
9413 /* 8562 */ GIM_Try, /*On fail goto*//*Label 396*/ GIMT_Encode4(8582), // Rule ID 263 //
9414 /* 8567 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule200Enabled),
9415 /* 8570 */ // MIs[0] x
9416 /* 8570 */ // No operand predicates
9417 /* 8570 */ // MIs[0] y
9418 /* 8570 */ // No operand predicates
9419 /* 8570 */ // MIs[0] z
9420 /* 8570 */ // No operand predicates
9421 /* 8570 */ // MIs[0] Operand 3
9422 /* 8570 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/3, 0,
9423 /* 8574 */ // Combiner Rule #200: funnel_shift_right_zero
9424 /* 8574 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::COPY),
9425 /* 8577 */ GIR_RootToRootCopy, /*OpIdx*/0, // x
9426 /* 8579 */ GIR_RootToRootCopy, /*OpIdx*/2, // z
9427 /* 8581 */ GIR_EraseRootFromParent_Done,
9428 /* 8582 */ // Label 396: @8582
9429 /* 8582 */ GIM_Try, /*On fail goto*//*Label 397*/ GIMT_Encode4(8593), // Rule ID 266 //
9430 /* 8587 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule202Enabled),
9431 /* 8590 */ // MIs[0] dst
9432 /* 8590 */ // No operand predicates
9433 /* 8590 */ // MIs[0] root.x
9434 /* 8590 */ // No operand predicates
9435 /* 8590 */ // MIs[0] root.y
9436 /* 8590 */ // No operand predicates
9437 /* 8590 */ // MIs[0] root.amt
9438 /* 8590 */ // No operand predicates
9439 /* 8590 */ // Combiner Rule #202: funnel_shift_overshift @ [root[1]]
9440 /* 8590 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner74),
9441 /* 8593 */ // Label 397: @8593
9442 /* 8593 */ GIM_Reject,
9443 /* 8594 */ // Label 39: @8594
9444 /* 8594 */ GIM_Try, /*On fail goto*//*Label 398*/ GIMT_Encode4(8617), // Rule ID 128 //
9445 /* 8599 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
9446 /* 8602 */ // MIs[0] dst
9447 /* 8602 */ // No operand predicates
9448 /* 8602 */ // MIs[0] lhs
9449 /* 8602 */ // No operand predicates
9450 /* 8602 */ // MIs[0] Operand 2
9451 /* 8602 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
9452 /* 8606 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9453 /* 8611 */ // Combiner Rule #93: right_identity_zero @ [__right_identity_zero_match_0[9]]
9454 /* 8611 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9455 /* 8616 */ GIR_EraseRootFromParent_Done,
9456 /* 8617 */ // Label 398: @8617
9457 /* 8617 */ GIM_Reject,
9458 /* 8618 */ // Label 40: @8618
9459 /* 8618 */ GIM_Try, /*On fail goto*//*Label 399*/ GIMT_Encode4(8641), // Rule ID 127 //
9460 /* 8623 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
9461 /* 8626 */ // MIs[0] dst
9462 /* 8626 */ // No operand predicates
9463 /* 8626 */ // MIs[0] lhs
9464 /* 8626 */ // No operand predicates
9465 /* 8626 */ // MIs[0] Operand 2
9466 /* 8626 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
9467 /* 8630 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9468 /* 8635 */ // Combiner Rule #93: right_identity_zero @ [__right_identity_zero_match_0[8]]
9469 /* 8635 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9470 /* 8640 */ GIR_EraseRootFromParent_Done,
9471 /* 8641 */ // Label 399: @8641
9472 /* 8641 */ GIM_Reject,
9473 /* 8642 */ // Label 41: @8642
9474 /* 8642 */ GIM_Try, /*On fail goto*//*Label 400*/ GIMT_Encode4(8653), // Rule ID 174 //
9475 /* 8647 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule124Enabled),
9476 /* 8650 */ // MIs[0] root
9477 /* 8650 */ // No operand predicates
9478 /* 8650 */ // MIs[0] pred
9479 /* 8650 */ // No operand predicates
9480 /* 8650 */ // MIs[0] lhs
9481 /* 8650 */ // No operand predicates
9482 /* 8650 */ // MIs[0] rhs
9483 /* 8650 */ // No operand predicates
9484 /* 8650 */ // Combiner Rule #124: canonicalize_icmp
9485 /* 8650 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner43),
9486 /* 8653 */ // Label 400: @8653
9487 /* 8653 */ GIM_Try, /*On fail goto*//*Label 401*/ GIMT_Encode4(8664), // Rule ID 176 //
9488 /* 8658 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule126Enabled),
9489 /* 8661 */ // MIs[0] dst
9490 /* 8661 */ // No operand predicates
9491 /* 8661 */ // MIs[0] pred
9492 /* 8661 */ // No operand predicates
9493 /* 8661 */ // MIs[0] src1
9494 /* 8661 */ // No operand predicates
9495 /* 8661 */ // MIs[0] src2
9496 /* 8661 */ // No operand predicates
9497 /* 8661 */ // Combiner Rule #126: icmp_to_true_false_known_bits
9498 /* 8661 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner45),
9499 /* 8664 */ // Label 401: @8664
9500 /* 8664 */ GIM_Try, /*On fail goto*//*Label 402*/ GIMT_Encode4(8675), // Rule ID 177 //
9501 /* 8669 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule127Enabled),
9502 /* 8672 */ // MIs[0] dst
9503 /* 8672 */ // No operand predicates
9504 /* 8672 */ // MIs[0] pred
9505 /* 8672 */ // No operand predicates
9506 /* 8672 */ // MIs[0] src1
9507 /* 8672 */ // No operand predicates
9508 /* 8672 */ // MIs[0] src2
9509 /* 8672 */ // No operand predicates
9510 /* 8672 */ // Combiner Rule #127: icmp_to_lhs_known_bits
9511 /* 8672 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner46),
9512 /* 8675 */ // Label 402: @8675
9513 /* 8675 */ GIM_Try, /*On fail goto*//*Label 403*/ GIMT_Encode4(8686), // Rule ID 180 //
9514 /* 8680 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule130Enabled),
9515 /* 8683 */ // MIs[0] dst
9516 /* 8683 */ // No operand predicates
9517 /* 8683 */ // MIs[0] pred
9518 /* 8683 */ // No operand predicates
9519 /* 8683 */ // MIs[0] src1
9520 /* 8683 */ // No operand predicates
9521 /* 8683 */ // MIs[0] src2
9522 /* 8683 */ // No operand predicates
9523 /* 8683 */ // Combiner Rule #130: redundant_binop_in_equality
9524 /* 8683 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner47),
9525 /* 8686 */ // Label 403: @8686
9526 /* 8686 */ GIM_Reject,
9527 /* 8687 */ // Label 42: @8687
9528 /* 8687 */ GIM_Try, /*On fail goto*//*Label 404*/ GIMT_Encode4(8698), // Rule ID 175 //
9529 /* 8692 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule125Enabled),
9530 /* 8695 */ // MIs[0] root
9531 /* 8695 */ // No operand predicates
9532 /* 8695 */ // MIs[0] pred
9533 /* 8695 */ // No operand predicates
9534 /* 8695 */ // MIs[0] lhs
9535 /* 8695 */ // No operand predicates
9536 /* 8695 */ // MIs[0] rhs
9537 /* 8695 */ // No operand predicates
9538 /* 8695 */ // Combiner Rule #125: canonicalize_fcmp
9539 /* 8695 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner44),
9540 /* 8698 */ // Label 404: @8698
9541 /* 8698 */ GIM_Reject,
9542 /* 8699 */ // Label 43: @8699
9543 /* 8699 */ GIM_Try, /*On fail goto*//*Label 405*/ GIMT_Encode4(8748), // Rule ID 193 //
9544 /* 8704 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule143Enabled),
9545 /* 8707 */ // MIs[0] dst
9546 /* 8707 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
9547 /* 8711 */ // MIs[0] c
9548 /* 8711 */ // No operand predicates
9549 /* 8711 */ // MIs[0] x
9550 /* 8711 */ // No operand predicates
9551 /* 8711 */ // MIs[0] Operand 3
9552 /* 8711 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/3, 0,
9553 /* 8715 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner28),
9554 /* 8719 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
9555 /* 8722 */ // Combiner Rule #143: select_zero_false
9556 /* 8722 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FREEZE),
9557 /* 8725 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
9558 /* 8730 */ GIR_RootToRootCopy, /*OpIdx*/2, // x
9559 /* 8732 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_AND),
9560 /* 8736 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
9561 /* 8740 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/1, // c
9562 /* 8744 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
9563 /* 8747 */ GIR_EraseRootFromParent_Done,
9564 /* 8748 */ // Label 405: @8748
9565 /* 8748 */ GIM_Try, /*On fail goto*//*Label 406*/ GIMT_Encode4(8771), // Rule ID 118 //
9566 /* 8753 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule92Enabled),
9567 /* 8756 */ // MIs[0] dst
9568 /* 8756 */ // No operand predicates
9569 /* 8756 */ // MIs[0] cond
9570 /* 8756 */ // No operand predicates
9571 /* 8756 */ // MIs[0] tval
9572 /* 8756 */ // No operand predicates
9573 /* 8756 */ // MIs[0] fval
9574 /* 8756 */ // No operand predicates
9575 /* 8756 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner12),
9576 /* 8760 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
9577 /* 8765 */ // Combiner Rule #92: select_same_val_equiv
9578 /* 8765 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
9579 /* 8770 */ GIR_EraseRootFromParent_Done,
9580 /* 8771 */ // Label 406: @8771
9581 /* 8771 */ GIM_Try, /*On fail goto*//*Label 407*/ GIMT_Encode4(8794), // Rule ID 189 //
9582 /* 8776 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule139Enabled),
9583 /* 8779 */ // MIs[0] dst
9584 /* 8779 */ // No operand predicates
9585 /* 8779 */ // MIs[0] cond
9586 /* 8779 */ // No operand predicates
9587 /* 8779 */ // MIs[0] tval
9588 /* 8779 */ // No operand predicates
9589 /* 8779 */ // MIs[0] fval
9590 /* 8779 */ // No operand predicates
9591 /* 8779 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner26),
9592 /* 8783 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/3,
9593 /* 8788 */ // Combiner Rule #139: select_constant_cmp_general_false
9594 /* 8788 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/3,
9595 /* 8793 */ GIR_EraseRootFromParent_Done,
9596 /* 8794 */ // Label 407: @8794
9597 /* 8794 */ GIM_Try, /*On fail goto*//*Label 408*/ GIMT_Encode4(8817), // Rule ID 190 //
9598 /* 8799 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule140Enabled),
9599 /* 8802 */ // MIs[0] dst
9600 /* 8802 */ // No operand predicates
9601 /* 8802 */ // MIs[0] cond
9602 /* 8802 */ // No operand predicates
9603 /* 8802 */ // MIs[0] tval
9604 /* 8802 */ // No operand predicates
9605 /* 8802 */ // MIs[0] fval
9606 /* 8802 */ // No operand predicates
9607 /* 8802 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner27),
9608 /* 8806 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
9609 /* 8811 */ // Combiner Rule #140: select_constant_cmp_general_true
9610 /* 8811 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
9611 /* 8816 */ GIR_EraseRootFromParent_Done,
9612 /* 8817 */ // Label 408: @8817
9613 /* 8817 */ GIM_Try, /*On fail goto*//*Label 409*/ GIMT_Encode4(8838), // Rule ID 191 //
9614 /* 8822 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule141Enabled),
9615 /* 8825 */ // MIs[0] root
9616 /* 8825 */ // No operand predicates
9617 /* 8825 */ // MIs[0] tst
9618 /* 8825 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9619 /* 8829 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ICMP),
9620 /* 8833 */ // MIs[1] tst1
9621 /* 8833 */ // No operand predicates
9622 /* 8833 */ // MIs[1] a
9623 /* 8833 */ // No operand predicates
9624 /* 8833 */ // MIs[1] b
9625 /* 8833 */ // No operand predicates
9626 /* 8833 */ // MIs[0] x
9627 /* 8833 */ // No operand predicates
9628 /* 8833 */ // MIs[0] y
9629 /* 8833 */ // No operand predicates
9630 /* 8833 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9631 /* 8835 */ // Combiner Rule #141: select_to_iminmax
9632 /* 8835 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner52),
9633 /* 8838 */ // Label 409: @8838
9634 /* 8838 */ GIM_Try, /*On fail goto*//*Label 410*/ GIMT_Encode4(8874), // Rule ID 194 //
9635 /* 8843 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule144Enabled),
9636 /* 8846 */ // MIs[0] dst
9637 /* 8846 */ // No operand predicates
9638 /* 8846 */ // MIs[0] c
9639 /* 8846 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9640 /* 8850 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_XOR),
9641 /* 8854 */ // MIs[1] src
9642 /* 8854 */ // No operand predicates
9643 /* 8854 */ // MIs[1] Operand 2
9644 /* 8854 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/2, 255,
9645 /* 8858 */ // MIs[0] x
9646 /* 8858 */ // No operand predicates
9647 /* 8858 */ // MIs[0] y
9648 /* 8858 */ // No operand predicates
9649 /* 8858 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9650 /* 8860 */ // Combiner Rule #144: select_not
9651 /* 8860 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SELECT),
9652 /* 8863 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
9653 /* 8865 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // src
9654 /* 8869 */ GIR_RootToRootCopy, /*OpIdx*/3, // y
9655 /* 8871 */ GIR_RootToRootCopy, /*OpIdx*/2, // x
9656 /* 8873 */ GIR_EraseRootFromParent_Done,
9657 /* 8874 */ // Label 410: @8874
9658 /* 8874 */ GIM_Try, /*On fail goto*//*Label 411*/ GIMT_Encode4(8903), // Rule ID 186 //
9659 /* 8879 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule136Enabled),
9660 /* 8882 */ // MIs[0] dst
9661 /* 8882 */ // No operand predicates
9662 /* 8882 */ // MIs[0] undef
9663 /* 8882 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9664 /* 8886 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
9665 /* 8890 */ // MIs[0] x
9666 /* 8890 */ // No operand predicates
9667 /* 8890 */ // MIs[0] y
9668 /* 8890 */ // No operand predicates
9669 /* 8890 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/3,
9670 /* 8895 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9671 /* 8897 */ // Combiner Rule #136: select_undef_cmp
9672 /* 8897 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/3,
9673 /* 8902 */ GIR_EraseRootFromParent_Done,
9674 /* 8903 */ // Label 411: @8903
9675 /* 8903 */ GIM_Try, /*On fail goto*//*Label 412*/ GIMT_Encode4(8943), // Rule ID 187 //
9676 /* 8908 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule137Enabled),
9677 /* 8911 */ // MIs[0] dst
9678 /* 8911 */ // No operand predicates
9679 /* 8911 */ // MIs[0] cond
9680 /* 8911 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9681 /* 8915 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
9682 /* 8919 */ // MIs[1] Operand 1
9683 /* 8919 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0),
9684 /* 8930 */ // MIs[0] tval
9685 /* 8930 */ // No operand predicates
9686 /* 8930 */ // MIs[0] fval
9687 /* 8930 */ // No operand predicates
9688 /* 8930 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/3,
9689 /* 8935 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9690 /* 8937 */ // Combiner Rule #137: select_constant_cmp_false
9691 /* 8937 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/3,
9692 /* 8942 */ GIR_EraseRootFromParent_Done,
9693 /* 8943 */ // Label 412: @8943
9694 /* 8943 */ GIM_Try, /*On fail goto*//*Label 413*/ GIMT_Encode4(8983), // Rule ID 188 //
9695 /* 8948 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule138Enabled),
9696 /* 8951 */ // MIs[0] dst
9697 /* 8951 */ // No operand predicates
9698 /* 8951 */ // MIs[0] cond
9699 /* 8951 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9700 /* 8955 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
9701 /* 8959 */ // MIs[1] Operand 1
9702 /* 8959 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(1),
9703 /* 8970 */ // MIs[0] tval
9704 /* 8970 */ // No operand predicates
9705 /* 8970 */ // MIs[0] fval
9706 /* 8970 */ // No operand predicates
9707 /* 8970 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
9708 /* 8975 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9709 /* 8977 */ // Combiner Rule #138: select_constant_cmp_true
9710 /* 8977 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
9711 /* 8982 */ GIR_EraseRootFromParent_Done,
9712 /* 8983 */ // Label 413: @8983
9713 /* 8983 */ GIM_Try, /*On fail goto*//*Label 414*/ GIMT_Encode4(9007), // Rule ID 117 //
9714 /* 8988 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule91Enabled),
9715 /* 8991 */ // MIs[0] dst
9716 /* 8991 */ // No operand predicates
9717 /* 8991 */ // MIs[0] cond
9718 /* 8991 */ // No operand predicates
9719 /* 8991 */ // MIs[0] x
9720 /* 8991 */ // No operand predicates
9721 /* 8991 */ // MIs[0] x
9722 /* 8991 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/3, /*OtherMI*/0, /*OtherOpIdx*/2,
9723 /* 8996 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
9724 /* 9001 */ // Combiner Rule #91: select_same_val_trivial
9725 /* 9001 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
9726 /* 9006 */ GIR_EraseRootFromParent_Done,
9727 /* 9007 */ // Label 414: @9007
9728 /* 9007 */ GIM_Try, /*On fail goto*//*Label 415*/ GIMT_Encode4(9018), // Rule ID 192 //
9729 /* 9012 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule142Enabled),
9730 /* 9015 */ // MIs[0] dst
9731 /* 9015 */ // No operand predicates
9732 /* 9015 */ // MIs[0] cond
9733 /* 9015 */ // No operand predicates
9734 /* 9015 */ // MIs[0] tval
9735 /* 9015 */ // No operand predicates
9736 /* 9015 */ // MIs[0] fval
9737 /* 9015 */ // No operand predicates
9738 /* 9015 */ // Combiner Rule #142: match_selects
9739 /* 9015 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner53),
9740 /* 9018 */ // Label 415: @9018
9741 /* 9018 */ GIM_Try, /*On fail goto*//*Label 416*/ GIMT_Encode4(9029), // Rule ID 381 //
9742 /* 9023 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule251Enabled),
9743 /* 9026 */ // MIs[0] dst
9744 /* 9026 */ // No operand predicates
9745 /* 9026 */ // MIs[0] cond
9746 /* 9026 */ // No operand predicates
9747 /* 9026 */ // MIs[0] tval
9748 /* 9026 */ // No operand predicates
9749 /* 9026 */ // MIs[0] fval
9750 /* 9026 */ // No operand predicates
9751 /* 9026 */ // Combiner Rule #251: select_to_minmax
9752 /* 9026 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner102),
9753 /* 9029 */ // Label 416: @9029
9754 /* 9029 */ GIM_Reject,
9755 /* 9030 */ // Label 44: @9030
9756 /* 9030 */ GIM_Try, /*On fail goto*//*Label 417*/ GIMT_Encode4(9057), // Rule ID 400 //
9757 /* 9035 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule270Enabled),
9758 /* 9038 */ // MIs[0] dst
9759 /* 9038 */ // No operand predicates
9760 /* 9038 */ // MIs[0] carry
9761 /* 9038 */ // No operand predicates
9762 /* 9038 */ // MIs[0] lhs
9763 /* 9038 */ // No operand predicates
9764 /* 9038 */ // MIs[0] rhs
9765 /* 9038 */ // No operand predicates
9766 /* 9038 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner51),
9767 /* 9042 */ // Combiner Rule #270: G_UADDO_commute_constant_to_rhs
9768 /* 9042 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UADDO),
9769 /* 9045 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
9770 /* 9047 */ GIR_RootToRootCopy, /*OpIdx*/1, // carry
9771 /* 9049 */ GIR_RootToRootCopy, /*OpIdx*/3, // rhs
9772 /* 9051 */ GIR_RootToRootCopy, /*OpIdx*/2, // lhs
9773 /* 9053 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
9774 /* 9056 */ GIR_EraseRootFromParent_Done,
9775 /* 9057 */ // Label 417: @9057
9776 /* 9057 */ GIM_Try, /*On fail goto*//*Label 418*/ GIMT_Encode4(9087), // Rule ID 440 //
9777 /* 9062 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule310Enabled),
9778 /* 9065 */ // MIs[0] dst
9779 /* 9065 */ // No operand predicates
9780 /* 9065 */ // MIs[0] carry
9781 /* 9065 */ // No operand predicates
9782 /* 9065 */ // MIs[0] x
9783 /* 9065 */ // No operand predicates
9784 /* 9065 */ // MIs[0] y
9785 /* 9065 */ // No operand predicates
9786 /* 9065 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner55),
9787 /* 9069 */ // Combiner Rule #310: match_addos_uaddo_dead_carry
9788 /* 9069 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ADD),
9789 /* 9072 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
9790 /* 9074 */ GIR_RootToRootCopy, /*OpIdx*/2, // x
9791 /* 9076 */ GIR_RootToRootCopy, /*OpIdx*/3, // y
9792 /* 9078 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
9793 /* 9082 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/1, // carry
9794 /* 9086 */ GIR_EraseRootFromParent_Done,
9795 /* 9087 */ // Label 418: @9087
9796 /* 9087 */ GIM_Try, /*On fail goto*//*Label 419*/ GIMT_Encode4(9098), // Rule ID 442 //
9797 /* 9092 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule312Enabled),
9798 /* 9095 */ // MIs[0] dst
9799 /* 9095 */ // No operand predicates
9800 /* 9095 */ // MIs[0] carry
9801 /* 9095 */ // No operand predicates
9802 /* 9095 */ // MIs[0] x
9803 /* 9095 */ // No operand predicates
9804 /* 9095 */ // MIs[0] y
9805 /* 9095 */ // No operand predicates
9806 /* 9095 */ // Combiner Rule #312: match_addos_uaddo
9807 /* 9095 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner122),
9808 /* 9098 */ // Label 419: @9098
9809 /* 9098 */ GIM_Reject,
9810 /* 9099 */ // Label 45: @9099
9811 /* 9099 */ GIM_Try, /*On fail goto*//*Label 420*/ GIMT_Encode4(9126), // Rule ID 231 //
9812 /* 9104 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule181Enabled),
9813 /* 9107 */ // MIs[0] dst
9814 /* 9107 */ // No operand predicates
9815 /* 9107 */ // MIs[0] carry_out
9816 /* 9107 */ // No operand predicates
9817 /* 9107 */ // MIs[0] x
9818 /* 9107 */ // No operand predicates
9819 /* 9107 */ // MIs[0] y
9820 /* 9107 */ // No operand predicates
9821 /* 9107 */ // MIs[0] carry_in
9822 /* 9107 */ // No operand predicates
9823 /* 9107 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner34),
9824 /* 9111 */ // Combiner Rule #181: adde_to_addo_uadde
9825 /* 9111 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UADDO),
9826 /* 9114 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
9827 /* 9116 */ GIR_RootToRootCopy, /*OpIdx*/1, // carry_out
9828 /* 9118 */ GIR_RootToRootCopy, /*OpIdx*/2, // x
9829 /* 9120 */ GIR_RootToRootCopy, /*OpIdx*/3, // y
9830 /* 9122 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
9831 /* 9125 */ GIR_EraseRootFromParent_Done,
9832 /* 9126 */ // Label 420: @9126
9833 /* 9126 */ GIM_Reject,
9834 /* 9127 */ // Label 46: @9127
9835 /* 9127 */ GIM_Try, /*On fail goto*//*Label 421*/ GIMT_Encode4(9138), // Rule ID 444 //
9836 /* 9132 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule314Enabled),
9837 /* 9135 */ // MIs[0] dst
9838 /* 9135 */ // No operand predicates
9839 /* 9135 */ // MIs[0] carry
9840 /* 9135 */ // No operand predicates
9841 /* 9135 */ // MIs[0] x
9842 /* 9135 */ // No operand predicates
9843 /* 9135 */ // MIs[0] y
9844 /* 9135 */ // No operand predicates
9845 /* 9135 */ // Combiner Rule #314: match_subo_no_overflow_usubo
9846 /* 9135 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner123),
9847 /* 9138 */ // Label 421: @9138
9848 /* 9138 */ GIM_Reject,
9849 /* 9139 */ // Label 47: @9139
9850 /* 9139 */ GIM_Try, /*On fail goto*//*Label 422*/ GIMT_Encode4(9166), // Rule ID 233 //
9851 /* 9144 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule183Enabled),
9852 /* 9147 */ // MIs[0] dst
9853 /* 9147 */ // No operand predicates
9854 /* 9147 */ // MIs[0] carry_out
9855 /* 9147 */ // No operand predicates
9856 /* 9147 */ // MIs[0] x
9857 /* 9147 */ // No operand predicates
9858 /* 9147 */ // MIs[0] y
9859 /* 9147 */ // No operand predicates
9860 /* 9147 */ // MIs[0] carry_in
9861 /* 9147 */ // No operand predicates
9862 /* 9147 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner34),
9863 /* 9151 */ // Combiner Rule #183: adde_to_addo_usube
9864 /* 9151 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_USUBO),
9865 /* 9154 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
9866 /* 9156 */ GIR_RootToRootCopy, /*OpIdx*/1, // carry_out
9867 /* 9158 */ GIR_RootToRootCopy, /*OpIdx*/2, // x
9868 /* 9160 */ GIR_RootToRootCopy, /*OpIdx*/3, // y
9869 /* 9162 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
9870 /* 9165 */ GIR_EraseRootFromParent_Done,
9871 /* 9166 */ // Label 422: @9166
9872 /* 9166 */ GIM_Reject,
9873 /* 9167 */ // Label 48: @9167
9874 /* 9167 */ GIM_Try, /*On fail goto*//*Label 423*/ GIMT_Encode4(9194), // Rule ID 401 //
9875 /* 9172 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule271Enabled),
9876 /* 9175 */ // MIs[0] dst
9877 /* 9175 */ // No operand predicates
9878 /* 9175 */ // MIs[0] carry
9879 /* 9175 */ // No operand predicates
9880 /* 9175 */ // MIs[0] lhs
9881 /* 9175 */ // No operand predicates
9882 /* 9175 */ // MIs[0] rhs
9883 /* 9175 */ // No operand predicates
9884 /* 9175 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner51),
9885 /* 9179 */ // Combiner Rule #271: G_SADDO_commute_constant_to_rhs
9886 /* 9179 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SADDO),
9887 /* 9182 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
9888 /* 9184 */ GIR_RootToRootCopy, /*OpIdx*/1, // carry
9889 /* 9186 */ GIR_RootToRootCopy, /*OpIdx*/3, // rhs
9890 /* 9188 */ GIR_RootToRootCopy, /*OpIdx*/2, // lhs
9891 /* 9190 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
9892 /* 9193 */ GIR_EraseRootFromParent_Done,
9893 /* 9194 */ // Label 423: @9194
9894 /* 9194 */ GIM_Try, /*On fail goto*//*Label 424*/ GIMT_Encode4(9224), // Rule ID 439 //
9895 /* 9199 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule309Enabled),
9896 /* 9202 */ // MIs[0] dst
9897 /* 9202 */ // No operand predicates
9898 /* 9202 */ // MIs[0] carry
9899 /* 9202 */ // No operand predicates
9900 /* 9202 */ // MIs[0] x
9901 /* 9202 */ // No operand predicates
9902 /* 9202 */ // MIs[0] y
9903 /* 9202 */ // No operand predicates
9904 /* 9202 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner55),
9905 /* 9206 */ // Combiner Rule #309: match_addos_saddo_dead_carry
9906 /* 9206 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ADD),
9907 /* 9209 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
9908 /* 9211 */ GIR_RootToRootCopy, /*OpIdx*/2, // x
9909 /* 9213 */ GIR_RootToRootCopy, /*OpIdx*/3, // y
9910 /* 9215 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
9911 /* 9219 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/1, // carry
9912 /* 9223 */ GIR_EraseRootFromParent_Done,
9913 /* 9224 */ // Label 424: @9224
9914 /* 9224 */ GIM_Try, /*On fail goto*//*Label 425*/ GIMT_Encode4(9235), // Rule ID 441 //
9915 /* 9229 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule311Enabled),
9916 /* 9232 */ // MIs[0] dst
9917 /* 9232 */ // No operand predicates
9918 /* 9232 */ // MIs[0] carry
9919 /* 9232 */ // No operand predicates
9920 /* 9232 */ // MIs[0] x
9921 /* 9232 */ // No operand predicates
9922 /* 9232 */ // MIs[0] y
9923 /* 9232 */ // No operand predicates
9924 /* 9232 */ // Combiner Rule #311: match_addos_saddo
9925 /* 9232 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner122),
9926 /* 9235 */ // Label 425: @9235
9927 /* 9235 */ GIM_Reject,
9928 /* 9236 */ // Label 49: @9236
9929 /* 9236 */ GIM_Try, /*On fail goto*//*Label 426*/ GIMT_Encode4(9263), // Rule ID 232 //
9930 /* 9241 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule182Enabled),
9931 /* 9244 */ // MIs[0] dst
9932 /* 9244 */ // No operand predicates
9933 /* 9244 */ // MIs[0] carry_out
9934 /* 9244 */ // No operand predicates
9935 /* 9244 */ // MIs[0] x
9936 /* 9244 */ // No operand predicates
9937 /* 9244 */ // MIs[0] y
9938 /* 9244 */ // No operand predicates
9939 /* 9244 */ // MIs[0] carry_in
9940 /* 9244 */ // No operand predicates
9941 /* 9244 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner34),
9942 /* 9248 */ // Combiner Rule #182: adde_to_addo_sadde
9943 /* 9248 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SADDO),
9944 /* 9251 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
9945 /* 9253 */ GIR_RootToRootCopy, /*OpIdx*/1, // carry_out
9946 /* 9255 */ GIR_RootToRootCopy, /*OpIdx*/2, // x
9947 /* 9257 */ GIR_RootToRootCopy, /*OpIdx*/3, // y
9948 /* 9259 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
9949 /* 9262 */ GIR_EraseRootFromParent_Done,
9950 /* 9263 */ // Label 426: @9263
9951 /* 9263 */ GIM_Reject,
9952 /* 9264 */ // Label 50: @9264
9953 /* 9264 */ GIM_Try, /*On fail goto*//*Label 427*/ GIMT_Encode4(9275), // Rule ID 443 //
9954 /* 9269 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule313Enabled),
9955 /* 9272 */ // MIs[0] dst
9956 /* 9272 */ // No operand predicates
9957 /* 9272 */ // MIs[0] carry
9958 /* 9272 */ // No operand predicates
9959 /* 9272 */ // MIs[0] x
9960 /* 9272 */ // No operand predicates
9961 /* 9272 */ // MIs[0] y
9962 /* 9272 */ // No operand predicates
9963 /* 9272 */ // Combiner Rule #313: match_subo_no_overflow_ssubo
9964 /* 9272 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner123),
9965 /* 9275 */ // Label 427: @9275
9966 /* 9275 */ GIM_Reject,
9967 /* 9276 */ // Label 51: @9276
9968 /* 9276 */ GIM_Try, /*On fail goto*//*Label 428*/ GIMT_Encode4(9303), // Rule ID 234 //
9969 /* 9281 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule184Enabled),
9970 /* 9284 */ // MIs[0] dst
9971 /* 9284 */ // No operand predicates
9972 /* 9284 */ // MIs[0] carry_out
9973 /* 9284 */ // No operand predicates
9974 /* 9284 */ // MIs[0] x
9975 /* 9284 */ // No operand predicates
9976 /* 9284 */ // MIs[0] y
9977 /* 9284 */ // No operand predicates
9978 /* 9284 */ // MIs[0] carry_in
9979 /* 9284 */ // No operand predicates
9980 /* 9284 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner34),
9981 /* 9288 */ // Combiner Rule #184: adde_to_addo_ssube
9982 /* 9288 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SSUBO),
9983 /* 9291 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
9984 /* 9293 */ GIR_RootToRootCopy, /*OpIdx*/1, // carry_out
9985 /* 9295 */ GIR_RootToRootCopy, /*OpIdx*/2, // x
9986 /* 9297 */ GIR_RootToRootCopy, /*OpIdx*/3, // y
9987 /* 9299 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
9988 /* 9302 */ GIR_EraseRootFromParent_Done,
9989 /* 9303 */ // Label 428: @9303
9990 /* 9303 */ GIM_Reject,
9991 /* 9304 */ // Label 52: @9304
9992 /* 9304 */ GIM_Try, /*On fail goto*//*Label 429*/ GIMT_Encode4(9331), // Rule ID 227 //
9993 /* 9309 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule177Enabled),
9994 /* 9312 */ // MIs[0] dst
9995 /* 9312 */ // No operand predicates
9996 /* 9312 */ // MIs[0] carry
9997 /* 9312 */ // No operand predicates
9998 /* 9312 */ // MIs[0] x
9999 /* 9312 */ // No operand predicates
10000 /* 9312 */ // MIs[0] rhs
10001 /* 9312 */ // No operand predicates
10002 /* 9312 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner33),
10003 /* 9316 */ // Combiner Rule #177: mulo_by_2_umulo
10004 /* 9316 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UADDO),
10005 /* 9319 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10006 /* 9321 */ GIR_RootToRootCopy, /*OpIdx*/1, // carry
10007 /* 9323 */ GIR_RootToRootCopy, /*OpIdx*/2, // x
10008 /* 9325 */ GIR_RootToRootCopy, /*OpIdx*/2, // x
10009 /* 9327 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
10010 /* 9330 */ GIR_EraseRootFromParent_Done,
10011 /* 9331 */ // Label 429: @9331
10012 /* 9331 */ GIM_Try, /*On fail goto*//*Label 430*/ GIMT_Encode4(9358), // Rule ID 402 //
10013 /* 9336 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule272Enabled),
10014 /* 9339 */ // MIs[0] dst
10015 /* 9339 */ // No operand predicates
10016 /* 9339 */ // MIs[0] carry
10017 /* 9339 */ // No operand predicates
10018 /* 9339 */ // MIs[0] lhs
10019 /* 9339 */ // No operand predicates
10020 /* 9339 */ // MIs[0] rhs
10021 /* 9339 */ // No operand predicates
10022 /* 9339 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner51),
10023 /* 9343 */ // Combiner Rule #272: G_UMULO_commute_constant_to_rhs
10024 /* 9343 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UMULO),
10025 /* 9346 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10026 /* 9348 */ GIR_RootToRootCopy, /*OpIdx*/1, // carry
10027 /* 9350 */ GIR_RootToRootCopy, /*OpIdx*/3, // rhs
10028 /* 9352 */ GIR_RootToRootCopy, /*OpIdx*/2, // lhs
10029 /* 9354 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
10030 /* 9357 */ GIR_EraseRootFromParent_Done,
10031 /* 9358 */ // Label 430: @9358
10032 /* 9358 */ GIM_Try, /*On fail goto*//*Label 431*/ GIMT_Encode4(9369), // Rule ID 229 //
10033 /* 9363 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule179Enabled),
10034 /* 9366 */ // MIs[0] dst
10035 /* 9366 */ // No operand predicates
10036 /* 9366 */ // MIs[0] carry
10037 /* 9366 */ // No operand predicates
10038 /* 9366 */ // MIs[0] x
10039 /* 9366 */ // No operand predicates
10040 /* 9366 */ // MIs[0] y
10041 /* 9366 */ // No operand predicates
10042 /* 9366 */ // Combiner Rule #179: mulo_by_0_umulo
10043 /* 9366 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner66),
10044 /* 9369 */ // Label 431: @9369
10045 /* 9369 */ GIM_Reject,
10046 /* 9370 */ // Label 53: @9370
10047 /* 9370 */ GIM_Try, /*On fail goto*//*Label 432*/ GIMT_Encode4(9397), // Rule ID 228 //
10048 /* 9375 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule178Enabled),
10049 /* 9378 */ // MIs[0] dst
10050 /* 9378 */ // No operand predicates
10051 /* 9378 */ // MIs[0] carry
10052 /* 9378 */ // No operand predicates
10053 /* 9378 */ // MIs[0] x
10054 /* 9378 */ // No operand predicates
10055 /* 9378 */ // MIs[0] rhs
10056 /* 9378 */ // No operand predicates
10057 /* 9378 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner33),
10058 /* 9382 */ // Combiner Rule #178: mulo_by_2_smulo
10059 /* 9382 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SADDO),
10060 /* 9385 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10061 /* 9387 */ GIR_RootToRootCopy, /*OpIdx*/1, // carry
10062 /* 9389 */ GIR_RootToRootCopy, /*OpIdx*/2, // x
10063 /* 9391 */ GIR_RootToRootCopy, /*OpIdx*/2, // x
10064 /* 9393 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
10065 /* 9396 */ GIR_EraseRootFromParent_Done,
10066 /* 9397 */ // Label 432: @9397
10067 /* 9397 */ GIM_Try, /*On fail goto*//*Label 433*/ GIMT_Encode4(9424), // Rule ID 403 //
10068 /* 9402 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule273Enabled),
10069 /* 9405 */ // MIs[0] dst
10070 /* 9405 */ // No operand predicates
10071 /* 9405 */ // MIs[0] carry
10072 /* 9405 */ // No operand predicates
10073 /* 9405 */ // MIs[0] lhs
10074 /* 9405 */ // No operand predicates
10075 /* 9405 */ // MIs[0] rhs
10076 /* 9405 */ // No operand predicates
10077 /* 9405 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner51),
10078 /* 9409 */ // Combiner Rule #273: G_SMULO_commute_constant_to_rhs
10079 /* 9409 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SMULO),
10080 /* 9412 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10081 /* 9414 */ GIR_RootToRootCopy, /*OpIdx*/1, // carry
10082 /* 9416 */ GIR_RootToRootCopy, /*OpIdx*/3, // rhs
10083 /* 9418 */ GIR_RootToRootCopy, /*OpIdx*/2, // lhs
10084 /* 9420 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
10085 /* 9423 */ GIR_EraseRootFromParent_Done,
10086 /* 9424 */ // Label 433: @9424
10087 /* 9424 */ GIM_Try, /*On fail goto*//*Label 434*/ GIMT_Encode4(9435), // Rule ID 230 //
10088 /* 9429 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule180Enabled),
10089 /* 9432 */ // MIs[0] dst
10090 /* 9432 */ // No operand predicates
10091 /* 9432 */ // MIs[0] carry
10092 /* 9432 */ // No operand predicates
10093 /* 9432 */ // MIs[0] x
10094 /* 9432 */ // No operand predicates
10095 /* 9432 */ // MIs[0] y
10096 /* 9432 */ // No operand predicates
10097 /* 9432 */ // Combiner Rule #180: mulo_by_0_smulo
10098 /* 9432 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner66),
10099 /* 9435 */ // Label 434: @9435
10100 /* 9435 */ GIM_Reject,
10101 /* 9436 */ // Label 54: @9436
10102 /* 9436 */ GIM_Try, /*On fail goto*//*Label 435*/ GIMT_Encode4(9461), // Rule ID 392 //
10103 /* 9441 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule262Enabled),
10104 /* 9444 */ // MIs[0] dst
10105 /* 9444 */ // No operand predicates
10106 /* 9444 */ // MIs[0] lhs
10107 /* 9444 */ // No operand predicates
10108 /* 9444 */ // MIs[0] rhs
10109 /* 9444 */ // No operand predicates
10110 /* 9444 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner51),
10111 /* 9448 */ // Combiner Rule #262: G_UMULH_commute_constant_to_rhs
10112 /* 9448 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UMULH),
10113 /* 9451 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10114 /* 9453 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
10115 /* 9455 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
10116 /* 9457 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
10117 /* 9460 */ GIR_EraseRootFromParent_Done,
10118 /* 9461 */ // Label 435: @9461
10119 /* 9461 */ GIM_Try, /*On fail goto*//*Label 436*/ GIMT_Encode4(9472), // Rule ID 325 //
10120 /* 9466 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule219Enabled),
10121 /* 9469 */ // MIs[0] dst
10122 /* 9469 */ // No operand predicates
10123 /* 9469 */ // MIs[0] src1
10124 /* 9469 */ // No operand predicates
10125 /* 9469 */ // MIs[0] src2
10126 /* 9469 */ // No operand predicates
10127 /* 9469 */ // Combiner Rule #219: mulh_to_lshr
10128 /* 9469 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner84),
10129 /* 9472 */ // Label 436: @9472
10130 /* 9472 */ GIM_Reject,
10131 /* 9473 */ // Label 55: @9473
10132 /* 9473 */ GIM_Try, /*On fail goto*//*Label 437*/ GIMT_Encode4(9498), // Rule ID 393 //
10133 /* 9478 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule263Enabled),
10134 /* 9481 */ // MIs[0] dst
10135 /* 9481 */ // No operand predicates
10136 /* 9481 */ // MIs[0] lhs
10137 /* 9481 */ // No operand predicates
10138 /* 9481 */ // MIs[0] rhs
10139 /* 9481 */ // No operand predicates
10140 /* 9481 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner51),
10141 /* 9485 */ // Combiner Rule #263: G_SMULH_commute_constant_to_rhs
10142 /* 9485 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SMULH),
10143 /* 9488 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10144 /* 9490 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
10145 /* 9492 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
10146 /* 9494 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
10147 /* 9497 */ GIR_EraseRootFromParent_Done,
10148 /* 9498 */ // Label 437: @9498
10149 /* 9498 */ GIM_Reject,
10150 /* 9499 */ // Label 56: @9499
10151 /* 9499 */ GIM_Try, /*On fail goto*//*Label 438*/ GIMT_Encode4(9524), // Rule ID 394 //
10152 /* 9504 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule264Enabled),
10153 /* 9507 */ // MIs[0] dst
10154 /* 9507 */ // No operand predicates
10155 /* 9507 */ // MIs[0] lhs
10156 /* 9507 */ // No operand predicates
10157 /* 9507 */ // MIs[0] rhs
10158 /* 9507 */ // No operand predicates
10159 /* 9507 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner51),
10160 /* 9511 */ // Combiner Rule #264: G_UADDSAT_commute_constant_to_rhs
10161 /* 9511 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UADDSAT),
10162 /* 9514 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10163 /* 9516 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
10164 /* 9518 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
10165 /* 9520 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
10166 /* 9523 */ GIR_EraseRootFromParent_Done,
10167 /* 9524 */ // Label 438: @9524
10168 /* 9524 */ GIM_Reject,
10169 /* 9525 */ // Label 57: @9525
10170 /* 9525 */ GIM_Try, /*On fail goto*//*Label 439*/ GIMT_Encode4(9550), // Rule ID 395 //
10171 /* 9530 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule265Enabled),
10172 /* 9533 */ // MIs[0] dst
10173 /* 9533 */ // No operand predicates
10174 /* 9533 */ // MIs[0] lhs
10175 /* 9533 */ // No operand predicates
10176 /* 9533 */ // MIs[0] rhs
10177 /* 9533 */ // No operand predicates
10178 /* 9533 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner51),
10179 /* 9537 */ // Combiner Rule #265: G_SADDSAT_commute_constant_to_rhs
10180 /* 9537 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SADDSAT),
10181 /* 9540 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10182 /* 9542 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
10183 /* 9544 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
10184 /* 9546 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
10185 /* 9549 */ GIR_EraseRootFromParent_Done,
10186 /* 9550 */ // Label 439: @9550
10187 /* 9550 */ GIM_Reject,
10188 /* 9551 */ // Label 58: @9551
10189 /* 9551 */ GIM_Try, /*On fail goto*//*Label 440*/ GIMT_Encode4(9562), // Rule ID 251 //
10190 /* 9556 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule193Enabled),
10191 /* 9559 */ // MIs[0] d
10192 /* 9559 */ // No operand predicates
10193 /* 9559 */ // MIs[0] mi.base
10194 /* 9559 */ // No operand predicates
10195 /* 9559 */ // MIs[0] mi.amt
10196 /* 9559 */ // No operand predicates
10197 /* 9559 */ // Combiner Rule #193: shift_immed_chain @ [mi[4]]
10198 /* 9559 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner69),
10199 /* 9562 */ // Label 440: @9562
10200 /* 9562 */ GIM_Reject,
10201 /* 9563 */ // Label 59: @9563
10202 /* 9563 */ GIM_Try, /*On fail goto*//*Label 441*/ GIMT_Encode4(9574), // Rule ID 250 //
10203 /* 9568 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule193Enabled),
10204 /* 9571 */ // MIs[0] d
10205 /* 9571 */ // No operand predicates
10206 /* 9571 */ // MIs[0] mi.base
10207 /* 9571 */ // No operand predicates
10208 /* 9571 */ // MIs[0] mi.amt
10209 /* 9571 */ // No operand predicates
10210 /* 9571 */ // Combiner Rule #193: shift_immed_chain @ [mi[3]]
10211 /* 9571 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner69),
10212 /* 9574 */ // Label 441: @9574
10213 /* 9574 */ GIM_Reject,
10214 /* 9575 */ // Label 60: @9575
10215 /* 9575 */ GIM_Try, /*On fail goto*//*Label 442*/ GIMT_Encode4(9602), // Rule ID 396 //
10216 /* 9580 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule266Enabled),
10217 /* 9583 */ // MIs[0] dst
10218 /* 9583 */ // No operand predicates
10219 /* 9583 */ // MIs[0] lhs
10220 /* 9583 */ // No operand predicates
10221 /* 9583 */ // MIs[0] rhs
10222 /* 9583 */ // No operand predicates
10223 /* 9583 */ // MIs[0] scale
10224 /* 9583 */ // No operand predicates
10225 /* 9583 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner51),
10226 /* 9587 */ // Combiner Rule #266: G_SMULFIX_commute_constant_to_rhs
10227 /* 9587 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SMULFIX),
10228 /* 9590 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10229 /* 9592 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
10230 /* 9594 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
10231 /* 9596 */ GIR_RootToRootCopy, /*OpIdx*/3, // scale
10232 /* 9598 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
10233 /* 9601 */ GIR_EraseRootFromParent_Done,
10234 /* 9602 */ // Label 442: @9602
10235 /* 9602 */ GIM_Reject,
10236 /* 9603 */ // Label 61: @9603
10237 /* 9603 */ GIM_Try, /*On fail goto*//*Label 443*/ GIMT_Encode4(9630), // Rule ID 397 //
10238 /* 9608 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule267Enabled),
10239 /* 9611 */ // MIs[0] dst
10240 /* 9611 */ // No operand predicates
10241 /* 9611 */ // MIs[0] lhs
10242 /* 9611 */ // No operand predicates
10243 /* 9611 */ // MIs[0] rhs
10244 /* 9611 */ // No operand predicates
10245 /* 9611 */ // MIs[0] scale
10246 /* 9611 */ // No operand predicates
10247 /* 9611 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner51),
10248 /* 9615 */ // Combiner Rule #267: G_UMULFIX_commute_constant_to_rhs
10249 /* 9615 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UMULFIX),
10250 /* 9618 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10251 /* 9620 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
10252 /* 9622 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
10253 /* 9624 */ GIR_RootToRootCopy, /*OpIdx*/3, // scale
10254 /* 9626 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
10255 /* 9629 */ GIR_EraseRootFromParent_Done,
10256 /* 9630 */ // Label 443: @9630
10257 /* 9630 */ GIM_Reject,
10258 /* 9631 */ // Label 62: @9631
10259 /* 9631 */ GIM_Try, /*On fail goto*//*Label 444*/ GIMT_Encode4(9658), // Rule ID 398 //
10260 /* 9636 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule268Enabled),
10261 /* 9639 */ // MIs[0] dst
10262 /* 9639 */ // No operand predicates
10263 /* 9639 */ // MIs[0] lhs
10264 /* 9639 */ // No operand predicates
10265 /* 9639 */ // MIs[0] rhs
10266 /* 9639 */ // No operand predicates
10267 /* 9639 */ // MIs[0] scale
10268 /* 9639 */ // No operand predicates
10269 /* 9639 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner51),
10270 /* 9643 */ // Combiner Rule #268: G_SMULFIXSAT_commute_constant_to_rhs
10271 /* 9643 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SMULFIXSAT),
10272 /* 9646 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10273 /* 9648 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
10274 /* 9650 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
10275 /* 9652 */ GIR_RootToRootCopy, /*OpIdx*/3, // scale
10276 /* 9654 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
10277 /* 9657 */ GIR_EraseRootFromParent_Done,
10278 /* 9658 */ // Label 444: @9658
10279 /* 9658 */ GIM_Reject,
10280 /* 9659 */ // Label 63: @9659
10281 /* 9659 */ GIM_Try, /*On fail goto*//*Label 445*/ GIMT_Encode4(9686), // Rule ID 399 //
10282 /* 9664 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule269Enabled),
10283 /* 9667 */ // MIs[0] dst
10284 /* 9667 */ // No operand predicates
10285 /* 9667 */ // MIs[0] lhs
10286 /* 9667 */ // No operand predicates
10287 /* 9667 */ // MIs[0] rhs
10288 /* 9667 */ // No operand predicates
10289 /* 9667 */ // MIs[0] scale
10290 /* 9667 */ // No operand predicates
10291 /* 9667 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner51),
10292 /* 9671 */ // Combiner Rule #269: G_UMULFIXSAT_commute_constant_to_rhs
10293 /* 9671 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UMULFIXSAT),
10294 /* 9674 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10295 /* 9676 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
10296 /* 9678 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
10297 /* 9680 */ GIR_RootToRootCopy, /*OpIdx*/3, // scale
10298 /* 9682 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
10299 /* 9685 */ GIR_EraseRootFromParent_Done,
10300 /* 9686 */ // Label 445: @9686
10301 /* 9686 */ GIM_Reject,
10302 /* 9687 */ // Label 64: @9687
10303 /* 9687 */ GIM_Try, /*On fail goto*//*Label 446*/ GIMT_Encode4(9716), // Rule ID 160 //
10304 /* 9692 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule115Enabled),
10305 /* 9695 */ GIM_MIFlags, /*MI*/0, GIMT_Encode4(MachineInstr::FmNsz),
10306 /* 9701 */ // MIs[0] dst
10307 /* 9701 */ // No operand predicates
10308 /* 9701 */ // MIs[0] x
10309 /* 9701 */ // No operand predicates
10310 /* 9701 */ // MIs[0] y
10311 /* 9701 */ // No operand predicates
10312 /* 9701 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner21),
10313 /* 9705 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
10314 /* 9710 */ // Combiner Rule #115: right_identity_neg_zero_fp_nsz
10315 /* 9710 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
10316 /* 9715 */ GIR_EraseRootFromParent_Done,
10317 /* 9716 */ // Label 446: @9716
10318 /* 9716 */ GIM_Try, /*On fail goto*//*Label 447*/ GIMT_Encode4(9753), // Rule ID 327 //
10319 /* 9721 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule221Enabled),
10320 /* 9724 */ // MIs[0] dst
10321 /* 9724 */ // No operand predicates
10322 /* 9724 */ // MIs[0] negy
10323 /* 9724 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
10324 /* 9728 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FNEG),
10325 /* 9732 */ // MIs[1] y
10326 /* 9732 */ // No operand predicates
10327 /* 9732 */ // MIs[0] x
10328 /* 9732 */ // No operand predicates
10329 /* 9732 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner44),
10330 /* 9736 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
10331 /* 9738 */ // Combiner Rule #221: redundant_neg_operands_fadd_lhs
10332 /* 9738 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FSUB),
10333 /* 9741 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10334 /* 9743 */ GIR_RootToRootCopy, /*OpIdx*/2, // x
10335 /* 9745 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // y
10336 /* 9749 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
10337 /* 9752 */ GIR_EraseRootFromParent_Done,
10338 /* 9753 */ // Label 447: @9753
10339 /* 9753 */ GIM_Try, /*On fail goto*//*Label 448*/ GIMT_Encode4(9790), // Rule ID 326 //
10340 /* 9758 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule220Enabled),
10341 /* 9761 */ // MIs[0] dst
10342 /* 9761 */ // No operand predicates
10343 /* 9761 */ // MIs[0] x
10344 /* 9761 */ // No operand predicates
10345 /* 9761 */ // MIs[0] negy
10346 /* 9761 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
10347 /* 9765 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FNEG),
10348 /* 9769 */ // MIs[1] y
10349 /* 9769 */ // No operand predicates
10350 /* 9769 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner44),
10351 /* 9773 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
10352 /* 9775 */ // Combiner Rule #220: redundant_neg_operands_fadd_rhs
10353 /* 9775 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FSUB),
10354 /* 9778 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10355 /* 9780 */ GIR_RootToRootCopy, /*OpIdx*/1, // x
10356 /* 9782 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // y
10357 /* 9786 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
10358 /* 9789 */ GIR_EraseRootFromParent_Done,
10359 /* 9790 */ // Label 448: @9790
10360 /* 9790 */ GIM_Try, /*On fail goto*//*Label 449*/ GIMT_Encode4(9813), // Rule ID 159 //
10361 /* 9795 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule114Enabled),
10362 /* 9798 */ // MIs[0] dst
10363 /* 9798 */ // No operand predicates
10364 /* 9798 */ // MIs[0] x
10365 /* 9798 */ // No operand predicates
10366 /* 9798 */ // MIs[0] y
10367 /* 9798 */ // No operand predicates
10368 /* 9798 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner20),
10369 /* 9802 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
10370 /* 9807 */ // Combiner Rule #114: right_identity_neg_zero_fp
10371 /* 9807 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
10372 /* 9812 */ GIR_EraseRootFromParent_Done,
10373 /* 9813 */ // Label 449: @9813
10374 /* 9813 */ GIM_Try, /*On fail goto*//*Label 450*/ GIMT_Encode4(9838), // Rule ID 404 //
10375 /* 9818 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule274Enabled),
10376 /* 9821 */ // MIs[0] dst
10377 /* 9821 */ // No operand predicates
10378 /* 9821 */ // MIs[0] lhs
10379 /* 9821 */ // No operand predicates
10380 /* 9821 */ // MIs[0] rhs
10381 /* 9821 */ // No operand predicates
10382 /* 9821 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner52),
10383 /* 9825 */ // Combiner Rule #274: G_FADD_commute_fp_constant_to_rhs
10384 /* 9825 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FADD),
10385 /* 9828 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10386 /* 9830 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
10387 /* 9832 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
10388 /* 9834 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
10389 /* 9837 */ GIR_EraseRootFromParent_Done,
10390 /* 9838 */ // Label 450: @9838
10391 /* 9838 */ GIM_Try, /*On fail goto*//*Label 451*/ GIMT_Encode4(9849), // Rule ID 299 //
10392 /* 9843 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule214Enabled),
10393 /* 9846 */ // MIs[0] d
10394 /* 9846 */ // No operand predicates
10395 /* 9846 */ // MIs[0] mi.src0
10396 /* 9846 */ // No operand predicates
10397 /* 9846 */ // MIs[0] mi.src1
10398 /* 9846 */ // No operand predicates
10399 /* 9846 */ // Combiner Rule #214: constant_fold_fp_binop @ [mi[0]]
10400 /* 9846 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
10401 /* 9849 */ // Label 451: @9849
10402 /* 9849 */ GIM_Try, /*On fail goto*//*Label 452*/ GIMT_Encode4(9860), // Rule ID 334 //
10403 /* 9854 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule228Enabled),
10404 /* 9857 */ // MIs[0] dst
10405 /* 9857 */ // No operand predicates
10406 /* 9857 */ // MIs[0] src1
10407 /* 9857 */ // No operand predicates
10408 /* 9857 */ // MIs[0] src2
10409 /* 9857 */ // No operand predicates
10410 /* 9857 */ // Combiner Rule #228: combine_fadd_fmul_to_fmad_or_fma
10411 /* 9857 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner86),
10412 /* 9860 */ // Label 452: @9860
10413 /* 9860 */ GIM_Try, /*On fail goto*//*Label 453*/ GIMT_Encode4(9871), // Rule ID 335 //
10414 /* 9865 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule229Enabled),
10415 /* 9868 */ // MIs[0] dst
10416 /* 9868 */ // No operand predicates
10417 /* 9868 */ // MIs[0] src1
10418 /* 9868 */ // No operand predicates
10419 /* 9868 */ // MIs[0] src2
10420 /* 9868 */ // No operand predicates
10421 /* 9868 */ // Combiner Rule #229: combine_fadd_fpext_fmul_to_fmad_or_fma
10422 /* 9868 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner87),
10423 /* 9871 */ // Label 453: @9871
10424 /* 9871 */ GIM_Try, /*On fail goto*//*Label 454*/ GIMT_Encode4(9882), // Rule ID 336 //
10425 /* 9876 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule230Enabled),
10426 /* 9879 */ // MIs[0] dst
10427 /* 9879 */ // No operand predicates
10428 /* 9879 */ // MIs[0] src1
10429 /* 9879 */ // No operand predicates
10430 /* 9879 */ // MIs[0] src2
10431 /* 9879 */ // No operand predicates
10432 /* 9879 */ // Combiner Rule #230: combine_fadd_fma_fmul_to_fmad_or_fma
10433 /* 9879 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner88),
10434 /* 9882 */ // Label 454: @9882
10435 /* 9882 */ GIM_Try, /*On fail goto*//*Label 455*/ GIMT_Encode4(9893), // Rule ID 337 //
10436 /* 9887 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule231Enabled),
10437 /* 9890 */ // MIs[0] dst
10438 /* 9890 */ // No operand predicates
10439 /* 9890 */ // MIs[0] src1
10440 /* 9890 */ // No operand predicates
10441 /* 9890 */ // MIs[0] src2
10442 /* 9890 */ // No operand predicates
10443 /* 9890 */ // Combiner Rule #231: combine_fadd_fpext_fma_fmul_to_fmad_or_fma
10444 /* 9890 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner89),
10445 /* 9893 */ // Label 455: @9893
10446 /* 9893 */ GIM_Try, /*On fail goto*//*Label 456*/ GIMT_Encode4(9904), // Rule ID 360 //
10447 /* 9898 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule237Enabled),
10448 /* 9901 */ // MIs[0] root
10449 /* 9901 */ // No operand predicates
10450 /* 9901 */ // MIs[0] mi.x
10451 /* 9901 */ // No operand predicates
10452 /* 9901 */ // MIs[0] mi.y
10453 /* 9901 */ // No operand predicates
10454 /* 9901 */ // Combiner Rule #237: fold_binop_into_select_b @ [mi[5]]
10455 /* 9901 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
10456 /* 9904 */ // Label 456: @9904
10457 /* 9904 */ GIM_Reject,
10458 /* 9905 */ // Label 65: @9905
10459 /* 9905 */ GIM_Try, /*On fail goto*//*Label 457*/ GIMT_Encode4(9946), // Rule ID 382 //
10460 /* 9910 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule252Enabled),
10461 /* 9913 */ // MIs[0] dst
10462 /* 9913 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
10463 /* 9917 */ // MIs[0] lhs
10464 /* 9917 */ // No operand predicates
10465 /* 9917 */ // MIs[0] rhs
10466 /* 9917 */ // No operand predicates
10467 /* 9917 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner50),
10468 /* 9921 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
10469 /* 9924 */ // Combiner Rule #252: fsub_to_fneg
10470 /* 9924 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FCANONICALIZE),
10471 /* 9927 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
10472 /* 9932 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
10473 /* 9934 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FNEG),
10474 /* 9938 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
10475 /* 9942 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
10476 /* 9945 */ GIR_EraseRootFromParent_Done,
10477 /* 9946 */ // Label 457: @9946
10478 /* 9946 */ GIM_Try, /*On fail goto*//*Label 458*/ GIMT_Encode4(9983), // Rule ID 328 //
10479 /* 9951 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule222Enabled),
10480 /* 9954 */ // MIs[0] dst
10481 /* 9954 */ // No operand predicates
10482 /* 9954 */ // MIs[0] x
10483 /* 9954 */ // No operand predicates
10484 /* 9954 */ // MIs[0] negy
10485 /* 9954 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
10486 /* 9958 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FNEG),
10487 /* 9962 */ // MIs[1] y
10488 /* 9962 */ // No operand predicates
10489 /* 9962 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner45),
10490 /* 9966 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
10491 /* 9968 */ // Combiner Rule #222: redundant_neg_operands_fsub
10492 /* 9968 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FADD),
10493 /* 9971 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10494 /* 9973 */ GIR_RootToRootCopy, /*OpIdx*/1, // x
10495 /* 9975 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // y
10496 /* 9979 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
10497 /* 9982 */ GIR_EraseRootFromParent_Done,
10498 /* 9983 */ // Label 458: @9983
10499 /* 9983 */ GIM_Try, /*On fail goto*//*Label 459*/ GIMT_Encode4(9994), // Rule ID 300 //
10500 /* 9988 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule214Enabled),
10501 /* 9991 */ // MIs[0] d
10502 /* 9991 */ // No operand predicates
10503 /* 9991 */ // MIs[0] mi.src0
10504 /* 9991 */ // No operand predicates
10505 /* 9991 */ // MIs[0] mi.src1
10506 /* 9991 */ // No operand predicates
10507 /* 9991 */ // Combiner Rule #214: constant_fold_fp_binop @ [mi[1]]
10508 /* 9991 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
10509 /* 9994 */ // Label 459: @9994
10510 /* 9994 */ GIM_Try, /*On fail goto*//*Label 460*/ GIMT_Encode4(10005), // Rule ID 338 //
10511 /* 9999 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule232Enabled),
10512 /* 10002 */ // MIs[0] dst
10513 /* 10002 */ // No operand predicates
10514 /* 10002 */ // MIs[0] src1
10515 /* 10002 */ // No operand predicates
10516 /* 10002 */ // MIs[0] src2
10517 /* 10002 */ // No operand predicates
10518 /* 10002 */ // Combiner Rule #232: combine_fsub_fmul_to_fmad_or_fma
10519 /* 10002 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner90),
10520 /* 10005 */ // Label 460: @10005
10521 /* 10005 */ GIM_Try, /*On fail goto*//*Label 461*/ GIMT_Encode4(10016), // Rule ID 339 //
10522 /* 10010 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule233Enabled),
10523 /* 10013 */ // MIs[0] dst
10524 /* 10013 */ // No operand predicates
10525 /* 10013 */ // MIs[0] src1
10526 /* 10013 */ // No operand predicates
10527 /* 10013 */ // MIs[0] src2
10528 /* 10013 */ // No operand predicates
10529 /* 10013 */ // Combiner Rule #233: combine_fsub_fneg_fmul_to_fmad_or_fma
10530 /* 10013 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner91),
10531 /* 10016 */ // Label 461: @10016
10532 /* 10016 */ GIM_Try, /*On fail goto*//*Label 462*/ GIMT_Encode4(10027), // Rule ID 340 //
10533 /* 10021 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule234Enabled),
10534 /* 10024 */ // MIs[0] dst
10535 /* 10024 */ // No operand predicates
10536 /* 10024 */ // MIs[0] src1
10537 /* 10024 */ // No operand predicates
10538 /* 10024 */ // MIs[0] src2
10539 /* 10024 */ // No operand predicates
10540 /* 10024 */ // Combiner Rule #234: combine_fsub_fpext_fmul_to_fmad_or_fma
10541 /* 10024 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner92),
10542 /* 10027 */ // Label 462: @10027
10543 /* 10027 */ GIM_Try, /*On fail goto*//*Label 463*/ GIMT_Encode4(10038), // Rule ID 341 //
10544 /* 10032 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule235Enabled),
10545 /* 10035 */ // MIs[0] dst
10546 /* 10035 */ // No operand predicates
10547 /* 10035 */ // MIs[0] src1
10548 /* 10035 */ // No operand predicates
10549 /* 10035 */ // MIs[0] src2
10550 /* 10035 */ // No operand predicates
10551 /* 10035 */ // Combiner Rule #235: combine_fsub_fpext_fneg_fmul_to_fmad_or_fma
10552 /* 10035 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner93),
10553 /* 10038 */ // Label 463: @10038
10554 /* 10038 */ GIM_Try, /*On fail goto*//*Label 464*/ GIMT_Encode4(10049), // Rule ID 361 //
10555 /* 10043 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule237Enabled),
10556 /* 10046 */ // MIs[0] root
10557 /* 10046 */ // No operand predicates
10558 /* 10046 */ // MIs[0] mi.x
10559 /* 10046 */ // No operand predicates
10560 /* 10046 */ // MIs[0] mi.y
10561 /* 10046 */ // No operand predicates
10562 /* 10046 */ // Combiner Rule #237: fold_binop_into_select_b @ [mi[6]]
10563 /* 10046 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
10564 /* 10049 */ // Label 464: @10049
10565 /* 10049 */ GIM_Reject,
10566 /* 10050 */ // Label 66: @10050
10567 /* 10050 */ GIM_Try, /*On fail goto*//*Label 465*/ GIMT_Encode4(10073), // Rule ID 149 //
10568 /* 10055 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule105Enabled),
10569 /* 10058 */ // MIs[0] dst
10570 /* 10058 */ // No operand predicates
10571 /* 10058 */ // MIs[0] x
10572 /* 10058 */ // No operand predicates
10573 /* 10058 */ // MIs[0] y
10574 /* 10058 */ // No operand predicates
10575 /* 10058 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner18),
10576 /* 10062 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
10577 /* 10067 */ // Combiner Rule #105: right_identity_one_fp
10578 /* 10067 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
10579 /* 10072 */ GIR_EraseRootFromParent_Done,
10580 /* 10073 */ // Label 465: @10073
10581 /* 10073 */ GIM_Try, /*On fail goto*//*Label 466*/ GIMT_Encode4(10093), // Rule ID 161 //
10582 /* 10078 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule116Enabled),
10583 /* 10081 */ // MIs[0] dst
10584 /* 10081 */ // No operand predicates
10585 /* 10081 */ // MIs[0] x
10586 /* 10081 */ // No operand predicates
10587 /* 10081 */ // MIs[0] y
10588 /* 10081 */ // No operand predicates
10589 /* 10081 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner22),
10590 /* 10085 */ // Combiner Rule #116: right_identity_neg_one_fp
10591 /* 10085 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FNEG),
10592 /* 10088 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10593 /* 10090 */ GIR_RootToRootCopy, /*OpIdx*/1, // x
10594 /* 10092 */ GIR_EraseRootFromParent_Done,
10595 /* 10093 */ // Label 466: @10093
10596 /* 10093 */ GIM_Try, /*On fail goto*//*Label 467*/ GIMT_Encode4(10118), // Rule ID 405 //
10597 /* 10098 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule275Enabled),
10598 /* 10101 */ // MIs[0] dst
10599 /* 10101 */ // No operand predicates
10600 /* 10101 */ // MIs[0] lhs
10601 /* 10101 */ // No operand predicates
10602 /* 10101 */ // MIs[0] rhs
10603 /* 10101 */ // No operand predicates
10604 /* 10101 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner52),
10605 /* 10105 */ // Combiner Rule #275: G_FMUL_commute_fp_constant_to_rhs
10606 /* 10105 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FMUL),
10607 /* 10108 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10608 /* 10110 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
10609 /* 10112 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
10610 /* 10114 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
10611 /* 10117 */ GIR_EraseRootFromParent_Done,
10612 /* 10118 */ // Label 467: @10118
10613 /* 10118 */ GIM_Try, /*On fail goto*//*Label 468*/ GIMT_Encode4(10161), // Rule ID 329 //
10614 /* 10123 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule223Enabled),
10615 /* 10126 */ // MIs[0] dst
10616 /* 10126 */ // No operand predicates
10617 /* 10126 */ // MIs[0] nx
10618 /* 10126 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
10619 /* 10130 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FNEG),
10620 /* 10134 */ // MIs[1] x
10621 /* 10134 */ // No operand predicates
10622 /* 10134 */ // MIs[0] ny
10623 /* 10134 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
10624 /* 10138 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_FNEG),
10625 /* 10142 */ // MIs[2] y
10626 /* 10142 */ // No operand predicates
10627 /* 10142 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
10628 /* 10144 */ // Combiner Rule #223: G_FMUL_fneg_fneg
10629 /* 10144 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FMUL),
10630 /* 10147 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10631 /* 10149 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
10632 /* 10153 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // y
10633 /* 10157 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
10634 /* 10160 */ GIR_EraseRootFromParent_Done,
10635 /* 10161 */ // Label 468: @10161
10636 /* 10161 */ GIM_Try, /*On fail goto*//*Label 469*/ GIMT_Encode4(10172), // Rule ID 301 //
10637 /* 10166 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule214Enabled),
10638 /* 10169 */ // MIs[0] d
10639 /* 10169 */ // No operand predicates
10640 /* 10169 */ // MIs[0] mi.src0
10641 /* 10169 */ // No operand predicates
10642 /* 10169 */ // MIs[0] mi.src1
10643 /* 10169 */ // No operand predicates
10644 /* 10169 */ // Combiner Rule #214: constant_fold_fp_binop @ [mi[2]]
10645 /* 10169 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
10646 /* 10172 */ // Label 469: @10172
10647 /* 10172 */ GIM_Try, /*On fail goto*//*Label 470*/ GIMT_Encode4(10183), // Rule ID 359 //
10648 /* 10177 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule237Enabled),
10649 /* 10180 */ // MIs[0] root
10650 /* 10180 */ // No operand predicates
10651 /* 10180 */ // MIs[0] mi.x
10652 /* 10180 */ // No operand predicates
10653 /* 10180 */ // MIs[0] mi.y
10654 /* 10180 */ // No operand predicates
10655 /* 10180 */ // Combiner Rule #237: fold_binop_into_select_b @ [mi[4]]
10656 /* 10180 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
10657 /* 10183 */ // Label 470: @10183
10658 /* 10183 */ GIM_Reject,
10659 /* 10184 */ // Label 67: @10184
10660 /* 10184 */ GIM_Try, /*On fail goto*//*Label 471*/ GIMT_Encode4(10229), // Rule ID 332 //
10661 /* 10189 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule226Enabled),
10662 /* 10192 */ // MIs[0] dst
10663 /* 10192 */ // No operand predicates
10664 /* 10192 */ // MIs[0] nx
10665 /* 10192 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
10666 /* 10196 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FNEG),
10667 /* 10200 */ // MIs[1] x
10668 /* 10200 */ // No operand predicates
10669 /* 10200 */ // MIs[0] ny
10670 /* 10200 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
10671 /* 10204 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_FNEG),
10672 /* 10208 */ // MIs[2] y
10673 /* 10208 */ // No operand predicates
10674 /* 10208 */ // MIs[0] z
10675 /* 10208 */ // No operand predicates
10676 /* 10208 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
10677 /* 10210 */ // Combiner Rule #226: G_FMA_fneg_fneg
10678 /* 10210 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FMA),
10679 /* 10213 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10680 /* 10215 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
10681 /* 10219 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // y
10682 /* 10223 */ GIR_RootToRootCopy, /*OpIdx*/3, // z
10683 /* 10225 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
10684 /* 10228 */ GIR_EraseRootFromParent_Done,
10685 /* 10229 */ // Label 471: @10229
10686 /* 10229 */ GIM_Try, /*On fail goto*//*Label 472*/ GIMT_Encode4(10240), // Rule ID 312 //
10687 /* 10234 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule215Enabled),
10688 /* 10237 */ // MIs[0] dst
10689 /* 10237 */ // No operand predicates
10690 /* 10237 */ // MIs[0] d.src0
10691 /* 10237 */ // No operand predicates
10692 /* 10237 */ // MIs[0] d.src1
10693 /* 10237 */ // No operand predicates
10694 /* 10237 */ // MIs[0] d.src2
10695 /* 10237 */ // No operand predicates
10696 /* 10237 */ // Combiner Rule #215: constant_fold_fma @ [d[1]]
10697 /* 10237 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner81),
10698 /* 10240 */ // Label 472: @10240
10699 /* 10240 */ GIM_Reject,
10700 /* 10241 */ // Label 68: @10241
10701 /* 10241 */ GIM_Try, /*On fail goto*//*Label 473*/ GIMT_Encode4(10286), // Rule ID 331 //
10702 /* 10246 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule225Enabled),
10703 /* 10249 */ // MIs[0] dst
10704 /* 10249 */ // No operand predicates
10705 /* 10249 */ // MIs[0] nx
10706 /* 10249 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
10707 /* 10253 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FNEG),
10708 /* 10257 */ // MIs[1] x
10709 /* 10257 */ // No operand predicates
10710 /* 10257 */ // MIs[0] ny
10711 /* 10257 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
10712 /* 10261 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_FNEG),
10713 /* 10265 */ // MIs[2] y
10714 /* 10265 */ // No operand predicates
10715 /* 10265 */ // MIs[0] z
10716 /* 10265 */ // No operand predicates
10717 /* 10265 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
10718 /* 10267 */ // Combiner Rule #225: G_FMAD_fneg_fneg
10719 /* 10267 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FMAD),
10720 /* 10270 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10721 /* 10272 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
10722 /* 10276 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // y
10723 /* 10280 */ GIR_RootToRootCopy, /*OpIdx*/3, // z
10724 /* 10282 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
10725 /* 10285 */ GIR_EraseRootFromParent_Done,
10726 /* 10286 */ // Label 473: @10286
10727 /* 10286 */ GIM_Try, /*On fail goto*//*Label 474*/ GIMT_Encode4(10297), // Rule ID 311 //
10728 /* 10291 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule215Enabled),
10729 /* 10294 */ // MIs[0] dst
10730 /* 10294 */ // No operand predicates
10731 /* 10294 */ // MIs[0] d.src0
10732 /* 10294 */ // No operand predicates
10733 /* 10294 */ // MIs[0] d.src1
10734 /* 10294 */ // No operand predicates
10735 /* 10294 */ // MIs[0] d.src2
10736 /* 10294 */ // No operand predicates
10737 /* 10294 */ // Combiner Rule #215: constant_fold_fma @ [d[0]]
10738 /* 10294 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner81),
10739 /* 10297 */ // Label 474: @10297
10740 /* 10297 */ GIM_Reject,
10741 /* 10298 */ // Label 69: @10298
10742 /* 10298 */ GIM_Try, /*On fail goto*//*Label 475*/ GIMT_Encode4(10341), // Rule ID 330 //
10743 /* 10303 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule224Enabled),
10744 /* 10306 */ // MIs[0] dst
10745 /* 10306 */ // No operand predicates
10746 /* 10306 */ // MIs[0] nx
10747 /* 10306 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
10748 /* 10310 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FNEG),
10749 /* 10314 */ // MIs[1] x
10750 /* 10314 */ // No operand predicates
10751 /* 10314 */ // MIs[0] ny
10752 /* 10314 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
10753 /* 10318 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_FNEG),
10754 /* 10322 */ // MIs[2] y
10755 /* 10322 */ // No operand predicates
10756 /* 10322 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
10757 /* 10324 */ // Combiner Rule #224: G_FDIV_fneg_fneg
10758 /* 10324 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FDIV),
10759 /* 10327 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10760 /* 10329 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
10761 /* 10333 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // y
10762 /* 10337 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
10763 /* 10340 */ GIR_EraseRootFromParent_Done,
10764 /* 10341 */ // Label 475: @10341
10765 /* 10341 */ GIM_Try, /*On fail goto*//*Label 476*/ GIMT_Encode4(10352), // Rule ID 302 //
10766 /* 10346 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule214Enabled),
10767 /* 10349 */ // MIs[0] d
10768 /* 10349 */ // No operand predicates
10769 /* 10349 */ // MIs[0] mi.src0
10770 /* 10349 */ // No operand predicates
10771 /* 10349 */ // MIs[0] mi.src1
10772 /* 10349 */ // No operand predicates
10773 /* 10349 */ // Combiner Rule #214: constant_fold_fp_binop @ [mi[3]]
10774 /* 10349 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
10775 /* 10352 */ // Label 476: @10352
10776 /* 10352 */ GIM_Try, /*On fail goto*//*Label 477*/ GIMT_Encode4(10363), // Rule ID 362 //
10777 /* 10357 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule237Enabled),
10778 /* 10360 */ // MIs[0] root
10779 /* 10360 */ // No operand predicates
10780 /* 10360 */ // MIs[0] mi.x
10781 /* 10360 */ // No operand predicates
10782 /* 10360 */ // MIs[0] mi.y
10783 /* 10360 */ // No operand predicates
10784 /* 10360 */ // Combiner Rule #237: fold_binop_into_select_b @ [mi[7]]
10785 /* 10360 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
10786 /* 10363 */ // Label 477: @10363
10787 /* 10363 */ GIM_Try, /*On fail goto*//*Label 478*/ GIMT_Encode4(10374), // Rule ID 376 //
10788 /* 10368 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule246Enabled),
10789 /* 10371 */ // MIs[0] dst
10790 /* 10371 */ // No operand predicates
10791 /* 10371 */ // MIs[0] src1
10792 /* 10371 */ // No operand predicates
10793 /* 10371 */ // MIs[0] src2
10794 /* 10371 */ // No operand predicates
10795 /* 10371 */ // Combiner Rule #246: fdiv_repeated_divison
10796 /* 10371 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner101),
10797 /* 10374 */ // Label 478: @10374
10798 /* 10374 */ GIM_Reject,
10799 /* 10375 */ // Label 70: @10375
10800 /* 10375 */ GIM_Try, /*On fail goto*//*Label 479*/ GIMT_Encode4(10386), // Rule ID 303 //
10801 /* 10380 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule214Enabled),
10802 /* 10383 */ // MIs[0] d
10803 /* 10383 */ // No operand predicates
10804 /* 10383 */ // MIs[0] mi.src0
10805 /* 10383 */ // No operand predicates
10806 /* 10383 */ // MIs[0] mi.src1
10807 /* 10383 */ // No operand predicates
10808 /* 10383 */ // Combiner Rule #214: constant_fold_fp_binop @ [mi[4]]
10809 /* 10383 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
10810 /* 10386 */ // Label 479: @10386
10811 /* 10386 */ GIM_Try, /*On fail goto*//*Label 480*/ GIMT_Encode4(10397), // Rule ID 363 //
10812 /* 10391 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule237Enabled),
10813 /* 10394 */ // MIs[0] root
10814 /* 10394 */ // No operand predicates
10815 /* 10394 */ // MIs[0] mi.x
10816 /* 10394 */ // No operand predicates
10817 /* 10394 */ // MIs[0] mi.y
10818 /* 10394 */ // No operand predicates
10819 /* 10394 */ // Combiner Rule #237: fold_binop_into_select_b @ [mi[8]]
10820 /* 10394 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
10821 /* 10397 */ // Label 480: @10397
10822 /* 10397 */ GIM_Reject,
10823 /* 10398 */ // Label 71: @10398
10824 /* 10398 */ GIM_Try, /*On fail goto*//*Label 481*/ GIMT_Encode4(10419), // Rule ID 243 //
10825 /* 10403 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule189Enabled),
10826 /* 10406 */ // MIs[0] dst
10827 /* 10406 */ // No operand predicates
10828 /* 10406 */ // MIs[0] float
10829 /* 10406 */ // No operand predicates
10830 /* 10406 */ // MIs[0] int
10831 /* 10406 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
10832 /* 10410 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
10833 /* 10414 */ // MIs[1] imm
10834 /* 10414 */ // No operand predicates
10835 /* 10414 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
10836 /* 10416 */ // Combiner Rule #189: expand_const_fpowi
10837 /* 10416 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner67),
10838 /* 10419 */ // Label 481: @10419
10839 /* 10419 */ GIM_Reject,
10840 /* 10420 */ // Label 72: @10420
10841 /* 10420 */ GIM_Try, /*On fail goto*//*Label 482*/ GIMT_Encode4(10431), // Rule ID 213 //
10842 /* 10425 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule163Enabled),
10843 /* 10428 */ // MIs[0] dst
10844 /* 10428 */ // No operand predicates
10845 /* 10428 */ // MIs[0] src0
10846 /* 10428 */ // No operand predicates
10847 /* 10428 */ // Combiner Rule #163: constant_fold_flog2
10848 /* 10428 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner63),
10849 /* 10431 */ // Label 482: @10431
10850 /* 10431 */ GIM_Reject,
10851 /* 10432 */ // Label 73: @10432
10852 /* 10432 */ GIM_Try, /*On fail goto*//*Label 483*/ GIMT_Encode4(10461), // Rule ID 147 //
10853 /* 10437 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule103Enabled),
10854 /* 10440 */ // MIs[0] dst
10855 /* 10440 */ // No operand predicates
10856 /* 10440 */ // MIs[0] t
10857 /* 10440 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
10858 /* 10444 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FNEG),
10859 /* 10448 */ // MIs[1] src
10860 /* 10448 */ // No operand predicates
10861 /* 10448 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
10862 /* 10453 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
10863 /* 10455 */ // Combiner Rule #103: fneg_fneg_fold
10864 /* 10455 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
10865 /* 10460 */ GIR_EraseRootFromParent_Done,
10866 /* 10461 */ // Label 483: @10461
10867 /* 10461 */ GIM_Try, /*On fail goto*//*Label 484*/ GIMT_Encode4(10472), // Rule ID 210 //
10868 /* 10466 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule160Enabled),
10869 /* 10469 */ // MIs[0] dst
10870 /* 10469 */ // No operand predicates
10871 /* 10469 */ // MIs[0] src0
10872 /* 10469 */ // No operand predicates
10873 /* 10469 */ // Combiner Rule #160: constant_fold_fneg
10874 /* 10469 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner63),
10875 /* 10472 */ // Label 484: @10472
10876 /* 10472 */ GIM_Reject,
10877 /* 10473 */ // Label 74: @10473
10878 /* 10473 */ GIM_Try, /*On fail goto*//*Label 485*/ GIMT_Encode4(10484), // Rule ID 215 //
10879 /* 10478 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule165Enabled),
10880 /* 10481 */ // MIs[0] dst
10881 /* 10481 */ // No operand predicates
10882 /* 10481 */ // MIs[0] src0
10883 /* 10481 */ // No operand predicates
10884 /* 10481 */ // Combiner Rule #165: constant_fold_fpext
10885 /* 10481 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner63),
10886 /* 10484 */ // Label 485: @10484
10887 /* 10484 */ GIM_Reject,
10888 /* 10485 */ // Label 75: @10485
10889 /* 10485 */ GIM_Try, /*On fail goto*//*Label 486*/ GIMT_Encode4(10518), // Rule ID 158 //
10890 /* 10490 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule113Enabled),
10891 /* 10493 */ // MIs[0] dst
10892 /* 10493 */ // No operand predicates
10893 /* 10493 */ // MIs[0] src1
10894 /* 10493 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
10895 /* 10497 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FPEXT),
10896 /* 10501 */ // MIs[1] src0
10897 /* 10501 */ // No operand predicates
10898 /* 10501 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner14),
10899 /* 10505 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
10900 /* 10510 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
10901 /* 10512 */ // Combiner Rule #113: fptrunc_fpext_fold
10902 /* 10512 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
10903 /* 10517 */ GIR_EraseRootFromParent_Done,
10904 /* 10518 */ // Label 486: @10518
10905 /* 10518 */ GIM_Try, /*On fail goto*//*Label 487*/ GIMT_Encode4(10529), // Rule ID 214 //
10906 /* 10523 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule164Enabled),
10907 /* 10526 */ // MIs[0] dst
10908 /* 10526 */ // No operand predicates
10909 /* 10526 */ // MIs[0] src0
10910 /* 10526 */ // No operand predicates
10911 /* 10526 */ // Combiner Rule #164: constant_fold_fptrunc
10912 /* 10526 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner63),
10913 /* 10529 */ // Label 487: @10529
10914 /* 10529 */ GIM_Reject,
10915 /* 10530 */ // Label 76: @10530
10916 /* 10530 */ GIM_Try, /*On fail goto*//*Label 488*/ GIMT_Encode4(10554), // Rule ID 103 //
10917 /* 10535 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule83Enabled),
10918 /* 10538 */ // MIs[0] dst
10919 /* 10538 */ // No operand predicates
10920 /* 10538 */ // MIs[0] __unary_undef_to_undef_match_0.x
10921 /* 10538 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
10922 /* 10542 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
10923 /* 10546 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
10924 /* 10548 */ // Combiner Rule #83: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[5]]
10925 /* 10548 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
10926 /* 10551 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10927 /* 10553 */ GIR_EraseRootFromParent_Done,
10928 /* 10554 */ // Label 488: @10554
10929 /* 10554 */ GIM_Reject,
10930 /* 10555 */ // Label 77: @10555
10931 /* 10555 */ GIM_Try, /*On fail goto*//*Label 489*/ GIMT_Encode4(10583), // Rule ID 449 //
10932 /* 10560 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule319Enabled),
10933 /* 10563 */ // MIs[0] dst
10934 /* 10563 */ // No operand predicates
10935 /* 10563 */ // MIs[0] floor
10936 /* 10563 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
10937 /* 10567 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FFLOOR),
10938 /* 10571 */ // MIs[1] x
10939 /* 10571 */ // No operand predicates
10940 /* 10571 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
10941 /* 10573 */ // Combiner Rule #319: fptoui_ffloor_fold
10942 /* 10573 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FPTOUI),
10943 /* 10576 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10944 /* 10578 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
10945 /* 10582 */ GIR_EraseRootFromParent_Done,
10946 /* 10583 */ // Label 489: @10583
10947 /* 10583 */ GIM_Try, /*On fail goto*//*Label 490*/ GIMT_Encode4(10607), // Rule ID 104 //
10948 /* 10588 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule83Enabled),
10949 /* 10591 */ // MIs[0] dst
10950 /* 10591 */ // No operand predicates
10951 /* 10591 */ // MIs[0] __unary_undef_to_undef_match_0.x
10952 /* 10591 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
10953 /* 10595 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
10954 /* 10599 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
10955 /* 10601 */ // Combiner Rule #83: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[6]]
10956 /* 10601 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
10957 /* 10604 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10958 /* 10606 */ GIR_EraseRootFromParent_Done,
10959 /* 10607 */ // Label 490: @10607
10960 /* 10607 */ GIM_Reject,
10961 /* 10608 */ // Label 78: @10608
10962 /* 10608 */ GIM_Try, /*On fail goto*//*Label 491*/ GIMT_Encode4(10629), // Rule ID 84 //
10963 /* 10613 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule77Enabled),
10964 /* 10616 */ // MIs[0] dst
10965 /* 10616 */ // No operand predicates
10966 /* 10616 */ // MIs[0] __undef_to_fp_zero_match_0.x
10967 /* 10616 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
10968 /* 10620 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
10969 /* 10624 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
10970 /* 10626 */ // Combiner Rule #77: undef_to_fp_zero @ [__undef_to_fp_zero_match_0[1]]
10971 /* 10626 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner30),
10972 /* 10629 */ // Label 491: @10629
10973 /* 10629 */ GIM_Try, /*On fail goto*//*Label 492*/ GIMT_Encode4(10644), // Rule ID 223 //
10974 /* 10634 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule173Enabled),
10975 /* 10637 */ // MIs[0] dst
10976 /* 10637 */ // No operand predicates
10977 /* 10637 */ // MIs[0] Operand 1
10978 /* 10637 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/1, 0,
10979 /* 10641 */ // Combiner Rule #173: itof_const_zero_fold_si
10980 /* 10641 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner30),
10981 /* 10644 */ // Label 492: @10644
10982 /* 10644 */ GIM_Reject,
10983 /* 10645 */ // Label 79: @10645
10984 /* 10645 */ GIM_Try, /*On fail goto*//*Label 493*/ GIMT_Encode4(10666), // Rule ID 83 //
10985 /* 10650 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule77Enabled),
10986 /* 10653 */ // MIs[0] dst
10987 /* 10653 */ // No operand predicates
10988 /* 10653 */ // MIs[0] __undef_to_fp_zero_match_0.x
10989 /* 10653 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
10990 /* 10657 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
10991 /* 10661 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
10992 /* 10663 */ // Combiner Rule #77: undef_to_fp_zero @ [__undef_to_fp_zero_match_0[0]]
10993 /* 10663 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner30),
10994 /* 10666 */ // Label 493: @10666
10995 /* 10666 */ GIM_Try, /*On fail goto*//*Label 494*/ GIMT_Encode4(10681), // Rule ID 224 //
10996 /* 10671 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule174Enabled),
10997 /* 10674 */ // MIs[0] dst
10998 /* 10674 */ // No operand predicates
10999 /* 10674 */ // MIs[0] Operand 1
11000 /* 10674 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/1, 0,
11001 /* 10678 */ // Combiner Rule #174: itof_const_zero_fold_ui
11002 /* 10678 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner30),
11003 /* 10681 */ // Label 494: @10681
11004 /* 10681 */ GIM_Reject,
11005 /* 10682 */ // Label 80: @10682
11006 /* 10682 */ GIM_Try, /*On fail goto*//*Label 495*/ GIMT_Encode4(10710), // Rule ID 450 //
11007 /* 10687 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule320Enabled),
11008 /* 10690 */ // MIs[0] dst
11009 /* 10690 */ // No operand predicates
11010 /* 10690 */ // MIs[0] floor
11011 /* 10690 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
11012 /* 10694 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FFLOOR),
11013 /* 10698 */ // MIs[1] x
11014 /* 10698 */ // No operand predicates
11015 /* 10698 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
11016 /* 10700 */ // Combiner Rule #320: fptouisat_ffloor_fold
11017 /* 10700 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FPTOUI_SAT),
11018 /* 10703 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
11019 /* 10705 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
11020 /* 10709 */ GIR_EraseRootFromParent_Done,
11021 /* 10710 */ // Label 495: @10710
11022 /* 10710 */ GIM_Reject,
11023 /* 10711 */ // Label 81: @10711
11024 /* 10711 */ GIM_Try, /*On fail goto*//*Label 496*/ GIMT_Encode4(10740), // Rule ID 26 //
11025 /* 10716 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule24Enabled),
11026 /* 10719 */ // MIs[0] dst
11027 /* 10719 */ // No operand predicates
11028 /* 10719 */ // MIs[0] src
11029 /* 10719 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
11030 /* 10723 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FABS),
11031 /* 10727 */ // MIs[1] __idempotent_prop_match_0.x
11032 /* 10727 */ // No operand predicates
11033 /* 10727 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
11034 /* 10732 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
11035 /* 10734 */ // Combiner Rule #24: idempotent_prop @ [__idempotent_prop_match_0[1]]
11036 /* 10734 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
11037 /* 10739 */ GIR_EraseRootFromParent_Done,
11038 /* 10740 */ // Label 496: @10740
11039 /* 10740 */ GIM_Try, /*On fail goto*//*Label 497*/ GIMT_Encode4(10768), // Rule ID 324 //
11040 /* 10745 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule218Enabled),
11041 /* 10748 */ // MIs[0] dst
11042 /* 10748 */ // No operand predicates
11043 /* 10748 */ // MIs[0] tmp
11044 /* 10748 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
11045 /* 10752 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FNEG),
11046 /* 10756 */ // MIs[1] x
11047 /* 10756 */ // No operand predicates
11048 /* 10756 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
11049 /* 10758 */ // Combiner Rule #218: fabs_fneg_fold
11050 /* 10758 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FABS),
11051 /* 10761 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
11052 /* 10763 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
11053 /* 10767 */ GIR_EraseRootFromParent_Done,
11054 /* 10768 */ // Label 497: @10768
11055 /* 10768 */ GIM_Try, /*On fail goto*//*Label 498*/ GIMT_Encode4(10779), // Rule ID 211 //
11056 /* 10773 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule161Enabled),
11057 /* 10776 */ // MIs[0] dst
11058 /* 10776 */ // No operand predicates
11059 /* 10776 */ // MIs[0] src0
11060 /* 10776 */ // No operand predicates
11061 /* 10776 */ // Combiner Rule #161: constant_fold_fabs
11062 /* 10776 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner63),
11063 /* 10779 */ // Label 498: @10779
11064 /* 10779 */ GIM_Reject,
11065 /* 10780 */ // Label 82: @10780
11066 /* 10780 */ GIM_Try, /*On fail goto*//*Label 499*/ GIMT_Encode4(10791), // Rule ID 304 //
11067 /* 10785 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule214Enabled),
11068 /* 10788 */ // MIs[0] d
11069 /* 10788 */ // No operand predicates
11070 /* 10788 */ // MIs[0] mi.src0
11071 /* 10788 */ // No operand predicates
11072 /* 10788 */ // MIs[0] mi.src1
11073 /* 10788 */ // No operand predicates
11074 /* 10788 */ // Combiner Rule #214: constant_fold_fp_binop @ [mi[5]]
11075 /* 10788 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
11076 /* 10791 */ // Label 499: @10791
11077 /* 10791 */ GIM_Reject,
11078 /* 10792 */ // Label 83: @10792
11079 /* 10792 */ GIM_Try, /*On fail goto*//*Label 500*/ GIMT_Encode4(10821), // Rule ID 27 //
11080 /* 10797 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule24Enabled),
11081 /* 10800 */ // MIs[0] dst
11082 /* 10800 */ // No operand predicates
11083 /* 10800 */ // MIs[0] src
11084 /* 10800 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
11085 /* 10804 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCANONICALIZE),
11086 /* 10808 */ // MIs[1] __idempotent_prop_match_0.x
11087 /* 10808 */ // No operand predicates
11088 /* 10808 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
11089 /* 10813 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
11090 /* 10815 */ // Combiner Rule #24: idempotent_prop @ [__idempotent_prop_match_0[2]]
11091 /* 10815 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
11092 /* 10820 */ GIR_EraseRootFromParent_Done,
11093 /* 10821 */ // Label 500: @10821
11094 /* 10821 */ GIM_Reject,
11095 /* 10822 */ // Label 84: @10822
11096 /* 10822 */ GIM_Try, /*On fail goto*//*Label 501*/ GIMT_Encode4(10845), // Rule ID 235 //
11097 /* 10827 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule185Enabled),
11098 /* 10830 */ // MIs[0] dst
11099 /* 10830 */ // No operand predicates
11100 /* 10830 */ // MIs[0] lhs
11101 /* 10830 */ // No operand predicates
11102 /* 10830 */ // MIs[0] rhs
11103 /* 10830 */ // No operand predicates
11104 /* 10830 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner35),
11105 /* 10834 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
11106 /* 10839 */ // Combiner Rule #185: minmax_nan_num_lhs @ [__minmax_nan_num_lhs_match_0[0]]
11107 /* 10839 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
11108 /* 10844 */ GIR_EraseRootFromParent_Done,
11109 /* 10845 */ // Label 501: @10845
11110 /* 10845 */ GIM_Try, /*On fail goto*//*Label 502*/ GIMT_Encode4(10868), // Rule ID 237 //
11111 /* 10850 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule186Enabled),
11112 /* 10853 */ // MIs[0] dst
11113 /* 10853 */ // No operand predicates
11114 /* 10853 */ // MIs[0] lhs
11115 /* 10853 */ // No operand predicates
11116 /* 10853 */ // MIs[0] rhs
11117 /* 10853 */ // No operand predicates
11118 /* 10853 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner36),
11119 /* 10857 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
11120 /* 10862 */ // Combiner Rule #186: minmax_nan_num_rhs @ [__minmax_nan_num_rhs_match_0[0]]
11121 /* 10862 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
11122 /* 10867 */ GIR_EraseRootFromParent_Done,
11123 /* 10868 */ // Label 502: @10868
11124 /* 10868 */ GIM_Try, /*On fail goto*//*Label 503*/ GIMT_Encode4(10893), // Rule ID 406 //
11125 /* 10873 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule276Enabled),
11126 /* 10876 */ // MIs[0] dst
11127 /* 10876 */ // No operand predicates
11128 /* 10876 */ // MIs[0] lhs
11129 /* 10876 */ // No operand predicates
11130 /* 10876 */ // MIs[0] rhs
11131 /* 10876 */ // No operand predicates
11132 /* 10876 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner52),
11133 /* 10880 */ // Combiner Rule #276: G_FMINNUM_commute_fp_constant_to_rhs
11134 /* 10880 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FMINNUM),
11135 /* 10883 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
11136 /* 10885 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
11137 /* 10887 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
11138 /* 10889 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
11139 /* 10892 */ GIR_EraseRootFromParent_Done,
11140 /* 10893 */ // Label 503: @10893
11141 /* 10893 */ GIM_Try, /*On fail goto*//*Label 504*/ GIMT_Encode4(10904), // Rule ID 305 //
11142 /* 10898 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule214Enabled),
11143 /* 10901 */ // MIs[0] d
11144 /* 10901 */ // No operand predicates
11145 /* 10901 */ // MIs[0] mi.src0
11146 /* 10901 */ // No operand predicates
11147 /* 10901 */ // MIs[0] mi.src1
11148 /* 10901 */ // No operand predicates
11149 /* 10901 */ // Combiner Rule #214: constant_fold_fp_binop @ [mi[6]]
11150 /* 10901 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
11151 /* 10904 */ // Label 504: @10904
11152 /* 10904 */ GIM_Try, /*On fail goto*//*Label 505*/ GIMT_Encode4(10915), // Rule ID 364 //
11153 /* 10909 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule237Enabled),
11154 /* 10912 */ // MIs[0] root
11155 /* 10912 */ // No operand predicates
11156 /* 10912 */ // MIs[0] mi.x
11157 /* 10912 */ // No operand predicates
11158 /* 10912 */ // MIs[0] mi.y
11159 /* 10912 */ // No operand predicates
11160 /* 10912 */ // Combiner Rule #237: fold_binop_into_select_b @ [mi[9]]
11161 /* 10912 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
11162 /* 10915 */ // Label 505: @10915
11163 /* 10915 */ GIM_Reject,
11164 /* 10916 */ // Label 85: @10916
11165 /* 10916 */ GIM_Try, /*On fail goto*//*Label 506*/ GIMT_Encode4(10939), // Rule ID 236 //
11166 /* 10921 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule185Enabled),
11167 /* 10924 */ // MIs[0] dst
11168 /* 10924 */ // No operand predicates
11169 /* 10924 */ // MIs[0] lhs
11170 /* 10924 */ // No operand predicates
11171 /* 10924 */ // MIs[0] rhs
11172 /* 10924 */ // No operand predicates
11173 /* 10924 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner35),
11174 /* 10928 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
11175 /* 10933 */ // Combiner Rule #185: minmax_nan_num_lhs @ [__minmax_nan_num_lhs_match_0[1]]
11176 /* 10933 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
11177 /* 10938 */ GIR_EraseRootFromParent_Done,
11178 /* 10939 */ // Label 506: @10939
11179 /* 10939 */ GIM_Try, /*On fail goto*//*Label 507*/ GIMT_Encode4(10962), // Rule ID 238 //
11180 /* 10944 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule186Enabled),
11181 /* 10947 */ // MIs[0] dst
11182 /* 10947 */ // No operand predicates
11183 /* 10947 */ // MIs[0] lhs
11184 /* 10947 */ // No operand predicates
11185 /* 10947 */ // MIs[0] rhs
11186 /* 10947 */ // No operand predicates
11187 /* 10947 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner36),
11188 /* 10951 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
11189 /* 10956 */ // Combiner Rule #186: minmax_nan_num_rhs @ [__minmax_nan_num_rhs_match_0[1]]
11190 /* 10956 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
11191 /* 10961 */ GIR_EraseRootFromParent_Done,
11192 /* 10962 */ // Label 507: @10962
11193 /* 10962 */ GIM_Try, /*On fail goto*//*Label 508*/ GIMT_Encode4(10987), // Rule ID 407 //
11194 /* 10967 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule277Enabled),
11195 /* 10970 */ // MIs[0] dst
11196 /* 10970 */ // No operand predicates
11197 /* 10970 */ // MIs[0] lhs
11198 /* 10970 */ // No operand predicates
11199 /* 10970 */ // MIs[0] rhs
11200 /* 10970 */ // No operand predicates
11201 /* 10970 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner52),
11202 /* 10974 */ // Combiner Rule #277: G_FMAXNUM_commute_fp_constant_to_rhs
11203 /* 10974 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FMAXNUM),
11204 /* 10977 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
11205 /* 10979 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
11206 /* 10981 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
11207 /* 10983 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
11208 /* 10986 */ GIR_EraseRootFromParent_Done,
11209 /* 10987 */ // Label 508: @10987
11210 /* 10987 */ GIM_Try, /*On fail goto*//*Label 509*/ GIMT_Encode4(10998), // Rule ID 306 //
11211 /* 10992 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule214Enabled),
11212 /* 10995 */ // MIs[0] d
11213 /* 10995 */ // No operand predicates
11214 /* 10995 */ // MIs[0] mi.src0
11215 /* 10995 */ // No operand predicates
11216 /* 10995 */ // MIs[0] mi.src1
11217 /* 10995 */ // No operand predicates
11218 /* 10995 */ // Combiner Rule #214: constant_fold_fp_binop @ [mi[7]]
11219 /* 10995 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
11220 /* 10998 */ // Label 509: @10998
11221 /* 10998 */ GIM_Try, /*On fail goto*//*Label 510*/ GIMT_Encode4(11009), // Rule ID 365 //
11222 /* 11003 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule237Enabled),
11223 /* 11006 */ // MIs[0] root
11224 /* 11006 */ // No operand predicates
11225 /* 11006 */ // MIs[0] mi.x
11226 /* 11006 */ // No operand predicates
11227 /* 11006 */ // MIs[0] mi.y
11228 /* 11006 */ // No operand predicates
11229 /* 11006 */ // Combiner Rule #237: fold_binop_into_select_b @ [mi[10]]
11230 /* 11006 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
11231 /* 11009 */ // Label 510: @11009
11232 /* 11009 */ GIM_Reject,
11233 /* 11010 */ // Label 86: @11010
11234 /* 11010 */ GIM_Try, /*On fail goto*//*Label 511*/ GIMT_Encode4(11035), // Rule ID 408 //
11235 /* 11015 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule278Enabled),
11236 /* 11018 */ // MIs[0] dst
11237 /* 11018 */ // No operand predicates
11238 /* 11018 */ // MIs[0] lhs
11239 /* 11018 */ // No operand predicates
11240 /* 11018 */ // MIs[0] rhs
11241 /* 11018 */ // No operand predicates
11242 /* 11018 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner52),
11243 /* 11022 */ // Combiner Rule #278: G_FMINNUM_IEEE_commute_fp_constant_to_rhs
11244 /* 11022 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FMINNUM_IEEE),
11245 /* 11025 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
11246 /* 11027 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
11247 /* 11029 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
11248 /* 11031 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
11249 /* 11034 */ GIR_EraseRootFromParent_Done,
11250 /* 11035 */ // Label 511: @11035
11251 /* 11035 */ GIM_Reject,
11252 /* 11036 */ // Label 87: @11036
11253 /* 11036 */ GIM_Try, /*On fail goto*//*Label 512*/ GIMT_Encode4(11061), // Rule ID 409 //
11254 /* 11041 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule279Enabled),
11255 /* 11044 */ // MIs[0] dst
11256 /* 11044 */ // No operand predicates
11257 /* 11044 */ // MIs[0] lhs
11258 /* 11044 */ // No operand predicates
11259 /* 11044 */ // MIs[0] rhs
11260 /* 11044 */ // No operand predicates
11261 /* 11044 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner52),
11262 /* 11048 */ // Combiner Rule #279: G_FMAXNUM_IEEE_commute_fp_constant_to_rhs
11263 /* 11048 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FMAXNUM_IEEE),
11264 /* 11051 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
11265 /* 11053 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
11266 /* 11055 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
11267 /* 11057 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
11268 /* 11060 */ GIR_EraseRootFromParent_Done,
11269 /* 11061 */ // Label 512: @11061
11270 /* 11061 */ GIM_Reject,
11271 /* 11062 */ // Label 88: @11062
11272 /* 11062 */ GIM_Try, /*On fail goto*//*Label 513*/ GIMT_Encode4(11085), // Rule ID 239 //
11273 /* 11067 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled),
11274 /* 11070 */ // MIs[0] dst
11275 /* 11070 */ // No operand predicates
11276 /* 11070 */ // MIs[0] lhs
11277 /* 11070 */ // No operand predicates
11278 /* 11070 */ // MIs[0] rhs
11279 /* 11070 */ // No operand predicates
11280 /* 11070 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner35),
11281 /* 11074 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
11282 /* 11079 */ // Combiner Rule #187: minmax_nan_ieee_lhs @ [__minmax_nan_ieee_lhs_match_0[0]]
11283 /* 11079 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
11284 /* 11084 */ GIR_EraseRootFromParent_Done,
11285 /* 11085 */ // Label 513: @11085
11286 /* 11085 */ GIM_Try, /*On fail goto*//*Label 514*/ GIMT_Encode4(11108), // Rule ID 241 //
11287 /* 11090 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule188Enabled),
11288 /* 11093 */ // MIs[0] dst
11289 /* 11093 */ // No operand predicates
11290 /* 11093 */ // MIs[0] lhs
11291 /* 11093 */ // No operand predicates
11292 /* 11093 */ // MIs[0] rhs
11293 /* 11093 */ // No operand predicates
11294 /* 11093 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner36),
11295 /* 11097 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
11296 /* 11102 */ // Combiner Rule #188: minmax_nan_ieee_rhs @ [__minmax_nan_ieee_rhs_match_0[0]]
11297 /* 11102 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
11298 /* 11107 */ GIR_EraseRootFromParent_Done,
11299 /* 11108 */ // Label 514: @11108
11300 /* 11108 */ GIM_Try, /*On fail goto*//*Label 515*/ GIMT_Encode4(11133), // Rule ID 410 //
11301 /* 11113 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule280Enabled),
11302 /* 11116 */ // MIs[0] dst
11303 /* 11116 */ // No operand predicates
11304 /* 11116 */ // MIs[0] lhs
11305 /* 11116 */ // No operand predicates
11306 /* 11116 */ // MIs[0] rhs
11307 /* 11116 */ // No operand predicates
11308 /* 11116 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner52),
11309 /* 11120 */ // Combiner Rule #280: G_FMINIMUM_commute_fp_constant_to_rhs
11310 /* 11120 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FMINIMUM),
11311 /* 11123 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
11312 /* 11125 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
11313 /* 11127 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
11314 /* 11129 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
11315 /* 11132 */ GIR_EraseRootFromParent_Done,
11316 /* 11133 */ // Label 515: @11133
11317 /* 11133 */ GIM_Try, /*On fail goto*//*Label 516*/ GIMT_Encode4(11144), // Rule ID 307 //
11318 /* 11138 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule214Enabled),
11319 /* 11141 */ // MIs[0] d
11320 /* 11141 */ // No operand predicates
11321 /* 11141 */ // MIs[0] mi.src0
11322 /* 11141 */ // No operand predicates
11323 /* 11141 */ // MIs[0] mi.src1
11324 /* 11141 */ // No operand predicates
11325 /* 11141 */ // Combiner Rule #214: constant_fold_fp_binop @ [mi[8]]
11326 /* 11141 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
11327 /* 11144 */ // Label 516: @11144
11328 /* 11144 */ GIM_Try, /*On fail goto*//*Label 517*/ GIMT_Encode4(11155), // Rule ID 366 //
11329 /* 11149 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule237Enabled),
11330 /* 11152 */ // MIs[0] root
11331 /* 11152 */ // No operand predicates
11332 /* 11152 */ // MIs[0] mi.x
11333 /* 11152 */ // No operand predicates
11334 /* 11152 */ // MIs[0] mi.y
11335 /* 11152 */ // No operand predicates
11336 /* 11152 */ // Combiner Rule #237: fold_binop_into_select_b @ [mi[11]]
11337 /* 11152 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
11338 /* 11155 */ // Label 517: @11155
11339 /* 11155 */ GIM_Reject,
11340 /* 11156 */ // Label 89: @11156
11341 /* 11156 */ GIM_Try, /*On fail goto*//*Label 518*/ GIMT_Encode4(11179), // Rule ID 240 //
11342 /* 11161 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled),
11343 /* 11164 */ // MIs[0] dst
11344 /* 11164 */ // No operand predicates
11345 /* 11164 */ // MIs[0] lhs
11346 /* 11164 */ // No operand predicates
11347 /* 11164 */ // MIs[0] rhs
11348 /* 11164 */ // No operand predicates
11349 /* 11164 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner35),
11350 /* 11168 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
11351 /* 11173 */ // Combiner Rule #187: minmax_nan_ieee_lhs @ [__minmax_nan_ieee_lhs_match_0[1]]
11352 /* 11173 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
11353 /* 11178 */ GIR_EraseRootFromParent_Done,
11354 /* 11179 */ // Label 518: @11179
11355 /* 11179 */ GIM_Try, /*On fail goto*//*Label 519*/ GIMT_Encode4(11202), // Rule ID 242 //
11356 /* 11184 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule188Enabled),
11357 /* 11187 */ // MIs[0] dst
11358 /* 11187 */ // No operand predicates
11359 /* 11187 */ // MIs[0] lhs
11360 /* 11187 */ // No operand predicates
11361 /* 11187 */ // MIs[0] rhs
11362 /* 11187 */ // No operand predicates
11363 /* 11187 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner36),
11364 /* 11191 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
11365 /* 11196 */ // Combiner Rule #188: minmax_nan_ieee_rhs @ [__minmax_nan_ieee_rhs_match_0[1]]
11366 /* 11196 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
11367 /* 11201 */ GIR_EraseRootFromParent_Done,
11368 /* 11202 */ // Label 519: @11202
11369 /* 11202 */ GIM_Try, /*On fail goto*//*Label 520*/ GIMT_Encode4(11227), // Rule ID 411 //
11370 /* 11207 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule281Enabled),
11371 /* 11210 */ // MIs[0] dst
11372 /* 11210 */ // No operand predicates
11373 /* 11210 */ // MIs[0] lhs
11374 /* 11210 */ // No operand predicates
11375 /* 11210 */ // MIs[0] rhs
11376 /* 11210 */ // No operand predicates
11377 /* 11210 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner52),
11378 /* 11214 */ // Combiner Rule #281: G_FMAXIMUM_commute_fp_constant_to_rhs
11379 /* 11214 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FMAXIMUM),
11380 /* 11217 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
11381 /* 11219 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
11382 /* 11221 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
11383 /* 11223 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
11384 /* 11226 */ GIR_EraseRootFromParent_Done,
11385 /* 11227 */ // Label 520: @11227
11386 /* 11227 */ GIM_Try, /*On fail goto*//*Label 521*/ GIMT_Encode4(11238), // Rule ID 308 //
11387 /* 11232 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule214Enabled),
11388 /* 11235 */ // MIs[0] d
11389 /* 11235 */ // No operand predicates
11390 /* 11235 */ // MIs[0] mi.src0
11391 /* 11235 */ // No operand predicates
11392 /* 11235 */ // MIs[0] mi.src1
11393 /* 11235 */ // No operand predicates
11394 /* 11235 */ // Combiner Rule #214: constant_fold_fp_binop @ [mi[9]]
11395 /* 11235 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
11396 /* 11238 */ // Label 521: @11238
11397 /* 11238 */ GIM_Try, /*On fail goto*//*Label 522*/ GIMT_Encode4(11249), // Rule ID 367 //
11398 /* 11243 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule237Enabled),
11399 /* 11246 */ // MIs[0] root
11400 /* 11246 */ // No operand predicates
11401 /* 11246 */ // MIs[0] mi.x
11402 /* 11246 */ // No operand predicates
11403 /* 11246 */ // MIs[0] mi.y
11404 /* 11246 */ // No operand predicates
11405 /* 11246 */ // Combiner Rule #237: fold_binop_into_select_b @ [mi[12]]
11406 /* 11246 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
11407 /* 11249 */ // Label 522: @11249
11408 /* 11249 */ GIM_Reject,
11409 /* 11250 */ // Label 90: @11250
11410 /* 11250 */ GIM_Try, /*On fail goto*//*Label 523*/ GIMT_Encode4(11261), // Rule ID 309 //
11411 /* 11255 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule214Enabled),
11412 /* 11258 */ // MIs[0] d
11413 /* 11258 */ // No operand predicates
11414 /* 11258 */ // MIs[0] mi.src0
11415 /* 11258 */ // No operand predicates
11416 /* 11258 */ // MIs[0] mi.src1
11417 /* 11258 */ // No operand predicates
11418 /* 11258 */ // Combiner Rule #214: constant_fold_fp_binop @ [mi[10]]
11419 /* 11258 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
11420 /* 11261 */ // Label 523: @11261
11421 /* 11261 */ GIM_Reject,
11422 /* 11262 */ // Label 91: @11262
11423 /* 11262 */ GIM_Try, /*On fail goto*//*Label 524*/ GIMT_Encode4(11273), // Rule ID 310 //
11424 /* 11267 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule214Enabled),
11425 /* 11270 */ // MIs[0] d
11426 /* 11270 */ // No operand predicates
11427 /* 11270 */ // MIs[0] mi.src0
11428 /* 11270 */ // No operand predicates
11429 /* 11270 */ // MIs[0] mi.src1
11430 /* 11270 */ // No operand predicates
11431 /* 11270 */ // Combiner Rule #214: constant_fold_fp_binop @ [mi[11]]
11432 /* 11270 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
11433 /* 11273 */ // Label 524: @11273
11434 /* 11273 */ GIM_Reject,
11435 /* 11274 */ // Label 92: @11274
11436 /* 11274 */ GIM_Try, /*On fail goto*//*Label 525*/ GIMT_Encode4(11315), // Rule ID 245 //
11437 /* 11279 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule191Enabled),
11438 /* 11282 */ // MIs[0] dst
11439 /* 11282 */ // No operand predicates
11440 /* 11282 */ // MIs[0] base
11441 /* 11282 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
11442 /* 11286 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
11443 /* 11290 */ // MIs[1] Operand 1
11444 /* 11290 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0),
11445 /* 11301 */ // MIs[0] offset
11446 /* 11301 */ // No operand predicates
11447 /* 11301 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner37),
11448 /* 11305 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
11449 /* 11307 */ // Combiner Rule #191: ptr_add_with_zero_scalar
11450 /* 11307 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_INTTOPTR),
11451 /* 11310 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
11452 /* 11312 */ GIR_RootToRootCopy, /*OpIdx*/2, // offset
11453 /* 11314 */ GIR_EraseRootFromParent_Done,
11454 /* 11315 */ // Label 525: @11315
11455 /* 11315 */ GIM_Try, /*On fail goto*//*Label 526*/ GIMT_Encode4(11335), // Rule ID 246 //
11456 /* 11320 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule192Enabled),
11457 /* 11323 */ // MIs[0] dst
11458 /* 11323 */ // No operand predicates
11459 /* 11323 */ // MIs[0] base
11460 /* 11323 */ // No operand predicates
11461 /* 11323 */ // MIs[0] offset
11462 /* 11323 */ // No operand predicates
11463 /* 11323 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner38),
11464 /* 11327 */ // Combiner Rule #192: ptr_add_with_zero_vector
11465 /* 11327 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_INTTOPTR),
11466 /* 11330 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
11467 /* 11332 */ GIR_RootToRootCopy, /*OpIdx*/2, // offset
11468 /* 11334 */ GIR_EraseRootFromParent_Done,
11469 /* 11335 */ // Label 526: @11335
11470 /* 11335 */ GIM_Try, /*On fail goto*//*Label 527*/ GIMT_Encode4(11372), // Rule ID 225 //
11471 /* 11340 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule175Enabled),
11472 /* 11343 */ // MIs[0] dst
11473 /* 11343 */ // No operand predicates
11474 /* 11343 */ // MIs[0] base
11475 /* 11343 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
11476 /* 11347 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_INTTOPTR),
11477 /* 11351 */ // MIs[1] c1reg
11478 /* 11351 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
11479 /* 11355 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
11480 /* 11359 */ // MIs[2] c1imm
11481 /* 11359 */ // No operand predicates
11482 /* 11359 */ // MIs[0] c2reg
11483 /* 11359 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/0, /*OpIdx*/2, // MIs[3]
11484 /* 11363 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
11485 /* 11367 */ // MIs[3] c2imm
11486 /* 11367 */ // No operand predicates
11487 /* 11367 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
11488 /* 11369 */ // Combiner Rule #175: const_ptradd_to_i2p
11489 /* 11369 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner64),
11490 /* 11372 */ // Label 527: @11372
11491 /* 11372 */ GIM_Try, /*On fail goto*//*Label 528*/ GIMT_Encode4(11395), // Rule ID 126 //
11492 /* 11377 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
11493 /* 11380 */ // MIs[0] dst
11494 /* 11380 */ // No operand predicates
11495 /* 11380 */ // MIs[0] lhs
11496 /* 11380 */ // No operand predicates
11497 /* 11380 */ // MIs[0] Operand 2
11498 /* 11380 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
11499 /* 11384 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
11500 /* 11389 */ // Combiner Rule #93: right_identity_zero @ [__right_identity_zero_match_0[7]]
11501 /* 11389 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
11502 /* 11394 */ GIR_EraseRootFromParent_Done,
11503 /* 11395 */ // Label 528: @11395
11504 /* 11395 */ GIM_Try, /*On fail goto*//*Label 529*/ GIMT_Encode4(11406), // Rule ID 171 //
11505 /* 11400 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule121Enabled),
11506 /* 11403 */ // MIs[0] dst
11507 /* 11403 */ // No operand predicates
11508 /* 11403 */ // MIs[0] base
11509 /* 11403 */ // No operand predicates
11510 /* 11403 */ // MIs[0] offset
11511 /* 11403 */ // No operand predicates
11512 /* 11403 */ // Combiner Rule #121: reassoc_ptradd
11513 /* 11403 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner40),
11514 /* 11406 */ // Label 529: @11406
11515 /* 11406 */ GIM_Try, /*On fail goto*//*Label 530*/ GIMT_Encode4(11417), // Rule ID 173 //
11516 /* 11411 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule123Enabled),
11517 /* 11414 */ // MIs[0] dst
11518 /* 11414 */ // No operand predicates
11519 /* 11414 */ // MIs[0] base
11520 /* 11414 */ // No operand predicates
11521 /* 11414 */ // MIs[0] offset
11522 /* 11414 */ // No operand predicates
11523 /* 11414 */ // Combiner Rule #123: ptr_add_immed_chain
11524 /* 11414 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner42),
11525 /* 11417 */ // Label 530: @11417
11526 /* 11417 */ GIM_Try, /*On fail goto*//*Label 531*/ GIMT_Encode4(11428), // Rule ID 282 //
11527 /* 11422 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule213Enabled),
11528 /* 11425 */ // MIs[0] d
11529 /* 11425 */ // No operand predicates
11530 /* 11425 */ // MIs[0] mi.src0
11531 /* 11425 */ // No operand predicates
11532 /* 11425 */ // MIs[0] mi.src1
11533 /* 11425 */ // No operand predicates
11534 /* 11425 */ // Combiner Rule #213: constant_fold_binop @ [mi[1]]
11535 /* 11425 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner79),
11536 /* 11428 */ // Label 531: @11428
11537 /* 11428 */ GIM_Try, /*On fail goto*//*Label 532*/ GIMT_Encode4(11439), // Rule ID 344 //
11538 /* 11433 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule236Enabled),
11539 /* 11436 */ // MIs[0] root
11540 /* 11436 */ // No operand predicates
11541 /* 11436 */ // MIs[0] mi.x
11542 /* 11436 */ // No operand predicates
11543 /* 11436 */ // MIs[0] mi.y
11544 /* 11436 */ // No operand predicates
11545 /* 11436 */ // Combiner Rule #236: fold_binop_into_select_a @ [mi[2]]
11546 /* 11436 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
11547 /* 11439 */ // Label 532: @11439
11548 /* 11439 */ GIM_Reject,
11549 /* 11440 */ // Label 93: @11440
11550 /* 11440 */ GIM_Try, /*On fail goto*//*Label 533*/ GIMT_Encode4(11465), // Rule ID 388 //
11551 /* 11445 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule258Enabled),
11552 /* 11448 */ // MIs[0] dst
11553 /* 11448 */ // No operand predicates
11554 /* 11448 */ // MIs[0] lhs
11555 /* 11448 */ // No operand predicates
11556 /* 11448 */ // MIs[0] rhs
11557 /* 11448 */ // No operand predicates
11558 /* 11448 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner51),
11559 /* 11452 */ // Combiner Rule #258: G_SMIN_commute_constant_to_rhs
11560 /* 11452 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SMIN),
11561 /* 11455 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
11562 /* 11457 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
11563 /* 11459 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
11564 /* 11461 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
11565 /* 11464 */ GIR_EraseRootFromParent_Done,
11566 /* 11465 */ // Label 533: @11465
11567 /* 11465 */ GIM_Try, /*On fail goto*//*Label 534*/ GIMT_Encode4(11476), // Rule ID 295 //
11568 /* 11470 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule213Enabled),
11569 /* 11473 */ // MIs[0] d
11570 /* 11473 */ // No operand predicates
11571 /* 11473 */ // MIs[0] mi.src0
11572 /* 11473 */ // No operand predicates
11573 /* 11473 */ // MIs[0] mi.src1
11574 /* 11473 */ // No operand predicates
11575 /* 11473 */ // Combiner Rule #213: constant_fold_binop @ [mi[14]]
11576 /* 11473 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner79),
11577 /* 11476 */ // Label 534: @11476
11578 /* 11476 */ GIM_Try, /*On fail goto*//*Label 535*/ GIMT_Encode4(11487), // Rule ID 355 //
11579 /* 11481 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule237Enabled),
11580 /* 11484 */ // MIs[0] root
11581 /* 11484 */ // No operand predicates
11582 /* 11484 */ // MIs[0] mi.x
11583 /* 11484 */ // No operand predicates
11584 /* 11484 */ // MIs[0] mi.y
11585 /* 11484 */ // No operand predicates
11586 /* 11484 */ // Combiner Rule #237: fold_binop_into_select_b @ [mi[0]]
11587 /* 11484 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
11588 /* 11487 */ // Label 535: @11487
11589 /* 11487 */ GIM_Reject,
11590 /* 11488 */ // Label 94: @11488
11591 /* 11488 */ GIM_Try, /*On fail goto*//*Label 536*/ GIMT_Encode4(11513), // Rule ID 389 //
11592 /* 11493 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule259Enabled),
11593 /* 11496 */ // MIs[0] dst
11594 /* 11496 */ // No operand predicates
11595 /* 11496 */ // MIs[0] lhs
11596 /* 11496 */ // No operand predicates
11597 /* 11496 */ // MIs[0] rhs
11598 /* 11496 */ // No operand predicates
11599 /* 11496 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner51),
11600 /* 11500 */ // Combiner Rule #259: G_SMAX_commute_constant_to_rhs
11601 /* 11500 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SMAX),
11602 /* 11503 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
11603 /* 11505 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
11604 /* 11507 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
11605 /* 11509 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
11606 /* 11512 */ GIR_EraseRootFromParent_Done,
11607 /* 11513 */ // Label 536: @11513
11608 /* 11513 */ GIM_Try, /*On fail goto*//*Label 537*/ GIMT_Encode4(11524), // Rule ID 296 //
11609 /* 11518 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule213Enabled),
11610 /* 11521 */ // MIs[0] d
11611 /* 11521 */ // No operand predicates
11612 /* 11521 */ // MIs[0] mi.src0
11613 /* 11521 */ // No operand predicates
11614 /* 11521 */ // MIs[0] mi.src1
11615 /* 11521 */ // No operand predicates
11616 /* 11521 */ // Combiner Rule #213: constant_fold_binop @ [mi[15]]
11617 /* 11521 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner79),
11618 /* 11524 */ // Label 537: @11524
11619 /* 11524 */ GIM_Try, /*On fail goto*//*Label 538*/ GIMT_Encode4(11535), // Rule ID 356 //
11620 /* 11529 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule237Enabled),
11621 /* 11532 */ // MIs[0] root
11622 /* 11532 */ // No operand predicates
11623 /* 11532 */ // MIs[0] mi.x
11624 /* 11532 */ // No operand predicates
11625 /* 11532 */ // MIs[0] mi.y
11626 /* 11532 */ // No operand predicates
11627 /* 11532 */ // Combiner Rule #237: fold_binop_into_select_b @ [mi[1]]
11628 /* 11532 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
11629 /* 11535 */ // Label 538: @11535
11630 /* 11535 */ GIM_Reject,
11631 /* 11536 */ // Label 95: @11536
11632 /* 11536 */ GIM_Try, /*On fail goto*//*Label 539*/ GIMT_Encode4(11561), // Rule ID 390 //
11633 /* 11541 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule260Enabled),
11634 /* 11544 */ // MIs[0] dst
11635 /* 11544 */ // No operand predicates
11636 /* 11544 */ // MIs[0] lhs
11637 /* 11544 */ // No operand predicates
11638 /* 11544 */ // MIs[0] rhs
11639 /* 11544 */ // No operand predicates
11640 /* 11544 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner51),
11641 /* 11548 */ // Combiner Rule #260: G_UMIN_commute_constant_to_rhs
11642 /* 11548 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UMIN),
11643 /* 11551 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
11644 /* 11553 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
11645 /* 11555 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
11646 /* 11557 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
11647 /* 11560 */ GIR_EraseRootFromParent_Done,
11648 /* 11561 */ // Label 539: @11561
11649 /* 11561 */ GIM_Try, /*On fail goto*//*Label 540*/ GIMT_Encode4(11572), // Rule ID 297 //
11650 /* 11566 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule213Enabled),
11651 /* 11569 */ // MIs[0] d
11652 /* 11569 */ // No operand predicates
11653 /* 11569 */ // MIs[0] mi.src0
11654 /* 11569 */ // No operand predicates
11655 /* 11569 */ // MIs[0] mi.src1
11656 /* 11569 */ // No operand predicates
11657 /* 11569 */ // Combiner Rule #213: constant_fold_binop @ [mi[16]]
11658 /* 11569 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner79),
11659 /* 11572 */ // Label 540: @11572
11660 /* 11572 */ GIM_Try, /*On fail goto*//*Label 541*/ GIMT_Encode4(11583), // Rule ID 357 //
11661 /* 11577 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule237Enabled),
11662 /* 11580 */ // MIs[0] root
11663 /* 11580 */ // No operand predicates
11664 /* 11580 */ // MIs[0] mi.x
11665 /* 11580 */ // No operand predicates
11666 /* 11580 */ // MIs[0] mi.y
11667 /* 11580 */ // No operand predicates
11668 /* 11580 */ // Combiner Rule #237: fold_binop_into_select_b @ [mi[2]]
11669 /* 11580 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
11670 /* 11583 */ // Label 541: @11583
11671 /* 11583 */ GIM_Reject,
11672 /* 11584 */ // Label 96: @11584
11673 /* 11584 */ GIM_Try, /*On fail goto*//*Label 542*/ GIMT_Encode4(11609), // Rule ID 391 //
11674 /* 11589 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule261Enabled),
11675 /* 11592 */ // MIs[0] dst
11676 /* 11592 */ // No operand predicates
11677 /* 11592 */ // MIs[0] lhs
11678 /* 11592 */ // No operand predicates
11679 /* 11592 */ // MIs[0] rhs
11680 /* 11592 */ // No operand predicates
11681 /* 11592 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner51),
11682 /* 11596 */ // Combiner Rule #261: G_UMAX_commute_constant_to_rhs
11683 /* 11596 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UMAX),
11684 /* 11599 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
11685 /* 11601 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
11686 /* 11603 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
11687 /* 11605 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
11688 /* 11608 */ GIR_EraseRootFromParent_Done,
11689 /* 11609 */ // Label 542: @11609
11690 /* 11609 */ GIM_Try, /*On fail goto*//*Label 543*/ GIMT_Encode4(11620), // Rule ID 298 //
11691 /* 11614 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule213Enabled),
11692 /* 11617 */ // MIs[0] d
11693 /* 11617 */ // No operand predicates
11694 /* 11617 */ // MIs[0] mi.src0
11695 /* 11617 */ // No operand predicates
11696 /* 11617 */ // MIs[0] mi.src1
11697 /* 11617 */ // No operand predicates
11698 /* 11617 */ // Combiner Rule #213: constant_fold_binop @ [mi[17]]
11699 /* 11617 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner79),
11700 /* 11620 */ // Label 543: @11620
11701 /* 11620 */ GIM_Try, /*On fail goto*//*Label 544*/ GIMT_Encode4(11631), // Rule ID 358 //
11702 /* 11625 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule237Enabled),
11703 /* 11628 */ // MIs[0] root
11704 /* 11628 */ // No operand predicates
11705 /* 11628 */ // MIs[0] mi.x
11706 /* 11628 */ // No operand predicates
11707 /* 11628 */ // MIs[0] mi.y
11708 /* 11628 */ // No operand predicates
11709 /* 11628 */ // Combiner Rule #237: fold_binop_into_select_b @ [mi[3]]
11710 /* 11628 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
11711 /* 11631 */ // Label 544: @11631
11712 /* 11631 */ GIM_Reject,
11713 /* 11632 */ // Label 97: @11632
11714 /* 11632 */ GIM_Try, /*On fail goto*//*Label 545*/ GIMT_Encode4(11653), // Rule ID 97 //
11715 /* 11637 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule82Enabled),
11716 /* 11640 */ // MIs[0] dst
11717 /* 11640 */ // No operand predicates
11718 /* 11640 */ // MIs[0] __unary_undef_to_zero_match_0.x
11719 /* 11640 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
11720 /* 11644 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
11721 /* 11648 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
11722 /* 11650 */ // Combiner Rule #82: unary_undef_to_zero @ [__unary_undef_to_zero_match_0[0]]
11723 /* 11650 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner31),
11724 /* 11653 */ // Label 545: @11653
11725 /* 11653 */ GIM_Try, /*On fail goto*//*Label 546*/ GIMT_Encode4(11664), // Rule ID 321 //
11726 /* 11658 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule217Enabled),
11727 /* 11661 */ // MIs[0] dst
11728 /* 11661 */ // No operand predicates
11729 /* 11661 */ // MIs[0] mi.src
11730 /* 11661 */ // No operand predicates
11731 /* 11661 */ // Combiner Rule #217: constant_fold_unary_int_op @ [mi[5]]
11732 /* 11661 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner83),
11733 /* 11664 */ // Label 546: @11664
11734 /* 11664 */ GIM_Reject,
11735 /* 11665 */ // Label 98: @11665
11736 /* 11665 */ GIM_Try, /*On fail goto*//*Label 547*/ GIMT_Encode4(11676), // Rule ID 209 //
11737 /* 11670 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule159Enabled),
11738 /* 11673 */ // MIs[0] tgt
11739 /* 11673 */ // No operand predicates
11740 /* 11673 */ // Combiner Rule #159: opt_brcond_by_inverting_cond
11741 /* 11673 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner62),
11742 /* 11676 */ // Label 547: @11676
11743 /* 11676 */ GIM_Reject,
11744 /* 11677 */ // Label 99: @11677
11745 /* 11677 */ GIM_Try, /*On fail goto*//*Label 548*/ GIMT_Encode4(11710), // Rule ID 31 //
11746 /* 11682 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule27Enabled),
11747 /* 11685 */ // MIs[0] root
11748 /* 11685 */ // No operand predicates
11749 /* 11685 */ // MIs[0] src
11750 /* 11685 */ // No operand predicates
11751 /* 11685 */ // MIs[0] elt
11752 /* 11685 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
11753 /* 11689 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
11754 /* 11693 */ // MIs[0] idx
11755 /* 11693 */ // No operand predicates
11756 /* 11693 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner3),
11757 /* 11697 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
11758 /* 11702 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
11759 /* 11704 */ // Combiner Rule #27: insert_vector_element_elt_undef
11760 /* 11704 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
11761 /* 11709 */ GIR_EraseRootFromParent_Done,
11762 /* 11710 */ // Label 548: @11710
11763 /* 11710 */ GIM_Try, /*On fail goto*//*Label 549*/ GIMT_Encode4(11728), // Rule ID 33 //
11764 /* 11715 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule29Enabled),
11765 /* 11718 */ // MIs[0] dst
11766 /* 11718 */ // No operand predicates
11767 /* 11718 */ // MIs[0] src
11768 /* 11718 */ // No operand predicates
11769 /* 11718 */ // MIs[0] elt
11770 /* 11718 */ // No operand predicates
11771 /* 11718 */ // MIs[0] idx
11772 /* 11718 */ // No operand predicates
11773 /* 11718 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner5),
11774 /* 11722 */ // Combiner Rule #29: insert_vector_elt_oob
11775 /* 11722 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
11776 /* 11725 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
11777 /* 11727 */ GIR_EraseRootFromParent_Done,
11778 /* 11728 */ // Label 549: @11728
11779 /* 11728 */ GIM_Try, /*On fail goto*//*Label 550*/ GIMT_Encode4(11746), // Rule ID 115 //
11780 /* 11733 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule89Enabled),
11781 /* 11736 */ // MIs[0] root
11782 /* 11736 */ // No operand predicates
11783 /* 11736 */ // MIs[0] vec
11784 /* 11736 */ // No operand predicates
11785 /* 11736 */ // MIs[0] elt
11786 /* 11736 */ // No operand predicates
11787 /* 11736 */ // MIs[0] idx
11788 /* 11736 */ // No operand predicates
11789 /* 11736 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner11),
11790 /* 11740 */ // Combiner Rule #89: insert_vec_elt_out_of_bounds
11791 /* 11740 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
11792 /* 11743 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
11793 /* 11745 */ GIR_EraseRootFromParent_Done,
11794 /* 11746 */ // Label 550: @11746
11795 /* 11746 */ GIM_Try, /*On fail goto*//*Label 551*/ GIMT_Encode4(11785), // Rule ID 45 //
11796 /* 11751 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule41Enabled),
11797 /* 11754 */ // MIs[0] root
11798 /* 11754 */ // No operand predicates
11799 /* 11754 */ // MIs[0] src
11800 /* 11754 */ // No operand predicates
11801 /* 11754 */ // MIs[0] elt
11802 /* 11754 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
11803 /* 11758 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_EXTRACT_VECTOR_ELT),
11804 /* 11762 */ // MIs[1] src
11805 /* 11762 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/1, /*OpIdx*/1, /*OtherMI*/0, /*OtherOpIdx*/1,
11806 /* 11767 */ // MIs[1] idx
11807 /* 11767 */ // No operand predicates
11808 /* 11767 */ // MIs[0] idx
11809 /* 11767 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/3, /*OtherMI*/1, /*OtherOpIdx*/2,
11810 /* 11772 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
11811 /* 11777 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
11812 /* 11779 */ // Combiner Rule #41: insert_vector_element_extract_vector_element
11813 /* 11779 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
11814 /* 11784 */ GIR_EraseRootFromParent_Done,
11815 /* 11785 */ // Label 551: @11785
11816 /* 11785 */ GIM_Try, /*On fail goto*//*Label 552*/ GIMT_Encode4(11809), // Rule ID 30 //
11817 /* 11790 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule26Enabled),
11818 /* 11793 */ // MIs[0] root
11819 /* 11793 */ // No operand predicates
11820 /* 11793 */ // MIs[0] src
11821 /* 11793 */ // No operand predicates
11822 /* 11793 */ // MIs[0] elt
11823 /* 11793 */ // No operand predicates
11824 /* 11793 */ // MIs[0] idx
11825 /* 11793 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/3, // MIs[1]
11826 /* 11797 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
11827 /* 11801 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
11828 /* 11803 */ // Combiner Rule #26: insert_vector_element_idx_undef
11829 /* 11803 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
11830 /* 11806 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
11831 /* 11808 */ GIR_EraseRootFromParent_Done,
11832 /* 11809 */ // Label 552: @11809
11833 /* 11809 */ GIM_Try, /*On fail goto*//*Label 553*/ GIMT_Encode4(11820), // Rule ID 75 //
11834 /* 11814 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule71Enabled),
11835 /* 11817 */ // MIs[0] dst
11836 /* 11817 */ // No operand predicates
11837 /* 11817 */ // MIs[0] src
11838 /* 11817 */ // No operand predicates
11839 /* 11817 */ // MIs[0] elt
11840 /* 11817 */ // No operand predicates
11841 /* 11817 */ // MIs[0] idx
11842 /* 11817 */ // No operand predicates
11843 /* 11817 */ // Combiner Rule #71: combine_insert_vec_elts_build_vector
11844 /* 11817 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner24),
11845 /* 11820 */ // Label 553: @11820
11846 /* 11820 */ GIM_Reject,
11847 /* 11821 */ // Label 100: @11821
11848 /* 11821 */ GIM_Try, /*On fail goto*//*Label 554*/ GIMT_Encode4(11839), // Rule ID 32 //
11849 /* 11826 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule28Enabled),
11850 /* 11829 */ // MIs[0] dst
11851 /* 11829 */ // No operand predicates
11852 /* 11829 */ // MIs[0] src
11853 /* 11829 */ // No operand predicates
11854 /* 11829 */ // MIs[0] idx
11855 /* 11829 */ // No operand predicates
11856 /* 11829 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner4),
11857 /* 11833 */ // Combiner Rule #28: match_extract_of_element
11858 /* 11833 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
11859 /* 11836 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
11860 /* 11838 */ GIR_EraseRootFromParent_Done,
11861 /* 11839 */ // Label 554: @11839
11862 /* 11839 */ GIM_Try, /*On fail goto*//*Label 555*/ GIMT_Encode4(11857), // Rule ID 116 //
11863 /* 11844 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled),
11864 /* 11847 */ // MIs[0] root
11865 /* 11847 */ // No operand predicates
11866 /* 11847 */ // MIs[0] vec
11867 /* 11847 */ // No operand predicates
11868 /* 11847 */ // MIs[0] idx
11869 /* 11847 */ // No operand predicates
11870 /* 11847 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner11),
11871 /* 11851 */ // Combiner Rule #90: extract_vec_elt_out_of_bounds
11872 /* 11851 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
11873 /* 11854 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
11874 /* 11856 */ GIR_EraseRootFromParent_Done,
11875 /* 11857 */ // Label 555: @11857
11876 /* 11857 */ GIM_Try, /*On fail goto*//*Label 556*/ GIMT_Encode4(11881), // Rule ID 43 //
11877 /* 11862 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule39Enabled),
11878 /* 11865 */ // MIs[0] root
11879 /* 11865 */ // No operand predicates
11880 /* 11865 */ // MIs[0] src
11881 /* 11865 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
11882 /* 11869 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR_TRUNC),
11883 /* 11873 */ GIM_CheckNumOperands, /*MI*/1, /*Expected*/9,
11884 /* 11876 */ // MIs[1] x
11885 /* 11876 */ // No operand predicates
11886 /* 11876 */ // MIs[1] y
11887 /* 11876 */ // No operand predicates
11888 /* 11876 */ // MIs[1] z
11889 /* 11876 */ // No operand predicates
11890 /* 11876 */ // MIs[1] a
11891 /* 11876 */ // No operand predicates
11892 /* 11876 */ // MIs[1] b
11893 /* 11876 */ // No operand predicates
11894 /* 11876 */ // MIs[1] c
11895 /* 11876 */ // No operand predicates
11896 /* 11876 */ // MIs[1] d
11897 /* 11876 */ // No operand predicates
11898 /* 11876 */ // MIs[1] e
11899 /* 11876 */ // No operand predicates
11900 /* 11876 */ // MIs[0] idx
11901 /* 11876 */ // No operand predicates
11902 /* 11876 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
11903 /* 11878 */ // Combiner Rule #39: extract_vector_element_build_vector_trunc8
11904 /* 11878 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner10),
11905 /* 11881 */ // Label 556: @11881
11906 /* 11881 */ GIM_Try, /*On fail goto*//*Label 557*/ GIMT_Encode4(11905), // Rule ID 42 //
11907 /* 11886 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule38Enabled),
11908 /* 11889 */ // MIs[0] root
11909 /* 11889 */ // No operand predicates
11910 /* 11889 */ // MIs[0] src
11911 /* 11889 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
11912 /* 11893 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR_TRUNC),
11913 /* 11897 */ GIM_CheckNumOperands, /*MI*/1, /*Expected*/8,
11914 /* 11900 */ // MIs[1] x
11915 /* 11900 */ // No operand predicates
11916 /* 11900 */ // MIs[1] y
11917 /* 11900 */ // No operand predicates
11918 /* 11900 */ // MIs[1] z
11919 /* 11900 */ // No operand predicates
11920 /* 11900 */ // MIs[1] a
11921 /* 11900 */ // No operand predicates
11922 /* 11900 */ // MIs[1] b
11923 /* 11900 */ // No operand predicates
11924 /* 11900 */ // MIs[1] c
11925 /* 11900 */ // No operand predicates
11926 /* 11900 */ // MIs[1] d
11927 /* 11900 */ // No operand predicates
11928 /* 11900 */ // MIs[0] idx
11929 /* 11900 */ // No operand predicates
11930 /* 11900 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
11931 /* 11902 */ // Combiner Rule #38: extract_vector_element_build_vector_trunc7
11932 /* 11902 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner10),
11933 /* 11905 */ // Label 557: @11905
11934 /* 11905 */ GIM_Try, /*On fail goto*//*Label 558*/ GIMT_Encode4(11929), // Rule ID 41 //
11935 /* 11910 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule37Enabled),
11936 /* 11913 */ // MIs[0] root
11937 /* 11913 */ // No operand predicates
11938 /* 11913 */ // MIs[0] src
11939 /* 11913 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
11940 /* 11917 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR_TRUNC),
11941 /* 11921 */ GIM_CheckNumOperands, /*MI*/1, /*Expected*/7,
11942 /* 11924 */ // MIs[1] x
11943 /* 11924 */ // No operand predicates
11944 /* 11924 */ // MIs[1] y
11945 /* 11924 */ // No operand predicates
11946 /* 11924 */ // MIs[1] z
11947 /* 11924 */ // No operand predicates
11948 /* 11924 */ // MIs[1] a
11949 /* 11924 */ // No operand predicates
11950 /* 11924 */ // MIs[1] b
11951 /* 11924 */ // No operand predicates
11952 /* 11924 */ // MIs[1] c
11953 /* 11924 */ // No operand predicates
11954 /* 11924 */ // MIs[0] idx
11955 /* 11924 */ // No operand predicates
11956 /* 11924 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
11957 /* 11926 */ // Combiner Rule #37: extract_vector_element_build_vector_trunc6
11958 /* 11926 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner10),
11959 /* 11929 */ // Label 558: @11929
11960 /* 11929 */ GIM_Try, /*On fail goto*//*Label 559*/ GIMT_Encode4(11953), // Rule ID 40 //
11961 /* 11934 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule36Enabled),
11962 /* 11937 */ // MIs[0] root
11963 /* 11937 */ // No operand predicates
11964 /* 11937 */ // MIs[0] src
11965 /* 11937 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
11966 /* 11941 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR_TRUNC),
11967 /* 11945 */ GIM_CheckNumOperands, /*MI*/1, /*Expected*/6,
11968 /* 11948 */ // MIs[1] x
11969 /* 11948 */ // No operand predicates
11970 /* 11948 */ // MIs[1] y
11971 /* 11948 */ // No operand predicates
11972 /* 11948 */ // MIs[1] z
11973 /* 11948 */ // No operand predicates
11974 /* 11948 */ // MIs[1] a
11975 /* 11948 */ // No operand predicates
11976 /* 11948 */ // MIs[1] b
11977 /* 11948 */ // No operand predicates
11978 /* 11948 */ // MIs[0] idx
11979 /* 11948 */ // No operand predicates
11980 /* 11948 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
11981 /* 11950 */ // Combiner Rule #36: extract_vector_element_build_vector_trunc5
11982 /* 11950 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner10),
11983 /* 11953 */ // Label 559: @11953
11984 /* 11953 */ GIM_Try, /*On fail goto*//*Label 560*/ GIMT_Encode4(11977), // Rule ID 39 //
11985 /* 11958 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule35Enabled),
11986 /* 11961 */ // MIs[0] root
11987 /* 11961 */ // No operand predicates
11988 /* 11961 */ // MIs[0] src
11989 /* 11961 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
11990 /* 11965 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR_TRUNC),
11991 /* 11969 */ GIM_CheckNumOperands, /*MI*/1, /*Expected*/5,
11992 /* 11972 */ // MIs[1] x
11993 /* 11972 */ // No operand predicates
11994 /* 11972 */ // MIs[1] y
11995 /* 11972 */ // No operand predicates
11996 /* 11972 */ // MIs[1] z
11997 /* 11972 */ // No operand predicates
11998 /* 11972 */ // MIs[1] a
11999 /* 11972 */ // No operand predicates
12000 /* 11972 */ // MIs[0] idx
12001 /* 11972 */ // No operand predicates
12002 /* 11972 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
12003 /* 11974 */ // Combiner Rule #35: extract_vector_element_build_vector_trunc4
12004 /* 11974 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner10),
12005 /* 11977 */ // Label 560: @11977
12006 /* 11977 */ GIM_Try, /*On fail goto*//*Label 561*/ GIMT_Encode4(12001), // Rule ID 38 //
12007 /* 11982 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule34Enabled),
12008 /* 11985 */ // MIs[0] root
12009 /* 11985 */ // No operand predicates
12010 /* 11985 */ // MIs[0] src
12011 /* 11985 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
12012 /* 11989 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR_TRUNC),
12013 /* 11993 */ GIM_CheckNumOperands, /*MI*/1, /*Expected*/4,
12014 /* 11996 */ // MIs[1] x
12015 /* 11996 */ // No operand predicates
12016 /* 11996 */ // MIs[1] y
12017 /* 11996 */ // No operand predicates
12018 /* 11996 */ // MIs[1] z
12019 /* 11996 */ // No operand predicates
12020 /* 11996 */ // MIs[0] idx
12021 /* 11996 */ // No operand predicates
12022 /* 11996 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
12023 /* 11998 */ // Combiner Rule #34: extract_vector_element_build_vector_trunc3
12024 /* 11998 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner10),
12025 /* 12001 */ // Label 561: @12001
12026 /* 12001 */ GIM_Try, /*On fail goto*//*Label 562*/ GIMT_Encode4(12035), // Rule ID 34 //
12027 /* 12006 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule30Enabled),
12028 /* 12009 */ // MIs[0] root
12029 /* 12009 */ // No operand predicates
12030 /* 12009 */ // MIs[0] src
12031 /* 12009 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
12032 /* 12013 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_INSERT_VECTOR_ELT),
12033 /* 12017 */ // MIs[1] x
12034 /* 12017 */ // No operand predicates
12035 /* 12017 */ // MIs[1] value
12036 /* 12017 */ // No operand predicates
12037 /* 12017 */ // MIs[1] idx
12038 /* 12017 */ // No operand predicates
12039 /* 12017 */ // MIs[0] idx
12040 /* 12017 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/3,
12041 /* 12022 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/2,
12042 /* 12027 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
12043 /* 12029 */ // Combiner Rule #30: extract_vector_element_not_const
12044 /* 12029 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/2,
12045 /* 12034 */ GIR_EraseRootFromParent_Done,
12046 /* 12035 */ // Label 562: @12035
12047 /* 12035 */ GIM_Try, /*On fail goto*//*Label 563*/ GIMT_Encode4(12056), // Rule ID 35 //
12048 /* 12040 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule31Enabled),
12049 /* 12043 */ // MIs[0] root
12050 /* 12043 */ // No operand predicates
12051 /* 12043 */ // MIs[0] src
12052 /* 12043 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
12053 /* 12047 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_INSERT_VECTOR_ELT),
12054 /* 12051 */ // MIs[1] x
12055 /* 12051 */ // No operand predicates
12056 /* 12051 */ // MIs[1] value
12057 /* 12051 */ // No operand predicates
12058 /* 12051 */ // MIs[1] idx2
12059 /* 12051 */ // No operand predicates
12060 /* 12051 */ // MIs[0] idx1
12061 /* 12051 */ // No operand predicates
12062 /* 12051 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
12063 /* 12053 */ // Combiner Rule #31: extract_vector_element_different_indices
12064 /* 12053 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner8),
12065 /* 12056 */ // Label 563: @12056
12066 /* 12056 */ GIM_Try, /*On fail goto*//*Label 564*/ GIMT_Encode4(12085), // Rule ID 44 //
12067 /* 12061 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule40Enabled),
12068 /* 12064 */ // MIs[0] root
12069 /* 12064 */ // No operand predicates
12070 /* 12064 */ // MIs[0] src
12071 /* 12064 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
12072 /* 12068 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SHUFFLE_VECTOR),
12073 /* 12072 */ // MIs[1] src1
12074 /* 12072 */ // No operand predicates
12075 /* 12072 */ // MIs[1] src2
12076 /* 12072 */ // No operand predicates
12077 /* 12072 */ // MIs[1] mask
12078 /* 12072 */ // No operand predicates
12079 /* 12072 */ // MIs[0] idx
12080 /* 12072 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
12081 /* 12076 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
12082 /* 12080 */ // MIs[2] imm
12083 /* 12080 */ // No operand predicates
12084 /* 12080 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
12085 /* 12082 */ // Combiner Rule #40: extract_vector_element_shuffle_vector
12086 /* 12082 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner11),
12087 /* 12085 */ // Label 564: @12085
12088 /* 12085 */ GIM_Try, /*On fail goto*//*Label 565*/ GIMT_Encode4(12109), // Rule ID 37 //
12089 /* 12090 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule33Enabled),
12090 /* 12093 */ // MIs[0] root
12091 /* 12093 */ // No operand predicates
12092 /* 12093 */ // MIs[0] src
12093 /* 12093 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
12094 /* 12097 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR_TRUNC),
12095 /* 12101 */ GIM_CheckNumOperands, /*MI*/1, /*Expected*/3,
12096 /* 12104 */ // MIs[1] x
12097 /* 12104 */ // No operand predicates
12098 /* 12104 */ // MIs[1] y
12099 /* 12104 */ // No operand predicates
12100 /* 12104 */ // MIs[0] idx
12101 /* 12104 */ // No operand predicates
12102 /* 12104 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
12103 /* 12106 */ // Combiner Rule #33: extract_vector_element_build_vector_trunc2
12104 /* 12106 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner10),
12105 /* 12109 */ // Label 565: @12109
12106 /* 12109 */ GIM_Try, /*On fail goto*//*Label 566*/ GIMT_Encode4(12141), // Rule ID 36 //
12107 /* 12114 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule32Enabled),
12108 /* 12117 */ // MIs[0] root
12109 /* 12117 */ // No operand predicates
12110 /* 12117 */ // MIs[0] src
12111 /* 12117 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
12112 /* 12121 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR),
12113 /* 12125 */ GIM_CheckNumOperandsGE, /*MI*/1, /*Expected*/2,
12114 /* 12128 */ // MIs[1] unused
12115 /* 12128 */ // No operand predicates
12116 /* 12128 */ // MIs[0] idx
12117 /* 12128 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
12118 /* 12132 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
12119 /* 12136 */ // MIs[2] imm
12120 /* 12136 */ // No operand predicates
12121 /* 12136 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
12122 /* 12138 */ // Combiner Rule #32: extract_vector_element_build_vector
12123 /* 12138 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner9),
12124 /* 12141 */ // Label 566: @12141
12125 /* 12141 */ GIM_Try, /*On fail goto*//*Label 567*/ GIMT_Encode4(12165), // Rule ID 28 //
12126 /* 12146 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule25Enabled),
12127 /* 12149 */ // MIs[0] root
12128 /* 12149 */ // No operand predicates
12129 /* 12149 */ // MIs[0] __extract_vector_element_undef_match_0.x
12130 /* 12149 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
12131 /* 12153 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
12132 /* 12157 */ // MIs[0] __extract_vector_element_undef_match_0.y
12133 /* 12157 */ // No operand predicates
12134 /* 12157 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
12135 /* 12159 */ // Combiner Rule #25: extract_vector_element_undef @ [__extract_vector_element_undef_match_0[0]]
12136 /* 12159 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
12137 /* 12162 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
12138 /* 12164 */ GIR_EraseRootFromParent_Done,
12139 /* 12165 */ // Label 567: @12165
12140 /* 12165 */ GIM_Try, /*On fail goto*//*Label 568*/ GIMT_Encode4(12189), // Rule ID 29 //
12141 /* 12170 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule25Enabled),
12142 /* 12173 */ // MIs[0] root
12143 /* 12173 */ // No operand predicates
12144 /* 12173 */ // MIs[0] __extract_vector_element_undef_match_0.x
12145 /* 12173 */ // No operand predicates
12146 /* 12173 */ // MIs[0] __extract_vector_element_undef_match_0.y
12147 /* 12173 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
12148 /* 12177 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
12149 /* 12181 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
12150 /* 12183 */ // Combiner Rule #25: extract_vector_element_undef @ [__extract_vector_element_undef_match_0[1]]
12151 /* 12183 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
12152 /* 12186 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
12153 /* 12188 */ GIR_EraseRootFromParent_Done,
12154 /* 12189 */ // Label 568: @12189
12155 /* 12189 */ GIM_Try, /*On fail goto*//*Label 569*/ GIMT_Encode4(12200), // Rule ID 76 //
12156 /* 12194 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule72Enabled),
12157 /* 12197 */ // MIs[0] dst
12158 /* 12197 */ // No operand predicates
12159 /* 12197 */ // MIs[0] src
12160 /* 12197 */ // No operand predicates
12161 /* 12197 */ // MIs[0] idx
12162 /* 12197 */ // No operand predicates
12163 /* 12197 */ // Combiner Rule #72: extract_vec_elt_build_vec
12164 /* 12197 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner25),
12165 /* 12200 */ // Label 569: @12200
12166 /* 12200 */ GIM_Try, /*On fail goto*//*Label 570*/ GIMT_Encode4(12211), // Rule ID 82 //
12167 /* 12205 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule76Enabled),
12168 /* 12208 */ // MIs[0] dst
12169 /* 12208 */ // No operand predicates
12170 /* 12208 */ // MIs[0] src
12171 /* 12208 */ // No operand predicates
12172 /* 12208 */ // MIs[0] idx
12173 /* 12208 */ // No operand predicates
12174 /* 12208 */ // Combiner Rule #76: combine_extracted_vector_load
12175 /* 12208 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner29),
12176 /* 12211 */ // Label 570: @12211
12177 /* 12211 */ GIM_Reject,
12178 /* 12212 */ // Label 101: @12212
12179 /* 12212 */ GIM_Try, /*On fail goto*//*Label 571*/ GIMT_Encode4(12230), // Rule ID 111 //
12180 /* 12217 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule85Enabled),
12181 /* 12220 */ // MIs[0] root
12182 /* 12220 */ // No operand predicates
12183 /* 12220 */ // MIs[0] src1
12184 /* 12220 */ // No operand predicates
12185 /* 12220 */ // MIs[0] src2
12186 /* 12220 */ // No operand predicates
12187 /* 12220 */ // MIs[0] mask
12188 /* 12220 */ // No operand predicates
12189 /* 12220 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner8),
12190 /* 12224 */ // Combiner Rule #85: propagate_undef_all_ops_shuffle_vector
12191 /* 12224 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
12192 /* 12227 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
12193 /* 12229 */ GIR_EraseRootFromParent_Done,
12194 /* 12230 */ // Label 571: @12230
12195 /* 12230 */ GIM_Try, /*On fail goto*//*Label 572*/ GIMT_Encode4(12248), // Rule ID 113 //
12196 /* 12235 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule87Enabled),
12197 /* 12238 */ // MIs[0] dst
12198 /* 12238 */ // No operand predicates
12199 /* 12238 */ // MIs[0] src1
12200 /* 12238 */ // No operand predicates
12201 /* 12238 */ // MIs[0] src2
12202 /* 12238 */ // No operand predicates
12203 /* 12238 */ // MIs[0] mask
12204 /* 12238 */ // No operand predicates
12205 /* 12238 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner9),
12206 /* 12242 */ // Combiner Rule #87: propagate_undef_shuffle_mask
12207 /* 12242 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
12208 /* 12245 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
12209 /* 12247 */ GIR_EraseRootFromParent_Done,
12210 /* 12248 */ // Label 572: @12248
12211 /* 12248 */ GIM_Try, /*On fail goto*//*Label 573*/ GIMT_Encode4(12269), // Rule ID 426 //
12212 /* 12253 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule296Enabled),
12213 /* 12256 */ // MIs[0] root
12214 /* 12256 */ // No operand predicates
12215 /* 12256 */ // MIs[0] src1
12216 /* 12256 */ // No operand predicates
12217 /* 12256 */ // MIs[0] undef
12218 /* 12256 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
12219 /* 12260 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
12220 /* 12264 */ // MIs[0] mask
12221 /* 12264 */ // No operand predicates
12222 /* 12264 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
12223 /* 12266 */ // Combiner Rule #296: combine_shuffle_undef_rhs
12224 /* 12266 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner111),
12225 /* 12269 */ // Label 573: @12269
12226 /* 12269 */ GIM_Try, /*On fail goto*//*Label 574*/ GIMT_Encode4(12280), // Rule ID 425 //
12227 /* 12274 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule295Enabled),
12228 /* 12277 */ // MIs[0] dst
12229 /* 12277 */ // No operand predicates
12230 /* 12277 */ // MIs[0] src1
12231 /* 12277 */ // No operand predicates
12232 /* 12277 */ // MIs[0] src2
12233 /* 12277 */ // No operand predicates
12234 /* 12277 */ // MIs[0] mask
12235 /* 12277 */ // No operand predicates
12236 /* 12277 */ // Combiner Rule #295: combine_shuffle_concat
12237 /* 12277 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner110),
12238 /* 12280 */ // Label 574: @12280
12239 /* 12280 */ GIM_Try, /*On fail goto*//*Label 575*/ GIMT_Encode4(12291), // Rule ID 427 //
12240 /* 12285 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule297Enabled),
12241 /* 12288 */ // MIs[0] dst
12242 /* 12288 */ // No operand predicates
12243 /* 12288 */ // MIs[0] src1
12244 /* 12288 */ // No operand predicates
12245 /* 12288 */ // MIs[0] src2
12246 /* 12288 */ // No operand predicates
12247 /* 12288 */ // MIs[0] mask
12248 /* 12288 */ // No operand predicates
12249 /* 12288 */ // Combiner Rule #297: combine_shuffle_disjoint_mask
12250 /* 12288 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner112),
12251 /* 12291 */ // Label 575: @12291
12252 /* 12291 */ GIM_Reject,
12253 /* 12292 */ // Label 102: @12292
12254 /* 12292 */ GIM_Try, /*On fail goto*//*Label 576*/ GIMT_Encode4(12315), // Rule ID 455 //
12255 /* 12297 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule325Enabled),
12256 /* 12300 */ // MIs[0] dst
12257 /* 12300 */ // No operand predicates
12258 /* 12300 */ // MIs[0] src
12259 /* 12300 */ // No operand predicates
12260 /* 12300 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner59),
12261 /* 12304 */ // Combiner Rule #325: cttz_to_cttz_zero_poison
12262 /* 12304 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_CTTZ_ZERO_POISON),
12263 /* 12307 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
12264 /* 12309 */ GIR_RootToRootCopy, /*OpIdx*/1, // src
12265 /* 12311 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
12266 /* 12314 */ GIR_EraseRootFromParent_Done,
12267 /* 12315 */ // Label 576: @12315
12268 /* 12315 */ GIM_Try, /*On fail goto*//*Label 577*/ GIMT_Encode4(12326), // Rule ID 318 //
12269 /* 12320 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule217Enabled),
12270 /* 12323 */ // MIs[0] dst
12271 /* 12323 */ // No operand predicates
12272 /* 12323 */ // MIs[0] mi.src
12273 /* 12323 */ // No operand predicates
12274 /* 12323 */ // Combiner Rule #217: constant_fold_unary_int_op @ [mi[2]]
12275 /* 12323 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner83),
12276 /* 12326 */ // Label 577: @12326
12277 /* 12326 */ GIM_Reject,
12278 /* 12327 */ // Label 103: @12327
12279 /* 12327 */ GIM_Try, /*On fail goto*//*Label 578*/ GIMT_Encode4(12338), // Rule ID 319 //
12280 /* 12332 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule217Enabled),
12281 /* 12335 */ // MIs[0] dst
12282 /* 12335 */ // No operand predicates
12283 /* 12335 */ // MIs[0] mi.src
12284 /* 12335 */ // No operand predicates
12285 /* 12335 */ // Combiner Rule #217: constant_fold_unary_int_op @ [mi[3]]
12286 /* 12335 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner83),
12287 /* 12338 */ // Label 578: @12338
12288 /* 12338 */ GIM_Reject,
12289 /* 12339 */ // Label 104: @12339
12290 /* 12339 */ GIM_Try, /*On fail goto*//*Label 579*/ GIMT_Encode4(12362), // Rule ID 454 //
12291 /* 12344 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule324Enabled),
12292 /* 12347 */ // MIs[0] dst
12293 /* 12347 */ // No operand predicates
12294 /* 12347 */ // MIs[0] src
12295 /* 12347 */ // No operand predicates
12296 /* 12347 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner58),
12297 /* 12351 */ // Combiner Rule #324: ctlz_to_ctlz_zero_poison
12298 /* 12351 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_CTLZ_ZERO_POISON),
12299 /* 12354 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
12300 /* 12356 */ GIR_RootToRootCopy, /*OpIdx*/1, // src
12301 /* 12358 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
12302 /* 12361 */ GIR_EraseRootFromParent_Done,
12303 /* 12362 */ // Label 579: @12362
12304 /* 12362 */ GIM_Try, /*On fail goto*//*Label 580*/ GIMT_Encode4(12373), // Rule ID 316 //
12305 /* 12367 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule217Enabled),
12306 /* 12370 */ // MIs[0] dst
12307 /* 12370 */ // No operand predicates
12308 /* 12370 */ // MIs[0] mi.src
12309 /* 12370 */ // No operand predicates
12310 /* 12370 */ // Combiner Rule #217: constant_fold_unary_int_op @ [mi[0]]
12311 /* 12370 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner83),
12312 /* 12373 */ // Label 580: @12373
12313 /* 12373 */ GIM_Try, /*On fail goto*//*Label 581*/ GIMT_Encode4(12384), // Rule ID 452 //
12314 /* 12378 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule322Enabled),
12315 /* 12381 */ // MIs[0] dst
12316 /* 12381 */ // No operand predicates
12317 /* 12381 */ // MIs[0] src
12318 /* 12381 */ // No operand predicates
12319 /* 12381 */ // Combiner Rule #322: ctlz_to_ctls
12320 /* 12381 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner127),
12321 /* 12384 */ // Label 581: @12384
12322 /* 12384 */ GIM_Reject,
12323 /* 12385 */ // Label 105: @12385
12324 /* 12385 */ GIM_Try, /*On fail goto*//*Label 582*/ GIMT_Encode4(12396), // Rule ID 317 //
12325 /* 12390 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule217Enabled),
12326 /* 12393 */ // MIs[0] dst
12327 /* 12393 */ // No operand predicates
12328 /* 12393 */ // MIs[0] mi.src
12329 /* 12393 */ // No operand predicates
12330 /* 12393 */ // Combiner Rule #217: constant_fold_unary_int_op @ [mi[1]]
12331 /* 12393 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner83),
12332 /* 12396 */ // Label 582: @12396
12333 /* 12396 */ GIM_Try, /*On fail goto*//*Label 583*/ GIMT_Encode4(12407), // Rule ID 453 //
12334 /* 12401 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule323Enabled),
12335 /* 12404 */ // MIs[0] dst
12336 /* 12404 */ // No operand predicates
12337 /* 12404 */ // MIs[0] src
12338 /* 12404 */ // No operand predicates
12339 /* 12404 */ // Combiner Rule #323: ctlz_zero_poison_to_ctls
12340 /* 12404 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner127),
12341 /* 12407 */ // Label 583: @12407
12342 /* 12407 */ GIM_Reject,
12343 /* 12408 */ // Label 106: @12408
12344 /* 12408 */ GIM_Try, /*On fail goto*//*Label 584*/ GIMT_Encode4(12419), // Rule ID 320 //
12345 /* 12413 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule217Enabled),
12346 /* 12416 */ // MIs[0] dst
12347 /* 12416 */ // No operand predicates
12348 /* 12416 */ // MIs[0] mi.src
12349 /* 12416 */ // No operand predicates
12350 /* 12416 */ // Combiner Rule #217: constant_fold_unary_int_op @ [mi[4]]
12351 /* 12416 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner83),
12352 /* 12419 */ // Label 584: @12419
12353 /* 12419 */ GIM_Reject,
12354 /* 12420 */ // Label 107: @12420
12355 /* 12420 */ GIM_Try, /*On fail goto*//*Label 585*/ GIMT_Encode4(12431), // Rule ID 322 //
12356 /* 12425 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule217Enabled),
12357 /* 12428 */ // MIs[0] dst
12358 /* 12428 */ // No operand predicates
12359 /* 12428 */ // MIs[0] mi.src
12360 /* 12428 */ // No operand predicates
12361 /* 12428 */ // Combiner Rule #217: constant_fold_unary_int_op @ [mi[6]]
12362 /* 12428 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner83),
12363 /* 12431 */ // Label 585: @12431
12364 /* 12431 */ GIM_Reject,
12365 /* 12432 */ // Label 108: @12432
12366 /* 12432 */ GIM_Try, /*On fail goto*//*Label 586*/ GIMT_Encode4(12476), // Rule ID 272 //
12367 /* 12437 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule206Enabled),
12368 /* 12440 */ // MIs[0] d
12369 /* 12440 */ // No operand predicates
12370 /* 12440 */ // MIs[0] src
12371 /* 12440 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
12372 /* 12444 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_LSHR),
12373 /* 12448 */ // MIs[1] rev
12374 /* 12448 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
12375 /* 12452 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_BITREVERSE),
12376 /* 12456 */ // MIs[2] val
12377 /* 12456 */ // No operand predicates
12378 /* 12456 */ // MIs[1] amt
12379 /* 12456 */ // No operand predicates
12380 /* 12456 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner42),
12381 /* 12460 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
12382 /* 12462 */ // Combiner Rule #206: bitreverse_lshr
12383 /* 12462 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SHL),
12384 /* 12465 */ GIR_RootToRootCopy, /*OpIdx*/0, // d
12385 /* 12467 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // val
12386 /* 12471 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // amt
12387 /* 12475 */ GIR_EraseRootFromParent_Done,
12388 /* 12476 */ // Label 586: @12476
12389 /* 12476 */ GIM_Try, /*On fail goto*//*Label 587*/ GIMT_Encode4(12520), // Rule ID 271 //
12390 /* 12481 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule205Enabled),
12391 /* 12484 */ // MIs[0] d
12392 /* 12484 */ // No operand predicates
12393 /* 12484 */ // MIs[0] src
12394 /* 12484 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
12395 /* 12488 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SHL),
12396 /* 12492 */ // MIs[1] rev
12397 /* 12492 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
12398 /* 12496 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_BITREVERSE),
12399 /* 12500 */ // MIs[2] val
12400 /* 12500 */ // No operand predicates
12401 /* 12500 */ // MIs[1] amt
12402 /* 12500 */ // No operand predicates
12403 /* 12500 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner41),
12404 /* 12504 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
12405 /* 12506 */ // Combiner Rule #205: bitreverse_shl
12406 /* 12506 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_LSHR),
12407 /* 12509 */ GIR_RootToRootCopy, /*OpIdx*/0, // d
12408 /* 12511 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // val
12409 /* 12515 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // amt
12410 /* 12519 */ GIR_EraseRootFromParent_Done,
12411 /* 12520 */ // Label 587: @12520
12412 /* 12520 */ GIM_Try, /*On fail goto*//*Label 588*/ GIMT_Encode4(12531), // Rule ID 323 //
12413 /* 12525 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule217Enabled),
12414 /* 12528 */ // MIs[0] dst
12415 /* 12528 */ // No operand predicates
12416 /* 12528 */ // MIs[0] mi.src
12417 /* 12528 */ // No operand predicates
12418 /* 12528 */ // Combiner Rule #217: constant_fold_unary_int_op @ [mi[7]]
12419 /* 12528 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner83),
12420 /* 12531 */ // Label 588: @12531
12421 /* 12531 */ GIM_Reject,
12422 /* 12532 */ // Label 109: @12532
12423 /* 12532 */ GIM_Try, /*On fail goto*//*Label 589*/ GIMT_Encode4(12543), // Rule ID 216 //
12424 /* 12537 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule166Enabled),
12425 /* 12540 */ // MIs[0] dst
12426 /* 12540 */ // No operand predicates
12427 /* 12540 */ // MIs[0] src0
12428 /* 12540 */ // No operand predicates
12429 /* 12540 */ // Combiner Rule #166: constant_fold_fceil
12430 /* 12540 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner63),
12431 /* 12543 */ // Label 589: @12543
12432 /* 12543 */ GIM_Reject,
12433 /* 12544 */ // Label 110: @12544
12434 /* 12544 */ GIM_Try, /*On fail goto*//*Label 590*/ GIMT_Encode4(12555), // Rule ID 212 //
12435 /* 12549 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule162Enabled),
12436 /* 12552 */ // MIs[0] dst
12437 /* 12552 */ // No operand predicates
12438 /* 12552 */ // MIs[0] src0
12439 /* 12552 */ // No operand predicates
12440 /* 12552 */ // Combiner Rule #162: constant_fold_fsqrt
12441 /* 12552 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner63),
12442 /* 12555 */ // Label 590: @12555
12443 /* 12555 */ GIM_Reject,
12444 /* 12556 */ // Label 111: @12556
12445 /* 12556 */ GIM_Try, /*On fail goto*//*Label 591*/ GIMT_Encode4(12567), // Rule ID 217 //
12446 /* 12561 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule167Enabled),
12447 /* 12564 */ // MIs[0] dst
12448 /* 12564 */ // No operand predicates
12449 /* 12564 */ // MIs[0] src0
12450 /* 12564 */ // No operand predicates
12451 /* 12564 */ // Combiner Rule #167: constant_fold_ffloor
12452 /* 12564 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner63),
12453 /* 12567 */ // Label 591: @12567
12454 /* 12567 */ GIM_Reject,
12455 /* 12568 */ // Label 112: @12568
12456 /* 12568 */ GIM_Try, /*On fail goto*//*Label 592*/ GIMT_Encode4(12579), // Rule ID 221 //
12457 /* 12573 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule171Enabled),
12458 /* 12576 */ // MIs[0] dst
12459 /* 12576 */ // No operand predicates
12460 /* 12576 */ // MIs[0] src0
12461 /* 12576 */ // No operand predicates
12462 /* 12576 */ // Combiner Rule #171: constant_fold_frint
12463 /* 12576 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner63),
12464 /* 12579 */ // Label 592: @12579
12465 /* 12579 */ GIM_Reject,
12466 /* 12580 */ // Label 113: @12580
12467 /* 12580 */ GIM_Try, /*On fail goto*//*Label 593*/ GIMT_Encode4(12591), // Rule ID 222 //
12468 /* 12585 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule172Enabled),
12469 /* 12588 */ // MIs[0] dst
12470 /* 12588 */ // No operand predicates
12471 /* 12588 */ // MIs[0] src0
12472 /* 12588 */ // No operand predicates
12473 /* 12588 */ // Combiner Rule #172: constant_fold_fnearbyint
12474 /* 12588 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner63),
12475 /* 12591 */ // Label 593: @12591
12476 /* 12591 */ GIM_Reject,
12477 /* 12592 */ // Label 114: @12592
12478 /* 12592 */ GIM_Reject,
12479 /* 12593 */ }; // Size: 12593 bytes
12480 return MatchTable0;
12481}
12482#undef GIMT_Encode2
12483#undef GIMT_Encode4
12484#undef GIMT_Encode8
12485
12486LLT RISCVPreLegalizerCombinerImpl::getLLTForHwMode(unsigned Index) const {
12487 llvm_unreachable("Unexpected index");
12488}
12489
12490
12491#endif // GET_GICOMBINER_IMPL
12492
12493#ifdef GET_GICOMBINER_CONSTRUCTOR_INITS
12494
12495AvailableModuleFeatures(computeAvailableModuleFeatures(&STI)),
12496AvailableFunctionFeatures()
12497
12498#endif // GET_GICOMBINER_CONSTRUCTOR_INITS
12499
12500#ifdef GET_GICOMBINER_CONSTRUCTOR_INITS
12501
12502, State(0),
12503ExecInfo(TypeObjects, NumTypeObjects, FeatureBitsets, ComplexPredicateFns, CustomRenderers)
12504
12505#endif // GET_GICOMBINER_CONSTRUCTOR_INITS
12506
12507