1/*===- TableGen'erated file -------------------------------------*- C++ -*-===*\
2|* *|
3|* AArch64PreLegalizerCombinerImpl 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 AArch64PreLegalizerCombinerImplRuleConfig {
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: // 13 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 'e': // 1 string to match.
100 if (memcmp(RuleIdentifier.data()+1, "mit_bzero", 9) != 0)
101 break;
102 return 358; // "emit_bzero"
103 case 'm': // 2 strings to match.
104 switch (RuleIdentifier[1]) {
105 default: break;
106 case 'a': // 1 string to match.
107 if (memcmp(RuleIdentifier.data()+2, "tch_ands", 8) != 0)
108 break;
109 return 282; // "match_ands"
110 case 'u': // 1 string to match.
111 if (memcmp(RuleIdentifier.data()+2, "l_to_shl", 8) != 0)
112 break;
113 return 20; // "mul_to_shl"
114 }
115 break;
116 case 'o': // 1 string to match.
117 if (memcmp(RuleIdentifier.data()+1, "r_xor_and", 9) != 0)
118 break;
119 return 289; // "or_xor_and"
120 case 'p': // 1 string to match.
121 if (memcmp(RuleIdentifier.data()+1, "2i_to_i2p", 9) != 0)
122 break;
123 return 98; // "p2i_to_i2p"
124 case 's': // 3 strings to match.
125 switch (RuleIdentifier[1]) {
126 default: break;
127 case 'e': // 2 strings to match.
128 switch (RuleIdentifier[2]) {
129 default: break;
130 case 'l': // 1 string to match.
131 if (memcmp(RuleIdentifier.data()+3, "ect_not", 7) != 0)
132 break;
133 return 144; // "select_not"
134 case 'x': // 1 string to match.
135 if (memcmp(RuleIdentifier.data()+3, "t_trunc", 7) != 0)
136 break;
137 return 292; // "sext_trunc"
138 }
139 break;
140 case 'u': // 1 string to match.
141 if (memcmp(RuleIdentifier.data()+2, "b_to_add", 8) != 0)
142 break;
143 return 21; // "sub_to_add"
144 }
145 break;
146 case 'z': // 1 string to match.
147 if (memcmp(RuleIdentifier.data()+1, "ext_trunc", 9) != 0)
148 break;
149 return 293; // "zext_trunc"
150 }
151 break;
152 case 11: // 6 strings to match.
153 switch (RuleIdentifier[0]) {
154 default: break;
155 case 'a': // 1 string to match.
156 if (memcmp(RuleIdentifier.data()+1, "dd_sub_reg", 10) != 0)
157 break;
158 return 106; // "add_sub_reg"
159 case 't': // 4 strings to match.
160 if (memcmp(RuleIdentifier.data()+1, "runc_", 5) != 0)
161 break;
162 switch (RuleIdentifier[6]) {
163 default: break;
164 case 's': // 3 strings to match.
165 switch (RuleIdentifier[7]) {
166 default: break;
167 case 'h': // 1 string to match.
168 if (memcmp(RuleIdentifier.data()+8, "ift", 3) != 0)
169 break;
170 return 157; // "trunc_shift"
171 case 's': // 2 strings to match.
172 if (memcmp(RuleIdentifier.data()+8, "at", 2) != 0)
173 break;
174 switch (RuleIdentifier[10]) {
175 default: break;
176 case 's': // 1 string to match.
177 return 315; // "trunc_ssats"
178 case 'u': // 1 string to match.
179 return 316; // "trunc_ssatu"
180 }
181 break;
182 }
183 break;
184 case 'u': // 1 string to match.
185 if (memcmp(RuleIdentifier.data()+7, "satu", 4) != 0)
186 break;
187 return 317; // "trunc_usatu"
188 }
189 break;
190 case 'u': // 1 string to match.
191 if (memcmp(RuleIdentifier.data()+1, "nmerge_cst", 10) != 0)
192 break;
193 return 302; // "unmerge_cst"
194 }
195 break;
196 case 12: // 11 strings to match.
197 switch (RuleIdentifier[0]) {
198 default: break;
199 case 'A': // 1 string to match.
200 if (memcmp(RuleIdentifier.data()+1, "PlusBMinusB", 11) != 0)
201 break;
202 return 4; // "APlusBMinusB"
203 case 'B': // 1 string to match.
204 if (memcmp(RuleIdentifier.data()+1, "MinusAPlusA", 11) != 0)
205 break;
206 return 5; // "BMinusAPlusA"
207 case 'c': // 1 string to match.
208 if (memcmp(RuleIdentifier.data()+1, "tlz_to_ctls", 11) != 0)
209 break;
210 return 322; // "ctlz_to_ctls"
211 case 'f': // 1 string to match.
212 if (memcmp(RuleIdentifier.data()+1, "sub_to_fneg", 11) != 0)
213 break;
214 return 252; // "fsub_to_fneg"
215 case 'm': // 1 string to match.
216 if (memcmp(RuleIdentifier.data()+1, "ulh_to_lshr", 11) != 0)
217 break;
218 return 219; // "mulh_to_lshr"
219 case 'n': // 1 string to match.
220 if (memcmp(RuleIdentifier.data()+1, "ot_cmp_fold", 11) != 0)
221 break;
222 return 158; // "not_cmp_fold"
223 case 'r': // 1 string to match.
224 if (memcmp(RuleIdentifier.data()+1, "edundant_or", 11) != 0)
225 break;
226 return 151; // "redundant_or"
227 case 's': // 2 strings to match.
228 switch (RuleIdentifier[1]) {
229 default: break;
230 case 'd': // 1 string to match.
231 if (memcmp(RuleIdentifier.data()+2, "iv_by_pow2", 10) != 0)
232 break;
233 return 243; // "sdiv_by_pow2"
234 case 'e': // 1 string to match.
235 if (memcmp(RuleIdentifier.data()+2, "xt_of_sext", 10) != 0)
236 break;
237 return 54; // "sext_of_sext"
238 }
239 break;
240 case 'u': // 1 string to match.
241 if (memcmp(RuleIdentifier.data()+1, "div_by_pow2", 11) != 0)
242 break;
243 return 241; // "udiv_by_pow2"
244 case 'z': // 1 string to match.
245 if (memcmp(RuleIdentifier.data()+1, "ext_of_zext", 11) != 0)
246 break;
247 return 52; // "zext_of_zext"
248 }
249 break;
250 case 13: // 18 strings to match.
251 switch (RuleIdentifier[0]) {
252 default: break;
253 case 'A': // 2 strings to match.
254 if (memcmp(RuleIdentifier.data()+1, "MinusBMinus", 11) != 0)
255 break;
256 switch (RuleIdentifier[12]) {
257 default: break;
258 case 'A': // 1 string to match.
259 return 12; // "AMinusBMinusA"
260 case 'C': // 1 string to match.
261 return 9; // "AMinusBMinusC"
262 }
263 break;
264 case 'a': // 1 string to match.
265 if (memcmp(RuleIdentifier.data()+1, "dd_of_vscale", 12) != 0)
266 break;
267 return 42; // "add_of_vscale"
268 case 'l': // 1 string to match.
269 if (memcmp(RuleIdentifier.data()+1, "oad_and_mask", 12) != 0)
270 break;
271 return 75; // "load_and_mask"
272 case 'm': // 3 strings to match.
273 switch (RuleIdentifier[1]) {
274 default: break;
275 case 'a': // 1 string to match.
276 if (memcmp(RuleIdentifier.data()+2, "tch_selects", 11) != 0)
277 break;
278 return 142; // "match_selects"
279 case 'e': // 1 string to match.
280 if (memcmp(RuleIdentifier.data()+2, "rge_unmerge", 11) != 0)
281 break;
282 return 301; // "merge_unmerge"
283 case 'u': // 1 string to match.
284 if (memcmp(RuleIdentifier.data()+2, "l_of_vscale", 11) != 0)
285 break;
286 return 43; // "mul_of_vscale"
287 }
288 break;
289 case 'r': // 1 string to match.
290 if (memcmp(RuleIdentifier.data()+1, "edundant_and", 12) != 0)
291 break;
292 return 150; // "redundant_and"
293 case 's': // 6 strings to match.
294 switch (RuleIdentifier[1]) {
295 default: break;
296 case 'a': // 1 string to match.
297 if (memcmp(RuleIdentifier.data()+2, "me_val_zero", 11) != 0)
298 break;
299 return 95; // "same_val_zero"
300 case 'd': // 1 string to match.
301 if (memcmp(RuleIdentifier.data()+2, "iv_by_const", 11) != 0)
302 break;
303 return 245; // "sdiv_by_const"
304 case 'h': // 1 string to match.
305 if (memcmp(RuleIdentifier.data()+2, "l_of_vscale", 11) != 0)
306 break;
307 return 44; // "shl_of_vscale"
308 case 'r': // 1 string to match.
309 if (memcmp(RuleIdentifier.data()+2, "em_by_const", 11) != 0)
310 break;
311 return 240; // "srem_by_const"
312 case 'u': // 2 strings to match.
313 if (memcmp(RuleIdentifier.data()+2, "b_", 2) != 0)
314 break;
315 switch (RuleIdentifier[4]) {
316 default: break;
317 case 'm': // 1 string to match.
318 if (memcmp(RuleIdentifier.data()+5, "inus_one", 8) != 0)
319 break;
320 return 329; // "sub_minus_one"
321 case 'o': // 1 string to match.
322 if (memcmp(RuleIdentifier.data()+5, "f_vscale", 8) != 0)
323 break;
324 return 45; // "sub_of_vscale"
325 }
326 break;
327 }
328 break;
329 case 'u': // 4 strings to match.
330 switch (RuleIdentifier[1]) {
331 default: break;
332 case 'd': // 1 string to match.
333 if (memcmp(RuleIdentifier.data()+2, "iv_by_const", 11) != 0)
334 break;
335 return 244; // "udiv_by_const"
336 case 'n': // 2 strings to match.
337 if (memcmp(RuleIdentifier.data()+2, "merge_", 6) != 0)
338 break;
339 switch (RuleIdentifier[8]) {
340 default: break;
341 case 'm': // 1 string to match.
342 if (memcmp(RuleIdentifier.data()+9, "erge", 4) != 0)
343 break;
344 return 300; // "unmerge_merge"
345 case 'u': // 1 string to match.
346 if (memcmp(RuleIdentifier.data()+9, "ndef", 4) != 0)
347 break;
348 return 303; // "unmerge_undef"
349 }
350 break;
351 case 'r': // 1 string to match.
352 if (memcmp(RuleIdentifier.data()+2, "em_by_const", 11) != 0)
353 break;
354 return 239; // "urem_by_const"
355 }
356 break;
357 }
358 break;
359 case 14: // 20 strings to match.
360 switch (RuleIdentifier[0]) {
361 default: break;
362 case 'A': // 2 strings to match.
363 switch (RuleIdentifier[1]) {
364 default: break;
365 case 'M': // 1 string to match.
366 if (memcmp(RuleIdentifier.data()+2, "inusC1PlusC2", 12) != 0)
367 break;
368 return 18; // "AMinusC1PlusC2"
369 case 'P': // 1 string to match.
370 if (memcmp(RuleIdentifier.data()+2, "lusC1MinusC2", 12) != 0)
371 break;
372 return 14; // "APlusC1MinusC2"
373 }
374 break;
375 case 'C': // 1 string to match.
376 if (memcmp(RuleIdentifier.data()+1, "2MinusAPlusC1", 13) != 0)
377 break;
378 return 15; // "C2MinusAPlusC1"
379 case 'N': // 1 string to match.
380 if (memcmp(RuleIdentifier.data()+1, "otAPlusNegOne", 13) != 0)
381 break;
382 return 13; // "NotAPlusNegOne"
383 case 'a': // 2 strings to match.
384 if (memcmp(RuleIdentifier.data()+1, "nyext_of_", 9) != 0)
385 break;
386 switch (RuleIdentifier[10]) {
387 default: break;
388 case 's': // 1 string to match.
389 if (memcmp(RuleIdentifier.data()+11, "ext", 3) != 0)
390 break;
391 return 58; // "anyext_of_sext"
392 case 'z': // 1 string to match.
393 if (memcmp(RuleIdentifier.data()+11, "ext", 3) != 0)
394 break;
395 return 57; // "anyext_of_zext"
396 }
397 break;
398 case 'b': // 3 strings to match.
399 if (RuleIdentifier[1] != 'i')
400 break;
401 switch (RuleIdentifier[2]) {
402 default: break;
403 case 'n': // 2 strings to match.
404 if (memcmp(RuleIdentifier.data()+3, "op_", 3) != 0)
405 break;
406 switch (RuleIdentifier[6]) {
407 default: break;
408 case 's': // 1 string to match.
409 if (memcmp(RuleIdentifier.data()+7, "ame_val", 7) != 0)
410 break;
411 return 94; // "binop_same_val"
412 case 'w': // 1 string to match.
413 if (memcmp(RuleIdentifier.data()+7, "ith_neg", 7) != 0)
414 break;
415 return 328; // "binop_with_neg"
416 }
417 break;
418 case 't': // 1 string to match.
419 if (memcmp(RuleIdentifier.data()+3, "reverse_shl", 11) != 0)
420 break;
421 return 205; // "bitreverse_shl"
422 }
423 break;
424 case 'c': // 2 strings to match.
425 if (memcmp(RuleIdentifier.data()+1, "ombine_mem", 10) != 0)
426 break;
427 switch (RuleIdentifier[11]) {
428 default: break;
429 case 'c': // 1 string to match.
430 if (memcmp(RuleIdentifier.data()+12, "py", 2) != 0)
431 break;
432 return 355; // "combine_memcpy"
433 case 's': // 1 string to match.
434 if (memcmp(RuleIdentifier.data()+12, "et", 2) != 0)
435 break;
436 return 357; // "combine_memset"
437 }
438 break;
439 case 'f': // 2 strings to match.
440 switch (RuleIdentifier[1]) {
441 default: break;
442 case 'a': // 1 string to match.
443 if (memcmp(RuleIdentifier.data()+2, "bs_fneg_fold", 12) != 0)
444 break;
445 return 218; // "fabs_fneg_fold"
446 case 'n': // 1 string to match.
447 if (memcmp(RuleIdentifier.data()+2, "eg_fneg_fold", 12) != 0)
448 break;
449 return 103; // "fneg_fneg_fold"
450 }
451 break;
452 case 'm': // 1 string to match.
453 if (memcmp(RuleIdentifier.data()+1, "ul_by_neg_one", 13) != 0)
454 break;
455 return 23; // "mul_by_neg_one"
456 case 'r': // 1 string to match.
457 if (memcmp(RuleIdentifier.data()+1, "eassoc_ptradd", 13) != 0)
458 break;
459 return 121; // "reassoc_ptradd"
460 case 's': // 4 strings to match.
461 switch (RuleIdentifier[1]) {
462 default: break;
463 case 'e': // 2 strings to match.
464 switch (RuleIdentifier[2]) {
465 default: break;
466 case 'l': // 1 string to match.
467 if (memcmp(RuleIdentifier.data()+3, "ect_of_zext", 11) != 0)
468 break;
469 return 60; // "select_of_zext"
470 case 'x': // 1 string to match.
471 if (memcmp(RuleIdentifier.data()+3, "t_of_anyext", 11) != 0)
472 break;
473 return 55; // "sext_of_anyext"
474 }
475 break;
476 case 'h': // 1 string to match.
477 if (memcmp(RuleIdentifier.data()+2, "ifts_too_big", 12) != 0)
478 break;
479 return 120; // "shifts_too_big"
480 case 'i': // 1 string to match.
481 if (memcmp(RuleIdentifier.data()+2, "mplify_uaddo", 12) != 0)
482 break;
483 return 352; // "simplify_uaddo"
484 }
485 break;
486 case 'z': // 1 string to match.
487 if (memcmp(RuleIdentifier.data()+1, "ext_of_anyext", 13) != 0)
488 break;
489 return 53; // "zext_of_anyext"
490 }
491 break;
492 case 15: // 24 strings to match.
493 switch (RuleIdentifier[0]) {
494 default: break;
495 case 'A': // 2 strings to match.
496 switch (RuleIdentifier[1]) {
497 default: break;
498 case 'M': // 1 string to match.
499 if (memcmp(RuleIdentifier.data()+2, "inusC1MinusC2", 13) != 0)
500 break;
501 return 16; // "AMinusC1MinusC2"
502 case 'P': // 1 string to match.
503 if (memcmp(RuleIdentifier.data()+2, "lusZeroMinusB", 13) != 0)
504 break;
505 return 3; // "APlusZeroMinusB"
506 }
507 break;
508 case 'C': // 1 string to match.
509 if (memcmp(RuleIdentifier.data()+1, "1Minus2MinusC2", 14) != 0)
510 break;
511 return 17; // "C1Minus2MinusC2"
512 case 'G': // 1 string to match.
513 if (memcmp(RuleIdentifier.data()+1, "_FMA_fneg_fneg", 14) != 0)
514 break;
515 return 226; // "G_FMA_fneg_fneg"
516 case 'Z': // 1 string to match.
517 if (memcmp(RuleIdentifier.data()+1, "eroMinusAPlusB", 14) != 0)
518 break;
519 return 2; // "ZeroMinusAPlusB"
520 case 'a': // 2 strings to match.
521 if (memcmp(RuleIdentifier.data()+1, "vgceil_", 7) != 0)
522 break;
523 switch (RuleIdentifier[8]) {
524 default: break;
525 case 's': // 1 string to match.
526 if (memcmp(RuleIdentifier.data()+9, "_match", 6) != 0)
527 break;
528 return 338; // "avgceil_s_match"
529 case 'u': // 1 string to match.
530 if (memcmp(RuleIdentifier.data()+9, "_match", 6) != 0)
531 break;
532 return 337; // "avgceil_u_match"
533 }
534 break;
535 case 'b': // 1 string to match.
536 if (memcmp(RuleIdentifier.data()+1, "itreverse_lshr", 14) != 0)
537 break;
538 return 206; // "bitreverse_lshr"
539 case 'c': // 1 string to match.
540 if (memcmp(RuleIdentifier.data()+1, "ombine_memmove", 14) != 0)
541 break;
542 return 356; // "combine_memmove"
543 case 'e': // 1 string to match.
544 if (memcmp(RuleIdentifier.data()+1, "xtending_loads", 14) != 0)
545 break;
546 return 74; // "extending_loads"
547 case 'i': // 2 strings to match.
548 switch (RuleIdentifier[1]) {
549 default: break;
550 case '2': // 1 string to match.
551 if (memcmp(RuleIdentifier.data()+2, "p_to_p2i_zext", 13) != 0)
552 break;
553 return 100; // "i2p_to_p2i_zext"
554 case 'd': // 1 string to match.
555 if (memcmp(RuleIdentifier.data()+2, "empotent_prop", 13) != 0)
556 break;
557 return 24; // "idempotent_prop"
558 }
559 break;
560 case 'l': // 1 string to match.
561 if (memcmp(RuleIdentifier.data()+1, "oad_or_combine", 14) != 0)
562 break;
563 return 195; // "load_or_combine"
564 case 'm': // 4 strings to match.
565 if (memcmp(RuleIdentifier.data()+1, "ulo_by_", 7) != 0)
566 break;
567 switch (RuleIdentifier[8]) {
568 default: break;
569 case '0': // 2 strings to match.
570 if (RuleIdentifier[9] != '_')
571 break;
572 switch (RuleIdentifier[10]) {
573 default: break;
574 case 's': // 1 string to match.
575 if (memcmp(RuleIdentifier.data()+11, "mulo", 4) != 0)
576 break;
577 return 180; // "mulo_by_0_smulo"
578 case 'u': // 1 string to match.
579 if (memcmp(RuleIdentifier.data()+11, "mulo", 4) != 0)
580 break;
581 return 179; // "mulo_by_0_umulo"
582 }
583 break;
584 case '2': // 2 strings to match.
585 if (RuleIdentifier[9] != '_')
586 break;
587 switch (RuleIdentifier[10]) {
588 default: break;
589 case 's': // 1 string to match.
590 if (memcmp(RuleIdentifier.data()+11, "mulo", 4) != 0)
591 break;
592 return 178; // "mulo_by_2_smulo"
593 case 'u': // 1 string to match.
594 if (memcmp(RuleIdentifier.data()+11, "mulo", 4) != 0)
595 break;
596 return 177; // "mulo_by_2_umulo"
597 }
598 break;
599 }
600 break;
601 case 'n': // 1 string to match.
602 if (memcmp(RuleIdentifier.data()+1, "arrow_binop_or", 14) != 0)
603 break;
604 return 68; // "narrow_binop_or"
605 case 'o': // 1 string to match.
606 if (memcmp(RuleIdentifier.data()+1, "verlapping_and", 14) != 0)
607 break;
608 return 176; // "overlapping_and"
609 case 's': // 4 strings to match.
610 if (memcmp(RuleIdentifier.data()+1, "ub_add_", 7) != 0)
611 break;
612 switch (RuleIdentifier[8]) {
613 default: break;
614 case 'n': // 2 strings to match.
615 if (memcmp(RuleIdentifier.data()+9, "eg_", 3) != 0)
616 break;
617 switch (RuleIdentifier[12]) {
618 default: break;
619 case 'l': // 1 string to match.
620 if (memcmp(RuleIdentifier.data()+13, "hs", 2) != 0)
621 break;
622 return 250; // "sub_add_neg_lhs"
623 case 'r': // 1 string to match.
624 if (memcmp(RuleIdentifier.data()+13, "hs", 2) != 0)
625 break;
626 return 249; // "sub_add_neg_rhs"
627 }
628 break;
629 case 'r': // 2 strings to match.
630 if (memcmp(RuleIdentifier.data()+9, "eg_", 3) != 0)
631 break;
632 switch (RuleIdentifier[12]) {
633 default: break;
634 case 'l': // 1 string to match.
635 if (memcmp(RuleIdentifier.data()+13, "hs", 2) != 0)
636 break;
637 return 248; // "sub_add_reg_lhs"
638 case 'r': // 1 string to match.
639 if (memcmp(RuleIdentifier.data()+13, "hs", 2) != 0)
640 break;
641 return 247; // "sub_add_reg_rhs"
642 }
643 break;
644 }
645 break;
646 case 'z': // 1 string to match.
647 if (memcmp(RuleIdentifier.data()+1, "ext_trunc_fold", 14) != 0)
648 break;
649 return 153; // "zext_trunc_fold"
650 }
651 break;
652 case 16: // 27 strings to match.
653 switch (RuleIdentifier[0]) {
654 default: break;
655 case 'A': // 1 string to match.
656 if (memcmp(RuleIdentifier.data()+1, "MinusZeroMinusB", 15) != 0)
657 break;
658 return 11; // "AMinusZeroMinusB"
659 case 'G': // 3 strings to match.
660 if (memcmp(RuleIdentifier.data()+1, "_F", 2) != 0)
661 break;
662 switch (RuleIdentifier[3]) {
663 default: break;
664 case 'D': // 1 string to match.
665 if (memcmp(RuleIdentifier.data()+4, "IV_fneg_fneg", 12) != 0)
666 break;
667 return 224; // "G_FDIV_fneg_fneg"
668 case 'M': // 2 strings to match.
669 switch (RuleIdentifier[4]) {
670 default: break;
671 case 'A': // 1 string to match.
672 if (memcmp(RuleIdentifier.data()+5, "D_fneg_fneg", 11) != 0)
673 break;
674 return 225; // "G_FMAD_fneg_fneg"
675 case 'U': // 1 string to match.
676 if (memcmp(RuleIdentifier.data()+5, "L_fneg_fneg", 11) != 0)
677 break;
678 return 223; // "G_FMUL_fneg_fneg"
679 }
680 break;
681 }
682 break;
683 case 'a': // 3 strings to match.
684 switch (RuleIdentifier[1]) {
685 default: break;
686 case 'n': // 1 string to match.
687 if (memcmp(RuleIdentifier.data()+2, "yext_of_anyext", 14) != 0)
688 break;
689 return 56; // "anyext_of_anyext"
690 case 'v': // 2 strings to match.
691 if (memcmp(RuleIdentifier.data()+2, "gfloor_", 7) != 0)
692 break;
693 switch (RuleIdentifier[9]) {
694 default: break;
695 case 's': // 1 string to match.
696 if (memcmp(RuleIdentifier.data()+10, "_match", 6) != 0)
697 break;
698 return 336; // "avgfloor_s_match"
699 case 'u': // 1 string to match.
700 if (memcmp(RuleIdentifier.data()+10, "_match", 6) != 0)
701 break;
702 return 335; // "avgfloor_u_match"
703 }
704 break;
705 }
706 break;
707 case 'c': // 1 string to match.
708 if (memcmp(RuleIdentifier.data()+1, "ommute_shift_or", 15) != 0)
709 break;
710 return 208; // "commute_shift_or"
711 case 'i': // 2 strings to match.
712 switch (RuleIdentifier[1]) {
713 default: break;
714 case '2': // 1 string to match.
715 if (memcmp(RuleIdentifier.data()+2, "p_to_p2i_trunc", 14) != 0)
716 break;
717 return 101; // "i2p_to_p2i_trunc"
718 case 'n': // 1 string to match.
719 if (memcmp(RuleIdentifier.data()+2, "terleave_store", 14) != 0)
720 break;
721 return 360; // "interleave_store"
722 }
723 break;
724 case 'n': // 5 strings to match.
725 if (memcmp(RuleIdentifier.data()+1, "arrow_binop_", 12) != 0)
726 break;
727 switch (RuleIdentifier[13]) {
728 default: break;
729 case 'a': // 2 strings to match.
730 switch (RuleIdentifier[14]) {
731 default: break;
732 case 'd': // 1 string to match.
733 if (RuleIdentifier[15] != 'd')
734 break;
735 return 64; // "narrow_binop_add"
736 case 'n': // 1 string to match.
737 if (RuleIdentifier[15] != 'd')
738 break;
739 return 67; // "narrow_binop_and"
740 }
741 break;
742 case 'm': // 1 string to match.
743 if (memcmp(RuleIdentifier.data()+14, "ul", 2) != 0)
744 break;
745 return 66; // "narrow_binop_mul"
746 case 's': // 1 string to match.
747 if (memcmp(RuleIdentifier.data()+14, "ub", 2) != 0)
748 break;
749 return 65; // "narrow_binop_sub"
750 case 'x': // 1 string to match.
751 if (memcmp(RuleIdentifier.data()+14, "or", 2) != 0)
752 break;
753 return 69; // "narrow_binop_xor"
754 }
755 break;
756 case 'o': // 1 string to match.
757 if (memcmp(RuleIdentifier.data()+1, "r_and_xor_to_or", 15) != 0)
758 break;
759 return 284; // "or_and_xor_to_or"
760 case 's': // 8 strings to match.
761 switch (RuleIdentifier[1]) {
762 default: break;
763 case 'd': // 1 string to match.
764 if (memcmp(RuleIdentifier.data()+2, "iv_to_unsigned", 14) != 0)
765 break;
766 return 155; // "sdiv_to_unsigned"
767 case 'e': // 4 strings to match.
768 if (memcmp(RuleIdentifier.data()+2, "lect_", 5) != 0)
769 break;
770 switch (RuleIdentifier[7]) {
771 default: break;
772 case 'o': // 1 string to match.
773 if (memcmp(RuleIdentifier.data()+8, "f_anyext", 8) != 0)
774 break;
775 return 61; // "select_of_anyext"
776 case 't': // 1 string to match.
777 if (memcmp(RuleIdentifier.data()+8, "o_minmax", 8) != 0)
778 break;
779 return 251; // "select_to_minmax"
780 case 'u': // 1 string to match.
781 if (memcmp(RuleIdentifier.data()+8, "ndef_cmp", 8) != 0)
782 break;
783 return 136; // "select_undef_cmp"
784 case 'z': // 1 string to match.
785 if (memcmp(RuleIdentifier.data()+8, "ero_true", 8) != 0)
786 break;
787 return 340; // "select_zero_true"
788 }
789 break;
790 case 'r': // 1 string to match.
791 if (memcmp(RuleIdentifier.data()+2, "em_to_unsigned", 14) != 0)
792 break;
793 return 156; // "srem_to_unsigned"
794 case 'u': // 2 strings to match.
795 if (memcmp(RuleIdentifier.data()+2, "b_o", 3) != 0)
796 break;
797 switch (RuleIdentifier[5]) {
798 default: break;
799 case 'f': // 1 string to match.
800 if (memcmp(RuleIdentifier.data()+6, "_mul_const", 10) != 0)
801 break;
802 return 330; // "sub_of_mul_const"
803 case 'n': // 1 string to match.
804 if (memcmp(RuleIdentifier.data()+6, "e_from_sub", 10) != 0)
805 break;
806 return 327; // "sub_one_from_sub"
807 }
808 break;
809 }
810 break;
811 case 't': // 2 strings to match.
812 if (memcmp(RuleIdentifier.data()+1, "runcate_of_", 11) != 0)
813 break;
814 switch (RuleIdentifier[12]) {
815 default: break;
816 case 's': // 1 string to match.
817 if (memcmp(RuleIdentifier.data()+13, "ext", 3) != 0)
818 break;
819 return 50; // "truncate_of_sext"
820 case 'z': // 1 string to match.
821 if (memcmp(RuleIdentifier.data()+13, "ext", 3) != 0)
822 break;
823 return 49; // "truncate_of_zext"
824 }
825 break;
826 case 'u': // 1 string to match.
827 if (memcmp(RuleIdentifier.data()+1, "ndef_to_fp_zero", 15) != 0)
828 break;
829 return 77; // "undef_to_fp_zero"
830 }
831 break;
832 case 17: // 21 strings to match.
833 switch (RuleIdentifier[0]) {
834 default: break;
835 case 'A': // 2 strings to match.
836 if (memcmp(RuleIdentifier.data()+1, "PlusBMinus", 10) != 0)
837 break;
838 switch (RuleIdentifier[11]) {
839 default: break;
840 case 'A': // 1 string to match.
841 if (memcmp(RuleIdentifier.data()+12, "plusC", 5) != 0)
842 break;
843 return 8; // "APlusBMinusAplusC"
844 case 'C': // 1 string to match.
845 if (memcmp(RuleIdentifier.data()+12, "PlusA", 5) != 0)
846 break;
847 return 10; // "APlusBMinusCPlusA"
848 }
849 break;
850 case 'a': // 3 strings to match.
851 switch (RuleIdentifier[1]) {
852 default: break;
853 case 'd': // 1 string to match.
854 if (memcmp(RuleIdentifier.data()+2, "d_p2i_to_ptradd", 15) != 0)
855 break;
856 return 22; // "add_p2i_to_ptradd"
857 case 'n': // 2 strings to match.
858 switch (RuleIdentifier[2]) {
859 default: break;
860 case 'd': // 1 string to match.
861 if (memcmp(RuleIdentifier.data()+3, "_xor_or_to_and", 14) != 0)
862 break;
863 return 286; // "and_xor_or_to_and"
864 case 'y': // 1 string to match.
865 if (memcmp(RuleIdentifier.data()+3, "ext_trunc_fold", 14) != 0)
866 break;
867 return 102; // "anyext_trunc_fold"
868 }
869 break;
870 }
871 break;
872 case 'c': // 5 strings to match.
873 switch (RuleIdentifier[1]) {
874 default: break;
875 case 'a': // 2 strings to match.
876 if (memcmp(RuleIdentifier.data()+2, "nonicalize_", 11) != 0)
877 break;
878 switch (RuleIdentifier[13]) {
879 default: break;
880 case 'f': // 1 string to match.
881 if (memcmp(RuleIdentifier.data()+14, "cmp", 3) != 0)
882 break;
883 return 125; // "canonicalize_fcmp"
884 case 'i': // 1 string to match.
885 if (memcmp(RuleIdentifier.data()+14, "cmp", 3) != 0)
886 break;
887 return 124; // "canonicalize_icmp"
888 }
889 break;
890 case 'o': // 3 strings to match.
891 switch (RuleIdentifier[2]) {
892 default: break;
893 case 'm': // 2 strings to match.
894 switch (RuleIdentifier[3]) {
895 default: break;
896 case 'b': // 1 string to match.
897 if (memcmp(RuleIdentifier.data()+4, "ine_or_of_and", 13) != 0)
898 break;
899 return 339; // "combine_or_of_and"
900 case 'm': // 1 string to match.
901 if (memcmp(RuleIdentifier.data()+4, "ute_shift_add", 13) != 0)
902 break;
903 return 207; // "commute_shift_add"
904 }
905 break;
906 case 'n': // 1 string to match.
907 if (memcmp(RuleIdentifier.data()+3, "stant_fold_fma", 14) != 0)
908 break;
909 return 215; // "constant_fold_fma"
910 }
911 break;
912 }
913 break;
914 case 'd': // 2 strings to match.
915 switch (RuleIdentifier[1]) {
916 default: break;
917 case 'e': // 1 string to match.
918 if (memcmp(RuleIdentifier.data()+2, "interleave_load", 15) != 0)
919 break;
920 return 359; // "deinterleave_load"
921 case 'i': // 1 string to match.
922 if (memcmp(RuleIdentifier.data()+2, "v_rem_to_divrem", 15) != 0)
923 break;
924 return 196; // "div_rem_to_divrem"
925 }
926 break;
927 case 'e': // 1 string to match.
928 if (memcmp(RuleIdentifier.data()+1, "rase_undef_store", 16) != 0)
929 break;
930 return 88; // "erase_undef_store"
931 case 'm': // 2 strings to match.
932 if (memcmp(RuleIdentifier.data()+1, "atch_addos_", 11) != 0)
933 break;
934 switch (RuleIdentifier[12]) {
935 default: break;
936 case 's': // 1 string to match.
937 if (memcmp(RuleIdentifier.data()+13, "addo", 4) != 0)
938 break;
939 return 311; // "match_addos_saddo"
940 case 'u': // 1 string to match.
941 if (memcmp(RuleIdentifier.data()+13, "addo", 4) != 0)
942 break;
943 return 312; // "match_addos_uaddo"
944 }
945 break;
946 case 's': // 4 strings to match.
947 switch (RuleIdentifier[1]) {
948 default: break;
949 case 'e': // 2 strings to match.
950 if (memcmp(RuleIdentifier.data()+2, "lect_", 5) != 0)
951 break;
952 switch (RuleIdentifier[7]) {
953 default: break;
954 case 't': // 1 string to match.
955 if (memcmp(RuleIdentifier.data()+8, "o_iminmax", 9) != 0)
956 break;
957 return 141; // "select_to_iminmax"
958 case 'z': // 1 string to match.
959 if (memcmp(RuleIdentifier.data()+8, "ero_false", 9) != 0)
960 break;
961 return 143; // "select_zero_false"
962 }
963 break;
964 case 'h': // 1 string to match.
965 if (memcmp(RuleIdentifier.data()+2, "ift_immed_chain", 15) != 0)
966 break;
967 return 193; // "shift_immed_chain"
968 case 'r': // 1 string to match.
969 if (memcmp(RuleIdentifier.data()+2, "em_pow2_to_mask", 15) != 0)
970 break;
971 return 238; // "srem_pow2_to_mask"
972 }
973 break;
974 case 'u': // 2 strings to match.
975 switch (RuleIdentifier[1]) {
976 default: break;
977 case 'n': // 1 string to match.
978 if (memcmp(RuleIdentifier.data()+2, "def_to_int_zero", 15) != 0)
979 break;
980 return 78; // "undef_to_int_zero"
981 case 'r': // 1 string to match.
982 if (memcmp(RuleIdentifier.data()+2, "em_pow2_to_mask", 15) != 0)
983 break;
984 return 152; // "urem_pow2_to_mask"
985 }
986 break;
987 }
988 break;
989 case 18: // 19 strings to match.
990 switch (RuleIdentifier[0]) {
991 default: break;
992 case 'A': // 3 strings to match.
993 switch (RuleIdentifier[1]) {
994 default: break;
995 case 'M': // 2 strings to match.
996 if (memcmp(RuleIdentifier.data()+2, "inusBPlus", 9) != 0)
997 break;
998 switch (RuleIdentifier[11]) {
999 default: break;
1000 case 'B': // 1 string to match.
1001 if (memcmp(RuleIdentifier.data()+12, "MinusC", 6) != 0)
1002 break;
1003 return 7; // "AMinusBPlusBMinusC"
1004 case 'C': // 1 string to match.
1005 if (memcmp(RuleIdentifier.data()+12, "MinusA", 6) != 0)
1006 break;
1007 return 6; // "AMinusBPlusCMinusA"
1008 }
1009 break;
1010 case 'P': // 1 string to match.
1011 if (memcmp(RuleIdentifier.data()+2, "lusBMinusCMinusB", 16) != 0)
1012 break;
1013 return 0; // "APlusBMinusCMinusB"
1014 }
1015 break;
1016 case 'a': // 4 strings to match.
1017 if (memcmp(RuleIdentifier.data()+1, "dde_to_addo_", 12) != 0)
1018 break;
1019 switch (RuleIdentifier[13]) {
1020 default: break;
1021 case 's': // 2 strings to match.
1022 switch (RuleIdentifier[14]) {
1023 default: break;
1024 case 'a': // 1 string to match.
1025 if (memcmp(RuleIdentifier.data()+15, "dde", 3) != 0)
1026 break;
1027 return 182; // "adde_to_addo_sadde"
1028 case 's': // 1 string to match.
1029 if (memcmp(RuleIdentifier.data()+15, "ube", 3) != 0)
1030 break;
1031 return 184; // "adde_to_addo_ssube"
1032 }
1033 break;
1034 case 'u': // 2 strings to match.
1035 switch (RuleIdentifier[14]) {
1036 default: break;
1037 case 'a': // 1 string to match.
1038 if (memcmp(RuleIdentifier.data()+15, "dde", 3) != 0)
1039 break;
1040 return 181; // "adde_to_addo_uadde"
1041 case 's': // 1 string to match.
1042 if (memcmp(RuleIdentifier.data()+15, "ube", 3) != 0)
1043 break;
1044 return 183; // "adde_to_addo_usube"
1045 }
1046 break;
1047 }
1048 break;
1049 case 'b': // 1 string to match.
1050 if (memcmp(RuleIdentifier.data()+1, "inop_left_to_zero", 17) != 0)
1051 break;
1052 return 96; // "binop_left_to_zero"
1053 case 'c': // 2 strings to match.
1054 if (memcmp(RuleIdentifier.data()+1, "onstant_fold_f", 14) != 0)
1055 break;
1056 switch (RuleIdentifier[15]) {
1057 default: break;
1058 case 'a': // 1 string to match.
1059 if (memcmp(RuleIdentifier.data()+16, "bs", 2) != 0)
1060 break;
1061 return 161; // "constant_fold_fabs"
1062 case 'n': // 1 string to match.
1063 if (memcmp(RuleIdentifier.data()+16, "eg", 2) != 0)
1064 break;
1065 return 160; // "constant_fold_fneg"
1066 }
1067 break;
1068 case 'e': // 1 string to match.
1069 if (memcmp(RuleIdentifier.data()+1, "xpand_const_fpowi", 17) != 0)
1070 break;
1071 return 189; // "expand_const_fpowi"
1072 case 'f': // 3 strings to match.
1073 switch (RuleIdentifier[1]) {
1074 default: break;
1075 case 'o': // 1 string to match.
1076 if (memcmp(RuleIdentifier.data()+2, "ld_global_offset", 16) != 0)
1077 break;
1078 return 343; // "fold_global_offset"
1079 case 'p': // 2 strings to match.
1080 if (RuleIdentifier[2] != 't')
1081 break;
1082 switch (RuleIdentifier[3]) {
1083 default: break;
1084 case 'o': // 1 string to match.
1085 if (memcmp(RuleIdentifier.data()+4, "ui_ffloor_fold", 14) != 0)
1086 break;
1087 return 319; // "fptoui_ffloor_fold"
1088 case 'r': // 1 string to match.
1089 if (memcmp(RuleIdentifier.data()+4, "unc_fpext_fold", 14) != 0)
1090 break;
1091 return 113; // "fptrunc_fpext_fold"
1092 }
1093 break;
1094 }
1095 break;
1096 case 'm': // 2 strings to match.
1097 if (memcmp(RuleIdentifier.data()+1, "inmax_nan_num_", 14) != 0)
1098 break;
1099 switch (RuleIdentifier[15]) {
1100 default: break;
1101 case 'l': // 1 string to match.
1102 if (memcmp(RuleIdentifier.data()+16, "hs", 2) != 0)
1103 break;
1104 return 185; // "minmax_nan_num_lhs"
1105 case 'r': // 1 string to match.
1106 if (memcmp(RuleIdentifier.data()+16, "hs", 2) != 0)
1107 break;
1108 return 186; // "minmax_nan_num_rhs"
1109 }
1110 break;
1111 case 's': // 2 strings to match.
1112 if (RuleIdentifier[1] != 'e')
1113 break;
1114 switch (RuleIdentifier[2]) {
1115 default: break;
1116 case 'l': // 1 string to match.
1117 if (memcmp(RuleIdentifier.data()+3, "ect_of_truncate", 15) != 0)
1118 break;
1119 return 62; // "select_of_truncate"
1120 case 'x': // 1 string to match.
1121 if (memcmp(RuleIdentifier.data()+3, "t_inreg_of_load", 15) != 0)
1122 break;
1123 return 133; // "sext_inreg_of_load"
1124 }
1125 break;
1126 case 't': // 1 string to match.
1127 if (memcmp(RuleIdentifier.data()+1, "runcate_of_anyext", 17) != 0)
1128 break;
1129 return 51; // "truncate_of_anyext"
1130 }
1131 break;
1132 case 19: // 21 strings to match.
1133 switch (RuleIdentifier[0]) {
1134 default: break;
1135 case 'A': // 1 string to match.
1136 if (memcmp(RuleIdentifier.data()+1, "MinusBMinusCMinusC", 18) != 0)
1137 break;
1138 return 1; // "AMinusBMinusCMinusC"
1139 case 'b': // 1 string to match.
1140 if (memcmp(RuleIdentifier.data()+1, "inop_right_to_zero", 18) != 0)
1141 break;
1142 return 97; // "binop_right_to_zero"
1143 case 'c': // 7 strings to match.
1144 if (memcmp(RuleIdentifier.data()+1, "onst", 4) != 0)
1145 break;
1146 switch (RuleIdentifier[5]) {
1147 default: break;
1148 case '_': // 1 string to match.
1149 if (memcmp(RuleIdentifier.data()+6, "ptradd_to_i2p", 13) != 0)
1150 break;
1151 return 175; // "const_ptradd_to_i2p"
1152 case 'a': // 6 strings to match.
1153 if (memcmp(RuleIdentifier.data()+6, "nt_fold_", 8) != 0)
1154 break;
1155 switch (RuleIdentifier[14]) {
1156 default: break;
1157 case 'b': // 1 string to match.
1158 if (memcmp(RuleIdentifier.data()+15, "inop", 4) != 0)
1159 break;
1160 return 213; // "constant_fold_binop"
1161 case 'f': // 5 strings to match.
1162 switch (RuleIdentifier[15]) {
1163 default: break;
1164 case 'c': // 1 string to match.
1165 if (memcmp(RuleIdentifier.data()+16, "eil", 3) != 0)
1166 break;
1167 return 166; // "constant_fold_fceil"
1168 case 'l': // 1 string to match.
1169 if (memcmp(RuleIdentifier.data()+16, "og2", 3) != 0)
1170 break;
1171 return 163; // "constant_fold_flog2"
1172 case 'p': // 1 string to match.
1173 if (memcmp(RuleIdentifier.data()+16, "ext", 3) != 0)
1174 break;
1175 return 165; // "constant_fold_fpext"
1176 case 'r': // 1 string to match.
1177 if (memcmp(RuleIdentifier.data()+16, "int", 3) != 0)
1178 break;
1179 return 171; // "constant_fold_frint"
1180 case 's': // 1 string to match.
1181 if (memcmp(RuleIdentifier.data()+16, "qrt", 3) != 0)
1182 break;
1183 return 162; // "constant_fold_fsqrt"
1184 }
1185 break;
1186 }
1187 break;
1188 }
1189 break;
1190 case 'e': // 2 strings to match.
1191 if (memcmp(RuleIdentifier.data()+1, "xt", 2) != 0)
1192 break;
1193 switch (RuleIdentifier[3]) {
1194 default: break;
1195 case '_': // 1 string to match.
1196 if (memcmp(RuleIdentifier.data()+4, "uaddv_to_uaddlv", 15) != 0)
1197 break;
1198 return 345; // "ext_uaddv_to_uaddlv"
1199 case 'e': // 1 string to match.
1200 if (memcmp(RuleIdentifier.data()+4, "nd_through_phis", 15) != 0)
1201 break;
1202 return 117; // "extend_through_phis"
1203 }
1204 break;
1205 case 'i': // 1 string to match.
1206 if (memcmp(RuleIdentifier.data()+1, "nteger_of_truncate", 18) != 0)
1207 break;
1208 return 70; // "integer_of_truncate"
1209 case 'm': // 3 strings to match.
1210 switch (RuleIdentifier[1]) {
1211 default: break;
1212 case 'e': // 1 string to match.
1213 if (memcmp(RuleIdentifier.data()+2, "rge_of_x_and_zero", 17) != 0)
1214 break;
1215 return 307; // "merge_of_x_and_zero"
1216 case 'i': // 2 strings to match.
1217 if (memcmp(RuleIdentifier.data()+2, "nmax_nan_ieee_", 14) != 0)
1218 break;
1219 switch (RuleIdentifier[16]) {
1220 default: break;
1221 case 'l': // 1 string to match.
1222 if (memcmp(RuleIdentifier.data()+17, "hs", 2) != 0)
1223 break;
1224 return 187; // "minmax_nan_ieee_lhs"
1225 case 'r': // 1 string to match.
1226 if (memcmp(RuleIdentifier.data()+17, "hs", 2) != 0)
1227 break;
1228 return 188; // "minmax_nan_ieee_rhs"
1229 }
1230 break;
1231 }
1232 break;
1233 case 'p': // 1 string to match.
1234 if (memcmp(RuleIdentifier.data()+1, "tr_add_immed_chain", 18) != 0)
1235 break;
1236 return 123; // "ptr_add_immed_chain"
1237 case 'r': // 2 strings to match.
1238 switch (RuleIdentifier[1]) {
1239 default: break;
1240 case 'e': // 1 string to match.
1241 if (memcmp(RuleIdentifier.data()+2, "assoc_comm_binops", 17) != 0)
1242 break;
1243 return 122; // "reassoc_comm_binops"
1244 case 'i': // 1 string to match.
1245 if (memcmp(RuleIdentifier.data()+2, "ght_identity_zero", 17) != 0)
1246 break;
1247 return 93; // "right_identity_zero"
1248 }
1249 break;
1250 case 's': // 2 strings to match.
1251 if (memcmp(RuleIdentifier.data()+1, "implify_", 8) != 0)
1252 break;
1253 switch (RuleIdentifier[9]) {
1254 default: break;
1255 case 'a': // 1 string to match.
1256 if (memcmp(RuleIdentifier.data()+10, "dd_to_sub", 9) != 0)
1257 break;
1258 return 118; // "simplify_add_to_sub"
1259 case 'n': // 1 string to match.
1260 if (memcmp(RuleIdentifier.data()+10, "eg_minmax", 9) != 0)
1261 break;
1262 return 290; // "simplify_neg_minmax"
1263 }
1264 break;
1265 case 'u': // 1 string to match.
1266 if (memcmp(RuleIdentifier.data()+1, "nary_undef_to_zero", 18) != 0)
1267 break;
1268 return 82; // "unary_undef_to_zero"
1269 }
1270 break;
1271 case 20: // 12 strings to match.
1272 switch (RuleIdentifier[0]) {
1273 default: break;
1274 case 'a': // 1 string to match.
1275 if (memcmp(RuleIdentifier.data()+1, "nd_or_disjoint_mask", 19) != 0)
1276 break;
1277 return 227; // "and_or_disjoint_mask"
1278 case 'b': // 1 string to match.
1279 if (memcmp(RuleIdentifier.data()+1, "itcast_bitcast_fold", 19) != 0)
1280 break;
1281 return 111; // "bitcast_bitcast_fold"
1282 case 'c': // 1 string to match.
1283 if (memcmp(RuleIdentifier.data()+1, "onstant_fold_ffloor", 19) != 0)
1284 break;
1285 return 167; // "constant_fold_ffloor"
1286 case 'i': // 2 strings to match.
1287 switch (RuleIdentifier[1]) {
1288 default: break;
1289 case '2': // 1 string to match.
1290 if (memcmp(RuleIdentifier.data()+2, "p_to_p2i_same_size", 18) != 0)
1291 break;
1292 return 99; // "i2p_to_p2i_same_size"
1293 case 'c': // 1 string to match.
1294 if (memcmp(RuleIdentifier.data()+2, "mp_redundant_trunc", 18) != 0)
1295 break;
1296 return 342; // "icmp_redundant_trunc"
1297 }
1298 break;
1299 case 'm': // 1 string to match.
1300 if (memcmp(RuleIdentifier.data()+1, "erge_of_x_and_undef", 19) != 0)
1301 break;
1302 return 306; // "merge_of_x_and_undef"
1303 case 'o': // 1 string to match.
1304 if (memcmp(RuleIdentifier.data()+1, "r_and_xor_to_xor_or", 19) != 0)
1305 break;
1306 return 285; // "or_and_xor_to_xor_or"
1307 case 'r': // 2 strings to match.
1308 if (memcmp(RuleIdentifier.data()+1, "edu", 3) != 0)
1309 break;
1310 switch (RuleIdentifier[4]) {
1311 default: break;
1312 case 'c': // 1 string to match.
1313 if (memcmp(RuleIdentifier.data()+5, "e_shl_of_extend", 15) != 0)
1314 break;
1315 return 134; // "reduce_shl_of_extend"
1316 case 'n': // 1 string to match.
1317 if (memcmp(RuleIdentifier.data()+5, "dant_sext_inreg", 15) != 0)
1318 break;
1319 return 145; // "redundant_sext_inreg"
1320 }
1321 break;
1322 case 'u': // 3 strings to match.
1323 switch (RuleIdentifier[1]) {
1324 default: break;
1325 case 'd': // 1 string to match.
1326 if (memcmp(RuleIdentifier.data()+2, "iv_by_shifted_pow2", 18) != 0)
1327 break;
1328 return 242; // "udiv_by_shifted_pow2"
1329 case 'n': // 2 strings to match.
1330 switch (RuleIdentifier[2]) {
1331 default: break;
1332 case 'a': // 1 string to match.
1333 if (memcmp(RuleIdentifier.data()+3, "ry_undef_to_undef", 17) != 0)
1334 break;
1335 return 83; // "unary_undef_to_undef"
1336 case 'm': // 1 string to match.
1337 if (memcmp(RuleIdentifier.data()+3, "erge_zext_to_zext", 17) != 0)
1338 break;
1339 return 305; // "unmerge_zext_to_zext"
1340 }
1341 break;
1342 }
1343 break;
1344 }
1345 break;
1346 case 21: // 22 strings to match.
1347 switch (RuleIdentifier[0]) {
1348 default: break;
1349 case 'a': // 1 string to match.
1350 if (memcmp(RuleIdentifier.data()+1, "nd_xor_or_to_xor_and", 20) != 0)
1351 break;
1352 return 287; // "and_xor_or_to_xor_and"
1353 case 'c': // 6 strings to match.
1354 if (RuleIdentifier[1] != 'o')
1355 break;
1356 switch (RuleIdentifier[2]) {
1357 default: break;
1358 case 'm': // 4 strings to match.
1359 if (memcmp(RuleIdentifier.data()+3, "bine_", 5) != 0)
1360 break;
1361 switch (RuleIdentifier[8]) {
1362 default: break;
1363 case 'b': // 1 string to match.
1364 if (memcmp(RuleIdentifier.data()+9, "uild_unmerge", 12) != 0)
1365 break;
1366 return 308; // "combine_build_unmerge"
1367 case 'c': // 1 string to match.
1368 if (memcmp(RuleIdentifier.data()+9, "oncat_vector", 12) != 0)
1369 break;
1370 return 291; // "combine_concat_vector"
1371 case 'm': // 2 strings to match.
1372 if (memcmp(RuleIdentifier.data()+9, "em", 2) != 0)
1373 break;
1374 switch (RuleIdentifier[11]) {
1375 default: break;
1376 case 'c': // 1 string to match.
1377 if (memcmp(RuleIdentifier.data()+12, "py_inline", 9) != 0)
1378 break;
1379 return 353; // "combine_memcpy_inline"
1380 case 's': // 1 string to match.
1381 if (memcmp(RuleIdentifier.data()+12, "et_inline", 9) != 0)
1382 break;
1383 return 354; // "combine_memset_inline"
1384 }
1385 break;
1386 }
1387 break;
1388 case 'n': // 2 strings to match.
1389 if (memcmp(RuleIdentifier.data()+3, "stant_fold_", 11) != 0)
1390 break;
1391 switch (RuleIdentifier[14]) {
1392 default: break;
1393 case 'c': // 1 string to match.
1394 if (memcmp(RuleIdentifier.data()+15, "ast_op", 6) != 0)
1395 break;
1396 return 216; // "constant_fold_cast_op"
1397 case 'f': // 1 string to match.
1398 if (memcmp(RuleIdentifier.data()+15, "ptrunc", 6) != 0)
1399 break;
1400 return 164; // "constant_fold_fptrunc"
1401 }
1402 break;
1403 }
1404 break;
1405 case 'e': // 1 string to match.
1406 if (memcmp(RuleIdentifier.data()+1, "xt_addv_to_udot_addv", 20) != 0)
1407 break;
1408 return 344; // "ext_addv_to_udot_addv"
1409 case 'f': // 2 strings to match.
1410 switch (RuleIdentifier[1]) {
1411 default: break;
1412 case 'd': // 1 string to match.
1413 if (memcmp(RuleIdentifier.data()+2, "iv_repeated_divison", 19) != 0)
1414 break;
1415 return 246; // "fdiv_repeated_divison"
1416 case 'p': // 1 string to match.
1417 if (memcmp(RuleIdentifier.data()+2, "touisat_ffloor_fold", 19) != 0)
1418 break;
1419 return 320; // "fptouisat_ffloor_fold"
1420 }
1421 break;
1422 case 'i': // 1 string to match.
1423 if (memcmp(RuleIdentifier.data()+1, "nsert_vector_elt_oob", 20) != 0)
1424 break;
1425 return 29; // "insert_vector_elt_oob"
1426 case 'l': // 1 string to match.
1427 if (memcmp(RuleIdentifier.data()+1, "shr_of_trunc_of_lshr", 20) != 0)
1428 break;
1429 return 321; // "lshr_of_trunc_of_lshr"
1430 case 'p': // 6 strings to match.
1431 if (memcmp(RuleIdentifier.data()+1, "ush_", 4) != 0)
1432 break;
1433 switch (RuleIdentifier[5]) {
1434 default: break;
1435 case 'a': // 2 strings to match.
1436 if (memcmp(RuleIdentifier.data()+6, "dd_through_", 11) != 0)
1437 break;
1438 switch (RuleIdentifier[17]) {
1439 default: break;
1440 case 's': // 1 string to match.
1441 if (memcmp(RuleIdentifier.data()+18, "ext", 3) != 0)
1442 break;
1443 return 350; // "push_add_through_sext"
1444 case 'z': // 1 string to match.
1445 if (memcmp(RuleIdentifier.data()+18, "ext", 3) != 0)
1446 break;
1447 return 347; // "push_add_through_zext"
1448 }
1449 break;
1450 case 'm': // 2 strings to match.
1451 if (memcmp(RuleIdentifier.data()+6, "ul_through_", 11) != 0)
1452 break;
1453 switch (RuleIdentifier[17]) {
1454 default: break;
1455 case 's': // 1 string to match.
1456 if (memcmp(RuleIdentifier.data()+18, "ext", 3) != 0)
1457 break;
1458 return 351; // "push_mul_through_sext"
1459 case 'z': // 1 string to match.
1460 if (memcmp(RuleIdentifier.data()+18, "ext", 3) != 0)
1461 break;
1462 return 348; // "push_mul_through_zext"
1463 }
1464 break;
1465 case 's': // 2 strings to match.
1466 if (memcmp(RuleIdentifier.data()+6, "ub_through_", 11) != 0)
1467 break;
1468 switch (RuleIdentifier[17]) {
1469 default: break;
1470 case 's': // 1 string to match.
1471 if (memcmp(RuleIdentifier.data()+18, "ext", 3) != 0)
1472 break;
1473 return 349; // "push_sub_through_sext"
1474 case 'z': // 1 string to match.
1475 if (memcmp(RuleIdentifier.data()+18, "ext", 3) != 0)
1476 break;
1477 return 346; // "push_sub_through_zext"
1478 }
1479 break;
1480 }
1481 break;
1482 case 'r': // 1 string to match.
1483 if (memcmp(RuleIdentifier.data()+1, "ight_identity_one_fp", 20) != 0)
1484 break;
1485 return 105; // "right_identity_one_fp"
1486 case 's': // 1 string to match.
1487 if (memcmp(RuleIdentifier.data()+1, "elect_same_val_equiv", 20) != 0)
1488 break;
1489 return 92; // "select_same_val_equiv"
1490 case 'u': // 2 strings to match.
1491 if (RuleIdentifier[1] != 'n')
1492 break;
1493 switch (RuleIdentifier[2]) {
1494 default: break;
1495 case 'd': // 1 string to match.
1496 if (memcmp(RuleIdentifier.data()+3, "ef_to_negative_one", 18) != 0)
1497 break;
1498 return 79; // "undef_to_negative_one"
1499 case 'm': // 1 string to match.
1500 if (memcmp(RuleIdentifier.data()+3, "erge_dead_to_trunc", 18) != 0)
1501 break;
1502 return 304; // "unmerge_dead_to_trunc"
1503 }
1504 break;
1505 }
1506 break;
1507 case 22: // 11 strings to match.
1508 switch (RuleIdentifier[0]) {
1509 default: break;
1510 case 'c': // 3 strings to match.
1511 if (RuleIdentifier[1] != 'o')
1512 break;
1513 switch (RuleIdentifier[2]) {
1514 default: break;
1515 case 'm': // 2 strings to match.
1516 if (memcmp(RuleIdentifier.data()+3, "bine_shuffle_", 13) != 0)
1517 break;
1518 switch (RuleIdentifier[16]) {
1519 default: break;
1520 case 'c': // 1 string to match.
1521 if (memcmp(RuleIdentifier.data()+17, "oncat", 5) != 0)
1522 break;
1523 return 295; // "combine_shuffle_concat"
1524 case 'v': // 1 string to match.
1525 if (memcmp(RuleIdentifier.data()+17, "ector", 5) != 0)
1526 break;
1527 return 341; // "combine_shuffle_vector"
1528 }
1529 break;
1530 case 'n': // 1 string to match.
1531 if (memcmp(RuleIdentifier.data()+3, "stant_fold_fp_binop", 19) != 0)
1532 break;
1533 return 214; // "constant_fold_fp_binop"
1534 }
1535 break;
1536 case 'f': // 2 strings to match.
1537 if (memcmp(RuleIdentifier.data()+1, "unnel_shift_", 12) != 0)
1538 break;
1539 switch (RuleIdentifier[13]) {
1540 default: break;
1541 case 'l': // 1 string to match.
1542 if (memcmp(RuleIdentifier.data()+14, "eft_zero", 8) != 0)
1543 break;
1544 return 201; // "funnel_shift_left_zero"
1545 case 'o': // 1 string to match.
1546 if (memcmp(RuleIdentifier.data()+14, "vershift", 8) != 0)
1547 break;
1548 return 202; // "funnel_shift_overshift"
1549 }
1550 break;
1551 case 'i': // 1 string to match.
1552 if (memcmp(RuleIdentifier.data()+1, "cmp_to_lhs_known_bits", 21) != 0)
1553 break;
1554 return 127; // "icmp_to_lhs_known_bits"
1555 case 'm': // 1 string to match.
1556 if (memcmp(RuleIdentifier.data()+1, "ul_by_zero_one_vector", 21) != 0)
1557 break;
1558 return 46; // "mul_by_zero_one_vector"
1559 case 'p': // 1 string to match.
1560 if (memcmp(RuleIdentifier.data()+1, "ropagate_undef_any_op", 21) != 0)
1561 break;
1562 return 84; // "propagate_undef_any_op"
1563 case 'r': // 1 string to match.
1564 if (memcmp(RuleIdentifier.data()+1, "ight_identity_one_int", 21) != 0)
1565 break;
1566 return 104; // "right_identity_one_int"
1567 case 's': // 1 string to match.
1568 if (memcmp(RuleIdentifier.data()+1, "hl_ashr_to_sext_inreg", 21) != 0)
1569 break;
1570 return 131; // "shl_ashr_to_sext_inreg"
1571 case 't': // 1 string to match.
1572 if (memcmp(RuleIdentifier.data()+1, "runc_buildvector_fold", 21) != 0)
1573 break;
1574 return 109; // "trunc_buildvector_fold"
1575 }
1576 break;
1577 case 23: // 6 strings to match.
1578 switch (RuleIdentifier[0]) {
1579 default: break;
1580 case 'b': // 1 string to match.
1581 if (memcmp(RuleIdentifier.data()+1, "uildvector_of_truncate", 22) != 0)
1582 break;
1583 return 63; // "buildvector_of_truncate"
1584 case 'f': // 1 string to match.
1585 if (memcmp(RuleIdentifier.data()+1, "unnel_shift_right_zero", 22) != 0)
1586 break;
1587 return 200; // "funnel_shift_right_zero"
1588 case 'i': // 2 strings to match.
1589 if (memcmp(RuleIdentifier.data()+1, "tof_const_zero_fold_", 20) != 0)
1590 break;
1591 switch (RuleIdentifier[21]) {
1592 default: break;
1593 case 's': // 1 string to match.
1594 if (RuleIdentifier[22] != 'i')
1595 break;
1596 return 173; // "itof_const_zero_fold_si"
1597 case 'u': // 1 string to match.
1598 if (RuleIdentifier[22] != 'i')
1599 break;
1600 return 174; // "itof_const_zero_fold_ui"
1601 }
1602 break;
1603 case 's': // 1 string to match.
1604 if (memcmp(RuleIdentifier.data()+1, "elect_same_val_trivial", 22) != 0)
1605 break;
1606 return 91; // "select_same_val_trivial"
1607 case 't': // 1 string to match.
1608 if (memcmp(RuleIdentifier.data()+1, "runcusatu_to_fptouisat", 22) != 0)
1609 break;
1610 return 318; // "truncusatu_to_fptouisat"
1611 }
1612 break;
1613 case 24: // 15 strings to match.
1614 switch (RuleIdentifier[0]) {
1615 default: break;
1616 case 'b': // 1 string to match.
1617 if (memcmp(RuleIdentifier.data()+1, "inop_left_undef_to_zero", 23) != 0)
1618 break;
1619 return 80; // "binop_left_undef_to_zero"
1620 case 'c': // 4 strings to match.
1621 switch (RuleIdentifier[1]) {
1622 default: break;
1623 case 'o': // 1 string to match.
1624 if (memcmp(RuleIdentifier.data()+2, "nstant_fold_fnearbyint", 22) != 0)
1625 break;
1626 return 172; // "constant_fold_fnearbyint"
1627 case 't': // 3 strings to match.
1628 switch (RuleIdentifier[2]) {
1629 default: break;
1630 case 'l': // 2 strings to match.
1631 if (memcmp(RuleIdentifier.data()+3, "z_", 2) != 0)
1632 break;
1633 switch (RuleIdentifier[5]) {
1634 default: break;
1635 case 't': // 1 string to match.
1636 if (memcmp(RuleIdentifier.data()+6, "o_ctlz_zero_poison", 18) != 0)
1637 break;
1638 return 324; // "ctlz_to_ctlz_zero_poison"
1639 case 'z': // 1 string to match.
1640 if (memcmp(RuleIdentifier.data()+6, "ero_poison_to_ctls", 18) != 0)
1641 break;
1642 return 323; // "ctlz_zero_poison_to_ctls"
1643 }
1644 break;
1645 case 't': // 1 string to match.
1646 if (memcmp(RuleIdentifier.data()+3, "z_to_cttz_zero_poison", 21) != 0)
1647 break;
1648 return 325; // "cttz_to_cttz_zero_poison"
1649 }
1650 break;
1651 }
1652 break;
1653 case 'f': // 2 strings to match.
1654 if (memcmp(RuleIdentifier.data()+1, "old_binop_into_select_", 22) != 0)
1655 break;
1656 switch (RuleIdentifier[23]) {
1657 default: break;
1658 case 'a': // 1 string to match.
1659 return 236; // "fold_binop_into_select_a"
1660 case 'b': // 1 string to match.
1661 return 237; // "fold_binop_into_select_b"
1662 }
1663 break;
1664 case 'm': // 1 string to match.
1665 if (memcmp(RuleIdentifier.data()+1, "atch_extract_of_element", 23) != 0)
1666 break;
1667 return 28; // "match_extract_of_element"
1668 case 'n': // 1 string to match.
1669 if (memcmp(RuleIdentifier.data()+1, "arrow_binop_feeding_and", 23) != 0)
1670 break;
1671 return 135; // "narrow_binop_feeding_and"
1672 case 'p': // 2 strings to match.
1673 if (memcmp(RuleIdentifier.data()+1, "tr_add_with_zero_", 17) != 0)
1674 break;
1675 switch (RuleIdentifier[18]) {
1676 default: break;
1677 case 's': // 1 string to match.
1678 if (memcmp(RuleIdentifier.data()+19, "calar", 5) != 0)
1679 break;
1680 return 191; // "ptr_add_with_zero_scalar"
1681 case 'v': // 1 string to match.
1682 if (memcmp(RuleIdentifier.data()+19, "ector", 5) != 0)
1683 break;
1684 return 192; // "ptr_add_with_zero_vector"
1685 }
1686 break;
1687 case 's': // 3 strings to match.
1688 if (RuleIdentifier[1] != 'e')
1689 break;
1690 switch (RuleIdentifier[2]) {
1691 default: break;
1692 case 'l': // 1 string to match.
1693 if (memcmp(RuleIdentifier.data()+3, "ect_constant_cmp_true", 21) != 0)
1694 break;
1695 return 138; // "select_constant_cmp_true"
1696 case 'x': // 2 strings to match.
1697 if (memcmp(RuleIdentifier.data()+3, "t_inreg_", 8) != 0)
1698 break;
1699 switch (RuleIdentifier[11]) {
1700 default: break;
1701 case 'o': // 1 string to match.
1702 if (memcmp(RuleIdentifier.data()+12, "f_sext_inreg", 12) != 0)
1703 break;
1704 return 59; // "sext_inreg_of_sext_inreg"
1705 case 't': // 1 string to match.
1706 if (memcmp(RuleIdentifier.data()+12, "o_zext_inreg", 12) != 0)
1707 break;
1708 return 154; // "sext_inreg_to_zext_inreg"
1709 }
1710 break;
1711 }
1712 break;
1713 case 'x': // 1 string to match.
1714 if (memcmp(RuleIdentifier.data()+1, "or_of_and_with_same_reg", 23) != 0)
1715 break;
1716 return 190; // "xor_of_and_with_same_reg"
1717 }
1718 break;
1719 case 25: // 9 strings to match.
1720 switch (RuleIdentifier[0]) {
1721 default: break;
1722 case 'b': // 2 strings to match.
1723 if (memcmp(RuleIdentifier.data()+1, "itfield_extract_from_", 21) != 0)
1724 break;
1725 switch (RuleIdentifier[22]) {
1726 default: break;
1727 case 'a': // 1 string to match.
1728 if (memcmp(RuleIdentifier.data()+23, "nd", 2) != 0)
1729 break;
1730 return 210; // "bitfield_extract_from_and"
1731 case 's': // 1 string to match.
1732 if (memcmp(RuleIdentifier.data()+23, "hr", 2) != 0)
1733 break;
1734 return 211; // "bitfield_extract_from_shr"
1735 }
1736 break;
1737 case 'c': // 1 string to match.
1738 if (memcmp(RuleIdentifier.data()+1, "ombine_shuffle_undef_rhs", 24) != 0)
1739 break;
1740 return 296; // "combine_shuffle_undef_rhs"
1741 case 'e': // 1 string to match.
1742 if (memcmp(RuleIdentifier.data()+1, "xtract_vec_elt_build_vec", 24) != 0)
1743 break;
1744 return 72; // "extract_vec_elt_build_vec"
1745 case 'n': // 1 string to match.
1746 if (memcmp(RuleIdentifier.data()+1, "eg_and_one_to_sext_inreg", 24) != 0)
1747 break;
1748 return 132; // "neg_and_one_to_sext_inreg"
1749 case 'r': // 3 strings to match.
1750 switch (RuleIdentifier[1]) {
1751 default: break;
1752 case 'e': // 2 strings to match.
1753 if (memcmp(RuleIdentifier.data()+2, "dundant_", 8) != 0)
1754 break;
1755 switch (RuleIdentifier[10]) {
1756 default: break;
1757 case 'a': // 1 string to match.
1758 if (memcmp(RuleIdentifier.data()+11, "ext_sext_inreg", 14) != 0)
1759 break;
1760 return 147; // "redundant_aext_sext_inreg"
1761 case 'z': // 1 string to match.
1762 if (memcmp(RuleIdentifier.data()+11, "ext_sext_inreg", 14) != 0)
1763 break;
1764 return 146; // "redundant_zext_sext_inreg"
1765 }
1766 break;
1767 case 'i': // 1 string to match.
1768 if (memcmp(RuleIdentifier.data()+2, "ght_identity_neg_one_fp", 23) != 0)
1769 break;
1770 return 116; // "right_identity_neg_one_fp"
1771 }
1772 break;
1773 case 's': // 1 string to match.
1774 if (memcmp(RuleIdentifier.data()+1, "elect_constant_cmp_false", 24) != 0)
1775 break;
1776 return 137; // "select_constant_cmp_false"
1777 }
1778 break;
1779 case 26: // 5 strings to match.
1780 switch (RuleIdentifier[0]) {
1781 default: break;
1782 case 'b': // 2 strings to match.
1783 if (RuleIdentifier[1] != 'i')
1784 break;
1785 switch (RuleIdentifier[2]) {
1786 default: break;
1787 case 'n': // 1 string to match.
1788 if (memcmp(RuleIdentifier.data()+3, "op_right_undef_to_undef", 23) != 0)
1789 break;
1790 return 81; // "binop_right_undef_to_undef"
1791 case 't': // 1 string to match.
1792 if (memcmp(RuleIdentifier.data()+3, "cast_bitcast_to_bitcast", 23) != 0)
1793 break;
1794 return 112; // "bitcast_bitcast_to_bitcast"
1795 }
1796 break;
1797 case 'c': // 1 string to match.
1798 if (memcmp(RuleIdentifier.data()+1, "onstant_fold_unary_int_op", 25) != 0)
1799 break;
1800 return 217; // "constant_fold_unary_int_op"
1801 case 'f': // 1 string to match.
1802 if (memcmp(RuleIdentifier.data()+1, "unnel_shift_from_or_shift", 25) != 0)
1803 break;
1804 return 197; // "funnel_shift_from_or_shift"
1805 case 'r': // 1 string to match.
1806 if (memcmp(RuleIdentifier.data()+1, "ight_identity_neg_zero_fp", 25) != 0)
1807 break;
1808 return 114; // "right_identity_neg_zero_fp"
1809 }
1810 break;
1811 case 27: // 7 strings to match.
1812 switch (RuleIdentifier[0]) {
1813 default: break;
1814 case 'c': // 1 string to match.
1815 if (memcmp(RuleIdentifier.data()+1, "ombine_use_vector_truncate", 26) != 0)
1816 break;
1817 return 298; // "combine_use_vector_truncate"
1818 case 'd': // 1 string to match.
1819 if (memcmp(RuleIdentifier.data()+1, "ouble_icmp_zero_or_combine", 26) != 0)
1820 break;
1821 return 129; // "double_icmp_zero_or_combine"
1822 case 'f': // 1 string to match.
1823 if (memcmp(RuleIdentifier.data()+1, "unnel_shift_to_rotate_left", 26) != 0)
1824 break;
1825 return 198; // "funnel_shift_to_rotate_left"
1826 case 'r': // 2 strings to match.
1827 if (memcmp(RuleIdentifier.data()+1, "edundant_", 9) != 0)
1828 break;
1829 switch (RuleIdentifier[10]) {
1830 default: break;
1831 case 'b': // 1 string to match.
1832 if (memcmp(RuleIdentifier.data()+11, "inop_in_equality", 16) != 0)
1833 break;
1834 return 130; // "redundant_binop_in_equality"
1835 case 'n': // 1 string to match.
1836 if (memcmp(RuleIdentifier.data()+11, "eg_operands_fsub", 16) != 0)
1837 break;
1838 return 222; // "redundant_neg_operands_fsub"
1839 }
1840 break;
1841 case 't': // 1 string to match.
1842 if (memcmp(RuleIdentifier.data()+1, "runc_lshr_buildvector_fold", 26) != 0)
1843 break;
1844 return 110; // "trunc_lshr_buildvector_fold"
1845 case 'u': // 1 string to match.
1846 if (memcmp(RuleIdentifier.data()+1, "nmerge_anyext_build_vector", 26) != 0)
1847 break;
1848 return 299; // "unmerge_anyext_build_vector"
1849 }
1850 break;
1851 case 28: // 13 strings to match.
1852 switch (RuleIdentifier[0]) {
1853 default: break;
1854 case 'G': // 1 string to match.
1855 if (memcmp(RuleIdentifier.data()+1, "_OR_commute_constant_to_rhs", 27) != 0)
1856 break;
1857 return 256; // "G_OR_commute_constant_to_rhs"
1858 case 'b': // 1 string to match.
1859 if (memcmp(RuleIdentifier.data()+1, "uildvector_identity_fold_bv", 27) != 0)
1860 break;
1861 return 107; // "buildvector_identity_fold_bv"
1862 case 'd': // 1 string to match.
1863 if (memcmp(RuleIdentifier.data()+1, "ouble_icmp_zero_and_combine", 27) != 0)
1864 break;
1865 return 128; // "double_icmp_zero_and_combine"
1866 case 'e': // 1 string to match.
1867 if (memcmp(RuleIdentifier.data()+1, "xtract_vector_element_undef", 27) != 0)
1868 break;
1869 return 25; // "extract_vector_element_undef"
1870 case 'f': // 1 string to match.
1871 if (memcmp(RuleIdentifier.data()+1, "unnel_shift_to_rotate_right", 27) != 0)
1872 break;
1873 return 199; // "funnel_shift_to_rotate_right"
1874 case 'i': // 1 string to match.
1875 if (memcmp(RuleIdentifier.data()+1, "nsert_vec_elt_out_of_bounds", 27) != 0)
1876 break;
1877 return 89; // "insert_vec_elt_out_of_bounds"
1878 case 'm': // 4 strings to match.
1879 if (memcmp(RuleIdentifier.data()+1, "atch_", 5) != 0)
1880 break;
1881 switch (RuleIdentifier[6]) {
1882 default: break;
1883 case 'a': // 2 strings to match.
1884 if (memcmp(RuleIdentifier.data()+7, "ddos_", 5) != 0)
1885 break;
1886 switch (RuleIdentifier[12]) {
1887 default: break;
1888 case 's': // 1 string to match.
1889 if (memcmp(RuleIdentifier.data()+13, "addo_dead_carry", 15) != 0)
1890 break;
1891 return 309; // "match_addos_saddo_dead_carry"
1892 case 'u': // 1 string to match.
1893 if (memcmp(RuleIdentifier.data()+13, "addo_dead_carry", 15) != 0)
1894 break;
1895 return 310; // "match_addos_uaddo_dead_carry"
1896 }
1897 break;
1898 case 's': // 2 strings to match.
1899 if (memcmp(RuleIdentifier.data()+7, "ubo_no_overflow_", 16) != 0)
1900 break;
1901 switch (RuleIdentifier[23]) {
1902 default: break;
1903 case 's': // 1 string to match.
1904 if (memcmp(RuleIdentifier.data()+24, "subo", 4) != 0)
1905 break;
1906 return 313; // "match_subo_no_overflow_ssubo"
1907 case 'u': // 1 string to match.
1908 if (memcmp(RuleIdentifier.data()+24, "subo", 4) != 0)
1909 break;
1910 return 314; // "match_subo_no_overflow_usubo"
1911 }
1912 break;
1913 }
1914 break;
1915 case 'o': // 1 string to match.
1916 if (memcmp(RuleIdentifier.data()+1, "pt_brcond_by_inverting_cond", 27) != 0)
1917 break;
1918 return 159; // "opt_brcond_by_inverting_cond"
1919 case 'p': // 1 string to match.
1920 if (memcmp(RuleIdentifier.data()+1, "ropagate_undef_shuffle_mask", 27) != 0)
1921 break;
1922 return 87; // "propagate_undef_shuffle_mask"
1923 case 's': // 1 string to match.
1924 if (memcmp(RuleIdentifier.data()+1, "hift_of_shifted_logic_chain", 27) != 0)
1925 break;
1926 return 194; // "shift_of_shifted_logic_chain"
1927 }
1928 break;
1929 case 29: // 12 strings to match.
1930 switch (RuleIdentifier[0]) {
1931 default: break;
1932 case 'G': // 4 strings to match.
1933 if (RuleIdentifier[1] != '_')
1934 break;
1935 switch (RuleIdentifier[2]) {
1936 default: break;
1937 case 'A': // 2 strings to match.
1938 switch (RuleIdentifier[3]) {
1939 default: break;
1940 case 'D': // 1 string to match.
1941 if (memcmp(RuleIdentifier.data()+4, "D_commute_constant_to_rhs", 25) != 0)
1942 break;
1943 return 253; // "G_ADD_commute_constant_to_rhs"
1944 case 'N': // 1 string to match.
1945 if (memcmp(RuleIdentifier.data()+4, "D_commute_constant_to_rhs", 25) != 0)
1946 break;
1947 return 255; // "G_AND_commute_constant_to_rhs"
1948 }
1949 break;
1950 case 'M': // 1 string to match.
1951 if (memcmp(RuleIdentifier.data()+3, "UL_commute_constant_to_rhs", 26) != 0)
1952 break;
1953 return 254; // "G_MUL_commute_constant_to_rhs"
1954 case 'X': // 1 string to match.
1955 if (memcmp(RuleIdentifier.data()+3, "OR_commute_constant_to_rhs", 26) != 0)
1956 break;
1957 return 257; // "G_XOR_commute_constant_to_rhs"
1958 }
1959 break;
1960 case 'b': // 2 strings to match.
1961 switch (RuleIdentifier[1]) {
1962 default: break;
1963 case 'i': // 1 string to match.
1964 if (memcmp(RuleIdentifier.data()+2, "tfield_extract_from_shr_and", 27) != 0)
1965 break;
1966 return 212; // "bitfield_extract_from_shr_and"
1967 case 'u': // 1 string to match.
1968 if (memcmp(RuleIdentifier.data()+2, "ildvector_identity_fold_bvt", 27) != 0)
1969 break;
1970 return 108; // "buildvector_identity_fold_bvt"
1971 }
1972 break;
1973 case 'c': // 4 strings to match.
1974 if (RuleIdentifier[1] != 'o')
1975 break;
1976 switch (RuleIdentifier[2]) {
1977 default: break;
1978 case 'm': // 2 strings to match.
1979 if (memcmp(RuleIdentifier.data()+3, "bine_", 5) != 0)
1980 break;
1981 switch (RuleIdentifier[8]) {
1982 default: break;
1983 case 'e': // 1 string to match.
1984 if (memcmp(RuleIdentifier.data()+9, "xtracted_vector_load", 20) != 0)
1985 break;
1986 return 76; // "combine_extracted_vector_load"
1987 case 's': // 1 string to match.
1988 if (memcmp(RuleIdentifier.data()+9, "huffle_disjoint_mask", 20) != 0)
1989 break;
1990 return 297; // "combine_shuffle_disjoint_mask"
1991 }
1992 break;
1993 case 'n': // 2 strings to match.
1994 if (memcmp(RuleIdentifier.data()+3, "stant_fold_intrinsic_", 21) != 0)
1995 break;
1996 switch (RuleIdentifier[24]) {
1997 default: break;
1998 case 'r': // 1 string to match.
1999 if (memcmp(RuleIdentifier.data()+25, "ound", 4) != 0)
2000 break;
2001 return 169; // "constant_fold_intrinsic_round"
2002 case 't': // 1 string to match.
2003 if (memcmp(RuleIdentifier.data()+25, "runc", 4) != 0)
2004 break;
2005 return 168; // "constant_fold_intrinsic_trunc"
2006 }
2007 break;
2008 }
2009 break;
2010 case 'e': // 1 string to match.
2011 if (memcmp(RuleIdentifier.data()+1, "xtract_vec_elt_out_of_bounds", 28) != 0)
2012 break;
2013 return 90; // "extract_vec_elt_out_of_bounds"
2014 case 'i': // 1 string to match.
2015 if (memcmp(RuleIdentifier.data()+1, "cmp_to_true_false_known_bits", 28) != 0)
2016 break;
2017 return 126; // "icmp_to_true_false_known_bits"
2018 }
2019 break;
2020 case 30: // 6 strings to match.
2021 switch (RuleIdentifier[0]) {
2022 default: break;
2023 case 'G': // 4 strings to match.
2024 if (RuleIdentifier[1] != '_')
2025 break;
2026 switch (RuleIdentifier[2]) {
2027 default: break;
2028 case 'S': // 2 strings to match.
2029 if (RuleIdentifier[3] != 'M')
2030 break;
2031 switch (RuleIdentifier[4]) {
2032 default: break;
2033 case 'A': // 1 string to match.
2034 if (memcmp(RuleIdentifier.data()+5, "X_commute_constant_to_rhs", 25) != 0)
2035 break;
2036 return 259; // "G_SMAX_commute_constant_to_rhs"
2037 case 'I': // 1 string to match.
2038 if (memcmp(RuleIdentifier.data()+5, "N_commute_constant_to_rhs", 25) != 0)
2039 break;
2040 return 258; // "G_SMIN_commute_constant_to_rhs"
2041 }
2042 break;
2043 case 'U': // 2 strings to match.
2044 if (RuleIdentifier[3] != 'M')
2045 break;
2046 switch (RuleIdentifier[4]) {
2047 default: break;
2048 case 'A': // 1 string to match.
2049 if (memcmp(RuleIdentifier.data()+5, "X_commute_constant_to_rhs", 25) != 0)
2050 break;
2051 return 261; // "G_UMAX_commute_constant_to_rhs"
2052 case 'I': // 1 string to match.
2053 if (memcmp(RuleIdentifier.data()+5, "N_commute_constant_to_rhs", 25) != 0)
2054 break;
2055 return 260; // "G_UMIN_commute_constant_to_rhs"
2056 }
2057 break;
2058 }
2059 break;
2060 case 'f': // 1 string to match.
2061 if (memcmp(RuleIdentifier.data()+1, "reeze_of_non_undef_non_poison", 29) != 0)
2062 break;
2063 return 47; // "freeze_of_non_undef_non_poison"
2064 case 'r': // 1 string to match.
2065 if (memcmp(RuleIdentifier.data()+1, "ight_identity_neg_zero_fp_nsz", 29) != 0)
2066 break;
2067 return 115; // "right_identity_neg_zero_fp_nsz"
2068 }
2069 break;
2070 case 31: // 10 strings to match.
2071 switch (RuleIdentifier[0]) {
2072 default: break;
2073 case 'G': // 6 strings to match.
2074 if (RuleIdentifier[1] != '_')
2075 break;
2076 switch (RuleIdentifier[2]) {
2077 default: break;
2078 case 'S': // 3 strings to match.
2079 switch (RuleIdentifier[3]) {
2080 default: break;
2081 case 'A': // 1 string to match.
2082 if (memcmp(RuleIdentifier.data()+4, "DDO_commute_constant_to_rhs", 27) != 0)
2083 break;
2084 return 271; // "G_SADDO_commute_constant_to_rhs"
2085 case 'M': // 2 strings to match.
2086 if (memcmp(RuleIdentifier.data()+4, "UL", 2) != 0)
2087 break;
2088 switch (RuleIdentifier[6]) {
2089 default: break;
2090 case 'H': // 1 string to match.
2091 if (memcmp(RuleIdentifier.data()+7, "_commute_constant_to_rhs", 24) != 0)
2092 break;
2093 return 263; // "G_SMULH_commute_constant_to_rhs"
2094 case 'O': // 1 string to match.
2095 if (memcmp(RuleIdentifier.data()+7, "_commute_constant_to_rhs", 24) != 0)
2096 break;
2097 return 273; // "G_SMULO_commute_constant_to_rhs"
2098 }
2099 break;
2100 }
2101 break;
2102 case 'U': // 3 strings to match.
2103 switch (RuleIdentifier[3]) {
2104 default: break;
2105 case 'A': // 1 string to match.
2106 if (memcmp(RuleIdentifier.data()+4, "DDO_commute_constant_to_rhs", 27) != 0)
2107 break;
2108 return 270; // "G_UADDO_commute_constant_to_rhs"
2109 case 'M': // 2 strings to match.
2110 if (memcmp(RuleIdentifier.data()+4, "UL", 2) != 0)
2111 break;
2112 switch (RuleIdentifier[6]) {
2113 default: break;
2114 case 'H': // 1 string to match.
2115 if (memcmp(RuleIdentifier.data()+7, "_commute_constant_to_rhs", 24) != 0)
2116 break;
2117 return 262; // "G_UMULH_commute_constant_to_rhs"
2118 case 'O': // 1 string to match.
2119 if (memcmp(RuleIdentifier.data()+7, "_commute_constant_to_rhs", 24) != 0)
2120 break;
2121 return 272; // "G_UMULO_commute_constant_to_rhs"
2122 }
2123 break;
2124 }
2125 break;
2126 }
2127 break;
2128 case 'i': // 2 strings to match.
2129 if (memcmp(RuleIdentifier.data()+1, "nsert_vector_element_", 21) != 0)
2130 break;
2131 switch (RuleIdentifier[22]) {
2132 default: break;
2133 case 'e': // 1 string to match.
2134 if (memcmp(RuleIdentifier.data()+23, "lt_undef", 8) != 0)
2135 break;
2136 return 27; // "insert_vector_element_elt_undef"
2137 case 'i': // 1 string to match.
2138 if (memcmp(RuleIdentifier.data()+23, "dx_undef", 8) != 0)
2139 break;
2140 return 26; // "insert_vector_element_idx_undef"
2141 }
2142 break;
2143 case 'r': // 2 strings to match.
2144 if (memcmp(RuleIdentifier.data()+1, "edundant_neg_operands_fadd_", 27) != 0)
2145 break;
2146 switch (RuleIdentifier[28]) {
2147 default: break;
2148 case 'l': // 1 string to match.
2149 if (memcmp(RuleIdentifier.data()+29, "hs", 2) != 0)
2150 break;
2151 return 221; // "redundant_neg_operands_fadd_lhs"
2152 case 'r': // 1 string to match.
2153 if (memcmp(RuleIdentifier.data()+29, "hs", 2) != 0)
2154 break;
2155 return 220; // "redundant_neg_operands_fadd_rhs"
2156 }
2157 break;
2158 }
2159 break;
2160 case 32: // 5 strings to match.
2161 switch (RuleIdentifier[0]) {
2162 default: break;
2163 case 'b': // 1 string to match.
2164 if (memcmp(RuleIdentifier.data()+1, "itfield_extract_from_sext_inreg", 31) != 0)
2165 break;
2166 return 209; // "bitfield_extract_from_sext_inreg"
2167 case 'c': // 2 strings to match.
2168 if (memcmp(RuleIdentifier.data()+1, "ombine_f", 8) != 0)
2169 break;
2170 switch (RuleIdentifier[9]) {
2171 default: break;
2172 case 'a': // 1 string to match.
2173 if (memcmp(RuleIdentifier.data()+10, "dd_fmul_to_fmad_or_fma", 22) != 0)
2174 break;
2175 return 228; // "combine_fadd_fmul_to_fmad_or_fma"
2176 case 's': // 1 string to match.
2177 if (memcmp(RuleIdentifier.data()+10, "ub_fmul_to_fmad_or_fma", 22) != 0)
2178 break;
2179 return 232; // "combine_fsub_fmul_to_fmad_or_fma"
2180 }
2181 break;
2182 case 'e': // 1 string to match.
2183 if (memcmp(RuleIdentifier.data()+1, "xtract_vector_element_not_const", 31) != 0)
2184 break;
2185 return 30; // "extract_vector_element_not_const"
2186 case 's': // 1 string to match.
2187 if (memcmp(RuleIdentifier.data()+1, "elect_constant_cmp_general_true", 31) != 0)
2188 break;
2189 return 140; // "select_constant_cmp_general_true"
2190 }
2191 break;
2192 case 33: // 10 strings to match.
2193 switch (RuleIdentifier[0]) {
2194 default: break;
2195 case 'G': // 6 strings to match.
2196 if (RuleIdentifier[1] != '_')
2197 break;
2198 switch (RuleIdentifier[2]) {
2199 default: break;
2200 case 'F': // 2 strings to match.
2201 switch (RuleIdentifier[3]) {
2202 default: break;
2203 case 'A': // 1 string to match.
2204 if (memcmp(RuleIdentifier.data()+4, "DD_commute_fp_constant_to_rhs", 29) != 0)
2205 break;
2206 return 274; // "G_FADD_commute_fp_constant_to_rhs"
2207 case 'M': // 1 string to match.
2208 if (memcmp(RuleIdentifier.data()+4, "UL_commute_fp_constant_to_rhs", 29) != 0)
2209 break;
2210 return 275; // "G_FMUL_commute_fp_constant_to_rhs"
2211 }
2212 break;
2213 case 'S': // 2 strings to match.
2214 switch (RuleIdentifier[3]) {
2215 default: break;
2216 case 'A': // 1 string to match.
2217 if (memcmp(RuleIdentifier.data()+4, "DDSAT_commute_constant_to_rhs", 29) != 0)
2218 break;
2219 return 265; // "G_SADDSAT_commute_constant_to_rhs"
2220 case 'M': // 1 string to match.
2221 if (memcmp(RuleIdentifier.data()+4, "ULFIX_commute_constant_to_rhs", 29) != 0)
2222 break;
2223 return 266; // "G_SMULFIX_commute_constant_to_rhs"
2224 }
2225 break;
2226 case 'U': // 2 strings to match.
2227 switch (RuleIdentifier[3]) {
2228 default: break;
2229 case 'A': // 1 string to match.
2230 if (memcmp(RuleIdentifier.data()+4, "DDSAT_commute_constant_to_rhs", 29) != 0)
2231 break;
2232 return 264; // "G_UADDSAT_commute_constant_to_rhs"
2233 case 'M': // 1 string to match.
2234 if (memcmp(RuleIdentifier.data()+4, "ULFIX_commute_constant_to_rhs", 29) != 0)
2235 break;
2236 return 267; // "G_UMULFIX_commute_constant_to_rhs"
2237 }
2238 break;
2239 }
2240 break;
2241 case 'c': // 1 string to match.
2242 if (memcmp(RuleIdentifier.data()+1, "onstant_fold_intrinsic_roundeven", 32) != 0)
2243 break;
2244 return 170; // "constant_fold_intrinsic_roundeven"
2245 case 'r': // 2 strings to match.
2246 if (memcmp(RuleIdentifier.data()+1, "edundant_", 9) != 0)
2247 break;
2248 switch (RuleIdentifier[10]) {
2249 default: break;
2250 case 'a': // 1 string to match.
2251 if (memcmp(RuleIdentifier.data()+11, "ext_unmerge_sext_inreg", 22) != 0)
2252 break;
2253 return 149; // "redundant_aext_unmerge_sext_inreg"
2254 case 'z': // 1 string to match.
2255 if (memcmp(RuleIdentifier.data()+11, "ext_unmerge_sext_inreg", 22) != 0)
2256 break;
2257 return 148; // "redundant_zext_unmerge_sext_inreg"
2258 }
2259 break;
2260 case 's': // 1 string to match.
2261 if (memcmp(RuleIdentifier.data()+1, "elect_constant_cmp_general_false", 32) != 0)
2262 break;
2263 return 139; // "select_constant_cmp_general_false"
2264 }
2265 break;
2266 case 34: // 1 string to match.
2267 if (memcmp(RuleIdentifier.data()+0, "extract_all_elts_from_build_vector", 34) != 0)
2268 break;
2269 return 73; // "extract_all_elts_from_build_vector"
2270 case 35: // 1 string to match.
2271 if (memcmp(RuleIdentifier.data()+0, "extract_vector_element_build_vector", 35) != 0)
2272 break;
2273 return 32; // "extract_vector_element_build_vector"
2274 case 36: // 7 strings to match.
2275 switch (RuleIdentifier[0]) {
2276 default: break;
2277 case 'G': // 4 strings to match.
2278 if (RuleIdentifier[1] != '_')
2279 break;
2280 switch (RuleIdentifier[2]) {
2281 default: break;
2282 case 'F': // 2 strings to match.
2283 if (RuleIdentifier[3] != 'M')
2284 break;
2285 switch (RuleIdentifier[4]) {
2286 default: break;
2287 case 'A': // 1 string to match.
2288 if (memcmp(RuleIdentifier.data()+5, "XNUM_commute_fp_constant_to_rhs", 31) != 0)
2289 break;
2290 return 277; // "G_FMAXNUM_commute_fp_constant_to_rhs"
2291 case 'I': // 1 string to match.
2292 if (memcmp(RuleIdentifier.data()+5, "NNUM_commute_fp_constant_to_rhs", 31) != 0)
2293 break;
2294 return 276; // "G_FMINNUM_commute_fp_constant_to_rhs"
2295 }
2296 break;
2297 case 'S': // 1 string to match.
2298 if (memcmp(RuleIdentifier.data()+3, "MULFIXSAT_commute_constant_to_rhs", 33) != 0)
2299 break;
2300 return 268; // "G_SMULFIXSAT_commute_constant_to_rhs"
2301 case 'U': // 1 string to match.
2302 if (memcmp(RuleIdentifier.data()+3, "MULFIXSAT_commute_constant_to_rhs", 33) != 0)
2303 break;
2304 return 269; // "G_UMULFIXSAT_commute_constant_to_rhs"
2305 }
2306 break;
2307 case 'c': // 2 strings to match.
2308 if (memcmp(RuleIdentifier.data()+1, "ombine_", 7) != 0)
2309 break;
2310 switch (RuleIdentifier[8]) {
2311 default: break;
2312 case 'f': // 1 string to match.
2313 if (memcmp(RuleIdentifier.data()+9, "add_fma_fmul_to_fmad_or_fma", 27) != 0)
2314 break;
2315 return 230; // "combine_fadd_fma_fmul_to_fmad_or_fma"
2316 case 'i': // 1 string to match.
2317 if (memcmp(RuleIdentifier.data()+9, "nsert_vec_elts_build_vector", 27) != 0)
2318 break;
2319 return 71; // "combine_insert_vec_elts_build_vector"
2320 }
2321 break;
2322 case 'p': // 1 string to match.
2323 if (memcmp(RuleIdentifier.data()+1, "ropagate_undef_all_ops_build_vector", 35) != 0)
2324 break;
2325 return 86; // "propagate_undef_all_ops_build_vector"
2326 }
2327 break;
2328 case 37: // 5 strings to match.
2329 switch (RuleIdentifier[0]) {
2330 default: break;
2331 case 'G': // 2 strings to match.
2332 if (memcmp(RuleIdentifier.data()+1, "_FM", 3) != 0)
2333 break;
2334 switch (RuleIdentifier[4]) {
2335 default: break;
2336 case 'A': // 1 string to match.
2337 if (memcmp(RuleIdentifier.data()+5, "XIMUM_commute_fp_constant_to_rhs", 32) != 0)
2338 break;
2339 return 281; // "G_FMAXIMUM_commute_fp_constant_to_rhs"
2340 case 'I': // 1 string to match.
2341 if (memcmp(RuleIdentifier.data()+5, "NIMUM_commute_fp_constant_to_rhs", 32) != 0)
2342 break;
2343 return 280; // "G_FMINIMUM_commute_fp_constant_to_rhs"
2344 }
2345 break;
2346 case 'c': // 1 string to match.
2347 if (memcmp(RuleIdentifier.data()+1, "ombine_fsub_fneg_fmul_to_fmad_or_fma", 36) != 0)
2348 break;
2349 return 233; // "combine_fsub_fneg_fmul_to_fmad_or_fma"
2350 case 'e': // 1 string to match.
2351 if (memcmp(RuleIdentifier.data()+1, "xtract_vector_element_shuffle_vector", 36) != 0)
2352 break;
2353 return 40; // "extract_vector_element_shuffle_vector"
2354 case 'h': // 1 string to match.
2355 if (memcmp(RuleIdentifier.data()+1, "oist_logic_op_with_same_opcode_hands", 36) != 0)
2356 break;
2357 return 119; // "hoist_logic_op_with_same_opcode_hands"
2358 }
2359 break;
2360 case 38: // 3 strings to match.
2361 switch (RuleIdentifier[0]) {
2362 default: break;
2363 case 'c': // 2 strings to match.
2364 if (memcmp(RuleIdentifier.data()+1, "ombine_f", 8) != 0)
2365 break;
2366 switch (RuleIdentifier[9]) {
2367 default: break;
2368 case 'a': // 1 string to match.
2369 if (memcmp(RuleIdentifier.data()+10, "dd_fpext_fmul_to_fmad_or_fma", 28) != 0)
2370 break;
2371 return 229; // "combine_fadd_fpext_fmul_to_fmad_or_fma"
2372 case 's': // 1 string to match.
2373 if (memcmp(RuleIdentifier.data()+10, "ub_fpext_fmul_to_fmad_or_fma", 28) != 0)
2374 break;
2375 return 234; // "combine_fsub_fpext_fmul_to_fmad_or_fma"
2376 }
2377 break;
2378 case 'p': // 1 string to match.
2379 if (memcmp(RuleIdentifier.data()+1, "ropagate_undef_all_ops_shuffle_vector", 37) != 0)
2380 break;
2381 return 85; // "propagate_undef_all_ops_shuffle_vector"
2382 }
2383 break;
2384 case 40: // 1 string to match.
2385 if (memcmp(RuleIdentifier.data()+0, "extract_vector_element_different_indices", 40) != 0)
2386 break;
2387 return 31; // "extract_vector_element_different_indices"
2388 case 41: // 2 strings to match.
2389 if (memcmp(RuleIdentifier.data()+0, "G_FM", 4) != 0)
2390 break;
2391 switch (RuleIdentifier[4]) {
2392 default: break;
2393 case 'A': // 1 string to match.
2394 if (memcmp(RuleIdentifier.data()+5, "XNUM_IEEE_commute_fp_constant_to_rhs", 36) != 0)
2395 break;
2396 return 279; // "G_FMAXNUM_IEEE_commute_fp_constant_to_rhs"
2397 case 'I': // 1 string to match.
2398 if (memcmp(RuleIdentifier.data()+5, "NNUM_IEEE_commute_fp_constant_to_rhs", 36) != 0)
2399 break;
2400 return 278; // "G_FMINNUM_IEEE_commute_fp_constant_to_rhs"
2401 }
2402 break;
2403 case 42: // 9 strings to match.
2404 switch (RuleIdentifier[0]) {
2405 default: break;
2406 case 'c': // 1 string to match.
2407 if (memcmp(RuleIdentifier.data()+1, "ombine_fadd_fpext_fma_fmul_to_fmad_or_fma", 41) != 0)
2408 break;
2409 return 231; // "combine_fadd_fpext_fma_fmul_to_fmad_or_fma"
2410 case 'e': // 7 strings to match.
2411 if (memcmp(RuleIdentifier.data()+1, "xtract_vector_element_build_vector_trunc", 40) != 0)
2412 break;
2413 switch (RuleIdentifier[41]) {
2414 default: break;
2415 case '2': // 1 string to match.
2416 return 33; // "extract_vector_element_build_vector_trunc2"
2417 case '3': // 1 string to match.
2418 return 34; // "extract_vector_element_build_vector_trunc3"
2419 case '4': // 1 string to match.
2420 return 35; // "extract_vector_element_build_vector_trunc4"
2421 case '5': // 1 string to match.
2422 return 36; // "extract_vector_element_build_vector_trunc5"
2423 case '6': // 1 string to match.
2424 return 37; // "extract_vector_element_build_vector_trunc6"
2425 case '7': // 1 string to match.
2426 return 38; // "extract_vector_element_build_vector_trunc7"
2427 case '8': // 1 string to match.
2428 return 39; // "extract_vector_element_build_vector_trunc8"
2429 }
2430 break;
2431 case 'f': // 1 string to match.
2432 if (memcmp(RuleIdentifier.data()+1, "unnel_shift_or_shift_to_funnel_shift_left", 41) != 0)
2433 break;
2434 return 203; // "funnel_shift_or_shift_to_funnel_shift_left"
2435 }
2436 break;
2437 case 43: // 2 strings to match.
2438 switch (RuleIdentifier[0]) {
2439 default: break;
2440 case 'c': // 1 string to match.
2441 if (memcmp(RuleIdentifier.data()+1, "ombine_fsub_fpext_fneg_fmul_to_fmad_or_fma", 42) != 0)
2442 break;
2443 return 235; // "combine_fsub_fpext_fneg_fmul_to_fmad_or_fma"
2444 case 'f': // 1 string to match.
2445 if (memcmp(RuleIdentifier.data()+1, "unnel_shift_or_shift_to_funnel_shift_right", 42) != 0)
2446 break;
2447 return 204; // "funnel_shift_or_shift_to_funnel_shift_right"
2448 }
2449 break;
2450 case 44: // 1 string to match.
2451 if (memcmp(RuleIdentifier.data()+0, "insert_vector_element_extract_vector_element", 44) != 0)
2452 break;
2453 return 41; // "insert_vector_element_extract_vector_element"
2454 case 46: // 1 string to match.
2455 if (memcmp(RuleIdentifier.data()+0, "push_freeze_to_prevent_poison_from_propagating", 46) != 0)
2456 break;
2457 return 48; // "push_freeze_to_prevent_poison_from_propagating"
2458 }
2459#endif // ifndef NDEBUG
2460
2461 return std::nullopt;
2462}
2463static std::optional<std::pair<uint64_t, uint64_t>> getRuleRangeForIdentifier(StringRef RuleIdentifier) {
2464 std::pair<StringRef, StringRef> RangePair = RuleIdentifier.split('-');
2465 if (!RangePair.second.empty()) {
2466 const auto First = getRuleIdxForIdentifier(RangePair.first);
2467 const auto Last = getRuleIdxForIdentifier(RangePair.second);
2468 if (!First || !Last)
2469 return std::nullopt;
2470 if (First >= Last)
2471 report_fatal_error("Beginning of range should be before end of range");
2472 return {{*First, *Last + 1}};
2473 }
2474 if (RangePair.first == "*") {
2475 return {{0, 361}};
2476 }
2477 const auto I = getRuleIdxForIdentifier(RangePair.first);
2478 if (!I)
2479 return std::nullopt;
2480 return {{*I, *I + 1}};
2481}
2482
2483bool AArch64PreLegalizerCombinerImplRuleConfig::setRuleEnabled(StringRef RuleIdentifier) {
2484 auto MaybeRange = getRuleRangeForIdentifier(RuleIdentifier);
2485 if (!MaybeRange)
2486 return false;
2487 for (auto I = MaybeRange->first; I < MaybeRange->second; ++I)
2488 DisabledRules.reset(I);
2489 return true;
2490}
2491
2492bool AArch64PreLegalizerCombinerImplRuleConfig::setRuleDisabled(StringRef RuleIdentifier) {
2493 auto MaybeRange = getRuleRangeForIdentifier(RuleIdentifier);
2494 if (!MaybeRange)
2495 return false;
2496 for (auto I = MaybeRange->first; I < MaybeRange->second; ++I)
2497 DisabledRules.set(I);
2498 return true;
2499}
2500
2501static std::vector<std::string> AArch64PreLegalizerCombinerOption;
2502static cl::list<std::string> AArch64PreLegalizerCombinerDisableOption(
2503 "aarch64prelegalizercombiner-disable-rule",
2504 cl::desc("Disable one or more combiner rules temporarily in the AArch64PreLegalizerCombiner pass"),
2505 cl::CommaSeparated,
2506 cl::Hidden,
2507 cl::cat(GICombinerOptionCategory),
2508 cl::callback([](const std::string &Str) {
2509 AArch64PreLegalizerCombinerOption.push_back(Str);
2510 }));
2511static cl::list<std::string> AArch64PreLegalizerCombinerOnlyEnableOption(
2512 "aarch64prelegalizercombiner-only-enable-rule",
2513 cl::desc("Disable all rules in the AArch64PreLegalizerCombiner pass then re-enable the specified ones"),
2514 cl::Hidden,
2515 cl::cat(GICombinerOptionCategory),
2516 cl::callback([](const std::string &CommaSeparatedArg) {
2517 StringRef Str = CommaSeparatedArg;
2518 AArch64PreLegalizerCombinerOption.push_back("*");
2519 do {
2520 auto X = Str.split(",");
2521 AArch64PreLegalizerCombinerOption.push_back(("!" + X.first).str());
2522 Str = X.second;
2523 } while (!Str.empty());
2524 }));
2525
2526
2527bool AArch64PreLegalizerCombinerImplRuleConfig::isRuleEnabled(unsigned RuleID) const {
2528 return !DisabledRules.test(RuleID);
2529}
2530bool AArch64PreLegalizerCombinerImplRuleConfig::parseCommandLineOption() {
2531 for (StringRef Identifier : AArch64PreLegalizerCombinerOption) {
2532 bool Enabled = Identifier.consume_front("!");
2533 if (Enabled && !setRuleEnabled(Identifier))
2534 return false;
2535 if (!Enabled && !setRuleDisabled(Identifier))
2536 return false;
2537 }
2538 return true;
2539}
2540
2541
2542#endif // GET_GICOMBINER_TYPES
2543
2544#ifdef GET_GICOMBINER_TYPES
2545
2546const unsigned MAX_SUBTARGET_PREDICATES = 2;
2547using PredicateBitset = llvm::Bitset<MAX_SUBTARGET_PREDICATES>;
2548
2549#endif // GET_GICOMBINER_TYPES
2550
2551#ifdef GET_GICOMBINER_CLASS_MEMBERS
2552
2553 bool canMatchOpcode(unsigned Opc) const override;
2554 uint32_t getRootFlagsToDrop() const override;
2555
2556#endif // GET_GICOMBINER_CLASS_MEMBERS
2557
2558#ifdef GET_GICOMBINER_CLASS_MEMBERS
2559
2560PredicateBitset AvailableModuleFeatures;
2561mutable PredicateBitset AvailableFunctionFeatures;
2562PredicateBitset getAvailableFeatures() const {
2563 return AvailableModuleFeatures | AvailableFunctionFeatures;
2564}
2565PredicateBitset
2566computeAvailableModuleFeatures(const AArch64Subtarget *Subtarget) const;
2567PredicateBitset
2568computeAvailableFunctionFeatures(const AArch64Subtarget *Subtarget,
2569 const MachineFunction *MF) const;
2570void setupGeneratedPerFunctionState(MachineFunction &MF) override;
2571
2572#endif // GET_GICOMBINER_CLASS_MEMBERS
2573
2574#ifdef GET_GICOMBINER_CLASS_MEMBERS
2575
2576 mutable MatcherState State;
2577 typedef ComplexRendererFns(AArch64PreLegalizerCombinerImpl::*ComplexMatcherMemFn)(MachineOperand &) const;
2578 typedef void(AArch64PreLegalizerCombinerImpl::*CustomRendererFn)(MachineInstrBuilder &, const MachineInstr &, int) const;
2579 const ExecInfoTy<PredicateBitset, ComplexMatcherMemFn, CustomRendererFn> ExecInfo;
2580 static AArch64PreLegalizerCombinerImpl::ComplexMatcherMemFn ComplexPredicateFns[];
2581 static AArch64PreLegalizerCombinerImpl::CustomRendererFn CustomRenderers[];
2582 bool testImmPredicate_I64(unsigned PredicateID, int64_t Imm) const override;
2583 bool testImmPredicate_APInt(unsigned PredicateID, const APInt &Imm) const override;
2584 bool testImmPredicate_APFloat(unsigned PredicateID, const APFloat &Imm) const override;
2585 const uint8_t *getMatchTable() const override;
2586 LLT getLLTForHwMode(unsigned Index) const override;
2587 bool testMIPredicate_MI(unsigned PredicateID, const MachineInstr &MI, const MatcherState &State) const override;
2588 bool testMOPredicate_MO(unsigned PredicateID, const MachineOperand &MO, const MatcherState &State) const override;
2589 bool testSimplePredicate(unsigned PredicateID) const override;
2590 bool runCustomAction(unsigned FnID, const MatcherState &State, NewMIVector &OutMIs) const override;
2591
2592#endif // GET_GICOMBINER_CLASS_MEMBERS
2593
2594#ifdef GET_GICOMBINER_IMPL
2595
2596// LLT Objects.
2597enum {
2598 GILLT_s1,
2599};
2600const static size_t NumTypeObjects = 1;
2601const static LLT TypeObjects[] = {
2602 LLT::scalar(1),
2603};
2604
2605// Bits for subtarget features that participate in instruction matching.
2606enum SubtargetFeatureBits : uint8_t {
2607 Feature_HasNEONBit = 1,
2608 Feature_HasDotProdBit = 0,
2609};
2610
2611PredicateBitset AArch64PreLegalizerCombinerImpl::
2612computeAvailableModuleFeatures(const AArch64Subtarget *Subtarget) const {
2613 PredicateBitset Features{};
2614 if (Subtarget->isNeonAvailable())
2615 Features.set(Feature_HasNEONBit);
2616 if (Subtarget->hasDotProd())
2617 Features.set(Feature_HasDotProdBit);
2618 return Features;
2619}
2620
2621void AArch64PreLegalizerCombinerImpl::setupGeneratedPerFunctionState(MachineFunction &MF) {
2622 AvailableFunctionFeatures = computeAvailableFunctionFeatures((const AArch64Subtarget *)&MF.getSubtarget(), &MF);
2623}
2624PredicateBitset AArch64PreLegalizerCombinerImpl::
2625computeAvailableFunctionFeatures(const AArch64Subtarget *Subtarget, const MachineFunction *MF) const {
2626 PredicateBitset Features{};
2627 return Features;
2628}
2629
2630// Feature bitsets.
2631enum {
2632 GIFBS_Invalid,
2633 GIFBS_HasDotProd,
2634 GIFBS_HasNEON,
2635};
2636constexpr static PredicateBitset FeatureBitsets[] {
2637 {}, // GIFBS_Invalid
2638 {Feature_HasDotProdBit, },
2639 {Feature_HasNEONBit, },
2640};
2641
2642// ComplexPattern predicates.
2643enum {
2644 GICP_Invalid,
2645};
2646// See constructor for table contents
2647
2648AArch64PreLegalizerCombinerImpl::ComplexMatcherMemFn
2649AArch64PreLegalizerCombinerImpl::ComplexPredicateFns[] = {
2650 nullptr, // GICP_Invalid
2651};
2652
2653enum {
2654 GICXXPred_MI_Predicate_GICombiner0 = GICXXPred_Invalid + 1,
2655 GICXXPred_MI_Predicate_GICombiner1,
2656 GICXXPred_MI_Predicate_GICombiner2,
2657 GICXXPred_MI_Predicate_GICombiner3,
2658 GICXXPred_MI_Predicate_GICombiner4,
2659 GICXXPred_MI_Predicate_GICombiner5,
2660 GICXXPred_MI_Predicate_GICombiner6,
2661 GICXXPred_MI_Predicate_GICombiner7,
2662 GICXXPred_MI_Predicate_GICombiner8,
2663 GICXXPred_MI_Predicate_GICombiner9,
2664 GICXXPred_MI_Predicate_GICombiner10,
2665 GICXXPred_MI_Predicate_GICombiner11,
2666 GICXXPred_MI_Predicate_GICombiner12,
2667 GICXXPred_MI_Predicate_GICombiner13,
2668 GICXXPred_MI_Predicate_GICombiner14,
2669 GICXXPred_MI_Predicate_GICombiner15,
2670 GICXXPred_MI_Predicate_GICombiner16,
2671 GICXXPred_MI_Predicate_GICombiner17,
2672 GICXXPred_MI_Predicate_GICombiner18,
2673 GICXXPred_MI_Predicate_GICombiner19,
2674 GICXXPred_MI_Predicate_GICombiner20,
2675 GICXXPred_MI_Predicate_GICombiner21,
2676 GICXXPred_MI_Predicate_GICombiner22,
2677 GICXXPred_MI_Predicate_GICombiner23,
2678 GICXXPred_MI_Predicate_GICombiner24,
2679 GICXXPred_MI_Predicate_GICombiner25,
2680 GICXXPred_MI_Predicate_GICombiner26,
2681 GICXXPred_MI_Predicate_GICombiner27,
2682 GICXXPred_MI_Predicate_GICombiner28,
2683 GICXXPred_MI_Predicate_GICombiner29,
2684 GICXXPred_MI_Predicate_GICombiner30,
2685 GICXXPred_MI_Predicate_GICombiner31,
2686 GICXXPred_MI_Predicate_GICombiner32,
2687 GICXXPred_MI_Predicate_GICombiner33,
2688 GICXXPred_MI_Predicate_GICombiner34,
2689 GICXXPred_MI_Predicate_GICombiner35,
2690 GICXXPred_MI_Predicate_GICombiner36,
2691 GICXXPred_MI_Predicate_GICombiner37,
2692 GICXXPred_MI_Predicate_GICombiner38,
2693 GICXXPred_MI_Predicate_GICombiner39,
2694 GICXXPred_MI_Predicate_GICombiner40,
2695 GICXXPred_MI_Predicate_GICombiner41,
2696 GICXXPred_MI_Predicate_GICombiner42,
2697 GICXXPred_MI_Predicate_GICombiner43,
2698 GICXXPred_MI_Predicate_GICombiner44,
2699 GICXXPred_MI_Predicate_GICombiner45,
2700 GICXXPred_MI_Predicate_GICombiner46,
2701 GICXXPred_MI_Predicate_GICombiner47,
2702 GICXXPred_MI_Predicate_GICombiner48,
2703 GICXXPred_MI_Predicate_GICombiner49,
2704 GICXXPred_MI_Predicate_GICombiner50,
2705 GICXXPred_MI_Predicate_GICombiner51,
2706 GICXXPred_MI_Predicate_GICombiner52,
2707 GICXXPred_MI_Predicate_GICombiner53,
2708 GICXXPred_MI_Predicate_GICombiner54,
2709 GICXXPred_MI_Predicate_GICombiner55,
2710 GICXXPred_MI_Predicate_GICombiner56,
2711 GICXXPred_MI_Predicate_GICombiner57,
2712 GICXXPred_MI_Predicate_GICombiner58,
2713 GICXXPred_MI_Predicate_GICombiner59,
2714 GICXXPred_MI_Predicate_GICombiner60,
2715 GICXXPred_MI_Predicate_GICombiner61,
2716 GICXXPred_MI_Predicate_GICombiner62,
2717 GICXXPred_MI_Predicate_GICombiner63,
2718 GICXXPred_MI_Predicate_GICombiner64,
2719 GICXXPred_MI_Predicate_GICombiner65,
2720 GICXXPred_MI_Predicate_GICombiner66,
2721};
2722bool AArch64PreLegalizerCombinerImpl::testMIPredicate_MI(unsigned PredicateID, const MachineInstr & MI, const MatcherState &State) const {
2723 switch (PredicateID) {
2724 case GICXXPred_MI_Predicate_GICombiner0: {
2725 return MRI.hasOneNonDBGUse(State.MIs[0]->getOperand(2).getReg());
2726 }
2727 case GICXXPred_MI_Predicate_GICombiner1: {
2728 return MRI.hasOneNonDBGUse(State.MIs[0]->getOperand(1).getReg());
2729 }
2730 case GICXXPred_MI_Predicate_GICombiner2: {
2731 return MRI.getType(State.MIs[1]->getOperand(1).getReg()).getScalarSizeInBits() ==
2732 MRI.getType(State.MIs[0]->getOperand(0).getReg()).getScalarSizeInBits();
2733 }
2734 case GICXXPred_MI_Predicate_GICombiner3: {
2735 return isGuaranteedNotToBePoison(State.MIs[0]->getOperand(1).getReg(), MRI);
2736 }
2737 case GICXXPred_MI_Predicate_GICombiner4: {
2738 return Helper.matchExtractVectorElement(*State.MIs[0]);
2739 }
2740 case GICXXPred_MI_Predicate_GICombiner5: {
2741 return Helper.matchInsertVectorElementOOB(*State.MIs[0]);
2742 }
2743 case GICXXPred_MI_Predicate_GICombiner6: {
2744 return Helper.isZeroOrOneVector(State.MIs[0]->getOperand(2).getReg());
2745 }
2746 case GICXXPred_MI_Predicate_GICombiner7: {
2747 return isGuaranteedNotToBeUndefOrPoison(State.MIs[0]->getOperand(1).getReg(), MRI);
2748 }
2749 case GICXXPred_MI_Predicate_GICombiner8: {
2750 return Helper.matchAllExplicitUsesAreUndef(*State.MIs[0]);
2751 }
2752 case GICXXPred_MI_Predicate_GICombiner9: {
2753 return Helper.matchUndefShuffleVectorMask(*State.MIs[0]);
2754 }
2755 case GICXXPred_MI_Predicate_GICombiner10: {
2756 return cast<GStore>(State.MIs[0])->isUnordered();
2757 }
2758 case GICXXPred_MI_Predicate_GICombiner11: {
2759 return Helper.matchInsertExtractVecEltOutOfBounds(*State.MIs[0]);
2760 }
2761 case GICXXPred_MI_Predicate_GICombiner12: {
2762 return Helper.matchSelectSameVal(*State.MIs[0]);
2763 }
2764 case GICXXPred_MI_Predicate_GICombiner13: {
2765 return Helper.matchConstantOp(State.MIs[0]->getOperand(1), 0);
2766 }
2767 case GICXXPred_MI_Predicate_GICombiner14: {
2768 return MRI.getType(State.MIs[1]->getOperand(1).getReg()) == MRI.getType(State.MIs[0]->getOperand(0).getReg());
2769 }
2770 case GICXXPred_MI_Predicate_GICombiner15: {
2771 return MRI.getType(State.MIs[0]->getOperand(0).getReg()).getSizeInBits() ==
2772 MRI.getType(State.MIs[1]->getOperand(1).getReg()).getSizeInBits();
2773 }
2774 case GICXXPred_MI_Predicate_GICombiner16: {
2775 return MRI.getType(State.MIs[0]->getOperand(0).getReg()).getSizeInBits() >
2776 MRI.getType(State.MIs[1]->getOperand(1).getReg()).getSizeInBits();
2777 }
2778 case GICXXPred_MI_Predicate_GICombiner17: {
2779 return MRI.getType(State.MIs[0]->getOperand(0).getReg()).getSizeInBits() <
2780 MRI.getType(State.MIs[1]->getOperand(1).getReg()).getSizeInBits();
2781 }
2782 case GICXXPred_MI_Predicate_GICombiner18: {
2783 return Helper.matchConstantFPOp(State.MIs[0]->getOperand(2), 1.0);
2784 }
2785 case GICXXPred_MI_Predicate_GICombiner19: {
2786 return MRI.getType(State.MIs[1]->getOperand(1).getReg()) != MRI.getType(State.MIs[0]->getOperand(0).getReg());
2787 }
2788 case GICXXPred_MI_Predicate_GICombiner20: {
2789 return Helper.matchConstantFPOp(State.MIs[0]->getOperand(2), -0.0);
2790 }
2791 case GICXXPred_MI_Predicate_GICombiner21: {
2792 return Helper.matchConstantFPOp(State.MIs[0]->getOperand(2), 0.0);
2793 }
2794 case GICXXPred_MI_Predicate_GICombiner22: {
2795 return Helper.matchConstantFPOp(State.MIs[0]->getOperand(2), -1.0);
2796 }
2797 case GICXXPred_MI_Predicate_GICombiner23: {
2798 return State.MIs[1]->getOperand(1).getPredicate() == CmpInst::ICMP_EQ &&
2799 !MRI.getType(State.MIs[1]->getOperand(2).getReg()).getScalarType().isPointer() &&
2800 (MRI.getType(State.MIs[1]->getOperand(2).getReg()) ==
2801 MRI.getType(State.MIs[2]->getOperand(2).getReg()));
2802 }
2803 case GICXXPred_MI_Predicate_GICombiner24: {
2804 return State.MIs[1]->getOperand(1).getPredicate() == CmpInst::ICMP_NE &&
2805 !MRI.getType(State.MIs[1]->getOperand(2).getReg()).getScalarType().isPointer() &&
2806 (MRI.getType(State.MIs[1]->getOperand(2).getReg()) ==
2807 MRI.getType(State.MIs[2]->getOperand(2).getReg()));
2808 }
2809 case GICXXPred_MI_Predicate_GICombiner25: {
2810 return MRI.hasOneNonDBGUse(State.MIs[0]->getOperand(2).getReg()) &&
2811 Helper.isLegalOrBeforeLegalizer({
2812 TargetOpcode::G_SEXT_INREG,
2813 {MRI.getType(State.MIs[1]->getOperand(1).getReg())},
2814 {},
2815 {1}
2816 });
2817 }
2818 case GICXXPred_MI_Predicate_GICombiner26: {
2819 auto C = isConstantOrConstantSplatVector(State.MIs[0]->getOperand(1).getReg(), MRI);
2820 return C && C->isZero();
2821 llvm_unreachable("GICombiner26 should have returned");
2822 }
2823 case GICXXPred_MI_Predicate_GICombiner27: {
2824 auto C = isConstantOrConstantSplatVector(State.MIs[0]->getOperand(1).getReg(), MRI);
2825 return C && !C->isZero();
2826 llvm_unreachable("GICombiner27 should have returned");
2827 }
2828 case GICXXPred_MI_Predicate_GICombiner28: {
2829 return !isConstantOrConstantSplatVector(State.MIs[0]->getOperand(1).getReg(), MRI) &&
2830 MRI.getType(State.MIs[0]->getOperand(1).getReg()) == MRI.getType(State.MIs[0]->getOperand(0).getReg()) &&
2831 VT->computeNumSignBits(State.MIs[0]->getOperand(1).getReg()) == MRI.getType(State.MIs[0]->getOperand(0).getReg()).getScalarSizeInBits();
2832 }
2833 case GICXXPred_MI_Predicate_GICombiner29: {
2834 return Helper.matchRedundantSExtInReg(*State.MIs[0]);
2835 }
2836 case GICXXPred_MI_Predicate_GICombiner30: {
2837 LLT SrcTy = MRI.getType(State.MIs[1]->getOperand(1).getReg());
2838 return State.MIs[0]->getOperand(2).getImm() <= SrcTy.getScalarSizeInBits() &&
2839 VT->computeNumSignBits(State.MIs[1]->getOperand(1).getReg()) >=
2840 (SrcTy.getScalarSizeInBits() - State.MIs[0]->getOperand(2).getImm() + 1);
2841 llvm_unreachable("GICombiner30 should have returned");
2842 }
2843 case GICXXPred_MI_Predicate_GICombiner31: {
2844 return Helper.matchSignedDivRemToUnsigned(*State.MIs[0],
2845 TargetOpcode::G_UDIV);
2846 }
2847 case GICXXPred_MI_Predicate_GICombiner32: {
2848 return Helper.matchSignedDivRemToUnsigned(*State.MIs[0],
2849 TargetOpcode::G_UREM);
2850 }
2851 case GICXXPred_MI_Predicate_GICombiner33: {
2852 return Helper.matchConstantOp(State.MIs[0]->getOperand(3), 2);
2853 }
2854 case GICXXPred_MI_Predicate_GICombiner34: {
2855 return Helper.matchConstantOp(State.MIs[0]->getOperand(4), 0);
2856 }
2857 case GICXXPred_MI_Predicate_GICombiner35: {
2858 return Helper.isConstantNaN(State.MIs[0]->getOperand(1).getReg());
2859 }
2860 case GICXXPred_MI_Predicate_GICombiner36: {
2861 return Helper.isConstantNaN(State.MIs[0]->getOperand(2).getReg()) &&
2862 !Helper.isConstantNaN(State.MIs[0]->getOperand(1).getReg());
2863 }
2864 case GICXXPred_MI_Predicate_GICombiner37: {
2865 LLT Ty = MRI.getType(State.MIs[0]->getOperand(0).getReg());
2866 return Ty.isPointer() &&
2867 !isConstantOrConstantSplatVector(State.MIs[0]->getOperand(2).getReg(), MRI) &&
2868 !State.MIs[0]->getMF()->getDataLayout().isNonIntegralAddressSpace(
2869 Ty.getAddressSpace());
2870 llvm_unreachable("GICombiner37 should have returned");
2871 }
2872 case GICXXPred_MI_Predicate_GICombiner38: {
2873 return Helper.matchPtrAddZeroVector(*State.MIs[0]);
2874 }
2875 case GICXXPred_MI_Predicate_GICombiner39: {
2876 return Helper.isLegalOrBeforeLegalizer(
2877 {TargetOpcode::G_ROTL,
2878 {MRI.getType(State.MIs[0]->getOperand(1).getReg()),
2879 MRI.getType(State.MIs[0]->getOperand(1).getReg())}});
2880 }
2881 case GICXXPred_MI_Predicate_GICombiner40: {
2882 return Helper.isLegalOrBeforeLegalizer(
2883 {TargetOpcode::G_ROTR,
2884 {MRI.getType(State.MIs[0]->getOperand(1).getReg()),
2885 MRI.getType(State.MIs[0]->getOperand(1).getReg())}});
2886 }
2887 case GICXXPred_MI_Predicate_GICombiner41: {
2888 return Helper.isLegalOrBeforeLegalizer({TargetOpcode::G_LSHR,
2889 {MRI.getType(State.MIs[2]->getOperand(1).getReg()),
2890 MRI.getType(State.MIs[1]->getOperand(2).getReg())}});
2891 }
2892 case GICXXPred_MI_Predicate_GICombiner42: {
2893 return Helper.isLegalOrBeforeLegalizer({TargetOpcode::G_SHL,
2894 {MRI.getType(State.MIs[2]->getOperand(1).getReg()),
2895 MRI.getType(State.MIs[1]->getOperand(2).getReg())}});
2896 }
2897 case GICXXPred_MI_Predicate_GICombiner43: {
2898 return MRI.hasOneNonDBGUse(State.MIs[0]->getOperand(1).getReg()) &&
2899 isConstantOrConstantSplatVector(State.MIs[1]->getOperand(2).getReg(), MRI) &&
2900 isConstantOrConstantSplatVector(State.MIs[0]->getOperand(2).getReg(), MRI) &&
2901 Helper.isDesirableToCommuteWithShift(*State.MIs[0]);
2902 }
2903 case GICXXPred_MI_Predicate_GICombiner44: {
2904 return Helper.isLegalOrBeforeLegalizer({TargetOpcode::G_FSUB,
2905 {MRI.getType(State.MIs[0]->getOperand(0).getReg())}});
2906 }
2907 case GICXXPred_MI_Predicate_GICombiner45: {
2908 return Helper.isLegalOrBeforeLegalizer({TargetOpcode::G_FADD,
2909 {MRI.getType(State.MIs[0]->getOperand(0).getReg())}});
2910 }
2911 case GICXXPred_MI_Predicate_GICombiner46: {
2912 return Helper.matchSameRegOrICstOrSplat(State.MIs[1]->getOperand(2).getReg(),
2913 State.MIs[0]->getOperand(2).getReg());
2914 }
2915 case GICXXPred_MI_Predicate_GICombiner47: {
2916 return Helper.matchSameRegOrICstOrSplat(State.MIs[1]->getOperand(1).getReg(),
2917 State.MIs[0]->getOperand(2).getReg());
2918 }
2919 case GICXXPred_MI_Predicate_GICombiner48: {
2920 return Helper.matchSameRegOrICstOrSplat(State.MIs[0]->getOperand(1).getReg(),
2921 State.MIs[1]->getOperand(2).getReg());
2922 }
2923 case GICXXPred_MI_Predicate_GICombiner49: {
2924 return Helper.matchSameRegOrICstOrSplat(State.MIs[0]->getOperand(1).getReg(),
2925 State.MIs[1]->getOperand(1).getReg());
2926 }
2927 case GICXXPred_MI_Predicate_GICombiner50: {
2928 return Helper.matchFsubToFneg(*State.MIs[0]);
2929 }
2930 case GICXXPred_MI_Predicate_GICombiner51: {
2931 return Helper.matchCommuteConstantToRHS(*State.MIs[0]);
2932 }
2933 case GICXXPred_MI_Predicate_GICombiner52: {
2934 return Helper.matchCommuteFPConstantToRHS(*State.MIs[0]);
2935 }
2936 case GICXXPred_MI_Predicate_GICombiner53: {
2937 return Helper.isLegalOrBeforeLegalizer(
2938 {TargetOpcode::G_ANYEXT,
2939 {MRI.getType(State.MIs[0]->getOperand(0).getReg()),
2940 MRI.getType(State.MIs[0]->getOperand(1).getReg())}});
2941 }
2942 case GICXXPred_MI_Predicate_GICombiner54: {
2943 return Helper.isLegalOrBeforeLegalizer(
2944 {TargetOpcode::G_ZEXT,
2945 {MRI.getType(State.MIs[0]->getOperand(0).getReg()),
2946 MRI.getType(State.MIs[0]->getOperand(1).getReg())}});
2947 }
2948 case GICXXPred_MI_Predicate_GICombiner55: {
2949 return MRI.use_nodbg_empty(State.MIs[0]->getOperand(1).getReg()) &&
2950 Helper.isLegalOrBeforeLegalizer(
2951 {TargetOpcode::G_ADD,
2952 {MRI.getType(State.MIs[0]->getOperand(0).getReg())}});
2953 }
2954 case GICXXPred_MI_Predicate_GICombiner56: {
2955 return Helper.matchTruncUSatU(*State.MIs[0], *State.MIs[1]);
2956 }
2957 case GICXXPred_MI_Predicate_GICombiner57: {
2958 return Helper.matchTruncUSatUToFPTOUISat(*State.MIs[0], *State.MIs[1]);
2959 }
2960 case GICXXPred_MI_Predicate_GICombiner58: {
2961 return Helper.matchCountZeroToZeroPoison(*State.MIs[0],
2962 TargetOpcode::G_CTLZ, TargetOpcode::G_CTLZ_ZERO_POISON);
2963 }
2964 case GICXXPred_MI_Predicate_GICombiner59: {
2965 return Helper.matchCountZeroToZeroPoison(*State.MIs[0],
2966 TargetOpcode::G_CTTZ, TargetOpcode::G_CTTZ_ZERO_POISON);
2967 }
2968 case GICXXPred_MI_Predicate_GICombiner60: {
2969 return MRI.hasOneNonDBGUse(State.MIs[0]->getOperand(2).getReg()) &&
2970 MRI.hasOneNonDBGUse(State.MIs[1]->getOperand(1).getReg());
2971 }
2972 case GICXXPred_MI_Predicate_GICombiner61: {
2973 return MRI.hasOneNonDBGUse(State.MIs[0]->getOperand(1).getReg()) &&
2974 MRI.hasOneNonDBGUse(State.MIs[1]->getOperand(1).getReg());
2975 }
2976 case GICXXPred_MI_Predicate_GICombiner62: {
2977 return MRI.hasOneNonDBGUse(State.MIs[1]->getOperand(2).getReg()) &&
2978 MRI.hasOneNonDBGUse(State.MIs[0]->getOperand(2).getReg());
2979 }
2980 case GICXXPred_MI_Predicate_GICombiner63: {
2981 return MRI.getType(State.MIs[2]->getOperand(1).getReg()) ==
2982 MRI.getType(State.MIs[3]->getOperand(1).getReg()) &&
2983 Helper.isLegal({TargetOpcode::G_UAVGFLOOR,
2984 {MRI.getType(State.MIs[2]->getOperand(1).getReg())}});
2985 }
2986 case GICXXPred_MI_Predicate_GICombiner64: {
2987 return MRI.getType(State.MIs[2]->getOperand(1).getReg()) ==
2988 MRI.getType(State.MIs[3]->getOperand(1).getReg()) &&
2989 Helper.isLegal({TargetOpcode::G_SAVGFLOOR,
2990 {MRI.getType(State.MIs[2]->getOperand(1).getReg())}});
2991 }
2992 case GICXXPred_MI_Predicate_GICombiner65: {
2993 return MRI.getType(State.MIs[3]->getOperand(1).getReg()) ==
2994 MRI.getType(State.MIs[4]->getOperand(1).getReg()) &&
2995 Helper.isLegal({TargetOpcode::G_UAVGCEIL,
2996 {MRI.getType(State.MIs[3]->getOperand(1).getReg())}});
2997 }
2998 case GICXXPred_MI_Predicate_GICombiner66: {
2999 return MRI.getType(State.MIs[3]->getOperand(1).getReg()) ==
3000 MRI.getType(State.MIs[4]->getOperand(1).getReg()) &&
3001 Helper.isLegal({TargetOpcode::G_SAVGCEIL,
3002 {MRI.getType(State.MIs[3]->getOperand(1).getReg())}});
3003 }
3004 }
3005 llvm_unreachable("Unknown predicate");
3006 return false;
3007}
3008bool AArch64PreLegalizerCombinerImpl::testMOPredicate_MO(unsigned PredicateID, const MachineOperand & MO, const MatcherState &State) const {
3009 llvm_unreachable("Unknown predicate");
3010 return false;
3011}
3012bool AArch64PreLegalizerCombinerImpl::testImmPredicate_I64(unsigned PredicateID, int64_t Imm) const {
3013 llvm_unreachable("Unknown predicate");
3014 return false;
3015}
3016bool AArch64PreLegalizerCombinerImpl::testImmPredicate_APFloat(unsigned PredicateID, const APFloat & Imm) const {
3017 llvm_unreachable("Unknown predicate");
3018 return false;
3019}
3020bool AArch64PreLegalizerCombinerImpl::testImmPredicate_APInt(unsigned PredicateID, const APInt & Imm) const {
3021 llvm_unreachable("Unknown predicate");
3022 return false;
3023}
3024enum {
3025 GICXXPred_Simple_IsRule0Enabled = GICXXPred_Invalid + 1,
3026 GICXXPred_Simple_IsRule1Enabled,
3027 GICXXPred_Simple_IsRule2Enabled,
3028 GICXXPred_Simple_IsRule3Enabled,
3029 GICXXPred_Simple_IsRule4Enabled,
3030 GICXXPred_Simple_IsRule5Enabled,
3031 GICXXPred_Simple_IsRule6Enabled,
3032 GICXXPred_Simple_IsRule7Enabled,
3033 GICXXPred_Simple_IsRule8Enabled,
3034 GICXXPred_Simple_IsRule9Enabled,
3035 GICXXPred_Simple_IsRule10Enabled,
3036 GICXXPred_Simple_IsRule11Enabled,
3037 GICXXPred_Simple_IsRule12Enabled,
3038 GICXXPred_Simple_IsRule13Enabled,
3039 GICXXPred_Simple_IsRule14Enabled,
3040 GICXXPred_Simple_IsRule15Enabled,
3041 GICXXPred_Simple_IsRule16Enabled,
3042 GICXXPred_Simple_IsRule17Enabled,
3043 GICXXPred_Simple_IsRule18Enabled,
3044 GICXXPred_Simple_IsRule19Enabled,
3045 GICXXPred_Simple_IsRule20Enabled,
3046 GICXXPred_Simple_IsRule21Enabled,
3047 GICXXPred_Simple_IsRule22Enabled,
3048 GICXXPred_Simple_IsRule23Enabled,
3049 GICXXPred_Simple_IsRule24Enabled,
3050 GICXXPred_Simple_IsRule25Enabled,
3051 GICXXPred_Simple_IsRule26Enabled,
3052 GICXXPred_Simple_IsRule27Enabled,
3053 GICXXPred_Simple_IsRule28Enabled,
3054 GICXXPred_Simple_IsRule29Enabled,
3055 GICXXPred_Simple_IsRule30Enabled,
3056 GICXXPred_Simple_IsRule31Enabled,
3057 GICXXPred_Simple_IsRule32Enabled,
3058 GICXXPred_Simple_IsRule33Enabled,
3059 GICXXPred_Simple_IsRule34Enabled,
3060 GICXXPred_Simple_IsRule35Enabled,
3061 GICXXPred_Simple_IsRule36Enabled,
3062 GICXXPred_Simple_IsRule37Enabled,
3063 GICXXPred_Simple_IsRule38Enabled,
3064 GICXXPred_Simple_IsRule39Enabled,
3065 GICXXPred_Simple_IsRule40Enabled,
3066 GICXXPred_Simple_IsRule41Enabled,
3067 GICXXPred_Simple_IsRule42Enabled,
3068 GICXXPred_Simple_IsRule43Enabled,
3069 GICXXPred_Simple_IsRule44Enabled,
3070 GICXXPred_Simple_IsRule45Enabled,
3071 GICXXPred_Simple_IsRule46Enabled,
3072 GICXXPred_Simple_IsRule47Enabled,
3073 GICXXPred_Simple_IsRule48Enabled,
3074 GICXXPred_Simple_IsRule49Enabled,
3075 GICXXPred_Simple_IsRule50Enabled,
3076 GICXXPred_Simple_IsRule51Enabled,
3077 GICXXPred_Simple_IsRule52Enabled,
3078 GICXXPred_Simple_IsRule53Enabled,
3079 GICXXPred_Simple_IsRule54Enabled,
3080 GICXXPred_Simple_IsRule55Enabled,
3081 GICXXPred_Simple_IsRule56Enabled,
3082 GICXXPred_Simple_IsRule57Enabled,
3083 GICXXPred_Simple_IsRule58Enabled,
3084 GICXXPred_Simple_IsRule59Enabled,
3085 GICXXPred_Simple_IsRule60Enabled,
3086 GICXXPred_Simple_IsRule61Enabled,
3087 GICXXPred_Simple_IsRule62Enabled,
3088 GICXXPred_Simple_IsRule63Enabled,
3089 GICXXPred_Simple_IsRule64Enabled,
3090 GICXXPred_Simple_IsRule65Enabled,
3091 GICXXPred_Simple_IsRule66Enabled,
3092 GICXXPred_Simple_IsRule67Enabled,
3093 GICXXPred_Simple_IsRule68Enabled,
3094 GICXXPred_Simple_IsRule69Enabled,
3095 GICXXPred_Simple_IsRule70Enabled,
3096 GICXXPred_Simple_IsRule71Enabled,
3097 GICXXPred_Simple_IsRule72Enabled,
3098 GICXXPred_Simple_IsRule73Enabled,
3099 GICXXPred_Simple_IsRule74Enabled,
3100 GICXXPred_Simple_IsRule75Enabled,
3101 GICXXPred_Simple_IsRule76Enabled,
3102 GICXXPred_Simple_IsRule77Enabled,
3103 GICXXPred_Simple_IsRule78Enabled,
3104 GICXXPred_Simple_IsRule79Enabled,
3105 GICXXPred_Simple_IsRule80Enabled,
3106 GICXXPred_Simple_IsRule81Enabled,
3107 GICXXPred_Simple_IsRule82Enabled,
3108 GICXXPred_Simple_IsRule83Enabled,
3109 GICXXPred_Simple_IsRule84Enabled,
3110 GICXXPred_Simple_IsRule85Enabled,
3111 GICXXPred_Simple_IsRule86Enabled,
3112 GICXXPred_Simple_IsRule87Enabled,
3113 GICXXPred_Simple_IsRule88Enabled,
3114 GICXXPred_Simple_IsRule89Enabled,
3115 GICXXPred_Simple_IsRule90Enabled,
3116 GICXXPred_Simple_IsRule91Enabled,
3117 GICXXPred_Simple_IsRule92Enabled,
3118 GICXXPred_Simple_IsRule93Enabled,
3119 GICXXPred_Simple_IsRule94Enabled,
3120 GICXXPred_Simple_IsRule95Enabled,
3121 GICXXPred_Simple_IsRule96Enabled,
3122 GICXXPred_Simple_IsRule97Enabled,
3123 GICXXPred_Simple_IsRule98Enabled,
3124 GICXXPred_Simple_IsRule99Enabled,
3125 GICXXPred_Simple_IsRule100Enabled,
3126 GICXXPred_Simple_IsRule101Enabled,
3127 GICXXPred_Simple_IsRule102Enabled,
3128 GICXXPred_Simple_IsRule103Enabled,
3129 GICXXPred_Simple_IsRule104Enabled,
3130 GICXXPred_Simple_IsRule105Enabled,
3131 GICXXPred_Simple_IsRule106Enabled,
3132 GICXXPred_Simple_IsRule107Enabled,
3133 GICXXPred_Simple_IsRule108Enabled,
3134 GICXXPred_Simple_IsRule109Enabled,
3135 GICXXPred_Simple_IsRule110Enabled,
3136 GICXXPred_Simple_IsRule111Enabled,
3137 GICXXPred_Simple_IsRule112Enabled,
3138 GICXXPred_Simple_IsRule113Enabled,
3139 GICXXPred_Simple_IsRule114Enabled,
3140 GICXXPred_Simple_IsRule115Enabled,
3141 GICXXPred_Simple_IsRule116Enabled,
3142 GICXXPred_Simple_IsRule117Enabled,
3143 GICXXPred_Simple_IsRule118Enabled,
3144 GICXXPred_Simple_IsRule119Enabled,
3145 GICXXPred_Simple_IsRule120Enabled,
3146 GICXXPred_Simple_IsRule121Enabled,
3147 GICXXPred_Simple_IsRule122Enabled,
3148 GICXXPred_Simple_IsRule123Enabled,
3149 GICXXPred_Simple_IsRule124Enabled,
3150 GICXXPred_Simple_IsRule125Enabled,
3151 GICXXPred_Simple_IsRule126Enabled,
3152 GICXXPred_Simple_IsRule127Enabled,
3153 GICXXPred_Simple_IsRule128Enabled,
3154 GICXXPred_Simple_IsRule129Enabled,
3155 GICXXPred_Simple_IsRule130Enabled,
3156 GICXXPred_Simple_IsRule131Enabled,
3157 GICXXPred_Simple_IsRule132Enabled,
3158 GICXXPred_Simple_IsRule133Enabled,
3159 GICXXPred_Simple_IsRule134Enabled,
3160 GICXXPred_Simple_IsRule135Enabled,
3161 GICXXPred_Simple_IsRule136Enabled,
3162 GICXXPred_Simple_IsRule137Enabled,
3163 GICXXPred_Simple_IsRule138Enabled,
3164 GICXXPred_Simple_IsRule139Enabled,
3165 GICXXPred_Simple_IsRule140Enabled,
3166 GICXXPred_Simple_IsRule141Enabled,
3167 GICXXPred_Simple_IsRule142Enabled,
3168 GICXXPred_Simple_IsRule143Enabled,
3169 GICXXPred_Simple_IsRule144Enabled,
3170 GICXXPred_Simple_IsRule145Enabled,
3171 GICXXPred_Simple_IsRule146Enabled,
3172 GICXXPred_Simple_IsRule147Enabled,
3173 GICXXPred_Simple_IsRule148Enabled,
3174 GICXXPred_Simple_IsRule149Enabled,
3175 GICXXPred_Simple_IsRule150Enabled,
3176 GICXXPred_Simple_IsRule151Enabled,
3177 GICXXPred_Simple_IsRule152Enabled,
3178 GICXXPred_Simple_IsRule153Enabled,
3179 GICXXPred_Simple_IsRule154Enabled,
3180 GICXXPred_Simple_IsRule155Enabled,
3181 GICXXPred_Simple_IsRule156Enabled,
3182 GICXXPred_Simple_IsRule157Enabled,
3183 GICXXPred_Simple_IsRule158Enabled,
3184 GICXXPred_Simple_IsRule159Enabled,
3185 GICXXPred_Simple_IsRule160Enabled,
3186 GICXXPred_Simple_IsRule161Enabled,
3187 GICXXPred_Simple_IsRule162Enabled,
3188 GICXXPred_Simple_IsRule163Enabled,
3189 GICXXPred_Simple_IsRule164Enabled,
3190 GICXXPred_Simple_IsRule165Enabled,
3191 GICXXPred_Simple_IsRule166Enabled,
3192 GICXXPred_Simple_IsRule167Enabled,
3193 GICXXPred_Simple_IsRule168Enabled,
3194 GICXXPred_Simple_IsRule169Enabled,
3195 GICXXPred_Simple_IsRule170Enabled,
3196 GICXXPred_Simple_IsRule171Enabled,
3197 GICXXPred_Simple_IsRule172Enabled,
3198 GICXXPred_Simple_IsRule173Enabled,
3199 GICXXPred_Simple_IsRule174Enabled,
3200 GICXXPred_Simple_IsRule175Enabled,
3201 GICXXPred_Simple_IsRule176Enabled,
3202 GICXXPred_Simple_IsRule177Enabled,
3203 GICXXPred_Simple_IsRule178Enabled,
3204 GICXXPred_Simple_IsRule179Enabled,
3205 GICXXPred_Simple_IsRule180Enabled,
3206 GICXXPred_Simple_IsRule181Enabled,
3207 GICXXPred_Simple_IsRule182Enabled,
3208 GICXXPred_Simple_IsRule183Enabled,
3209 GICXXPred_Simple_IsRule184Enabled,
3210 GICXXPred_Simple_IsRule185Enabled,
3211 GICXXPred_Simple_IsRule186Enabled,
3212 GICXXPred_Simple_IsRule187Enabled,
3213 GICXXPred_Simple_IsRule188Enabled,
3214 GICXXPred_Simple_IsRule189Enabled,
3215 GICXXPred_Simple_IsRule190Enabled,
3216 GICXXPred_Simple_IsRule191Enabled,
3217 GICXXPred_Simple_IsRule192Enabled,
3218 GICXXPred_Simple_IsRule193Enabled,
3219 GICXXPred_Simple_IsRule194Enabled,
3220 GICXXPred_Simple_IsRule195Enabled,
3221 GICXXPred_Simple_IsRule196Enabled,
3222 GICXXPred_Simple_IsRule197Enabled,
3223 GICXXPred_Simple_IsRule198Enabled,
3224 GICXXPred_Simple_IsRule199Enabled,
3225 GICXXPred_Simple_IsRule200Enabled,
3226 GICXXPred_Simple_IsRule201Enabled,
3227 GICXXPred_Simple_IsRule202Enabled,
3228 GICXXPred_Simple_IsRule203Enabled,
3229 GICXXPred_Simple_IsRule204Enabled,
3230 GICXXPred_Simple_IsRule205Enabled,
3231 GICXXPred_Simple_IsRule206Enabled,
3232 GICXXPred_Simple_IsRule207Enabled,
3233 GICXXPred_Simple_IsRule208Enabled,
3234 GICXXPred_Simple_IsRule209Enabled,
3235 GICXXPred_Simple_IsRule210Enabled,
3236 GICXXPred_Simple_IsRule211Enabled,
3237 GICXXPred_Simple_IsRule212Enabled,
3238 GICXXPred_Simple_IsRule213Enabled,
3239 GICXXPred_Simple_IsRule214Enabled,
3240 GICXXPred_Simple_IsRule215Enabled,
3241 GICXXPred_Simple_IsRule216Enabled,
3242 GICXXPred_Simple_IsRule217Enabled,
3243 GICXXPred_Simple_IsRule218Enabled,
3244 GICXXPred_Simple_IsRule219Enabled,
3245 GICXXPred_Simple_IsRule220Enabled,
3246 GICXXPred_Simple_IsRule221Enabled,
3247 GICXXPred_Simple_IsRule222Enabled,
3248 GICXXPred_Simple_IsRule223Enabled,
3249 GICXXPred_Simple_IsRule224Enabled,
3250 GICXXPred_Simple_IsRule225Enabled,
3251 GICXXPred_Simple_IsRule226Enabled,
3252 GICXXPred_Simple_IsRule227Enabled,
3253 GICXXPred_Simple_IsRule228Enabled,
3254 GICXXPred_Simple_IsRule229Enabled,
3255 GICXXPred_Simple_IsRule230Enabled,
3256 GICXXPred_Simple_IsRule231Enabled,
3257 GICXXPred_Simple_IsRule232Enabled,
3258 GICXXPred_Simple_IsRule233Enabled,
3259 GICXXPred_Simple_IsRule234Enabled,
3260 GICXXPred_Simple_IsRule235Enabled,
3261 GICXXPred_Simple_IsRule236Enabled,
3262 GICXXPred_Simple_IsRule237Enabled,
3263 GICXXPred_Simple_IsRule238Enabled,
3264 GICXXPred_Simple_IsRule239Enabled,
3265 GICXXPred_Simple_IsRule240Enabled,
3266 GICXXPred_Simple_IsRule241Enabled,
3267 GICXXPred_Simple_IsRule242Enabled,
3268 GICXXPred_Simple_IsRule243Enabled,
3269 GICXXPred_Simple_IsRule244Enabled,
3270 GICXXPred_Simple_IsRule245Enabled,
3271 GICXXPred_Simple_IsRule246Enabled,
3272 GICXXPred_Simple_IsRule247Enabled,
3273 GICXXPred_Simple_IsRule248Enabled,
3274 GICXXPred_Simple_IsRule249Enabled,
3275 GICXXPred_Simple_IsRule250Enabled,
3276 GICXXPred_Simple_IsRule251Enabled,
3277 GICXXPred_Simple_IsRule252Enabled,
3278 GICXXPred_Simple_IsRule253Enabled,
3279 GICXXPred_Simple_IsRule254Enabled,
3280 GICXXPred_Simple_IsRule255Enabled,
3281 GICXXPred_Simple_IsRule256Enabled,
3282 GICXXPred_Simple_IsRule257Enabled,
3283 GICXXPred_Simple_IsRule258Enabled,
3284 GICXXPred_Simple_IsRule259Enabled,
3285 GICXXPred_Simple_IsRule260Enabled,
3286 GICXXPred_Simple_IsRule261Enabled,
3287 GICXXPred_Simple_IsRule262Enabled,
3288 GICXXPred_Simple_IsRule263Enabled,
3289 GICXXPred_Simple_IsRule264Enabled,
3290 GICXXPred_Simple_IsRule265Enabled,
3291 GICXXPred_Simple_IsRule266Enabled,
3292 GICXXPred_Simple_IsRule267Enabled,
3293 GICXXPred_Simple_IsRule268Enabled,
3294 GICXXPred_Simple_IsRule269Enabled,
3295 GICXXPred_Simple_IsRule270Enabled,
3296 GICXXPred_Simple_IsRule271Enabled,
3297 GICXXPred_Simple_IsRule272Enabled,
3298 GICXXPred_Simple_IsRule273Enabled,
3299 GICXXPred_Simple_IsRule274Enabled,
3300 GICXXPred_Simple_IsRule275Enabled,
3301 GICXXPred_Simple_IsRule276Enabled,
3302 GICXXPred_Simple_IsRule277Enabled,
3303 GICXXPred_Simple_IsRule278Enabled,
3304 GICXXPred_Simple_IsRule279Enabled,
3305 GICXXPred_Simple_IsRule280Enabled,
3306 GICXXPred_Simple_IsRule281Enabled,
3307 GICXXPred_Simple_IsRule282Enabled,
3308 GICXXPred_Simple_IsRule283Enabled,
3309 GICXXPred_Simple_IsRule284Enabled,
3310 GICXXPred_Simple_IsRule285Enabled,
3311 GICXXPred_Simple_IsRule286Enabled,
3312 GICXXPred_Simple_IsRule287Enabled,
3313 GICXXPred_Simple_IsRule288Enabled,
3314 GICXXPred_Simple_IsRule289Enabled,
3315 GICXXPred_Simple_IsRule290Enabled,
3316 GICXXPred_Simple_IsRule291Enabled,
3317 GICXXPred_Simple_IsRule292Enabled,
3318 GICXXPred_Simple_IsRule293Enabled,
3319 GICXXPred_Simple_IsRule294Enabled,
3320 GICXXPred_Simple_IsRule295Enabled,
3321 GICXXPred_Simple_IsRule296Enabled,
3322 GICXXPred_Simple_IsRule297Enabled,
3323 GICXXPred_Simple_IsRule298Enabled,
3324 GICXXPred_Simple_IsRule299Enabled,
3325 GICXXPred_Simple_IsRule300Enabled,
3326 GICXXPred_Simple_IsRule301Enabled,
3327 GICXXPred_Simple_IsRule302Enabled,
3328 GICXXPred_Simple_IsRule303Enabled,
3329 GICXXPred_Simple_IsRule304Enabled,
3330 GICXXPred_Simple_IsRule305Enabled,
3331 GICXXPred_Simple_IsRule306Enabled,
3332 GICXXPred_Simple_IsRule307Enabled,
3333 GICXXPred_Simple_IsRule308Enabled,
3334 GICXXPred_Simple_IsRule309Enabled,
3335 GICXXPred_Simple_IsRule310Enabled,
3336 GICXXPred_Simple_IsRule311Enabled,
3337 GICXXPred_Simple_IsRule312Enabled,
3338 GICXXPred_Simple_IsRule313Enabled,
3339 GICXXPred_Simple_IsRule314Enabled,
3340 GICXXPred_Simple_IsRule315Enabled,
3341 GICXXPred_Simple_IsRule316Enabled,
3342 GICXXPred_Simple_IsRule317Enabled,
3343 GICXXPred_Simple_IsRule318Enabled,
3344 GICXXPred_Simple_IsRule319Enabled,
3345 GICXXPred_Simple_IsRule320Enabled,
3346 GICXXPred_Simple_IsRule321Enabled,
3347 GICXXPred_Simple_IsRule322Enabled,
3348 GICXXPred_Simple_IsRule323Enabled,
3349 GICXXPred_Simple_IsRule324Enabled,
3350 GICXXPred_Simple_IsRule325Enabled,
3351 GICXXPred_Simple_IsRule326Enabled,
3352 GICXXPred_Simple_IsRule327Enabled,
3353 GICXXPred_Simple_IsRule328Enabled,
3354 GICXXPred_Simple_IsRule329Enabled,
3355 GICXXPred_Simple_IsRule330Enabled,
3356 GICXXPred_Simple_IsRule331Enabled,
3357 GICXXPred_Simple_IsRule332Enabled,
3358 GICXXPred_Simple_IsRule333Enabled,
3359 GICXXPred_Simple_IsRule334Enabled,
3360 GICXXPred_Simple_IsRule335Enabled,
3361 GICXXPred_Simple_IsRule336Enabled,
3362 GICXXPred_Simple_IsRule337Enabled,
3363 GICXXPred_Simple_IsRule338Enabled,
3364 GICXXPred_Simple_IsRule339Enabled,
3365 GICXXPred_Simple_IsRule340Enabled,
3366 GICXXPred_Simple_IsRule341Enabled,
3367 GICXXPred_Simple_IsRule342Enabled,
3368 GICXXPred_Simple_IsRule343Enabled,
3369 GICXXPred_Simple_IsRule344Enabled,
3370 GICXXPred_Simple_IsRule345Enabled,
3371 GICXXPred_Simple_IsRule346Enabled,
3372 GICXXPred_Simple_IsRule347Enabled,
3373 GICXXPred_Simple_IsRule348Enabled,
3374 GICXXPred_Simple_IsRule349Enabled,
3375 GICXXPred_Simple_IsRule350Enabled,
3376 GICXXPred_Simple_IsRule351Enabled,
3377 GICXXPred_Simple_IsRule352Enabled,
3378 GICXXPred_Simple_IsRule353Enabled,
3379 GICXXPred_Simple_IsRule354Enabled,
3380 GICXXPred_Simple_IsRule355Enabled,
3381 GICXXPred_Simple_IsRule356Enabled,
3382 GICXXPred_Simple_IsRule357Enabled,
3383 GICXXPred_Simple_IsRule358Enabled,
3384 GICXXPred_Simple_IsRule359Enabled,
3385 GICXXPred_Simple_IsRule360Enabled,
3386};
3387
3388bool AArch64PreLegalizerCombinerImpl::testSimplePredicate(unsigned Predicate) const {
3389 return RuleConfig.isRuleEnabled(Predicate - GICXXPred_Invalid - 1);
3390}
3391// Custom renderers.
3392enum {
3393 GICR_Invalid,
3394};
3395AArch64PreLegalizerCombinerImpl::CustomRendererFn
3396AArch64PreLegalizerCombinerImpl::CustomRenderers[] = {
3397 nullptr, // GICR_Invalid
3398};
3399
3400bool AArch64PreLegalizerCombinerImpl::canMatchOpcode(unsigned Opc) const {
3401 switch (Opc) {
3402 case TargetOpcode::G_SADDE:
3403 case TargetOpcode::G_SSUBE:
3404 case TargetOpcode::G_UADDE:
3405 case TargetOpcode::G_USUBE:
3406 case TargetOpcode::G_FSHL:
3407 case TargetOpcode::G_FSHR:
3408 case TargetOpcode::G_INSERT_VECTOR_ELT:
3409 case TargetOpcode::G_SADDO:
3410 case TargetOpcode::G_SELECT:
3411 case TargetOpcode::G_SHUFFLE_VECTOR:
3412 case TargetOpcode::G_SMULFIX:
3413 case TargetOpcode::G_SMULFIXSAT:
3414 case TargetOpcode::G_SMULO:
3415 case TargetOpcode::G_UADDO:
3416 case TargetOpcode::G_UMULFIX:
3417 case TargetOpcode::G_UMULFIXSAT:
3418 case TargetOpcode::G_UMULO:
3419 case TargetOpcode::G_FCMP:
3420 case TargetOpcode::G_FMA:
3421 case TargetOpcode::G_FMAD:
3422 case TargetOpcode::G_ICMP:
3423 case TargetOpcode::G_MEMCPY:
3424 case TargetOpcode::G_MEMMOVE:
3425 case TargetOpcode::G_MEMSET:
3426 case TargetOpcode::G_SSUBO:
3427 case TargetOpcode::G_USUBO:
3428 case TargetOpcode::G_FADD:
3429 case TargetOpcode::G_ADD:
3430 case TargetOpcode::G_AND:
3431 case TargetOpcode::G_ASHR:
3432 case TargetOpcode::G_EXTRACT_VECTOR_ELT:
3433 case TargetOpcode::G_FMAXIMUM:
3434 case TargetOpcode::G_FMAXNUM:
3435 case TargetOpcode::G_FMAXNUM_IEEE:
3436 case TargetOpcode::G_FMINIMUM:
3437 case TargetOpcode::G_FMINNUM:
3438 case TargetOpcode::G_FMINNUM_IEEE:
3439 case TargetOpcode::G_FMUL:
3440 case TargetOpcode::G_FSUB:
3441 case TargetOpcode::G_LSHR:
3442 case TargetOpcode::G_MERGE_VALUES:
3443 case TargetOpcode::G_MUL:
3444 case TargetOpcode::G_OR:
3445 case TargetOpcode::G_PTR_ADD:
3446 case TargetOpcode::G_SADDSAT:
3447 case TargetOpcode::G_SDIV:
3448 case TargetOpcode::G_SEXT_INREG:
3449 case TargetOpcode::G_SHL:
3450 case TargetOpcode::G_SMAX:
3451 case TargetOpcode::G_SMIN:
3452 case TargetOpcode::G_SMULH:
3453 case TargetOpcode::G_SREM:
3454 case TargetOpcode::G_SUB:
3455 case TargetOpcode::G_UADDSAT:
3456 case TargetOpcode::G_UDIV:
3457 case TargetOpcode::G_UMAX:
3458 case TargetOpcode::G_UMIN:
3459 case TargetOpcode::G_UMULH:
3460 case TargetOpcode::G_UREM:
3461 case TargetOpcode::G_XOR:
3462 case TargetOpcode::G_FCOPYSIGN:
3463 case TargetOpcode::G_FDIV:
3464 case TargetOpcode::G_FMAXIMUMNUM:
3465 case TargetOpcode::G_FMINIMUMNUM:
3466 case TargetOpcode::G_FPOWI:
3467 case TargetOpcode::G_FREM:
3468 case TargetOpcode::G_MEMCPY_INLINE:
3469 case TargetOpcode::G_MEMSET_INLINE:
3470 case TargetOpcode::G_ROTL:
3471 case TargetOpcode::G_ROTR:
3472 case TargetOpcode::G_SSHLSAT:
3473 case TargetOpcode::G_USHLSAT:
3474 case TargetOpcode::G_BUILD_VECTOR:
3475 case TargetOpcode::G_BITCAST:
3476 case TargetOpcode::G_BITREVERSE:
3477 case TargetOpcode::G_BUILD_VECTOR_TRUNC:
3478 case TargetOpcode::G_CONCAT_VECTORS:
3479 case TargetOpcode::G_CTLZ:
3480 case TargetOpcode::G_CTTZ:
3481 case TargetOpcode::G_FPTRUNC:
3482 case TargetOpcode::G_FREEZE:
3483 case TargetOpcode::G_INTTOPTR:
3484 case TargetOpcode::G_PHI:
3485 case TargetOpcode::G_PTRTOINT:
3486 case TargetOpcode::G_STORE:
3487 case TargetOpcode::G_TRUNC:
3488 case TargetOpcode::G_TRUNC_USAT_U:
3489 case TargetOpcode::G_ZEXT:
3490 case TargetOpcode::COPY:
3491 case TargetOpcode::G_ABS:
3492 case TargetOpcode::G_ANYEXT:
3493 case TargetOpcode::G_BSWAP:
3494 case TargetOpcode::G_CTLZ_ZERO_POISON:
3495 case TargetOpcode::G_CTPOP:
3496 case TargetOpcode::G_CTTZ_ZERO_POISON:
3497 case TargetOpcode::G_FABS:
3498 case TargetOpcode::G_FCANONICALIZE:
3499 case TargetOpcode::G_FCEIL:
3500 case TargetOpcode::G_FFLOOR:
3501 case TargetOpcode::G_FLOG2:
3502 case TargetOpcode::G_FNEARBYINT:
3503 case TargetOpcode::G_FNEG:
3504 case TargetOpcode::G_FPEXT:
3505 case TargetOpcode::G_FPTOSI:
3506 case TargetOpcode::G_FPTOUI:
3507 case TargetOpcode::G_FPTOUI_SAT:
3508 case TargetOpcode::G_FRINT:
3509 case TargetOpcode::G_FSQRT:
3510 case TargetOpcode::G_GLOBAL_VALUE:
3511 case TargetOpcode::G_INTRINSIC_ROUND:
3512 case TargetOpcode::G_INTRINSIC_ROUNDEVEN:
3513 case TargetOpcode::G_INTRINSIC_TRUNC:
3514 case TargetOpcode::G_LOAD:
3515 case TargetOpcode::G_SEXT:
3516 case TargetOpcode::G_SEXTLOAD:
3517 case TargetOpcode::G_SITOFP:
3518 case TargetOpcode::G_UITOFP:
3519 case TargetOpcode::G_VECREDUCE_ADD:
3520 case TargetOpcode::G_ZEXTLOAD:
3521 case TargetOpcode::G_BR:
3522 case TargetOpcode::G_UNMERGE_VALUES:
3523 return true;
3524 default:
3525 return false;
3526 }
3527}
3528
3529uint32_t AArch64PreLegalizerCombinerImpl::getRootFlagsToDrop() const {
3530 return MachineInstr::getPoisonGeneratingFlags();
3531}
3532
3533bool AArch64PreLegalizerCombinerImpl::tryCombineAllImpl(MachineInstr &I) const {
3534 const PredicateBitset AvailableFeatures = getAvailableFeatures();
3535 State.MIs.clear();
3536 State.MIs.push_back(&I);
3537 if (executeMatchTable(*this, State, ExecInfo, B, getMatchTable(), Helper.getTII(), MRI, Helper.getTRI(), Helper.getRBI(), AvailableFeatures, /*CoverageInfo*/ nullptr)) {
3538 return true;
3539 }
3540
3541 return false;
3542}
3543
3544enum {
3545 GICXXCustomAction_GICombiner0 = GICXXCustomAction_Invalid + 1,
3546 GICXXCustomAction_GICombiner1,
3547 GICXXCustomAction_GICombiner2,
3548 GICXXCustomAction_GICombiner3,
3549 GICXXCustomAction_GICombiner4,
3550 GICXXCustomAction_GICombiner5,
3551 GICXXCustomAction_GICombiner6,
3552 GICXXCustomAction_GICombiner7,
3553 GICXXCustomAction_GICombiner8,
3554 GICXXCustomAction_GICombiner9,
3555 GICXXCustomAction_GICombiner10,
3556 GICXXCustomAction_GICombiner11,
3557 GICXXCustomAction_GICombiner12,
3558 GICXXCustomAction_GICombiner13,
3559 GICXXCustomAction_GICombiner14,
3560 GICXXCustomAction_GICombiner15,
3561 GICXXCustomAction_GICombiner16,
3562 GICXXCustomAction_GICombiner17,
3563 GICXXCustomAction_GICombiner18,
3564 GICXXCustomAction_GICombiner19,
3565 GICXXCustomAction_GICombiner20,
3566 GICXXCustomAction_GICombiner21,
3567 GICXXCustomAction_GICombiner22,
3568 GICXXCustomAction_GICombiner23,
3569 GICXXCustomAction_GICombiner24,
3570 GICXXCustomAction_GICombiner25,
3571 GICXXCustomAction_GICombiner26,
3572 GICXXCustomAction_GICombiner27,
3573 GICXXCustomAction_GICombiner28,
3574 GICXXCustomAction_GICombiner29,
3575 GICXXCustomAction_GICombiner30,
3576 GICXXCustomAction_GICombiner31,
3577 GICXXCustomAction_GICombiner32,
3578 GICXXCustomAction_GICombiner33,
3579 GICXXCustomAction_GICombiner34,
3580 GICXXCustomAction_GICombiner35,
3581 GICXXCustomAction_GICombiner36,
3582 GICXXCustomAction_GICombiner37,
3583 GICXXCustomAction_GICombiner38,
3584 GICXXCustomAction_GICombiner39,
3585 GICXXCustomAction_GICombiner40,
3586 GICXXCustomAction_GICombiner41,
3587 GICXXCustomAction_GICombiner42,
3588 GICXXCustomAction_GICombiner43,
3589 GICXXCustomAction_GICombiner44,
3590 GICXXCustomAction_GICombiner45,
3591 GICXXCustomAction_GICombiner46,
3592 GICXXCustomAction_GICombiner47,
3593 GICXXCustomAction_GICombiner48,
3594 GICXXCustomAction_GICombiner49,
3595 GICXXCustomAction_GICombiner50,
3596 GICXXCustomAction_GICombiner51,
3597 GICXXCustomAction_GICombiner52,
3598 GICXXCustomAction_GICombiner53,
3599 GICXXCustomAction_GICombiner54,
3600 GICXXCustomAction_GICombiner55,
3601 GICXXCustomAction_GICombiner56,
3602 GICXXCustomAction_GICombiner57,
3603 GICXXCustomAction_GICombiner58,
3604 GICXXCustomAction_GICombiner59,
3605 GICXXCustomAction_GICombiner60,
3606 GICXXCustomAction_GICombiner61,
3607 GICXXCustomAction_GICombiner62,
3608 GICXXCustomAction_GICombiner63,
3609 GICXXCustomAction_GICombiner64,
3610 GICXXCustomAction_GICombiner65,
3611 GICXXCustomAction_GICombiner66,
3612 GICXXCustomAction_GICombiner67,
3613 GICXXCustomAction_GICombiner68,
3614 GICXXCustomAction_GICombiner69,
3615 GICXXCustomAction_GICombiner70,
3616 GICXXCustomAction_GICombiner71,
3617 GICXXCustomAction_GICombiner72,
3618 GICXXCustomAction_GICombiner73,
3619 GICXXCustomAction_GICombiner74,
3620 GICXXCustomAction_GICombiner75,
3621 GICXXCustomAction_GICombiner76,
3622 GICXXCustomAction_GICombiner77,
3623 GICXXCustomAction_GICombiner78,
3624 GICXXCustomAction_GICombiner79,
3625 GICXXCustomAction_GICombiner80,
3626 GICXXCustomAction_GICombiner81,
3627 GICXXCustomAction_GICombiner82,
3628 GICXXCustomAction_GICombiner83,
3629 GICXXCustomAction_GICombiner84,
3630 GICXXCustomAction_GICombiner85,
3631 GICXXCustomAction_GICombiner86,
3632 GICXXCustomAction_GICombiner87,
3633 GICXXCustomAction_GICombiner88,
3634 GICXXCustomAction_GICombiner89,
3635 GICXXCustomAction_GICombiner90,
3636 GICXXCustomAction_GICombiner91,
3637 GICXXCustomAction_GICombiner92,
3638 GICXXCustomAction_GICombiner93,
3639 GICXXCustomAction_GICombiner94,
3640 GICXXCustomAction_GICombiner95,
3641 GICXXCustomAction_GICombiner96,
3642 GICXXCustomAction_GICombiner97,
3643 GICXXCustomAction_GICombiner98,
3644 GICXXCustomAction_GICombiner99,
3645 GICXXCustomAction_GICombiner100,
3646 GICXXCustomAction_GICombiner101,
3647 GICXXCustomAction_GICombiner102,
3648 GICXXCustomAction_GICombiner103,
3649 GICXXCustomAction_GICombiner104,
3650 GICXXCustomAction_GICombiner105,
3651 GICXXCustomAction_GICombiner106,
3652 GICXXCustomAction_GICombiner107,
3653 GICXXCustomAction_GICombiner108,
3654 GICXXCustomAction_GICombiner109,
3655 GICXXCustomAction_GICombiner110,
3656 GICXXCustomAction_GICombiner111,
3657 GICXXCustomAction_GICombiner112,
3658 GICXXCustomAction_GICombiner113,
3659 GICXXCustomAction_GICombiner114,
3660 GICXXCustomAction_GICombiner115,
3661 GICXXCustomAction_GICombiner116,
3662 GICXXCustomAction_GICombiner117,
3663 GICXXCustomAction_GICombiner118,
3664 GICXXCustomAction_GICombiner119,
3665 GICXXCustomAction_GICombiner120,
3666 GICXXCustomAction_GICombiner121,
3667 GICXXCustomAction_GICombiner122,
3668 GICXXCustomAction_GICombiner123,
3669 GICXXCustomAction_GICombiner124,
3670 GICXXCustomAction_GICombiner125,
3671 GICXXCustomAction_GICombiner126,
3672 GICXXCustomAction_GICombiner127,
3673 GICXXCustomAction_GICombiner128,
3674 GICXXCustomAction_GICombiner129,
3675 GICXXCustomAction_GICombiner130,
3676 GICXXCustomAction_GICombiner131,
3677 GICXXCustomAction_GICombiner132,
3678 GICXXCustomAction_GICombiner133,
3679 GICXXCustomAction_GICombiner134,
3680 GICXXCustomAction_GICombiner135,
3681 GICXXCustomAction_GICombiner136,
3682 GICXXCustomAction_GICombiner137,
3683 GICXXCustomAction_GICombiner138,
3684 GICXXCustomAction_GICombiner139,
3685 GICXXCustomAction_GICombiner140,
3686};
3687bool AArch64PreLegalizerCombinerImpl::runCustomAction(unsigned ApplyID, const MatcherState &State, NewMIVector &OutMIs) const {
3688 Helper.getBuilder().setInstrAndDebugLoc(*State.MIs[0]);
3689 switch(ApplyID) {
3690 case GICXXCustomAction_GICombiner0:{
3691 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3692 // Match Patterns
3693 if(![&](){return Helper.matchFoldAPlusC1MinusC2(*State.MIs[0], GIMatchData_matchinfo);}()) {
3694 return false;
3695 }
3696 // Apply Patterns
3697 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3698 return true;
3699 }
3700 case GICXXCustomAction_GICombiner1:{
3701 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3702 // Match Patterns
3703 if(![&](){return Helper.matchFoldC2MinusAPlusC1(*State.MIs[0], GIMatchData_matchinfo);}()) {
3704 return false;
3705 }
3706 // Apply Patterns
3707 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3708 return true;
3709 }
3710 case GICXXCustomAction_GICombiner2:{
3711 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3712 // Match Patterns
3713 if(![&](){return Helper.matchFoldAMinusC1MinusC2(*State.MIs[0], GIMatchData_matchinfo);}()) {
3714 return false;
3715 }
3716 // Apply Patterns
3717 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3718 return true;
3719 }
3720 case GICXXCustomAction_GICombiner3:{
3721 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3722 // Match Patterns
3723 if(![&](){return Helper.matchFoldC1Minus2MinusC2(*State.MIs[0], GIMatchData_matchinfo);}()) {
3724 return false;
3725 }
3726 // Apply Patterns
3727 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3728 return true;
3729 }
3730 case GICXXCustomAction_GICombiner4:{
3731 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3732 // Match Patterns
3733 if(![&](){return Helper.matchFoldAMinusC1PlusC2(*State.MIs[0], GIMatchData_matchinfo);}()) {
3734 return false;
3735 }
3736 // Apply Patterns
3737 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3738 return true;
3739 }
3740 case GICXXCustomAction_GICombiner5:{
3741 // Match Patterns
3742 if(![&](){return Helper.matchCombineCopy(*State.MIs[0]);}()) {
3743 return false;
3744 }
3745 // Apply Patterns
3746 Helper.applyCombineCopy(*State.MIs[0]);
3747 return true;
3748 }
3749 case GICXXCustomAction_GICombiner6:{
3750 unsigned GIMatchData_matchinfo;
3751 // Match Patterns
3752 if(![&](){return Helper.matchCombineMulToShl(*State.MIs[0], GIMatchData_matchinfo);}()) {
3753 return false;
3754 }
3755 // Apply Patterns
3756 Helper.applyCombineMulToShl(*State.MIs[0], GIMatchData_matchinfo);
3757 return true;
3758 }
3759 case GICXXCustomAction_GICombiner7:{
3760 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3761 // Match Patterns
3762 if(![&](){return Helper.matchCombineSubToAdd(*State.MIs[0], GIMatchData_matchinfo);}()) {
3763 return false;
3764 }
3765 // Apply Patterns
3766 Helper.applyBuildFnNoErase(*State.MIs[0], GIMatchData_matchinfo);
3767 return true;
3768 }
3769 case GICXXCustomAction_GICombiner8:{
3770 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3771 // Match Patterns
3772 if(![&](){return Helper.matchExtractVectorElementWithDifferentIndices(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
3773 return false;
3774 }
3775 // Apply Patterns
3776 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
3777 return true;
3778 }
3779 case GICXXCustomAction_GICombiner9:{
3780 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3781 // Match Patterns
3782 if(![&](){return Helper.matchExtractVectorElementWithBuildVector(*State.MIs[0], *State.MIs[1],
3783 GIMatchData_matchinfo);}()) {
3784 return false;
3785 }
3786 // Apply Patterns
3787 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3788 return true;
3789 }
3790 case GICXXCustomAction_GICombiner10:{
3791 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3792 // Match Patterns
3793 if(![&](){return Helper.matchExtractVectorElementWithBuildVectorTrunc(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
3794 return false;
3795 }
3796 // Apply Patterns
3797 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
3798 return true;
3799 }
3800 case GICXXCustomAction_GICombiner11:{
3801 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3802 // Match Patterns
3803 if(![&](){return Helper.matchExtractVectorElementWithShuffleVector(*State.MIs[0], *State.MIs[1],
3804 GIMatchData_matchinfo);}()) {
3805 return false;
3806 }
3807 // Apply Patterns
3808 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3809 return true;
3810 }
3811 case GICXXCustomAction_GICombiner12:{
3812 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3813 // Match Patterns
3814 if(![&](){return Helper.matchAddOfVScale(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
3815 return false;
3816 }
3817 // Apply Patterns
3818 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
3819 return true;
3820 }
3821 case GICXXCustomAction_GICombiner13:{
3822 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3823 // Match Patterns
3824 if(![&](){return Helper.matchMulOfVScale(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
3825 return false;
3826 }
3827 // Apply Patterns
3828 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
3829 return true;
3830 }
3831 case GICXXCustomAction_GICombiner14:{
3832 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3833 // Match Patterns
3834 if(![&](){return Helper.matchShlOfVScale(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
3835 return false;
3836 }
3837 // Apply Patterns
3838 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
3839 return true;
3840 }
3841 case GICXXCustomAction_GICombiner15:{
3842 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3843 // Match Patterns
3844 if(![&](){return Helper.matchSubOfVScale(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
3845 return false;
3846 }
3847 // Apply Patterns
3848 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
3849 return true;
3850 }
3851 case GICXXCustomAction_GICombiner16:{
3852 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3853 // Match Patterns
3854 if(![&](){return !isGuaranteedNotToBePoison(State.MIs[0]->getOperand(1).getReg(), MRI) && Helper.matchFreezeOfSingleMaybePoisonOperand(*State.MIs[0], GIMatchData_matchinfo);}()) {
3855 return false;
3856 }
3857 // Apply Patterns
3858 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3859 return true;
3860 }
3861 case GICXXCustomAction_GICombiner17:{
3862 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3863 // Match Patterns
3864 if(![&](){return Helper.matchTruncateOfExt(*State.MIs[0], *State.MIs[1], GIMatchData_matchinfo);}()) {
3865 return false;
3866 }
3867 // Apply Patterns
3868 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3869 return true;
3870 }
3871 case GICXXCustomAction_GICombiner18:{
3872 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3873 // Match Patterns
3874 if(![&](){return Helper.matchExtOfExt(*State.MIs[0], *State.MIs[1], GIMatchData_matchinfo);}()) {
3875 return false;
3876 }
3877 // Apply Patterns
3878 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3879 return true;
3880 }
3881 case GICXXCustomAction_GICombiner19:{
3882 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3883 // Match Patterns
3884 if(![&](){return Helper.matchRedundantSextInReg(*State.MIs[0], *State.MIs[1], GIMatchData_matchinfo);}()) {
3885 return false;
3886 }
3887 // Apply Patterns
3888 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3889 return true;
3890 }
3891 case GICXXCustomAction_GICombiner20:{
3892 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3893 // Match Patterns
3894 if(![&](){return Helper.matchCastOfSelect(*State.MIs[0], *State.MIs[1], GIMatchData_matchinfo);}()) {
3895 return false;
3896 }
3897 // Apply Patterns
3898 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3899 return true;
3900 }
3901 case GICXXCustomAction_GICombiner21:{
3902 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3903 // Match Patterns
3904 if(![&](){return Helper.matchCastOfBuildVector(*State.MIs[0], *State.MIs[1], GIMatchData_matchinfo);}()) {
3905 return false;
3906 }
3907 // Apply Patterns
3908 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3909 return true;
3910 }
3911 case GICXXCustomAction_GICombiner22:{
3912 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3913 // Match Patterns
3914 if(![&](){return Helper.matchNarrowBinop(*State.MIs[0], *State.MIs[1], GIMatchData_matchinfo);}()) {
3915 return false;
3916 }
3917 // Apply Patterns
3918 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3919 return true;
3920 }
3921 case GICXXCustomAction_GICombiner23:{
3922 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3923 // Match Patterns
3924 if(![&](){return Helper.matchCastOfInteger(*State.MIs[0], GIMatchData_matchinfo);}()) {
3925 return false;
3926 }
3927 // Apply Patterns
3928 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3929 return true;
3930 }
3931 case GICXXCustomAction_GICombiner24:{
3932 SmallVector<Register> GIMatchData_info;
3933 // Match Patterns
3934 if(![&](){return Helper.matchCombineInsertVecElts(*State.MIs[0], GIMatchData_info);}()) {
3935 return false;
3936 }
3937 // Apply Patterns
3938 Helper.applyCombineInsertVecElts(*State.MIs[0], GIMatchData_info);
3939 return true;
3940 }
3941 case GICXXCustomAction_GICombiner25:{
3942 Register GIMatchData_matchinfo;
3943 // Match Patterns
3944 if(![&](){return Helper.matchExtractVecEltBuildVec(*State.MIs[0], GIMatchData_matchinfo);}()) {
3945 return false;
3946 }
3947 // Apply Patterns
3948 Helper.applyExtractVecEltBuildVec(*State.MIs[0], GIMatchData_matchinfo);
3949 return true;
3950 }
3951 case GICXXCustomAction_GICombiner26:{
3952 SmallVector<std::pair<Register, MachineInstr*>> GIMatchData_matchinfo;
3953 // Match Patterns
3954 if(![&](){return Helper.matchExtractAllEltsFromBuildVector(*State.MIs[0], GIMatchData_matchinfo);}()) {
3955 return false;
3956 }
3957 // Apply Patterns
3958 Helper.applyExtractAllEltsFromBuildVector(*State.MIs[0], GIMatchData_matchinfo);
3959 return true;
3960 }
3961 case GICXXCustomAction_GICombiner27:{
3962 PreferredTuple GIMatchData_matchinfo;
3963 // Match Patterns
3964 if(![&](){return Helper.matchCombineExtendingLoads(*State.MIs[0], GIMatchData_matchinfo);}()) {
3965 return false;
3966 }
3967 // Apply Patterns
3968 Helper.applyCombineExtendingLoads(*State.MIs[0], GIMatchData_matchinfo);
3969 return true;
3970 }
3971 case GICXXCustomAction_GICombiner28:{
3972 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3973 // Match Patterns
3974 if(![&](){return Helper.matchCombineLoadWithAndMask(*State.MIs[0], GIMatchData_matchinfo);}()) {
3975 return false;
3976 }
3977 // Apply Patterns
3978 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3979 return true;
3980 }
3981 case GICXXCustomAction_GICombiner29:{
3982 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3983 // Match Patterns
3984 if(![&](){return Helper.matchCombineExtractedVectorLoad(*State.MIs[0], GIMatchData_matchinfo);}()) {
3985 return false;
3986 }
3987 // Apply Patterns
3988 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3989 return true;
3990 }
3991 case GICXXCustomAction_GICombiner30:{
3992 // Apply Patterns
3993 Helper.replaceInstWithFConstant(*State.MIs[0]->getOperand(0).getParent(), 0.0);
3994 return true;
3995 }
3996 case GICXXCustomAction_GICombiner31:{
3997 // Apply Patterns
3998 Helper.replaceInstWithConstant(*State.MIs[0]->getOperand(0).getParent(), 0);
3999 return true;
4000 }
4001 case GICXXCustomAction_GICombiner32:{
4002 // Apply Patterns
4003 Helper.replaceInstWithConstant(*State.MIs[0]->getOperand(0).getParent(), -1);
4004 return true;
4005 }
4006 case GICXXCustomAction_GICombiner33:{
4007 Register GIMatchData_matchinfo;
4008 // Match Patterns
4009 if(![&](){return Helper.matchCombineAnyExtTrunc(*State.MIs[0], GIMatchData_matchinfo);}()) {
4010 return false;
4011 }
4012 // Apply Patterns
4013 Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo);
4014 return true;
4015 }
4016 case GICXXCustomAction_GICombiner34:{
4017 Register GIMatchData_matchinfo;
4018 // Match Patterns
4019 if(![&](){return Helper.matchBuildVectorIdentityFold(*State.MIs[0], GIMatchData_matchinfo);}()) {
4020 return false;
4021 }
4022 // Apply Patterns
4023 Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo);
4024 return true;
4025 }
4026 case GICXXCustomAction_GICombiner35:{
4027 Register GIMatchData_matchinfo;
4028 // Match Patterns
4029 if(![&](){return Helper.matchTruncBuildVectorFold(*State.MIs[0], GIMatchData_matchinfo);}()) {
4030 return false;
4031 }
4032 // Apply Patterns
4033 Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo);
4034 return true;
4035 }
4036 case GICXXCustomAction_GICombiner36:{
4037 Register GIMatchData_matchinfo;
4038 // Match Patterns
4039 if(![&](){return Helper.matchTruncLshrBuildVectorFold(*State.MIs[0], GIMatchData_matchinfo);}()) {
4040 return false;
4041 }
4042 // Apply Patterns
4043 Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo);
4044 return true;
4045 }
4046 case GICXXCustomAction_GICombiner37:{
4047 MachineInstr* GIMatchData_matchinfo;
4048 // Match Patterns
4049 if(![&](){return Helper.matchExtendThroughPhis(*State.MIs[0], GIMatchData_matchinfo);}()) {
4050 return false;
4051 }
4052 // Apply Patterns
4053 Helper.applyExtendThroughPhis(*State.MIs[0], GIMatchData_matchinfo);
4054 return true;
4055 }
4056 case GICXXCustomAction_GICombiner38:{
4057 InstructionStepsMatchInfo GIMatchData_info;
4058 // Match Patterns
4059 if(![&](){return Helper.matchHoistLogicOpWithSameOpcodeHands(*State.MIs[0], GIMatchData_info);}()) {
4060 return false;
4061 }
4062 // Apply Patterns
4063 Helper.applyBuildInstructionSteps(*State.MIs[0], GIMatchData_info);
4064 return true;
4065 }
4066 case GICXXCustomAction_GICombiner39:{
4067 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4068 // Match Patterns
4069 if(![&](){return Helper.matchShiftsTooBig(*State.MIs[0], GIMatchData_matchinfo);}()) {
4070 return false;
4071 }
4072 // Apply Patterns
4073 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4074 return true;
4075 }
4076 case GICXXCustomAction_GICombiner40:{
4077 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4078 // Match Patterns
4079 if(![&](){return Helper.matchReassocPtrAdd(*State.MIs[0], GIMatchData_matchinfo);}()) {
4080 return false;
4081 }
4082 // Apply Patterns
4083 Helper.applyBuildFnNoErase(*State.MIs[0], GIMatchData_matchinfo);
4084 return true;
4085 }
4086 case GICXXCustomAction_GICombiner41:{
4087 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4088 // Match Patterns
4089 if(![&](){return Helper.matchReassocCommBinOp(*State.MIs[0], GIMatchData_matchinfo);}()) {
4090 return false;
4091 }
4092 // Apply Patterns
4093 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4094 return true;
4095 }
4096 case GICXXCustomAction_GICombiner42:{
4097 PtrAddChain GIMatchData_matchinfo;
4098 // Match Patterns
4099 if(![&](){return Helper.matchPtrAddImmedChain(*State.MIs[0], GIMatchData_matchinfo);}()) {
4100 return false;
4101 }
4102 // Apply Patterns
4103 Helper.applyPtrAddImmedChain(*State.MIs[0], GIMatchData_matchinfo);
4104 return true;
4105 }
4106 case GICXXCustomAction_GICombiner43:{
4107 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4108 // Match Patterns
4109 if(![&](){return Helper.matchCanonicalizeICmp(*State.MIs[0], GIMatchData_matchinfo);}()) {
4110 return false;
4111 }
4112 // Apply Patterns
4113 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4114 return true;
4115 }
4116 case GICXXCustomAction_GICombiner44:{
4117 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4118 // Match Patterns
4119 if(![&](){return Helper.matchCanonicalizeFCmp(*State.MIs[0], GIMatchData_matchinfo);}()) {
4120 return false;
4121 }
4122 // Apply Patterns
4123 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4124 return true;
4125 }
4126 case GICXXCustomAction_GICombiner45:{
4127 int64_t GIMatchData_matchinfo;
4128 // Match Patterns
4129 if(![&](){return Helper.matchICmpToTrueFalseKnownBits(*State.MIs[0], GIMatchData_matchinfo);}()) {
4130 return false;
4131 }
4132 // Apply Patterns
4133 Helper.replaceInstWithConstant(*State.MIs[0], GIMatchData_matchinfo);
4134 return true;
4135 }
4136 case GICXXCustomAction_GICombiner46:{
4137 std::function<void(MachineIRBuilder &)> GIMatchData_info;
4138 // Match Patterns
4139 if(![&](){return Helper.matchICmpToLHSKnownBits(*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_GICombiner47:{
4147 std::function<void(MachineIRBuilder &)> GIMatchData_info;
4148 // Match Patterns
4149 if(![&](){return Helper.matchRedundantBinOpInEquality(*State.MIs[0], GIMatchData_info);}()) {
4150 return false;
4151 }
4152 // Apply Patterns
4153 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
4154 return true;
4155 }
4156 case GICXXCustomAction_GICombiner48:{
4157 std::tuple<Register, int64_t> GIMatchData_info;
4158 // Match Patterns
4159 if(![&](){return Helper.matchAshrShlToSextInreg(*State.MIs[0], GIMatchData_info);}()) {
4160 return false;
4161 }
4162 // Apply Patterns
4163 Helper.applyAshShlToSextInreg(*State.MIs[0], GIMatchData_info);
4164 return true;
4165 }
4166 case GICXXCustomAction_GICombiner49:{
4167 std::tuple<Register, unsigned> GIMatchData_matchinfo;
4168 // Match Patterns
4169 if(![&](){return Helper.matchSextInRegOfLoad(*State.MIs[0], GIMatchData_matchinfo);}()) {
4170 return false;
4171 }
4172 // Apply Patterns
4173 Helper.applySextInRegOfLoad(*State.MIs[0], GIMatchData_matchinfo);
4174 return true;
4175 }
4176 case GICXXCustomAction_GICombiner50:{
4177 RegisterImmPair GIMatchData_matchinfo;
4178 // Match Patterns
4179 if(![&](){return Helper.matchCombineShlOfExtend(*State.MIs[0], GIMatchData_matchinfo);}()) {
4180 return false;
4181 }
4182 // Apply Patterns
4183 Helper.applyCombineShlOfExtend(*State.MIs[0], GIMatchData_matchinfo);
4184 return true;
4185 }
4186 case GICXXCustomAction_GICombiner51:{
4187 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4188 // Match Patterns
4189 if(![&](){return Helper.matchNarrowBinopFeedingAnd(*State.MIs[0], GIMatchData_matchinfo);}()) {
4190 return false;
4191 }
4192 // Apply Patterns
4193 Helper.applyBuildFnNoErase(*State.MIs[0], GIMatchData_matchinfo);
4194 return true;
4195 }
4196 case GICXXCustomAction_GICombiner52:{
4197 std::function<void(MachineIRBuilder &)> GIMatchData_info;
4198 // Match Patterns
4199 if(![&](){return Helper.matchSelectIMinMax(State.MIs[0]->getOperand(0), GIMatchData_info);}()) {
4200 return false;
4201 }
4202 // Apply Patterns
4203 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_info);
4204 return true;
4205 }
4206 case GICXXCustomAction_GICombiner53:{
4207 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4208 // Match Patterns
4209 if(![&](){return Helper.matchSelect(*State.MIs[0], GIMatchData_matchinfo);}()) {
4210 return false;
4211 }
4212 // Apply Patterns
4213 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4214 return true;
4215 }
4216 case GICXXCustomAction_GICombiner54:{
4217 // Match Patterns
4218 if(![&](){LLT SrcTy = MRI.getType(State.MIs[3]->getOperand(1).getReg());
4219 return State.MIs[0]->getOperand(2).getImm() <= SrcTy.getScalarSizeInBits() &&
4220 MRI.getType(State.MIs[1]->getOperand(1).getReg()).getScalarType() ==
4221 MRI.getType(State.MIs[2]->getOperand(2).getReg()).getScalarType() &&
4222 VT->computeNumSignBits(State.MIs[3]->getOperand(1).getReg()) >=
4223 (SrcTy.getScalarSizeInBits() - State.MIs[0]->getOperand(2).getImm() + 1);}()) {
4224 return false;
4225 }
4226 // Apply Patterns
4227 auto SExt1 = Helper.getBuilder().buildSExt(MRI.getType(State.MIs[2]->getOperand(2).getReg()), State.MIs[3]->getOperand(1).getReg());
4228 auto Unmerge = Helper.getBuilder().buildUnmerge(MRI.getType(State.MIs[1]->getOperand(1).getReg()), SExt1);
4229 unsigned UnmergeDef = State.MIs[1]->getOperand(1).getReg() == State.MIs[2]->getOperand(0).getReg() ? 0 : 1;
4230 Helper.getBuilder().buildSExt(State.MIs[0]->getOperand(0).getReg(), Unmerge.getReg(UnmergeDef));
4231 State.MIs[0]->eraseFromParent();
4232 return true;
4233 }
4234 case GICXXCustomAction_GICombiner55:{
4235 Register GIMatchData_matchinfo;
4236 // Match Patterns
4237 if(![&](){return Helper.matchRedundantAnd(*State.MIs[0], GIMatchData_matchinfo);}()) {
4238 return false;
4239 }
4240 // Apply Patterns
4241 Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo);
4242 return true;
4243 }
4244 case GICXXCustomAction_GICombiner56:{
4245 Register GIMatchData_matchinfo;
4246 // Match Patterns
4247 if(![&](){return Helper.matchRedundantOr(*State.MIs[0], GIMatchData_matchinfo);}()) {
4248 return false;
4249 }
4250 // Apply Patterns
4251 Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo);
4252 return true;
4253 }
4254 case GICXXCustomAction_GICombiner57:{
4255 // Match Patterns
4256 if(![&](){return Helper.matchOperandIsKnownToBeAPowerOfTwo(State.MIs[0]->getOperand(2),
4257 /*OrNegative=*/false,
4258 /*OrZero=*/true);}()) {
4259 return false;
4260 }
4261 // Apply Patterns
4262 Helper.applySimplifyURemByPow2(*State.MIs[0]);
4263 return true;
4264 }
4265 case GICXXCustomAction_GICombiner58:{
4266 Register GIMatchData_matchinfo;
4267 // Match Patterns
4268 if(![&](){return Helper.matchCombineZextTrunc(*State.MIs[0], GIMatchData_matchinfo);}()) {
4269 return false;
4270 }
4271 // Apply Patterns
4272 Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo);
4273 return true;
4274 }
4275 case GICXXCustomAction_GICombiner59:{
4276 // Match Patterns
4277 if(![&](){unsigned BitWidth = MRI.getType(State.MIs[0]->getOperand(1).getReg()).getScalarSizeInBits();
4278 return Helper.getValueTracking()->maskedValueIsZero(State.MIs[0]->getOperand(1).getReg(),
4279 APInt::getOneBitSet(BitWidth, State.MIs[0]->getOperand(2).getImm() - 1));}()) {
4280 return false;
4281 }
4282 // Apply Patterns
4283 Helper.getBuilder().setInstrAndDebugLoc(*State.MIs[0]);
4284 Helper.getBuilder().buildZExtInReg(State.MIs[0]->getOperand(0), State.MIs[0]->getOperand(1), State.MIs[0]->getOperand(2).getImm());
4285 State.MIs[0]->eraseFromParent();
4286 return true;
4287 }
4288 case GICXXCustomAction_GICombiner60:{
4289 std::pair<MachineInstr*, LLT> GIMatchData_matchinfo;
4290 // Match Patterns
4291 if(![&](){return Helper.matchCombineTruncOfShift(*State.MIs[0], GIMatchData_matchinfo);}()) {
4292 return false;
4293 }
4294 // Apply Patterns
4295 Helper.applyCombineTruncOfShift(*State.MIs[0], GIMatchData_matchinfo);
4296 return true;
4297 }
4298 case GICXXCustomAction_GICombiner61:{
4299 SmallVector<Register> GIMatchData_info;
4300 // Match Patterns
4301 if(![&](){return Helper.matchNotCmp(*State.MIs[0], GIMatchData_info);}()) {
4302 return false;
4303 }
4304 // Apply Patterns
4305 Helper.applyNotCmp(*State.MIs[0], GIMatchData_info);
4306 return true;
4307 }
4308 case GICXXCustomAction_GICombiner62:{
4309 MachineInstr * GIMatchData_matchinfo;
4310 // Match Patterns
4311 if(![&](){return Helper.matchOptBrCondByInvertingCond(*State.MIs[0], GIMatchData_matchinfo);}()) {
4312 return false;
4313 }
4314 // Apply Patterns
4315 Helper.applyOptBrCondByInvertingCond(*State.MIs[0], GIMatchData_matchinfo);
4316 return true;
4317 }
4318 case GICXXCustomAction_GICombiner63:{
4319 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4320 // Match Patterns
4321 if(![&](){return Helper.matchConstantFoldFPUnary(*State.MIs[0], GIMatchData_matchinfo);}()) {
4322 return false;
4323 }
4324 // Apply Patterns
4325 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4326 return true;
4327 }
4328 case GICXXCustomAction_GICombiner64:{
4329 APInt GIMatchData_info;
4330 // Match Patterns
4331 if(![&](){LLT DstTy = MRI.getType(State.MIs[0]->getOperand(0).getReg());
4332 APInt NewCst = State.MIs[2]->getOperand(1).getCImm()->getValue().zextOrTrunc(
4333 DstTy.getSizeInBits());
4334 NewCst += State.MIs[3]->getOperand(1).getCImm()->getValue().sextOrTrunc(
4335 DstTy.getSizeInBits());
4336 GIMatchData_info = NewCst;
4337 return true;}()) {
4338 return false;
4339 }
4340 // Apply Patterns
4341 Helper.getBuilder().setInstrAndDebugLoc(*State.MIs[0]);
4342 Helper.getBuilder().buildConstant(State.MIs[0]->getOperand(0), GIMatchData_info);
4343 State.MIs[0]->eraseFromParent();
4344 return true;
4345 }
4346 case GICXXCustomAction_GICombiner65:{
4347 std::function<void(MachineIRBuilder &)> GIMatchData_info;
4348 // Match Patterns
4349 if(![&](){return Helper.matchOverlappingAnd(*State.MIs[0], GIMatchData_info);}()) {
4350 return false;
4351 }
4352 // Apply Patterns
4353 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
4354 return true;
4355 }
4356 case GICXXCustomAction_GICombiner66:{
4357 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4358 // Match Patterns
4359 if(![&](){return Helper.matchMulOBy0(*State.MIs[0], GIMatchData_matchinfo);}()) {
4360 return false;
4361 }
4362 // Apply Patterns
4363 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4364 return true;
4365 }
4366 case GICXXCustomAction_GICombiner67:{
4367 // Match Patterns
4368 if(![&](){return Helper.matchFPowIExpansion(*State.MIs[0], State.MIs[1]->getOperand(1).getCImm()->getSExtValue());}()) {
4369 return false;
4370 }
4371 // Apply Patterns
4372 Helper.applyExpandFPowI(*State.MIs[0], State.MIs[1]->getOperand(1).getCImm()->getSExtValue());
4373 return true;
4374 }
4375 case GICXXCustomAction_GICombiner68:{
4376 std::pair<Register, Register> GIMatchData_matchinfo;
4377 // Match Patterns
4378 if(![&](){return Helper.matchXorOfAndWithSameReg(*State.MIs[0], GIMatchData_matchinfo);}()) {
4379 return false;
4380 }
4381 // Apply Patterns
4382 Helper.applyXorOfAndWithSameReg(*State.MIs[0], GIMatchData_matchinfo);
4383 return true;
4384 }
4385 case GICXXCustomAction_GICombiner69:{
4386 RegisterImmPair GIMatchData_matchinfo;
4387 // Match Patterns
4388 if(![&](){return Helper.matchShiftImmedChain(*State.MIs[0], GIMatchData_matchinfo);}()) {
4389 return false;
4390 }
4391 // Apply Patterns
4392 Helper.applyShiftImmedChain(*State.MIs[0], GIMatchData_matchinfo);
4393 return true;
4394 }
4395 case GICXXCustomAction_GICombiner70:{
4396 ShiftOfShiftedLogic GIMatchData_matchinfo;
4397 // Match Patterns
4398 if(![&](){return Helper.matchShiftOfShiftedLogic(*State.MIs[0], GIMatchData_matchinfo);}()) {
4399 return false;
4400 }
4401 // Apply Patterns
4402 Helper.applyShiftOfShiftedLogic(*State.MIs[0], GIMatchData_matchinfo);
4403 return true;
4404 }
4405 case GICXXCustomAction_GICombiner71:{
4406 std::function<void(MachineIRBuilder &)> GIMatchData_info;
4407 // Match Patterns
4408 if(![&](){return Helper.matchLoadOrCombine(*State.MIs[0], GIMatchData_info);}()) {
4409 return false;
4410 }
4411 // Apply Patterns
4412 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
4413 return true;
4414 }
4415 case GICXXCustomAction_GICombiner72:{
4416 MachineInstr * GIMatchData_matchinfo;
4417 // Match Patterns
4418 if(![&](){return Helper.matchCombineDivRem(*State.MIs[0], GIMatchData_matchinfo);}()) {
4419 return false;
4420 }
4421 // Apply Patterns
4422 Helper.applyCombineDivRem(*State.MIs[0], GIMatchData_matchinfo);
4423 return true;
4424 }
4425 case GICXXCustomAction_GICombiner73:{
4426 std::function<void(MachineIRBuilder &)> GIMatchData_info;
4427 // Match Patterns
4428 if(![&](){return Helper.matchOrShiftToFunnelShift(*State.MIs[0], false, GIMatchData_info);}()) {
4429 return false;
4430 }
4431 // Apply Patterns
4432 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
4433 return true;
4434 }
4435 case GICXXCustomAction_GICombiner74:{
4436 // Match Patterns
4437 if(![&](){return Helper.matchConstantLargerBitWidth(*State.MIs[0], 3);}()) {
4438 return false;
4439 }
4440 // Apply Patterns
4441 Helper.applyFunnelShiftConstantModulo(*State.MIs[0]);
4442 return true;
4443 }
4444 case GICXXCustomAction_GICombiner75:{
4445 std::function<void(MachineIRBuilder &)> GIMatchData_info;
4446 // Match Patterns
4447 if(![&](){return Helper.matchBitfieldExtractFromSExtInReg(*State.MIs[0], GIMatchData_info);}()) {
4448 return false;
4449 }
4450 // Apply Patterns
4451 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
4452 return true;
4453 }
4454 case GICXXCustomAction_GICombiner76:{
4455 std::function<void(MachineIRBuilder &)> GIMatchData_info;
4456 // Match Patterns
4457 if(![&](){return Helper.matchBitfieldExtractFromAnd(*State.MIs[0], GIMatchData_info);}()) {
4458 return false;
4459 }
4460 // Apply Patterns
4461 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
4462 return true;
4463 }
4464 case GICXXCustomAction_GICombiner77:{
4465 std::function<void(MachineIRBuilder &)> GIMatchData_info;
4466 // Match Patterns
4467 if(![&](){return Helper.matchBitfieldExtractFromShr(*State.MIs[0], GIMatchData_info);}()) {
4468 return false;
4469 }
4470 // Apply Patterns
4471 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
4472 return true;
4473 }
4474 case GICXXCustomAction_GICombiner78:{
4475 std::function<void(MachineIRBuilder &)> GIMatchData_info;
4476 // Match Patterns
4477 if(![&](){return Helper.matchBitfieldExtractFromShrAnd(*State.MIs[0], GIMatchData_info);}()) {
4478 return false;
4479 }
4480 // Apply Patterns
4481 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
4482 return true;
4483 }
4484 case GICXXCustomAction_GICombiner79:{
4485 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4486 // Match Patterns
4487 if(![&](){return Helper.matchConstantFoldBinOp(*State.MIs[0], GIMatchData_matchinfo);}()) {
4488 return false;
4489 }
4490 // Apply Patterns
4491 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4492 return true;
4493 }
4494 case GICXXCustomAction_GICombiner80:{
4495 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4496 // Match Patterns
4497 if(![&](){return Helper.matchConstantFoldFPBinOp(*State.MIs[0], GIMatchData_matchinfo);}()) {
4498 return false;
4499 }
4500 // Apply Patterns
4501 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4502 return true;
4503 }
4504 case GICXXCustomAction_GICombiner81:{
4505 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4506 // Match Patterns
4507 if(![&](){return Helper.matchConstantFoldFMA(*State.MIs[0], GIMatchData_matchinfo);}()) {
4508 return false;
4509 }
4510 // Apply Patterns
4511 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4512 return true;
4513 }
4514 case GICXXCustomAction_GICombiner82:{
4515 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4516 // Match Patterns
4517 if(![&](){return Helper.matchConstantFoldCastOp(*State.MIs[0], GIMatchData_matchinfo);}()) {
4518 return false;
4519 }
4520 // Apply Patterns
4521 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4522 return true;
4523 }
4524 case GICXXCustomAction_GICombiner83:{
4525 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4526 // Match Patterns
4527 if(![&](){return Helper.matchConstantFoldUnaryIntOp(*State.MIs[0], GIMatchData_matchinfo);}()) {
4528 return false;
4529 }
4530 // Apply Patterns
4531 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4532 return true;
4533 }
4534 case GICXXCustomAction_GICombiner84:{
4535 // Match Patterns
4536 if(![&](){return Helper.matchUMulHToLShr(*State.MIs[0]);}()) {
4537 return false;
4538 }
4539 // Apply Patterns
4540 Helper.applyUMulHToLShr(*State.MIs[0]);
4541 return true;
4542 }
4543 case GICXXCustomAction_GICombiner85:{
4544 std::function<void(MachineIRBuilder &)> GIMatchData_info;
4545 // Match Patterns
4546 if(![&](){return Helper.matchAndOrDisjointMask(*State.MIs[0], GIMatchData_info);}()) {
4547 return false;
4548 }
4549 // Apply Patterns
4550 Helper.applyBuildFnNoErase(*State.MIs[0], GIMatchData_info);
4551 return true;
4552 }
4553 case GICXXCustomAction_GICombiner86:{
4554 std::function<void(MachineIRBuilder &)> GIMatchData_info;
4555 // Match Patterns
4556 if(![&](){return Helper.matchCombineFAddFMulToFMadOrFMA(*State.MIs[0],
4557 GIMatchData_info);}()) {
4558 return false;
4559 }
4560 // Apply Patterns
4561 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
4562 return true;
4563 }
4564 case GICXXCustomAction_GICombiner87:{
4565 std::function<void(MachineIRBuilder &)> GIMatchData_info;
4566 // Match Patterns
4567 if(![&](){return Helper.matchCombineFAddFpExtFMulToFMadOrFMA(*State.MIs[0],
4568 GIMatchData_info);}()) {
4569 return false;
4570 }
4571 // Apply Patterns
4572 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
4573 return true;
4574 }
4575 case GICXXCustomAction_GICombiner88:{
4576 std::function<void(MachineIRBuilder &)> GIMatchData_info;
4577 // Match Patterns
4578 if(![&](){return Helper.matchCombineFAddFMAFMulToFMadOrFMA(*State.MIs[0],
4579 GIMatchData_info);}()) {
4580 return false;
4581 }
4582 // Apply Patterns
4583 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
4584 return true;
4585 }
4586 case GICXXCustomAction_GICombiner89:{
4587 std::function<void(MachineIRBuilder &)> GIMatchData_info;
4588 // Match Patterns
4589 if(![&](){return Helper.matchCombineFAddFpExtFMulToFMadOrFMAAggressive(
4590 *State.MIs[0], GIMatchData_info);}()) {
4591 return false;
4592 }
4593 // Apply Patterns
4594 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
4595 return true;
4596 }
4597 case GICXXCustomAction_GICombiner90:{
4598 std::function<void(MachineIRBuilder &)> GIMatchData_info;
4599 // Match Patterns
4600 if(![&](){return Helper.matchCombineFSubFMulToFMadOrFMA(*State.MIs[0],
4601 GIMatchData_info);}()) {
4602 return false;
4603 }
4604 // Apply Patterns
4605 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
4606 return true;
4607 }
4608 case GICXXCustomAction_GICombiner91:{
4609 std::function<void(MachineIRBuilder &)> GIMatchData_info;
4610 // Match Patterns
4611 if(![&](){return Helper.matchCombineFSubFNegFMulToFMadOrFMA(*State.MIs[0],
4612 GIMatchData_info);}()) {
4613 return false;
4614 }
4615 // Apply Patterns
4616 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
4617 return true;
4618 }
4619 case GICXXCustomAction_GICombiner92:{
4620 std::function<void(MachineIRBuilder &)> GIMatchData_info;
4621 // Match Patterns
4622 if(![&](){return Helper.matchCombineFSubFpExtFMulToFMadOrFMA(*State.MIs[0],
4623 GIMatchData_info);}()) {
4624 return false;
4625 }
4626 // Apply Patterns
4627 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
4628 return true;
4629 }
4630 case GICXXCustomAction_GICombiner93:{
4631 std::function<void(MachineIRBuilder &)> GIMatchData_info;
4632 // Match Patterns
4633 if(![&](){return Helper.matchCombineFSubFpExtFNegFMulToFMadOrFMA(
4634 *State.MIs[0], GIMatchData_info);}()) {
4635 return false;
4636 }
4637 // Apply Patterns
4638 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
4639 return true;
4640 }
4641 case GICXXCustomAction_GICombiner94:{
4642 unsigned GIMatchData_select_op_no;
4643 // Match Patterns
4644 if(![&](){return Helper.matchFoldBinOpIntoSelect(*State.MIs[0], GIMatchData_select_op_no);}()) {
4645 return false;
4646 }
4647 // Apply Patterns
4648 Helper.applyFoldBinOpIntoSelect(*State.MIs[0], GIMatchData_select_op_no);
4649 return true;
4650 }
4651 case GICXXCustomAction_GICombiner95:{
4652 // Match Patterns
4653 if(![&](){return Helper.matchOperandIsKnownToBeAPowerOfTwo(State.MIs[0]->getOperand(2),
4654 /*OrNegative=*/true);}()) {
4655 return false;
4656 }
4657 // Apply Patterns
4658 Helper.applySimplifySRemByPow2(*State.MIs[0]);
4659 return true;
4660 }
4661 case GICXXCustomAction_GICombiner96:{
4662 // Match Patterns
4663 if(![&](){return Helper.matchUDivOrURemByConst(*State.MIs[0]);}()) {
4664 return false;
4665 }
4666 // Apply Patterns
4667 Helper.applyUDivOrURemByConst(*State.MIs[0]);
4668 return true;
4669 }
4670 case GICXXCustomAction_GICombiner97:{
4671 // Match Patterns
4672 if(![&](){return Helper.matchSDivOrSRemByConst(*State.MIs[0]);}()) {
4673 return false;
4674 }
4675 // Apply Patterns
4676 Helper.applySDivOrSRemByConst(*State.MIs[0]);
4677 return true;
4678 }
4679 case GICXXCustomAction_GICombiner98:{
4680 // Match Patterns
4681 if(![&](){return Helper.matchDivByPow2(*State.MIs[0], /*IsSigned=*/false);}()) {
4682 return false;
4683 }
4684 // Apply Patterns
4685 Helper.applyUDivByPow2(*State.MIs[0]);
4686 return true;
4687 }
4688 case GICXXCustomAction_GICombiner99:{
4689 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4690 // Match Patterns
4691 if(![&](){return Helper.matchUDivByShiftedPow2(*State.MIs[0], GIMatchData_matchinfo);}()) {
4692 return false;
4693 }
4694 // Apply Patterns
4695 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4696 return true;
4697 }
4698 case GICXXCustomAction_GICombiner100:{
4699 // Match Patterns
4700 if(![&](){return Helper.matchDivByPow2(*State.MIs[0], /*IsSigned=*/true);}()) {
4701 return false;
4702 }
4703 // Apply Patterns
4704 Helper.applySDivByPow2(*State.MIs[0]);
4705 return true;
4706 }
4707 case GICXXCustomAction_GICombiner101:{
4708 SmallVector<MachineInstr *> GIMatchData_matchinfo;
4709 // Match Patterns
4710 if(![&](){return Helper.matchRepeatedFPDivisor(*State.MIs[0], GIMatchData_matchinfo);}()) {
4711 return false;
4712 }
4713 // Apply Patterns
4714 Helper.applyRepeatedFPDivisor(GIMatchData_matchinfo);
4715 return true;
4716 }
4717 case GICXXCustomAction_GICombiner102:{
4718 std::function<void(MachineIRBuilder &)> GIMatchData_info;
4719 // Match Patterns
4720 if(![&](){return Helper.matchSimplifySelectToMinMax(*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_GICombiner103:{
4728 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4729 // Match Patterns
4730 if(![&](){return Helper.matchAnd(*State.MIs[0], GIMatchData_matchinfo);}()) {
4731 return false;
4732 }
4733 // Apply Patterns
4734 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4735 return true;
4736 }
4737 case GICXXCustomAction_GICombiner104:{
4738 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4739 // Match Patterns
4740 if(![&](){return Helper.matchOr(*State.MIs[0], GIMatchData_matchinfo);}()) {
4741 return false;
4742 }
4743 // Apply Patterns
4744 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4745 return true;
4746 }
4747 case GICXXCustomAction_GICombiner105:{
4748 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4749 // Match Patterns
4750 if(![&](){return Helper.matchSimplifyNegMinMax(*State.MIs[0], GIMatchData_matchinfo);}()) {
4751 return false;
4752 }
4753 // Apply Patterns
4754 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4755 return true;
4756 }
4757 case GICXXCustomAction_GICombiner106:{
4758 SmallVector<Register> GIMatchData_matchinfo;
4759 // Match Patterns
4760 if(![&](){return Helper.matchCombineConcatVectors(*State.MIs[0], GIMatchData_matchinfo);}()) {
4761 return false;
4762 }
4763 // Apply Patterns
4764 Helper.applyCombineConcatVectors(*State.MIs[0], GIMatchData_matchinfo);
4765 return true;
4766 }
4767 case GICXXCustomAction_GICombiner107:{
4768 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4769 // Match Patterns
4770 if(![&](){return Helper.matchSextOfTrunc(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
4771 return false;
4772 }
4773 // Apply Patterns
4774 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
4775 return true;
4776 }
4777 case GICXXCustomAction_GICombiner108:{
4778 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4779 // Match Patterns
4780 if(![&](){return Helper.matchZextOfTrunc(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
4781 return false;
4782 }
4783 // Apply Patterns
4784 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
4785 return true;
4786 }
4787 case GICXXCustomAction_GICombiner109:{
4788 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4789 // Match Patterns
4790 if(![&](){return Helper.matchNonNegZext(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
4791 return false;
4792 }
4793 // Apply Patterns
4794 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
4795 return true;
4796 }
4797 case GICXXCustomAction_GICombiner110:{
4798 SmallVector<Register> GIMatchData_matchinfo;
4799 // Match Patterns
4800 if(![&](){return Helper.matchCombineShuffleConcat(*State.MIs[0], GIMatchData_matchinfo);}()) {
4801 return false;
4802 }
4803 // Apply Patterns
4804 Helper.applyCombineShuffleConcat(*State.MIs[0], GIMatchData_matchinfo);
4805 return true;
4806 }
4807 case GICXXCustomAction_GICombiner111:{
4808 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4809 // Match Patterns
4810 if(![&](){return Helper.matchShuffleUndefRHS(*State.MIs[0], GIMatchData_matchinfo);}()) {
4811 return false;
4812 }
4813 // Apply Patterns
4814 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4815 return true;
4816 }
4817 case GICXXCustomAction_GICombiner112:{
4818 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4819 // Match Patterns
4820 if(![&](){return Helper.matchShuffleDisjointMask(*State.MIs[0], GIMatchData_matchinfo);}()) {
4821 return false;
4822 }
4823 // Apply Patterns
4824 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4825 return true;
4826 }
4827 case GICXXCustomAction_GICombiner113:{
4828 Register GIMatchData_matchinfo;
4829 // Match Patterns
4830 if(![&](){return Helper.matchUseVectorTruncate(*State.MIs[0], GIMatchData_matchinfo);}()) {
4831 return false;
4832 }
4833 // Apply Patterns
4834 Helper.applyUseVectorTruncate(*State.MIs[0], GIMatchData_matchinfo);
4835 return true;
4836 }
4837 case GICXXCustomAction_GICombiner114:{
4838 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4839 // Match Patterns
4840 if(![&](){return Helper.matchUnmergeValuesAnyExtBuildVector(*State.MIs[0], GIMatchData_matchinfo);}()) {
4841 return false;
4842 }
4843 // Apply Patterns
4844 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4845 return true;
4846 }
4847 case GICXXCustomAction_GICombiner115:{
4848 SmallVector<Register> GIMatchData_info;
4849 // Match Patterns
4850 if(![&](){return Helper.matchCombineUnmergeMergeToPlainValues(*State.MIs[0], GIMatchData_info);}()) {
4851 return false;
4852 }
4853 // Apply Patterns
4854 Helper.applyCombineUnmergeMergeToPlainValues(*State.MIs[0], GIMatchData_info);
4855 return true;
4856 }
4857 case GICXXCustomAction_GICombiner116:{
4858 Register GIMatchData_src;
4859 // Match Patterns
4860 if(![&](){// Check if first source comes from G_UNMERGE_VALUES.
4861 Register FirstMergeSrc = getRemainingOperands(*State.MIs[0], 1)[0].getReg();
4862 MachineInstr *UnmergeMI = MRI.getVRegDef(FirstMergeSrc);
4863 if (!UnmergeMI || UnmergeMI->getOpcode() != TargetOpcode::G_UNMERGE_VALUES)
4864 return false;
4865
4866 // Check counts match.
4867 unsigned NumMergeSrcs = getRemainingOperands(*State.MIs[0], 1).size();
4868 unsigned NumUnmergeDefs = UnmergeMI->getNumDefs();
4869 if (NumMergeSrcs != NumUnmergeDefs)
4870 return false;
4871
4872 // Verify all merge sources match unmerge defs in order.
4873 for (unsigned I = 0; I < NumMergeSrcs; ++I) {
4874 Register MergeSrc = getRemainingOperands(*State.MIs[0], 1)[I].getReg();
4875 Register UnmergeDef = UnmergeMI->getOperand(I).getReg();
4876
4877 if (MergeSrc != UnmergeDef)
4878 return false;
4879
4880 if (!MRI.hasOneNonDBGUse(MergeSrc))
4881 return false;
4882 }
4883
4884 // Check size compatibility.
4885 GIMatchData_src = UnmergeMI->getOperand(NumUnmergeDefs).getReg();
4886 LLT SrcTy = MRI.getType(GIMatchData_src);
4887 LLT DstTy = MRI.getType(State.MIs[0]->getOperand(0).getReg());
4888 if (SrcTy.getSizeInBits() != DstTy.getSizeInBits())
4889 return false;
4890
4891 // Check bitcast legality.
4892 if (SrcTy != DstTy) {
4893 std::array<LLT, 2> Types = {{DstTy, SrcTy}};
4894 LegalityQuery Query(TargetOpcode::G_BITCAST, Types);
4895 if (!Helper.isLegalOrBeforeLegalizer(Query))
4896 return false;
4897 }
4898
4899 return true;}()) {
4900 return false;
4901 }
4902 // Apply Patterns
4903 LLT SrcTy = MRI.getType(GIMatchData_src);
4904 LLT DstTy = MRI.getType(State.MIs[0]->getOperand(0).getReg());
4905
4906 Helper.getBuilder().setInstrAndDebugLoc(*State.MIs[0]);
4907
4908 if (SrcTy == DstTy) {
4909 Helper.replaceRegWith(MRI, State.MIs[0]->getOperand(0).getReg(), GIMatchData_src);
4910 } else {
4911 Helper.getBuilder().buildBitcast(State.MIs[0]->getOperand(0).getReg(), GIMatchData_src);
4912 }
4913
4914 State.MIs[0]->eraseFromParent();
4915 return true;
4916 }
4917 case GICXXCustomAction_GICombiner117:{
4918 SmallVector<APInt, 8> GIMatchData_info;
4919 // Match Patterns
4920 if(![&](){return Helper.matchCombineUnmergeConstant(*State.MIs[0], GIMatchData_info);}()) {
4921 return false;
4922 }
4923 // Apply Patterns
4924 Helper.applyCombineUnmergeConstant(*State.MIs[0], GIMatchData_info);
4925 return true;
4926 }
4927 case GICXXCustomAction_GICombiner118:{
4928 std::function<void(MachineIRBuilder &)> GIMatchData_info;
4929 // Match Patterns
4930 if(![&](){return Helper.matchCombineUnmergeUndef(*State.MIs[0], GIMatchData_info);}()) {
4931 return false;
4932 }
4933 // Apply Patterns
4934 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
4935 return true;
4936 }
4937 case GICXXCustomAction_GICombiner119:{
4938 // Match Patterns
4939 if(![&](){return Helper.matchCombineUnmergeWithDeadLanesToTrunc(*State.MIs[0]);}()) {
4940 return false;
4941 }
4942 // Apply Patterns
4943 Helper.applyCombineUnmergeWithDeadLanesToTrunc(*State.MIs[0]);
4944 return true;
4945 }
4946 case GICXXCustomAction_GICombiner120:{
4947 // Match Patterns
4948 if(![&](){return Helper.matchCombineUnmergeZExtToZExt(*State.MIs[0]);}()) {
4949 return false;
4950 }
4951 // Apply Patterns
4952 Helper.applyCombineUnmergeZExtToZExt(*State.MIs[0]);
4953 return true;
4954 }
4955 case GICXXCustomAction_GICombiner121:{
4956 Register GIMatchData_unmergeSrc;
4957 // Match Patterns
4958 if(![&](){return Helper.matchCombineBuildUnmerge(*State.MIs[0], MRI, GIMatchData_unmergeSrc);}()) {
4959 return false;
4960 }
4961 // Apply Patterns
4962 Helper.applyCombineBuildUnmerge(*State.MIs[0], MRI, B, GIMatchData_unmergeSrc);
4963 return true;
4964 }
4965 case GICXXCustomAction_GICombiner122:{
4966 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4967 // Match Patterns
4968 if(![&](){return Helper.matchAddOverflow(*State.MIs[0], GIMatchData_matchinfo);}()) {
4969 return false;
4970 }
4971 // Apply Patterns
4972 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4973 return true;
4974 }
4975 case GICXXCustomAction_GICombiner123:{
4976 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4977 // Match Patterns
4978 if(![&](){return Helper.matchSuboCarryOut(*State.MIs[0], GIMatchData_matchinfo);}()) {
4979 return false;
4980 }
4981 // Apply Patterns
4982 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4983 return true;
4984 }
4985 case GICXXCustomAction_GICombiner124:{
4986 Register GIMatchData_matchinfo;
4987 // Match Patterns
4988 if(![&](){return Helper.matchTruncSSatS(*State.MIs[0], GIMatchData_matchinfo);}()) {
4989 return false;
4990 }
4991 // Apply Patterns
4992 Helper.applyTruncSSatS(*State.MIs[0], GIMatchData_matchinfo);
4993 return true;
4994 }
4995 case GICXXCustomAction_GICombiner125:{
4996 Register GIMatchData_matchinfo;
4997 // Match Patterns
4998 if(![&](){return Helper.matchTruncSSatU(*State.MIs[0], GIMatchData_matchinfo);}()) {
4999 return false;
5000 }
5001 // Apply Patterns
5002 Helper.applyTruncSSatU(*State.MIs[0], GIMatchData_matchinfo);
5003 return true;
5004 }
5005 case GICXXCustomAction_GICombiner126:{
5006 LshrOfTruncOfLshr GIMatchData_matchinfo;
5007 // Match Patterns
5008 if(![&](){return Helper.matchLshrOfTruncOfLshr(*State.MIs[0], GIMatchData_matchinfo, *State.MIs[2]);}()) {
5009 return false;
5010 }
5011 // Apply Patterns
5012 Helper.applyLshrOfTruncOfLshr(*State.MIs[0], GIMatchData_matchinfo);
5013 return true;
5014 }
5015 case GICXXCustomAction_GICombiner127:{
5016 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
5017 // Match Patterns
5018 if(![&](){return Helper.matchCtls(*State.MIs[0], GIMatchData_matchinfo);}()) {
5019 return false;
5020 }
5021 // Apply Patterns
5022 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
5023 return true;
5024 }
5025 case GICXXCustomAction_GICombiner128:{
5026 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
5027 // Match Patterns
5028 if(![&](){return Helper.matchBinopWithNeg(*State.MIs[0], GIMatchData_matchinfo);}()) {
5029 return false;
5030 }
5031 // Apply Patterns
5032 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
5033 return true;
5034 }
5035 case GICXXCustomAction_GICombiner129:{
5036 SmallVector<Register> GIMatchData_matchinfo;
5037 // Match Patterns
5038 if(![&](){return Helper.matchCombineShuffleVector(*State.MIs[0], GIMatchData_matchinfo);}()) {
5039 return false;
5040 }
5041 // Apply Patterns
5042 Helper.applyCombineShuffleVector(*State.MIs[0], GIMatchData_matchinfo);
5043 return true;
5044 }
5045 case GICXXCustomAction_GICombiner130:{
5046 Register GIMatchData_matchinfo;
5047 // Match Patterns
5048 if(![&](){return matchICmpRedundantTrunc(*State.MIs[0], MRI, Helper.getValueTracking(), GIMatchData_matchinfo);}()) {
5049 return false;
5050 }
5051 // Apply Patterns
5052 applyICmpRedundantTrunc(*State.MIs[0], MRI, B, Observer, GIMatchData_matchinfo);
5053 return true;
5054 }
5055 case GICXXCustomAction_GICombiner131:{
5056 std::pair<uint64_t, uint64_t> GIMatchData_matchinfo;
5057 // Match Patterns
5058 if(![&](){return matchFoldGlobalOffset(*State.MIs[0], MRI, GIMatchData_matchinfo);}()) {
5059 return false;
5060 }
5061 // Apply Patterns
5062 applyFoldGlobalOffset(*State.MIs[0], MRI, B, Observer, GIMatchData_matchinfo);
5063 return true;
5064 }
5065 case GICXXCustomAction_GICombiner132:{
5066 std::tuple<Register, Register, bool> GIMatchData_matchinfo;
5067 // Match Patterns
5068 if(![&](){return matchExtAddvToDotAddv(*State.MIs[0], MRI, STI, GIMatchData_matchinfo);}()) {
5069 return false;
5070 }
5071 // Apply Patterns
5072 applyExtAddvToDotAddv(*State.MIs[0], MRI, B, Observer, STI, GIMatchData_matchinfo);
5073 return true;
5074 }
5075 case GICXXCustomAction_GICombiner133:{
5076 std::pair<Register, bool> GIMatchData_matchinfo;
5077 // Match Patterns
5078 if(![&](){return matchExtUaddvToUaddlv(*State.MIs[0], MRI, GIMatchData_matchinfo);}()) {
5079 return false;
5080 }
5081 // Apply Patterns
5082 applyExtUaddvToUaddlv(*State.MIs[0], MRI, B, Observer, GIMatchData_matchinfo);
5083 return true;
5084 }
5085 case GICXXCustomAction_GICombiner134:{
5086 // Match Patterns
5087 if(![&](){return matchPushAddSubExt(*State.MIs[0], MRI, State.MIs[0]->getOperand(0).getReg(), State.MIs[1]->getOperand(1).getReg(), State.MIs[2]->getOperand(1).getReg());}()) {
5088 return false;
5089 }
5090 // Apply Patterns
5091 applyPushAddSubExt(*State.MIs[0], MRI, B, State.MIs[1]->getOpcode() == TargetOpcode::G_SEXT, State.MIs[0]->getOperand(0).getReg(), State.MIs[1]->getOperand(1).getReg(), State.MIs[2]->getOperand(1).getReg());
5092 return true;
5093 }
5094 case GICXXCustomAction_GICombiner135:{
5095 std::pair<Register, Register> GIMatchData_matchinfo;
5096 // Match Patterns
5097 if(![&](){return matchSimplifyUADDO(*State.MIs[0], MRI, GIMatchData_matchinfo);}()) {
5098 return false;
5099 }
5100 // Apply Patterns
5101 applySimplifyUADDO(*State.MIs[0], MRI, B, Observer, Helper,
5102 GIMatchData_matchinfo);
5103 return true;
5104 }
5105 case GICXXCustomAction_GICombiner136:{
5106 MemCpyFamilyLoweringInfo GIMatchData_matchinfo;
5107 // Match Patterns
5108 if(![&](){return Helper.matchCombineMemCpyFamily(*State.MIs[0], GIMatchData_matchinfo);}()) {
5109 return false;
5110 }
5111 // Apply Patterns
5112 Helper.applyCombineMemCpyFamily(*State.MIs[0], GIMatchData_matchinfo);
5113 return true;
5114 }
5115 case GICXXCustomAction_GICombiner137:{
5116 MemCpyFamilyLoweringInfo GIMatchData_matchinfo;
5117 // Match Patterns
5118 if(![&](){return Helper.matchCombineMemCpyFamily(*State.MIs[0], GIMatchData_matchinfo,
5119 CInfo.EnableOpt ? 0 : 32);}()) {
5120 return false;
5121 }
5122 // Apply Patterns
5123 Helper.applyCombineMemCpyFamily(*State.MIs[0], GIMatchData_matchinfo);
5124 return true;
5125 }
5126 case GICXXCustomAction_GICombiner138:{
5127 // Match Patterns
5128 if(![&](){return llvm::AArch64GISelUtils::matchEmitBZero(*State.MIs[0], MRI,
5129 Libcalls,
5130 CInfo.EnableMinSize);}()) {
5131 return false;
5132 }
5133 // Apply Patterns
5134 llvm::AArch64GISelUtils::applyEmitBZero(*State.MIs[0], B);
5135 return true;
5136 }
5137 case GICXXCustomAction_GICombiner139:{
5138 SmallVector<Register> GIMatchData_matchinfo;
5139 // Match Patterns
5140 if(![&](){return matchDeinterleavingLoad(*State.MIs[0], MRI, GIMatchData_matchinfo);}()) {
5141 return false;
5142 }
5143 // Apply Patterns
5144 applyDeinterleavingLoad(*State.MIs[0], MRI, B, GIMatchData_matchinfo);
5145 return true;
5146 }
5147 case GICXXCustomAction_GICombiner140:{
5148 SmallVector<Register> GIMatchData_matchinfo;
5149 // Match Patterns
5150 if(![&](){return matchInterleavingStore(*State.MIs[0], MRI, GIMatchData_matchinfo);}()) {
5151 return false;
5152 }
5153 // Apply Patterns
5154 applyInterleavingStore(*State.MIs[0], MRI, B, GIMatchData_matchinfo);
5155 return true;
5156 }
5157 }
5158 llvm_unreachable("Unknown Apply Action");
5159}
5160#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
5161#define GIMT_Encode2(Val) uint8_t(Val), uint8_t((Val) >> 8)
5162#define GIMT_Encode4(Val) uint8_t(Val), uint8_t((Val) >> 8), uint8_t((Val) >> 16), uint8_t((Val) >> 24)
5163#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)
5164#else
5165#define GIMT_Encode2(Val) uint8_t((Val) >> 8), uint8_t(Val)
5166#define GIMT_Encode4(Val) uint8_t((Val) >> 24), uint8_t((Val) >> 16), uint8_t((Val) >> 8), uint8_t(Val)
5167#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)
5168#endif
5169const uint8_t *AArch64PreLegalizerCombinerImpl::getMatchTable() const {
5170 constexpr static uint8_t MatchTable0[] = {
5171 /* 0 */ GIM_SwitchOpcode, /*MI*/0, /*[*/GIMT_Encode2(21), GIMT_Encode2(326), /*)*//*default:*//*Label 121*/ GIMT_Encode4(13163),
5172 /* 10 */ /*TargetOpcode::COPY*//*Label 0*/ GIMT_Encode4(1230), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
5173 /* 150 */ /*TargetOpcode::G_ADD*//*Label 1*/ GIMT_Encode4(1242),
5174 /* 154 */ /*TargetOpcode::G_SUB*//*Label 2*/ GIMT_Encode4(2270),
5175 /* 158 */ /*TargetOpcode::G_MUL*//*Label 3*/ GIMT_Encode4(3693),
5176 /* 162 */ /*TargetOpcode::G_SDIV*//*Label 4*/ GIMT_Encode4(4046),
5177 /* 166 */ /*TargetOpcode::G_UDIV*//*Label 5*/ GIMT_Encode4(4156),
5178 /* 170 */ /*TargetOpcode::G_SREM*//*Label 6*/ GIMT_Encode4(4273),
5179 /* 174 */ /*TargetOpcode::G_UREM*//*Label 7*/ GIMT_Encode4(4377), GIMT_Encode4(0), GIMT_Encode4(0),
5180 /* 186 */ /*TargetOpcode::G_AND*//*Label 8*/ GIMT_Encode4(4477),
5181 /* 190 */ /*TargetOpcode::G_OR*//*Label 9*/ GIMT_Encode4(4949),
5182 /* 194 */ /*TargetOpcode::G_XOR*//*Label 10*/ GIMT_Encode4(5809), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
5183 /* 226 */ /*TargetOpcode::G_PHI*//*Label 11*/ GIMT_Encode4(6071), GIMT_Encode4(0),
5184 /* 234 */ /*TargetOpcode::G_GLOBAL_VALUE*//*Label 12*/ GIMT_Encode4(6086), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
5185 /* 250 */ /*TargetOpcode::G_UNMERGE_VALUES*//*Label 13*/ GIMT_Encode4(6098), GIMT_Encode4(0),
5186 /* 258 */ /*TargetOpcode::G_MERGE_VALUES*//*Label 14*/ GIMT_Encode4(6165),
5187 /* 262 */ /*TargetOpcode::G_BUILD_VECTOR*//*Label 15*/ GIMT_Encode4(6260),
5188 /* 266 */ /*TargetOpcode::G_BUILD_VECTOR_TRUNC*//*Label 16*/ GIMT_Encode4(6332),
5189 /* 270 */ /*TargetOpcode::G_CONCAT_VECTORS*//*Label 17*/ GIMT_Encode4(6347),
5190 /* 274 */ /*TargetOpcode::G_PTRTOINT*//*Label 18*/ GIMT_Encode4(6362),
5191 /* 278 */ /*TargetOpcode::G_INTTOPTR*//*Label 19*/ GIMT_Encode4(6483),
5192 /* 282 */ /*TargetOpcode::G_BITCAST*//*Label 20*/ GIMT_Encode4(6541),
5193 /* 286 */ /*TargetOpcode::G_FREEZE*//*Label 21*/ GIMT_Encode4(6631), GIMT_Encode4(0), GIMT_Encode4(0),
5194 /* 298 */ /*TargetOpcode::G_INTRINSIC_TRUNC*//*Label 22*/ GIMT_Encode4(6695),
5195 /* 302 */ /*TargetOpcode::G_INTRINSIC_ROUND*//*Label 23*/ GIMT_Encode4(6707), GIMT_Encode4(0), GIMT_Encode4(0),
5196 /* 314 */ /*TargetOpcode::G_INTRINSIC_ROUNDEVEN*//*Label 24*/ GIMT_Encode4(6719), GIMT_Encode4(0), GIMT_Encode4(0),
5197 /* 326 */ /*TargetOpcode::G_LOAD*//*Label 25*/ GIMT_Encode4(6731),
5198 /* 330 */ /*TargetOpcode::G_SEXTLOAD*//*Label 26*/ GIMT_Encode4(6756),
5199 /* 334 */ /*TargetOpcode::G_ZEXTLOAD*//*Label 27*/ GIMT_Encode4(6768), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
5200 /* 354 */ /*TargetOpcode::G_STORE*//*Label 28*/ GIMT_Encode4(6780), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
5201 /* 502 */ /*TargetOpcode::G_ANYEXT*//*Label 29*/ GIMT_Encode4(6815),
5202 /* 506 */ /*TargetOpcode::G_TRUNC*//*Label 30*/ GIMT_Encode4(6946), GIMT_Encode4(0), GIMT_Encode4(0),
5203 /* 518 */ /*TargetOpcode::G_TRUNC_USAT_U*//*Label 31*/ GIMT_Encode4(7361), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
5204 /* 538 */ /*TargetOpcode::G_SEXT*//*Label 32*/ GIMT_Encode4(7394),
5205 /* 542 */ /*TargetOpcode::G_SEXT_INREG*//*Label 33*/ GIMT_Encode4(7469),
5206 /* 546 */ /*TargetOpcode::G_ZEXT*//*Label 34*/ GIMT_Encode4(7691),
5207 /* 550 */ /*TargetOpcode::G_SHL*//*Label 35*/ GIMT_Encode4(7821),
5208 /* 554 */ /*TargetOpcode::G_LSHR*//*Label 36*/ GIMT_Encode4(8170),
5209 /* 558 */ /*TargetOpcode::G_ASHR*//*Label 37*/ GIMT_Encode4(8513),
5210 /* 562 */ /*TargetOpcode::G_FSHL*//*Label 38*/ GIMT_Encode4(8838),
5211 /* 566 */ /*TargetOpcode::G_FSHR*//*Label 39*/ GIMT_Encode4(8897),
5212 /* 570 */ /*TargetOpcode::G_ROTR*//*Label 40*/ GIMT_Encode4(8956),
5213 /* 574 */ /*TargetOpcode::G_ROTL*//*Label 41*/ GIMT_Encode4(8980),
5214 /* 578 */ /*TargetOpcode::G_ICMP*//*Label 42*/ GIMT_Encode4(9004),
5215 /* 582 */ /*TargetOpcode::G_FCMP*//*Label 43*/ GIMT_Encode4(9060), GIMT_Encode4(0), GIMT_Encode4(0),
5216 /* 594 */ /*TargetOpcode::G_SELECT*//*Label 44*/ GIMT_Encode4(9072),
5217 /* 598 */ /*TargetOpcode::G_UADDO*//*Label 45*/ GIMT_Encode4(9483),
5218 /* 602 */ /*TargetOpcode::G_UADDE*//*Label 46*/ GIMT_Encode4(9563),
5219 /* 606 */ /*TargetOpcode::G_USUBO*//*Label 47*/ GIMT_Encode4(9591),
5220 /* 610 */ /*TargetOpcode::G_USUBE*//*Label 48*/ GIMT_Encode4(9603),
5221 /* 614 */ /*TargetOpcode::G_SADDO*//*Label 49*/ GIMT_Encode4(9631),
5222 /* 618 */ /*TargetOpcode::G_SADDE*//*Label 50*/ GIMT_Encode4(9700),
5223 /* 622 */ /*TargetOpcode::G_SSUBO*//*Label 51*/ GIMT_Encode4(9728),
5224 /* 626 */ /*TargetOpcode::G_SSUBE*//*Label 52*/ GIMT_Encode4(9740),
5225 /* 630 */ /*TargetOpcode::G_UMULO*//*Label 53*/ GIMT_Encode4(9768),
5226 /* 634 */ /*TargetOpcode::G_SMULO*//*Label 54*/ GIMT_Encode4(9834),
5227 /* 638 */ /*TargetOpcode::G_UMULH*//*Label 55*/ GIMT_Encode4(9900),
5228 /* 642 */ /*TargetOpcode::G_SMULH*//*Label 56*/ GIMT_Encode4(9937),
5229 /* 646 */ /*TargetOpcode::G_UADDSAT*//*Label 57*/ GIMT_Encode4(9963),
5230 /* 650 */ /*TargetOpcode::G_SADDSAT*//*Label 58*/ GIMT_Encode4(9989), GIMT_Encode4(0), GIMT_Encode4(0),
5231 /* 662 */ /*TargetOpcode::G_USHLSAT*//*Label 59*/ GIMT_Encode4(10015),
5232 /* 666 */ /*TargetOpcode::G_SSHLSAT*//*Label 60*/ GIMT_Encode4(10027),
5233 /* 670 */ /*TargetOpcode::G_SMULFIX*//*Label 61*/ GIMT_Encode4(10039),
5234 /* 674 */ /*TargetOpcode::G_UMULFIX*//*Label 62*/ GIMT_Encode4(10067),
5235 /* 678 */ /*TargetOpcode::G_SMULFIXSAT*//*Label 63*/ GIMT_Encode4(10095),
5236 /* 682 */ /*TargetOpcode::G_UMULFIXSAT*//*Label 64*/ GIMT_Encode4(10123), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
5237 /* 702 */ /*TargetOpcode::G_FADD*//*Label 65*/ GIMT_Encode4(10151),
5238 /* 706 */ /*TargetOpcode::G_FSUB*//*Label 66*/ GIMT_Encode4(10369),
5239 /* 710 */ /*TargetOpcode::G_FMUL*//*Label 67*/ GIMT_Encode4(10514),
5240 /* 714 */ /*TargetOpcode::G_FMA*//*Label 68*/ GIMT_Encode4(10648),
5241 /* 718 */ /*TargetOpcode::G_FMAD*//*Label 69*/ GIMT_Encode4(10705),
5242 /* 722 */ /*TargetOpcode::G_FDIV*//*Label 70*/ GIMT_Encode4(10762),
5243 /* 726 */ /*TargetOpcode::G_FREM*//*Label 71*/ GIMT_Encode4(10839), GIMT_Encode4(0), GIMT_Encode4(0),
5244 /* 738 */ /*TargetOpcode::G_FPOWI*//*Label 72*/ GIMT_Encode4(10862), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
5245 /* 758 */ /*TargetOpcode::G_FLOG2*//*Label 73*/ GIMT_Encode4(10884), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
5246 /* 774 */ /*TargetOpcode::G_FNEG*//*Label 74*/ GIMT_Encode4(10896),
5247 /* 778 */ /*TargetOpcode::G_FPEXT*//*Label 75*/ GIMT_Encode4(10937),
5248 /* 782 */ /*TargetOpcode::G_FPTRUNC*//*Label 76*/ GIMT_Encode4(10949),
5249 /* 786 */ /*TargetOpcode::G_FPTOSI*//*Label 77*/ GIMT_Encode4(10994),
5250 /* 790 */ /*TargetOpcode::G_FPTOUI*//*Label 78*/ GIMT_Encode4(11019),
5251 /* 794 */ /*TargetOpcode::G_SITOFP*//*Label 79*/ GIMT_Encode4(11072),
5252 /* 798 */ /*TargetOpcode::G_UITOFP*//*Label 80*/ GIMT_Encode4(11109), GIMT_Encode4(0),
5253 /* 806 */ /*TargetOpcode::G_FPTOUI_SAT*//*Label 81*/ GIMT_Encode4(11146),
5254 /* 810 */ /*TargetOpcode::G_FABS*//*Label 82*/ GIMT_Encode4(11175),
5255 /* 814 */ /*TargetOpcode::G_FCOPYSIGN*//*Label 83*/ GIMT_Encode4(11244), GIMT_Encode4(0),
5256 /* 822 */ /*TargetOpcode::G_FCANONICALIZE*//*Label 84*/ GIMT_Encode4(11256),
5257 /* 826 */ /*TargetOpcode::G_FMINNUM*//*Label 85*/ GIMT_Encode4(11286),
5258 /* 830 */ /*TargetOpcode::G_FMAXNUM*//*Label 86*/ GIMT_Encode4(11380),
5259 /* 834 */ /*TargetOpcode::G_FMINNUM_IEEE*//*Label 87*/ GIMT_Encode4(11474),
5260 /* 838 */ /*TargetOpcode::G_FMAXNUM_IEEE*//*Label 88*/ GIMT_Encode4(11500),
5261 /* 842 */ /*TargetOpcode::G_FMINIMUM*//*Label 89*/ GIMT_Encode4(11526),
5262 /* 846 */ /*TargetOpcode::G_FMAXIMUM*//*Label 90*/ GIMT_Encode4(11620),
5263 /* 850 */ /*TargetOpcode::G_FMINIMUMNUM*//*Label 91*/ GIMT_Encode4(11714),
5264 /* 854 */ /*TargetOpcode::G_FMAXIMUMNUM*//*Label 92*/ GIMT_Encode4(11726), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
5265 /* 890 */ /*TargetOpcode::G_PTR_ADD*//*Label 93*/ GIMT_Encode4(11738), GIMT_Encode4(0),
5266 /* 898 */ /*TargetOpcode::G_SMIN*//*Label 94*/ GIMT_Encode4(11904),
5267 /* 902 */ /*TargetOpcode::G_SMAX*//*Label 95*/ GIMT_Encode4(11952),
5268 /* 906 */ /*TargetOpcode::G_UMIN*//*Label 96*/ GIMT_Encode4(12000),
5269 /* 910 */ /*TargetOpcode::G_UMAX*//*Label 97*/ GIMT_Encode4(12048),
5270 /* 914 */ /*TargetOpcode::G_ABS*//*Label 98*/ GIMT_Encode4(12096), GIMT_Encode4(0), GIMT_Encode4(0),
5271 /* 926 */ /*TargetOpcode::G_BR*//*Label 99*/ GIMT_Encode4(12129), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
5272 /* 946 */ /*TargetOpcode::G_INSERT_VECTOR_ELT*//*Label 100*/ GIMT_Encode4(12141),
5273 /* 950 */ /*TargetOpcode::G_EXTRACT_VECTOR_ELT*//*Label 101*/ GIMT_Encode4(12285),
5274 /* 954 */ /*TargetOpcode::G_SHUFFLE_VECTOR*//*Label 102*/ GIMT_Encode4(12676), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
5275 /* 970 */ /*TargetOpcode::G_CTTZ*//*Label 103*/ GIMT_Encode4(12767),
5276 /* 974 */ /*TargetOpcode::G_CTTZ_ZERO_POISON*//*Label 104*/ GIMT_Encode4(12802),
5277 /* 978 */ /*TargetOpcode::G_CTLZ*//*Label 105*/ GIMT_Encode4(12814),
5278 /* 982 */ /*TargetOpcode::G_CTLZ_ZERO_POISON*//*Label 106*/ GIMT_Encode4(12860), GIMT_Encode4(0),
5279 /* 990 */ /*TargetOpcode::G_CTPOP*//*Label 107*/ GIMT_Encode4(12883),
5280 /* 994 */ /*TargetOpcode::G_BSWAP*//*Label 108*/ GIMT_Encode4(12895),
5281 /* 998 */ /*TargetOpcode::G_BITREVERSE*//*Label 109*/ GIMT_Encode4(12907), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
5282 /* 1014 */ /*TargetOpcode::G_FCEIL*//*Label 110*/ GIMT_Encode4(13007), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
5283 /* 1062 */ /*TargetOpcode::G_FSQRT*//*Label 111*/ GIMT_Encode4(13019),
5284 /* 1066 */ /*TargetOpcode::G_FFLOOR*//*Label 112*/ GIMT_Encode4(13031),
5285 /* 1070 */ /*TargetOpcode::G_FRINT*//*Label 113*/ GIMT_Encode4(13043),
5286 /* 1074 */ /*TargetOpcode::G_FNEARBYINT*//*Label 114*/ GIMT_Encode4(13055), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
5287 /* 1150 */ /*TargetOpcode::G_MEMCPY*//*Label 115*/ GIMT_Encode4(13067),
5288 /* 1154 */ /*TargetOpcode::G_MEMCPY_INLINE*//*Label 116*/ GIMT_Encode4(13079),
5289 /* 1158 */ /*TargetOpcode::G_MEMMOVE*//*Label 117*/ GIMT_Encode4(13091),
5290 /* 1162 */ /*TargetOpcode::G_MEMSET*//*Label 118*/ GIMT_Encode4(13103), GIMT_Encode4(0),
5291 /* 1170 */ /*TargetOpcode::G_MEMSET_INLINE*//*Label 119*/ GIMT_Encode4(13126), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
5292 /* 1226 */ /*TargetOpcode::G_VECREDUCE_ADD*//*Label 120*/ GIMT_Encode4(13138),
5293 /* 1230 */ // Label 0: @1230
5294 /* 1230 */ GIM_Try, /*On fail goto*//*Label 122*/ GIMT_Encode4(1241), // Rule ID 19 //
5295 /* 1235 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule19Enabled),
5296 /* 1238 */ // MIs[0] d
5297 /* 1238 */ // No operand predicates
5298 /* 1238 */ // MIs[0] s
5299 /* 1238 */ // No operand predicates
5300 /* 1238 */ // Combiner Rule #19: copy_prop
5301 /* 1238 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner5),
5302 /* 1241 */ // Label 122: @1241
5303 /* 1241 */ GIM_Reject,
5304 /* 1242 */ // Label 1: @1242
5305 /* 1242 */ GIM_Try, /*On fail goto*//*Label 123*/ GIMT_Encode4(1330), // Rule ID 457 //
5306 /* 1247 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule326Enabled),
5307 /* 1250 */ // MIs[0] dst
5308 /* 1250 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
5309 /* 1254 */ // MIs[0] __add_shift_match_0.shl_neg
5310 /* 1254 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5311 /* 1258 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SHL),
5312 /* 1262 */ // MIs[1] __add_shift_match_0.neg_y
5313 /* 1262 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
5314 /* 1266 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB),
5315 /* 1270 */ // MIs[2] __add_shift_match_0.zero
5316 /* 1270 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/2, /*OpIdx*/1, // MIs[3]
5317 /* 1274 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5318 /* 1278 */ // MIs[3] Operand 1
5319 /* 1278 */ GIM_CheckLiteralInt, /*MI*/3, /*Op*/1, GIMT_Encode8(0),
5320 /* 1289 */ // MIs[2] y
5321 /* 1289 */ // No operand predicates
5322 /* 1289 */ // MIs[1] n
5323 /* 1289 */ // No operand predicates
5324 /* 1289 */ // MIs[0] x
5325 /* 1289 */ // No operand predicates
5326 /* 1289 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner61),
5327 /* 1293 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
5328 /* 1295 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5329 /* 1298 */ // Combiner Rule #326: add_shift @ [__add_shift_match_0[1]]
5330 /* 1298 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SHL),
5331 /* 1301 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5332 /* 1306 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/2, // y
5333 /* 1310 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // n
5334 /* 1314 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5335 /* 1318 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
5336 /* 1322 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/2, // x
5337 /* 1326 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
5338 /* 1329 */ GIR_EraseRootFromParent_Done,
5339 /* 1330 */ // Label 123: @1330
5340 /* 1330 */ GIM_Try, /*On fail goto*//*Label 124*/ GIMT_Encode4(1418), // Rule ID 456 //
5341 /* 1335 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule326Enabled),
5342 /* 1338 */ // MIs[0] dst
5343 /* 1338 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
5344 /* 1342 */ // MIs[0] x
5345 /* 1342 */ // No operand predicates
5346 /* 1342 */ // MIs[0] __add_shift_match_0.shl_neg
5347 /* 1342 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5348 /* 1346 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SHL),
5349 /* 1350 */ // MIs[1] __add_shift_match_0.neg_y
5350 /* 1350 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
5351 /* 1354 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB),
5352 /* 1358 */ // MIs[2] __add_shift_match_0.zero
5353 /* 1358 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/2, /*OpIdx*/1, // MIs[3]
5354 /* 1362 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5355 /* 1366 */ // MIs[3] Operand 1
5356 /* 1366 */ GIM_CheckLiteralInt, /*MI*/3, /*Op*/1, GIMT_Encode8(0),
5357 /* 1377 */ // MIs[2] y
5358 /* 1377 */ // No operand predicates
5359 /* 1377 */ // MIs[1] n
5360 /* 1377 */ // No operand predicates
5361 /* 1377 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner60),
5362 /* 1381 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
5363 /* 1383 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5364 /* 1386 */ // Combiner Rule #326: add_shift @ [__add_shift_match_0[0]]
5365 /* 1386 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SHL),
5366 /* 1389 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5367 /* 1394 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/2, // y
5368 /* 1398 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // n
5369 /* 1402 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5370 /* 1406 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
5371 /* 1410 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/1, // x
5372 /* 1414 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
5373 /* 1417 */ GIR_EraseRootFromParent_Done,
5374 /* 1418 */ // Label 124: @1418
5375 /* 1418 */ GIM_Try, /*On fail goto*//*Label 125*/ GIMT_Encode4(1473), // Rule ID 22 //
5376 /* 1423 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule22Enabled),
5377 /* 1426 */ // MIs[0] dst
5378 /* 1426 */ // No operand predicates
5379 /* 1426 */ // MIs[0] __add_p2i_to_ptradd_match_0.x
5380 /* 1426 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5381 /* 1430 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_PTRTOINT),
5382 /* 1434 */ // MIs[1] ptr
5383 /* 1434 */ GIM_RecordRegType, /*MI*/1, /*Op*/1, /*TempTypeIdx*/255,
5384 /* 1438 */ // MIs[0] other
5385 /* 1438 */ // No operand predicates
5386 /* 1438 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner2),
5387 /* 1442 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5388 /* 1444 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5389 /* 1447 */ // Combiner Rule #22: add_p2i_to_ptradd @ [__add_p2i_to_ptradd_match_0[0]]
5390 /* 1447 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_PTR_ADD),
5391 /* 1450 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5392 /* 1455 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // ptr
5393 /* 1459 */ GIR_RootToRootCopy, /*OpIdx*/2, // other
5394 /* 1461 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_PTRTOINT),
5395 /* 1465 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
5396 /* 1469 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
5397 /* 1472 */ GIR_EraseRootFromParent_Done,
5398 /* 1473 */ // Label 125: @1473
5399 /* 1473 */ GIM_Try, /*On fail goto*//*Label 126*/ GIMT_Encode4(1528), // Rule ID 23 //
5400 /* 1478 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule22Enabled),
5401 /* 1481 */ // MIs[0] dst
5402 /* 1481 */ // No operand predicates
5403 /* 1481 */ // MIs[0] other
5404 /* 1481 */ // No operand predicates
5405 /* 1481 */ // MIs[0] __add_p2i_to_ptradd_match_0.x
5406 /* 1481 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5407 /* 1485 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_PTRTOINT),
5408 /* 1489 */ // MIs[1] ptr
5409 /* 1489 */ GIM_RecordRegType, /*MI*/1, /*Op*/1, /*TempTypeIdx*/255,
5410 /* 1493 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner2),
5411 /* 1497 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5412 /* 1499 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5413 /* 1502 */ // Combiner Rule #22: add_p2i_to_ptradd @ [__add_p2i_to_ptradd_match_0[1]]
5414 /* 1502 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_PTR_ADD),
5415 /* 1505 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5416 /* 1510 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // ptr
5417 /* 1514 */ GIR_RootToRootCopy, /*OpIdx*/1, // other
5418 /* 1516 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_PTRTOINT),
5419 /* 1520 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
5420 /* 1524 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
5421 /* 1527 */ GIR_EraseRootFromParent_Done,
5422 /* 1528 */ // Label 126: @1528
5423 /* 1528 */ GIM_Try, /*On fail goto*//*Label 127*/ GIMT_Encode4(1553), // Rule ID 383 //
5424 /* 1533 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule253Enabled),
5425 /* 1536 */ // MIs[0] dst
5426 /* 1536 */ // No operand predicates
5427 /* 1536 */ // MIs[0] lhs
5428 /* 1536 */ // No operand predicates
5429 /* 1536 */ // MIs[0] rhs
5430 /* 1536 */ // No operand predicates
5431 /* 1536 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner51),
5432 /* 1540 */ // Combiner Rule #253: G_ADD_commute_constant_to_rhs
5433 /* 1540 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ADD),
5434 /* 1543 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
5435 /* 1545 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
5436 /* 1547 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
5437 /* 1549 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
5438 /* 1552 */ GIR_EraseRootFromParent_Done,
5439 /* 1553 */ // Label 127: @1553
5440 /* 1553 */ GIM_Try, /*On fail goto*//*Label 128*/ GIMT_Encode4(1588), // Rule ID 46 //
5441 /* 1558 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule42Enabled),
5442 /* 1561 */ GIM_MIFlags, /*MI*/0, GIMT_Encode4(MachineInstr::NoSWrap),
5443 /* 1567 */ // MIs[0] root
5444 /* 1567 */ // No operand predicates
5445 /* 1567 */ // MIs[0] left
5446 /* 1567 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5447 /* 1571 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_VSCALE),
5448 /* 1575 */ // MIs[1] imm1
5449 /* 1575 */ // No operand predicates
5450 /* 1575 */ // MIs[0] right
5451 /* 1575 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
5452 /* 1579 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_VSCALE),
5453 /* 1583 */ // MIs[2] imm2
5454 /* 1583 */ // No operand predicates
5455 /* 1583 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5456 /* 1585 */ // Combiner Rule #42: add_of_vscale
5457 /* 1585 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner12),
5458 /* 1588 */ // Label 128: @1588
5459 /* 1588 */ GIM_Try, /*On fail goto*//*Label 129*/ GIMT_Encode4(1622), // Rule ID 2 //
5460 /* 1593 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule2Enabled),
5461 /* 1596 */ // MIs[0] root
5462 /* 1596 */ // No operand predicates
5463 /* 1596 */ // MIs[0] sub
5464 /* 1596 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5465 /* 1600 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5466 /* 1604 */ // MIs[1] Operand 1
5467 /* 1604 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/1, 0,
5468 /* 1608 */ // MIs[1] A
5469 /* 1608 */ // No operand predicates
5470 /* 1608 */ // MIs[0] B
5471 /* 1608 */ // No operand predicates
5472 /* 1608 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5473 /* 1610 */ // Combiner Rule #2: ZeroMinusAPlusB
5474 /* 1610 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5475 /* 1613 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
5476 /* 1615 */ GIR_RootToRootCopy, /*OpIdx*/2, // B
5477 /* 1617 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // A
5478 /* 1621 */ GIR_EraseRootFromParent_Done,
5479 /* 1622 */ // Label 129: @1622
5480 /* 1622 */ GIM_Try, /*On fail goto*//*Label 130*/ GIMT_Encode4(1671), // Rule ID 163 //
5481 /* 1627 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule118Enabled),
5482 /* 1630 */ // MIs[0] dst
5483 /* 1630 */ // No operand predicates
5484 /* 1630 */ // MIs[0] __simplify_add_to_sub_match_0.neg
5485 /* 1630 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5486 /* 1634 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5487 /* 1638 */ // MIs[1] __simplify_add_to_sub_match_0.zero
5488 /* 1638 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
5489 /* 1642 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5490 /* 1646 */ // MIs[2] Operand 1
5491 /* 1646 */ GIM_CheckLiteralInt, /*MI*/2, /*Op*/1, GIMT_Encode8(0),
5492 /* 1657 */ // MIs[1] newrhs
5493 /* 1657 */ // No operand predicates
5494 /* 1657 */ // MIs[0] newlhs
5495 /* 1657 */ // No operand predicates
5496 /* 1657 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5497 /* 1659 */ // Combiner Rule #118: simplify_add_to_sub @ [__simplify_add_to_sub_match_0[0]]
5498 /* 1659 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5499 /* 1662 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
5500 /* 1664 */ GIR_RootToRootCopy, /*OpIdx*/2, // newlhs
5501 /* 1666 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // newrhs
5502 /* 1670 */ GIR_EraseRootFromParent_Done,
5503 /* 1671 */ // Label 130: @1671
5504 /* 1671 */ GIM_Try, /*On fail goto*//*Label 131*/ GIMT_Encode4(1708), // Rule ID 18 //
5505 /* 1676 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule18Enabled),
5506 /* 1679 */ // MIs[0] root
5507 /* 1679 */ // No operand predicates
5508 /* 1679 */ // MIs[0] sub
5509 /* 1679 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5510 /* 1683 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5511 /* 1687 */ // MIs[1] A
5512 /* 1687 */ // No operand predicates
5513 /* 1687 */ // MIs[1] c1
5514 /* 1687 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
5515 /* 1691 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5516 /* 1695 */ // MIs[2] imm1
5517 /* 1695 */ // No operand predicates
5518 /* 1695 */ // MIs[0] c2
5519 /* 1695 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/0, /*OpIdx*/2, // MIs[3]
5520 /* 1699 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5521 /* 1703 */ // MIs[3] imm2
5522 /* 1703 */ // No operand predicates
5523 /* 1703 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
5524 /* 1705 */ // Combiner Rule #18: AMinusC1PlusC2
5525 /* 1705 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner4),
5526 /* 1708 */ // Label 131: @1708
5527 /* 1708 */ GIM_Try, /*On fail goto*//*Label 132*/ GIMT_Encode4(1742), // Rule ID 5 //
5528 /* 1713 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule5Enabled),
5529 /* 1716 */ // MIs[0] root
5530 /* 1716 */ // No operand predicates
5531 /* 1716 */ // MIs[0] sub
5532 /* 1716 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5533 /* 1720 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5534 /* 1724 */ // MIs[1] B
5535 /* 1724 */ // No operand predicates
5536 /* 1724 */ // MIs[1] A
5537 /* 1724 */ // No operand predicates
5538 /* 1724 */ // MIs[0] A
5539 /* 1724 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/2,
5540 /* 1729 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
5541 /* 1734 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5542 /* 1736 */ // Combiner Rule #5: BMinusAPlusA
5543 /* 1736 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
5544 /* 1741 */ GIR_EraseRootFromParent_Done,
5545 /* 1742 */ // Label 132: @1742
5546 /* 1742 */ GIM_Try, /*On fail goto*//*Label 133*/ GIMT_Encode4(1776), // Rule ID 151 //
5547 /* 1747 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule106Enabled),
5548 /* 1750 */ // MIs[0] dst
5549 /* 1750 */ // No operand predicates
5550 /* 1750 */ // MIs[0] __add_sub_reg_match_0.tmp
5551 /* 1750 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5552 /* 1754 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5553 /* 1758 */ // MIs[1] src
5554 /* 1758 */ // No operand predicates
5555 /* 1758 */ // MIs[1] __add_sub_reg_match_0.x
5556 /* 1758 */ // No operand predicates
5557 /* 1758 */ // MIs[0] __add_sub_reg_match_0.x
5558 /* 1758 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/2,
5559 /* 1763 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
5560 /* 1768 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5561 /* 1770 */ // Combiner Rule #106: add_sub_reg @ [__add_sub_reg_match_0[1]]
5562 /* 1770 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
5563 /* 1775 */ GIR_EraseRootFromParent_Done,
5564 /* 1776 */ // Label 133: @1776
5565 /* 1776 */ GIM_Try, /*On fail goto*//*Label 134*/ GIMT_Encode4(1821), // Rule ID 7 //
5566 /* 1781 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule7Enabled),
5567 /* 1784 */ // MIs[0] root
5568 /* 1784 */ // No operand predicates
5569 /* 1784 */ // MIs[0] sub1
5570 /* 1784 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5571 /* 1788 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5572 /* 1792 */ // MIs[1] A
5573 /* 1792 */ // No operand predicates
5574 /* 1792 */ // MIs[1] B
5575 /* 1792 */ // No operand predicates
5576 /* 1792 */ // MIs[0] sub2
5577 /* 1792 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
5578 /* 1796 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB),
5579 /* 1800 */ // MIs[2] B
5580 /* 1800 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/2,
5581 /* 1805 */ // MIs[2] C
5582 /* 1805 */ // No operand predicates
5583 /* 1805 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5584 /* 1807 */ // Combiner Rule #7: AMinusBPlusBMinusC
5585 /* 1807 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5586 /* 1810 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
5587 /* 1812 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // A
5588 /* 1816 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/2, // C
5589 /* 1820 */ GIR_EraseRootFromParent_Done,
5590 /* 1821 */ // Label 134: @1821
5591 /* 1821 */ GIM_Try, /*On fail goto*//*Label 135*/ GIMT_Encode4(1866), // Rule ID 6 //
5592 /* 1826 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule6Enabled),
5593 /* 1829 */ // MIs[0] root
5594 /* 1829 */ // No operand predicates
5595 /* 1829 */ // MIs[0] sub1
5596 /* 1829 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5597 /* 1833 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5598 /* 1837 */ // MIs[1] A
5599 /* 1837 */ // No operand predicates
5600 /* 1837 */ // MIs[1] B
5601 /* 1837 */ // No operand predicates
5602 /* 1837 */ // MIs[0] sub2
5603 /* 1837 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
5604 /* 1841 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB),
5605 /* 1845 */ // MIs[2] C
5606 /* 1845 */ // No operand predicates
5607 /* 1845 */ // MIs[2] A
5608 /* 1845 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/1,
5609 /* 1850 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5610 /* 1852 */ // Combiner Rule #6: AMinusBPlusCMinusA
5611 /* 1852 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5612 /* 1855 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
5613 /* 1857 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // C
5614 /* 1861 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // B
5615 /* 1865 */ GIR_EraseRootFromParent_Done,
5616 /* 1866 */ // Label 135: @1866
5617 /* 1866 */ GIM_Try, /*On fail goto*//*Label 136*/ GIMT_Encode4(1895), // Rule ID 486 //
5618 /* 1871 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule350Enabled),
5619 /* 1874 */ // MIs[0] dst
5620 /* 1874 */ // No operand predicates
5621 /* 1874 */ // MIs[0] ext1
5622 /* 1874 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5623 /* 1878 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SEXT),
5624 /* 1882 */ // MIs[1] src1
5625 /* 1882 */ // No operand predicates
5626 /* 1882 */ // MIs[0] ext2
5627 /* 1882 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
5628 /* 1886 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SEXT),
5629 /* 1890 */ // MIs[2] src2
5630 /* 1890 */ // No operand predicates
5631 /* 1890 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5632 /* 1892 */ // Combiner Rule #350: push_add_through_sext
5633 /* 1892 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner134),
5634 /* 1895 */ // Label 136: @1895
5635 /* 1895 */ GIM_Try, /*On fail goto*//*Label 137*/ GIMT_Encode4(1924), // Rule ID 483 //
5636 /* 1900 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule347Enabled),
5637 /* 1903 */ // MIs[0] dst
5638 /* 1903 */ // No operand predicates
5639 /* 1903 */ // MIs[0] ext1
5640 /* 1903 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5641 /* 1907 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ZEXT),
5642 /* 1911 */ // MIs[1] src1
5643 /* 1911 */ // No operand predicates
5644 /* 1911 */ // MIs[0] ext2
5645 /* 1911 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
5646 /* 1915 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ZEXT),
5647 /* 1919 */ // MIs[2] src2
5648 /* 1919 */ // No operand predicates
5649 /* 1919 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5650 /* 1921 */ // Combiner Rule #347: push_add_through_zext
5651 /* 1921 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner134),
5652 /* 1924 */ // Label 137: @1924
5653 /* 1924 */ GIM_Try, /*On fail goto*//*Label 138*/ GIMT_Encode4(1948), // Rule ID 105 //
5654 /* 1929 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule84Enabled),
5655 /* 1932 */ // MIs[0] dst
5656 /* 1932 */ // No operand predicates
5657 /* 1932 */ // MIs[0] __propagate_undef_any_op_match_0.x
5658 /* 1932 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5659 /* 1936 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
5660 /* 1940 */ // MIs[0] __propagate_undef_any_op_match_0.y
5661 /* 1940 */ // No operand predicates
5662 /* 1940 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5663 /* 1942 */ // Combiner Rule #84: propagate_undef_any_op @ [__propagate_undef_any_op_match_0[0]]
5664 /* 1942 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
5665 /* 1945 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
5666 /* 1947 */ GIR_EraseRootFromParent_Done,
5667 /* 1948 */ // Label 138: @1948
5668 /* 1948 */ GIM_Try, /*On fail goto*//*Label 139*/ GIMT_Encode4(1982), // Rule ID 3 //
5669 /* 1953 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule3Enabled),
5670 /* 1956 */ // MIs[0] root
5671 /* 1956 */ // No operand predicates
5672 /* 1956 */ // MIs[0] A
5673 /* 1956 */ // No operand predicates
5674 /* 1956 */ // MIs[0] sub
5675 /* 1956 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5676 /* 1960 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5677 /* 1964 */ // MIs[1] Operand 1
5678 /* 1964 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/1, 0,
5679 /* 1968 */ // MIs[1] B
5680 /* 1968 */ // No operand predicates
5681 /* 1968 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5682 /* 1970 */ // Combiner Rule #3: APlusZeroMinusB
5683 /* 1970 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5684 /* 1973 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
5685 /* 1975 */ GIR_RootToRootCopy, /*OpIdx*/1, // A
5686 /* 1977 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // B
5687 /* 1981 */ GIR_EraseRootFromParent_Done,
5688 /* 1982 */ // Label 139: @1982
5689 /* 1982 */ GIM_Try, /*On fail goto*//*Label 140*/ GIMT_Encode4(2031), // Rule ID 164 //
5690 /* 1987 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule118Enabled),
5691 /* 1990 */ // MIs[0] dst
5692 /* 1990 */ // No operand predicates
5693 /* 1990 */ // MIs[0] newlhs
5694 /* 1990 */ // No operand predicates
5695 /* 1990 */ // MIs[0] __simplify_add_to_sub_match_0.neg
5696 /* 1990 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5697 /* 1994 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5698 /* 1998 */ // MIs[1] __simplify_add_to_sub_match_0.zero
5699 /* 1998 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
5700 /* 2002 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5701 /* 2006 */ // MIs[2] Operand 1
5702 /* 2006 */ GIM_CheckLiteralInt, /*MI*/2, /*Op*/1, GIMT_Encode8(0),
5703 /* 2017 */ // MIs[1] newrhs
5704 /* 2017 */ // No operand predicates
5705 /* 2017 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5706 /* 2019 */ // Combiner Rule #118: simplify_add_to_sub @ [__simplify_add_to_sub_match_0[1]]
5707 /* 2019 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5708 /* 2022 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
5709 /* 2024 */ GIR_RootToRootCopy, /*OpIdx*/1, // newlhs
5710 /* 2026 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // newrhs
5711 /* 2030 */ GIR_EraseRootFromParent_Done,
5712 /* 2031 */ // Label 140: @2031
5713 /* 2031 */ GIM_Try, /*On fail goto*//*Label 141*/ GIMT_Encode4(2065), // Rule ID 4 //
5714 /* 2036 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule4Enabled),
5715 /* 2039 */ // MIs[0] root
5716 /* 2039 */ // No operand predicates
5717 /* 2039 */ // MIs[0] A
5718 /* 2039 */ // No operand predicates
5719 /* 2039 */ // MIs[0] sub
5720 /* 2039 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5721 /* 2043 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5722 /* 2047 */ // MIs[1] B
5723 /* 2047 */ // No operand predicates
5724 /* 2047 */ // MIs[1] A
5725 /* 2047 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/1, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
5726 /* 2052 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
5727 /* 2057 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5728 /* 2059 */ // Combiner Rule #4: APlusBMinusB
5729 /* 2059 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
5730 /* 2064 */ GIR_EraseRootFromParent_Done,
5731 /* 2065 */ // Label 141: @2065
5732 /* 2065 */ GIM_Try, /*On fail goto*//*Label 142*/ GIMT_Encode4(2099), // Rule ID 150 //
5733 /* 2070 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule106Enabled),
5734 /* 2073 */ // MIs[0] dst
5735 /* 2073 */ // No operand predicates
5736 /* 2073 */ // MIs[0] __add_sub_reg_match_0.x
5737 /* 2073 */ // No operand predicates
5738 /* 2073 */ // MIs[0] __add_sub_reg_match_0.tmp
5739 /* 2073 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5740 /* 2077 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5741 /* 2081 */ // MIs[1] src
5742 /* 2081 */ // No operand predicates
5743 /* 2081 */ // MIs[1] __add_sub_reg_match_0.x
5744 /* 2081 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/1, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
5745 /* 2086 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
5746 /* 2091 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5747 /* 2093 */ // Combiner Rule #106: add_sub_reg @ [__add_sub_reg_match_0[0]]
5748 /* 2093 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
5749 /* 2098 */ GIR_EraseRootFromParent_Done,
5750 /* 2099 */ // Label 142: @2099
5751 /* 2099 */ GIM_Try, /*On fail goto*//*Label 143*/ GIMT_Encode4(2144), // Rule ID 8 //
5752 /* 2104 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule8Enabled),
5753 /* 2107 */ // MIs[0] root
5754 /* 2107 */ // No operand predicates
5755 /* 2107 */ // MIs[0] A
5756 /* 2107 */ // No operand predicates
5757 /* 2107 */ // MIs[0] sub1
5758 /* 2107 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5759 /* 2111 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5760 /* 2115 */ // MIs[1] B
5761 /* 2115 */ // No operand predicates
5762 /* 2115 */ // MIs[1] add1
5763 /* 2115 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
5764 /* 2119 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ADD),
5765 /* 2123 */ // MIs[2] A
5766 /* 2123 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/0, /*OtherOpIdx*/1,
5767 /* 2128 */ // MIs[2] C
5768 /* 2128 */ // No operand predicates
5769 /* 2128 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5770 /* 2130 */ // Combiner Rule #8: APlusBMinusAplusC
5771 /* 2130 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5772 /* 2133 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
5773 /* 2135 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // B
5774 /* 2139 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/2, // C
5775 /* 2143 */ GIR_EraseRootFromParent_Done,
5776 /* 2144 */ // Label 143: @2144
5777 /* 2144 */ GIM_Try, /*On fail goto*//*Label 144*/ GIMT_Encode4(2189), // Rule ID 10 //
5778 /* 2149 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule10Enabled),
5779 /* 2152 */ // MIs[0] root
5780 /* 2152 */ // No operand predicates
5781 /* 2152 */ // MIs[0] A
5782 /* 2152 */ // No operand predicates
5783 /* 2152 */ // MIs[0] sub1
5784 /* 2152 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5785 /* 2156 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5786 /* 2160 */ // MIs[1] B
5787 /* 2160 */ // No operand predicates
5788 /* 2160 */ // MIs[1] add1
5789 /* 2160 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
5790 /* 2164 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ADD),
5791 /* 2168 */ // MIs[2] C
5792 /* 2168 */ // No operand predicates
5793 /* 2168 */ // MIs[2] A
5794 /* 2168 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
5795 /* 2173 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5796 /* 2175 */ // Combiner Rule #10: APlusBMinusCPlusA
5797 /* 2175 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5798 /* 2178 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
5799 /* 2180 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // B
5800 /* 2184 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // C
5801 /* 2188 */ GIR_EraseRootFromParent_Done,
5802 /* 2189 */ // Label 144: @2189
5803 /* 2189 */ GIM_Try, /*On fail goto*//*Label 145*/ GIMT_Encode4(2213), // Rule ID 108 //
5804 /* 2194 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule84Enabled),
5805 /* 2197 */ // MIs[0] dst
5806 /* 2197 */ // No operand predicates
5807 /* 2197 */ // MIs[0] __propagate_undef_any_op_match_0.x
5808 /* 2197 */ // No operand predicates
5809 /* 2197 */ // MIs[0] __propagate_undef_any_op_match_0.y
5810 /* 2197 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5811 /* 2201 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
5812 /* 2205 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5813 /* 2207 */ // Combiner Rule #84: propagate_undef_any_op @ [__propagate_undef_any_op_match_0[3]]
5814 /* 2207 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
5815 /* 2210 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
5816 /* 2212 */ GIR_EraseRootFromParent_Done,
5817 /* 2213 */ // Label 145: @2213
5818 /* 2213 */ GIM_Try, /*On fail goto*//*Label 146*/ GIMT_Encode4(2236), // Rule ID 120 //
5819 /* 2218 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
5820 /* 2221 */ // MIs[0] dst
5821 /* 2221 */ // No operand predicates
5822 /* 2221 */ // MIs[0] lhs
5823 /* 2221 */ // No operand predicates
5824 /* 2221 */ // MIs[0] Operand 2
5825 /* 2221 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
5826 /* 2225 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5827 /* 2230 */ // Combiner Rule #93: right_identity_zero @ [__right_identity_zero_match_0[1]]
5828 /* 2230 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5829 /* 2235 */ GIR_EraseRootFromParent_Done,
5830 /* 2236 */ // Label 146: @2236
5831 /* 2236 */ GIM_Try, /*On fail goto*//*Label 147*/ GIMT_Encode4(2247), // Rule ID 172 //
5832 /* 2241 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule122Enabled),
5833 /* 2244 */ // MIs[0] root
5834 /* 2244 */ // No operand predicates
5835 /* 2244 */ // MIs[0] src1
5836 /* 2244 */ // No operand predicates
5837 /* 2244 */ // MIs[0] src2
5838 /* 2244 */ // No operand predicates
5839 /* 2244 */ // Combiner Rule #122: reassoc_comm_binops
5840 /* 2244 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner41),
5841 /* 2247 */ // Label 147: @2247
5842 /* 2247 */ GIM_Try, /*On fail goto*//*Label 148*/ GIMT_Encode4(2258), // Rule ID 281 //
5843 /* 2252 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule213Enabled),
5844 /* 2255 */ // MIs[0] d
5845 /* 2255 */ // No operand predicates
5846 /* 2255 */ // MIs[0] mi.src0
5847 /* 2255 */ // No operand predicates
5848 /* 2255 */ // MIs[0] mi.src1
5849 /* 2255 */ // No operand predicates
5850 /* 2255 */ // Combiner Rule #213: constant_fold_binop @ [mi[0]]
5851 /* 2255 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner79),
5852 /* 2258 */ // Label 148: @2258
5853 /* 2258 */ GIM_Try, /*On fail goto*//*Label 149*/ GIMT_Encode4(2269), // Rule ID 342 //
5854 /* 2263 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule236Enabled),
5855 /* 2266 */ // MIs[0] root
5856 /* 2266 */ // No operand predicates
5857 /* 2266 */ // MIs[0] mi.x
5858 /* 2266 */ // No operand predicates
5859 /* 2266 */ // MIs[0] mi.y
5860 /* 2266 */ // No operand predicates
5861 /* 2266 */ // Combiner Rule #236: fold_binop_into_select_a @ [mi[0]]
5862 /* 2266 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
5863 /* 2269 */ // Label 149: @2269
5864 /* 2269 */ GIM_Reject,
5865 /* 2270 */ // Label 2: @2270
5866 /* 2270 */ GIM_Try, /*On fail goto*//*Label 150*/ GIMT_Encode4(2347), // Rule ID 458 //
5867 /* 2275 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule327Enabled),
5868 /* 2278 */ // MIs[0] dst
5869 /* 2278 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
5870 /* 2282 */ // MIs[0] sub1
5871 /* 2282 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5872 /* 2286 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5873 /* 2290 */ // MIs[1] a
5874 /* 2290 */ // No operand predicates
5875 /* 2290 */ // MIs[1] b
5876 /* 2290 */ // No operand predicates
5877 /* 2290 */ // MIs[0] Operand 2
5878 /* 2290 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 1,
5879 /* 2294 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner1),
5880 /* 2298 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5881 /* 2300 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
5882 /* 2303 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(18446744073709551615u),
5883 /* 2313 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5884 /* 2316 */ // Combiner Rule #327: sub_one_from_sub
5885 /* 2316 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_XOR),
5886 /* 2319 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5887 /* 2324 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // b
5888 /* 2328 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/1,
5889 /* 2331 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ADD),
5890 /* 2335 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
5891 /* 2339 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
5892 /* 2342 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // a
5893 /* 2346 */ GIR_EraseRootFromParent_Done,
5894 /* 2347 */ // Label 150: @2347
5895 /* 2347 */ GIM_Try, /*On fail goto*//*Label 151*/ GIMT_Encode4(2441), // Rule ID 464 //
5896 /* 2352 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule331Enabled),
5897 /* 2355 */ // MIs[0] root
5898 /* 2355 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
5899 /* 2359 */ // MIs[0] Operand 1
5900 /* 2359 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/1, 0,
5901 /* 2363 */ // MIs[0] max
5902 /* 2363 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5903 /* 2367 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SMAX),
5904 /* 2371 */ // MIs[1] A
5905 /* 2371 */ // No operand predicates
5906 /* 2371 */ // MIs[1] sub
5907 /* 2371 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
5908 /* 2375 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB),
5909 /* 2379 */ // MIs[2] Operand 1
5910 /* 2379 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/1, 0,
5911 /* 2383 */ // MIs[2] A
5912 /* 2383 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/1,
5913 /* 2388 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner62),
5914 /* 2392 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5915 /* 2394 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
5916 /* 2397 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(0),
5917 /* 2407 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5918 /* 2410 */ // Combiner Rule #331: SubSmaxSub
5919 /* 2410 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5920 /* 2413 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5921 /* 2418 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/1,
5922 /* 2421 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // A
5923 /* 2425 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SMIN),
5924 /* 2429 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // root
5925 /* 2433 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // A
5926 /* 2437 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
5927 /* 2440 */ GIR_EraseRootFromParent_Done,
5928 /* 2441 */ // Label 151: @2441
5929 /* 2441 */ GIM_Try, /*On fail goto*//*Label 152*/ GIMT_Encode4(2535), // Rule ID 466 //
5930 /* 2446 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule333Enabled),
5931 /* 2449 */ // MIs[0] root
5932 /* 2449 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
5933 /* 2453 */ // MIs[0] Operand 1
5934 /* 2453 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/1, 0,
5935 /* 2457 */ // MIs[0] max
5936 /* 2457 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5937 /* 2461 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SMIN),
5938 /* 2465 */ // MIs[1] A
5939 /* 2465 */ // No operand predicates
5940 /* 2465 */ // MIs[1] sub
5941 /* 2465 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
5942 /* 2469 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB),
5943 /* 2473 */ // MIs[2] Operand 1
5944 /* 2473 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/1, 0,
5945 /* 2477 */ // MIs[2] A
5946 /* 2477 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/1,
5947 /* 2482 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner62),
5948 /* 2486 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5949 /* 2488 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
5950 /* 2491 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(0),
5951 /* 2501 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5952 /* 2504 */ // Combiner Rule #333: NegSminNeg
5953 /* 2504 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5954 /* 2507 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5955 /* 2512 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/1,
5956 /* 2515 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // A
5957 /* 2519 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SMAX),
5958 /* 2523 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // root
5959 /* 2527 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // A
5960 /* 2531 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
5961 /* 2534 */ GIR_EraseRootFromParent_Done,
5962 /* 2535 */ // Label 152: @2535
5963 /* 2535 */ GIM_Try, /*On fail goto*//*Label 153*/ GIMT_Encode4(2629), // Rule ID 465 //
5964 /* 2540 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule332Enabled),
5965 /* 2543 */ // MIs[0] root
5966 /* 2543 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
5967 /* 2547 */ // MIs[0] Operand 1
5968 /* 2547 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/1, 0,
5969 /* 2551 */ // MIs[0] max
5970 /* 2551 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5971 /* 2555 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_UMAX),
5972 /* 2559 */ // MIs[1] A
5973 /* 2559 */ // No operand predicates
5974 /* 2559 */ // MIs[1] sub
5975 /* 2559 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
5976 /* 2563 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB),
5977 /* 2567 */ // MIs[2] Operand 1
5978 /* 2567 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/1, 0,
5979 /* 2571 */ // MIs[2] A
5980 /* 2571 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/1,
5981 /* 2576 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner62),
5982 /* 2580 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5983 /* 2582 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
5984 /* 2585 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(0),
5985 /* 2595 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5986 /* 2598 */ // Combiner Rule #332: SubUmaxSub
5987 /* 2598 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5988 /* 2601 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5989 /* 2606 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/1,
5990 /* 2609 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // A
5991 /* 2613 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UMIN),
5992 /* 2617 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // root
5993 /* 2621 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // A
5994 /* 2625 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
5995 /* 2628 */ GIR_EraseRootFromParent_Done,
5996 /* 2629 */ // Label 153: @2629
5997 /* 2629 */ GIM_Try, /*On fail goto*//*Label 154*/ GIMT_Encode4(2723), // Rule ID 467 //
5998 /* 2634 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule334Enabled),
5999 /* 2637 */ // MIs[0] root
6000 /* 2637 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
6001 /* 2641 */ // MIs[0] Operand 1
6002 /* 2641 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/1, 0,
6003 /* 2645 */ // MIs[0] max
6004 /* 2645 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
6005 /* 2649 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_UMIN),
6006 /* 2653 */ // MIs[1] A
6007 /* 2653 */ // No operand predicates
6008 /* 2653 */ // MIs[1] sub
6009 /* 2653 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
6010 /* 2657 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB),
6011 /* 2661 */ // MIs[2] Operand 1
6012 /* 2661 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/1, 0,
6013 /* 2665 */ // MIs[2] A
6014 /* 2665 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/1,
6015 /* 2670 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner62),
6016 /* 2674 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
6017 /* 2676 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
6018 /* 2679 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(0),
6019 /* 2689 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
6020 /* 2692 */ // Combiner Rule #334: NegUminNeg
6021 /* 2692 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
6022 /* 2695 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
6023 /* 2700 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/1,
6024 /* 2703 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // A
6025 /* 2707 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UMAX),
6026 /* 2711 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // root
6027 /* 2715 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // A
6028 /* 2719 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
6029 /* 2722 */ GIR_EraseRootFromParent_Done,
6030 /* 2723 */ // Label 154: @2723
6031 /* 2723 */ GIM_Try, /*On fail goto*//*Label 155*/ GIMT_Encode4(2775), // Rule ID 379 //
6032 /* 2728 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule249Enabled),
6033 /* 2731 */ // MIs[0] dst
6034 /* 2731 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
6035 /* 2735 */ // MIs[0] x
6036 /* 2735 */ // No operand predicates
6037 /* 2735 */ // MIs[0] sum
6038 /* 2735 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
6039 /* 2739 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
6040 /* 2743 */ // MIs[1] y
6041 /* 2743 */ // No operand predicates
6042 /* 2743 */ // MIs[1] z
6043 /* 2743 */ // No operand predicates
6044 /* 2743 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner48),
6045 /* 2747 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6046 /* 2749 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
6047 /* 2752 */ GIR_BuildConstant, /*TempRegID*/0, /*Val*/GIMT_Encode8(0),
6048 /* 2762 */ // Combiner Rule #249: sub_add_neg_rhs
6049 /* 2762 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
6050 /* 2765 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
6051 /* 2767 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/0,
6052 /* 2770 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // y
6053 /* 2774 */ GIR_EraseRootFromParent_Done,
6054 /* 2775 */ // Label 155: @2775
6055 /* 2775 */ GIM_Try, /*On fail goto*//*Label 156*/ GIMT_Encode4(2827), // Rule ID 380 //
6056 /* 2780 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule250Enabled),
6057 /* 2783 */ // MIs[0] dst
6058 /* 2783 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
6059 /* 2787 */ // MIs[0] x
6060 /* 2787 */ // No operand predicates
6061 /* 2787 */ // MIs[0] sum
6062 /* 2787 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
6063 /* 2791 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
6064 /* 2795 */ // MIs[1] y
6065 /* 2795 */ // No operand predicates
6066 /* 2795 */ // MIs[1] z
6067 /* 2795 */ // No operand predicates
6068 /* 2795 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner49),
6069 /* 2799 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6070 /* 2801 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
6071 /* 2804 */ GIR_BuildConstant, /*TempRegID*/0, /*Val*/GIMT_Encode8(0),
6072 /* 2814 */ // Combiner Rule #250: sub_add_neg_lhs
6073 /* 2814 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
6074 /* 2817 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
6075 /* 2819 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/0,
6076 /* 2822 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // z
6077 /* 2826 */ GIR_EraseRootFromParent_Done,
6078 /* 2827 */ // Label 156: @2827
6079 /* 2827 */ GIM_Try, /*On fail goto*//*Label 157*/ GIMT_Encode4(2888), // Rule ID 9 //
6080 /* 2832 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule9Enabled),
6081 /* 2835 */ // MIs[0] root
6082 /* 2835 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
6083 /* 2839 */ // MIs[0] A
6084 /* 2839 */ // No operand predicates
6085 /* 2839 */ // MIs[0] sub1
6086 /* 2839 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
6087 /* 2843 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
6088 /* 2847 */ // MIs[1] B
6089 /* 2847 */ // No operand predicates
6090 /* 2847 */ // MIs[1] C
6091 /* 2847 */ // No operand predicates
6092 /* 2847 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner0),
6093 /* 2851 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6094 /* 2853 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
6095 /* 2856 */ // Combiner Rule #9: AMinusBMinusC
6096 /* 2856 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
6097 /* 2859 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
6098 /* 2864 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // C
6099 /* 2868 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // B
6100 /* 2872 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ADD),
6101 /* 2876 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // root
6102 /* 2880 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/1, // A
6103 /* 2884 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
6104 /* 2887 */ GIR_EraseRootFromParent_Done,
6105 /* 2888 */ // Label 157: @2888
6106 /* 2888 */ GIM_Try, /*On fail goto*//*Label 158*/ GIMT_Encode4(2921), // Rule ID 377 //
6107 /* 2893 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule247Enabled),
6108 /* 2896 */ // MIs[0] dst
6109 /* 2896 */ // No operand predicates
6110 /* 2896 */ // MIs[0] sum
6111 /* 2896 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6112 /* 2900 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
6113 /* 2904 */ // MIs[1] x
6114 /* 2904 */ // No operand predicates
6115 /* 2904 */ // MIs[1] y
6116 /* 2904 */ // No operand predicates
6117 /* 2904 */ // MIs[0] z
6118 /* 2904 */ // No operand predicates
6119 /* 2904 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner46),
6120 /* 2908 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
6121 /* 2913 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6122 /* 2915 */ // Combiner Rule #247: sub_add_reg_rhs
6123 /* 2915 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
6124 /* 2920 */ GIR_EraseRootFromParent_Done,
6125 /* 2921 */ // Label 158: @2921
6126 /* 2921 */ GIM_Try, /*On fail goto*//*Label 159*/ GIMT_Encode4(2954), // Rule ID 378 //
6127 /* 2926 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule248Enabled),
6128 /* 2929 */ // MIs[0] dst
6129 /* 2929 */ // No operand predicates
6130 /* 2929 */ // MIs[0] sum
6131 /* 2929 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6132 /* 2933 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
6133 /* 2937 */ // MIs[1] x
6134 /* 2937 */ // No operand predicates
6135 /* 2937 */ // MIs[1] y
6136 /* 2937 */ // No operand predicates
6137 /* 2937 */ // MIs[0] z
6138 /* 2937 */ // No operand predicates
6139 /* 2937 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner47),
6140 /* 2941 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/2,
6141 /* 2946 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6142 /* 2948 */ // Combiner Rule #248: sub_add_reg_lhs
6143 /* 2948 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/2,
6144 /* 2953 */ GIR_EraseRootFromParent_Done,
6145 /* 2954 */ // Label 159: @2954
6146 /* 2954 */ GIM_Try, /*On fail goto*//*Label 160*/ GIMT_Encode4(2997), // Rule ID 182 //
6147 /* 2959 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule132Enabled),
6148 /* 2962 */ // MIs[0] dst
6149 /* 2962 */ // No operand predicates
6150 /* 2962 */ // MIs[0] Operand 1
6151 /* 2962 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/1, 0,
6152 /* 2966 */ // MIs[0] and
6153 /* 2966 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
6154 /* 2970 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_AND),
6155 /* 2974 */ // MIs[1] x
6156 /* 2974 */ // No operand predicates
6157 /* 2974 */ // MIs[1] Operand 2
6158 /* 2974 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/2, 1,
6159 /* 2978 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner25),
6160 /* 2982 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6161 /* 2984 */ // Combiner Rule #132: neg_and_one_to_sext_inreg
6162 /* 2984 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SEXT_INREG),
6163 /* 2987 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
6164 /* 2989 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
6165 /* 2993 */ GIR_AddImm8, /*InsnID*/0, /*Imm*/1,
6166 /* 2996 */ GIR_EraseRootFromParent_Done,
6167 /* 2997 */ // Label 160: @2997
6168 /* 2997 */ GIM_Try, /*On fail goto*//*Label 161*/ GIMT_Encode4(3024), // Rule ID 49 //
6169 /* 3002 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule45Enabled),
6170 /* 3005 */ GIM_MIFlags, /*MI*/0, GIMT_Encode4(MachineInstr::NoSWrap),
6171 /* 3011 */ // MIs[0] root
6172 /* 3011 */ // No operand predicates
6173 /* 3011 */ // MIs[0] x
6174 /* 3011 */ // No operand predicates
6175 /* 3011 */ // MIs[0] right
6176 /* 3011 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
6177 /* 3015 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_VSCALE),
6178 /* 3019 */ // MIs[1] imm
6179 /* 3019 */ // No operand predicates
6180 /* 3019 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6181 /* 3021 */ // Combiner Rule #45: sub_of_vscale
6182 /* 3021 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner15),
6183 /* 3024 */ // Label 161: @3024
6184 /* 3024 */ GIM_Try, /*On fail goto*//*Label 162*/ GIMT_Encode4(3164),
6185 /* 3029 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
6186 /* 3033 */ GIM_Try, /*On fail goto*//*Label 163*/ GIMT_Encode4(3069), // Rule ID 462 //
6187 /* 3038 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule329Enabled),
6188 /* 3041 */ // MIs[0] Operand 1
6189 /* 3041 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/1, 255,
6190 /* 3045 */ // MIs[0] op1
6191 /* 3045 */ // No operand predicates
6192 /* 3045 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
6193 /* 3048 */ GIR_BuildConstant, /*TempRegID*/0, /*Val*/GIMT_Encode8(18446744073709551615u),
6194 /* 3058 */ // Combiner Rule #329: sub_minus_one
6195 /* 3058 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_XOR),
6196 /* 3061 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
6197 /* 3063 */ GIR_RootToRootCopy, /*OpIdx*/2, // op1
6198 /* 3065 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/0,
6199 /* 3068 */ GIR_EraseRootFromParent_Done,
6200 /* 3069 */ // Label 163: @3069
6201 /* 3069 */ GIM_Try, /*On fail goto*//*Label 164*/ GIMT_Encode4(3163), // Rule ID 463 //
6202 /* 3074 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule330Enabled),
6203 /* 3077 */ // MIs[0] a
6204 /* 3077 */ // No operand predicates
6205 /* 3077 */ // MIs[0] mul
6206 /* 3077 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
6207 /* 3081 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_MUL),
6208 /* 3085 */ GIM_CheckHasOneUse, /*MI*/1,
6209 /* 3087 */ // MIs[1] x
6210 /* 3087 */ // No operand predicates
6211 /* 3087 */ // MIs[1] c
6212 /* 3087 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
6213 /* 3091 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
6214 /* 3095 */ // MIs[2] imm
6215 /* 3095 */ // No operand predicates
6216 /* 3095 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
6217 /* 3097 */ GIR_MakeTempReg, /*TempRegID*/2, /*TypeID*/255,
6218 /* 3100 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
6219 /* 3103 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(0),
6220 /* 3113 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
6221 /* 3116 */ // Combiner Rule #330: sub_of_mul_const
6222 /* 3116 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
6223 /* 3119 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
6224 /* 3124 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/1,
6225 /* 3127 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // c
6226 /* 3131 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_MUL),
6227 /* 3135 */ GIR_AddTempRegister, /*InsnID*/1, /*TempRegID*/2, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
6228 /* 3140 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // x
6229 /* 3144 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
6230 /* 3147 */ GIR_BuildMI, /*InsnID*/2, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ADD),
6231 /* 3151 */ GIR_Copy, /*NewInsnID*/2, /*OldInsnID*/0, /*OpIdx*/0, // d
6232 /* 3155 */ GIR_Copy, /*NewInsnID*/2, /*OldInsnID*/0, /*OpIdx*/1, // a
6233 /* 3159 */ GIR_AddSimpleTempRegister, /*InsnID*/2, /*TempRegID*/2,
6234 /* 3162 */ GIR_EraseRootFromParent_Done,
6235 /* 3163 */ // Label 164: @3163
6236 /* 3163 */ GIM_Reject,
6237 /* 3164 */ // Label 162: @3164
6238 /* 3164 */ GIM_Try, /*On fail goto*//*Label 165*/ GIMT_Encode4(3209), // Rule ID 0 //
6239 /* 3169 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule0Enabled),
6240 /* 3172 */ // MIs[0] root
6241 /* 3172 */ // No operand predicates
6242 /* 3172 */ // MIs[0] add1
6243 /* 3172 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6244 /* 3176 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
6245 /* 3180 */ // MIs[1] A
6246 /* 3180 */ // No operand predicates
6247 /* 3180 */ // MIs[1] sub1
6248 /* 3180 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
6249 /* 3184 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB),
6250 /* 3188 */ // MIs[2] B
6251 /* 3188 */ // No operand predicates
6252 /* 3188 */ // MIs[2] C
6253 /* 3188 */ // No operand predicates
6254 /* 3188 */ // MIs[0] B
6255 /* 3188 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/2, /*OtherOpIdx*/1,
6256 /* 3193 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
6257 /* 3195 */ // Combiner Rule #0: APlusBMinusCMinusB
6258 /* 3195 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
6259 /* 3198 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
6260 /* 3200 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // A
6261 /* 3204 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/2, // C
6262 /* 3208 */ GIR_EraseRootFromParent_Done,
6263 /* 3209 */ // Label 165: @3209
6264 /* 3209 */ GIM_Try, /*On fail goto*//*Label 166*/ GIMT_Encode4(3246), // Rule ID 14 //
6265 /* 3214 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule14Enabled),
6266 /* 3217 */ // MIs[0] root
6267 /* 3217 */ // No operand predicates
6268 /* 3217 */ // MIs[0] add
6269 /* 3217 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6270 /* 3221 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
6271 /* 3225 */ // MIs[1] A
6272 /* 3225 */ // No operand predicates
6273 /* 3225 */ // MIs[1] c1
6274 /* 3225 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
6275 /* 3229 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
6276 /* 3233 */ // MIs[2] imm1
6277 /* 3233 */ // No operand predicates
6278 /* 3233 */ // MIs[0] c2
6279 /* 3233 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/0, /*OpIdx*/2, // MIs[3]
6280 /* 3237 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
6281 /* 3241 */ // MIs[3] imm2
6282 /* 3241 */ // No operand predicates
6283 /* 3241 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
6284 /* 3243 */ // Combiner Rule #14: APlusC1MinusC2
6285 /* 3243 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner0),
6286 /* 3246 */ // Label 166: @3246
6287 /* 3246 */ GIM_Try, /*On fail goto*//*Label 167*/ GIMT_Encode4(3283), // Rule ID 17 //
6288 /* 3251 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule17Enabled),
6289 /* 3254 */ // MIs[0] root
6290 /* 3254 */ // No operand predicates
6291 /* 3254 */ // MIs[0] sub1
6292 /* 3254 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6293 /* 3258 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
6294 /* 3262 */ // MIs[1] c1
6295 /* 3262 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
6296 /* 3266 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
6297 /* 3270 */ // MIs[2] imm1
6298 /* 3270 */ // No operand predicates
6299 /* 3270 */ // MIs[1] A
6300 /* 3270 */ // No operand predicates
6301 /* 3270 */ // MIs[0] c2
6302 /* 3270 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/0, /*OpIdx*/2, // MIs[3]
6303 /* 3274 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
6304 /* 3278 */ // MIs[3] imm2
6305 /* 3278 */ // No operand predicates
6306 /* 3278 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
6307 /* 3280 */ // Combiner Rule #17: C1Minus2MinusC2
6308 /* 3280 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner3),
6309 /* 3283 */ // Label 167: @3283
6310 /* 3283 */ GIM_Try, /*On fail goto*//*Label 168*/ GIMT_Encode4(3328), // Rule ID 1 //
6311 /* 3288 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule1Enabled),
6312 /* 3291 */ // MIs[0] root
6313 /* 3291 */ // No operand predicates
6314 /* 3291 */ // MIs[0] sub2
6315 /* 3291 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6316 /* 3295 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
6317 /* 3299 */ // MIs[1] A
6318 /* 3299 */ // No operand predicates
6319 /* 3299 */ // MIs[1] sub1
6320 /* 3299 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
6321 /* 3303 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB),
6322 /* 3307 */ // MIs[2] B
6323 /* 3307 */ // No operand predicates
6324 /* 3307 */ // MIs[2] C
6325 /* 3307 */ // No operand predicates
6326 /* 3307 */ // MIs[0] C
6327 /* 3307 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/2, /*OtherOpIdx*/2,
6328 /* 3312 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
6329 /* 3314 */ // Combiner Rule #1: AMinusBMinusCMinusC
6330 /* 3314 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
6331 /* 3317 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
6332 /* 3319 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // A
6333 /* 3323 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // B
6334 /* 3327 */ GIR_EraseRootFromParent_Done,
6335 /* 3328 */ // Label 168: @3328
6336 /* 3328 */ GIM_Try, /*On fail goto*//*Label 169*/ GIMT_Encode4(3365), // Rule ID 16 //
6337 /* 3333 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule16Enabled),
6338 /* 3336 */ // MIs[0] root
6339 /* 3336 */ // No operand predicates
6340 /* 3336 */ // MIs[0] sub1
6341 /* 3336 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6342 /* 3340 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
6343 /* 3344 */ // MIs[1] A
6344 /* 3344 */ // No operand predicates
6345 /* 3344 */ // MIs[1] c1
6346 /* 3344 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
6347 /* 3348 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
6348 /* 3352 */ // MIs[2] imm1
6349 /* 3352 */ // No operand predicates
6350 /* 3352 */ // MIs[0] c2
6351 /* 3352 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/0, /*OpIdx*/2, // MIs[3]
6352 /* 3356 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
6353 /* 3360 */ // MIs[3] imm2
6354 /* 3360 */ // No operand predicates
6355 /* 3360 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
6356 /* 3362 */ // Combiner Rule #16: AMinusC1MinusC2
6357 /* 3362 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner2),
6358 /* 3365 */ // Label 169: @3365
6359 /* 3365 */ GIM_Try, /*On fail goto*//*Label 170*/ GIMT_Encode4(3394), // Rule ID 485 //
6360 /* 3370 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule349Enabled),
6361 /* 3373 */ // MIs[0] dst
6362 /* 3373 */ // No operand predicates
6363 /* 3373 */ // MIs[0] ext1
6364 /* 3373 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6365 /* 3377 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SEXT),
6366 /* 3381 */ // MIs[1] src1
6367 /* 3381 */ // No operand predicates
6368 /* 3381 */ // MIs[0] ext2
6369 /* 3381 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
6370 /* 3385 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SEXT),
6371 /* 3389 */ // MIs[2] src2
6372 /* 3389 */ // No operand predicates
6373 /* 3389 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
6374 /* 3391 */ // Combiner Rule #349: push_sub_through_sext
6375 /* 3391 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner134),
6376 /* 3394 */ // Label 170: @3394
6377 /* 3394 */ GIM_Try, /*On fail goto*//*Label 171*/ GIMT_Encode4(3423), // Rule ID 482 //
6378 /* 3399 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule346Enabled),
6379 /* 3402 */ // MIs[0] dst
6380 /* 3402 */ // No operand predicates
6381 /* 3402 */ // MIs[0] ext1
6382 /* 3402 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6383 /* 3406 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ZEXT),
6384 /* 3410 */ // MIs[1] src1
6385 /* 3410 */ // No operand predicates
6386 /* 3410 */ // MIs[0] ext2
6387 /* 3410 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
6388 /* 3414 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ZEXT),
6389 /* 3418 */ // MIs[2] src2
6390 /* 3418 */ // No operand predicates
6391 /* 3418 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
6392 /* 3420 */ // Combiner Rule #346: push_sub_through_zext
6393 /* 3420 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner134),
6394 /* 3423 */ // Label 171: @3423
6395 /* 3423 */ GIM_Try, /*On fail goto*//*Label 172*/ GIMT_Encode4(3447), // Rule ID 106 //
6396 /* 3428 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule84Enabled),
6397 /* 3431 */ // MIs[0] dst
6398 /* 3431 */ // No operand predicates
6399 /* 3431 */ // MIs[0] __propagate_undef_any_op_match_0.x
6400 /* 3431 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6401 /* 3435 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
6402 /* 3439 */ // MIs[0] __propagate_undef_any_op_match_0.y
6403 /* 3439 */ // No operand predicates
6404 /* 3439 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6405 /* 3441 */ // Combiner Rule #84: propagate_undef_any_op @ [__propagate_undef_any_op_match_0[1]]
6406 /* 3441 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
6407 /* 3444 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
6408 /* 3446 */ GIR_EraseRootFromParent_Done,
6409 /* 3447 */ // Label 172: @3447
6410 /* 3447 */ GIM_Try, /*On fail goto*//*Label 173*/ GIMT_Encode4(3484), // Rule ID 15 //
6411 /* 3452 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule15Enabled),
6412 /* 3455 */ // MIs[0] root
6413 /* 3455 */ // No operand predicates
6414 /* 3455 */ // MIs[0] c2
6415 /* 3455 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6416 /* 3459 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
6417 /* 3463 */ // MIs[1] imm2
6418 /* 3463 */ // No operand predicates
6419 /* 3463 */ // MIs[0] add
6420 /* 3463 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
6421 /* 3467 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ADD),
6422 /* 3471 */ // MIs[2] A
6423 /* 3471 */ // No operand predicates
6424 /* 3471 */ // MIs[2] c1
6425 /* 3471 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/2, /*OpIdx*/2, // MIs[3]
6426 /* 3475 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
6427 /* 3479 */ // MIs[3] imm1
6428 /* 3479 */ // No operand predicates
6429 /* 3479 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
6430 /* 3481 */ // Combiner Rule #15: C2MinusAPlusC1
6431 /* 3481 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner1),
6432 /* 3484 */ // Label 173: @3484
6433 /* 3484 */ GIM_Try, /*On fail goto*//*Label 174*/ GIMT_Encode4(3523), // Rule ID 131 //
6434 /* 3489 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule95Enabled),
6435 /* 3492 */ // MIs[0] dst
6436 /* 3492 */ // No operand predicates
6437 /* 3492 */ // MIs[0] x
6438 /* 3492 */ GIM_RecordRegType, /*MI*/0, /*Op*/1, /*TempTypeIdx*/255,
6439 /* 3496 */ // MIs[0] x
6440 /* 3496 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
6441 /* 3501 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
6442 /* 3504 */ GIR_BuildConstant, /*TempRegID*/0, /*Val*/GIMT_Encode8(0),
6443 /* 3514 */ // Combiner Rule #95: same_val_zero @ [__same_val_zero_match_0[0]]
6444 /* 3514 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::COPY),
6445 /* 3517 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
6446 /* 3519 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/0,
6447 /* 3522 */ GIR_EraseRootFromParent_Done,
6448 /* 3523 */ // Label 174: @3523
6449 /* 3523 */ GIM_Try, /*On fail goto*//*Label 175*/ GIMT_Encode4(3557), // Rule ID 12 //
6450 /* 3528 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule12Enabled),
6451 /* 3531 */ // MIs[0] root
6452 /* 3531 */ // No operand predicates
6453 /* 3531 */ // MIs[0] A
6454 /* 3531 */ // No operand predicates
6455 /* 3531 */ // MIs[0] add
6456 /* 3531 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
6457 /* 3535 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
6458 /* 3539 */ // MIs[1] A
6459 /* 3539 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/1, /*OpIdx*/1, /*OtherMI*/0, /*OtherOpIdx*/1,
6460 /* 3544 */ // MIs[1] B
6461 /* 3544 */ // No operand predicates
6462 /* 3544 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/2,
6463 /* 3549 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6464 /* 3551 */ // Combiner Rule #12: AMinusBMinusA
6465 /* 3551 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/2,
6466 /* 3556 */ GIR_EraseRootFromParent_Done,
6467 /* 3557 */ // Label 175: @3557
6468 /* 3557 */ GIM_Try, /*On fail goto*//*Label 176*/ GIMT_Encode4(3591), // Rule ID 11 //
6469 /* 3562 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule11Enabled),
6470 /* 3565 */ // MIs[0] root
6471 /* 3565 */ // No operand predicates
6472 /* 3565 */ // MIs[0] A
6473 /* 3565 */ // No operand predicates
6474 /* 3565 */ // MIs[0] sub1
6475 /* 3565 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
6476 /* 3569 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
6477 /* 3573 */ // MIs[1] Operand 1
6478 /* 3573 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/1, 0,
6479 /* 3577 */ // MIs[1] B
6480 /* 3577 */ // No operand predicates
6481 /* 3577 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6482 /* 3579 */ // Combiner Rule #11: AMinusZeroMinusB
6483 /* 3579 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ADD),
6484 /* 3582 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
6485 /* 3584 */ GIR_RootToRootCopy, /*OpIdx*/1, // A
6486 /* 3586 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // B
6487 /* 3590 */ GIR_EraseRootFromParent_Done,
6488 /* 3591 */ // Label 176: @3591
6489 /* 3591 */ GIM_Try, /*On fail goto*//*Label 177*/ GIMT_Encode4(3615), // Rule ID 109 //
6490 /* 3596 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule84Enabled),
6491 /* 3599 */ // MIs[0] dst
6492 /* 3599 */ // No operand predicates
6493 /* 3599 */ // MIs[0] __propagate_undef_any_op_match_0.x
6494 /* 3599 */ // No operand predicates
6495 /* 3599 */ // MIs[0] __propagate_undef_any_op_match_0.y
6496 /* 3599 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
6497 /* 3603 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
6498 /* 3607 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6499 /* 3609 */ // Combiner Rule #84: propagate_undef_any_op @ [__propagate_undef_any_op_match_0[4]]
6500 /* 3609 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
6501 /* 3612 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
6502 /* 3614 */ GIR_EraseRootFromParent_Done,
6503 /* 3615 */ // Label 177: @3615
6504 /* 3615 */ GIM_Try, /*On fail goto*//*Label 178*/ GIMT_Encode4(3638), // Rule ID 119 //
6505 /* 3620 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
6506 /* 3623 */ // MIs[0] dst
6507 /* 3623 */ // No operand predicates
6508 /* 3623 */ // MIs[0] lhs
6509 /* 3623 */ // No operand predicates
6510 /* 3623 */ // MIs[0] Operand 2
6511 /* 3623 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
6512 /* 3627 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6513 /* 3632 */ // Combiner Rule #93: right_identity_zero @ [__right_identity_zero_match_0[0]]
6514 /* 3632 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6515 /* 3637 */ GIR_EraseRootFromParent_Done,
6516 /* 3638 */ // Label 178: @3638
6517 /* 3638 */ GIM_Try, /*On fail goto*//*Label 179*/ GIMT_Encode4(3659), // Rule ID 21 //
6518 /* 3643 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule21Enabled),
6519 /* 3646 */ // MIs[0] d
6520 /* 3646 */ // No operand predicates
6521 /* 3646 */ // MIs[0] op1
6522 /* 3646 */ // No operand predicates
6523 /* 3646 */ // MIs[0] c
6524 /* 3646 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
6525 /* 3650 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
6526 /* 3654 */ // MIs[1] imm
6527 /* 3654 */ // No operand predicates
6528 /* 3654 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6529 /* 3656 */ // Combiner Rule #21: sub_to_add
6530 /* 3656 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner7),
6531 /* 3659 */ // Label 179: @3659
6532 /* 3659 */ GIM_Try, /*On fail goto*//*Label 180*/ GIMT_Encode4(3670), // Rule ID 289 //
6533 /* 3664 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule213Enabled),
6534 /* 3667 */ // MIs[0] d
6535 /* 3667 */ // No operand predicates
6536 /* 3667 */ // MIs[0] mi.src0
6537 /* 3667 */ // No operand predicates
6538 /* 3667 */ // MIs[0] mi.src1
6539 /* 3667 */ // No operand predicates
6540 /* 3667 */ // Combiner Rule #213: constant_fold_binop @ [mi[8]]
6541 /* 3667 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner79),
6542 /* 3670 */ // Label 180: @3670
6543 /* 3670 */ GIM_Try, /*On fail goto*//*Label 181*/ GIMT_Encode4(3681), // Rule ID 343 //
6544 /* 3675 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule236Enabled),
6545 /* 3678 */ // MIs[0] root
6546 /* 3678 */ // No operand predicates
6547 /* 3678 */ // MIs[0] mi.x
6548 /* 3678 */ // No operand predicates
6549 /* 3678 */ // MIs[0] mi.y
6550 /* 3678 */ // No operand predicates
6551 /* 3678 */ // Combiner Rule #236: fold_binop_into_select_a @ [mi[1]]
6552 /* 3678 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
6553 /* 3681 */ // Label 181: @3681
6554 /* 3681 */ GIM_Try, /*On fail goto*//*Label 182*/ GIMT_Encode4(3692), // Rule ID 420 //
6555 /* 3686 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule290Enabled),
6556 /* 3689 */ // MIs[0] dst
6557 /* 3689 */ // No operand predicates
6558 /* 3689 */ // MIs[0] src1
6559 /* 3689 */ // No operand predicates
6560 /* 3689 */ // MIs[0] src2
6561 /* 3689 */ // No operand predicates
6562 /* 3689 */ // Combiner Rule #290: simplify_neg_minmax
6563 /* 3689 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner105),
6564 /* 3692 */ // Label 182: @3692
6565 /* 3692 */ GIM_Reject,
6566 /* 3693 */ // Label 3: @3693
6567 /* 3693 */ GIM_Try, /*On fail goto*//*Label 183*/ GIMT_Encode4(3754), // Rule ID 50 //
6568 /* 3698 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule46Enabled),
6569 /* 3701 */ // MIs[0] dst
6570 /* 3701 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
6571 /* 3705 */ // MIs[0] x
6572 /* 3705 */ // No operand predicates
6573 /* 3705 */ // MIs[0] mask
6574 /* 3705 */ // No operand predicates
6575 /* 3705 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner6),
6576 /* 3709 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
6577 /* 3712 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(0),
6578 /* 3722 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
6579 /* 3725 */ // Combiner Rule #46: mul_by_zero_one_vector
6580 /* 3725 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
6581 /* 3728 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
6582 /* 3733 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/1,
6583 /* 3736 */ GIR_RootToRootCopy, /*OpIdx*/2, // mask
6584 /* 3738 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_AND),
6585 /* 3742 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
6586 /* 3746 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/1, // x
6587 /* 3750 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
6588 /* 3753 */ GIR_EraseRootFromParent_Done,
6589 /* 3754 */ // Label 183: @3754
6590 /* 3754 */ GIM_Try, /*On fail goto*//*Label 184*/ GIMT_Encode4(3777), // Rule ID 140 //
6591 /* 3759 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule96Enabled),
6592 /* 3762 */ // MIs[0] dst
6593 /* 3762 */ // No operand predicates
6594 /* 3762 */ // MIs[0] zero
6595 /* 3762 */ // No operand predicates
6596 /* 3762 */ // MIs[0] rhs
6597 /* 3762 */ // No operand predicates
6598 /* 3762 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner13),
6599 /* 3766 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6600 /* 3771 */ // Combiner Rule #96: binop_left_to_zero @ [__binop_left_to_zero_match_0[7]]
6601 /* 3771 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6602 /* 3776 */ GIR_EraseRootFromParent_Done,
6603 /* 3777 */ // Label 184: @3777
6604 /* 3777 */ GIM_Try, /*On fail goto*//*Label 185*/ GIMT_Encode4(3802), // Rule ID 384 //
6605 /* 3782 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule254Enabled),
6606 /* 3785 */ // MIs[0] dst
6607 /* 3785 */ // No operand predicates
6608 /* 3785 */ // MIs[0] lhs
6609 /* 3785 */ // No operand predicates
6610 /* 3785 */ // MIs[0] rhs
6611 /* 3785 */ // No operand predicates
6612 /* 3785 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner51),
6613 /* 3789 */ // Combiner Rule #254: G_MUL_commute_constant_to_rhs
6614 /* 3789 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_MUL),
6615 /* 3792 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
6616 /* 3794 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
6617 /* 3796 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
6618 /* 3798 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
6619 /* 3801 */ GIR_EraseRootFromParent_Done,
6620 /* 3802 */ // Label 185: @3802
6621 /* 3802 */ GIM_Try, /*On fail goto*//*Label 186*/ GIMT_Encode4(3837), // Rule ID 47 //
6622 /* 3807 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule43Enabled),
6623 /* 3810 */ GIM_MIFlags, /*MI*/0, GIMT_Encode4(MachineInstr::NoSWrap),
6624 /* 3816 */ // MIs[0] root
6625 /* 3816 */ // No operand predicates
6626 /* 3816 */ // MIs[0] left
6627 /* 3816 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6628 /* 3820 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_VSCALE),
6629 /* 3824 */ // MIs[1] scale
6630 /* 3824 */ // No operand predicates
6631 /* 3824 */ // MIs[0] x
6632 /* 3824 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
6633 /* 3828 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
6634 /* 3832 */ // MIs[2] imm1
6635 /* 3832 */ // No operand predicates
6636 /* 3832 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
6637 /* 3834 */ // Combiner Rule #43: mul_of_vscale
6638 /* 3834 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner13),
6639 /* 3837 */ // Label 186: @3837
6640 /* 3837 */ GIM_Try, /*On fail goto*//*Label 187*/ GIMT_Encode4(3877), // Rule ID 24 //
6641 /* 3842 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule23Enabled),
6642 /* 3845 */ // MIs[0] dst
6643 /* 3845 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
6644 /* 3849 */ // MIs[0] x
6645 /* 3849 */ // No operand predicates
6646 /* 3849 */ // MIs[0] Operand 2
6647 /* 3849 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 255,
6648 /* 3853 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
6649 /* 3856 */ GIR_BuildConstant, /*TempRegID*/0, /*Val*/GIMT_Encode8(0),
6650 /* 3866 */ // Combiner Rule #23: mul_by_neg_one
6651 /* 3866 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
6652 /* 3869 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
6653 /* 3871 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/0,
6654 /* 3874 */ GIR_RootToRootCopy, /*OpIdx*/1, // x
6655 /* 3876 */ GIR_EraseRootFromParent_Done,
6656 /* 3877 */ // Label 187: @3877
6657 /* 3877 */ GIM_Try, /*On fail goto*//*Label 188*/ GIMT_Encode4(3906), // Rule ID 487 //
6658 /* 3882 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule351Enabled),
6659 /* 3885 */ // MIs[0] dst
6660 /* 3885 */ // No operand predicates
6661 /* 3885 */ // MIs[0] ext1
6662 /* 3885 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6663 /* 3889 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SEXT),
6664 /* 3893 */ // MIs[1] src1
6665 /* 3893 */ // No operand predicates
6666 /* 3893 */ // MIs[0] ext2
6667 /* 3893 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
6668 /* 3897 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SEXT),
6669 /* 3901 */ // MIs[2] src2
6670 /* 3901 */ // No operand predicates
6671 /* 3901 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
6672 /* 3903 */ // Combiner Rule #351: push_mul_through_sext
6673 /* 3903 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner134),
6674 /* 3906 */ // Label 188: @3906
6675 /* 3906 */ GIM_Try, /*On fail goto*//*Label 189*/ GIMT_Encode4(3935), // Rule ID 484 //
6676 /* 3911 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule348Enabled),
6677 /* 3914 */ // MIs[0] dst
6678 /* 3914 */ // No operand predicates
6679 /* 3914 */ // MIs[0] ext1
6680 /* 3914 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6681 /* 3918 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ZEXT),
6682 /* 3922 */ // MIs[1] src1
6683 /* 3922 */ // No operand predicates
6684 /* 3922 */ // MIs[0] ext2
6685 /* 3922 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
6686 /* 3926 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ZEXT),
6687 /* 3930 */ // MIs[2] src2
6688 /* 3930 */ // No operand predicates
6689 /* 3930 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
6690 /* 3932 */ // Combiner Rule #348: push_mul_through_zext
6691 /* 3932 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner134),
6692 /* 3935 */ // Label 189: @3935
6693 /* 3935 */ GIM_Try, /*On fail goto*//*Label 190*/ GIMT_Encode4(3956), // Rule ID 86 //
6694 /* 3940 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule78Enabled),
6695 /* 3943 */ // MIs[0] dst
6696 /* 3943 */ // No operand predicates
6697 /* 3943 */ // MIs[0] __undef_to_int_zero_match_0.x
6698 /* 3943 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6699 /* 3947 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
6700 /* 3951 */ // MIs[0] __undef_to_int_zero_match_0.y
6701 /* 3951 */ // No operand predicates
6702 /* 3951 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6703 /* 3953 */ // Combiner Rule #78: undef_to_int_zero @ [__undef_to_int_zero_match_0[1]]
6704 /* 3953 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner31),
6705 /* 3956 */ // Label 190: @3956
6706 /* 3956 */ GIM_Try, /*On fail goto*//*Label 191*/ GIMT_Encode4(3977), // Rule ID 88 //
6707 /* 3961 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule78Enabled),
6708 /* 3964 */ // MIs[0] dst
6709 /* 3964 */ // No operand predicates
6710 /* 3964 */ // MIs[0] __undef_to_int_zero_match_0.x
6711 /* 3964 */ // No operand predicates
6712 /* 3964 */ // MIs[0] __undef_to_int_zero_match_0.y
6713 /* 3964 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
6714 /* 3968 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
6715 /* 3972 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6716 /* 3974 */ // Combiner Rule #78: undef_to_int_zero @ [__undef_to_int_zero_match_0[3]]
6717 /* 3974 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner31),
6718 /* 3977 */ // Label 191: @3977
6719 /* 3977 */ GIM_Try, /*On fail goto*//*Label 192*/ GIMT_Encode4(4000), // Rule ID 141 //
6720 /* 3982 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule97Enabled),
6721 /* 3985 */ // MIs[0] dst
6722 /* 3985 */ // No operand predicates
6723 /* 3985 */ // MIs[0] lhs
6724 /* 3985 */ // No operand predicates
6725 /* 3985 */ // MIs[0] zero
6726 /* 3985 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
6727 /* 3989 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
6728 /* 3994 */ // Combiner Rule #97: binop_right_to_zero
6729 /* 3994 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
6730 /* 3999 */ GIR_EraseRootFromParent_Done,
6731 /* 4000 */ // Label 192: @4000
6732 /* 4000 */ GIM_Try, /*On fail goto*//*Label 193*/ GIMT_Encode4(4023), // Rule ID 148 //
6733 /* 4005 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule104Enabled),
6734 /* 4008 */ // MIs[0] dst
6735 /* 4008 */ // No operand predicates
6736 /* 4008 */ // MIs[0] x
6737 /* 4008 */ // No operand predicates
6738 /* 4008 */ // MIs[0] Operand 2
6739 /* 4008 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 1,
6740 /* 4012 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6741 /* 4017 */ // Combiner Rule #104: right_identity_one_int
6742 /* 4017 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6743 /* 4022 */ GIR_EraseRootFromParent_Done,
6744 /* 4023 */ // Label 193: @4023
6745 /* 4023 */ GIM_Try, /*On fail goto*//*Label 194*/ GIMT_Encode4(4034), // Rule ID 20 //
6746 /* 4028 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule20Enabled),
6747 /* 4031 */ // MIs[0] d
6748 /* 4031 */ // No operand predicates
6749 /* 4031 */ // MIs[0] op1
6750 /* 4031 */ // No operand predicates
6751 /* 4031 */ // MIs[0] op2
6752 /* 4031 */ // No operand predicates
6753 /* 4031 */ // Combiner Rule #20: mul_to_shl
6754 /* 4031 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner6),
6755 /* 4034 */ // Label 194: @4034
6756 /* 4034 */ GIM_Try, /*On fail goto*//*Label 195*/ GIMT_Encode4(4045), // Rule ID 286 //
6757 /* 4039 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule213Enabled),
6758 /* 4042 */ // MIs[0] d
6759 /* 4042 */ // No operand predicates
6760 /* 4042 */ // MIs[0] mi.src0
6761 /* 4042 */ // No operand predicates
6762 /* 4042 */ // MIs[0] mi.src1
6763 /* 4042 */ // No operand predicates
6764 /* 4042 */ // Combiner Rule #213: constant_fold_binop @ [mi[5]]
6765 /* 4042 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner79),
6766 /* 4045 */ // Label 195: @4045
6767 /* 4045 */ GIM_Reject,
6768 /* 4046 */ // Label 4: @4046
6769 /* 4046 */ GIM_Try, /*On fail goto*//*Label 196*/ GIMT_Encode4(4069), // Rule ID 136 //
6770 /* 4051 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule96Enabled),
6771 /* 4054 */ // MIs[0] dst
6772 /* 4054 */ // No operand predicates
6773 /* 4054 */ // MIs[0] zero
6774 /* 4054 */ // No operand predicates
6775 /* 4054 */ // MIs[0] rhs
6776 /* 4054 */ // No operand predicates
6777 /* 4054 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner13),
6778 /* 4058 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6779 /* 4063 */ // Combiner Rule #96: binop_left_to_zero @ [__binop_left_to_zero_match_0[3]]
6780 /* 4063 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6781 /* 4068 */ GIR_EraseRootFromParent_Done,
6782 /* 4069 */ // Label 196: @4069
6783 /* 4069 */ GIM_Try, /*On fail goto*//*Label 197*/ GIMT_Encode4(4094), // Rule ID 205 //
6784 /* 4074 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule155Enabled),
6785 /* 4077 */ // MIs[0] dst
6786 /* 4077 */ // No operand predicates
6787 /* 4077 */ // MIs[0] x
6788 /* 4077 */ // No operand predicates
6789 /* 4077 */ // MIs[0] y
6790 /* 4077 */ // No operand predicates
6791 /* 4077 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner31),
6792 /* 4081 */ // Combiner Rule #155: sdiv_to_unsigned
6793 /* 4081 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UDIV),
6794 /* 4084 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
6795 /* 4086 */ GIR_RootToRootCopy, /*OpIdx*/1, // x
6796 /* 4088 */ GIR_RootToRootCopy, /*OpIdx*/2, // y
6797 /* 4090 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
6798 /* 4093 */ GIR_EraseRootFromParent_Done,
6799 /* 4094 */ // Label 197: @4094
6800 /* 4094 */ GIM_Try, /*On fail goto*//*Label 198*/ GIMT_Encode4(4111), // Rule ID 373 //
6801 /* 4099 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule243Enabled),
6802 /* 4102 */ GIM_MIFlagsNot, /*MI*/0, GIMT_Encode4(MachineInstr::IsExact),
6803 /* 4108 */ // MIs[0] dst
6804 /* 4108 */ // No operand predicates
6805 /* 4108 */ // MIs[0] x
6806 /* 4108 */ // No operand predicates
6807 /* 4108 */ // MIs[0] y
6808 /* 4108 */ // No operand predicates
6809 /* 4108 */ // Combiner Rule #243: sdiv_by_pow2
6810 /* 4108 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner100),
6811 /* 4111 */ // Label 198: @4111
6812 /* 4111 */ GIM_Try, /*On fail goto*//*Label 199*/ GIMT_Encode4(4122), // Rule ID 256 //
6813 /* 4116 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule196Enabled),
6814 /* 4119 */ // MIs[0] root
6815 /* 4119 */ // No operand predicates
6816 /* 4119 */ // MIs[0] mi.x
6817 /* 4119 */ // No operand predicates
6818 /* 4119 */ // MIs[0] mi.y
6819 /* 4119 */ // No operand predicates
6820 /* 4119 */ // Combiner Rule #196: div_rem_to_divrem @ [mi[0]]
6821 /* 4119 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner72),
6822 /* 4122 */ // Label 199: @4122
6823 /* 4122 */ GIM_Try, /*On fail goto*//*Label 200*/ GIMT_Encode4(4133), // Rule ID 292 //
6824 /* 4127 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule213Enabled),
6825 /* 4130 */ // MIs[0] d
6826 /* 4130 */ // No operand predicates
6827 /* 4130 */ // MIs[0] mi.src0
6828 /* 4130 */ // No operand predicates
6829 /* 4130 */ // MIs[0] mi.src1
6830 /* 4130 */ // No operand predicates
6831 /* 4130 */ // Combiner Rule #213: constant_fold_binop @ [mi[11]]
6832 /* 4130 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner79),
6833 /* 4133 */ // Label 200: @4133
6834 /* 4133 */ GIM_Try, /*On fail goto*//*Label 201*/ GIMT_Encode4(4144), // Rule ID 348 //
6835 /* 4138 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule236Enabled),
6836 /* 4141 */ // MIs[0] root
6837 /* 4141 */ // No operand predicates
6838 /* 4141 */ // MIs[0] mi.x
6839 /* 4141 */ // No operand predicates
6840 /* 4141 */ // MIs[0] mi.y
6841 /* 4141 */ // No operand predicates
6842 /* 4141 */ // Combiner Rule #236: fold_binop_into_select_a @ [mi[6]]
6843 /* 4141 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
6844 /* 4144 */ // Label 201: @4144
6845 /* 4144 */ GIM_Try, /*On fail goto*//*Label 202*/ GIMT_Encode4(4155), // Rule ID 375 //
6846 /* 4149 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule245Enabled),
6847 /* 4152 */ // MIs[0] dst
6848 /* 4152 */ // No operand predicates
6849 /* 4152 */ // MIs[0] x
6850 /* 4152 */ // No operand predicates
6851 /* 4152 */ // MIs[0] y
6852 /* 4152 */ // No operand predicates
6853 /* 4152 */ // Combiner Rule #245: sdiv_by_const
6854 /* 4152 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner97),
6855 /* 4155 */ // Label 202: @4155
6856 /* 4155 */ GIM_Reject,
6857 /* 4156 */ // Label 5: @4156
6858 /* 4156 */ GIM_Try, /*On fail goto*//*Label 203*/ GIMT_Encode4(4179), // Rule ID 137 //
6859 /* 4161 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule96Enabled),
6860 /* 4164 */ // MIs[0] dst
6861 /* 4164 */ // No operand predicates
6862 /* 4164 */ // MIs[0] zero
6863 /* 4164 */ // No operand predicates
6864 /* 4164 */ // MIs[0] rhs
6865 /* 4164 */ // No operand predicates
6866 /* 4164 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner13),
6867 /* 4168 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6868 /* 4173 */ // Combiner Rule #96: binop_left_to_zero @ [__binop_left_to_zero_match_0[4]]
6869 /* 4173 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6870 /* 4178 */ GIR_EraseRootFromParent_Done,
6871 /* 4179 */ // Label 203: @4179
6872 /* 4179 */ GIM_Try, /*On fail goto*//*Label 204*/ GIMT_Encode4(4196), // Rule ID 371 //
6873 /* 4184 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule241Enabled),
6874 /* 4187 */ GIM_MIFlagsNot, /*MI*/0, GIMT_Encode4(MachineInstr::IsExact),
6875 /* 4193 */ // MIs[0] dst
6876 /* 4193 */ // No operand predicates
6877 /* 4193 */ // MIs[0] x
6878 /* 4193 */ // No operand predicates
6879 /* 4193 */ // MIs[0] y
6880 /* 4193 */ // No operand predicates
6881 /* 4193 */ // Combiner Rule #241: udiv_by_pow2
6882 /* 4193 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner98),
6883 /* 4196 */ // Label 204: @4196
6884 /* 4196 */ GIM_Try, /*On fail goto*//*Label 205*/ GIMT_Encode4(4217), // Rule ID 92 //
6885 /* 4201 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule80Enabled),
6886 /* 4204 */ // MIs[0] dst
6887 /* 4204 */ // No operand predicates
6888 /* 4204 */ // MIs[0] __binop_left_undef_to_zero_match_0.x
6889 /* 4204 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6890 /* 4208 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
6891 /* 4212 */ // MIs[0] __binop_left_undef_to_zero_match_0.y
6892 /* 4212 */ // No operand predicates
6893 /* 4212 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6894 /* 4214 */ // Combiner Rule #80: binop_left_undef_to_zero @ [__binop_left_undef_to_zero_match_0[1]]
6895 /* 4214 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner31),
6896 /* 4217 */ // Label 205: @4217
6897 /* 4217 */ GIM_Try, /*On fail goto*//*Label 206*/ GIMT_Encode4(4228), // Rule ID 257 //
6898 /* 4222 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule196Enabled),
6899 /* 4225 */ // MIs[0] root
6900 /* 4225 */ // No operand predicates
6901 /* 4225 */ // MIs[0] mi.x
6902 /* 4225 */ // No operand predicates
6903 /* 4225 */ // MIs[0] mi.y
6904 /* 4225 */ // No operand predicates
6905 /* 4225 */ // Combiner Rule #196: div_rem_to_divrem @ [mi[1]]
6906 /* 4225 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner72),
6907 /* 4228 */ // Label 206: @4228
6908 /* 4228 */ GIM_Try, /*On fail goto*//*Label 207*/ GIMT_Encode4(4239), // Rule ID 291 //
6909 /* 4233 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule213Enabled),
6910 /* 4236 */ // MIs[0] d
6911 /* 4236 */ // No operand predicates
6912 /* 4236 */ // MIs[0] mi.src0
6913 /* 4236 */ // No operand predicates
6914 /* 4236 */ // MIs[0] mi.src1
6915 /* 4236 */ // No operand predicates
6916 /* 4236 */ // Combiner Rule #213: constant_fold_binop @ [mi[10]]
6917 /* 4236 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner79),
6918 /* 4239 */ // Label 207: @4239
6919 /* 4239 */ GIM_Try, /*On fail goto*//*Label 208*/ GIMT_Encode4(4250), // Rule ID 350 //
6920 /* 4244 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule236Enabled),
6921 /* 4247 */ // MIs[0] root
6922 /* 4247 */ // No operand predicates
6923 /* 4247 */ // MIs[0] mi.x
6924 /* 4247 */ // No operand predicates
6925 /* 4247 */ // MIs[0] mi.y
6926 /* 4247 */ // No operand predicates
6927 /* 4247 */ // Combiner Rule #236: fold_binop_into_select_a @ [mi[8]]
6928 /* 4247 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
6929 /* 4250 */ // Label 208: @4250
6930 /* 4250 */ GIM_Try, /*On fail goto*//*Label 209*/ GIMT_Encode4(4261), // Rule ID 372 //
6931 /* 4255 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule242Enabled),
6932 /* 4258 */ // MIs[0] dst
6933 /* 4258 */ // No operand predicates
6934 /* 4258 */ // MIs[0] x
6935 /* 4258 */ // No operand predicates
6936 /* 4258 */ // MIs[0] y
6937 /* 4258 */ // No operand predicates
6938 /* 4258 */ // Combiner Rule #242: udiv_by_shifted_pow2
6939 /* 4258 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner99),
6940 /* 4261 */ // Label 209: @4261
6941 /* 4261 */ GIM_Try, /*On fail goto*//*Label 210*/ GIMT_Encode4(4272), // Rule ID 374 //
6942 /* 4266 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule244Enabled),
6943 /* 4269 */ // MIs[0] dst
6944 /* 4269 */ // No operand predicates
6945 /* 4269 */ // MIs[0] x
6946 /* 4269 */ // No operand predicates
6947 /* 4269 */ // MIs[0] y
6948 /* 4269 */ // No operand predicates
6949 /* 4269 */ // Combiner Rule #244: udiv_by_const
6950 /* 4269 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner96),
6951 /* 4272 */ // Label 210: @4272
6952 /* 4272 */ GIM_Reject,
6953 /* 4273 */ // Label 6: @4273
6954 /* 4273 */ GIM_Try, /*On fail goto*//*Label 211*/ GIMT_Encode4(4296), // Rule ID 138 //
6955 /* 4278 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule96Enabled),
6956 /* 4281 */ // MIs[0] dst
6957 /* 4281 */ // No operand predicates
6958 /* 4281 */ // MIs[0] zero
6959 /* 4281 */ // No operand predicates
6960 /* 4281 */ // MIs[0] rhs
6961 /* 4281 */ // No operand predicates
6962 /* 4281 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner13),
6963 /* 4285 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6964 /* 4290 */ // Combiner Rule #96: binop_left_to_zero @ [__binop_left_to_zero_match_0[5]]
6965 /* 4290 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6966 /* 4295 */ GIR_EraseRootFromParent_Done,
6967 /* 4296 */ // Label 211: @4296
6968 /* 4296 */ GIM_Try, /*On fail goto*//*Label 212*/ GIMT_Encode4(4321), // Rule ID 206 //
6969 /* 4301 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule156Enabled),
6970 /* 4304 */ // MIs[0] dst
6971 /* 4304 */ // No operand predicates
6972 /* 4304 */ // MIs[0] x
6973 /* 4304 */ // No operand predicates
6974 /* 4304 */ // MIs[0] y
6975 /* 4304 */ // No operand predicates
6976 /* 4304 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner32),
6977 /* 4308 */ // Combiner Rule #156: srem_to_unsigned
6978 /* 4308 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UREM),
6979 /* 4311 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
6980 /* 4313 */ GIR_RootToRootCopy, /*OpIdx*/1, // x
6981 /* 4315 */ GIR_RootToRootCopy, /*OpIdx*/2, // y
6982 /* 4317 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
6983 /* 4320 */ GIR_EraseRootFromParent_Done,
6984 /* 4321 */ // Label 212: @4321
6985 /* 4321 */ GIM_Try, /*On fail goto*//*Label 213*/ GIMT_Encode4(4332), // Rule ID 258 //
6986 /* 4326 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule196Enabled),
6987 /* 4329 */ // MIs[0] root
6988 /* 4329 */ // No operand predicates
6989 /* 4329 */ // MIs[0] mi.x
6990 /* 4329 */ // No operand predicates
6991 /* 4329 */ // MIs[0] mi.y
6992 /* 4329 */ // No operand predicates
6993 /* 4329 */ // Combiner Rule #196: div_rem_to_divrem @ [mi[2]]
6994 /* 4329 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner72),
6995 /* 4332 */ // Label 213: @4332
6996 /* 4332 */ GIM_Try, /*On fail goto*//*Label 214*/ GIMT_Encode4(4343), // Rule ID 294 //
6997 /* 4337 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule213Enabled),
6998 /* 4340 */ // MIs[0] d
6999 /* 4340 */ // No operand predicates
7000 /* 4340 */ // MIs[0] mi.src0
7001 /* 4340 */ // No operand predicates
7002 /* 4340 */ // MIs[0] mi.src1
7003 /* 4340 */ // No operand predicates
7004 /* 4340 */ // Combiner Rule #213: constant_fold_binop @ [mi[13]]
7005 /* 4340 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner79),
7006 /* 4343 */ // Label 214: @4343
7007 /* 4343 */ GIM_Try, /*On fail goto*//*Label 215*/ GIMT_Encode4(4354), // Rule ID 349 //
7008 /* 4348 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule236Enabled),
7009 /* 4351 */ // MIs[0] root
7010 /* 4351 */ // No operand predicates
7011 /* 4351 */ // MIs[0] mi.x
7012 /* 4351 */ // No operand predicates
7013 /* 4351 */ // MIs[0] mi.y
7014 /* 4351 */ // No operand predicates
7015 /* 4351 */ // Combiner Rule #236: fold_binop_into_select_a @ [mi[7]]
7016 /* 4351 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
7017 /* 4354 */ // Label 215: @4354
7018 /* 4354 */ GIM_Try, /*On fail goto*//*Label 216*/ GIMT_Encode4(4365), // Rule ID 368 //
7019 /* 4359 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule238Enabled),
7020 /* 4362 */ // MIs[0] dst
7021 /* 4362 */ // No operand predicates
7022 /* 4362 */ // MIs[0] x
7023 /* 4362 */ // No operand predicates
7024 /* 4362 */ // MIs[0] y
7025 /* 4362 */ // No operand predicates
7026 /* 4362 */ // Combiner Rule #238: srem_pow2_to_mask
7027 /* 4362 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner95),
7028 /* 4365 */ // Label 216: @4365
7029 /* 4365 */ GIM_Try, /*On fail goto*//*Label 217*/ GIMT_Encode4(4376), // Rule ID 370 //
7030 /* 4370 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule240Enabled),
7031 /* 4373 */ // MIs[0] dst
7032 /* 4373 */ // No operand predicates
7033 /* 4373 */ // MIs[0] x
7034 /* 4373 */ // No operand predicates
7035 /* 4373 */ // MIs[0] y
7036 /* 4373 */ // No operand predicates
7037 /* 4373 */ // Combiner Rule #240: srem_by_const
7038 /* 4373 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner97),
7039 /* 4376 */ // Label 217: @4376
7040 /* 4376 */ GIM_Reject,
7041 /* 4377 */ // Label 7: @4377
7042 /* 4377 */ GIM_Try, /*On fail goto*//*Label 218*/ GIMT_Encode4(4400), // Rule ID 139 //
7043 /* 4382 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule96Enabled),
7044 /* 4385 */ // MIs[0] dst
7045 /* 4385 */ // No operand predicates
7046 /* 4385 */ // MIs[0] zero
7047 /* 4385 */ // No operand predicates
7048 /* 4385 */ // MIs[0] rhs
7049 /* 4385 */ // No operand predicates
7050 /* 4385 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner13),
7051 /* 4389 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7052 /* 4394 */ // Combiner Rule #96: binop_left_to_zero @ [__binop_left_to_zero_match_0[6]]
7053 /* 4394 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7054 /* 4399 */ GIR_EraseRootFromParent_Done,
7055 /* 4400 */ // Label 218: @4400
7056 /* 4400 */ GIM_Try, /*On fail goto*//*Label 219*/ GIMT_Encode4(4421), // Rule ID 93 //
7057 /* 4405 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule80Enabled),
7058 /* 4408 */ // MIs[0] dst
7059 /* 4408 */ // No operand predicates
7060 /* 4408 */ // MIs[0] __binop_left_undef_to_zero_match_0.x
7061 /* 4408 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7062 /* 4412 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
7063 /* 4416 */ // MIs[0] __binop_left_undef_to_zero_match_0.y
7064 /* 4416 */ // No operand predicates
7065 /* 4416 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7066 /* 4418 */ // Combiner Rule #80: binop_left_undef_to_zero @ [__binop_left_undef_to_zero_match_0[2]]
7067 /* 4418 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner31),
7068 /* 4421 */ // Label 219: @4421
7069 /* 4421 */ GIM_Try, /*On fail goto*//*Label 220*/ GIMT_Encode4(4432), // Rule ID 202 //
7070 /* 4426 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule152Enabled),
7071 /* 4429 */ // MIs[0] dst
7072 /* 4429 */ // No operand predicates
7073 /* 4429 */ // MIs[0] x
7074 /* 4429 */ // No operand predicates
7075 /* 4429 */ // MIs[0] y
7076 /* 4429 */ // No operand predicates
7077 /* 4429 */ // Combiner Rule #152: urem_pow2_to_mask
7078 /* 4429 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner57),
7079 /* 4432 */ // Label 220: @4432
7080 /* 4432 */ GIM_Try, /*On fail goto*//*Label 221*/ GIMT_Encode4(4443), // Rule ID 259 //
7081 /* 4437 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule196Enabled),
7082 /* 4440 */ // MIs[0] root
7083 /* 4440 */ // No operand predicates
7084 /* 4440 */ // MIs[0] mi.x
7085 /* 4440 */ // No operand predicates
7086 /* 4440 */ // MIs[0] mi.y
7087 /* 4440 */ // No operand predicates
7088 /* 4440 */ // Combiner Rule #196: div_rem_to_divrem @ [mi[3]]
7089 /* 4440 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner72),
7090 /* 4443 */ // Label 221: @4443
7091 /* 4443 */ GIM_Try, /*On fail goto*//*Label 222*/ GIMT_Encode4(4454), // Rule ID 293 //
7092 /* 4448 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule213Enabled),
7093 /* 4451 */ // MIs[0] d
7094 /* 4451 */ // No operand predicates
7095 /* 4451 */ // MIs[0] mi.src0
7096 /* 4451 */ // No operand predicates
7097 /* 4451 */ // MIs[0] mi.src1
7098 /* 4451 */ // No operand predicates
7099 /* 4451 */ // Combiner Rule #213: constant_fold_binop @ [mi[12]]
7100 /* 4451 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner79),
7101 /* 4454 */ // Label 222: @4454
7102 /* 4454 */ GIM_Try, /*On fail goto*//*Label 223*/ GIMT_Encode4(4465), // Rule ID 351 //
7103 /* 4459 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule236Enabled),
7104 /* 4462 */ // MIs[0] root
7105 /* 4462 */ // No operand predicates
7106 /* 4462 */ // MIs[0] mi.x
7107 /* 4462 */ // No operand predicates
7108 /* 4462 */ // MIs[0] mi.y
7109 /* 4462 */ // No operand predicates
7110 /* 4462 */ // Combiner Rule #236: fold_binop_into_select_a @ [mi[9]]
7111 /* 4462 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
7112 /* 4465 */ // Label 223: @4465
7113 /* 4465 */ GIM_Try, /*On fail goto*//*Label 224*/ GIMT_Encode4(4476), // Rule ID 369 //
7114 /* 4470 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule239Enabled),
7115 /* 4473 */ // MIs[0] dst
7116 /* 4473 */ // No operand predicates
7117 /* 4473 */ // MIs[0] x
7118 /* 4473 */ // No operand predicates
7119 /* 4473 */ // MIs[0] y
7120 /* 4473 */ // No operand predicates
7121 /* 4473 */ // Combiner Rule #239: urem_by_const
7122 /* 4473 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner96),
7123 /* 4476 */ // Label 224: @4476
7124 /* 4476 */ GIM_Reject,
7125 /* 4477 */ // Label 8: @4477
7126 /* 4477 */ GIM_Try, /*On fail goto*//*Label 225*/ GIMT_Encode4(4575), // Rule ID 178 //
7127 /* 4482 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule128Enabled),
7128 /* 4485 */ // MIs[0] root
7129 /* 4485 */ // No operand predicates
7130 /* 4485 */ // MIs[0] d1
7131 /* 4485 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7132 /* 4489 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ICMP),
7133 /* 4493 */ // MIs[1] p
7134 /* 4493 */ // No operand predicates
7135 /* 4493 */ // MIs[1] s1
7136 /* 4493 */ GIM_RecordRegType, /*MI*/1, /*Op*/2, /*TempTypeIdx*/255,
7137 /* 4497 */ // MIs[1] Operand 3
7138 /* 4497 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/3, 0,
7139 /* 4501 */ // MIs[0] d2
7140 /* 4501 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
7141 /* 4505 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ICMP),
7142 /* 4509 */ // MIs[2] p
7143 /* 4509 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/1,
7144 /* 4514 */ // MIs[2] s2
7145 /* 4514 */ // No operand predicates
7146 /* 4514 */ // MIs[2] Operand 3
7147 /* 4514 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/3, 0,
7148 /* 4518 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner23),
7149 /* 4522 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
7150 /* 4524 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
7151 /* 4527 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(0),
7152 /* 4537 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
7153 /* 4540 */ // Combiner Rule #128: double_icmp_zero_and_combine
7154 /* 4540 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR),
7155 /* 4543 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
7156 /* 4548 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // s1
7157 /* 4552 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/2, // s2
7158 /* 4556 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ICMP),
7159 /* 4560 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // root
7160 /* 4564 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // p
7161 /* 4568 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
7162 /* 4571 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/1,
7163 /* 4574 */ GIR_EraseRootFromParent_Done,
7164 /* 4575 */ // Label 225: @4575
7165 /* 4575 */ GIM_Try, /*On fail goto*//*Label 226*/ GIMT_Encode4(4600), // Rule ID 385 //
7166 /* 4580 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule255Enabled),
7167 /* 4583 */ // MIs[0] dst
7168 /* 4583 */ // No operand predicates
7169 /* 4583 */ // MIs[0] lhs
7170 /* 4583 */ // No operand predicates
7171 /* 4583 */ // MIs[0] rhs
7172 /* 4583 */ // No operand predicates
7173 /* 4583 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner51),
7174 /* 4587 */ // Combiner Rule #255: G_AND_commute_constant_to_rhs
7175 /* 4587 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_AND),
7176 /* 4590 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
7177 /* 4592 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
7178 /* 4594 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
7179 /* 4596 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
7180 /* 4599 */ GIR_EraseRootFromParent_Done,
7181 /* 4600 */ // Label 226: @4600
7182 /* 4600 */ GIM_Try, /*On fail goto*//*Label 227*/ GIMT_Encode4(4686), // Rule ID 417 //
7183 /* 4605 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule287Enabled),
7184 /* 4608 */ // MIs[0] root
7185 /* 4608 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
7186 /* 4612 */ // MIs[0] or
7187 /* 4612 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7188 /* 4616 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_OR),
7189 /* 4620 */ // MIs[1] x
7190 /* 4620 */ // No operand predicates
7191 /* 4620 */ // MIs[1] y
7192 /* 4620 */ // No operand predicates
7193 /* 4620 */ // MIs[0] not
7194 /* 4620 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
7195 /* 4624 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_XOR),
7196 /* 4628 */ // MIs[2] y
7197 /* 4628 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/2,
7198 /* 4633 */ // MIs[2] Operand 2
7199 /* 4633 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/2, 255,
7200 /* 4637 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
7201 /* 4639 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
7202 /* 4642 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(18446744073709551615u),
7203 /* 4652 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
7204 /* 4655 */ // Combiner Rule #287: and_xor_or_to_xor_and
7205 /* 4655 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_XOR),
7206 /* 4658 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
7207 /* 4663 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // y
7208 /* 4667 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/1,
7209 /* 4670 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_AND),
7210 /* 4674 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // root
7211 /* 4678 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // x
7212 /* 4682 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
7213 /* 4685 */ GIR_EraseRootFromParent_Done,
7214 /* 4686 */ // Label 227: @4686
7215 /* 4686 */ GIM_Try, /*On fail goto*//*Label 228*/ GIMT_Encode4(4723), // Rule ID 276 //
7216 /* 4691 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule210Enabled),
7217 /* 4694 */ // MIs[0] root
7218 /* 4694 */ // No operand predicates
7219 /* 4694 */ // MIs[0] shift
7220 /* 4694 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7221 /* 4698 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_LSHR),
7222 /* 4702 */ // MIs[1] x
7223 /* 4702 */ // No operand predicates
7224 /* 4702 */ // MIs[1] lsb
7225 /* 4702 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
7226 /* 4706 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
7227 /* 4710 */ // MIs[2] imm1
7228 /* 4710 */ // No operand predicates
7229 /* 4710 */ // MIs[0] mask
7230 /* 4710 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/0, /*OpIdx*/2, // MIs[3]
7231 /* 4714 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
7232 /* 4718 */ // MIs[3] imm2
7233 /* 4718 */ // No operand predicates
7234 /* 4718 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
7235 /* 4720 */ // Combiner Rule #210: bitfield_extract_from_and
7236 /* 4720 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner76),
7237 /* 4723 */ // Label 228: @4723
7238 /* 4723 */ GIM_Try, /*On fail goto*//*Label 229*/ GIMT_Encode4(4772), // Rule ID 416 //
7239 /* 4728 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule286Enabled),
7240 /* 4731 */ // MIs[0] root
7241 /* 4731 */ // No operand predicates
7242 /* 4731 */ // MIs[0] or
7243 /* 4731 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7244 /* 4735 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_OR),
7245 /* 4739 */ // MIs[1] x
7246 /* 4739 */ // No operand predicates
7247 /* 4739 */ // MIs[1] not
7248 /* 4739 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
7249 /* 4743 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_XOR),
7250 /* 4747 */ // MIs[2] y
7251 /* 4747 */ // No operand predicates
7252 /* 4747 */ // MIs[2] Operand 2
7253 /* 4747 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/2, 255,
7254 /* 4751 */ // MIs[0] y
7255 /* 4751 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/2, /*OtherOpIdx*/1,
7256 /* 4756 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
7257 /* 4758 */ // Combiner Rule #286: and_xor_or_to_and
7258 /* 4758 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_AND),
7259 /* 4761 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
7260 /* 4763 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
7261 /* 4767 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // y
7262 /* 4771 */ GIR_EraseRootFromParent_Done,
7263 /* 4772 */ // Label 229: @4772
7264 /* 4772 */ GIM_Try, /*On fail goto*//*Label 230*/ GIMT_Encode4(4793), // Rule ID 85 //
7265 /* 4777 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule78Enabled),
7266 /* 4780 */ // MIs[0] dst
7267 /* 4780 */ // No operand predicates
7268 /* 4780 */ // MIs[0] __undef_to_int_zero_match_0.x
7269 /* 4780 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7270 /* 4784 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
7271 /* 4788 */ // MIs[0] __undef_to_int_zero_match_0.y
7272 /* 4788 */ // No operand predicates
7273 /* 4788 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7274 /* 4790 */ // Combiner Rule #78: undef_to_int_zero @ [__undef_to_int_zero_match_0[0]]
7275 /* 4790 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner31),
7276 /* 4793 */ // Label 230: @4793
7277 /* 4793 */ GIM_Try, /*On fail goto*//*Label 231*/ GIMT_Encode4(4817), // Rule ID 129 //
7278 /* 4798 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule94Enabled),
7279 /* 4801 */ // MIs[0] dst
7280 /* 4801 */ // No operand predicates
7281 /* 4801 */ // MIs[0] src
7282 /* 4801 */ // No operand predicates
7283 /* 4801 */ // MIs[0] src
7284 /* 4801 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
7285 /* 4806 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7286 /* 4811 */ // Combiner Rule #94: binop_same_val @ [__binop_same_val_match_0[0]]
7287 /* 4811 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7288 /* 4816 */ GIR_EraseRootFromParent_Done,
7289 /* 4817 */ // Label 231: @4817
7290 /* 4817 */ GIM_Try, /*On fail goto*//*Label 232*/ GIMT_Encode4(4838), // Rule ID 87 //
7291 /* 4822 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule78Enabled),
7292 /* 4825 */ // MIs[0] dst
7293 /* 4825 */ // No operand predicates
7294 /* 4825 */ // MIs[0] __undef_to_int_zero_match_0.x
7295 /* 4825 */ // No operand predicates
7296 /* 4825 */ // MIs[0] __undef_to_int_zero_match_0.y
7297 /* 4825 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
7298 /* 4829 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
7299 /* 4833 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7300 /* 4835 */ // Combiner Rule #78: undef_to_int_zero @ [__undef_to_int_zero_match_0[2]]
7301 /* 4835 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner31),
7302 /* 4838 */ // Label 232: @4838
7303 /* 4838 */ GIM_Try, /*On fail goto*//*Label 233*/ GIMT_Encode4(4849), // Rule ID 81 //
7304 /* 4843 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule75Enabled),
7305 /* 4846 */ // MIs[0] dst
7306 /* 4846 */ // No operand predicates
7307 /* 4846 */ // MIs[0] src1
7308 /* 4846 */ // No operand predicates
7309 /* 4846 */ // MIs[0] src2
7310 /* 4846 */ // No operand predicates
7311 /* 4846 */ // Combiner Rule #75: load_and_mask
7312 /* 4846 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner28),
7313 /* 4849 */ // Label 233: @4849
7314 /* 4849 */ GIM_Try, /*On fail goto*//*Label 234*/ GIMT_Encode4(4860), // Rule ID 165 //
7315 /* 4854 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule119Enabled),
7316 /* 4857 */ // MIs[0] root
7317 /* 4857 */ // No operand predicates
7318 /* 4857 */ // MIs[0] mi.x
7319 /* 4857 */ // No operand predicates
7320 /* 4857 */ // MIs[0] mi.y
7321 /* 4857 */ // No operand predicates
7322 /* 4857 */ // Combiner Rule #119: hoist_logic_op_with_same_opcode_hands @ [mi[0]]
7323 /* 4857 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner38),
7324 /* 4860 */ // Label 234: @4860
7325 /* 4860 */ GIM_Try, /*On fail goto*//*Label 235*/ GIMT_Encode4(4871), // Rule ID 185 //
7326 /* 4865 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule135Enabled),
7327 /* 4868 */ // MIs[0] dst
7328 /* 4868 */ // No operand predicates
7329 /* 4868 */ // MIs[0] src1
7330 /* 4868 */ // No operand predicates
7331 /* 4868 */ // MIs[0] src2
7332 /* 4868 */ // No operand predicates
7333 /* 4868 */ // Combiner Rule #135: narrow_binop_feeding_and
7334 /* 4868 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner51),
7335 /* 4871 */ // Label 235: @4871
7336 /* 4871 */ GIM_Try, /*On fail goto*//*Label 236*/ GIMT_Encode4(4882), // Rule ID 200 //
7337 /* 4876 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule150Enabled),
7338 /* 4879 */ // MIs[0] dst
7339 /* 4879 */ // No operand predicates
7340 /* 4879 */ // MIs[0] src1
7341 /* 4879 */ // No operand predicates
7342 /* 4879 */ // MIs[0] src2
7343 /* 4879 */ // No operand predicates
7344 /* 4879 */ // Combiner Rule #150: redundant_and
7345 /* 4879 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner55),
7346 /* 4882 */ // Label 236: @4882
7347 /* 4882 */ GIM_Try, /*On fail goto*//*Label 237*/ GIMT_Encode4(4893), // Rule ID 226 //
7348 /* 4887 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule176Enabled),
7349 /* 4890 */ // MIs[0] dst
7350 /* 4890 */ // No operand predicates
7351 /* 4890 */ // MIs[0] x
7352 /* 4890 */ // No operand predicates
7353 /* 4890 */ // MIs[0] y
7354 /* 4890 */ // No operand predicates
7355 /* 4890 */ // Combiner Rule #176: overlapping_and
7356 /* 4890 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner65),
7357 /* 4893 */ // Label 237: @4893
7358 /* 4893 */ GIM_Try, /*On fail goto*//*Label 238*/ GIMT_Encode4(4904), // Rule ID 283 //
7359 /* 4898 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule213Enabled),
7360 /* 4901 */ // MIs[0] d
7361 /* 4901 */ // No operand predicates
7362 /* 4901 */ // MIs[0] mi.src0
7363 /* 4901 */ // No operand predicates
7364 /* 4901 */ // MIs[0] mi.src1
7365 /* 4901 */ // No operand predicates
7366 /* 4901 */ // Combiner Rule #213: constant_fold_binop @ [mi[2]]
7367 /* 4901 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner79),
7368 /* 4904 */ // Label 238: @4904
7369 /* 4904 */ GIM_Try, /*On fail goto*//*Label 239*/ GIMT_Encode4(4915), // Rule ID 333 //
7370 /* 4909 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule227Enabled),
7371 /* 4912 */ // MIs[0] dst
7372 /* 4912 */ // No operand predicates
7373 /* 4912 */ // MIs[0] src1
7374 /* 4912 */ // No operand predicates
7375 /* 4912 */ // MIs[0] src2
7376 /* 4912 */ // No operand predicates
7377 /* 4912 */ // Combiner Rule #227: and_or_disjoint_mask
7378 /* 4912 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner85),
7379 /* 4915 */ // Label 239: @4915
7380 /* 4915 */ GIM_Try, /*On fail goto*//*Label 240*/ GIMT_Encode4(4926), // Rule ID 345 //
7381 /* 4920 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule236Enabled),
7382 /* 4923 */ // MIs[0] root
7383 /* 4923 */ // No operand predicates
7384 /* 4923 */ // MIs[0] mi.x
7385 /* 4923 */ // No operand predicates
7386 /* 4923 */ // MIs[0] mi.y
7387 /* 4923 */ // No operand predicates
7388 /* 4923 */ // Combiner Rule #236: fold_binop_into_select_a @ [mi[3]]
7389 /* 4923 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
7390 /* 4926 */ // Label 240: @4926
7391 /* 4926 */ GIM_Try, /*On fail goto*//*Label 241*/ GIMT_Encode4(4937), // Rule ID 412 //
7392 /* 4931 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule282Enabled),
7393 /* 4934 */ // MIs[0] dst
7394 /* 4934 */ // No operand predicates
7395 /* 4934 */ // MIs[0] src1
7396 /* 4934 */ // No operand predicates
7397 /* 4934 */ // MIs[0] src2
7398 /* 4934 */ // No operand predicates
7399 /* 4934 */ // Combiner Rule #282: match_ands
7400 /* 4934 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103),
7401 /* 4937 */ // Label 241: @4937
7402 /* 4937 */ GIM_Try, /*On fail goto*//*Label 242*/ GIMT_Encode4(4948), // Rule ID 459 //
7403 /* 4942 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule328Enabled),
7404 /* 4945 */ // MIs[0] root
7405 /* 4945 */ // No operand predicates
7406 /* 4945 */ // MIs[0] mi.x
7407 /* 4945 */ // No operand predicates
7408 /* 4945 */ // MIs[0] mi.y
7409 /* 4945 */ // No operand predicates
7410 /* 4945 */ // Combiner Rule #328: binop_with_neg @ [mi[0]]
7411 /* 4945 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner128),
7412 /* 4948 */ // Label 242: @4948
7413 /* 4948 */ GIM_Reject,
7414 /* 4949 */ // Label 9: @4949
7415 /* 4949 */ GIM_Try, /*On fail goto*//*Label 243*/ GIMT_Encode4(5047), // Rule ID 179 //
7416 /* 4954 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule129Enabled),
7417 /* 4957 */ // MIs[0] root
7418 /* 4957 */ // No operand predicates
7419 /* 4957 */ // MIs[0] d1
7420 /* 4957 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7421 /* 4961 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ICMP),
7422 /* 4965 */ // MIs[1] p
7423 /* 4965 */ // No operand predicates
7424 /* 4965 */ // MIs[1] s1
7425 /* 4965 */ GIM_RecordRegType, /*MI*/1, /*Op*/2, /*TempTypeIdx*/255,
7426 /* 4969 */ // MIs[1] Operand 3
7427 /* 4969 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/3, 0,
7428 /* 4973 */ // MIs[0] d2
7429 /* 4973 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
7430 /* 4977 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ICMP),
7431 /* 4981 */ // MIs[2] p
7432 /* 4981 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/1,
7433 /* 4986 */ // MIs[2] s2
7434 /* 4986 */ // No operand predicates
7435 /* 4986 */ // MIs[2] Operand 3
7436 /* 4986 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/3, 0,
7437 /* 4990 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner24),
7438 /* 4994 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
7439 /* 4996 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
7440 /* 4999 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(0),
7441 /* 5009 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
7442 /* 5012 */ // Combiner Rule #129: double_icmp_zero_or_combine
7443 /* 5012 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR),
7444 /* 5015 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
7445 /* 5020 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // s1
7446 /* 5024 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/2, // s2
7447 /* 5028 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ICMP),
7448 /* 5032 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // root
7449 /* 5036 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // p
7450 /* 5040 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
7451 /* 5043 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/1,
7452 /* 5046 */ GIR_EraseRootFromParent_Done,
7453 /* 5047 */ // Label 243: @5047
7454 /* 5047 */ GIM_Try, /*On fail goto*//*Label 244*/ GIMT_Encode4(5072), // Rule ID 386 //
7455 /* 5052 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule256Enabled),
7456 /* 5055 */ // MIs[0] dst
7457 /* 5055 */ // No operand predicates
7458 /* 5055 */ // MIs[0] lhs
7459 /* 5055 */ // No operand predicates
7460 /* 5055 */ // MIs[0] rhs
7461 /* 5055 */ // No operand predicates
7462 /* 5055 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner51),
7463 /* 5059 */ // Combiner Rule #256: G_OR_commute_constant_to_rhs
7464 /* 5059 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR),
7465 /* 5062 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
7466 /* 5064 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
7467 /* 5066 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
7468 /* 5068 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
7469 /* 5071 */ GIR_EraseRootFromParent_Done,
7470 /* 5072 */ // Label 244: @5072
7471 /* 5072 */ GIM_Try, /*On fail goto*//*Label 245*/ GIMT_Encode4(5158), // Rule ID 415 //
7472 /* 5077 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule285Enabled),
7473 /* 5080 */ // MIs[0] root
7474 /* 5080 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
7475 /* 5084 */ // MIs[0] and
7476 /* 5084 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7477 /* 5088 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_AND),
7478 /* 5092 */ // MIs[1] x
7479 /* 5092 */ // No operand predicates
7480 /* 5092 */ // MIs[1] y
7481 /* 5092 */ // No operand predicates
7482 /* 5092 */ // MIs[0] not
7483 /* 5092 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
7484 /* 5096 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_XOR),
7485 /* 5100 */ // MIs[2] y
7486 /* 5100 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/2,
7487 /* 5105 */ // MIs[2] Operand 2
7488 /* 5105 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/2, 255,
7489 /* 5109 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
7490 /* 5111 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
7491 /* 5114 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(18446744073709551615u),
7492 /* 5124 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
7493 /* 5127 */ // Combiner Rule #285: or_and_xor_to_xor_or
7494 /* 5127 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_XOR),
7495 /* 5130 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
7496 /* 5135 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // y
7497 /* 5139 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/1,
7498 /* 5142 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR),
7499 /* 5146 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // root
7500 /* 5150 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // x
7501 /* 5154 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
7502 /* 5157 */ GIR_EraseRootFromParent_Done,
7503 /* 5158 */ // Label 245: @5158
7504 /* 5158 */ GIM_Try, /*On fail goto*//*Label 246*/ GIMT_Encode4(5205), // Rule ID 267 //
7505 /* 5163 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule203Enabled),
7506 /* 5166 */ // MIs[0] root
7507 /* 5166 */ // No operand predicates
7508 /* 5166 */ // MIs[0] out1
7509 /* 5166 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7510 /* 5170 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FSHL),
7511 /* 5174 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_left_match_0.x
7512 /* 5174 */ // No operand predicates
7513 /* 5174 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_left_match_0.z
7514 /* 5174 */ // No operand predicates
7515 /* 5174 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_left_match_0.y
7516 /* 5174 */ // No operand predicates
7517 /* 5174 */ // MIs[0] out2
7518 /* 5174 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
7519 /* 5178 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SHL),
7520 /* 5182 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_left_match_0.x
7521 /* 5182 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/1,
7522 /* 5187 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_left_match_0.y
7523 /* 5187 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/3,
7524 /* 5192 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7525 /* 5197 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
7526 /* 5199 */ // Combiner Rule #203: funnel_shift_or_shift_to_funnel_shift_left @ [__funnel_shift_or_shift_to_funnel_shift_left_match_0[0]]
7527 /* 5199 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7528 /* 5204 */ GIR_EraseRootFromParent_Done,
7529 /* 5205 */ // Label 246: @5205
7530 /* 5205 */ GIM_Try, /*On fail goto*//*Label 247*/ GIMT_Encode4(5252), // Rule ID 269 //
7531 /* 5210 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
7532 /* 5213 */ // MIs[0] root
7533 /* 5213 */ // No operand predicates
7534 /* 5213 */ // MIs[0] out1
7535 /* 5213 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7536 /* 5217 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FSHR),
7537 /* 5221 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_right_match_0.z
7538 /* 5221 */ // No operand predicates
7539 /* 5221 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_right_match_0.x
7540 /* 5221 */ // No operand predicates
7541 /* 5221 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_right_match_0.y
7542 /* 5221 */ // No operand predicates
7543 /* 5221 */ // MIs[0] out2
7544 /* 5221 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
7545 /* 5225 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_LSHR),
7546 /* 5229 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_right_match_0.x
7547 /* 5229 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/2,
7548 /* 5234 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_right_match_0.y
7549 /* 5234 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/3,
7550 /* 5239 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7551 /* 5244 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
7552 /* 5246 */ // Combiner Rule #204: funnel_shift_or_shift_to_funnel_shift_right @ [__funnel_shift_or_shift_to_funnel_shift_right_match_0[0]]
7553 /* 5246 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7554 /* 5251 */ GIR_EraseRootFromParent_Done,
7555 /* 5252 */ // Label 247: @5252
7556 /* 5252 */ GIM_Try, /*On fail goto*//*Label 248*/ GIMT_Encode4(5301), // Rule ID 414 //
7557 /* 5257 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule284Enabled),
7558 /* 5260 */ // MIs[0] root
7559 /* 5260 */ // No operand predicates
7560 /* 5260 */ // MIs[0] and
7561 /* 5260 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7562 /* 5264 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_AND),
7563 /* 5268 */ // MIs[1] x
7564 /* 5268 */ // No operand predicates
7565 /* 5268 */ // MIs[1] not
7566 /* 5268 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
7567 /* 5272 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_XOR),
7568 /* 5276 */ // MIs[2] y
7569 /* 5276 */ // No operand predicates
7570 /* 5276 */ // MIs[2] Operand 2
7571 /* 5276 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/2, 255,
7572 /* 5280 */ // MIs[0] y
7573 /* 5280 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/2, /*OtherOpIdx*/1,
7574 /* 5285 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
7575 /* 5287 */ // Combiner Rule #284: or_and_xor_to_or
7576 /* 5287 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR),
7577 /* 5290 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
7578 /* 5292 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
7579 /* 5296 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // y
7580 /* 5300 */ GIR_EraseRootFromParent_Done,
7581 /* 5301 */ // Label 248: @5301
7582 /* 5301 */ GIM_Try, /*On fail goto*//*Label 249*/ GIMT_Encode4(5335), // Rule ID 472 //
7583 /* 5306 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule339Enabled),
7584 /* 5309 */ // MIs[0] dst
7585 /* 5309 */ // No operand predicates
7586 /* 5309 */ // MIs[0] __combine_or_of_and_match_0.and
7587 /* 5309 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7588 /* 5313 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_AND),
7589 /* 5317 */ // MIs[1] x
7590 /* 5317 */ // No operand predicates
7591 /* 5317 */ // MIs[1] y
7592 /* 5317 */ // No operand predicates
7593 /* 5317 */ // MIs[0] x
7594 /* 5317 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/1,
7595 /* 5322 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
7596 /* 5327 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7597 /* 5329 */ // Combiner Rule #339: combine_or_of_and @ [__combine_or_of_and_match_0[0]]
7598 /* 5329 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
7599 /* 5334 */ GIR_EraseRootFromParent_Done,
7600 /* 5335 */ // Label 249: @5335
7601 /* 5335 */ GIM_Try, /*On fail goto*//*Label 250*/ GIMT_Encode4(5369), // Rule ID 473 //
7602 /* 5340 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule339Enabled),
7603 /* 5343 */ // MIs[0] dst
7604 /* 5343 */ // No operand predicates
7605 /* 5343 */ // MIs[0] __combine_or_of_and_match_0.and
7606 /* 5343 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7607 /* 5347 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_AND),
7608 /* 5351 */ // MIs[1] y
7609 /* 5351 */ // No operand predicates
7610 /* 5351 */ // MIs[1] x
7611 /* 5351 */ // No operand predicates
7612 /* 5351 */ // MIs[0] x
7613 /* 5351 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/2,
7614 /* 5356 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/2,
7615 /* 5361 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7616 /* 5363 */ // Combiner Rule #339: combine_or_of_and @ [__combine_or_of_and_match_0[1]]
7617 /* 5363 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/2,
7618 /* 5368 */ GIR_EraseRootFromParent_Done,
7619 /* 5369 */ // Label 250: @5369
7620 /* 5369 */ GIM_Try, /*On fail goto*//*Label 251*/ GIMT_Encode4(5416), // Rule ID 270 //
7621 /* 5374 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
7622 /* 5377 */ // MIs[0] root
7623 /* 5377 */ // No operand predicates
7624 /* 5377 */ // MIs[0] out2
7625 /* 5377 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7626 /* 5381 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_LSHR),
7627 /* 5385 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_right_match_0.x
7628 /* 5385 */ // No operand predicates
7629 /* 5385 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_right_match_0.y
7630 /* 5385 */ // No operand predicates
7631 /* 5385 */ // MIs[0] out1
7632 /* 5385 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
7633 /* 5389 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_FSHR),
7634 /* 5393 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_right_match_0.z
7635 /* 5393 */ // No operand predicates
7636 /* 5393 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_right_match_0.x
7637 /* 5393 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/1,
7638 /* 5398 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_right_match_0.y
7639 /* 5398 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/3, /*OtherMI*/1, /*OtherOpIdx*/2,
7640 /* 5403 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
7641 /* 5408 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
7642 /* 5410 */ // Combiner Rule #204: funnel_shift_or_shift_to_funnel_shift_right @ [__funnel_shift_or_shift_to_funnel_shift_right_match_0[1]]
7643 /* 5410 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
7644 /* 5415 */ GIR_EraseRootFromParent_Done,
7645 /* 5416 */ // Label 251: @5416
7646 /* 5416 */ GIM_Try, /*On fail goto*//*Label 252*/ GIMT_Encode4(5463), // Rule ID 268 //
7647 /* 5421 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule203Enabled),
7648 /* 5424 */ // MIs[0] root
7649 /* 5424 */ // No operand predicates
7650 /* 5424 */ // MIs[0] out2
7651 /* 5424 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7652 /* 5428 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SHL),
7653 /* 5432 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_left_match_0.x
7654 /* 5432 */ // No operand predicates
7655 /* 5432 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_left_match_0.y
7656 /* 5432 */ // No operand predicates
7657 /* 5432 */ // MIs[0] out1
7658 /* 5432 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
7659 /* 5436 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_FSHL),
7660 /* 5440 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_left_match_0.x
7661 /* 5440 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/1,
7662 /* 5445 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_left_match_0.z
7663 /* 5445 */ // No operand predicates
7664 /* 5445 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_left_match_0.y
7665 /* 5445 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/3, /*OtherMI*/1, /*OtherOpIdx*/2,
7666 /* 5450 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
7667 /* 5455 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
7668 /* 5457 */ // Combiner Rule #203: funnel_shift_or_shift_to_funnel_shift_left @ [__funnel_shift_or_shift_to_funnel_shift_left_match_0[1]]
7669 /* 5457 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
7670 /* 5462 */ GIR_EraseRootFromParent_Done,
7671 /* 5463 */ // Label 252: @5463
7672 /* 5463 */ GIM_Try, /*On fail goto*//*Label 253*/ GIMT_Encode4(5513), // Rule ID 419 //
7673 /* 5468 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule289Enabled),
7674 /* 5471 */ // MIs[0] root
7675 /* 5471 */ // No operand predicates
7676 /* 5471 */ // MIs[0] xor
7677 /* 5471 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7678 /* 5475 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_XOR),
7679 /* 5479 */ // MIs[1] x
7680 /* 5479 */ // No operand predicates
7681 /* 5479 */ // MIs[1] y
7682 /* 5479 */ // No operand predicates
7683 /* 5479 */ // MIs[0] and
7684 /* 5479 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
7685 /* 5483 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_AND),
7686 /* 5487 */ // MIs[2] x
7687 /* 5487 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/1,
7688 /* 5492 */ // MIs[2] y
7689 /* 5492 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/2,
7690 /* 5497 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
7691 /* 5499 */ // Combiner Rule #289: or_xor_and
7692 /* 5499 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR),
7693 /* 5502 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
7694 /* 5504 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
7695 /* 5508 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // y
7696 /* 5512 */ GIR_EraseRootFromParent_Done,
7697 /* 5513 */ // Label 253: @5513
7698 /* 5513 */ GIM_Try, /*On fail goto*//*Label 254*/ GIMT_Encode4(5563), // Rule ID 418 //
7699 /* 5518 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule288Enabled),
7700 /* 5521 */ // MIs[0] root
7701 /* 5521 */ // No operand predicates
7702 /* 5521 */ // MIs[0] xor
7703 /* 5521 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7704 /* 5525 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_XOR),
7705 /* 5529 */ // MIs[1] x
7706 /* 5529 */ // No operand predicates
7707 /* 5529 */ // MIs[1] y
7708 /* 5529 */ // No operand predicates
7709 /* 5529 */ // MIs[0] or
7710 /* 5529 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
7711 /* 5533 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_OR),
7712 /* 5537 */ // MIs[2] x
7713 /* 5537 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/1,
7714 /* 5542 */ // MIs[2] y
7715 /* 5542 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/2,
7716 /* 5547 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
7717 /* 5549 */ // Combiner Rule #288: or_xor_or
7718 /* 5549 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR),
7719 /* 5552 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
7720 /* 5554 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
7721 /* 5558 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // y
7722 /* 5562 */ GIR_EraseRootFromParent_Done,
7723 /* 5563 */ // Label 254: @5563
7724 /* 5563 */ GIM_Try, /*On fail goto*//*Label 255*/ GIMT_Encode4(5584), // Rule ID 89 //
7725 /* 5568 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule79Enabled),
7726 /* 5571 */ // MIs[0] dst
7727 /* 5571 */ // No operand predicates
7728 /* 5571 */ // MIs[0] __undef_to_negative_one_match_0.x
7729 /* 5571 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7730 /* 5575 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
7731 /* 5579 */ // MIs[0] __undef_to_negative_one_match_0.y
7732 /* 5579 */ // No operand predicates
7733 /* 5579 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7734 /* 5581 */ // Combiner Rule #79: undef_to_negative_one @ [__undef_to_negative_one_match_0[0]]
7735 /* 5581 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner32),
7736 /* 5584 */ // Label 255: @5584
7737 /* 5584 */ GIM_Try, /*On fail goto*//*Label 256*/ GIMT_Encode4(5608), // Rule ID 130 //
7738 /* 5589 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule94Enabled),
7739 /* 5592 */ // MIs[0] dst
7740 /* 5592 */ // No operand predicates
7741 /* 5592 */ // MIs[0] src
7742 /* 5592 */ // No operand predicates
7743 /* 5592 */ // MIs[0] src
7744 /* 5592 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
7745 /* 5597 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7746 /* 5602 */ // Combiner Rule #94: binop_same_val @ [__binop_same_val_match_0[1]]
7747 /* 5602 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7748 /* 5607 */ GIR_EraseRootFromParent_Done,
7749 /* 5608 */ // Label 256: @5608
7750 /* 5608 */ GIM_Try, /*On fail goto*//*Label 257*/ GIMT_Encode4(5642), // Rule ID 474 //
7751 /* 5613 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule339Enabled),
7752 /* 5616 */ // MIs[0] dst
7753 /* 5616 */ // No operand predicates
7754 /* 5616 */ // MIs[0] x
7755 /* 5616 */ // No operand predicates
7756 /* 5616 */ // MIs[0] __combine_or_of_and_match_0.and
7757 /* 5616 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
7758 /* 5620 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_AND),
7759 /* 5624 */ // MIs[1] x
7760 /* 5624 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/1, /*OpIdx*/1, /*OtherMI*/0, /*OtherOpIdx*/1,
7761 /* 5629 */ // MIs[1] y
7762 /* 5629 */ // No operand predicates
7763 /* 5629 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7764 /* 5634 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7765 /* 5636 */ // Combiner Rule #339: combine_or_of_and @ [__combine_or_of_and_match_0[2]]
7766 /* 5636 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7767 /* 5641 */ GIR_EraseRootFromParent_Done,
7768 /* 5642 */ // Label 257: @5642
7769 /* 5642 */ GIM_Try, /*On fail goto*//*Label 258*/ GIMT_Encode4(5676), // Rule ID 475 //
7770 /* 5647 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule339Enabled),
7771 /* 5650 */ // MIs[0] dst
7772 /* 5650 */ // No operand predicates
7773 /* 5650 */ // MIs[0] x
7774 /* 5650 */ // No operand predicates
7775 /* 5650 */ // MIs[0] __combine_or_of_and_match_0.and
7776 /* 5650 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
7777 /* 5654 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_AND),
7778 /* 5658 */ // MIs[1] y
7779 /* 5658 */ // No operand predicates
7780 /* 5658 */ // MIs[1] x
7781 /* 5658 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/1, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
7782 /* 5663 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7783 /* 5668 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7784 /* 5670 */ // Combiner Rule #339: combine_or_of_and @ [__combine_or_of_and_match_0[3]]
7785 /* 5670 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7786 /* 5675 */ GIR_EraseRootFromParent_Done,
7787 /* 5676 */ // Label 258: @5676
7788 /* 5676 */ GIM_Try, /*On fail goto*//*Label 259*/ GIMT_Encode4(5697), // Rule ID 90 //
7789 /* 5681 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule79Enabled),
7790 /* 5684 */ // MIs[0] dst
7791 /* 5684 */ // No operand predicates
7792 /* 5684 */ // MIs[0] __undef_to_negative_one_match_0.x
7793 /* 5684 */ // No operand predicates
7794 /* 5684 */ // MIs[0] __undef_to_negative_one_match_0.y
7795 /* 5684 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
7796 /* 5688 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
7797 /* 5692 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7798 /* 5694 */ // Combiner Rule #79: undef_to_negative_one @ [__undef_to_negative_one_match_0[1]]
7799 /* 5694 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner32),
7800 /* 5697 */ // Label 259: @5697
7801 /* 5697 */ GIM_Try, /*On fail goto*//*Label 260*/ GIMT_Encode4(5720), // Rule ID 121 //
7802 /* 5702 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
7803 /* 5705 */ // MIs[0] dst
7804 /* 5705 */ // No operand predicates
7805 /* 5705 */ // MIs[0] lhs
7806 /* 5705 */ // No operand predicates
7807 /* 5705 */ // MIs[0] Operand 2
7808 /* 5705 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
7809 /* 5709 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7810 /* 5714 */ // Combiner Rule #93: right_identity_zero @ [__right_identity_zero_match_0[2]]
7811 /* 5714 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7812 /* 5719 */ GIR_EraseRootFromParent_Done,
7813 /* 5720 */ // Label 260: @5720
7814 /* 5720 */ GIM_Try, /*On fail goto*//*Label 261*/ GIMT_Encode4(5731), // Rule ID 166 //
7815 /* 5725 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule119Enabled),
7816 /* 5728 */ // MIs[0] root
7817 /* 5728 */ // No operand predicates
7818 /* 5728 */ // MIs[0] mi.x
7819 /* 5728 */ // No operand predicates
7820 /* 5728 */ // MIs[0] mi.y
7821 /* 5728 */ // No operand predicates
7822 /* 5728 */ // Combiner Rule #119: hoist_logic_op_with_same_opcode_hands @ [mi[1]]
7823 /* 5728 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner38),
7824 /* 5731 */ // Label 261: @5731
7825 /* 5731 */ GIM_Try, /*On fail goto*//*Label 262*/ GIMT_Encode4(5742), // Rule ID 201 //
7826 /* 5736 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule151Enabled),
7827 /* 5739 */ // MIs[0] dst
7828 /* 5739 */ // No operand predicates
7829 /* 5739 */ // MIs[0] src1
7830 /* 5739 */ // No operand predicates
7831 /* 5739 */ // MIs[0] src2
7832 /* 5739 */ // No operand predicates
7833 /* 5739 */ // Combiner Rule #151: redundant_or
7834 /* 5739 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner56),
7835 /* 5742 */ // Label 262: @5742
7836 /* 5742 */ GIM_Try, /*On fail goto*//*Label 263*/ GIMT_Encode4(5753), // Rule ID 255 //
7837 /* 5747 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule195Enabled),
7838 /* 5750 */ // MIs[0] dst
7839 /* 5750 */ // No operand predicates
7840 /* 5750 */ // MIs[0] src1
7841 /* 5750 */ // No operand predicates
7842 /* 5750 */ // MIs[0] src2
7843 /* 5750 */ // No operand predicates
7844 /* 5750 */ // Combiner Rule #195: load_or_combine
7845 /* 5750 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner71),
7846 /* 5753 */ // Label 263: @5753
7847 /* 5753 */ GIM_Try, /*On fail goto*//*Label 264*/ GIMT_Encode4(5764), // Rule ID 260 //
7848 /* 5758 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule197Enabled),
7849 /* 5761 */ // MIs[0] dst
7850 /* 5761 */ // No operand predicates
7851 /* 5761 */ // MIs[0] src1
7852 /* 5761 */ // No operand predicates
7853 /* 5761 */ // MIs[0] src2
7854 /* 5761 */ // No operand predicates
7855 /* 5761 */ // Combiner Rule #197: funnel_shift_from_or_shift
7856 /* 5761 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner73),
7857 /* 5764 */ // Label 264: @5764
7858 /* 5764 */ GIM_Try, /*On fail goto*//*Label 265*/ GIMT_Encode4(5775), // Rule ID 287 //
7859 /* 5769 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule213Enabled),
7860 /* 5772 */ // MIs[0] d
7861 /* 5772 */ // No operand predicates
7862 /* 5772 */ // MIs[0] mi.src0
7863 /* 5772 */ // No operand predicates
7864 /* 5772 */ // MIs[0] mi.src1
7865 /* 5772 */ // No operand predicates
7866 /* 5772 */ // Combiner Rule #213: constant_fold_binop @ [mi[6]]
7867 /* 5772 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner79),
7868 /* 5775 */ // Label 265: @5775
7869 /* 5775 */ GIM_Try, /*On fail goto*//*Label 266*/ GIMT_Encode4(5786), // Rule ID 346 //
7870 /* 5780 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule236Enabled),
7871 /* 5783 */ // MIs[0] root
7872 /* 5783 */ // No operand predicates
7873 /* 5783 */ // MIs[0] mi.x
7874 /* 5783 */ // No operand predicates
7875 /* 5783 */ // MIs[0] mi.y
7876 /* 5783 */ // No operand predicates
7877 /* 5783 */ // Combiner Rule #236: fold_binop_into_select_a @ [mi[4]]
7878 /* 5783 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
7879 /* 5786 */ // Label 266: @5786
7880 /* 5786 */ GIM_Try, /*On fail goto*//*Label 267*/ GIMT_Encode4(5797), // Rule ID 413 //
7881 /* 5791 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule283Enabled),
7882 /* 5794 */ // MIs[0] dst
7883 /* 5794 */ // No operand predicates
7884 /* 5794 */ // MIs[0] src1
7885 /* 5794 */ // No operand predicates
7886 /* 5794 */ // MIs[0] src2
7887 /* 5794 */ // No operand predicates
7888 /* 5794 */ // Combiner Rule #283: match_ors
7889 /* 5794 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner104),
7890 /* 5797 */ // Label 267: @5797
7891 /* 5797 */ GIM_Try, /*On fail goto*//*Label 268*/ GIMT_Encode4(5808), // Rule ID 460 //
7892 /* 5802 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule328Enabled),
7893 /* 5805 */ // MIs[0] root
7894 /* 5805 */ // No operand predicates
7895 /* 5805 */ // MIs[0] mi.x
7896 /* 5805 */ // No operand predicates
7897 /* 5805 */ // MIs[0] mi.y
7898 /* 5805 */ // No operand predicates
7899 /* 5805 */ // Combiner Rule #328: binop_with_neg @ [mi[1]]
7900 /* 5805 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner128),
7901 /* 5808 */ // Label 268: @5808
7902 /* 5808 */ GIM_Reject,
7903 /* 5809 */ // Label 10: @5809
7904 /* 5809 */ GIM_Try, /*On fail goto*//*Label 269*/ GIMT_Encode4(5869), // Rule ID 13 //
7905 /* 5814 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule13Enabled),
7906 /* 5817 */ // MIs[0] root
7907 /* 5817 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
7908 /* 5821 */ // MIs[0] add
7909 /* 5821 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7910 /* 5825 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
7911 /* 5829 */ // MIs[1] A
7912 /* 5829 */ // No operand predicates
7913 /* 5829 */ // MIs[1] Operand 2
7914 /* 5829 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/2, 255,
7915 /* 5833 */ // MIs[0] Operand 2
7916 /* 5833 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 255,
7917 /* 5837 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner1),
7918 /* 5841 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7919 /* 5843 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
7920 /* 5846 */ GIR_BuildConstant, /*TempRegID*/0, /*Val*/GIMT_Encode8(0),
7921 /* 5856 */ // Combiner Rule #13: NotAPlusNegOne
7922 /* 5856 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
7923 /* 5859 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
7924 /* 5861 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/0,
7925 /* 5864 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // A
7926 /* 5868 */ GIR_EraseRootFromParent_Done,
7927 /* 5869 */ // Label 269: @5869
7928 /* 5869 */ GIM_Try, /*On fail goto*//*Label 270*/ GIMT_Encode4(5894), // Rule ID 387 //
7929 /* 5874 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule257Enabled),
7930 /* 5877 */ // MIs[0] dst
7931 /* 5877 */ // No operand predicates
7932 /* 5877 */ // MIs[0] lhs
7933 /* 5877 */ // No operand predicates
7934 /* 5877 */ // MIs[0] rhs
7935 /* 5877 */ // No operand predicates
7936 /* 5877 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner51),
7937 /* 5881 */ // Combiner Rule #257: G_XOR_commute_constant_to_rhs
7938 /* 5881 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_XOR),
7939 /* 5884 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
7940 /* 5886 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
7941 /* 5888 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
7942 /* 5890 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
7943 /* 5893 */ GIR_EraseRootFromParent_Done,
7944 /* 5894 */ // Label 270: @5894
7945 /* 5894 */ GIM_Try, /*On fail goto*//*Label 271*/ GIMT_Encode4(5918), // Rule ID 107 //
7946 /* 5899 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule84Enabled),
7947 /* 5902 */ // MIs[0] dst
7948 /* 5902 */ // No operand predicates
7949 /* 5902 */ // MIs[0] __propagate_undef_any_op_match_0.x
7950 /* 5902 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7951 /* 5906 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
7952 /* 5910 */ // MIs[0] __propagate_undef_any_op_match_0.y
7953 /* 5910 */ // No operand predicates
7954 /* 5910 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7955 /* 5912 */ // Combiner Rule #84: propagate_undef_any_op @ [__propagate_undef_any_op_match_0[2]]
7956 /* 5912 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
7957 /* 5915 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
7958 /* 5917 */ GIR_EraseRootFromParent_Done,
7959 /* 5918 */ // Label 271: @5918
7960 /* 5918 */ GIM_Try, /*On fail goto*//*Label 272*/ GIMT_Encode4(5957), // Rule ID 132 //
7961 /* 5923 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule95Enabled),
7962 /* 5926 */ // MIs[0] dst
7963 /* 5926 */ // No operand predicates
7964 /* 5926 */ // MIs[0] x
7965 /* 5926 */ GIM_RecordRegType, /*MI*/0, /*Op*/1, /*TempTypeIdx*/255,
7966 /* 5930 */ // MIs[0] x
7967 /* 5930 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
7968 /* 5935 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
7969 /* 5938 */ GIR_BuildConstant, /*TempRegID*/0, /*Val*/GIMT_Encode8(0),
7970 /* 5948 */ // Combiner Rule #95: same_val_zero @ [__same_val_zero_match_0[1]]
7971 /* 5948 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::COPY),
7972 /* 5951 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
7973 /* 5953 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/0,
7974 /* 5956 */ GIR_EraseRootFromParent_Done,
7975 /* 5957 */ // Label 272: @5957
7976 /* 5957 */ GIM_Try, /*On fail goto*//*Label 273*/ GIMT_Encode4(5981), // Rule ID 110 //
7977 /* 5962 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule84Enabled),
7978 /* 5965 */ // MIs[0] dst
7979 /* 5965 */ // No operand predicates
7980 /* 5965 */ // MIs[0] __propagate_undef_any_op_match_0.x
7981 /* 5965 */ // No operand predicates
7982 /* 5965 */ // MIs[0] __propagate_undef_any_op_match_0.y
7983 /* 5965 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
7984 /* 5969 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
7985 /* 5973 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7986 /* 5975 */ // Combiner Rule #84: propagate_undef_any_op @ [__propagate_undef_any_op_match_0[5]]
7987 /* 5975 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
7988 /* 5978 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
7989 /* 5980 */ GIR_EraseRootFromParent_Done,
7990 /* 5981 */ // Label 273: @5981
7991 /* 5981 */ GIM_Try, /*On fail goto*//*Label 274*/ GIMT_Encode4(6004), // Rule ID 122 //
7992 /* 5986 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
7993 /* 5989 */ // MIs[0] dst
7994 /* 5989 */ // No operand predicates
7995 /* 5989 */ // MIs[0] lhs
7996 /* 5989 */ // No operand predicates
7997 /* 5989 */ // MIs[0] Operand 2
7998 /* 5989 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
7999 /* 5993 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8000 /* 5998 */ // Combiner Rule #93: right_identity_zero @ [__right_identity_zero_match_0[3]]
8001 /* 5998 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8002 /* 6003 */ GIR_EraseRootFromParent_Done,
8003 /* 6004 */ // Label 274: @6004
8004 /* 6004 */ GIM_Try, /*On fail goto*//*Label 275*/ GIMT_Encode4(6015), // Rule ID 167 //
8005 /* 6009 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule119Enabled),
8006 /* 6012 */ // MIs[0] root
8007 /* 6012 */ // No operand predicates
8008 /* 6012 */ // MIs[0] mi.x
8009 /* 6012 */ // No operand predicates
8010 /* 6012 */ // MIs[0] mi.y
8011 /* 6012 */ // No operand predicates
8012 /* 6012 */ // Combiner Rule #119: hoist_logic_op_with_same_opcode_hands @ [mi[2]]
8013 /* 6012 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner38),
8014 /* 6015 */ // Label 275: @6015
8015 /* 6015 */ GIM_Try, /*On fail goto*//*Label 276*/ GIMT_Encode4(6026), // Rule ID 208 //
8016 /* 6020 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule158Enabled),
8017 /* 6023 */ // MIs[0] dst
8018 /* 6023 */ // No operand predicates
8019 /* 6023 */ // MIs[0] src1
8020 /* 6023 */ // No operand predicates
8021 /* 6023 */ // MIs[0] src2
8022 /* 6023 */ // No operand predicates
8023 /* 6023 */ // Combiner Rule #158: not_cmp_fold
8024 /* 6023 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner61),
8025 /* 6026 */ // Label 276: @6026
8026 /* 6026 */ GIM_Try, /*On fail goto*//*Label 277*/ GIMT_Encode4(6037), // Rule ID 244 //
8027 /* 6031 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule190Enabled),
8028 /* 6034 */ // MIs[0] dst
8029 /* 6034 */ // No operand predicates
8030 /* 6034 */ // MIs[0] src1
8031 /* 6034 */ // No operand predicates
8032 /* 6034 */ // MIs[0] src2
8033 /* 6034 */ // No operand predicates
8034 /* 6034 */ // Combiner Rule #190: xor_of_and_with_same_reg
8035 /* 6034 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner68),
8036 /* 6037 */ // Label 277: @6037
8037 /* 6037 */ GIM_Try, /*On fail goto*//*Label 278*/ GIMT_Encode4(6048), // Rule ID 290 //
8038 /* 6042 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule213Enabled),
8039 /* 6045 */ // MIs[0] d
8040 /* 6045 */ // No operand predicates
8041 /* 6045 */ // MIs[0] mi.src0
8042 /* 6045 */ // No operand predicates
8043 /* 6045 */ // MIs[0] mi.src1
8044 /* 6045 */ // No operand predicates
8045 /* 6045 */ // Combiner Rule #213: constant_fold_binop @ [mi[9]]
8046 /* 6045 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner79),
8047 /* 6048 */ // Label 278: @6048
8048 /* 6048 */ GIM_Try, /*On fail goto*//*Label 279*/ GIMT_Encode4(6059), // Rule ID 347 //
8049 /* 6053 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule236Enabled),
8050 /* 6056 */ // MIs[0] root
8051 /* 6056 */ // No operand predicates
8052 /* 6056 */ // MIs[0] mi.x
8053 /* 6056 */ // No operand predicates
8054 /* 6056 */ // MIs[0] mi.y
8055 /* 6056 */ // No operand predicates
8056 /* 6056 */ // Combiner Rule #236: fold_binop_into_select_a @ [mi[5]]
8057 /* 6056 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
8058 /* 6059 */ // Label 279: @6059
8059 /* 6059 */ GIM_Try, /*On fail goto*//*Label 280*/ GIMT_Encode4(6070), // Rule ID 461 //
8060 /* 6064 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule328Enabled),
8061 /* 6067 */ // MIs[0] root
8062 /* 6067 */ // No operand predicates
8063 /* 6067 */ // MIs[0] mi.x
8064 /* 6067 */ // No operand predicates
8065 /* 6067 */ // MIs[0] mi.y
8066 /* 6067 */ // No operand predicates
8067 /* 6067 */ // Combiner Rule #328: binop_with_neg @ [mi[2]]
8068 /* 6067 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner128),
8069 /* 6070 */ // Label 280: @6070
8070 /* 6070 */ GIM_Reject,
8071 /* 6071 */ // Label 11: @6071
8072 /* 6071 */ GIM_Try, /*On fail goto*//*Label 281*/ GIMT_Encode4(6085), // Rule ID 162 //
8073 /* 6076 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule117Enabled),
8074 /* 6079 */ GIM_CheckNumOperandsGE, /*MI*/0, /*Expected*/2,
8075 /* 6082 */ // MIs[0] dst
8076 /* 6082 */ // No operand predicates
8077 /* 6082 */ // MIs[0] srcs
8078 /* 6082 */ // No operand predicates
8079 /* 6082 */ // Combiner Rule #117: extend_through_phis
8080 /* 6082 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner37),
8081 /* 6085 */ // Label 281: @6085
8082 /* 6085 */ GIM_Reject,
8083 /* 6086 */ // Label 12: @6086
8084 /* 6086 */ GIM_Try, /*On fail goto*//*Label 282*/ GIMT_Encode4(6097), // Rule ID 479 //
8085 /* 6091 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule343Enabled),
8086 /* 6094 */ // MIs[0] dst
8087 /* 6094 */ // No operand predicates
8088 /* 6094 */ // MIs[0] gv
8089 /* 6094 */ // No operand predicates
8090 /* 6094 */ // Combiner Rule #343: fold_global_offset
8091 /* 6094 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner131),
8092 /* 6097 */ // Label 282: @6097
8093 /* 6097 */ GIM_Reject,
8094 /* 6098 */ // Label 13: @6098
8095 /* 6098 */ GIM_Try, /*On fail goto*//*Label 283*/ GIMT_Encode4(6109), // Rule ID 429 //
8096 /* 6103 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule299Enabled),
8097 /* 6106 */ // Combiner Rule #299: unmerge_anyext_build_vector; wip_match_opcode 'G_UNMERGE_VALUES'
8098 /* 6106 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner114),
8099 /* 6109 */ // Label 283: @6109
8100 /* 6109 */ GIM_Try, /*On fail goto*//*Label 284*/ GIMT_Encode4(6120), // Rule ID 430 //
8101 /* 6114 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule300Enabled),
8102 /* 6117 */ // Combiner Rule #300: unmerge_merge; wip_match_opcode 'G_UNMERGE_VALUES'
8103 /* 6117 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner115),
8104 /* 6120 */ // Label 284: @6120
8105 /* 6120 */ GIM_Try, /*On fail goto*//*Label 285*/ GIMT_Encode4(6131), // Rule ID 432 //
8106 /* 6125 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule302Enabled),
8107 /* 6128 */ // Combiner Rule #302: unmerge_cst; wip_match_opcode 'G_UNMERGE_VALUES'
8108 /* 6128 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner117),
8109 /* 6131 */ // Label 285: @6131
8110 /* 6131 */ GIM_Try, /*On fail goto*//*Label 286*/ GIMT_Encode4(6142), // Rule ID 433 //
8111 /* 6136 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule303Enabled),
8112 /* 6139 */ // Combiner Rule #303: unmerge_undef; wip_match_opcode 'G_UNMERGE_VALUES'
8113 /* 6139 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner118),
8114 /* 6142 */ // Label 286: @6142
8115 /* 6142 */ GIM_Try, /*On fail goto*//*Label 287*/ GIMT_Encode4(6153), // Rule ID 434 //
8116 /* 6147 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule304Enabled),
8117 /* 6150 */ // Combiner Rule #304: unmerge_dead_to_trunc; wip_match_opcode 'G_UNMERGE_VALUES'
8118 /* 6150 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
8119 /* 6153 */ // Label 287: @6153
8120 /* 6153 */ GIM_Try, /*On fail goto*//*Label 288*/ GIMT_Encode4(6164), // Rule ID 435 //
8121 /* 6158 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule305Enabled),
8122 /* 6161 */ // Combiner Rule #305: unmerge_zext_to_zext; wip_match_opcode 'G_UNMERGE_VALUES'
8123 /* 6161 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner120),
8124 /* 6164 */ // Label 288: @6164
8125 /* 6164 */ GIM_Reject,
8126 /* 6165 */ // Label 14: @6165
8127 /* 6165 */ GIM_Try, /*On fail goto*//*Label 289*/ GIMT_Encode4(6179), // Rule ID 431 //
8128 /* 6170 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule301Enabled),
8129 /* 6173 */ GIM_CheckNumOperandsGE, /*MI*/0, /*Expected*/2,
8130 /* 6176 */ // MIs[0] dst
8131 /* 6176 */ // No operand predicates
8132 /* 6176 */ // MIs[0] merge_srcs
8133 /* 6176 */ // No operand predicates
8134 /* 6176 */ // Combiner Rule #301: merge_unmerge
8135 /* 6176 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner116),
8136 /* 6179 */ // Label 289: @6179
8137 /* 6179 */ GIM_Try, /*On fail goto*//*Label 290*/ GIMT_Encode4(6259),
8138 /* 6184 */ GIM_CheckNumOperands, /*MI*/0, /*Expected*/3,
8139 /* 6187 */ GIM_Try, /*On fail goto*//*Label 291*/ GIMT_Encode4(6217), // Rule ID 436 //
8140 /* 6192 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule306Enabled),
8141 /* 6195 */ // MIs[0] root
8142 /* 6195 */ // No operand predicates
8143 /* 6195 */ // MIs[0] x
8144 /* 6195 */ // No operand predicates
8145 /* 6195 */ // MIs[0] undef
8146 /* 6195 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
8147 /* 6199 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
8148 /* 6203 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner53),
8149 /* 6207 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8150 /* 6209 */ // Combiner Rule #306: merge_of_x_and_undef
8151 /* 6209 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ANYEXT),
8152 /* 6212 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
8153 /* 6214 */ GIR_RootToRootCopy, /*OpIdx*/1, // x
8154 /* 6216 */ GIR_EraseRootFromParent_Done,
8155 /* 6217 */ // Label 291: @6217
8156 /* 6217 */ GIM_Try, /*On fail goto*//*Label 292*/ GIMT_Encode4(6258), // Rule ID 437 //
8157 /* 6222 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule307Enabled),
8158 /* 6225 */ // MIs[0] root
8159 /* 6225 */ // No operand predicates
8160 /* 6225 */ // MIs[0] x
8161 /* 6225 */ // No operand predicates
8162 /* 6225 */ // MIs[0] zero
8163 /* 6225 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
8164 /* 6229 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
8165 /* 6233 */ // MIs[1] Operand 1
8166 /* 6233 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0),
8167 /* 6244 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner54),
8168 /* 6248 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8169 /* 6250 */ // Combiner Rule #307: merge_of_x_and_zero
8170 /* 6250 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ZEXT),
8171 /* 6253 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
8172 /* 6255 */ GIR_RootToRootCopy, /*OpIdx*/1, // x
8173 /* 6257 */ GIR_EraseRootFromParent_Done,
8174 /* 6258 */ // Label 292: @6258
8175 /* 6258 */ GIM_Reject,
8176 /* 6259 */ // Label 290: @6259
8177 /* 6259 */ GIM_Reject,
8178 /* 6260 */ // Label 15: @6260
8179 /* 6260 */ GIM_Try, /*On fail goto*//*Label 293*/ GIMT_Encode4(6331),
8180 /* 6265 */ GIM_CheckNumOperandsGE, /*MI*/0, /*Expected*/2,
8181 /* 6268 */ GIM_Try, /*On fail goto*//*Label 294*/ GIMT_Encode4(6286), // Rule ID 112 //
8182 /* 6273 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule86Enabled),
8183 /* 6276 */ // MIs[0] root
8184 /* 6276 */ // No operand predicates
8185 /* 6276 */ // MIs[0] srcs
8186 /* 6276 */ // No operand predicates
8187 /* 6276 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner8),
8188 /* 6280 */ // Combiner Rule #86: propagate_undef_all_ops_build_vector
8189 /* 6280 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
8190 /* 6283 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
8191 /* 6285 */ GIR_EraseRootFromParent_Done,
8192 /* 6286 */ // Label 294: @6286
8193 /* 6286 */ GIM_Try, /*On fail goto*//*Label 295*/ GIMT_Encode4(6297), // Rule ID 77 //
8194 /* 6291 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule73Enabled),
8195 /* 6294 */ // MIs[0] dst
8196 /* 6294 */ // No operand predicates
8197 /* 6294 */ // MIs[0] srcs
8198 /* 6294 */ // No operand predicates
8199 /* 6294 */ // Combiner Rule #73: extract_all_elts_from_build_vector
8200 /* 6294 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner26),
8201 /* 6297 */ // Label 295: @6297
8202 /* 6297 */ GIM_Try, /*On fail goto*//*Label 296*/ GIMT_Encode4(6308), // Rule ID 152 //
8203 /* 6302 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule107Enabled),
8204 /* 6305 */ // MIs[0] build_vector
8205 /* 6305 */ // No operand predicates
8206 /* 6305 */ // MIs[0] srcs
8207 /* 6305 */ // No operand predicates
8208 /* 6305 */ // Combiner Rule #107: buildvector_identity_fold_bv
8209 /* 6305 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner34),
8210 /* 6308 */ // Label 296: @6308
8211 /* 6308 */ GIM_Try, /*On fail goto*//*Label 297*/ GIMT_Encode4(6319), // Rule ID 428 //
8212 /* 6313 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule298Enabled),
8213 /* 6316 */ // MIs[0] dst
8214 /* 6316 */ // No operand predicates
8215 /* 6316 */ // MIs[0] unused
8216 /* 6316 */ // No operand predicates
8217 /* 6316 */ // Combiner Rule #298: combine_use_vector_truncate
8218 /* 6316 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner113),
8219 /* 6319 */ // Label 297: @6319
8220 /* 6319 */ GIM_Try, /*On fail goto*//*Label 298*/ GIMT_Encode4(6330), // Rule ID 438 //
8221 /* 6324 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule308Enabled),
8222 /* 6327 */ // MIs[0] dst
8223 /* 6327 */ // No operand predicates
8224 /* 6327 */ // MIs[0] unused
8225 /* 6327 */ // No operand predicates
8226 /* 6327 */ // Combiner Rule #308: combine_build_unmerge
8227 /* 6327 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner121),
8228 /* 6330 */ // Label 298: @6330
8229 /* 6330 */ GIM_Reject,
8230 /* 6331 */ // Label 293: @6331
8231 /* 6331 */ GIM_Reject,
8232 /* 6332 */ // Label 16: @6332
8233 /* 6332 */ GIM_Try, /*On fail goto*//*Label 299*/ GIMT_Encode4(6346), // Rule ID 153 //
8234 /* 6337 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule108Enabled),
8235 /* 6340 */ GIM_CheckNumOperandsGE, /*MI*/0, /*Expected*/2,
8236 /* 6343 */ // MIs[0] build_vector
8237 /* 6343 */ // No operand predicates
8238 /* 6343 */ // MIs[0] srcs
8239 /* 6343 */ // No operand predicates
8240 /* 6343 */ // Combiner Rule #108: buildvector_identity_fold_bvt
8241 /* 6343 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner34),
8242 /* 6346 */ // Label 299: @6346
8243 /* 6346 */ GIM_Reject,
8244 /* 6347 */ // Label 17: @6347
8245 /* 6347 */ GIM_Try, /*On fail goto*//*Label 300*/ GIMT_Encode4(6361), // Rule ID 421 //
8246 /* 6352 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule291Enabled),
8247 /* 6355 */ GIM_CheckNumOperandsGE, /*MI*/0, /*Expected*/2,
8248 /* 6358 */ // MIs[0] dst
8249 /* 6358 */ // No operand predicates
8250 /* 6358 */ // MIs[0] srcs
8251 /* 6358 */ // No operand predicates
8252 /* 6358 */ // Combiner Rule #291: combine_concat_vector
8253 /* 6358 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner106),
8254 /* 6361 */ // Label 300: @6361
8255 /* 6361 */ GIM_Reject,
8256 /* 6362 */ // Label 18: @6362
8257 /* 6362 */ GIM_Try, /*On fail goto*//*Label 301*/ GIMT_Encode4(6394), // Rule ID 143 //
8258 /* 6367 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule99Enabled),
8259 /* 6370 */ // MIs[0] dst
8260 /* 6370 */ // No operand predicates
8261 /* 6370 */ // MIs[0] t
8262 /* 6370 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8263 /* 6374 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_INTTOPTR),
8264 /* 6378 */ // MIs[1] ptr
8265 /* 6378 */ // No operand predicates
8266 /* 6378 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner15),
8267 /* 6382 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8268 /* 6384 */ // Combiner Rule #99: i2p_to_p2i_same_size
8269 /* 6384 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::COPY),
8270 /* 6387 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
8271 /* 6389 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // ptr
8272 /* 6393 */ GIR_EraseRootFromParent_Done,
8273 /* 6394 */ // Label 301: @6394
8274 /* 6394 */ GIM_Try, /*On fail goto*//*Label 302*/ GIMT_Encode4(6426), // Rule ID 144 //
8275 /* 6399 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule100Enabled),
8276 /* 6402 */ // MIs[0] dst
8277 /* 6402 */ // No operand predicates
8278 /* 6402 */ // MIs[0] t
8279 /* 6402 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8280 /* 6406 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_INTTOPTR),
8281 /* 6410 */ // MIs[1] ptr
8282 /* 6410 */ // No operand predicates
8283 /* 6410 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner16),
8284 /* 6414 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8285 /* 6416 */ // Combiner Rule #100: i2p_to_p2i_zext
8286 /* 6416 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ZEXT),
8287 /* 6419 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
8288 /* 6421 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // ptr
8289 /* 6425 */ GIR_EraseRootFromParent_Done,
8290 /* 6426 */ // Label 302: @6426
8291 /* 6426 */ GIM_Try, /*On fail goto*//*Label 303*/ GIMT_Encode4(6458), // Rule ID 145 //
8292 /* 6431 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule101Enabled),
8293 /* 6434 */ // MIs[0] dst
8294 /* 6434 */ // No operand predicates
8295 /* 6434 */ // MIs[0] t
8296 /* 6434 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8297 /* 6438 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_INTTOPTR),
8298 /* 6442 */ // MIs[1] ptr
8299 /* 6442 */ // No operand predicates
8300 /* 6442 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner17),
8301 /* 6446 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8302 /* 6448 */ // Combiner Rule #101: i2p_to_p2i_trunc
8303 /* 6448 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_TRUNC),
8304 /* 6451 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
8305 /* 6453 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // ptr
8306 /* 6457 */ GIR_EraseRootFromParent_Done,
8307 /* 6458 */ // Label 303: @6458
8308 /* 6458 */ GIM_Try, /*On fail goto*//*Label 304*/ GIMT_Encode4(6482), // Rule ID 101 //
8309 /* 6463 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule83Enabled),
8310 /* 6466 */ // MIs[0] dst
8311 /* 6466 */ // No operand predicates
8312 /* 6466 */ // MIs[0] __unary_undef_to_undef_match_0.x
8313 /* 6466 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8314 /* 6470 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
8315 /* 6474 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8316 /* 6476 */ // Combiner Rule #83: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[3]]
8317 /* 6476 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
8318 /* 6479 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
8319 /* 6481 */ GIR_EraseRootFromParent_Done,
8320 /* 6482 */ // Label 304: @6482
8321 /* 6482 */ GIM_Reject,
8322 /* 6483 */ // Label 19: @6483
8323 /* 6483 */ GIM_Try, /*On fail goto*//*Label 305*/ GIMT_Encode4(6516), // Rule ID 142 //
8324 /* 6488 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule98Enabled),
8325 /* 6491 */ // MIs[0] dst
8326 /* 6491 */ // No operand predicates
8327 /* 6491 */ // MIs[0] mid
8328 /* 6491 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8329 /* 6495 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_PTRTOINT),
8330 /* 6499 */ // MIs[1] x
8331 /* 6499 */ // No operand predicates
8332 /* 6499 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner14),
8333 /* 6503 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
8334 /* 6508 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8335 /* 6510 */ // Combiner Rule #98: p2i_to_i2p
8336 /* 6510 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
8337 /* 6515 */ GIR_EraseRootFromParent_Done,
8338 /* 6516 */ // Label 305: @6516
8339 /* 6516 */ GIM_Try, /*On fail goto*//*Label 306*/ GIMT_Encode4(6540), // Rule ID 102 //
8340 /* 6521 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule83Enabled),
8341 /* 6524 */ // MIs[0] dst
8342 /* 6524 */ // No operand predicates
8343 /* 6524 */ // MIs[0] __unary_undef_to_undef_match_0.x
8344 /* 6524 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8345 /* 6528 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
8346 /* 6532 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8347 /* 6534 */ // Combiner Rule #83: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[4]]
8348 /* 6534 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
8349 /* 6537 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
8350 /* 6539 */ GIR_EraseRootFromParent_Done,
8351 /* 6540 */ // Label 306: @6540
8352 /* 6540 */ GIM_Reject,
8353 /* 6541 */ // Label 20: @6541
8354 /* 6541 */ GIM_Try, /*On fail goto*//*Label 307*/ GIMT_Encode4(6574), // Rule ID 156 //
8355 /* 6546 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule111Enabled),
8356 /* 6549 */ // MIs[0] dst
8357 /* 6549 */ // No operand predicates
8358 /* 6549 */ // MIs[0] src1
8359 /* 6549 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8360 /* 6553 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BITCAST),
8361 /* 6557 */ // MIs[1] src0
8362 /* 6557 */ // No operand predicates
8363 /* 6557 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner14),
8364 /* 6561 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
8365 /* 6566 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8366 /* 6568 */ // Combiner Rule #111: bitcast_bitcast_fold
8367 /* 6568 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
8368 /* 6573 */ GIR_EraseRootFromParent_Done,
8369 /* 6574 */ // Label 307: @6574
8370 /* 6574 */ GIM_Try, /*On fail goto*//*Label 308*/ GIMT_Encode4(6606), // Rule ID 157 //
8371 /* 6579 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule112Enabled),
8372 /* 6582 */ // MIs[0] dst
8373 /* 6582 */ // No operand predicates
8374 /* 6582 */ // MIs[0] src1
8375 /* 6582 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8376 /* 6586 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BITCAST),
8377 /* 6590 */ // MIs[1] src0
8378 /* 6590 */ // No operand predicates
8379 /* 6590 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner19),
8380 /* 6594 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8381 /* 6596 */ // Combiner Rule #112: bitcast_bitcast_to_bitcast
8382 /* 6596 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_BITCAST),
8383 /* 6599 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
8384 /* 6601 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // src0
8385 /* 6605 */ GIR_EraseRootFromParent_Done,
8386 /* 6606 */ // Label 308: @6606
8387 /* 6606 */ GIM_Try, /*On fail goto*//*Label 309*/ GIMT_Encode4(6630), // Rule ID 99 //
8388 /* 6611 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule83Enabled),
8389 /* 6614 */ // MIs[0] dst
8390 /* 6614 */ // No operand predicates
8391 /* 6614 */ // MIs[0] __unary_undef_to_undef_match_0.x
8392 /* 6614 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8393 /* 6618 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
8394 /* 6622 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8395 /* 6624 */ // Combiner Rule #83: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[1]]
8396 /* 6624 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
8397 /* 6627 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
8398 /* 6629 */ GIR_EraseRootFromParent_Done,
8399 /* 6630 */ // Label 309: @6630
8400 /* 6630 */ GIM_Reject,
8401 /* 6631 */ // Label 21: @6631
8402 /* 6631 */ GIM_Try, /*On fail goto*//*Label 310*/ GIMT_Encode4(6654), // Rule ID 51 //
8403 /* 6636 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule47Enabled),
8404 /* 6639 */ // MIs[0] root
8405 /* 6639 */ // No operand predicates
8406 /* 6639 */ // MIs[0] src
8407 /* 6639 */ // No operand predicates
8408 /* 6639 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner7),
8409 /* 6643 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8410 /* 6648 */ // Combiner Rule #47: freeze_of_non_undef_non_poison
8411 /* 6648 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8412 /* 6653 */ GIR_EraseRootFromParent_Done,
8413 /* 6654 */ // Label 310: @6654
8414 /* 6654 */ GIM_Try, /*On fail goto*//*Label 311*/ GIMT_Encode4(6683), // Rule ID 25 //
8415 /* 6659 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule24Enabled),
8416 /* 6662 */ // MIs[0] dst
8417 /* 6662 */ // No operand predicates
8418 /* 6662 */ // MIs[0] src
8419 /* 6662 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8420 /* 6666 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FREEZE),
8421 /* 6670 */ // MIs[1] __idempotent_prop_match_0.x
8422 /* 6670 */ // No operand predicates
8423 /* 6670 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8424 /* 6675 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8425 /* 6677 */ // Combiner Rule #24: idempotent_prop @ [__idempotent_prop_match_0[0]]
8426 /* 6677 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8427 /* 6682 */ GIR_EraseRootFromParent_Done,
8428 /* 6683 */ // Label 311: @6683
8429 /* 6683 */ GIM_Try, /*On fail goto*//*Label 312*/ GIMT_Encode4(6694), // Rule ID 52 //
8430 /* 6688 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule48Enabled),
8431 /* 6691 */ // MIs[0] dst
8432 /* 6691 */ // No operand predicates
8433 /* 6691 */ // MIs[0] src
8434 /* 6691 */ // No operand predicates
8435 /* 6691 */ // Combiner Rule #48: push_freeze_to_prevent_poison_from_propagating
8436 /* 6691 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner16),
8437 /* 6694 */ // Label 312: @6694
8438 /* 6694 */ GIM_Reject,
8439 /* 6695 */ // Label 22: @6695
8440 /* 6695 */ GIM_Try, /*On fail goto*//*Label 313*/ GIMT_Encode4(6706), // Rule ID 218 //
8441 /* 6700 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule168Enabled),
8442 /* 6703 */ // MIs[0] dst
8443 /* 6703 */ // No operand predicates
8444 /* 6703 */ // MIs[0] src0
8445 /* 6703 */ // No operand predicates
8446 /* 6703 */ // Combiner Rule #168: constant_fold_intrinsic_trunc
8447 /* 6703 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner63),
8448 /* 6706 */ // Label 313: @6706
8449 /* 6706 */ GIM_Reject,
8450 /* 6707 */ // Label 23: @6707
8451 /* 6707 */ GIM_Try, /*On fail goto*//*Label 314*/ GIMT_Encode4(6718), // Rule ID 219 //
8452 /* 6712 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule169Enabled),
8453 /* 6715 */ // MIs[0] dst
8454 /* 6715 */ // No operand predicates
8455 /* 6715 */ // MIs[0] src0
8456 /* 6715 */ // No operand predicates
8457 /* 6715 */ // Combiner Rule #169: constant_fold_intrinsic_round
8458 /* 6715 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner63),
8459 /* 6718 */ // Label 314: @6718
8460 /* 6718 */ GIM_Reject,
8461 /* 6719 */ // Label 24: @6719
8462 /* 6719 */ GIM_Try, /*On fail goto*//*Label 315*/ GIMT_Encode4(6730), // Rule ID 220 //
8463 /* 6724 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule170Enabled),
8464 /* 6727 */ // MIs[0] dst
8465 /* 6727 */ // No operand predicates
8466 /* 6727 */ // MIs[0] src0
8467 /* 6727 */ // No operand predicates
8468 /* 6727 */ // Combiner Rule #170: constant_fold_intrinsic_roundeven
8469 /* 6727 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner63),
8470 /* 6730 */ // Label 315: @6730
8471 /* 6730 */ GIM_Reject,
8472 /* 6731 */ // Label 25: @6731
8473 /* 6731 */ GIM_Try, /*On fail goto*//*Label 316*/ GIMT_Encode4(6742), // Rule ID 78 //
8474 /* 6736 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule74Enabled),
8475 /* 6739 */ // MIs[0] root
8476 /* 6739 */ // No operand predicates
8477 /* 6739 */ // MIs[0] mi.ptr
8478 /* 6739 */ // No operand predicates
8479 /* 6739 */ // Combiner Rule #74: extending_loads @ [mi[0]]
8480 /* 6739 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner27),
8481 /* 6742 */ // Label 316: @6742
8482 /* 6742 */ GIM_Try_CheckFeatures, /*On fail goto*//*Label 317*/ GIMT_Encode4(6755), GIMT_Encode2(GIFBS_HasNEON), // Rule ID 495 //
8483 /* 6749 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule359Enabled),
8484 /* 6752 */ // MIs[0] value
8485 /* 6752 */ // No operand predicates
8486 /* 6752 */ // MIs[0] addr
8487 /* 6752 */ // No operand predicates
8488 /* 6752 */ // Combiner Rule #359: deinterleave_load
8489 /* 6752 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner139),
8490 /* 6755 */ // Label 317: @6755
8491 /* 6755 */ GIM_Reject,
8492 /* 6756 */ // Label 26: @6756
8493 /* 6756 */ GIM_Try, /*On fail goto*//*Label 318*/ GIMT_Encode4(6767), // Rule ID 79 //
8494 /* 6761 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule74Enabled),
8495 /* 6764 */ // MIs[0] root
8496 /* 6764 */ // No operand predicates
8497 /* 6764 */ // MIs[0] mi.ptr
8498 /* 6764 */ // No operand predicates
8499 /* 6764 */ // Combiner Rule #74: extending_loads @ [mi[1]]
8500 /* 6764 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner27),
8501 /* 6767 */ // Label 318: @6767
8502 /* 6767 */ GIM_Reject,
8503 /* 6768 */ // Label 27: @6768
8504 /* 6768 */ GIM_Try, /*On fail goto*//*Label 319*/ GIMT_Encode4(6779), // Rule ID 80 //
8505 /* 6773 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule74Enabled),
8506 /* 6776 */ // MIs[0] root
8507 /* 6776 */ // No operand predicates
8508 /* 6776 */ // MIs[0] mi.ptr
8509 /* 6776 */ // No operand predicates
8510 /* 6776 */ // Combiner Rule #74: extending_loads @ [mi[2]]
8511 /* 6776 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner27),
8512 /* 6779 */ // Label 319: @6779
8513 /* 6779 */ GIM_Reject,
8514 /* 6780 */ // Label 28: @6780
8515 /* 6780 */ GIM_Try, /*On fail goto*//*Label 320*/ GIMT_Encode4(6803), // Rule ID 114 //
8516 /* 6785 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule88Enabled),
8517 /* 6788 */ // MIs[0] val
8518 /* 6788 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/0, // MIs[1]
8519 /* 6792 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
8520 /* 6796 */ // MIs[0] ptr
8521 /* 6796 */ // No operand predicates
8522 /* 6796 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner10),
8523 /* 6800 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8524 /* 6802 */ // Combiner Rule #88: erase_undef_store
8525 /* 6802 */ GIR_EraseRootFromParent_Done,
8526 /* 6803 */ // Label 320: @6803
8527 /* 6803 */ GIM_Try, /*On fail goto*//*Label 321*/ GIMT_Encode4(6814), // Rule ID 496 //
8528 /* 6808 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule360Enabled),
8529 /* 6811 */ // MIs[0] value
8530 /* 6811 */ // No operand predicates
8531 /* 6811 */ // MIs[0] addr
8532 /* 6811 */ // No operand predicates
8533 /* 6811 */ // Combiner Rule #360: interleave_store
8534 /* 6811 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner140),
8535 /* 6814 */ // Label 321: @6814
8536 /* 6814 */ GIM_Reject,
8537 /* 6815 */ // Label 29: @6815
8538 /* 6815 */ GIM_Try, /*On fail goto*//*Label 322*/ GIMT_Encode4(6836), // Rule ID 65 //
8539 /* 6820 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule61Enabled),
8540 /* 6823 */ // MIs[0] root
8541 /* 6823 */ // No operand predicates
8542 /* 6823 */ // MIs[0] select
8543 /* 6823 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8544 /* 6827 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SELECT),
8545 /* 6831 */ // MIs[1] cond
8546 /* 6831 */ // No operand predicates
8547 /* 6831 */ // MIs[1] true
8548 /* 6831 */ // No operand predicates
8549 /* 6831 */ // MIs[1] false
8550 /* 6831 */ // No operand predicates
8551 /* 6831 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8552 /* 6833 */ // Combiner Rule #61: select_of_anyext
8553 /* 6833 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner20),
8554 /* 6836 */ // Label 322: @6836
8555 /* 6836 */ GIM_Try, /*On fail goto*//*Label 323*/ GIMT_Encode4(6857), // Rule ID 60 //
8556 /* 6841 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule56Enabled),
8557 /* 6844 */ // MIs[0] root
8558 /* 6844 */ // No operand predicates
8559 /* 6844 */ // MIs[0] second
8560 /* 6844 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8561 /* 6848 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ANYEXT),
8562 /* 6852 */ // MIs[1] src
8563 /* 6852 */ // No operand predicates
8564 /* 6852 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8565 /* 6854 */ // Combiner Rule #56: anyext_of_anyext
8566 /* 6854 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner18),
8567 /* 6857 */ // Label 323: @6857
8568 /* 6857 */ GIM_Try, /*On fail goto*//*Label 324*/ GIMT_Encode4(6878), // Rule ID 62 //
8569 /* 6862 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule58Enabled),
8570 /* 6865 */ // MIs[0] root
8571 /* 6865 */ // No operand predicates
8572 /* 6865 */ // MIs[0] second
8573 /* 6865 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8574 /* 6869 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SEXT),
8575 /* 6873 */ // MIs[1] src
8576 /* 6873 */ // No operand predicates
8577 /* 6873 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8578 /* 6875 */ // Combiner Rule #58: anyext_of_sext
8579 /* 6875 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner18),
8580 /* 6878 */ // Label 324: @6878
8581 /* 6878 */ GIM_Try, /*On fail goto*//*Label 325*/ GIMT_Encode4(6899), // Rule ID 61 //
8582 /* 6883 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule57Enabled),
8583 /* 6886 */ // MIs[0] root
8584 /* 6886 */ // No operand predicates
8585 /* 6886 */ // MIs[0] second
8586 /* 6886 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8587 /* 6890 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ZEXT),
8588 /* 6894 */ // MIs[1] src
8589 /* 6894 */ // No operand predicates
8590 /* 6894 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8591 /* 6896 */ // Combiner Rule #57: anyext_of_zext
8592 /* 6896 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner18),
8593 /* 6899 */ // Label 325: @6899
8594 /* 6899 */ GIM_Try, /*On fail goto*//*Label 326*/ GIMT_Encode4(6923), // Rule ID 100 //
8595 /* 6904 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule83Enabled),
8596 /* 6907 */ // MIs[0] dst
8597 /* 6907 */ // No operand predicates
8598 /* 6907 */ // MIs[0] __unary_undef_to_undef_match_0.x
8599 /* 6907 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8600 /* 6911 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
8601 /* 6915 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8602 /* 6917 */ // Combiner Rule #83: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[2]]
8603 /* 6917 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
8604 /* 6920 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
8605 /* 6922 */ GIR_EraseRootFromParent_Done,
8606 /* 6923 */ // Label 326: @6923
8607 /* 6923 */ GIM_Try, /*On fail goto*//*Label 327*/ GIMT_Encode4(6934), // Rule ID 146 //
8608 /* 6928 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule102Enabled),
8609 /* 6931 */ // MIs[0] dst
8610 /* 6931 */ // No operand predicates
8611 /* 6931 */ // MIs[0] src
8612 /* 6931 */ // No operand predicates
8613 /* 6931 */ // Combiner Rule #102: anyext_trunc_fold
8614 /* 6931 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner33),
8615 /* 6934 */ // Label 327: @6934
8616 /* 6934 */ GIM_Try, /*On fail goto*//*Label 328*/ GIMT_Encode4(6945), // Rule ID 315 //
8617 /* 6939 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
8618 /* 6942 */ // MIs[0] dst
8619 /* 6942 */ // No operand predicates
8620 /* 6942 */ // MIs[0] d.src
8621 /* 6942 */ // No operand predicates
8622 /* 6942 */ // Combiner Rule #216: constant_fold_cast_op @ [d[2]]
8623 /* 6942 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner82),
8624 /* 6945 */ // Label 328: @6945
8625 /* 6945 */ GIM_Reject,
8626 /* 6946 */ // Label 30: @6946
8627 /* 6946 */ GIM_Try, /*On fail goto*//*Label 329*/ GIMT_Encode4(6978), // Rule ID 447 //
8628 /* 6951 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule317Enabled),
8629 /* 6954 */ // MIs[0] dst
8630 /* 6954 */ // No operand predicates
8631 /* 6954 */ // MIs[0] min
8632 /* 6954 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8633 /* 6958 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_UMIN),
8634 /* 6962 */ // MIs[1] x
8635 /* 6962 */ // No operand predicates
8636 /* 6962 */ // MIs[1] y
8637 /* 6962 */ // No operand predicates
8638 /* 6962 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner56),
8639 /* 6966 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8640 /* 6968 */ // Combiner Rule #317: trunc_usatu
8641 /* 6968 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_TRUNC_USAT_U),
8642 /* 6971 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
8643 /* 6973 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
8644 /* 6977 */ GIR_EraseRootFromParent_Done,
8645 /* 6978 */ // Label 329: @6978
8646 /* 6978 */ GIM_Try, /*On fail goto*//*Label 330*/ GIMT_Encode4(6999), // Rule ID 66 //
8647 /* 6983 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule62Enabled),
8648 /* 6986 */ // MIs[0] root
8649 /* 6986 */ // No operand predicates
8650 /* 6986 */ // MIs[0] select
8651 /* 6986 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8652 /* 6990 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SELECT),
8653 /* 6994 */ // MIs[1] cond
8654 /* 6994 */ // No operand predicates
8655 /* 6994 */ // MIs[1] true
8656 /* 6994 */ // No operand predicates
8657 /* 6994 */ // MIs[1] false
8658 /* 6994 */ // No operand predicates
8659 /* 6994 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8660 /* 6996 */ // Combiner Rule #62: select_of_truncate
8661 /* 6996 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner20),
8662 /* 6999 */ // Label 330: @6999
8663 /* 6999 */ GIM_Try, /*On fail goto*//*Label 331*/ GIMT_Encode4(7028), // Rule ID 68 //
8664 /* 7004 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule64Enabled),
8665 /* 7007 */ // MIs[0] root
8666 /* 7007 */ // No operand predicates
8667 /* 7007 */ // MIs[0] binop
8668 /* 7007 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8669 /* 7011 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
8670 /* 7015 */ // MIs[1] x
8671 /* 7015 */ // No operand predicates
8672 /* 7015 */ // MIs[1] const
8673 /* 7015 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
8674 /* 7019 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
8675 /* 7023 */ // MIs[2] imm
8676 /* 7023 */ // No operand predicates
8677 /* 7023 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
8678 /* 7025 */ // Combiner Rule #64: narrow_binop_add
8679 /* 7025 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner22),
8680 /* 7028 */ // Label 331: @7028
8681 /* 7028 */ GIM_Try, /*On fail goto*//*Label 332*/ GIMT_Encode4(7057), // Rule ID 71 //
8682 /* 7033 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule67Enabled),
8683 /* 7036 */ // MIs[0] root
8684 /* 7036 */ // No operand predicates
8685 /* 7036 */ // MIs[0] binop
8686 /* 7036 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8687 /* 7040 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_AND),
8688 /* 7044 */ // MIs[1] x
8689 /* 7044 */ // No operand predicates
8690 /* 7044 */ // MIs[1] const
8691 /* 7044 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
8692 /* 7048 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
8693 /* 7052 */ // MIs[2] imm
8694 /* 7052 */ // No operand predicates
8695 /* 7052 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
8696 /* 7054 */ // Combiner Rule #67: narrow_binop_and
8697 /* 7054 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner22),
8698 /* 7057 */ // Label 332: @7057
8699 /* 7057 */ GIM_Try, /*On fail goto*//*Label 333*/ GIMT_Encode4(7086), // Rule ID 70 //
8700 /* 7062 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule66Enabled),
8701 /* 7065 */ // MIs[0] root
8702 /* 7065 */ // No operand predicates
8703 /* 7065 */ // MIs[0] binop
8704 /* 7065 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8705 /* 7069 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_MUL),
8706 /* 7073 */ // MIs[1] x
8707 /* 7073 */ // No operand predicates
8708 /* 7073 */ // MIs[1] const
8709 /* 7073 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
8710 /* 7077 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
8711 /* 7081 */ // MIs[2] imm
8712 /* 7081 */ // No operand predicates
8713 /* 7081 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
8714 /* 7083 */ // Combiner Rule #66: narrow_binop_mul
8715 /* 7083 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner22),
8716 /* 7086 */ // Label 333: @7086
8717 /* 7086 */ GIM_Try, /*On fail goto*//*Label 334*/ GIMT_Encode4(7115), // Rule ID 72 //
8718 /* 7091 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule68Enabled),
8719 /* 7094 */ // MIs[0] root
8720 /* 7094 */ // No operand predicates
8721 /* 7094 */ // MIs[0] binop
8722 /* 7094 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8723 /* 7098 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_OR),
8724 /* 7102 */ // MIs[1] x
8725 /* 7102 */ // No operand predicates
8726 /* 7102 */ // MIs[1] const
8727 /* 7102 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
8728 /* 7106 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
8729 /* 7110 */ // MIs[2] imm
8730 /* 7110 */ // No operand predicates
8731 /* 7110 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
8732 /* 7112 */ // Combiner Rule #68: narrow_binop_or
8733 /* 7112 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner22),
8734 /* 7115 */ // Label 334: @7115
8735 /* 7115 */ GIM_Try, /*On fail goto*//*Label 335*/ GIMT_Encode4(7144), // Rule ID 69 //
8736 /* 7120 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule65Enabled),
8737 /* 7123 */ // MIs[0] root
8738 /* 7123 */ // No operand predicates
8739 /* 7123 */ // MIs[0] binop
8740 /* 7123 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8741 /* 7127 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
8742 /* 7131 */ // MIs[1] x
8743 /* 7131 */ // No operand predicates
8744 /* 7131 */ // MIs[1] const
8745 /* 7131 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
8746 /* 7135 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
8747 /* 7139 */ // MIs[2] imm
8748 /* 7139 */ // No operand predicates
8749 /* 7139 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
8750 /* 7141 */ // Combiner Rule #65: narrow_binop_sub
8751 /* 7141 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner22),
8752 /* 7144 */ // Label 335: @7144
8753 /* 7144 */ GIM_Try, /*On fail goto*//*Label 336*/ GIMT_Encode4(7173), // Rule ID 73 //
8754 /* 7149 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule69Enabled),
8755 /* 7152 */ // MIs[0] root
8756 /* 7152 */ // No operand predicates
8757 /* 7152 */ // MIs[0] binop
8758 /* 7152 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8759 /* 7156 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_XOR),
8760 /* 7160 */ // MIs[1] x
8761 /* 7160 */ // No operand predicates
8762 /* 7160 */ // MIs[1] const
8763 /* 7160 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
8764 /* 7164 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
8765 /* 7168 */ // MIs[2] imm
8766 /* 7168 */ // No operand predicates
8767 /* 7168 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
8768 /* 7170 */ // Combiner Rule #69: narrow_binop_xor
8769 /* 7170 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner22),
8770 /* 7173 */ // Label 336: @7173
8771 /* 7173 */ GIM_Try, /*On fail goto*//*Label 337*/ GIMT_Encode4(7197), // Rule ID 67 //
8772 /* 7178 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule63Enabled),
8773 /* 7181 */ // MIs[0] root
8774 /* 7181 */ // No operand predicates
8775 /* 7181 */ // MIs[0] bv
8776 /* 7181 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8777 /* 7185 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR),
8778 /* 7189 */ GIM_CheckNumOperandsGE, /*MI*/1, /*Expected*/2,
8779 /* 7192 */ // MIs[1] unused
8780 /* 7192 */ // No operand predicates
8781 /* 7192 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8782 /* 7194 */ // Combiner Rule #63: buildvector_of_truncate
8783 /* 7194 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner21),
8784 /* 7197 */ // Label 337: @7197
8785 /* 7197 */ GIM_Try, /*On fail goto*//*Label 338*/ GIMT_Encode4(7218), // Rule ID 55 //
8786 /* 7202 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule51Enabled),
8787 /* 7205 */ // MIs[0] root
8788 /* 7205 */ // No operand predicates
8789 /* 7205 */ // MIs[0] ext
8790 /* 7205 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8791 /* 7209 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ANYEXT),
8792 /* 7213 */ // MIs[1] src
8793 /* 7213 */ // No operand predicates
8794 /* 7213 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8795 /* 7215 */ // Combiner Rule #51: truncate_of_anyext
8796 /* 7215 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner17),
8797 /* 7218 */ // Label 338: @7218
8798 /* 7218 */ GIM_Try, /*On fail goto*//*Label 339*/ GIMT_Encode4(7239), // Rule ID 54 //
8799 /* 7223 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule50Enabled),
8800 /* 7226 */ // MIs[0] root
8801 /* 7226 */ // No operand predicates
8802 /* 7226 */ // MIs[0] ext
8803 /* 7226 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8804 /* 7230 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SEXT),
8805 /* 7234 */ // MIs[1] src
8806 /* 7234 */ // No operand predicates
8807 /* 7234 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8808 /* 7236 */ // Combiner Rule #50: truncate_of_sext
8809 /* 7236 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner17),
8810 /* 7239 */ // Label 339: @7239
8811 /* 7239 */ GIM_Try, /*On fail goto*//*Label 340*/ GIMT_Encode4(7260), // Rule ID 53 //
8812 /* 7244 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule49Enabled),
8813 /* 7247 */ // MIs[0] root
8814 /* 7247 */ // No operand predicates
8815 /* 7247 */ // MIs[0] ext
8816 /* 7247 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8817 /* 7251 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ZEXT),
8818 /* 7255 */ // MIs[1] src
8819 /* 7255 */ // No operand predicates
8820 /* 7255 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8821 /* 7257 */ // Combiner Rule #49: truncate_of_zext
8822 /* 7257 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner17),
8823 /* 7260 */ // Label 340: @7260
8824 /* 7260 */ GIM_Try, /*On fail goto*//*Label 341*/ GIMT_Encode4(7284), // Rule ID 98 //
8825 /* 7265 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule83Enabled),
8826 /* 7268 */ // MIs[0] dst
8827 /* 7268 */ // No operand predicates
8828 /* 7268 */ // MIs[0] __unary_undef_to_undef_match_0.x
8829 /* 7268 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8830 /* 7272 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
8831 /* 7276 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8832 /* 7278 */ // Combiner Rule #83: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[0]]
8833 /* 7278 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
8834 /* 7281 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
8835 /* 7283 */ GIR_EraseRootFromParent_Done,
8836 /* 7284 */ // Label 341: @7284
8837 /* 7284 */ GIM_Try, /*On fail goto*//*Label 342*/ GIMT_Encode4(7305), // Rule ID 74 //
8838 /* 7289 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule70Enabled),
8839 /* 7292 */ // MIs[0] root
8840 /* 7292 */ // No operand predicates
8841 /* 7292 */ // MIs[0] int
8842 /* 7292 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8843 /* 7296 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
8844 /* 7300 */ // MIs[1] imm
8845 /* 7300 */ // No operand predicates
8846 /* 7300 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8847 /* 7302 */ // Combiner Rule #70: integer_of_truncate
8848 /* 7302 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner23),
8849 /* 7305 */ // Label 342: @7305
8850 /* 7305 */ GIM_Try, /*On fail goto*//*Label 343*/ GIMT_Encode4(7316), // Rule ID 154 //
8851 /* 7310 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule109Enabled),
8852 /* 7313 */ // MIs[0] dst
8853 /* 7313 */ // No operand predicates
8854 /* 7313 */ // MIs[0] src
8855 /* 7313 */ // No operand predicates
8856 /* 7313 */ // Combiner Rule #109: trunc_buildvector_fold
8857 /* 7313 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner35),
8858 /* 7316 */ // Label 343: @7316
8859 /* 7316 */ GIM_Try, /*On fail goto*//*Label 344*/ GIMT_Encode4(7327), // Rule ID 155 //
8860 /* 7321 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule110Enabled),
8861 /* 7324 */ // MIs[0] dst
8862 /* 7324 */ // No operand predicates
8863 /* 7324 */ // MIs[0] src
8864 /* 7324 */ // No operand predicates
8865 /* 7324 */ // Combiner Rule #110: trunc_lshr_buildvector_fold
8866 /* 7324 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner36),
8867 /* 7327 */ // Label 344: @7327
8868 /* 7327 */ GIM_Try, /*On fail goto*//*Label 345*/ GIMT_Encode4(7338), // Rule ID 207 //
8869 /* 7332 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule157Enabled),
8870 /* 7335 */ // MIs[0] dst
8871 /* 7335 */ // No operand predicates
8872 /* 7335 */ // MIs[0] src
8873 /* 7335 */ // No operand predicates
8874 /* 7335 */ // Combiner Rule #157: trunc_shift
8875 /* 7335 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner60),
8876 /* 7338 */ // Label 345: @7338
8877 /* 7338 */ GIM_Try, /*On fail goto*//*Label 346*/ GIMT_Encode4(7349), // Rule ID 445 //
8878 /* 7343 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule315Enabled),
8879 /* 7346 */ // MIs[0] dst
8880 /* 7346 */ // No operand predicates
8881 /* 7346 */ // MIs[0] src
8882 /* 7346 */ // No operand predicates
8883 /* 7346 */ // Combiner Rule #315: trunc_ssats
8884 /* 7346 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner124),
8885 /* 7349 */ // Label 346: @7349
8886 /* 7349 */ GIM_Try, /*On fail goto*//*Label 347*/ GIMT_Encode4(7360), // Rule ID 446 //
8887 /* 7354 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule316Enabled),
8888 /* 7357 */ // MIs[0] dst
8889 /* 7357 */ // No operand predicates
8890 /* 7357 */ // MIs[0] src
8891 /* 7357 */ // No operand predicates
8892 /* 7357 */ // Combiner Rule #316: trunc_ssatu
8893 /* 7357 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner125),
8894 /* 7360 */ // Label 347: @7360
8895 /* 7360 */ GIM_Reject,
8896 /* 7361 */ // Label 31: @7361
8897 /* 7361 */ GIM_Try, /*On fail goto*//*Label 348*/ GIMT_Encode4(7393), // Rule ID 448 //
8898 /* 7366 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule318Enabled),
8899 /* 7369 */ // MIs[0] dst
8900 /* 7369 */ // No operand predicates
8901 /* 7369 */ // MIs[0] src
8902 /* 7369 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8903 /* 7373 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FPTOUI),
8904 /* 7377 */ // MIs[1] x
8905 /* 7377 */ // No operand predicates
8906 /* 7377 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner57),
8907 /* 7381 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8908 /* 7383 */ // Combiner Rule #318: truncusatu_to_fptouisat
8909 /* 7383 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FPTOUI_SAT),
8910 /* 7386 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
8911 /* 7388 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
8912 /* 7392 */ GIR_EraseRootFromParent_Done,
8913 /* 7393 */ // Label 348: @7393
8914 /* 7393 */ GIM_Reject,
8915 /* 7394 */ // Label 32: @7394
8916 /* 7394 */ GIM_Try, /*On fail goto*//*Label 349*/ GIMT_Encode4(7415), // Rule ID 59 //
8917 /* 7399 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule55Enabled),
8918 /* 7402 */ // MIs[0] root
8919 /* 7402 */ // No operand predicates
8920 /* 7402 */ // MIs[0] second
8921 /* 7402 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8922 /* 7406 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ANYEXT),
8923 /* 7410 */ // MIs[1] src
8924 /* 7410 */ // No operand predicates
8925 /* 7410 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8926 /* 7412 */ // Combiner Rule #55: sext_of_anyext
8927 /* 7412 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner18),
8928 /* 7415 */ // Label 349: @7415
8929 /* 7415 */ GIM_Try, /*On fail goto*//*Label 350*/ GIMT_Encode4(7436), // Rule ID 58 //
8930 /* 7420 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule54Enabled),
8931 /* 7423 */ // MIs[0] root
8932 /* 7423 */ // No operand predicates
8933 /* 7423 */ // MIs[0] second
8934 /* 7423 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8935 /* 7427 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SEXT),
8936 /* 7431 */ // MIs[1] src
8937 /* 7431 */ // No operand predicates
8938 /* 7431 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8939 /* 7433 */ // Combiner Rule #54: sext_of_sext
8940 /* 7433 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner18),
8941 /* 7436 */ // Label 350: @7436
8942 /* 7436 */ GIM_Try, /*On fail goto*//*Label 351*/ GIMT_Encode4(7457), // Rule ID 422 //
8943 /* 7441 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule292Enabled),
8944 /* 7444 */ // MIs[0] root
8945 /* 7444 */ // No operand predicates
8946 /* 7444 */ // MIs[0] src
8947 /* 7444 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8948 /* 7448 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_TRUNC),
8949 /* 7452 */ // MIs[1] x
8950 /* 7452 */ // No operand predicates
8951 /* 7452 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8952 /* 7454 */ // Combiner Rule #292: sext_trunc
8953 /* 7454 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner107),
8954 /* 7457 */ // Label 351: @7457
8955 /* 7457 */ GIM_Try, /*On fail goto*//*Label 352*/ GIMT_Encode4(7468), // Rule ID 314 //
8956 /* 7462 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
8957 /* 7465 */ // MIs[0] dst
8958 /* 7465 */ // No operand predicates
8959 /* 7465 */ // MIs[0] d.src
8960 /* 7465 */ // No operand predicates
8961 /* 7465 */ // Combiner Rule #216: constant_fold_cast_op @ [d[1]]
8962 /* 7465 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner82),
8963 /* 7468 */ // Label 352: @7468
8964 /* 7468 */ GIM_Reject,
8965 /* 7469 */ // Label 33: @7469
8966 /* 7469 */ GIM_Try, /*On fail goto*//*Label 353*/ GIMT_Encode4(7501), // Rule ID 197 //
8967 /* 7474 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule147Enabled),
8968 /* 7477 */ // MIs[0] dst
8969 /* 7477 */ // No operand predicates
8970 /* 7477 */ // MIs[0] tmp
8971 /* 7477 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8972 /* 7481 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ANYEXT),
8973 /* 7485 */ // MIs[1] src
8974 /* 7485 */ // No operand predicates
8975 /* 7485 */ // MIs[0] amt
8976 /* 7485 */ // No operand predicates
8977 /* 7485 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner30),
8978 /* 7489 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8979 /* 7491 */ // Combiner Rule #147: redundant_aext_sext_inreg
8980 /* 7491 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SEXT),
8981 /* 7494 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
8982 /* 7496 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // src
8983 /* 7500 */ GIR_EraseRootFromParent_Done,
8984 /* 7501 */ // Label 353: @7501
8985 /* 7501 */ GIM_Try, /*On fail goto*//*Label 354*/ GIMT_Encode4(7533), // Rule ID 196 //
8986 /* 7506 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule146Enabled),
8987 /* 7509 */ // MIs[0] dst
8988 /* 7509 */ // No operand predicates
8989 /* 7509 */ // MIs[0] tmp
8990 /* 7509 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8991 /* 7513 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ZEXT),
8992 /* 7517 */ // MIs[1] src
8993 /* 7517 */ // No operand predicates
8994 /* 7517 */ // MIs[0] amt
8995 /* 7517 */ // No operand predicates
8996 /* 7517 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner30),
8997 /* 7521 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8998 /* 7523 */ // Combiner Rule #146: redundant_zext_sext_inreg
8999 /* 7523 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SEXT),
9000 /* 7526 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
9001 /* 7528 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // src
9002 /* 7532 */ GIR_EraseRootFromParent_Done,
9003 /* 7533 */ // Label 354: @7533
9004 /* 7533 */ GIM_Try, /*On fail goto*//*Label 355*/ GIMT_Encode4(7556), // Rule ID 195 //
9005 /* 7538 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule145Enabled),
9006 /* 7541 */ // MIs[0] dst
9007 /* 7541 */ // No operand predicates
9008 /* 7541 */ // MIs[0] src
9009 /* 7541 */ // No operand predicates
9010 /* 7541 */ // MIs[0] sz
9011 /* 7541 */ // No operand predicates
9012 /* 7541 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner29),
9013 /* 7545 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9014 /* 7550 */ // Combiner Rule #145: redundant_sext_inreg
9015 /* 7550 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9016 /* 7555 */ GIR_EraseRootFromParent_Done,
9017 /* 7556 */ // Label 355: @7556
9018 /* 7556 */ GIM_Try, /*On fail goto*//*Label 356*/ GIMT_Encode4(7577), // Rule ID 63 //
9019 /* 7561 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule59Enabled),
9020 /* 7564 */ // MIs[0] dst
9021 /* 7564 */ // No operand predicates
9022 /* 7564 */ // MIs[0] x
9023 /* 7564 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9024 /* 7568 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SEXT_INREG),
9025 /* 7572 */ // MIs[1] src
9026 /* 7572 */ // No operand predicates
9027 /* 7572 */ // MIs[1] a
9028 /* 7572 */ // No operand predicates
9029 /* 7572 */ // MIs[0] b
9030 /* 7572 */ // No operand predicates
9031 /* 7572 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9032 /* 7574 */ // Combiner Rule #59: sext_inreg_of_sext_inreg
9033 /* 7574 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner19),
9034 /* 7577 */ // Label 356: @7577
9035 /* 7577 */ GIM_Try, /*On fail goto*//*Label 357*/ GIMT_Encode4(7617), // Rule ID 199 //
9036 /* 7582 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule149Enabled),
9037 /* 7585 */ // MIs[0] dst
9038 /* 7585 */ // No operand predicates
9039 /* 7585 */ // MIs[0] tmp4
9040 /* 7585 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9041 /* 7589 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ANYEXT),
9042 /* 7593 */ // MIs[1] tmp2
9043 /* 7593 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
9044 /* 7597 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_UNMERGE_VALUES),
9045 /* 7601 */ GIM_CheckNumOperands, /*MI*/2, /*Expected*/3,
9046 /* 7604 */ // MIs[2] tmp3
9047 /* 7604 */ // No operand predicates
9048 /* 7604 */ // MIs[2] tmp1
9049 /* 7604 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/2, /*OpIdx*/2, // MIs[3]
9050 /* 7608 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_ANYEXT),
9051 /* 7612 */ // MIs[3] src
9052 /* 7612 */ // No operand predicates
9053 /* 7612 */ // MIs[0] amt
9054 /* 7612 */ // No operand predicates
9055 /* 7612 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
9056 /* 7614 */ // Combiner Rule #149: redundant_aext_unmerge_sext_inreg
9057 /* 7614 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner54),
9058 /* 7617 */ // Label 357: @7617
9059 /* 7617 */ GIM_Try, /*On fail goto*//*Label 358*/ GIMT_Encode4(7657), // Rule ID 198 //
9060 /* 7622 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule148Enabled),
9061 /* 7625 */ // MIs[0] dst
9062 /* 7625 */ // No operand predicates
9063 /* 7625 */ // MIs[0] tmp4
9064 /* 7625 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9065 /* 7629 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ZEXT),
9066 /* 7633 */ // MIs[1] tmp2
9067 /* 7633 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
9068 /* 7637 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_UNMERGE_VALUES),
9069 /* 7641 */ GIM_CheckNumOperands, /*MI*/2, /*Expected*/3,
9070 /* 7644 */ // MIs[2] tmp3
9071 /* 7644 */ // No operand predicates
9072 /* 7644 */ // MIs[2] tmp1
9073 /* 7644 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/2, /*OpIdx*/2, // MIs[3]
9074 /* 7648 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_ZEXT),
9075 /* 7652 */ // MIs[3] src
9076 /* 7652 */ // No operand predicates
9077 /* 7652 */ // MIs[0] amt
9078 /* 7652 */ // No operand predicates
9079 /* 7652 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
9080 /* 7654 */ // Combiner Rule #148: redundant_zext_unmerge_sext_inreg
9081 /* 7654 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner54),
9082 /* 7657 */ // Label 358: @7657
9083 /* 7657 */ GIM_Try, /*On fail goto*//*Label 359*/ GIMT_Encode4(7668), // Rule ID 183 //
9084 /* 7662 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule133Enabled),
9085 /* 7665 */ // MIs[0] dst
9086 /* 7665 */ // No operand predicates
9087 /* 7665 */ // MIs[0] src
9088 /* 7665 */ // No operand predicates
9089 /* 7665 */ // MIs[0] sz
9090 /* 7665 */ // No operand predicates
9091 /* 7665 */ // Combiner Rule #133: sext_inreg_of_load
9092 /* 7665 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner49),
9093 /* 7668 */ // Label 359: @7668
9094 /* 7668 */ GIM_Try, /*On fail goto*//*Label 360*/ GIMT_Encode4(7679), // Rule ID 204 //
9095 /* 7673 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule154Enabled),
9096 /* 7676 */ // MIs[0] dst
9097 /* 7676 */ // No operand predicates
9098 /* 7676 */ // MIs[0] src
9099 /* 7676 */ // No operand predicates
9100 /* 7676 */ // MIs[0] imm
9101 /* 7676 */ // No operand predicates
9102 /* 7676 */ // Combiner Rule #154: sext_inreg_to_zext_inreg
9103 /* 7676 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner59),
9104 /* 7679 */ // Label 360: @7679
9105 /* 7679 */ GIM_Try, /*On fail goto*//*Label 361*/ GIMT_Encode4(7690), // Rule ID 275 //
9106 /* 7684 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule209Enabled),
9107 /* 7687 */ // MIs[0] dst
9108 /* 7687 */ // No operand predicates
9109 /* 7687 */ // MIs[0] src
9110 /* 7687 */ // No operand predicates
9111 /* 7687 */ // MIs[0] sz
9112 /* 7687 */ // No operand predicates
9113 /* 7687 */ // Combiner Rule #209: bitfield_extract_from_sext_inreg
9114 /* 7687 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner75),
9115 /* 7690 */ // Label 361: @7690
9116 /* 7690 */ GIM_Reject,
9117 /* 7691 */ // Label 34: @7691
9118 /* 7691 */ GIM_Try, /*On fail goto*//*Label 362*/ GIMT_Encode4(7708), // Rule ID 424 //
9119 /* 7696 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule294Enabled),
9120 /* 7699 */ GIM_MIFlags, /*MI*/0, GIMT_Encode4(MachineInstr::NonNeg),
9121 /* 7705 */ // MIs[0] root
9122 /* 7705 */ // No operand predicates
9123 /* 7705 */ // MIs[0] x
9124 /* 7705 */ // No operand predicates
9125 /* 7705 */ // Combiner Rule #294: nneg_zext
9126 /* 7705 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner109),
9127 /* 7708 */ // Label 362: @7708
9128 /* 7708 */ GIM_Try, /*On fail goto*//*Label 363*/ GIMT_Encode4(7729), // Rule ID 64 //
9129 /* 7713 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule60Enabled),
9130 /* 7716 */ // MIs[0] root
9131 /* 7716 */ // No operand predicates
9132 /* 7716 */ // MIs[0] select
9133 /* 7716 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9134 /* 7720 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SELECT),
9135 /* 7724 */ // MIs[1] cond
9136 /* 7724 */ // No operand predicates
9137 /* 7724 */ // MIs[1] true
9138 /* 7724 */ // No operand predicates
9139 /* 7724 */ // MIs[1] false
9140 /* 7724 */ // No operand predicates
9141 /* 7724 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9142 /* 7726 */ // Combiner Rule #60: select_of_zext
9143 /* 7726 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner20),
9144 /* 7729 */ // Label 363: @7729
9145 /* 7729 */ GIM_Try, /*On fail goto*//*Label 364*/ GIMT_Encode4(7756), // Rule ID 423 //
9146 /* 7734 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule293Enabled),
9147 /* 7737 */ // MIs[0] root
9148 /* 7737 */ // No operand predicates
9149 /* 7737 */ // MIs[0] src
9150 /* 7737 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9151 /* 7741 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_TRUNC),
9152 /* 7745 */ GIM_MIFlags, /*MI*/1, GIMT_Encode4(MachineInstr::NoUWrap),
9153 /* 7751 */ // MIs[1] x
9154 /* 7751 */ // No operand predicates
9155 /* 7751 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9156 /* 7753 */ // Combiner Rule #293: zext_trunc
9157 /* 7753 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner108),
9158 /* 7756 */ // Label 364: @7756
9159 /* 7756 */ GIM_Try, /*On fail goto*//*Label 365*/ GIMT_Encode4(7777), // Rule ID 57 //
9160 /* 7761 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule53Enabled),
9161 /* 7764 */ // MIs[0] root
9162 /* 7764 */ // No operand predicates
9163 /* 7764 */ // MIs[0] second
9164 /* 7764 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9165 /* 7768 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ANYEXT),
9166 /* 7772 */ // MIs[1] src
9167 /* 7772 */ // No operand predicates
9168 /* 7772 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9169 /* 7774 */ // Combiner Rule #53: zext_of_anyext
9170 /* 7774 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner18),
9171 /* 7777 */ // Label 365: @7777
9172 /* 7777 */ GIM_Try, /*On fail goto*//*Label 366*/ GIMT_Encode4(7798), // Rule ID 56 //
9173 /* 7782 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule52Enabled),
9174 /* 7785 */ // MIs[0] root
9175 /* 7785 */ // No operand predicates
9176 /* 7785 */ // MIs[0] second
9177 /* 7785 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9178 /* 7789 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ZEXT),
9179 /* 7793 */ // MIs[1] src
9180 /* 7793 */ // No operand predicates
9181 /* 7793 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9182 /* 7795 */ // Combiner Rule #52: zext_of_zext
9183 /* 7795 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner18),
9184 /* 7798 */ // Label 366: @7798
9185 /* 7798 */ GIM_Try, /*On fail goto*//*Label 367*/ GIMT_Encode4(7809), // Rule ID 203 //
9186 /* 7803 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule153Enabled),
9187 /* 7806 */ // MIs[0] dst
9188 /* 7806 */ // No operand predicates
9189 /* 7806 */ // MIs[0] src
9190 /* 7806 */ // No operand predicates
9191 /* 7806 */ // Combiner Rule #153: zext_trunc_fold
9192 /* 7806 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner58),
9193 /* 7809 */ // Label 367: @7809
9194 /* 7809 */ GIM_Try, /*On fail goto*//*Label 368*/ GIMT_Encode4(7820), // Rule ID 313 //
9195 /* 7814 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
9196 /* 7817 */ // MIs[0] dst
9197 /* 7817 */ // No operand predicates
9198 /* 7817 */ // MIs[0] d.src
9199 /* 7817 */ // No operand predicates
9200 /* 7817 */ // Combiner Rule #216: constant_fold_cast_op @ [d[0]]
9201 /* 7817 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner82),
9202 /* 7820 */ // Label 368: @7820
9203 /* 7820 */ GIM_Reject,
9204 /* 7821 */ // Label 35: @7821
9205 /* 7821 */ GIM_Try, /*On fail goto*//*Label 369*/ GIMT_Encode4(7899), // Rule ID 273 //
9206 /* 7826 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule207Enabled),
9207 /* 7829 */ // MIs[0] dst
9208 /* 7829 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
9209 /* 7833 */ // MIs[0] binop_dst
9210 /* 7833 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9211 /* 7837 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
9212 /* 7841 */ // MIs[1] x
9213 /* 7841 */ // No operand predicates
9214 /* 7841 */ // MIs[1] c1
9215 /* 7841 */ // No operand predicates
9216 /* 7841 */ // MIs[0] c2
9217 /* 7841 */ // No operand predicates
9218 /* 7841 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner43),
9219 /* 7845 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9220 /* 7847 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
9221 /* 7850 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
9222 /* 7853 */ // Combiner Rule #207: commute_shift_add
9223 /* 7853 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SHL),
9224 /* 7856 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
9225 /* 7861 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
9226 /* 7865 */ GIR_RootToRootCopy, /*OpIdx*/2, // c2
9227 /* 7867 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SHL),
9228 /* 7871 */ GIR_AddTempRegister, /*InsnID*/1, /*TempRegID*/1, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
9229 /* 7876 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/2, // c1
9230 /* 7880 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/2, // c2
9231 /* 7884 */ GIR_BuildMI, /*InsnID*/2, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ADD),
9232 /* 7888 */ GIR_Copy, /*NewInsnID*/2, /*OldInsnID*/0, /*OpIdx*/0, // dst
9233 /* 7892 */ GIR_AddSimpleTempRegister, /*InsnID*/2, /*TempRegID*/0,
9234 /* 7895 */ GIR_AddSimpleTempRegister, /*InsnID*/2, /*TempRegID*/1,
9235 /* 7898 */ GIR_EraseRootFromParent_Done,
9236 /* 7899 */ // Label 369: @7899
9237 /* 7899 */ GIM_Try, /*On fail goto*//*Label 370*/ GIMT_Encode4(7977), // Rule ID 274 //
9238 /* 7904 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule208Enabled),
9239 /* 7907 */ // MIs[0] dst
9240 /* 7907 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
9241 /* 7911 */ // MIs[0] binop_dst
9242 /* 7911 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9243 /* 7915 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_OR),
9244 /* 7919 */ // MIs[1] x
9245 /* 7919 */ // No operand predicates
9246 /* 7919 */ // MIs[1] c1
9247 /* 7919 */ // No operand predicates
9248 /* 7919 */ // MIs[0] c2
9249 /* 7919 */ // No operand predicates
9250 /* 7919 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner43),
9251 /* 7923 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9252 /* 7925 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
9253 /* 7928 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
9254 /* 7931 */ // Combiner Rule #208: commute_shift_or
9255 /* 7931 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SHL),
9256 /* 7934 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
9257 /* 7939 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
9258 /* 7943 */ GIR_RootToRootCopy, /*OpIdx*/2, // c2
9259 /* 7945 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SHL),
9260 /* 7949 */ GIR_AddTempRegister, /*InsnID*/1, /*TempRegID*/1, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
9261 /* 7954 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/2, // c1
9262 /* 7958 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/2, // c2
9263 /* 7962 */ GIR_BuildMI, /*InsnID*/2, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR),
9264 /* 7966 */ GIR_Copy, /*NewInsnID*/2, /*OldInsnID*/0, /*OpIdx*/0, // dst
9265 /* 7970 */ GIR_AddSimpleTempRegister, /*InsnID*/2, /*TempRegID*/0,
9266 /* 7973 */ GIR_AddSimpleTempRegister, /*InsnID*/2, /*TempRegID*/1,
9267 /* 7976 */ GIR_EraseRootFromParent_Done,
9268 /* 7977 */ // Label 370: @7977
9269 /* 7977 */ GIM_Try, /*On fail goto*//*Label 371*/ GIMT_Encode4(8000), // Rule ID 133 //
9270 /* 7982 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule96Enabled),
9271 /* 7985 */ // MIs[0] dst
9272 /* 7985 */ // No operand predicates
9273 /* 7985 */ // MIs[0] zero
9274 /* 7985 */ // No operand predicates
9275 /* 7985 */ // MIs[0] rhs
9276 /* 7985 */ // No operand predicates
9277 /* 7985 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner13),
9278 /* 7989 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9279 /* 7994 */ // Combiner Rule #96: binop_left_to_zero @ [__binop_left_to_zero_match_0[0]]
9280 /* 7994 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9281 /* 7999 */ GIR_EraseRootFromParent_Done,
9282 /* 8000 */ // Label 371: @8000
9283 /* 8000 */ GIM_Try, /*On fail goto*//*Label 372*/ GIMT_Encode4(8035), // Rule ID 48 //
9284 /* 8005 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule44Enabled),
9285 /* 8008 */ GIM_MIFlags, /*MI*/0, GIMT_Encode4(MachineInstr::NoSWrap),
9286 /* 8014 */ // MIs[0] root
9287 /* 8014 */ // No operand predicates
9288 /* 8014 */ // MIs[0] left
9289 /* 8014 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9290 /* 8018 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_VSCALE),
9291 /* 8022 */ // MIs[1] imm
9292 /* 8022 */ // No operand predicates
9293 /* 8022 */ // MIs[0] x
9294 /* 8022 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
9295 /* 8026 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
9296 /* 8030 */ // MIs[2] imm1
9297 /* 8030 */ // No operand predicates
9298 /* 8030 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
9299 /* 8032 */ // Combiner Rule #44: shl_of_vscale
9300 /* 8032 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner14),
9301 /* 8035 */ // Label 372: @8035
9302 /* 8035 */ GIM_Try, /*On fail goto*//*Label 373*/ GIMT_Encode4(8056), // Rule ID 91 //
9303 /* 8040 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule80Enabled),
9304 /* 8043 */ // MIs[0] dst
9305 /* 8043 */ // No operand predicates
9306 /* 8043 */ // MIs[0] __binop_left_undef_to_zero_match_0.x
9307 /* 8043 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9308 /* 8047 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
9309 /* 8051 */ // MIs[0] __binop_left_undef_to_zero_match_0.y
9310 /* 8051 */ // No operand predicates
9311 /* 8051 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9312 /* 8053 */ // Combiner Rule #80: binop_left_undef_to_zero @ [__binop_left_undef_to_zero_match_0[0]]
9313 /* 8053 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner31),
9314 /* 8056 */ // Label 373: @8056
9315 /* 8056 */ GIM_Try, /*On fail goto*//*Label 374*/ GIMT_Encode4(8080), // Rule ID 94 //
9316 /* 8061 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule81Enabled),
9317 /* 8064 */ // MIs[0] dst
9318 /* 8064 */ // No operand predicates
9319 /* 8064 */ // MIs[0] __binop_right_undef_to_undef_match_0.x
9320 /* 8064 */ // No operand predicates
9321 /* 8064 */ // MIs[0] __binop_right_undef_to_undef_match_0.y
9322 /* 8064 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
9323 /* 8068 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
9324 /* 8072 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9325 /* 8074 */ // Combiner Rule #81: binop_right_undef_to_undef @ [__binop_right_undef_to_undef_match_0[0]]
9326 /* 8074 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
9327 /* 8077 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
9328 /* 8079 */ GIR_EraseRootFromParent_Done,
9329 /* 8080 */ // Label 374: @8080
9330 /* 8080 */ GIM_Try, /*On fail goto*//*Label 375*/ GIMT_Encode4(8103), // Rule ID 123 //
9331 /* 8085 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
9332 /* 8088 */ // MIs[0] dst
9333 /* 8088 */ // No operand predicates
9334 /* 8088 */ // MIs[0] lhs
9335 /* 8088 */ // No operand predicates
9336 /* 8088 */ // MIs[0] Operand 2
9337 /* 8088 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
9338 /* 8092 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9339 /* 8097 */ // Combiner Rule #93: right_identity_zero @ [__right_identity_zero_match_0[4]]
9340 /* 8097 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9341 /* 8102 */ GIR_EraseRootFromParent_Done,
9342 /* 8103 */ // Label 375: @8103
9343 /* 8103 */ GIM_Try, /*On fail goto*//*Label 376*/ GIMT_Encode4(8114), // Rule ID 168 //
9344 /* 8108 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule120Enabled),
9345 /* 8111 */ // MIs[0] root
9346 /* 8111 */ // No operand predicates
9347 /* 8111 */ // MIs[0] mi.shifted
9348 /* 8111 */ // No operand predicates
9349 /* 8111 */ // MIs[0] mi.amt
9350 /* 8111 */ // No operand predicates
9351 /* 8111 */ // Combiner Rule #120: shifts_too_big @ [mi[0]]
9352 /* 8111 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner39),
9353 /* 8114 */ // Label 376: @8114
9354 /* 8114 */ GIM_Try, /*On fail goto*//*Label 377*/ GIMT_Encode4(8125), // Rule ID 184 //
9355 /* 8119 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule134Enabled),
9356 /* 8122 */ // MIs[0] dst
9357 /* 8122 */ // No operand predicates
9358 /* 8122 */ // MIs[0] src0
9359 /* 8122 */ // No operand predicates
9360 /* 8122 */ // MIs[0] src1
9361 /* 8122 */ // No operand predicates
9362 /* 8122 */ // Combiner Rule #134: reduce_shl_of_extend
9363 /* 8122 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner50),
9364 /* 8125 */ // Label 377: @8125
9365 /* 8125 */ GIM_Try, /*On fail goto*//*Label 378*/ GIMT_Encode4(8136), // Rule ID 247 //
9366 /* 8130 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule193Enabled),
9367 /* 8133 */ // MIs[0] d
9368 /* 8133 */ // No operand predicates
9369 /* 8133 */ // MIs[0] mi.base
9370 /* 8133 */ // No operand predicates
9371 /* 8133 */ // MIs[0] mi.amt
9372 /* 8133 */ // No operand predicates
9373 /* 8133 */ // Combiner Rule #193: shift_immed_chain @ [mi[0]]
9374 /* 8133 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner69),
9375 /* 8136 */ // Label 378: @8136
9376 /* 8136 */ GIM_Try, /*On fail goto*//*Label 379*/ GIMT_Encode4(8147), // Rule ID 252 //
9377 /* 8141 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
9378 /* 8144 */ // MIs[0] d
9379 /* 8144 */ // No operand predicates
9380 /* 8144 */ // MIs[0] mi.base
9381 /* 8144 */ // No operand predicates
9382 /* 8144 */ // MIs[0] mi.amt
9383 /* 8144 */ // No operand predicates
9384 /* 8144 */ // Combiner Rule #194: shift_of_shifted_logic_chain @ [mi[0]]
9385 /* 8144 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner70),
9386 /* 8147 */ // Label 379: @8147
9387 /* 8147 */ GIM_Try, /*On fail goto*//*Label 380*/ GIMT_Encode4(8158), // Rule ID 288 //
9388 /* 8152 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule213Enabled),
9389 /* 8155 */ // MIs[0] d
9390 /* 8155 */ // No operand predicates
9391 /* 8155 */ // MIs[0] mi.src0
9392 /* 8155 */ // No operand predicates
9393 /* 8155 */ // MIs[0] mi.src1
9394 /* 8155 */ // No operand predicates
9395 /* 8155 */ // Combiner Rule #213: constant_fold_binop @ [mi[7]]
9396 /* 8155 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner79),
9397 /* 8158 */ // Label 380: @8158
9398 /* 8158 */ GIM_Try, /*On fail goto*//*Label 381*/ GIMT_Encode4(8169), // Rule ID 354 //
9399 /* 8163 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule236Enabled),
9400 /* 8166 */ // MIs[0] root
9401 /* 8166 */ // No operand predicates
9402 /* 8166 */ // MIs[0] mi.x
9403 /* 8166 */ // No operand predicates
9404 /* 8166 */ // MIs[0] mi.y
9405 /* 8166 */ // No operand predicates
9406 /* 8166 */ // Combiner Rule #236: fold_binop_into_select_a @ [mi[12]]
9407 /* 8166 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
9408 /* 8169 */ // Label 381: @8169
9409 /* 8169 */ GIM_Reject,
9410 /* 8170 */ // Label 36: @8170
9411 /* 8170 */ GIM_Try, /*On fail goto*//*Label 382*/ GIMT_Encode4(8259), // Rule ID 470 //
9412 /* 8175 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule337Enabled),
9413 /* 8178 */ // MIs[0] dst
9414 /* 8178 */ // No operand predicates
9415 /* 8178 */ // MIs[0] sum
9416 /* 8178 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9417 /* 8182 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
9418 /* 8186 */ // MIs[1] inner
9419 /* 8186 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
9420 /* 8190 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ADD),
9421 /* 8194 */ // MIs[2] ext1
9422 /* 8194 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/2, /*OpIdx*/1, // MIs[3]
9423 /* 8198 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_ZEXT),
9424 /* 8202 */ // MIs[3] x
9425 /* 8202 */ GIM_RecordRegType, /*MI*/3, /*Op*/1, /*TempTypeIdx*/255,
9426 /* 8206 */ // MIs[2] ext2
9427 /* 8206 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/4, /*MI*/2, /*OpIdx*/2, // MIs[4]
9428 /* 8210 */ GIM_CheckOpcode, /*MI*/4, GIMT_Encode2(TargetOpcode::G_ZEXT),
9429 /* 8214 */ // MIs[4] y
9430 /* 8214 */ // No operand predicates
9431 /* 8214 */ // MIs[1] Operand 2
9432 /* 8214 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/2, 1,
9433 /* 8218 */ // MIs[0] Operand 2
9434 /* 8218 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 1,
9435 /* 8222 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner65),
9436 /* 8226 */ GIM_CheckIsSafeToFold, /*NumInsns*/4,
9437 /* 8228 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
9438 /* 8231 */ // Combiner Rule #337: avgceil_u_match
9439 /* 8231 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UAVGCEIL),
9440 /* 8234 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
9441 /* 8239 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/3, /*OpIdx*/1, // x
9442 /* 8243 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/4, /*OpIdx*/1, // y
9443 /* 8247 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ZEXT),
9444 /* 8251 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
9445 /* 8255 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
9446 /* 8258 */ GIR_EraseRootFromParent_Done,
9447 /* 8259 */ // Label 382: @8259
9448 /* 8259 */ GIM_Try, /*On fail goto*//*Label 383*/ GIMT_Encode4(8336), // Rule ID 468 //
9449 /* 8264 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule335Enabled),
9450 /* 8267 */ // MIs[0] dst
9451 /* 8267 */ // No operand predicates
9452 /* 8267 */ // MIs[0] sum
9453 /* 8267 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9454 /* 8271 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
9455 /* 8275 */ // MIs[1] ext1
9456 /* 8275 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
9457 /* 8279 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ZEXT),
9458 /* 8283 */ // MIs[2] x
9459 /* 8283 */ GIM_RecordRegType, /*MI*/2, /*Op*/1, /*TempTypeIdx*/255,
9460 /* 8287 */ // MIs[1] ext2
9461 /* 8287 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/1, /*OpIdx*/2, // MIs[3]
9462 /* 8291 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_ZEXT),
9463 /* 8295 */ // MIs[3] y
9464 /* 8295 */ // No operand predicates
9465 /* 8295 */ // MIs[0] Operand 2
9466 /* 8295 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 1,
9467 /* 8299 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner63),
9468 /* 8303 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
9469 /* 8305 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
9470 /* 8308 */ // Combiner Rule #335: avgfloor_u_match
9471 /* 8308 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UAVGFLOOR),
9472 /* 8311 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
9473 /* 8316 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // x
9474 /* 8320 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/3, /*OpIdx*/1, // y
9475 /* 8324 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ZEXT),
9476 /* 8328 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
9477 /* 8332 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
9478 /* 8335 */ GIR_EraseRootFromParent_Done,
9479 /* 8336 */ // Label 383: @8336
9480 /* 8336 */ GIM_Try, /*On fail goto*//*Label 384*/ GIMT_Encode4(8359), // Rule ID 134 //
9481 /* 8341 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule96Enabled),
9482 /* 8344 */ // MIs[0] dst
9483 /* 8344 */ // No operand predicates
9484 /* 8344 */ // MIs[0] zero
9485 /* 8344 */ // No operand predicates
9486 /* 8344 */ // MIs[0] rhs
9487 /* 8344 */ // No operand predicates
9488 /* 8344 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner13),
9489 /* 8348 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9490 /* 8353 */ // Combiner Rule #96: binop_left_to_zero @ [__binop_left_to_zero_match_0[1]]
9491 /* 8353 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9492 /* 8358 */ GIR_EraseRootFromParent_Done,
9493 /* 8359 */ // Label 384: @8359
9494 /* 8359 */ GIM_Try, /*On fail goto*//*Label 385*/ GIMT_Encode4(8388), // Rule ID 451 //
9495 /* 8364 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule321Enabled),
9496 /* 8367 */ // MIs[0] dst
9497 /* 8367 */ // No operand predicates
9498 /* 8367 */ // MIs[0] d2
9499 /* 8367 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9500 /* 8371 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_TRUNC),
9501 /* 8375 */ // MIs[1] d1
9502 /* 8375 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
9503 /* 8379 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_LSHR),
9504 /* 8383 */ // MIs[2] x
9505 /* 8383 */ // No operand predicates
9506 /* 8383 */ // MIs[2] y
9507 /* 8383 */ // No operand predicates
9508 /* 8383 */ // MIs[0] z
9509 /* 8383 */ // No operand predicates
9510 /* 8383 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
9511 /* 8385 */ // Combiner Rule #321: lshr_of_trunc_of_lshr
9512 /* 8385 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner126),
9513 /* 8388 */ // Label 385: @8388
9514 /* 8388 */ GIM_Try, /*On fail goto*//*Label 386*/ GIMT_Encode4(8412), // Rule ID 96 //
9515 /* 8393 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule81Enabled),
9516 /* 8396 */ // MIs[0] dst
9517 /* 8396 */ // No operand predicates
9518 /* 8396 */ // MIs[0] __binop_right_undef_to_undef_match_0.x
9519 /* 8396 */ // No operand predicates
9520 /* 8396 */ // MIs[0] __binop_right_undef_to_undef_match_0.y
9521 /* 8396 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
9522 /* 8400 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
9523 /* 8404 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9524 /* 8406 */ // Combiner Rule #81: binop_right_undef_to_undef @ [__binop_right_undef_to_undef_match_0[2]]
9525 /* 8406 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
9526 /* 8409 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
9527 /* 8411 */ GIR_EraseRootFromParent_Done,
9528 /* 8412 */ // Label 386: @8412
9529 /* 8412 */ GIM_Try, /*On fail goto*//*Label 387*/ GIMT_Encode4(8435), // Rule ID 125 //
9530 /* 8417 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
9531 /* 8420 */ // MIs[0] dst
9532 /* 8420 */ // No operand predicates
9533 /* 8420 */ // MIs[0] lhs
9534 /* 8420 */ // No operand predicates
9535 /* 8420 */ // MIs[0] Operand 2
9536 /* 8420 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
9537 /* 8424 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9538 /* 8429 */ // Combiner Rule #93: right_identity_zero @ [__right_identity_zero_match_0[6]]
9539 /* 8429 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9540 /* 8434 */ GIR_EraseRootFromParent_Done,
9541 /* 8435 */ // Label 387: @8435
9542 /* 8435 */ GIM_Try, /*On fail goto*//*Label 388*/ GIMT_Encode4(8446), // Rule ID 170 //
9543 /* 8440 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule120Enabled),
9544 /* 8443 */ // MIs[0] root
9545 /* 8443 */ // No operand predicates
9546 /* 8443 */ // MIs[0] mi.shifted
9547 /* 8443 */ // No operand predicates
9548 /* 8443 */ // MIs[0] mi.amt
9549 /* 8443 */ // No operand predicates
9550 /* 8443 */ // Combiner Rule #120: shifts_too_big @ [mi[2]]
9551 /* 8443 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner39),
9552 /* 8446 */ // Label 388: @8446
9553 /* 8446 */ GIM_Try, /*On fail goto*//*Label 389*/ GIMT_Encode4(8457), // Rule ID 249 //
9554 /* 8451 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule193Enabled),
9555 /* 8454 */ // MIs[0] d
9556 /* 8454 */ // No operand predicates
9557 /* 8454 */ // MIs[0] mi.base
9558 /* 8454 */ // No operand predicates
9559 /* 8454 */ // MIs[0] mi.amt
9560 /* 8454 */ // No operand predicates
9561 /* 8454 */ // Combiner Rule #193: shift_immed_chain @ [mi[2]]
9562 /* 8454 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner69),
9563 /* 8457 */ // Label 389: @8457
9564 /* 8457 */ GIM_Try, /*On fail goto*//*Label 390*/ GIMT_Encode4(8468), // Rule ID 254 //
9565 /* 8462 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
9566 /* 8465 */ // MIs[0] d
9567 /* 8465 */ // No operand predicates
9568 /* 8465 */ // MIs[0] mi.base
9569 /* 8465 */ // No operand predicates
9570 /* 8465 */ // MIs[0] mi.amt
9571 /* 8465 */ // No operand predicates
9572 /* 8465 */ // Combiner Rule #194: shift_of_shifted_logic_chain @ [mi[2]]
9573 /* 8465 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner70),
9574 /* 8468 */ // Label 390: @8468
9575 /* 8468 */ GIM_Try, /*On fail goto*//*Label 391*/ GIMT_Encode4(8479), // Rule ID 278 //
9576 /* 8473 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule211Enabled),
9577 /* 8476 */ // MIs[0] dst
9578 /* 8476 */ // No operand predicates
9579 /* 8476 */ // MIs[0] root.src
9580 /* 8476 */ // No operand predicates
9581 /* 8476 */ // MIs[0] root.amt
9582 /* 8476 */ // No operand predicates
9583 /* 8476 */ // Combiner Rule #211: bitfield_extract_from_shr @ [root[1]]
9584 /* 8476 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner77),
9585 /* 8479 */ // Label 391: @8479
9586 /* 8479 */ GIM_Try, /*On fail goto*//*Label 392*/ GIMT_Encode4(8490), // Rule ID 280 //
9587 /* 8484 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule212Enabled),
9588 /* 8487 */ // MIs[0] dst
9589 /* 8487 */ // No operand predicates
9590 /* 8487 */ // MIs[0] root.src
9591 /* 8487 */ // No operand predicates
9592 /* 8487 */ // MIs[0] root.amt
9593 /* 8487 */ // No operand predicates
9594 /* 8487 */ // Combiner Rule #212: bitfield_extract_from_shr_and @ [root[1]]
9595 /* 8487 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner78),
9596 /* 8490 */ // Label 392: @8490
9597 /* 8490 */ GIM_Try, /*On fail goto*//*Label 393*/ GIMT_Encode4(8501), // Rule ID 285 //
9598 /* 8495 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule213Enabled),
9599 /* 8498 */ // MIs[0] d
9600 /* 8498 */ // No operand predicates
9601 /* 8498 */ // MIs[0] mi.src0
9602 /* 8498 */ // No operand predicates
9603 /* 8498 */ // MIs[0] mi.src1
9604 /* 8498 */ // No operand predicates
9605 /* 8498 */ // Combiner Rule #213: constant_fold_binop @ [mi[4]]
9606 /* 8498 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner79),
9607 /* 8501 */ // Label 393: @8501
9608 /* 8501 */ GIM_Try, /*On fail goto*//*Label 394*/ GIMT_Encode4(8512), // Rule ID 352 //
9609 /* 8506 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule236Enabled),
9610 /* 8509 */ // MIs[0] root
9611 /* 8509 */ // No operand predicates
9612 /* 8509 */ // MIs[0] mi.x
9613 /* 8509 */ // No operand predicates
9614 /* 8509 */ // MIs[0] mi.y
9615 /* 8509 */ // No operand predicates
9616 /* 8509 */ // Combiner Rule #236: fold_binop_into_select_a @ [mi[10]]
9617 /* 8509 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
9618 /* 8512 */ // Label 394: @8512
9619 /* 8512 */ GIM_Reject,
9620 /* 8513 */ // Label 37: @8513
9621 /* 8513 */ GIM_Try, /*On fail goto*//*Label 395*/ GIMT_Encode4(8602), // Rule ID 471 //
9622 /* 8518 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule338Enabled),
9623 /* 8521 */ // MIs[0] dst
9624 /* 8521 */ // No operand predicates
9625 /* 8521 */ // MIs[0] sum
9626 /* 8521 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9627 /* 8525 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
9628 /* 8529 */ // MIs[1] inner
9629 /* 8529 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
9630 /* 8533 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ADD),
9631 /* 8537 */ // MIs[2] ext1
9632 /* 8537 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/2, /*OpIdx*/1, // MIs[3]
9633 /* 8541 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_SEXT),
9634 /* 8545 */ // MIs[3] x
9635 /* 8545 */ GIM_RecordRegType, /*MI*/3, /*Op*/1, /*TempTypeIdx*/255,
9636 /* 8549 */ // MIs[2] ext2
9637 /* 8549 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/4, /*MI*/2, /*OpIdx*/2, // MIs[4]
9638 /* 8553 */ GIM_CheckOpcode, /*MI*/4, GIMT_Encode2(TargetOpcode::G_SEXT),
9639 /* 8557 */ // MIs[4] y
9640 /* 8557 */ // No operand predicates
9641 /* 8557 */ // MIs[1] Operand 2
9642 /* 8557 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/2, 1,
9643 /* 8561 */ // MIs[0] Operand 2
9644 /* 8561 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 1,
9645 /* 8565 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner66),
9646 /* 8569 */ GIM_CheckIsSafeToFold, /*NumInsns*/4,
9647 /* 8571 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
9648 /* 8574 */ // Combiner Rule #338: avgceil_s_match
9649 /* 8574 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SAVGCEIL),
9650 /* 8577 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
9651 /* 8582 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/3, /*OpIdx*/1, // x
9652 /* 8586 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/4, /*OpIdx*/1, // y
9653 /* 8590 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SEXT),
9654 /* 8594 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
9655 /* 8598 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
9656 /* 8601 */ GIR_EraseRootFromParent_Done,
9657 /* 8602 */ // Label 395: @8602
9658 /* 8602 */ GIM_Try, /*On fail goto*//*Label 396*/ GIMT_Encode4(8679), // Rule ID 469 //
9659 /* 8607 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule336Enabled),
9660 /* 8610 */ // MIs[0] dst
9661 /* 8610 */ // No operand predicates
9662 /* 8610 */ // MIs[0] sum
9663 /* 8610 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9664 /* 8614 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
9665 /* 8618 */ // MIs[1] ext1
9666 /* 8618 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
9667 /* 8622 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SEXT),
9668 /* 8626 */ // MIs[2] x
9669 /* 8626 */ GIM_RecordRegType, /*MI*/2, /*Op*/1, /*TempTypeIdx*/255,
9670 /* 8630 */ // MIs[1] ext2
9671 /* 8630 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/1, /*OpIdx*/2, // MIs[3]
9672 /* 8634 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_SEXT),
9673 /* 8638 */ // MIs[3] y
9674 /* 8638 */ // No operand predicates
9675 /* 8638 */ // MIs[0] Operand 2
9676 /* 8638 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 1,
9677 /* 8642 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner64),
9678 /* 8646 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
9679 /* 8648 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
9680 /* 8651 */ // Combiner Rule #336: avgfloor_s_match
9681 /* 8651 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SAVGFLOOR),
9682 /* 8654 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
9683 /* 8659 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // x
9684 /* 8663 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/3, /*OpIdx*/1, // y
9685 /* 8667 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SEXT),
9686 /* 8671 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
9687 /* 8675 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
9688 /* 8678 */ GIR_EraseRootFromParent_Done,
9689 /* 8679 */ // Label 396: @8679
9690 /* 8679 */ GIM_Try, /*On fail goto*//*Label 397*/ GIMT_Encode4(8702), // Rule ID 135 //
9691 /* 8684 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule96Enabled),
9692 /* 8687 */ // MIs[0] dst
9693 /* 8687 */ // No operand predicates
9694 /* 8687 */ // MIs[0] zero
9695 /* 8687 */ // No operand predicates
9696 /* 8687 */ // MIs[0] rhs
9697 /* 8687 */ // No operand predicates
9698 /* 8687 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner13),
9699 /* 8691 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9700 /* 8696 */ // Combiner Rule #96: binop_left_to_zero @ [__binop_left_to_zero_match_0[2]]
9701 /* 8696 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9702 /* 8701 */ GIR_EraseRootFromParent_Done,
9703 /* 8702 */ // Label 397: @8702
9704 /* 8702 */ GIM_Try, /*On fail goto*//*Label 398*/ GIMT_Encode4(8726), // Rule ID 95 //
9705 /* 8707 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule81Enabled),
9706 /* 8710 */ // MIs[0] dst
9707 /* 8710 */ // No operand predicates
9708 /* 8710 */ // MIs[0] __binop_right_undef_to_undef_match_0.x
9709 /* 8710 */ // No operand predicates
9710 /* 8710 */ // MIs[0] __binop_right_undef_to_undef_match_0.y
9711 /* 8710 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
9712 /* 8714 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
9713 /* 8718 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9714 /* 8720 */ // Combiner Rule #81: binop_right_undef_to_undef @ [__binop_right_undef_to_undef_match_0[1]]
9715 /* 8720 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
9716 /* 8723 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
9717 /* 8725 */ GIR_EraseRootFromParent_Done,
9718 /* 8726 */ // Label 398: @8726
9719 /* 8726 */ GIM_Try, /*On fail goto*//*Label 399*/ GIMT_Encode4(8749), // Rule ID 124 //
9720 /* 8731 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
9721 /* 8734 */ // MIs[0] dst
9722 /* 8734 */ // No operand predicates
9723 /* 8734 */ // MIs[0] lhs
9724 /* 8734 */ // No operand predicates
9725 /* 8734 */ // MIs[0] Operand 2
9726 /* 8734 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
9727 /* 8738 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9728 /* 8743 */ // Combiner Rule #93: right_identity_zero @ [__right_identity_zero_match_0[5]]
9729 /* 8743 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9730 /* 8748 */ GIR_EraseRootFromParent_Done,
9731 /* 8749 */ // Label 399: @8749
9732 /* 8749 */ GIM_Try, /*On fail goto*//*Label 400*/ GIMT_Encode4(8760), // Rule ID 169 //
9733 /* 8754 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule120Enabled),
9734 /* 8757 */ // MIs[0] root
9735 /* 8757 */ // No operand predicates
9736 /* 8757 */ // MIs[0] mi.shifted
9737 /* 8757 */ // No operand predicates
9738 /* 8757 */ // MIs[0] mi.amt
9739 /* 8757 */ // No operand predicates
9740 /* 8757 */ // Combiner Rule #120: shifts_too_big @ [mi[1]]
9741 /* 8757 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner39),
9742 /* 8760 */ // Label 400: @8760
9743 /* 8760 */ GIM_Try, /*On fail goto*//*Label 401*/ GIMT_Encode4(8771), // Rule ID 181 //
9744 /* 8765 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule131Enabled),
9745 /* 8768 */ // MIs[0] dst
9746 /* 8768 */ // No operand predicates
9747 /* 8768 */ // MIs[0] src1
9748 /* 8768 */ // No operand predicates
9749 /* 8768 */ // MIs[0] src2
9750 /* 8768 */ // No operand predicates
9751 /* 8768 */ // Combiner Rule #131: shl_ashr_to_sext_inreg
9752 /* 8768 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner48),
9753 /* 8771 */ // Label 401: @8771
9754 /* 8771 */ GIM_Try, /*On fail goto*//*Label 402*/ GIMT_Encode4(8782), // Rule ID 248 //
9755 /* 8776 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule193Enabled),
9756 /* 8779 */ // MIs[0] d
9757 /* 8779 */ // No operand predicates
9758 /* 8779 */ // MIs[0] mi.base
9759 /* 8779 */ // No operand predicates
9760 /* 8779 */ // MIs[0] mi.amt
9761 /* 8779 */ // No operand predicates
9762 /* 8779 */ // Combiner Rule #193: shift_immed_chain @ [mi[1]]
9763 /* 8779 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner69),
9764 /* 8782 */ // Label 402: @8782
9765 /* 8782 */ GIM_Try, /*On fail goto*//*Label 403*/ GIMT_Encode4(8793), // Rule ID 253 //
9766 /* 8787 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
9767 /* 8790 */ // MIs[0] d
9768 /* 8790 */ // No operand predicates
9769 /* 8790 */ // MIs[0] mi.base
9770 /* 8790 */ // No operand predicates
9771 /* 8790 */ // MIs[0] mi.amt
9772 /* 8790 */ // No operand predicates
9773 /* 8790 */ // Combiner Rule #194: shift_of_shifted_logic_chain @ [mi[1]]
9774 /* 8790 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner70),
9775 /* 8793 */ // Label 403: @8793
9776 /* 8793 */ GIM_Try, /*On fail goto*//*Label 404*/ GIMT_Encode4(8804), // Rule ID 277 //
9777 /* 8798 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule211Enabled),
9778 /* 8801 */ // MIs[0] dst
9779 /* 8801 */ // No operand predicates
9780 /* 8801 */ // MIs[0] root.src
9781 /* 8801 */ // No operand predicates
9782 /* 8801 */ // MIs[0] root.amt
9783 /* 8801 */ // No operand predicates
9784 /* 8801 */ // Combiner Rule #211: bitfield_extract_from_shr @ [root[0]]
9785 /* 8801 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner77),
9786 /* 8804 */ // Label 404: @8804
9787 /* 8804 */ GIM_Try, /*On fail goto*//*Label 405*/ GIMT_Encode4(8815), // Rule ID 279 //
9788 /* 8809 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule212Enabled),
9789 /* 8812 */ // MIs[0] dst
9790 /* 8812 */ // No operand predicates
9791 /* 8812 */ // MIs[0] root.src
9792 /* 8812 */ // No operand predicates
9793 /* 8812 */ // MIs[0] root.amt
9794 /* 8812 */ // No operand predicates
9795 /* 8812 */ // Combiner Rule #212: bitfield_extract_from_shr_and @ [root[0]]
9796 /* 8812 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner78),
9797 /* 8815 */ // Label 405: @8815
9798 /* 8815 */ GIM_Try, /*On fail goto*//*Label 406*/ GIMT_Encode4(8826), // Rule ID 284 //
9799 /* 8820 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule213Enabled),
9800 /* 8823 */ // MIs[0] d
9801 /* 8823 */ // No operand predicates
9802 /* 8823 */ // MIs[0] mi.src0
9803 /* 8823 */ // No operand predicates
9804 /* 8823 */ // MIs[0] mi.src1
9805 /* 8823 */ // No operand predicates
9806 /* 8823 */ // Combiner Rule #213: constant_fold_binop @ [mi[3]]
9807 /* 8823 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner79),
9808 /* 8826 */ // Label 406: @8826
9809 /* 8826 */ GIM_Try, /*On fail goto*//*Label 407*/ GIMT_Encode4(8837), // Rule ID 353 //
9810 /* 8831 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule236Enabled),
9811 /* 8834 */ // MIs[0] root
9812 /* 8834 */ // No operand predicates
9813 /* 8834 */ // MIs[0] mi.x
9814 /* 8834 */ // No operand predicates
9815 /* 8834 */ // MIs[0] mi.y
9816 /* 8834 */ // No operand predicates
9817 /* 8834 */ // Combiner Rule #236: fold_binop_into_select_a @ [mi[11]]
9818 /* 8834 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
9819 /* 8837 */ // Label 407: @8837
9820 /* 8837 */ GIM_Reject,
9821 /* 8838 */ // Label 38: @8838
9822 /* 8838 */ GIM_Try, /*On fail goto*//*Label 408*/ GIMT_Encode4(8865), // Rule ID 261 //
9823 /* 8843 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule198Enabled),
9824 /* 8846 */ // MIs[0] dst
9825 /* 8846 */ // No operand predicates
9826 /* 8846 */ // MIs[0] x
9827 /* 8846 */ // No operand predicates
9828 /* 8846 */ // MIs[0] x
9829 /* 8846 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
9830 /* 8851 */ // MIs[0] amt
9831 /* 8851 */ // No operand predicates
9832 /* 8851 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner39),
9833 /* 8855 */ // Combiner Rule #198: funnel_shift_to_rotate_left
9834 /* 8855 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ROTL),
9835 /* 8858 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
9836 /* 8860 */ GIR_RootToRootCopy, /*OpIdx*/1, // x
9837 /* 8862 */ GIR_RootToRootCopy, /*OpIdx*/3, // amt
9838 /* 8864 */ GIR_EraseRootFromParent_Done,
9839 /* 8865 */ // Label 408: @8865
9840 /* 8865 */ GIM_Try, /*On fail goto*//*Label 409*/ GIMT_Encode4(8885), // Rule ID 264 //
9841 /* 8870 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule201Enabled),
9842 /* 8873 */ // MIs[0] x
9843 /* 8873 */ // No operand predicates
9844 /* 8873 */ // MIs[0] y
9845 /* 8873 */ // No operand predicates
9846 /* 8873 */ // MIs[0] z
9847 /* 8873 */ // No operand predicates
9848 /* 8873 */ // MIs[0] Operand 3
9849 /* 8873 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/3, 0,
9850 /* 8877 */ // Combiner Rule #201: funnel_shift_left_zero
9851 /* 8877 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::COPY),
9852 /* 8880 */ GIR_RootToRootCopy, /*OpIdx*/0, // x
9853 /* 8882 */ GIR_RootToRootCopy, /*OpIdx*/1, // y
9854 /* 8884 */ GIR_EraseRootFromParent_Done,
9855 /* 8885 */ // Label 409: @8885
9856 /* 8885 */ GIM_Try, /*On fail goto*//*Label 410*/ GIMT_Encode4(8896), // Rule ID 265 //
9857 /* 8890 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule202Enabled),
9858 /* 8893 */ // MIs[0] dst
9859 /* 8893 */ // No operand predicates
9860 /* 8893 */ // MIs[0] root.x
9861 /* 8893 */ // No operand predicates
9862 /* 8893 */ // MIs[0] root.y
9863 /* 8893 */ // No operand predicates
9864 /* 8893 */ // MIs[0] root.amt
9865 /* 8893 */ // No operand predicates
9866 /* 8893 */ // Combiner Rule #202: funnel_shift_overshift @ [root[0]]
9867 /* 8893 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner74),
9868 /* 8896 */ // Label 410: @8896
9869 /* 8896 */ GIM_Reject,
9870 /* 8897 */ // Label 39: @8897
9871 /* 8897 */ GIM_Try, /*On fail goto*//*Label 411*/ GIMT_Encode4(8924), // Rule ID 262 //
9872 /* 8902 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule199Enabled),
9873 /* 8905 */ // MIs[0] dst
9874 /* 8905 */ // No operand predicates
9875 /* 8905 */ // MIs[0] x
9876 /* 8905 */ // No operand predicates
9877 /* 8905 */ // MIs[0] x
9878 /* 8905 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
9879 /* 8910 */ // MIs[0] amt
9880 /* 8910 */ // No operand predicates
9881 /* 8910 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner40),
9882 /* 8914 */ // Combiner Rule #199: funnel_shift_to_rotate_right
9883 /* 8914 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ROTR),
9884 /* 8917 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
9885 /* 8919 */ GIR_RootToRootCopy, /*OpIdx*/1, // x
9886 /* 8921 */ GIR_RootToRootCopy, /*OpIdx*/3, // amt
9887 /* 8923 */ GIR_EraseRootFromParent_Done,
9888 /* 8924 */ // Label 411: @8924
9889 /* 8924 */ GIM_Try, /*On fail goto*//*Label 412*/ GIMT_Encode4(8944), // Rule ID 263 //
9890 /* 8929 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule200Enabled),
9891 /* 8932 */ // MIs[0] x
9892 /* 8932 */ // No operand predicates
9893 /* 8932 */ // MIs[0] y
9894 /* 8932 */ // No operand predicates
9895 /* 8932 */ // MIs[0] z
9896 /* 8932 */ // No operand predicates
9897 /* 8932 */ // MIs[0] Operand 3
9898 /* 8932 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/3, 0,
9899 /* 8936 */ // Combiner Rule #200: funnel_shift_right_zero
9900 /* 8936 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::COPY),
9901 /* 8939 */ GIR_RootToRootCopy, /*OpIdx*/0, // x
9902 /* 8941 */ GIR_RootToRootCopy, /*OpIdx*/2, // z
9903 /* 8943 */ GIR_EraseRootFromParent_Done,
9904 /* 8944 */ // Label 412: @8944
9905 /* 8944 */ GIM_Try, /*On fail goto*//*Label 413*/ GIMT_Encode4(8955), // Rule ID 266 //
9906 /* 8949 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule202Enabled),
9907 /* 8952 */ // MIs[0] dst
9908 /* 8952 */ // No operand predicates
9909 /* 8952 */ // MIs[0] root.x
9910 /* 8952 */ // No operand predicates
9911 /* 8952 */ // MIs[0] root.y
9912 /* 8952 */ // No operand predicates
9913 /* 8952 */ // MIs[0] root.amt
9914 /* 8952 */ // No operand predicates
9915 /* 8952 */ // Combiner Rule #202: funnel_shift_overshift @ [root[1]]
9916 /* 8952 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner74),
9917 /* 8955 */ // Label 413: @8955
9918 /* 8955 */ GIM_Reject,
9919 /* 8956 */ // Label 40: @8956
9920 /* 8956 */ GIM_Try, /*On fail goto*//*Label 414*/ GIMT_Encode4(8979), // Rule ID 128 //
9921 /* 8961 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
9922 /* 8964 */ // MIs[0] dst
9923 /* 8964 */ // No operand predicates
9924 /* 8964 */ // MIs[0] lhs
9925 /* 8964 */ // No operand predicates
9926 /* 8964 */ // MIs[0] Operand 2
9927 /* 8964 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
9928 /* 8968 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9929 /* 8973 */ // Combiner Rule #93: right_identity_zero @ [__right_identity_zero_match_0[9]]
9930 /* 8973 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9931 /* 8978 */ GIR_EraseRootFromParent_Done,
9932 /* 8979 */ // Label 414: @8979
9933 /* 8979 */ GIM_Reject,
9934 /* 8980 */ // Label 41: @8980
9935 /* 8980 */ GIM_Try, /*On fail goto*//*Label 415*/ GIMT_Encode4(9003), // Rule ID 127 //
9936 /* 8985 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
9937 /* 8988 */ // MIs[0] dst
9938 /* 8988 */ // No operand predicates
9939 /* 8988 */ // MIs[0] lhs
9940 /* 8988 */ // No operand predicates
9941 /* 8988 */ // MIs[0] Operand 2
9942 /* 8988 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
9943 /* 8992 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9944 /* 8997 */ // Combiner Rule #93: right_identity_zero @ [__right_identity_zero_match_0[8]]
9945 /* 8997 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9946 /* 9002 */ GIR_EraseRootFromParent_Done,
9947 /* 9003 */ // Label 415: @9003
9948 /* 9003 */ GIM_Reject,
9949 /* 9004 */ // Label 42: @9004
9950 /* 9004 */ GIM_Try, /*On fail goto*//*Label 416*/ GIMT_Encode4(9015), // Rule ID 174 //
9951 /* 9009 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule124Enabled),
9952 /* 9012 */ // MIs[0] root
9953 /* 9012 */ // No operand predicates
9954 /* 9012 */ // MIs[0] pred
9955 /* 9012 */ // No operand predicates
9956 /* 9012 */ // MIs[0] lhs
9957 /* 9012 */ // No operand predicates
9958 /* 9012 */ // MIs[0] rhs
9959 /* 9012 */ // No operand predicates
9960 /* 9012 */ // Combiner Rule #124: canonicalize_icmp
9961 /* 9012 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner43),
9962 /* 9015 */ // Label 416: @9015
9963 /* 9015 */ GIM_Try, /*On fail goto*//*Label 417*/ GIMT_Encode4(9026), // Rule ID 176 //
9964 /* 9020 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule126Enabled),
9965 /* 9023 */ // MIs[0] dst
9966 /* 9023 */ // No operand predicates
9967 /* 9023 */ // MIs[0] pred
9968 /* 9023 */ // No operand predicates
9969 /* 9023 */ // MIs[0] src1
9970 /* 9023 */ // No operand predicates
9971 /* 9023 */ // MIs[0] src2
9972 /* 9023 */ // No operand predicates
9973 /* 9023 */ // Combiner Rule #126: icmp_to_true_false_known_bits
9974 /* 9023 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner45),
9975 /* 9026 */ // Label 417: @9026
9976 /* 9026 */ GIM_Try, /*On fail goto*//*Label 418*/ GIMT_Encode4(9037), // Rule ID 177 //
9977 /* 9031 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule127Enabled),
9978 /* 9034 */ // MIs[0] dst
9979 /* 9034 */ // No operand predicates
9980 /* 9034 */ // MIs[0] pred
9981 /* 9034 */ // No operand predicates
9982 /* 9034 */ // MIs[0] src1
9983 /* 9034 */ // No operand predicates
9984 /* 9034 */ // MIs[0] src2
9985 /* 9034 */ // No operand predicates
9986 /* 9034 */ // Combiner Rule #127: icmp_to_lhs_known_bits
9987 /* 9034 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner46),
9988 /* 9037 */ // Label 418: @9037
9989 /* 9037 */ GIM_Try, /*On fail goto*//*Label 419*/ GIMT_Encode4(9048), // Rule ID 180 //
9990 /* 9042 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule130Enabled),
9991 /* 9045 */ // MIs[0] dst
9992 /* 9045 */ // No operand predicates
9993 /* 9045 */ // MIs[0] pred
9994 /* 9045 */ // No operand predicates
9995 /* 9045 */ // MIs[0] src1
9996 /* 9045 */ // No operand predicates
9997 /* 9045 */ // MIs[0] src2
9998 /* 9045 */ // No operand predicates
9999 /* 9045 */ // Combiner Rule #130: redundant_binop_in_equality
10000 /* 9045 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner47),
10001 /* 9048 */ // Label 419: @9048
10002 /* 9048 */ GIM_Try, /*On fail goto*//*Label 420*/ GIMT_Encode4(9059), // Rule ID 478 //
10003 /* 9053 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule342Enabled),
10004 /* 9056 */ // MIs[0] dst
10005 /* 9056 */ // No operand predicates
10006 /* 9056 */ // MIs[0] tst
10007 /* 9056 */ // No operand predicates
10008 /* 9056 */ // MIs[0] src1
10009 /* 9056 */ // No operand predicates
10010 /* 9056 */ // MIs[0] src2
10011 /* 9056 */ // No operand predicates
10012 /* 9056 */ // Combiner Rule #342: icmp_redundant_trunc
10013 /* 9056 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner130),
10014 /* 9059 */ // Label 420: @9059
10015 /* 9059 */ GIM_Reject,
10016 /* 9060 */ // Label 43: @9060
10017 /* 9060 */ GIM_Try, /*On fail goto*//*Label 421*/ GIMT_Encode4(9071), // Rule ID 175 //
10018 /* 9065 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule125Enabled),
10019 /* 9068 */ // MIs[0] root
10020 /* 9068 */ // No operand predicates
10021 /* 9068 */ // MIs[0] pred
10022 /* 9068 */ // No operand predicates
10023 /* 9068 */ // MIs[0] lhs
10024 /* 9068 */ // No operand predicates
10025 /* 9068 */ // MIs[0] rhs
10026 /* 9068 */ // No operand predicates
10027 /* 9068 */ // Combiner Rule #125: canonicalize_fcmp
10028 /* 9068 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner44),
10029 /* 9071 */ // Label 421: @9071
10030 /* 9071 */ GIM_Reject,
10031 /* 9072 */ // Label 44: @9072
10032 /* 9072 */ GIM_Try, /*On fail goto*//*Label 422*/ GIMT_Encode4(9152), // Rule ID 476 //
10033 /* 9077 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule340Enabled),
10034 /* 9080 */ // MIs[0] dst
10035 /* 9080 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
10036 /* 9084 */ // MIs[0] c
10037 /* 9084 */ // No operand predicates
10038 /* 9084 */ // MIs[0] Operand 2
10039 /* 9084 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
10040 /* 9088 */ // MIs[0] x
10041 /* 9088 */ // No operand predicates
10042 /* 9088 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner28),
10043 /* 9092 */ GIR_MakeTempReg, /*TempRegID*/2, /*TypeID*/255,
10044 /* 9095 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
10045 /* 9098 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(18446744073709551615u),
10046 /* 9108 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
10047 /* 9111 */ // Combiner Rule #340: select_zero_true
10048 /* 9111 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_XOR),
10049 /* 9114 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
10050 /* 9119 */ GIR_RootToRootCopy, /*OpIdx*/1, // c
10051 /* 9121 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/1,
10052 /* 9124 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FREEZE),
10053 /* 9128 */ GIR_AddTempRegister, /*InsnID*/1, /*TempRegID*/2, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
10054 /* 9133 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/3, // x
10055 /* 9137 */ GIR_BuildMI, /*InsnID*/2, /*Opcode*/GIMT_Encode2(TargetOpcode::G_AND),
10056 /* 9141 */ GIR_Copy, /*NewInsnID*/2, /*OldInsnID*/0, /*OpIdx*/0, // dst
10057 /* 9145 */ GIR_AddSimpleTempRegister, /*InsnID*/2, /*TempRegID*/0,
10058 /* 9148 */ GIR_AddSimpleTempRegister, /*InsnID*/2, /*TempRegID*/2,
10059 /* 9151 */ GIR_EraseRootFromParent_Done,
10060 /* 9152 */ // Label 422: @9152
10061 /* 9152 */ GIM_Try, /*On fail goto*//*Label 423*/ GIMT_Encode4(9201), // Rule ID 193 //
10062 /* 9157 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule143Enabled),
10063 /* 9160 */ // MIs[0] dst
10064 /* 9160 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
10065 /* 9164 */ // MIs[0] c
10066 /* 9164 */ // No operand predicates
10067 /* 9164 */ // MIs[0] x
10068 /* 9164 */ // No operand predicates
10069 /* 9164 */ // MIs[0] Operand 3
10070 /* 9164 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/3, 0,
10071 /* 9168 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner28),
10072 /* 9172 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
10073 /* 9175 */ // Combiner Rule #143: select_zero_false
10074 /* 9175 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FREEZE),
10075 /* 9178 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
10076 /* 9183 */ GIR_RootToRootCopy, /*OpIdx*/2, // x
10077 /* 9185 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_AND),
10078 /* 9189 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
10079 /* 9193 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/1, // c
10080 /* 9197 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
10081 /* 9200 */ GIR_EraseRootFromParent_Done,
10082 /* 9201 */ // Label 423: @9201
10083 /* 9201 */ GIM_Try, /*On fail goto*//*Label 424*/ GIMT_Encode4(9224), // Rule ID 118 //
10084 /* 9206 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule92Enabled),
10085 /* 9209 */ // MIs[0] dst
10086 /* 9209 */ // No operand predicates
10087 /* 9209 */ // MIs[0] cond
10088 /* 9209 */ // No operand predicates
10089 /* 9209 */ // MIs[0] tval
10090 /* 9209 */ // No operand predicates
10091 /* 9209 */ // MIs[0] fval
10092 /* 9209 */ // No operand predicates
10093 /* 9209 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner12),
10094 /* 9213 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
10095 /* 9218 */ // Combiner Rule #92: select_same_val_equiv
10096 /* 9218 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
10097 /* 9223 */ GIR_EraseRootFromParent_Done,
10098 /* 9224 */ // Label 424: @9224
10099 /* 9224 */ GIM_Try, /*On fail goto*//*Label 425*/ GIMT_Encode4(9247), // Rule ID 189 //
10100 /* 9229 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule139Enabled),
10101 /* 9232 */ // MIs[0] dst
10102 /* 9232 */ // No operand predicates
10103 /* 9232 */ // MIs[0] cond
10104 /* 9232 */ // No operand predicates
10105 /* 9232 */ // MIs[0] tval
10106 /* 9232 */ // No operand predicates
10107 /* 9232 */ // MIs[0] fval
10108 /* 9232 */ // No operand predicates
10109 /* 9232 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner26),
10110 /* 9236 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/3,
10111 /* 9241 */ // Combiner Rule #139: select_constant_cmp_general_false
10112 /* 9241 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/3,
10113 /* 9246 */ GIR_EraseRootFromParent_Done,
10114 /* 9247 */ // Label 425: @9247
10115 /* 9247 */ GIM_Try, /*On fail goto*//*Label 426*/ GIMT_Encode4(9270), // Rule ID 190 //
10116 /* 9252 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule140Enabled),
10117 /* 9255 */ // MIs[0] dst
10118 /* 9255 */ // No operand predicates
10119 /* 9255 */ // MIs[0] cond
10120 /* 9255 */ // No operand predicates
10121 /* 9255 */ // MIs[0] tval
10122 /* 9255 */ // No operand predicates
10123 /* 9255 */ // MIs[0] fval
10124 /* 9255 */ // No operand predicates
10125 /* 9255 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner27),
10126 /* 9259 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
10127 /* 9264 */ // Combiner Rule #140: select_constant_cmp_general_true
10128 /* 9264 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
10129 /* 9269 */ GIR_EraseRootFromParent_Done,
10130 /* 9270 */ // Label 426: @9270
10131 /* 9270 */ GIM_Try, /*On fail goto*//*Label 427*/ GIMT_Encode4(9291), // Rule ID 191 //
10132 /* 9275 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule141Enabled),
10133 /* 9278 */ // MIs[0] root
10134 /* 9278 */ // No operand predicates
10135 /* 9278 */ // MIs[0] tst
10136 /* 9278 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
10137 /* 9282 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ICMP),
10138 /* 9286 */ // MIs[1] tst1
10139 /* 9286 */ // No operand predicates
10140 /* 9286 */ // MIs[1] a
10141 /* 9286 */ // No operand predicates
10142 /* 9286 */ // MIs[1] b
10143 /* 9286 */ // No operand predicates
10144 /* 9286 */ // MIs[0] x
10145 /* 9286 */ // No operand predicates
10146 /* 9286 */ // MIs[0] y
10147 /* 9286 */ // No operand predicates
10148 /* 9286 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
10149 /* 9288 */ // Combiner Rule #141: select_to_iminmax
10150 /* 9288 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner52),
10151 /* 9291 */ // Label 427: @9291
10152 /* 9291 */ GIM_Try, /*On fail goto*//*Label 428*/ GIMT_Encode4(9327), // Rule ID 194 //
10153 /* 9296 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule144Enabled),
10154 /* 9299 */ // MIs[0] dst
10155 /* 9299 */ // No operand predicates
10156 /* 9299 */ // MIs[0] c
10157 /* 9299 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
10158 /* 9303 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_XOR),
10159 /* 9307 */ // MIs[1] src
10160 /* 9307 */ // No operand predicates
10161 /* 9307 */ // MIs[1] Operand 2
10162 /* 9307 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/2, 255,
10163 /* 9311 */ // MIs[0] x
10164 /* 9311 */ // No operand predicates
10165 /* 9311 */ // MIs[0] y
10166 /* 9311 */ // No operand predicates
10167 /* 9311 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
10168 /* 9313 */ // Combiner Rule #144: select_not
10169 /* 9313 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SELECT),
10170 /* 9316 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10171 /* 9318 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // src
10172 /* 9322 */ GIR_RootToRootCopy, /*OpIdx*/3, // y
10173 /* 9324 */ GIR_RootToRootCopy, /*OpIdx*/2, // x
10174 /* 9326 */ GIR_EraseRootFromParent_Done,
10175 /* 9327 */ // Label 428: @9327
10176 /* 9327 */ GIM_Try, /*On fail goto*//*Label 429*/ GIMT_Encode4(9356), // Rule ID 186 //
10177 /* 9332 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule136Enabled),
10178 /* 9335 */ // MIs[0] dst
10179 /* 9335 */ // No operand predicates
10180 /* 9335 */ // MIs[0] undef
10181 /* 9335 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
10182 /* 9339 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
10183 /* 9343 */ // MIs[0] x
10184 /* 9343 */ // No operand predicates
10185 /* 9343 */ // MIs[0] y
10186 /* 9343 */ // No operand predicates
10187 /* 9343 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/3,
10188 /* 9348 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
10189 /* 9350 */ // Combiner Rule #136: select_undef_cmp
10190 /* 9350 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/3,
10191 /* 9355 */ GIR_EraseRootFromParent_Done,
10192 /* 9356 */ // Label 429: @9356
10193 /* 9356 */ GIM_Try, /*On fail goto*//*Label 430*/ GIMT_Encode4(9396), // Rule ID 187 //
10194 /* 9361 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule137Enabled),
10195 /* 9364 */ // MIs[0] dst
10196 /* 9364 */ // No operand predicates
10197 /* 9364 */ // MIs[0] cond
10198 /* 9364 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
10199 /* 9368 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
10200 /* 9372 */ // MIs[1] Operand 1
10201 /* 9372 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0),
10202 /* 9383 */ // MIs[0] tval
10203 /* 9383 */ // No operand predicates
10204 /* 9383 */ // MIs[0] fval
10205 /* 9383 */ // No operand predicates
10206 /* 9383 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/3,
10207 /* 9388 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
10208 /* 9390 */ // Combiner Rule #137: select_constant_cmp_false
10209 /* 9390 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/3,
10210 /* 9395 */ GIR_EraseRootFromParent_Done,
10211 /* 9396 */ // Label 430: @9396
10212 /* 9396 */ GIM_Try, /*On fail goto*//*Label 431*/ GIMT_Encode4(9436), // Rule ID 188 //
10213 /* 9401 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule138Enabled),
10214 /* 9404 */ // MIs[0] dst
10215 /* 9404 */ // No operand predicates
10216 /* 9404 */ // MIs[0] cond
10217 /* 9404 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
10218 /* 9408 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
10219 /* 9412 */ // MIs[1] Operand 1
10220 /* 9412 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(1),
10221 /* 9423 */ // MIs[0] tval
10222 /* 9423 */ // No operand predicates
10223 /* 9423 */ // MIs[0] fval
10224 /* 9423 */ // No operand predicates
10225 /* 9423 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
10226 /* 9428 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
10227 /* 9430 */ // Combiner Rule #138: select_constant_cmp_true
10228 /* 9430 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
10229 /* 9435 */ GIR_EraseRootFromParent_Done,
10230 /* 9436 */ // Label 431: @9436
10231 /* 9436 */ GIM_Try, /*On fail goto*//*Label 432*/ GIMT_Encode4(9460), // Rule ID 117 //
10232 /* 9441 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule91Enabled),
10233 /* 9444 */ // MIs[0] dst
10234 /* 9444 */ // No operand predicates
10235 /* 9444 */ // MIs[0] cond
10236 /* 9444 */ // No operand predicates
10237 /* 9444 */ // MIs[0] x
10238 /* 9444 */ // No operand predicates
10239 /* 9444 */ // MIs[0] x
10240 /* 9444 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/3, /*OtherMI*/0, /*OtherOpIdx*/2,
10241 /* 9449 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
10242 /* 9454 */ // Combiner Rule #91: select_same_val_trivial
10243 /* 9454 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
10244 /* 9459 */ GIR_EraseRootFromParent_Done,
10245 /* 9460 */ // Label 432: @9460
10246 /* 9460 */ GIM_Try, /*On fail goto*//*Label 433*/ GIMT_Encode4(9471), // Rule ID 192 //
10247 /* 9465 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule142Enabled),
10248 /* 9468 */ // MIs[0] dst
10249 /* 9468 */ // No operand predicates
10250 /* 9468 */ // MIs[0] cond
10251 /* 9468 */ // No operand predicates
10252 /* 9468 */ // MIs[0] tval
10253 /* 9468 */ // No operand predicates
10254 /* 9468 */ // MIs[0] fval
10255 /* 9468 */ // No operand predicates
10256 /* 9468 */ // Combiner Rule #142: match_selects
10257 /* 9468 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner53),
10258 /* 9471 */ // Label 433: @9471
10259 /* 9471 */ GIM_Try, /*On fail goto*//*Label 434*/ GIMT_Encode4(9482), // Rule ID 381 //
10260 /* 9476 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule251Enabled),
10261 /* 9479 */ // MIs[0] dst
10262 /* 9479 */ // No operand predicates
10263 /* 9479 */ // MIs[0] cond
10264 /* 9479 */ // No operand predicates
10265 /* 9479 */ // MIs[0] tval
10266 /* 9479 */ // No operand predicates
10267 /* 9479 */ // MIs[0] fval
10268 /* 9479 */ // No operand predicates
10269 /* 9479 */ // Combiner Rule #251: select_to_minmax
10270 /* 9479 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner102),
10271 /* 9482 */ // Label 434: @9482
10272 /* 9482 */ GIM_Reject,
10273 /* 9483 */ // Label 45: @9483
10274 /* 9483 */ GIM_Try, /*On fail goto*//*Label 435*/ GIMT_Encode4(9510), // Rule ID 400 //
10275 /* 9488 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule270Enabled),
10276 /* 9491 */ // MIs[0] dst
10277 /* 9491 */ // No operand predicates
10278 /* 9491 */ // MIs[0] carry
10279 /* 9491 */ // No operand predicates
10280 /* 9491 */ // MIs[0] lhs
10281 /* 9491 */ // No operand predicates
10282 /* 9491 */ // MIs[0] rhs
10283 /* 9491 */ // No operand predicates
10284 /* 9491 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner51),
10285 /* 9495 */ // Combiner Rule #270: G_UADDO_commute_constant_to_rhs
10286 /* 9495 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UADDO),
10287 /* 9498 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10288 /* 9500 */ GIR_RootToRootCopy, /*OpIdx*/1, // carry
10289 /* 9502 */ GIR_RootToRootCopy, /*OpIdx*/3, // rhs
10290 /* 9504 */ GIR_RootToRootCopy, /*OpIdx*/2, // lhs
10291 /* 9506 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
10292 /* 9509 */ GIR_EraseRootFromParent_Done,
10293 /* 9510 */ // Label 435: @9510
10294 /* 9510 */ GIM_Try, /*On fail goto*//*Label 436*/ GIMT_Encode4(9540), // Rule ID 440 //
10295 /* 9515 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule310Enabled),
10296 /* 9518 */ // MIs[0] dst
10297 /* 9518 */ // No operand predicates
10298 /* 9518 */ // MIs[0] carry
10299 /* 9518 */ // No operand predicates
10300 /* 9518 */ // MIs[0] x
10301 /* 9518 */ // No operand predicates
10302 /* 9518 */ // MIs[0] y
10303 /* 9518 */ // No operand predicates
10304 /* 9518 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner55),
10305 /* 9522 */ // Combiner Rule #310: match_addos_uaddo_dead_carry
10306 /* 9522 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ADD),
10307 /* 9525 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10308 /* 9527 */ GIR_RootToRootCopy, /*OpIdx*/2, // x
10309 /* 9529 */ GIR_RootToRootCopy, /*OpIdx*/3, // y
10310 /* 9531 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
10311 /* 9535 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/1, // carry
10312 /* 9539 */ GIR_EraseRootFromParent_Done,
10313 /* 9540 */ // Label 436: @9540
10314 /* 9540 */ GIM_Try, /*On fail goto*//*Label 437*/ GIMT_Encode4(9551), // Rule ID 442 //
10315 /* 9545 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule312Enabled),
10316 /* 9548 */ // MIs[0] dst
10317 /* 9548 */ // No operand predicates
10318 /* 9548 */ // MIs[0] carry
10319 /* 9548 */ // No operand predicates
10320 /* 9548 */ // MIs[0] x
10321 /* 9548 */ // No operand predicates
10322 /* 9548 */ // MIs[0] y
10323 /* 9548 */ // No operand predicates
10324 /* 9548 */ // Combiner Rule #312: match_addos_uaddo
10325 /* 9548 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner122),
10326 /* 9551 */ // Label 437: @9551
10327 /* 9551 */ GIM_Try, /*On fail goto*//*Label 438*/ GIMT_Encode4(9562), // Rule ID 488 //
10328 /* 9556 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule352Enabled),
10329 /* 9559 */ // MIs[0] dst
10330 /* 9559 */ // No operand predicates
10331 /* 9559 */ // MIs[0] carry_out
10332 /* 9559 */ // No operand predicates
10333 /* 9559 */ // MIs[0] src1
10334 /* 9559 */ // No operand predicates
10335 /* 9559 */ // MIs[0] src2
10336 /* 9559 */ // No operand predicates
10337 /* 9559 */ // Combiner Rule #352: simplify_uaddo
10338 /* 9559 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner135),
10339 /* 9562 */ // Label 438: @9562
10340 /* 9562 */ GIM_Reject,
10341 /* 9563 */ // Label 46: @9563
10342 /* 9563 */ GIM_Try, /*On fail goto*//*Label 439*/ GIMT_Encode4(9590), // Rule ID 231 //
10343 /* 9568 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule181Enabled),
10344 /* 9571 */ // MIs[0] dst
10345 /* 9571 */ // No operand predicates
10346 /* 9571 */ // MIs[0] carry_out
10347 /* 9571 */ // No operand predicates
10348 /* 9571 */ // MIs[0] x
10349 /* 9571 */ // No operand predicates
10350 /* 9571 */ // MIs[0] y
10351 /* 9571 */ // No operand predicates
10352 /* 9571 */ // MIs[0] carry_in
10353 /* 9571 */ // No operand predicates
10354 /* 9571 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner34),
10355 /* 9575 */ // Combiner Rule #181: adde_to_addo_uadde
10356 /* 9575 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UADDO),
10357 /* 9578 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10358 /* 9580 */ GIR_RootToRootCopy, /*OpIdx*/1, // carry_out
10359 /* 9582 */ GIR_RootToRootCopy, /*OpIdx*/2, // x
10360 /* 9584 */ GIR_RootToRootCopy, /*OpIdx*/3, // y
10361 /* 9586 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
10362 /* 9589 */ GIR_EraseRootFromParent_Done,
10363 /* 9590 */ // Label 439: @9590
10364 /* 9590 */ GIM_Reject,
10365 /* 9591 */ // Label 47: @9591
10366 /* 9591 */ GIM_Try, /*On fail goto*//*Label 440*/ GIMT_Encode4(9602), // Rule ID 444 //
10367 /* 9596 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule314Enabled),
10368 /* 9599 */ // MIs[0] dst
10369 /* 9599 */ // No operand predicates
10370 /* 9599 */ // MIs[0] carry
10371 /* 9599 */ // No operand predicates
10372 /* 9599 */ // MIs[0] x
10373 /* 9599 */ // No operand predicates
10374 /* 9599 */ // MIs[0] y
10375 /* 9599 */ // No operand predicates
10376 /* 9599 */ // Combiner Rule #314: match_subo_no_overflow_usubo
10377 /* 9599 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner123),
10378 /* 9602 */ // Label 440: @9602
10379 /* 9602 */ GIM_Reject,
10380 /* 9603 */ // Label 48: @9603
10381 /* 9603 */ GIM_Try, /*On fail goto*//*Label 441*/ GIMT_Encode4(9630), // Rule ID 233 //
10382 /* 9608 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule183Enabled),
10383 /* 9611 */ // MIs[0] dst
10384 /* 9611 */ // No operand predicates
10385 /* 9611 */ // MIs[0] carry_out
10386 /* 9611 */ // No operand predicates
10387 /* 9611 */ // MIs[0] x
10388 /* 9611 */ // No operand predicates
10389 /* 9611 */ // MIs[0] y
10390 /* 9611 */ // No operand predicates
10391 /* 9611 */ // MIs[0] carry_in
10392 /* 9611 */ // No operand predicates
10393 /* 9611 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner34),
10394 /* 9615 */ // Combiner Rule #183: adde_to_addo_usube
10395 /* 9615 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_USUBO),
10396 /* 9618 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10397 /* 9620 */ GIR_RootToRootCopy, /*OpIdx*/1, // carry_out
10398 /* 9622 */ GIR_RootToRootCopy, /*OpIdx*/2, // x
10399 /* 9624 */ GIR_RootToRootCopy, /*OpIdx*/3, // y
10400 /* 9626 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
10401 /* 9629 */ GIR_EraseRootFromParent_Done,
10402 /* 9630 */ // Label 441: @9630
10403 /* 9630 */ GIM_Reject,
10404 /* 9631 */ // Label 49: @9631
10405 /* 9631 */ GIM_Try, /*On fail goto*//*Label 442*/ GIMT_Encode4(9658), // Rule ID 401 //
10406 /* 9636 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule271Enabled),
10407 /* 9639 */ // MIs[0] dst
10408 /* 9639 */ // No operand predicates
10409 /* 9639 */ // MIs[0] carry
10410 /* 9639 */ // No operand predicates
10411 /* 9639 */ // MIs[0] lhs
10412 /* 9639 */ // No operand predicates
10413 /* 9639 */ // MIs[0] rhs
10414 /* 9639 */ // No operand predicates
10415 /* 9639 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner51),
10416 /* 9643 */ // Combiner Rule #271: G_SADDO_commute_constant_to_rhs
10417 /* 9643 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SADDO),
10418 /* 9646 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10419 /* 9648 */ GIR_RootToRootCopy, /*OpIdx*/1, // carry
10420 /* 9650 */ GIR_RootToRootCopy, /*OpIdx*/3, // rhs
10421 /* 9652 */ GIR_RootToRootCopy, /*OpIdx*/2, // lhs
10422 /* 9654 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
10423 /* 9657 */ GIR_EraseRootFromParent_Done,
10424 /* 9658 */ // Label 442: @9658
10425 /* 9658 */ GIM_Try, /*On fail goto*//*Label 443*/ GIMT_Encode4(9688), // Rule ID 439 //
10426 /* 9663 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule309Enabled),
10427 /* 9666 */ // MIs[0] dst
10428 /* 9666 */ // No operand predicates
10429 /* 9666 */ // MIs[0] carry
10430 /* 9666 */ // No operand predicates
10431 /* 9666 */ // MIs[0] x
10432 /* 9666 */ // No operand predicates
10433 /* 9666 */ // MIs[0] y
10434 /* 9666 */ // No operand predicates
10435 /* 9666 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner55),
10436 /* 9670 */ // Combiner Rule #309: match_addos_saddo_dead_carry
10437 /* 9670 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ADD),
10438 /* 9673 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10439 /* 9675 */ GIR_RootToRootCopy, /*OpIdx*/2, // x
10440 /* 9677 */ GIR_RootToRootCopy, /*OpIdx*/3, // y
10441 /* 9679 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
10442 /* 9683 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/1, // carry
10443 /* 9687 */ GIR_EraseRootFromParent_Done,
10444 /* 9688 */ // Label 443: @9688
10445 /* 9688 */ GIM_Try, /*On fail goto*//*Label 444*/ GIMT_Encode4(9699), // Rule ID 441 //
10446 /* 9693 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule311Enabled),
10447 /* 9696 */ // MIs[0] dst
10448 /* 9696 */ // No operand predicates
10449 /* 9696 */ // MIs[0] carry
10450 /* 9696 */ // No operand predicates
10451 /* 9696 */ // MIs[0] x
10452 /* 9696 */ // No operand predicates
10453 /* 9696 */ // MIs[0] y
10454 /* 9696 */ // No operand predicates
10455 /* 9696 */ // Combiner Rule #311: match_addos_saddo
10456 /* 9696 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner122),
10457 /* 9699 */ // Label 444: @9699
10458 /* 9699 */ GIM_Reject,
10459 /* 9700 */ // Label 50: @9700
10460 /* 9700 */ GIM_Try, /*On fail goto*//*Label 445*/ GIMT_Encode4(9727), // Rule ID 232 //
10461 /* 9705 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule182Enabled),
10462 /* 9708 */ // MIs[0] dst
10463 /* 9708 */ // No operand predicates
10464 /* 9708 */ // MIs[0] carry_out
10465 /* 9708 */ // No operand predicates
10466 /* 9708 */ // MIs[0] x
10467 /* 9708 */ // No operand predicates
10468 /* 9708 */ // MIs[0] y
10469 /* 9708 */ // No operand predicates
10470 /* 9708 */ // MIs[0] carry_in
10471 /* 9708 */ // No operand predicates
10472 /* 9708 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner34),
10473 /* 9712 */ // Combiner Rule #182: adde_to_addo_sadde
10474 /* 9712 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SADDO),
10475 /* 9715 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10476 /* 9717 */ GIR_RootToRootCopy, /*OpIdx*/1, // carry_out
10477 /* 9719 */ GIR_RootToRootCopy, /*OpIdx*/2, // x
10478 /* 9721 */ GIR_RootToRootCopy, /*OpIdx*/3, // y
10479 /* 9723 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
10480 /* 9726 */ GIR_EraseRootFromParent_Done,
10481 /* 9727 */ // Label 445: @9727
10482 /* 9727 */ GIM_Reject,
10483 /* 9728 */ // Label 51: @9728
10484 /* 9728 */ GIM_Try, /*On fail goto*//*Label 446*/ GIMT_Encode4(9739), // Rule ID 443 //
10485 /* 9733 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule313Enabled),
10486 /* 9736 */ // MIs[0] dst
10487 /* 9736 */ // No operand predicates
10488 /* 9736 */ // MIs[0] carry
10489 /* 9736 */ // No operand predicates
10490 /* 9736 */ // MIs[0] x
10491 /* 9736 */ // No operand predicates
10492 /* 9736 */ // MIs[0] y
10493 /* 9736 */ // No operand predicates
10494 /* 9736 */ // Combiner Rule #313: match_subo_no_overflow_ssubo
10495 /* 9736 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner123),
10496 /* 9739 */ // Label 446: @9739
10497 /* 9739 */ GIM_Reject,
10498 /* 9740 */ // Label 52: @9740
10499 /* 9740 */ GIM_Try, /*On fail goto*//*Label 447*/ GIMT_Encode4(9767), // Rule ID 234 //
10500 /* 9745 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule184Enabled),
10501 /* 9748 */ // MIs[0] dst
10502 /* 9748 */ // No operand predicates
10503 /* 9748 */ // MIs[0] carry_out
10504 /* 9748 */ // No operand predicates
10505 /* 9748 */ // MIs[0] x
10506 /* 9748 */ // No operand predicates
10507 /* 9748 */ // MIs[0] y
10508 /* 9748 */ // No operand predicates
10509 /* 9748 */ // MIs[0] carry_in
10510 /* 9748 */ // No operand predicates
10511 /* 9748 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner34),
10512 /* 9752 */ // Combiner Rule #184: adde_to_addo_ssube
10513 /* 9752 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SSUBO),
10514 /* 9755 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10515 /* 9757 */ GIR_RootToRootCopy, /*OpIdx*/1, // carry_out
10516 /* 9759 */ GIR_RootToRootCopy, /*OpIdx*/2, // x
10517 /* 9761 */ GIR_RootToRootCopy, /*OpIdx*/3, // y
10518 /* 9763 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
10519 /* 9766 */ GIR_EraseRootFromParent_Done,
10520 /* 9767 */ // Label 447: @9767
10521 /* 9767 */ GIM_Reject,
10522 /* 9768 */ // Label 53: @9768
10523 /* 9768 */ GIM_Try, /*On fail goto*//*Label 448*/ GIMT_Encode4(9795), // Rule ID 227 //
10524 /* 9773 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule177Enabled),
10525 /* 9776 */ // MIs[0] dst
10526 /* 9776 */ // No operand predicates
10527 /* 9776 */ // MIs[0] carry
10528 /* 9776 */ // No operand predicates
10529 /* 9776 */ // MIs[0] x
10530 /* 9776 */ // No operand predicates
10531 /* 9776 */ // MIs[0] rhs
10532 /* 9776 */ // No operand predicates
10533 /* 9776 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner33),
10534 /* 9780 */ // Combiner Rule #177: mulo_by_2_umulo
10535 /* 9780 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UADDO),
10536 /* 9783 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10537 /* 9785 */ GIR_RootToRootCopy, /*OpIdx*/1, // carry
10538 /* 9787 */ GIR_RootToRootCopy, /*OpIdx*/2, // x
10539 /* 9789 */ GIR_RootToRootCopy, /*OpIdx*/2, // x
10540 /* 9791 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
10541 /* 9794 */ GIR_EraseRootFromParent_Done,
10542 /* 9795 */ // Label 448: @9795
10543 /* 9795 */ GIM_Try, /*On fail goto*//*Label 449*/ GIMT_Encode4(9822), // Rule ID 402 //
10544 /* 9800 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule272Enabled),
10545 /* 9803 */ // MIs[0] dst
10546 /* 9803 */ // No operand predicates
10547 /* 9803 */ // MIs[0] carry
10548 /* 9803 */ // No operand predicates
10549 /* 9803 */ // MIs[0] lhs
10550 /* 9803 */ // No operand predicates
10551 /* 9803 */ // MIs[0] rhs
10552 /* 9803 */ // No operand predicates
10553 /* 9803 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner51),
10554 /* 9807 */ // Combiner Rule #272: G_UMULO_commute_constant_to_rhs
10555 /* 9807 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UMULO),
10556 /* 9810 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10557 /* 9812 */ GIR_RootToRootCopy, /*OpIdx*/1, // carry
10558 /* 9814 */ GIR_RootToRootCopy, /*OpIdx*/3, // rhs
10559 /* 9816 */ GIR_RootToRootCopy, /*OpIdx*/2, // lhs
10560 /* 9818 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
10561 /* 9821 */ GIR_EraseRootFromParent_Done,
10562 /* 9822 */ // Label 449: @9822
10563 /* 9822 */ GIM_Try, /*On fail goto*//*Label 450*/ GIMT_Encode4(9833), // Rule ID 229 //
10564 /* 9827 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule179Enabled),
10565 /* 9830 */ // MIs[0] dst
10566 /* 9830 */ // No operand predicates
10567 /* 9830 */ // MIs[0] carry
10568 /* 9830 */ // No operand predicates
10569 /* 9830 */ // MIs[0] x
10570 /* 9830 */ // No operand predicates
10571 /* 9830 */ // MIs[0] y
10572 /* 9830 */ // No operand predicates
10573 /* 9830 */ // Combiner Rule #179: mulo_by_0_umulo
10574 /* 9830 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner66),
10575 /* 9833 */ // Label 450: @9833
10576 /* 9833 */ GIM_Reject,
10577 /* 9834 */ // Label 54: @9834
10578 /* 9834 */ GIM_Try, /*On fail goto*//*Label 451*/ GIMT_Encode4(9861), // Rule ID 228 //
10579 /* 9839 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule178Enabled),
10580 /* 9842 */ // MIs[0] dst
10581 /* 9842 */ // No operand predicates
10582 /* 9842 */ // MIs[0] carry
10583 /* 9842 */ // No operand predicates
10584 /* 9842 */ // MIs[0] x
10585 /* 9842 */ // No operand predicates
10586 /* 9842 */ // MIs[0] rhs
10587 /* 9842 */ // No operand predicates
10588 /* 9842 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner33),
10589 /* 9846 */ // Combiner Rule #178: mulo_by_2_smulo
10590 /* 9846 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SADDO),
10591 /* 9849 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10592 /* 9851 */ GIR_RootToRootCopy, /*OpIdx*/1, // carry
10593 /* 9853 */ GIR_RootToRootCopy, /*OpIdx*/2, // x
10594 /* 9855 */ GIR_RootToRootCopy, /*OpIdx*/2, // x
10595 /* 9857 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
10596 /* 9860 */ GIR_EraseRootFromParent_Done,
10597 /* 9861 */ // Label 451: @9861
10598 /* 9861 */ GIM_Try, /*On fail goto*//*Label 452*/ GIMT_Encode4(9888), // Rule ID 403 //
10599 /* 9866 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule273Enabled),
10600 /* 9869 */ // MIs[0] dst
10601 /* 9869 */ // No operand predicates
10602 /* 9869 */ // MIs[0] carry
10603 /* 9869 */ // No operand predicates
10604 /* 9869 */ // MIs[0] lhs
10605 /* 9869 */ // No operand predicates
10606 /* 9869 */ // MIs[0] rhs
10607 /* 9869 */ // No operand predicates
10608 /* 9869 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner51),
10609 /* 9873 */ // Combiner Rule #273: G_SMULO_commute_constant_to_rhs
10610 /* 9873 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SMULO),
10611 /* 9876 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10612 /* 9878 */ GIR_RootToRootCopy, /*OpIdx*/1, // carry
10613 /* 9880 */ GIR_RootToRootCopy, /*OpIdx*/3, // rhs
10614 /* 9882 */ GIR_RootToRootCopy, /*OpIdx*/2, // lhs
10615 /* 9884 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
10616 /* 9887 */ GIR_EraseRootFromParent_Done,
10617 /* 9888 */ // Label 452: @9888
10618 /* 9888 */ GIM_Try, /*On fail goto*//*Label 453*/ GIMT_Encode4(9899), // Rule ID 230 //
10619 /* 9893 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule180Enabled),
10620 /* 9896 */ // MIs[0] dst
10621 /* 9896 */ // No operand predicates
10622 /* 9896 */ // MIs[0] carry
10623 /* 9896 */ // No operand predicates
10624 /* 9896 */ // MIs[0] x
10625 /* 9896 */ // No operand predicates
10626 /* 9896 */ // MIs[0] y
10627 /* 9896 */ // No operand predicates
10628 /* 9896 */ // Combiner Rule #180: mulo_by_0_smulo
10629 /* 9896 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner66),
10630 /* 9899 */ // Label 453: @9899
10631 /* 9899 */ GIM_Reject,
10632 /* 9900 */ // Label 55: @9900
10633 /* 9900 */ GIM_Try, /*On fail goto*//*Label 454*/ GIMT_Encode4(9925), // Rule ID 392 //
10634 /* 9905 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule262Enabled),
10635 /* 9908 */ // MIs[0] dst
10636 /* 9908 */ // No operand predicates
10637 /* 9908 */ // MIs[0] lhs
10638 /* 9908 */ // No operand predicates
10639 /* 9908 */ // MIs[0] rhs
10640 /* 9908 */ // No operand predicates
10641 /* 9908 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner51),
10642 /* 9912 */ // Combiner Rule #262: G_UMULH_commute_constant_to_rhs
10643 /* 9912 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UMULH),
10644 /* 9915 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10645 /* 9917 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
10646 /* 9919 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
10647 /* 9921 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
10648 /* 9924 */ GIR_EraseRootFromParent_Done,
10649 /* 9925 */ // Label 454: @9925
10650 /* 9925 */ GIM_Try, /*On fail goto*//*Label 455*/ GIMT_Encode4(9936), // Rule ID 325 //
10651 /* 9930 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule219Enabled),
10652 /* 9933 */ // MIs[0] dst
10653 /* 9933 */ // No operand predicates
10654 /* 9933 */ // MIs[0] src1
10655 /* 9933 */ // No operand predicates
10656 /* 9933 */ // MIs[0] src2
10657 /* 9933 */ // No operand predicates
10658 /* 9933 */ // Combiner Rule #219: mulh_to_lshr
10659 /* 9933 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner84),
10660 /* 9936 */ // Label 455: @9936
10661 /* 9936 */ GIM_Reject,
10662 /* 9937 */ // Label 56: @9937
10663 /* 9937 */ GIM_Try, /*On fail goto*//*Label 456*/ GIMT_Encode4(9962), // Rule ID 393 //
10664 /* 9942 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule263Enabled),
10665 /* 9945 */ // MIs[0] dst
10666 /* 9945 */ // No operand predicates
10667 /* 9945 */ // MIs[0] lhs
10668 /* 9945 */ // No operand predicates
10669 /* 9945 */ // MIs[0] rhs
10670 /* 9945 */ // No operand predicates
10671 /* 9945 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner51),
10672 /* 9949 */ // Combiner Rule #263: G_SMULH_commute_constant_to_rhs
10673 /* 9949 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SMULH),
10674 /* 9952 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10675 /* 9954 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
10676 /* 9956 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
10677 /* 9958 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
10678 /* 9961 */ GIR_EraseRootFromParent_Done,
10679 /* 9962 */ // Label 456: @9962
10680 /* 9962 */ GIM_Reject,
10681 /* 9963 */ // Label 57: @9963
10682 /* 9963 */ GIM_Try, /*On fail goto*//*Label 457*/ GIMT_Encode4(9988), // Rule ID 394 //
10683 /* 9968 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule264Enabled),
10684 /* 9971 */ // MIs[0] dst
10685 /* 9971 */ // No operand predicates
10686 /* 9971 */ // MIs[0] lhs
10687 /* 9971 */ // No operand predicates
10688 /* 9971 */ // MIs[0] rhs
10689 /* 9971 */ // No operand predicates
10690 /* 9971 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner51),
10691 /* 9975 */ // Combiner Rule #264: G_UADDSAT_commute_constant_to_rhs
10692 /* 9975 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UADDSAT),
10693 /* 9978 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10694 /* 9980 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
10695 /* 9982 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
10696 /* 9984 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
10697 /* 9987 */ GIR_EraseRootFromParent_Done,
10698 /* 9988 */ // Label 457: @9988
10699 /* 9988 */ GIM_Reject,
10700 /* 9989 */ // Label 58: @9989
10701 /* 9989 */ GIM_Try, /*On fail goto*//*Label 458*/ GIMT_Encode4(10014), // Rule ID 395 //
10702 /* 9994 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule265Enabled),
10703 /* 9997 */ // MIs[0] dst
10704 /* 9997 */ // No operand predicates
10705 /* 9997 */ // MIs[0] lhs
10706 /* 9997 */ // No operand predicates
10707 /* 9997 */ // MIs[0] rhs
10708 /* 9997 */ // No operand predicates
10709 /* 9997 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner51),
10710 /* 10001 */ // Combiner Rule #265: G_SADDSAT_commute_constant_to_rhs
10711 /* 10001 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SADDSAT),
10712 /* 10004 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10713 /* 10006 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
10714 /* 10008 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
10715 /* 10010 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
10716 /* 10013 */ GIR_EraseRootFromParent_Done,
10717 /* 10014 */ // Label 458: @10014
10718 /* 10014 */ GIM_Reject,
10719 /* 10015 */ // Label 59: @10015
10720 /* 10015 */ GIM_Try, /*On fail goto*//*Label 459*/ GIMT_Encode4(10026), // Rule ID 251 //
10721 /* 10020 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule193Enabled),
10722 /* 10023 */ // MIs[0] d
10723 /* 10023 */ // No operand predicates
10724 /* 10023 */ // MIs[0] mi.base
10725 /* 10023 */ // No operand predicates
10726 /* 10023 */ // MIs[0] mi.amt
10727 /* 10023 */ // No operand predicates
10728 /* 10023 */ // Combiner Rule #193: shift_immed_chain @ [mi[4]]
10729 /* 10023 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner69),
10730 /* 10026 */ // Label 459: @10026
10731 /* 10026 */ GIM_Reject,
10732 /* 10027 */ // Label 60: @10027
10733 /* 10027 */ GIM_Try, /*On fail goto*//*Label 460*/ GIMT_Encode4(10038), // Rule ID 250 //
10734 /* 10032 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule193Enabled),
10735 /* 10035 */ // MIs[0] d
10736 /* 10035 */ // No operand predicates
10737 /* 10035 */ // MIs[0] mi.base
10738 /* 10035 */ // No operand predicates
10739 /* 10035 */ // MIs[0] mi.amt
10740 /* 10035 */ // No operand predicates
10741 /* 10035 */ // Combiner Rule #193: shift_immed_chain @ [mi[3]]
10742 /* 10035 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner69),
10743 /* 10038 */ // Label 460: @10038
10744 /* 10038 */ GIM_Reject,
10745 /* 10039 */ // Label 61: @10039
10746 /* 10039 */ GIM_Try, /*On fail goto*//*Label 461*/ GIMT_Encode4(10066), // Rule ID 396 //
10747 /* 10044 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule266Enabled),
10748 /* 10047 */ // MIs[0] dst
10749 /* 10047 */ // No operand predicates
10750 /* 10047 */ // MIs[0] lhs
10751 /* 10047 */ // No operand predicates
10752 /* 10047 */ // MIs[0] rhs
10753 /* 10047 */ // No operand predicates
10754 /* 10047 */ // MIs[0] scale
10755 /* 10047 */ // No operand predicates
10756 /* 10047 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner51),
10757 /* 10051 */ // Combiner Rule #266: G_SMULFIX_commute_constant_to_rhs
10758 /* 10051 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SMULFIX),
10759 /* 10054 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10760 /* 10056 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
10761 /* 10058 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
10762 /* 10060 */ GIR_RootToRootCopy, /*OpIdx*/3, // scale
10763 /* 10062 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
10764 /* 10065 */ GIR_EraseRootFromParent_Done,
10765 /* 10066 */ // Label 461: @10066
10766 /* 10066 */ GIM_Reject,
10767 /* 10067 */ // Label 62: @10067
10768 /* 10067 */ GIM_Try, /*On fail goto*//*Label 462*/ GIMT_Encode4(10094), // Rule ID 397 //
10769 /* 10072 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule267Enabled),
10770 /* 10075 */ // MIs[0] dst
10771 /* 10075 */ // No operand predicates
10772 /* 10075 */ // MIs[0] lhs
10773 /* 10075 */ // No operand predicates
10774 /* 10075 */ // MIs[0] rhs
10775 /* 10075 */ // No operand predicates
10776 /* 10075 */ // MIs[0] scale
10777 /* 10075 */ // No operand predicates
10778 /* 10075 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner51),
10779 /* 10079 */ // Combiner Rule #267: G_UMULFIX_commute_constant_to_rhs
10780 /* 10079 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UMULFIX),
10781 /* 10082 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10782 /* 10084 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
10783 /* 10086 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
10784 /* 10088 */ GIR_RootToRootCopy, /*OpIdx*/3, // scale
10785 /* 10090 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
10786 /* 10093 */ GIR_EraseRootFromParent_Done,
10787 /* 10094 */ // Label 462: @10094
10788 /* 10094 */ GIM_Reject,
10789 /* 10095 */ // Label 63: @10095
10790 /* 10095 */ GIM_Try, /*On fail goto*//*Label 463*/ GIMT_Encode4(10122), // Rule ID 398 //
10791 /* 10100 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule268Enabled),
10792 /* 10103 */ // MIs[0] dst
10793 /* 10103 */ // No operand predicates
10794 /* 10103 */ // MIs[0] lhs
10795 /* 10103 */ // No operand predicates
10796 /* 10103 */ // MIs[0] rhs
10797 /* 10103 */ // No operand predicates
10798 /* 10103 */ // MIs[0] scale
10799 /* 10103 */ // No operand predicates
10800 /* 10103 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner51),
10801 /* 10107 */ // Combiner Rule #268: G_SMULFIXSAT_commute_constant_to_rhs
10802 /* 10107 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SMULFIXSAT),
10803 /* 10110 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10804 /* 10112 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
10805 /* 10114 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
10806 /* 10116 */ GIR_RootToRootCopy, /*OpIdx*/3, // scale
10807 /* 10118 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
10808 /* 10121 */ GIR_EraseRootFromParent_Done,
10809 /* 10122 */ // Label 463: @10122
10810 /* 10122 */ GIM_Reject,
10811 /* 10123 */ // Label 64: @10123
10812 /* 10123 */ GIM_Try, /*On fail goto*//*Label 464*/ GIMT_Encode4(10150), // Rule ID 399 //
10813 /* 10128 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule269Enabled),
10814 /* 10131 */ // MIs[0] dst
10815 /* 10131 */ // No operand predicates
10816 /* 10131 */ // MIs[0] lhs
10817 /* 10131 */ // No operand predicates
10818 /* 10131 */ // MIs[0] rhs
10819 /* 10131 */ // No operand predicates
10820 /* 10131 */ // MIs[0] scale
10821 /* 10131 */ // No operand predicates
10822 /* 10131 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner51),
10823 /* 10135 */ // Combiner Rule #269: G_UMULFIXSAT_commute_constant_to_rhs
10824 /* 10135 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UMULFIXSAT),
10825 /* 10138 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10826 /* 10140 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
10827 /* 10142 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
10828 /* 10144 */ GIR_RootToRootCopy, /*OpIdx*/3, // scale
10829 /* 10146 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
10830 /* 10149 */ GIR_EraseRootFromParent_Done,
10831 /* 10150 */ // Label 464: @10150
10832 /* 10150 */ GIM_Reject,
10833 /* 10151 */ // Label 65: @10151
10834 /* 10151 */ GIM_Try, /*On fail goto*//*Label 465*/ GIMT_Encode4(10180), // Rule ID 160 //
10835 /* 10156 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule115Enabled),
10836 /* 10159 */ GIM_MIFlags, /*MI*/0, GIMT_Encode4(MachineInstr::FmNsz),
10837 /* 10165 */ // MIs[0] dst
10838 /* 10165 */ // No operand predicates
10839 /* 10165 */ // MIs[0] x
10840 /* 10165 */ // No operand predicates
10841 /* 10165 */ // MIs[0] y
10842 /* 10165 */ // No operand predicates
10843 /* 10165 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner21),
10844 /* 10169 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
10845 /* 10174 */ // Combiner Rule #115: right_identity_neg_zero_fp_nsz
10846 /* 10174 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
10847 /* 10179 */ GIR_EraseRootFromParent_Done,
10848 /* 10180 */ // Label 465: @10180
10849 /* 10180 */ GIM_Try, /*On fail goto*//*Label 466*/ GIMT_Encode4(10217), // Rule ID 327 //
10850 /* 10185 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule221Enabled),
10851 /* 10188 */ // MIs[0] dst
10852 /* 10188 */ // No operand predicates
10853 /* 10188 */ // MIs[0] negy
10854 /* 10188 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
10855 /* 10192 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FNEG),
10856 /* 10196 */ // MIs[1] y
10857 /* 10196 */ // No operand predicates
10858 /* 10196 */ // MIs[0] x
10859 /* 10196 */ // No operand predicates
10860 /* 10196 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner44),
10861 /* 10200 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
10862 /* 10202 */ // Combiner Rule #221: redundant_neg_operands_fadd_lhs
10863 /* 10202 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FSUB),
10864 /* 10205 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10865 /* 10207 */ GIR_RootToRootCopy, /*OpIdx*/2, // x
10866 /* 10209 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // y
10867 /* 10213 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
10868 /* 10216 */ GIR_EraseRootFromParent_Done,
10869 /* 10217 */ // Label 466: @10217
10870 /* 10217 */ GIM_Try, /*On fail goto*//*Label 467*/ GIMT_Encode4(10254), // Rule ID 326 //
10871 /* 10222 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule220Enabled),
10872 /* 10225 */ // MIs[0] dst
10873 /* 10225 */ // No operand predicates
10874 /* 10225 */ // MIs[0] x
10875 /* 10225 */ // No operand predicates
10876 /* 10225 */ // MIs[0] negy
10877 /* 10225 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
10878 /* 10229 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FNEG),
10879 /* 10233 */ // MIs[1] y
10880 /* 10233 */ // No operand predicates
10881 /* 10233 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner44),
10882 /* 10237 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
10883 /* 10239 */ // Combiner Rule #220: redundant_neg_operands_fadd_rhs
10884 /* 10239 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FSUB),
10885 /* 10242 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10886 /* 10244 */ GIR_RootToRootCopy, /*OpIdx*/1, // x
10887 /* 10246 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // y
10888 /* 10250 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
10889 /* 10253 */ GIR_EraseRootFromParent_Done,
10890 /* 10254 */ // Label 467: @10254
10891 /* 10254 */ GIM_Try, /*On fail goto*//*Label 468*/ GIMT_Encode4(10277), // Rule ID 159 //
10892 /* 10259 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule114Enabled),
10893 /* 10262 */ // MIs[0] dst
10894 /* 10262 */ // No operand predicates
10895 /* 10262 */ // MIs[0] x
10896 /* 10262 */ // No operand predicates
10897 /* 10262 */ // MIs[0] y
10898 /* 10262 */ // No operand predicates
10899 /* 10262 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner20),
10900 /* 10266 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
10901 /* 10271 */ // Combiner Rule #114: right_identity_neg_zero_fp
10902 /* 10271 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
10903 /* 10276 */ GIR_EraseRootFromParent_Done,
10904 /* 10277 */ // Label 468: @10277
10905 /* 10277 */ GIM_Try, /*On fail goto*//*Label 469*/ GIMT_Encode4(10302), // Rule ID 404 //
10906 /* 10282 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule274Enabled),
10907 /* 10285 */ // MIs[0] dst
10908 /* 10285 */ // No operand predicates
10909 /* 10285 */ // MIs[0] lhs
10910 /* 10285 */ // No operand predicates
10911 /* 10285 */ // MIs[0] rhs
10912 /* 10285 */ // No operand predicates
10913 /* 10285 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner52),
10914 /* 10289 */ // Combiner Rule #274: G_FADD_commute_fp_constant_to_rhs
10915 /* 10289 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FADD),
10916 /* 10292 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10917 /* 10294 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
10918 /* 10296 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
10919 /* 10298 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
10920 /* 10301 */ GIR_EraseRootFromParent_Done,
10921 /* 10302 */ // Label 469: @10302
10922 /* 10302 */ GIM_Try, /*On fail goto*//*Label 470*/ GIMT_Encode4(10313), // Rule ID 299 //
10923 /* 10307 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule214Enabled),
10924 /* 10310 */ // MIs[0] d
10925 /* 10310 */ // No operand predicates
10926 /* 10310 */ // MIs[0] mi.src0
10927 /* 10310 */ // No operand predicates
10928 /* 10310 */ // MIs[0] mi.src1
10929 /* 10310 */ // No operand predicates
10930 /* 10310 */ // Combiner Rule #214: constant_fold_fp_binop @ [mi[0]]
10931 /* 10310 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
10932 /* 10313 */ // Label 470: @10313
10933 /* 10313 */ GIM_Try, /*On fail goto*//*Label 471*/ GIMT_Encode4(10324), // Rule ID 334 //
10934 /* 10318 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule228Enabled),
10935 /* 10321 */ // MIs[0] dst
10936 /* 10321 */ // No operand predicates
10937 /* 10321 */ // MIs[0] src1
10938 /* 10321 */ // No operand predicates
10939 /* 10321 */ // MIs[0] src2
10940 /* 10321 */ // No operand predicates
10941 /* 10321 */ // Combiner Rule #228: combine_fadd_fmul_to_fmad_or_fma
10942 /* 10321 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner86),
10943 /* 10324 */ // Label 471: @10324
10944 /* 10324 */ GIM_Try, /*On fail goto*//*Label 472*/ GIMT_Encode4(10335), // Rule ID 335 //
10945 /* 10329 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule229Enabled),
10946 /* 10332 */ // MIs[0] dst
10947 /* 10332 */ // No operand predicates
10948 /* 10332 */ // MIs[0] src1
10949 /* 10332 */ // No operand predicates
10950 /* 10332 */ // MIs[0] src2
10951 /* 10332 */ // No operand predicates
10952 /* 10332 */ // Combiner Rule #229: combine_fadd_fpext_fmul_to_fmad_or_fma
10953 /* 10332 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner87),
10954 /* 10335 */ // Label 472: @10335
10955 /* 10335 */ GIM_Try, /*On fail goto*//*Label 473*/ GIMT_Encode4(10346), // Rule ID 336 //
10956 /* 10340 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule230Enabled),
10957 /* 10343 */ // MIs[0] dst
10958 /* 10343 */ // No operand predicates
10959 /* 10343 */ // MIs[0] src1
10960 /* 10343 */ // No operand predicates
10961 /* 10343 */ // MIs[0] src2
10962 /* 10343 */ // No operand predicates
10963 /* 10343 */ // Combiner Rule #230: combine_fadd_fma_fmul_to_fmad_or_fma
10964 /* 10343 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner88),
10965 /* 10346 */ // Label 473: @10346
10966 /* 10346 */ GIM_Try, /*On fail goto*//*Label 474*/ GIMT_Encode4(10357), // Rule ID 337 //
10967 /* 10351 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule231Enabled),
10968 /* 10354 */ // MIs[0] dst
10969 /* 10354 */ // No operand predicates
10970 /* 10354 */ // MIs[0] src1
10971 /* 10354 */ // No operand predicates
10972 /* 10354 */ // MIs[0] src2
10973 /* 10354 */ // No operand predicates
10974 /* 10354 */ // Combiner Rule #231: combine_fadd_fpext_fma_fmul_to_fmad_or_fma
10975 /* 10354 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner89),
10976 /* 10357 */ // Label 474: @10357
10977 /* 10357 */ GIM_Try, /*On fail goto*//*Label 475*/ GIMT_Encode4(10368), // Rule ID 360 //
10978 /* 10362 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule237Enabled),
10979 /* 10365 */ // MIs[0] root
10980 /* 10365 */ // No operand predicates
10981 /* 10365 */ // MIs[0] mi.x
10982 /* 10365 */ // No operand predicates
10983 /* 10365 */ // MIs[0] mi.y
10984 /* 10365 */ // No operand predicates
10985 /* 10365 */ // Combiner Rule #237: fold_binop_into_select_b @ [mi[5]]
10986 /* 10365 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
10987 /* 10368 */ // Label 475: @10368
10988 /* 10368 */ GIM_Reject,
10989 /* 10369 */ // Label 66: @10369
10990 /* 10369 */ GIM_Try, /*On fail goto*//*Label 476*/ GIMT_Encode4(10410), // Rule ID 382 //
10991 /* 10374 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule252Enabled),
10992 /* 10377 */ // MIs[0] dst
10993 /* 10377 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
10994 /* 10381 */ // MIs[0] lhs
10995 /* 10381 */ // No operand predicates
10996 /* 10381 */ // MIs[0] rhs
10997 /* 10381 */ // No operand predicates
10998 /* 10381 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner50),
10999 /* 10385 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
11000 /* 10388 */ // Combiner Rule #252: fsub_to_fneg
11001 /* 10388 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FCANONICALIZE),
11002 /* 10391 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
11003 /* 10396 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
11004 /* 10398 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FNEG),
11005 /* 10402 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
11006 /* 10406 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
11007 /* 10409 */ GIR_EraseRootFromParent_Done,
11008 /* 10410 */ // Label 476: @10410
11009 /* 10410 */ GIM_Try, /*On fail goto*//*Label 477*/ GIMT_Encode4(10447), // Rule ID 328 //
11010 /* 10415 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule222Enabled),
11011 /* 10418 */ // MIs[0] dst
11012 /* 10418 */ // No operand predicates
11013 /* 10418 */ // MIs[0] x
11014 /* 10418 */ // No operand predicates
11015 /* 10418 */ // MIs[0] negy
11016 /* 10418 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
11017 /* 10422 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FNEG),
11018 /* 10426 */ // MIs[1] y
11019 /* 10426 */ // No operand predicates
11020 /* 10426 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner45),
11021 /* 10430 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
11022 /* 10432 */ // Combiner Rule #222: redundant_neg_operands_fsub
11023 /* 10432 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FADD),
11024 /* 10435 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
11025 /* 10437 */ GIR_RootToRootCopy, /*OpIdx*/1, // x
11026 /* 10439 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // y
11027 /* 10443 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
11028 /* 10446 */ GIR_EraseRootFromParent_Done,
11029 /* 10447 */ // Label 477: @10447
11030 /* 10447 */ GIM_Try, /*On fail goto*//*Label 478*/ GIMT_Encode4(10458), // Rule ID 300 //
11031 /* 10452 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule214Enabled),
11032 /* 10455 */ // MIs[0] d
11033 /* 10455 */ // No operand predicates
11034 /* 10455 */ // MIs[0] mi.src0
11035 /* 10455 */ // No operand predicates
11036 /* 10455 */ // MIs[0] mi.src1
11037 /* 10455 */ // No operand predicates
11038 /* 10455 */ // Combiner Rule #214: constant_fold_fp_binop @ [mi[1]]
11039 /* 10455 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
11040 /* 10458 */ // Label 478: @10458
11041 /* 10458 */ GIM_Try, /*On fail goto*//*Label 479*/ GIMT_Encode4(10469), // Rule ID 338 //
11042 /* 10463 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule232Enabled),
11043 /* 10466 */ // MIs[0] dst
11044 /* 10466 */ // No operand predicates
11045 /* 10466 */ // MIs[0] src1
11046 /* 10466 */ // No operand predicates
11047 /* 10466 */ // MIs[0] src2
11048 /* 10466 */ // No operand predicates
11049 /* 10466 */ // Combiner Rule #232: combine_fsub_fmul_to_fmad_or_fma
11050 /* 10466 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner90),
11051 /* 10469 */ // Label 479: @10469
11052 /* 10469 */ GIM_Try, /*On fail goto*//*Label 480*/ GIMT_Encode4(10480), // Rule ID 339 //
11053 /* 10474 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule233Enabled),
11054 /* 10477 */ // MIs[0] dst
11055 /* 10477 */ // No operand predicates
11056 /* 10477 */ // MIs[0] src1
11057 /* 10477 */ // No operand predicates
11058 /* 10477 */ // MIs[0] src2
11059 /* 10477 */ // No operand predicates
11060 /* 10477 */ // Combiner Rule #233: combine_fsub_fneg_fmul_to_fmad_or_fma
11061 /* 10477 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner91),
11062 /* 10480 */ // Label 480: @10480
11063 /* 10480 */ GIM_Try, /*On fail goto*//*Label 481*/ GIMT_Encode4(10491), // Rule ID 340 //
11064 /* 10485 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule234Enabled),
11065 /* 10488 */ // MIs[0] dst
11066 /* 10488 */ // No operand predicates
11067 /* 10488 */ // MIs[0] src1
11068 /* 10488 */ // No operand predicates
11069 /* 10488 */ // MIs[0] src2
11070 /* 10488 */ // No operand predicates
11071 /* 10488 */ // Combiner Rule #234: combine_fsub_fpext_fmul_to_fmad_or_fma
11072 /* 10488 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner92),
11073 /* 10491 */ // Label 481: @10491
11074 /* 10491 */ GIM_Try, /*On fail goto*//*Label 482*/ GIMT_Encode4(10502), // Rule ID 341 //
11075 /* 10496 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule235Enabled),
11076 /* 10499 */ // MIs[0] dst
11077 /* 10499 */ // No operand predicates
11078 /* 10499 */ // MIs[0] src1
11079 /* 10499 */ // No operand predicates
11080 /* 10499 */ // MIs[0] src2
11081 /* 10499 */ // No operand predicates
11082 /* 10499 */ // Combiner Rule #235: combine_fsub_fpext_fneg_fmul_to_fmad_or_fma
11083 /* 10499 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner93),
11084 /* 10502 */ // Label 482: @10502
11085 /* 10502 */ GIM_Try, /*On fail goto*//*Label 483*/ GIMT_Encode4(10513), // Rule ID 361 //
11086 /* 10507 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule237Enabled),
11087 /* 10510 */ // MIs[0] root
11088 /* 10510 */ // No operand predicates
11089 /* 10510 */ // MIs[0] mi.x
11090 /* 10510 */ // No operand predicates
11091 /* 10510 */ // MIs[0] mi.y
11092 /* 10510 */ // No operand predicates
11093 /* 10510 */ // Combiner Rule #237: fold_binop_into_select_b @ [mi[6]]
11094 /* 10510 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
11095 /* 10513 */ // Label 483: @10513
11096 /* 10513 */ GIM_Reject,
11097 /* 10514 */ // Label 67: @10514
11098 /* 10514 */ GIM_Try, /*On fail goto*//*Label 484*/ GIMT_Encode4(10537), // Rule ID 149 //
11099 /* 10519 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule105Enabled),
11100 /* 10522 */ // MIs[0] dst
11101 /* 10522 */ // No operand predicates
11102 /* 10522 */ // MIs[0] x
11103 /* 10522 */ // No operand predicates
11104 /* 10522 */ // MIs[0] y
11105 /* 10522 */ // No operand predicates
11106 /* 10522 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner18),
11107 /* 10526 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
11108 /* 10531 */ // Combiner Rule #105: right_identity_one_fp
11109 /* 10531 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
11110 /* 10536 */ GIR_EraseRootFromParent_Done,
11111 /* 10537 */ // Label 484: @10537
11112 /* 10537 */ GIM_Try, /*On fail goto*//*Label 485*/ GIMT_Encode4(10557), // Rule ID 161 //
11113 /* 10542 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule116Enabled),
11114 /* 10545 */ // MIs[0] dst
11115 /* 10545 */ // No operand predicates
11116 /* 10545 */ // MIs[0] x
11117 /* 10545 */ // No operand predicates
11118 /* 10545 */ // MIs[0] y
11119 /* 10545 */ // No operand predicates
11120 /* 10545 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner22),
11121 /* 10549 */ // Combiner Rule #116: right_identity_neg_one_fp
11122 /* 10549 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FNEG),
11123 /* 10552 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
11124 /* 10554 */ GIR_RootToRootCopy, /*OpIdx*/1, // x
11125 /* 10556 */ GIR_EraseRootFromParent_Done,
11126 /* 10557 */ // Label 485: @10557
11127 /* 10557 */ GIM_Try, /*On fail goto*//*Label 486*/ GIMT_Encode4(10582), // Rule ID 405 //
11128 /* 10562 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule275Enabled),
11129 /* 10565 */ // MIs[0] dst
11130 /* 10565 */ // No operand predicates
11131 /* 10565 */ // MIs[0] lhs
11132 /* 10565 */ // No operand predicates
11133 /* 10565 */ // MIs[0] rhs
11134 /* 10565 */ // No operand predicates
11135 /* 10565 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner52),
11136 /* 10569 */ // Combiner Rule #275: G_FMUL_commute_fp_constant_to_rhs
11137 /* 10569 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FMUL),
11138 /* 10572 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
11139 /* 10574 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
11140 /* 10576 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
11141 /* 10578 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
11142 /* 10581 */ GIR_EraseRootFromParent_Done,
11143 /* 10582 */ // Label 486: @10582
11144 /* 10582 */ GIM_Try, /*On fail goto*//*Label 487*/ GIMT_Encode4(10625), // Rule ID 329 //
11145 /* 10587 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule223Enabled),
11146 /* 10590 */ // MIs[0] dst
11147 /* 10590 */ // No operand predicates
11148 /* 10590 */ // MIs[0] nx
11149 /* 10590 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
11150 /* 10594 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FNEG),
11151 /* 10598 */ // MIs[1] x
11152 /* 10598 */ // No operand predicates
11153 /* 10598 */ // MIs[0] ny
11154 /* 10598 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
11155 /* 10602 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_FNEG),
11156 /* 10606 */ // MIs[2] y
11157 /* 10606 */ // No operand predicates
11158 /* 10606 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
11159 /* 10608 */ // Combiner Rule #223: G_FMUL_fneg_fneg
11160 /* 10608 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FMUL),
11161 /* 10611 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
11162 /* 10613 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
11163 /* 10617 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // y
11164 /* 10621 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
11165 /* 10624 */ GIR_EraseRootFromParent_Done,
11166 /* 10625 */ // Label 487: @10625
11167 /* 10625 */ GIM_Try, /*On fail goto*//*Label 488*/ GIMT_Encode4(10636), // Rule ID 301 //
11168 /* 10630 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule214Enabled),
11169 /* 10633 */ // MIs[0] d
11170 /* 10633 */ // No operand predicates
11171 /* 10633 */ // MIs[0] mi.src0
11172 /* 10633 */ // No operand predicates
11173 /* 10633 */ // MIs[0] mi.src1
11174 /* 10633 */ // No operand predicates
11175 /* 10633 */ // Combiner Rule #214: constant_fold_fp_binop @ [mi[2]]
11176 /* 10633 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
11177 /* 10636 */ // Label 488: @10636
11178 /* 10636 */ GIM_Try, /*On fail goto*//*Label 489*/ GIMT_Encode4(10647), // Rule ID 359 //
11179 /* 10641 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule237Enabled),
11180 /* 10644 */ // MIs[0] root
11181 /* 10644 */ // No operand predicates
11182 /* 10644 */ // MIs[0] mi.x
11183 /* 10644 */ // No operand predicates
11184 /* 10644 */ // MIs[0] mi.y
11185 /* 10644 */ // No operand predicates
11186 /* 10644 */ // Combiner Rule #237: fold_binop_into_select_b @ [mi[4]]
11187 /* 10644 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
11188 /* 10647 */ // Label 489: @10647
11189 /* 10647 */ GIM_Reject,
11190 /* 10648 */ // Label 68: @10648
11191 /* 10648 */ GIM_Try, /*On fail goto*//*Label 490*/ GIMT_Encode4(10693), // Rule ID 332 //
11192 /* 10653 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule226Enabled),
11193 /* 10656 */ // MIs[0] dst
11194 /* 10656 */ // No operand predicates
11195 /* 10656 */ // MIs[0] nx
11196 /* 10656 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
11197 /* 10660 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FNEG),
11198 /* 10664 */ // MIs[1] x
11199 /* 10664 */ // No operand predicates
11200 /* 10664 */ // MIs[0] ny
11201 /* 10664 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
11202 /* 10668 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_FNEG),
11203 /* 10672 */ // MIs[2] y
11204 /* 10672 */ // No operand predicates
11205 /* 10672 */ // MIs[0] z
11206 /* 10672 */ // No operand predicates
11207 /* 10672 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
11208 /* 10674 */ // Combiner Rule #226: G_FMA_fneg_fneg
11209 /* 10674 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FMA),
11210 /* 10677 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
11211 /* 10679 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
11212 /* 10683 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // y
11213 /* 10687 */ GIR_RootToRootCopy, /*OpIdx*/3, // z
11214 /* 10689 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
11215 /* 10692 */ GIR_EraseRootFromParent_Done,
11216 /* 10693 */ // Label 490: @10693
11217 /* 10693 */ GIM_Try, /*On fail goto*//*Label 491*/ GIMT_Encode4(10704), // Rule ID 312 //
11218 /* 10698 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule215Enabled),
11219 /* 10701 */ // MIs[0] dst
11220 /* 10701 */ // No operand predicates
11221 /* 10701 */ // MIs[0] d.src0
11222 /* 10701 */ // No operand predicates
11223 /* 10701 */ // MIs[0] d.src1
11224 /* 10701 */ // No operand predicates
11225 /* 10701 */ // MIs[0] d.src2
11226 /* 10701 */ // No operand predicates
11227 /* 10701 */ // Combiner Rule #215: constant_fold_fma @ [d[1]]
11228 /* 10701 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner81),
11229 /* 10704 */ // Label 491: @10704
11230 /* 10704 */ GIM_Reject,
11231 /* 10705 */ // Label 69: @10705
11232 /* 10705 */ GIM_Try, /*On fail goto*//*Label 492*/ GIMT_Encode4(10750), // Rule ID 331 //
11233 /* 10710 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule225Enabled),
11234 /* 10713 */ // MIs[0] dst
11235 /* 10713 */ // No operand predicates
11236 /* 10713 */ // MIs[0] nx
11237 /* 10713 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
11238 /* 10717 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FNEG),
11239 /* 10721 */ // MIs[1] x
11240 /* 10721 */ // No operand predicates
11241 /* 10721 */ // MIs[0] ny
11242 /* 10721 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
11243 /* 10725 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_FNEG),
11244 /* 10729 */ // MIs[2] y
11245 /* 10729 */ // No operand predicates
11246 /* 10729 */ // MIs[0] z
11247 /* 10729 */ // No operand predicates
11248 /* 10729 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
11249 /* 10731 */ // Combiner Rule #225: G_FMAD_fneg_fneg
11250 /* 10731 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FMAD),
11251 /* 10734 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
11252 /* 10736 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
11253 /* 10740 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // y
11254 /* 10744 */ GIR_RootToRootCopy, /*OpIdx*/3, // z
11255 /* 10746 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
11256 /* 10749 */ GIR_EraseRootFromParent_Done,
11257 /* 10750 */ // Label 492: @10750
11258 /* 10750 */ GIM_Try, /*On fail goto*//*Label 493*/ GIMT_Encode4(10761), // Rule ID 311 //
11259 /* 10755 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule215Enabled),
11260 /* 10758 */ // MIs[0] dst
11261 /* 10758 */ // No operand predicates
11262 /* 10758 */ // MIs[0] d.src0
11263 /* 10758 */ // No operand predicates
11264 /* 10758 */ // MIs[0] d.src1
11265 /* 10758 */ // No operand predicates
11266 /* 10758 */ // MIs[0] d.src2
11267 /* 10758 */ // No operand predicates
11268 /* 10758 */ // Combiner Rule #215: constant_fold_fma @ [d[0]]
11269 /* 10758 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner81),
11270 /* 10761 */ // Label 493: @10761
11271 /* 10761 */ GIM_Reject,
11272 /* 10762 */ // Label 70: @10762
11273 /* 10762 */ GIM_Try, /*On fail goto*//*Label 494*/ GIMT_Encode4(10805), // Rule ID 330 //
11274 /* 10767 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule224Enabled),
11275 /* 10770 */ // MIs[0] dst
11276 /* 10770 */ // No operand predicates
11277 /* 10770 */ // MIs[0] nx
11278 /* 10770 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
11279 /* 10774 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FNEG),
11280 /* 10778 */ // MIs[1] x
11281 /* 10778 */ // No operand predicates
11282 /* 10778 */ // MIs[0] ny
11283 /* 10778 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
11284 /* 10782 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_FNEG),
11285 /* 10786 */ // MIs[2] y
11286 /* 10786 */ // No operand predicates
11287 /* 10786 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
11288 /* 10788 */ // Combiner Rule #224: G_FDIV_fneg_fneg
11289 /* 10788 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FDIV),
11290 /* 10791 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
11291 /* 10793 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
11292 /* 10797 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // y
11293 /* 10801 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
11294 /* 10804 */ GIR_EraseRootFromParent_Done,
11295 /* 10805 */ // Label 494: @10805
11296 /* 10805 */ GIM_Try, /*On fail goto*//*Label 495*/ GIMT_Encode4(10816), // Rule ID 302 //
11297 /* 10810 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule214Enabled),
11298 /* 10813 */ // MIs[0] d
11299 /* 10813 */ // No operand predicates
11300 /* 10813 */ // MIs[0] mi.src0
11301 /* 10813 */ // No operand predicates
11302 /* 10813 */ // MIs[0] mi.src1
11303 /* 10813 */ // No operand predicates
11304 /* 10813 */ // Combiner Rule #214: constant_fold_fp_binop @ [mi[3]]
11305 /* 10813 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
11306 /* 10816 */ // Label 495: @10816
11307 /* 10816 */ GIM_Try, /*On fail goto*//*Label 496*/ GIMT_Encode4(10827), // Rule ID 362 //
11308 /* 10821 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule237Enabled),
11309 /* 10824 */ // MIs[0] root
11310 /* 10824 */ // No operand predicates
11311 /* 10824 */ // MIs[0] mi.x
11312 /* 10824 */ // No operand predicates
11313 /* 10824 */ // MIs[0] mi.y
11314 /* 10824 */ // No operand predicates
11315 /* 10824 */ // Combiner Rule #237: fold_binop_into_select_b @ [mi[7]]
11316 /* 10824 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
11317 /* 10827 */ // Label 496: @10827
11318 /* 10827 */ GIM_Try, /*On fail goto*//*Label 497*/ GIMT_Encode4(10838), // Rule ID 376 //
11319 /* 10832 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule246Enabled),
11320 /* 10835 */ // MIs[0] dst
11321 /* 10835 */ // No operand predicates
11322 /* 10835 */ // MIs[0] src1
11323 /* 10835 */ // No operand predicates
11324 /* 10835 */ // MIs[0] src2
11325 /* 10835 */ // No operand predicates
11326 /* 10835 */ // Combiner Rule #246: fdiv_repeated_divison
11327 /* 10835 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner101),
11328 /* 10838 */ // Label 497: @10838
11329 /* 10838 */ GIM_Reject,
11330 /* 10839 */ // Label 71: @10839
11331 /* 10839 */ GIM_Try, /*On fail goto*//*Label 498*/ GIMT_Encode4(10850), // Rule ID 303 //
11332 /* 10844 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule214Enabled),
11333 /* 10847 */ // MIs[0] d
11334 /* 10847 */ // No operand predicates
11335 /* 10847 */ // MIs[0] mi.src0
11336 /* 10847 */ // No operand predicates
11337 /* 10847 */ // MIs[0] mi.src1
11338 /* 10847 */ // No operand predicates
11339 /* 10847 */ // Combiner Rule #214: constant_fold_fp_binop @ [mi[4]]
11340 /* 10847 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
11341 /* 10850 */ // Label 498: @10850
11342 /* 10850 */ GIM_Try, /*On fail goto*//*Label 499*/ GIMT_Encode4(10861), // Rule ID 363 //
11343 /* 10855 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule237Enabled),
11344 /* 10858 */ // MIs[0] root
11345 /* 10858 */ // No operand predicates
11346 /* 10858 */ // MIs[0] mi.x
11347 /* 10858 */ // No operand predicates
11348 /* 10858 */ // MIs[0] mi.y
11349 /* 10858 */ // No operand predicates
11350 /* 10858 */ // Combiner Rule #237: fold_binop_into_select_b @ [mi[8]]
11351 /* 10858 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
11352 /* 10861 */ // Label 499: @10861
11353 /* 10861 */ GIM_Reject,
11354 /* 10862 */ // Label 72: @10862
11355 /* 10862 */ GIM_Try, /*On fail goto*//*Label 500*/ GIMT_Encode4(10883), // Rule ID 243 //
11356 /* 10867 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule189Enabled),
11357 /* 10870 */ // MIs[0] dst
11358 /* 10870 */ // No operand predicates
11359 /* 10870 */ // MIs[0] float
11360 /* 10870 */ // No operand predicates
11361 /* 10870 */ // MIs[0] int
11362 /* 10870 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
11363 /* 10874 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
11364 /* 10878 */ // MIs[1] imm
11365 /* 10878 */ // No operand predicates
11366 /* 10878 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
11367 /* 10880 */ // Combiner Rule #189: expand_const_fpowi
11368 /* 10880 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner67),
11369 /* 10883 */ // Label 500: @10883
11370 /* 10883 */ GIM_Reject,
11371 /* 10884 */ // Label 73: @10884
11372 /* 10884 */ GIM_Try, /*On fail goto*//*Label 501*/ GIMT_Encode4(10895), // Rule ID 213 //
11373 /* 10889 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule163Enabled),
11374 /* 10892 */ // MIs[0] dst
11375 /* 10892 */ // No operand predicates
11376 /* 10892 */ // MIs[0] src0
11377 /* 10892 */ // No operand predicates
11378 /* 10892 */ // Combiner Rule #163: constant_fold_flog2
11379 /* 10892 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner63),
11380 /* 10895 */ // Label 501: @10895
11381 /* 10895 */ GIM_Reject,
11382 /* 10896 */ // Label 74: @10896
11383 /* 10896 */ GIM_Try, /*On fail goto*//*Label 502*/ GIMT_Encode4(10925), // Rule ID 147 //
11384 /* 10901 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule103Enabled),
11385 /* 10904 */ // MIs[0] dst
11386 /* 10904 */ // No operand predicates
11387 /* 10904 */ // MIs[0] t
11388 /* 10904 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
11389 /* 10908 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FNEG),
11390 /* 10912 */ // MIs[1] src
11391 /* 10912 */ // No operand predicates
11392 /* 10912 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
11393 /* 10917 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
11394 /* 10919 */ // Combiner Rule #103: fneg_fneg_fold
11395 /* 10919 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
11396 /* 10924 */ GIR_EraseRootFromParent_Done,
11397 /* 10925 */ // Label 502: @10925
11398 /* 10925 */ GIM_Try, /*On fail goto*//*Label 503*/ GIMT_Encode4(10936), // Rule ID 210 //
11399 /* 10930 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule160Enabled),
11400 /* 10933 */ // MIs[0] dst
11401 /* 10933 */ // No operand predicates
11402 /* 10933 */ // MIs[0] src0
11403 /* 10933 */ // No operand predicates
11404 /* 10933 */ // Combiner Rule #160: constant_fold_fneg
11405 /* 10933 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner63),
11406 /* 10936 */ // Label 503: @10936
11407 /* 10936 */ GIM_Reject,
11408 /* 10937 */ // Label 75: @10937
11409 /* 10937 */ GIM_Try, /*On fail goto*//*Label 504*/ GIMT_Encode4(10948), // Rule ID 215 //
11410 /* 10942 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule165Enabled),
11411 /* 10945 */ // MIs[0] dst
11412 /* 10945 */ // No operand predicates
11413 /* 10945 */ // MIs[0] src0
11414 /* 10945 */ // No operand predicates
11415 /* 10945 */ // Combiner Rule #165: constant_fold_fpext
11416 /* 10945 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner63),
11417 /* 10948 */ // Label 504: @10948
11418 /* 10948 */ GIM_Reject,
11419 /* 10949 */ // Label 76: @10949
11420 /* 10949 */ GIM_Try, /*On fail goto*//*Label 505*/ GIMT_Encode4(10982), // Rule ID 158 //
11421 /* 10954 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule113Enabled),
11422 /* 10957 */ // MIs[0] dst
11423 /* 10957 */ // No operand predicates
11424 /* 10957 */ // MIs[0] src1
11425 /* 10957 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
11426 /* 10961 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FPEXT),
11427 /* 10965 */ // MIs[1] src0
11428 /* 10965 */ // No operand predicates
11429 /* 10965 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner14),
11430 /* 10969 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
11431 /* 10974 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
11432 /* 10976 */ // Combiner Rule #113: fptrunc_fpext_fold
11433 /* 10976 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
11434 /* 10981 */ GIR_EraseRootFromParent_Done,
11435 /* 10982 */ // Label 505: @10982
11436 /* 10982 */ GIM_Try, /*On fail goto*//*Label 506*/ GIMT_Encode4(10993), // Rule ID 214 //
11437 /* 10987 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule164Enabled),
11438 /* 10990 */ // MIs[0] dst
11439 /* 10990 */ // No operand predicates
11440 /* 10990 */ // MIs[0] src0
11441 /* 10990 */ // No operand predicates
11442 /* 10990 */ // Combiner Rule #164: constant_fold_fptrunc
11443 /* 10990 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner63),
11444 /* 10993 */ // Label 506: @10993
11445 /* 10993 */ GIM_Reject,
11446 /* 10994 */ // Label 77: @10994
11447 /* 10994 */ GIM_Try, /*On fail goto*//*Label 507*/ GIMT_Encode4(11018), // Rule ID 103 //
11448 /* 10999 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule83Enabled),
11449 /* 11002 */ // MIs[0] dst
11450 /* 11002 */ // No operand predicates
11451 /* 11002 */ // MIs[0] __unary_undef_to_undef_match_0.x
11452 /* 11002 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
11453 /* 11006 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
11454 /* 11010 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
11455 /* 11012 */ // Combiner Rule #83: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[5]]
11456 /* 11012 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
11457 /* 11015 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
11458 /* 11017 */ GIR_EraseRootFromParent_Done,
11459 /* 11018 */ // Label 507: @11018
11460 /* 11018 */ GIM_Reject,
11461 /* 11019 */ // Label 78: @11019
11462 /* 11019 */ GIM_Try, /*On fail goto*//*Label 508*/ GIMT_Encode4(11047), // Rule ID 449 //
11463 /* 11024 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule319Enabled),
11464 /* 11027 */ // MIs[0] dst
11465 /* 11027 */ // No operand predicates
11466 /* 11027 */ // MIs[0] floor
11467 /* 11027 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
11468 /* 11031 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FFLOOR),
11469 /* 11035 */ // MIs[1] x
11470 /* 11035 */ // No operand predicates
11471 /* 11035 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
11472 /* 11037 */ // Combiner Rule #319: fptoui_ffloor_fold
11473 /* 11037 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FPTOUI),
11474 /* 11040 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
11475 /* 11042 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
11476 /* 11046 */ GIR_EraseRootFromParent_Done,
11477 /* 11047 */ // Label 508: @11047
11478 /* 11047 */ GIM_Try, /*On fail goto*//*Label 509*/ GIMT_Encode4(11071), // Rule ID 104 //
11479 /* 11052 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule83Enabled),
11480 /* 11055 */ // MIs[0] dst
11481 /* 11055 */ // No operand predicates
11482 /* 11055 */ // MIs[0] __unary_undef_to_undef_match_0.x
11483 /* 11055 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
11484 /* 11059 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
11485 /* 11063 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
11486 /* 11065 */ // Combiner Rule #83: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[6]]
11487 /* 11065 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
11488 /* 11068 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
11489 /* 11070 */ GIR_EraseRootFromParent_Done,
11490 /* 11071 */ // Label 509: @11071
11491 /* 11071 */ GIM_Reject,
11492 /* 11072 */ // Label 79: @11072
11493 /* 11072 */ GIM_Try, /*On fail goto*//*Label 510*/ GIMT_Encode4(11093), // Rule ID 84 //
11494 /* 11077 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule77Enabled),
11495 /* 11080 */ // MIs[0] dst
11496 /* 11080 */ // No operand predicates
11497 /* 11080 */ // MIs[0] __undef_to_fp_zero_match_0.x
11498 /* 11080 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
11499 /* 11084 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
11500 /* 11088 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
11501 /* 11090 */ // Combiner Rule #77: undef_to_fp_zero @ [__undef_to_fp_zero_match_0[1]]
11502 /* 11090 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner30),
11503 /* 11093 */ // Label 510: @11093
11504 /* 11093 */ GIM_Try, /*On fail goto*//*Label 511*/ GIMT_Encode4(11108), // Rule ID 223 //
11505 /* 11098 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule173Enabled),
11506 /* 11101 */ // MIs[0] dst
11507 /* 11101 */ // No operand predicates
11508 /* 11101 */ // MIs[0] Operand 1
11509 /* 11101 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/1, 0,
11510 /* 11105 */ // Combiner Rule #173: itof_const_zero_fold_si
11511 /* 11105 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner30),
11512 /* 11108 */ // Label 511: @11108
11513 /* 11108 */ GIM_Reject,
11514 /* 11109 */ // Label 80: @11109
11515 /* 11109 */ GIM_Try, /*On fail goto*//*Label 512*/ GIMT_Encode4(11130), // Rule ID 83 //
11516 /* 11114 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule77Enabled),
11517 /* 11117 */ // MIs[0] dst
11518 /* 11117 */ // No operand predicates
11519 /* 11117 */ // MIs[0] __undef_to_fp_zero_match_0.x
11520 /* 11117 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
11521 /* 11121 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
11522 /* 11125 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
11523 /* 11127 */ // Combiner Rule #77: undef_to_fp_zero @ [__undef_to_fp_zero_match_0[0]]
11524 /* 11127 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner30),
11525 /* 11130 */ // Label 512: @11130
11526 /* 11130 */ GIM_Try, /*On fail goto*//*Label 513*/ GIMT_Encode4(11145), // Rule ID 224 //
11527 /* 11135 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule174Enabled),
11528 /* 11138 */ // MIs[0] dst
11529 /* 11138 */ // No operand predicates
11530 /* 11138 */ // MIs[0] Operand 1
11531 /* 11138 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/1, 0,
11532 /* 11142 */ // Combiner Rule #174: itof_const_zero_fold_ui
11533 /* 11142 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner30),
11534 /* 11145 */ // Label 513: @11145
11535 /* 11145 */ GIM_Reject,
11536 /* 11146 */ // Label 81: @11146
11537 /* 11146 */ GIM_Try, /*On fail goto*//*Label 514*/ GIMT_Encode4(11174), // Rule ID 450 //
11538 /* 11151 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule320Enabled),
11539 /* 11154 */ // MIs[0] dst
11540 /* 11154 */ // No operand predicates
11541 /* 11154 */ // MIs[0] floor
11542 /* 11154 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
11543 /* 11158 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FFLOOR),
11544 /* 11162 */ // MIs[1] x
11545 /* 11162 */ // No operand predicates
11546 /* 11162 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
11547 /* 11164 */ // Combiner Rule #320: fptouisat_ffloor_fold
11548 /* 11164 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FPTOUI_SAT),
11549 /* 11167 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
11550 /* 11169 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
11551 /* 11173 */ GIR_EraseRootFromParent_Done,
11552 /* 11174 */ // Label 514: @11174
11553 /* 11174 */ GIM_Reject,
11554 /* 11175 */ // Label 82: @11175
11555 /* 11175 */ GIM_Try, /*On fail goto*//*Label 515*/ GIMT_Encode4(11204), // Rule ID 26 //
11556 /* 11180 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule24Enabled),
11557 /* 11183 */ // MIs[0] dst
11558 /* 11183 */ // No operand predicates
11559 /* 11183 */ // MIs[0] src
11560 /* 11183 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
11561 /* 11187 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FABS),
11562 /* 11191 */ // MIs[1] __idempotent_prop_match_0.x
11563 /* 11191 */ // No operand predicates
11564 /* 11191 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
11565 /* 11196 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
11566 /* 11198 */ // Combiner Rule #24: idempotent_prop @ [__idempotent_prop_match_0[1]]
11567 /* 11198 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
11568 /* 11203 */ GIR_EraseRootFromParent_Done,
11569 /* 11204 */ // Label 515: @11204
11570 /* 11204 */ GIM_Try, /*On fail goto*//*Label 516*/ GIMT_Encode4(11232), // Rule ID 324 //
11571 /* 11209 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule218Enabled),
11572 /* 11212 */ // MIs[0] dst
11573 /* 11212 */ // No operand predicates
11574 /* 11212 */ // MIs[0] tmp
11575 /* 11212 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
11576 /* 11216 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FNEG),
11577 /* 11220 */ // MIs[1] x
11578 /* 11220 */ // No operand predicates
11579 /* 11220 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
11580 /* 11222 */ // Combiner Rule #218: fabs_fneg_fold
11581 /* 11222 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FABS),
11582 /* 11225 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
11583 /* 11227 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
11584 /* 11231 */ GIR_EraseRootFromParent_Done,
11585 /* 11232 */ // Label 516: @11232
11586 /* 11232 */ GIM_Try, /*On fail goto*//*Label 517*/ GIMT_Encode4(11243), // Rule ID 211 //
11587 /* 11237 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule161Enabled),
11588 /* 11240 */ // MIs[0] dst
11589 /* 11240 */ // No operand predicates
11590 /* 11240 */ // MIs[0] src0
11591 /* 11240 */ // No operand predicates
11592 /* 11240 */ // Combiner Rule #161: constant_fold_fabs
11593 /* 11240 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner63),
11594 /* 11243 */ // Label 517: @11243
11595 /* 11243 */ GIM_Reject,
11596 /* 11244 */ // Label 83: @11244
11597 /* 11244 */ GIM_Try, /*On fail goto*//*Label 518*/ GIMT_Encode4(11255), // Rule ID 304 //
11598 /* 11249 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule214Enabled),
11599 /* 11252 */ // MIs[0] d
11600 /* 11252 */ // No operand predicates
11601 /* 11252 */ // MIs[0] mi.src0
11602 /* 11252 */ // No operand predicates
11603 /* 11252 */ // MIs[0] mi.src1
11604 /* 11252 */ // No operand predicates
11605 /* 11252 */ // Combiner Rule #214: constant_fold_fp_binop @ [mi[5]]
11606 /* 11252 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
11607 /* 11255 */ // Label 518: @11255
11608 /* 11255 */ GIM_Reject,
11609 /* 11256 */ // Label 84: @11256
11610 /* 11256 */ GIM_Try, /*On fail goto*//*Label 519*/ GIMT_Encode4(11285), // Rule ID 27 //
11611 /* 11261 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule24Enabled),
11612 /* 11264 */ // MIs[0] dst
11613 /* 11264 */ // No operand predicates
11614 /* 11264 */ // MIs[0] src
11615 /* 11264 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
11616 /* 11268 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCANONICALIZE),
11617 /* 11272 */ // MIs[1] __idempotent_prop_match_0.x
11618 /* 11272 */ // No operand predicates
11619 /* 11272 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
11620 /* 11277 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
11621 /* 11279 */ // Combiner Rule #24: idempotent_prop @ [__idempotent_prop_match_0[2]]
11622 /* 11279 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
11623 /* 11284 */ GIR_EraseRootFromParent_Done,
11624 /* 11285 */ // Label 519: @11285
11625 /* 11285 */ GIM_Reject,
11626 /* 11286 */ // Label 85: @11286
11627 /* 11286 */ GIM_Try, /*On fail goto*//*Label 520*/ GIMT_Encode4(11309), // Rule ID 235 //
11628 /* 11291 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule185Enabled),
11629 /* 11294 */ // MIs[0] dst
11630 /* 11294 */ // No operand predicates
11631 /* 11294 */ // MIs[0] lhs
11632 /* 11294 */ // No operand predicates
11633 /* 11294 */ // MIs[0] rhs
11634 /* 11294 */ // No operand predicates
11635 /* 11294 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner35),
11636 /* 11298 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
11637 /* 11303 */ // Combiner Rule #185: minmax_nan_num_lhs @ [__minmax_nan_num_lhs_match_0[0]]
11638 /* 11303 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
11639 /* 11308 */ GIR_EraseRootFromParent_Done,
11640 /* 11309 */ // Label 520: @11309
11641 /* 11309 */ GIM_Try, /*On fail goto*//*Label 521*/ GIMT_Encode4(11332), // Rule ID 237 //
11642 /* 11314 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule186Enabled),
11643 /* 11317 */ // MIs[0] dst
11644 /* 11317 */ // No operand predicates
11645 /* 11317 */ // MIs[0] lhs
11646 /* 11317 */ // No operand predicates
11647 /* 11317 */ // MIs[0] rhs
11648 /* 11317 */ // No operand predicates
11649 /* 11317 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner36),
11650 /* 11321 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
11651 /* 11326 */ // Combiner Rule #186: minmax_nan_num_rhs @ [__minmax_nan_num_rhs_match_0[0]]
11652 /* 11326 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
11653 /* 11331 */ GIR_EraseRootFromParent_Done,
11654 /* 11332 */ // Label 521: @11332
11655 /* 11332 */ GIM_Try, /*On fail goto*//*Label 522*/ GIMT_Encode4(11357), // Rule ID 406 //
11656 /* 11337 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule276Enabled),
11657 /* 11340 */ // MIs[0] dst
11658 /* 11340 */ // No operand predicates
11659 /* 11340 */ // MIs[0] lhs
11660 /* 11340 */ // No operand predicates
11661 /* 11340 */ // MIs[0] rhs
11662 /* 11340 */ // No operand predicates
11663 /* 11340 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner52),
11664 /* 11344 */ // Combiner Rule #276: G_FMINNUM_commute_fp_constant_to_rhs
11665 /* 11344 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FMINNUM),
11666 /* 11347 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
11667 /* 11349 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
11668 /* 11351 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
11669 /* 11353 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
11670 /* 11356 */ GIR_EraseRootFromParent_Done,
11671 /* 11357 */ // Label 522: @11357
11672 /* 11357 */ GIM_Try, /*On fail goto*//*Label 523*/ GIMT_Encode4(11368), // Rule ID 305 //
11673 /* 11362 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule214Enabled),
11674 /* 11365 */ // MIs[0] d
11675 /* 11365 */ // No operand predicates
11676 /* 11365 */ // MIs[0] mi.src0
11677 /* 11365 */ // No operand predicates
11678 /* 11365 */ // MIs[0] mi.src1
11679 /* 11365 */ // No operand predicates
11680 /* 11365 */ // Combiner Rule #214: constant_fold_fp_binop @ [mi[6]]
11681 /* 11365 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
11682 /* 11368 */ // Label 523: @11368
11683 /* 11368 */ GIM_Try, /*On fail goto*//*Label 524*/ GIMT_Encode4(11379), // Rule ID 364 //
11684 /* 11373 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule237Enabled),
11685 /* 11376 */ // MIs[0] root
11686 /* 11376 */ // No operand predicates
11687 /* 11376 */ // MIs[0] mi.x
11688 /* 11376 */ // No operand predicates
11689 /* 11376 */ // MIs[0] mi.y
11690 /* 11376 */ // No operand predicates
11691 /* 11376 */ // Combiner Rule #237: fold_binop_into_select_b @ [mi[9]]
11692 /* 11376 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
11693 /* 11379 */ // Label 524: @11379
11694 /* 11379 */ GIM_Reject,
11695 /* 11380 */ // Label 86: @11380
11696 /* 11380 */ GIM_Try, /*On fail goto*//*Label 525*/ GIMT_Encode4(11403), // Rule ID 236 //
11697 /* 11385 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule185Enabled),
11698 /* 11388 */ // MIs[0] dst
11699 /* 11388 */ // No operand predicates
11700 /* 11388 */ // MIs[0] lhs
11701 /* 11388 */ // No operand predicates
11702 /* 11388 */ // MIs[0] rhs
11703 /* 11388 */ // No operand predicates
11704 /* 11388 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner35),
11705 /* 11392 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
11706 /* 11397 */ // Combiner Rule #185: minmax_nan_num_lhs @ [__minmax_nan_num_lhs_match_0[1]]
11707 /* 11397 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
11708 /* 11402 */ GIR_EraseRootFromParent_Done,
11709 /* 11403 */ // Label 525: @11403
11710 /* 11403 */ GIM_Try, /*On fail goto*//*Label 526*/ GIMT_Encode4(11426), // Rule ID 238 //
11711 /* 11408 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule186Enabled),
11712 /* 11411 */ // MIs[0] dst
11713 /* 11411 */ // No operand predicates
11714 /* 11411 */ // MIs[0] lhs
11715 /* 11411 */ // No operand predicates
11716 /* 11411 */ // MIs[0] rhs
11717 /* 11411 */ // No operand predicates
11718 /* 11411 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner36),
11719 /* 11415 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
11720 /* 11420 */ // Combiner Rule #186: minmax_nan_num_rhs @ [__minmax_nan_num_rhs_match_0[1]]
11721 /* 11420 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
11722 /* 11425 */ GIR_EraseRootFromParent_Done,
11723 /* 11426 */ // Label 526: @11426
11724 /* 11426 */ GIM_Try, /*On fail goto*//*Label 527*/ GIMT_Encode4(11451), // Rule ID 407 //
11725 /* 11431 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule277Enabled),
11726 /* 11434 */ // MIs[0] dst
11727 /* 11434 */ // No operand predicates
11728 /* 11434 */ // MIs[0] lhs
11729 /* 11434 */ // No operand predicates
11730 /* 11434 */ // MIs[0] rhs
11731 /* 11434 */ // No operand predicates
11732 /* 11434 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner52),
11733 /* 11438 */ // Combiner Rule #277: G_FMAXNUM_commute_fp_constant_to_rhs
11734 /* 11438 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FMAXNUM),
11735 /* 11441 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
11736 /* 11443 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
11737 /* 11445 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
11738 /* 11447 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
11739 /* 11450 */ GIR_EraseRootFromParent_Done,
11740 /* 11451 */ // Label 527: @11451
11741 /* 11451 */ GIM_Try, /*On fail goto*//*Label 528*/ GIMT_Encode4(11462), // Rule ID 306 //
11742 /* 11456 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule214Enabled),
11743 /* 11459 */ // MIs[0] d
11744 /* 11459 */ // No operand predicates
11745 /* 11459 */ // MIs[0] mi.src0
11746 /* 11459 */ // No operand predicates
11747 /* 11459 */ // MIs[0] mi.src1
11748 /* 11459 */ // No operand predicates
11749 /* 11459 */ // Combiner Rule #214: constant_fold_fp_binop @ [mi[7]]
11750 /* 11459 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
11751 /* 11462 */ // Label 528: @11462
11752 /* 11462 */ GIM_Try, /*On fail goto*//*Label 529*/ GIMT_Encode4(11473), // Rule ID 365 //
11753 /* 11467 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule237Enabled),
11754 /* 11470 */ // MIs[0] root
11755 /* 11470 */ // No operand predicates
11756 /* 11470 */ // MIs[0] mi.x
11757 /* 11470 */ // No operand predicates
11758 /* 11470 */ // MIs[0] mi.y
11759 /* 11470 */ // No operand predicates
11760 /* 11470 */ // Combiner Rule #237: fold_binop_into_select_b @ [mi[10]]
11761 /* 11470 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
11762 /* 11473 */ // Label 529: @11473
11763 /* 11473 */ GIM_Reject,
11764 /* 11474 */ // Label 87: @11474
11765 /* 11474 */ GIM_Try, /*On fail goto*//*Label 530*/ GIMT_Encode4(11499), // Rule ID 408 //
11766 /* 11479 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule278Enabled),
11767 /* 11482 */ // MIs[0] dst
11768 /* 11482 */ // No operand predicates
11769 /* 11482 */ // MIs[0] lhs
11770 /* 11482 */ // No operand predicates
11771 /* 11482 */ // MIs[0] rhs
11772 /* 11482 */ // No operand predicates
11773 /* 11482 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner52),
11774 /* 11486 */ // Combiner Rule #278: G_FMINNUM_IEEE_commute_fp_constant_to_rhs
11775 /* 11486 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FMINNUM_IEEE),
11776 /* 11489 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
11777 /* 11491 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
11778 /* 11493 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
11779 /* 11495 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
11780 /* 11498 */ GIR_EraseRootFromParent_Done,
11781 /* 11499 */ // Label 530: @11499
11782 /* 11499 */ GIM_Reject,
11783 /* 11500 */ // Label 88: @11500
11784 /* 11500 */ GIM_Try, /*On fail goto*//*Label 531*/ GIMT_Encode4(11525), // Rule ID 409 //
11785 /* 11505 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule279Enabled),
11786 /* 11508 */ // MIs[0] dst
11787 /* 11508 */ // No operand predicates
11788 /* 11508 */ // MIs[0] lhs
11789 /* 11508 */ // No operand predicates
11790 /* 11508 */ // MIs[0] rhs
11791 /* 11508 */ // No operand predicates
11792 /* 11508 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner52),
11793 /* 11512 */ // Combiner Rule #279: G_FMAXNUM_IEEE_commute_fp_constant_to_rhs
11794 /* 11512 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FMAXNUM_IEEE),
11795 /* 11515 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
11796 /* 11517 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
11797 /* 11519 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
11798 /* 11521 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
11799 /* 11524 */ GIR_EraseRootFromParent_Done,
11800 /* 11525 */ // Label 531: @11525
11801 /* 11525 */ GIM_Reject,
11802 /* 11526 */ // Label 89: @11526
11803 /* 11526 */ GIM_Try, /*On fail goto*//*Label 532*/ GIMT_Encode4(11549), // Rule ID 239 //
11804 /* 11531 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled),
11805 /* 11534 */ // MIs[0] dst
11806 /* 11534 */ // No operand predicates
11807 /* 11534 */ // MIs[0] lhs
11808 /* 11534 */ // No operand predicates
11809 /* 11534 */ // MIs[0] rhs
11810 /* 11534 */ // No operand predicates
11811 /* 11534 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner35),
11812 /* 11538 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
11813 /* 11543 */ // Combiner Rule #187: minmax_nan_ieee_lhs @ [__minmax_nan_ieee_lhs_match_0[0]]
11814 /* 11543 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
11815 /* 11548 */ GIR_EraseRootFromParent_Done,
11816 /* 11549 */ // Label 532: @11549
11817 /* 11549 */ GIM_Try, /*On fail goto*//*Label 533*/ GIMT_Encode4(11572), // Rule ID 241 //
11818 /* 11554 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule188Enabled),
11819 /* 11557 */ // MIs[0] dst
11820 /* 11557 */ // No operand predicates
11821 /* 11557 */ // MIs[0] lhs
11822 /* 11557 */ // No operand predicates
11823 /* 11557 */ // MIs[0] rhs
11824 /* 11557 */ // No operand predicates
11825 /* 11557 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner36),
11826 /* 11561 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
11827 /* 11566 */ // Combiner Rule #188: minmax_nan_ieee_rhs @ [__minmax_nan_ieee_rhs_match_0[0]]
11828 /* 11566 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
11829 /* 11571 */ GIR_EraseRootFromParent_Done,
11830 /* 11572 */ // Label 533: @11572
11831 /* 11572 */ GIM_Try, /*On fail goto*//*Label 534*/ GIMT_Encode4(11597), // Rule ID 410 //
11832 /* 11577 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule280Enabled),
11833 /* 11580 */ // MIs[0] dst
11834 /* 11580 */ // No operand predicates
11835 /* 11580 */ // MIs[0] lhs
11836 /* 11580 */ // No operand predicates
11837 /* 11580 */ // MIs[0] rhs
11838 /* 11580 */ // No operand predicates
11839 /* 11580 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner52),
11840 /* 11584 */ // Combiner Rule #280: G_FMINIMUM_commute_fp_constant_to_rhs
11841 /* 11584 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FMINIMUM),
11842 /* 11587 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
11843 /* 11589 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
11844 /* 11591 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
11845 /* 11593 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
11846 /* 11596 */ GIR_EraseRootFromParent_Done,
11847 /* 11597 */ // Label 534: @11597
11848 /* 11597 */ GIM_Try, /*On fail goto*//*Label 535*/ GIMT_Encode4(11608), // Rule ID 307 //
11849 /* 11602 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule214Enabled),
11850 /* 11605 */ // MIs[0] d
11851 /* 11605 */ // No operand predicates
11852 /* 11605 */ // MIs[0] mi.src0
11853 /* 11605 */ // No operand predicates
11854 /* 11605 */ // MIs[0] mi.src1
11855 /* 11605 */ // No operand predicates
11856 /* 11605 */ // Combiner Rule #214: constant_fold_fp_binop @ [mi[8]]
11857 /* 11605 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
11858 /* 11608 */ // Label 535: @11608
11859 /* 11608 */ GIM_Try, /*On fail goto*//*Label 536*/ GIMT_Encode4(11619), // Rule ID 366 //
11860 /* 11613 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule237Enabled),
11861 /* 11616 */ // MIs[0] root
11862 /* 11616 */ // No operand predicates
11863 /* 11616 */ // MIs[0] mi.x
11864 /* 11616 */ // No operand predicates
11865 /* 11616 */ // MIs[0] mi.y
11866 /* 11616 */ // No operand predicates
11867 /* 11616 */ // Combiner Rule #237: fold_binop_into_select_b @ [mi[11]]
11868 /* 11616 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
11869 /* 11619 */ // Label 536: @11619
11870 /* 11619 */ GIM_Reject,
11871 /* 11620 */ // Label 90: @11620
11872 /* 11620 */ GIM_Try, /*On fail goto*//*Label 537*/ GIMT_Encode4(11643), // Rule ID 240 //
11873 /* 11625 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled),
11874 /* 11628 */ // MIs[0] dst
11875 /* 11628 */ // No operand predicates
11876 /* 11628 */ // MIs[0] lhs
11877 /* 11628 */ // No operand predicates
11878 /* 11628 */ // MIs[0] rhs
11879 /* 11628 */ // No operand predicates
11880 /* 11628 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner35),
11881 /* 11632 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
11882 /* 11637 */ // Combiner Rule #187: minmax_nan_ieee_lhs @ [__minmax_nan_ieee_lhs_match_0[1]]
11883 /* 11637 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
11884 /* 11642 */ GIR_EraseRootFromParent_Done,
11885 /* 11643 */ // Label 537: @11643
11886 /* 11643 */ GIM_Try, /*On fail goto*//*Label 538*/ GIMT_Encode4(11666), // Rule ID 242 //
11887 /* 11648 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule188Enabled),
11888 /* 11651 */ // MIs[0] dst
11889 /* 11651 */ // No operand predicates
11890 /* 11651 */ // MIs[0] lhs
11891 /* 11651 */ // No operand predicates
11892 /* 11651 */ // MIs[0] rhs
11893 /* 11651 */ // No operand predicates
11894 /* 11651 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner36),
11895 /* 11655 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
11896 /* 11660 */ // Combiner Rule #188: minmax_nan_ieee_rhs @ [__minmax_nan_ieee_rhs_match_0[1]]
11897 /* 11660 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
11898 /* 11665 */ GIR_EraseRootFromParent_Done,
11899 /* 11666 */ // Label 538: @11666
11900 /* 11666 */ GIM_Try, /*On fail goto*//*Label 539*/ GIMT_Encode4(11691), // Rule ID 411 //
11901 /* 11671 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule281Enabled),
11902 /* 11674 */ // MIs[0] dst
11903 /* 11674 */ // No operand predicates
11904 /* 11674 */ // MIs[0] lhs
11905 /* 11674 */ // No operand predicates
11906 /* 11674 */ // MIs[0] rhs
11907 /* 11674 */ // No operand predicates
11908 /* 11674 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner52),
11909 /* 11678 */ // Combiner Rule #281: G_FMAXIMUM_commute_fp_constant_to_rhs
11910 /* 11678 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FMAXIMUM),
11911 /* 11681 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
11912 /* 11683 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
11913 /* 11685 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
11914 /* 11687 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
11915 /* 11690 */ GIR_EraseRootFromParent_Done,
11916 /* 11691 */ // Label 539: @11691
11917 /* 11691 */ GIM_Try, /*On fail goto*//*Label 540*/ GIMT_Encode4(11702), // Rule ID 308 //
11918 /* 11696 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule214Enabled),
11919 /* 11699 */ // MIs[0] d
11920 /* 11699 */ // No operand predicates
11921 /* 11699 */ // MIs[0] mi.src0
11922 /* 11699 */ // No operand predicates
11923 /* 11699 */ // MIs[0] mi.src1
11924 /* 11699 */ // No operand predicates
11925 /* 11699 */ // Combiner Rule #214: constant_fold_fp_binop @ [mi[9]]
11926 /* 11699 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
11927 /* 11702 */ // Label 540: @11702
11928 /* 11702 */ GIM_Try, /*On fail goto*//*Label 541*/ GIMT_Encode4(11713), // Rule ID 367 //
11929 /* 11707 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule237Enabled),
11930 /* 11710 */ // MIs[0] root
11931 /* 11710 */ // No operand predicates
11932 /* 11710 */ // MIs[0] mi.x
11933 /* 11710 */ // No operand predicates
11934 /* 11710 */ // MIs[0] mi.y
11935 /* 11710 */ // No operand predicates
11936 /* 11710 */ // Combiner Rule #237: fold_binop_into_select_b @ [mi[12]]
11937 /* 11710 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
11938 /* 11713 */ // Label 541: @11713
11939 /* 11713 */ GIM_Reject,
11940 /* 11714 */ // Label 91: @11714
11941 /* 11714 */ GIM_Try, /*On fail goto*//*Label 542*/ GIMT_Encode4(11725), // Rule ID 309 //
11942 /* 11719 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule214Enabled),
11943 /* 11722 */ // MIs[0] d
11944 /* 11722 */ // No operand predicates
11945 /* 11722 */ // MIs[0] mi.src0
11946 /* 11722 */ // No operand predicates
11947 /* 11722 */ // MIs[0] mi.src1
11948 /* 11722 */ // No operand predicates
11949 /* 11722 */ // Combiner Rule #214: constant_fold_fp_binop @ [mi[10]]
11950 /* 11722 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
11951 /* 11725 */ // Label 542: @11725
11952 /* 11725 */ GIM_Reject,
11953 /* 11726 */ // Label 92: @11726
11954 /* 11726 */ GIM_Try, /*On fail goto*//*Label 543*/ GIMT_Encode4(11737), // Rule ID 310 //
11955 /* 11731 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule214Enabled),
11956 /* 11734 */ // MIs[0] d
11957 /* 11734 */ // No operand predicates
11958 /* 11734 */ // MIs[0] mi.src0
11959 /* 11734 */ // No operand predicates
11960 /* 11734 */ // MIs[0] mi.src1
11961 /* 11734 */ // No operand predicates
11962 /* 11734 */ // Combiner Rule #214: constant_fold_fp_binop @ [mi[11]]
11963 /* 11734 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
11964 /* 11737 */ // Label 543: @11737
11965 /* 11737 */ GIM_Reject,
11966 /* 11738 */ // Label 93: @11738
11967 /* 11738 */ GIM_Try, /*On fail goto*//*Label 544*/ GIMT_Encode4(11779), // Rule ID 245 //
11968 /* 11743 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule191Enabled),
11969 /* 11746 */ // MIs[0] dst
11970 /* 11746 */ // No operand predicates
11971 /* 11746 */ // MIs[0] base
11972 /* 11746 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
11973 /* 11750 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
11974 /* 11754 */ // MIs[1] Operand 1
11975 /* 11754 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0),
11976 /* 11765 */ // MIs[0] offset
11977 /* 11765 */ // No operand predicates
11978 /* 11765 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner37),
11979 /* 11769 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
11980 /* 11771 */ // Combiner Rule #191: ptr_add_with_zero_scalar
11981 /* 11771 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_INTTOPTR),
11982 /* 11774 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
11983 /* 11776 */ GIR_RootToRootCopy, /*OpIdx*/2, // offset
11984 /* 11778 */ GIR_EraseRootFromParent_Done,
11985 /* 11779 */ // Label 544: @11779
11986 /* 11779 */ GIM_Try, /*On fail goto*//*Label 545*/ GIMT_Encode4(11799), // Rule ID 246 //
11987 /* 11784 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule192Enabled),
11988 /* 11787 */ // MIs[0] dst
11989 /* 11787 */ // No operand predicates
11990 /* 11787 */ // MIs[0] base
11991 /* 11787 */ // No operand predicates
11992 /* 11787 */ // MIs[0] offset
11993 /* 11787 */ // No operand predicates
11994 /* 11787 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner38),
11995 /* 11791 */ // Combiner Rule #192: ptr_add_with_zero_vector
11996 /* 11791 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_INTTOPTR),
11997 /* 11794 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
11998 /* 11796 */ GIR_RootToRootCopy, /*OpIdx*/2, // offset
11999 /* 11798 */ GIR_EraseRootFromParent_Done,
12000 /* 11799 */ // Label 545: @11799
12001 /* 11799 */ GIM_Try, /*On fail goto*//*Label 546*/ GIMT_Encode4(11836), // Rule ID 225 //
12002 /* 11804 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule175Enabled),
12003 /* 11807 */ // MIs[0] dst
12004 /* 11807 */ // No operand predicates
12005 /* 11807 */ // MIs[0] base
12006 /* 11807 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
12007 /* 11811 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_INTTOPTR),
12008 /* 11815 */ // MIs[1] c1reg
12009 /* 11815 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
12010 /* 11819 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
12011 /* 11823 */ // MIs[2] c1imm
12012 /* 11823 */ // No operand predicates
12013 /* 11823 */ // MIs[0] c2reg
12014 /* 11823 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/0, /*OpIdx*/2, // MIs[3]
12015 /* 11827 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
12016 /* 11831 */ // MIs[3] c2imm
12017 /* 11831 */ // No operand predicates
12018 /* 11831 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
12019 /* 11833 */ // Combiner Rule #175: const_ptradd_to_i2p
12020 /* 11833 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner64),
12021 /* 11836 */ // Label 546: @11836
12022 /* 11836 */ GIM_Try, /*On fail goto*//*Label 547*/ GIMT_Encode4(11859), // Rule ID 126 //
12023 /* 11841 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
12024 /* 11844 */ // MIs[0] dst
12025 /* 11844 */ // No operand predicates
12026 /* 11844 */ // MIs[0] lhs
12027 /* 11844 */ // No operand predicates
12028 /* 11844 */ // MIs[0] Operand 2
12029 /* 11844 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
12030 /* 11848 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
12031 /* 11853 */ // Combiner Rule #93: right_identity_zero @ [__right_identity_zero_match_0[7]]
12032 /* 11853 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
12033 /* 11858 */ GIR_EraseRootFromParent_Done,
12034 /* 11859 */ // Label 547: @11859
12035 /* 11859 */ GIM_Try, /*On fail goto*//*Label 548*/ GIMT_Encode4(11870), // Rule ID 171 //
12036 /* 11864 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule121Enabled),
12037 /* 11867 */ // MIs[0] dst
12038 /* 11867 */ // No operand predicates
12039 /* 11867 */ // MIs[0] base
12040 /* 11867 */ // No operand predicates
12041 /* 11867 */ // MIs[0] offset
12042 /* 11867 */ // No operand predicates
12043 /* 11867 */ // Combiner Rule #121: reassoc_ptradd
12044 /* 11867 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner40),
12045 /* 11870 */ // Label 548: @11870
12046 /* 11870 */ GIM_Try, /*On fail goto*//*Label 549*/ GIMT_Encode4(11881), // Rule ID 173 //
12047 /* 11875 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule123Enabled),
12048 /* 11878 */ // MIs[0] dst
12049 /* 11878 */ // No operand predicates
12050 /* 11878 */ // MIs[0] base
12051 /* 11878 */ // No operand predicates
12052 /* 11878 */ // MIs[0] offset
12053 /* 11878 */ // No operand predicates
12054 /* 11878 */ // Combiner Rule #123: ptr_add_immed_chain
12055 /* 11878 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner42),
12056 /* 11881 */ // Label 549: @11881
12057 /* 11881 */ GIM_Try, /*On fail goto*//*Label 550*/ GIMT_Encode4(11892), // Rule ID 282 //
12058 /* 11886 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule213Enabled),
12059 /* 11889 */ // MIs[0] d
12060 /* 11889 */ // No operand predicates
12061 /* 11889 */ // MIs[0] mi.src0
12062 /* 11889 */ // No operand predicates
12063 /* 11889 */ // MIs[0] mi.src1
12064 /* 11889 */ // No operand predicates
12065 /* 11889 */ // Combiner Rule #213: constant_fold_binop @ [mi[1]]
12066 /* 11889 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner79),
12067 /* 11892 */ // Label 550: @11892
12068 /* 11892 */ GIM_Try, /*On fail goto*//*Label 551*/ GIMT_Encode4(11903), // Rule ID 344 //
12069 /* 11897 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule236Enabled),
12070 /* 11900 */ // MIs[0] root
12071 /* 11900 */ // No operand predicates
12072 /* 11900 */ // MIs[0] mi.x
12073 /* 11900 */ // No operand predicates
12074 /* 11900 */ // MIs[0] mi.y
12075 /* 11900 */ // No operand predicates
12076 /* 11900 */ // Combiner Rule #236: fold_binop_into_select_a @ [mi[2]]
12077 /* 11900 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
12078 /* 11903 */ // Label 551: @11903
12079 /* 11903 */ GIM_Reject,
12080 /* 11904 */ // Label 94: @11904
12081 /* 11904 */ GIM_Try, /*On fail goto*//*Label 552*/ GIMT_Encode4(11929), // Rule ID 388 //
12082 /* 11909 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule258Enabled),
12083 /* 11912 */ // MIs[0] dst
12084 /* 11912 */ // No operand predicates
12085 /* 11912 */ // MIs[0] lhs
12086 /* 11912 */ // No operand predicates
12087 /* 11912 */ // MIs[0] rhs
12088 /* 11912 */ // No operand predicates
12089 /* 11912 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner51),
12090 /* 11916 */ // Combiner Rule #258: G_SMIN_commute_constant_to_rhs
12091 /* 11916 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SMIN),
12092 /* 11919 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
12093 /* 11921 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
12094 /* 11923 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
12095 /* 11925 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
12096 /* 11928 */ GIR_EraseRootFromParent_Done,
12097 /* 11929 */ // Label 552: @11929
12098 /* 11929 */ GIM_Try, /*On fail goto*//*Label 553*/ GIMT_Encode4(11940), // Rule ID 295 //
12099 /* 11934 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule213Enabled),
12100 /* 11937 */ // MIs[0] d
12101 /* 11937 */ // No operand predicates
12102 /* 11937 */ // MIs[0] mi.src0
12103 /* 11937 */ // No operand predicates
12104 /* 11937 */ // MIs[0] mi.src1
12105 /* 11937 */ // No operand predicates
12106 /* 11937 */ // Combiner Rule #213: constant_fold_binop @ [mi[14]]
12107 /* 11937 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner79),
12108 /* 11940 */ // Label 553: @11940
12109 /* 11940 */ GIM_Try, /*On fail goto*//*Label 554*/ GIMT_Encode4(11951), // Rule ID 355 //
12110 /* 11945 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule237Enabled),
12111 /* 11948 */ // MIs[0] root
12112 /* 11948 */ // No operand predicates
12113 /* 11948 */ // MIs[0] mi.x
12114 /* 11948 */ // No operand predicates
12115 /* 11948 */ // MIs[0] mi.y
12116 /* 11948 */ // No operand predicates
12117 /* 11948 */ // Combiner Rule #237: fold_binop_into_select_b @ [mi[0]]
12118 /* 11948 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
12119 /* 11951 */ // Label 554: @11951
12120 /* 11951 */ GIM_Reject,
12121 /* 11952 */ // Label 95: @11952
12122 /* 11952 */ GIM_Try, /*On fail goto*//*Label 555*/ GIMT_Encode4(11977), // Rule ID 389 //
12123 /* 11957 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule259Enabled),
12124 /* 11960 */ // MIs[0] dst
12125 /* 11960 */ // No operand predicates
12126 /* 11960 */ // MIs[0] lhs
12127 /* 11960 */ // No operand predicates
12128 /* 11960 */ // MIs[0] rhs
12129 /* 11960 */ // No operand predicates
12130 /* 11960 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner51),
12131 /* 11964 */ // Combiner Rule #259: G_SMAX_commute_constant_to_rhs
12132 /* 11964 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SMAX),
12133 /* 11967 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
12134 /* 11969 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
12135 /* 11971 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
12136 /* 11973 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
12137 /* 11976 */ GIR_EraseRootFromParent_Done,
12138 /* 11977 */ // Label 555: @11977
12139 /* 11977 */ GIM_Try, /*On fail goto*//*Label 556*/ GIMT_Encode4(11988), // Rule ID 296 //
12140 /* 11982 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule213Enabled),
12141 /* 11985 */ // MIs[0] d
12142 /* 11985 */ // No operand predicates
12143 /* 11985 */ // MIs[0] mi.src0
12144 /* 11985 */ // No operand predicates
12145 /* 11985 */ // MIs[0] mi.src1
12146 /* 11985 */ // No operand predicates
12147 /* 11985 */ // Combiner Rule #213: constant_fold_binop @ [mi[15]]
12148 /* 11985 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner79),
12149 /* 11988 */ // Label 556: @11988
12150 /* 11988 */ GIM_Try, /*On fail goto*//*Label 557*/ GIMT_Encode4(11999), // Rule ID 356 //
12151 /* 11993 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule237Enabled),
12152 /* 11996 */ // MIs[0] root
12153 /* 11996 */ // No operand predicates
12154 /* 11996 */ // MIs[0] mi.x
12155 /* 11996 */ // No operand predicates
12156 /* 11996 */ // MIs[0] mi.y
12157 /* 11996 */ // No operand predicates
12158 /* 11996 */ // Combiner Rule #237: fold_binop_into_select_b @ [mi[1]]
12159 /* 11996 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
12160 /* 11999 */ // Label 557: @11999
12161 /* 11999 */ GIM_Reject,
12162 /* 12000 */ // Label 96: @12000
12163 /* 12000 */ GIM_Try, /*On fail goto*//*Label 558*/ GIMT_Encode4(12025), // Rule ID 390 //
12164 /* 12005 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule260Enabled),
12165 /* 12008 */ // MIs[0] dst
12166 /* 12008 */ // No operand predicates
12167 /* 12008 */ // MIs[0] lhs
12168 /* 12008 */ // No operand predicates
12169 /* 12008 */ // MIs[0] rhs
12170 /* 12008 */ // No operand predicates
12171 /* 12008 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner51),
12172 /* 12012 */ // Combiner Rule #260: G_UMIN_commute_constant_to_rhs
12173 /* 12012 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UMIN),
12174 /* 12015 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
12175 /* 12017 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
12176 /* 12019 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
12177 /* 12021 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
12178 /* 12024 */ GIR_EraseRootFromParent_Done,
12179 /* 12025 */ // Label 558: @12025
12180 /* 12025 */ GIM_Try, /*On fail goto*//*Label 559*/ GIMT_Encode4(12036), // Rule ID 297 //
12181 /* 12030 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule213Enabled),
12182 /* 12033 */ // MIs[0] d
12183 /* 12033 */ // No operand predicates
12184 /* 12033 */ // MIs[0] mi.src0
12185 /* 12033 */ // No operand predicates
12186 /* 12033 */ // MIs[0] mi.src1
12187 /* 12033 */ // No operand predicates
12188 /* 12033 */ // Combiner Rule #213: constant_fold_binop @ [mi[16]]
12189 /* 12033 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner79),
12190 /* 12036 */ // Label 559: @12036
12191 /* 12036 */ GIM_Try, /*On fail goto*//*Label 560*/ GIMT_Encode4(12047), // Rule ID 357 //
12192 /* 12041 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule237Enabled),
12193 /* 12044 */ // MIs[0] root
12194 /* 12044 */ // No operand predicates
12195 /* 12044 */ // MIs[0] mi.x
12196 /* 12044 */ // No operand predicates
12197 /* 12044 */ // MIs[0] mi.y
12198 /* 12044 */ // No operand predicates
12199 /* 12044 */ // Combiner Rule #237: fold_binop_into_select_b @ [mi[2]]
12200 /* 12044 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
12201 /* 12047 */ // Label 560: @12047
12202 /* 12047 */ GIM_Reject,
12203 /* 12048 */ // Label 97: @12048
12204 /* 12048 */ GIM_Try, /*On fail goto*//*Label 561*/ GIMT_Encode4(12073), // Rule ID 391 //
12205 /* 12053 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule261Enabled),
12206 /* 12056 */ // MIs[0] dst
12207 /* 12056 */ // No operand predicates
12208 /* 12056 */ // MIs[0] lhs
12209 /* 12056 */ // No operand predicates
12210 /* 12056 */ // MIs[0] rhs
12211 /* 12056 */ // No operand predicates
12212 /* 12056 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner51),
12213 /* 12060 */ // Combiner Rule #261: G_UMAX_commute_constant_to_rhs
12214 /* 12060 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UMAX),
12215 /* 12063 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
12216 /* 12065 */ GIR_RootToRootCopy, /*OpIdx*/2, // rhs
12217 /* 12067 */ GIR_RootToRootCopy, /*OpIdx*/1, // lhs
12218 /* 12069 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
12219 /* 12072 */ GIR_EraseRootFromParent_Done,
12220 /* 12073 */ // Label 561: @12073
12221 /* 12073 */ GIM_Try, /*On fail goto*//*Label 562*/ GIMT_Encode4(12084), // Rule ID 298 //
12222 /* 12078 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule213Enabled),
12223 /* 12081 */ // MIs[0] d
12224 /* 12081 */ // No operand predicates
12225 /* 12081 */ // MIs[0] mi.src0
12226 /* 12081 */ // No operand predicates
12227 /* 12081 */ // MIs[0] mi.src1
12228 /* 12081 */ // No operand predicates
12229 /* 12081 */ // Combiner Rule #213: constant_fold_binop @ [mi[17]]
12230 /* 12081 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner79),
12231 /* 12084 */ // Label 562: @12084
12232 /* 12084 */ GIM_Try, /*On fail goto*//*Label 563*/ GIMT_Encode4(12095), // Rule ID 358 //
12233 /* 12089 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule237Enabled),
12234 /* 12092 */ // MIs[0] root
12235 /* 12092 */ // No operand predicates
12236 /* 12092 */ // MIs[0] mi.x
12237 /* 12092 */ // No operand predicates
12238 /* 12092 */ // MIs[0] mi.y
12239 /* 12092 */ // No operand predicates
12240 /* 12092 */ // Combiner Rule #237: fold_binop_into_select_b @ [mi[3]]
12241 /* 12092 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
12242 /* 12095 */ // Label 563: @12095
12243 /* 12095 */ GIM_Reject,
12244 /* 12096 */ // Label 98: @12096
12245 /* 12096 */ GIM_Try, /*On fail goto*//*Label 564*/ GIMT_Encode4(12117), // Rule ID 97 //
12246 /* 12101 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule82Enabled),
12247 /* 12104 */ // MIs[0] dst
12248 /* 12104 */ // No operand predicates
12249 /* 12104 */ // MIs[0] __unary_undef_to_zero_match_0.x
12250 /* 12104 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
12251 /* 12108 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
12252 /* 12112 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
12253 /* 12114 */ // Combiner Rule #82: unary_undef_to_zero @ [__unary_undef_to_zero_match_0[0]]
12254 /* 12114 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner31),
12255 /* 12117 */ // Label 564: @12117
12256 /* 12117 */ GIM_Try, /*On fail goto*//*Label 565*/ GIMT_Encode4(12128), // Rule ID 321 //
12257 /* 12122 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule217Enabled),
12258 /* 12125 */ // MIs[0] dst
12259 /* 12125 */ // No operand predicates
12260 /* 12125 */ // MIs[0] mi.src
12261 /* 12125 */ // No operand predicates
12262 /* 12125 */ // Combiner Rule #217: constant_fold_unary_int_op @ [mi[5]]
12263 /* 12125 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner83),
12264 /* 12128 */ // Label 565: @12128
12265 /* 12128 */ GIM_Reject,
12266 /* 12129 */ // Label 99: @12129
12267 /* 12129 */ GIM_Try, /*On fail goto*//*Label 566*/ GIMT_Encode4(12140), // Rule ID 209 //
12268 /* 12134 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule159Enabled),
12269 /* 12137 */ // MIs[0] tgt
12270 /* 12137 */ // No operand predicates
12271 /* 12137 */ // Combiner Rule #159: opt_brcond_by_inverting_cond
12272 /* 12137 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner62),
12273 /* 12140 */ // Label 566: @12140
12274 /* 12140 */ GIM_Reject,
12275 /* 12141 */ // Label 100: @12141
12276 /* 12141 */ GIM_Try, /*On fail goto*//*Label 567*/ GIMT_Encode4(12174), // Rule ID 31 //
12277 /* 12146 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule27Enabled),
12278 /* 12149 */ // MIs[0] root
12279 /* 12149 */ // No operand predicates
12280 /* 12149 */ // MIs[0] src
12281 /* 12149 */ // No operand predicates
12282 /* 12149 */ // MIs[0] elt
12283 /* 12149 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
12284 /* 12153 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
12285 /* 12157 */ // MIs[0] idx
12286 /* 12157 */ // No operand predicates
12287 /* 12157 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner3),
12288 /* 12161 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
12289 /* 12166 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
12290 /* 12168 */ // Combiner Rule #27: insert_vector_element_elt_undef
12291 /* 12168 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
12292 /* 12173 */ GIR_EraseRootFromParent_Done,
12293 /* 12174 */ // Label 567: @12174
12294 /* 12174 */ GIM_Try, /*On fail goto*//*Label 568*/ GIMT_Encode4(12192), // Rule ID 33 //
12295 /* 12179 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule29Enabled),
12296 /* 12182 */ // MIs[0] dst
12297 /* 12182 */ // No operand predicates
12298 /* 12182 */ // MIs[0] src
12299 /* 12182 */ // No operand predicates
12300 /* 12182 */ // MIs[0] elt
12301 /* 12182 */ // No operand predicates
12302 /* 12182 */ // MIs[0] idx
12303 /* 12182 */ // No operand predicates
12304 /* 12182 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner5),
12305 /* 12186 */ // Combiner Rule #29: insert_vector_elt_oob
12306 /* 12186 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
12307 /* 12189 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
12308 /* 12191 */ GIR_EraseRootFromParent_Done,
12309 /* 12192 */ // Label 568: @12192
12310 /* 12192 */ GIM_Try, /*On fail goto*//*Label 569*/ GIMT_Encode4(12210), // Rule ID 115 //
12311 /* 12197 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule89Enabled),
12312 /* 12200 */ // MIs[0] root
12313 /* 12200 */ // No operand predicates
12314 /* 12200 */ // MIs[0] vec
12315 /* 12200 */ // No operand predicates
12316 /* 12200 */ // MIs[0] elt
12317 /* 12200 */ // No operand predicates
12318 /* 12200 */ // MIs[0] idx
12319 /* 12200 */ // No operand predicates
12320 /* 12200 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner11),
12321 /* 12204 */ // Combiner Rule #89: insert_vec_elt_out_of_bounds
12322 /* 12204 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
12323 /* 12207 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
12324 /* 12209 */ GIR_EraseRootFromParent_Done,
12325 /* 12210 */ // Label 569: @12210
12326 /* 12210 */ GIM_Try, /*On fail goto*//*Label 570*/ GIMT_Encode4(12249), // Rule ID 45 //
12327 /* 12215 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule41Enabled),
12328 /* 12218 */ // MIs[0] root
12329 /* 12218 */ // No operand predicates
12330 /* 12218 */ // MIs[0] src
12331 /* 12218 */ // No operand predicates
12332 /* 12218 */ // MIs[0] elt
12333 /* 12218 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
12334 /* 12222 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_EXTRACT_VECTOR_ELT),
12335 /* 12226 */ // MIs[1] src
12336 /* 12226 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/1, /*OpIdx*/1, /*OtherMI*/0, /*OtherOpIdx*/1,
12337 /* 12231 */ // MIs[1] idx
12338 /* 12231 */ // No operand predicates
12339 /* 12231 */ // MIs[0] idx
12340 /* 12231 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/3, /*OtherMI*/1, /*OtherOpIdx*/2,
12341 /* 12236 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
12342 /* 12241 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
12343 /* 12243 */ // Combiner Rule #41: insert_vector_element_extract_vector_element
12344 /* 12243 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
12345 /* 12248 */ GIR_EraseRootFromParent_Done,
12346 /* 12249 */ // Label 570: @12249
12347 /* 12249 */ GIM_Try, /*On fail goto*//*Label 571*/ GIMT_Encode4(12273), // Rule ID 30 //
12348 /* 12254 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule26Enabled),
12349 /* 12257 */ // MIs[0] root
12350 /* 12257 */ // No operand predicates
12351 /* 12257 */ // MIs[0] src
12352 /* 12257 */ // No operand predicates
12353 /* 12257 */ // MIs[0] elt
12354 /* 12257 */ // No operand predicates
12355 /* 12257 */ // MIs[0] idx
12356 /* 12257 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/3, // MIs[1]
12357 /* 12261 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
12358 /* 12265 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
12359 /* 12267 */ // Combiner Rule #26: insert_vector_element_idx_undef
12360 /* 12267 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
12361 /* 12270 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
12362 /* 12272 */ GIR_EraseRootFromParent_Done,
12363 /* 12273 */ // Label 571: @12273
12364 /* 12273 */ GIM_Try, /*On fail goto*//*Label 572*/ GIMT_Encode4(12284), // Rule ID 75 //
12365 /* 12278 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule71Enabled),
12366 /* 12281 */ // MIs[0] dst
12367 /* 12281 */ // No operand predicates
12368 /* 12281 */ // MIs[0] src
12369 /* 12281 */ // No operand predicates
12370 /* 12281 */ // MIs[0] elt
12371 /* 12281 */ // No operand predicates
12372 /* 12281 */ // MIs[0] idx
12373 /* 12281 */ // No operand predicates
12374 /* 12281 */ // Combiner Rule #71: combine_insert_vec_elts_build_vector
12375 /* 12281 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner24),
12376 /* 12284 */ // Label 572: @12284
12377 /* 12284 */ GIM_Reject,
12378 /* 12285 */ // Label 101: @12285
12379 /* 12285 */ GIM_Try, /*On fail goto*//*Label 573*/ GIMT_Encode4(12303), // Rule ID 32 //
12380 /* 12290 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule28Enabled),
12381 /* 12293 */ // MIs[0] dst
12382 /* 12293 */ // No operand predicates
12383 /* 12293 */ // MIs[0] src
12384 /* 12293 */ // No operand predicates
12385 /* 12293 */ // MIs[0] idx
12386 /* 12293 */ // No operand predicates
12387 /* 12293 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner4),
12388 /* 12297 */ // Combiner Rule #28: match_extract_of_element
12389 /* 12297 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
12390 /* 12300 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
12391 /* 12302 */ GIR_EraseRootFromParent_Done,
12392 /* 12303 */ // Label 573: @12303
12393 /* 12303 */ GIM_Try, /*On fail goto*//*Label 574*/ GIMT_Encode4(12321), // Rule ID 116 //
12394 /* 12308 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled),
12395 /* 12311 */ // MIs[0] root
12396 /* 12311 */ // No operand predicates
12397 /* 12311 */ // MIs[0] vec
12398 /* 12311 */ // No operand predicates
12399 /* 12311 */ // MIs[0] idx
12400 /* 12311 */ // No operand predicates
12401 /* 12311 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner11),
12402 /* 12315 */ // Combiner Rule #90: extract_vec_elt_out_of_bounds
12403 /* 12315 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
12404 /* 12318 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
12405 /* 12320 */ GIR_EraseRootFromParent_Done,
12406 /* 12321 */ // Label 574: @12321
12407 /* 12321 */ GIM_Try, /*On fail goto*//*Label 575*/ GIMT_Encode4(12345), // Rule ID 43 //
12408 /* 12326 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule39Enabled),
12409 /* 12329 */ // MIs[0] root
12410 /* 12329 */ // No operand predicates
12411 /* 12329 */ // MIs[0] src
12412 /* 12329 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
12413 /* 12333 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR_TRUNC),
12414 /* 12337 */ GIM_CheckNumOperands, /*MI*/1, /*Expected*/9,
12415 /* 12340 */ // MIs[1] x
12416 /* 12340 */ // No operand predicates
12417 /* 12340 */ // MIs[1] y
12418 /* 12340 */ // No operand predicates
12419 /* 12340 */ // MIs[1] z
12420 /* 12340 */ // No operand predicates
12421 /* 12340 */ // MIs[1] a
12422 /* 12340 */ // No operand predicates
12423 /* 12340 */ // MIs[1] b
12424 /* 12340 */ // No operand predicates
12425 /* 12340 */ // MIs[1] c
12426 /* 12340 */ // No operand predicates
12427 /* 12340 */ // MIs[1] d
12428 /* 12340 */ // No operand predicates
12429 /* 12340 */ // MIs[1] e
12430 /* 12340 */ // No operand predicates
12431 /* 12340 */ // MIs[0] idx
12432 /* 12340 */ // No operand predicates
12433 /* 12340 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
12434 /* 12342 */ // Combiner Rule #39: extract_vector_element_build_vector_trunc8
12435 /* 12342 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner10),
12436 /* 12345 */ // Label 575: @12345
12437 /* 12345 */ GIM_Try, /*On fail goto*//*Label 576*/ GIMT_Encode4(12369), // Rule ID 42 //
12438 /* 12350 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule38Enabled),
12439 /* 12353 */ // MIs[0] root
12440 /* 12353 */ // No operand predicates
12441 /* 12353 */ // MIs[0] src
12442 /* 12353 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
12443 /* 12357 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR_TRUNC),
12444 /* 12361 */ GIM_CheckNumOperands, /*MI*/1, /*Expected*/8,
12445 /* 12364 */ // MIs[1] x
12446 /* 12364 */ // No operand predicates
12447 /* 12364 */ // MIs[1] y
12448 /* 12364 */ // No operand predicates
12449 /* 12364 */ // MIs[1] z
12450 /* 12364 */ // No operand predicates
12451 /* 12364 */ // MIs[1] a
12452 /* 12364 */ // No operand predicates
12453 /* 12364 */ // MIs[1] b
12454 /* 12364 */ // No operand predicates
12455 /* 12364 */ // MIs[1] c
12456 /* 12364 */ // No operand predicates
12457 /* 12364 */ // MIs[1] d
12458 /* 12364 */ // No operand predicates
12459 /* 12364 */ // MIs[0] idx
12460 /* 12364 */ // No operand predicates
12461 /* 12364 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
12462 /* 12366 */ // Combiner Rule #38: extract_vector_element_build_vector_trunc7
12463 /* 12366 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner10),
12464 /* 12369 */ // Label 576: @12369
12465 /* 12369 */ GIM_Try, /*On fail goto*//*Label 577*/ GIMT_Encode4(12393), // Rule ID 41 //
12466 /* 12374 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule37Enabled),
12467 /* 12377 */ // MIs[0] root
12468 /* 12377 */ // No operand predicates
12469 /* 12377 */ // MIs[0] src
12470 /* 12377 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
12471 /* 12381 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR_TRUNC),
12472 /* 12385 */ GIM_CheckNumOperands, /*MI*/1, /*Expected*/7,
12473 /* 12388 */ // MIs[1] x
12474 /* 12388 */ // No operand predicates
12475 /* 12388 */ // MIs[1] y
12476 /* 12388 */ // No operand predicates
12477 /* 12388 */ // MIs[1] z
12478 /* 12388 */ // No operand predicates
12479 /* 12388 */ // MIs[1] a
12480 /* 12388 */ // No operand predicates
12481 /* 12388 */ // MIs[1] b
12482 /* 12388 */ // No operand predicates
12483 /* 12388 */ // MIs[1] c
12484 /* 12388 */ // No operand predicates
12485 /* 12388 */ // MIs[0] idx
12486 /* 12388 */ // No operand predicates
12487 /* 12388 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
12488 /* 12390 */ // Combiner Rule #37: extract_vector_element_build_vector_trunc6
12489 /* 12390 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner10),
12490 /* 12393 */ // Label 577: @12393
12491 /* 12393 */ GIM_Try, /*On fail goto*//*Label 578*/ GIMT_Encode4(12417), // Rule ID 40 //
12492 /* 12398 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule36Enabled),
12493 /* 12401 */ // MIs[0] root
12494 /* 12401 */ // No operand predicates
12495 /* 12401 */ // MIs[0] src
12496 /* 12401 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
12497 /* 12405 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR_TRUNC),
12498 /* 12409 */ GIM_CheckNumOperands, /*MI*/1, /*Expected*/6,
12499 /* 12412 */ // MIs[1] x
12500 /* 12412 */ // No operand predicates
12501 /* 12412 */ // MIs[1] y
12502 /* 12412 */ // No operand predicates
12503 /* 12412 */ // MIs[1] z
12504 /* 12412 */ // No operand predicates
12505 /* 12412 */ // MIs[1] a
12506 /* 12412 */ // No operand predicates
12507 /* 12412 */ // MIs[1] b
12508 /* 12412 */ // No operand predicates
12509 /* 12412 */ // MIs[0] idx
12510 /* 12412 */ // No operand predicates
12511 /* 12412 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
12512 /* 12414 */ // Combiner Rule #36: extract_vector_element_build_vector_trunc5
12513 /* 12414 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner10),
12514 /* 12417 */ // Label 578: @12417
12515 /* 12417 */ GIM_Try, /*On fail goto*//*Label 579*/ GIMT_Encode4(12441), // Rule ID 39 //
12516 /* 12422 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule35Enabled),
12517 /* 12425 */ // MIs[0] root
12518 /* 12425 */ // No operand predicates
12519 /* 12425 */ // MIs[0] src
12520 /* 12425 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
12521 /* 12429 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR_TRUNC),
12522 /* 12433 */ GIM_CheckNumOperands, /*MI*/1, /*Expected*/5,
12523 /* 12436 */ // MIs[1] x
12524 /* 12436 */ // No operand predicates
12525 /* 12436 */ // MIs[1] y
12526 /* 12436 */ // No operand predicates
12527 /* 12436 */ // MIs[1] z
12528 /* 12436 */ // No operand predicates
12529 /* 12436 */ // MIs[1] a
12530 /* 12436 */ // No operand predicates
12531 /* 12436 */ // MIs[0] idx
12532 /* 12436 */ // No operand predicates
12533 /* 12436 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
12534 /* 12438 */ // Combiner Rule #35: extract_vector_element_build_vector_trunc4
12535 /* 12438 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner10),
12536 /* 12441 */ // Label 579: @12441
12537 /* 12441 */ GIM_Try, /*On fail goto*//*Label 580*/ GIMT_Encode4(12465), // Rule ID 38 //
12538 /* 12446 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule34Enabled),
12539 /* 12449 */ // MIs[0] root
12540 /* 12449 */ // No operand predicates
12541 /* 12449 */ // MIs[0] src
12542 /* 12449 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
12543 /* 12453 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR_TRUNC),
12544 /* 12457 */ GIM_CheckNumOperands, /*MI*/1, /*Expected*/4,
12545 /* 12460 */ // MIs[1] x
12546 /* 12460 */ // No operand predicates
12547 /* 12460 */ // MIs[1] y
12548 /* 12460 */ // No operand predicates
12549 /* 12460 */ // MIs[1] z
12550 /* 12460 */ // No operand predicates
12551 /* 12460 */ // MIs[0] idx
12552 /* 12460 */ // No operand predicates
12553 /* 12460 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
12554 /* 12462 */ // Combiner Rule #34: extract_vector_element_build_vector_trunc3
12555 /* 12462 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner10),
12556 /* 12465 */ // Label 580: @12465
12557 /* 12465 */ GIM_Try, /*On fail goto*//*Label 581*/ GIMT_Encode4(12499), // Rule ID 34 //
12558 /* 12470 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule30Enabled),
12559 /* 12473 */ // MIs[0] root
12560 /* 12473 */ // No operand predicates
12561 /* 12473 */ // MIs[0] src
12562 /* 12473 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
12563 /* 12477 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_INSERT_VECTOR_ELT),
12564 /* 12481 */ // MIs[1] x
12565 /* 12481 */ // No operand predicates
12566 /* 12481 */ // MIs[1] value
12567 /* 12481 */ // No operand predicates
12568 /* 12481 */ // MIs[1] idx
12569 /* 12481 */ // No operand predicates
12570 /* 12481 */ // MIs[0] idx
12571 /* 12481 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/3,
12572 /* 12486 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/2,
12573 /* 12491 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
12574 /* 12493 */ // Combiner Rule #30: extract_vector_element_not_const
12575 /* 12493 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/2,
12576 /* 12498 */ GIR_EraseRootFromParent_Done,
12577 /* 12499 */ // Label 581: @12499
12578 /* 12499 */ GIM_Try, /*On fail goto*//*Label 582*/ GIMT_Encode4(12520), // Rule ID 35 //
12579 /* 12504 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule31Enabled),
12580 /* 12507 */ // MIs[0] root
12581 /* 12507 */ // No operand predicates
12582 /* 12507 */ // MIs[0] src
12583 /* 12507 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
12584 /* 12511 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_INSERT_VECTOR_ELT),
12585 /* 12515 */ // MIs[1] x
12586 /* 12515 */ // No operand predicates
12587 /* 12515 */ // MIs[1] value
12588 /* 12515 */ // No operand predicates
12589 /* 12515 */ // MIs[1] idx2
12590 /* 12515 */ // No operand predicates
12591 /* 12515 */ // MIs[0] idx1
12592 /* 12515 */ // No operand predicates
12593 /* 12515 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
12594 /* 12517 */ // Combiner Rule #31: extract_vector_element_different_indices
12595 /* 12517 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner8),
12596 /* 12520 */ // Label 582: @12520
12597 /* 12520 */ GIM_Try, /*On fail goto*//*Label 583*/ GIMT_Encode4(12549), // Rule ID 44 //
12598 /* 12525 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule40Enabled),
12599 /* 12528 */ // MIs[0] root
12600 /* 12528 */ // No operand predicates
12601 /* 12528 */ // MIs[0] src
12602 /* 12528 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
12603 /* 12532 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SHUFFLE_VECTOR),
12604 /* 12536 */ // MIs[1] src1
12605 /* 12536 */ // No operand predicates
12606 /* 12536 */ // MIs[1] src2
12607 /* 12536 */ // No operand predicates
12608 /* 12536 */ // MIs[1] mask
12609 /* 12536 */ // No operand predicates
12610 /* 12536 */ // MIs[0] idx
12611 /* 12536 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
12612 /* 12540 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
12613 /* 12544 */ // MIs[2] imm
12614 /* 12544 */ // No operand predicates
12615 /* 12544 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
12616 /* 12546 */ // Combiner Rule #40: extract_vector_element_shuffle_vector
12617 /* 12546 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner11),
12618 /* 12549 */ // Label 583: @12549
12619 /* 12549 */ GIM_Try, /*On fail goto*//*Label 584*/ GIMT_Encode4(12573), // Rule ID 37 //
12620 /* 12554 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule33Enabled),
12621 /* 12557 */ // MIs[0] root
12622 /* 12557 */ // No operand predicates
12623 /* 12557 */ // MIs[0] src
12624 /* 12557 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
12625 /* 12561 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR_TRUNC),
12626 /* 12565 */ GIM_CheckNumOperands, /*MI*/1, /*Expected*/3,
12627 /* 12568 */ // MIs[1] x
12628 /* 12568 */ // No operand predicates
12629 /* 12568 */ // MIs[1] y
12630 /* 12568 */ // No operand predicates
12631 /* 12568 */ // MIs[0] idx
12632 /* 12568 */ // No operand predicates
12633 /* 12568 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
12634 /* 12570 */ // Combiner Rule #33: extract_vector_element_build_vector_trunc2
12635 /* 12570 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner10),
12636 /* 12573 */ // Label 584: @12573
12637 /* 12573 */ GIM_Try, /*On fail goto*//*Label 585*/ GIMT_Encode4(12605), // Rule ID 36 //
12638 /* 12578 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule32Enabled),
12639 /* 12581 */ // MIs[0] root
12640 /* 12581 */ // No operand predicates
12641 /* 12581 */ // MIs[0] src
12642 /* 12581 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
12643 /* 12585 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR),
12644 /* 12589 */ GIM_CheckNumOperandsGE, /*MI*/1, /*Expected*/2,
12645 /* 12592 */ // MIs[1] unused
12646 /* 12592 */ // No operand predicates
12647 /* 12592 */ // MIs[0] idx
12648 /* 12592 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
12649 /* 12596 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
12650 /* 12600 */ // MIs[2] imm
12651 /* 12600 */ // No operand predicates
12652 /* 12600 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
12653 /* 12602 */ // Combiner Rule #32: extract_vector_element_build_vector
12654 /* 12602 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner9),
12655 /* 12605 */ // Label 585: @12605
12656 /* 12605 */ GIM_Try, /*On fail goto*//*Label 586*/ GIMT_Encode4(12629), // Rule ID 28 //
12657 /* 12610 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule25Enabled),
12658 /* 12613 */ // MIs[0] root
12659 /* 12613 */ // No operand predicates
12660 /* 12613 */ // MIs[0] __extract_vector_element_undef_match_0.x
12661 /* 12613 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
12662 /* 12617 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
12663 /* 12621 */ // MIs[0] __extract_vector_element_undef_match_0.y
12664 /* 12621 */ // No operand predicates
12665 /* 12621 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
12666 /* 12623 */ // Combiner Rule #25: extract_vector_element_undef @ [__extract_vector_element_undef_match_0[0]]
12667 /* 12623 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
12668 /* 12626 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
12669 /* 12628 */ GIR_EraseRootFromParent_Done,
12670 /* 12629 */ // Label 586: @12629
12671 /* 12629 */ GIM_Try, /*On fail goto*//*Label 587*/ GIMT_Encode4(12653), // Rule ID 29 //
12672 /* 12634 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule25Enabled),
12673 /* 12637 */ // MIs[0] root
12674 /* 12637 */ // No operand predicates
12675 /* 12637 */ // MIs[0] __extract_vector_element_undef_match_0.x
12676 /* 12637 */ // No operand predicates
12677 /* 12637 */ // MIs[0] __extract_vector_element_undef_match_0.y
12678 /* 12637 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
12679 /* 12641 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
12680 /* 12645 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
12681 /* 12647 */ // Combiner Rule #25: extract_vector_element_undef @ [__extract_vector_element_undef_match_0[1]]
12682 /* 12647 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
12683 /* 12650 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
12684 /* 12652 */ GIR_EraseRootFromParent_Done,
12685 /* 12653 */ // Label 587: @12653
12686 /* 12653 */ GIM_Try, /*On fail goto*//*Label 588*/ GIMT_Encode4(12664), // Rule ID 76 //
12687 /* 12658 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule72Enabled),
12688 /* 12661 */ // MIs[0] dst
12689 /* 12661 */ // No operand predicates
12690 /* 12661 */ // MIs[0] src
12691 /* 12661 */ // No operand predicates
12692 /* 12661 */ // MIs[0] idx
12693 /* 12661 */ // No operand predicates
12694 /* 12661 */ // Combiner Rule #72: extract_vec_elt_build_vec
12695 /* 12661 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner25),
12696 /* 12664 */ // Label 588: @12664
12697 /* 12664 */ GIM_Try, /*On fail goto*//*Label 589*/ GIMT_Encode4(12675), // Rule ID 82 //
12698 /* 12669 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule76Enabled),
12699 /* 12672 */ // MIs[0] dst
12700 /* 12672 */ // No operand predicates
12701 /* 12672 */ // MIs[0] src
12702 /* 12672 */ // No operand predicates
12703 /* 12672 */ // MIs[0] idx
12704 /* 12672 */ // No operand predicates
12705 /* 12672 */ // Combiner Rule #76: combine_extracted_vector_load
12706 /* 12672 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner29),
12707 /* 12675 */ // Label 589: @12675
12708 /* 12675 */ GIM_Reject,
12709 /* 12676 */ // Label 102: @12676
12710 /* 12676 */ GIM_Try, /*On fail goto*//*Label 590*/ GIMT_Encode4(12694), // Rule ID 111 //
12711 /* 12681 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule85Enabled),
12712 /* 12684 */ // MIs[0] root
12713 /* 12684 */ // No operand predicates
12714 /* 12684 */ // MIs[0] src1
12715 /* 12684 */ // No operand predicates
12716 /* 12684 */ // MIs[0] src2
12717 /* 12684 */ // No operand predicates
12718 /* 12684 */ // MIs[0] mask
12719 /* 12684 */ // No operand predicates
12720 /* 12684 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner8),
12721 /* 12688 */ // Combiner Rule #85: propagate_undef_all_ops_shuffle_vector
12722 /* 12688 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
12723 /* 12691 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
12724 /* 12693 */ GIR_EraseRootFromParent_Done,
12725 /* 12694 */ // Label 590: @12694
12726 /* 12694 */ GIM_Try, /*On fail goto*//*Label 591*/ GIMT_Encode4(12712), // Rule ID 113 //
12727 /* 12699 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule87Enabled),
12728 /* 12702 */ // MIs[0] dst
12729 /* 12702 */ // No operand predicates
12730 /* 12702 */ // MIs[0] src1
12731 /* 12702 */ // No operand predicates
12732 /* 12702 */ // MIs[0] src2
12733 /* 12702 */ // No operand predicates
12734 /* 12702 */ // MIs[0] mask
12735 /* 12702 */ // No operand predicates
12736 /* 12702 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner9),
12737 /* 12706 */ // Combiner Rule #87: propagate_undef_shuffle_mask
12738 /* 12706 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
12739 /* 12709 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
12740 /* 12711 */ GIR_EraseRootFromParent_Done,
12741 /* 12712 */ // Label 591: @12712
12742 /* 12712 */ GIM_Try, /*On fail goto*//*Label 592*/ GIMT_Encode4(12733), // Rule ID 426 //
12743 /* 12717 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule296Enabled),
12744 /* 12720 */ // MIs[0] root
12745 /* 12720 */ // No operand predicates
12746 /* 12720 */ // MIs[0] src1
12747 /* 12720 */ // No operand predicates
12748 /* 12720 */ // MIs[0] undef
12749 /* 12720 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
12750 /* 12724 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
12751 /* 12728 */ // MIs[0] mask
12752 /* 12728 */ // No operand predicates
12753 /* 12728 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
12754 /* 12730 */ // Combiner Rule #296: combine_shuffle_undef_rhs
12755 /* 12730 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner111),
12756 /* 12733 */ // Label 592: @12733
12757 /* 12733 */ GIM_Try, /*On fail goto*//*Label 593*/ GIMT_Encode4(12744), // Rule ID 425 //
12758 /* 12738 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule295Enabled),
12759 /* 12741 */ // MIs[0] dst
12760 /* 12741 */ // No operand predicates
12761 /* 12741 */ // MIs[0] src1
12762 /* 12741 */ // No operand predicates
12763 /* 12741 */ // MIs[0] src2
12764 /* 12741 */ // No operand predicates
12765 /* 12741 */ // MIs[0] mask
12766 /* 12741 */ // No operand predicates
12767 /* 12741 */ // Combiner Rule #295: combine_shuffle_concat
12768 /* 12741 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner110),
12769 /* 12744 */ // Label 593: @12744
12770 /* 12744 */ GIM_Try, /*On fail goto*//*Label 594*/ GIMT_Encode4(12755), // Rule ID 427 //
12771 /* 12749 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule297Enabled),
12772 /* 12752 */ // MIs[0] dst
12773 /* 12752 */ // No operand predicates
12774 /* 12752 */ // MIs[0] src1
12775 /* 12752 */ // No operand predicates
12776 /* 12752 */ // MIs[0] src2
12777 /* 12752 */ // No operand predicates
12778 /* 12752 */ // MIs[0] mask
12779 /* 12752 */ // No operand predicates
12780 /* 12752 */ // Combiner Rule #297: combine_shuffle_disjoint_mask
12781 /* 12752 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner112),
12782 /* 12755 */ // Label 594: @12755
12783 /* 12755 */ GIM_Try, /*On fail goto*//*Label 595*/ GIMT_Encode4(12766), // Rule ID 477 //
12784 /* 12760 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule341Enabled),
12785 /* 12763 */ // MIs[0] dst
12786 /* 12763 */ // No operand predicates
12787 /* 12763 */ // MIs[0] src1
12788 /* 12763 */ // No operand predicates
12789 /* 12763 */ // MIs[0] src2
12790 /* 12763 */ // No operand predicates
12791 /* 12763 */ // MIs[0] mask
12792 /* 12763 */ // No operand predicates
12793 /* 12763 */ // Combiner Rule #341: combine_shuffle_vector
12794 /* 12763 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129),
12795 /* 12766 */ // Label 595: @12766
12796 /* 12766 */ GIM_Reject,
12797 /* 12767 */ // Label 103: @12767
12798 /* 12767 */ GIM_Try, /*On fail goto*//*Label 596*/ GIMT_Encode4(12790), // Rule ID 455 //
12799 /* 12772 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule325Enabled),
12800 /* 12775 */ // MIs[0] dst
12801 /* 12775 */ // No operand predicates
12802 /* 12775 */ // MIs[0] src
12803 /* 12775 */ // No operand predicates
12804 /* 12775 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner59),
12805 /* 12779 */ // Combiner Rule #325: cttz_to_cttz_zero_poison
12806 /* 12779 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_CTTZ_ZERO_POISON),
12807 /* 12782 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
12808 /* 12784 */ GIR_RootToRootCopy, /*OpIdx*/1, // src
12809 /* 12786 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
12810 /* 12789 */ GIR_EraseRootFromParent_Done,
12811 /* 12790 */ // Label 596: @12790
12812 /* 12790 */ GIM_Try, /*On fail goto*//*Label 597*/ GIMT_Encode4(12801), // Rule ID 318 //
12813 /* 12795 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule217Enabled),
12814 /* 12798 */ // MIs[0] dst
12815 /* 12798 */ // No operand predicates
12816 /* 12798 */ // MIs[0] mi.src
12817 /* 12798 */ // No operand predicates
12818 /* 12798 */ // Combiner Rule #217: constant_fold_unary_int_op @ [mi[2]]
12819 /* 12798 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner83),
12820 /* 12801 */ // Label 597: @12801
12821 /* 12801 */ GIM_Reject,
12822 /* 12802 */ // Label 104: @12802
12823 /* 12802 */ GIM_Try, /*On fail goto*//*Label 598*/ GIMT_Encode4(12813), // Rule ID 319 //
12824 /* 12807 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule217Enabled),
12825 /* 12810 */ // MIs[0] dst
12826 /* 12810 */ // No operand predicates
12827 /* 12810 */ // MIs[0] mi.src
12828 /* 12810 */ // No operand predicates
12829 /* 12810 */ // Combiner Rule #217: constant_fold_unary_int_op @ [mi[3]]
12830 /* 12810 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner83),
12831 /* 12813 */ // Label 598: @12813
12832 /* 12813 */ GIM_Reject,
12833 /* 12814 */ // Label 105: @12814
12834 /* 12814 */ GIM_Try, /*On fail goto*//*Label 599*/ GIMT_Encode4(12837), // Rule ID 454 //
12835 /* 12819 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule324Enabled),
12836 /* 12822 */ // MIs[0] dst
12837 /* 12822 */ // No operand predicates
12838 /* 12822 */ // MIs[0] src
12839 /* 12822 */ // No operand predicates
12840 /* 12822 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner58),
12841 /* 12826 */ // Combiner Rule #324: ctlz_to_ctlz_zero_poison
12842 /* 12826 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_CTLZ_ZERO_POISON),
12843 /* 12829 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
12844 /* 12831 */ GIR_RootToRootCopy, /*OpIdx*/1, // src
12845 /* 12833 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
12846 /* 12836 */ GIR_EraseRootFromParent_Done,
12847 /* 12837 */ // Label 599: @12837
12848 /* 12837 */ GIM_Try, /*On fail goto*//*Label 600*/ GIMT_Encode4(12848), // Rule ID 316 //
12849 /* 12842 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule217Enabled),
12850 /* 12845 */ // MIs[0] dst
12851 /* 12845 */ // No operand predicates
12852 /* 12845 */ // MIs[0] mi.src
12853 /* 12845 */ // No operand predicates
12854 /* 12845 */ // Combiner Rule #217: constant_fold_unary_int_op @ [mi[0]]
12855 /* 12845 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner83),
12856 /* 12848 */ // Label 600: @12848
12857 /* 12848 */ GIM_Try, /*On fail goto*//*Label 601*/ GIMT_Encode4(12859), // Rule ID 452 //
12858 /* 12853 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule322Enabled),
12859 /* 12856 */ // MIs[0] dst
12860 /* 12856 */ // No operand predicates
12861 /* 12856 */ // MIs[0] src
12862 /* 12856 */ // No operand predicates
12863 /* 12856 */ // Combiner Rule #322: ctlz_to_ctls
12864 /* 12856 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner127),
12865 /* 12859 */ // Label 601: @12859
12866 /* 12859 */ GIM_Reject,
12867 /* 12860 */ // Label 106: @12860
12868 /* 12860 */ GIM_Try, /*On fail goto*//*Label 602*/ GIMT_Encode4(12871), // Rule ID 317 //
12869 /* 12865 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule217Enabled),
12870 /* 12868 */ // MIs[0] dst
12871 /* 12868 */ // No operand predicates
12872 /* 12868 */ // MIs[0] mi.src
12873 /* 12868 */ // No operand predicates
12874 /* 12868 */ // Combiner Rule #217: constant_fold_unary_int_op @ [mi[1]]
12875 /* 12868 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner83),
12876 /* 12871 */ // Label 602: @12871
12877 /* 12871 */ GIM_Try, /*On fail goto*//*Label 603*/ GIMT_Encode4(12882), // Rule ID 453 //
12878 /* 12876 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule323Enabled),
12879 /* 12879 */ // MIs[0] dst
12880 /* 12879 */ // No operand predicates
12881 /* 12879 */ // MIs[0] src
12882 /* 12879 */ // No operand predicates
12883 /* 12879 */ // Combiner Rule #323: ctlz_zero_poison_to_ctls
12884 /* 12879 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner127),
12885 /* 12882 */ // Label 603: @12882
12886 /* 12882 */ GIM_Reject,
12887 /* 12883 */ // Label 107: @12883
12888 /* 12883 */ GIM_Try, /*On fail goto*//*Label 604*/ GIMT_Encode4(12894), // Rule ID 320 //
12889 /* 12888 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule217Enabled),
12890 /* 12891 */ // MIs[0] dst
12891 /* 12891 */ // No operand predicates
12892 /* 12891 */ // MIs[0] mi.src
12893 /* 12891 */ // No operand predicates
12894 /* 12891 */ // Combiner Rule #217: constant_fold_unary_int_op @ [mi[4]]
12895 /* 12891 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner83),
12896 /* 12894 */ // Label 604: @12894
12897 /* 12894 */ GIM_Reject,
12898 /* 12895 */ // Label 108: @12895
12899 /* 12895 */ GIM_Try, /*On fail goto*//*Label 605*/ GIMT_Encode4(12906), // Rule ID 322 //
12900 /* 12900 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule217Enabled),
12901 /* 12903 */ // MIs[0] dst
12902 /* 12903 */ // No operand predicates
12903 /* 12903 */ // MIs[0] mi.src
12904 /* 12903 */ // No operand predicates
12905 /* 12903 */ // Combiner Rule #217: constant_fold_unary_int_op @ [mi[6]]
12906 /* 12903 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner83),
12907 /* 12906 */ // Label 605: @12906
12908 /* 12906 */ GIM_Reject,
12909 /* 12907 */ // Label 109: @12907
12910 /* 12907 */ GIM_Try, /*On fail goto*//*Label 606*/ GIMT_Encode4(12951), // Rule ID 272 //
12911 /* 12912 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule206Enabled),
12912 /* 12915 */ // MIs[0] d
12913 /* 12915 */ // No operand predicates
12914 /* 12915 */ // MIs[0] src
12915 /* 12915 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
12916 /* 12919 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_LSHR),
12917 /* 12923 */ // MIs[1] rev
12918 /* 12923 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
12919 /* 12927 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_BITREVERSE),
12920 /* 12931 */ // MIs[2] val
12921 /* 12931 */ // No operand predicates
12922 /* 12931 */ // MIs[1] amt
12923 /* 12931 */ // No operand predicates
12924 /* 12931 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner42),
12925 /* 12935 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
12926 /* 12937 */ // Combiner Rule #206: bitreverse_lshr
12927 /* 12937 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SHL),
12928 /* 12940 */ GIR_RootToRootCopy, /*OpIdx*/0, // d
12929 /* 12942 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // val
12930 /* 12946 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // amt
12931 /* 12950 */ GIR_EraseRootFromParent_Done,
12932 /* 12951 */ // Label 606: @12951
12933 /* 12951 */ GIM_Try, /*On fail goto*//*Label 607*/ GIMT_Encode4(12995), // Rule ID 271 //
12934 /* 12956 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule205Enabled),
12935 /* 12959 */ // MIs[0] d
12936 /* 12959 */ // No operand predicates
12937 /* 12959 */ // MIs[0] src
12938 /* 12959 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
12939 /* 12963 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SHL),
12940 /* 12967 */ // MIs[1] rev
12941 /* 12967 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
12942 /* 12971 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_BITREVERSE),
12943 /* 12975 */ // MIs[2] val
12944 /* 12975 */ // No operand predicates
12945 /* 12975 */ // MIs[1] amt
12946 /* 12975 */ // No operand predicates
12947 /* 12975 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner41),
12948 /* 12979 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
12949 /* 12981 */ // Combiner Rule #205: bitreverse_shl
12950 /* 12981 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_LSHR),
12951 /* 12984 */ GIR_RootToRootCopy, /*OpIdx*/0, // d
12952 /* 12986 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // val
12953 /* 12990 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // amt
12954 /* 12994 */ GIR_EraseRootFromParent_Done,
12955 /* 12995 */ // Label 607: @12995
12956 /* 12995 */ GIM_Try, /*On fail goto*//*Label 608*/ GIMT_Encode4(13006), // Rule ID 323 //
12957 /* 13000 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule217Enabled),
12958 /* 13003 */ // MIs[0] dst
12959 /* 13003 */ // No operand predicates
12960 /* 13003 */ // MIs[0] mi.src
12961 /* 13003 */ // No operand predicates
12962 /* 13003 */ // Combiner Rule #217: constant_fold_unary_int_op @ [mi[7]]
12963 /* 13003 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner83),
12964 /* 13006 */ // Label 608: @13006
12965 /* 13006 */ GIM_Reject,
12966 /* 13007 */ // Label 110: @13007
12967 /* 13007 */ GIM_Try, /*On fail goto*//*Label 609*/ GIMT_Encode4(13018), // Rule ID 216 //
12968 /* 13012 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule166Enabled),
12969 /* 13015 */ // MIs[0] dst
12970 /* 13015 */ // No operand predicates
12971 /* 13015 */ // MIs[0] src0
12972 /* 13015 */ // No operand predicates
12973 /* 13015 */ // Combiner Rule #166: constant_fold_fceil
12974 /* 13015 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner63),
12975 /* 13018 */ // Label 609: @13018
12976 /* 13018 */ GIM_Reject,
12977 /* 13019 */ // Label 111: @13019
12978 /* 13019 */ GIM_Try, /*On fail goto*//*Label 610*/ GIMT_Encode4(13030), // Rule ID 212 //
12979 /* 13024 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule162Enabled),
12980 /* 13027 */ // MIs[0] dst
12981 /* 13027 */ // No operand predicates
12982 /* 13027 */ // MIs[0] src0
12983 /* 13027 */ // No operand predicates
12984 /* 13027 */ // Combiner Rule #162: constant_fold_fsqrt
12985 /* 13027 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner63),
12986 /* 13030 */ // Label 610: @13030
12987 /* 13030 */ GIM_Reject,
12988 /* 13031 */ // Label 112: @13031
12989 /* 13031 */ GIM_Try, /*On fail goto*//*Label 611*/ GIMT_Encode4(13042), // Rule ID 217 //
12990 /* 13036 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule167Enabled),
12991 /* 13039 */ // MIs[0] dst
12992 /* 13039 */ // No operand predicates
12993 /* 13039 */ // MIs[0] src0
12994 /* 13039 */ // No operand predicates
12995 /* 13039 */ // Combiner Rule #167: constant_fold_ffloor
12996 /* 13039 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner63),
12997 /* 13042 */ // Label 611: @13042
12998 /* 13042 */ GIM_Reject,
12999 /* 13043 */ // Label 113: @13043
13000 /* 13043 */ GIM_Try, /*On fail goto*//*Label 612*/ GIMT_Encode4(13054), // Rule ID 221 //
13001 /* 13048 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule171Enabled),
13002 /* 13051 */ // MIs[0] dst
13003 /* 13051 */ // No operand predicates
13004 /* 13051 */ // MIs[0] src0
13005 /* 13051 */ // No operand predicates
13006 /* 13051 */ // Combiner Rule #171: constant_fold_frint
13007 /* 13051 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner63),
13008 /* 13054 */ // Label 612: @13054
13009 /* 13054 */ GIM_Reject,
13010 /* 13055 */ // Label 114: @13055
13011 /* 13055 */ GIM_Try, /*On fail goto*//*Label 613*/ GIMT_Encode4(13066), // Rule ID 222 //
13012 /* 13060 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule172Enabled),
13013 /* 13063 */ // MIs[0] dst
13014 /* 13063 */ // No operand predicates
13015 /* 13063 */ // MIs[0] src0
13016 /* 13063 */ // No operand predicates
13017 /* 13063 */ // Combiner Rule #172: constant_fold_fnearbyint
13018 /* 13063 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner63),
13019 /* 13066 */ // Label 613: @13066
13020 /* 13066 */ GIM_Reject,
13021 /* 13067 */ // Label 115: @13067
13022 /* 13067 */ GIM_Try, /*On fail goto*//*Label 614*/ GIMT_Encode4(13078), // Rule ID 491 //
13023 /* 13072 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule355Enabled),
13024 /* 13075 */ // MIs[0] dst_addr
13025 /* 13075 */ // No operand predicates
13026 /* 13075 */ // MIs[0] src_addr
13027 /* 13075 */ // No operand predicates
13028 /* 13075 */ // MIs[0] size
13029 /* 13075 */ // No operand predicates
13030 /* 13075 */ // MIs[0] tailcall
13031 /* 13075 */ // No operand predicates
13032 /* 13075 */ // Combiner Rule #355: combine_memcpy
13033 /* 13075 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner137),
13034 /* 13078 */ // Label 614: @13078
13035 /* 13078 */ GIM_Reject,
13036 /* 13079 */ // Label 116: @13079
13037 /* 13079 */ GIM_Try, /*On fail goto*//*Label 615*/ GIMT_Encode4(13090), // Rule ID 489 //
13038 /* 13084 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule353Enabled),
13039 /* 13087 */ // MIs[0] dst_addr
13040 /* 13087 */ // No operand predicates
13041 /* 13087 */ // MIs[0] src_addr
13042 /* 13087 */ // No operand predicates
13043 /* 13087 */ // MIs[0] size
13044 /* 13087 */ // No operand predicates
13045 /* 13087 */ // Combiner Rule #353: combine_memcpy_inline
13046 /* 13087 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner136),
13047 /* 13090 */ // Label 615: @13090
13048 /* 13090 */ GIM_Reject,
13049 /* 13091 */ // Label 117: @13091
13050 /* 13091 */ GIM_Try, /*On fail goto*//*Label 616*/ GIMT_Encode4(13102), // Rule ID 492 //
13051 /* 13096 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule356Enabled),
13052 /* 13099 */ // MIs[0] dst_addr
13053 /* 13099 */ // No operand predicates
13054 /* 13099 */ // MIs[0] src_addr
13055 /* 13099 */ // No operand predicates
13056 /* 13099 */ // MIs[0] size
13057 /* 13099 */ // No operand predicates
13058 /* 13099 */ // MIs[0] tailcall
13059 /* 13099 */ // No operand predicates
13060 /* 13099 */ // Combiner Rule #356: combine_memmove
13061 /* 13099 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner137),
13062 /* 13102 */ // Label 616: @13102
13063 /* 13102 */ GIM_Reject,
13064 /* 13103 */ // Label 118: @13103
13065 /* 13103 */ GIM_Try, /*On fail goto*//*Label 617*/ GIMT_Encode4(13114), // Rule ID 493 //
13066 /* 13108 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule357Enabled),
13067 /* 13111 */ // MIs[0] dst_addr
13068 /* 13111 */ // No operand predicates
13069 /* 13111 */ // MIs[0] value
13070 /* 13111 */ // No operand predicates
13071 /* 13111 */ // MIs[0] size
13072 /* 13111 */ // No operand predicates
13073 /* 13111 */ // MIs[0] tailcall
13074 /* 13111 */ // No operand predicates
13075 /* 13111 */ // Combiner Rule #357: combine_memset
13076 /* 13111 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner137),
13077 /* 13114 */ // Label 617: @13114
13078 /* 13114 */ GIM_Try, /*On fail goto*//*Label 618*/ GIMT_Encode4(13125), // Rule ID 494 //
13079 /* 13119 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule358Enabled),
13080 /* 13122 */ // MIs[0] dst_addr
13081 /* 13122 */ // No operand predicates
13082 /* 13122 */ // MIs[0] value
13083 /* 13122 */ // No operand predicates
13084 /* 13122 */ // MIs[0] size
13085 /* 13122 */ // No operand predicates
13086 /* 13122 */ // MIs[0] tailcall
13087 /* 13122 */ // No operand predicates
13088 /* 13122 */ // Combiner Rule #358: emit_bzero
13089 /* 13122 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner138),
13090 /* 13125 */ // Label 618: @13125
13091 /* 13125 */ GIM_Reject,
13092 /* 13126 */ // Label 119: @13126
13093 /* 13126 */ GIM_Try, /*On fail goto*//*Label 619*/ GIMT_Encode4(13137), // Rule ID 490 //
13094 /* 13131 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule354Enabled),
13095 /* 13134 */ // MIs[0] dst_addr
13096 /* 13134 */ // No operand predicates
13097 /* 13134 */ // MIs[0] value
13098 /* 13134 */ // No operand predicates
13099 /* 13134 */ // MIs[0] size
13100 /* 13134 */ // No operand predicates
13101 /* 13134 */ // Combiner Rule #354: combine_memset_inline
13102 /* 13134 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner136),
13103 /* 13137 */ // Label 619: @13137
13104 /* 13137 */ GIM_Reject,
13105 /* 13138 */ // Label 120: @13138
13106 /* 13138 */ GIM_Try_CheckFeatures, /*On fail goto*//*Label 620*/ GIMT_Encode4(13151), GIMT_Encode2(GIFBS_HasDotProd), // Rule ID 480 //
13107 /* 13145 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule344Enabled),
13108 /* 13148 */ // MIs[0] dst
13109 /* 13148 */ // No operand predicates
13110 /* 13148 */ // MIs[0] src
13111 /* 13148 */ // No operand predicates
13112 /* 13148 */ // Combiner Rule #344: ext_addv_to_udot_addv
13113 /* 13148 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner132),
13114 /* 13151 */ // Label 620: @13151
13115 /* 13151 */ GIM_Try, /*On fail goto*//*Label 621*/ GIMT_Encode4(13162), // Rule ID 481 //
13116 /* 13156 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule345Enabled),
13117 /* 13159 */ // MIs[0] dst
13118 /* 13159 */ // No operand predicates
13119 /* 13159 */ // MIs[0] src
13120 /* 13159 */ // No operand predicates
13121 /* 13159 */ // Combiner Rule #345: ext_uaddv_to_uaddlv
13122 /* 13159 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner133),
13123 /* 13162 */ // Label 621: @13162
13124 /* 13162 */ GIM_Reject,
13125 /* 13163 */ // Label 121: @13163
13126 /* 13163 */ GIM_Reject,
13127 /* 13164 */ }; // Size: 13164 bytes
13128 return MatchTable0;
13129}
13130#undef GIMT_Encode2
13131#undef GIMT_Encode4
13132#undef GIMT_Encode8
13133
13134LLT AArch64PreLegalizerCombinerImpl::getLLTForHwMode(unsigned Index) const {
13135 llvm_unreachable("Unexpected index");
13136}
13137
13138
13139#endif // GET_GICOMBINER_IMPL
13140
13141#ifdef GET_GICOMBINER_CONSTRUCTOR_INITS
13142
13143AvailableModuleFeatures(computeAvailableModuleFeatures(&STI)),
13144AvailableFunctionFeatures()
13145
13146#endif // GET_GICOMBINER_CONSTRUCTOR_INITS
13147
13148#ifdef GET_GICOMBINER_CONSTRUCTOR_INITS
13149
13150, State(0),
13151ExecInfo(TypeObjects, NumTypeObjects, FeatureBitsets, ComplexPredicateFns, CustomRenderers)
13152
13153#endif // GET_GICOMBINER_CONSTRUCTOR_INITS
13154
13155