1/*===- TableGen'erated file -------------------------------------*- C++ -*-===*\
2|* *|
3|* AMDGPUPreLegalizerCombinerImpl Combiner Match Table *|
4|* *|
5|* Automatically generated file, do not edit! *|
6|* *|
7\*===----------------------------------------------------------------------===*/
8
9#ifdef GET_GICOMBINER_DEPS
10
11#include "llvm/ADT/SparseBitVector.h"
12namespace llvm {
13
14extern cl::OptionCategory GICombinerOptionCategory;
15
16} // namespace llvm
17
18#endif // GET_GICOMBINER_DEPS
19
20#ifdef GET_GICOMBINER_TYPES
21
22struct AMDGPUPreLegalizerCombinerImplRuleConfig {
23 SparseBitVector<> DisabledRules;
24
25 bool isRuleEnabled(unsigned RuleID) const;
26 bool parseCommandLineOption();
27 bool setRuleEnabled(StringRef RuleIdentifier);
28 bool setRuleDisabled(StringRef RuleIdentifier);
29};
30
31static std::optional<uint64_t> getRuleIdxForIdentifier(StringRef RuleIdentifier) {
32 uint64_t I;
33 // getAtInteger(...) returns false on success
34 bool Parsed = !RuleIdentifier.getAsInteger(0, I);
35 if (Parsed)
36 return I;
37
38#ifndef NDEBUG
39 switch (RuleIdentifier.size()) {
40 default: break;
41 case 9: // 7 strings to match.
42 switch (RuleIdentifier[0]) {
43 default: break;
44 case 'a': // 1 string to match.
45 if (memcmp(RuleIdentifier.data()+1, "dd_shift", 8) != 0)
46 break;
47 return 256; // "add_shift"
48 case 'c': // 1 string to match.
49 if (memcmp(RuleIdentifier.data()+1, "opy_prop", 8) != 0)
50 break;
51 return 19; // "copy_prop"
52 case 'm': // 3 strings to match.
53 switch (RuleIdentifier[1]) {
54 default: break;
55 case 'a': // 1 string to match.
56 if (memcmp(RuleIdentifier.data()+2, "tch_ors", 7) != 0)
57 break;
58 return 219; // "match_ors"
59 case 'u': // 2 strings to match.
60 if (memcmp(RuleIdentifier.data()+2, "lo_by_", 6) != 0)
61 break;
62 switch (RuleIdentifier[8]) {
63 default: break;
64 case '0': // 1 string to match.
65 return 163; // "mulo_by_0"
66 case '2': // 1 string to match.
67 return 162; // "mulo_by_2"
68 }
69 break;
70 }
71 break;
72 case 'n': // 1 string to match.
73 if (memcmp(RuleIdentifier.data()+1, "neg_zext", 8) != 0)
74 break;
75 return 230; // "nneg_zext"
76 case 'o': // 1 string to match.
77 if (memcmp(RuleIdentifier.data()+1, "r_xor_or", 8) != 0)
78 break;
79 return 224; // "or_xor_or"
80 }
81 break;
82 case 10: // 11 strings to match.
83 switch (RuleIdentifier[0]) {
84 default: break;
85 case 'S': // 2 strings to match.
86 if (memcmp(RuleIdentifier.data()+1, "ub", 2) != 0)
87 break;
88 switch (RuleIdentifier[3]) {
89 default: break;
90 case 'S': // 1 string to match.
91 if (memcmp(RuleIdentifier.data()+4, "maxSub", 6) != 0)
92 break;
93 return 261; // "SubSmaxSub"
94 case 'U': // 1 string to match.
95 if (memcmp(RuleIdentifier.data()+4, "maxSub", 6) != 0)
96 break;
97 return 262; // "SubUmaxSub"
98 }
99 break;
100 case 'i': // 1 string to match.
101 if (memcmp(RuleIdentifier.data()+1, "2p_to_p2i", 9) != 0)
102 break;
103 return 96; // "i2p_to_p2i"
104 case 'm': // 2 strings to match.
105 switch (RuleIdentifier[1]) {
106 default: break;
107 case 'a': // 1 string to match.
108 if (memcmp(RuleIdentifier.data()+2, "tch_ands", 8) != 0)
109 break;
110 return 218; // "match_ands"
111 case 'u': // 1 string to match.
112 if (memcmp(RuleIdentifier.data()+2, "l_to_shl", 8) != 0)
113 break;
114 return 20; // "mul_to_shl"
115 }
116 break;
117 case 'o': // 1 string to match.
118 if (memcmp(RuleIdentifier.data()+1, "r_xor_and", 9) != 0)
119 break;
120 return 225; // "or_xor_and"
121 case 'p': // 1 string to match.
122 if (memcmp(RuleIdentifier.data()+1, "2i_to_i2p", 9) != 0)
123 break;
124 return 95; // "p2i_to_i2p"
125 case 's': // 3 strings to match.
126 switch (RuleIdentifier[1]) {
127 default: break;
128 case 'e': // 2 strings to match.
129 switch (RuleIdentifier[2]) {
130 default: break;
131 case 'l': // 1 string to match.
132 if (memcmp(RuleIdentifier.data()+3, "ect_not", 7) != 0)
133 break;
134 return 135; // "select_not"
135 case 'x': // 1 string to match.
136 if (memcmp(RuleIdentifier.data()+3, "t_trunc", 7) != 0)
137 break;
138 return 228; // "sext_trunc"
139 }
140 break;
141 case 'u': // 1 string to match.
142 if (memcmp(RuleIdentifier.data()+2, "b_to_add", 8) != 0)
143 break;
144 return 21; // "sub_to_add"
145 }
146 break;
147 case 'z': // 1 string to match.
148 if (memcmp(RuleIdentifier.data()+1, "ext_trunc", 9) != 0)
149 break;
150 return 229; // "zext_trunc"
151 }
152 break;
153 case 11: // 8 strings to match.
154 switch (RuleIdentifier[0]) {
155 default: break;
156 case 'a': // 1 string to match.
157 if (memcmp(RuleIdentifier.data()+1, "dd_sub_reg", 10) != 0)
158 break;
159 return 101; // "add_sub_reg"
160 case 'm': // 1 string to match.
161 if (memcmp(RuleIdentifier.data()+1, "atch_addos", 10) != 0)
162 break;
163 return 245; // "match_addos"
164 case 's': // 1 string to match.
165 if (memcmp(RuleIdentifier.data()+1, "ub_add_reg", 10) != 0)
166 break;
167 return 213; // "sub_add_reg"
168 case 't': // 4 strings to match.
169 if (memcmp(RuleIdentifier.data()+1, "runc_", 5) != 0)
170 break;
171 switch (RuleIdentifier[6]) {
172 default: break;
173 case 's': // 3 strings to match.
174 switch (RuleIdentifier[7]) {
175 default: break;
176 case 'h': // 1 string to match.
177 if (memcmp(RuleIdentifier.data()+8, "ift", 3) != 0)
178 break;
179 return 142; // "trunc_shift"
180 case 's': // 2 strings to match.
181 if (memcmp(RuleIdentifier.data()+8, "at", 2) != 0)
182 break;
183 switch (RuleIdentifier[10]) {
184 default: break;
185 case 's': // 1 string to match.
186 return 247; // "trunc_ssats"
187 case 'u': // 1 string to match.
188 return 248; // "trunc_ssatu"
189 }
190 break;
191 }
192 break;
193 case 'u': // 1 string to match.
194 if (memcmp(RuleIdentifier.data()+7, "satu", 4) != 0)
195 break;
196 return 249; // "trunc_usatu"
197 }
198 break;
199 case 'u': // 1 string to match.
200 if (memcmp(RuleIdentifier.data()+1, "nmerge_cst", 10) != 0)
201 break;
202 return 238; // "unmerge_cst"
203 }
204 break;
205 case 12: // 12 strings to match.
206 switch (RuleIdentifier[0]) {
207 default: break;
208 case 'A': // 1 string to match.
209 if (memcmp(RuleIdentifier.data()+1, "PlusBMinusB", 11) != 0)
210 break;
211 return 4; // "APlusBMinusB"
212 case 'B': // 1 string to match.
213 if (memcmp(RuleIdentifier.data()+1, "MinusAPlusA", 11) != 0)
214 break;
215 return 5; // "BMinusAPlusA"
216 case 'a': // 1 string to match.
217 if (memcmp(RuleIdentifier.data()+1, "dde_to_addo", 11) != 0)
218 break;
219 return 164; // "adde_to_addo"
220 case 'c': // 1 string to match.
221 if (memcmp(RuleIdentifier.data()+1, "tlz_to_ctls", 11) != 0)
222 break;
223 return 252; // "ctlz_to_ctls"
224 case 'f': // 1 string to match.
225 if (memcmp(RuleIdentifier.data()+1, "sub_to_fneg", 11) != 0)
226 break;
227 return 215; // "fsub_to_fneg"
228 case 'm': // 1 string to match.
229 if (memcmp(RuleIdentifier.data()+1, "ulh_to_lshr", 11) != 0)
230 break;
231 return 193; // "mulh_to_lshr"
232 case 'n': // 1 string to match.
233 if (memcmp(RuleIdentifier.data()+1, "ot_cmp_fold", 11) != 0)
234 break;
235 return 143; // "not_cmp_fold"
236 case 'r': // 1 string to match.
237 if (memcmp(RuleIdentifier.data()+1, "edundant_or", 11) != 0)
238 break;
239 return 138; // "redundant_or"
240 case 's': // 2 strings to match.
241 switch (RuleIdentifier[1]) {
242 default: break;
243 case 'd': // 1 string to match.
244 if (memcmp(RuleIdentifier.data()+2, "iv_by_pow2", 10) != 0)
245 break;
246 return 209; // "sdiv_by_pow2"
247 case 'e': // 1 string to match.
248 if (memcmp(RuleIdentifier.data()+2, "xt_of_sext", 10) != 0)
249 break;
250 return 54; // "sext_of_sext"
251 }
252 break;
253 case 'u': // 1 string to match.
254 if (memcmp(RuleIdentifier.data()+1, "div_by_pow2", 11) != 0)
255 break;
256 return 208; // "udiv_by_pow2"
257 case 'z': // 1 string to match.
258 if (memcmp(RuleIdentifier.data()+1, "ext_of_zext", 11) != 0)
259 break;
260 return 52; // "zext_of_zext"
261 }
262 break;
263 case 13: // 20 strings to match.
264 switch (RuleIdentifier[0]) {
265 default: break;
266 case 'A': // 2 strings to match.
267 if (memcmp(RuleIdentifier.data()+1, "MinusBMinus", 11) != 0)
268 break;
269 switch (RuleIdentifier[12]) {
270 default: break;
271 case 'A': // 1 string to match.
272 return 12; // "AMinusBMinusA"
273 case 'C': // 1 string to match.
274 return 9; // "AMinusBMinusC"
275 }
276 break;
277 case 'a': // 1 string to match.
278 if (memcmp(RuleIdentifier.data()+1, "dd_of_vscale", 12) != 0)
279 break;
280 return 43; // "add_of_vscale"
281 case 'c': // 1 string to match.
282 if (memcmp(RuleIdentifier.data()+1, "ommute_shift", 12) != 0)
283 break;
284 return 182; // "commute_shift"
285 case 'f': // 1 string to match.
286 if (memcmp(RuleIdentifier.data()+1, "oldable_fneg", 12) != 0)
287 break;
288 return 270; // "foldable_fneg"
289 case 'l': // 1 string to match.
290 if (memcmp(RuleIdentifier.data()+1, "oad_and_mask", 12) != 0)
291 break;
292 return 75; // "load_and_mask"
293 case 'm': // 3 strings to match.
294 switch (RuleIdentifier[1]) {
295 default: break;
296 case 'a': // 1 string to match.
297 if (memcmp(RuleIdentifier.data()+2, "tch_selects", 11) != 0)
298 break;
299 return 133; // "match_selects"
300 case 'e': // 1 string to match.
301 if (memcmp(RuleIdentifier.data()+2, "rge_unmerge", 11) != 0)
302 break;
303 return 237; // "merge_unmerge"
304 case 'u': // 1 string to match.
305 if (memcmp(RuleIdentifier.data()+2, "l_of_vscale", 11) != 0)
306 break;
307 return 44; // "mul_of_vscale"
308 }
309 break;
310 case 'r': // 1 string to match.
311 if (memcmp(RuleIdentifier.data()+1, "edundant_and", 12) != 0)
312 break;
313 return 136; // "redundant_and"
314 case 's': // 6 strings to match.
315 switch (RuleIdentifier[1]) {
316 default: break;
317 case 'a': // 1 string to match.
318 if (memcmp(RuleIdentifier.data()+2, "me_val_zero", 11) != 0)
319 break;
320 return 92; // "same_val_zero"
321 case 'd': // 1 string to match.
322 if (memcmp(RuleIdentifier.data()+2, "iv_by_const", 11) != 0)
323 break;
324 return 211; // "sdiv_by_const"
325 case 'h': // 1 string to match.
326 if (memcmp(RuleIdentifier.data()+2, "l_of_vscale", 11) != 0)
327 break;
328 return 45; // "shl_of_vscale"
329 case 'r': // 1 string to match.
330 if (memcmp(RuleIdentifier.data()+2, "em_by_const", 11) != 0)
331 break;
332 return 207; // "srem_by_const"
333 case 'u': // 2 strings to match.
334 if (memcmp(RuleIdentifier.data()+2, "b_", 2) != 0)
335 break;
336 switch (RuleIdentifier[4]) {
337 default: break;
338 case 'm': // 1 string to match.
339 if (memcmp(RuleIdentifier.data()+5, "inus_one", 8) != 0)
340 break;
341 return 259; // "sub_minus_one"
342 case 'o': // 1 string to match.
343 if (memcmp(RuleIdentifier.data()+5, "f_vscale", 8) != 0)
344 break;
345 return 46; // "sub_of_vscale"
346 }
347 break;
348 }
349 break;
350 case 'u': // 4 strings to match.
351 switch (RuleIdentifier[1]) {
352 default: break;
353 case 'd': // 1 string to match.
354 if (memcmp(RuleIdentifier.data()+2, "iv_by_const", 11) != 0)
355 break;
356 return 210; // "udiv_by_const"
357 case 'n': // 2 strings to match.
358 if (memcmp(RuleIdentifier.data()+2, "merge_", 6) != 0)
359 break;
360 switch (RuleIdentifier[8]) {
361 default: break;
362 case 'm': // 1 string to match.
363 if (memcmp(RuleIdentifier.data()+9, "erge", 4) != 0)
364 break;
365 return 236; // "unmerge_merge"
366 case 'u': // 1 string to match.
367 if (memcmp(RuleIdentifier.data()+9, "ndef", 4) != 0)
368 break;
369 return 239; // "unmerge_undef"
370 }
371 break;
372 case 'r': // 1 string to match.
373 if (memcmp(RuleIdentifier.data()+2, "em_by_const", 11) != 0)
374 break;
375 return 206; // "urem_by_const"
376 }
377 break;
378 }
379 break;
380 case 14: // 17 strings to match.
381 switch (RuleIdentifier[0]) {
382 default: break;
383 case 'A': // 2 strings to match.
384 switch (RuleIdentifier[1]) {
385 default: break;
386 case 'M': // 1 string to match.
387 if (memcmp(RuleIdentifier.data()+2, "inusC1PlusC2", 12) != 0)
388 break;
389 return 18; // "AMinusC1PlusC2"
390 case 'P': // 1 string to match.
391 if (memcmp(RuleIdentifier.data()+2, "lusC1MinusC2", 12) != 0)
392 break;
393 return 14; // "APlusC1MinusC2"
394 }
395 break;
396 case 'C': // 1 string to match.
397 if (memcmp(RuleIdentifier.data()+1, "2MinusAPlusC1", 13) != 0)
398 break;
399 return 15; // "C2MinusAPlusC1"
400 case 'N': // 1 string to match.
401 if (memcmp(RuleIdentifier.data()+1, "otAPlusNegOne", 13) != 0)
402 break;
403 return 13; // "NotAPlusNegOne"
404 case 'a': // 2 strings to match.
405 if (memcmp(RuleIdentifier.data()+1, "nyext_of_", 9) != 0)
406 break;
407 switch (RuleIdentifier[10]) {
408 default: break;
409 case 's': // 1 string to match.
410 if (memcmp(RuleIdentifier.data()+11, "ext", 3) != 0)
411 break;
412 return 58; // "anyext_of_sext"
413 case 'z': // 1 string to match.
414 if (memcmp(RuleIdentifier.data()+11, "ext", 3) != 0)
415 break;
416 return 57; // "anyext_of_zext"
417 }
418 break;
419 case 'b': // 3 strings to match.
420 if (RuleIdentifier[1] != 'i')
421 break;
422 switch (RuleIdentifier[2]) {
423 default: break;
424 case 'n': // 2 strings to match.
425 if (memcmp(RuleIdentifier.data()+3, "op_", 3) != 0)
426 break;
427 switch (RuleIdentifier[6]) {
428 default: break;
429 case 's': // 1 string to match.
430 if (memcmp(RuleIdentifier.data()+7, "ame_val", 7) != 0)
431 break;
432 return 91; // "binop_same_val"
433 case 'w': // 1 string to match.
434 if (memcmp(RuleIdentifier.data()+7, "ith_neg", 7) != 0)
435 break;
436 return 258; // "binop_with_neg"
437 }
438 break;
439 case 't': // 1 string to match.
440 if (memcmp(RuleIdentifier.data()+3, "reverse_shl", 11) != 0)
441 break;
442 return 180; // "bitreverse_shl"
443 }
444 break;
445 case 'f': // 2 strings to match.
446 switch (RuleIdentifier[1]) {
447 default: break;
448 case 'a': // 1 string to match.
449 if (memcmp(RuleIdentifier.data()+2, "bs_fneg_fold", 12) != 0)
450 break;
451 return 192; // "fabs_fneg_fold"
452 case 'n': // 1 string to match.
453 if (memcmp(RuleIdentifier.data()+2, "eg_fneg_fold", 12) != 0)
454 break;
455 return 98; // "fneg_fneg_fold"
456 }
457 break;
458 case 'm': // 1 string to match.
459 if (memcmp(RuleIdentifier.data()+1, "ul_by_neg_one", 13) != 0)
460 break;
461 return 23; // "mul_by_neg_one"
462 case 'r': // 1 string to match.
463 if (memcmp(RuleIdentifier.data()+1, "eassoc_ptradd", 13) != 0)
464 break;
465 return 115; // "reassoc_ptradd"
466 case 's': // 3 strings to match.
467 switch (RuleIdentifier[1]) {
468 default: break;
469 case 'e': // 2 strings to match.
470 switch (RuleIdentifier[2]) {
471 default: break;
472 case 'l': // 1 string to match.
473 if (memcmp(RuleIdentifier.data()+3, "ect_of_zext", 11) != 0)
474 break;
475 return 60; // "select_of_zext"
476 case 'x': // 1 string to match.
477 if (memcmp(RuleIdentifier.data()+3, "t_of_anyext", 11) != 0)
478 break;
479 return 55; // "sext_of_anyext"
480 }
481 break;
482 case 'h': // 1 string to match.
483 if (memcmp(RuleIdentifier.data()+2, "ifts_too_big", 12) != 0)
484 break;
485 return 114; // "shifts_too_big"
486 }
487 break;
488 case 'z': // 1 string to match.
489 if (memcmp(RuleIdentifier.data()+1, "ext_of_anyext", 13) != 0)
490 break;
491 return 53; // "zext_of_anyext"
492 }
493 break;
494 case 15: // 14 strings to match.
495 switch (RuleIdentifier[0]) {
496 default: break;
497 case 'A': // 2 strings to match.
498 switch (RuleIdentifier[1]) {
499 default: break;
500 case 'M': // 1 string to match.
501 if (memcmp(RuleIdentifier.data()+2, "inusC1MinusC2", 13) != 0)
502 break;
503 return 16; // "AMinusC1MinusC2"
504 case 'P': // 1 string to match.
505 if (memcmp(RuleIdentifier.data()+2, "lusZeroMinusB", 13) != 0)
506 break;
507 return 3; // "APlusZeroMinusB"
508 }
509 break;
510 case 'C': // 1 string to match.
511 if (memcmp(RuleIdentifier.data()+1, "1Minus2MinusC2", 14) != 0)
512 break;
513 return 17; // "C1Minus2MinusC2"
514 case 'Z': // 1 string to match.
515 if (memcmp(RuleIdentifier.data()+1, "eroMinusAPlusB", 14) != 0)
516 break;
517 return 2; // "ZeroMinusAPlusB"
518 case 'a': // 2 strings to match.
519 if (memcmp(RuleIdentifier.data()+1, "vgceil_", 7) != 0)
520 break;
521 switch (RuleIdentifier[8]) {
522 default: break;
523 case 's': // 1 string to match.
524 if (memcmp(RuleIdentifier.data()+9, "_match", 6) != 0)
525 break;
526 return 266; // "avgceil_s_match"
527 case 'u': // 1 string to match.
528 if (memcmp(RuleIdentifier.data()+9, "_match", 6) != 0)
529 break;
530 return 265; // "avgceil_u_match"
531 }
532 break;
533 case 'b': // 1 string to match.
534 if (memcmp(RuleIdentifier.data()+1, "itreverse_lshr", 14) != 0)
535 break;
536 return 181; // "bitreverse_lshr"
537 case 'e': // 1 string to match.
538 if (memcmp(RuleIdentifier.data()+1, "xtending_loads", 14) != 0)
539 break;
540 return 74; // "extending_loads"
541 case 'i': // 1 string to match.
542 if (memcmp(RuleIdentifier.data()+1, "dempotent_prop", 14) != 0)
543 break;
544 return 24; // "idempotent_prop"
545 case 'l': // 1 string to match.
546 if (memcmp(RuleIdentifier.data()+1, "oad_or_combine", 14) != 0)
547 break;
548 return 171; // "load_or_combine"
549 case 'n': // 1 string to match.
550 if (memcmp(RuleIdentifier.data()+1, "arrow_binop_or", 14) != 0)
551 break;
552 return 68; // "narrow_binop_or"
553 case 'o': // 1 string to match.
554 if (memcmp(RuleIdentifier.data()+1, "verlapping_and", 14) != 0)
555 break;
556 return 161; // "overlapping_and"
557 case 's': // 1 string to match.
558 if (memcmp(RuleIdentifier.data()+1, "elect_same_val", 14) != 0)
559 break;
560 return 89; // "select_same_val"
561 case 'z': // 1 string to match.
562 if (memcmp(RuleIdentifier.data()+1, "ext_trunc_fold", 14) != 0)
563 break;
564 return 140; // "zext_trunc_fold"
565 }
566 break;
567 case 16: // 19 strings to match.
568 switch (RuleIdentifier[0]) {
569 default: break;
570 case 'A': // 1 string to match.
571 if (memcmp(RuleIdentifier.data()+1, "MinusZeroMinusB", 15) != 0)
572 break;
573 return 11; // "AMinusZeroMinusB"
574 case 'a': // 3 strings to match.
575 switch (RuleIdentifier[1]) {
576 default: break;
577 case 'n': // 1 string to match.
578 if (memcmp(RuleIdentifier.data()+2, "yext_of_anyext", 14) != 0)
579 break;
580 return 56; // "anyext_of_anyext"
581 case 'v': // 2 strings to match.
582 if (memcmp(RuleIdentifier.data()+2, "gfloor_", 7) != 0)
583 break;
584 switch (RuleIdentifier[9]) {
585 default: break;
586 case 's': // 1 string to match.
587 if (memcmp(RuleIdentifier.data()+10, "_match", 6) != 0)
588 break;
589 return 264; // "avgfloor_s_match"
590 case 'u': // 1 string to match.
591 if (memcmp(RuleIdentifier.data()+10, "_match", 6) != 0)
592 break;
593 return 263; // "avgfloor_u_match"
594 }
595 break;
596 }
597 break;
598 case 'c': // 1 string to match.
599 if (memcmp(RuleIdentifier.data()+1, "lamp_i64_to_i16", 15) != 0)
600 break;
601 return 269; // "clamp_i64_to_i16"
602 case 'n': // 5 strings to match.
603 if (memcmp(RuleIdentifier.data()+1, "arrow_binop_", 12) != 0)
604 break;
605 switch (RuleIdentifier[13]) {
606 default: break;
607 case 'a': // 2 strings to match.
608 switch (RuleIdentifier[14]) {
609 default: break;
610 case 'd': // 1 string to match.
611 if (RuleIdentifier[15] != 'd')
612 break;
613 return 64; // "narrow_binop_add"
614 case 'n': // 1 string to match.
615 if (RuleIdentifier[15] != 'd')
616 break;
617 return 67; // "narrow_binop_and"
618 }
619 break;
620 case 'm': // 1 string to match.
621 if (memcmp(RuleIdentifier.data()+14, "ul", 2) != 0)
622 break;
623 return 66; // "narrow_binop_mul"
624 case 's': // 1 string to match.
625 if (memcmp(RuleIdentifier.data()+14, "ub", 2) != 0)
626 break;
627 return 65; // "narrow_binop_sub"
628 case 'x': // 1 string to match.
629 if (memcmp(RuleIdentifier.data()+14, "or", 2) != 0)
630 break;
631 return 69; // "narrow_binop_xor"
632 }
633 break;
634 case 'o': // 1 string to match.
635 if (memcmp(RuleIdentifier.data()+1, "r_and_xor_to_or", 15) != 0)
636 break;
637 return 220; // "or_and_xor_to_or"
638 case 's': // 5 strings to match.
639 switch (RuleIdentifier[1]) {
640 default: break;
641 case 'e': // 3 strings to match.
642 if (memcmp(RuleIdentifier.data()+2, "lect_", 5) != 0)
643 break;
644 switch (RuleIdentifier[7]) {
645 default: break;
646 case 'o': // 1 string to match.
647 if (memcmp(RuleIdentifier.data()+8, "f_anyext", 8) != 0)
648 break;
649 return 61; // "select_of_anyext"
650 case 't': // 1 string to match.
651 if (memcmp(RuleIdentifier.data()+8, "o_minmax", 8) != 0)
652 break;
653 return 214; // "select_to_minmax"
654 case 'u': // 1 string to match.
655 if (memcmp(RuleIdentifier.data()+8, "ndef_cmp", 8) != 0)
656 break;
657 return 130; // "select_undef_cmp"
658 }
659 break;
660 case 'u': // 2 strings to match.
661 if (memcmp(RuleIdentifier.data()+2, "b_o", 3) != 0)
662 break;
663 switch (RuleIdentifier[5]) {
664 default: break;
665 case 'f': // 1 string to match.
666 if (memcmp(RuleIdentifier.data()+6, "_mul_const", 10) != 0)
667 break;
668 return 260; // "sub_of_mul_const"
669 case 'n': // 1 string to match.
670 if (memcmp(RuleIdentifier.data()+6, "e_from_sub", 10) != 0)
671 break;
672 return 257; // "sub_one_from_sub"
673 }
674 break;
675 }
676 break;
677 case 't': // 2 strings to match.
678 if (memcmp(RuleIdentifier.data()+1, "runcate_of_", 11) != 0)
679 break;
680 switch (RuleIdentifier[12]) {
681 default: break;
682 case 's': // 1 string to match.
683 if (memcmp(RuleIdentifier.data()+13, "ext", 3) != 0)
684 break;
685 return 50; // "truncate_of_sext"
686 case 'z': // 1 string to match.
687 if (memcmp(RuleIdentifier.data()+13, "ext", 3) != 0)
688 break;
689 return 49; // "truncate_of_zext"
690 }
691 break;
692 case 'u': // 1 string to match.
693 if (memcmp(RuleIdentifier.data()+1, "ndef_to_fp_zero", 15) != 0)
694 break;
695 return 77; // "undef_to_fp_zero"
696 }
697 break;
698 case 17: // 19 strings to match.
699 switch (RuleIdentifier[0]) {
700 default: break;
701 case 'A': // 2 strings to match.
702 if (memcmp(RuleIdentifier.data()+1, "PlusBMinus", 10) != 0)
703 break;
704 switch (RuleIdentifier[11]) {
705 default: break;
706 case 'A': // 1 string to match.
707 if (memcmp(RuleIdentifier.data()+12, "plusC", 5) != 0)
708 break;
709 return 8; // "APlusBMinusAplusC"
710 case 'C': // 1 string to match.
711 if (memcmp(RuleIdentifier.data()+12, "PlusA", 5) != 0)
712 break;
713 return 10; // "APlusBMinusCPlusA"
714 }
715 break;
716 case 'a': // 3 strings to match.
717 switch (RuleIdentifier[1]) {
718 default: break;
719 case 'd': // 1 string to match.
720 if (memcmp(RuleIdentifier.data()+2, "d_p2i_to_ptradd", 15) != 0)
721 break;
722 return 22; // "add_p2i_to_ptradd"
723 case 'n': // 2 strings to match.
724 switch (RuleIdentifier[2]) {
725 default: break;
726 case 'd': // 1 string to match.
727 if (memcmp(RuleIdentifier.data()+3, "_xor_or_to_and", 14) != 0)
728 break;
729 return 222; // "and_xor_or_to_and"
730 case 'y': // 1 string to match.
731 if (memcmp(RuleIdentifier.data()+3, "ext_trunc_fold", 14) != 0)
732 break;
733 return 97; // "anyext_trunc_fold"
734 }
735 break;
736 }
737 break;
738 case 'c': // 4 strings to match.
739 switch (RuleIdentifier[1]) {
740 default: break;
741 case 'a': // 2 strings to match.
742 if (memcmp(RuleIdentifier.data()+2, "nonicalize_", 11) != 0)
743 break;
744 switch (RuleIdentifier[13]) {
745 default: break;
746 case 'f': // 1 string to match.
747 if (memcmp(RuleIdentifier.data()+14, "cmp", 3) != 0)
748 break;
749 return 119; // "canonicalize_fcmp"
750 case 'i': // 1 string to match.
751 if (memcmp(RuleIdentifier.data()+14, "cmp", 3) != 0)
752 break;
753 return 118; // "canonicalize_icmp"
754 }
755 break;
756 case 'o': // 2 strings to match.
757 switch (RuleIdentifier[2]) {
758 default: break;
759 case 'm': // 1 string to match.
760 if (memcmp(RuleIdentifier.data()+3, "bine_or_of_and", 14) != 0)
761 break;
762 return 267; // "combine_or_of_and"
763 case 'n': // 1 string to match.
764 if (memcmp(RuleIdentifier.data()+3, "stant_fold_fma", 14) != 0)
765 break;
766 return 189; // "constant_fold_fma"
767 }
768 break;
769 }
770 break;
771 case 'd': // 1 string to match.
772 if (memcmp(RuleIdentifier.data()+1, "iv_rem_to_divrem", 16) != 0)
773 break;
774 return 172; // "div_rem_to_divrem"
775 case 'e': // 1 string to match.
776 if (memcmp(RuleIdentifier.data()+1, "rase_undef_store", 16) != 0)
777 break;
778 return 87; // "erase_undef_store"
779 case 'f': // 1 string to match.
780 if (memcmp(RuleIdentifier.data()+1, "old_fabs_fptrunc", 16) != 0)
781 break;
782 return 271; // "fold_fabs_fptrunc"
783 case 'p': // 1 string to match.
784 if (memcmp(RuleIdentifier.data()+1, "tr_add_with_zero", 16) != 0)
785 break;
786 return 168; // "ptr_add_with_zero"
787 case 's': // 4 strings to match.
788 switch (RuleIdentifier[1]) {
789 default: break;
790 case 'e': // 2 strings to match.
791 if (memcmp(RuleIdentifier.data()+2, "lect_", 5) != 0)
792 break;
793 switch (RuleIdentifier[7]) {
794 default: break;
795 case 't': // 1 string to match.
796 if (memcmp(RuleIdentifier.data()+8, "o_iminmax", 9) != 0)
797 break;
798 return 132; // "select_to_iminmax"
799 case 'z': // 1 string to match.
800 if (memcmp(RuleIdentifier.data()+8, "ero_false", 9) != 0)
801 break;
802 return 134; // "select_zero_false"
803 }
804 break;
805 case 'h': // 1 string to match.
806 if (memcmp(RuleIdentifier.data()+2, "ift_immed_chain", 15) != 0)
807 break;
808 return 169; // "shift_immed_chain"
809 case 'r': // 1 string to match.
810 if (memcmp(RuleIdentifier.data()+2, "em_pow2_to_mask", 15) != 0)
811 break;
812 return 205; // "srem_pow2_to_mask"
813 }
814 break;
815 case 'u': // 2 strings to match.
816 switch (RuleIdentifier[1]) {
817 default: break;
818 case 'n': // 1 string to match.
819 if (memcmp(RuleIdentifier.data()+2, "def_to_int_zero", 15) != 0)
820 break;
821 return 78; // "undef_to_int_zero"
822 case 'r': // 1 string to match.
823 if (memcmp(RuleIdentifier.data()+2, "em_pow2_to_mask", 15) != 0)
824 break;
825 return 139; // "urem_pow2_to_mask"
826 }
827 break;
828 }
829 break;
830 case 18: // 13 strings to match.
831 switch (RuleIdentifier[0]) {
832 default: break;
833 case 'A': // 3 strings to match.
834 switch (RuleIdentifier[1]) {
835 default: break;
836 case 'M': // 2 strings to match.
837 if (memcmp(RuleIdentifier.data()+2, "inusBPlus", 9) != 0)
838 break;
839 switch (RuleIdentifier[11]) {
840 default: break;
841 case 'B': // 1 string to match.
842 if (memcmp(RuleIdentifier.data()+12, "MinusC", 6) != 0)
843 break;
844 return 7; // "AMinusBPlusBMinusC"
845 case 'C': // 1 string to match.
846 if (memcmp(RuleIdentifier.data()+12, "MinusA", 6) != 0)
847 break;
848 return 6; // "AMinusBPlusCMinusA"
849 }
850 break;
851 case 'P': // 1 string to match.
852 if (memcmp(RuleIdentifier.data()+2, "lusBMinusCMinusB", 16) != 0)
853 break;
854 return 0; // "APlusBMinusCMinusB"
855 }
856 break;
857 case 'b': // 1 string to match.
858 if (memcmp(RuleIdentifier.data()+1, "inop_left_to_zero", 17) != 0)
859 break;
860 return 93; // "binop_left_to_zero"
861 case 'c': // 4 strings to match.
862 if (RuleIdentifier[1] != 'o')
863 break;
864 switch (RuleIdentifier[2]) {
865 default: break;
866 case 'm': // 2 strings to match.
867 if (memcmp(RuleIdentifier.data()+3, "bine_", 5) != 0)
868 break;
869 switch (RuleIdentifier[8]) {
870 default: break;
871 case 'm': // 1 string to match.
872 if (memcmp(RuleIdentifier.data()+9, "inmax_nan", 9) != 0)
873 break;
874 return 165; // "combine_minmax_nan"
875 case 'o': // 1 string to match.
876 if (memcmp(RuleIdentifier.data()+9, "r_s64_s32", 9) != 0)
877 break;
878 return 276; // "combine_or_s64_s32"
879 }
880 break;
881 case 'n': // 2 strings to match.
882 if (memcmp(RuleIdentifier.data()+3, "stant_fold_f", 12) != 0)
883 break;
884 switch (RuleIdentifier[15]) {
885 default: break;
886 case 'a': // 1 string to match.
887 if (memcmp(RuleIdentifier.data()+16, "bs", 2) != 0)
888 break;
889 return 146; // "constant_fold_fabs"
890 case 'n': // 1 string to match.
891 if (memcmp(RuleIdentifier.data()+16, "eg", 2) != 0)
892 break;
893 return 145; // "constant_fold_fneg"
894 }
895 break;
896 }
897 break;
898 case 'e': // 1 string to match.
899 if (memcmp(RuleIdentifier.data()+1, "xpand_const_fpowi", 17) != 0)
900 break;
901 return 166; // "expand_const_fpowi"
902 case 'f': // 1 string to match.
903 if (memcmp(RuleIdentifier.data()+1, "ptrunc_fpext_fold", 17) != 0)
904 break;
905 return 107; // "fptrunc_fpext_fold"
906 case 's': // 2 strings to match.
907 if (RuleIdentifier[1] != 'e')
908 break;
909 switch (RuleIdentifier[2]) {
910 default: break;
911 case 'l': // 1 string to match.
912 if (memcmp(RuleIdentifier.data()+3, "ect_of_truncate", 15) != 0)
913 break;
914 return 62; // "select_of_truncate"
915 case 'x': // 1 string to match.
916 if (memcmp(RuleIdentifier.data()+3, "t_inreg_of_load", 15) != 0)
917 break;
918 return 127; // "sext_inreg_of_load"
919 }
920 break;
921 case 't': // 1 string to match.
922 if (memcmp(RuleIdentifier.data()+1, "runcate_of_anyext", 17) != 0)
923 break;
924 return 51; // "truncate_of_anyext"
925 }
926 break;
927 case 19: // 19 strings to match.
928 switch (RuleIdentifier[0]) {
929 default: break;
930 case 'A': // 1 string to match.
931 if (memcmp(RuleIdentifier.data()+1, "MinusBMinusCMinusC", 18) != 0)
932 break;
933 return 1; // "AMinusBMinusCMinusC"
934 case 'b': // 1 string to match.
935 if (memcmp(RuleIdentifier.data()+1, "inop_right_to_zero", 18) != 0)
936 break;
937 return 94; // "binop_right_to_zero"
938 case 'c': // 7 strings to match.
939 if (memcmp(RuleIdentifier.data()+1, "onst", 4) != 0)
940 break;
941 switch (RuleIdentifier[5]) {
942 default: break;
943 case '_': // 1 string to match.
944 if (memcmp(RuleIdentifier.data()+6, "ptradd_to_i2p", 13) != 0)
945 break;
946 return 160; // "const_ptradd_to_i2p"
947 case 'a': // 6 strings to match.
948 if (memcmp(RuleIdentifier.data()+6, "nt_fold_", 8) != 0)
949 break;
950 switch (RuleIdentifier[14]) {
951 default: break;
952 case 'b': // 1 string to match.
953 if (memcmp(RuleIdentifier.data()+15, "inop", 4) != 0)
954 break;
955 return 187; // "constant_fold_binop"
956 case 'f': // 5 strings to match.
957 switch (RuleIdentifier[15]) {
958 default: break;
959 case 'c': // 1 string to match.
960 if (memcmp(RuleIdentifier.data()+16, "eil", 3) != 0)
961 break;
962 return 151; // "constant_fold_fceil"
963 case 'l': // 1 string to match.
964 if (memcmp(RuleIdentifier.data()+16, "og2", 3) != 0)
965 break;
966 return 148; // "constant_fold_flog2"
967 case 'p': // 1 string to match.
968 if (memcmp(RuleIdentifier.data()+16, "ext", 3) != 0)
969 break;
970 return 150; // "constant_fold_fpext"
971 case 'r': // 1 string to match.
972 if (memcmp(RuleIdentifier.data()+16, "int", 3) != 0)
973 break;
974 return 156; // "constant_fold_frint"
975 case 's': // 1 string to match.
976 if (memcmp(RuleIdentifier.data()+16, "qrt", 3) != 0)
977 break;
978 return 147; // "constant_fold_fsqrt"
979 }
980 break;
981 }
982 break;
983 }
984 break;
985 case 'e': // 1 string to match.
986 if (memcmp(RuleIdentifier.data()+1, "xtend_through_phis", 18) != 0)
987 break;
988 return 111; // "extend_through_phis"
989 case 'i': // 1 string to match.
990 if (memcmp(RuleIdentifier.data()+1, "nteger_of_truncate", 18) != 0)
991 break;
992 return 70; // "integer_of_truncate"
993 case 'm': // 1 string to match.
994 if (memcmp(RuleIdentifier.data()+1, "erge_of_x_and_zero", 18) != 0)
995 break;
996 return 243; // "merge_of_x_and_zero"
997 case 'p': // 1 string to match.
998 if (memcmp(RuleIdentifier.data()+1, "tr_add_immed_chain", 18) != 0)
999 break;
1000 return 117; // "ptr_add_immed_chain"
1001 case 'r': // 2 strings to match.
1002 switch (RuleIdentifier[1]) {
1003 default: break;
1004 case 'e': // 1 string to match.
1005 if (memcmp(RuleIdentifier.data()+2, "assoc_comm_binops", 17) != 0)
1006 break;
1007 return 116; // "reassoc_comm_binops"
1008 case 'i': // 1 string to match.
1009 if (memcmp(RuleIdentifier.data()+2, "ght_identity_zero", 17) != 0)
1010 break;
1011 return 90; // "right_identity_zero"
1012 }
1013 break;
1014 case 's': // 3 strings to match.
1015 switch (RuleIdentifier[1]) {
1016 default: break;
1017 case 'e': // 1 string to match.
1018 if (memcmp(RuleIdentifier.data()+2, "lect_constant_cmp", 17) != 0)
1019 break;
1020 return 131; // "select_constant_cmp"
1021 case 'i': // 2 strings to match.
1022 if (memcmp(RuleIdentifier.data()+2, "mplify_", 7) != 0)
1023 break;
1024 switch (RuleIdentifier[9]) {
1025 default: break;
1026 case 'a': // 1 string to match.
1027 if (memcmp(RuleIdentifier.data()+10, "dd_to_sub", 9) != 0)
1028 break;
1029 return 112; // "simplify_add_to_sub"
1030 case 'n': // 1 string to match.
1031 if (memcmp(RuleIdentifier.data()+10, "eg_minmax", 9) != 0)
1032 break;
1033 return 226; // "simplify_neg_minmax"
1034 }
1035 break;
1036 }
1037 break;
1038 case 'u': // 1 string to match.
1039 if (memcmp(RuleIdentifier.data()+1, "nary_undef_to_zero", 18) != 0)
1040 break;
1041 return 82; // "unary_undef_to_zero"
1042 }
1043 break;
1044 case 20: // 9 strings to match.
1045 switch (RuleIdentifier[0]) {
1046 default: break;
1047 case 'a': // 1 string to match.
1048 if (memcmp(RuleIdentifier.data()+1, "nd_or_disjoint_mask", 19) != 0)
1049 break;
1050 return 195; // "and_or_disjoint_mask"
1051 case 'b': // 1 string to match.
1052 if (memcmp(RuleIdentifier.data()+1, "itcast_bitcast_fold", 19) != 0)
1053 break;
1054 return 105; // "bitcast_bitcast_fold"
1055 case 'c': // 1 string to match.
1056 if (memcmp(RuleIdentifier.data()+1, "onstant_fold_ffloor", 19) != 0)
1057 break;
1058 return 152; // "constant_fold_ffloor"
1059 case 'm': // 1 string to match.
1060 if (memcmp(RuleIdentifier.data()+1, "erge_of_x_and_undef", 19) != 0)
1061 break;
1062 return 242; // "merge_of_x_and_undef"
1063 case 'o': // 1 string to match.
1064 if (memcmp(RuleIdentifier.data()+1, "r_and_xor_to_xor_or", 19) != 0)
1065 break;
1066 return 221; // "or_and_xor_to_xor_or"
1067 case 'r': // 2 strings to match.
1068 if (memcmp(RuleIdentifier.data()+1, "edu", 3) != 0)
1069 break;
1070 switch (RuleIdentifier[4]) {
1071 default: break;
1072 case 'c': // 1 string to match.
1073 if (memcmp(RuleIdentifier.data()+5, "e_shl_of_extend", 15) != 0)
1074 break;
1075 return 128; // "reduce_shl_of_extend"
1076 case 'n': // 1 string to match.
1077 if (memcmp(RuleIdentifier.data()+5, "dant_sext_inreg", 15) != 0)
1078 break;
1079 return 137; // "redundant_sext_inreg"
1080 }
1081 break;
1082 case 'u': // 2 strings to match.
1083 if (RuleIdentifier[1] != 'n')
1084 break;
1085 switch (RuleIdentifier[2]) {
1086 default: break;
1087 case 'a': // 1 string to match.
1088 if (memcmp(RuleIdentifier.data()+3, "ry_undef_to_undef", 17) != 0)
1089 break;
1090 return 83; // "unary_undef_to_undef"
1091 case 'm': // 1 string to match.
1092 if (memcmp(RuleIdentifier.data()+3, "erge_zext_to_zext", 17) != 0)
1093 break;
1094 return 241; // "unmerge_zext_to_zext"
1095 }
1096 break;
1097 }
1098 break;
1099 case 21: // 11 strings to match.
1100 switch (RuleIdentifier[0]) {
1101 default: break;
1102 case 'a': // 1 string to match.
1103 if (memcmp(RuleIdentifier.data()+1, "nd_xor_or_to_xor_and", 20) != 0)
1104 break;
1105 return 223; // "and_xor_or_to_xor_and"
1106 case 'c': // 4 strings to match.
1107 if (RuleIdentifier[1] != 'o')
1108 break;
1109 switch (RuleIdentifier[2]) {
1110 default: break;
1111 case 'm': // 2 strings to match.
1112 if (memcmp(RuleIdentifier.data()+3, "bine_", 5) != 0)
1113 break;
1114 switch (RuleIdentifier[8]) {
1115 default: break;
1116 case 'b': // 1 string to match.
1117 if (memcmp(RuleIdentifier.data()+9, "uild_unmerge", 12) != 0)
1118 break;
1119 return 244; // "combine_build_unmerge"
1120 case 'c': // 1 string to match.
1121 if (memcmp(RuleIdentifier.data()+9, "oncat_vector", 12) != 0)
1122 break;
1123 return 227; // "combine_concat_vector"
1124 }
1125 break;
1126 case 'n': // 2 strings to match.
1127 if (memcmp(RuleIdentifier.data()+3, "stant_fold_", 11) != 0)
1128 break;
1129 switch (RuleIdentifier[14]) {
1130 default: break;
1131 case 'c': // 1 string to match.
1132 if (memcmp(RuleIdentifier.data()+15, "ast_op", 6) != 0)
1133 break;
1134 return 190; // "constant_fold_cast_op"
1135 case 'f': // 1 string to match.
1136 if (memcmp(RuleIdentifier.data()+15, "ptrunc", 6) != 0)
1137 break;
1138 return 149; // "constant_fold_fptrunc"
1139 }
1140 break;
1141 }
1142 break;
1143 case 'f': // 1 string to match.
1144 if (memcmp(RuleIdentifier.data()+1, "div_repeated_divison", 20) != 0)
1145 break;
1146 return 212; // "fdiv_repeated_divison"
1147 case 'i': // 1 string to match.
1148 if (memcmp(RuleIdentifier.data()+1, "nsert_vector_elt_oob", 20) != 0)
1149 break;
1150 return 30; // "insert_vector_elt_oob"
1151 case 'l': // 1 string to match.
1152 if (memcmp(RuleIdentifier.data()+1, "shr_of_trunc_of_lshr", 20) != 0)
1153 break;
1154 return 251; // "lshr_of_trunc_of_lshr"
1155 case 'r': // 1 string to match.
1156 if (memcmp(RuleIdentifier.data()+1, "ight_identity_one_fp", 20) != 0)
1157 break;
1158 return 100; // "right_identity_one_fp"
1159 case 'u': // 2 strings to match.
1160 if (RuleIdentifier[1] != 'n')
1161 break;
1162 switch (RuleIdentifier[2]) {
1163 default: break;
1164 case 'd': // 1 string to match.
1165 if (memcmp(RuleIdentifier.data()+3, "ef_to_negative_one", 18) != 0)
1166 break;
1167 return 79; // "undef_to_negative_one"
1168 case 'm': // 1 string to match.
1169 if (memcmp(RuleIdentifier.data()+3, "erge_dead_to_trunc", 18) != 0)
1170 break;
1171 return 240; // "unmerge_dead_to_trunc"
1172 }
1173 break;
1174 }
1175 break;
1176 case 22: // 14 strings to match.
1177 switch (RuleIdentifier[0]) {
1178 default: break;
1179 case 'c': // 3 strings to match.
1180 if (RuleIdentifier[1] != 'o')
1181 break;
1182 switch (RuleIdentifier[2]) {
1183 default: break;
1184 case 'm': // 2 strings to match.
1185 if (memcmp(RuleIdentifier.data()+3, "bine_shuffle_", 13) != 0)
1186 break;
1187 switch (RuleIdentifier[16]) {
1188 default: break;
1189 case 'c': // 1 string to match.
1190 if (memcmp(RuleIdentifier.data()+17, "oncat", 5) != 0)
1191 break;
1192 return 231; // "combine_shuffle_concat"
1193 case 'v': // 1 string to match.
1194 if (memcmp(RuleIdentifier.data()+17, "ector", 5) != 0)
1195 break;
1196 return 272; // "combine_shuffle_vector"
1197 }
1198 break;
1199 case 'n': // 1 string to match.
1200 if (memcmp(RuleIdentifier.data()+3, "stant_fold_fp_binop", 19) != 0)
1201 break;
1202 return 188; // "constant_fold_fp_binop"
1203 }
1204 break;
1205 case 'f': // 4 strings to match.
1206 switch (RuleIdentifier[1]) {
1207 default: break;
1208 case 'o': // 1 string to match.
1209 if (memcmp(RuleIdentifier.data()+2, "ld_binop_into_select", 20) != 0)
1210 break;
1211 return 204; // "fold_binop_into_select"
1212 case 'u': // 3 strings to match.
1213 if (memcmp(RuleIdentifier.data()+2, "nnel_shift_", 11) != 0)
1214 break;
1215 switch (RuleIdentifier[13]) {
1216 default: break;
1217 case 'l': // 1 string to match.
1218 if (memcmp(RuleIdentifier.data()+14, "eft_zero", 8) != 0)
1219 break;
1220 return 176; // "funnel_shift_left_zero"
1221 case 'o': // 1 string to match.
1222 if (memcmp(RuleIdentifier.data()+14, "vershift", 8) != 0)
1223 break;
1224 return 177; // "funnel_shift_overshift"
1225 case 't': // 1 string to match.
1226 if (memcmp(RuleIdentifier.data()+14, "o_rotate", 8) != 0)
1227 break;
1228 return 174; // "funnel_shift_to_rotate"
1229 }
1230 break;
1231 }
1232 break;
1233 case 'i': // 1 string to match.
1234 if (memcmp(RuleIdentifier.data()+1, "cmp_to_lhs_known_bits", 21) != 0)
1235 break;
1236 return 121; // "icmp_to_lhs_known_bits"
1237 case 'm': // 1 string to match.
1238 if (memcmp(RuleIdentifier.data()+1, "atch_subo_no_overflow", 21) != 0)
1239 break;
1240 return 246; // "match_subo_no_overflow"
1241 case 'p': // 1 string to match.
1242 if (memcmp(RuleIdentifier.data()+1, "ropagate_undef_any_op", 21) != 0)
1243 break;
1244 return 84; // "propagate_undef_any_op"
1245 case 'r': // 2 strings to match.
1246 switch (RuleIdentifier[1]) {
1247 default: break;
1248 case 'e': // 1 string to match.
1249 if (memcmp(RuleIdentifier.data()+2, "dundant_neg_operands", 20) != 0)
1250 break;
1251 return 194; // "redundant_neg_operands"
1252 case 'i': // 1 string to match.
1253 if (memcmp(RuleIdentifier.data()+2, "ght_identity_one_int", 20) != 0)
1254 break;
1255 return 99; // "right_identity_one_int"
1256 }
1257 break;
1258 case 's': // 1 string to match.
1259 if (memcmp(RuleIdentifier.data()+1, "hl_ashr_to_sext_inreg", 21) != 0)
1260 break;
1261 return 125; // "shl_ashr_to_sext_inreg"
1262 case 't': // 1 string to match.
1263 if (memcmp(RuleIdentifier.data()+1, "runc_buildvector_fold", 21) != 0)
1264 break;
1265 return 103; // "trunc_buildvector_fold"
1266 }
1267 break;
1268 case 23: // 6 strings to match.
1269 switch (RuleIdentifier[0]) {
1270 default: break;
1271 case 'b': // 1 string to match.
1272 if (memcmp(RuleIdentifier.data()+1, "uildvector_of_truncate", 22) != 0)
1273 break;
1274 return 63; // "buildvector_of_truncate"
1275 case 'f': // 1 string to match.
1276 if (memcmp(RuleIdentifier.data()+1, "unnel_shift_right_zero", 22) != 0)
1277 break;
1278 return 175; // "funnel_shift_right_zero"
1279 case 'i': // 2 strings to match.
1280 if (memcmp(RuleIdentifier.data()+1, "tof_const_zero_fold_", 20) != 0)
1281 break;
1282 switch (RuleIdentifier[21]) {
1283 default: break;
1284 case 's': // 1 string to match.
1285 if (RuleIdentifier[22] != 'i')
1286 break;
1287 return 158; // "itof_const_zero_fold_si"
1288 case 'u': // 1 string to match.
1289 if (RuleIdentifier[22] != 'i')
1290 break;
1291 return 159; // "itof_const_zero_fold_ui"
1292 }
1293 break;
1294 case 'p': // 1 string to match.
1295 if (memcmp(RuleIdentifier.data()+1, "ropagate_undef_all_ops", 22) != 0)
1296 break;
1297 return 85; // "propagate_undef_all_ops"
1298 case 't': // 1 string to match.
1299 if (memcmp(RuleIdentifier.data()+1, "runcusatu_to_fptouisat", 22) != 0)
1300 break;
1301 return 250; // "truncusatu_to_fptouisat"
1302 }
1303 break;
1304 case 24: // 10 strings to match.
1305 switch (RuleIdentifier[0]) {
1306 default: break;
1307 case 'b': // 1 string to match.
1308 if (memcmp(RuleIdentifier.data()+1, "inop_left_undef_to_zero", 23) != 0)
1309 break;
1310 return 80; // "binop_left_undef_to_zero"
1311 case 'c': // 4 strings to match.
1312 switch (RuleIdentifier[1]) {
1313 default: break;
1314 case 'o': // 1 string to match.
1315 if (memcmp(RuleIdentifier.data()+2, "nstant_fold_fnearbyint", 22) != 0)
1316 break;
1317 return 157; // "constant_fold_fnearbyint"
1318 case 't': // 3 strings to match.
1319 switch (RuleIdentifier[2]) {
1320 default: break;
1321 case 'l': // 2 strings to match.
1322 if (memcmp(RuleIdentifier.data()+3, "z_", 2) != 0)
1323 break;
1324 switch (RuleIdentifier[5]) {
1325 default: break;
1326 case 't': // 1 string to match.
1327 if (memcmp(RuleIdentifier.data()+6, "o_ctlz_zero_poison", 18) != 0)
1328 break;
1329 return 254; // "ctlz_to_ctlz_zero_poison"
1330 case 'z': // 1 string to match.
1331 if (memcmp(RuleIdentifier.data()+6, "ero_poison_to_ctls", 18) != 0)
1332 break;
1333 return 253; // "ctlz_zero_poison_to_ctls"
1334 }
1335 break;
1336 case 't': // 1 string to match.
1337 if (memcmp(RuleIdentifier.data()+3, "z_to_cttz_zero_poison", 21) != 0)
1338 break;
1339 return 255; // "cttz_to_cttz_zero_poison"
1340 }
1341 break;
1342 }
1343 break;
1344 case 'm': // 1 string to match.
1345 if (memcmp(RuleIdentifier.data()+1, "atch_extract_of_element", 23) != 0)
1346 break;
1347 return 29; // "match_extract_of_element"
1348 case 'n': // 1 string to match.
1349 if (memcmp(RuleIdentifier.data()+1, "arrow_binop_feeding_and", 23) != 0)
1350 break;
1351 return 129; // "narrow_binop_feeding_and"
1352 case 's': // 2 strings to match.
1353 if (memcmp(RuleIdentifier.data()+1, "ext_inreg_", 10) != 0)
1354 break;
1355 switch (RuleIdentifier[11]) {
1356 default: break;
1357 case 'o': // 1 string to match.
1358 if (memcmp(RuleIdentifier.data()+12, "f_sext_inreg", 12) != 0)
1359 break;
1360 return 59; // "sext_inreg_of_sext_inreg"
1361 case 't': // 1 string to match.
1362 if (memcmp(RuleIdentifier.data()+12, "o_zext_inreg", 12) != 0)
1363 break;
1364 return 141; // "sext_inreg_to_zext_inreg"
1365 }
1366 break;
1367 case 'x': // 1 string to match.
1368 if (memcmp(RuleIdentifier.data()+1, "or_of_and_with_same_reg", 23) != 0)
1369 break;
1370 return 167; // "xor_of_and_with_same_reg"
1371 }
1372 break;
1373 case 25: // 7 strings to match.
1374 switch (RuleIdentifier[0]) {
1375 default: break;
1376 case 'b': // 3 strings to match.
1377 switch (RuleIdentifier[1]) {
1378 default: break;
1379 case 'i': // 2 strings to match.
1380 if (memcmp(RuleIdentifier.data()+2, "tfield_extract_from_", 20) != 0)
1381 break;
1382 switch (RuleIdentifier[22]) {
1383 default: break;
1384 case 'a': // 1 string to match.
1385 if (memcmp(RuleIdentifier.data()+23, "nd", 2) != 0)
1386 break;
1387 return 184; // "bitfield_extract_from_and"
1388 case 's': // 1 string to match.
1389 if (memcmp(RuleIdentifier.data()+23, "hr", 2) != 0)
1390 break;
1391 return 185; // "bitfield_extract_from_shr"
1392 }
1393 break;
1394 case 'u': // 1 string to match.
1395 if (memcmp(RuleIdentifier.data()+2, "ildvector_identity_fold", 23) != 0)
1396 break;
1397 return 102; // "buildvector_identity_fold"
1398 }
1399 break;
1400 case 'c': // 1 string to match.
1401 if (memcmp(RuleIdentifier.data()+1, "ombine_shuffle_undef_rhs", 24) != 0)
1402 break;
1403 return 232; // "combine_shuffle_undef_rhs"
1404 case 'e': // 1 string to match.
1405 if (memcmp(RuleIdentifier.data()+1, "xtract_vec_elt_build_vec", 24) != 0)
1406 break;
1407 return 72; // "extract_vec_elt_build_vec"
1408 case 'n': // 1 string to match.
1409 if (memcmp(RuleIdentifier.data()+1, "eg_and_one_to_sext_inreg", 24) != 0)
1410 break;
1411 return 126; // "neg_and_one_to_sext_inreg"
1412 case 'r': // 1 string to match.
1413 if (memcmp(RuleIdentifier.data()+1, "ight_identity_neg_one_fp", 24) != 0)
1414 break;
1415 return 110; // "right_identity_neg_one_fp"
1416 }
1417 break;
1418 case 26: // 6 strings to match.
1419 switch (RuleIdentifier[0]) {
1420 default: break;
1421 case 'b': // 2 strings to match.
1422 if (RuleIdentifier[1] != 'i')
1423 break;
1424 switch (RuleIdentifier[2]) {
1425 default: break;
1426 case 'n': // 1 string to match.
1427 if (memcmp(RuleIdentifier.data()+3, "op_right_undef_to_undef", 23) != 0)
1428 break;
1429 return 81; // "binop_right_undef_to_undef"
1430 case 't': // 1 string to match.
1431 if (memcmp(RuleIdentifier.data()+3, "cast_bitcast_to_bitcast", 23) != 0)
1432 break;
1433 return 106; // "bitcast_bitcast_to_bitcast"
1434 }
1435 break;
1436 case 'c': // 2 strings to match.
1437 if (RuleIdentifier[1] != 'o')
1438 break;
1439 switch (RuleIdentifier[2]) {
1440 default: break;
1441 case 'm': // 1 string to match.
1442 if (memcmp(RuleIdentifier.data()+3, "mute_fp_constant_to_rhs", 23) != 0)
1443 break;
1444 return 217; // "commute_fp_constant_to_rhs"
1445 case 'n': // 1 string to match.
1446 if (memcmp(RuleIdentifier.data()+3, "stant_fold_unary_int_op", 23) != 0)
1447 break;
1448 return 191; // "constant_fold_unary_int_op"
1449 }
1450 break;
1451 case 'f': // 1 string to match.
1452 if (memcmp(RuleIdentifier.data()+1, "unnel_shift_from_or_shift", 25) != 0)
1453 break;
1454 return 173; // "funnel_shift_from_or_shift"
1455 case 'r': // 1 string to match.
1456 if (memcmp(RuleIdentifier.data()+1, "ight_identity_neg_zero_fp", 25) != 0)
1457 break;
1458 return 108; // "right_identity_neg_zero_fp"
1459 }
1460 break;
1461 case 27: // 6 strings to match.
1462 switch (RuleIdentifier[0]) {
1463 default: break;
1464 case 'c': // 2 strings to match.
1465 if (memcmp(RuleIdentifier.data()+1, "om", 2) != 0)
1466 break;
1467 switch (RuleIdentifier[3]) {
1468 default: break;
1469 case 'b': // 1 string to match.
1470 if (memcmp(RuleIdentifier.data()+4, "ine_use_vector_truncate", 23) != 0)
1471 break;
1472 return 234; // "combine_use_vector_truncate"
1473 case 'm': // 1 string to match.
1474 if (memcmp(RuleIdentifier.data()+4, "ute_int_constant_to_rhs", 23) != 0)
1475 break;
1476 return 216; // "commute_int_constant_to_rhs"
1477 }
1478 break;
1479 case 'd': // 1 string to match.
1480 if (memcmp(RuleIdentifier.data()+1, "ouble_icmp_zero_or_combine", 26) != 0)
1481 break;
1482 return 123; // "double_icmp_zero_or_combine"
1483 case 'r': // 1 string to match.
1484 if (memcmp(RuleIdentifier.data()+1, "edundant_binop_in_equality", 26) != 0)
1485 break;
1486 return 124; // "redundant_binop_in_equality"
1487 case 't': // 1 string to match.
1488 if (memcmp(RuleIdentifier.data()+1, "runc_lshr_buildvector_fold", 26) != 0)
1489 break;
1490 return 104; // "trunc_lshr_buildvector_fold"
1491 case 'u': // 1 string to match.
1492 if (memcmp(RuleIdentifier.data()+1, "nmerge_anyext_build_vector", 26) != 0)
1493 break;
1494 return 235; // "unmerge_anyext_build_vector"
1495 }
1496 break;
1497 case 28: // 5 strings to match.
1498 switch (RuleIdentifier[0]) {
1499 default: break;
1500 case 'c': // 1 string to match.
1501 if (memcmp(RuleIdentifier.data()+1, "ombine_or_s64_with_s32_mask", 27) != 0)
1502 break;
1503 return 274; // "combine_or_s64_with_s32_mask"
1504 case 'd': // 1 string to match.
1505 if (memcmp(RuleIdentifier.data()+1, "ouble_icmp_zero_and_combine", 27) != 0)
1506 break;
1507 return 122; // "double_icmp_zero_and_combine"
1508 case 'o': // 1 string to match.
1509 if (memcmp(RuleIdentifier.data()+1, "pt_brcond_by_inverting_cond", 27) != 0)
1510 break;
1511 return 144; // "opt_brcond_by_inverting_cond"
1512 case 'p': // 1 string to match.
1513 if (memcmp(RuleIdentifier.data()+1, "ropagate_undef_shuffle_mask", 27) != 0)
1514 break;
1515 return 86; // "propagate_undef_shuffle_mask"
1516 case 's': // 1 string to match.
1517 if (memcmp(RuleIdentifier.data()+1, "hift_of_shifted_logic_chain", 27) != 0)
1518 break;
1519 return 170; // "shift_of_shifted_logic_chain"
1520 }
1521 break;
1522 case 29: // 7 strings to match.
1523 switch (RuleIdentifier[0]) {
1524 default: break;
1525 case 'b': // 1 string to match.
1526 if (memcmp(RuleIdentifier.data()+1, "itfield_extract_from_shr_and", 28) != 0)
1527 break;
1528 return 186; // "bitfield_extract_from_shr_and"
1529 case 'c': // 5 strings to match.
1530 if (RuleIdentifier[1] != 'o')
1531 break;
1532 switch (RuleIdentifier[2]) {
1533 default: break;
1534 case 'm': // 3 strings to match.
1535 if (memcmp(RuleIdentifier.data()+3, "bine_", 5) != 0)
1536 break;
1537 switch (RuleIdentifier[8]) {
1538 default: break;
1539 case 'a': // 1 string to match.
1540 if (memcmp(RuleIdentifier.data()+9, "nd_s64_with_s32_mask", 20) != 0)
1541 break;
1542 return 275; // "combine_and_s64_with_s32_mask"
1543 case 'e': // 1 string to match.
1544 if (memcmp(RuleIdentifier.data()+9, "xtracted_vector_load", 20) != 0)
1545 break;
1546 return 76; // "combine_extracted_vector_load"
1547 case 's': // 1 string to match.
1548 if (memcmp(RuleIdentifier.data()+9, "huffle_disjoint_mask", 20) != 0)
1549 break;
1550 return 233; // "combine_shuffle_disjoint_mask"
1551 }
1552 break;
1553 case 'n': // 2 strings to match.
1554 if (memcmp(RuleIdentifier.data()+3, "stant_fold_intrinsic_", 21) != 0)
1555 break;
1556 switch (RuleIdentifier[24]) {
1557 default: break;
1558 case 'r': // 1 string to match.
1559 if (memcmp(RuleIdentifier.data()+25, "ound", 4) != 0)
1560 break;
1561 return 154; // "constant_fold_intrinsic_round"
1562 case 't': // 1 string to match.
1563 if (memcmp(RuleIdentifier.data()+25, "runc", 4) != 0)
1564 break;
1565 return 153; // "constant_fold_intrinsic_trunc"
1566 }
1567 break;
1568 }
1569 break;
1570 case 'i': // 1 string to match.
1571 if (memcmp(RuleIdentifier.data()+1, "cmp_to_true_false_known_bits", 28) != 0)
1572 break;
1573 return 120; // "icmp_to_true_false_known_bits"
1574 }
1575 break;
1576 case 30: // 2 strings to match.
1577 switch (RuleIdentifier[0]) {
1578 default: break;
1579 case 'f': // 1 string to match.
1580 if (memcmp(RuleIdentifier.data()+1, "reeze_of_non_undef_non_poison", 29) != 0)
1581 break;
1582 return 47; // "freeze_of_non_undef_non_poison"
1583 case 'r': // 1 string to match.
1584 if (memcmp(RuleIdentifier.data()+1, "ight_identity_neg_zero_fp_nsz", 29) != 0)
1585 break;
1586 return 109; // "right_identity_neg_zero_fp_nsz"
1587 }
1588 break;
1589 case 31: // 2 strings to match.
1590 if (memcmp(RuleIdentifier.data()+0, "insert_vector_element_", 22) != 0)
1591 break;
1592 switch (RuleIdentifier[22]) {
1593 default: break;
1594 case 'e': // 1 string to match.
1595 if (memcmp(RuleIdentifier.data()+23, "lt_undef", 8) != 0)
1596 break;
1597 return 28; // "insert_vector_element_elt_undef"
1598 case 'i': // 1 string to match.
1599 if (memcmp(RuleIdentifier.data()+23, "dx_undef", 8) != 0)
1600 break;
1601 return 27; // "insert_vector_element_idx_undef"
1602 }
1603 break;
1604 case 32: // 4 strings to match.
1605 switch (RuleIdentifier[0]) {
1606 default: break;
1607 case 'b': // 1 string to match.
1608 if (memcmp(RuleIdentifier.data()+1, "itfield_extract_from_sext_inreg", 31) != 0)
1609 break;
1610 return 183; // "bitfield_extract_from_sext_inreg"
1611 case 'c': // 2 strings to match.
1612 if (memcmp(RuleIdentifier.data()+1, "ombine_f", 8) != 0)
1613 break;
1614 switch (RuleIdentifier[9]) {
1615 default: break;
1616 case 'a': // 1 string to match.
1617 if (memcmp(RuleIdentifier.data()+10, "dd_fmul_to_fmad_or_fma", 22) != 0)
1618 break;
1619 return 196; // "combine_fadd_fmul_to_fmad_or_fma"
1620 case 's': // 1 string to match.
1621 if (memcmp(RuleIdentifier.data()+10, "ub_fmul_to_fmad_or_fma", 22) != 0)
1622 break;
1623 return 200; // "combine_fsub_fmul_to_fmad_or_fma"
1624 }
1625 break;
1626 case 'e': // 1 string to match.
1627 if (memcmp(RuleIdentifier.data()+1, "xtract_vector_element_not_const", 31) != 0)
1628 break;
1629 return 31; // "extract_vector_element_not_const"
1630 }
1631 break;
1632 case 33: // 1 string to match.
1633 if (memcmp(RuleIdentifier.data()+0, "constant_fold_intrinsic_roundeven", 33) != 0)
1634 break;
1635 return 155; // "constant_fold_intrinsic_roundeven"
1636 case 34: // 2 strings to match.
1637 switch (RuleIdentifier[0]) {
1638 default: break;
1639 case 'c': // 1 string to match.
1640 if (memcmp(RuleIdentifier.data()+1, "ombine_fmul_with_select_to_fldexp", 33) != 0)
1641 break;
1642 return 268; // "combine_fmul_with_select_to_fldexp"
1643 case 'e': // 1 string to match.
1644 if (memcmp(RuleIdentifier.data()+1, "xtract_all_elts_from_build_vector", 33) != 0)
1645 break;
1646 return 73; // "extract_all_elts_from_build_vector"
1647 }
1648 break;
1649 case 35: // 1 string to match.
1650 if (memcmp(RuleIdentifier.data()+0, "extract_vector_element_build_vector", 35) != 0)
1651 break;
1652 return 33; // "extract_vector_element_build_vector"
1653 case 36: // 4 strings to match.
1654 switch (RuleIdentifier[0]) {
1655 default: break;
1656 case 'c': // 2 strings to match.
1657 if (memcmp(RuleIdentifier.data()+1, "ombine_", 7) != 0)
1658 break;
1659 switch (RuleIdentifier[8]) {
1660 default: break;
1661 case 'f': // 1 string to match.
1662 if (memcmp(RuleIdentifier.data()+9, "add_fma_fmul_to_fmad_or_fma", 27) != 0)
1663 break;
1664 return 198; // "combine_fadd_fma_fmul_to_fmad_or_fma"
1665 case 'i': // 1 string to match.
1666 if (memcmp(RuleIdentifier.data()+9, "nsert_vec_elts_build_vector", 27) != 0)
1667 break;
1668 return 71; // "combine_insert_vec_elts_build_vector"
1669 }
1670 break;
1671 case 'i': // 1 string to match.
1672 if (memcmp(RuleIdentifier.data()+1, "nsert_extract_vec_elt_out_of_bounds", 35) != 0)
1673 break;
1674 return 88; // "insert_extract_vec_elt_out_of_bounds"
1675 case 'm': // 1 string to match.
1676 if (memcmp(RuleIdentifier.data()+1, "atch_extract_of_element_undef_index", 35) != 0)
1677 break;
1678 return 26; // "match_extract_of_element_undef_index"
1679 }
1680 break;
1681 case 37: // 4 strings to match.
1682 switch (RuleIdentifier[0]) {
1683 default: break;
1684 case 'c': // 1 string to match.
1685 if (memcmp(RuleIdentifier.data()+1, "ombine_fsub_fneg_fmul_to_fmad_or_fma", 36) != 0)
1686 break;
1687 return 201; // "combine_fsub_fneg_fmul_to_fmad_or_fma"
1688 case 'e': // 1 string to match.
1689 if (memcmp(RuleIdentifier.data()+1, "xtract_vector_element_shuffle_vector", 36) != 0)
1690 break;
1691 return 41; // "extract_vector_element_shuffle_vector"
1692 case 'h': // 1 string to match.
1693 if (memcmp(RuleIdentifier.data()+1, "oist_logic_op_with_same_opcode_hands", 36) != 0)
1694 break;
1695 return 113; // "hoist_logic_op_with_same_opcode_hands"
1696 case 'm': // 1 string to match.
1697 if (memcmp(RuleIdentifier.data()+1, "atch_extract_of_element_undef_vector", 36) != 0)
1698 break;
1699 return 25; // "match_extract_of_element_undef_vector"
1700 }
1701 break;
1702 case 38: // 3 strings to match.
1703 if (memcmp(RuleIdentifier.data()+0, "combine_", 8) != 0)
1704 break;
1705 switch (RuleIdentifier[8]) {
1706 default: break;
1707 case 'f': // 2 strings to match.
1708 switch (RuleIdentifier[9]) {
1709 default: break;
1710 case 'a': // 1 string to match.
1711 if (memcmp(RuleIdentifier.data()+10, "dd_fpext_fmul_to_fmad_or_fma", 28) != 0)
1712 break;
1713 return 197; // "combine_fadd_fpext_fmul_to_fmad_or_fma"
1714 case 's': // 1 string to match.
1715 if (memcmp(RuleIdentifier.data()+10, "ub_fpext_fmul_to_fmad_or_fma", 28) != 0)
1716 break;
1717 return 202; // "combine_fsub_fpext_fmul_to_fmad_or_fma"
1718 }
1719 break;
1720 case 's': // 1 string to match.
1721 if (memcmp(RuleIdentifier.data()+9, "huffle_vector_to_build_vector", 29) != 0)
1722 break;
1723 return 273; // "combine_shuffle_vector_to_build_vector"
1724 }
1725 break;
1726 case 40: // 1 string to match.
1727 if (memcmp(RuleIdentifier.data()+0, "extract_vector_element_different_indices", 40) != 0)
1728 break;
1729 return 32; // "extract_vector_element_different_indices"
1730 case 42: // 9 strings to match.
1731 switch (RuleIdentifier[0]) {
1732 default: break;
1733 case 'c': // 1 string to match.
1734 if (memcmp(RuleIdentifier.data()+1, "ombine_fadd_fpext_fma_fmul_to_fmad_or_fma", 41) != 0)
1735 break;
1736 return 199; // "combine_fadd_fpext_fma_fmul_to_fmad_or_fma"
1737 case 'e': // 7 strings to match.
1738 if (memcmp(RuleIdentifier.data()+1, "xtract_vector_element_build_vector_trunc", 40) != 0)
1739 break;
1740 switch (RuleIdentifier[41]) {
1741 default: break;
1742 case '2': // 1 string to match.
1743 return 34; // "extract_vector_element_build_vector_trunc2"
1744 case '3': // 1 string to match.
1745 return 35; // "extract_vector_element_build_vector_trunc3"
1746 case '4': // 1 string to match.
1747 return 36; // "extract_vector_element_build_vector_trunc4"
1748 case '5': // 1 string to match.
1749 return 37; // "extract_vector_element_build_vector_trunc5"
1750 case '6': // 1 string to match.
1751 return 38; // "extract_vector_element_build_vector_trunc6"
1752 case '7': // 1 string to match.
1753 return 39; // "extract_vector_element_build_vector_trunc7"
1754 case '8': // 1 string to match.
1755 return 40; // "extract_vector_element_build_vector_trunc8"
1756 }
1757 break;
1758 case 'f': // 1 string to match.
1759 if (memcmp(RuleIdentifier.data()+1, "unnel_shift_or_shift_to_funnel_shift_left", 41) != 0)
1760 break;
1761 return 178; // "funnel_shift_or_shift_to_funnel_shift_left"
1762 }
1763 break;
1764 case 43: // 2 strings to match.
1765 switch (RuleIdentifier[0]) {
1766 default: break;
1767 case 'c': // 1 string to match.
1768 if (memcmp(RuleIdentifier.data()+1, "ombine_fsub_fpext_fneg_fmul_to_fmad_or_fma", 42) != 0)
1769 break;
1770 return 203; // "combine_fsub_fpext_fneg_fmul_to_fmad_or_fma"
1771 case 'f': // 1 string to match.
1772 if (memcmp(RuleIdentifier.data()+1, "unnel_shift_or_shift_to_funnel_shift_right", 42) != 0)
1773 break;
1774 return 179; // "funnel_shift_or_shift_to_funnel_shift_right"
1775 }
1776 break;
1777 case 44: // 1 string to match.
1778 if (memcmp(RuleIdentifier.data()+0, "insert_vector_element_extract_vector_element", 44) != 0)
1779 break;
1780 return 42; // "insert_vector_element_extract_vector_element"
1781 case 46: // 1 string to match.
1782 if (memcmp(RuleIdentifier.data()+0, "push_freeze_to_prevent_poison_from_propagating", 46) != 0)
1783 break;
1784 return 48; // "push_freeze_to_prevent_poison_from_propagating"
1785 }
1786#endif // ifndef NDEBUG
1787
1788 return std::nullopt;
1789}
1790static std::optional<std::pair<uint64_t, uint64_t>> getRuleRangeForIdentifier(StringRef RuleIdentifier) {
1791 std::pair<StringRef, StringRef> RangePair = RuleIdentifier.split('-');
1792 if (!RangePair.second.empty()) {
1793 const auto First = getRuleIdxForIdentifier(RangePair.first);
1794 const auto Last = getRuleIdxForIdentifier(RangePair.second);
1795 if (!First || !Last)
1796 return std::nullopt;
1797 if (First >= Last)
1798 report_fatal_error("Beginning of range should be before end of range");
1799 return {{*First, *Last + 1}};
1800 }
1801 if (RangePair.first == "*") {
1802 return {{0, 277}};
1803 }
1804 const auto I = getRuleIdxForIdentifier(RangePair.first);
1805 if (!I)
1806 return std::nullopt;
1807 return {{*I, *I + 1}};
1808}
1809
1810bool AMDGPUPreLegalizerCombinerImplRuleConfig::setRuleEnabled(StringRef RuleIdentifier) {
1811 auto MaybeRange = getRuleRangeForIdentifier(RuleIdentifier);
1812 if (!MaybeRange)
1813 return false;
1814 for (auto I = MaybeRange->first; I < MaybeRange->second; ++I)
1815 DisabledRules.reset(I);
1816 return true;
1817}
1818
1819bool AMDGPUPreLegalizerCombinerImplRuleConfig::setRuleDisabled(StringRef RuleIdentifier) {
1820 auto MaybeRange = getRuleRangeForIdentifier(RuleIdentifier);
1821 if (!MaybeRange)
1822 return false;
1823 for (auto I = MaybeRange->first; I < MaybeRange->second; ++I)
1824 DisabledRules.set(I);
1825 return true;
1826}
1827
1828static std::vector<std::string> AMDGPUPreLegalizerCombinerOption;
1829static cl::list<std::string> AMDGPUPreLegalizerCombinerDisableOption(
1830 "amdgpuprelegalizercombiner-disable-rule",
1831 cl::desc("Disable one or more combiner rules temporarily in the AMDGPUPreLegalizerCombiner pass"),
1832 cl::CommaSeparated,
1833 cl::Hidden,
1834 cl::cat(GICombinerOptionCategory),
1835 cl::callback([](const std::string &Str) {
1836 AMDGPUPreLegalizerCombinerOption.push_back(Str);
1837 }));
1838static cl::list<std::string> AMDGPUPreLegalizerCombinerOnlyEnableOption(
1839 "amdgpuprelegalizercombiner-only-enable-rule",
1840 cl::desc("Disable all rules in the AMDGPUPreLegalizerCombiner pass then re-enable the specified ones"),
1841 cl::Hidden,
1842 cl::cat(GICombinerOptionCategory),
1843 cl::callback([](const std::string &CommaSeparatedArg) {
1844 StringRef Str = CommaSeparatedArg;
1845 AMDGPUPreLegalizerCombinerOption.push_back("*");
1846 do {
1847 auto X = Str.split(",");
1848 AMDGPUPreLegalizerCombinerOption.push_back(("!" + X.first).str());
1849 Str = X.second;
1850 } while (!Str.empty());
1851 }));
1852
1853
1854bool AMDGPUPreLegalizerCombinerImplRuleConfig::isRuleEnabled(unsigned RuleID) const {
1855 return !DisabledRules.test(RuleID);
1856}
1857bool AMDGPUPreLegalizerCombinerImplRuleConfig::parseCommandLineOption() {
1858 for (StringRef Identifier : AMDGPUPreLegalizerCombinerOption) {
1859 bool Enabled = Identifier.consume_front("!");
1860 if (Enabled && !setRuleEnabled(Identifier))
1861 return false;
1862 if (!Enabled && !setRuleDisabled(Identifier))
1863 return false;
1864 }
1865 return true;
1866}
1867
1868
1869#endif // GET_GICOMBINER_TYPES
1870
1871#ifdef GET_GICOMBINER_TYPES
1872
1873const unsigned MAX_SUBTARGET_PREDICATES = 0;
1874using PredicateBitset = llvm::Bitset<MAX_SUBTARGET_PREDICATES>;
1875
1876#endif // GET_GICOMBINER_TYPES
1877
1878#ifdef GET_GICOMBINER_CLASS_MEMBERS
1879
1880 bool canMatchOpcode(unsigned Opc) const override;
1881
1882#endif // GET_GICOMBINER_CLASS_MEMBERS
1883
1884#ifdef GET_GICOMBINER_CLASS_MEMBERS
1885
1886PredicateBitset AvailableModuleFeatures;
1887mutable PredicateBitset AvailableFunctionFeatures;
1888PredicateBitset getAvailableFeatures() const {
1889 return AvailableModuleFeatures | AvailableFunctionFeatures;
1890}
1891PredicateBitset
1892computeAvailableModuleFeatures(const AMDGPUSubtarget *Subtarget) const;
1893PredicateBitset
1894computeAvailableFunctionFeatures(const AMDGPUSubtarget *Subtarget,
1895 const MachineFunction *MF) const;
1896void setupGeneratedPerFunctionState(MachineFunction &MF) override;
1897
1898#endif // GET_GICOMBINER_CLASS_MEMBERS
1899
1900#ifdef GET_GICOMBINER_CLASS_MEMBERS
1901
1902 mutable MatcherState State;
1903 typedef ComplexRendererFns(AMDGPUPreLegalizerCombinerImpl::*ComplexMatcherMemFn)(MachineOperand &) const;
1904 typedef void(AMDGPUPreLegalizerCombinerImpl::*CustomRendererFn)(MachineInstrBuilder &, const MachineInstr &, int) const;
1905 const ExecInfoTy<PredicateBitset, ComplexMatcherMemFn, CustomRendererFn> ExecInfo;
1906 static AMDGPUPreLegalizerCombinerImpl::ComplexMatcherMemFn ComplexPredicateFns[];
1907 static AMDGPUPreLegalizerCombinerImpl::CustomRendererFn CustomRenderers[];
1908 bool testImmPredicate_I64(unsigned PredicateID, int64_t Imm) const override;
1909 bool testImmPredicate_APInt(unsigned PredicateID, const APInt &Imm) const override;
1910 bool testImmPredicate_APFloat(unsigned PredicateID, const APFloat &Imm) const override;
1911 const uint8_t *getMatchTable() const override;
1912 bool testMIPredicate_MI(unsigned PredicateID, const MachineInstr &MI, const MatcherState &State) const override;
1913 bool testMOPredicate_MO(unsigned PredicateID, const MachineOperand &MO, const MatcherState &State) const override;
1914 bool testSimplePredicate(unsigned PredicateID) const override;
1915 bool runCustomAction(unsigned FnID, const MatcherState &State, NewMIVector &OutMIs) const override;
1916
1917#endif // GET_GICOMBINER_CLASS_MEMBERS
1918
1919#ifdef GET_GICOMBINER_IMPL
1920
1921// LLT Objects.
1922enum {
1923 GILLT_i32,
1924 GILLT_i64,
1925};
1926const static size_t NumTypeObjects = 2;
1927const static LLT TypeObjects[] = {
1928 LLT(LLT::Kind::INTEGER, ElementCount::getFixed(0), 32),
1929 LLT(LLT::Kind::INTEGER, ElementCount::getFixed(0), 64),
1930};
1931
1932// Bits for subtarget features that participate in instruction matching.
1933enum SubtargetFeatureBits : uint8_t {
1934};
1935
1936PredicateBitset AMDGPUPreLegalizerCombinerImpl::
1937computeAvailableModuleFeatures(const AMDGPUSubtarget *Subtarget) const {
1938 PredicateBitset Features{};
1939 return Features;
1940}
1941
1942void AMDGPUPreLegalizerCombinerImpl::setupGeneratedPerFunctionState(MachineFunction &MF) {
1943 AvailableFunctionFeatures = computeAvailableFunctionFeatures((const AMDGPUSubtarget *)&MF.getSubtarget(), &MF);
1944}
1945PredicateBitset AMDGPUPreLegalizerCombinerImpl::
1946computeAvailableFunctionFeatures(const AMDGPUSubtarget *Subtarget, const MachineFunction *MF) const {
1947 PredicateBitset Features{};
1948 return Features;
1949}
1950
1951// Feature bitsets.
1952enum {
1953 GIFBS_Invalid,
1954};
1955constexpr static PredicateBitset FeatureBitsets[] {
1956 {}, // GIFBS_Invalid
1957};
1958
1959// ComplexPattern predicates.
1960enum {
1961 GICP_Invalid,
1962};
1963// See constructor for table contents
1964
1965AMDGPUPreLegalizerCombinerImpl::ComplexMatcherMemFn
1966AMDGPUPreLegalizerCombinerImpl::ComplexPredicateFns[] = {
1967 nullptr, // GICP_Invalid
1968};
1969
1970enum {
1971 GICXXPred_MI_Predicate_GICombiner0 = GICXXPred_Invalid + 1,
1972 GICXXPred_MI_Predicate_GICombiner1,
1973 GICXXPred_MI_Predicate_GICombiner2,
1974 GICXXPred_MI_Predicate_GICombiner3,
1975 GICXXPred_MI_Predicate_GICombiner4,
1976 GICXXPred_MI_Predicate_GICombiner5,
1977 GICXXPred_MI_Predicate_GICombiner6,
1978 GICXXPred_MI_Predicate_GICombiner7,
1979 GICXXPred_MI_Predicate_GICombiner8,
1980 GICXXPred_MI_Predicate_GICombiner9,
1981 GICXXPred_MI_Predicate_GICombiner10,
1982 GICXXPred_MI_Predicate_GICombiner11,
1983 GICXXPred_MI_Predicate_GICombiner12,
1984 GICXXPred_MI_Predicate_GICombiner13,
1985 GICXXPred_MI_Predicate_GICombiner14,
1986 GICXXPred_MI_Predicate_GICombiner15,
1987 GICXXPred_MI_Predicate_GICombiner16,
1988 GICXXPred_MI_Predicate_GICombiner17,
1989 GICXXPred_MI_Predicate_GICombiner18,
1990 GICXXPred_MI_Predicate_GICombiner19,
1991 GICXXPred_MI_Predicate_GICombiner20,
1992 GICXXPred_MI_Predicate_GICombiner21,
1993 GICXXPred_MI_Predicate_GICombiner22,
1994 GICXXPred_MI_Predicate_GICombiner23,
1995 GICXXPred_MI_Predicate_GICombiner24,
1996};
1997bool AMDGPUPreLegalizerCombinerImpl::testMIPredicate_MI(unsigned PredicateID, const MachineInstr & MI, const MatcherState &State) const {
1998 switch (PredicateID) {
1999 case GICXXPred_MI_Predicate_GICombiner0: {
2000 return MRI.hasOneNonDBGUse(State.MIs[0]->getOperand(2).getReg());
2001 }
2002 case GICXXPred_MI_Predicate_GICombiner1: {
2003 return MRI.hasOneNonDBGUse(State.MIs[0]->getOperand(1).getReg());
2004 }
2005 case GICXXPred_MI_Predicate_GICombiner2: {
2006 return isGuaranteedNotToBePoison(State.MIs[0]->getOperand(1).getReg(), MRI);
2007 }
2008 case GICXXPred_MI_Predicate_GICombiner3: {
2009 return isGuaranteedNotToBeUndefOrPoison(State.MIs[0]->getOperand(1).getReg(), MRI);
2010 }
2011 case GICXXPred_MI_Predicate_GICombiner4: {
2012 return Helper.matchConstantFPOp(State.MIs[0]->getOperand(2), 1.0);
2013 }
2014 case GICXXPred_MI_Predicate_GICombiner5: {
2015 return MRI.getType(State.MIs[1]->getOperand(1).getReg()) != MRI.getType(State.MIs[0]->getOperand(0).getReg());
2016 }
2017 case GICXXPred_MI_Predicate_GICombiner6: {
2018 return Helper.matchConstantFPOp(State.MIs[0]->getOperand(2), -0.0);
2019 }
2020 case GICXXPred_MI_Predicate_GICombiner7: {
2021 return Helper.matchConstantFPOp(State.MIs[0]->getOperand(2), 0.0);
2022 }
2023 case GICXXPred_MI_Predicate_GICombiner8: {
2024 return Helper.matchConstantFPOp(State.MIs[0]->getOperand(2), -1.0);
2025 }
2026 case GICXXPred_MI_Predicate_GICombiner9: {
2027 return State.MIs[1]->getOperand(1).getPredicate() == CmpInst::ICMP_EQ &&
2028 !MRI.getType(State.MIs[1]->getOperand(2).getReg()).getScalarType().isPointer() &&
2029 (MRI.getType(State.MIs[1]->getOperand(2).getReg()) ==
2030 MRI.getType(State.MIs[2]->getOperand(2).getReg()));
2031 }
2032 case GICXXPred_MI_Predicate_GICombiner10: {
2033 return State.MIs[1]->getOperand(1).getPredicate() == CmpInst::ICMP_NE &&
2034 !MRI.getType(State.MIs[1]->getOperand(2).getReg()).getScalarType().isPointer() &&
2035 (MRI.getType(State.MIs[1]->getOperand(2).getReg()) ==
2036 MRI.getType(State.MIs[2]->getOperand(2).getReg()));
2037 }
2038 case GICXXPred_MI_Predicate_GICombiner11: {
2039 return MRI.hasOneNonDBGUse(State.MIs[0]->getOperand(2).getReg()) &&
2040 Helper.isLegalOrBeforeLegalizer(
2041 {TargetOpcode::G_SEXT_INREG, {MRI.getType(State.MIs[1]->getOperand(1).getReg())}});
2042 }
2043 case GICXXPred_MI_Predicate_GICombiner12: {
2044 return MRI.getType(State.MIs[0]->getOperand(1).getReg()) == MRI.getType(State.MIs[0]->getOperand(0).getReg()) &&
2045 VT->computeNumSignBits(State.MIs[0]->getOperand(1).getReg()) == MRI.getType(State.MIs[0]->getOperand(0).getReg()).getScalarSizeInBits();
2046 }
2047 case GICXXPred_MI_Predicate_GICombiner13: {
2048 return Helper.isLegalOrBeforeLegalizer({TargetOpcode::G_LSHR,
2049 {MRI.getType(State.MIs[2]->getOperand(1).getReg()),
2050 MRI.getType(State.MIs[1]->getOperand(2).getReg())}});
2051 }
2052 case GICXXPred_MI_Predicate_GICombiner14: {
2053 return Helper.isLegalOrBeforeLegalizer({TargetOpcode::G_SHL,
2054 {MRI.getType(State.MIs[2]->getOperand(1).getReg()),
2055 MRI.getType(State.MIs[1]->getOperand(2).getReg())}});
2056 }
2057 case GICXXPred_MI_Predicate_GICombiner15: {
2058 return Helper.matchTruncUSatU(*State.MIs[0], *State.MIs[1]);
2059 }
2060 case GICXXPred_MI_Predicate_GICombiner16: {
2061 return Helper.matchTruncUSatUToFPTOUISat(*State.MIs[0], *State.MIs[1]);
2062 }
2063 case GICXXPred_MI_Predicate_GICombiner17: {
2064 return MRI.hasOneNonDBGUse(State.MIs[0]->getOperand(2).getReg()) &&
2065 MRI.hasOneNonDBGUse(State.MIs[1]->getOperand(1).getReg());
2066 }
2067 case GICXXPred_MI_Predicate_GICombiner18: {
2068 return MRI.hasOneNonDBGUse(State.MIs[0]->getOperand(1).getReg()) &&
2069 MRI.hasOneNonDBGUse(State.MIs[1]->getOperand(1).getReg());
2070 }
2071 case GICXXPred_MI_Predicate_GICombiner19: {
2072 return MRI.hasOneNonDBGUse(State.MIs[1]->getOperand(2).getReg()) &&
2073 MRI.hasOneNonDBGUse(State.MIs[0]->getOperand(2).getReg());
2074 }
2075 case GICXXPred_MI_Predicate_GICombiner20: {
2076 return Helper.matchAVG(*State.MIs[0], MRI, State.MIs[2]->getOperand(1).getReg(), State.MIs[3]->getOperand(1).getReg(), TargetOpcode::G_UAVGFLOOR);
2077 }
2078 case GICXXPred_MI_Predicate_GICombiner21: {
2079 return Helper.matchAVG(*State.MIs[0], MRI, State.MIs[2]->getOperand(1).getReg(), State.MIs[3]->getOperand(1).getReg(), TargetOpcode::G_SAVGFLOOR);
2080 }
2081 case GICXXPred_MI_Predicate_GICombiner22: {
2082 return Helper.matchAVG(*State.MIs[0], MRI, State.MIs[3]->getOperand(1).getReg(), State.MIs[4]->getOperand(1).getReg(), TargetOpcode::G_UAVGCEIL);
2083 }
2084 case GICXXPred_MI_Predicate_GICombiner23: {
2085 return Helper.matchAVG(*State.MIs[0], MRI, State.MIs[3]->getOperand(1).getReg(), State.MIs[4]->getOperand(1).getReg(), TargetOpcode::G_SAVGCEIL);
2086 }
2087 case GICXXPred_MI_Predicate_GICombiner24: {
2088 return Helper.matchConstantIs32BitMask(State.MIs[0]->getOperand(1).getReg()) ||
2089 Helper.matchConstantIs32BitMask(State.MIs[0]->getOperand(2).getReg());
2090 }
2091 }
2092 llvm_unreachable("Unknown predicate");
2093 return false;
2094}
2095bool AMDGPUPreLegalizerCombinerImpl::testMOPredicate_MO(unsigned PredicateID, const MachineOperand & MO, const MatcherState &State) const {
2096 llvm_unreachable("Unknown predicate");
2097 return false;
2098}
2099bool AMDGPUPreLegalizerCombinerImpl::testImmPredicate_I64(unsigned PredicateID, int64_t Imm) const {
2100 llvm_unreachable("Unknown predicate");
2101 return false;
2102}
2103bool AMDGPUPreLegalizerCombinerImpl::testImmPredicate_APFloat(unsigned PredicateID, const APFloat & Imm) const {
2104 llvm_unreachable("Unknown predicate");
2105 return false;
2106}
2107bool AMDGPUPreLegalizerCombinerImpl::testImmPredicate_APInt(unsigned PredicateID, const APInt & Imm) const {
2108 llvm_unreachable("Unknown predicate");
2109 return false;
2110}
2111enum {
2112 GICXXPred_Simple_IsRule0Enabled = GICXXPred_Invalid + 1,
2113 GICXXPred_Simple_IsRule1Enabled,
2114 GICXXPred_Simple_IsRule2Enabled,
2115 GICXXPred_Simple_IsRule3Enabled,
2116 GICXXPred_Simple_IsRule4Enabled,
2117 GICXXPred_Simple_IsRule5Enabled,
2118 GICXXPred_Simple_IsRule6Enabled,
2119 GICXXPred_Simple_IsRule7Enabled,
2120 GICXXPred_Simple_IsRule8Enabled,
2121 GICXXPred_Simple_IsRule9Enabled,
2122 GICXXPred_Simple_IsRule10Enabled,
2123 GICXXPred_Simple_IsRule11Enabled,
2124 GICXXPred_Simple_IsRule12Enabled,
2125 GICXXPred_Simple_IsRule13Enabled,
2126 GICXXPred_Simple_IsRule14Enabled,
2127 GICXXPred_Simple_IsRule15Enabled,
2128 GICXXPred_Simple_IsRule16Enabled,
2129 GICXXPred_Simple_IsRule17Enabled,
2130 GICXXPred_Simple_IsRule18Enabled,
2131 GICXXPred_Simple_IsRule19Enabled,
2132 GICXXPred_Simple_IsRule20Enabled,
2133 GICXXPred_Simple_IsRule21Enabled,
2134 GICXXPred_Simple_IsRule22Enabled,
2135 GICXXPred_Simple_IsRule23Enabled,
2136 GICXXPred_Simple_IsRule24Enabled,
2137 GICXXPred_Simple_IsRule25Enabled,
2138 GICXXPred_Simple_IsRule26Enabled,
2139 GICXXPred_Simple_IsRule27Enabled,
2140 GICXXPred_Simple_IsRule28Enabled,
2141 GICXXPred_Simple_IsRule29Enabled,
2142 GICXXPred_Simple_IsRule30Enabled,
2143 GICXXPred_Simple_IsRule31Enabled,
2144 GICXXPred_Simple_IsRule32Enabled,
2145 GICXXPred_Simple_IsRule33Enabled,
2146 GICXXPred_Simple_IsRule34Enabled,
2147 GICXXPred_Simple_IsRule35Enabled,
2148 GICXXPred_Simple_IsRule36Enabled,
2149 GICXXPred_Simple_IsRule37Enabled,
2150 GICXXPred_Simple_IsRule38Enabled,
2151 GICXXPred_Simple_IsRule39Enabled,
2152 GICXXPred_Simple_IsRule40Enabled,
2153 GICXXPred_Simple_IsRule41Enabled,
2154 GICXXPred_Simple_IsRule42Enabled,
2155 GICXXPred_Simple_IsRule43Enabled,
2156 GICXXPred_Simple_IsRule44Enabled,
2157 GICXXPred_Simple_IsRule45Enabled,
2158 GICXXPred_Simple_IsRule46Enabled,
2159 GICXXPred_Simple_IsRule47Enabled,
2160 GICXXPred_Simple_IsRule48Enabled,
2161 GICXXPred_Simple_IsRule49Enabled,
2162 GICXXPred_Simple_IsRule50Enabled,
2163 GICXXPred_Simple_IsRule51Enabled,
2164 GICXXPred_Simple_IsRule52Enabled,
2165 GICXXPred_Simple_IsRule53Enabled,
2166 GICXXPred_Simple_IsRule54Enabled,
2167 GICXXPred_Simple_IsRule55Enabled,
2168 GICXXPred_Simple_IsRule56Enabled,
2169 GICXXPred_Simple_IsRule57Enabled,
2170 GICXXPred_Simple_IsRule58Enabled,
2171 GICXXPred_Simple_IsRule59Enabled,
2172 GICXXPred_Simple_IsRule60Enabled,
2173 GICXXPred_Simple_IsRule61Enabled,
2174 GICXXPred_Simple_IsRule62Enabled,
2175 GICXXPred_Simple_IsRule63Enabled,
2176 GICXXPred_Simple_IsRule64Enabled,
2177 GICXXPred_Simple_IsRule65Enabled,
2178 GICXXPred_Simple_IsRule66Enabled,
2179 GICXXPred_Simple_IsRule67Enabled,
2180 GICXXPred_Simple_IsRule68Enabled,
2181 GICXXPred_Simple_IsRule69Enabled,
2182 GICXXPred_Simple_IsRule70Enabled,
2183 GICXXPred_Simple_IsRule71Enabled,
2184 GICXXPred_Simple_IsRule72Enabled,
2185 GICXXPred_Simple_IsRule73Enabled,
2186 GICXXPred_Simple_IsRule74Enabled,
2187 GICXXPred_Simple_IsRule75Enabled,
2188 GICXXPred_Simple_IsRule76Enabled,
2189 GICXXPred_Simple_IsRule77Enabled,
2190 GICXXPred_Simple_IsRule78Enabled,
2191 GICXXPred_Simple_IsRule79Enabled,
2192 GICXXPred_Simple_IsRule80Enabled,
2193 GICXXPred_Simple_IsRule81Enabled,
2194 GICXXPred_Simple_IsRule82Enabled,
2195 GICXXPred_Simple_IsRule83Enabled,
2196 GICXXPred_Simple_IsRule84Enabled,
2197 GICXXPred_Simple_IsRule85Enabled,
2198 GICXXPred_Simple_IsRule86Enabled,
2199 GICXXPred_Simple_IsRule87Enabled,
2200 GICXXPred_Simple_IsRule88Enabled,
2201 GICXXPred_Simple_IsRule89Enabled,
2202 GICXXPred_Simple_IsRule90Enabled,
2203 GICXXPred_Simple_IsRule91Enabled,
2204 GICXXPred_Simple_IsRule92Enabled,
2205 GICXXPred_Simple_IsRule93Enabled,
2206 GICXXPred_Simple_IsRule94Enabled,
2207 GICXXPred_Simple_IsRule95Enabled,
2208 GICXXPred_Simple_IsRule96Enabled,
2209 GICXXPred_Simple_IsRule97Enabled,
2210 GICXXPred_Simple_IsRule98Enabled,
2211 GICXXPred_Simple_IsRule99Enabled,
2212 GICXXPred_Simple_IsRule100Enabled,
2213 GICXXPred_Simple_IsRule101Enabled,
2214 GICXXPred_Simple_IsRule102Enabled,
2215 GICXXPred_Simple_IsRule103Enabled,
2216 GICXXPred_Simple_IsRule104Enabled,
2217 GICXXPred_Simple_IsRule105Enabled,
2218 GICXXPred_Simple_IsRule106Enabled,
2219 GICXXPred_Simple_IsRule107Enabled,
2220 GICXXPred_Simple_IsRule108Enabled,
2221 GICXXPred_Simple_IsRule109Enabled,
2222 GICXXPred_Simple_IsRule110Enabled,
2223 GICXXPred_Simple_IsRule111Enabled,
2224 GICXXPred_Simple_IsRule112Enabled,
2225 GICXXPred_Simple_IsRule113Enabled,
2226 GICXXPred_Simple_IsRule114Enabled,
2227 GICXXPred_Simple_IsRule115Enabled,
2228 GICXXPred_Simple_IsRule116Enabled,
2229 GICXXPred_Simple_IsRule117Enabled,
2230 GICXXPred_Simple_IsRule118Enabled,
2231 GICXXPred_Simple_IsRule119Enabled,
2232 GICXXPred_Simple_IsRule120Enabled,
2233 GICXXPred_Simple_IsRule121Enabled,
2234 GICXXPred_Simple_IsRule122Enabled,
2235 GICXXPred_Simple_IsRule123Enabled,
2236 GICXXPred_Simple_IsRule124Enabled,
2237 GICXXPred_Simple_IsRule125Enabled,
2238 GICXXPred_Simple_IsRule126Enabled,
2239 GICXXPred_Simple_IsRule127Enabled,
2240 GICXXPred_Simple_IsRule128Enabled,
2241 GICXXPred_Simple_IsRule129Enabled,
2242 GICXXPred_Simple_IsRule130Enabled,
2243 GICXXPred_Simple_IsRule131Enabled,
2244 GICXXPred_Simple_IsRule132Enabled,
2245 GICXXPred_Simple_IsRule133Enabled,
2246 GICXXPred_Simple_IsRule134Enabled,
2247 GICXXPred_Simple_IsRule135Enabled,
2248 GICXXPred_Simple_IsRule136Enabled,
2249 GICXXPred_Simple_IsRule137Enabled,
2250 GICXXPred_Simple_IsRule138Enabled,
2251 GICXXPred_Simple_IsRule139Enabled,
2252 GICXXPred_Simple_IsRule140Enabled,
2253 GICXXPred_Simple_IsRule141Enabled,
2254 GICXXPred_Simple_IsRule142Enabled,
2255 GICXXPred_Simple_IsRule143Enabled,
2256 GICXXPred_Simple_IsRule144Enabled,
2257 GICXXPred_Simple_IsRule145Enabled,
2258 GICXXPred_Simple_IsRule146Enabled,
2259 GICXXPred_Simple_IsRule147Enabled,
2260 GICXXPred_Simple_IsRule148Enabled,
2261 GICXXPred_Simple_IsRule149Enabled,
2262 GICXXPred_Simple_IsRule150Enabled,
2263 GICXXPred_Simple_IsRule151Enabled,
2264 GICXXPred_Simple_IsRule152Enabled,
2265 GICXXPred_Simple_IsRule153Enabled,
2266 GICXXPred_Simple_IsRule154Enabled,
2267 GICXXPred_Simple_IsRule155Enabled,
2268 GICXXPred_Simple_IsRule156Enabled,
2269 GICXXPred_Simple_IsRule157Enabled,
2270 GICXXPred_Simple_IsRule158Enabled,
2271 GICXXPred_Simple_IsRule159Enabled,
2272 GICXXPred_Simple_IsRule160Enabled,
2273 GICXXPred_Simple_IsRule161Enabled,
2274 GICXXPred_Simple_IsRule162Enabled,
2275 GICXXPred_Simple_IsRule163Enabled,
2276 GICXXPred_Simple_IsRule164Enabled,
2277 GICXXPred_Simple_IsRule165Enabled,
2278 GICXXPred_Simple_IsRule166Enabled,
2279 GICXXPred_Simple_IsRule167Enabled,
2280 GICXXPred_Simple_IsRule168Enabled,
2281 GICXXPred_Simple_IsRule169Enabled,
2282 GICXXPred_Simple_IsRule170Enabled,
2283 GICXXPred_Simple_IsRule171Enabled,
2284 GICXXPred_Simple_IsRule172Enabled,
2285 GICXXPred_Simple_IsRule173Enabled,
2286 GICXXPred_Simple_IsRule174Enabled,
2287 GICXXPred_Simple_IsRule175Enabled,
2288 GICXXPred_Simple_IsRule176Enabled,
2289 GICXXPred_Simple_IsRule177Enabled,
2290 GICXXPred_Simple_IsRule178Enabled,
2291 GICXXPred_Simple_IsRule179Enabled,
2292 GICXXPred_Simple_IsRule180Enabled,
2293 GICXXPred_Simple_IsRule181Enabled,
2294 GICXXPred_Simple_IsRule182Enabled,
2295 GICXXPred_Simple_IsRule183Enabled,
2296 GICXXPred_Simple_IsRule184Enabled,
2297 GICXXPred_Simple_IsRule185Enabled,
2298 GICXXPred_Simple_IsRule186Enabled,
2299 GICXXPred_Simple_IsRule187Enabled,
2300 GICXXPred_Simple_IsRule188Enabled,
2301 GICXXPred_Simple_IsRule189Enabled,
2302 GICXXPred_Simple_IsRule190Enabled,
2303 GICXXPred_Simple_IsRule191Enabled,
2304 GICXXPred_Simple_IsRule192Enabled,
2305 GICXXPred_Simple_IsRule193Enabled,
2306 GICXXPred_Simple_IsRule194Enabled,
2307 GICXXPred_Simple_IsRule195Enabled,
2308 GICXXPred_Simple_IsRule196Enabled,
2309 GICXXPred_Simple_IsRule197Enabled,
2310 GICXXPred_Simple_IsRule198Enabled,
2311 GICXXPred_Simple_IsRule199Enabled,
2312 GICXXPred_Simple_IsRule200Enabled,
2313 GICXXPred_Simple_IsRule201Enabled,
2314 GICXXPred_Simple_IsRule202Enabled,
2315 GICXXPred_Simple_IsRule203Enabled,
2316 GICXXPred_Simple_IsRule204Enabled,
2317 GICXXPred_Simple_IsRule205Enabled,
2318 GICXXPred_Simple_IsRule206Enabled,
2319 GICXXPred_Simple_IsRule207Enabled,
2320 GICXXPred_Simple_IsRule208Enabled,
2321 GICXXPred_Simple_IsRule209Enabled,
2322 GICXXPred_Simple_IsRule210Enabled,
2323 GICXXPred_Simple_IsRule211Enabled,
2324 GICXXPred_Simple_IsRule212Enabled,
2325 GICXXPred_Simple_IsRule213Enabled,
2326 GICXXPred_Simple_IsRule214Enabled,
2327 GICXXPred_Simple_IsRule215Enabled,
2328 GICXXPred_Simple_IsRule216Enabled,
2329 GICXXPred_Simple_IsRule217Enabled,
2330 GICXXPred_Simple_IsRule218Enabled,
2331 GICXXPred_Simple_IsRule219Enabled,
2332 GICXXPred_Simple_IsRule220Enabled,
2333 GICXXPred_Simple_IsRule221Enabled,
2334 GICXXPred_Simple_IsRule222Enabled,
2335 GICXXPred_Simple_IsRule223Enabled,
2336 GICXXPred_Simple_IsRule224Enabled,
2337 GICXXPred_Simple_IsRule225Enabled,
2338 GICXXPred_Simple_IsRule226Enabled,
2339 GICXXPred_Simple_IsRule227Enabled,
2340 GICXXPred_Simple_IsRule228Enabled,
2341 GICXXPred_Simple_IsRule229Enabled,
2342 GICXXPred_Simple_IsRule230Enabled,
2343 GICXXPred_Simple_IsRule231Enabled,
2344 GICXXPred_Simple_IsRule232Enabled,
2345 GICXXPred_Simple_IsRule233Enabled,
2346 GICXXPred_Simple_IsRule234Enabled,
2347 GICXXPred_Simple_IsRule235Enabled,
2348 GICXXPred_Simple_IsRule236Enabled,
2349 GICXXPred_Simple_IsRule237Enabled,
2350 GICXXPred_Simple_IsRule238Enabled,
2351 GICXXPred_Simple_IsRule239Enabled,
2352 GICXXPred_Simple_IsRule240Enabled,
2353 GICXXPred_Simple_IsRule241Enabled,
2354 GICXXPred_Simple_IsRule242Enabled,
2355 GICXXPred_Simple_IsRule243Enabled,
2356 GICXXPred_Simple_IsRule244Enabled,
2357 GICXXPred_Simple_IsRule245Enabled,
2358 GICXXPred_Simple_IsRule246Enabled,
2359 GICXXPred_Simple_IsRule247Enabled,
2360 GICXXPred_Simple_IsRule248Enabled,
2361 GICXXPred_Simple_IsRule249Enabled,
2362 GICXXPred_Simple_IsRule250Enabled,
2363 GICXXPred_Simple_IsRule251Enabled,
2364 GICXXPred_Simple_IsRule252Enabled,
2365 GICXXPred_Simple_IsRule253Enabled,
2366 GICXXPred_Simple_IsRule254Enabled,
2367 GICXXPred_Simple_IsRule255Enabled,
2368 GICXXPred_Simple_IsRule256Enabled,
2369 GICXXPred_Simple_IsRule257Enabled,
2370 GICXXPred_Simple_IsRule258Enabled,
2371 GICXXPred_Simple_IsRule259Enabled,
2372 GICXXPred_Simple_IsRule260Enabled,
2373 GICXXPred_Simple_IsRule261Enabled,
2374 GICXXPred_Simple_IsRule262Enabled,
2375 GICXXPred_Simple_IsRule263Enabled,
2376 GICXXPred_Simple_IsRule264Enabled,
2377 GICXXPred_Simple_IsRule265Enabled,
2378 GICXXPred_Simple_IsRule266Enabled,
2379 GICXXPred_Simple_IsRule267Enabled,
2380 GICXXPred_Simple_IsRule268Enabled,
2381 GICXXPred_Simple_IsRule269Enabled,
2382 GICXXPred_Simple_IsRule270Enabled,
2383 GICXXPred_Simple_IsRule271Enabled,
2384 GICXXPred_Simple_IsRule272Enabled,
2385 GICXXPred_Simple_IsRule273Enabled,
2386 GICXXPred_Simple_IsRule274Enabled,
2387 GICXXPred_Simple_IsRule275Enabled,
2388 GICXXPred_Simple_IsRule276Enabled,
2389};
2390
2391bool AMDGPUPreLegalizerCombinerImpl::testSimplePredicate(unsigned Predicate) const {
2392 return RuleConfig.isRuleEnabled(Predicate - GICXXPred_Invalid - 1);
2393}
2394// Custom renderers.
2395enum {
2396 GICR_Invalid,
2397};
2398AMDGPUPreLegalizerCombinerImpl::CustomRendererFn
2399AMDGPUPreLegalizerCombinerImpl::CustomRenderers[] = {
2400 nullptr, // GICR_Invalid
2401};
2402
2403bool AMDGPUPreLegalizerCombinerImpl::canMatchOpcode(unsigned Opc) const {
2404 switch (Opc) {
2405 case TargetOpcode::G_FCMP:
2406 case TargetOpcode::G_FSHL:
2407 case TargetOpcode::G_FSHR:
2408 case TargetOpcode::G_ICMP:
2409 case TargetOpcode::G_INSERT_VECTOR_ELT:
2410 case TargetOpcode::G_SELECT:
2411 case TargetOpcode::G_SHUFFLE_VECTOR:
2412 case TargetOpcode::G_ADD:
2413 case TargetOpcode::G_AND:
2414 case TargetOpcode::G_ASHR:
2415 case TargetOpcode::G_EXTRACT_VECTOR_ELT:
2416 case TargetOpcode::G_FADD:
2417 case TargetOpcode::G_FCOPYSIGN:
2418 case TargetOpcode::G_FDIV:
2419 case TargetOpcode::G_FMAXIMUM:
2420 case TargetOpcode::G_FMAXIMUMNUM:
2421 case TargetOpcode::G_FMAXNUM:
2422 case TargetOpcode::G_FMINIMUM:
2423 case TargetOpcode::G_FMINIMUMNUM:
2424 case TargetOpcode::G_FMINNUM:
2425 case TargetOpcode::G_FMUL:
2426 case TargetOpcode::G_FPOWI:
2427 case TargetOpcode::G_FREM:
2428 case TargetOpcode::G_FSUB:
2429 case TargetOpcode::G_LSHR:
2430 case TargetOpcode::G_MERGE_VALUES:
2431 case TargetOpcode::G_MUL:
2432 case TargetOpcode::G_OR:
2433 case TargetOpcode::G_PTR_ADD:
2434 case TargetOpcode::G_ROTL:
2435 case TargetOpcode::G_ROTR:
2436 case TargetOpcode::G_SDIV:
2437 case TargetOpcode::G_SEXT_INREG:
2438 case TargetOpcode::G_SHL:
2439 case TargetOpcode::G_SREM:
2440 case TargetOpcode::G_SUB:
2441 case TargetOpcode::G_UDIV:
2442 case TargetOpcode::G_UREM:
2443 case TargetOpcode::G_XOR:
2444 case TargetOpcode::COPY:
2445 case TargetOpcode::G_ABS:
2446 case TargetOpcode::G_ANYEXT:
2447 case TargetOpcode::G_BITCAST:
2448 case TargetOpcode::G_BITREVERSE:
2449 case TargetOpcode::G_BSWAP:
2450 case TargetOpcode::G_BUILD_VECTOR:
2451 case TargetOpcode::G_CTLZ:
2452 case TargetOpcode::G_CTLZ_ZERO_POISON:
2453 case TargetOpcode::G_CTPOP:
2454 case TargetOpcode::G_CTTZ:
2455 case TargetOpcode::G_CTTZ_ZERO_POISON:
2456 case TargetOpcode::G_FABS:
2457 case TargetOpcode::G_FCANONICALIZE:
2458 case TargetOpcode::G_FCEIL:
2459 case TargetOpcode::G_FFLOOR:
2460 case TargetOpcode::G_FLOG2:
2461 case TargetOpcode::G_FNEARBYINT:
2462 case TargetOpcode::G_FNEG:
2463 case TargetOpcode::G_FPEXT:
2464 case TargetOpcode::G_FPTOSI:
2465 case TargetOpcode::G_FPTOUI:
2466 case TargetOpcode::G_FPTRUNC:
2467 case TargetOpcode::G_FREEZE:
2468 case TargetOpcode::G_FRINT:
2469 case TargetOpcode::G_FSQRT:
2470 case TargetOpcode::G_INTRINSIC_ROUND:
2471 case TargetOpcode::G_INTRINSIC_ROUNDEVEN:
2472 case TargetOpcode::G_INTRINSIC_TRUNC:
2473 case TargetOpcode::G_INTTOPTR:
2474 case TargetOpcode::G_PTRTOINT:
2475 case TargetOpcode::G_SEXT:
2476 case TargetOpcode::G_SITOFP:
2477 case TargetOpcode::G_TRUNC:
2478 case TargetOpcode::G_TRUNC_USAT_U:
2479 case TargetOpcode::G_UITOFP:
2480 case TargetOpcode::G_ZEXT:
2481 case TargetOpcode::G_BR:
2482 case TargetOpcode::G_BUILD_VECTOR_TRUNC:
2483 case TargetOpcode::G_CONCAT_VECTORS:
2484 case TargetOpcode::G_FMA:
2485 case TargetOpcode::G_FMAD:
2486 case TargetOpcode::G_FMAXNUM_IEEE:
2487 case TargetOpcode::G_FMINNUM_IEEE:
2488 case TargetOpcode::G_LOAD:
2489 case TargetOpcode::G_PHI:
2490 case TargetOpcode::G_SADDE:
2491 case TargetOpcode::G_SADDO:
2492 case TargetOpcode::G_SADDSAT:
2493 case TargetOpcode::G_SEXTLOAD:
2494 case TargetOpcode::G_SMAX:
2495 case TargetOpcode::G_SMIN:
2496 case TargetOpcode::G_SMULFIX:
2497 case TargetOpcode::G_SMULFIXSAT:
2498 case TargetOpcode::G_SMULH:
2499 case TargetOpcode::G_SMULO:
2500 case TargetOpcode::G_SSHLSAT:
2501 case TargetOpcode::G_SSUBE:
2502 case TargetOpcode::G_SSUBO:
2503 case TargetOpcode::G_STORE:
2504 case TargetOpcode::G_UADDE:
2505 case TargetOpcode::G_UADDO:
2506 case TargetOpcode::G_UADDSAT:
2507 case TargetOpcode::G_UMAX:
2508 case TargetOpcode::G_UMIN:
2509 case TargetOpcode::G_UMULFIX:
2510 case TargetOpcode::G_UMULFIXSAT:
2511 case TargetOpcode::G_UMULH:
2512 case TargetOpcode::G_UMULO:
2513 case TargetOpcode::G_UNMERGE_VALUES:
2514 case TargetOpcode::G_USHLSAT:
2515 case TargetOpcode::G_USUBE:
2516 case TargetOpcode::G_USUBO:
2517 case TargetOpcode::G_ZEXTLOAD:
2518 return true;
2519 default:
2520 return false;
2521 }
2522}
2523
2524bool AMDGPUPreLegalizerCombinerImpl::tryCombineAllImpl(MachineInstr &I) const {
2525 const PredicateBitset AvailableFeatures = getAvailableFeatures();
2526 State.MIs.clear();
2527 State.MIs.push_back(&I);
2528 if (executeMatchTable(*this, State, ExecInfo, B, getMatchTable(), Helper.getTII(), MRI, Helper.getTRI(), Helper.getRBI(), AvailableFeatures, /*CoverageInfo*/ nullptr)) {
2529 return true;
2530 }
2531
2532 return false;
2533}
2534
2535enum {
2536 GICXXCustomAction_GICombiner0 = GICXXCustomAction_Invalid + 1,
2537 GICXXCustomAction_GICombiner1,
2538 GICXXCustomAction_GICombiner2,
2539 GICXXCustomAction_GICombiner3,
2540 GICXXCustomAction_GICombiner4,
2541 GICXXCustomAction_GICombiner5,
2542 GICXXCustomAction_GICombiner6,
2543 GICXXCustomAction_GICombiner7,
2544 GICXXCustomAction_GICombiner8,
2545 GICXXCustomAction_GICombiner9,
2546 GICXXCustomAction_GICombiner10,
2547 GICXXCustomAction_GICombiner11,
2548 GICXXCustomAction_GICombiner12,
2549 GICXXCustomAction_GICombiner13,
2550 GICXXCustomAction_GICombiner14,
2551 GICXXCustomAction_GICombiner15,
2552 GICXXCustomAction_GICombiner16,
2553 GICXXCustomAction_GICombiner17,
2554 GICXXCustomAction_GICombiner18,
2555 GICXXCustomAction_GICombiner19,
2556 GICXXCustomAction_GICombiner20,
2557 GICXXCustomAction_GICombiner21,
2558 GICXXCustomAction_GICombiner22,
2559 GICXXCustomAction_GICombiner23,
2560 GICXXCustomAction_GICombiner24,
2561 GICXXCustomAction_GICombiner25,
2562 GICXXCustomAction_GICombiner26,
2563 GICXXCustomAction_GICombiner27,
2564 GICXXCustomAction_GICombiner28,
2565 GICXXCustomAction_GICombiner29,
2566 GICXXCustomAction_GICombiner30,
2567 GICXXCustomAction_GICombiner31,
2568 GICXXCustomAction_GICombiner32,
2569 GICXXCustomAction_GICombiner33,
2570 GICXXCustomAction_GICombiner34,
2571 GICXXCustomAction_GICombiner35,
2572 GICXXCustomAction_GICombiner36,
2573 GICXXCustomAction_GICombiner37,
2574 GICXXCustomAction_GICombiner38,
2575 GICXXCustomAction_GICombiner39,
2576 GICXXCustomAction_GICombiner40,
2577 GICXXCustomAction_GICombiner41,
2578 GICXXCustomAction_GICombiner42,
2579 GICXXCustomAction_GICombiner43,
2580 GICXXCustomAction_GICombiner44,
2581 GICXXCustomAction_GICombiner45,
2582 GICXXCustomAction_GICombiner46,
2583 GICXXCustomAction_GICombiner47,
2584 GICXXCustomAction_GICombiner48,
2585 GICXXCustomAction_GICombiner49,
2586 GICXXCustomAction_GICombiner50,
2587 GICXXCustomAction_GICombiner51,
2588 GICXXCustomAction_GICombiner52,
2589 GICXXCustomAction_GICombiner53,
2590 GICXXCustomAction_GICombiner54,
2591 GICXXCustomAction_GICombiner55,
2592 GICXXCustomAction_GICombiner56,
2593 GICXXCustomAction_GICombiner57,
2594 GICXXCustomAction_GICombiner58,
2595 GICXXCustomAction_GICombiner59,
2596 GICXXCustomAction_GICombiner60,
2597 GICXXCustomAction_GICombiner61,
2598 GICXXCustomAction_GICombiner62,
2599 GICXXCustomAction_GICombiner63,
2600 GICXXCustomAction_GICombiner64,
2601 GICXXCustomAction_GICombiner65,
2602 GICXXCustomAction_GICombiner66,
2603 GICXXCustomAction_GICombiner67,
2604 GICXXCustomAction_GICombiner68,
2605 GICXXCustomAction_GICombiner69,
2606 GICXXCustomAction_GICombiner70,
2607 GICXXCustomAction_GICombiner71,
2608 GICXXCustomAction_GICombiner72,
2609 GICXXCustomAction_GICombiner73,
2610 GICXXCustomAction_GICombiner74,
2611 GICXXCustomAction_GICombiner75,
2612 GICXXCustomAction_GICombiner76,
2613 GICXXCustomAction_GICombiner77,
2614 GICXXCustomAction_GICombiner78,
2615 GICXXCustomAction_GICombiner79,
2616 GICXXCustomAction_GICombiner80,
2617 GICXXCustomAction_GICombiner81,
2618 GICXXCustomAction_GICombiner82,
2619 GICXXCustomAction_GICombiner83,
2620 GICXXCustomAction_GICombiner84,
2621 GICXXCustomAction_GICombiner85,
2622 GICXXCustomAction_GICombiner86,
2623 GICXXCustomAction_GICombiner87,
2624 GICXXCustomAction_GICombiner88,
2625 GICXXCustomAction_GICombiner89,
2626 GICXXCustomAction_GICombiner90,
2627 GICXXCustomAction_GICombiner91,
2628 GICXXCustomAction_GICombiner92,
2629 GICXXCustomAction_GICombiner93,
2630 GICXXCustomAction_GICombiner94,
2631 GICXXCustomAction_GICombiner95,
2632 GICXXCustomAction_GICombiner96,
2633 GICXXCustomAction_GICombiner97,
2634 GICXXCustomAction_GICombiner98,
2635 GICXXCustomAction_GICombiner99,
2636 GICXXCustomAction_GICombiner100,
2637 GICXXCustomAction_GICombiner101,
2638 GICXXCustomAction_GICombiner102,
2639 GICXXCustomAction_GICombiner103,
2640 GICXXCustomAction_GICombiner104,
2641 GICXXCustomAction_GICombiner105,
2642 GICXXCustomAction_GICombiner106,
2643 GICXXCustomAction_GICombiner107,
2644 GICXXCustomAction_GICombiner108,
2645 GICXXCustomAction_GICombiner109,
2646 GICXXCustomAction_GICombiner110,
2647 GICXXCustomAction_GICombiner111,
2648 GICXXCustomAction_GICombiner112,
2649 GICXXCustomAction_GICombiner113,
2650 GICXXCustomAction_GICombiner114,
2651 GICXXCustomAction_GICombiner115,
2652 GICXXCustomAction_GICombiner116,
2653 GICXXCustomAction_GICombiner117,
2654 GICXXCustomAction_GICombiner118,
2655 GICXXCustomAction_GICombiner119,
2656 GICXXCustomAction_GICombiner120,
2657 GICXXCustomAction_GICombiner121,
2658 GICXXCustomAction_GICombiner122,
2659 GICXXCustomAction_GICombiner123,
2660 GICXXCustomAction_GICombiner124,
2661 GICXXCustomAction_GICombiner125,
2662 GICXXCustomAction_GICombiner126,
2663 GICXXCustomAction_GICombiner127,
2664 GICXXCustomAction_GICombiner128,
2665 GICXXCustomAction_GICombiner129,
2666 GICXXCustomAction_GICombiner130,
2667 GICXXCustomAction_GICombiner131,
2668 GICXXCustomAction_GICombiner132,
2669 GICXXCustomAction_GICombiner133,
2670 GICXXCustomAction_GICombiner134,
2671 GICXXCustomAction_GICombiner135,
2672 GICXXCustomAction_GICombiner136,
2673 GICXXCustomAction_GICombiner137,
2674 GICXXCustomAction_GICombiner138,
2675 GICXXCustomAction_GICombiner139,
2676 GICXXCustomAction_GICombiner140,
2677 GICXXCustomAction_GICombiner141,
2678 GICXXCustomAction_GICombiner142,
2679 GICXXCustomAction_GICombiner143,
2680 GICXXCustomAction_GICombiner144,
2681 GICXXCustomAction_GICombiner145,
2682 GICXXCustomAction_GICombiner146,
2683 GICXXCustomAction_GICombiner147,
2684 GICXXCustomAction_GICombiner148,
2685 GICXXCustomAction_GICombiner149,
2686 GICXXCustomAction_GICombiner150,
2687 GICXXCustomAction_GICombiner151,
2688 GICXXCustomAction_GICombiner152,
2689 GICXXCustomAction_GICombiner153,
2690 GICXXCustomAction_GICombiner154,
2691 GICXXCustomAction_GICombiner155,
2692 GICXXCustomAction_GICombiner156,
2693 GICXXCustomAction_GICombiner157,
2694 GICXXCustomAction_GICombiner158,
2695 GICXXCustomAction_GICombiner159,
2696 GICXXCustomAction_GICombiner160,
2697 GICXXCustomAction_GICombiner161,
2698 GICXXCustomAction_GICombiner162,
2699 GICXXCustomAction_GICombiner163,
2700 GICXXCustomAction_GICombiner164,
2701 GICXXCustomAction_GICombiner165,
2702};
2703bool AMDGPUPreLegalizerCombinerImpl::runCustomAction(unsigned ApplyID, const MatcherState &State, NewMIVector &OutMIs) const {
2704 Helper.getBuilder().setInstrAndDebugLoc(*State.MIs[0]);
2705 switch(ApplyID) {
2706 case GICXXCustomAction_GICombiner0:{
2707 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2708 // Match Patterns
2709 if(![&](){return Helper.matchFoldAPlusC1MinusC2(*State.MIs[0], GIMatchData_matchinfo);}()) {
2710 return false;
2711 }
2712 // Apply Patterns
2713 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2714 return true;
2715 }
2716 case GICXXCustomAction_GICombiner1:{
2717 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2718 // Match Patterns
2719 if(![&](){return Helper.matchFoldC2MinusAPlusC1(*State.MIs[0], GIMatchData_matchinfo);}()) {
2720 return false;
2721 }
2722 // Apply Patterns
2723 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2724 return true;
2725 }
2726 case GICXXCustomAction_GICombiner2:{
2727 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2728 // Match Patterns
2729 if(![&](){return Helper.matchFoldAMinusC1MinusC2(*State.MIs[0], GIMatchData_matchinfo);}()) {
2730 return false;
2731 }
2732 // Apply Patterns
2733 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2734 return true;
2735 }
2736 case GICXXCustomAction_GICombiner3:{
2737 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2738 // Match Patterns
2739 if(![&](){return Helper.matchFoldC1Minus2MinusC2(*State.MIs[0], GIMatchData_matchinfo);}()) {
2740 return false;
2741 }
2742 // Apply Patterns
2743 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2744 return true;
2745 }
2746 case GICXXCustomAction_GICombiner4:{
2747 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2748 // Match Patterns
2749 if(![&](){return Helper.matchFoldAMinusC1PlusC2(*State.MIs[0], GIMatchData_matchinfo);}()) {
2750 return false;
2751 }
2752 // Apply Patterns
2753 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2754 return true;
2755 }
2756 case GICXXCustomAction_GICombiner5:{
2757 // Match Patterns
2758 if(![&](){return Helper.matchCombineCopy(*State.MIs[0]);}()) {
2759 return false;
2760 }
2761 // Apply Patterns
2762 Helper.applyCombineCopy(*State.MIs[0]);
2763 return true;
2764 }
2765 case GICXXCustomAction_GICombiner6:{
2766 unsigned GIMatchData_matchinfo;
2767 // Match Patterns
2768 if(![&](){return Helper.matchCombineMulToShl(*State.MIs[0], GIMatchData_matchinfo);}()) {
2769 return false;
2770 }
2771 // Apply Patterns
2772 Helper.applyCombineMulToShl(*State.MIs[0], GIMatchData_matchinfo);
2773 return true;
2774 }
2775 case GICXXCustomAction_GICombiner7:{
2776 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2777 // Match Patterns
2778 if(![&](){return Helper.matchCombineSubToAdd(*State.MIs[0], GIMatchData_matchinfo);}()) {
2779 return false;
2780 }
2781 // Apply Patterns
2782 Helper.applyBuildFnNoErase(*State.MIs[0], GIMatchData_matchinfo);
2783 return true;
2784 }
2785 case GICXXCustomAction_GICombiner8:{
2786 std::pair<Register, bool> GIMatchData_info;
2787 // Match Patterns
2788 if(![&](){return Helper.matchCombineAddP2IToPtrAdd(*State.MIs[0], GIMatchData_info);}()) {
2789 return false;
2790 }
2791 // Apply Patterns
2792 Helper.applyCombineAddP2IToPtrAdd(*State.MIs[0], GIMatchData_info);
2793 return true;
2794 }
2795 case GICXXCustomAction_GICombiner9:{
2796 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2797 // Match Patterns
2798 if(![&](){return Helper.matchExtractVectorElement(*State.MIs[0], GIMatchData_matchinfo);}()) {
2799 return false;
2800 }
2801 // Apply Patterns
2802 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2803 return true;
2804 }
2805 case GICXXCustomAction_GICombiner10:{
2806 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2807 // Match Patterns
2808 if(![&](){return Helper.matchInsertVectorElementOOB(*State.MIs[0], GIMatchData_matchinfo);}()) {
2809 return false;
2810 }
2811 // Apply Patterns
2812 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2813 return true;
2814 }
2815 case GICXXCustomAction_GICombiner11:{
2816 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2817 // Match Patterns
2818 if(![&](){return Helper.matchExtractVectorElementWithDifferentIndices(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
2819 return false;
2820 }
2821 // Apply Patterns
2822 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
2823 return true;
2824 }
2825 case GICXXCustomAction_GICombiner12:{
2826 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2827 // Match Patterns
2828 if(![&](){return Helper.matchExtractVectorElementWithBuildVector(*State.MIs[0], *State.MIs[1],
2829 GIMatchData_matchinfo);}()) {
2830 return false;
2831 }
2832 // Apply Patterns
2833 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2834 return true;
2835 }
2836 case GICXXCustomAction_GICombiner13:{
2837 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2838 // Match Patterns
2839 if(![&](){return Helper.matchExtractVectorElementWithBuildVectorTrunc(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
2840 return false;
2841 }
2842 // Apply Patterns
2843 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
2844 return true;
2845 }
2846 case GICXXCustomAction_GICombiner14:{
2847 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2848 // Match Patterns
2849 if(![&](){return Helper.matchExtractVectorElementWithShuffleVector(*State.MIs[0], *State.MIs[1],
2850 GIMatchData_matchinfo);}()) {
2851 return false;
2852 }
2853 // Apply Patterns
2854 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2855 return true;
2856 }
2857 case GICXXCustomAction_GICombiner15:{
2858 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2859 // Match Patterns
2860 if(![&](){return Helper.matchAddOfVScale(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
2861 return false;
2862 }
2863 // Apply Patterns
2864 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
2865 return true;
2866 }
2867 case GICXXCustomAction_GICombiner16:{
2868 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2869 // Match Patterns
2870 if(![&](){return Helper.matchMulOfVScale(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
2871 return false;
2872 }
2873 // Apply Patterns
2874 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
2875 return true;
2876 }
2877 case GICXXCustomAction_GICombiner17:{
2878 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2879 // Match Patterns
2880 if(![&](){return Helper.matchShlOfVScale(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
2881 return false;
2882 }
2883 // Apply Patterns
2884 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
2885 return true;
2886 }
2887 case GICXXCustomAction_GICombiner18:{
2888 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2889 // Match Patterns
2890 if(![&](){return Helper.matchSubOfVScale(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
2891 return false;
2892 }
2893 // Apply Patterns
2894 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
2895 return true;
2896 }
2897 case GICXXCustomAction_GICombiner19:{
2898 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2899 // Match Patterns
2900 if(![&](){return !isGuaranteedNotToBePoison(State.MIs[0]->getOperand(1).getReg(), MRI) && Helper.matchFreezeOfSingleMaybePoisonOperand(*State.MIs[0], GIMatchData_matchinfo);}()) {
2901 return false;
2902 }
2903 // Apply Patterns
2904 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2905 return true;
2906 }
2907 case GICXXCustomAction_GICombiner20:{
2908 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2909 // Match Patterns
2910 if(![&](){return Helper.matchTruncateOfExt(*State.MIs[0], *State.MIs[1], GIMatchData_matchinfo);}()) {
2911 return false;
2912 }
2913 // Apply Patterns
2914 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2915 return true;
2916 }
2917 case GICXXCustomAction_GICombiner21:{
2918 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2919 // Match Patterns
2920 if(![&](){return Helper.matchExtOfExt(*State.MIs[0], *State.MIs[1], GIMatchData_matchinfo);}()) {
2921 return false;
2922 }
2923 // Apply Patterns
2924 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2925 return true;
2926 }
2927 case GICXXCustomAction_GICombiner22:{
2928 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2929 // Match Patterns
2930 if(![&](){return Helper.matchRedundantSextInReg(*State.MIs[0], *State.MIs[1], GIMatchData_matchinfo);}()) {
2931 return false;
2932 }
2933 // Apply Patterns
2934 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2935 return true;
2936 }
2937 case GICXXCustomAction_GICombiner23:{
2938 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2939 // Match Patterns
2940 if(![&](){return Helper.matchCastOfSelect(*State.MIs[0], *State.MIs[1], GIMatchData_matchinfo);}()) {
2941 return false;
2942 }
2943 // Apply Patterns
2944 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2945 return true;
2946 }
2947 case GICXXCustomAction_GICombiner24:{
2948 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2949 // Match Patterns
2950 if(![&](){return Helper.matchCastOfBuildVector(*State.MIs[0], *State.MIs[1], GIMatchData_matchinfo);}()) {
2951 return false;
2952 }
2953 // Apply Patterns
2954 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2955 return true;
2956 }
2957 case GICXXCustomAction_GICombiner25:{
2958 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2959 // Match Patterns
2960 if(![&](){return Helper.matchNarrowBinop(*State.MIs[0], *State.MIs[1], GIMatchData_matchinfo);}()) {
2961 return false;
2962 }
2963 // Apply Patterns
2964 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2965 return true;
2966 }
2967 case GICXXCustomAction_GICombiner26:{
2968 APInt GIMatchData_matchinfo;
2969 // Match Patterns
2970 if(![&](){return Helper.matchCastOfInteger(*State.MIs[0], GIMatchData_matchinfo);}()) {
2971 return false;
2972 }
2973 // Apply Patterns
2974 Helper.replaceInstWithConstant(*State.MIs[0], GIMatchData_matchinfo);
2975 return true;
2976 }
2977 case GICXXCustomAction_GICombiner27:{
2978 SmallVector<Register> GIMatchData_info;
2979 // Match Patterns
2980 if(![&](){return Helper.matchCombineInsertVecElts(*State.MIs[0], GIMatchData_info);}()) {
2981 return false;
2982 }
2983 // Apply Patterns
2984 Helper.applyCombineInsertVecElts(*State.MIs[0], GIMatchData_info);
2985 return true;
2986 }
2987 case GICXXCustomAction_GICombiner28:{
2988 Register GIMatchData_matchinfo;
2989 // Match Patterns
2990 if(![&](){return Helper.matchExtractVecEltBuildVec(*State.MIs[0], GIMatchData_matchinfo);}()) {
2991 return false;
2992 }
2993 // Apply Patterns
2994 Helper.applyExtractVecEltBuildVec(*State.MIs[0], GIMatchData_matchinfo);
2995 return true;
2996 }
2997 case GICXXCustomAction_GICombiner29:{
2998 SmallVector<std::pair<Register, MachineInstr*>> GIMatchData_matchinfo;
2999 // Match Patterns
3000 if(![&](){return Helper.matchExtractAllEltsFromBuildVector(*State.MIs[0], GIMatchData_matchinfo);}()) {
3001 return false;
3002 }
3003 // Apply Patterns
3004 Helper.applyExtractAllEltsFromBuildVector(*State.MIs[0], GIMatchData_matchinfo);
3005 return true;
3006 }
3007 case GICXXCustomAction_GICombiner30:{
3008 PreferredTuple GIMatchData_matchinfo;
3009 // Match Patterns
3010 if(![&](){return Helper.matchCombineExtendingLoads(*State.MIs[0], GIMatchData_matchinfo);}()) {
3011 return false;
3012 }
3013 // Apply Patterns
3014 Helper.applyCombineExtendingLoads(*State.MIs[0], GIMatchData_matchinfo);
3015 return true;
3016 }
3017 case GICXXCustomAction_GICombiner31:{
3018 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3019 // Match Patterns
3020 if(![&](){return Helper.matchCombineLoadWithAndMask(*State.MIs[0], GIMatchData_matchinfo);}()) {
3021 return false;
3022 }
3023 // Apply Patterns
3024 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3025 return true;
3026 }
3027 case GICXXCustomAction_GICombiner32:{
3028 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3029 // Match Patterns
3030 if(![&](){return Helper.matchCombineExtractedVectorLoad(*State.MIs[0], GIMatchData_matchinfo);}()) {
3031 return false;
3032 }
3033 // Apply Patterns
3034 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3035 return true;
3036 }
3037 case GICXXCustomAction_GICombiner33:{
3038 // Match Patterns
3039 if(![&](){return Helper.matchAnyExplicitUseIsUndef(*State.MIs[0]);}()) {
3040 return false;
3041 }
3042 // Apply Patterns
3043 Helper.replaceInstWithFConstant(*State.MIs[0], 0.0);
3044 return true;
3045 }
3046 case GICXXCustomAction_GICombiner34:{
3047 // Match Patterns
3048 if(![&](){return Helper.matchAnyExplicitUseIsUndef(*State.MIs[0]);}()) {
3049 return false;
3050 }
3051 // Apply Patterns
3052 Helper.replaceInstWithConstant(*State.MIs[0], 0);
3053 return true;
3054 }
3055 case GICXXCustomAction_GICombiner35:{
3056 // Match Patterns
3057 if(![&](){return Helper.matchAnyExplicitUseIsUndef(*State.MIs[0]);}()) {
3058 return false;
3059 }
3060 // Apply Patterns
3061 Helper.replaceInstWithConstant(*State.MIs[0], -1);
3062 return true;
3063 }
3064 case GICXXCustomAction_GICombiner36:{
3065 // Match Patterns
3066 if(![&](){return Helper.matchOperandIsUndef(*State.MIs[0], 1);}()) {
3067 return false;
3068 }
3069 // Apply Patterns
3070 Helper.replaceInstWithConstant(*State.MIs[0], 0);
3071 return true;
3072 }
3073 case GICXXCustomAction_GICombiner37:{
3074 // Match Patterns
3075 if(![&](){return Helper.matchOperandIsUndef(*State.MIs[0], 2);}()) {
3076 return false;
3077 }
3078 // Apply Patterns
3079 Helper.replaceInstWithUndef(*State.MIs[0]);
3080 return true;
3081 }
3082 case GICXXCustomAction_GICombiner38:{
3083 // Apply Patterns
3084 Helper.replaceInstWithUndef(*State.MIs[0]->getOperand(0).getParent());
3085 return true;
3086 }
3087 case GICXXCustomAction_GICombiner39:{
3088 // Match Patterns
3089 if(![&](){return Helper.matchAnyExplicitUseIsUndef(*State.MIs[0]);}()) {
3090 return false;
3091 }
3092 // Apply Patterns
3093 Helper.replaceInstWithUndef(*State.MIs[0]);
3094 return true;
3095 }
3096 case GICXXCustomAction_GICombiner40:{
3097 // Match Patterns
3098 if(![&](){return Helper.matchAllExplicitUsesAreUndef(*State.MIs[0]);}()) {
3099 return false;
3100 }
3101 // Apply Patterns
3102 Helper.replaceInstWithUndef(*State.MIs[0]);
3103 return true;
3104 }
3105 case GICXXCustomAction_GICombiner41:{
3106 // Match Patterns
3107 if(![&](){return Helper.matchUndefShuffleVectorMask(*State.MIs[0]);}()) {
3108 return false;
3109 }
3110 // Apply Patterns
3111 Helper.replaceInstWithUndef(*State.MIs[0]);
3112 return true;
3113 }
3114 case GICXXCustomAction_GICombiner42:{
3115 // Match Patterns
3116 if(![&](){return Helper.matchUndefStore(*State.MIs[0]);}()) {
3117 return false;
3118 }
3119 // Apply Patterns
3120 Helper.eraseInst(*State.MIs[0]);
3121 return true;
3122 }
3123 case GICXXCustomAction_GICombiner43:{
3124 // Match Patterns
3125 if(![&](){return Helper.matchInsertExtractVecEltOutOfBounds(*State.MIs[0]);}()) {
3126 return false;
3127 }
3128 // Apply Patterns
3129 Helper.replaceInstWithUndef(*State.MIs[0]);
3130 return true;
3131 }
3132 case GICXXCustomAction_GICombiner44:{
3133 // Match Patterns
3134 if(![&](){return Helper.matchSelectSameVal(*State.MIs[0]);}()) {
3135 return false;
3136 }
3137 // Apply Patterns
3138 Helper.replaceSingleDefInstWithOperand(*State.MIs[0], 2);
3139 return true;
3140 }
3141 case GICXXCustomAction_GICombiner45:{
3142 Register GIMatchData_info;
3143 // Match Patterns
3144 if(![&](){return Helper.matchCombineI2PToP2I(*State.MIs[0], GIMatchData_info);}()) {
3145 return false;
3146 }
3147 // Apply Patterns
3148 Helper.applyCombineI2PToP2I(*State.MIs[0], GIMatchData_info);
3149 return true;
3150 }
3151 case GICXXCustomAction_GICombiner46:{
3152 Register GIMatchData_info;
3153 // Match Patterns
3154 if(![&](){GIMatchData_info = State.MIs[1]->getOperand(1).getReg(); return true;}()) {
3155 return false;
3156 }
3157 // Apply Patterns
3158 Helper.applyCombineP2IToI2P(*State.MIs[0], GIMatchData_info);
3159 return true;
3160 }
3161 case GICXXCustomAction_GICombiner47:{
3162 Register GIMatchData_matchinfo;
3163 // Match Patterns
3164 if(![&](){return Helper.matchCombineAnyExtTrunc(*State.MIs[0], GIMatchData_matchinfo);}()) {
3165 return false;
3166 }
3167 // Apply Patterns
3168 Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo);
3169 return true;
3170 }
3171 case GICXXCustomAction_GICombiner48:{
3172 Register GIMatchData_matchinfo;
3173 // Match Patterns
3174 if(![&](){return Helper.matchBuildVectorIdentityFold(*State.MIs[0], GIMatchData_matchinfo);}()) {
3175 return false;
3176 }
3177 // Apply Patterns
3178 Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo);
3179 return true;
3180 }
3181 case GICXXCustomAction_GICombiner49:{
3182 Register GIMatchData_matchinfo;
3183 // Match Patterns
3184 if(![&](){return Helper.matchTruncBuildVectorFold(*State.MIs[0], GIMatchData_matchinfo);}()) {
3185 return false;
3186 }
3187 // Apply Patterns
3188 Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo);
3189 return true;
3190 }
3191 case GICXXCustomAction_GICombiner50:{
3192 Register GIMatchData_matchinfo;
3193 // Match Patterns
3194 if(![&](){return Helper.matchTruncLshrBuildVectorFold(*State.MIs[0], GIMatchData_matchinfo);}()) {
3195 return false;
3196 }
3197 // Apply Patterns
3198 Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo);
3199 return true;
3200 }
3201 case GICXXCustomAction_GICombiner51:{
3202 // Match Patterns
3203 if(![&](){return MRI.getType(State.MIs[1]->getOperand(1).getReg()) == MRI.getType(State.MIs[0]->getOperand(0).getReg());}()) {
3204 return false;
3205 }
3206 // Apply Patterns
3207 Helper.replaceSingleDefInstWithReg(*State.MIs[0], State.MIs[1]->getOperand(1).getReg());
3208 return true;
3209 }
3210 case GICXXCustomAction_GICombiner52:{
3211 MachineInstr* GIMatchData_matchinfo;
3212 // Match Patterns
3213 if(![&](){return Helper.matchExtendThroughPhis(*State.MIs[0], GIMatchData_matchinfo);}()) {
3214 return false;
3215 }
3216 // Apply Patterns
3217 Helper.applyExtendThroughPhis(*State.MIs[0], GIMatchData_matchinfo);
3218 return true;
3219 }
3220 case GICXXCustomAction_GICombiner53:{
3221 std::tuple<Register, Register> GIMatchData_info;
3222 // Match Patterns
3223 if(![&](){return Helper.matchSimplifyAddToSub(*State.MIs[0], GIMatchData_info);}()) {
3224 return false;
3225 }
3226 // Apply Patterns
3227 Helper.applySimplifyAddToSub(*State.MIs[0], GIMatchData_info);
3228 return true;
3229 }
3230 case GICXXCustomAction_GICombiner54:{
3231 InstructionStepsMatchInfo GIMatchData_info;
3232 // Match Patterns
3233 if(![&](){return Helper.matchHoistLogicOpWithSameOpcodeHands(*State.MIs[0], GIMatchData_info);}()) {
3234 return false;
3235 }
3236 // Apply Patterns
3237 Helper.applyBuildInstructionSteps(*State.MIs[0], GIMatchData_info);
3238 return true;
3239 }
3240 case GICXXCustomAction_GICombiner55:{
3241 std::optional<int64_t> GIMatchData_matchinfo;
3242 // Match Patterns
3243 if(![&](){return Helper.matchShiftsTooBig(*State.MIs[0], GIMatchData_matchinfo);}()) {
3244 return false;
3245 }
3246 // Apply Patterns
3247 if (GIMatchData_matchinfo) {
3248 Helper.replaceInstWithConstant(*State.MIs[0], *GIMatchData_matchinfo);
3249 } else {
3250 Helper.replaceInstWithUndef(*State.MIs[0]);
3251 }
3252 return true;
3253 }
3254 case GICXXCustomAction_GICombiner56:{
3255 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3256 // Match Patterns
3257 if(![&](){return Helper.matchReassocPtrAdd(*State.MIs[0], GIMatchData_matchinfo);}()) {
3258 return false;
3259 }
3260 // Apply Patterns
3261 Helper.applyBuildFnNoErase(*State.MIs[0], GIMatchData_matchinfo);
3262 return true;
3263 }
3264 case GICXXCustomAction_GICombiner57:{
3265 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3266 // Match Patterns
3267 if(![&](){return Helper.matchReassocCommBinOp(*State.MIs[0], GIMatchData_matchinfo);}()) {
3268 return false;
3269 }
3270 // Apply Patterns
3271 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3272 return true;
3273 }
3274 case GICXXCustomAction_GICombiner58:{
3275 PtrAddChain GIMatchData_matchinfo;
3276 // Match Patterns
3277 if(![&](){return Helper.matchPtrAddImmedChain(*State.MIs[0], GIMatchData_matchinfo);}()) {
3278 return false;
3279 }
3280 // Apply Patterns
3281 Helper.applyPtrAddImmedChain(*State.MIs[0], GIMatchData_matchinfo);
3282 return true;
3283 }
3284 case GICXXCustomAction_GICombiner59:{
3285 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3286 // Match Patterns
3287 if(![&](){return Helper.matchCanonicalizeICmp(*State.MIs[0], GIMatchData_matchinfo);}()) {
3288 return false;
3289 }
3290 // Apply Patterns
3291 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3292 return true;
3293 }
3294 case GICXXCustomAction_GICombiner60:{
3295 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3296 // Match Patterns
3297 if(![&](){return Helper.matchCanonicalizeFCmp(*State.MIs[0], GIMatchData_matchinfo);}()) {
3298 return false;
3299 }
3300 // Apply Patterns
3301 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3302 return true;
3303 }
3304 case GICXXCustomAction_GICombiner61:{
3305 int64_t GIMatchData_matchinfo;
3306 // Match Patterns
3307 if(![&](){return Helper.matchICmpToTrueFalseKnownBits(*State.MIs[0], GIMatchData_matchinfo);}()) {
3308 return false;
3309 }
3310 // Apply Patterns
3311 Helper.replaceInstWithConstant(*State.MIs[0], GIMatchData_matchinfo);
3312 return true;
3313 }
3314 case GICXXCustomAction_GICombiner62:{
3315 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3316 // Match Patterns
3317 if(![&](){return Helper.matchICmpToLHSKnownBits(*State.MIs[0], GIMatchData_info);}()) {
3318 return false;
3319 }
3320 // Apply Patterns
3321 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3322 return true;
3323 }
3324 case GICXXCustomAction_GICombiner63:{
3325 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3326 // Match Patterns
3327 if(![&](){return Helper.matchRedundantBinOpInEquality(*State.MIs[0], GIMatchData_info);}()) {
3328 return false;
3329 }
3330 // Apply Patterns
3331 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3332 return true;
3333 }
3334 case GICXXCustomAction_GICombiner64:{
3335 std::tuple<Register, int64_t> GIMatchData_info;
3336 // Match Patterns
3337 if(![&](){return Helper.matchAshrShlToSextInreg(*State.MIs[0], GIMatchData_info);}()) {
3338 return false;
3339 }
3340 // Apply Patterns
3341 Helper.applyAshShlToSextInreg(*State.MIs[0], GIMatchData_info);
3342 return true;
3343 }
3344 case GICXXCustomAction_GICombiner65:{
3345 std::tuple<Register, unsigned> GIMatchData_matchinfo;
3346 // Match Patterns
3347 if(![&](){return Helper.matchSextInRegOfLoad(*State.MIs[0], GIMatchData_matchinfo);}()) {
3348 return false;
3349 }
3350 // Apply Patterns
3351 Helper.applySextInRegOfLoad(*State.MIs[0], GIMatchData_matchinfo);
3352 return true;
3353 }
3354 case GICXXCustomAction_GICombiner66:{
3355 RegisterImmPair GIMatchData_matchinfo;
3356 // Match Patterns
3357 if(![&](){return Helper.matchCombineShlOfExtend(*State.MIs[0], GIMatchData_matchinfo);}()) {
3358 return false;
3359 }
3360 // Apply Patterns
3361 Helper.applyCombineShlOfExtend(*State.MIs[0], GIMatchData_matchinfo);
3362 return true;
3363 }
3364 case GICXXCustomAction_GICombiner67:{
3365 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3366 // Match Patterns
3367 if(![&](){return Helper.matchNarrowBinopFeedingAnd(*State.MIs[0], GIMatchData_matchinfo);}()) {
3368 return false;
3369 }
3370 // Apply Patterns
3371 Helper.applyBuildFnNoErase(*State.MIs[0], GIMatchData_matchinfo);
3372 return true;
3373 }
3374 case GICXXCustomAction_GICombiner68:{
3375 unsigned GIMatchData_matchinfo;
3376 // Match Patterns
3377 if(![&](){return Helper.matchConstantSelectCmp(*State.MIs[0], GIMatchData_matchinfo);}()) {
3378 return false;
3379 }
3380 // Apply Patterns
3381 Helper.replaceSingleDefInstWithOperand(*State.MIs[0], GIMatchData_matchinfo);
3382 return true;
3383 }
3384 case GICXXCustomAction_GICombiner69:{
3385 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3386 // Match Patterns
3387 if(![&](){return Helper.matchSelectIMinMax(State.MIs[0]->getOperand(0), GIMatchData_info);}()) {
3388 return false;
3389 }
3390 // Apply Patterns
3391 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_info);
3392 return true;
3393 }
3394 case GICXXCustomAction_GICombiner70:{
3395 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3396 // Match Patterns
3397 if(![&](){return Helper.matchSelect(*State.MIs[0], GIMatchData_matchinfo);}()) {
3398 return false;
3399 }
3400 // Apply Patterns
3401 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3402 return true;
3403 }
3404 case GICXXCustomAction_GICombiner71:{
3405 Register GIMatchData_matchinfo;
3406 // Match Patterns
3407 if(![&](){return Helper.matchRedundantAnd(*State.MIs[0], GIMatchData_matchinfo);}()) {
3408 return false;
3409 }
3410 // Apply Patterns
3411 Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo);
3412 return true;
3413 }
3414 case GICXXCustomAction_GICombiner72:{
3415 // Match Patterns
3416 if(![&](){return Helper.matchRedundantSExtInReg(*State.MIs[0]);}()) {
3417 return false;
3418 }
3419 // Apply Patterns
3420 Helper.replaceSingleDefInstWithOperand(*State.MIs[0], 1);
3421 return true;
3422 }
3423 case GICXXCustomAction_GICombiner73:{
3424 Register GIMatchData_matchinfo;
3425 // Match Patterns
3426 if(![&](){return Helper.matchRedundantOr(*State.MIs[0], GIMatchData_matchinfo);}()) {
3427 return false;
3428 }
3429 // Apply Patterns
3430 Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo);
3431 return true;
3432 }
3433 case GICXXCustomAction_GICombiner74:{
3434 // Match Patterns
3435 if(![&](){return Helper.matchOperandIsKnownToBeAPowerOfTwo(State.MIs[0]->getOperand(2));}()) {
3436 return false;
3437 }
3438 // Apply Patterns
3439 Helper.applySimplifyURemByPow2(*State.MIs[0]);
3440 return true;
3441 }
3442 case GICXXCustomAction_GICombiner75:{
3443 Register GIMatchData_matchinfo;
3444 // Match Patterns
3445 if(![&](){return Helper.matchCombineZextTrunc(*State.MIs[0], GIMatchData_matchinfo);}()) {
3446 return false;
3447 }
3448 // Apply Patterns
3449 Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo);
3450 return true;
3451 }
3452 case GICXXCustomAction_GICombiner76:{
3453 // Match Patterns
3454 if(![&](){unsigned BitWidth = MRI.getType(State.MIs[0]->getOperand(1).getReg()).getScalarSizeInBits();
3455 return Helper.getValueTracking()->maskedValueIsZero(State.MIs[0]->getOperand(1).getReg(),
3456 APInt::getOneBitSet(BitWidth, State.MIs[0]->getOperand(2).getImm() - 1));}()) {
3457 return false;
3458 }
3459 // Apply Patterns
3460 Helper.getBuilder().setInstrAndDebugLoc(*State.MIs[0]);
3461 Helper.getBuilder().buildZExtInReg(State.MIs[0]->getOperand(0), State.MIs[0]->getOperand(1), State.MIs[0]->getOperand(2).getImm());
3462 State.MIs[0]->eraseFromParent();
3463 return true;
3464 }
3465 case GICXXCustomAction_GICombiner77:{
3466 std::pair<MachineInstr*, LLT> GIMatchData_matchinfo;
3467 // Match Patterns
3468 if(![&](){return Helper.matchCombineTruncOfShift(*State.MIs[0], GIMatchData_matchinfo);}()) {
3469 return false;
3470 }
3471 // Apply Patterns
3472 Helper.applyCombineTruncOfShift(*State.MIs[0], GIMatchData_matchinfo);
3473 return true;
3474 }
3475 case GICXXCustomAction_GICombiner78:{
3476 SmallVector<Register> GIMatchData_info;
3477 // Match Patterns
3478 if(![&](){return Helper.matchNotCmp(*State.MIs[0], GIMatchData_info);}()) {
3479 return false;
3480 }
3481 // Apply Patterns
3482 Helper.applyNotCmp(*State.MIs[0], GIMatchData_info);
3483 return true;
3484 }
3485 case GICXXCustomAction_GICombiner79:{
3486 MachineInstr * GIMatchData_matchinfo;
3487 // Match Patterns
3488 if(![&](){return Helper.matchOptBrCondByInvertingCond(*State.MIs[0], GIMatchData_matchinfo);}()) {
3489 return false;
3490 }
3491 // Apply Patterns
3492 Helper.applyOptBrCondByInvertingCond(*State.MIs[0], GIMatchData_matchinfo);
3493 return true;
3494 }
3495 case GICXXCustomAction_GICombiner80:{
3496 // Apply Patterns
3497 Helper.applyCombineConstantFoldFpUnary(*State.MIs[0], State.MIs[1]->getOperand(1).getFPImm());
3498 return true;
3499 }
3500 case GICXXCustomAction_GICombiner81:{
3501 // Apply Patterns
3502 Helper.replaceInstWithFConstant(*State.MIs[0]->getOperand(0).getParent(), 0.0);
3503 return true;
3504 }
3505 case GICXXCustomAction_GICombiner82:{
3506 APInt GIMatchData_info;
3507 // Match Patterns
3508 if(![&](){return Helper.matchCombineConstPtrAddToI2P(*State.MIs[0], GIMatchData_info);}()) {
3509 return false;
3510 }
3511 // Apply Patterns
3512 Helper.applyCombineConstPtrAddToI2P(*State.MIs[0], GIMatchData_info);
3513 return true;
3514 }
3515 case GICXXCustomAction_GICombiner83:{
3516 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3517 // Match Patterns
3518 if(![&](){return Helper.matchOverlappingAnd(*State.MIs[0], GIMatchData_info);}()) {
3519 return false;
3520 }
3521 // Apply Patterns
3522 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3523 return true;
3524 }
3525 case GICXXCustomAction_GICombiner84:{
3526 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3527 // Match Patterns
3528 if(![&](){return Helper.matchMulOBy2(*State.MIs[0], GIMatchData_matchinfo);}()) {
3529 return false;
3530 }
3531 // Apply Patterns
3532 Helper.applyBuildFnNoErase(*State.MIs[0], GIMatchData_matchinfo);
3533 return true;
3534 }
3535 case GICXXCustomAction_GICombiner85:{
3536 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3537 // Match Patterns
3538 if(![&](){return Helper.matchMulOBy0(*State.MIs[0], GIMatchData_matchinfo);}()) {
3539 return false;
3540 }
3541 // Apply Patterns
3542 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3543 return true;
3544 }
3545 case GICXXCustomAction_GICombiner86:{
3546 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3547 // Match Patterns
3548 if(![&](){return Helper.matchAddEToAddO(*State.MIs[0], GIMatchData_matchinfo);}()) {
3549 return false;
3550 }
3551 // Apply Patterns
3552 Helper.applyBuildFnNoErase(*State.MIs[0], GIMatchData_matchinfo);
3553 return true;
3554 }
3555 case GICXXCustomAction_GICombiner87:{
3556 unsigned GIMatchData_info;
3557 // Match Patterns
3558 if(![&](){return Helper.matchCombineFMinMaxNaN(*State.MIs[0], GIMatchData_info);}()) {
3559 return false;
3560 }
3561 // Apply Patterns
3562 Helper.replaceSingleDefInstWithOperand(*State.MIs[0], GIMatchData_info);
3563 return true;
3564 }
3565 case GICXXCustomAction_GICombiner88:{
3566 // Match Patterns
3567 if(![&](){return Helper.matchFPowIExpansion(*State.MIs[0], State.MIs[1]->getOperand(1).getCImm()->getSExtValue());}()) {
3568 return false;
3569 }
3570 // Apply Patterns
3571 Helper.applyExpandFPowI(*State.MIs[0], State.MIs[1]->getOperand(1).getCImm()->getSExtValue());
3572 return true;
3573 }
3574 case GICXXCustomAction_GICombiner89:{
3575 std::pair<Register, Register> GIMatchData_matchinfo;
3576 // Match Patterns
3577 if(![&](){return Helper.matchXorOfAndWithSameReg(*State.MIs[0], GIMatchData_matchinfo);}()) {
3578 return false;
3579 }
3580 // Apply Patterns
3581 Helper.applyXorOfAndWithSameReg(*State.MIs[0], GIMatchData_matchinfo);
3582 return true;
3583 }
3584 case GICXXCustomAction_GICombiner90:{
3585 // Match Patterns
3586 if(![&](){return Helper.matchPtrAddZero(*State.MIs[0]);}()) {
3587 return false;
3588 }
3589 // Apply Patterns
3590 Helper.applyPtrAddZero(*State.MIs[0]);
3591 return true;
3592 }
3593 case GICXXCustomAction_GICombiner91:{
3594 RegisterImmPair GIMatchData_matchinfo;
3595 // Match Patterns
3596 if(![&](){return Helper.matchShiftImmedChain(*State.MIs[0], GIMatchData_matchinfo);}()) {
3597 return false;
3598 }
3599 // Apply Patterns
3600 Helper.applyShiftImmedChain(*State.MIs[0], GIMatchData_matchinfo);
3601 return true;
3602 }
3603 case GICXXCustomAction_GICombiner92:{
3604 ShiftOfShiftedLogic GIMatchData_matchinfo;
3605 // Match Patterns
3606 if(![&](){return Helper.matchShiftOfShiftedLogic(*State.MIs[0], GIMatchData_matchinfo);}()) {
3607 return false;
3608 }
3609 // Apply Patterns
3610 Helper.applyShiftOfShiftedLogic(*State.MIs[0], GIMatchData_matchinfo);
3611 return true;
3612 }
3613 case GICXXCustomAction_GICombiner93:{
3614 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3615 // Match Patterns
3616 if(![&](){return Helper.matchLoadOrCombine(*State.MIs[0], GIMatchData_info);}()) {
3617 return false;
3618 }
3619 // Apply Patterns
3620 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3621 return true;
3622 }
3623 case GICXXCustomAction_GICombiner94:{
3624 MachineInstr * GIMatchData_matchinfo;
3625 // Match Patterns
3626 if(![&](){return Helper.matchCombineDivRem(*State.MIs[0], GIMatchData_matchinfo);}()) {
3627 return false;
3628 }
3629 // Apply Patterns
3630 Helper.applyCombineDivRem(*State.MIs[0], GIMatchData_matchinfo);
3631 return true;
3632 }
3633 case GICXXCustomAction_GICombiner95:{
3634 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3635 // Match Patterns
3636 if(![&](){return Helper.matchOrShiftToFunnelShift(*State.MIs[0], false, GIMatchData_info);}()) {
3637 return false;
3638 }
3639 // Apply Patterns
3640 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3641 return true;
3642 }
3643 case GICXXCustomAction_GICombiner96:{
3644 // Match Patterns
3645 if(![&](){return Helper.matchFunnelShiftToRotate(*State.MIs[0]);}()) {
3646 return false;
3647 }
3648 // Apply Patterns
3649 Helper.applyFunnelShiftToRotate(*State.MIs[0]);
3650 return true;
3651 }
3652 case GICXXCustomAction_GICombiner97:{
3653 // Match Patterns
3654 if(![&](){return Helper.matchConstantLargerBitWidth(*State.MIs[0], 3);}()) {
3655 return false;
3656 }
3657 // Apply Patterns
3658 Helper.applyFunnelShiftConstantModulo(*State.MIs[0]);
3659 return true;
3660 }
3661 case GICXXCustomAction_GICombiner98:{
3662 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3663 // Match Patterns
3664 if(![&](){return Helper.matchCommuteShift(*State.MIs[0], GIMatchData_matchinfo);}()) {
3665 return false;
3666 }
3667 // Apply Patterns
3668 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3669 return true;
3670 }
3671 case GICXXCustomAction_GICombiner99:{
3672 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3673 // Match Patterns
3674 if(![&](){return Helper.matchBitfieldExtractFromSExtInReg(*State.MIs[0], GIMatchData_info);}()) {
3675 return false;
3676 }
3677 // Apply Patterns
3678 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3679 return true;
3680 }
3681 case GICXXCustomAction_GICombiner100:{
3682 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3683 // Match Patterns
3684 if(![&](){return Helper.matchBitfieldExtractFromAnd(*State.MIs[0], GIMatchData_info);}()) {
3685 return false;
3686 }
3687 // Apply Patterns
3688 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3689 return true;
3690 }
3691 case GICXXCustomAction_GICombiner101:{
3692 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3693 // Match Patterns
3694 if(![&](){return Helper.matchBitfieldExtractFromShr(*State.MIs[0], GIMatchData_info);}()) {
3695 return false;
3696 }
3697 // Apply Patterns
3698 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3699 return true;
3700 }
3701 case GICXXCustomAction_GICombiner102:{
3702 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3703 // Match Patterns
3704 if(![&](){return Helper.matchBitfieldExtractFromShrAnd(*State.MIs[0], GIMatchData_info);}()) {
3705 return false;
3706 }
3707 // Apply Patterns
3708 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3709 return true;
3710 }
3711 case GICXXCustomAction_GICombiner103:{
3712 APInt GIMatchData_matchinfo;
3713 // Match Patterns
3714 if(![&](){return Helper.matchConstantFoldBinOp(*State.MIs[0], GIMatchData_matchinfo);}()) {
3715 return false;
3716 }
3717 // Apply Patterns
3718 Helper.replaceInstWithConstant(*State.MIs[0], GIMatchData_matchinfo);
3719 return true;
3720 }
3721 case GICXXCustomAction_GICombiner104:{
3722 ConstantFP* GIMatchData_matchinfo;
3723 // Match Patterns
3724 if(![&](){return Helper.matchConstantFoldFPBinOp(*State.MIs[0], GIMatchData_matchinfo);}()) {
3725 return false;
3726 }
3727 // Apply Patterns
3728 Helper.replaceInstWithFConstant(*State.MIs[0], GIMatchData_matchinfo);
3729 return true;
3730 }
3731 case GICXXCustomAction_GICombiner105:{
3732 ConstantFP* GIMatchData_matchinfo;
3733 // Match Patterns
3734 if(![&](){return Helper.matchConstantFoldFMA(*State.MIs[0], GIMatchData_matchinfo);}()) {
3735 return false;
3736 }
3737 // Apply Patterns
3738 Helper.replaceInstWithFConstant(*State.MIs[0], GIMatchData_matchinfo);
3739 return true;
3740 }
3741 case GICXXCustomAction_GICombiner106:{
3742 APInt GIMatchData_matchinfo;
3743 // Match Patterns
3744 if(![&](){return Helper.matchConstantFoldCastOp(*State.MIs[0], GIMatchData_matchinfo);}()) {
3745 return false;
3746 }
3747 // Apply Patterns
3748 Helper.replaceInstWithConstant(*State.MIs[0], GIMatchData_matchinfo);
3749 return true;
3750 }
3751 case GICXXCustomAction_GICombiner107:{
3752 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3753 // Match Patterns
3754 if(![&](){return Helper.matchConstantFoldUnaryIntOp(*State.MIs[0], GIMatchData_matchinfo);}()) {
3755 return false;
3756 }
3757 // Apply Patterns
3758 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3759 return true;
3760 }
3761 case GICXXCustomAction_GICombiner108:{
3762 // Match Patterns
3763 if(![&](){return Helper.matchUMulHToLShr(*State.MIs[0]);}()) {
3764 return false;
3765 }
3766 // Apply Patterns
3767 Helper.applyUMulHToLShr(*State.MIs[0]);
3768 return true;
3769 }
3770 case GICXXCustomAction_GICombiner109:{
3771 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3772 // Match Patterns
3773 if(![&](){return Helper.matchRedundantNegOperands(*State.MIs[0], GIMatchData_matchinfo);}()) {
3774 return false;
3775 }
3776 // Apply Patterns
3777 Helper.applyBuildFnNoErase(*State.MIs[0], GIMatchData_matchinfo);
3778 return true;
3779 }
3780 case GICXXCustomAction_GICombiner110:{
3781 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3782 // Match Patterns
3783 if(![&](){return Helper.matchAndOrDisjointMask(*State.MIs[0], GIMatchData_info);}()) {
3784 return false;
3785 }
3786 // Apply Patterns
3787 Helper.applyBuildFnNoErase(*State.MIs[0], GIMatchData_info);
3788 return true;
3789 }
3790 case GICXXCustomAction_GICombiner111:{
3791 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3792 // Match Patterns
3793 if(![&](){return Helper.matchCombineFAddFMulToFMadOrFMA(*State.MIs[0],
3794 GIMatchData_info);}()) {
3795 return false;
3796 }
3797 // Apply Patterns
3798 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3799 return true;
3800 }
3801 case GICXXCustomAction_GICombiner112:{
3802 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3803 // Match Patterns
3804 if(![&](){return Helper.matchCombineFAddFpExtFMulToFMadOrFMA(*State.MIs[0],
3805 GIMatchData_info);}()) {
3806 return false;
3807 }
3808 // Apply Patterns
3809 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3810 return true;
3811 }
3812 case GICXXCustomAction_GICombiner113:{
3813 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3814 // Match Patterns
3815 if(![&](){return Helper.matchCombineFAddFMAFMulToFMadOrFMA(*State.MIs[0],
3816 GIMatchData_info);}()) {
3817 return false;
3818 }
3819 // Apply Patterns
3820 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3821 return true;
3822 }
3823 case GICXXCustomAction_GICombiner114:{
3824 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3825 // Match Patterns
3826 if(![&](){return Helper.matchCombineFAddFpExtFMulToFMadOrFMAAggressive(
3827 *State.MIs[0], GIMatchData_info);}()) {
3828 return false;
3829 }
3830 // Apply Patterns
3831 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3832 return true;
3833 }
3834 case GICXXCustomAction_GICombiner115:{
3835 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3836 // Match Patterns
3837 if(![&](){return Helper.matchCombineFSubFMulToFMadOrFMA(*State.MIs[0],
3838 GIMatchData_info);}()) {
3839 return false;
3840 }
3841 // Apply Patterns
3842 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3843 return true;
3844 }
3845 case GICXXCustomAction_GICombiner116:{
3846 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3847 // Match Patterns
3848 if(![&](){return Helper.matchCombineFSubFNegFMulToFMadOrFMA(*State.MIs[0],
3849 GIMatchData_info);}()) {
3850 return false;
3851 }
3852 // Apply Patterns
3853 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3854 return true;
3855 }
3856 case GICXXCustomAction_GICombiner117:{
3857 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3858 // Match Patterns
3859 if(![&](){return Helper.matchCombineFSubFpExtFMulToFMadOrFMA(*State.MIs[0],
3860 GIMatchData_info);}()) {
3861 return false;
3862 }
3863 // Apply Patterns
3864 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3865 return true;
3866 }
3867 case GICXXCustomAction_GICombiner118:{
3868 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3869 // Match Patterns
3870 if(![&](){return Helper.matchCombineFSubFpExtFNegFMulToFMadOrFMA(
3871 *State.MIs[0], GIMatchData_info);}()) {
3872 return false;
3873 }
3874 // Apply Patterns
3875 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3876 return true;
3877 }
3878 case GICXXCustomAction_GICombiner119:{
3879 unsigned GIMatchData_select_op_no;
3880 // Match Patterns
3881 if(![&](){return Helper.matchFoldBinOpIntoSelect(*State.MIs[0], GIMatchData_select_op_no);}()) {
3882 return false;
3883 }
3884 // Apply Patterns
3885 Helper.applyFoldBinOpIntoSelect(*State.MIs[0], GIMatchData_select_op_no);
3886 return true;
3887 }
3888 case GICXXCustomAction_GICombiner120:{
3889 // Match Patterns
3890 if(![&](){return Helper.matchOperandIsKnownToBeAPowerOfTwo(State.MIs[0]->getOperand(2),
3891 /*OrNegative=*/true);}()) {
3892 return false;
3893 }
3894 // Apply Patterns
3895 Helper.applySimplifySRemByPow2(*State.MIs[0]);
3896 return true;
3897 }
3898 case GICXXCustomAction_GICombiner121:{
3899 // Match Patterns
3900 if(![&](){return Helper.matchUDivOrURemByConst(*State.MIs[0]);}()) {
3901 return false;
3902 }
3903 // Apply Patterns
3904 Helper.applyUDivOrURemByConst(*State.MIs[0]);
3905 return true;
3906 }
3907 case GICXXCustomAction_GICombiner122:{
3908 // Match Patterns
3909 if(![&](){return Helper.matchSDivOrSRemByConst(*State.MIs[0]);}()) {
3910 return false;
3911 }
3912 // Apply Patterns
3913 Helper.applySDivOrSRemByConst(*State.MIs[0]);
3914 return true;
3915 }
3916 case GICXXCustomAction_GICombiner123:{
3917 // Match Patterns
3918 if(![&](){return Helper.matchDivByPow2(*State.MIs[0], /*IsSigned=*/false);}()) {
3919 return false;
3920 }
3921 // Apply Patterns
3922 Helper.applyUDivByPow2(*State.MIs[0]);
3923 return true;
3924 }
3925 case GICXXCustomAction_GICombiner124:{
3926 // Match Patterns
3927 if(![&](){return Helper.matchDivByPow2(*State.MIs[0], /*IsSigned=*/true);}()) {
3928 return false;
3929 }
3930 // Apply Patterns
3931 Helper.applySDivByPow2(*State.MIs[0]);
3932 return true;
3933 }
3934 case GICXXCustomAction_GICombiner125:{
3935 SmallVector<MachineInstr *> GIMatchData_matchinfo;
3936 // Match Patterns
3937 if(![&](){return Helper.matchRepeatedFPDivisor(*State.MIs[0], GIMatchData_matchinfo);}()) {
3938 return false;
3939 }
3940 // Apply Patterns
3941 Helper.applyRepeatedFPDivisor(GIMatchData_matchinfo);
3942 return true;
3943 }
3944 case GICXXCustomAction_GICombiner126:{
3945 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3946 // Match Patterns
3947 if(![&](){return Helper.matchSubAddSameReg(*State.MIs[0], GIMatchData_matchinfo);}()) {
3948 return false;
3949 }
3950 // Apply Patterns
3951 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3952 return true;
3953 }
3954 case GICXXCustomAction_GICombiner127:{
3955 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3956 // Match Patterns
3957 if(![&](){return Helper.matchSimplifySelectToMinMax(*State.MIs[0], GIMatchData_info);}()) {
3958 return false;
3959 }
3960 // Apply Patterns
3961 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3962 return true;
3963 }
3964 case GICXXCustomAction_GICombiner128:{
3965 Register GIMatchData_matchinfo;
3966 // Match Patterns
3967 if(![&](){return Helper.matchFsubToFneg(*State.MIs[0], GIMatchData_matchinfo);}()) {
3968 return false;
3969 }
3970 // Apply Patterns
3971 Helper.applyFsubToFneg(*State.MIs[0], GIMatchData_matchinfo);
3972 return true;
3973 }
3974 case GICXXCustomAction_GICombiner129:{
3975 // Match Patterns
3976 if(![&](){return Helper.matchCommuteConstantToRHS(*State.MIs[0]);}()) {
3977 return false;
3978 }
3979 // Apply Patterns
3980 Helper.applyCommuteBinOpOperands(*State.MIs[0]);
3981 return true;
3982 }
3983 case GICXXCustomAction_GICombiner130:{
3984 // Match Patterns
3985 if(![&](){return Helper.matchCommuteFPConstantToRHS(*State.MIs[0]);}()) {
3986 return false;
3987 }
3988 // Apply Patterns
3989 Helper.applyCommuteBinOpOperands(*State.MIs[0]);
3990 return true;
3991 }
3992 case GICXXCustomAction_GICombiner131:{
3993 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3994 // Match Patterns
3995 if(![&](){return Helper.matchAnd(*State.MIs[0], GIMatchData_matchinfo);}()) {
3996 return false;
3997 }
3998 // Apply Patterns
3999 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4000 return true;
4001 }
4002 case GICXXCustomAction_GICombiner132:{
4003 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4004 // Match Patterns
4005 if(![&](){return Helper.matchOr(*State.MIs[0], GIMatchData_matchinfo);}()) {
4006 return false;
4007 }
4008 // Apply Patterns
4009 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4010 return true;
4011 }
4012 case GICXXCustomAction_GICombiner133:{
4013 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4014 // Match Patterns
4015 if(![&](){return Helper.matchSimplifyNegMinMax(*State.MIs[0], GIMatchData_matchinfo);}()) {
4016 return false;
4017 }
4018 // Apply Patterns
4019 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4020 return true;
4021 }
4022 case GICXXCustomAction_GICombiner134:{
4023 SmallVector<Register> GIMatchData_matchinfo;
4024 // Match Patterns
4025 if(![&](){return Helper.matchCombineConcatVectors(*State.MIs[0], GIMatchData_matchinfo);}()) {
4026 return false;
4027 }
4028 // Apply Patterns
4029 Helper.applyCombineConcatVectors(*State.MIs[0], GIMatchData_matchinfo);
4030 return true;
4031 }
4032 case GICXXCustomAction_GICombiner135:{
4033 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4034 // Match Patterns
4035 if(![&](){return Helper.matchSextOfTrunc(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
4036 return false;
4037 }
4038 // Apply Patterns
4039 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
4040 return true;
4041 }
4042 case GICXXCustomAction_GICombiner136:{
4043 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4044 // Match Patterns
4045 if(![&](){return Helper.matchZextOfTrunc(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
4046 return false;
4047 }
4048 // Apply Patterns
4049 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
4050 return true;
4051 }
4052 case GICXXCustomAction_GICombiner137:{
4053 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4054 // Match Patterns
4055 if(![&](){return Helper.matchNonNegZext(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
4056 return false;
4057 }
4058 // Apply Patterns
4059 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
4060 return true;
4061 }
4062 case GICXXCustomAction_GICombiner138:{
4063 SmallVector<Register> GIMatchData_matchinfo;
4064 // Match Patterns
4065 if(![&](){return Helper.matchCombineShuffleConcat(*State.MIs[0], GIMatchData_matchinfo);}()) {
4066 return false;
4067 }
4068 // Apply Patterns
4069 Helper.applyCombineShuffleConcat(*State.MIs[0], GIMatchData_matchinfo);
4070 return true;
4071 }
4072 case GICXXCustomAction_GICombiner139:{
4073 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4074 // Match Patterns
4075 if(![&](){return Helper.matchShuffleUndefRHS(*State.MIs[0], GIMatchData_matchinfo);}()) {
4076 return false;
4077 }
4078 // Apply Patterns
4079 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4080 return true;
4081 }
4082 case GICXXCustomAction_GICombiner140:{
4083 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4084 // Match Patterns
4085 if(![&](){return Helper.matchShuffleDisjointMask(*State.MIs[0], GIMatchData_matchinfo);}()) {
4086 return false;
4087 }
4088 // Apply Patterns
4089 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4090 return true;
4091 }
4092 case GICXXCustomAction_GICombiner141:{
4093 Register GIMatchData_matchinfo;
4094 // Match Patterns
4095 if(![&](){return Helper.matchUseVectorTruncate(*State.MIs[0], GIMatchData_matchinfo);}()) {
4096 return false;
4097 }
4098 // Apply Patterns
4099 Helper.applyUseVectorTruncate(*State.MIs[0], GIMatchData_matchinfo);
4100 return true;
4101 }
4102 case GICXXCustomAction_GICombiner142:{
4103 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4104 // Match Patterns
4105 if(![&](){return Helper.matchUnmergeValuesAnyExtBuildVector(*State.MIs[0], GIMatchData_matchinfo);}()) {
4106 return false;
4107 }
4108 // Apply Patterns
4109 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4110 return true;
4111 }
4112 case GICXXCustomAction_GICombiner143:{
4113 SmallVector<Register> GIMatchData_info;
4114 // Match Patterns
4115 if(![&](){return Helper.matchCombineUnmergeMergeToPlainValues(*State.MIs[0], GIMatchData_info);}()) {
4116 return false;
4117 }
4118 // Apply Patterns
4119 Helper.applyCombineUnmergeMergeToPlainValues(*State.MIs[0], GIMatchData_info);
4120 return true;
4121 }
4122 case GICXXCustomAction_GICombiner144:{
4123 Register GIMatchData_src;
4124 // Match Patterns
4125 if(![&](){// Check if first source comes from G_UNMERGE_VALUES.
4126 Register FirstMergeSrc = getRemainingOperands(*State.MIs[0], 1)[0].getReg();
4127 MachineInstr *UnmergeMI = MRI.getVRegDef(FirstMergeSrc);
4128 if (!UnmergeMI || UnmergeMI->getOpcode() != TargetOpcode::G_UNMERGE_VALUES)
4129 return false;
4130
4131 // Check counts match.
4132 unsigned NumMergeSrcs = getRemainingOperands(*State.MIs[0], 1).size();
4133 unsigned NumUnmergeDefs = UnmergeMI->getNumDefs();
4134 if (NumMergeSrcs != NumUnmergeDefs)
4135 return false;
4136
4137 // Verify all merge sources match unmerge defs in order.
4138 for (unsigned I = 0; I < NumMergeSrcs; ++I) {
4139 Register MergeSrc = getRemainingOperands(*State.MIs[0], 1)[I].getReg();
4140 Register UnmergeDef = UnmergeMI->getOperand(I).getReg();
4141
4142 if (MergeSrc != UnmergeDef)
4143 return false;
4144
4145 if (!MRI.hasOneNonDBGUse(MergeSrc))
4146 return false;
4147 }
4148
4149 // Check size compatibility.
4150 GIMatchData_src = UnmergeMI->getOperand(NumUnmergeDefs).getReg();
4151 LLT SrcTy = MRI.getType(GIMatchData_src);
4152 LLT DstTy = MRI.getType(State.MIs[0]->getOperand(0).getReg());
4153 if (SrcTy.getSizeInBits() != DstTy.getSizeInBits())
4154 return false;
4155
4156 // Check bitcast legality.
4157 if (SrcTy != DstTy) {
4158 std::array<LLT, 2> Types = {{DstTy, SrcTy}};
4159 LegalityQuery Query(TargetOpcode::G_BITCAST, Types);
4160 if (!Helper.isLegalOrBeforeLegalizer(Query))
4161 return false;
4162 }
4163
4164 return true;}()) {
4165 return false;
4166 }
4167 // Apply Patterns
4168 LLT SrcTy = MRI.getType(GIMatchData_src);
4169 LLT DstTy = MRI.getType(State.MIs[0]->getOperand(0).getReg());
4170
4171 Helper.getBuilder().setInstrAndDebugLoc(*State.MIs[0]);
4172
4173 if (SrcTy == DstTy) {
4174 Helper.replaceRegWith(MRI, State.MIs[0]->getOperand(0).getReg(), GIMatchData_src);
4175 } else {
4176 Helper.getBuilder().buildBitcast(State.MIs[0]->getOperand(0).getReg(), GIMatchData_src);
4177 }
4178
4179 State.MIs[0]->eraseFromParent();
4180 return true;
4181 }
4182 case GICXXCustomAction_GICombiner145:{
4183 SmallVector<APInt, 8> GIMatchData_info;
4184 // Match Patterns
4185 if(![&](){return Helper.matchCombineUnmergeConstant(*State.MIs[0], GIMatchData_info);}()) {
4186 return false;
4187 }
4188 // Apply Patterns
4189 Helper.applyCombineUnmergeConstant(*State.MIs[0], GIMatchData_info);
4190 return true;
4191 }
4192 case GICXXCustomAction_GICombiner146:{
4193 std::function<void(MachineIRBuilder &)> GIMatchData_info;
4194 // Match Patterns
4195 if(![&](){return Helper.matchCombineUnmergeUndef(*State.MIs[0], GIMatchData_info);}()) {
4196 return false;
4197 }
4198 // Apply Patterns
4199 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
4200 return true;
4201 }
4202 case GICXXCustomAction_GICombiner147:{
4203 // Match Patterns
4204 if(![&](){return Helper.matchCombineUnmergeWithDeadLanesToTrunc(*State.MIs[0]);}()) {
4205 return false;
4206 }
4207 // Apply Patterns
4208 Helper.applyCombineUnmergeWithDeadLanesToTrunc(*State.MIs[0]);
4209 return true;
4210 }
4211 case GICXXCustomAction_GICombiner148:{
4212 // Match Patterns
4213 if(![&](){return Helper.matchCombineUnmergeZExtToZExt(*State.MIs[0]);}()) {
4214 return false;
4215 }
4216 // Apply Patterns
4217 Helper.applyCombineUnmergeZExtToZExt(*State.MIs[0]);
4218 return true;
4219 }
4220 case GICXXCustomAction_GICombiner149:{
4221 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4222 // Match Patterns
4223 if(![&](){return Helper.matchMergeXAndUndef(*State.MIs[0], GIMatchData_matchinfo);}()) {
4224 return false;
4225 }
4226 // Apply Patterns
4227 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4228 return true;
4229 }
4230 case GICXXCustomAction_GICombiner150:{
4231 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4232 // Match Patterns
4233 if(![&](){return Helper.matchMergeXAndZero(*State.MIs[0], GIMatchData_matchinfo);}()) {
4234 return false;
4235 }
4236 // Apply Patterns
4237 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4238 return true;
4239 }
4240 case GICXXCustomAction_GICombiner151:{
4241 Register GIMatchData_unmergeSrc;
4242 // Match Patterns
4243 if(![&](){return Helper.matchCombineBuildUnmerge(*State.MIs[0], MRI, GIMatchData_unmergeSrc);}()) {
4244 return false;
4245 }
4246 // Apply Patterns
4247 Helper.applyCombineBuildUnmerge(*State.MIs[0], MRI, B, GIMatchData_unmergeSrc);
4248 return true;
4249 }
4250 case GICXXCustomAction_GICombiner152:{
4251 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4252 // Match Patterns
4253 if(![&](){return Helper.matchAddOverflow(*State.MIs[0], GIMatchData_matchinfo);}()) {
4254 return false;
4255 }
4256 // Apply Patterns
4257 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4258 return true;
4259 }
4260 case GICXXCustomAction_GICombiner153:{
4261 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4262 // Match Patterns
4263 if(![&](){return Helper.matchSuboCarryOut(*State.MIs[0], GIMatchData_matchinfo);}()) {
4264 return false;
4265 }
4266 // Apply Patterns
4267 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4268 return true;
4269 }
4270 case GICXXCustomAction_GICombiner154:{
4271 Register GIMatchData_matchinfo;
4272 // Match Patterns
4273 if(![&](){return Helper.matchTruncSSatS(*State.MIs[0], GIMatchData_matchinfo);}()) {
4274 return false;
4275 }
4276 // Apply Patterns
4277 Helper.applyTruncSSatS(*State.MIs[0], GIMatchData_matchinfo);
4278 return true;
4279 }
4280 case GICXXCustomAction_GICombiner155:{
4281 Register GIMatchData_matchinfo;
4282 // Match Patterns
4283 if(![&](){return Helper.matchTruncSSatU(*State.MIs[0], GIMatchData_matchinfo);}()) {
4284 return false;
4285 }
4286 // Apply Patterns
4287 Helper.applyTruncSSatU(*State.MIs[0], GIMatchData_matchinfo);
4288 return true;
4289 }
4290 case GICXXCustomAction_GICombiner156:{
4291 LshrOfTruncOfLshr GIMatchData_matchinfo;
4292 // Match Patterns
4293 if(![&](){return Helper.matchLshrOfTruncOfLshr(*State.MIs[0], GIMatchData_matchinfo, *State.MIs[2]);}()) {
4294 return false;
4295 }
4296 // Apply Patterns
4297 Helper.applyLshrOfTruncOfLshr(*State.MIs[0], GIMatchData_matchinfo);
4298 return true;
4299 }
4300 case GICXXCustomAction_GICombiner157:{
4301 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4302 // Match Patterns
4303 if(![&](){return Helper.matchCtls(*State.MIs[0], GIMatchData_matchinfo);}()) {
4304 return false;
4305 }
4306 // Apply Patterns
4307 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4308 return true;
4309 }
4310 case GICXXCustomAction_GICombiner158:{
4311 // Match Patterns
4312 if(![&](){return Helper.matchCountZeroToZeroPoison(*State.MIs[0]);}()) {
4313 return false;
4314 }
4315 // Apply Patterns
4316 Helper.applyCountZeroToZeroPoison(*State.MIs[0]);
4317 return true;
4318 }
4319 case GICXXCustomAction_GICombiner159:{
4320 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4321 // Match Patterns
4322 if(![&](){return Helper.matchBinopWithNeg(*State.MIs[0], GIMatchData_matchinfo);}()) {
4323 return false;
4324 }
4325 // Apply Patterns
4326 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4327 return true;
4328 }
4329 case GICXXCustomAction_GICombiner160:{
4330 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4331 // Match Patterns
4332 if(![&](){return Helper.matchCombineFmulWithSelectToFldexp(*State.MIs[0], *State.MIs[1], GIMatchData_matchinfo);}()) {
4333 return false;
4334 }
4335 // Apply Patterns
4336 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4337 return true;
4338 }
4339 case GICXXCustomAction_GICombiner161:{
4340 ClampI64ToI16MatchInfo GIMatchData_matchinfo;
4341 // Match Patterns
4342 if(![&](){return matchClampI64ToI16(*State.MIs[0], MRI, MF, GIMatchData_matchinfo);}()) {
4343 return false;
4344 }
4345 // Apply Patterns
4346 applyClampI64ToI16(*State.MIs[0], GIMatchData_matchinfo);
4347 return true;
4348 }
4349 case GICXXCustomAction_GICombiner162:{
4350 MachineInstr * GIMatchData_matchinfo;
4351 // Match Patterns
4352 if(![&](){return Helper.matchFoldableFneg(*State.MIs[0], GIMatchData_matchinfo);}()) {
4353 return false;
4354 }
4355 // Apply Patterns
4356 Helper.applyFoldableFneg(*State.MIs[0], GIMatchData_matchinfo);
4357 return true;
4358 }
4359 case GICXXCustomAction_GICombiner163:{
4360 // Match Patterns
4361 if(![&](){return Helper.matchFoldFAbsFptrunc(*State.MIs[0], *State.MIs[1]);}()) {
4362 return false;
4363 }
4364 // Apply Patterns
4365 Helper.applyFoldFAbsFptrunc(*State.MIs[0], *State.MIs[1]);
4366 return true;
4367 }
4368 case GICXXCustomAction_GICombiner164:{
4369 SmallVector<Register> GIMatchData_matchinfo;
4370 // Match Patterns
4371 if(![&](){return Helper.matchCombineShuffleVector(*State.MIs[0], GIMatchData_matchinfo);}()) {
4372 return false;
4373 }
4374 // Apply Patterns
4375 Helper.applyCombineShuffleVector(*State.MIs[0], GIMatchData_matchinfo);
4376 return true;
4377 }
4378 case GICXXCustomAction_GICombiner165:{
4379 // Apply Patterns
4380 Helper.applyCombineShuffleToBuildVector(*State.MIs[0]);
4381 return true;
4382 }
4383 }
4384 llvm_unreachable("Unknown Apply Action");
4385}
4386#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
4387#define GIMT_Encode2(Val) uint8_t(Val), uint8_t((Val) >> 8)
4388#define GIMT_Encode4(Val) uint8_t(Val), uint8_t((Val) >> 8), uint8_t((Val) >> 16), uint8_t((Val) >> 24)
4389#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)
4390#else
4391#define GIMT_Encode2(Val) uint8_t((Val) >> 8), uint8_t(Val)
4392#define GIMT_Encode4(Val) uint8_t((Val) >> 24), uint8_t((Val) >> 16), uint8_t((Val) >> 8), uint8_t(Val)
4393#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)
4394#endif
4395const uint8_t *AMDGPUPreLegalizerCombinerImpl::getMatchTable() const {
4396 constexpr static uint8_t MatchTable0[] = {
4397 /* 0 */ GIM_SwitchOpcode, /*MI*/0, /*[*/GIMT_Encode2(20), GIMT_Encode2(285), /*)*//*default:*//*Label 113*/ GIMT_Encode4(10562),
4398 /* 10 */ /*TargetOpcode::COPY*//*Label 0*/ GIMT_Encode4(1070), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4399 /* 150 */ /*TargetOpcode::G_ADD*//*Label 1*/ GIMT_Encode4(1082),
4400 /* 154 */ /*TargetOpcode::G_SUB*//*Label 2*/ GIMT_Encode4(1815),
4401 /* 158 */ /*TargetOpcode::G_MUL*//*Label 3*/ GIMT_Encode4(2796),
4402 /* 162 */ /*TargetOpcode::G_SDIV*//*Label 4*/ GIMT_Encode4(3002),
4403 /* 166 */ /*TargetOpcode::G_UDIV*//*Label 5*/ GIMT_Encode4(3104),
4404 /* 170 */ /*TargetOpcode::G_SREM*//*Label 6*/ GIMT_Encode4(3217),
4405 /* 174 */ /*TargetOpcode::G_UREM*//*Label 7*/ GIMT_Encode4(3313), GIMT_Encode4(0), GIMT_Encode4(0),
4406 /* 186 */ /*TargetOpcode::G_AND*//*Label 8*/ GIMT_Encode4(3420),
4407 /* 190 */ /*TargetOpcode::G_OR*//*Label 9*/ GIMT_Encode4(3961),
4408 /* 194 */ /*TargetOpcode::G_XOR*//*Label 10*/ GIMT_Encode4(5064), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4409 /* 226 */ /*TargetOpcode::G_PHI*//*Label 11*/ GIMT_Encode4(5275), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4410 /* 250 */ /*TargetOpcode::G_UNMERGE_VALUES*//*Label 12*/ GIMT_Encode4(5287), GIMT_Encode4(0),
4411 /* 258 */ /*TargetOpcode::G_MERGE_VALUES*//*Label 13*/ GIMT_Encode4(5354),
4412 /* 262 */ /*TargetOpcode::G_BUILD_VECTOR*//*Label 14*/ GIMT_Encode4(5431),
4413 /* 266 */ /*TargetOpcode::G_BUILD_VECTOR_TRUNC*//*Label 15*/ GIMT_Encode4(5496),
4414 /* 270 */ /*TargetOpcode::G_CONCAT_VECTORS*//*Label 16*/ GIMT_Encode4(5508),
4415 /* 274 */ /*TargetOpcode::G_PTRTOINT*//*Label 17*/ GIMT_Encode4(5520),
4416 /* 278 */ /*TargetOpcode::G_INTTOPTR*//*Label 18*/ GIMT_Encode4(5563),
4417 /* 282 */ /*TargetOpcode::G_BITCAST*//*Label 19*/ GIMT_Encode4(5596),
4418 /* 286 */ /*TargetOpcode::G_FREEZE*//*Label 20*/ GIMT_Encode4(5671), GIMT_Encode4(0), GIMT_Encode4(0),
4419 /* 298 */ /*TargetOpcode::G_INTRINSIC_TRUNC*//*Label 21*/ GIMT_Encode4(5735),
4420 /* 302 */ /*TargetOpcode::G_INTRINSIC_ROUND*//*Label 22*/ GIMT_Encode4(5757), GIMT_Encode4(0), GIMT_Encode4(0),
4421 /* 314 */ /*TargetOpcode::G_INTRINSIC_ROUNDEVEN*//*Label 23*/ GIMT_Encode4(5779), GIMT_Encode4(0), GIMT_Encode4(0),
4422 /* 326 */ /*TargetOpcode::G_LOAD*//*Label 24*/ GIMT_Encode4(5801),
4423 /* 330 */ /*TargetOpcode::G_SEXTLOAD*//*Label 25*/ GIMT_Encode4(5813),
4424 /* 334 */ /*TargetOpcode::G_ZEXTLOAD*//*Label 26*/ GIMT_Encode4(5825), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4425 /* 354 */ /*TargetOpcode::G_STORE*//*Label 27*/ GIMT_Encode4(5837), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4426 /* 502 */ /*TargetOpcode::G_ANYEXT*//*Label 28*/ GIMT_Encode4(5849),
4427 /* 506 */ /*TargetOpcode::G_TRUNC*//*Label 29*/ GIMT_Encode4(5977), GIMT_Encode4(0), GIMT_Encode4(0),
4428 /* 518 */ /*TargetOpcode::G_TRUNC_USAT_U*//*Label 30*/ GIMT_Encode4(6400), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4429 /* 538 */ /*TargetOpcode::G_SEXT*//*Label 31*/ GIMT_Encode4(6433),
4430 /* 542 */ /*TargetOpcode::G_SEXT_INREG*//*Label 32*/ GIMT_Encode4(6508),
4431 /* 546 */ /*TargetOpcode::G_ZEXT*//*Label 33*/ GIMT_Encode4(6574),
4432 /* 550 */ /*TargetOpcode::G_SHL*//*Label 34*/ GIMT_Encode4(6704),
4433 /* 554 */ /*TargetOpcode::G_LSHR*//*Label 35*/ GIMT_Encode4(6902),
4434 /* 558 */ /*TargetOpcode::G_ASHR*//*Label 36*/ GIMT_Encode4(7249),
4435 /* 562 */ /*TargetOpcode::G_FSHL*//*Label 37*/ GIMT_Encode4(7578),
4436 /* 566 */ /*TargetOpcode::G_FSHR*//*Label 38*/ GIMT_Encode4(7621),
4437 /* 570 */ /*TargetOpcode::G_ROTR*//*Label 39*/ GIMT_Encode4(7664),
4438 /* 574 */ /*TargetOpcode::G_ROTL*//*Label 40*/ GIMT_Encode4(7688),
4439 /* 578 */ /*TargetOpcode::G_ICMP*//*Label 41*/ GIMT_Encode4(7712),
4440 /* 582 */ /*TargetOpcode::G_FCMP*//*Label 42*/ GIMT_Encode4(7757), GIMT_Encode4(0), GIMT_Encode4(0),
4441 /* 594 */ /*TargetOpcode::G_SELECT*//*Label 43*/ GIMT_Encode4(7769),
4442 /* 598 */ /*TargetOpcode::G_UADDO*//*Label 44*/ GIMT_Encode4(7949),
4443 /* 602 */ /*TargetOpcode::G_UADDE*//*Label 45*/ GIMT_Encode4(7972),
4444 /* 606 */ /*TargetOpcode::G_USUBO*//*Label 46*/ GIMT_Encode4(7984),
4445 /* 610 */ /*TargetOpcode::G_USUBE*//*Label 47*/ GIMT_Encode4(7996),
4446 /* 614 */ /*TargetOpcode::G_SADDO*//*Label 48*/ GIMT_Encode4(8008),
4447 /* 618 */ /*TargetOpcode::G_SADDE*//*Label 49*/ GIMT_Encode4(8031),
4448 /* 622 */ /*TargetOpcode::G_SSUBO*//*Label 50*/ GIMT_Encode4(8043),
4449 /* 626 */ /*TargetOpcode::G_SSUBE*//*Label 51*/ GIMT_Encode4(8055),
4450 /* 630 */ /*TargetOpcode::G_UMULO*//*Label 52*/ GIMT_Encode4(8067),
4451 /* 634 */ /*TargetOpcode::G_SMULO*//*Label 53*/ GIMT_Encode4(8101),
4452 /* 638 */ /*TargetOpcode::G_UMULH*//*Label 54*/ GIMT_Encode4(8135),
4453 /* 642 */ /*TargetOpcode::G_SMULH*//*Label 55*/ GIMT_Encode4(8158),
4454 /* 646 */ /*TargetOpcode::G_UADDSAT*//*Label 56*/ GIMT_Encode4(8170),
4455 /* 650 */ /*TargetOpcode::G_SADDSAT*//*Label 57*/ GIMT_Encode4(8182), GIMT_Encode4(0), GIMT_Encode4(0),
4456 /* 662 */ /*TargetOpcode::G_USHLSAT*//*Label 58*/ GIMT_Encode4(8194),
4457 /* 666 */ /*TargetOpcode::G_SSHLSAT*//*Label 59*/ GIMT_Encode4(8217),
4458 /* 670 */ /*TargetOpcode::G_SMULFIX*//*Label 60*/ GIMT_Encode4(8240),
4459 /* 674 */ /*TargetOpcode::G_UMULFIX*//*Label 61*/ GIMT_Encode4(8252),
4460 /* 678 */ /*TargetOpcode::G_SMULFIXSAT*//*Label 62*/ GIMT_Encode4(8264),
4461 /* 682 */ /*TargetOpcode::G_UMULFIXSAT*//*Label 63*/ GIMT_Encode4(8276), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4462 /* 702 */ /*TargetOpcode::G_FADD*//*Label 64*/ GIMT_Encode4(8288),
4463 /* 706 */ /*TargetOpcode::G_FSUB*//*Label 65*/ GIMT_Encode4(8429),
4464 /* 710 */ /*TargetOpcode::G_FMUL*//*Label 66*/ GIMT_Encode4(8518),
4465 /* 714 */ /*TargetOpcode::G_FMA*//*Label 67*/ GIMT_Encode4(8627),
4466 /* 718 */ /*TargetOpcode::G_FMAD*//*Label 68*/ GIMT_Encode4(8650),
4467 /* 722 */ /*TargetOpcode::G_FDIV*//*Label 69*/ GIMT_Encode4(8673),
4468 /* 726 */ /*TargetOpcode::G_FREM*//*Label 70*/ GIMT_Encode4(8718), GIMT_Encode4(0), GIMT_Encode4(0),
4469 /* 738 */ /*TargetOpcode::G_FPOWI*//*Label 71*/ GIMT_Encode4(8741), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4470 /* 758 */ /*TargetOpcode::G_FLOG2*//*Label 72*/ GIMT_Encode4(8763), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4471 /* 774 */ /*TargetOpcode::G_FNEG*//*Label 73*/ GIMT_Encode4(8785),
4472 /* 778 */ /*TargetOpcode::G_FPEXT*//*Label 74*/ GIMT_Encode4(8847),
4473 /* 782 */ /*TargetOpcode::G_FPTRUNC*//*Label 75*/ GIMT_Encode4(8869),
4474 /* 786 */ /*TargetOpcode::G_FPTOSI*//*Label 76*/ GIMT_Encode4(8912),
4475 /* 790 */ /*TargetOpcode::G_FPTOUI*//*Label 77*/ GIMT_Encode4(8934),
4476 /* 794 */ /*TargetOpcode::G_SITOFP*//*Label 78*/ GIMT_Encode4(8956),
4477 /* 798 */ /*TargetOpcode::G_UITOFP*//*Label 79*/ GIMT_Encode4(8983), GIMT_Encode4(0), GIMT_Encode4(0),
4478 /* 810 */ /*TargetOpcode::G_FABS*//*Label 80*/ GIMT_Encode4(9010),
4479 /* 814 */ /*TargetOpcode::G_FCOPYSIGN*//*Label 81*/ GIMT_Encode4(9110), GIMT_Encode4(0),
4480 /* 822 */ /*TargetOpcode::G_FCANONICALIZE*//*Label 82*/ GIMT_Encode4(9122),
4481 /* 826 */ /*TargetOpcode::G_FMINNUM*//*Label 83*/ GIMT_Encode4(9152),
4482 /* 830 */ /*TargetOpcode::G_FMAXNUM*//*Label 84*/ GIMT_Encode4(9197),
4483 /* 834 */ /*TargetOpcode::G_FMINNUM_IEEE*//*Label 85*/ GIMT_Encode4(9242),
4484 /* 838 */ /*TargetOpcode::G_FMAXNUM_IEEE*//*Label 86*/ GIMT_Encode4(9254),
4485 /* 842 */ /*TargetOpcode::G_FMINIMUM*//*Label 87*/ GIMT_Encode4(9266),
4486 /* 846 */ /*TargetOpcode::G_FMAXIMUM*//*Label 88*/ GIMT_Encode4(9311),
4487 /* 850 */ /*TargetOpcode::G_FMINIMUMNUM*//*Label 89*/ GIMT_Encode4(9356),
4488 /* 854 */ /*TargetOpcode::G_FMAXIMUMNUM*//*Label 90*/ GIMT_Encode4(9368), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4489 /* 890 */ /*TargetOpcode::G_PTR_ADD*//*Label 91*/ GIMT_Encode4(9380), GIMT_Encode4(0),
4490 /* 898 */ /*TargetOpcode::G_SMIN*//*Label 92*/ GIMT_Encode4(9470),
4491 /* 902 */ /*TargetOpcode::G_SMAX*//*Label 93*/ GIMT_Encode4(9504),
4492 /* 906 */ /*TargetOpcode::G_UMIN*//*Label 94*/ GIMT_Encode4(9538),
4493 /* 910 */ /*TargetOpcode::G_UMAX*//*Label 95*/ GIMT_Encode4(9572),
4494 /* 914 */ /*TargetOpcode::G_ABS*//*Label 96*/ GIMT_Encode4(9606), GIMT_Encode4(0), GIMT_Encode4(0),
4495 /* 926 */ /*TargetOpcode::G_BR*//*Label 97*/ GIMT_Encode4(9629), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4496 /* 946 */ /*TargetOpcode::G_INSERT_VECTOR_ELT*//*Label 98*/ GIMT_Encode4(9641),
4497 /* 950 */ /*TargetOpcode::G_EXTRACT_VECTOR_ELT*//*Label 99*/ GIMT_Encode4(9771),
4498 /* 954 */ /*TargetOpcode::G_SHUFFLE_VECTOR*//*Label 100*/ GIMT_Encode4(10148), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4499 /* 970 */ /*TargetOpcode::G_CTTZ*//*Label 101*/ GIMT_Encode4(10236),
4500 /* 974 */ /*TargetOpcode::G_CTTZ_ZERO_POISON*//*Label 102*/ GIMT_Encode4(10259),
4501 /* 978 */ /*TargetOpcode::G_CTLZ*//*Label 103*/ GIMT_Encode4(10271),
4502 /* 982 */ /*TargetOpcode::G_CTLZ_ZERO_POISON*//*Label 104*/ GIMT_Encode4(10305), GIMT_Encode4(0),
4503 /* 990 */ /*TargetOpcode::G_CTPOP*//*Label 105*/ GIMT_Encode4(10328),
4504 /* 994 */ /*TargetOpcode::G_BSWAP*//*Label 106*/ GIMT_Encode4(10340),
4505 /* 998 */ /*TargetOpcode::G_BITREVERSE*//*Label 107*/ GIMT_Encode4(10352), GIMT_Encode4(0),
4506 /* 1006 */ /*TargetOpcode::G_FCEIL*//*Label 108*/ GIMT_Encode4(10452), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4507 /* 1054 */ /*TargetOpcode::G_FSQRT*//*Label 109*/ GIMT_Encode4(10474),
4508 /* 1058 */ /*TargetOpcode::G_FFLOOR*//*Label 110*/ GIMT_Encode4(10496),
4509 /* 1062 */ /*TargetOpcode::G_FRINT*//*Label 111*/ GIMT_Encode4(10518),
4510 /* 1066 */ /*TargetOpcode::G_FNEARBYINT*//*Label 112*/ GIMT_Encode4(10540),
4511 /* 1070 */ // Label 0: @1070
4512 /* 1070 */ GIM_Try, /*On fail goto*//*Label 114*/ GIMT_Encode4(1081), // Rule ID 19 //
4513 /* 1075 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule19Enabled),
4514 /* 1078 */ // MIs[0] d
4515 /* 1078 */ // No operand predicates
4516 /* 1078 */ // MIs[0] s
4517 /* 1078 */ // No operand predicates
4518 /* 1078 */ // Combiner Rule #19: copy_prop
4519 /* 1078 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner5),
4520 /* 1081 */ // Label 114: @1081
4521 /* 1081 */ GIM_Reject,
4522 /* 1082 */ // Label 1: @1082
4523 /* 1082 */ GIM_Try, /*On fail goto*//*Label 115*/ GIMT_Encode4(1093), // Rule ID 22 //
4524 /* 1087 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule22Enabled),
4525 /* 1090 */ // Combiner Rule #22: add_p2i_to_ptradd; wip_match_opcode 'G_ADD'
4526 /* 1090 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner8),
4527 /* 1093 */ // Label 115: @1093
4528 /* 1093 */ GIM_Try, /*On fail goto*//*Label 116*/ GIMT_Encode4(1104), // Rule ID 100 //
4529 /* 1098 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule84Enabled),
4530 /* 1101 */ // Combiner Rule #84: propagate_undef_any_op; wip_match_opcode 'G_ADD'
4531 /* 1101 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner39),
4532 /* 1104 */ // Label 116: @1104
4533 /* 1104 */ GIM_Try, /*On fail goto*//*Label 117*/ GIMT_Encode4(1115), // Rule ID 152 //
4534 /* 1109 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule112Enabled),
4535 /* 1112 */ // Combiner Rule #112: simplify_add_to_sub; wip_match_opcode 'G_ADD'
4536 /* 1112 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner53),
4537 /* 1115 */ // Label 117: @1115
4538 /* 1115 */ GIM_Try, /*On fail goto*//*Label 118*/ GIMT_Encode4(1126), // Rule ID 256 //
4539 /* 1120 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled),
4540 /* 1123 */ // Combiner Rule #187: constant_fold_binop; wip_match_opcode 'G_ADD'
4541 /* 1123 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103),
4542 /* 1126 */ // Label 118: @1126
4543 /* 1126 */ GIM_Try, /*On fail goto*//*Label 119*/ GIMT_Encode4(1137), // Rule ID 316 //
4544 /* 1131 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
4545 /* 1134 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_ADD'
4546 /* 1134 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
4547 /* 1137 */ // Label 119: @1137
4548 /* 1137 */ GIM_Try, /*On fail goto*//*Label 120*/ GIMT_Encode4(1148), // Rule ID 353 //
4549 /* 1142 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
4550 /* 1145 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_ADD'
4551 /* 1145 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129),
4552 /* 1148 */ // Label 120: @1148
4553 /* 1148 */ GIM_Try, /*On fail goto*//*Label 121*/ GIMT_Encode4(1236), // Rule ID 423 //
4554 /* 1153 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule256Enabled),
4555 /* 1156 */ // MIs[0] dst
4556 /* 1156 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
4557 /* 1160 */ // MIs[0] __add_shift_match_0.shl_neg
4558 /* 1160 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4559 /* 1164 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SHL),
4560 /* 1168 */ // MIs[1] __add_shift_match_0.neg_y
4561 /* 1168 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
4562 /* 1172 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB),
4563 /* 1176 */ // MIs[2] __add_shift_match_0.zero
4564 /* 1176 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/2, /*OpIdx*/1, // MIs[3]
4565 /* 1180 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
4566 /* 1184 */ // MIs[3] Operand 1
4567 /* 1184 */ GIM_CheckLiteralInt, /*MI*/3, /*Op*/1, GIMT_Encode8(0),
4568 /* 1195 */ // MIs[2] y
4569 /* 1195 */ // No operand predicates
4570 /* 1195 */ // MIs[1] n
4571 /* 1195 */ // No operand predicates
4572 /* 1195 */ // MIs[0] x
4573 /* 1195 */ // No operand predicates
4574 /* 1195 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner18),
4575 /* 1199 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
4576 /* 1201 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
4577 /* 1204 */ // Combiner Rule #256: add_shift @ [__add_shift_match_0[1]]
4578 /* 1204 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SHL),
4579 /* 1207 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
4580 /* 1212 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/2, // y
4581 /* 1216 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // n
4582 /* 1220 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
4583 /* 1224 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
4584 /* 1228 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/2, // x
4585 /* 1232 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
4586 /* 1235 */ GIR_EraseRootFromParent_Done,
4587 /* 1236 */ // Label 121: @1236
4588 /* 1236 */ GIM_Try, /*On fail goto*//*Label 122*/ GIMT_Encode4(1324), // Rule ID 422 //
4589 /* 1241 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule256Enabled),
4590 /* 1244 */ // MIs[0] dst
4591 /* 1244 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
4592 /* 1248 */ // MIs[0] x
4593 /* 1248 */ // No operand predicates
4594 /* 1248 */ // MIs[0] __add_shift_match_0.shl_neg
4595 /* 1248 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
4596 /* 1252 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SHL),
4597 /* 1256 */ // MIs[1] __add_shift_match_0.neg_y
4598 /* 1256 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
4599 /* 1260 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB),
4600 /* 1264 */ // MIs[2] __add_shift_match_0.zero
4601 /* 1264 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/2, /*OpIdx*/1, // MIs[3]
4602 /* 1268 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
4603 /* 1272 */ // MIs[3] Operand 1
4604 /* 1272 */ GIM_CheckLiteralInt, /*MI*/3, /*Op*/1, GIMT_Encode8(0),
4605 /* 1283 */ // MIs[2] y
4606 /* 1283 */ // No operand predicates
4607 /* 1283 */ // MIs[1] n
4608 /* 1283 */ // No operand predicates
4609 /* 1283 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner17),
4610 /* 1287 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
4611 /* 1289 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
4612 /* 1292 */ // Combiner Rule #256: add_shift @ [__add_shift_match_0[0]]
4613 /* 1292 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SHL),
4614 /* 1295 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
4615 /* 1300 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/2, // y
4616 /* 1304 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // n
4617 /* 1308 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
4618 /* 1312 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
4619 /* 1316 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/1, // x
4620 /* 1320 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
4621 /* 1323 */ GIR_EraseRootFromParent_Done,
4622 /* 1324 */ // Label 122: @1324
4623 /* 1324 */ GIM_Try, /*On fail goto*//*Label 123*/ GIMT_Encode4(1358), // Rule ID 2 //
4624 /* 1329 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule2Enabled),
4625 /* 1332 */ // MIs[0] root
4626 /* 1332 */ // No operand predicates
4627 /* 1332 */ // MIs[0] sub
4628 /* 1332 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4629 /* 1336 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
4630 /* 1340 */ // MIs[1] Operand 1
4631 /* 1340 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/1, 0,
4632 /* 1344 */ // MIs[1] A
4633 /* 1344 */ // No operand predicates
4634 /* 1344 */ // MIs[0] B
4635 /* 1344 */ // No operand predicates
4636 /* 1344 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4637 /* 1346 */ // Combiner Rule #2: ZeroMinusAPlusB
4638 /* 1346 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
4639 /* 1349 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
4640 /* 1351 */ GIR_RootToRootCopy, /*OpIdx*/2, // B
4641 /* 1353 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // A
4642 /* 1357 */ GIR_EraseRootFromParent_Done,
4643 /* 1358 */ // Label 123: @1358
4644 /* 1358 */ GIM_Try, /*On fail goto*//*Label 124*/ GIMT_Encode4(1395), // Rule ID 18 //
4645 /* 1363 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule18Enabled),
4646 /* 1366 */ // MIs[0] root
4647 /* 1366 */ // No operand predicates
4648 /* 1366 */ // MIs[0] sub
4649 /* 1366 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4650 /* 1370 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
4651 /* 1374 */ // MIs[1] A
4652 /* 1374 */ // No operand predicates
4653 /* 1374 */ // MIs[1] c1
4654 /* 1374 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
4655 /* 1378 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
4656 /* 1382 */ // MIs[2] imm1
4657 /* 1382 */ // No operand predicates
4658 /* 1382 */ // MIs[0] c2
4659 /* 1382 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/0, /*OpIdx*/2, // MIs[3]
4660 /* 1386 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
4661 /* 1390 */ // MIs[3] imm2
4662 /* 1390 */ // No operand predicates
4663 /* 1390 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
4664 /* 1392 */ // Combiner Rule #18: AMinusC1PlusC2
4665 /* 1392 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner4),
4666 /* 1395 */ // Label 124: @1395
4667 /* 1395 */ GIM_Try, /*On fail goto*//*Label 125*/ GIMT_Encode4(1429), // Rule ID 5 //
4668 /* 1400 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule5Enabled),
4669 /* 1403 */ // MIs[0] root
4670 /* 1403 */ // No operand predicates
4671 /* 1403 */ // MIs[0] sub
4672 /* 1403 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4673 /* 1407 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
4674 /* 1411 */ // MIs[1] B
4675 /* 1411 */ // No operand predicates
4676 /* 1411 */ // MIs[1] A
4677 /* 1411 */ // No operand predicates
4678 /* 1411 */ // MIs[0] A
4679 /* 1411 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/2,
4680 /* 1416 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
4681 /* 1421 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4682 /* 1423 */ // Combiner Rule #5: BMinusAPlusA
4683 /* 1423 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
4684 /* 1428 */ GIR_EraseRootFromParent_Done,
4685 /* 1429 */ // Label 125: @1429
4686 /* 1429 */ GIM_Try, /*On fail goto*//*Label 126*/ GIMT_Encode4(1463), // Rule ID 140 //
4687 /* 1434 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule101Enabled),
4688 /* 1437 */ // MIs[0] dst
4689 /* 1437 */ // No operand predicates
4690 /* 1437 */ // MIs[0] __add_sub_reg_match_0.tmp
4691 /* 1437 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4692 /* 1441 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
4693 /* 1445 */ // MIs[1] src
4694 /* 1445 */ // No operand predicates
4695 /* 1445 */ // MIs[1] __add_sub_reg_match_0.x
4696 /* 1445 */ // No operand predicates
4697 /* 1445 */ // MIs[0] __add_sub_reg_match_0.x
4698 /* 1445 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/2,
4699 /* 1450 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
4700 /* 1455 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4701 /* 1457 */ // Combiner Rule #101: add_sub_reg @ [__add_sub_reg_match_0[1]]
4702 /* 1457 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
4703 /* 1462 */ GIR_EraseRootFromParent_Done,
4704 /* 1463 */ // Label 126: @1463
4705 /* 1463 */ GIM_Try, /*On fail goto*//*Label 127*/ GIMT_Encode4(1508), // Rule ID 7 //
4706 /* 1468 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule7Enabled),
4707 /* 1471 */ // MIs[0] root
4708 /* 1471 */ // No operand predicates
4709 /* 1471 */ // MIs[0] sub1
4710 /* 1471 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4711 /* 1475 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
4712 /* 1479 */ // MIs[1] A
4713 /* 1479 */ // No operand predicates
4714 /* 1479 */ // MIs[1] B
4715 /* 1479 */ // No operand predicates
4716 /* 1479 */ // MIs[0] sub2
4717 /* 1479 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
4718 /* 1483 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB),
4719 /* 1487 */ // MIs[2] B
4720 /* 1487 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/2,
4721 /* 1492 */ // MIs[2] C
4722 /* 1492 */ // No operand predicates
4723 /* 1492 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
4724 /* 1494 */ // Combiner Rule #7: AMinusBPlusBMinusC
4725 /* 1494 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
4726 /* 1497 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
4727 /* 1499 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // A
4728 /* 1503 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/2, // C
4729 /* 1507 */ GIR_EraseRootFromParent_Done,
4730 /* 1508 */ // Label 127: @1508
4731 /* 1508 */ GIM_Try, /*On fail goto*//*Label 128*/ GIMT_Encode4(1553), // Rule ID 6 //
4732 /* 1513 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule6Enabled),
4733 /* 1516 */ // MIs[0] root
4734 /* 1516 */ // No operand predicates
4735 /* 1516 */ // MIs[0] sub1
4736 /* 1516 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4737 /* 1520 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
4738 /* 1524 */ // MIs[1] A
4739 /* 1524 */ // No operand predicates
4740 /* 1524 */ // MIs[1] B
4741 /* 1524 */ // No operand predicates
4742 /* 1524 */ // MIs[0] sub2
4743 /* 1524 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
4744 /* 1528 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB),
4745 /* 1532 */ // MIs[2] C
4746 /* 1532 */ // No operand predicates
4747 /* 1532 */ // MIs[2] A
4748 /* 1532 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/1,
4749 /* 1537 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
4750 /* 1539 */ // Combiner Rule #6: AMinusBPlusCMinusA
4751 /* 1539 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
4752 /* 1542 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
4753 /* 1544 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // C
4754 /* 1548 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // B
4755 /* 1552 */ GIR_EraseRootFromParent_Done,
4756 /* 1553 */ // Label 128: @1553
4757 /* 1553 */ GIM_Try, /*On fail goto*//*Label 129*/ GIMT_Encode4(1588), // Rule ID 45 //
4758 /* 1558 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule43Enabled),
4759 /* 1561 */ GIM_MIFlags, /*MI*/0, GIMT_Encode4(MachineInstr::NoSWrap),
4760 /* 1567 */ // MIs[0] root
4761 /* 1567 */ // No operand predicates
4762 /* 1567 */ // MIs[0] left
4763 /* 1567 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4764 /* 1571 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_VSCALE),
4765 /* 1575 */ // MIs[1] imm1
4766 /* 1575 */ // No operand predicates
4767 /* 1575 */ // MIs[0] right
4768 /* 1575 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
4769 /* 1579 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_VSCALE),
4770 /* 1583 */ // MIs[2] imm2
4771 /* 1583 */ // No operand predicates
4772 /* 1583 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
4773 /* 1585 */ // Combiner Rule #43: add_of_vscale
4774 /* 1585 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner15),
4775 /* 1588 */ // Label 129: @1588
4776 /* 1588 */ GIM_Try, /*On fail goto*//*Label 130*/ GIMT_Encode4(1622), // Rule ID 3 //
4777 /* 1593 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule3Enabled),
4778 /* 1596 */ // MIs[0] root
4779 /* 1596 */ // No operand predicates
4780 /* 1596 */ // MIs[0] A
4781 /* 1596 */ // No operand predicates
4782 /* 1596 */ // MIs[0] sub
4783 /* 1596 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
4784 /* 1600 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
4785 /* 1604 */ // MIs[1] Operand 1
4786 /* 1604 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/1, 0,
4787 /* 1608 */ // MIs[1] B
4788 /* 1608 */ // No operand predicates
4789 /* 1608 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4790 /* 1610 */ // Combiner Rule #3: APlusZeroMinusB
4791 /* 1610 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
4792 /* 1613 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
4793 /* 1615 */ GIR_RootToRootCopy, /*OpIdx*/1, // A
4794 /* 1617 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // B
4795 /* 1621 */ GIR_EraseRootFromParent_Done,
4796 /* 1622 */ // Label 130: @1622
4797 /* 1622 */ GIM_Try, /*On fail goto*//*Label 131*/ GIMT_Encode4(1656), // Rule ID 4 //
4798 /* 1627 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule4Enabled),
4799 /* 1630 */ // MIs[0] root
4800 /* 1630 */ // No operand predicates
4801 /* 1630 */ // MIs[0] A
4802 /* 1630 */ // No operand predicates
4803 /* 1630 */ // MIs[0] sub
4804 /* 1630 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
4805 /* 1634 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
4806 /* 1638 */ // MIs[1] B
4807 /* 1638 */ // No operand predicates
4808 /* 1638 */ // MIs[1] A
4809 /* 1638 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/1, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
4810 /* 1643 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
4811 /* 1648 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4812 /* 1650 */ // Combiner Rule #4: APlusBMinusB
4813 /* 1650 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
4814 /* 1655 */ GIR_EraseRootFromParent_Done,
4815 /* 1656 */ // Label 131: @1656
4816 /* 1656 */ GIM_Try, /*On fail goto*//*Label 132*/ GIMT_Encode4(1690), // Rule ID 139 //
4817 /* 1661 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule101Enabled),
4818 /* 1664 */ // MIs[0] dst
4819 /* 1664 */ // No operand predicates
4820 /* 1664 */ // MIs[0] __add_sub_reg_match_0.x
4821 /* 1664 */ // No operand predicates
4822 /* 1664 */ // MIs[0] __add_sub_reg_match_0.tmp
4823 /* 1664 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
4824 /* 1668 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
4825 /* 1672 */ // MIs[1] src
4826 /* 1672 */ // No operand predicates
4827 /* 1672 */ // MIs[1] __add_sub_reg_match_0.x
4828 /* 1672 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/1, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
4829 /* 1677 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
4830 /* 1682 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4831 /* 1684 */ // Combiner Rule #101: add_sub_reg @ [__add_sub_reg_match_0[0]]
4832 /* 1684 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
4833 /* 1689 */ GIR_EraseRootFromParent_Done,
4834 /* 1690 */ // Label 132: @1690
4835 /* 1690 */ GIM_Try, /*On fail goto*//*Label 133*/ GIMT_Encode4(1735), // Rule ID 8 //
4836 /* 1695 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule8Enabled),
4837 /* 1698 */ // MIs[0] root
4838 /* 1698 */ // No operand predicates
4839 /* 1698 */ // MIs[0] A
4840 /* 1698 */ // No operand predicates
4841 /* 1698 */ // MIs[0] sub1
4842 /* 1698 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
4843 /* 1702 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
4844 /* 1706 */ // MIs[1] B
4845 /* 1706 */ // No operand predicates
4846 /* 1706 */ // MIs[1] add1
4847 /* 1706 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
4848 /* 1710 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ADD),
4849 /* 1714 */ // MIs[2] A
4850 /* 1714 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/0, /*OtherOpIdx*/1,
4851 /* 1719 */ // MIs[2] C
4852 /* 1719 */ // No operand predicates
4853 /* 1719 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
4854 /* 1721 */ // Combiner Rule #8: APlusBMinusAplusC
4855 /* 1721 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
4856 /* 1724 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
4857 /* 1726 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // B
4858 /* 1730 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/2, // C
4859 /* 1734 */ GIR_EraseRootFromParent_Done,
4860 /* 1735 */ // Label 133: @1735
4861 /* 1735 */ GIM_Try, /*On fail goto*//*Label 134*/ GIMT_Encode4(1780), // Rule ID 10 //
4862 /* 1740 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule10Enabled),
4863 /* 1743 */ // MIs[0] root
4864 /* 1743 */ // No operand predicates
4865 /* 1743 */ // MIs[0] A
4866 /* 1743 */ // No operand predicates
4867 /* 1743 */ // MIs[0] sub1
4868 /* 1743 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
4869 /* 1747 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
4870 /* 1751 */ // MIs[1] B
4871 /* 1751 */ // No operand predicates
4872 /* 1751 */ // MIs[1] add1
4873 /* 1751 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
4874 /* 1755 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ADD),
4875 /* 1759 */ // MIs[2] C
4876 /* 1759 */ // No operand predicates
4877 /* 1759 */ // MIs[2] A
4878 /* 1759 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
4879 /* 1764 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
4880 /* 1766 */ // Combiner Rule #10: APlusBMinusCPlusA
4881 /* 1766 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
4882 /* 1769 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
4883 /* 1771 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // B
4884 /* 1775 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // C
4885 /* 1779 */ GIR_EraseRootFromParent_Done,
4886 /* 1780 */ // Label 134: @1780
4887 /* 1780 */ GIM_Try, /*On fail goto*//*Label 135*/ GIMT_Encode4(1803), // Rule ID 111 //
4888 /* 1785 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled),
4889 /* 1788 */ // MIs[0] dst
4890 /* 1788 */ // No operand predicates
4891 /* 1788 */ // MIs[0] lhs
4892 /* 1788 */ // No operand predicates
4893 /* 1788 */ // MIs[0] Operand 2
4894 /* 1788 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
4895 /* 1792 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
4896 /* 1797 */ // Combiner Rule #90: right_identity_zero @ [__right_identity_zero_match_0[1]]
4897 /* 1797 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
4898 /* 1802 */ GIR_EraseRootFromParent_Done,
4899 /* 1803 */ // Label 135: @1803
4900 /* 1803 */ GIM_Try, /*On fail goto*//*Label 136*/ GIMT_Encode4(1814), // Rule ID 160 //
4901 /* 1808 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule116Enabled),
4902 /* 1811 */ // MIs[0] root
4903 /* 1811 */ // No operand predicates
4904 /* 1811 */ // MIs[0] src1
4905 /* 1811 */ // No operand predicates
4906 /* 1811 */ // MIs[0] src2
4907 /* 1811 */ // No operand predicates
4908 /* 1811 */ // Combiner Rule #116: reassoc_comm_binops
4909 /* 1811 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner57),
4910 /* 1814 */ // Label 136: @1814
4911 /* 1814 */ GIM_Reject,
4912 /* 1815 */ // Label 2: @1815
4913 /* 1815 */ GIM_Try, /*On fail goto*//*Label 137*/ GIMT_Encode4(1826), // Rule ID 101 //
4914 /* 1820 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule84Enabled),
4915 /* 1823 */ // Combiner Rule #84: propagate_undef_any_op; wip_match_opcode 'G_SUB'
4916 /* 1823 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner39),
4917 /* 1826 */ // Label 137: @1826
4918 /* 1826 */ GIM_Try, /*On fail goto*//*Label 138*/ GIMT_Encode4(1837), // Rule ID 264 //
4919 /* 1831 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled),
4920 /* 1834 */ // Combiner Rule #187: constant_fold_binop; wip_match_opcode 'G_SUB'
4921 /* 1834 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103),
4922 /* 1837 */ // Label 138: @1837
4923 /* 1837 */ GIM_Try, /*On fail goto*//*Label 139*/ GIMT_Encode4(1848), // Rule ID 317 //
4924 /* 1842 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
4925 /* 1845 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_SUB'
4926 /* 1845 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
4927 /* 1848 */ // Label 139: @1848
4928 /* 1848 */ GIM_Try, /*On fail goto*//*Label 140*/ GIMT_Encode4(1859), // Rule ID 350 //
4929 /* 1853 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule213Enabled),
4930 /* 1856 */ // Combiner Rule #213: sub_add_reg; wip_match_opcode 'G_SUB'
4931 /* 1856 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner126),
4932 /* 1859 */ // Label 140: @1859
4933 /* 1859 */ GIM_Try, /*On fail goto*//*Label 141*/ GIMT_Encode4(1870), // Rule ID 390 //
4934 /* 1864 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule226Enabled),
4935 /* 1867 */ // Combiner Rule #226: simplify_neg_minmax; wip_match_opcode 'G_SUB'
4936 /* 1867 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner133),
4937 /* 1870 */ // Label 141: @1870
4938 /* 1870 */ GIM_Try, /*On fail goto*//*Label 142*/ GIMT_Encode4(1947), // Rule ID 424 //
4939 /* 1875 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule257Enabled),
4940 /* 1878 */ // MIs[0] dst
4941 /* 1878 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
4942 /* 1882 */ // MIs[0] sub1
4943 /* 1882 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4944 /* 1886 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
4945 /* 1890 */ // MIs[1] a
4946 /* 1890 */ // No operand predicates
4947 /* 1890 */ // MIs[1] b
4948 /* 1890 */ // No operand predicates
4949 /* 1890 */ // MIs[0] Operand 2
4950 /* 1890 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 1,
4951 /* 1894 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner1),
4952 /* 1898 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4953 /* 1900 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
4954 /* 1903 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(18446744073709551615u),
4955 /* 1913 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
4956 /* 1916 */ // Combiner Rule #257: sub_one_from_sub
4957 /* 1916 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_XOR),
4958 /* 1919 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
4959 /* 1924 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // b
4960 /* 1928 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/1,
4961 /* 1931 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ADD),
4962 /* 1935 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
4963 /* 1939 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
4964 /* 1942 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // a
4965 /* 1946 */ GIR_EraseRootFromParent_Done,
4966 /* 1947 */ // Label 142: @1947
4967 /* 1947 */ GIM_Try, /*On fail goto*//*Label 143*/ GIMT_Encode4(2041), // Rule ID 430 //
4968 /* 1952 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule261Enabled),
4969 /* 1955 */ // MIs[0] root
4970 /* 1955 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
4971 /* 1959 */ // MIs[0] Operand 1
4972 /* 1959 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/1, 0,
4973 /* 1963 */ // MIs[0] max
4974 /* 1963 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
4975 /* 1967 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SMAX),
4976 /* 1971 */ // MIs[1] A
4977 /* 1971 */ // No operand predicates
4978 /* 1971 */ // MIs[1] sub
4979 /* 1971 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
4980 /* 1975 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB),
4981 /* 1979 */ // MIs[2] Operand 1
4982 /* 1979 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/1, 0,
4983 /* 1983 */ // MIs[2] A
4984 /* 1983 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/1,
4985 /* 1988 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner19),
4986 /* 1992 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
4987 /* 1994 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
4988 /* 1997 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(0),
4989 /* 2007 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
4990 /* 2010 */ // Combiner Rule #261: SubSmaxSub
4991 /* 2010 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
4992 /* 2013 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
4993 /* 2018 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/1,
4994 /* 2021 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // A
4995 /* 2025 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SMIN),
4996 /* 2029 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // root
4997 /* 2033 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // A
4998 /* 2037 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
4999 /* 2040 */ GIR_EraseRootFromParent_Done,
5000 /* 2041 */ // Label 143: @2041
5001 /* 2041 */ GIM_Try, /*On fail goto*//*Label 144*/ GIMT_Encode4(2135), // Rule ID 431 //
5002 /* 2046 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule262Enabled),
5003 /* 2049 */ // MIs[0] root
5004 /* 2049 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
5005 /* 2053 */ // MIs[0] Operand 1
5006 /* 2053 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/1, 0,
5007 /* 2057 */ // MIs[0] max
5008 /* 2057 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5009 /* 2061 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_UMAX),
5010 /* 2065 */ // MIs[1] A
5011 /* 2065 */ // No operand predicates
5012 /* 2065 */ // MIs[1] sub
5013 /* 2065 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
5014 /* 2069 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB),
5015 /* 2073 */ // MIs[2] Operand 1
5016 /* 2073 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/1, 0,
5017 /* 2077 */ // MIs[2] A
5018 /* 2077 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/1,
5019 /* 2082 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner19),
5020 /* 2086 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5021 /* 2088 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
5022 /* 2091 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(0),
5023 /* 2101 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5024 /* 2104 */ // Combiner Rule #262: SubUmaxSub
5025 /* 2104 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5026 /* 2107 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5027 /* 2112 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/1,
5028 /* 2115 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // A
5029 /* 2119 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UMIN),
5030 /* 2123 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // root
5031 /* 2127 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // A
5032 /* 2131 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
5033 /* 2134 */ GIR_EraseRootFromParent_Done,
5034 /* 2135 */ // Label 144: @2135
5035 /* 2135 */ GIM_Try, /*On fail goto*//*Label 145*/ GIMT_Encode4(2175), // Rule ID 428 //
5036 /* 2140 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule259Enabled),
5037 /* 2143 */ // MIs[0] root
5038 /* 2143 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
5039 /* 2147 */ // MIs[0] Operand 1
5040 /* 2147 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/1, 255,
5041 /* 2151 */ // MIs[0] op1
5042 /* 2151 */ // No operand predicates
5043 /* 2151 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5044 /* 2154 */ GIR_BuildConstant, /*TempRegID*/0, /*Val*/GIMT_Encode8(18446744073709551615u),
5045 /* 2164 */ // Combiner Rule #259: sub_minus_one
5046 /* 2164 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_XOR),
5047 /* 2167 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
5048 /* 2169 */ GIR_RootToRootCopy, /*OpIdx*/2, // op1
5049 /* 2171 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/0,
5050 /* 2174 */ GIR_EraseRootFromParent_Done,
5051 /* 2175 */ // Label 145: @2175
5052 /* 2175 */ GIM_Try, /*On fail goto*//*Label 146*/ GIMT_Encode4(2275), // Rule ID 429 //
5053 /* 2180 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule260Enabled),
5054 /* 2183 */ // MIs[0] d
5055 /* 2183 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
5056 /* 2187 */ // MIs[0] a
5057 /* 2187 */ // No operand predicates
5058 /* 2187 */ // MIs[0] mul
5059 /* 2187 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5060 /* 2191 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_MUL),
5061 /* 2195 */ // MIs[1] x
5062 /* 2195 */ // No operand predicates
5063 /* 2195 */ // MIs[1] c
5064 /* 2195 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
5065 /* 2199 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5066 /* 2203 */ // MIs[2] imm
5067 /* 2203 */ // No operand predicates
5068 /* 2203 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner0),
5069 /* 2207 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5070 /* 2209 */ GIR_MakeTempReg, /*TempRegID*/2, /*TypeID*/255,
5071 /* 2212 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
5072 /* 2215 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(0),
5073 /* 2225 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5074 /* 2228 */ // Combiner Rule #260: sub_of_mul_const
5075 /* 2228 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5076 /* 2231 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5077 /* 2236 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/1,
5078 /* 2239 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // c
5079 /* 2243 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_MUL),
5080 /* 2247 */ GIR_AddTempRegister, /*InsnID*/1, /*TempRegID*/2, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5081 /* 2252 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // x
5082 /* 2256 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
5083 /* 2259 */ GIR_BuildMI, /*InsnID*/2, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ADD),
5084 /* 2263 */ GIR_Copy, /*NewInsnID*/2, /*OldInsnID*/0, /*OpIdx*/0, // d
5085 /* 2267 */ GIR_Copy, /*NewInsnID*/2, /*OldInsnID*/0, /*OpIdx*/1, // a
5086 /* 2271 */ GIR_AddSimpleTempRegister, /*InsnID*/2, /*TempRegID*/2,
5087 /* 2274 */ GIR_EraseRootFromParent_Done,
5088 /* 2275 */ // Label 146: @2275
5089 /* 2275 */ GIM_Try, /*On fail goto*//*Label 147*/ GIMT_Encode4(2336), // Rule ID 9 //
5090 /* 2280 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule9Enabled),
5091 /* 2283 */ // MIs[0] root
5092 /* 2283 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
5093 /* 2287 */ // MIs[0] A
5094 /* 2287 */ // No operand predicates
5095 /* 2287 */ // MIs[0] sub1
5096 /* 2287 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5097 /* 2291 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5098 /* 2295 */ // MIs[1] B
5099 /* 2295 */ // No operand predicates
5100 /* 2295 */ // MIs[1] C
5101 /* 2295 */ // No operand predicates
5102 /* 2295 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner0),
5103 /* 2299 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5104 /* 2301 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5105 /* 2304 */ // Combiner Rule #9: AMinusBMinusC
5106 /* 2304 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5107 /* 2307 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5108 /* 2312 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // C
5109 /* 2316 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // B
5110 /* 2320 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ADD),
5111 /* 2324 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // root
5112 /* 2328 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/1, // A
5113 /* 2332 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
5114 /* 2335 */ GIR_EraseRootFromParent_Done,
5115 /* 2336 */ // Label 147: @2336
5116 /* 2336 */ GIM_Try, /*On fail goto*//*Label 148*/ GIMT_Encode4(2381), // Rule ID 0 //
5117 /* 2341 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule0Enabled),
5118 /* 2344 */ // MIs[0] root
5119 /* 2344 */ // No operand predicates
5120 /* 2344 */ // MIs[0] add1
5121 /* 2344 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5122 /* 2348 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
5123 /* 2352 */ // MIs[1] A
5124 /* 2352 */ // No operand predicates
5125 /* 2352 */ // MIs[1] sub1
5126 /* 2352 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
5127 /* 2356 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB),
5128 /* 2360 */ // MIs[2] B
5129 /* 2360 */ // No operand predicates
5130 /* 2360 */ // MIs[2] C
5131 /* 2360 */ // No operand predicates
5132 /* 2360 */ // MIs[0] B
5133 /* 2360 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/2, /*OtherOpIdx*/1,
5134 /* 2365 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5135 /* 2367 */ // Combiner Rule #0: APlusBMinusCMinusB
5136 /* 2367 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5137 /* 2370 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
5138 /* 2372 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // A
5139 /* 2376 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/2, // C
5140 /* 2380 */ GIR_EraseRootFromParent_Done,
5141 /* 2381 */ // Label 148: @2381
5142 /* 2381 */ GIM_Try, /*On fail goto*//*Label 149*/ GIMT_Encode4(2418), // Rule ID 14 //
5143 /* 2386 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule14Enabled),
5144 /* 2389 */ // MIs[0] root
5145 /* 2389 */ // No operand predicates
5146 /* 2389 */ // MIs[0] add
5147 /* 2389 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5148 /* 2393 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
5149 /* 2397 */ // MIs[1] A
5150 /* 2397 */ // No operand predicates
5151 /* 2397 */ // MIs[1] c1
5152 /* 2397 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
5153 /* 2401 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5154 /* 2405 */ // MIs[2] imm1
5155 /* 2405 */ // No operand predicates
5156 /* 2405 */ // MIs[0] c2
5157 /* 2405 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/0, /*OpIdx*/2, // MIs[3]
5158 /* 2409 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5159 /* 2413 */ // MIs[3] imm2
5160 /* 2413 */ // No operand predicates
5161 /* 2413 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
5162 /* 2415 */ // Combiner Rule #14: APlusC1MinusC2
5163 /* 2415 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner0),
5164 /* 2418 */ // Label 149: @2418
5165 /* 2418 */ GIM_Try, /*On fail goto*//*Label 150*/ GIMT_Encode4(2455), // Rule ID 17 //
5166 /* 2423 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule17Enabled),
5167 /* 2426 */ // MIs[0] root
5168 /* 2426 */ // No operand predicates
5169 /* 2426 */ // MIs[0] sub1
5170 /* 2426 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5171 /* 2430 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5172 /* 2434 */ // MIs[1] c1
5173 /* 2434 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
5174 /* 2438 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5175 /* 2442 */ // MIs[2] imm1
5176 /* 2442 */ // No operand predicates
5177 /* 2442 */ // MIs[1] A
5178 /* 2442 */ // No operand predicates
5179 /* 2442 */ // MIs[0] c2
5180 /* 2442 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/0, /*OpIdx*/2, // MIs[3]
5181 /* 2446 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5182 /* 2450 */ // MIs[3] imm2
5183 /* 2450 */ // No operand predicates
5184 /* 2450 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
5185 /* 2452 */ // Combiner Rule #17: C1Minus2MinusC2
5186 /* 2452 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner3),
5187 /* 2455 */ // Label 150: @2455
5188 /* 2455 */ GIM_Try, /*On fail goto*//*Label 151*/ GIMT_Encode4(2500), // Rule ID 1 //
5189 /* 2460 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule1Enabled),
5190 /* 2463 */ // MIs[0] root
5191 /* 2463 */ // No operand predicates
5192 /* 2463 */ // MIs[0] sub2
5193 /* 2463 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5194 /* 2467 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5195 /* 2471 */ // MIs[1] A
5196 /* 2471 */ // No operand predicates
5197 /* 2471 */ // MIs[1] sub1
5198 /* 2471 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
5199 /* 2475 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB),
5200 /* 2479 */ // MIs[2] B
5201 /* 2479 */ // No operand predicates
5202 /* 2479 */ // MIs[2] C
5203 /* 2479 */ // No operand predicates
5204 /* 2479 */ // MIs[0] C
5205 /* 2479 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/2, /*OtherOpIdx*/2,
5206 /* 2484 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5207 /* 2486 */ // Combiner Rule #1: AMinusBMinusCMinusC
5208 /* 2486 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5209 /* 2489 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
5210 /* 2491 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // A
5211 /* 2495 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // B
5212 /* 2499 */ GIR_EraseRootFromParent_Done,
5213 /* 2500 */ // Label 151: @2500
5214 /* 2500 */ GIM_Try, /*On fail goto*//*Label 152*/ GIMT_Encode4(2537), // Rule ID 16 //
5215 /* 2505 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule16Enabled),
5216 /* 2508 */ // MIs[0] root
5217 /* 2508 */ // No operand predicates
5218 /* 2508 */ // MIs[0] sub1
5219 /* 2508 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5220 /* 2512 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5221 /* 2516 */ // MIs[1] A
5222 /* 2516 */ // No operand predicates
5223 /* 2516 */ // MIs[1] c1
5224 /* 2516 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
5225 /* 2520 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5226 /* 2524 */ // MIs[2] imm1
5227 /* 2524 */ // No operand predicates
5228 /* 2524 */ // MIs[0] c2
5229 /* 2524 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/0, /*OpIdx*/2, // MIs[3]
5230 /* 2528 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5231 /* 2532 */ // MIs[3] imm2
5232 /* 2532 */ // No operand predicates
5233 /* 2532 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
5234 /* 2534 */ // Combiner Rule #16: AMinusC1MinusC2
5235 /* 2534 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner2),
5236 /* 2537 */ // Label 152: @2537
5237 /* 2537 */ GIM_Try, /*On fail goto*//*Label 153*/ GIMT_Encode4(2580), // Rule ID 170 //
5238 /* 2542 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule126Enabled),
5239 /* 2545 */ // MIs[0] dst
5240 /* 2545 */ // No operand predicates
5241 /* 2545 */ // MIs[0] Operand 1
5242 /* 2545 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/1, 0,
5243 /* 2549 */ // MIs[0] and
5244 /* 2549 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5245 /* 2553 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_AND),
5246 /* 2557 */ // MIs[1] x
5247 /* 2557 */ // No operand predicates
5248 /* 2557 */ // MIs[1] Operand 2
5249 /* 2557 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/2, 1,
5250 /* 2561 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner11),
5251 /* 2565 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5252 /* 2567 */ // Combiner Rule #126: neg_and_one_to_sext_inreg
5253 /* 2567 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SEXT_INREG),
5254 /* 2570 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
5255 /* 2572 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
5256 /* 2576 */ GIR_AddImm8, /*InsnID*/0, /*Imm*/1,
5257 /* 2579 */ GIR_EraseRootFromParent_Done,
5258 /* 2580 */ // Label 153: @2580
5259 /* 2580 */ GIM_Try, /*On fail goto*//*Label 154*/ GIMT_Encode4(2617), // Rule ID 15 //
5260 /* 2585 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule15Enabled),
5261 /* 2588 */ // MIs[0] root
5262 /* 2588 */ // No operand predicates
5263 /* 2588 */ // MIs[0] c2
5264 /* 2588 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5265 /* 2592 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5266 /* 2596 */ // MIs[1] imm2
5267 /* 2596 */ // No operand predicates
5268 /* 2596 */ // MIs[0] add
5269 /* 2596 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
5270 /* 2600 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ADD),
5271 /* 2604 */ // MIs[2] A
5272 /* 2604 */ // No operand predicates
5273 /* 2604 */ // MIs[2] c1
5274 /* 2604 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/2, /*OpIdx*/2, // MIs[3]
5275 /* 2608 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5276 /* 2612 */ // MIs[3] imm1
5277 /* 2612 */ // No operand predicates
5278 /* 2612 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
5279 /* 2614 */ // Combiner Rule #15: C2MinusAPlusC1
5280 /* 2614 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner1),
5281 /* 2617 */ // Label 154: @2617
5282 /* 2617 */ GIM_Try, /*On fail goto*//*Label 155*/ GIMT_Encode4(2656), // Rule ID 122 //
5283 /* 2622 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule92Enabled),
5284 /* 2625 */ // MIs[0] dst
5285 /* 2625 */ // No operand predicates
5286 /* 2625 */ // MIs[0] x
5287 /* 2625 */ GIM_RecordRegType, /*MI*/0, /*Op*/1, /*TempTypeIdx*/255,
5288 /* 2629 */ // MIs[0] x
5289 /* 2629 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
5290 /* 2634 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5291 /* 2637 */ GIR_BuildConstant, /*TempRegID*/0, /*Val*/GIMT_Encode8(0),
5292 /* 2647 */ // Combiner Rule #92: same_val_zero @ [__same_val_zero_match_0[0]]
5293 /* 2647 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::COPY),
5294 /* 2650 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
5295 /* 2652 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/0,
5296 /* 2655 */ GIR_EraseRootFromParent_Done,
5297 /* 2656 */ // Label 155: @2656
5298 /* 2656 */ GIM_Try, /*On fail goto*//*Label 156*/ GIMT_Encode4(2690), // Rule ID 12 //
5299 /* 2661 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule12Enabled),
5300 /* 2664 */ // MIs[0] root
5301 /* 2664 */ // No operand predicates
5302 /* 2664 */ // MIs[0] A
5303 /* 2664 */ // No operand predicates
5304 /* 2664 */ // MIs[0] add
5305 /* 2664 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5306 /* 2668 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5307 /* 2672 */ // MIs[1] A
5308 /* 2672 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/1, /*OpIdx*/1, /*OtherMI*/0, /*OtherOpIdx*/1,
5309 /* 2677 */ // MIs[1] B
5310 /* 2677 */ // No operand predicates
5311 /* 2677 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/2,
5312 /* 2682 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5313 /* 2684 */ // Combiner Rule #12: AMinusBMinusA
5314 /* 2684 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/2,
5315 /* 2689 */ GIR_EraseRootFromParent_Done,
5316 /* 2690 */ // Label 156: @2690
5317 /* 2690 */ GIM_Try, /*On fail goto*//*Label 157*/ GIMT_Encode4(2724), // Rule ID 11 //
5318 /* 2695 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule11Enabled),
5319 /* 2698 */ // MIs[0] root
5320 /* 2698 */ // No operand predicates
5321 /* 2698 */ // MIs[0] A
5322 /* 2698 */ // No operand predicates
5323 /* 2698 */ // MIs[0] sub1
5324 /* 2698 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5325 /* 2702 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5326 /* 2706 */ // MIs[1] Operand 1
5327 /* 2706 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/1, 0,
5328 /* 2710 */ // MIs[1] B
5329 /* 2710 */ // No operand predicates
5330 /* 2710 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5331 /* 2712 */ // Combiner Rule #11: AMinusZeroMinusB
5332 /* 2712 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ADD),
5333 /* 2715 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
5334 /* 2717 */ GIR_RootToRootCopy, /*OpIdx*/1, // A
5335 /* 2719 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // B
5336 /* 2723 */ GIR_EraseRootFromParent_Done,
5337 /* 2724 */ // Label 157: @2724
5338 /* 2724 */ GIM_Try, /*On fail goto*//*Label 158*/ GIMT_Encode4(2751), // Rule ID 48 //
5339 /* 2729 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule46Enabled),
5340 /* 2732 */ GIM_MIFlags, /*MI*/0, GIMT_Encode4(MachineInstr::NoSWrap),
5341 /* 2738 */ // MIs[0] root
5342 /* 2738 */ // No operand predicates
5343 /* 2738 */ // MIs[0] x
5344 /* 2738 */ // No operand predicates
5345 /* 2738 */ // MIs[0] right
5346 /* 2738 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5347 /* 2742 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_VSCALE),
5348 /* 2746 */ // MIs[1] imm
5349 /* 2746 */ // No operand predicates
5350 /* 2746 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5351 /* 2748 */ // Combiner Rule #46: sub_of_vscale
5352 /* 2748 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner18),
5353 /* 2751 */ // Label 158: @2751
5354 /* 2751 */ GIM_Try, /*On fail goto*//*Label 159*/ GIMT_Encode4(2774), // Rule ID 110 //
5355 /* 2756 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled),
5356 /* 2759 */ // MIs[0] dst
5357 /* 2759 */ // No operand predicates
5358 /* 2759 */ // MIs[0] lhs
5359 /* 2759 */ // No operand predicates
5360 /* 2759 */ // MIs[0] Operand 2
5361 /* 2759 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
5362 /* 2763 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5363 /* 2768 */ // Combiner Rule #90: right_identity_zero @ [__right_identity_zero_match_0[0]]
5364 /* 2768 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5365 /* 2773 */ GIR_EraseRootFromParent_Done,
5366 /* 2774 */ // Label 159: @2774
5367 /* 2774 */ GIM_Try, /*On fail goto*//*Label 160*/ GIMT_Encode4(2795), // Rule ID 21 //
5368 /* 2779 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule21Enabled),
5369 /* 2782 */ // MIs[0] d
5370 /* 2782 */ // No operand predicates
5371 /* 2782 */ // MIs[0] op1
5372 /* 2782 */ // No operand predicates
5373 /* 2782 */ // MIs[0] c
5374 /* 2782 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5375 /* 2786 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5376 /* 2790 */ // MIs[1] imm
5377 /* 2790 */ // No operand predicates
5378 /* 2790 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5379 /* 2792 */ // Combiner Rule #21: sub_to_add
5380 /* 2792 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner7),
5381 /* 2795 */ // Label 160: @2795
5382 /* 2795 */ GIM_Reject,
5383 /* 2796 */ // Label 3: @2796
5384 /* 2796 */ GIM_Try, /*On fail goto*//*Label 161*/ GIMT_Encode4(2807), // Rule ID 84 //
5385 /* 2801 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule78Enabled),
5386 /* 2804 */ // Combiner Rule #78: undef_to_int_zero; wip_match_opcode 'G_MUL'
5387 /* 2804 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner34),
5388 /* 2807 */ // Label 161: @2807
5389 /* 2807 */ GIM_Try, /*On fail goto*//*Label 162*/ GIMT_Encode4(2818), // Rule ID 261 //
5390 /* 2812 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled),
5391 /* 2815 */ // Combiner Rule #187: constant_fold_binop; wip_match_opcode 'G_MUL'
5392 /* 2815 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103),
5393 /* 2818 */ // Label 162: @2818
5394 /* 2818 */ GIM_Try, /*On fail goto*//*Label 163*/ GIMT_Encode4(2829), // Rule ID 354 //
5395 /* 2823 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
5396 /* 2826 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_MUL'
5397 /* 2826 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129),
5398 /* 2829 */ // Label 163: @2829
5399 /* 2829 */ GIM_Try, /*On fail goto*//*Label 164*/ GIMT_Encode4(2869), // Rule ID 23 //
5400 /* 2834 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule23Enabled),
5401 /* 2837 */ // MIs[0] dst
5402 /* 2837 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
5403 /* 2841 */ // MIs[0] x
5404 /* 2841 */ // No operand predicates
5405 /* 2841 */ // MIs[0] Operand 2
5406 /* 2841 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 255,
5407 /* 2845 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5408 /* 2848 */ GIR_BuildConstant, /*TempRegID*/0, /*Val*/GIMT_Encode8(0),
5409 /* 2858 */ // Combiner Rule #23: mul_by_neg_one
5410 /* 2858 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5411 /* 2861 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
5412 /* 2863 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/0,
5413 /* 2866 */ GIR_RootToRootCopy, /*OpIdx*/1, // x
5414 /* 2868 */ GIR_EraseRootFromParent_Done,
5415 /* 2869 */ // Label 164: @2869
5416 /* 2869 */ GIM_Try, /*On fail goto*//*Label 165*/ GIMT_Encode4(2904), // Rule ID 46 //
5417 /* 2874 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule44Enabled),
5418 /* 2877 */ GIM_MIFlags, /*MI*/0, GIMT_Encode4(MachineInstr::NoSWrap),
5419 /* 2883 */ // MIs[0] root
5420 /* 2883 */ // No operand predicates
5421 /* 2883 */ // MIs[0] left
5422 /* 2883 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5423 /* 2887 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_VSCALE),
5424 /* 2891 */ // MIs[1] scale
5425 /* 2891 */ // No operand predicates
5426 /* 2891 */ // MIs[0] x
5427 /* 2891 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
5428 /* 2895 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5429 /* 2899 */ // MIs[2] imm1
5430 /* 2899 */ // No operand predicates
5431 /* 2899 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5432 /* 2901 */ // Combiner Rule #44: mul_of_vscale
5433 /* 2901 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner16),
5434 /* 2904 */ // Label 165: @2904
5435 /* 2904 */ GIM_Try, /*On fail goto*//*Label 166*/ GIMT_Encode4(2944), // Rule ID 131 //
5436 /* 2909 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
5437 /* 2912 */ // MIs[0] dst
5438 /* 2912 */ // No operand predicates
5439 /* 2912 */ // MIs[0] zero
5440 /* 2912 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5441 /* 2916 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5442 /* 2920 */ // MIs[1] Operand 1
5443 /* 2920 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0),
5444 /* 2931 */ // MIs[0] rhs
5445 /* 2931 */ // No operand predicates
5446 /* 2931 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5447 /* 2936 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5448 /* 2938 */ // Combiner Rule #93: binop_left_to_zero @ [__binop_left_to_zero_match_0[7]]
5449 /* 2938 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5450 /* 2943 */ GIR_EraseRootFromParent_Done,
5451 /* 2944 */ // Label 166: @2944
5452 /* 2944 */ GIM_Try, /*On fail goto*//*Label 167*/ GIMT_Encode4(2967), // Rule ID 132 //
5453 /* 2949 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule94Enabled),
5454 /* 2952 */ // MIs[0] dst
5455 /* 2952 */ // No operand predicates
5456 /* 2952 */ // MIs[0] lhs
5457 /* 2952 */ // No operand predicates
5458 /* 2952 */ // MIs[0] zero
5459 /* 2952 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
5460 /* 2956 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
5461 /* 2961 */ // Combiner Rule #94: binop_right_to_zero
5462 /* 2961 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
5463 /* 2966 */ GIR_EraseRootFromParent_Done,
5464 /* 2967 */ // Label 167: @2967
5465 /* 2967 */ GIM_Try, /*On fail goto*//*Label 168*/ GIMT_Encode4(2990), // Rule ID 137 //
5466 /* 2972 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule99Enabled),
5467 /* 2975 */ // MIs[0] dst
5468 /* 2975 */ // No operand predicates
5469 /* 2975 */ // MIs[0] x
5470 /* 2975 */ // No operand predicates
5471 /* 2975 */ // MIs[0] Operand 2
5472 /* 2975 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 1,
5473 /* 2979 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5474 /* 2984 */ // Combiner Rule #99: right_identity_one_int
5475 /* 2984 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5476 /* 2989 */ GIR_EraseRootFromParent_Done,
5477 /* 2990 */ // Label 168: @2990
5478 /* 2990 */ GIM_Try, /*On fail goto*//*Label 169*/ GIMT_Encode4(3001), // Rule ID 20 //
5479 /* 2995 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule20Enabled),
5480 /* 2998 */ // MIs[0] d
5481 /* 2998 */ // No operand predicates
5482 /* 2998 */ // MIs[0] op1
5483 /* 2998 */ // No operand predicates
5484 /* 2998 */ // MIs[0] op2
5485 /* 2998 */ // No operand predicates
5486 /* 2998 */ // Combiner Rule #20: mul_to_shl
5487 /* 2998 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner6),
5488 /* 3001 */ // Label 169: @3001
5489 /* 3001 */ GIM_Reject,
5490 /* 3002 */ // Label 4: @3002
5491 /* 3002 */ GIM_Try, /*On fail goto*//*Label 170*/ GIMT_Encode4(3013), // Rule ID 232 //
5492 /* 3007 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule172Enabled),
5493 /* 3010 */ // Combiner Rule #172: div_rem_to_divrem; wip_match_opcode 'G_SDIV'
5494 /* 3010 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
5495 /* 3013 */ // Label 170: @3013
5496 /* 3013 */ GIM_Try, /*On fail goto*//*Label 171*/ GIMT_Encode4(3024), // Rule ID 267 //
5497 /* 3018 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled),
5498 /* 3021 */ // Combiner Rule #187: constant_fold_binop; wip_match_opcode 'G_SDIV'
5499 /* 3021 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103),
5500 /* 3024 */ // Label 171: @3024
5501 /* 3024 */ GIM_Try, /*On fail goto*//*Label 172*/ GIMT_Encode4(3035), // Rule ID 322 //
5502 /* 3029 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
5503 /* 3032 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_SDIV'
5504 /* 3032 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
5505 /* 3035 */ // Label 172: @3035
5506 /* 3035 */ GIM_Try, /*On fail goto*//*Label 173*/ GIMT_Encode4(3075), // Rule ID 127 //
5507 /* 3040 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
5508 /* 3043 */ // MIs[0] dst
5509 /* 3043 */ // No operand predicates
5510 /* 3043 */ // MIs[0] zero
5511 /* 3043 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5512 /* 3047 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5513 /* 3051 */ // MIs[1] Operand 1
5514 /* 3051 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0),
5515 /* 3062 */ // MIs[0] rhs
5516 /* 3062 */ // No operand predicates
5517 /* 3062 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5518 /* 3067 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5519 /* 3069 */ // Combiner Rule #93: binop_left_to_zero @ [__binop_left_to_zero_match_0[3]]
5520 /* 3069 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5521 /* 3074 */ GIR_EraseRootFromParent_Done,
5522 /* 3075 */ // Label 173: @3075
5523 /* 3075 */ GIM_Try, /*On fail goto*//*Label 174*/ GIMT_Encode4(3092), // Rule ID 346 //
5524 /* 3080 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule209Enabled),
5525 /* 3083 */ GIM_MIFlagsNot, /*MI*/0, GIMT_Encode4(MachineInstr::IsExact),
5526 /* 3089 */ // MIs[0] dst
5527 /* 3089 */ // No operand predicates
5528 /* 3089 */ // MIs[0] x
5529 /* 3089 */ // No operand predicates
5530 /* 3089 */ // MIs[0] y
5531 /* 3089 */ // No operand predicates
5532 /* 3089 */ // Combiner Rule #209: sdiv_by_pow2
5533 /* 3089 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner124),
5534 /* 3092 */ // Label 174: @3092
5535 /* 3092 */ GIM_Try, /*On fail goto*//*Label 175*/ GIMT_Encode4(3103), // Rule ID 348 //
5536 /* 3097 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule211Enabled),
5537 /* 3100 */ // MIs[0] dst
5538 /* 3100 */ // No operand predicates
5539 /* 3100 */ // MIs[0] x
5540 /* 3100 */ // No operand predicates
5541 /* 3100 */ // MIs[0] y
5542 /* 3100 */ // No operand predicates
5543 /* 3100 */ // Combiner Rule #211: sdiv_by_const
5544 /* 3100 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner122),
5545 /* 3103 */ // Label 175: @3103
5546 /* 3103 */ GIM_Reject,
5547 /* 3104 */ // Label 5: @3104
5548 /* 3104 */ GIM_Try, /*On fail goto*//*Label 176*/ GIMT_Encode4(3115), // Rule ID 87 //
5549 /* 3109 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule80Enabled),
5550 /* 3112 */ // Combiner Rule #80: binop_left_undef_to_zero; wip_match_opcode 'G_UDIV'
5551 /* 3112 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner36),
5552 /* 3115 */ // Label 176: @3115
5553 /* 3115 */ GIM_Try, /*On fail goto*//*Label 177*/ GIMT_Encode4(3126), // Rule ID 233 //
5554 /* 3120 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule172Enabled),
5555 /* 3123 */ // Combiner Rule #172: div_rem_to_divrem; wip_match_opcode 'G_UDIV'
5556 /* 3123 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
5557 /* 3126 */ // Label 177: @3126
5558 /* 3126 */ GIM_Try, /*On fail goto*//*Label 178*/ GIMT_Encode4(3137), // Rule ID 266 //
5559 /* 3131 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled),
5560 /* 3134 */ // Combiner Rule #187: constant_fold_binop; wip_match_opcode 'G_UDIV'
5561 /* 3134 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103),
5562 /* 3137 */ // Label 178: @3137
5563 /* 3137 */ GIM_Try, /*On fail goto*//*Label 179*/ GIMT_Encode4(3148), // Rule ID 324 //
5564 /* 3142 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
5565 /* 3145 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_UDIV'
5566 /* 3145 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
5567 /* 3148 */ // Label 179: @3148
5568 /* 3148 */ GIM_Try, /*On fail goto*//*Label 180*/ GIMT_Encode4(3188), // Rule ID 128 //
5569 /* 3153 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
5570 /* 3156 */ // MIs[0] dst
5571 /* 3156 */ // No operand predicates
5572 /* 3156 */ // MIs[0] zero
5573 /* 3156 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5574 /* 3160 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5575 /* 3164 */ // MIs[1] Operand 1
5576 /* 3164 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0),
5577 /* 3175 */ // MIs[0] rhs
5578 /* 3175 */ // No operand predicates
5579 /* 3175 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5580 /* 3180 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5581 /* 3182 */ // Combiner Rule #93: binop_left_to_zero @ [__binop_left_to_zero_match_0[4]]
5582 /* 3182 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5583 /* 3187 */ GIR_EraseRootFromParent_Done,
5584 /* 3188 */ // Label 180: @3188
5585 /* 3188 */ GIM_Try, /*On fail goto*//*Label 181*/ GIMT_Encode4(3205), // Rule ID 345 //
5586 /* 3193 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule208Enabled),
5587 /* 3196 */ GIM_MIFlagsNot, /*MI*/0, GIMT_Encode4(MachineInstr::IsExact),
5588 /* 3202 */ // MIs[0] dst
5589 /* 3202 */ // No operand predicates
5590 /* 3202 */ // MIs[0] x
5591 /* 3202 */ // No operand predicates
5592 /* 3202 */ // MIs[0] y
5593 /* 3202 */ // No operand predicates
5594 /* 3202 */ // Combiner Rule #208: udiv_by_pow2
5595 /* 3202 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner123),
5596 /* 3205 */ // Label 181: @3205
5597 /* 3205 */ GIM_Try, /*On fail goto*//*Label 182*/ GIMT_Encode4(3216), // Rule ID 347 //
5598 /* 3210 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule210Enabled),
5599 /* 3213 */ // MIs[0] dst
5600 /* 3213 */ // No operand predicates
5601 /* 3213 */ // MIs[0] x
5602 /* 3213 */ // No operand predicates
5603 /* 3213 */ // MIs[0] y
5604 /* 3213 */ // No operand predicates
5605 /* 3213 */ // Combiner Rule #210: udiv_by_const
5606 /* 3213 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner121),
5607 /* 3216 */ // Label 182: @3216
5608 /* 3216 */ GIM_Reject,
5609 /* 3217 */ // Label 6: @3217
5610 /* 3217 */ GIM_Try, /*On fail goto*//*Label 183*/ GIMT_Encode4(3228), // Rule ID 234 //
5611 /* 3222 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule172Enabled),
5612 /* 3225 */ // Combiner Rule #172: div_rem_to_divrem; wip_match_opcode 'G_SREM'
5613 /* 3225 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
5614 /* 3228 */ // Label 183: @3228
5615 /* 3228 */ GIM_Try, /*On fail goto*//*Label 184*/ GIMT_Encode4(3239), // Rule ID 269 //
5616 /* 3233 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled),
5617 /* 3236 */ // Combiner Rule #187: constant_fold_binop; wip_match_opcode 'G_SREM'
5618 /* 3236 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103),
5619 /* 3239 */ // Label 184: @3239
5620 /* 3239 */ GIM_Try, /*On fail goto*//*Label 185*/ GIMT_Encode4(3250), // Rule ID 323 //
5621 /* 3244 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
5622 /* 3247 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_SREM'
5623 /* 3247 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
5624 /* 3250 */ // Label 185: @3250
5625 /* 3250 */ GIM_Try, /*On fail goto*//*Label 186*/ GIMT_Encode4(3290), // Rule ID 129 //
5626 /* 3255 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
5627 /* 3258 */ // MIs[0] dst
5628 /* 3258 */ // No operand predicates
5629 /* 3258 */ // MIs[0] zero
5630 /* 3258 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5631 /* 3262 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5632 /* 3266 */ // MIs[1] Operand 1
5633 /* 3266 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0),
5634 /* 3277 */ // MIs[0] rhs
5635 /* 3277 */ // No operand predicates
5636 /* 3277 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5637 /* 3282 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5638 /* 3284 */ // Combiner Rule #93: binop_left_to_zero @ [__binop_left_to_zero_match_0[5]]
5639 /* 3284 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5640 /* 3289 */ GIR_EraseRootFromParent_Done,
5641 /* 3290 */ // Label 186: @3290
5642 /* 3290 */ GIM_Try, /*On fail goto*//*Label 187*/ GIMT_Encode4(3301), // Rule ID 342 //
5643 /* 3295 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule205Enabled),
5644 /* 3298 */ // MIs[0] dst
5645 /* 3298 */ // No operand predicates
5646 /* 3298 */ // MIs[0] x
5647 /* 3298 */ // No operand predicates
5648 /* 3298 */ // MIs[0] y
5649 /* 3298 */ // No operand predicates
5650 /* 3298 */ // Combiner Rule #205: srem_pow2_to_mask
5651 /* 3298 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner120),
5652 /* 3301 */ // Label 187: @3301
5653 /* 3301 */ GIM_Try, /*On fail goto*//*Label 188*/ GIMT_Encode4(3312), // Rule ID 344 //
5654 /* 3306 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule207Enabled),
5655 /* 3309 */ // MIs[0] dst
5656 /* 3309 */ // No operand predicates
5657 /* 3309 */ // MIs[0] x
5658 /* 3309 */ // No operand predicates
5659 /* 3309 */ // MIs[0] y
5660 /* 3309 */ // No operand predicates
5661 /* 3309 */ // Combiner Rule #207: srem_by_const
5662 /* 3309 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner122),
5663 /* 3312 */ // Label 188: @3312
5664 /* 3312 */ GIM_Reject,
5665 /* 3313 */ // Label 7: @3313
5666 /* 3313 */ GIM_Try, /*On fail goto*//*Label 189*/ GIMT_Encode4(3324), // Rule ID 88 //
5667 /* 3318 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule80Enabled),
5668 /* 3321 */ // Combiner Rule #80: binop_left_undef_to_zero; wip_match_opcode 'G_UREM'
5669 /* 3321 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner36),
5670 /* 3324 */ // Label 189: @3324
5671 /* 3324 */ GIM_Try, /*On fail goto*//*Label 190*/ GIMT_Encode4(3335), // Rule ID 235 //
5672 /* 3329 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule172Enabled),
5673 /* 3332 */ // Combiner Rule #172: div_rem_to_divrem; wip_match_opcode 'G_UREM'
5674 /* 3332 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
5675 /* 3335 */ // Label 190: @3335
5676 /* 3335 */ GIM_Try, /*On fail goto*//*Label 191*/ GIMT_Encode4(3346), // Rule ID 268 //
5677 /* 3340 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled),
5678 /* 3343 */ // Combiner Rule #187: constant_fold_binop; wip_match_opcode 'G_UREM'
5679 /* 3343 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103),
5680 /* 3346 */ // Label 191: @3346
5681 /* 3346 */ GIM_Try, /*On fail goto*//*Label 192*/ GIMT_Encode4(3357), // Rule ID 325 //
5682 /* 3351 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
5683 /* 3354 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_UREM'
5684 /* 3354 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
5685 /* 3357 */ // Label 192: @3357
5686 /* 3357 */ GIM_Try, /*On fail goto*//*Label 193*/ GIMT_Encode4(3397), // Rule ID 130 //
5687 /* 3362 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
5688 /* 3365 */ // MIs[0] dst
5689 /* 3365 */ // No operand predicates
5690 /* 3365 */ // MIs[0] zero
5691 /* 3365 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5692 /* 3369 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5693 /* 3373 */ // MIs[1] Operand 1
5694 /* 3373 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0),
5695 /* 3384 */ // MIs[0] rhs
5696 /* 3384 */ // No operand predicates
5697 /* 3384 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5698 /* 3389 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5699 /* 3391 */ // Combiner Rule #93: binop_left_to_zero @ [__binop_left_to_zero_match_0[6]]
5700 /* 3391 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5701 /* 3396 */ GIR_EraseRootFromParent_Done,
5702 /* 3397 */ // Label 193: @3397
5703 /* 3397 */ GIM_Try, /*On fail goto*//*Label 194*/ GIMT_Encode4(3408), // Rule ID 183 //
5704 /* 3402 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule139Enabled),
5705 /* 3405 */ // MIs[0] dst
5706 /* 3405 */ // No operand predicates
5707 /* 3405 */ // MIs[0] x
5708 /* 3405 */ // No operand predicates
5709 /* 3405 */ // MIs[0] y
5710 /* 3405 */ // No operand predicates
5711 /* 3405 */ // Combiner Rule #139: urem_pow2_to_mask
5712 /* 3405 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner74),
5713 /* 3408 */ // Label 194: @3408
5714 /* 3408 */ GIM_Try, /*On fail goto*//*Label 195*/ GIMT_Encode4(3419), // Rule ID 343 //
5715 /* 3413 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule206Enabled),
5716 /* 3416 */ // MIs[0] dst
5717 /* 3416 */ // No operand predicates
5718 /* 3416 */ // MIs[0] x
5719 /* 3416 */ // No operand predicates
5720 /* 3416 */ // MIs[0] y
5721 /* 3416 */ // No operand predicates
5722 /* 3416 */ // Combiner Rule #206: urem_by_const
5723 /* 3416 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner121),
5724 /* 3419 */ // Label 195: @3419
5725 /* 3419 */ GIM_Reject,
5726 /* 3420 */ // Label 8: @3420
5727 /* 3420 */ GIM_Try, /*On fail goto*//*Label 196*/ GIMT_Encode4(3431), // Rule ID 79 //
5728 /* 3425 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule75Enabled),
5729 /* 3428 */ // Combiner Rule #75: load_and_mask; wip_match_opcode 'G_AND'
5730 /* 3428 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner31),
5731 /* 3431 */ // Label 196: @3431
5732 /* 3431 */ GIM_Try, /*On fail goto*//*Label 197*/ GIMT_Encode4(3442), // Rule ID 83 //
5733 /* 3436 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule78Enabled),
5734 /* 3439 */ // Combiner Rule #78: undef_to_int_zero; wip_match_opcode 'G_AND'
5735 /* 3439 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner34),
5736 /* 3442 */ // Label 197: @3442
5737 /* 3442 */ GIM_Try, /*On fail goto*//*Label 198*/ GIMT_Encode4(3453), // Rule ID 153 //
5738 /* 3447 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule113Enabled),
5739 /* 3450 */ // Combiner Rule #113: hoist_logic_op_with_same_opcode_hands; wip_match_opcode 'G_AND'
5740 /* 3450 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner54),
5741 /* 3453 */ // Label 198: @3453
5742 /* 3453 */ GIM_Try, /*On fail goto*//*Label 199*/ GIMT_Encode4(3464), // Rule ID 173 //
5743 /* 3458 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule129Enabled),
5744 /* 3461 */ // Combiner Rule #129: narrow_binop_feeding_and; wip_match_opcode 'G_AND'
5745 /* 3461 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner67),
5746 /* 3464 */ // Label 199: @3464
5747 /* 3464 */ GIM_Try, /*On fail goto*//*Label 200*/ GIMT_Encode4(3475), // Rule ID 180 //
5748 /* 3469 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule136Enabled),
5749 /* 3472 */ // Combiner Rule #136: redundant_and; wip_match_opcode 'G_AND'
5750 /* 3472 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner71),
5751 /* 3475 */ // Label 200: @3475
5752 /* 3475 */ GIM_Try, /*On fail goto*//*Label 201*/ GIMT_Encode4(3486), // Rule ID 205 //
5753 /* 3480 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule161Enabled),
5754 /* 3483 */ // Combiner Rule #161: overlapping_and; wip_match_opcode 'G_AND'
5755 /* 3483 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner83),
5756 /* 3486 */ // Label 201: @3486
5757 /* 3486 */ GIM_Try, /*On fail goto*//*Label 202*/ GIMT_Encode4(3497), // Rule ID 258 //
5758 /* 3491 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled),
5759 /* 3494 */ // Combiner Rule #187: constant_fold_binop; wip_match_opcode 'G_AND'
5760 /* 3494 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103),
5761 /* 3497 */ // Label 202: @3497
5762 /* 3497 */ GIM_Try, /*On fail goto*//*Label 203*/ GIMT_Encode4(3508), // Rule ID 307 //
5763 /* 3502 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule195Enabled),
5764 /* 3505 */ // Combiner Rule #195: and_or_disjoint_mask; wip_match_opcode 'G_AND'
5765 /* 3505 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner110),
5766 /* 3508 */ // Label 203: @3508
5767 /* 3508 */ GIM_Try, /*On fail goto*//*Label 204*/ GIMT_Encode4(3519), // Rule ID 319 //
5768 /* 3513 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
5769 /* 3516 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_AND'
5770 /* 3516 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
5771 /* 3519 */ // Label 204: @3519
5772 /* 3519 */ GIM_Try, /*On fail goto*//*Label 205*/ GIMT_Encode4(3530), // Rule ID 355 //
5773 /* 3524 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
5774 /* 3527 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_AND'
5775 /* 3527 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129),
5776 /* 3530 */ // Label 205: @3530
5777 /* 3530 */ GIM_Try, /*On fail goto*//*Label 206*/ GIMT_Encode4(3541), // Rule ID 382 //
5778 /* 3535 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule218Enabled),
5779 /* 3538 */ // Combiner Rule #218: match_ands; wip_match_opcode 'G_AND'
5780 /* 3538 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner131),
5781 /* 3541 */ // Label 206: @3541
5782 /* 3541 */ GIM_Try, /*On fail goto*//*Label 207*/ GIMT_Encode4(3552), // Rule ID 425 //
5783 /* 3546 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule258Enabled),
5784 /* 3549 */ // Combiner Rule #258: binop_with_neg; wip_match_opcode 'G_AND'
5785 /* 3549 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner159),
5786 /* 3552 */ // Label 207: @3552
5787 /* 3552 */ GIM_Try, /*On fail goto*//*Label 208*/ GIMT_Encode4(3638), // Rule ID 387 //
5788 /* 3557 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule223Enabled),
5789 /* 3560 */ // MIs[0] root
5790 /* 3560 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
5791 /* 3564 */ // MIs[0] or
5792 /* 3564 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5793 /* 3568 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_OR),
5794 /* 3572 */ // MIs[1] x
5795 /* 3572 */ // No operand predicates
5796 /* 3572 */ // MIs[1] y
5797 /* 3572 */ // No operand predicates
5798 /* 3572 */ // MIs[0] not
5799 /* 3572 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
5800 /* 3576 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_XOR),
5801 /* 3580 */ // MIs[2] y
5802 /* 3580 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/2,
5803 /* 3585 */ // MIs[2] Operand 2
5804 /* 3585 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/2, 255,
5805 /* 3589 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5806 /* 3591 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
5807 /* 3594 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(18446744073709551615u),
5808 /* 3604 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5809 /* 3607 */ // Combiner Rule #223: and_xor_or_to_xor_and
5810 /* 3607 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_XOR),
5811 /* 3610 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5812 /* 3615 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // y
5813 /* 3619 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/1,
5814 /* 3622 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_AND),
5815 /* 3626 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // root
5816 /* 3630 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // x
5817 /* 3634 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
5818 /* 3637 */ GIR_EraseRootFromParent_Done,
5819 /* 3638 */ // Label 208: @3638
5820 /* 3638 */ GIM_Try, /*On fail goto*//*Label 209*/ GIMT_Encode4(3736), // Rule ID 166 //
5821 /* 3643 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule122Enabled),
5822 /* 3646 */ // MIs[0] root
5823 /* 3646 */ // No operand predicates
5824 /* 3646 */ // MIs[0] d1
5825 /* 3646 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5826 /* 3650 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ICMP),
5827 /* 3654 */ // MIs[1] p
5828 /* 3654 */ // No operand predicates
5829 /* 3654 */ // MIs[1] s1
5830 /* 3654 */ GIM_RecordRegType, /*MI*/1, /*Op*/2, /*TempTypeIdx*/255,
5831 /* 3658 */ // MIs[1] Operand 3
5832 /* 3658 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/3, 0,
5833 /* 3662 */ // MIs[0] d2
5834 /* 3662 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
5835 /* 3666 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ICMP),
5836 /* 3670 */ // MIs[2] p
5837 /* 3670 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/1,
5838 /* 3675 */ // MIs[2] s2
5839 /* 3675 */ // No operand predicates
5840 /* 3675 */ // MIs[2] Operand 3
5841 /* 3675 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/3, 0,
5842 /* 3679 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner9),
5843 /* 3683 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5844 /* 3685 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
5845 /* 3688 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(0),
5846 /* 3698 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5847 /* 3701 */ // Combiner Rule #122: double_icmp_zero_and_combine
5848 /* 3701 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR),
5849 /* 3704 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5850 /* 3709 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // s1
5851 /* 3713 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/2, // s2
5852 /* 3717 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ICMP),
5853 /* 3721 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // root
5854 /* 3725 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // p
5855 /* 3729 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
5856 /* 3732 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/1,
5857 /* 3735 */ GIR_EraseRootFromParent_Done,
5858 /* 3736 */ // Label 209: @3736
5859 /* 3736 */ GIM_Try, /*On fail goto*//*Label 210*/ GIMT_Encode4(3773), // Rule ID 251 //
5860 /* 3741 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule184Enabled),
5861 /* 3744 */ // MIs[0] root
5862 /* 3744 */ // No operand predicates
5863 /* 3744 */ // MIs[0] shift
5864 /* 3744 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5865 /* 3748 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_LSHR),
5866 /* 3752 */ // MIs[1] x
5867 /* 3752 */ // No operand predicates
5868 /* 3752 */ // MIs[1] lsb
5869 /* 3752 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
5870 /* 3756 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5871 /* 3760 */ // MIs[2] imm1
5872 /* 3760 */ // No operand predicates
5873 /* 3760 */ // MIs[0] mask
5874 /* 3760 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/0, /*OpIdx*/2, // MIs[3]
5875 /* 3764 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5876 /* 3768 */ // MIs[3] imm2
5877 /* 3768 */ // No operand predicates
5878 /* 3768 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
5879 /* 3770 */ // Combiner Rule #184: bitfield_extract_from_and
5880 /* 3770 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner100),
5881 /* 3773 */ // Label 210: @3773
5882 /* 3773 */ GIM_Try, /*On fail goto*//*Label 211*/ GIMT_Encode4(3822), // Rule ID 386 //
5883 /* 3778 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule222Enabled),
5884 /* 3781 */ // MIs[0] root
5885 /* 3781 */ // No operand predicates
5886 /* 3781 */ // MIs[0] or
5887 /* 3781 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5888 /* 3785 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_OR),
5889 /* 3789 */ // MIs[1] x
5890 /* 3789 */ // No operand predicates
5891 /* 3789 */ // MIs[1] not
5892 /* 3789 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
5893 /* 3793 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_XOR),
5894 /* 3797 */ // MIs[2] y
5895 /* 3797 */ // No operand predicates
5896 /* 3797 */ // MIs[2] Operand 2
5897 /* 3797 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/2, 255,
5898 /* 3801 */ // MIs[0] y
5899 /* 3801 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/2, /*OtherOpIdx*/1,
5900 /* 3806 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5901 /* 3808 */ // Combiner Rule #222: and_xor_or_to_and
5902 /* 3808 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_AND),
5903 /* 3811 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
5904 /* 3813 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
5905 /* 3817 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // y
5906 /* 3821 */ GIR_EraseRootFromParent_Done,
5907 /* 3822 */ // Label 211: @3822
5908 /* 3822 */ GIM_Try, /*On fail goto*//*Label 212*/ GIMT_Encode4(3936), // Rule ID 447 //
5909 /* 3827 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule275Enabled),
5910 /* 3830 */ GIM_RootCheckType, /*Op*/1, /*Type*/GILLT_i64,
5911 /* 3833 */ GIM_RootCheckType, /*Op*/2, /*Type*/GILLT_i64,
5912 /* 3836 */ // MIs[0] dst
5913 /* 3836 */ // No operand predicates
5914 /* 3836 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner24),
5915 /* 3840 */ GIR_MakeTempReg, /*TempRegID*/5, /*TypeID*/GILLT_i32,
5916 /* 3843 */ GIR_MakeTempReg, /*TempRegID*/4, /*TypeID*/GILLT_i32,
5917 /* 3846 */ GIR_MakeTempReg, /*TempRegID*/3, /*TypeID*/GILLT_i32,
5918 /* 3849 */ GIR_MakeTempReg, /*TempRegID*/2, /*TypeID*/GILLT_i32,
5919 /* 3852 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/GILLT_i32,
5920 /* 3855 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/GILLT_i32,
5921 /* 3858 */ // Combiner Rule #275: combine_and_s64_with_s32_mask
5922 /* 3858 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UNMERGE_VALUES),
5923 /* 3861 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5924 /* 3866 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/1, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5925 /* 3871 */ GIR_RootToRootCopy, /*OpIdx*/1, // x
5926 /* 3873 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UNMERGE_VALUES),
5927 /* 3877 */ GIR_AddTempRegister, /*InsnID*/1, /*TempRegID*/2, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5928 /* 3882 */ GIR_AddTempRegister, /*InsnID*/1, /*TempRegID*/3, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5929 /* 3887 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/2, // y
5930 /* 3891 */ GIR_BuildMI, /*InsnID*/2, /*Opcode*/GIMT_Encode2(TargetOpcode::G_AND),
5931 /* 3895 */ GIR_AddTempRegister, /*InsnID*/2, /*TempRegID*/4, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5932 /* 3900 */ GIR_AddSimpleTempRegister, /*InsnID*/2, /*TempRegID*/0,
5933 /* 3903 */ GIR_AddSimpleTempRegister, /*InsnID*/2, /*TempRegID*/2,
5934 /* 3906 */ GIR_BuildMI, /*InsnID*/3, /*Opcode*/GIMT_Encode2(TargetOpcode::G_AND),
5935 /* 3910 */ GIR_AddTempRegister, /*InsnID*/3, /*TempRegID*/5, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5936 /* 3915 */ GIR_AddSimpleTempRegister, /*InsnID*/3, /*TempRegID*/1,
5937 /* 3918 */ GIR_AddSimpleTempRegister, /*InsnID*/3, /*TempRegID*/3,
5938 /* 3921 */ GIR_BuildMI, /*InsnID*/4, /*Opcode*/GIMT_Encode2(TargetOpcode::G_MERGE_VALUES),
5939 /* 3925 */ GIR_Copy, /*NewInsnID*/4, /*OldInsnID*/0, /*OpIdx*/0, // dst
5940 /* 3929 */ GIR_AddSimpleTempRegister, /*InsnID*/4, /*TempRegID*/4,
5941 /* 3932 */ GIR_AddSimpleTempRegister, /*InsnID*/4, /*TempRegID*/5,
5942 /* 3935 */ GIR_EraseRootFromParent_Done,
5943 /* 3936 */ // Label 212: @3936
5944 /* 3936 */ GIM_Try, /*On fail goto*//*Label 213*/ GIMT_Encode4(3960), // Rule ID 120 //
5945 /* 3941 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule91Enabled),
5946 /* 3944 */ // MIs[0] dst
5947 /* 3944 */ // No operand predicates
5948 /* 3944 */ // MIs[0] src
5949 /* 3944 */ // No operand predicates
5950 /* 3944 */ // MIs[0] src
5951 /* 3944 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
5952 /* 3949 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5953 /* 3954 */ // Combiner Rule #91: binop_same_val @ [__binop_same_val_match_0[0]]
5954 /* 3954 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5955 /* 3959 */ GIR_EraseRootFromParent_Done,
5956 /* 3960 */ // Label 213: @3960
5957 /* 3960 */ GIM_Reject,
5958 /* 3961 */ // Label 9: @3961
5959 /* 3961 */ GIM_Try, /*On fail goto*//*Label 214*/ GIMT_Encode4(3972), // Rule ID 85 //
5960 /* 3966 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule79Enabled),
5961 /* 3969 */ // Combiner Rule #79: undef_to_negative_one; wip_match_opcode 'G_OR'
5962 /* 3969 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner35),
5963 /* 3972 */ // Label 214: @3972
5964 /* 3972 */ GIM_Try, /*On fail goto*//*Label 215*/ GIMT_Encode4(3983), // Rule ID 154 //
5965 /* 3977 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule113Enabled),
5966 /* 3980 */ // Combiner Rule #113: hoist_logic_op_with_same_opcode_hands; wip_match_opcode 'G_OR'
5967 /* 3980 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner54),
5968 /* 3983 */ // Label 215: @3983
5969 /* 3983 */ GIM_Try, /*On fail goto*//*Label 216*/ GIMT_Encode4(3994), // Rule ID 182 //
5970 /* 3988 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule138Enabled),
5971 /* 3991 */ // Combiner Rule #138: redundant_or; wip_match_opcode 'G_OR'
5972 /* 3991 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner73),
5973 /* 3994 */ // Label 216: @3994
5974 /* 3994 */ GIM_Try, /*On fail goto*//*Label 217*/ GIMT_Encode4(4005), // Rule ID 231 //
5975 /* 3999 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule171Enabled),
5976 /* 4002 */ // Combiner Rule #171: load_or_combine; wip_match_opcode 'G_OR'
5977 /* 4002 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner93),
5978 /* 4005 */ // Label 217: @4005
5979 /* 4005 */ GIM_Try, /*On fail goto*//*Label 218*/ GIMT_Encode4(4016), // Rule ID 236 //
5980 /* 4010 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule173Enabled),
5981 /* 4013 */ // Combiner Rule #173: funnel_shift_from_or_shift; wip_match_opcode 'G_OR'
5982 /* 4013 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner95),
5983 /* 4016 */ // Label 218: @4016
5984 /* 4016 */ GIM_Try, /*On fail goto*//*Label 219*/ GIMT_Encode4(4027), // Rule ID 262 //
5985 /* 4021 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled),
5986 /* 4024 */ // Combiner Rule #187: constant_fold_binop; wip_match_opcode 'G_OR'
5987 /* 4024 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103),
5988 /* 4027 */ // Label 219: @4027
5989 /* 4027 */ GIM_Try, /*On fail goto*//*Label 220*/ GIMT_Encode4(4038), // Rule ID 320 //
5990 /* 4032 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
5991 /* 4035 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_OR'
5992 /* 4035 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
5993 /* 4038 */ // Label 220: @4038
5994 /* 4038 */ GIM_Try, /*On fail goto*//*Label 221*/ GIMT_Encode4(4049), // Rule ID 356 //
5995 /* 4043 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
5996 /* 4046 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_OR'
5997 /* 4046 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129),
5998 /* 4049 */ // Label 221: @4049
5999 /* 4049 */ GIM_Try, /*On fail goto*//*Label 222*/ GIMT_Encode4(4060), // Rule ID 383 //
6000 /* 4054 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule219Enabled),
6001 /* 4057 */ // Combiner Rule #219: match_ors; wip_match_opcode 'G_OR'
6002 /* 4057 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner132),
6003 /* 4060 */ // Label 222: @4060
6004 /* 4060 */ GIM_Try, /*On fail goto*//*Label 223*/ GIMT_Encode4(4071), // Rule ID 426 //
6005 /* 4065 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule258Enabled),
6006 /* 4068 */ // Combiner Rule #258: binop_with_neg; wip_match_opcode 'G_OR'
6007 /* 4068 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner159),
6008 /* 4071 */ // Label 223: @4071
6009 /* 4071 */ GIM_Try, /*On fail goto*//*Label 224*/ GIMT_Encode4(4157), // Rule ID 385 //
6010 /* 4076 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule221Enabled),
6011 /* 4079 */ // MIs[0] root
6012 /* 4079 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
6013 /* 4083 */ // MIs[0] and
6014 /* 4083 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6015 /* 4087 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_AND),
6016 /* 4091 */ // MIs[1] x
6017 /* 4091 */ // No operand predicates
6018 /* 4091 */ // MIs[1] y
6019 /* 4091 */ // No operand predicates
6020 /* 4091 */ // MIs[0] not
6021 /* 4091 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
6022 /* 4095 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_XOR),
6023 /* 4099 */ // MIs[2] y
6024 /* 4099 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/2,
6025 /* 4104 */ // MIs[2] Operand 2
6026 /* 4104 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/2, 255,
6027 /* 4108 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
6028 /* 4110 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
6029 /* 4113 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(18446744073709551615u),
6030 /* 4123 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
6031 /* 4126 */ // Combiner Rule #221: or_and_xor_to_xor_or
6032 /* 4126 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_XOR),
6033 /* 4129 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
6034 /* 4134 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // y
6035 /* 4138 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/1,
6036 /* 4141 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR),
6037 /* 4145 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // root
6038 /* 4149 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // x
6039 /* 4153 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
6040 /* 4156 */ GIR_EraseRootFromParent_Done,
6041 /* 4157 */ // Label 224: @4157
6042 /* 4157 */ GIM_Try, /*On fail goto*//*Label 225*/ GIMT_Encode4(4244), // Rule ID 449 //
6043 /* 4162 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule276Enabled),
6044 /* 4165 */ GIM_RootCheckType, /*Op*/1, /*Type*/GILLT_i64,
6045 /* 4168 */ GIM_RootCheckType, /*Op*/2, /*Type*/GILLT_i64,
6046 /* 4171 */ // MIs[0] dst
6047 /* 4171 */ // No operand predicates
6048 /* 4171 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6049 /* 4175 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ZEXT),
6050 /* 4179 */ GIM_CheckType, /*MI*/1, /*Op*/1, /*Type*/GILLT_i32,
6051 /* 4183 */ GIM_RecordRegType, /*MI*/1, /*Op*/1, /*TempTypeIdx*/255,
6052 /* 4187 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6053 /* 4189 */ GIR_MakeTempReg, /*TempRegID*/2, /*TypeID*/255,
6054 /* 4192 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
6055 /* 4195 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
6056 /* 4198 */ // Combiner Rule #276: combine_or_s64_s32 @ [dst[1]]
6057 /* 4198 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UNMERGE_VALUES),
6058 /* 4201 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
6059 /* 4206 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/1, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
6060 /* 4211 */ GIR_RootToRootCopy, /*OpIdx*/2, // x
6061 /* 4213 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR),
6062 /* 4217 */ GIR_AddTempRegister, /*InsnID*/1, /*TempRegID*/2, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
6063 /* 4222 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
6064 /* 4225 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // y
6065 /* 4229 */ GIR_BuildMI, /*InsnID*/2, /*Opcode*/GIMT_Encode2(TargetOpcode::G_MERGE_VALUES),
6066 /* 4233 */ GIR_Copy, /*NewInsnID*/2, /*OldInsnID*/0, /*OpIdx*/0, // dst
6067 /* 4237 */ GIR_AddSimpleTempRegister, /*InsnID*/2, /*TempRegID*/2,
6068 /* 4240 */ GIR_AddSimpleTempRegister, /*InsnID*/2, /*TempRegID*/1,
6069 /* 4243 */ GIR_EraseRootFromParent_Done,
6070 /* 4244 */ // Label 225: @4244
6071 /* 4244 */ GIM_Try, /*On fail goto*//*Label 226*/ GIMT_Encode4(4291), // Rule ID 243 //
6072 /* 4249 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule178Enabled),
6073 /* 4252 */ // MIs[0] root
6074 /* 4252 */ // No operand predicates
6075 /* 4252 */ // MIs[0] out1
6076 /* 4252 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6077 /* 4256 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FSHL),
6078 /* 4260 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_left_match_0.x
6079 /* 4260 */ // No operand predicates
6080 /* 4260 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_left_match_0.z
6081 /* 4260 */ // No operand predicates
6082 /* 4260 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_left_match_0.y
6083 /* 4260 */ // No operand predicates
6084 /* 4260 */ // MIs[0] out2
6085 /* 4260 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
6086 /* 4264 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SHL),
6087 /* 4268 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_left_match_0.x
6088 /* 4268 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/1,
6089 /* 4273 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_left_match_0.y
6090 /* 4273 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/3,
6091 /* 4278 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6092 /* 4283 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
6093 /* 4285 */ // Combiner Rule #178: funnel_shift_or_shift_to_funnel_shift_left @ [__funnel_shift_or_shift_to_funnel_shift_left_match_0[0]]
6094 /* 4285 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6095 /* 4290 */ GIR_EraseRootFromParent_Done,
6096 /* 4291 */ // Label 226: @4291
6097 /* 4291 */ GIM_Try, /*On fail goto*//*Label 227*/ GIMT_Encode4(4338), // Rule ID 245 //
6098 /* 4296 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule179Enabled),
6099 /* 4299 */ // MIs[0] root
6100 /* 4299 */ // No operand predicates
6101 /* 4299 */ // MIs[0] out1
6102 /* 4299 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6103 /* 4303 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FSHR),
6104 /* 4307 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_right_match_0.z
6105 /* 4307 */ // No operand predicates
6106 /* 4307 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_right_match_0.x
6107 /* 4307 */ // No operand predicates
6108 /* 4307 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_right_match_0.y
6109 /* 4307 */ // No operand predicates
6110 /* 4307 */ // MIs[0] out2
6111 /* 4307 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
6112 /* 4311 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_LSHR),
6113 /* 4315 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_right_match_0.x
6114 /* 4315 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/2,
6115 /* 4320 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_right_match_0.y
6116 /* 4320 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/3,
6117 /* 4325 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6118 /* 4330 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
6119 /* 4332 */ // Combiner Rule #179: funnel_shift_or_shift_to_funnel_shift_right @ [__funnel_shift_or_shift_to_funnel_shift_right_match_0[0]]
6120 /* 4332 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6121 /* 4337 */ GIR_EraseRootFromParent_Done,
6122 /* 4338 */ // Label 227: @4338
6123 /* 4338 */ GIM_Try, /*On fail goto*//*Label 228*/ GIMT_Encode4(4436), // Rule ID 167 //
6124 /* 4343 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule123Enabled),
6125 /* 4346 */ // MIs[0] root
6126 /* 4346 */ // No operand predicates
6127 /* 4346 */ // MIs[0] d1
6128 /* 4346 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6129 /* 4350 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ICMP),
6130 /* 4354 */ // MIs[1] p
6131 /* 4354 */ // No operand predicates
6132 /* 4354 */ // MIs[1] s1
6133 /* 4354 */ GIM_RecordRegType, /*MI*/1, /*Op*/2, /*TempTypeIdx*/255,
6134 /* 4358 */ // MIs[1] Operand 3
6135 /* 4358 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/3, 0,
6136 /* 4362 */ // MIs[0] d2
6137 /* 4362 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
6138 /* 4366 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ICMP),
6139 /* 4370 */ // MIs[2] p
6140 /* 4370 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/1,
6141 /* 4375 */ // MIs[2] s2
6142 /* 4375 */ // No operand predicates
6143 /* 4375 */ // MIs[2] Operand 3
6144 /* 4375 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/3, 0,
6145 /* 4379 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner10),
6146 /* 4383 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
6147 /* 4385 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
6148 /* 4388 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(0),
6149 /* 4398 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
6150 /* 4401 */ // Combiner Rule #123: double_icmp_zero_or_combine
6151 /* 4401 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR),
6152 /* 4404 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
6153 /* 4409 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // s1
6154 /* 4413 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/2, // s2
6155 /* 4417 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ICMP),
6156 /* 4421 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // root
6157 /* 4425 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // p
6158 /* 4429 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
6159 /* 4432 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/1,
6160 /* 4435 */ GIR_EraseRootFromParent_Done,
6161 /* 4436 */ // Label 228: @4436
6162 /* 4436 */ GIM_Try, /*On fail goto*//*Label 229*/ GIMT_Encode4(4485), // Rule ID 384 //
6163 /* 4441 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule220Enabled),
6164 /* 4444 */ // MIs[0] root
6165 /* 4444 */ // No operand predicates
6166 /* 4444 */ // MIs[0] and
6167 /* 4444 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6168 /* 4448 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_AND),
6169 /* 4452 */ // MIs[1] x
6170 /* 4452 */ // No operand predicates
6171 /* 4452 */ // MIs[1] not
6172 /* 4452 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
6173 /* 4456 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_XOR),
6174 /* 4460 */ // MIs[2] y
6175 /* 4460 */ // No operand predicates
6176 /* 4460 */ // MIs[2] Operand 2
6177 /* 4460 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/2, 255,
6178 /* 4464 */ // MIs[0] y
6179 /* 4464 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/2, /*OtherOpIdx*/1,
6180 /* 4469 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
6181 /* 4471 */ // Combiner Rule #220: or_and_xor_to_or
6182 /* 4471 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR),
6183 /* 4474 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
6184 /* 4476 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
6185 /* 4480 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // y
6186 /* 4484 */ GIR_EraseRootFromParent_Done,
6187 /* 4485 */ // Label 229: @4485
6188 /* 4485 */ GIM_Try, /*On fail goto*//*Label 230*/ GIMT_Encode4(4519), // Rule ID 436 //
6189 /* 4490 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule267Enabled),
6190 /* 4493 */ // MIs[0] dst
6191 /* 4493 */ // No operand predicates
6192 /* 4493 */ // MIs[0] __combine_or_of_and_match_0.and
6193 /* 4493 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6194 /* 4497 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_AND),
6195 /* 4501 */ // MIs[1] x
6196 /* 4501 */ // No operand predicates
6197 /* 4501 */ // MIs[1] y
6198 /* 4501 */ // No operand predicates
6199 /* 4501 */ // MIs[0] x
6200 /* 4501 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/1,
6201 /* 4506 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
6202 /* 4511 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6203 /* 4513 */ // Combiner Rule #267: combine_or_of_and @ [__combine_or_of_and_match_0[0]]
6204 /* 4513 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
6205 /* 4518 */ GIR_EraseRootFromParent_Done,
6206 /* 4519 */ // Label 230: @4519
6207 /* 4519 */ GIM_Try, /*On fail goto*//*Label 231*/ GIMT_Encode4(4553), // Rule ID 437 //
6208 /* 4524 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule267Enabled),
6209 /* 4527 */ // MIs[0] dst
6210 /* 4527 */ // No operand predicates
6211 /* 4527 */ // MIs[0] __combine_or_of_and_match_0.and
6212 /* 4527 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6213 /* 4531 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_AND),
6214 /* 4535 */ // MIs[1] y
6215 /* 4535 */ // No operand predicates
6216 /* 4535 */ // MIs[1] x
6217 /* 4535 */ // No operand predicates
6218 /* 4535 */ // MIs[0] x
6219 /* 4535 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/2,
6220 /* 4540 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/2,
6221 /* 4545 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6222 /* 4547 */ // Combiner Rule #267: combine_or_of_and @ [__combine_or_of_and_match_0[1]]
6223 /* 4547 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/2,
6224 /* 4552 */ GIR_EraseRootFromParent_Done,
6225 /* 4553 */ // Label 231: @4553
6226 /* 4553 */ GIM_Try, /*On fail goto*//*Label 232*/ GIMT_Encode4(4600), // Rule ID 246 //
6227 /* 4558 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule179Enabled),
6228 /* 4561 */ // MIs[0] root
6229 /* 4561 */ // No operand predicates
6230 /* 4561 */ // MIs[0] out2
6231 /* 4561 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6232 /* 4565 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_LSHR),
6233 /* 4569 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_right_match_0.x
6234 /* 4569 */ // No operand predicates
6235 /* 4569 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_right_match_0.y
6236 /* 4569 */ // No operand predicates
6237 /* 4569 */ // MIs[0] out1
6238 /* 4569 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
6239 /* 4573 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_FSHR),
6240 /* 4577 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_right_match_0.z
6241 /* 4577 */ // No operand predicates
6242 /* 4577 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_right_match_0.x
6243 /* 4577 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/1,
6244 /* 4582 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_right_match_0.y
6245 /* 4582 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/3, /*OtherMI*/1, /*OtherOpIdx*/2,
6246 /* 4587 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
6247 /* 4592 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
6248 /* 4594 */ // Combiner Rule #179: funnel_shift_or_shift_to_funnel_shift_right @ [__funnel_shift_or_shift_to_funnel_shift_right_match_0[1]]
6249 /* 4594 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
6250 /* 4599 */ GIR_EraseRootFromParent_Done,
6251 /* 4600 */ // Label 232: @4600
6252 /* 4600 */ GIM_Try, /*On fail goto*//*Label 233*/ GIMT_Encode4(4647), // Rule ID 244 //
6253 /* 4605 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule178Enabled),
6254 /* 4608 */ // MIs[0] root
6255 /* 4608 */ // No operand predicates
6256 /* 4608 */ // MIs[0] out2
6257 /* 4608 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6258 /* 4612 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SHL),
6259 /* 4616 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_left_match_0.x
6260 /* 4616 */ // No operand predicates
6261 /* 4616 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_left_match_0.y
6262 /* 4616 */ // No operand predicates
6263 /* 4616 */ // MIs[0] out1
6264 /* 4616 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
6265 /* 4620 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_FSHL),
6266 /* 4624 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_left_match_0.x
6267 /* 4624 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/1,
6268 /* 4629 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_left_match_0.z
6269 /* 4629 */ // No operand predicates
6270 /* 4629 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_left_match_0.y
6271 /* 4629 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/3, /*OtherMI*/1, /*OtherOpIdx*/2,
6272 /* 4634 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
6273 /* 4639 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
6274 /* 4641 */ // Combiner Rule #178: funnel_shift_or_shift_to_funnel_shift_left @ [__funnel_shift_or_shift_to_funnel_shift_left_match_0[1]]
6275 /* 4641 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
6276 /* 4646 */ GIR_EraseRootFromParent_Done,
6277 /* 4647 */ // Label 233: @4647
6278 /* 4647 */ GIM_Try, /*On fail goto*//*Label 234*/ GIMT_Encode4(4697), // Rule ID 389 //
6279 /* 4652 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule225Enabled),
6280 /* 4655 */ // MIs[0] root
6281 /* 4655 */ // No operand predicates
6282 /* 4655 */ // MIs[0] xor
6283 /* 4655 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6284 /* 4659 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_XOR),
6285 /* 4663 */ // MIs[1] x
6286 /* 4663 */ // No operand predicates
6287 /* 4663 */ // MIs[1] y
6288 /* 4663 */ // No operand predicates
6289 /* 4663 */ // MIs[0] and
6290 /* 4663 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
6291 /* 4667 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_AND),
6292 /* 4671 */ // MIs[2] x
6293 /* 4671 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/1,
6294 /* 4676 */ // MIs[2] y
6295 /* 4676 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/2,
6296 /* 4681 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
6297 /* 4683 */ // Combiner Rule #225: or_xor_and
6298 /* 4683 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR),
6299 /* 4686 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
6300 /* 4688 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
6301 /* 4692 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // y
6302 /* 4696 */ GIR_EraseRootFromParent_Done,
6303 /* 4697 */ // Label 234: @4697
6304 /* 4697 */ GIM_Try, /*On fail goto*//*Label 235*/ GIMT_Encode4(4747), // Rule ID 388 //
6305 /* 4702 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule224Enabled),
6306 /* 4705 */ // MIs[0] root
6307 /* 4705 */ // No operand predicates
6308 /* 4705 */ // MIs[0] xor
6309 /* 4705 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6310 /* 4709 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_XOR),
6311 /* 4713 */ // MIs[1] x
6312 /* 4713 */ // No operand predicates
6313 /* 4713 */ // MIs[1] y
6314 /* 4713 */ // No operand predicates
6315 /* 4713 */ // MIs[0] or
6316 /* 4713 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
6317 /* 4717 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_OR),
6318 /* 4721 */ // MIs[2] x
6319 /* 4721 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/1,
6320 /* 4726 */ // MIs[2] y
6321 /* 4726 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/2,
6322 /* 4731 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
6323 /* 4733 */ // Combiner Rule #224: or_xor_or
6324 /* 4733 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR),
6325 /* 4736 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
6326 /* 4738 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
6327 /* 4742 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // y
6328 /* 4746 */ GIR_EraseRootFromParent_Done,
6329 /* 4747 */ // Label 235: @4747
6330 /* 4747 */ GIM_Try, /*On fail goto*//*Label 236*/ GIMT_Encode4(4948),
6331 /* 4752 */ GIM_RootCheckType, /*Op*/1, /*Type*/GILLT_i64,
6332 /* 4755 */ GIM_RootCheckType, /*Op*/2, /*Type*/GILLT_i64,
6333 /* 4758 */ GIM_Try, /*On fail goto*//*Label 237*/ GIMT_Encode4(4839), // Rule ID 448 //
6334 /* 4763 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule276Enabled),
6335 /* 4766 */ // MIs[0] dst
6336 /* 4766 */ // No operand predicates
6337 /* 4766 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
6338 /* 4770 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ZEXT),
6339 /* 4774 */ GIM_CheckType, /*MI*/1, /*Op*/1, /*Type*/GILLT_i32,
6340 /* 4778 */ GIM_RecordRegType, /*MI*/1, /*Op*/1, /*TempTypeIdx*/255,
6341 /* 4782 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6342 /* 4784 */ GIR_MakeTempReg, /*TempRegID*/2, /*TypeID*/255,
6343 /* 4787 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
6344 /* 4790 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
6345 /* 4793 */ // Combiner Rule #276: combine_or_s64_s32 @ [dst[0]]
6346 /* 4793 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UNMERGE_VALUES),
6347 /* 4796 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
6348 /* 4801 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/1, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
6349 /* 4806 */ GIR_RootToRootCopy, /*OpIdx*/1, // x
6350 /* 4808 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR),
6351 /* 4812 */ GIR_AddTempRegister, /*InsnID*/1, /*TempRegID*/2, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
6352 /* 4817 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
6353 /* 4820 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // y
6354 /* 4824 */ GIR_BuildMI, /*InsnID*/2, /*Opcode*/GIMT_Encode2(TargetOpcode::G_MERGE_VALUES),
6355 /* 4828 */ GIR_Copy, /*NewInsnID*/2, /*OldInsnID*/0, /*OpIdx*/0, // dst
6356 /* 4832 */ GIR_AddSimpleTempRegister, /*InsnID*/2, /*TempRegID*/2,
6357 /* 4835 */ GIR_AddSimpleTempRegister, /*InsnID*/2, /*TempRegID*/1,
6358 /* 4838 */ GIR_EraseRootFromParent_Done,
6359 /* 4839 */ // Label 237: @4839
6360 /* 4839 */ GIM_Try, /*On fail goto*//*Label 238*/ GIMT_Encode4(4947), // Rule ID 446 //
6361 /* 4844 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule274Enabled),
6362 /* 4847 */ // MIs[0] dst
6363 /* 4847 */ // No operand predicates
6364 /* 4847 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner24),
6365 /* 4851 */ GIR_MakeTempReg, /*TempRegID*/5, /*TypeID*/GILLT_i32,
6366 /* 4854 */ GIR_MakeTempReg, /*TempRegID*/4, /*TypeID*/GILLT_i32,
6367 /* 4857 */ GIR_MakeTempReg, /*TempRegID*/3, /*TypeID*/GILLT_i32,
6368 /* 4860 */ GIR_MakeTempReg, /*TempRegID*/2, /*TypeID*/GILLT_i32,
6369 /* 4863 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/GILLT_i32,
6370 /* 4866 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/GILLT_i32,
6371 /* 4869 */ // Combiner Rule #274: combine_or_s64_with_s32_mask
6372 /* 4869 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UNMERGE_VALUES),
6373 /* 4872 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
6374 /* 4877 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/1, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
6375 /* 4882 */ GIR_RootToRootCopy, /*OpIdx*/1, // x
6376 /* 4884 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UNMERGE_VALUES),
6377 /* 4888 */ GIR_AddTempRegister, /*InsnID*/1, /*TempRegID*/2, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
6378 /* 4893 */ GIR_AddTempRegister, /*InsnID*/1, /*TempRegID*/3, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
6379 /* 4898 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/2, // y
6380 /* 4902 */ GIR_BuildMI, /*InsnID*/2, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR),
6381 /* 4906 */ GIR_AddTempRegister, /*InsnID*/2, /*TempRegID*/4, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
6382 /* 4911 */ GIR_AddSimpleTempRegister, /*InsnID*/2, /*TempRegID*/0,
6383 /* 4914 */ GIR_AddSimpleTempRegister, /*InsnID*/2, /*TempRegID*/2,
6384 /* 4917 */ GIR_BuildMI, /*InsnID*/3, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR),
6385 /* 4921 */ GIR_AddTempRegister, /*InsnID*/3, /*TempRegID*/5, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
6386 /* 4926 */ GIR_AddSimpleTempRegister, /*InsnID*/3, /*TempRegID*/1,
6387 /* 4929 */ GIR_AddSimpleTempRegister, /*InsnID*/3, /*TempRegID*/3,
6388 /* 4932 */ GIR_BuildMI, /*InsnID*/4, /*Opcode*/GIMT_Encode2(TargetOpcode::G_MERGE_VALUES),
6389 /* 4936 */ GIR_Copy, /*NewInsnID*/4, /*OldInsnID*/0, /*OpIdx*/0, // dst
6390 /* 4940 */ GIR_AddSimpleTempRegister, /*InsnID*/4, /*TempRegID*/4,
6391 /* 4943 */ GIR_AddSimpleTempRegister, /*InsnID*/4, /*TempRegID*/5,
6392 /* 4946 */ GIR_EraseRootFromParent_Done,
6393 /* 4947 */ // Label 238: @4947
6394 /* 4947 */ GIM_Reject,
6395 /* 4948 */ // Label 236: @4948
6396 /* 4948 */ GIM_Try, /*On fail goto*//*Label 239*/ GIMT_Encode4(4972), // Rule ID 121 //
6397 /* 4953 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule91Enabled),
6398 /* 4956 */ // MIs[0] dst
6399 /* 4956 */ // No operand predicates
6400 /* 4956 */ // MIs[0] src
6401 /* 4956 */ // No operand predicates
6402 /* 4956 */ // MIs[0] src
6403 /* 4956 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
6404 /* 4961 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6405 /* 4966 */ // Combiner Rule #91: binop_same_val @ [__binop_same_val_match_0[1]]
6406 /* 4966 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6407 /* 4971 */ GIR_EraseRootFromParent_Done,
6408 /* 4972 */ // Label 239: @4972
6409 /* 4972 */ GIM_Try, /*On fail goto*//*Label 240*/ GIMT_Encode4(5006), // Rule ID 438 //
6410 /* 4977 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule267Enabled),
6411 /* 4980 */ // MIs[0] dst
6412 /* 4980 */ // No operand predicates
6413 /* 4980 */ // MIs[0] x
6414 /* 4980 */ // No operand predicates
6415 /* 4980 */ // MIs[0] __combine_or_of_and_match_0.and
6416 /* 4980 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
6417 /* 4984 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_AND),
6418 /* 4988 */ // MIs[1] x
6419 /* 4988 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/1, /*OpIdx*/1, /*OtherMI*/0, /*OtherOpIdx*/1,
6420 /* 4993 */ // MIs[1] y
6421 /* 4993 */ // No operand predicates
6422 /* 4993 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6423 /* 4998 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6424 /* 5000 */ // Combiner Rule #267: combine_or_of_and @ [__combine_or_of_and_match_0[2]]
6425 /* 5000 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6426 /* 5005 */ GIR_EraseRootFromParent_Done,
6427 /* 5006 */ // Label 240: @5006
6428 /* 5006 */ GIM_Try, /*On fail goto*//*Label 241*/ GIMT_Encode4(5040), // Rule ID 439 //
6429 /* 5011 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule267Enabled),
6430 /* 5014 */ // MIs[0] dst
6431 /* 5014 */ // No operand predicates
6432 /* 5014 */ // MIs[0] x
6433 /* 5014 */ // No operand predicates
6434 /* 5014 */ // MIs[0] __combine_or_of_and_match_0.and
6435 /* 5014 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
6436 /* 5018 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_AND),
6437 /* 5022 */ // MIs[1] y
6438 /* 5022 */ // No operand predicates
6439 /* 5022 */ // MIs[1] x
6440 /* 5022 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/1, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
6441 /* 5027 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6442 /* 5032 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6443 /* 5034 */ // Combiner Rule #267: combine_or_of_and @ [__combine_or_of_and_match_0[3]]
6444 /* 5034 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6445 /* 5039 */ GIR_EraseRootFromParent_Done,
6446 /* 5040 */ // Label 241: @5040
6447 /* 5040 */ GIM_Try, /*On fail goto*//*Label 242*/ GIMT_Encode4(5063), // Rule ID 112 //
6448 /* 5045 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled),
6449 /* 5048 */ // MIs[0] dst
6450 /* 5048 */ // No operand predicates
6451 /* 5048 */ // MIs[0] lhs
6452 /* 5048 */ // No operand predicates
6453 /* 5048 */ // MIs[0] Operand 2
6454 /* 5048 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
6455 /* 5052 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6456 /* 5057 */ // Combiner Rule #90: right_identity_zero @ [__right_identity_zero_match_0[2]]
6457 /* 5057 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6458 /* 5062 */ GIR_EraseRootFromParent_Done,
6459 /* 5063 */ // Label 242: @5063
6460 /* 5063 */ GIM_Reject,
6461 /* 5064 */ // Label 10: @5064
6462 /* 5064 */ GIM_Try, /*On fail goto*//*Label 243*/ GIMT_Encode4(5075), // Rule ID 102 //
6463 /* 5069 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule84Enabled),
6464 /* 5072 */ // Combiner Rule #84: propagate_undef_any_op; wip_match_opcode 'G_XOR'
6465 /* 5072 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner39),
6466 /* 5075 */ // Label 243: @5075
6467 /* 5075 */ GIM_Try, /*On fail goto*//*Label 244*/ GIMT_Encode4(5086), // Rule ID 155 //
6468 /* 5080 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule113Enabled),
6469 /* 5083 */ // Combiner Rule #113: hoist_logic_op_with_same_opcode_hands; wip_match_opcode 'G_XOR'
6470 /* 5083 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner54),
6471 /* 5086 */ // Label 244: @5086
6472 /* 5086 */ GIM_Try, /*On fail goto*//*Label 245*/ GIMT_Encode4(5097), // Rule ID 187 //
6473 /* 5091 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule143Enabled),
6474 /* 5094 */ // Combiner Rule #143: not_cmp_fold; wip_match_opcode 'G_XOR'
6475 /* 5094 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner78),
6476 /* 5097 */ // Label 245: @5097
6477 /* 5097 */ GIM_Try, /*On fail goto*//*Label 246*/ GIMT_Encode4(5108), // Rule ID 219 //
6478 /* 5102 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule167Enabled),
6479 /* 5105 */ // Combiner Rule #167: xor_of_and_with_same_reg; wip_match_opcode 'G_XOR'
6480 /* 5105 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner89),
6481 /* 5108 */ // Label 246: @5108
6482 /* 5108 */ GIM_Try, /*On fail goto*//*Label 247*/ GIMT_Encode4(5119), // Rule ID 265 //
6483 /* 5113 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled),
6484 /* 5116 */ // Combiner Rule #187: constant_fold_binop; wip_match_opcode 'G_XOR'
6485 /* 5116 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103),
6486 /* 5119 */ // Label 247: @5119
6487 /* 5119 */ GIM_Try, /*On fail goto*//*Label 248*/ GIMT_Encode4(5130), // Rule ID 321 //
6488 /* 5124 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
6489 /* 5127 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_XOR'
6490 /* 5127 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
6491 /* 5130 */ // Label 248: @5130
6492 /* 5130 */ GIM_Try, /*On fail goto*//*Label 249*/ GIMT_Encode4(5141), // Rule ID 357 //
6493 /* 5135 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
6494 /* 5138 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_XOR'
6495 /* 5138 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129),
6496 /* 5141 */ // Label 249: @5141
6497 /* 5141 */ GIM_Try, /*On fail goto*//*Label 250*/ GIMT_Encode4(5152), // Rule ID 427 //
6498 /* 5146 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule258Enabled),
6499 /* 5149 */ // Combiner Rule #258: binop_with_neg; wip_match_opcode 'G_XOR'
6500 /* 5149 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner159),
6501 /* 5152 */ // Label 250: @5152
6502 /* 5152 */ GIM_Try, /*On fail goto*//*Label 251*/ GIMT_Encode4(5212), // Rule ID 13 //
6503 /* 5157 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule13Enabled),
6504 /* 5160 */ // MIs[0] root
6505 /* 5160 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
6506 /* 5164 */ // MIs[0] add
6507 /* 5164 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6508 /* 5168 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
6509 /* 5172 */ // MIs[1] A
6510 /* 5172 */ // No operand predicates
6511 /* 5172 */ // MIs[1] Operand 2
6512 /* 5172 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/2, 255,
6513 /* 5176 */ // MIs[0] Operand 2
6514 /* 5176 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 255,
6515 /* 5180 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner1),
6516 /* 5184 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6517 /* 5186 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
6518 /* 5189 */ GIR_BuildConstant, /*TempRegID*/0, /*Val*/GIMT_Encode8(0),
6519 /* 5199 */ // Combiner Rule #13: NotAPlusNegOne
6520 /* 5199 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
6521 /* 5202 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
6522 /* 5204 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/0,
6523 /* 5207 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // A
6524 /* 5211 */ GIR_EraseRootFromParent_Done,
6525 /* 5212 */ // Label 251: @5212
6526 /* 5212 */ GIM_Try, /*On fail goto*//*Label 252*/ GIMT_Encode4(5251), // Rule ID 123 //
6527 /* 5217 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule92Enabled),
6528 /* 5220 */ // MIs[0] dst
6529 /* 5220 */ // No operand predicates
6530 /* 5220 */ // MIs[0] x
6531 /* 5220 */ GIM_RecordRegType, /*MI*/0, /*Op*/1, /*TempTypeIdx*/255,
6532 /* 5224 */ // MIs[0] x
6533 /* 5224 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
6534 /* 5229 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
6535 /* 5232 */ GIR_BuildConstant, /*TempRegID*/0, /*Val*/GIMT_Encode8(0),
6536 /* 5242 */ // Combiner Rule #92: same_val_zero @ [__same_val_zero_match_0[1]]
6537 /* 5242 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::COPY),
6538 /* 5245 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
6539 /* 5247 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/0,
6540 /* 5250 */ GIR_EraseRootFromParent_Done,
6541 /* 5251 */ // Label 252: @5251
6542 /* 5251 */ GIM_Try, /*On fail goto*//*Label 253*/ GIMT_Encode4(5274), // Rule ID 113 //
6543 /* 5256 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled),
6544 /* 5259 */ // MIs[0] dst
6545 /* 5259 */ // No operand predicates
6546 /* 5259 */ // MIs[0] lhs
6547 /* 5259 */ // No operand predicates
6548 /* 5259 */ // MIs[0] Operand 2
6549 /* 5259 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
6550 /* 5263 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6551 /* 5268 */ // Combiner Rule #90: right_identity_zero @ [__right_identity_zero_match_0[3]]
6552 /* 5268 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6553 /* 5273 */ GIR_EraseRootFromParent_Done,
6554 /* 5274 */ // Label 253: @5274
6555 /* 5274 */ GIM_Reject,
6556 /* 5275 */ // Label 11: @5275
6557 /* 5275 */ GIM_Try, /*On fail goto*//*Label 254*/ GIMT_Encode4(5286), // Rule ID 151 //
6558 /* 5280 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule111Enabled),
6559 /* 5283 */ // Combiner Rule #111: extend_through_phis; wip_match_opcode 'G_PHI'
6560 /* 5283 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner52),
6561 /* 5286 */ // Label 254: @5286
6562 /* 5286 */ GIM_Reject,
6563 /* 5287 */ // Label 12: @5287
6564 /* 5287 */ GIM_Try, /*On fail goto*//*Label 255*/ GIMT_Encode4(5298), // Rule ID 399 //
6565 /* 5292 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule235Enabled),
6566 /* 5295 */ // Combiner Rule #235: unmerge_anyext_build_vector; wip_match_opcode 'G_UNMERGE_VALUES'
6567 /* 5295 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner142),
6568 /* 5298 */ // Label 255: @5298
6569 /* 5298 */ GIM_Try, /*On fail goto*//*Label 256*/ GIMT_Encode4(5309), // Rule ID 400 //
6570 /* 5303 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule236Enabled),
6571 /* 5306 */ // Combiner Rule #236: unmerge_merge; wip_match_opcode 'G_UNMERGE_VALUES'
6572 /* 5306 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner143),
6573 /* 5309 */ // Label 256: @5309
6574 /* 5309 */ GIM_Try, /*On fail goto*//*Label 257*/ GIMT_Encode4(5320), // Rule ID 402 //
6575 /* 5314 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule238Enabled),
6576 /* 5317 */ // Combiner Rule #238: unmerge_cst; wip_match_opcode 'G_UNMERGE_VALUES'
6577 /* 5317 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner145),
6578 /* 5320 */ // Label 257: @5320
6579 /* 5320 */ GIM_Try, /*On fail goto*//*Label 258*/ GIMT_Encode4(5331), // Rule ID 403 //
6580 /* 5325 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule239Enabled),
6581 /* 5328 */ // Combiner Rule #239: unmerge_undef; wip_match_opcode 'G_UNMERGE_VALUES'
6582 /* 5328 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner146),
6583 /* 5331 */ // Label 258: @5331
6584 /* 5331 */ GIM_Try, /*On fail goto*//*Label 259*/ GIMT_Encode4(5342), // Rule ID 404 //
6585 /* 5336 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule240Enabled),
6586 /* 5339 */ // Combiner Rule #240: unmerge_dead_to_trunc; wip_match_opcode 'G_UNMERGE_VALUES'
6587 /* 5339 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner147),
6588 /* 5342 */ // Label 259: @5342
6589 /* 5342 */ GIM_Try, /*On fail goto*//*Label 260*/ GIMT_Encode4(5353), // Rule ID 405 //
6590 /* 5347 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule241Enabled),
6591 /* 5350 */ // Combiner Rule #241: unmerge_zext_to_zext; wip_match_opcode 'G_UNMERGE_VALUES'
6592 /* 5350 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner148),
6593 /* 5353 */ // Label 260: @5353
6594 /* 5353 */ GIM_Reject,
6595 /* 5354 */ // Label 13: @5354
6596 /* 5354 */ GIM_Try, /*On fail goto*//*Label 261*/ GIMT_Encode4(5368), // Rule ID 401 //
6597 /* 5359 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule237Enabled),
6598 /* 5362 */ GIM_CheckNumOperandsGE, /*MI*/0, /*Expected*/2,
6599 /* 5365 */ // MIs[0] dst
6600 /* 5365 */ // No operand predicates
6601 /* 5365 */ // MIs[0] merge_srcs
6602 /* 5365 */ // No operand predicates
6603 /* 5365 */ // Combiner Rule #237: merge_unmerge
6604 /* 5365 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner144),
6605 /* 5368 */ // Label 261: @5368
6606 /* 5368 */ GIM_Try, /*On fail goto*//*Label 262*/ GIMT_Encode4(5430),
6607 /* 5373 */ GIM_CheckNumOperands, /*MI*/0, /*Expected*/3,
6608 /* 5376 */ GIM_Try, /*On fail goto*//*Label 263*/ GIMT_Encode4(5397), // Rule ID 406 //
6609 /* 5381 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule242Enabled),
6610 /* 5384 */ // MIs[0] root
6611 /* 5384 */ // No operand predicates
6612 /* 5384 */ // MIs[0] x
6613 /* 5384 */ // No operand predicates
6614 /* 5384 */ // MIs[0] undef
6615 /* 5384 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
6616 /* 5388 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
6617 /* 5392 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6618 /* 5394 */ // Combiner Rule #242: merge_of_x_and_undef
6619 /* 5394 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner149),
6620 /* 5397 */ // Label 263: @5397
6621 /* 5397 */ GIM_Try, /*On fail goto*//*Label 264*/ GIMT_Encode4(5429), // Rule ID 407 //
6622 /* 5402 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule243Enabled),
6623 /* 5405 */ // MIs[0] root
6624 /* 5405 */ // No operand predicates
6625 /* 5405 */ // MIs[0] x
6626 /* 5405 */ // No operand predicates
6627 /* 5405 */ // MIs[0] zero
6628 /* 5405 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
6629 /* 5409 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
6630 /* 5413 */ // MIs[1] Operand 1
6631 /* 5413 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0),
6632 /* 5424 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6633 /* 5426 */ // Combiner Rule #243: merge_of_x_and_zero
6634 /* 5426 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner150),
6635 /* 5429 */ // Label 264: @5429
6636 /* 5429 */ GIM_Reject,
6637 /* 5430 */ // Label 262: @5430
6638 /* 5430 */ GIM_Reject,
6639 /* 5431 */ // Label 14: @5431
6640 /* 5431 */ GIM_Try, /*On fail goto*//*Label 265*/ GIMT_Encode4(5442), // Rule ID 75 //
6641 /* 5436 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule73Enabled),
6642 /* 5439 */ // Combiner Rule #73: extract_all_elts_from_build_vector; wip_match_opcode 'G_BUILD_VECTOR'
6643 /* 5439 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner29),
6644 /* 5442 */ // Label 265: @5442
6645 /* 5442 */ GIM_Try, /*On fail goto*//*Label 266*/ GIMT_Encode4(5453), // Rule ID 104 //
6646 /* 5447 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule85Enabled),
6647 /* 5450 */ // Combiner Rule #85: propagate_undef_all_ops; wip_match_opcode 'G_BUILD_VECTOR'
6648 /* 5450 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner40),
6649 /* 5453 */ // Label 266: @5453
6650 /* 5453 */ GIM_Try, /*On fail goto*//*Label 267*/ GIMT_Encode4(5464), // Rule ID 142 //
6651 /* 5458 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule102Enabled),
6652 /* 5461 */ // Combiner Rule #102: buildvector_identity_fold; wip_match_opcode 'G_BUILD_VECTOR'
6653 /* 5461 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner48),
6654 /* 5464 */ // Label 267: @5464
6655 /* 5464 */ GIM_Try, /*On fail goto*//*Label 268*/ GIMT_Encode4(5495),
6656 /* 5469 */ GIM_CheckNumOperandsGE, /*MI*/0, /*Expected*/2,
6657 /* 5472 */ GIM_Try, /*On fail goto*//*Label 269*/ GIMT_Encode4(5483), // Rule ID 398 //
6658 /* 5477 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule234Enabled),
6659 /* 5480 */ // MIs[0] dst
6660 /* 5480 */ // No operand predicates
6661 /* 5480 */ // MIs[0] unused
6662 /* 5480 */ // No operand predicates
6663 /* 5480 */ // Combiner Rule #234: combine_use_vector_truncate
6664 /* 5480 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner141),
6665 /* 5483 */ // Label 269: @5483
6666 /* 5483 */ GIM_Try, /*On fail goto*//*Label 270*/ GIMT_Encode4(5494), // Rule ID 408 //
6667 /* 5488 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule244Enabled),
6668 /* 5491 */ // MIs[0] dst
6669 /* 5491 */ // No operand predicates
6670 /* 5491 */ // MIs[0] unused
6671 /* 5491 */ // No operand predicates
6672 /* 5491 */ // Combiner Rule #244: combine_build_unmerge
6673 /* 5491 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner151),
6674 /* 5494 */ // Label 270: @5494
6675 /* 5494 */ GIM_Reject,
6676 /* 5495 */ // Label 268: @5495
6677 /* 5495 */ GIM_Reject,
6678 /* 5496 */ // Label 15: @5496
6679 /* 5496 */ GIM_Try, /*On fail goto*//*Label 271*/ GIMT_Encode4(5507), // Rule ID 141 //
6680 /* 5501 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule102Enabled),
6681 /* 5504 */ // Combiner Rule #102: buildvector_identity_fold; wip_match_opcode 'G_BUILD_VECTOR_TRUNC'
6682 /* 5504 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner48),
6683 /* 5507 */ // Label 271: @5507
6684 /* 5507 */ GIM_Reject,
6685 /* 5508 */ // Label 16: @5508
6686 /* 5508 */ GIM_Try, /*On fail goto*//*Label 272*/ GIMT_Encode4(5519), // Rule ID 391 //
6687 /* 5513 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule227Enabled),
6688 /* 5516 */ // Combiner Rule #227: combine_concat_vector; wip_match_opcode 'G_CONCAT_VECTORS'
6689 /* 5516 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner134),
6690 /* 5519 */ // Label 272: @5519
6691 /* 5519 */ GIM_Reject,
6692 /* 5520 */ // Label 17: @5520
6693 /* 5520 */ GIM_Try, /*On fail goto*//*Label 273*/ GIMT_Encode4(5541), // Rule ID 134 //
6694 /* 5525 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule96Enabled),
6695 /* 5528 */ // MIs[0] dst
6696 /* 5528 */ // No operand predicates
6697 /* 5528 */ // MIs[0] t
6698 /* 5528 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6699 /* 5532 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_INTTOPTR),
6700 /* 5536 */ // MIs[1] ptr
6701 /* 5536 */ // No operand predicates
6702 /* 5536 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6703 /* 5538 */ // Combiner Rule #96: i2p_to_p2i
6704 /* 5538 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner46),
6705 /* 5541 */ // Label 273: @5541
6706 /* 5541 */ GIM_Try, /*On fail goto*//*Label 274*/ GIMT_Encode4(5562), // Rule ID 96 //
6707 /* 5546 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule83Enabled),
6708 /* 5549 */ // MIs[0] dst
6709 /* 5549 */ // No operand predicates
6710 /* 5549 */ // MIs[0] __unary_undef_to_undef_match_0.x
6711 /* 5549 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6712 /* 5553 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
6713 /* 5557 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6714 /* 5559 */ // Combiner Rule #83: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[3]]
6715 /* 5559 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner38),
6716 /* 5562 */ // Label 274: @5562
6717 /* 5562 */ GIM_Reject,
6718 /* 5563 */ // Label 18: @5563
6719 /* 5563 */ GIM_Try, /*On fail goto*//*Label 275*/ GIMT_Encode4(5574), // Rule ID 133 //
6720 /* 5568 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule95Enabled),
6721 /* 5571 */ // Combiner Rule #95: p2i_to_i2p; wip_match_opcode 'G_INTTOPTR'
6722 /* 5571 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner45),
6723 /* 5574 */ // Label 275: @5574
6724 /* 5574 */ GIM_Try, /*On fail goto*//*Label 276*/ GIMT_Encode4(5595), // Rule ID 97 //
6725 /* 5579 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule83Enabled),
6726 /* 5582 */ // MIs[0] dst
6727 /* 5582 */ // No operand predicates
6728 /* 5582 */ // MIs[0] __unary_undef_to_undef_match_0.x
6729 /* 5582 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6730 /* 5586 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
6731 /* 5590 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6732 /* 5592 */ // Combiner Rule #83: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[4]]
6733 /* 5592 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner38),
6734 /* 5595 */ // Label 276: @5595
6735 /* 5595 */ GIM_Reject,
6736 /* 5596 */ // Label 19: @5596
6737 /* 5596 */ GIM_Try, /*On fail goto*//*Label 277*/ GIMT_Encode4(5628), // Rule ID 146 //
6738 /* 5601 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule106Enabled),
6739 /* 5604 */ // MIs[0] dst
6740 /* 5604 */ // No operand predicates
6741 /* 5604 */ // MIs[0] src1
6742 /* 5604 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6743 /* 5608 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BITCAST),
6744 /* 5612 */ // MIs[1] src0
6745 /* 5612 */ // No operand predicates
6746 /* 5612 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner5),
6747 /* 5616 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6748 /* 5618 */ // Combiner Rule #106: bitcast_bitcast_to_bitcast
6749 /* 5618 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_BITCAST),
6750 /* 5621 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
6751 /* 5623 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // src0
6752 /* 5627 */ GIR_EraseRootFromParent_Done,
6753 /* 5628 */ // Label 277: @5628
6754 /* 5628 */ GIM_Try, /*On fail goto*//*Label 278*/ GIMT_Encode4(5649), // Rule ID 145 //
6755 /* 5633 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule105Enabled),
6756 /* 5636 */ // MIs[0] dst
6757 /* 5636 */ // No operand predicates
6758 /* 5636 */ // MIs[0] src1
6759 /* 5636 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6760 /* 5640 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BITCAST),
6761 /* 5644 */ // MIs[1] src0
6762 /* 5644 */ // No operand predicates
6763 /* 5644 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6764 /* 5646 */ // Combiner Rule #105: bitcast_bitcast_fold
6765 /* 5646 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner51),
6766 /* 5649 */ // Label 278: @5649
6767 /* 5649 */ GIM_Try, /*On fail goto*//*Label 279*/ GIMT_Encode4(5670), // Rule ID 94 //
6768 /* 5654 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule83Enabled),
6769 /* 5657 */ // MIs[0] dst
6770 /* 5657 */ // No operand predicates
6771 /* 5657 */ // MIs[0] __unary_undef_to_undef_match_0.x
6772 /* 5657 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6773 /* 5661 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
6774 /* 5665 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6775 /* 5667 */ // Combiner Rule #83: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[1]]
6776 /* 5667 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner38),
6777 /* 5670 */ // Label 279: @5670
6778 /* 5670 */ GIM_Reject,
6779 /* 5671 */ // Label 20: @5671
6780 /* 5671 */ GIM_Try, /*On fail goto*//*Label 280*/ GIMT_Encode4(5700), // Rule ID 24 //
6781 /* 5676 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule24Enabled),
6782 /* 5679 */ // MIs[0] dst
6783 /* 5679 */ // No operand predicates
6784 /* 5679 */ // MIs[0] src
6785 /* 5679 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6786 /* 5683 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FREEZE),
6787 /* 5687 */ // MIs[1] __idempotent_prop_match_0.x
6788 /* 5687 */ // No operand predicates
6789 /* 5687 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6790 /* 5692 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6791 /* 5694 */ // Combiner Rule #24: idempotent_prop @ [__idempotent_prop_match_0[0]]
6792 /* 5694 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6793 /* 5699 */ GIR_EraseRootFromParent_Done,
6794 /* 5700 */ // Label 280: @5700
6795 /* 5700 */ GIM_Try, /*On fail goto*//*Label 281*/ GIMT_Encode4(5723), // Rule ID 49 //
6796 /* 5705 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule47Enabled),
6797 /* 5708 */ // MIs[0] root
6798 /* 5708 */ // No operand predicates
6799 /* 5708 */ // MIs[0] src
6800 /* 5708 */ // No operand predicates
6801 /* 5708 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner3),
6802 /* 5712 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6803 /* 5717 */ // Combiner Rule #47: freeze_of_non_undef_non_poison
6804 /* 5717 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6805 /* 5722 */ GIR_EraseRootFromParent_Done,
6806 /* 5723 */ // Label 281: @5723
6807 /* 5723 */ GIM_Try, /*On fail goto*//*Label 282*/ GIMT_Encode4(5734), // Rule ID 50 //
6808 /* 5728 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule48Enabled),
6809 /* 5731 */ // MIs[0] dst
6810 /* 5731 */ // No operand predicates
6811 /* 5731 */ // MIs[0] src
6812 /* 5731 */ // No operand predicates
6813 /* 5731 */ // Combiner Rule #48: push_freeze_to_prevent_poison_from_propagating
6814 /* 5731 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner19),
6815 /* 5734 */ // Label 282: @5734
6816 /* 5734 */ GIM_Reject,
6817 /* 5735 */ // Label 21: @5735
6818 /* 5735 */ GIM_Try, /*On fail goto*//*Label 283*/ GIMT_Encode4(5756), // Rule ID 197 //
6819 /* 5740 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule153Enabled),
6820 /* 5743 */ // MIs[0] dst
6821 /* 5743 */ // No operand predicates
6822 /* 5743 */ // MIs[0] src0
6823 /* 5743 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6824 /* 5747 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT),
6825 /* 5751 */ // MIs[1] cst
6826 /* 5751 */ // No operand predicates
6827 /* 5751 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6828 /* 5753 */ // Combiner Rule #153: constant_fold_intrinsic_trunc
6829 /* 5753 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
6830 /* 5756 */ // Label 283: @5756
6831 /* 5756 */ GIM_Reject,
6832 /* 5757 */ // Label 22: @5757
6833 /* 5757 */ GIM_Try, /*On fail goto*//*Label 284*/ GIMT_Encode4(5778), // Rule ID 198 //
6834 /* 5762 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule154Enabled),
6835 /* 5765 */ // MIs[0] dst
6836 /* 5765 */ // No operand predicates
6837 /* 5765 */ // MIs[0] src0
6838 /* 5765 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6839 /* 5769 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT),
6840 /* 5773 */ // MIs[1] cst
6841 /* 5773 */ // No operand predicates
6842 /* 5773 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6843 /* 5775 */ // Combiner Rule #154: constant_fold_intrinsic_round
6844 /* 5775 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
6845 /* 5778 */ // Label 284: @5778
6846 /* 5778 */ GIM_Reject,
6847 /* 5779 */ // Label 23: @5779
6848 /* 5779 */ GIM_Try, /*On fail goto*//*Label 285*/ GIMT_Encode4(5800), // Rule ID 199 //
6849 /* 5784 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule155Enabled),
6850 /* 5787 */ // MIs[0] dst
6851 /* 5787 */ // No operand predicates
6852 /* 5787 */ // MIs[0] src0
6853 /* 5787 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6854 /* 5791 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT),
6855 /* 5795 */ // MIs[1] cst
6856 /* 5795 */ // No operand predicates
6857 /* 5795 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6858 /* 5797 */ // Combiner Rule #155: constant_fold_intrinsic_roundeven
6859 /* 5797 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
6860 /* 5800 */ // Label 285: @5800
6861 /* 5800 */ GIM_Reject,
6862 /* 5801 */ // Label 24: @5801
6863 /* 5801 */ GIM_Try, /*On fail goto*//*Label 286*/ GIMT_Encode4(5812), // Rule ID 76 //
6864 /* 5806 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule74Enabled),
6865 /* 5809 */ // Combiner Rule #74: extending_loads; wip_match_opcode 'G_LOAD'
6866 /* 5809 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner30),
6867 /* 5812 */ // Label 286: @5812
6868 /* 5812 */ GIM_Reject,
6869 /* 5813 */ // Label 25: @5813
6870 /* 5813 */ GIM_Try, /*On fail goto*//*Label 287*/ GIMT_Encode4(5824), // Rule ID 77 //
6871 /* 5818 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule74Enabled),
6872 /* 5821 */ // Combiner Rule #74: extending_loads; wip_match_opcode 'G_SEXTLOAD'
6873 /* 5821 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner30),
6874 /* 5824 */ // Label 287: @5824
6875 /* 5824 */ GIM_Reject,
6876 /* 5825 */ // Label 26: @5825
6877 /* 5825 */ GIM_Try, /*On fail goto*//*Label 288*/ GIMT_Encode4(5836), // Rule ID 78 //
6878 /* 5830 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule74Enabled),
6879 /* 5833 */ // Combiner Rule #74: extending_loads; wip_match_opcode 'G_ZEXTLOAD'
6880 /* 5833 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner30),
6881 /* 5836 */ // Label 288: @5836
6882 /* 5836 */ GIM_Reject,
6883 /* 5837 */ // Label 27: @5837
6884 /* 5837 */ GIM_Try, /*On fail goto*//*Label 289*/ GIMT_Encode4(5848), // Rule ID 106 //
6885 /* 5842 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule87Enabled),
6886 /* 5845 */ // Combiner Rule #87: erase_undef_store; wip_match_opcode 'G_STORE'
6887 /* 5845 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner42),
6888 /* 5848 */ // Label 289: @5848
6889 /* 5848 */ GIM_Reject,
6890 /* 5849 */ // Label 28: @5849
6891 /* 5849 */ GIM_Try, /*On fail goto*//*Label 290*/ GIMT_Encode4(5860), // Rule ID 135 //
6892 /* 5854 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule97Enabled),
6893 /* 5857 */ // Combiner Rule #97: anyext_trunc_fold; wip_match_opcode 'G_ANYEXT'
6894 /* 5857 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner47),
6895 /* 5860 */ // Label 290: @5860
6896 /* 5860 */ GIM_Try, /*On fail goto*//*Label 291*/ GIMT_Encode4(5871), // Rule ID 290 //
6897 /* 5865 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule190Enabled),
6898 /* 5868 */ // Combiner Rule #190: constant_fold_cast_op; wip_match_opcode 'G_ANYEXT'
6899 /* 5868 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner106),
6900 /* 5871 */ // Label 291: @5871
6901 /* 5871 */ GIM_Try, /*On fail goto*//*Label 292*/ GIMT_Encode4(5892), // Rule ID 63 //
6902 /* 5876 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule61Enabled),
6903 /* 5879 */ // MIs[0] root
6904 /* 5879 */ // No operand predicates
6905 /* 5879 */ // MIs[0] select
6906 /* 5879 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6907 /* 5883 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SELECT),
6908 /* 5887 */ // MIs[1] cond
6909 /* 5887 */ // No operand predicates
6910 /* 5887 */ // MIs[1] true
6911 /* 5887 */ // No operand predicates
6912 /* 5887 */ // MIs[1] false
6913 /* 5887 */ // No operand predicates
6914 /* 5887 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6915 /* 5889 */ // Combiner Rule #61: select_of_anyext
6916 /* 5889 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner23),
6917 /* 5892 */ // Label 292: @5892
6918 /* 5892 */ GIM_Try, /*On fail goto*//*Label 293*/ GIMT_Encode4(5913), // Rule ID 58 //
6919 /* 5897 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule56Enabled),
6920 /* 5900 */ // MIs[0] root
6921 /* 5900 */ // No operand predicates
6922 /* 5900 */ // MIs[0] second
6923 /* 5900 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6924 /* 5904 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ANYEXT),
6925 /* 5908 */ // MIs[1] src
6926 /* 5908 */ // No operand predicates
6927 /* 5908 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6928 /* 5910 */ // Combiner Rule #56: anyext_of_anyext
6929 /* 5910 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner21),
6930 /* 5913 */ // Label 293: @5913
6931 /* 5913 */ GIM_Try, /*On fail goto*//*Label 294*/ GIMT_Encode4(5934), // Rule ID 60 //
6932 /* 5918 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule58Enabled),
6933 /* 5921 */ // MIs[0] root
6934 /* 5921 */ // No operand predicates
6935 /* 5921 */ // MIs[0] second
6936 /* 5921 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6937 /* 5925 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SEXT),
6938 /* 5929 */ // MIs[1] src
6939 /* 5929 */ // No operand predicates
6940 /* 5929 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6941 /* 5931 */ // Combiner Rule #58: anyext_of_sext
6942 /* 5931 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner21),
6943 /* 5934 */ // Label 294: @5934
6944 /* 5934 */ GIM_Try, /*On fail goto*//*Label 295*/ GIMT_Encode4(5955), // Rule ID 59 //
6945 /* 5939 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule57Enabled),
6946 /* 5942 */ // MIs[0] root
6947 /* 5942 */ // No operand predicates
6948 /* 5942 */ // MIs[0] second
6949 /* 5942 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6950 /* 5946 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ZEXT),
6951 /* 5950 */ // MIs[1] src
6952 /* 5950 */ // No operand predicates
6953 /* 5950 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6954 /* 5952 */ // Combiner Rule #57: anyext_of_zext
6955 /* 5952 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner21),
6956 /* 5955 */ // Label 295: @5955
6957 /* 5955 */ GIM_Try, /*On fail goto*//*Label 296*/ GIMT_Encode4(5976), // Rule ID 95 //
6958 /* 5960 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule83Enabled),
6959 /* 5963 */ // MIs[0] dst
6960 /* 5963 */ // No operand predicates
6961 /* 5963 */ // MIs[0] __unary_undef_to_undef_match_0.x
6962 /* 5963 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6963 /* 5967 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
6964 /* 5971 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6965 /* 5973 */ // Combiner Rule #83: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[2]]
6966 /* 5973 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner38),
6967 /* 5976 */ // Label 296: @5976
6968 /* 5976 */ GIM_Reject,
6969 /* 5977 */ // Label 29: @5977
6970 /* 5977 */ GIM_Try, /*On fail goto*//*Label 297*/ GIMT_Encode4(5988), // Rule ID 143 //
6971 /* 5982 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule103Enabled),
6972 /* 5985 */ // Combiner Rule #103: trunc_buildvector_fold; wip_match_opcode 'G_TRUNC'
6973 /* 5985 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner49),
6974 /* 5988 */ // Label 297: @5988
6975 /* 5988 */ GIM_Try, /*On fail goto*//*Label 298*/ GIMT_Encode4(5999), // Rule ID 144 //
6976 /* 5993 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule104Enabled),
6977 /* 5996 */ // Combiner Rule #104: trunc_lshr_buildvector_fold; wip_match_opcode 'G_TRUNC'
6978 /* 5996 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner50),
6979 /* 5999 */ // Label 298: @5999
6980 /* 5999 */ GIM_Try, /*On fail goto*//*Label 299*/ GIMT_Encode4(6010), // Rule ID 186 //
6981 /* 6004 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule142Enabled),
6982 /* 6007 */ // Combiner Rule #142: trunc_shift; wip_match_opcode 'G_TRUNC'
6983 /* 6007 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner77),
6984 /* 6010 */ // Label 299: @6010
6985 /* 6010 */ GIM_Try, /*On fail goto*//*Label 300*/ GIMT_Encode4(6021), // Rule ID 441 //
6986 /* 6015 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule269Enabled),
6987 /* 6018 */ // Combiner Rule #269: clamp_i64_to_i16; wip_match_opcode 'G_TRUNC'
6988 /* 6018 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner161),
6989 /* 6021 */ // Label 300: @6021
6990 /* 6021 */ GIM_Try, /*On fail goto*//*Label 301*/ GIMT_Encode4(6042), // Rule ID 64 //
6991 /* 6026 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule62Enabled),
6992 /* 6029 */ // MIs[0] root
6993 /* 6029 */ // No operand predicates
6994 /* 6029 */ // MIs[0] select
6995 /* 6029 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6996 /* 6033 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SELECT),
6997 /* 6037 */ // MIs[1] cond
6998 /* 6037 */ // No operand predicates
6999 /* 6037 */ // MIs[1] true
7000 /* 6037 */ // No operand predicates
7001 /* 6037 */ // MIs[1] false
7002 /* 6037 */ // No operand predicates
7003 /* 6037 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7004 /* 6039 */ // Combiner Rule #62: select_of_truncate
7005 /* 6039 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner23),
7006 /* 6042 */ // Label 301: @6042
7007 /* 6042 */ GIM_Try, /*On fail goto*//*Label 302*/ GIMT_Encode4(6071), // Rule ID 66 //
7008 /* 6047 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule64Enabled),
7009 /* 6050 */ // MIs[0] root
7010 /* 6050 */ // No operand predicates
7011 /* 6050 */ // MIs[0] binop
7012 /* 6050 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7013 /* 6054 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
7014 /* 6058 */ // MIs[1] x
7015 /* 6058 */ // No operand predicates
7016 /* 6058 */ // MIs[1] const
7017 /* 6058 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
7018 /* 6062 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
7019 /* 6066 */ // MIs[2] imm
7020 /* 6066 */ // No operand predicates
7021 /* 6066 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
7022 /* 6068 */ // Combiner Rule #64: narrow_binop_add
7023 /* 6068 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner25),
7024 /* 6071 */ // Label 302: @6071
7025 /* 6071 */ GIM_Try, /*On fail goto*//*Label 303*/ GIMT_Encode4(6100), // Rule ID 69 //
7026 /* 6076 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule67Enabled),
7027 /* 6079 */ // MIs[0] root
7028 /* 6079 */ // No operand predicates
7029 /* 6079 */ // MIs[0] binop
7030 /* 6079 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7031 /* 6083 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_AND),
7032 /* 6087 */ // MIs[1] x
7033 /* 6087 */ // No operand predicates
7034 /* 6087 */ // MIs[1] const
7035 /* 6087 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
7036 /* 6091 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
7037 /* 6095 */ // MIs[2] imm
7038 /* 6095 */ // No operand predicates
7039 /* 6095 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
7040 /* 6097 */ // Combiner Rule #67: narrow_binop_and
7041 /* 6097 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner25),
7042 /* 6100 */ // Label 303: @6100
7043 /* 6100 */ GIM_Try, /*On fail goto*//*Label 304*/ GIMT_Encode4(6129), // Rule ID 68 //
7044 /* 6105 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule66Enabled),
7045 /* 6108 */ // MIs[0] root
7046 /* 6108 */ // No operand predicates
7047 /* 6108 */ // MIs[0] binop
7048 /* 6108 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7049 /* 6112 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_MUL),
7050 /* 6116 */ // MIs[1] x
7051 /* 6116 */ // No operand predicates
7052 /* 6116 */ // MIs[1] const
7053 /* 6116 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
7054 /* 6120 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
7055 /* 6124 */ // MIs[2] imm
7056 /* 6124 */ // No operand predicates
7057 /* 6124 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
7058 /* 6126 */ // Combiner Rule #66: narrow_binop_mul
7059 /* 6126 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner25),
7060 /* 6129 */ // Label 304: @6129
7061 /* 6129 */ GIM_Try, /*On fail goto*//*Label 305*/ GIMT_Encode4(6158), // Rule ID 70 //
7062 /* 6134 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule68Enabled),
7063 /* 6137 */ // MIs[0] root
7064 /* 6137 */ // No operand predicates
7065 /* 6137 */ // MIs[0] binop
7066 /* 6137 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7067 /* 6141 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_OR),
7068 /* 6145 */ // MIs[1] x
7069 /* 6145 */ // No operand predicates
7070 /* 6145 */ // MIs[1] const
7071 /* 6145 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
7072 /* 6149 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
7073 /* 6153 */ // MIs[2] imm
7074 /* 6153 */ // No operand predicates
7075 /* 6153 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
7076 /* 6155 */ // Combiner Rule #68: narrow_binop_or
7077 /* 6155 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner25),
7078 /* 6158 */ // Label 305: @6158
7079 /* 6158 */ GIM_Try, /*On fail goto*//*Label 306*/ GIMT_Encode4(6187), // Rule ID 67 //
7080 /* 6163 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule65Enabled),
7081 /* 6166 */ // MIs[0] root
7082 /* 6166 */ // No operand predicates
7083 /* 6166 */ // MIs[0] binop
7084 /* 6166 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7085 /* 6170 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
7086 /* 6174 */ // MIs[1] x
7087 /* 6174 */ // No operand predicates
7088 /* 6174 */ // MIs[1] const
7089 /* 6174 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
7090 /* 6178 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
7091 /* 6182 */ // MIs[2] imm
7092 /* 6182 */ // No operand predicates
7093 /* 6182 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
7094 /* 6184 */ // Combiner Rule #65: narrow_binop_sub
7095 /* 6184 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner25),
7096 /* 6187 */ // Label 306: @6187
7097 /* 6187 */ GIM_Try, /*On fail goto*//*Label 307*/ GIMT_Encode4(6219), // Rule ID 415 //
7098 /* 6192 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule249Enabled),
7099 /* 6195 */ // MIs[0] dst
7100 /* 6195 */ // No operand predicates
7101 /* 6195 */ // MIs[0] min
7102 /* 6195 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7103 /* 6199 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_UMIN),
7104 /* 6203 */ // MIs[1] x
7105 /* 6203 */ // No operand predicates
7106 /* 6203 */ // MIs[1] y
7107 /* 6203 */ // No operand predicates
7108 /* 6203 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner15),
7109 /* 6207 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7110 /* 6209 */ // Combiner Rule #249: trunc_usatu
7111 /* 6209 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_TRUNC_USAT_U),
7112 /* 6212 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
7113 /* 6214 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
7114 /* 6218 */ GIR_EraseRootFromParent_Done,
7115 /* 6219 */ // Label 307: @6219
7116 /* 6219 */ GIM_Try, /*On fail goto*//*Label 308*/ GIMT_Encode4(6248), // Rule ID 71 //
7117 /* 6224 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule69Enabled),
7118 /* 6227 */ // MIs[0] root
7119 /* 6227 */ // No operand predicates
7120 /* 6227 */ // MIs[0] binop
7121 /* 6227 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7122 /* 6231 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_XOR),
7123 /* 6235 */ // MIs[1] x
7124 /* 6235 */ // No operand predicates
7125 /* 6235 */ // MIs[1] const
7126 /* 6235 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
7127 /* 6239 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
7128 /* 6243 */ // MIs[2] imm
7129 /* 6243 */ // No operand predicates
7130 /* 6243 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
7131 /* 6245 */ // Combiner Rule #69: narrow_binop_xor
7132 /* 6245 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner25),
7133 /* 6248 */ // Label 308: @6248
7134 /* 6248 */ GIM_Try, /*On fail goto*//*Label 309*/ GIMT_Encode4(6269), // Rule ID 53 //
7135 /* 6253 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule51Enabled),
7136 /* 6256 */ // MIs[0] root
7137 /* 6256 */ // No operand predicates
7138 /* 6256 */ // MIs[0] ext
7139 /* 6256 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7140 /* 6260 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ANYEXT),
7141 /* 6264 */ // MIs[1] src
7142 /* 6264 */ // No operand predicates
7143 /* 6264 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7144 /* 6266 */ // Combiner Rule #51: truncate_of_anyext
7145 /* 6266 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner20),
7146 /* 6269 */ // Label 309: @6269
7147 /* 6269 */ GIM_Try, /*On fail goto*//*Label 310*/ GIMT_Encode4(6293), // Rule ID 65 //
7148 /* 6274 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule63Enabled),
7149 /* 6277 */ // MIs[0] root
7150 /* 6277 */ // No operand predicates
7151 /* 6277 */ // MIs[0] bv
7152 /* 6277 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7153 /* 6281 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR),
7154 /* 6285 */ GIM_CheckNumOperandsGE, /*MI*/1, /*Expected*/2,
7155 /* 6288 */ // MIs[1] unused
7156 /* 6288 */ // No operand predicates
7157 /* 6288 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7158 /* 6290 */ // Combiner Rule #63: buildvector_of_truncate
7159 /* 6290 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner24),
7160 /* 6293 */ // Label 310: @6293
7161 /* 6293 */ GIM_Try, /*On fail goto*//*Label 311*/ GIMT_Encode4(6314), // Rule ID 52 //
7162 /* 6298 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule50Enabled),
7163 /* 6301 */ // MIs[0] root
7164 /* 6301 */ // No operand predicates
7165 /* 6301 */ // MIs[0] ext
7166 /* 6301 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7167 /* 6305 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SEXT),
7168 /* 6309 */ // MIs[1] src
7169 /* 6309 */ // No operand predicates
7170 /* 6309 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7171 /* 6311 */ // Combiner Rule #50: truncate_of_sext
7172 /* 6311 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner20),
7173 /* 6314 */ // Label 311: @6314
7174 /* 6314 */ GIM_Try, /*On fail goto*//*Label 312*/ GIMT_Encode4(6335), // Rule ID 51 //
7175 /* 6319 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule49Enabled),
7176 /* 6322 */ // MIs[0] root
7177 /* 6322 */ // No operand predicates
7178 /* 6322 */ // MIs[0] ext
7179 /* 6322 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7180 /* 6326 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ZEXT),
7181 /* 6330 */ // MIs[1] src
7182 /* 6330 */ // No operand predicates
7183 /* 6330 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7184 /* 6332 */ // Combiner Rule #49: truncate_of_zext
7185 /* 6332 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner20),
7186 /* 6335 */ // Label 312: @6335
7187 /* 6335 */ GIM_Try, /*On fail goto*//*Label 313*/ GIMT_Encode4(6356), // Rule ID 93 //
7188 /* 6340 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule83Enabled),
7189 /* 6343 */ // MIs[0] dst
7190 /* 6343 */ // No operand predicates
7191 /* 6343 */ // MIs[0] __unary_undef_to_undef_match_0.x
7192 /* 6343 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7193 /* 6347 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
7194 /* 6351 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7195 /* 6353 */ // Combiner Rule #83: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[0]]
7196 /* 6353 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner38),
7197 /* 6356 */ // Label 313: @6356
7198 /* 6356 */ GIM_Try, /*On fail goto*//*Label 314*/ GIMT_Encode4(6377), // Rule ID 72 //
7199 /* 6361 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule70Enabled),
7200 /* 6364 */ // MIs[0] root
7201 /* 6364 */ // No operand predicates
7202 /* 6364 */ // MIs[0] int
7203 /* 6364 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7204 /* 6368 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
7205 /* 6372 */ // MIs[1] imm
7206 /* 6372 */ // No operand predicates
7207 /* 6372 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7208 /* 6374 */ // Combiner Rule #70: integer_of_truncate
7209 /* 6374 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner26),
7210 /* 6377 */ // Label 314: @6377
7211 /* 6377 */ GIM_Try, /*On fail goto*//*Label 315*/ GIMT_Encode4(6388), // Rule ID 413 //
7212 /* 6382 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule247Enabled),
7213 /* 6385 */ // MIs[0] dst
7214 /* 6385 */ // No operand predicates
7215 /* 6385 */ // MIs[0] src
7216 /* 6385 */ // No operand predicates
7217 /* 6385 */ // Combiner Rule #247: trunc_ssats
7218 /* 6385 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner154),
7219 /* 6388 */ // Label 315: @6388
7220 /* 6388 */ GIM_Try, /*On fail goto*//*Label 316*/ GIMT_Encode4(6399), // Rule ID 414 //
7221 /* 6393 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule248Enabled),
7222 /* 6396 */ // MIs[0] dst
7223 /* 6396 */ // No operand predicates
7224 /* 6396 */ // MIs[0] src
7225 /* 6396 */ // No operand predicates
7226 /* 6396 */ // Combiner Rule #248: trunc_ssatu
7227 /* 6396 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner155),
7228 /* 6399 */ // Label 316: @6399
7229 /* 6399 */ GIM_Reject,
7230 /* 6400 */ // Label 30: @6400
7231 /* 6400 */ GIM_Try, /*On fail goto*//*Label 317*/ GIMT_Encode4(6432), // Rule ID 416 //
7232 /* 6405 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule250Enabled),
7233 /* 6408 */ // MIs[0] dst
7234 /* 6408 */ // No operand predicates
7235 /* 6408 */ // MIs[0] src
7236 /* 6408 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7237 /* 6412 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FPTOUI),
7238 /* 6416 */ // MIs[1] x
7239 /* 6416 */ // No operand predicates
7240 /* 6416 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner16),
7241 /* 6420 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7242 /* 6422 */ // Combiner Rule #250: truncusatu_to_fptouisat
7243 /* 6422 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FPTOUI_SAT),
7244 /* 6425 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
7245 /* 6427 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
7246 /* 6431 */ GIR_EraseRootFromParent_Done,
7247 /* 6432 */ // Label 317: @6432
7248 /* 6432 */ GIM_Reject,
7249 /* 6433 */ // Label 31: @6433
7250 /* 6433 */ GIM_Try, /*On fail goto*//*Label 318*/ GIMT_Encode4(6444), // Rule ID 289 //
7251 /* 6438 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule190Enabled),
7252 /* 6441 */ // Combiner Rule #190: constant_fold_cast_op; wip_match_opcode 'G_SEXT'
7253 /* 6441 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner106),
7254 /* 6444 */ // Label 318: @6444
7255 /* 6444 */ GIM_Try, /*On fail goto*//*Label 319*/ GIMT_Encode4(6465), // Rule ID 57 //
7256 /* 6449 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule55Enabled),
7257 /* 6452 */ // MIs[0] root
7258 /* 6452 */ // No operand predicates
7259 /* 6452 */ // MIs[0] second
7260 /* 6452 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7261 /* 6456 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ANYEXT),
7262 /* 6460 */ // MIs[1] src
7263 /* 6460 */ // No operand predicates
7264 /* 6460 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7265 /* 6462 */ // Combiner Rule #55: sext_of_anyext
7266 /* 6462 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner21),
7267 /* 6465 */ // Label 319: @6465
7268 /* 6465 */ GIM_Try, /*On fail goto*//*Label 320*/ GIMT_Encode4(6486), // Rule ID 56 //
7269 /* 6470 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule54Enabled),
7270 /* 6473 */ // MIs[0] root
7271 /* 6473 */ // No operand predicates
7272 /* 6473 */ // MIs[0] second
7273 /* 6473 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7274 /* 6477 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SEXT),
7275 /* 6481 */ // MIs[1] src
7276 /* 6481 */ // No operand predicates
7277 /* 6481 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7278 /* 6483 */ // Combiner Rule #54: sext_of_sext
7279 /* 6483 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner21),
7280 /* 6486 */ // Label 320: @6486
7281 /* 6486 */ GIM_Try, /*On fail goto*//*Label 321*/ GIMT_Encode4(6507), // Rule ID 392 //
7282 /* 6491 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule228Enabled),
7283 /* 6494 */ // MIs[0] root
7284 /* 6494 */ // No operand predicates
7285 /* 6494 */ // MIs[0] src
7286 /* 6494 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7287 /* 6498 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_TRUNC),
7288 /* 6502 */ // MIs[1] x
7289 /* 6502 */ // No operand predicates
7290 /* 6502 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7291 /* 6504 */ // Combiner Rule #228: sext_trunc
7292 /* 6504 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner135),
7293 /* 6507 */ // Label 321: @6507
7294 /* 6507 */ GIM_Reject,
7295 /* 6508 */ // Label 32: @6508
7296 /* 6508 */ GIM_Try, /*On fail goto*//*Label 322*/ GIMT_Encode4(6519), // Rule ID 171 //
7297 /* 6513 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule127Enabled),
7298 /* 6516 */ // Combiner Rule #127: sext_inreg_of_load; wip_match_opcode 'G_SEXT_INREG'
7299 /* 6516 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner65),
7300 /* 6519 */ // Label 322: @6519
7301 /* 6519 */ GIM_Try, /*On fail goto*//*Label 323*/ GIMT_Encode4(6530), // Rule ID 181 //
7302 /* 6524 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule137Enabled),
7303 /* 6527 */ // Combiner Rule #137: redundant_sext_inreg; wip_match_opcode 'G_SEXT_INREG'
7304 /* 6527 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner72),
7305 /* 6530 */ // Label 323: @6530
7306 /* 6530 */ GIM_Try, /*On fail goto*//*Label 324*/ GIMT_Encode4(6541), // Rule ID 250 //
7307 /* 6535 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule183Enabled),
7308 /* 6538 */ // Combiner Rule #183: bitfield_extract_from_sext_inreg; wip_match_opcode 'G_SEXT_INREG'
7309 /* 6538 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner99),
7310 /* 6541 */ // Label 324: @6541
7311 /* 6541 */ GIM_Try, /*On fail goto*//*Label 325*/ GIMT_Encode4(6562), // Rule ID 61 //
7312 /* 6546 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule59Enabled),
7313 /* 6549 */ // MIs[0] dst
7314 /* 6549 */ // No operand predicates
7315 /* 6549 */ // MIs[0] x
7316 /* 6549 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7317 /* 6553 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SEXT_INREG),
7318 /* 6557 */ // MIs[1] src
7319 /* 6557 */ // No operand predicates
7320 /* 6557 */ // MIs[1] a
7321 /* 6557 */ // No operand predicates
7322 /* 6557 */ // MIs[0] b
7323 /* 6557 */ // No operand predicates
7324 /* 6557 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7325 /* 6559 */ // Combiner Rule #59: sext_inreg_of_sext_inreg
7326 /* 6559 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner22),
7327 /* 6562 */ // Label 325: @6562
7328 /* 6562 */ GIM_Try, /*On fail goto*//*Label 326*/ GIMT_Encode4(6573), // Rule ID 185 //
7329 /* 6567 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule141Enabled),
7330 /* 6570 */ // MIs[0] dst
7331 /* 6570 */ // No operand predicates
7332 /* 6570 */ // MIs[0] src
7333 /* 6570 */ // No operand predicates
7334 /* 6570 */ // MIs[0] imm
7335 /* 6570 */ // No operand predicates
7336 /* 6570 */ // Combiner Rule #141: sext_inreg_to_zext_inreg
7337 /* 6570 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner76),
7338 /* 6573 */ // Label 326: @6573
7339 /* 6573 */ GIM_Reject,
7340 /* 6574 */ // Label 33: @6574
7341 /* 6574 */ GIM_Try, /*On fail goto*//*Label 327*/ GIMT_Encode4(6585), // Rule ID 184 //
7342 /* 6579 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule140Enabled),
7343 /* 6582 */ // Combiner Rule #140: zext_trunc_fold; wip_match_opcode 'G_ZEXT'
7344 /* 6582 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner75),
7345 /* 6585 */ // Label 327: @6585
7346 /* 6585 */ GIM_Try, /*On fail goto*//*Label 328*/ GIMT_Encode4(6596), // Rule ID 288 //
7347 /* 6590 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule190Enabled),
7348 /* 6593 */ // Combiner Rule #190: constant_fold_cast_op; wip_match_opcode 'G_ZEXT'
7349 /* 6593 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner106),
7350 /* 6596 */ // Label 328: @6596
7351 /* 6596 */ GIM_Try, /*On fail goto*//*Label 329*/ GIMT_Encode4(6617), // Rule ID 62 //
7352 /* 6601 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule60Enabled),
7353 /* 6604 */ // MIs[0] root
7354 /* 6604 */ // No operand predicates
7355 /* 6604 */ // MIs[0] select
7356 /* 6604 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7357 /* 6608 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SELECT),
7358 /* 6612 */ // MIs[1] cond
7359 /* 6612 */ // No operand predicates
7360 /* 6612 */ // MIs[1] true
7361 /* 6612 */ // No operand predicates
7362 /* 6612 */ // MIs[1] false
7363 /* 6612 */ // No operand predicates
7364 /* 6612 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7365 /* 6614 */ // Combiner Rule #60: select_of_zext
7366 /* 6614 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner23),
7367 /* 6617 */ // Label 329: @6617
7368 /* 6617 */ GIM_Try, /*On fail goto*//*Label 330*/ GIMT_Encode4(6638), // Rule ID 55 //
7369 /* 6622 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule53Enabled),
7370 /* 6625 */ // MIs[0] root
7371 /* 6625 */ // No operand predicates
7372 /* 6625 */ // MIs[0] second
7373 /* 6625 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7374 /* 6629 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ANYEXT),
7375 /* 6633 */ // MIs[1] src
7376 /* 6633 */ // No operand predicates
7377 /* 6633 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7378 /* 6635 */ // Combiner Rule #53: zext_of_anyext
7379 /* 6635 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner21),
7380 /* 6638 */ // Label 330: @6638
7381 /* 6638 */ GIM_Try, /*On fail goto*//*Label 331*/ GIMT_Encode4(6665), // Rule ID 393 //
7382 /* 6643 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule229Enabled),
7383 /* 6646 */ // MIs[0] root
7384 /* 6646 */ // No operand predicates
7385 /* 6646 */ // MIs[0] src
7386 /* 6646 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7387 /* 6650 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_TRUNC),
7388 /* 6654 */ GIM_MIFlags, /*MI*/1, GIMT_Encode4(MachineInstr::NoUWrap),
7389 /* 6660 */ // MIs[1] x
7390 /* 6660 */ // No operand predicates
7391 /* 6660 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7392 /* 6662 */ // Combiner Rule #229: zext_trunc
7393 /* 6662 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner136),
7394 /* 6665 */ // Label 331: @6665
7395 /* 6665 */ GIM_Try, /*On fail goto*//*Label 332*/ GIMT_Encode4(6686), // Rule ID 54 //
7396 /* 6670 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule52Enabled),
7397 /* 6673 */ // MIs[0] root
7398 /* 6673 */ // No operand predicates
7399 /* 6673 */ // MIs[0] second
7400 /* 6673 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7401 /* 6677 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ZEXT),
7402 /* 6681 */ // MIs[1] src
7403 /* 6681 */ // No operand predicates
7404 /* 6681 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7405 /* 6683 */ // Combiner Rule #52: zext_of_zext
7406 /* 6683 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner21),
7407 /* 6686 */ // Label 332: @6686
7408 /* 6686 */ GIM_Try, /*On fail goto*//*Label 333*/ GIMT_Encode4(6703), // Rule ID 394 //
7409 /* 6691 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule230Enabled),
7410 /* 6694 */ GIM_MIFlags, /*MI*/0, GIMT_Encode4(MachineInstr::NonNeg),
7411 /* 6700 */ // MIs[0] root
7412 /* 6700 */ // No operand predicates
7413 /* 6700 */ // MIs[0] x
7414 /* 6700 */ // No operand predicates
7415 /* 6700 */ // Combiner Rule #230: nneg_zext
7416 /* 6700 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner137),
7417 /* 6703 */ // Label 333: @6703
7418 /* 6703 */ GIM_Reject,
7419 /* 6704 */ // Label 34: @6704
7420 /* 6704 */ GIM_Try, /*On fail goto*//*Label 334*/ GIMT_Encode4(6715), // Rule ID 86 //
7421 /* 6709 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule80Enabled),
7422 /* 6712 */ // Combiner Rule #80: binop_left_undef_to_zero; wip_match_opcode 'G_SHL'
7423 /* 6712 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner36),
7424 /* 6715 */ // Label 334: @6715
7425 /* 6715 */ GIM_Try, /*On fail goto*//*Label 335*/ GIMT_Encode4(6726), // Rule ID 89 //
7426 /* 6720 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule81Enabled),
7427 /* 6723 */ // Combiner Rule #81: binop_right_undef_to_undef; wip_match_opcode 'G_SHL'
7428 /* 6723 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner37),
7429 /* 6726 */ // Label 335: @6726
7430 /* 6726 */ GIM_Try, /*On fail goto*//*Label 336*/ GIMT_Encode4(6737), // Rule ID 221 //
7431 /* 6731 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule169Enabled),
7432 /* 6734 */ // Combiner Rule #169: shift_immed_chain; wip_match_opcode 'G_SHL'
7433 /* 6734 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner91),
7434 /* 6737 */ // Label 336: @6737
7435 /* 6737 */ GIM_Try, /*On fail goto*//*Label 337*/ GIMT_Encode4(6748), // Rule ID 226 //
7436 /* 6742 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule170Enabled),
7437 /* 6745 */ // Combiner Rule #170: shift_of_shifted_logic_chain; wip_match_opcode 'G_SHL'
7438 /* 6745 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner92),
7439 /* 6748 */ // Label 337: @6748
7440 /* 6748 */ GIM_Try, /*On fail goto*//*Label 338*/ GIMT_Encode4(6759), // Rule ID 249 //
7441 /* 6753 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule182Enabled),
7442 /* 6756 */ // Combiner Rule #182: commute_shift; wip_match_opcode 'G_SHL'
7443 /* 6756 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner98),
7444 /* 6759 */ // Label 338: @6759
7445 /* 6759 */ GIM_Try, /*On fail goto*//*Label 339*/ GIMT_Encode4(6770), // Rule ID 263 //
7446 /* 6764 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled),
7447 /* 6767 */ // Combiner Rule #187: constant_fold_binop; wip_match_opcode 'G_SHL'
7448 /* 6767 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103),
7449 /* 6770 */ // Label 339: @6770
7450 /* 6770 */ GIM_Try, /*On fail goto*//*Label 340*/ GIMT_Encode4(6781), // Rule ID 328 //
7451 /* 6775 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
7452 /* 6778 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_SHL'
7453 /* 6778 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
7454 /* 6781 */ // Label 340: @6781
7455 /* 6781 */ GIM_Try, /*On fail goto*//*Label 341*/ GIMT_Encode4(6816), // Rule ID 47 //
7456 /* 6786 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule45Enabled),
7457 /* 6789 */ GIM_MIFlags, /*MI*/0, GIMT_Encode4(MachineInstr::NoSWrap),
7458 /* 6795 */ // MIs[0] root
7459 /* 6795 */ // No operand predicates
7460 /* 6795 */ // MIs[0] left
7461 /* 6795 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7462 /* 6799 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_VSCALE),
7463 /* 6803 */ // MIs[1] imm
7464 /* 6803 */ // No operand predicates
7465 /* 6803 */ // MIs[0] x
7466 /* 6803 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
7467 /* 6807 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
7468 /* 6811 */ // MIs[2] imm1
7469 /* 6811 */ // No operand predicates
7470 /* 6811 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
7471 /* 6813 */ // Combiner Rule #45: shl_of_vscale
7472 /* 6813 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner17),
7473 /* 6816 */ // Label 341: @6816
7474 /* 6816 */ GIM_Try, /*On fail goto*//*Label 342*/ GIMT_Encode4(6856), // Rule ID 124 //
7475 /* 6821 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
7476 /* 6824 */ // MIs[0] dst
7477 /* 6824 */ // No operand predicates
7478 /* 6824 */ // MIs[0] zero
7479 /* 6824 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7480 /* 6828 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
7481 /* 6832 */ // MIs[1] Operand 1
7482 /* 6832 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0),
7483 /* 6843 */ // MIs[0] rhs
7484 /* 6843 */ // No operand predicates
7485 /* 6843 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7486 /* 6848 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7487 /* 6850 */ // Combiner Rule #93: binop_left_to_zero @ [__binop_left_to_zero_match_0[0]]
7488 /* 6850 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7489 /* 6855 */ GIR_EraseRootFromParent_Done,
7490 /* 6856 */ // Label 342: @6856
7491 /* 6856 */ GIM_Try, /*On fail goto*//*Label 343*/ GIMT_Encode4(6879), // Rule ID 114 //
7492 /* 6861 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled),
7493 /* 6864 */ // MIs[0] dst
7494 /* 6864 */ // No operand predicates
7495 /* 6864 */ // MIs[0] lhs
7496 /* 6864 */ // No operand predicates
7497 /* 6864 */ // MIs[0] Operand 2
7498 /* 6864 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
7499 /* 6868 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7500 /* 6873 */ // Combiner Rule #90: right_identity_zero @ [__right_identity_zero_match_0[4]]
7501 /* 6873 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7502 /* 6878 */ GIR_EraseRootFromParent_Done,
7503 /* 6879 */ // Label 343: @6879
7504 /* 6879 */ GIM_Try, /*On fail goto*//*Label 344*/ GIMT_Encode4(6890), // Rule ID 156 //
7505 /* 6884 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule114Enabled),
7506 /* 6887 */ // MIs[0] root
7507 /* 6887 */ // No operand predicates
7508 /* 6887 */ // MIs[0] mi.shifted
7509 /* 6887 */ // No operand predicates
7510 /* 6887 */ // MIs[0] mi.amt
7511 /* 6887 */ // No operand predicates
7512 /* 6887 */ // Combiner Rule #114: shifts_too_big @ [mi[0]]
7513 /* 6887 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner55),
7514 /* 6890 */ // Label 344: @6890
7515 /* 6890 */ GIM_Try, /*On fail goto*//*Label 345*/ GIMT_Encode4(6901), // Rule ID 172 //
7516 /* 6895 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule128Enabled),
7517 /* 6898 */ // MIs[0] dst
7518 /* 6898 */ // No operand predicates
7519 /* 6898 */ // MIs[0] src0
7520 /* 6898 */ // No operand predicates
7521 /* 6898 */ // MIs[0] src1
7522 /* 6898 */ // No operand predicates
7523 /* 6898 */ // Combiner Rule #128: reduce_shl_of_extend
7524 /* 6898 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner66),
7525 /* 6901 */ // Label 345: @6901
7526 /* 6901 */ GIM_Reject,
7527 /* 6902 */ // Label 35: @6902
7528 /* 6902 */ GIM_Try, /*On fail goto*//*Label 346*/ GIMT_Encode4(6913), // Rule ID 91 //
7529 /* 6907 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule81Enabled),
7530 /* 6910 */ // Combiner Rule #81: binop_right_undef_to_undef; wip_match_opcode 'G_LSHR'
7531 /* 6910 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner37),
7532 /* 6913 */ // Label 346: @6913
7533 /* 6913 */ GIM_Try, /*On fail goto*//*Label 347*/ GIMT_Encode4(6924), // Rule ID 223 //
7534 /* 6918 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule169Enabled),
7535 /* 6921 */ // Combiner Rule #169: shift_immed_chain; wip_match_opcode 'G_LSHR'
7536 /* 6921 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner91),
7537 /* 6924 */ // Label 347: @6924
7538 /* 6924 */ GIM_Try, /*On fail goto*//*Label 348*/ GIMT_Encode4(6935), // Rule ID 228 //
7539 /* 6929 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule170Enabled),
7540 /* 6932 */ // Combiner Rule #170: shift_of_shifted_logic_chain; wip_match_opcode 'G_LSHR'
7541 /* 6932 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner92),
7542 /* 6935 */ // Label 348: @6935
7543 /* 6935 */ GIM_Try, /*On fail goto*//*Label 349*/ GIMT_Encode4(6946), // Rule ID 253 //
7544 /* 6940 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule185Enabled),
7545 /* 6943 */ // Combiner Rule #185: bitfield_extract_from_shr; wip_match_opcode 'G_LSHR'
7546 /* 6943 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner101),
7547 /* 6946 */ // Label 349: @6946
7548 /* 6946 */ GIM_Try, /*On fail goto*//*Label 350*/ GIMT_Encode4(6957), // Rule ID 255 //
7549 /* 6951 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule186Enabled),
7550 /* 6954 */ // Combiner Rule #186: bitfield_extract_from_shr_and; wip_match_opcode 'G_LSHR'
7551 /* 6954 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner102),
7552 /* 6957 */ // Label 350: @6957
7553 /* 6957 */ GIM_Try, /*On fail goto*//*Label 351*/ GIMT_Encode4(6968), // Rule ID 260 //
7554 /* 6962 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled),
7555 /* 6965 */ // Combiner Rule #187: constant_fold_binop; wip_match_opcode 'G_LSHR'
7556 /* 6965 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103),
7557 /* 6968 */ // Label 351: @6968
7558 /* 6968 */ GIM_Try, /*On fail goto*//*Label 352*/ GIMT_Encode4(6979), // Rule ID 326 //
7559 /* 6973 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
7560 /* 6976 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_LSHR'
7561 /* 6976 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
7562 /* 6979 */ // Label 352: @6979
7563 /* 6979 */ GIM_Try, /*On fail goto*//*Label 353*/ GIMT_Encode4(7068), // Rule ID 434 //
7564 /* 6984 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule265Enabled),
7565 /* 6987 */ // MIs[0] dst
7566 /* 6987 */ // No operand predicates
7567 /* 6987 */ // MIs[0] sum
7568 /* 6987 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7569 /* 6991 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
7570 /* 6995 */ // MIs[1] inner
7571 /* 6995 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
7572 /* 6999 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ADD),
7573 /* 7003 */ // MIs[2] ext1
7574 /* 7003 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/2, /*OpIdx*/1, // MIs[3]
7575 /* 7007 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_ZEXT),
7576 /* 7011 */ // MIs[3] x
7577 /* 7011 */ GIM_RecordRegType, /*MI*/3, /*Op*/1, /*TempTypeIdx*/255,
7578 /* 7015 */ // MIs[2] ext2
7579 /* 7015 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/4, /*MI*/2, /*OpIdx*/2, // MIs[4]
7580 /* 7019 */ GIM_CheckOpcode, /*MI*/4, GIMT_Encode2(TargetOpcode::G_ZEXT),
7581 /* 7023 */ // MIs[4] y
7582 /* 7023 */ // No operand predicates
7583 /* 7023 */ // MIs[1] Operand 2
7584 /* 7023 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/2, 1,
7585 /* 7027 */ // MIs[0] Operand 2
7586 /* 7027 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 1,
7587 /* 7031 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner22),
7588 /* 7035 */ GIM_CheckIsSafeToFold, /*NumInsns*/4,
7589 /* 7037 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
7590 /* 7040 */ // Combiner Rule #265: avgceil_u_match
7591 /* 7040 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UAVGCEIL),
7592 /* 7043 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
7593 /* 7048 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/3, /*OpIdx*/1, // x
7594 /* 7052 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/4, /*OpIdx*/1, // y
7595 /* 7056 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ZEXT),
7596 /* 7060 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
7597 /* 7064 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
7598 /* 7067 */ GIR_EraseRootFromParent_Done,
7599 /* 7068 */ // Label 353: @7068
7600 /* 7068 */ GIM_Try, /*On fail goto*//*Label 354*/ GIMT_Encode4(7145), // Rule ID 432 //
7601 /* 7073 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule263Enabled),
7602 /* 7076 */ // MIs[0] dst
7603 /* 7076 */ // No operand predicates
7604 /* 7076 */ // MIs[0] sum
7605 /* 7076 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7606 /* 7080 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
7607 /* 7084 */ // MIs[1] ext1
7608 /* 7084 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
7609 /* 7088 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ZEXT),
7610 /* 7092 */ // MIs[2] x
7611 /* 7092 */ GIM_RecordRegType, /*MI*/2, /*Op*/1, /*TempTypeIdx*/255,
7612 /* 7096 */ // MIs[1] ext2
7613 /* 7096 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/1, /*OpIdx*/2, // MIs[3]
7614 /* 7100 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_ZEXT),
7615 /* 7104 */ // MIs[3] y
7616 /* 7104 */ // No operand predicates
7617 /* 7104 */ // MIs[0] Operand 2
7618 /* 7104 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 1,
7619 /* 7108 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner20),
7620 /* 7112 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
7621 /* 7114 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
7622 /* 7117 */ // Combiner Rule #263: avgfloor_u_match
7623 /* 7117 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UAVGFLOOR),
7624 /* 7120 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
7625 /* 7125 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // x
7626 /* 7129 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/3, /*OpIdx*/1, // y
7627 /* 7133 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ZEXT),
7628 /* 7137 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
7629 /* 7141 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
7630 /* 7144 */ GIR_EraseRootFromParent_Done,
7631 /* 7145 */ // Label 354: @7145
7632 /* 7145 */ GIM_Try, /*On fail goto*//*Label 355*/ GIMT_Encode4(7174), // Rule ID 417 //
7633 /* 7150 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule251Enabled),
7634 /* 7153 */ // MIs[0] dst
7635 /* 7153 */ // No operand predicates
7636 /* 7153 */ // MIs[0] d2
7637 /* 7153 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7638 /* 7157 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_TRUNC),
7639 /* 7161 */ // MIs[1] d1
7640 /* 7161 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
7641 /* 7165 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_LSHR),
7642 /* 7169 */ // MIs[2] x
7643 /* 7169 */ // No operand predicates
7644 /* 7169 */ // MIs[2] y
7645 /* 7169 */ // No operand predicates
7646 /* 7169 */ // MIs[0] z
7647 /* 7169 */ // No operand predicates
7648 /* 7169 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
7649 /* 7171 */ // Combiner Rule #251: lshr_of_trunc_of_lshr
7650 /* 7171 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner156),
7651 /* 7174 */ // Label 355: @7174
7652 /* 7174 */ GIM_Try, /*On fail goto*//*Label 356*/ GIMT_Encode4(7214), // Rule ID 125 //
7653 /* 7179 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
7654 /* 7182 */ // MIs[0] dst
7655 /* 7182 */ // No operand predicates
7656 /* 7182 */ // MIs[0] zero
7657 /* 7182 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7658 /* 7186 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
7659 /* 7190 */ // MIs[1] Operand 1
7660 /* 7190 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0),
7661 /* 7201 */ // MIs[0] rhs
7662 /* 7201 */ // No operand predicates
7663 /* 7201 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7664 /* 7206 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7665 /* 7208 */ // Combiner Rule #93: binop_left_to_zero @ [__binop_left_to_zero_match_0[1]]
7666 /* 7208 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7667 /* 7213 */ GIR_EraseRootFromParent_Done,
7668 /* 7214 */ // Label 356: @7214
7669 /* 7214 */ GIM_Try, /*On fail goto*//*Label 357*/ GIMT_Encode4(7237), // Rule ID 116 //
7670 /* 7219 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled),
7671 /* 7222 */ // MIs[0] dst
7672 /* 7222 */ // No operand predicates
7673 /* 7222 */ // MIs[0] lhs
7674 /* 7222 */ // No operand predicates
7675 /* 7222 */ // MIs[0] Operand 2
7676 /* 7222 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
7677 /* 7226 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7678 /* 7231 */ // Combiner Rule #90: right_identity_zero @ [__right_identity_zero_match_0[6]]
7679 /* 7231 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7680 /* 7236 */ GIR_EraseRootFromParent_Done,
7681 /* 7237 */ // Label 357: @7237
7682 /* 7237 */ GIM_Try, /*On fail goto*//*Label 358*/ GIMT_Encode4(7248), // Rule ID 158 //
7683 /* 7242 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule114Enabled),
7684 /* 7245 */ // MIs[0] root
7685 /* 7245 */ // No operand predicates
7686 /* 7245 */ // MIs[0] mi.shifted
7687 /* 7245 */ // No operand predicates
7688 /* 7245 */ // MIs[0] mi.amt
7689 /* 7245 */ // No operand predicates
7690 /* 7245 */ // Combiner Rule #114: shifts_too_big @ [mi[2]]
7691 /* 7245 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner55),
7692 /* 7248 */ // Label 358: @7248
7693 /* 7248 */ GIM_Reject,
7694 /* 7249 */ // Label 36: @7249
7695 /* 7249 */ GIM_Try, /*On fail goto*//*Label 359*/ GIMT_Encode4(7260), // Rule ID 90 //
7696 /* 7254 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule81Enabled),
7697 /* 7257 */ // Combiner Rule #81: binop_right_undef_to_undef; wip_match_opcode 'G_ASHR'
7698 /* 7257 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner37),
7699 /* 7260 */ // Label 359: @7260
7700 /* 7260 */ GIM_Try, /*On fail goto*//*Label 360*/ GIMT_Encode4(7271), // Rule ID 169 //
7701 /* 7265 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule125Enabled),
7702 /* 7268 */ // Combiner Rule #125: shl_ashr_to_sext_inreg; wip_match_opcode 'G_ASHR'
7703 /* 7268 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner64),
7704 /* 7271 */ // Label 360: @7271
7705 /* 7271 */ GIM_Try, /*On fail goto*//*Label 361*/ GIMT_Encode4(7282), // Rule ID 222 //
7706 /* 7276 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule169Enabled),
7707 /* 7279 */ // Combiner Rule #169: shift_immed_chain; wip_match_opcode 'G_ASHR'
7708 /* 7279 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner91),
7709 /* 7282 */ // Label 361: @7282
7710 /* 7282 */ GIM_Try, /*On fail goto*//*Label 362*/ GIMT_Encode4(7293), // Rule ID 227 //
7711 /* 7287 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule170Enabled),
7712 /* 7290 */ // Combiner Rule #170: shift_of_shifted_logic_chain; wip_match_opcode 'G_ASHR'
7713 /* 7290 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner92),
7714 /* 7293 */ // Label 362: @7293
7715 /* 7293 */ GIM_Try, /*On fail goto*//*Label 363*/ GIMT_Encode4(7304), // Rule ID 252 //
7716 /* 7298 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule185Enabled),
7717 /* 7301 */ // Combiner Rule #185: bitfield_extract_from_shr; wip_match_opcode 'G_ASHR'
7718 /* 7301 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner101),
7719 /* 7304 */ // Label 363: @7304
7720 /* 7304 */ GIM_Try, /*On fail goto*//*Label 364*/ GIMT_Encode4(7315), // Rule ID 254 //
7721 /* 7309 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule186Enabled),
7722 /* 7312 */ // Combiner Rule #186: bitfield_extract_from_shr_and; wip_match_opcode 'G_ASHR'
7723 /* 7312 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner102),
7724 /* 7315 */ // Label 364: @7315
7725 /* 7315 */ GIM_Try, /*On fail goto*//*Label 365*/ GIMT_Encode4(7326), // Rule ID 259 //
7726 /* 7320 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled),
7727 /* 7323 */ // Combiner Rule #187: constant_fold_binop; wip_match_opcode 'G_ASHR'
7728 /* 7323 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103),
7729 /* 7326 */ // Label 365: @7326
7730 /* 7326 */ GIM_Try, /*On fail goto*//*Label 366*/ GIMT_Encode4(7337), // Rule ID 327 //
7731 /* 7331 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
7732 /* 7334 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_ASHR'
7733 /* 7334 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
7734 /* 7337 */ // Label 366: @7337
7735 /* 7337 */ GIM_Try, /*On fail goto*//*Label 367*/ GIMT_Encode4(7426), // Rule ID 435 //
7736 /* 7342 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule266Enabled),
7737 /* 7345 */ // MIs[0] dst
7738 /* 7345 */ // No operand predicates
7739 /* 7345 */ // MIs[0] sum
7740 /* 7345 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7741 /* 7349 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
7742 /* 7353 */ // MIs[1] inner
7743 /* 7353 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
7744 /* 7357 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ADD),
7745 /* 7361 */ // MIs[2] ext1
7746 /* 7361 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/2, /*OpIdx*/1, // MIs[3]
7747 /* 7365 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_SEXT),
7748 /* 7369 */ // MIs[3] x
7749 /* 7369 */ GIM_RecordRegType, /*MI*/3, /*Op*/1, /*TempTypeIdx*/255,
7750 /* 7373 */ // MIs[2] ext2
7751 /* 7373 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/4, /*MI*/2, /*OpIdx*/2, // MIs[4]
7752 /* 7377 */ GIM_CheckOpcode, /*MI*/4, GIMT_Encode2(TargetOpcode::G_SEXT),
7753 /* 7381 */ // MIs[4] y
7754 /* 7381 */ // No operand predicates
7755 /* 7381 */ // MIs[1] Operand 2
7756 /* 7381 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/2, 1,
7757 /* 7385 */ // MIs[0] Operand 2
7758 /* 7385 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 1,
7759 /* 7389 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner23),
7760 /* 7393 */ GIM_CheckIsSafeToFold, /*NumInsns*/4,
7761 /* 7395 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
7762 /* 7398 */ // Combiner Rule #266: avgceil_s_match
7763 /* 7398 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SAVGCEIL),
7764 /* 7401 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
7765 /* 7406 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/3, /*OpIdx*/1, // x
7766 /* 7410 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/4, /*OpIdx*/1, // y
7767 /* 7414 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SEXT),
7768 /* 7418 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
7769 /* 7422 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
7770 /* 7425 */ GIR_EraseRootFromParent_Done,
7771 /* 7426 */ // Label 367: @7426
7772 /* 7426 */ GIM_Try, /*On fail goto*//*Label 368*/ GIMT_Encode4(7503), // Rule ID 433 //
7773 /* 7431 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule264Enabled),
7774 /* 7434 */ // MIs[0] dst
7775 /* 7434 */ // No operand predicates
7776 /* 7434 */ // MIs[0] sum
7777 /* 7434 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7778 /* 7438 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
7779 /* 7442 */ // MIs[1] ext1
7780 /* 7442 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
7781 /* 7446 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SEXT),
7782 /* 7450 */ // MIs[2] x
7783 /* 7450 */ GIM_RecordRegType, /*MI*/2, /*Op*/1, /*TempTypeIdx*/255,
7784 /* 7454 */ // MIs[1] ext2
7785 /* 7454 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/1, /*OpIdx*/2, // MIs[3]
7786 /* 7458 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_SEXT),
7787 /* 7462 */ // MIs[3] y
7788 /* 7462 */ // No operand predicates
7789 /* 7462 */ // MIs[0] Operand 2
7790 /* 7462 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 1,
7791 /* 7466 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner21),
7792 /* 7470 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
7793 /* 7472 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
7794 /* 7475 */ // Combiner Rule #264: avgfloor_s_match
7795 /* 7475 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SAVGFLOOR),
7796 /* 7478 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
7797 /* 7483 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // x
7798 /* 7487 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/3, /*OpIdx*/1, // y
7799 /* 7491 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SEXT),
7800 /* 7495 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
7801 /* 7499 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
7802 /* 7502 */ GIR_EraseRootFromParent_Done,
7803 /* 7503 */ // Label 368: @7503
7804 /* 7503 */ GIM_Try, /*On fail goto*//*Label 369*/ GIMT_Encode4(7543), // Rule ID 126 //
7805 /* 7508 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
7806 /* 7511 */ // MIs[0] dst
7807 /* 7511 */ // No operand predicates
7808 /* 7511 */ // MIs[0] zero
7809 /* 7511 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7810 /* 7515 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
7811 /* 7519 */ // MIs[1] Operand 1
7812 /* 7519 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0),
7813 /* 7530 */ // MIs[0] rhs
7814 /* 7530 */ // No operand predicates
7815 /* 7530 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7816 /* 7535 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7817 /* 7537 */ // Combiner Rule #93: binop_left_to_zero @ [__binop_left_to_zero_match_0[2]]
7818 /* 7537 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7819 /* 7542 */ GIR_EraseRootFromParent_Done,
7820 /* 7543 */ // Label 369: @7543
7821 /* 7543 */ GIM_Try, /*On fail goto*//*Label 370*/ GIMT_Encode4(7566), // Rule ID 115 //
7822 /* 7548 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled),
7823 /* 7551 */ // MIs[0] dst
7824 /* 7551 */ // No operand predicates
7825 /* 7551 */ // MIs[0] lhs
7826 /* 7551 */ // No operand predicates
7827 /* 7551 */ // MIs[0] Operand 2
7828 /* 7551 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
7829 /* 7555 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7830 /* 7560 */ // Combiner Rule #90: right_identity_zero @ [__right_identity_zero_match_0[5]]
7831 /* 7560 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7832 /* 7565 */ GIR_EraseRootFromParent_Done,
7833 /* 7566 */ // Label 370: @7566
7834 /* 7566 */ GIM_Try, /*On fail goto*//*Label 371*/ GIMT_Encode4(7577), // Rule ID 157 //
7835 /* 7571 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule114Enabled),
7836 /* 7574 */ // MIs[0] root
7837 /* 7574 */ // No operand predicates
7838 /* 7574 */ // MIs[0] mi.shifted
7839 /* 7574 */ // No operand predicates
7840 /* 7574 */ // MIs[0] mi.amt
7841 /* 7574 */ // No operand predicates
7842 /* 7574 */ // Combiner Rule #114: shifts_too_big @ [mi[1]]
7843 /* 7574 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner55),
7844 /* 7577 */ // Label 371: @7577
7845 /* 7577 */ GIM_Reject,
7846 /* 7578 */ // Label 37: @7578
7847 /* 7578 */ GIM_Try, /*On fail goto*//*Label 372*/ GIMT_Encode4(7589), // Rule ID 237 //
7848 /* 7583 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule174Enabled),
7849 /* 7586 */ // Combiner Rule #174: funnel_shift_to_rotate; wip_match_opcode 'G_FSHL'
7850 /* 7586 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner96),
7851 /* 7589 */ // Label 372: @7589
7852 /* 7589 */ GIM_Try, /*On fail goto*//*Label 373*/ GIMT_Encode4(7600), // Rule ID 241 //
7853 /* 7594 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule177Enabled),
7854 /* 7597 */ // Combiner Rule #177: funnel_shift_overshift; wip_match_opcode 'G_FSHL'
7855 /* 7597 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner97),
7856 /* 7600 */ // Label 373: @7600
7857 /* 7600 */ GIM_Try, /*On fail goto*//*Label 374*/ GIMT_Encode4(7620), // Rule ID 240 //
7858 /* 7605 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule176Enabled),
7859 /* 7608 */ // MIs[0] x
7860 /* 7608 */ // No operand predicates
7861 /* 7608 */ // MIs[0] y
7862 /* 7608 */ // No operand predicates
7863 /* 7608 */ // MIs[0] z
7864 /* 7608 */ // No operand predicates
7865 /* 7608 */ // MIs[0] Operand 3
7866 /* 7608 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/3, 0,
7867 /* 7612 */ // Combiner Rule #176: funnel_shift_left_zero
7868 /* 7612 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::COPY),
7869 /* 7615 */ GIR_RootToRootCopy, /*OpIdx*/0, // x
7870 /* 7617 */ GIR_RootToRootCopy, /*OpIdx*/1, // y
7871 /* 7619 */ GIR_EraseRootFromParent_Done,
7872 /* 7620 */ // Label 374: @7620
7873 /* 7620 */ GIM_Reject,
7874 /* 7621 */ // Label 38: @7621
7875 /* 7621 */ GIM_Try, /*On fail goto*//*Label 375*/ GIMT_Encode4(7632), // Rule ID 238 //
7876 /* 7626 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule174Enabled),
7877 /* 7629 */ // Combiner Rule #174: funnel_shift_to_rotate; wip_match_opcode 'G_FSHR'
7878 /* 7629 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner96),
7879 /* 7632 */ // Label 375: @7632
7880 /* 7632 */ GIM_Try, /*On fail goto*//*Label 376*/ GIMT_Encode4(7643), // Rule ID 242 //
7881 /* 7637 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule177Enabled),
7882 /* 7640 */ // Combiner Rule #177: funnel_shift_overshift; wip_match_opcode 'G_FSHR'
7883 /* 7640 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner97),
7884 /* 7643 */ // Label 376: @7643
7885 /* 7643 */ GIM_Try, /*On fail goto*//*Label 377*/ GIMT_Encode4(7663), // Rule ID 239 //
7886 /* 7648 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule175Enabled),
7887 /* 7651 */ // MIs[0] x
7888 /* 7651 */ // No operand predicates
7889 /* 7651 */ // MIs[0] y
7890 /* 7651 */ // No operand predicates
7891 /* 7651 */ // MIs[0] z
7892 /* 7651 */ // No operand predicates
7893 /* 7651 */ // MIs[0] Operand 3
7894 /* 7651 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/3, 0,
7895 /* 7655 */ // Combiner Rule #175: funnel_shift_right_zero
7896 /* 7655 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::COPY),
7897 /* 7658 */ GIR_RootToRootCopy, /*OpIdx*/0, // x
7898 /* 7660 */ GIR_RootToRootCopy, /*OpIdx*/2, // z
7899 /* 7662 */ GIR_EraseRootFromParent_Done,
7900 /* 7663 */ // Label 377: @7663
7901 /* 7663 */ GIM_Reject,
7902 /* 7664 */ // Label 39: @7664
7903 /* 7664 */ GIM_Try, /*On fail goto*//*Label 378*/ GIMT_Encode4(7687), // Rule ID 119 //
7904 /* 7669 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled),
7905 /* 7672 */ // MIs[0] dst
7906 /* 7672 */ // No operand predicates
7907 /* 7672 */ // MIs[0] lhs
7908 /* 7672 */ // No operand predicates
7909 /* 7672 */ // MIs[0] Operand 2
7910 /* 7672 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
7911 /* 7676 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7912 /* 7681 */ // Combiner Rule #90: right_identity_zero @ [__right_identity_zero_match_0[9]]
7913 /* 7681 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7914 /* 7686 */ GIR_EraseRootFromParent_Done,
7915 /* 7687 */ // Label 378: @7687
7916 /* 7687 */ GIM_Reject,
7917 /* 7688 */ // Label 40: @7688
7918 /* 7688 */ GIM_Try, /*On fail goto*//*Label 379*/ GIMT_Encode4(7711), // Rule ID 118 //
7919 /* 7693 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled),
7920 /* 7696 */ // MIs[0] dst
7921 /* 7696 */ // No operand predicates
7922 /* 7696 */ // MIs[0] lhs
7923 /* 7696 */ // No operand predicates
7924 /* 7696 */ // MIs[0] Operand 2
7925 /* 7696 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
7926 /* 7700 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7927 /* 7705 */ // Combiner Rule #90: right_identity_zero @ [__right_identity_zero_match_0[8]]
7928 /* 7705 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7929 /* 7710 */ GIR_EraseRootFromParent_Done,
7930 /* 7711 */ // Label 379: @7711
7931 /* 7711 */ GIM_Reject,
7932 /* 7712 */ // Label 41: @7712
7933 /* 7712 */ GIM_Try, /*On fail goto*//*Label 380*/ GIMT_Encode4(7723), // Rule ID 164 //
7934 /* 7717 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule120Enabled),
7935 /* 7720 */ // Combiner Rule #120: icmp_to_true_false_known_bits; wip_match_opcode 'G_ICMP'
7936 /* 7720 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner61),
7937 /* 7723 */ // Label 380: @7723
7938 /* 7723 */ GIM_Try, /*On fail goto*//*Label 381*/ GIMT_Encode4(7734), // Rule ID 165 //
7939 /* 7728 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule121Enabled),
7940 /* 7731 */ // Combiner Rule #121: icmp_to_lhs_known_bits; wip_match_opcode 'G_ICMP'
7941 /* 7731 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner62),
7942 /* 7734 */ // Label 381: @7734
7943 /* 7734 */ GIM_Try, /*On fail goto*//*Label 382*/ GIMT_Encode4(7745), // Rule ID 168 //
7944 /* 7739 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule124Enabled),
7945 /* 7742 */ // Combiner Rule #124: redundant_binop_in_equality; wip_match_opcode 'G_ICMP'
7946 /* 7742 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner63),
7947 /* 7745 */ // Label 382: @7745
7948 /* 7745 */ GIM_Try, /*On fail goto*//*Label 383*/ GIMT_Encode4(7756), // Rule ID 162 //
7949 /* 7750 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule118Enabled),
7950 /* 7753 */ // MIs[0] root
7951 /* 7753 */ // No operand predicates
7952 /* 7753 */ // MIs[0] pred
7953 /* 7753 */ // No operand predicates
7954 /* 7753 */ // MIs[0] lhs
7955 /* 7753 */ // No operand predicates
7956 /* 7753 */ // MIs[0] rhs
7957 /* 7753 */ // No operand predicates
7958 /* 7753 */ // Combiner Rule #118: canonicalize_icmp
7959 /* 7753 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner59),
7960 /* 7756 */ // Label 383: @7756
7961 /* 7756 */ GIM_Reject,
7962 /* 7757 */ // Label 42: @7757
7963 /* 7757 */ GIM_Try, /*On fail goto*//*Label 384*/ GIMT_Encode4(7768), // Rule ID 163 //
7964 /* 7762 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule119Enabled),
7965 /* 7765 */ // MIs[0] root
7966 /* 7765 */ // No operand predicates
7967 /* 7765 */ // MIs[0] pred
7968 /* 7765 */ // No operand predicates
7969 /* 7765 */ // MIs[0] lhs
7970 /* 7765 */ // No operand predicates
7971 /* 7765 */ // MIs[0] rhs
7972 /* 7765 */ // No operand predicates
7973 /* 7765 */ // Combiner Rule #119: canonicalize_fcmp
7974 /* 7765 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner60),
7975 /* 7768 */ // Label 384: @7768
7976 /* 7768 */ GIM_Reject,
7977 /* 7769 */ // Label 43: @7769
7978 /* 7769 */ GIM_Try, /*On fail goto*//*Label 385*/ GIMT_Encode4(7780), // Rule ID 109 //
7979 /* 7774 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule89Enabled),
7980 /* 7777 */ // Combiner Rule #89: select_same_val; wip_match_opcode 'G_SELECT'
7981 /* 7777 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner44),
7982 /* 7780 */ // Label 385: @7780
7983 /* 7780 */ GIM_Try, /*On fail goto*//*Label 386*/ GIMT_Encode4(7791), // Rule ID 175 //
7984 /* 7785 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule131Enabled),
7985 /* 7788 */ // Combiner Rule #131: select_constant_cmp; wip_match_opcode 'G_SELECT'
7986 /* 7788 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner68),
7987 /* 7791 */ // Label 386: @7791
7988 /* 7791 */ GIM_Try, /*On fail goto*//*Label 387*/ GIMT_Encode4(7802), // Rule ID 177 //
7989 /* 7796 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule133Enabled),
7990 /* 7799 */ // Combiner Rule #133: match_selects; wip_match_opcode 'G_SELECT'
7991 /* 7799 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner70),
7992 /* 7802 */ // Label 387: @7802
7993 /* 7802 */ GIM_Try, /*On fail goto*//*Label 388*/ GIMT_Encode4(7813), // Rule ID 351 //
7994 /* 7807 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule214Enabled),
7995 /* 7810 */ // Combiner Rule #214: select_to_minmax; wip_match_opcode 'G_SELECT'
7996 /* 7810 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner127),
7997 /* 7813 */ // Label 388: @7813
7998 /* 7813 */ GIM_Try, /*On fail goto*//*Label 389*/ GIMT_Encode4(7862), // Rule ID 178 //
7999 /* 7818 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule134Enabled),
8000 /* 7821 */ // MIs[0] dst
8001 /* 7821 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
8002 /* 7825 */ // MIs[0] c
8003 /* 7825 */ // No operand predicates
8004 /* 7825 */ // MIs[0] x
8005 /* 7825 */ // No operand predicates
8006 /* 7825 */ // MIs[0] Operand 3
8007 /* 7825 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/3, 0,
8008 /* 7829 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner12),
8009 /* 7833 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
8010 /* 7836 */ // Combiner Rule #134: select_zero_false
8011 /* 7836 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FREEZE),
8012 /* 7839 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
8013 /* 7844 */ GIR_RootToRootCopy, /*OpIdx*/2, // x
8014 /* 7846 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_AND),
8015 /* 7850 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
8016 /* 7854 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/1, // c
8017 /* 7858 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
8018 /* 7861 */ GIR_EraseRootFromParent_Done,
8019 /* 7862 */ // Label 389: @7862
8020 /* 7862 */ GIM_Try, /*On fail goto*//*Label 390*/ GIMT_Encode4(7883), // Rule ID 176 //
8021 /* 7867 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule132Enabled),
8022 /* 7870 */ // MIs[0] root
8023 /* 7870 */ // No operand predicates
8024 /* 7870 */ // MIs[0] tst
8025 /* 7870 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8026 /* 7874 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ICMP),
8027 /* 7878 */ // MIs[1] tst1
8028 /* 7878 */ // No operand predicates
8029 /* 7878 */ // MIs[1] a
8030 /* 7878 */ // No operand predicates
8031 /* 7878 */ // MIs[1] b
8032 /* 7878 */ // No operand predicates
8033 /* 7878 */ // MIs[0] x
8034 /* 7878 */ // No operand predicates
8035 /* 7878 */ // MIs[0] y
8036 /* 7878 */ // No operand predicates
8037 /* 7878 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8038 /* 7880 */ // Combiner Rule #132: select_to_iminmax
8039 /* 7880 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner69),
8040 /* 7883 */ // Label 390: @7883
8041 /* 7883 */ GIM_Try, /*On fail goto*//*Label 391*/ GIMT_Encode4(7919), // Rule ID 179 //
8042 /* 7888 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule135Enabled),
8043 /* 7891 */ // MIs[0] dst
8044 /* 7891 */ // No operand predicates
8045 /* 7891 */ // MIs[0] c
8046 /* 7891 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8047 /* 7895 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_XOR),
8048 /* 7899 */ // MIs[1] src
8049 /* 7899 */ // No operand predicates
8050 /* 7899 */ // MIs[1] Operand 2
8051 /* 7899 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/2, 255,
8052 /* 7903 */ // MIs[0] x
8053 /* 7903 */ // No operand predicates
8054 /* 7903 */ // MIs[0] y
8055 /* 7903 */ // No operand predicates
8056 /* 7903 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8057 /* 7905 */ // Combiner Rule #135: select_not
8058 /* 7905 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SELECT),
8059 /* 7908 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
8060 /* 7910 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // src
8061 /* 7914 */ GIR_RootToRootCopy, /*OpIdx*/3, // y
8062 /* 7916 */ GIR_RootToRootCopy, /*OpIdx*/2, // x
8063 /* 7918 */ GIR_EraseRootFromParent_Done,
8064 /* 7919 */ // Label 391: @7919
8065 /* 7919 */ GIM_Try, /*On fail goto*//*Label 392*/ GIMT_Encode4(7948), // Rule ID 174 //
8066 /* 7924 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule130Enabled),
8067 /* 7927 */ // MIs[0] dst
8068 /* 7927 */ // No operand predicates
8069 /* 7927 */ // MIs[0] undef
8070 /* 7927 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8071 /* 7931 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
8072 /* 7935 */ // MIs[0] x
8073 /* 7935 */ // No operand predicates
8074 /* 7935 */ // MIs[0] y
8075 /* 7935 */ // No operand predicates
8076 /* 7935 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/3,
8077 /* 7940 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8078 /* 7942 */ // Combiner Rule #130: select_undef_cmp
8079 /* 7942 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/3,
8080 /* 7947 */ GIR_EraseRootFromParent_Done,
8081 /* 7948 */ // Label 392: @7948
8082 /* 7948 */ GIM_Reject,
8083 /* 7949 */ // Label 44: @7949
8084 /* 7949 */ GIM_Try, /*On fail goto*//*Label 393*/ GIMT_Encode4(7960), // Rule ID 362 //
8085 /* 7954 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
8086 /* 7957 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_UADDO'
8087 /* 7957 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129),
8088 /* 7960 */ // Label 393: @7960
8089 /* 7960 */ GIM_Try, /*On fail goto*//*Label 394*/ GIMT_Encode4(7971), // Rule ID 410 //
8090 /* 7965 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule245Enabled),
8091 /* 7968 */ // Combiner Rule #245: match_addos; wip_match_opcode 'G_UADDO'
8092 /* 7968 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner152),
8093 /* 7971 */ // Label 394: @7971
8094 /* 7971 */ GIM_Reject,
8095 /* 7972 */ // Label 45: @7972
8096 /* 7972 */ GIM_Try, /*On fail goto*//*Label 395*/ GIMT_Encode4(7983), // Rule ID 210 //
8097 /* 7977 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule164Enabled),
8098 /* 7980 */ // Combiner Rule #164: adde_to_addo; wip_match_opcode 'G_UADDE'
8099 /* 7980 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner86),
8100 /* 7983 */ // Label 395: @7983
8101 /* 7983 */ GIM_Reject,
8102 /* 7984 */ // Label 46: @7984
8103 /* 7984 */ GIM_Try, /*On fail goto*//*Label 396*/ GIMT_Encode4(7995), // Rule ID 412 //
8104 /* 7989 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule246Enabled),
8105 /* 7992 */ // Combiner Rule #246: match_subo_no_overflow; wip_match_opcode 'G_USUBO'
8106 /* 7992 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner153),
8107 /* 7995 */ // Label 396: @7995
8108 /* 7995 */ GIM_Reject,
8109 /* 7996 */ // Label 47: @7996
8110 /* 7996 */ GIM_Try, /*On fail goto*//*Label 397*/ GIMT_Encode4(8007), // Rule ID 212 //
8111 /* 8001 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule164Enabled),
8112 /* 8004 */ // Combiner Rule #164: adde_to_addo; wip_match_opcode 'G_USUBE'
8113 /* 8004 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner86),
8114 /* 8007 */ // Label 397: @8007
8115 /* 8007 */ GIM_Reject,
8116 /* 8008 */ // Label 48: @8008
8117 /* 8008 */ GIM_Try, /*On fail goto*//*Label 398*/ GIMT_Encode4(8019), // Rule ID 363 //
8118 /* 8013 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
8119 /* 8016 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_SADDO'
8120 /* 8016 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129),
8121 /* 8019 */ // Label 398: @8019
8122 /* 8019 */ GIM_Try, /*On fail goto*//*Label 399*/ GIMT_Encode4(8030), // Rule ID 409 //
8123 /* 8024 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule245Enabled),
8124 /* 8027 */ // Combiner Rule #245: match_addos; wip_match_opcode 'G_SADDO'
8125 /* 8027 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner152),
8126 /* 8030 */ // Label 399: @8030
8127 /* 8030 */ GIM_Reject,
8128 /* 8031 */ // Label 49: @8031
8129 /* 8031 */ GIM_Try, /*On fail goto*//*Label 400*/ GIMT_Encode4(8042), // Rule ID 211 //
8130 /* 8036 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule164Enabled),
8131 /* 8039 */ // Combiner Rule #164: adde_to_addo; wip_match_opcode 'G_SADDE'
8132 /* 8039 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner86),
8133 /* 8042 */ // Label 400: @8042
8134 /* 8042 */ GIM_Reject,
8135 /* 8043 */ // Label 50: @8043
8136 /* 8043 */ GIM_Try, /*On fail goto*//*Label 401*/ GIMT_Encode4(8054), // Rule ID 411 //
8137 /* 8048 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule246Enabled),
8138 /* 8051 */ // Combiner Rule #246: match_subo_no_overflow; wip_match_opcode 'G_SSUBO'
8139 /* 8051 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner153),
8140 /* 8054 */ // Label 401: @8054
8141 /* 8054 */ GIM_Reject,
8142 /* 8055 */ // Label 51: @8055
8143 /* 8055 */ GIM_Try, /*On fail goto*//*Label 402*/ GIMT_Encode4(8066), // Rule ID 213 //
8144 /* 8060 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule164Enabled),
8145 /* 8063 */ // Combiner Rule #164: adde_to_addo; wip_match_opcode 'G_SSUBE'
8146 /* 8063 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner86),
8147 /* 8066 */ // Label 402: @8066
8148 /* 8066 */ GIM_Reject,
8149 /* 8067 */ // Label 52: @8067
8150 /* 8067 */ GIM_Try, /*On fail goto*//*Label 403*/ GIMT_Encode4(8078), // Rule ID 206 //
8151 /* 8072 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule162Enabled),
8152 /* 8075 */ // Combiner Rule #162: mulo_by_2; wip_match_opcode 'G_UMULO'
8153 /* 8075 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner84),
8154 /* 8078 */ // Label 403: @8078
8155 /* 8078 */ GIM_Try, /*On fail goto*//*Label 404*/ GIMT_Encode4(8089), // Rule ID 208 //
8156 /* 8083 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule163Enabled),
8157 /* 8086 */ // Combiner Rule #163: mulo_by_0; wip_match_opcode 'G_UMULO'
8158 /* 8086 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner85),
8159 /* 8089 */ // Label 404: @8089
8160 /* 8089 */ GIM_Try, /*On fail goto*//*Label 405*/ GIMT_Encode4(8100), // Rule ID 364 //
8161 /* 8094 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
8162 /* 8097 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_UMULO'
8163 /* 8097 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129),
8164 /* 8100 */ // Label 405: @8100
8165 /* 8100 */ GIM_Reject,
8166 /* 8101 */ // Label 53: @8101
8167 /* 8101 */ GIM_Try, /*On fail goto*//*Label 406*/ GIMT_Encode4(8112), // Rule ID 207 //
8168 /* 8106 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule162Enabled),
8169 /* 8109 */ // Combiner Rule #162: mulo_by_2; wip_match_opcode 'G_SMULO'
8170 /* 8109 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner84),
8171 /* 8112 */ // Label 406: @8112
8172 /* 8112 */ GIM_Try, /*On fail goto*//*Label 407*/ GIMT_Encode4(8123), // Rule ID 209 //
8173 /* 8117 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule163Enabled),
8174 /* 8120 */ // Combiner Rule #163: mulo_by_0; wip_match_opcode 'G_SMULO'
8175 /* 8120 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner85),
8176 /* 8123 */ // Label 407: @8123
8177 /* 8123 */ GIM_Try, /*On fail goto*//*Label 408*/ GIMT_Encode4(8134), // Rule ID 365 //
8178 /* 8128 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
8179 /* 8131 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_SMULO'
8180 /* 8131 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129),
8181 /* 8134 */ // Label 408: @8134
8182 /* 8134 */ GIM_Reject,
8183 /* 8135 */ // Label 54: @8135
8184 /* 8135 */ GIM_Try, /*On fail goto*//*Label 409*/ GIMT_Encode4(8146), // Rule ID 300 //
8185 /* 8140 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule193Enabled),
8186 /* 8143 */ // Combiner Rule #193: mulh_to_lshr; wip_match_opcode 'G_UMULH'
8187 /* 8143 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner108),
8188 /* 8146 */ // Label 409: @8146
8189 /* 8146 */ GIM_Try, /*On fail goto*//*Label 410*/ GIMT_Encode4(8157), // Rule ID 366 //
8190 /* 8151 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
8191 /* 8154 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_UMULH'
8192 /* 8154 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129),
8193 /* 8157 */ // Label 410: @8157
8194 /* 8157 */ GIM_Reject,
8195 /* 8158 */ // Label 55: @8158
8196 /* 8158 */ GIM_Try, /*On fail goto*//*Label 411*/ GIMT_Encode4(8169), // Rule ID 367 //
8197 /* 8163 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
8198 /* 8166 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_SMULH'
8199 /* 8166 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129),
8200 /* 8169 */ // Label 411: @8169
8201 /* 8169 */ GIM_Reject,
8202 /* 8170 */ // Label 56: @8170
8203 /* 8170 */ GIM_Try, /*On fail goto*//*Label 412*/ GIMT_Encode4(8181), // Rule ID 368 //
8204 /* 8175 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
8205 /* 8178 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_UADDSAT'
8206 /* 8178 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129),
8207 /* 8181 */ // Label 412: @8181
8208 /* 8181 */ GIM_Reject,
8209 /* 8182 */ // Label 57: @8182
8210 /* 8182 */ GIM_Try, /*On fail goto*//*Label 413*/ GIMT_Encode4(8193), // Rule ID 369 //
8211 /* 8187 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
8212 /* 8190 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_SADDSAT'
8213 /* 8190 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129),
8214 /* 8193 */ // Label 413: @8193
8215 /* 8193 */ GIM_Reject,
8216 /* 8194 */ // Label 58: @8194
8217 /* 8194 */ GIM_Try, /*On fail goto*//*Label 414*/ GIMT_Encode4(8205), // Rule ID 225 //
8218 /* 8199 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule169Enabled),
8219 /* 8202 */ // Combiner Rule #169: shift_immed_chain; wip_match_opcode 'G_USHLSAT'
8220 /* 8202 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner91),
8221 /* 8205 */ // Label 414: @8205
8222 /* 8205 */ GIM_Try, /*On fail goto*//*Label 415*/ GIMT_Encode4(8216), // Rule ID 229 //
8223 /* 8210 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule170Enabled),
8224 /* 8213 */ // Combiner Rule #170: shift_of_shifted_logic_chain; wip_match_opcode 'G_USHLSAT'
8225 /* 8213 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner92),
8226 /* 8216 */ // Label 415: @8216
8227 /* 8216 */ GIM_Reject,
8228 /* 8217 */ // Label 59: @8217
8229 /* 8217 */ GIM_Try, /*On fail goto*//*Label 416*/ GIMT_Encode4(8228), // Rule ID 224 //
8230 /* 8222 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule169Enabled),
8231 /* 8225 */ // Combiner Rule #169: shift_immed_chain; wip_match_opcode 'G_SSHLSAT'
8232 /* 8225 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner91),
8233 /* 8228 */ // Label 416: @8228
8234 /* 8228 */ GIM_Try, /*On fail goto*//*Label 417*/ GIMT_Encode4(8239), // Rule ID 230 //
8235 /* 8233 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule170Enabled),
8236 /* 8236 */ // Combiner Rule #170: shift_of_shifted_logic_chain; wip_match_opcode 'G_SSHLSAT'
8237 /* 8236 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner92),
8238 /* 8239 */ // Label 417: @8239
8239 /* 8239 */ GIM_Reject,
8240 /* 8240 */ // Label 60: @8240
8241 /* 8240 */ GIM_Try, /*On fail goto*//*Label 418*/ GIMT_Encode4(8251), // Rule ID 370 //
8242 /* 8245 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
8243 /* 8248 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_SMULFIX'
8244 /* 8248 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129),
8245 /* 8251 */ // Label 418: @8251
8246 /* 8251 */ GIM_Reject,
8247 /* 8252 */ // Label 61: @8252
8248 /* 8252 */ GIM_Try, /*On fail goto*//*Label 419*/ GIMT_Encode4(8263), // Rule ID 371 //
8249 /* 8257 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
8250 /* 8260 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_UMULFIX'
8251 /* 8260 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129),
8252 /* 8263 */ // Label 419: @8263
8253 /* 8263 */ GIM_Reject,
8254 /* 8264 */ // Label 62: @8264
8255 /* 8264 */ GIM_Try, /*On fail goto*//*Label 420*/ GIMT_Encode4(8275), // Rule ID 372 //
8256 /* 8269 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
8257 /* 8272 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_SMULFIXSAT'
8258 /* 8272 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129),
8259 /* 8275 */ // Label 420: @8275
8260 /* 8275 */ GIM_Reject,
8261 /* 8276 */ // Label 63: @8276
8262 /* 8276 */ GIM_Try, /*On fail goto*//*Label 421*/ GIMT_Encode4(8287), // Rule ID 373 //
8263 /* 8281 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
8264 /* 8284 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_UMULFIXSAT'
8265 /* 8284 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129),
8266 /* 8287 */ // Label 421: @8287
8267 /* 8287 */ GIM_Reject,
8268 /* 8288 */ // Label 64: @8288
8269 /* 8288 */ GIM_Try, /*On fail goto*//*Label 422*/ GIMT_Encode4(8299), // Rule ID 301 //
8270 /* 8293 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
8271 /* 8296 */ // Combiner Rule #194: redundant_neg_operands; wip_match_opcode 'G_FADD'
8272 /* 8296 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner109),
8273 /* 8299 */ // Label 422: @8299
8274 /* 8299 */ GIM_Try, /*On fail goto*//*Label 423*/ GIMT_Encode4(8310), // Rule ID 308 //
8275 /* 8304 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule196Enabled),
8276 /* 8307 */ // Combiner Rule #196: combine_fadd_fmul_to_fmad_or_fma; wip_match_opcode 'G_FADD'
8277 /* 8307 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner111),
8278 /* 8310 */ // Label 423: @8310
8279 /* 8310 */ GIM_Try, /*On fail goto*//*Label 424*/ GIMT_Encode4(8321), // Rule ID 309 //
8280 /* 8315 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule197Enabled),
8281 /* 8318 */ // Combiner Rule #197: combine_fadd_fpext_fmul_to_fmad_or_fma; wip_match_opcode 'G_FADD'
8282 /* 8318 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner112),
8283 /* 8321 */ // Label 424: @8321
8284 /* 8321 */ GIM_Try, /*On fail goto*//*Label 425*/ GIMT_Encode4(8332), // Rule ID 310 //
8285 /* 8326 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule198Enabled),
8286 /* 8329 */ // Combiner Rule #198: combine_fadd_fma_fmul_to_fmad_or_fma; wip_match_opcode 'G_FADD'
8287 /* 8329 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner113),
8288 /* 8332 */ // Label 425: @8332
8289 /* 8332 */ GIM_Try, /*On fail goto*//*Label 426*/ GIMT_Encode4(8343), // Rule ID 311 //
8290 /* 8337 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule199Enabled),
8291 /* 8340 */ // Combiner Rule #199: combine_fadd_fpext_fma_fmul_to_fmad_or_fma; wip_match_opcode 'G_FADD'
8292 /* 8340 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner114),
8293 /* 8343 */ // Label 426: @8343
8294 /* 8343 */ GIM_Try, /*On fail goto*//*Label 427*/ GIMT_Encode4(8354), // Rule ID 334 //
8295 /* 8348 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
8296 /* 8351 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_FADD'
8297 /* 8351 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
8298 /* 8354 */ // Label 427: @8354
8299 /* 8354 */ GIM_Try, /*On fail goto*//*Label 428*/ GIMT_Encode4(8365), // Rule ID 374 //
8300 /* 8359 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule217Enabled),
8301 /* 8362 */ // Combiner Rule #217: commute_fp_constant_to_rhs; wip_match_opcode 'G_FADD'
8302 /* 8362 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner130),
8303 /* 8365 */ // Label 428: @8365
8304 /* 8365 */ GIM_Try, /*On fail goto*//*Label 429*/ GIMT_Encode4(8388), // Rule ID 148 //
8305 /* 8370 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule108Enabled),
8306 /* 8373 */ // MIs[0] dst
8307 /* 8373 */ // No operand predicates
8308 /* 8373 */ // MIs[0] x
8309 /* 8373 */ // No operand predicates
8310 /* 8373 */ // MIs[0] y
8311 /* 8373 */ // No operand predicates
8312 /* 8373 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner6),
8313 /* 8377 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8314 /* 8382 */ // Combiner Rule #108: right_identity_neg_zero_fp
8315 /* 8382 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8316 /* 8387 */ GIR_EraseRootFromParent_Done,
8317 /* 8388 */ // Label 429: @8388
8318 /* 8388 */ GIM_Try, /*On fail goto*//*Label 430*/ GIMT_Encode4(8417), // Rule ID 149 //
8319 /* 8393 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule109Enabled),
8320 /* 8396 */ GIM_MIFlags, /*MI*/0, GIMT_Encode4(MachineInstr::FmNsz),
8321 /* 8402 */ // MIs[0] dst
8322 /* 8402 */ // No operand predicates
8323 /* 8402 */ // MIs[0] x
8324 /* 8402 */ // No operand predicates
8325 /* 8402 */ // MIs[0] y
8326 /* 8402 */ // No operand predicates
8327 /* 8402 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner7),
8328 /* 8406 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8329 /* 8411 */ // Combiner Rule #109: right_identity_neg_zero_fp_nsz
8330 /* 8411 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8331 /* 8416 */ GIR_EraseRootFromParent_Done,
8332 /* 8417 */ // Label 430: @8417
8333 /* 8417 */ GIM_Try, /*On fail goto*//*Label 431*/ GIMT_Encode4(8428), // Rule ID 274 //
8334 /* 8422 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule188Enabled),
8335 /* 8425 */ // MIs[0] d
8336 /* 8425 */ // No operand predicates
8337 /* 8425 */ // MIs[0] mi.src0
8338 /* 8425 */ // No operand predicates
8339 /* 8425 */ // MIs[0] mi.src1
8340 /* 8425 */ // No operand predicates
8341 /* 8425 */ // Combiner Rule #188: constant_fold_fp_binop @ [mi[0]]
8342 /* 8425 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner104),
8343 /* 8428 */ // Label 431: @8428
8344 /* 8428 */ GIM_Reject,
8345 /* 8429 */ // Label 65: @8429
8346 /* 8429 */ GIM_Try, /*On fail goto*//*Label 432*/ GIMT_Encode4(8440), // Rule ID 302 //
8347 /* 8434 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
8348 /* 8437 */ // Combiner Rule #194: redundant_neg_operands; wip_match_opcode 'G_FSUB'
8349 /* 8437 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner109),
8350 /* 8440 */ // Label 432: @8440
8351 /* 8440 */ GIM_Try, /*On fail goto*//*Label 433*/ GIMT_Encode4(8451), // Rule ID 312 //
8352 /* 8445 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule200Enabled),
8353 /* 8448 */ // Combiner Rule #200: combine_fsub_fmul_to_fmad_or_fma; wip_match_opcode 'G_FSUB'
8354 /* 8448 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner115),
8355 /* 8451 */ // Label 433: @8451
8356 /* 8451 */ GIM_Try, /*On fail goto*//*Label 434*/ GIMT_Encode4(8462), // Rule ID 313 //
8357 /* 8456 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule201Enabled),
8358 /* 8459 */ // Combiner Rule #201: combine_fsub_fneg_fmul_to_fmad_or_fma; wip_match_opcode 'G_FSUB'
8359 /* 8459 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner116),
8360 /* 8462 */ // Label 434: @8462
8361 /* 8462 */ GIM_Try, /*On fail goto*//*Label 435*/ GIMT_Encode4(8473), // Rule ID 314 //
8362 /* 8467 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule202Enabled),
8363 /* 8470 */ // Combiner Rule #202: combine_fsub_fpext_fmul_to_fmad_or_fma; wip_match_opcode 'G_FSUB'
8364 /* 8470 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner117),
8365 /* 8473 */ // Label 435: @8473
8366 /* 8473 */ GIM_Try, /*On fail goto*//*Label 436*/ GIMT_Encode4(8484), // Rule ID 315 //
8367 /* 8478 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule203Enabled),
8368 /* 8481 */ // Combiner Rule #203: combine_fsub_fpext_fneg_fmul_to_fmad_or_fma; wip_match_opcode 'G_FSUB'
8369 /* 8481 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner118),
8370 /* 8484 */ // Label 436: @8484
8371 /* 8484 */ GIM_Try, /*On fail goto*//*Label 437*/ GIMT_Encode4(8495), // Rule ID 335 //
8372 /* 8489 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
8373 /* 8492 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_FSUB'
8374 /* 8492 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
8375 /* 8495 */ // Label 437: @8495
8376 /* 8495 */ GIM_Try, /*On fail goto*//*Label 438*/ GIMT_Encode4(8506), // Rule ID 352 //
8377 /* 8500 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule215Enabled),
8378 /* 8503 */ // Combiner Rule #215: fsub_to_fneg; wip_match_opcode 'G_FSUB'
8379 /* 8503 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner128),
8380 /* 8506 */ // Label 438: @8506
8381 /* 8506 */ GIM_Try, /*On fail goto*//*Label 439*/ GIMT_Encode4(8517), // Rule ID 275 //
8382 /* 8511 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule188Enabled),
8383 /* 8514 */ // MIs[0] d
8384 /* 8514 */ // No operand predicates
8385 /* 8514 */ // MIs[0] mi.src0
8386 /* 8514 */ // No operand predicates
8387 /* 8514 */ // MIs[0] mi.src1
8388 /* 8514 */ // No operand predicates
8389 /* 8514 */ // Combiner Rule #188: constant_fold_fp_binop @ [mi[1]]
8390 /* 8514 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner104),
8391 /* 8517 */ // Label 439: @8517
8392 /* 8517 */ GIM_Reject,
8393 /* 8518 */ // Label 66: @8518
8394 /* 8518 */ GIM_Try, /*On fail goto*//*Label 440*/ GIMT_Encode4(8529), // Rule ID 303 //
8395 /* 8523 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
8396 /* 8526 */ // Combiner Rule #194: redundant_neg_operands; wip_match_opcode 'G_FMUL'
8397 /* 8526 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner109),
8398 /* 8529 */ // Label 440: @8529
8399 /* 8529 */ GIM_Try, /*On fail goto*//*Label 441*/ GIMT_Encode4(8540), // Rule ID 333 //
8400 /* 8534 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
8401 /* 8537 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_FMUL'
8402 /* 8537 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
8403 /* 8540 */ // Label 441: @8540
8404 /* 8540 */ GIM_Try, /*On fail goto*//*Label 442*/ GIMT_Encode4(8551), // Rule ID 375 //
8405 /* 8545 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule217Enabled),
8406 /* 8548 */ // Combiner Rule #217: commute_fp_constant_to_rhs; wip_match_opcode 'G_FMUL'
8407 /* 8548 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner130),
8408 /* 8551 */ // Label 442: @8551
8409 /* 8551 */ GIM_Try, /*On fail goto*//*Label 443*/ GIMT_Encode4(8572), // Rule ID 440 //
8410 /* 8556 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule268Enabled),
8411 /* 8559 */ // MIs[0] dst
8412 /* 8559 */ // No operand predicates
8413 /* 8559 */ // MIs[0] x
8414 /* 8559 */ // No operand predicates
8415 /* 8559 */ // MIs[0] select
8416 /* 8559 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
8417 /* 8563 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SELECT),
8418 /* 8567 */ // MIs[1] y
8419 /* 8567 */ // No operand predicates
8420 /* 8567 */ // MIs[1] A
8421 /* 8567 */ // No operand predicates
8422 /* 8567 */ // MIs[1] B
8423 /* 8567 */ // No operand predicates
8424 /* 8567 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8425 /* 8569 */ // Combiner Rule #268: combine_fmul_with_select_to_fldexp
8426 /* 8569 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner160),
8427 /* 8572 */ // Label 443: @8572
8428 /* 8572 */ GIM_Try, /*On fail goto*//*Label 444*/ GIMT_Encode4(8595), // Rule ID 138 //
8429 /* 8577 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule100Enabled),
8430 /* 8580 */ // MIs[0] dst
8431 /* 8580 */ // No operand predicates
8432 /* 8580 */ // MIs[0] x
8433 /* 8580 */ // No operand predicates
8434 /* 8580 */ // MIs[0] y
8435 /* 8580 */ // No operand predicates
8436 /* 8580 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner4),
8437 /* 8584 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8438 /* 8589 */ // Combiner Rule #100: right_identity_one_fp
8439 /* 8589 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8440 /* 8594 */ GIR_EraseRootFromParent_Done,
8441 /* 8595 */ // Label 444: @8595
8442 /* 8595 */ GIM_Try, /*On fail goto*//*Label 445*/ GIMT_Encode4(8615), // Rule ID 150 //
8443 /* 8600 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule110Enabled),
8444 /* 8603 */ // MIs[0] dst
8445 /* 8603 */ // No operand predicates
8446 /* 8603 */ // MIs[0] x
8447 /* 8603 */ // No operand predicates
8448 /* 8603 */ // MIs[0] y
8449 /* 8603 */ // No operand predicates
8450 /* 8603 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner8),
8451 /* 8607 */ // Combiner Rule #110: right_identity_neg_one_fp
8452 /* 8607 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FNEG),
8453 /* 8610 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
8454 /* 8612 */ GIR_RootToRootCopy, /*OpIdx*/1, // x
8455 /* 8614 */ GIR_EraseRootFromParent_Done,
8456 /* 8615 */ // Label 445: @8615
8457 /* 8615 */ GIM_Try, /*On fail goto*//*Label 446*/ GIMT_Encode4(8626), // Rule ID 276 //
8458 /* 8620 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule188Enabled),
8459 /* 8623 */ // MIs[0] d
8460 /* 8623 */ // No operand predicates
8461 /* 8623 */ // MIs[0] mi.src0
8462 /* 8623 */ // No operand predicates
8463 /* 8623 */ // MIs[0] mi.src1
8464 /* 8623 */ // No operand predicates
8465 /* 8623 */ // Combiner Rule #188: constant_fold_fp_binop @ [mi[2]]
8466 /* 8623 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner104),
8467 /* 8626 */ // Label 446: @8626
8468 /* 8626 */ GIM_Reject,
8469 /* 8627 */ // Label 67: @8627
8470 /* 8627 */ GIM_Try, /*On fail goto*//*Label 447*/ GIMT_Encode4(8638), // Rule ID 287 //
8471 /* 8632 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule189Enabled),
8472 /* 8635 */ // Combiner Rule #189: constant_fold_fma; wip_match_opcode 'G_FMA'
8473 /* 8635 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner105),
8474 /* 8638 */ // Label 447: @8638
8475 /* 8638 */ GIM_Try, /*On fail goto*//*Label 448*/ GIMT_Encode4(8649), // Rule ID 306 //
8476 /* 8643 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
8477 /* 8646 */ // Combiner Rule #194: redundant_neg_operands; wip_match_opcode 'G_FMA'
8478 /* 8646 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner109),
8479 /* 8649 */ // Label 448: @8649
8480 /* 8649 */ GIM_Reject,
8481 /* 8650 */ // Label 68: @8650
8482 /* 8650 */ GIM_Try, /*On fail goto*//*Label 449*/ GIMT_Encode4(8661), // Rule ID 286 //
8483 /* 8655 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule189Enabled),
8484 /* 8658 */ // Combiner Rule #189: constant_fold_fma; wip_match_opcode 'G_FMAD'
8485 /* 8658 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner105),
8486 /* 8661 */ // Label 449: @8661
8487 /* 8661 */ GIM_Try, /*On fail goto*//*Label 450*/ GIMT_Encode4(8672), // Rule ID 305 //
8488 /* 8666 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
8489 /* 8669 */ // Combiner Rule #194: redundant_neg_operands; wip_match_opcode 'G_FMAD'
8490 /* 8669 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner109),
8491 /* 8672 */ // Label 450: @8672
8492 /* 8672 */ GIM_Reject,
8493 /* 8673 */ // Label 69: @8673
8494 /* 8673 */ GIM_Try, /*On fail goto*//*Label 451*/ GIMT_Encode4(8684), // Rule ID 304 //
8495 /* 8678 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
8496 /* 8681 */ // Combiner Rule #194: redundant_neg_operands; wip_match_opcode 'G_FDIV'
8497 /* 8681 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner109),
8498 /* 8684 */ // Label 451: @8684
8499 /* 8684 */ GIM_Try, /*On fail goto*//*Label 452*/ GIMT_Encode4(8695), // Rule ID 336 //
8500 /* 8689 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
8501 /* 8692 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_FDIV'
8502 /* 8692 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
8503 /* 8695 */ // Label 452: @8695
8504 /* 8695 */ GIM_Try, /*On fail goto*//*Label 453*/ GIMT_Encode4(8706), // Rule ID 277 //
8505 /* 8700 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule188Enabled),
8506 /* 8703 */ // MIs[0] d
8507 /* 8703 */ // No operand predicates
8508 /* 8703 */ // MIs[0] mi.src0
8509 /* 8703 */ // No operand predicates
8510 /* 8703 */ // MIs[0] mi.src1
8511 /* 8703 */ // No operand predicates
8512 /* 8703 */ // Combiner Rule #188: constant_fold_fp_binop @ [mi[3]]
8513 /* 8703 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner104),
8514 /* 8706 */ // Label 453: @8706
8515 /* 8706 */ GIM_Try, /*On fail goto*//*Label 454*/ GIMT_Encode4(8717), // Rule ID 349 //
8516 /* 8711 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule212Enabled),
8517 /* 8714 */ // MIs[0] dst
8518 /* 8714 */ // No operand predicates
8519 /* 8714 */ // MIs[0] src1
8520 /* 8714 */ // No operand predicates
8521 /* 8714 */ // MIs[0] src2
8522 /* 8714 */ // No operand predicates
8523 /* 8714 */ // Combiner Rule #212: fdiv_repeated_divison
8524 /* 8714 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner125),
8525 /* 8717 */ // Label 454: @8717
8526 /* 8717 */ GIM_Reject,
8527 /* 8718 */ // Label 70: @8718
8528 /* 8718 */ GIM_Try, /*On fail goto*//*Label 455*/ GIMT_Encode4(8729), // Rule ID 337 //
8529 /* 8723 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
8530 /* 8726 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_FREM'
8531 /* 8726 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
8532 /* 8729 */ // Label 455: @8729
8533 /* 8729 */ GIM_Try, /*On fail goto*//*Label 456*/ GIMT_Encode4(8740), // Rule ID 278 //
8534 /* 8734 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule188Enabled),
8535 /* 8737 */ // MIs[0] d
8536 /* 8737 */ // No operand predicates
8537 /* 8737 */ // MIs[0] mi.src0
8538 /* 8737 */ // No operand predicates
8539 /* 8737 */ // MIs[0] mi.src1
8540 /* 8737 */ // No operand predicates
8541 /* 8737 */ // Combiner Rule #188: constant_fold_fp_binop @ [mi[4]]
8542 /* 8737 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner104),
8543 /* 8740 */ // Label 456: @8740
8544 /* 8740 */ GIM_Reject,
8545 /* 8741 */ // Label 71: @8741
8546 /* 8741 */ GIM_Try, /*On fail goto*//*Label 457*/ GIMT_Encode4(8762), // Rule ID 218 //
8547 /* 8746 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule166Enabled),
8548 /* 8749 */ // MIs[0] dst
8549 /* 8749 */ // No operand predicates
8550 /* 8749 */ // MIs[0] float
8551 /* 8749 */ // No operand predicates
8552 /* 8749 */ // MIs[0] int
8553 /* 8749 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
8554 /* 8753 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
8555 /* 8757 */ // MIs[1] imm
8556 /* 8757 */ // No operand predicates
8557 /* 8757 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8558 /* 8759 */ // Combiner Rule #166: expand_const_fpowi
8559 /* 8759 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner88),
8560 /* 8762 */ // Label 457: @8762
8561 /* 8762 */ GIM_Reject,
8562 /* 8763 */ // Label 72: @8763
8563 /* 8763 */ GIM_Try, /*On fail goto*//*Label 458*/ GIMT_Encode4(8784), // Rule ID 192 //
8564 /* 8768 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule148Enabled),
8565 /* 8771 */ // MIs[0] dst
8566 /* 8771 */ // No operand predicates
8567 /* 8771 */ // MIs[0] src0
8568 /* 8771 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8569 /* 8775 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT),
8570 /* 8779 */ // MIs[1] cst
8571 /* 8779 */ // No operand predicates
8572 /* 8779 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8573 /* 8781 */ // Combiner Rule #148: constant_fold_flog2
8574 /* 8781 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
8575 /* 8784 */ // Label 458: @8784
8576 /* 8784 */ GIM_Reject,
8577 /* 8785 */ // Label 73: @8785
8578 /* 8785 */ GIM_Try, /*On fail goto*//*Label 459*/ GIMT_Encode4(8796), // Rule ID 442 //
8579 /* 8790 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule270Enabled),
8580 /* 8793 */ // Combiner Rule #270: foldable_fneg; wip_match_opcode 'G_FNEG'
8581 /* 8793 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner162),
8582 /* 8796 */ // Label 459: @8796
8583 /* 8796 */ GIM_Try, /*On fail goto*//*Label 460*/ GIMT_Encode4(8817), // Rule ID 189 //
8584 /* 8801 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule145Enabled),
8585 /* 8804 */ // MIs[0] dst
8586 /* 8804 */ // No operand predicates
8587 /* 8804 */ // MIs[0] src0
8588 /* 8804 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8589 /* 8808 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT),
8590 /* 8812 */ // MIs[1] cst
8591 /* 8812 */ // No operand predicates
8592 /* 8812 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8593 /* 8814 */ // Combiner Rule #145: constant_fold_fneg
8594 /* 8814 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
8595 /* 8817 */ // Label 460: @8817
8596 /* 8817 */ GIM_Try, /*On fail goto*//*Label 461*/ GIMT_Encode4(8846), // Rule ID 136 //
8597 /* 8822 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule98Enabled),
8598 /* 8825 */ // MIs[0] dst
8599 /* 8825 */ // No operand predicates
8600 /* 8825 */ // MIs[0] t
8601 /* 8825 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8602 /* 8829 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FNEG),
8603 /* 8833 */ // MIs[1] src
8604 /* 8833 */ // No operand predicates
8605 /* 8833 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
8606 /* 8838 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8607 /* 8840 */ // Combiner Rule #98: fneg_fneg_fold
8608 /* 8840 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
8609 /* 8845 */ GIR_EraseRootFromParent_Done,
8610 /* 8846 */ // Label 461: @8846
8611 /* 8846 */ GIM_Reject,
8612 /* 8847 */ // Label 74: @8847
8613 /* 8847 */ GIM_Try, /*On fail goto*//*Label 462*/ GIMT_Encode4(8868), // Rule ID 194 //
8614 /* 8852 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule150Enabled),
8615 /* 8855 */ // MIs[0] dst
8616 /* 8855 */ // No operand predicates
8617 /* 8855 */ // MIs[0] src0
8618 /* 8855 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8619 /* 8859 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT),
8620 /* 8863 */ // MIs[1] cst
8621 /* 8863 */ // No operand predicates
8622 /* 8863 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8623 /* 8865 */ // Combiner Rule #150: constant_fold_fpext
8624 /* 8865 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
8625 /* 8868 */ // Label 462: @8868
8626 /* 8868 */ GIM_Reject,
8627 /* 8869 */ // Label 75: @8869
8628 /* 8869 */ GIM_Try, /*On fail goto*//*Label 463*/ GIMT_Encode4(8890), // Rule ID 193 //
8629 /* 8874 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule149Enabled),
8630 /* 8877 */ // MIs[0] dst
8631 /* 8877 */ // No operand predicates
8632 /* 8877 */ // MIs[0] src0
8633 /* 8877 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8634 /* 8881 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT),
8635 /* 8885 */ // MIs[1] cst
8636 /* 8885 */ // No operand predicates
8637 /* 8885 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8638 /* 8887 */ // Combiner Rule #149: constant_fold_fptrunc
8639 /* 8887 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
8640 /* 8890 */ // Label 463: @8890
8641 /* 8890 */ GIM_Try, /*On fail goto*//*Label 464*/ GIMT_Encode4(8911), // Rule ID 147 //
8642 /* 8895 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule107Enabled),
8643 /* 8898 */ // MIs[0] dst
8644 /* 8898 */ // No operand predicates
8645 /* 8898 */ // MIs[0] src1
8646 /* 8898 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8647 /* 8902 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FPEXT),
8648 /* 8906 */ // MIs[1] src0
8649 /* 8906 */ // No operand predicates
8650 /* 8906 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8651 /* 8908 */ // Combiner Rule #107: fptrunc_fpext_fold
8652 /* 8908 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner51),
8653 /* 8911 */ // Label 464: @8911
8654 /* 8911 */ GIM_Reject,
8655 /* 8912 */ // Label 76: @8912
8656 /* 8912 */ GIM_Try, /*On fail goto*//*Label 465*/ GIMT_Encode4(8933), // Rule ID 98 //
8657 /* 8917 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule83Enabled),
8658 /* 8920 */ // MIs[0] dst
8659 /* 8920 */ // No operand predicates
8660 /* 8920 */ // MIs[0] __unary_undef_to_undef_match_0.x
8661 /* 8920 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8662 /* 8924 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
8663 /* 8928 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8664 /* 8930 */ // Combiner Rule #83: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[5]]
8665 /* 8930 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner38),
8666 /* 8933 */ // Label 465: @8933
8667 /* 8933 */ GIM_Reject,
8668 /* 8934 */ // Label 77: @8934
8669 /* 8934 */ GIM_Try, /*On fail goto*//*Label 466*/ GIMT_Encode4(8955), // Rule ID 99 //
8670 /* 8939 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule83Enabled),
8671 /* 8942 */ // MIs[0] dst
8672 /* 8942 */ // No operand predicates
8673 /* 8942 */ // MIs[0] __unary_undef_to_undef_match_0.x
8674 /* 8942 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8675 /* 8946 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
8676 /* 8950 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8677 /* 8952 */ // Combiner Rule #83: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[6]]
8678 /* 8952 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner38),
8679 /* 8955 */ // Label 466: @8955
8680 /* 8955 */ GIM_Reject,
8681 /* 8956 */ // Label 78: @8956
8682 /* 8956 */ GIM_Try, /*On fail goto*//*Label 467*/ GIMT_Encode4(8967), // Rule ID 82 //
8683 /* 8961 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule77Enabled),
8684 /* 8964 */ // Combiner Rule #77: undef_to_fp_zero; wip_match_opcode 'G_SITOFP'
8685 /* 8964 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner33),
8686 /* 8967 */ // Label 467: @8967
8687 /* 8967 */ GIM_Try, /*On fail goto*//*Label 468*/ GIMT_Encode4(8982), // Rule ID 202 //
8688 /* 8972 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule158Enabled),
8689 /* 8975 */ // MIs[0] dst
8690 /* 8975 */ // No operand predicates
8691 /* 8975 */ // MIs[0] Operand 1
8692 /* 8975 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/1, 0,
8693 /* 8979 */ // Combiner Rule #158: itof_const_zero_fold_si
8694 /* 8979 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner81),
8695 /* 8982 */ // Label 468: @8982
8696 /* 8982 */ GIM_Reject,
8697 /* 8983 */ // Label 79: @8983
8698 /* 8983 */ GIM_Try, /*On fail goto*//*Label 469*/ GIMT_Encode4(8994), // Rule ID 81 //
8699 /* 8988 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule77Enabled),
8700 /* 8991 */ // Combiner Rule #77: undef_to_fp_zero; wip_match_opcode 'G_UITOFP'
8701 /* 8991 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner33),
8702 /* 8994 */ // Label 469: @8994
8703 /* 8994 */ GIM_Try, /*On fail goto*//*Label 470*/ GIMT_Encode4(9009), // Rule ID 203 //
8704 /* 8999 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule159Enabled),
8705 /* 9002 */ // MIs[0] dst
8706 /* 9002 */ // No operand predicates
8707 /* 9002 */ // MIs[0] Operand 1
8708 /* 9002 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/1, 0,
8709 /* 9006 */ // Combiner Rule #159: itof_const_zero_fold_ui
8710 /* 9006 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner81),
8711 /* 9009 */ // Label 470: @9009
8712 /* 9009 */ GIM_Reject,
8713 /* 9010 */ // Label 80: @9010
8714 /* 9010 */ GIM_Try, /*On fail goto*//*Label 471*/ GIMT_Encode4(9039), // Rule ID 25 //
8715 /* 9015 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule24Enabled),
8716 /* 9018 */ // MIs[0] dst
8717 /* 9018 */ // No operand predicates
8718 /* 9018 */ // MIs[0] src
8719 /* 9018 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8720 /* 9022 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FABS),
8721 /* 9026 */ // MIs[1] __idempotent_prop_match_0.x
8722 /* 9026 */ // No operand predicates
8723 /* 9026 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8724 /* 9031 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8725 /* 9033 */ // Combiner Rule #24: idempotent_prop @ [__idempotent_prop_match_0[1]]
8726 /* 9033 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8727 /* 9038 */ GIR_EraseRootFromParent_Done,
8728 /* 9039 */ // Label 471: @9039
8729 /* 9039 */ GIM_Try, /*On fail goto*//*Label 472*/ GIMT_Encode4(9060), // Rule ID 190 //
8730 /* 9044 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule146Enabled),
8731 /* 9047 */ // MIs[0] dst
8732 /* 9047 */ // No operand predicates
8733 /* 9047 */ // MIs[0] src0
8734 /* 9047 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8735 /* 9051 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT),
8736 /* 9055 */ // MIs[1] cst
8737 /* 9055 */ // No operand predicates
8738 /* 9055 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8739 /* 9057 */ // Combiner Rule #146: constant_fold_fabs
8740 /* 9057 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
8741 /* 9060 */ // Label 472: @9060
8742 /* 9060 */ GIM_Try, /*On fail goto*//*Label 473*/ GIMT_Encode4(9088), // Rule ID 299 //
8743 /* 9065 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule192Enabled),
8744 /* 9068 */ // MIs[0] dst
8745 /* 9068 */ // No operand predicates
8746 /* 9068 */ // MIs[0] tmp
8747 /* 9068 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8748 /* 9072 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FNEG),
8749 /* 9076 */ // MIs[1] x
8750 /* 9076 */ // No operand predicates
8751 /* 9076 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8752 /* 9078 */ // Combiner Rule #192: fabs_fneg_fold
8753 /* 9078 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FABS),
8754 /* 9081 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
8755 /* 9083 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
8756 /* 9087 */ GIR_EraseRootFromParent_Done,
8757 /* 9088 */ // Label 473: @9088
8758 /* 9088 */ GIM_Try, /*On fail goto*//*Label 474*/ GIMT_Encode4(9109), // Rule ID 443 //
8759 /* 9093 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule271Enabled),
8760 /* 9096 */ // MIs[0] dst
8761 /* 9096 */ // No operand predicates
8762 /* 9096 */ // MIs[0] round
8763 /* 9096 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8764 /* 9100 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FPTRUNC),
8765 /* 9104 */ // MIs[1] src
8766 /* 9104 */ // No operand predicates
8767 /* 9104 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8768 /* 9106 */ // Combiner Rule #271: fold_fabs_fptrunc
8769 /* 9106 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner163),
8770 /* 9109 */ // Label 474: @9109
8771 /* 9109 */ GIM_Reject,
8772 /* 9110 */ // Label 81: @9110
8773 /* 9110 */ GIM_Try, /*On fail goto*//*Label 475*/ GIMT_Encode4(9121), // Rule ID 279 //
8774 /* 9115 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule188Enabled),
8775 /* 9118 */ // MIs[0] d
8776 /* 9118 */ // No operand predicates
8777 /* 9118 */ // MIs[0] mi.src0
8778 /* 9118 */ // No operand predicates
8779 /* 9118 */ // MIs[0] mi.src1
8780 /* 9118 */ // No operand predicates
8781 /* 9118 */ // Combiner Rule #188: constant_fold_fp_binop @ [mi[5]]
8782 /* 9118 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner104),
8783 /* 9121 */ // Label 475: @9121
8784 /* 9121 */ GIM_Reject,
8785 /* 9122 */ // Label 82: @9122
8786 /* 9122 */ GIM_Try, /*On fail goto*//*Label 476*/ GIMT_Encode4(9151), // Rule ID 26 //
8787 /* 9127 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule24Enabled),
8788 /* 9130 */ // MIs[0] dst
8789 /* 9130 */ // No operand predicates
8790 /* 9130 */ // MIs[0] src
8791 /* 9130 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8792 /* 9134 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCANONICALIZE),
8793 /* 9138 */ // MIs[1] __idempotent_prop_match_0.x
8794 /* 9138 */ // No operand predicates
8795 /* 9138 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8796 /* 9143 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8797 /* 9145 */ // Combiner Rule #24: idempotent_prop @ [__idempotent_prop_match_0[2]]
8798 /* 9145 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8799 /* 9150 */ GIR_EraseRootFromParent_Done,
8800 /* 9151 */ // Label 476: @9151
8801 /* 9151 */ GIM_Reject,
8802 /* 9152 */ // Label 83: @9152
8803 /* 9152 */ GIM_Try, /*On fail goto*//*Label 477*/ GIMT_Encode4(9163), // Rule ID 214 //
8804 /* 9157 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule165Enabled),
8805 /* 9160 */ // Combiner Rule #165: combine_minmax_nan; wip_match_opcode 'G_FMINNUM'
8806 /* 9160 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner87),
8807 /* 9163 */ // Label 477: @9163
8808 /* 9163 */ GIM_Try, /*On fail goto*//*Label 478*/ GIMT_Encode4(9174), // Rule ID 338 //
8809 /* 9168 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
8810 /* 9171 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_FMINNUM'
8811 /* 9171 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
8812 /* 9174 */ // Label 478: @9174
8813 /* 9174 */ GIM_Try, /*On fail goto*//*Label 479*/ GIMT_Encode4(9185), // Rule ID 376 //
8814 /* 9179 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule217Enabled),
8815 /* 9182 */ // Combiner Rule #217: commute_fp_constant_to_rhs; wip_match_opcode 'G_FMINNUM'
8816 /* 9182 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner130),
8817 /* 9185 */ // Label 479: @9185
8818 /* 9185 */ GIM_Try, /*On fail goto*//*Label 480*/ GIMT_Encode4(9196), // Rule ID 280 //
8819 /* 9190 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule188Enabled),
8820 /* 9193 */ // MIs[0] d
8821 /* 9193 */ // No operand predicates
8822 /* 9193 */ // MIs[0] mi.src0
8823 /* 9193 */ // No operand predicates
8824 /* 9193 */ // MIs[0] mi.src1
8825 /* 9193 */ // No operand predicates
8826 /* 9193 */ // Combiner Rule #188: constant_fold_fp_binop @ [mi[6]]
8827 /* 9193 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner104),
8828 /* 9196 */ // Label 480: @9196
8829 /* 9196 */ GIM_Reject,
8830 /* 9197 */ // Label 84: @9197
8831 /* 9197 */ GIM_Try, /*On fail goto*//*Label 481*/ GIMT_Encode4(9208), // Rule ID 215 //
8832 /* 9202 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule165Enabled),
8833 /* 9205 */ // Combiner Rule #165: combine_minmax_nan; wip_match_opcode 'G_FMAXNUM'
8834 /* 9205 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner87),
8835 /* 9208 */ // Label 481: @9208
8836 /* 9208 */ GIM_Try, /*On fail goto*//*Label 482*/ GIMT_Encode4(9219), // Rule ID 339 //
8837 /* 9213 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
8838 /* 9216 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_FMAXNUM'
8839 /* 9216 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
8840 /* 9219 */ // Label 482: @9219
8841 /* 9219 */ GIM_Try, /*On fail goto*//*Label 483*/ GIMT_Encode4(9230), // Rule ID 377 //
8842 /* 9224 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule217Enabled),
8843 /* 9227 */ // Combiner Rule #217: commute_fp_constant_to_rhs; wip_match_opcode 'G_FMAXNUM'
8844 /* 9227 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner130),
8845 /* 9230 */ // Label 483: @9230
8846 /* 9230 */ GIM_Try, /*On fail goto*//*Label 484*/ GIMT_Encode4(9241), // Rule ID 281 //
8847 /* 9235 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule188Enabled),
8848 /* 9238 */ // MIs[0] d
8849 /* 9238 */ // No operand predicates
8850 /* 9238 */ // MIs[0] mi.src0
8851 /* 9238 */ // No operand predicates
8852 /* 9238 */ // MIs[0] mi.src1
8853 /* 9238 */ // No operand predicates
8854 /* 9238 */ // Combiner Rule #188: constant_fold_fp_binop @ [mi[7]]
8855 /* 9238 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner104),
8856 /* 9241 */ // Label 484: @9241
8857 /* 9241 */ GIM_Reject,
8858 /* 9242 */ // Label 85: @9242
8859 /* 9242 */ GIM_Try, /*On fail goto*//*Label 485*/ GIMT_Encode4(9253), // Rule ID 378 //
8860 /* 9247 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule217Enabled),
8861 /* 9250 */ // Combiner Rule #217: commute_fp_constant_to_rhs; wip_match_opcode 'G_FMINNUM_IEEE'
8862 /* 9250 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner130),
8863 /* 9253 */ // Label 485: @9253
8864 /* 9253 */ GIM_Reject,
8865 /* 9254 */ // Label 86: @9254
8866 /* 9254 */ GIM_Try, /*On fail goto*//*Label 486*/ GIMT_Encode4(9265), // Rule ID 379 //
8867 /* 9259 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule217Enabled),
8868 /* 9262 */ // Combiner Rule #217: commute_fp_constant_to_rhs; wip_match_opcode 'G_FMAXNUM_IEEE'
8869 /* 9262 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner130),
8870 /* 9265 */ // Label 486: @9265
8871 /* 9265 */ GIM_Reject,
8872 /* 9266 */ // Label 87: @9266
8873 /* 9266 */ GIM_Try, /*On fail goto*//*Label 487*/ GIMT_Encode4(9277), // Rule ID 216 //
8874 /* 9271 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule165Enabled),
8875 /* 9274 */ // Combiner Rule #165: combine_minmax_nan; wip_match_opcode 'G_FMINIMUM'
8876 /* 9274 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner87),
8877 /* 9277 */ // Label 487: @9277
8878 /* 9277 */ GIM_Try, /*On fail goto*//*Label 488*/ GIMT_Encode4(9288), // Rule ID 340 //
8879 /* 9282 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
8880 /* 9285 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_FMINIMUM'
8881 /* 9285 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
8882 /* 9288 */ // Label 488: @9288
8883 /* 9288 */ GIM_Try, /*On fail goto*//*Label 489*/ GIMT_Encode4(9299), // Rule ID 380 //
8884 /* 9293 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule217Enabled),
8885 /* 9296 */ // Combiner Rule #217: commute_fp_constant_to_rhs; wip_match_opcode 'G_FMINIMUM'
8886 /* 9296 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner130),
8887 /* 9299 */ // Label 489: @9299
8888 /* 9299 */ GIM_Try, /*On fail goto*//*Label 490*/ GIMT_Encode4(9310), // Rule ID 282 //
8889 /* 9304 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule188Enabled),
8890 /* 9307 */ // MIs[0] d
8891 /* 9307 */ // No operand predicates
8892 /* 9307 */ // MIs[0] mi.src0
8893 /* 9307 */ // No operand predicates
8894 /* 9307 */ // MIs[0] mi.src1
8895 /* 9307 */ // No operand predicates
8896 /* 9307 */ // Combiner Rule #188: constant_fold_fp_binop @ [mi[8]]
8897 /* 9307 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner104),
8898 /* 9310 */ // Label 490: @9310
8899 /* 9310 */ GIM_Reject,
8900 /* 9311 */ // Label 88: @9311
8901 /* 9311 */ GIM_Try, /*On fail goto*//*Label 491*/ GIMT_Encode4(9322), // Rule ID 217 //
8902 /* 9316 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule165Enabled),
8903 /* 9319 */ // Combiner Rule #165: combine_minmax_nan; wip_match_opcode 'G_FMAXIMUM'
8904 /* 9319 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner87),
8905 /* 9322 */ // Label 491: @9322
8906 /* 9322 */ GIM_Try, /*On fail goto*//*Label 492*/ GIMT_Encode4(9333), // Rule ID 341 //
8907 /* 9327 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
8908 /* 9330 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_FMAXIMUM'
8909 /* 9330 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
8910 /* 9333 */ // Label 492: @9333
8911 /* 9333 */ GIM_Try, /*On fail goto*//*Label 493*/ GIMT_Encode4(9344), // Rule ID 381 //
8912 /* 9338 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule217Enabled),
8913 /* 9341 */ // Combiner Rule #217: commute_fp_constant_to_rhs; wip_match_opcode 'G_FMAXIMUM'
8914 /* 9341 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner130),
8915 /* 9344 */ // Label 493: @9344
8916 /* 9344 */ GIM_Try, /*On fail goto*//*Label 494*/ GIMT_Encode4(9355), // Rule ID 283 //
8917 /* 9349 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule188Enabled),
8918 /* 9352 */ // MIs[0] d
8919 /* 9352 */ // No operand predicates
8920 /* 9352 */ // MIs[0] mi.src0
8921 /* 9352 */ // No operand predicates
8922 /* 9352 */ // MIs[0] mi.src1
8923 /* 9352 */ // No operand predicates
8924 /* 9352 */ // Combiner Rule #188: constant_fold_fp_binop @ [mi[9]]
8925 /* 9352 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner104),
8926 /* 9355 */ // Label 494: @9355
8927 /* 9355 */ GIM_Reject,
8928 /* 9356 */ // Label 89: @9356
8929 /* 9356 */ GIM_Try, /*On fail goto*//*Label 495*/ GIMT_Encode4(9367), // Rule ID 284 //
8930 /* 9361 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule188Enabled),
8931 /* 9364 */ // MIs[0] d
8932 /* 9364 */ // No operand predicates
8933 /* 9364 */ // MIs[0] mi.src0
8934 /* 9364 */ // No operand predicates
8935 /* 9364 */ // MIs[0] mi.src1
8936 /* 9364 */ // No operand predicates
8937 /* 9364 */ // Combiner Rule #188: constant_fold_fp_binop @ [mi[10]]
8938 /* 9364 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner104),
8939 /* 9367 */ // Label 495: @9367
8940 /* 9367 */ GIM_Reject,
8941 /* 9368 */ // Label 90: @9368
8942 /* 9368 */ GIM_Try, /*On fail goto*//*Label 496*/ GIMT_Encode4(9379), // Rule ID 285 //
8943 /* 9373 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule188Enabled),
8944 /* 9376 */ // MIs[0] d
8945 /* 9376 */ // No operand predicates
8946 /* 9376 */ // MIs[0] mi.src0
8947 /* 9376 */ // No operand predicates
8948 /* 9376 */ // MIs[0] mi.src1
8949 /* 9376 */ // No operand predicates
8950 /* 9376 */ // Combiner Rule #188: constant_fold_fp_binop @ [mi[11]]
8951 /* 9376 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner104),
8952 /* 9379 */ // Label 496: @9379
8953 /* 9379 */ GIM_Reject,
8954 /* 9380 */ // Label 91: @9380
8955 /* 9380 */ GIM_Try, /*On fail goto*//*Label 497*/ GIMT_Encode4(9391), // Rule ID 159 //
8956 /* 9385 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule115Enabled),
8957 /* 9388 */ // Combiner Rule #115: reassoc_ptradd; wip_match_opcode 'G_PTR_ADD'
8958 /* 9388 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner56),
8959 /* 9391 */ // Label 497: @9391
8960 /* 9391 */ GIM_Try, /*On fail goto*//*Label 498*/ GIMT_Encode4(9402), // Rule ID 161 //
8961 /* 9396 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule117Enabled),
8962 /* 9399 */ // Combiner Rule #117: ptr_add_immed_chain; wip_match_opcode 'G_PTR_ADD'
8963 /* 9399 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner58),
8964 /* 9402 */ // Label 498: @9402
8965 /* 9402 */ GIM_Try, /*On fail goto*//*Label 499*/ GIMT_Encode4(9413), // Rule ID 204 //
8966 /* 9407 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule160Enabled),
8967 /* 9410 */ // Combiner Rule #160: const_ptradd_to_i2p; wip_match_opcode 'G_PTR_ADD'
8968 /* 9410 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner82),
8969 /* 9413 */ // Label 499: @9413
8970 /* 9413 */ GIM_Try, /*On fail goto*//*Label 500*/ GIMT_Encode4(9424), // Rule ID 220 //
8971 /* 9418 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule168Enabled),
8972 /* 9421 */ // Combiner Rule #168: ptr_add_with_zero; wip_match_opcode 'G_PTR_ADD'
8973 /* 9421 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner90),
8974 /* 9424 */ // Label 500: @9424
8975 /* 9424 */ GIM_Try, /*On fail goto*//*Label 501*/ GIMT_Encode4(9435), // Rule ID 257 //
8976 /* 9429 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled),
8977 /* 9432 */ // Combiner Rule #187: constant_fold_binop; wip_match_opcode 'G_PTR_ADD'
8978 /* 9432 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103),
8979 /* 9435 */ // Label 501: @9435
8980 /* 9435 */ GIM_Try, /*On fail goto*//*Label 502*/ GIMT_Encode4(9446), // Rule ID 318 //
8981 /* 9440 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
8982 /* 9443 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_PTR_ADD'
8983 /* 9443 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
8984 /* 9446 */ // Label 502: @9446
8985 /* 9446 */ GIM_Try, /*On fail goto*//*Label 503*/ GIMT_Encode4(9469), // Rule ID 117 //
8986 /* 9451 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled),
8987 /* 9454 */ // MIs[0] dst
8988 /* 9454 */ // No operand predicates
8989 /* 9454 */ // MIs[0] lhs
8990 /* 9454 */ // No operand predicates
8991 /* 9454 */ // MIs[0] Operand 2
8992 /* 9454 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
8993 /* 9458 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8994 /* 9463 */ // Combiner Rule #90: right_identity_zero @ [__right_identity_zero_match_0[7]]
8995 /* 9463 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8996 /* 9468 */ GIR_EraseRootFromParent_Done,
8997 /* 9469 */ // Label 503: @9469
8998 /* 9469 */ GIM_Reject,
8999 /* 9470 */ // Label 92: @9470
9000 /* 9470 */ GIM_Try, /*On fail goto*//*Label 504*/ GIMT_Encode4(9481), // Rule ID 270 //
9001 /* 9475 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled),
9002 /* 9478 */ // Combiner Rule #187: constant_fold_binop; wip_match_opcode 'G_SMIN'
9003 /* 9478 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103),
9004 /* 9481 */ // Label 504: @9481
9005 /* 9481 */ GIM_Try, /*On fail goto*//*Label 505*/ GIMT_Encode4(9492), // Rule ID 329 //
9006 /* 9486 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
9007 /* 9489 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_SMIN'
9008 /* 9489 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
9009 /* 9492 */ // Label 505: @9492
9010 /* 9492 */ GIM_Try, /*On fail goto*//*Label 506*/ GIMT_Encode4(9503), // Rule ID 358 //
9011 /* 9497 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
9012 /* 9500 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_SMIN'
9013 /* 9500 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129),
9014 /* 9503 */ // Label 506: @9503
9015 /* 9503 */ GIM_Reject,
9016 /* 9504 */ // Label 93: @9504
9017 /* 9504 */ GIM_Try, /*On fail goto*//*Label 507*/ GIMT_Encode4(9515), // Rule ID 271 //
9018 /* 9509 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled),
9019 /* 9512 */ // Combiner Rule #187: constant_fold_binop; wip_match_opcode 'G_SMAX'
9020 /* 9512 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103),
9021 /* 9515 */ // Label 507: @9515
9022 /* 9515 */ GIM_Try, /*On fail goto*//*Label 508*/ GIMT_Encode4(9526), // Rule ID 330 //
9023 /* 9520 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
9024 /* 9523 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_SMAX'
9025 /* 9523 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
9026 /* 9526 */ // Label 508: @9526
9027 /* 9526 */ GIM_Try, /*On fail goto*//*Label 509*/ GIMT_Encode4(9537), // Rule ID 359 //
9028 /* 9531 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
9029 /* 9534 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_SMAX'
9030 /* 9534 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129),
9031 /* 9537 */ // Label 509: @9537
9032 /* 9537 */ GIM_Reject,
9033 /* 9538 */ // Label 94: @9538
9034 /* 9538 */ GIM_Try, /*On fail goto*//*Label 510*/ GIMT_Encode4(9549), // Rule ID 272 //
9035 /* 9543 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled),
9036 /* 9546 */ // Combiner Rule #187: constant_fold_binop; wip_match_opcode 'G_UMIN'
9037 /* 9546 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103),
9038 /* 9549 */ // Label 510: @9549
9039 /* 9549 */ GIM_Try, /*On fail goto*//*Label 511*/ GIMT_Encode4(9560), // Rule ID 331 //
9040 /* 9554 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
9041 /* 9557 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_UMIN'
9042 /* 9557 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
9043 /* 9560 */ // Label 511: @9560
9044 /* 9560 */ GIM_Try, /*On fail goto*//*Label 512*/ GIMT_Encode4(9571), // Rule ID 360 //
9045 /* 9565 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
9046 /* 9568 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_UMIN'
9047 /* 9568 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129),
9048 /* 9571 */ // Label 512: @9571
9049 /* 9571 */ GIM_Reject,
9050 /* 9572 */ // Label 95: @9572
9051 /* 9572 */ GIM_Try, /*On fail goto*//*Label 513*/ GIMT_Encode4(9583), // Rule ID 273 //
9052 /* 9577 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled),
9053 /* 9580 */ // Combiner Rule #187: constant_fold_binop; wip_match_opcode 'G_UMAX'
9054 /* 9580 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103),
9055 /* 9583 */ // Label 513: @9583
9056 /* 9583 */ GIM_Try, /*On fail goto*//*Label 514*/ GIMT_Encode4(9594), // Rule ID 332 //
9057 /* 9588 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
9058 /* 9591 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_UMAX'
9059 /* 9591 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
9060 /* 9594 */ // Label 514: @9594
9061 /* 9594 */ GIM_Try, /*On fail goto*//*Label 515*/ GIMT_Encode4(9605), // Rule ID 361 //
9062 /* 9599 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
9063 /* 9602 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_UMAX'
9064 /* 9602 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129),
9065 /* 9605 */ // Label 515: @9605
9066 /* 9605 */ GIM_Reject,
9067 /* 9606 */ // Label 96: @9606
9068 /* 9606 */ GIM_Try, /*On fail goto*//*Label 516*/ GIMT_Encode4(9617), // Rule ID 92 //
9069 /* 9611 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule82Enabled),
9070 /* 9614 */ // Combiner Rule #82: unary_undef_to_zero; wip_match_opcode 'G_ABS'
9071 /* 9614 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner36),
9072 /* 9617 */ // Label 516: @9617
9073 /* 9617 */ GIM_Try, /*On fail goto*//*Label 517*/ GIMT_Encode4(9628), // Rule ID 296 //
9074 /* 9622 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule191Enabled),
9075 /* 9625 */ // MIs[0] dst
9076 /* 9625 */ // No operand predicates
9077 /* 9625 */ // MIs[0] mi.src
9078 /* 9625 */ // No operand predicates
9079 /* 9625 */ // Combiner Rule #191: constant_fold_unary_int_op @ [mi[5]]
9080 /* 9625 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner107),
9081 /* 9628 */ // Label 517: @9628
9082 /* 9628 */ GIM_Reject,
9083 /* 9629 */ // Label 97: @9629
9084 /* 9629 */ GIM_Try, /*On fail goto*//*Label 518*/ GIMT_Encode4(9640), // Rule ID 188 //
9085 /* 9634 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule144Enabled),
9086 /* 9637 */ // Combiner Rule #144: opt_brcond_by_inverting_cond; wip_match_opcode 'G_BR'
9087 /* 9637 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner79),
9088 /* 9640 */ // Label 518: @9640
9089 /* 9640 */ GIM_Reject,
9090 /* 9641 */ // Label 98: @9641
9091 /* 9641 */ GIM_Try, /*On fail goto*//*Label 519*/ GIMT_Encode4(9652), // Rule ID 32 //
9092 /* 9646 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule30Enabled),
9093 /* 9649 */ // Combiner Rule #30: insert_vector_elt_oob; wip_match_opcode 'G_INSERT_VECTOR_ELT'
9094 /* 9649 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner10),
9095 /* 9652 */ // Label 519: @9652
9096 /* 9652 */ GIM_Try, /*On fail goto*//*Label 520*/ GIMT_Encode4(9663), // Rule ID 73 //
9097 /* 9657 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule71Enabled),
9098 /* 9660 */ // Combiner Rule #71: combine_insert_vec_elts_build_vector; wip_match_opcode 'G_INSERT_VECTOR_ELT'
9099 /* 9660 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner27),
9100 /* 9663 */ // Label 520: @9663
9101 /* 9663 */ GIM_Try, /*On fail goto*//*Label 521*/ GIMT_Encode4(9674), // Rule ID 107 //
9102 /* 9668 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule88Enabled),
9103 /* 9671 */ // Combiner Rule #88: insert_extract_vec_elt_out_of_bounds; wip_match_opcode 'G_INSERT_VECTOR_ELT'
9104 /* 9671 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner43),
9105 /* 9674 */ // Label 521: @9674
9106 /* 9674 */ GIM_Try, /*On fail goto*//*Label 522*/ GIMT_Encode4(9713), // Rule ID 44 //
9107 /* 9679 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule42Enabled),
9108 /* 9682 */ // MIs[0] root
9109 /* 9682 */ // No operand predicates
9110 /* 9682 */ // MIs[0] src
9111 /* 9682 */ // No operand predicates
9112 /* 9682 */ // MIs[0] elt
9113 /* 9682 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
9114 /* 9686 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_EXTRACT_VECTOR_ELT),
9115 /* 9690 */ // MIs[1] src
9116 /* 9690 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/1, /*OpIdx*/1, /*OtherMI*/0, /*OtherOpIdx*/1,
9117 /* 9695 */ // MIs[1] idx
9118 /* 9695 */ // No operand predicates
9119 /* 9695 */ // MIs[0] idx
9120 /* 9695 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/3, /*OtherMI*/1, /*OtherOpIdx*/2,
9121 /* 9700 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9122 /* 9705 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9123 /* 9707 */ // Combiner Rule #42: insert_vector_element_extract_vector_element
9124 /* 9707 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9125 /* 9712 */ GIR_EraseRootFromParent_Done,
9126 /* 9713 */ // Label 522: @9713
9127 /* 9713 */ GIM_Try, /*On fail goto*//*Label 523*/ GIMT_Encode4(9746), // Rule ID 30 //
9128 /* 9718 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule28Enabled),
9129 /* 9721 */ // MIs[0] root
9130 /* 9721 */ // No operand predicates
9131 /* 9721 */ // MIs[0] src
9132 /* 9721 */ // No operand predicates
9133 /* 9721 */ // MIs[0] elt
9134 /* 9721 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
9135 /* 9725 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
9136 /* 9729 */ // MIs[0] idx
9137 /* 9729 */ // No operand predicates
9138 /* 9729 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner2),
9139 /* 9733 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9140 /* 9738 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9141 /* 9740 */ // Combiner Rule #28: insert_vector_element_elt_undef
9142 /* 9740 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9143 /* 9745 */ GIR_EraseRootFromParent_Done,
9144 /* 9746 */ // Label 523: @9746
9145 /* 9746 */ GIM_Try, /*On fail goto*//*Label 524*/ GIMT_Encode4(9770), // Rule ID 29 //
9146 /* 9751 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule27Enabled),
9147 /* 9754 */ // MIs[0] root
9148 /* 9754 */ // No operand predicates
9149 /* 9754 */ // MIs[0] src
9150 /* 9754 */ // No operand predicates
9151 /* 9754 */ // MIs[0] elt
9152 /* 9754 */ // No operand predicates
9153 /* 9754 */ // MIs[0] idx
9154 /* 9754 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/3, // MIs[1]
9155 /* 9758 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
9156 /* 9762 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9157 /* 9764 */ // Combiner Rule #27: insert_vector_element_idx_undef
9158 /* 9764 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
9159 /* 9767 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
9160 /* 9769 */ GIR_EraseRootFromParent_Done,
9161 /* 9770 */ // Label 524: @9770
9162 /* 9770 */ GIM_Reject,
9163 /* 9771 */ // Label 99: @9771
9164 /* 9771 */ GIM_Try, /*On fail goto*//*Label 525*/ GIMT_Encode4(9782), // Rule ID 31 //
9165 /* 9776 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule29Enabled),
9166 /* 9779 */ // Combiner Rule #29: match_extract_of_element; wip_match_opcode 'G_EXTRACT_VECTOR_ELT'
9167 /* 9779 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner9),
9168 /* 9782 */ // Label 525: @9782
9169 /* 9782 */ GIM_Try, /*On fail goto*//*Label 526*/ GIMT_Encode4(9793), // Rule ID 74 //
9170 /* 9787 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule72Enabled),
9171 /* 9790 */ // Combiner Rule #72: extract_vec_elt_build_vec; wip_match_opcode 'G_EXTRACT_VECTOR_ELT'
9172 /* 9790 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner28),
9173 /* 9793 */ // Label 526: @9793
9174 /* 9793 */ GIM_Try, /*On fail goto*//*Label 527*/ GIMT_Encode4(9804), // Rule ID 80 //
9175 /* 9798 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule76Enabled),
9176 /* 9801 */ // Combiner Rule #76: combine_extracted_vector_load; wip_match_opcode 'G_EXTRACT_VECTOR_ELT'
9177 /* 9801 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner32),
9178 /* 9804 */ // Label 527: @9804
9179 /* 9804 */ GIM_Try, /*On fail goto*//*Label 528*/ GIMT_Encode4(9815), // Rule ID 108 //
9180 /* 9809 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule88Enabled),
9181 /* 9812 */ // Combiner Rule #88: insert_extract_vec_elt_out_of_bounds; wip_match_opcode 'G_EXTRACT_VECTOR_ELT'
9182 /* 9812 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner43),
9183 /* 9815 */ // Label 528: @9815
9184 /* 9815 */ GIM_Try, /*On fail goto*//*Label 529*/ GIMT_Encode4(9839), // Rule ID 42 //
9185 /* 9820 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule40Enabled),
9186 /* 9823 */ // MIs[0] root
9187 /* 9823 */ // No operand predicates
9188 /* 9823 */ // MIs[0] src
9189 /* 9823 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9190 /* 9827 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR_TRUNC),
9191 /* 9831 */ GIM_CheckNumOperands, /*MI*/1, /*Expected*/9,
9192 /* 9834 */ // MIs[1] x
9193 /* 9834 */ // No operand predicates
9194 /* 9834 */ // MIs[1] y
9195 /* 9834 */ // No operand predicates
9196 /* 9834 */ // MIs[1] z
9197 /* 9834 */ // No operand predicates
9198 /* 9834 */ // MIs[1] a
9199 /* 9834 */ // No operand predicates
9200 /* 9834 */ // MIs[1] b
9201 /* 9834 */ // No operand predicates
9202 /* 9834 */ // MIs[1] c
9203 /* 9834 */ // No operand predicates
9204 /* 9834 */ // MIs[1] d
9205 /* 9834 */ // No operand predicates
9206 /* 9834 */ // MIs[1] e
9207 /* 9834 */ // No operand predicates
9208 /* 9834 */ // MIs[0] idx
9209 /* 9834 */ // No operand predicates
9210 /* 9834 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9211 /* 9836 */ // Combiner Rule #40: extract_vector_element_build_vector_trunc8
9212 /* 9836 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner13),
9213 /* 9839 */ // Label 529: @9839
9214 /* 9839 */ GIM_Try, /*On fail goto*//*Label 530*/ GIMT_Encode4(9863), // Rule ID 41 //
9215 /* 9844 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule39Enabled),
9216 /* 9847 */ // MIs[0] root
9217 /* 9847 */ // No operand predicates
9218 /* 9847 */ // MIs[0] src
9219 /* 9847 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9220 /* 9851 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR_TRUNC),
9221 /* 9855 */ GIM_CheckNumOperands, /*MI*/1, /*Expected*/8,
9222 /* 9858 */ // MIs[1] x
9223 /* 9858 */ // No operand predicates
9224 /* 9858 */ // MIs[1] y
9225 /* 9858 */ // No operand predicates
9226 /* 9858 */ // MIs[1] z
9227 /* 9858 */ // No operand predicates
9228 /* 9858 */ // MIs[1] a
9229 /* 9858 */ // No operand predicates
9230 /* 9858 */ // MIs[1] b
9231 /* 9858 */ // No operand predicates
9232 /* 9858 */ // MIs[1] c
9233 /* 9858 */ // No operand predicates
9234 /* 9858 */ // MIs[1] d
9235 /* 9858 */ // No operand predicates
9236 /* 9858 */ // MIs[0] idx
9237 /* 9858 */ // No operand predicates
9238 /* 9858 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9239 /* 9860 */ // Combiner Rule #39: extract_vector_element_build_vector_trunc7
9240 /* 9860 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner13),
9241 /* 9863 */ // Label 530: @9863
9242 /* 9863 */ GIM_Try, /*On fail goto*//*Label 531*/ GIMT_Encode4(9887), // Rule ID 40 //
9243 /* 9868 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule38Enabled),
9244 /* 9871 */ // MIs[0] root
9245 /* 9871 */ // No operand predicates
9246 /* 9871 */ // MIs[0] src
9247 /* 9871 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9248 /* 9875 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR_TRUNC),
9249 /* 9879 */ GIM_CheckNumOperands, /*MI*/1, /*Expected*/7,
9250 /* 9882 */ // MIs[1] x
9251 /* 9882 */ // No operand predicates
9252 /* 9882 */ // MIs[1] y
9253 /* 9882 */ // No operand predicates
9254 /* 9882 */ // MIs[1] z
9255 /* 9882 */ // No operand predicates
9256 /* 9882 */ // MIs[1] a
9257 /* 9882 */ // No operand predicates
9258 /* 9882 */ // MIs[1] b
9259 /* 9882 */ // No operand predicates
9260 /* 9882 */ // MIs[1] c
9261 /* 9882 */ // No operand predicates
9262 /* 9882 */ // MIs[0] idx
9263 /* 9882 */ // No operand predicates
9264 /* 9882 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9265 /* 9884 */ // Combiner Rule #38: extract_vector_element_build_vector_trunc6
9266 /* 9884 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner13),
9267 /* 9887 */ // Label 531: @9887
9268 /* 9887 */ GIM_Try, /*On fail goto*//*Label 532*/ GIMT_Encode4(9911), // Rule ID 39 //
9269 /* 9892 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule37Enabled),
9270 /* 9895 */ // MIs[0] root
9271 /* 9895 */ // No operand predicates
9272 /* 9895 */ // MIs[0] src
9273 /* 9895 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9274 /* 9899 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR_TRUNC),
9275 /* 9903 */ GIM_CheckNumOperands, /*MI*/1, /*Expected*/6,
9276 /* 9906 */ // MIs[1] x
9277 /* 9906 */ // No operand predicates
9278 /* 9906 */ // MIs[1] y
9279 /* 9906 */ // No operand predicates
9280 /* 9906 */ // MIs[1] z
9281 /* 9906 */ // No operand predicates
9282 /* 9906 */ // MIs[1] a
9283 /* 9906 */ // No operand predicates
9284 /* 9906 */ // MIs[1] b
9285 /* 9906 */ // No operand predicates
9286 /* 9906 */ // MIs[0] idx
9287 /* 9906 */ // No operand predicates
9288 /* 9906 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9289 /* 9908 */ // Combiner Rule #37: extract_vector_element_build_vector_trunc5
9290 /* 9908 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner13),
9291 /* 9911 */ // Label 532: @9911
9292 /* 9911 */ GIM_Try, /*On fail goto*//*Label 533*/ GIMT_Encode4(9935), // Rule ID 38 //
9293 /* 9916 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule36Enabled),
9294 /* 9919 */ // MIs[0] root
9295 /* 9919 */ // No operand predicates
9296 /* 9919 */ // MIs[0] src
9297 /* 9919 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9298 /* 9923 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR_TRUNC),
9299 /* 9927 */ GIM_CheckNumOperands, /*MI*/1, /*Expected*/5,
9300 /* 9930 */ // MIs[1] x
9301 /* 9930 */ // No operand predicates
9302 /* 9930 */ // MIs[1] y
9303 /* 9930 */ // No operand predicates
9304 /* 9930 */ // MIs[1] z
9305 /* 9930 */ // No operand predicates
9306 /* 9930 */ // MIs[1] a
9307 /* 9930 */ // No operand predicates
9308 /* 9930 */ // MIs[0] idx
9309 /* 9930 */ // No operand predicates
9310 /* 9930 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9311 /* 9932 */ // Combiner Rule #36: extract_vector_element_build_vector_trunc4
9312 /* 9932 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner13),
9313 /* 9935 */ // Label 533: @9935
9314 /* 9935 */ GIM_Try, /*On fail goto*//*Label 534*/ GIMT_Encode4(9959), // Rule ID 37 //
9315 /* 9940 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule35Enabled),
9316 /* 9943 */ // MIs[0] root
9317 /* 9943 */ // No operand predicates
9318 /* 9943 */ // MIs[0] src
9319 /* 9943 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9320 /* 9947 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR_TRUNC),
9321 /* 9951 */ GIM_CheckNumOperands, /*MI*/1, /*Expected*/4,
9322 /* 9954 */ // MIs[1] x
9323 /* 9954 */ // No operand predicates
9324 /* 9954 */ // MIs[1] y
9325 /* 9954 */ // No operand predicates
9326 /* 9954 */ // MIs[1] z
9327 /* 9954 */ // No operand predicates
9328 /* 9954 */ // MIs[0] idx
9329 /* 9954 */ // No operand predicates
9330 /* 9954 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9331 /* 9956 */ // Combiner Rule #35: extract_vector_element_build_vector_trunc3
9332 /* 9956 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner13),
9333 /* 9959 */ // Label 534: @9959
9334 /* 9959 */ GIM_Try, /*On fail goto*//*Label 535*/ GIMT_Encode4(9993), // Rule ID 33 //
9335 /* 9964 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule31Enabled),
9336 /* 9967 */ // MIs[0] root
9337 /* 9967 */ // No operand predicates
9338 /* 9967 */ // MIs[0] src
9339 /* 9967 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9340 /* 9971 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_INSERT_VECTOR_ELT),
9341 /* 9975 */ // MIs[1] x
9342 /* 9975 */ // No operand predicates
9343 /* 9975 */ // MIs[1] value
9344 /* 9975 */ // No operand predicates
9345 /* 9975 */ // MIs[1] idx
9346 /* 9975 */ // No operand predicates
9347 /* 9975 */ // MIs[0] idx
9348 /* 9975 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/3,
9349 /* 9980 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/2,
9350 /* 9985 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9351 /* 9987 */ // Combiner Rule #31: extract_vector_element_not_const
9352 /* 9987 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/2,
9353 /* 9992 */ GIR_EraseRootFromParent_Done,
9354 /* 9993 */ // Label 535: @9993
9355 /* 9993 */ GIM_Try, /*On fail goto*//*Label 536*/ GIMT_Encode4(10014), // Rule ID 34 //
9356 /* 9998 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule32Enabled),
9357 /* 10001 */ // MIs[0] root
9358 /* 10001 */ // No operand predicates
9359 /* 10001 */ // MIs[0] src
9360 /* 10001 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9361 /* 10005 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_INSERT_VECTOR_ELT),
9362 /* 10009 */ // MIs[1] x
9363 /* 10009 */ // No operand predicates
9364 /* 10009 */ // MIs[1] value
9365 /* 10009 */ // No operand predicates
9366 /* 10009 */ // MIs[1] idx2
9367 /* 10009 */ // No operand predicates
9368 /* 10009 */ // MIs[0] idx1
9369 /* 10009 */ // No operand predicates
9370 /* 10009 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9371 /* 10011 */ // Combiner Rule #32: extract_vector_element_different_indices
9372 /* 10011 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner11),
9373 /* 10014 */ // Label 536: @10014
9374 /* 10014 */ GIM_Try, /*On fail goto*//*Label 537*/ GIMT_Encode4(10043), // Rule ID 43 //
9375 /* 10019 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule41Enabled),
9376 /* 10022 */ // MIs[0] root
9377 /* 10022 */ // No operand predicates
9378 /* 10022 */ // MIs[0] src
9379 /* 10022 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9380 /* 10026 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SHUFFLE_VECTOR),
9381 /* 10030 */ // MIs[1] src1
9382 /* 10030 */ // No operand predicates
9383 /* 10030 */ // MIs[1] src2
9384 /* 10030 */ // No operand predicates
9385 /* 10030 */ // MIs[1] mask
9386 /* 10030 */ // No operand predicates
9387 /* 10030 */ // MIs[0] idx
9388 /* 10030 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
9389 /* 10034 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
9390 /* 10038 */ // MIs[2] imm
9391 /* 10038 */ // No operand predicates
9392 /* 10038 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
9393 /* 10040 */ // Combiner Rule #41: extract_vector_element_shuffle_vector
9394 /* 10040 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner14),
9395 /* 10043 */ // Label 537: @10043
9396 /* 10043 */ GIM_Try, /*On fail goto*//*Label 538*/ GIMT_Encode4(10067), // Rule ID 36 //
9397 /* 10048 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule34Enabled),
9398 /* 10051 */ // MIs[0] root
9399 /* 10051 */ // No operand predicates
9400 /* 10051 */ // MIs[0] src
9401 /* 10051 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9402 /* 10055 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR_TRUNC),
9403 /* 10059 */ GIM_CheckNumOperands, /*MI*/1, /*Expected*/3,
9404 /* 10062 */ // MIs[1] x
9405 /* 10062 */ // No operand predicates
9406 /* 10062 */ // MIs[1] y
9407 /* 10062 */ // No operand predicates
9408 /* 10062 */ // MIs[0] idx
9409 /* 10062 */ // No operand predicates
9410 /* 10062 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9411 /* 10064 */ // Combiner Rule #34: extract_vector_element_build_vector_trunc2
9412 /* 10064 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner13),
9413 /* 10067 */ // Label 538: @10067
9414 /* 10067 */ GIM_Try, /*On fail goto*//*Label 539*/ GIMT_Encode4(10099), // Rule ID 35 //
9415 /* 10072 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule33Enabled),
9416 /* 10075 */ // MIs[0] root
9417 /* 10075 */ // No operand predicates
9418 /* 10075 */ // MIs[0] src
9419 /* 10075 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9420 /* 10079 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR),
9421 /* 10083 */ GIM_CheckNumOperandsGE, /*MI*/1, /*Expected*/2,
9422 /* 10086 */ // MIs[1] unused
9423 /* 10086 */ // No operand predicates
9424 /* 10086 */ // MIs[0] idx
9425 /* 10086 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
9426 /* 10090 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
9427 /* 10094 */ // MIs[2] imm
9428 /* 10094 */ // No operand predicates
9429 /* 10094 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
9430 /* 10096 */ // Combiner Rule #33: extract_vector_element_build_vector
9431 /* 10096 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner12),
9432 /* 10099 */ // Label 539: @10099
9433 /* 10099 */ GIM_Try, /*On fail goto*//*Label 540*/ GIMT_Encode4(10123), // Rule ID 27 //
9434 /* 10104 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule25Enabled),
9435 /* 10107 */ // MIs[0] root
9436 /* 10107 */ // No operand predicates
9437 /* 10107 */ // MIs[0] vector
9438 /* 10107 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9439 /* 10111 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
9440 /* 10115 */ // MIs[0] idx
9441 /* 10115 */ // No operand predicates
9442 /* 10115 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9443 /* 10117 */ // Combiner Rule #25: match_extract_of_element_undef_vector
9444 /* 10117 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
9445 /* 10120 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
9446 /* 10122 */ GIR_EraseRootFromParent_Done,
9447 /* 10123 */ // Label 540: @10123
9448 /* 10123 */ GIM_Try, /*On fail goto*//*Label 541*/ GIMT_Encode4(10147), // Rule ID 28 //
9449 /* 10128 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule26Enabled),
9450 /* 10131 */ // MIs[0] root
9451 /* 10131 */ // No operand predicates
9452 /* 10131 */ // MIs[0] vector
9453 /* 10131 */ // No operand predicates
9454 /* 10131 */ // MIs[0] idx
9455 /* 10131 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
9456 /* 10135 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
9457 /* 10139 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9458 /* 10141 */ // Combiner Rule #26: match_extract_of_element_undef_index
9459 /* 10141 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
9460 /* 10144 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
9461 /* 10146 */ GIR_EraseRootFromParent_Done,
9462 /* 10147 */ // Label 541: @10147
9463 /* 10147 */ GIM_Reject,
9464 /* 10148 */ // Label 100: @10148
9465 /* 10148 */ GIM_Try, /*On fail goto*//*Label 542*/ GIMT_Encode4(10159), // Rule ID 103 //
9466 /* 10153 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule85Enabled),
9467 /* 10156 */ // Combiner Rule #85: propagate_undef_all_ops; wip_match_opcode 'G_SHUFFLE_VECTOR'
9468 /* 10156 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner40),
9469 /* 10159 */ // Label 542: @10159
9470 /* 10159 */ GIM_Try, /*On fail goto*//*Label 543*/ GIMT_Encode4(10170), // Rule ID 105 //
9471 /* 10164 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule86Enabled),
9472 /* 10167 */ // Combiner Rule #86: propagate_undef_shuffle_mask; wip_match_opcode 'G_SHUFFLE_VECTOR'
9473 /* 10167 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner41),
9474 /* 10170 */ // Label 543: @10170
9475 /* 10170 */ GIM_Try, /*On fail goto*//*Label 544*/ GIMT_Encode4(10181), // Rule ID 395 //
9476 /* 10175 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule231Enabled),
9477 /* 10178 */ // Combiner Rule #231: combine_shuffle_concat; wip_match_opcode 'G_SHUFFLE_VECTOR'
9478 /* 10178 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner138),
9479 /* 10181 */ // Label 544: @10181
9480 /* 10181 */ GIM_Try, /*On fail goto*//*Label 545*/ GIMT_Encode4(10192), // Rule ID 397 //
9481 /* 10186 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule233Enabled),
9482 /* 10189 */ // Combiner Rule #233: combine_shuffle_disjoint_mask; wip_match_opcode 'G_SHUFFLE_VECTOR'
9483 /* 10189 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner140),
9484 /* 10192 */ // Label 545: @10192
9485 /* 10192 */ GIM_Try, /*On fail goto*//*Label 546*/ GIMT_Encode4(10203), // Rule ID 444 //
9486 /* 10197 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule272Enabled),
9487 /* 10200 */ // Combiner Rule #272: combine_shuffle_vector; wip_match_opcode 'G_SHUFFLE_VECTOR'
9488 /* 10200 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner164),
9489 /* 10203 */ // Label 546: @10203
9490 /* 10203 */ GIM_Try, /*On fail goto*//*Label 547*/ GIMT_Encode4(10224), // Rule ID 396 //
9491 /* 10208 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule232Enabled),
9492 /* 10211 */ // MIs[0] root
9493 /* 10211 */ // No operand predicates
9494 /* 10211 */ // MIs[0] src1
9495 /* 10211 */ // No operand predicates
9496 /* 10211 */ // MIs[0] undef
9497 /* 10211 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
9498 /* 10215 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
9499 /* 10219 */ // MIs[0] mask
9500 /* 10219 */ // No operand predicates
9501 /* 10219 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9502 /* 10221 */ // Combiner Rule #232: combine_shuffle_undef_rhs
9503 /* 10221 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner139),
9504 /* 10224 */ // Label 547: @10224
9505 /* 10224 */ GIM_Try, /*On fail goto*//*Label 548*/ GIMT_Encode4(10235), // Rule ID 445 //
9506 /* 10229 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule273Enabled),
9507 /* 10232 */ // MIs[0] dst
9508 /* 10232 */ // No operand predicates
9509 /* 10232 */ // MIs[0] src1
9510 /* 10232 */ // No operand predicates
9511 /* 10232 */ // MIs[0] src2
9512 /* 10232 */ // No operand predicates
9513 /* 10232 */ // MIs[0] mask
9514 /* 10232 */ // No operand predicates
9515 /* 10232 */ // Combiner Rule #273: combine_shuffle_vector_to_build_vector
9516 /* 10232 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner165),
9517 /* 10235 */ // Label 548: @10235
9518 /* 10235 */ GIM_Reject,
9519 /* 10236 */ // Label 101: @10236
9520 /* 10236 */ GIM_Try, /*On fail goto*//*Label 549*/ GIMT_Encode4(10247), // Rule ID 293 //
9521 /* 10241 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule191Enabled),
9522 /* 10244 */ // MIs[0] dst
9523 /* 10244 */ // No operand predicates
9524 /* 10244 */ // MIs[0] mi.src
9525 /* 10244 */ // No operand predicates
9526 /* 10244 */ // Combiner Rule #191: constant_fold_unary_int_op @ [mi[2]]
9527 /* 10244 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner107),
9528 /* 10247 */ // Label 549: @10247
9529 /* 10247 */ GIM_Try, /*On fail goto*//*Label 550*/ GIMT_Encode4(10258), // Rule ID 421 //
9530 /* 10252 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule255Enabled),
9531 /* 10255 */ // MIs[0] dst
9532 /* 10255 */ // No operand predicates
9533 /* 10255 */ // MIs[0] src
9534 /* 10255 */ // No operand predicates
9535 /* 10255 */ // Combiner Rule #255: cttz_to_cttz_zero_poison
9536 /* 10255 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner158),
9537 /* 10258 */ // Label 550: @10258
9538 /* 10258 */ GIM_Reject,
9539 /* 10259 */ // Label 102: @10259
9540 /* 10259 */ GIM_Try, /*On fail goto*//*Label 551*/ GIMT_Encode4(10270), // Rule ID 294 //
9541 /* 10264 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule191Enabled),
9542 /* 10267 */ // MIs[0] dst
9543 /* 10267 */ // No operand predicates
9544 /* 10267 */ // MIs[0] mi.src
9545 /* 10267 */ // No operand predicates
9546 /* 10267 */ // Combiner Rule #191: constant_fold_unary_int_op @ [mi[3]]
9547 /* 10267 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner107),
9548 /* 10270 */ // Label 551: @10270
9549 /* 10270 */ GIM_Reject,
9550 /* 10271 */ // Label 103: @10271
9551 /* 10271 */ GIM_Try, /*On fail goto*//*Label 552*/ GIMT_Encode4(10282), // Rule ID 291 //
9552 /* 10276 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule191Enabled),
9553 /* 10279 */ // MIs[0] dst
9554 /* 10279 */ // No operand predicates
9555 /* 10279 */ // MIs[0] mi.src
9556 /* 10279 */ // No operand predicates
9557 /* 10279 */ // Combiner Rule #191: constant_fold_unary_int_op @ [mi[0]]
9558 /* 10279 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner107),
9559 /* 10282 */ // Label 552: @10282
9560 /* 10282 */ GIM_Try, /*On fail goto*//*Label 553*/ GIMT_Encode4(10293), // Rule ID 418 //
9561 /* 10287 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule252Enabled),
9562 /* 10290 */ // MIs[0] dst
9563 /* 10290 */ // No operand predicates
9564 /* 10290 */ // MIs[0] src
9565 /* 10290 */ // No operand predicates
9566 /* 10290 */ // Combiner Rule #252: ctlz_to_ctls
9567 /* 10290 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner157),
9568 /* 10293 */ // Label 553: @10293
9569 /* 10293 */ GIM_Try, /*On fail goto*//*Label 554*/ GIMT_Encode4(10304), // Rule ID 420 //
9570 /* 10298 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule254Enabled),
9571 /* 10301 */ // MIs[0] dst
9572 /* 10301 */ // No operand predicates
9573 /* 10301 */ // MIs[0] src
9574 /* 10301 */ // No operand predicates
9575 /* 10301 */ // Combiner Rule #254: ctlz_to_ctlz_zero_poison
9576 /* 10301 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner158),
9577 /* 10304 */ // Label 554: @10304
9578 /* 10304 */ GIM_Reject,
9579 /* 10305 */ // Label 104: @10305
9580 /* 10305 */ GIM_Try, /*On fail goto*//*Label 555*/ GIMT_Encode4(10316), // Rule ID 292 //
9581 /* 10310 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule191Enabled),
9582 /* 10313 */ // MIs[0] dst
9583 /* 10313 */ // No operand predicates
9584 /* 10313 */ // MIs[0] mi.src
9585 /* 10313 */ // No operand predicates
9586 /* 10313 */ // Combiner Rule #191: constant_fold_unary_int_op @ [mi[1]]
9587 /* 10313 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner107),
9588 /* 10316 */ // Label 555: @10316
9589 /* 10316 */ GIM_Try, /*On fail goto*//*Label 556*/ GIMT_Encode4(10327), // Rule ID 419 //
9590 /* 10321 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule253Enabled),
9591 /* 10324 */ // MIs[0] dst
9592 /* 10324 */ // No operand predicates
9593 /* 10324 */ // MIs[0] src
9594 /* 10324 */ // No operand predicates
9595 /* 10324 */ // Combiner Rule #253: ctlz_zero_poison_to_ctls
9596 /* 10324 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner157),
9597 /* 10327 */ // Label 556: @10327
9598 /* 10327 */ GIM_Reject,
9599 /* 10328 */ // Label 105: @10328
9600 /* 10328 */ GIM_Try, /*On fail goto*//*Label 557*/ GIMT_Encode4(10339), // Rule ID 295 //
9601 /* 10333 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule191Enabled),
9602 /* 10336 */ // MIs[0] dst
9603 /* 10336 */ // No operand predicates
9604 /* 10336 */ // MIs[0] mi.src
9605 /* 10336 */ // No operand predicates
9606 /* 10336 */ // Combiner Rule #191: constant_fold_unary_int_op @ [mi[4]]
9607 /* 10336 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner107),
9608 /* 10339 */ // Label 557: @10339
9609 /* 10339 */ GIM_Reject,
9610 /* 10340 */ // Label 106: @10340
9611 /* 10340 */ GIM_Try, /*On fail goto*//*Label 558*/ GIMT_Encode4(10351), // Rule ID 297 //
9612 /* 10345 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule191Enabled),
9613 /* 10348 */ // MIs[0] dst
9614 /* 10348 */ // No operand predicates
9615 /* 10348 */ // MIs[0] mi.src
9616 /* 10348 */ // No operand predicates
9617 /* 10348 */ // Combiner Rule #191: constant_fold_unary_int_op @ [mi[6]]
9618 /* 10348 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner107),
9619 /* 10351 */ // Label 558: @10351
9620 /* 10351 */ GIM_Reject,
9621 /* 10352 */ // Label 107: @10352
9622 /* 10352 */ GIM_Try, /*On fail goto*//*Label 559*/ GIMT_Encode4(10396), // Rule ID 248 //
9623 /* 10357 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule181Enabled),
9624 /* 10360 */ // MIs[0] d
9625 /* 10360 */ // No operand predicates
9626 /* 10360 */ // MIs[0] src
9627 /* 10360 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9628 /* 10364 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_LSHR),
9629 /* 10368 */ // MIs[1] rev
9630 /* 10368 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
9631 /* 10372 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_BITREVERSE),
9632 /* 10376 */ // MIs[2] val
9633 /* 10376 */ // No operand predicates
9634 /* 10376 */ // MIs[1] amt
9635 /* 10376 */ // No operand predicates
9636 /* 10376 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner14),
9637 /* 10380 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
9638 /* 10382 */ // Combiner Rule #181: bitreverse_lshr
9639 /* 10382 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SHL),
9640 /* 10385 */ GIR_RootToRootCopy, /*OpIdx*/0, // d
9641 /* 10387 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // val
9642 /* 10391 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // amt
9643 /* 10395 */ GIR_EraseRootFromParent_Done,
9644 /* 10396 */ // Label 559: @10396
9645 /* 10396 */ GIM_Try, /*On fail goto*//*Label 560*/ GIMT_Encode4(10440), // Rule ID 247 //
9646 /* 10401 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule180Enabled),
9647 /* 10404 */ // MIs[0] d
9648 /* 10404 */ // No operand predicates
9649 /* 10404 */ // MIs[0] src
9650 /* 10404 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9651 /* 10408 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SHL),
9652 /* 10412 */ // MIs[1] rev
9653 /* 10412 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
9654 /* 10416 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_BITREVERSE),
9655 /* 10420 */ // MIs[2] val
9656 /* 10420 */ // No operand predicates
9657 /* 10420 */ // MIs[1] amt
9658 /* 10420 */ // No operand predicates
9659 /* 10420 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner13),
9660 /* 10424 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
9661 /* 10426 */ // Combiner Rule #180: bitreverse_shl
9662 /* 10426 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_LSHR),
9663 /* 10429 */ GIR_RootToRootCopy, /*OpIdx*/0, // d
9664 /* 10431 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // val
9665 /* 10435 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // amt
9666 /* 10439 */ GIR_EraseRootFromParent_Done,
9667 /* 10440 */ // Label 560: @10440
9668 /* 10440 */ GIM_Try, /*On fail goto*//*Label 561*/ GIMT_Encode4(10451), // Rule ID 298 //
9669 /* 10445 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule191Enabled),
9670 /* 10448 */ // MIs[0] dst
9671 /* 10448 */ // No operand predicates
9672 /* 10448 */ // MIs[0] mi.src
9673 /* 10448 */ // No operand predicates
9674 /* 10448 */ // Combiner Rule #191: constant_fold_unary_int_op @ [mi[7]]
9675 /* 10448 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner107),
9676 /* 10451 */ // Label 561: @10451
9677 /* 10451 */ GIM_Reject,
9678 /* 10452 */ // Label 108: @10452
9679 /* 10452 */ GIM_Try, /*On fail goto*//*Label 562*/ GIMT_Encode4(10473), // Rule ID 195 //
9680 /* 10457 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule151Enabled),
9681 /* 10460 */ // MIs[0] dst
9682 /* 10460 */ // No operand predicates
9683 /* 10460 */ // MIs[0] src0
9684 /* 10460 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9685 /* 10464 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT),
9686 /* 10468 */ // MIs[1] cst
9687 /* 10468 */ // No operand predicates
9688 /* 10468 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9689 /* 10470 */ // Combiner Rule #151: constant_fold_fceil
9690 /* 10470 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
9691 /* 10473 */ // Label 562: @10473
9692 /* 10473 */ GIM_Reject,
9693 /* 10474 */ // Label 109: @10474
9694 /* 10474 */ GIM_Try, /*On fail goto*//*Label 563*/ GIMT_Encode4(10495), // Rule ID 191 //
9695 /* 10479 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule147Enabled),
9696 /* 10482 */ // MIs[0] dst
9697 /* 10482 */ // No operand predicates
9698 /* 10482 */ // MIs[0] src0
9699 /* 10482 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9700 /* 10486 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT),
9701 /* 10490 */ // MIs[1] cst
9702 /* 10490 */ // No operand predicates
9703 /* 10490 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9704 /* 10492 */ // Combiner Rule #147: constant_fold_fsqrt
9705 /* 10492 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
9706 /* 10495 */ // Label 563: @10495
9707 /* 10495 */ GIM_Reject,
9708 /* 10496 */ // Label 110: @10496
9709 /* 10496 */ GIM_Try, /*On fail goto*//*Label 564*/ GIMT_Encode4(10517), // Rule ID 196 //
9710 /* 10501 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule152Enabled),
9711 /* 10504 */ // MIs[0] dst
9712 /* 10504 */ // No operand predicates
9713 /* 10504 */ // MIs[0] src0
9714 /* 10504 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9715 /* 10508 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT),
9716 /* 10512 */ // MIs[1] cst
9717 /* 10512 */ // No operand predicates
9718 /* 10512 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9719 /* 10514 */ // Combiner Rule #152: constant_fold_ffloor
9720 /* 10514 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
9721 /* 10517 */ // Label 564: @10517
9722 /* 10517 */ GIM_Reject,
9723 /* 10518 */ // Label 111: @10518
9724 /* 10518 */ GIM_Try, /*On fail goto*//*Label 565*/ GIMT_Encode4(10539), // Rule ID 200 //
9725 /* 10523 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule156Enabled),
9726 /* 10526 */ // MIs[0] dst
9727 /* 10526 */ // No operand predicates
9728 /* 10526 */ // MIs[0] src0
9729 /* 10526 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9730 /* 10530 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT),
9731 /* 10534 */ // MIs[1] cst
9732 /* 10534 */ // No operand predicates
9733 /* 10534 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9734 /* 10536 */ // Combiner Rule #156: constant_fold_frint
9735 /* 10536 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
9736 /* 10539 */ // Label 565: @10539
9737 /* 10539 */ GIM_Reject,
9738 /* 10540 */ // Label 112: @10540
9739 /* 10540 */ GIM_Try, /*On fail goto*//*Label 566*/ GIMT_Encode4(10561), // Rule ID 201 //
9740 /* 10545 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule157Enabled),
9741 /* 10548 */ // MIs[0] dst
9742 /* 10548 */ // No operand predicates
9743 /* 10548 */ // MIs[0] src0
9744 /* 10548 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9745 /* 10552 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT),
9746 /* 10556 */ // MIs[1] cst
9747 /* 10556 */ // No operand predicates
9748 /* 10556 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9749 /* 10558 */ // Combiner Rule #157: constant_fold_fnearbyint
9750 /* 10558 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
9751 /* 10561 */ // Label 566: @10561
9752 /* 10561 */ GIM_Reject,
9753 /* 10562 */ // Label 113: @10562
9754 /* 10562 */ GIM_Reject,
9755 /* 10563 */ }; // Size: 10563 bytes
9756 return MatchTable0;
9757}
9758#undef GIMT_Encode2
9759#undef GIMT_Encode4
9760#undef GIMT_Encode8
9761
9762
9763#endif // GET_GICOMBINER_IMPL
9764
9765#ifdef GET_GICOMBINER_CONSTRUCTOR_INITS
9766
9767AvailableModuleFeatures(computeAvailableModuleFeatures(&STI)),
9768AvailableFunctionFeatures()
9769
9770#endif // GET_GICOMBINER_CONSTRUCTOR_INITS
9771
9772#ifdef GET_GICOMBINER_CONSTRUCTOR_INITS
9773
9774, State(0),
9775ExecInfo(TypeObjects, NumTypeObjects, FeatureBitsets, ComplexPredicateFns, CustomRenderers)
9776
9777#endif // GET_GICOMBINER_CONSTRUCTOR_INITS
9778
9779