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: // 6 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 252; // "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 228; // "nneg_zext"
76 }
77 break;
78 case 10: // 10 strings to match.
79 switch (RuleIdentifier[0]) {
80 default: break;
81 case 'S': // 2 strings to match.
82 if (memcmp(RuleIdentifier.data()+1, "ub", 2) != 0)
83 break;
84 switch (RuleIdentifier[3]) {
85 default: break;
86 case 'S': // 1 string to match.
87 if (memcmp(RuleIdentifier.data()+4, "maxSub", 6) != 0)
88 break;
89 return 257; // "SubSmaxSub"
90 case 'U': // 1 string to match.
91 if (memcmp(RuleIdentifier.data()+4, "maxSub", 6) != 0)
92 break;
93 return 258; // "SubUmaxSub"
94 }
95 break;
96 case 'i': // 1 string to match.
97 if (memcmp(RuleIdentifier.data()+1, "2p_to_p2i", 9) != 0)
98 break;
99 return 96; // "i2p_to_p2i"
100 case 'm': // 2 strings to match.
101 switch (RuleIdentifier[1]) {
102 default: break;
103 case 'a': // 1 string to match.
104 if (memcmp(RuleIdentifier.data()+2, "tch_ands", 8) != 0)
105 break;
106 return 218; // "match_ands"
107 case 'u': // 1 string to match.
108 if (memcmp(RuleIdentifier.data()+2, "l_to_shl", 8) != 0)
109 break;
110 return 20; // "mul_to_shl"
111 }
112 break;
113 case 'p': // 1 string to match.
114 if (memcmp(RuleIdentifier.data()+1, "2i_to_i2p", 9) != 0)
115 break;
116 return 95; // "p2i_to_i2p"
117 case 's': // 3 strings to match.
118 switch (RuleIdentifier[1]) {
119 default: break;
120 case 'e': // 2 strings to match.
121 switch (RuleIdentifier[2]) {
122 default: break;
123 case 'l': // 1 string to match.
124 if (memcmp(RuleIdentifier.data()+3, "ect_not", 7) != 0)
125 break;
126 return 135; // "select_not"
127 case 'x': // 1 string to match.
128 if (memcmp(RuleIdentifier.data()+3, "t_trunc", 7) != 0)
129 break;
130 return 226; // "sext_trunc"
131 }
132 break;
133 case 'u': // 1 string to match.
134 if (memcmp(RuleIdentifier.data()+2, "b_to_add", 8) != 0)
135 break;
136 return 21; // "sub_to_add"
137 }
138 break;
139 case 'z': // 1 string to match.
140 if (memcmp(RuleIdentifier.data()+1, "ext_trunc", 9) != 0)
141 break;
142 return 227; // "zext_trunc"
143 }
144 break;
145 case 11: // 8 strings to match.
146 switch (RuleIdentifier[0]) {
147 default: break;
148 case 'a': // 1 string to match.
149 if (memcmp(RuleIdentifier.data()+1, "dd_sub_reg", 10) != 0)
150 break;
151 return 101; // "add_sub_reg"
152 case 'm': // 1 string to match.
153 if (memcmp(RuleIdentifier.data()+1, "atch_addos", 10) != 0)
154 break;
155 return 243; // "match_addos"
156 case 's': // 1 string to match.
157 if (memcmp(RuleIdentifier.data()+1, "ub_add_reg", 10) != 0)
158 break;
159 return 213; // "sub_add_reg"
160 case 't': // 4 strings to match.
161 if (memcmp(RuleIdentifier.data()+1, "runc_", 5) != 0)
162 break;
163 switch (RuleIdentifier[6]) {
164 default: break;
165 case 's': // 3 strings to match.
166 switch (RuleIdentifier[7]) {
167 default: break;
168 case 'h': // 1 string to match.
169 if (memcmp(RuleIdentifier.data()+8, "ift", 3) != 0)
170 break;
171 return 142; // "trunc_shift"
172 case 's': // 2 strings to match.
173 if (memcmp(RuleIdentifier.data()+8, "at", 2) != 0)
174 break;
175 switch (RuleIdentifier[10]) {
176 default: break;
177 case 's': // 1 string to match.
178 return 245; // "trunc_ssats"
179 case 'u': // 1 string to match.
180 return 246; // "trunc_ssatu"
181 }
182 break;
183 }
184 break;
185 case 'u': // 1 string to match.
186 if (memcmp(RuleIdentifier.data()+7, "satu", 4) != 0)
187 break;
188 return 247; // "trunc_usatu"
189 }
190 break;
191 case 'u': // 1 string to match.
192 if (memcmp(RuleIdentifier.data()+1, "nmerge_cst", 10) != 0)
193 break;
194 return 236; // "unmerge_cst"
195 }
196 break;
197 case 12: // 12 strings to match.
198 switch (RuleIdentifier[0]) {
199 default: break;
200 case 'A': // 1 string to match.
201 if (memcmp(RuleIdentifier.data()+1, "PlusBMinusB", 11) != 0)
202 break;
203 return 4; // "APlusBMinusB"
204 case 'B': // 1 string to match.
205 if (memcmp(RuleIdentifier.data()+1, "MinusAPlusA", 11) != 0)
206 break;
207 return 5; // "BMinusAPlusA"
208 case 'a': // 1 string to match.
209 if (memcmp(RuleIdentifier.data()+1, "dde_to_addo", 11) != 0)
210 break;
211 return 164; // "adde_to_addo"
212 case 'c': // 1 string to match.
213 if (memcmp(RuleIdentifier.data()+1, "tlz_to_ctls", 11) != 0)
214 break;
215 return 250; // "ctlz_to_ctls"
216 case 'f': // 1 string to match.
217 if (memcmp(RuleIdentifier.data()+1, "sub_to_fneg", 11) != 0)
218 break;
219 return 215; // "fsub_to_fneg"
220 case 'm': // 1 string to match.
221 if (memcmp(RuleIdentifier.data()+1, "ulh_to_lshr", 11) != 0)
222 break;
223 return 193; // "mulh_to_lshr"
224 case 'n': // 1 string to match.
225 if (memcmp(RuleIdentifier.data()+1, "ot_cmp_fold", 11) != 0)
226 break;
227 return 143; // "not_cmp_fold"
228 case 'r': // 1 string to match.
229 if (memcmp(RuleIdentifier.data()+1, "edundant_or", 11) != 0)
230 break;
231 return 138; // "redundant_or"
232 case 's': // 2 strings to match.
233 switch (RuleIdentifier[1]) {
234 default: break;
235 case 'd': // 1 string to match.
236 if (memcmp(RuleIdentifier.data()+2, "iv_by_pow2", 10) != 0)
237 break;
238 return 209; // "sdiv_by_pow2"
239 case 'e': // 1 string to match.
240 if (memcmp(RuleIdentifier.data()+2, "xt_of_sext", 10) != 0)
241 break;
242 return 54; // "sext_of_sext"
243 }
244 break;
245 case 'u': // 1 string to match.
246 if (memcmp(RuleIdentifier.data()+1, "div_by_pow2", 11) != 0)
247 break;
248 return 208; // "udiv_by_pow2"
249 case 'z': // 1 string to match.
250 if (memcmp(RuleIdentifier.data()+1, "ext_of_zext", 11) != 0)
251 break;
252 return 52; // "zext_of_zext"
253 }
254 break;
255 case 13: // 20 strings to match.
256 switch (RuleIdentifier[0]) {
257 default: break;
258 case 'A': // 2 strings to match.
259 if (memcmp(RuleIdentifier.data()+1, "MinusBMinus", 11) != 0)
260 break;
261 switch (RuleIdentifier[12]) {
262 default: break;
263 case 'A': // 1 string to match.
264 return 12; // "AMinusBMinusA"
265 case 'C': // 1 string to match.
266 return 9; // "AMinusBMinusC"
267 }
268 break;
269 case 'a': // 1 string to match.
270 if (memcmp(RuleIdentifier.data()+1, "dd_of_vscale", 12) != 0)
271 break;
272 return 43; // "add_of_vscale"
273 case 'c': // 1 string to match.
274 if (memcmp(RuleIdentifier.data()+1, "ommute_shift", 12) != 0)
275 break;
276 return 182; // "commute_shift"
277 case 'f': // 1 string to match.
278 if (memcmp(RuleIdentifier.data()+1, "oldable_fneg", 12) != 0)
279 break;
280 return 266; // "foldable_fneg"
281 case 'l': // 1 string to match.
282 if (memcmp(RuleIdentifier.data()+1, "oad_and_mask", 12) != 0)
283 break;
284 return 75; // "load_and_mask"
285 case 'm': // 3 strings to match.
286 switch (RuleIdentifier[1]) {
287 default: break;
288 case 'a': // 1 string to match.
289 if (memcmp(RuleIdentifier.data()+2, "tch_selects", 11) != 0)
290 break;
291 return 133; // "match_selects"
292 case 'e': // 1 string to match.
293 if (memcmp(RuleIdentifier.data()+2, "rge_unmerge", 11) != 0)
294 break;
295 return 235; // "merge_unmerge"
296 case 'u': // 1 string to match.
297 if (memcmp(RuleIdentifier.data()+2, "l_of_vscale", 11) != 0)
298 break;
299 return 44; // "mul_of_vscale"
300 }
301 break;
302 case 'r': // 1 string to match.
303 if (memcmp(RuleIdentifier.data()+1, "edundant_and", 12) != 0)
304 break;
305 return 136; // "redundant_and"
306 case 's': // 6 strings to match.
307 switch (RuleIdentifier[1]) {
308 default: break;
309 case 'a': // 1 string to match.
310 if (memcmp(RuleIdentifier.data()+2, "me_val_zero", 11) != 0)
311 break;
312 return 92; // "same_val_zero"
313 case 'd': // 1 string to match.
314 if (memcmp(RuleIdentifier.data()+2, "iv_by_const", 11) != 0)
315 break;
316 return 211; // "sdiv_by_const"
317 case 'h': // 1 string to match.
318 if (memcmp(RuleIdentifier.data()+2, "l_of_vscale", 11) != 0)
319 break;
320 return 45; // "shl_of_vscale"
321 case 'r': // 1 string to match.
322 if (memcmp(RuleIdentifier.data()+2, "em_by_const", 11) != 0)
323 break;
324 return 207; // "srem_by_const"
325 case 'u': // 2 strings to match.
326 if (memcmp(RuleIdentifier.data()+2, "b_", 2) != 0)
327 break;
328 switch (RuleIdentifier[4]) {
329 default: break;
330 case 'm': // 1 string to match.
331 if (memcmp(RuleIdentifier.data()+5, "inus_one", 8) != 0)
332 break;
333 return 255; // "sub_minus_one"
334 case 'o': // 1 string to match.
335 if (memcmp(RuleIdentifier.data()+5, "f_vscale", 8) != 0)
336 break;
337 return 46; // "sub_of_vscale"
338 }
339 break;
340 }
341 break;
342 case 'u': // 4 strings to match.
343 switch (RuleIdentifier[1]) {
344 default: break;
345 case 'd': // 1 string to match.
346 if (memcmp(RuleIdentifier.data()+2, "iv_by_const", 11) != 0)
347 break;
348 return 210; // "udiv_by_const"
349 case 'n': // 2 strings to match.
350 if (memcmp(RuleIdentifier.data()+2, "merge_", 6) != 0)
351 break;
352 switch (RuleIdentifier[8]) {
353 default: break;
354 case 'm': // 1 string to match.
355 if (memcmp(RuleIdentifier.data()+9, "erge", 4) != 0)
356 break;
357 return 234; // "unmerge_merge"
358 case 'u': // 1 string to match.
359 if (memcmp(RuleIdentifier.data()+9, "ndef", 4) != 0)
360 break;
361 return 237; // "unmerge_undef"
362 }
363 break;
364 case 'r': // 1 string to match.
365 if (memcmp(RuleIdentifier.data()+2, "em_by_const", 11) != 0)
366 break;
367 return 206; // "urem_by_const"
368 }
369 break;
370 }
371 break;
372 case 14: // 17 strings to match.
373 switch (RuleIdentifier[0]) {
374 default: break;
375 case 'A': // 2 strings to match.
376 switch (RuleIdentifier[1]) {
377 default: break;
378 case 'M': // 1 string to match.
379 if (memcmp(RuleIdentifier.data()+2, "inusC1PlusC2", 12) != 0)
380 break;
381 return 18; // "AMinusC1PlusC2"
382 case 'P': // 1 string to match.
383 if (memcmp(RuleIdentifier.data()+2, "lusC1MinusC2", 12) != 0)
384 break;
385 return 14; // "APlusC1MinusC2"
386 }
387 break;
388 case 'C': // 1 string to match.
389 if (memcmp(RuleIdentifier.data()+1, "2MinusAPlusC1", 13) != 0)
390 break;
391 return 15; // "C2MinusAPlusC1"
392 case 'N': // 1 string to match.
393 if (memcmp(RuleIdentifier.data()+1, "otAPlusNegOne", 13) != 0)
394 break;
395 return 13; // "NotAPlusNegOne"
396 case 'a': // 2 strings to match.
397 if (memcmp(RuleIdentifier.data()+1, "nyext_of_", 9) != 0)
398 break;
399 switch (RuleIdentifier[10]) {
400 default: break;
401 case 's': // 1 string to match.
402 if (memcmp(RuleIdentifier.data()+11, "ext", 3) != 0)
403 break;
404 return 58; // "anyext_of_sext"
405 case 'z': // 1 string to match.
406 if (memcmp(RuleIdentifier.data()+11, "ext", 3) != 0)
407 break;
408 return 57; // "anyext_of_zext"
409 }
410 break;
411 case 'b': // 3 strings to match.
412 if (RuleIdentifier[1] != 'i')
413 break;
414 switch (RuleIdentifier[2]) {
415 default: break;
416 case 'n': // 2 strings to match.
417 if (memcmp(RuleIdentifier.data()+3, "op_", 3) != 0)
418 break;
419 switch (RuleIdentifier[6]) {
420 default: break;
421 case 's': // 1 string to match.
422 if (memcmp(RuleIdentifier.data()+7, "ame_val", 7) != 0)
423 break;
424 return 91; // "binop_same_val"
425 case 'w': // 1 string to match.
426 if (memcmp(RuleIdentifier.data()+7, "ith_neg", 7) != 0)
427 break;
428 return 254; // "binop_with_neg"
429 }
430 break;
431 case 't': // 1 string to match.
432 if (memcmp(RuleIdentifier.data()+3, "reverse_shl", 11) != 0)
433 break;
434 return 180; // "bitreverse_shl"
435 }
436 break;
437 case 'f': // 2 strings to match.
438 switch (RuleIdentifier[1]) {
439 default: break;
440 case 'a': // 1 string to match.
441 if (memcmp(RuleIdentifier.data()+2, "bs_fneg_fold", 12) != 0)
442 break;
443 return 192; // "fabs_fneg_fold"
444 case 'n': // 1 string to match.
445 if (memcmp(RuleIdentifier.data()+2, "eg_fneg_fold", 12) != 0)
446 break;
447 return 98; // "fneg_fneg_fold"
448 }
449 break;
450 case 'm': // 1 string to match.
451 if (memcmp(RuleIdentifier.data()+1, "ul_by_neg_one", 13) != 0)
452 break;
453 return 23; // "mul_by_neg_one"
454 case 'r': // 1 string to match.
455 if (memcmp(RuleIdentifier.data()+1, "eassoc_ptradd", 13) != 0)
456 break;
457 return 115; // "reassoc_ptradd"
458 case 's': // 3 strings to match.
459 switch (RuleIdentifier[1]) {
460 default: break;
461 case 'e': // 2 strings to match.
462 switch (RuleIdentifier[2]) {
463 default: break;
464 case 'l': // 1 string to match.
465 if (memcmp(RuleIdentifier.data()+3, "ect_of_zext", 11) != 0)
466 break;
467 return 60; // "select_of_zext"
468 case 'x': // 1 string to match.
469 if (memcmp(RuleIdentifier.data()+3, "t_of_anyext", 11) != 0)
470 break;
471 return 55; // "sext_of_anyext"
472 }
473 break;
474 case 'h': // 1 string to match.
475 if (memcmp(RuleIdentifier.data()+2, "ifts_too_big", 12) != 0)
476 break;
477 return 114; // "shifts_too_big"
478 }
479 break;
480 case 'z': // 1 string to match.
481 if (memcmp(RuleIdentifier.data()+1, "ext_of_anyext", 13) != 0)
482 break;
483 return 53; // "zext_of_anyext"
484 }
485 break;
486 case 15: // 14 strings to match.
487 switch (RuleIdentifier[0]) {
488 default: break;
489 case 'A': // 2 strings to match.
490 switch (RuleIdentifier[1]) {
491 default: break;
492 case 'M': // 1 string to match.
493 if (memcmp(RuleIdentifier.data()+2, "inusC1MinusC2", 13) != 0)
494 break;
495 return 16; // "AMinusC1MinusC2"
496 case 'P': // 1 string to match.
497 if (memcmp(RuleIdentifier.data()+2, "lusZeroMinusB", 13) != 0)
498 break;
499 return 3; // "APlusZeroMinusB"
500 }
501 break;
502 case 'C': // 1 string to match.
503 if (memcmp(RuleIdentifier.data()+1, "1Minus2MinusC2", 14) != 0)
504 break;
505 return 17; // "C1Minus2MinusC2"
506 case 'Z': // 1 string to match.
507 if (memcmp(RuleIdentifier.data()+1, "eroMinusAPlusB", 14) != 0)
508 break;
509 return 2; // "ZeroMinusAPlusB"
510 case 'a': // 2 strings to match.
511 if (memcmp(RuleIdentifier.data()+1, "vgceil_", 7) != 0)
512 break;
513 switch (RuleIdentifier[8]) {
514 default: break;
515 case 's': // 1 string to match.
516 if (memcmp(RuleIdentifier.data()+9, "_match", 6) != 0)
517 break;
518 return 262; // "avgceil_s_match"
519 case 'u': // 1 string to match.
520 if (memcmp(RuleIdentifier.data()+9, "_match", 6) != 0)
521 break;
522 return 261; // "avgceil_u_match"
523 }
524 break;
525 case 'b': // 1 string to match.
526 if (memcmp(RuleIdentifier.data()+1, "itreverse_lshr", 14) != 0)
527 break;
528 return 181; // "bitreverse_lshr"
529 case 'e': // 1 string to match.
530 if (memcmp(RuleIdentifier.data()+1, "xtending_loads", 14) != 0)
531 break;
532 return 74; // "extending_loads"
533 case 'i': // 1 string to match.
534 if (memcmp(RuleIdentifier.data()+1, "dempotent_prop", 14) != 0)
535 break;
536 return 24; // "idempotent_prop"
537 case 'l': // 1 string to match.
538 if (memcmp(RuleIdentifier.data()+1, "oad_or_combine", 14) != 0)
539 break;
540 return 171; // "load_or_combine"
541 case 'n': // 1 string to match.
542 if (memcmp(RuleIdentifier.data()+1, "arrow_binop_or", 14) != 0)
543 break;
544 return 68; // "narrow_binop_or"
545 case 'o': // 1 string to match.
546 if (memcmp(RuleIdentifier.data()+1, "verlapping_and", 14) != 0)
547 break;
548 return 161; // "overlapping_and"
549 case 's': // 1 string to match.
550 if (memcmp(RuleIdentifier.data()+1, "elect_same_val", 14) != 0)
551 break;
552 return 89; // "select_same_val"
553 case 'z': // 1 string to match.
554 if (memcmp(RuleIdentifier.data()+1, "ext_trunc_fold", 14) != 0)
555 break;
556 return 140; // "zext_trunc_fold"
557 }
558 break;
559 case 16: // 19 strings to match.
560 switch (RuleIdentifier[0]) {
561 default: break;
562 case 'A': // 1 string to match.
563 if (memcmp(RuleIdentifier.data()+1, "MinusZeroMinusB", 15) != 0)
564 break;
565 return 11; // "AMinusZeroMinusB"
566 case 'a': // 3 strings to match.
567 switch (RuleIdentifier[1]) {
568 default: break;
569 case 'n': // 1 string to match.
570 if (memcmp(RuleIdentifier.data()+2, "yext_of_anyext", 14) != 0)
571 break;
572 return 56; // "anyext_of_anyext"
573 case 'v': // 2 strings to match.
574 if (memcmp(RuleIdentifier.data()+2, "gfloor_", 7) != 0)
575 break;
576 switch (RuleIdentifier[9]) {
577 default: break;
578 case 's': // 1 string to match.
579 if (memcmp(RuleIdentifier.data()+10, "_match", 6) != 0)
580 break;
581 return 260; // "avgfloor_s_match"
582 case 'u': // 1 string to match.
583 if (memcmp(RuleIdentifier.data()+10, "_match", 6) != 0)
584 break;
585 return 259; // "avgfloor_u_match"
586 }
587 break;
588 }
589 break;
590 case 'c': // 1 string to match.
591 if (memcmp(RuleIdentifier.data()+1, "lamp_i64_to_i16", 15) != 0)
592 break;
593 return 265; // "clamp_i64_to_i16"
594 case 'n': // 5 strings to match.
595 if (memcmp(RuleIdentifier.data()+1, "arrow_binop_", 12) != 0)
596 break;
597 switch (RuleIdentifier[13]) {
598 default: break;
599 case 'a': // 2 strings to match.
600 switch (RuleIdentifier[14]) {
601 default: break;
602 case 'd': // 1 string to match.
603 if (RuleIdentifier[15] != 'd')
604 break;
605 return 64; // "narrow_binop_add"
606 case 'n': // 1 string to match.
607 if (RuleIdentifier[15] != 'd')
608 break;
609 return 67; // "narrow_binop_and"
610 }
611 break;
612 case 'm': // 1 string to match.
613 if (memcmp(RuleIdentifier.data()+14, "ul", 2) != 0)
614 break;
615 return 66; // "narrow_binop_mul"
616 case 's': // 1 string to match.
617 if (memcmp(RuleIdentifier.data()+14, "ub", 2) != 0)
618 break;
619 return 65; // "narrow_binop_sub"
620 case 'x': // 1 string to match.
621 if (memcmp(RuleIdentifier.data()+14, "or", 2) != 0)
622 break;
623 return 69; // "narrow_binop_xor"
624 }
625 break;
626 case 'o': // 1 string to match.
627 if (memcmp(RuleIdentifier.data()+1, "r_and_xor_to_or", 15) != 0)
628 break;
629 return 220; // "or_and_xor_to_or"
630 case 's': // 5 strings to match.
631 switch (RuleIdentifier[1]) {
632 default: break;
633 case 'e': // 3 strings to match.
634 if (memcmp(RuleIdentifier.data()+2, "lect_", 5) != 0)
635 break;
636 switch (RuleIdentifier[7]) {
637 default: break;
638 case 'o': // 1 string to match.
639 if (memcmp(RuleIdentifier.data()+8, "f_anyext", 8) != 0)
640 break;
641 return 61; // "select_of_anyext"
642 case 't': // 1 string to match.
643 if (memcmp(RuleIdentifier.data()+8, "o_minmax", 8) != 0)
644 break;
645 return 214; // "select_to_minmax"
646 case 'u': // 1 string to match.
647 if (memcmp(RuleIdentifier.data()+8, "ndef_cmp", 8) != 0)
648 break;
649 return 130; // "select_undef_cmp"
650 }
651 break;
652 case 'u': // 2 strings to match.
653 if (memcmp(RuleIdentifier.data()+2, "b_o", 3) != 0)
654 break;
655 switch (RuleIdentifier[5]) {
656 default: break;
657 case 'f': // 1 string to match.
658 if (memcmp(RuleIdentifier.data()+6, "_mul_const", 10) != 0)
659 break;
660 return 256; // "sub_of_mul_const"
661 case 'n': // 1 string to match.
662 if (memcmp(RuleIdentifier.data()+6, "e_from_sub", 10) != 0)
663 break;
664 return 253; // "sub_one_from_sub"
665 }
666 break;
667 }
668 break;
669 case 't': // 2 strings to match.
670 if (memcmp(RuleIdentifier.data()+1, "runcate_of_", 11) != 0)
671 break;
672 switch (RuleIdentifier[12]) {
673 default: break;
674 case 's': // 1 string to match.
675 if (memcmp(RuleIdentifier.data()+13, "ext", 3) != 0)
676 break;
677 return 50; // "truncate_of_sext"
678 case 'z': // 1 string to match.
679 if (memcmp(RuleIdentifier.data()+13, "ext", 3) != 0)
680 break;
681 return 49; // "truncate_of_zext"
682 }
683 break;
684 case 'u': // 1 string to match.
685 if (memcmp(RuleIdentifier.data()+1, "ndef_to_fp_zero", 15) != 0)
686 break;
687 return 77; // "undef_to_fp_zero"
688 }
689 break;
690 case 17: // 18 strings to match.
691 switch (RuleIdentifier[0]) {
692 default: break;
693 case 'A': // 2 strings to match.
694 if (memcmp(RuleIdentifier.data()+1, "PlusBMinus", 10) != 0)
695 break;
696 switch (RuleIdentifier[11]) {
697 default: break;
698 case 'A': // 1 string to match.
699 if (memcmp(RuleIdentifier.data()+12, "plusC", 5) != 0)
700 break;
701 return 8; // "APlusBMinusAplusC"
702 case 'C': // 1 string to match.
703 if (memcmp(RuleIdentifier.data()+12, "PlusA", 5) != 0)
704 break;
705 return 10; // "APlusBMinusCPlusA"
706 }
707 break;
708 case 'a': // 3 strings to match.
709 switch (RuleIdentifier[1]) {
710 default: break;
711 case 'd': // 1 string to match.
712 if (memcmp(RuleIdentifier.data()+2, "d_p2i_to_ptradd", 15) != 0)
713 break;
714 return 22; // "add_p2i_to_ptradd"
715 case 'n': // 2 strings to match.
716 switch (RuleIdentifier[2]) {
717 default: break;
718 case 'd': // 1 string to match.
719 if (memcmp(RuleIdentifier.data()+3, "_xor_or_to_and", 14) != 0)
720 break;
721 return 222; // "and_xor_or_to_and"
722 case 'y': // 1 string to match.
723 if (memcmp(RuleIdentifier.data()+3, "ext_trunc_fold", 14) != 0)
724 break;
725 return 97; // "anyext_trunc_fold"
726 }
727 break;
728 }
729 break;
730 case 'c': // 4 strings to match.
731 switch (RuleIdentifier[1]) {
732 default: break;
733 case 'a': // 2 strings to match.
734 if (memcmp(RuleIdentifier.data()+2, "nonicalize_", 11) != 0)
735 break;
736 switch (RuleIdentifier[13]) {
737 default: break;
738 case 'f': // 1 string to match.
739 if (memcmp(RuleIdentifier.data()+14, "cmp", 3) != 0)
740 break;
741 return 119; // "canonicalize_fcmp"
742 case 'i': // 1 string to match.
743 if (memcmp(RuleIdentifier.data()+14, "cmp", 3) != 0)
744 break;
745 return 118; // "canonicalize_icmp"
746 }
747 break;
748 case 'o': // 2 strings to match.
749 switch (RuleIdentifier[2]) {
750 default: break;
751 case 'm': // 1 string to match.
752 if (memcmp(RuleIdentifier.data()+3, "bine_or_of_and", 14) != 0)
753 break;
754 return 263; // "combine_or_of_and"
755 case 'n': // 1 string to match.
756 if (memcmp(RuleIdentifier.data()+3, "stant_fold_fma", 14) != 0)
757 break;
758 return 189; // "constant_fold_fma"
759 }
760 break;
761 }
762 break;
763 case 'd': // 1 string to match.
764 if (memcmp(RuleIdentifier.data()+1, "iv_rem_to_divrem", 16) != 0)
765 break;
766 return 172; // "div_rem_to_divrem"
767 case 'e': // 1 string to match.
768 if (memcmp(RuleIdentifier.data()+1, "rase_undef_store", 16) != 0)
769 break;
770 return 87; // "erase_undef_store"
771 case 'p': // 1 string to match.
772 if (memcmp(RuleIdentifier.data()+1, "tr_add_with_zero", 16) != 0)
773 break;
774 return 168; // "ptr_add_with_zero"
775 case 's': // 4 strings to match.
776 switch (RuleIdentifier[1]) {
777 default: break;
778 case 'e': // 2 strings to match.
779 if (memcmp(RuleIdentifier.data()+2, "lect_", 5) != 0)
780 break;
781 switch (RuleIdentifier[7]) {
782 default: break;
783 case 't': // 1 string to match.
784 if (memcmp(RuleIdentifier.data()+8, "o_iminmax", 9) != 0)
785 break;
786 return 132; // "select_to_iminmax"
787 case 'z': // 1 string to match.
788 if (memcmp(RuleIdentifier.data()+8, "ero_false", 9) != 0)
789 break;
790 return 134; // "select_zero_false"
791 }
792 break;
793 case 'h': // 1 string to match.
794 if (memcmp(RuleIdentifier.data()+2, "ift_immed_chain", 15) != 0)
795 break;
796 return 169; // "shift_immed_chain"
797 case 'r': // 1 string to match.
798 if (memcmp(RuleIdentifier.data()+2, "em_pow2_to_mask", 15) != 0)
799 break;
800 return 205; // "srem_pow2_to_mask"
801 }
802 break;
803 case 'u': // 2 strings to match.
804 switch (RuleIdentifier[1]) {
805 default: break;
806 case 'n': // 1 string to match.
807 if (memcmp(RuleIdentifier.data()+2, "def_to_int_zero", 15) != 0)
808 break;
809 return 78; // "undef_to_int_zero"
810 case 'r': // 1 string to match.
811 if (memcmp(RuleIdentifier.data()+2, "em_pow2_to_mask", 15) != 0)
812 break;
813 return 139; // "urem_pow2_to_mask"
814 }
815 break;
816 }
817 break;
818 case 18: // 13 strings to match.
819 switch (RuleIdentifier[0]) {
820 default: break;
821 case 'A': // 3 strings to match.
822 switch (RuleIdentifier[1]) {
823 default: break;
824 case 'M': // 2 strings to match.
825 if (memcmp(RuleIdentifier.data()+2, "inusBPlus", 9) != 0)
826 break;
827 switch (RuleIdentifier[11]) {
828 default: break;
829 case 'B': // 1 string to match.
830 if (memcmp(RuleIdentifier.data()+12, "MinusC", 6) != 0)
831 break;
832 return 7; // "AMinusBPlusBMinusC"
833 case 'C': // 1 string to match.
834 if (memcmp(RuleIdentifier.data()+12, "MinusA", 6) != 0)
835 break;
836 return 6; // "AMinusBPlusCMinusA"
837 }
838 break;
839 case 'P': // 1 string to match.
840 if (memcmp(RuleIdentifier.data()+2, "lusBMinusCMinusB", 16) != 0)
841 break;
842 return 0; // "APlusBMinusCMinusB"
843 }
844 break;
845 case 'b': // 1 string to match.
846 if (memcmp(RuleIdentifier.data()+1, "inop_left_to_zero", 17) != 0)
847 break;
848 return 93; // "binop_left_to_zero"
849 case 'c': // 4 strings to match.
850 if (RuleIdentifier[1] != 'o')
851 break;
852 switch (RuleIdentifier[2]) {
853 default: break;
854 case 'm': // 2 strings to match.
855 if (memcmp(RuleIdentifier.data()+3, "bine_", 5) != 0)
856 break;
857 switch (RuleIdentifier[8]) {
858 default: break;
859 case 'm': // 1 string to match.
860 if (memcmp(RuleIdentifier.data()+9, "inmax_nan", 9) != 0)
861 break;
862 return 165; // "combine_minmax_nan"
863 case 'o': // 1 string to match.
864 if (memcmp(RuleIdentifier.data()+9, "r_s64_s32", 9) != 0)
865 break;
866 return 271; // "combine_or_s64_s32"
867 }
868 break;
869 case 'n': // 2 strings to match.
870 if (memcmp(RuleIdentifier.data()+3, "stant_fold_f", 12) != 0)
871 break;
872 switch (RuleIdentifier[15]) {
873 default: break;
874 case 'a': // 1 string to match.
875 if (memcmp(RuleIdentifier.data()+16, "bs", 2) != 0)
876 break;
877 return 146; // "constant_fold_fabs"
878 case 'n': // 1 string to match.
879 if (memcmp(RuleIdentifier.data()+16, "eg", 2) != 0)
880 break;
881 return 145; // "constant_fold_fneg"
882 }
883 break;
884 }
885 break;
886 case 'e': // 1 string to match.
887 if (memcmp(RuleIdentifier.data()+1, "xpand_const_fpowi", 17) != 0)
888 break;
889 return 166; // "expand_const_fpowi"
890 case 'f': // 1 string to match.
891 if (memcmp(RuleIdentifier.data()+1, "ptrunc_fpext_fold", 17) != 0)
892 break;
893 return 107; // "fptrunc_fpext_fold"
894 case 's': // 2 strings to match.
895 if (RuleIdentifier[1] != 'e')
896 break;
897 switch (RuleIdentifier[2]) {
898 default: break;
899 case 'l': // 1 string to match.
900 if (memcmp(RuleIdentifier.data()+3, "ect_of_truncate", 15) != 0)
901 break;
902 return 62; // "select_of_truncate"
903 case 'x': // 1 string to match.
904 if (memcmp(RuleIdentifier.data()+3, "t_inreg_of_load", 15) != 0)
905 break;
906 return 127; // "sext_inreg_of_load"
907 }
908 break;
909 case 't': // 1 string to match.
910 if (memcmp(RuleIdentifier.data()+1, "runcate_of_anyext", 17) != 0)
911 break;
912 return 51; // "truncate_of_anyext"
913 }
914 break;
915 case 19: // 19 strings to match.
916 switch (RuleIdentifier[0]) {
917 default: break;
918 case 'A': // 1 string to match.
919 if (memcmp(RuleIdentifier.data()+1, "MinusBMinusCMinusC", 18) != 0)
920 break;
921 return 1; // "AMinusBMinusCMinusC"
922 case 'b': // 1 string to match.
923 if (memcmp(RuleIdentifier.data()+1, "inop_right_to_zero", 18) != 0)
924 break;
925 return 94; // "binop_right_to_zero"
926 case 'c': // 7 strings to match.
927 if (memcmp(RuleIdentifier.data()+1, "onst", 4) != 0)
928 break;
929 switch (RuleIdentifier[5]) {
930 default: break;
931 case '_': // 1 string to match.
932 if (memcmp(RuleIdentifier.data()+6, "ptradd_to_i2p", 13) != 0)
933 break;
934 return 160; // "const_ptradd_to_i2p"
935 case 'a': // 6 strings to match.
936 if (memcmp(RuleIdentifier.data()+6, "nt_fold_", 8) != 0)
937 break;
938 switch (RuleIdentifier[14]) {
939 default: break;
940 case 'b': // 1 string to match.
941 if (memcmp(RuleIdentifier.data()+15, "inop", 4) != 0)
942 break;
943 return 187; // "constant_fold_binop"
944 case 'f': // 5 strings to match.
945 switch (RuleIdentifier[15]) {
946 default: break;
947 case 'c': // 1 string to match.
948 if (memcmp(RuleIdentifier.data()+16, "eil", 3) != 0)
949 break;
950 return 151; // "constant_fold_fceil"
951 case 'l': // 1 string to match.
952 if (memcmp(RuleIdentifier.data()+16, "og2", 3) != 0)
953 break;
954 return 148; // "constant_fold_flog2"
955 case 'p': // 1 string to match.
956 if (memcmp(RuleIdentifier.data()+16, "ext", 3) != 0)
957 break;
958 return 150; // "constant_fold_fpext"
959 case 'r': // 1 string to match.
960 if (memcmp(RuleIdentifier.data()+16, "int", 3) != 0)
961 break;
962 return 156; // "constant_fold_frint"
963 case 's': // 1 string to match.
964 if (memcmp(RuleIdentifier.data()+16, "qrt", 3) != 0)
965 break;
966 return 147; // "constant_fold_fsqrt"
967 }
968 break;
969 }
970 break;
971 }
972 break;
973 case 'e': // 1 string to match.
974 if (memcmp(RuleIdentifier.data()+1, "xtend_through_phis", 18) != 0)
975 break;
976 return 111; // "extend_through_phis"
977 case 'i': // 1 string to match.
978 if (memcmp(RuleIdentifier.data()+1, "nteger_of_truncate", 18) != 0)
979 break;
980 return 70; // "integer_of_truncate"
981 case 'm': // 1 string to match.
982 if (memcmp(RuleIdentifier.data()+1, "erge_of_x_and_zero", 18) != 0)
983 break;
984 return 241; // "merge_of_x_and_zero"
985 case 'p': // 1 string to match.
986 if (memcmp(RuleIdentifier.data()+1, "tr_add_immed_chain", 18) != 0)
987 break;
988 return 117; // "ptr_add_immed_chain"
989 case 'r': // 2 strings to match.
990 switch (RuleIdentifier[1]) {
991 default: break;
992 case 'e': // 1 string to match.
993 if (memcmp(RuleIdentifier.data()+2, "assoc_comm_binops", 17) != 0)
994 break;
995 return 116; // "reassoc_comm_binops"
996 case 'i': // 1 string to match.
997 if (memcmp(RuleIdentifier.data()+2, "ght_identity_zero", 17) != 0)
998 break;
999 return 90; // "right_identity_zero"
1000 }
1001 break;
1002 case 's': // 3 strings to match.
1003 switch (RuleIdentifier[1]) {
1004 default: break;
1005 case 'e': // 1 string to match.
1006 if (memcmp(RuleIdentifier.data()+2, "lect_constant_cmp", 17) != 0)
1007 break;
1008 return 131; // "select_constant_cmp"
1009 case 'i': // 2 strings to match.
1010 if (memcmp(RuleIdentifier.data()+2, "mplify_", 7) != 0)
1011 break;
1012 switch (RuleIdentifier[9]) {
1013 default: break;
1014 case 'a': // 1 string to match.
1015 if (memcmp(RuleIdentifier.data()+10, "dd_to_sub", 9) != 0)
1016 break;
1017 return 112; // "simplify_add_to_sub"
1018 case 'n': // 1 string to match.
1019 if (memcmp(RuleIdentifier.data()+10, "eg_minmax", 9) != 0)
1020 break;
1021 return 224; // "simplify_neg_minmax"
1022 }
1023 break;
1024 }
1025 break;
1026 case 'u': // 1 string to match.
1027 if (memcmp(RuleIdentifier.data()+1, "nary_undef_to_zero", 18) != 0)
1028 break;
1029 return 82; // "unary_undef_to_zero"
1030 }
1031 break;
1032 case 20: // 9 strings to match.
1033 switch (RuleIdentifier[0]) {
1034 default: break;
1035 case 'a': // 1 string to match.
1036 if (memcmp(RuleIdentifier.data()+1, "nd_or_disjoint_mask", 19) != 0)
1037 break;
1038 return 195; // "and_or_disjoint_mask"
1039 case 'b': // 1 string to match.
1040 if (memcmp(RuleIdentifier.data()+1, "itcast_bitcast_fold", 19) != 0)
1041 break;
1042 return 105; // "bitcast_bitcast_fold"
1043 case 'c': // 1 string to match.
1044 if (memcmp(RuleIdentifier.data()+1, "onstant_fold_ffloor", 19) != 0)
1045 break;
1046 return 152; // "constant_fold_ffloor"
1047 case 'm': // 1 string to match.
1048 if (memcmp(RuleIdentifier.data()+1, "erge_of_x_and_undef", 19) != 0)
1049 break;
1050 return 240; // "merge_of_x_and_undef"
1051 case 'o': // 1 string to match.
1052 if (memcmp(RuleIdentifier.data()+1, "r_and_xor_to_xor_or", 19) != 0)
1053 break;
1054 return 221; // "or_and_xor_to_xor_or"
1055 case 'r': // 2 strings to match.
1056 if (memcmp(RuleIdentifier.data()+1, "edu", 3) != 0)
1057 break;
1058 switch (RuleIdentifier[4]) {
1059 default: break;
1060 case 'c': // 1 string to match.
1061 if (memcmp(RuleIdentifier.data()+5, "e_shl_of_extend", 15) != 0)
1062 break;
1063 return 128; // "reduce_shl_of_extend"
1064 case 'n': // 1 string to match.
1065 if (memcmp(RuleIdentifier.data()+5, "dant_sext_inreg", 15) != 0)
1066 break;
1067 return 137; // "redundant_sext_inreg"
1068 }
1069 break;
1070 case 'u': // 2 strings to match.
1071 if (RuleIdentifier[1] != 'n')
1072 break;
1073 switch (RuleIdentifier[2]) {
1074 default: break;
1075 case 'a': // 1 string to match.
1076 if (memcmp(RuleIdentifier.data()+3, "ry_undef_to_undef", 17) != 0)
1077 break;
1078 return 83; // "unary_undef_to_undef"
1079 case 'm': // 1 string to match.
1080 if (memcmp(RuleIdentifier.data()+3, "erge_zext_to_zext", 17) != 0)
1081 break;
1082 return 239; // "unmerge_zext_to_zext"
1083 }
1084 break;
1085 }
1086 break;
1087 case 21: // 11 strings to match.
1088 switch (RuleIdentifier[0]) {
1089 default: break;
1090 case 'a': // 1 string to match.
1091 if (memcmp(RuleIdentifier.data()+1, "nd_xor_or_to_xor_and", 20) != 0)
1092 break;
1093 return 223; // "and_xor_or_to_xor_and"
1094 case 'c': // 4 strings to match.
1095 if (RuleIdentifier[1] != 'o')
1096 break;
1097 switch (RuleIdentifier[2]) {
1098 default: break;
1099 case 'm': // 2 strings to match.
1100 if (memcmp(RuleIdentifier.data()+3, "bine_", 5) != 0)
1101 break;
1102 switch (RuleIdentifier[8]) {
1103 default: break;
1104 case 'b': // 1 string to match.
1105 if (memcmp(RuleIdentifier.data()+9, "uild_unmerge", 12) != 0)
1106 break;
1107 return 242; // "combine_build_unmerge"
1108 case 'c': // 1 string to match.
1109 if (memcmp(RuleIdentifier.data()+9, "oncat_vector", 12) != 0)
1110 break;
1111 return 225; // "combine_concat_vector"
1112 }
1113 break;
1114 case 'n': // 2 strings to match.
1115 if (memcmp(RuleIdentifier.data()+3, "stant_fold_", 11) != 0)
1116 break;
1117 switch (RuleIdentifier[14]) {
1118 default: break;
1119 case 'c': // 1 string to match.
1120 if (memcmp(RuleIdentifier.data()+15, "ast_op", 6) != 0)
1121 break;
1122 return 190; // "constant_fold_cast_op"
1123 case 'f': // 1 string to match.
1124 if (memcmp(RuleIdentifier.data()+15, "ptrunc", 6) != 0)
1125 break;
1126 return 149; // "constant_fold_fptrunc"
1127 }
1128 break;
1129 }
1130 break;
1131 case 'f': // 1 string to match.
1132 if (memcmp(RuleIdentifier.data()+1, "div_repeated_divison", 20) != 0)
1133 break;
1134 return 212; // "fdiv_repeated_divison"
1135 case 'i': // 1 string to match.
1136 if (memcmp(RuleIdentifier.data()+1, "nsert_vector_elt_oob", 20) != 0)
1137 break;
1138 return 30; // "insert_vector_elt_oob"
1139 case 'l': // 1 string to match.
1140 if (memcmp(RuleIdentifier.data()+1, "shr_of_trunc_of_lshr", 20) != 0)
1141 break;
1142 return 249; // "lshr_of_trunc_of_lshr"
1143 case 'r': // 1 string to match.
1144 if (memcmp(RuleIdentifier.data()+1, "ight_identity_one_fp", 20) != 0)
1145 break;
1146 return 100; // "right_identity_one_fp"
1147 case 'u': // 2 strings to match.
1148 if (RuleIdentifier[1] != 'n')
1149 break;
1150 switch (RuleIdentifier[2]) {
1151 default: break;
1152 case 'd': // 1 string to match.
1153 if (memcmp(RuleIdentifier.data()+3, "ef_to_negative_one", 18) != 0)
1154 break;
1155 return 79; // "undef_to_negative_one"
1156 case 'm': // 1 string to match.
1157 if (memcmp(RuleIdentifier.data()+3, "erge_dead_to_trunc", 18) != 0)
1158 break;
1159 return 238; // "unmerge_dead_to_trunc"
1160 }
1161 break;
1162 }
1163 break;
1164 case 22: // 14 strings to match.
1165 switch (RuleIdentifier[0]) {
1166 default: break;
1167 case 'c': // 3 strings to match.
1168 if (RuleIdentifier[1] != 'o')
1169 break;
1170 switch (RuleIdentifier[2]) {
1171 default: break;
1172 case 'm': // 2 strings to match.
1173 if (memcmp(RuleIdentifier.data()+3, "bine_shuffle_", 13) != 0)
1174 break;
1175 switch (RuleIdentifier[16]) {
1176 default: break;
1177 case 'c': // 1 string to match.
1178 if (memcmp(RuleIdentifier.data()+17, "oncat", 5) != 0)
1179 break;
1180 return 229; // "combine_shuffle_concat"
1181 case 'v': // 1 string to match.
1182 if (memcmp(RuleIdentifier.data()+17, "ector", 5) != 0)
1183 break;
1184 return 267; // "combine_shuffle_vector"
1185 }
1186 break;
1187 case 'n': // 1 string to match.
1188 if (memcmp(RuleIdentifier.data()+3, "stant_fold_fp_binop", 19) != 0)
1189 break;
1190 return 188; // "constant_fold_fp_binop"
1191 }
1192 break;
1193 case 'f': // 4 strings to match.
1194 switch (RuleIdentifier[1]) {
1195 default: break;
1196 case 'o': // 1 string to match.
1197 if (memcmp(RuleIdentifier.data()+2, "ld_binop_into_select", 20) != 0)
1198 break;
1199 return 204; // "fold_binop_into_select"
1200 case 'u': // 3 strings to match.
1201 if (memcmp(RuleIdentifier.data()+2, "nnel_shift_", 11) != 0)
1202 break;
1203 switch (RuleIdentifier[13]) {
1204 default: break;
1205 case 'l': // 1 string to match.
1206 if (memcmp(RuleIdentifier.data()+14, "eft_zero", 8) != 0)
1207 break;
1208 return 176; // "funnel_shift_left_zero"
1209 case 'o': // 1 string to match.
1210 if (memcmp(RuleIdentifier.data()+14, "vershift", 8) != 0)
1211 break;
1212 return 177; // "funnel_shift_overshift"
1213 case 't': // 1 string to match.
1214 if (memcmp(RuleIdentifier.data()+14, "o_rotate", 8) != 0)
1215 break;
1216 return 174; // "funnel_shift_to_rotate"
1217 }
1218 break;
1219 }
1220 break;
1221 case 'i': // 1 string to match.
1222 if (memcmp(RuleIdentifier.data()+1, "cmp_to_lhs_known_bits", 21) != 0)
1223 break;
1224 return 121; // "icmp_to_lhs_known_bits"
1225 case 'm': // 1 string to match.
1226 if (memcmp(RuleIdentifier.data()+1, "atch_subo_no_overflow", 21) != 0)
1227 break;
1228 return 244; // "match_subo_no_overflow"
1229 case 'p': // 1 string to match.
1230 if (memcmp(RuleIdentifier.data()+1, "ropagate_undef_any_op", 21) != 0)
1231 break;
1232 return 84; // "propagate_undef_any_op"
1233 case 'r': // 2 strings to match.
1234 switch (RuleIdentifier[1]) {
1235 default: break;
1236 case 'e': // 1 string to match.
1237 if (memcmp(RuleIdentifier.data()+2, "dundant_neg_operands", 20) != 0)
1238 break;
1239 return 194; // "redundant_neg_operands"
1240 case 'i': // 1 string to match.
1241 if (memcmp(RuleIdentifier.data()+2, "ght_identity_one_int", 20) != 0)
1242 break;
1243 return 99; // "right_identity_one_int"
1244 }
1245 break;
1246 case 's': // 1 string to match.
1247 if (memcmp(RuleIdentifier.data()+1, "hl_ashr_to_sext_inreg", 21) != 0)
1248 break;
1249 return 125; // "shl_ashr_to_sext_inreg"
1250 case 't': // 1 string to match.
1251 if (memcmp(RuleIdentifier.data()+1, "runc_buildvector_fold", 21) != 0)
1252 break;
1253 return 103; // "trunc_buildvector_fold"
1254 }
1255 break;
1256 case 23: // 6 strings to match.
1257 switch (RuleIdentifier[0]) {
1258 default: break;
1259 case 'b': // 1 string to match.
1260 if (memcmp(RuleIdentifier.data()+1, "uildvector_of_truncate", 22) != 0)
1261 break;
1262 return 63; // "buildvector_of_truncate"
1263 case 'f': // 1 string to match.
1264 if (memcmp(RuleIdentifier.data()+1, "unnel_shift_right_zero", 22) != 0)
1265 break;
1266 return 175; // "funnel_shift_right_zero"
1267 case 'i': // 2 strings to match.
1268 if (memcmp(RuleIdentifier.data()+1, "tof_const_zero_fold_", 20) != 0)
1269 break;
1270 switch (RuleIdentifier[21]) {
1271 default: break;
1272 case 's': // 1 string to match.
1273 if (RuleIdentifier[22] != 'i')
1274 break;
1275 return 158; // "itof_const_zero_fold_si"
1276 case 'u': // 1 string to match.
1277 if (RuleIdentifier[22] != 'i')
1278 break;
1279 return 159; // "itof_const_zero_fold_ui"
1280 }
1281 break;
1282 case 'p': // 1 string to match.
1283 if (memcmp(RuleIdentifier.data()+1, "ropagate_undef_all_ops", 22) != 0)
1284 break;
1285 return 85; // "propagate_undef_all_ops"
1286 case 't': // 1 string to match.
1287 if (memcmp(RuleIdentifier.data()+1, "runcusatu_to_fptouisat", 22) != 0)
1288 break;
1289 return 248; // "truncusatu_to_fptouisat"
1290 }
1291 break;
1292 case 24: // 8 strings to match.
1293 switch (RuleIdentifier[0]) {
1294 default: break;
1295 case 'b': // 1 string to match.
1296 if (memcmp(RuleIdentifier.data()+1, "inop_left_undef_to_zero", 23) != 0)
1297 break;
1298 return 80; // "binop_left_undef_to_zero"
1299 case 'c': // 2 strings to match.
1300 switch (RuleIdentifier[1]) {
1301 default: break;
1302 case 'o': // 1 string to match.
1303 if (memcmp(RuleIdentifier.data()+2, "nstant_fold_fnearbyint", 22) != 0)
1304 break;
1305 return 157; // "constant_fold_fnearbyint"
1306 case 't': // 1 string to match.
1307 if (memcmp(RuleIdentifier.data()+2, "lz_zero_poison_to_ctls", 22) != 0)
1308 break;
1309 return 251; // "ctlz_zero_poison_to_ctls"
1310 }
1311 break;
1312 case 'm': // 1 string to match.
1313 if (memcmp(RuleIdentifier.data()+1, "atch_extract_of_element", 23) != 0)
1314 break;
1315 return 29; // "match_extract_of_element"
1316 case 'n': // 1 string to match.
1317 if (memcmp(RuleIdentifier.data()+1, "arrow_binop_feeding_and", 23) != 0)
1318 break;
1319 return 129; // "narrow_binop_feeding_and"
1320 case 's': // 2 strings to match.
1321 if (memcmp(RuleIdentifier.data()+1, "ext_inreg_", 10) != 0)
1322 break;
1323 switch (RuleIdentifier[11]) {
1324 default: break;
1325 case 'o': // 1 string to match.
1326 if (memcmp(RuleIdentifier.data()+12, "f_sext_inreg", 12) != 0)
1327 break;
1328 return 59; // "sext_inreg_of_sext_inreg"
1329 case 't': // 1 string to match.
1330 if (memcmp(RuleIdentifier.data()+12, "o_zext_inreg", 12) != 0)
1331 break;
1332 return 141; // "sext_inreg_to_zext_inreg"
1333 }
1334 break;
1335 case 'x': // 1 string to match.
1336 if (memcmp(RuleIdentifier.data()+1, "or_of_and_with_same_reg", 23) != 0)
1337 break;
1338 return 167; // "xor_of_and_with_same_reg"
1339 }
1340 break;
1341 case 25: // 7 strings to match.
1342 switch (RuleIdentifier[0]) {
1343 default: break;
1344 case 'b': // 3 strings to match.
1345 switch (RuleIdentifier[1]) {
1346 default: break;
1347 case 'i': // 2 strings to match.
1348 if (memcmp(RuleIdentifier.data()+2, "tfield_extract_from_", 20) != 0)
1349 break;
1350 switch (RuleIdentifier[22]) {
1351 default: break;
1352 case 'a': // 1 string to match.
1353 if (memcmp(RuleIdentifier.data()+23, "nd", 2) != 0)
1354 break;
1355 return 184; // "bitfield_extract_from_and"
1356 case 's': // 1 string to match.
1357 if (memcmp(RuleIdentifier.data()+23, "hr", 2) != 0)
1358 break;
1359 return 185; // "bitfield_extract_from_shr"
1360 }
1361 break;
1362 case 'u': // 1 string to match.
1363 if (memcmp(RuleIdentifier.data()+2, "ildvector_identity_fold", 23) != 0)
1364 break;
1365 return 102; // "buildvector_identity_fold"
1366 }
1367 break;
1368 case 'c': // 1 string to match.
1369 if (memcmp(RuleIdentifier.data()+1, "ombine_shuffle_undef_rhs", 24) != 0)
1370 break;
1371 return 230; // "combine_shuffle_undef_rhs"
1372 case 'e': // 1 string to match.
1373 if (memcmp(RuleIdentifier.data()+1, "xtract_vec_elt_build_vec", 24) != 0)
1374 break;
1375 return 72; // "extract_vec_elt_build_vec"
1376 case 'n': // 1 string to match.
1377 if (memcmp(RuleIdentifier.data()+1, "eg_and_one_to_sext_inreg", 24) != 0)
1378 break;
1379 return 126; // "neg_and_one_to_sext_inreg"
1380 case 'r': // 1 string to match.
1381 if (memcmp(RuleIdentifier.data()+1, "ight_identity_neg_one_fp", 24) != 0)
1382 break;
1383 return 110; // "right_identity_neg_one_fp"
1384 }
1385 break;
1386 case 26: // 6 strings to match.
1387 switch (RuleIdentifier[0]) {
1388 default: break;
1389 case 'b': // 2 strings to match.
1390 if (RuleIdentifier[1] != 'i')
1391 break;
1392 switch (RuleIdentifier[2]) {
1393 default: break;
1394 case 'n': // 1 string to match.
1395 if (memcmp(RuleIdentifier.data()+3, "op_right_undef_to_undef", 23) != 0)
1396 break;
1397 return 81; // "binop_right_undef_to_undef"
1398 case 't': // 1 string to match.
1399 if (memcmp(RuleIdentifier.data()+3, "cast_bitcast_to_bitcast", 23) != 0)
1400 break;
1401 return 106; // "bitcast_bitcast_to_bitcast"
1402 }
1403 break;
1404 case 'c': // 2 strings to match.
1405 if (RuleIdentifier[1] != 'o')
1406 break;
1407 switch (RuleIdentifier[2]) {
1408 default: break;
1409 case 'm': // 1 string to match.
1410 if (memcmp(RuleIdentifier.data()+3, "mute_fp_constant_to_rhs", 23) != 0)
1411 break;
1412 return 217; // "commute_fp_constant_to_rhs"
1413 case 'n': // 1 string to match.
1414 if (memcmp(RuleIdentifier.data()+3, "stant_fold_unary_int_op", 23) != 0)
1415 break;
1416 return 191; // "constant_fold_unary_int_op"
1417 }
1418 break;
1419 case 'f': // 1 string to match.
1420 if (memcmp(RuleIdentifier.data()+1, "unnel_shift_from_or_shift", 25) != 0)
1421 break;
1422 return 173; // "funnel_shift_from_or_shift"
1423 case 'r': // 1 string to match.
1424 if (memcmp(RuleIdentifier.data()+1, "ight_identity_neg_zero_fp", 25) != 0)
1425 break;
1426 return 108; // "right_identity_neg_zero_fp"
1427 }
1428 break;
1429 case 27: // 6 strings to match.
1430 switch (RuleIdentifier[0]) {
1431 default: break;
1432 case 'c': // 2 strings to match.
1433 if (memcmp(RuleIdentifier.data()+1, "om", 2) != 0)
1434 break;
1435 switch (RuleIdentifier[3]) {
1436 default: break;
1437 case 'b': // 1 string to match.
1438 if (memcmp(RuleIdentifier.data()+4, "ine_use_vector_truncate", 23) != 0)
1439 break;
1440 return 232; // "combine_use_vector_truncate"
1441 case 'm': // 1 string to match.
1442 if (memcmp(RuleIdentifier.data()+4, "ute_int_constant_to_rhs", 23) != 0)
1443 break;
1444 return 216; // "commute_int_constant_to_rhs"
1445 }
1446 break;
1447 case 'd': // 1 string to match.
1448 if (memcmp(RuleIdentifier.data()+1, "ouble_icmp_zero_or_combine", 26) != 0)
1449 break;
1450 return 123; // "double_icmp_zero_or_combine"
1451 case 'r': // 1 string to match.
1452 if (memcmp(RuleIdentifier.data()+1, "edundant_binop_in_equality", 26) != 0)
1453 break;
1454 return 124; // "redundant_binop_in_equality"
1455 case 't': // 1 string to match.
1456 if (memcmp(RuleIdentifier.data()+1, "runc_lshr_buildvector_fold", 26) != 0)
1457 break;
1458 return 104; // "trunc_lshr_buildvector_fold"
1459 case 'u': // 1 string to match.
1460 if (memcmp(RuleIdentifier.data()+1, "nmerge_anyext_build_vector", 26) != 0)
1461 break;
1462 return 233; // "unmerge_anyext_build_vector"
1463 }
1464 break;
1465 case 28: // 5 strings to match.
1466 switch (RuleIdentifier[0]) {
1467 default: break;
1468 case 'c': // 1 string to match.
1469 if (memcmp(RuleIdentifier.data()+1, "ombine_or_s64_with_s32_mask", 27) != 0)
1470 break;
1471 return 269; // "combine_or_s64_with_s32_mask"
1472 case 'd': // 1 string to match.
1473 if (memcmp(RuleIdentifier.data()+1, "ouble_icmp_zero_and_combine", 27) != 0)
1474 break;
1475 return 122; // "double_icmp_zero_and_combine"
1476 case 'o': // 1 string to match.
1477 if (memcmp(RuleIdentifier.data()+1, "pt_brcond_by_inverting_cond", 27) != 0)
1478 break;
1479 return 144; // "opt_brcond_by_inverting_cond"
1480 case 'p': // 1 string to match.
1481 if (memcmp(RuleIdentifier.data()+1, "ropagate_undef_shuffle_mask", 27) != 0)
1482 break;
1483 return 86; // "propagate_undef_shuffle_mask"
1484 case 's': // 1 string to match.
1485 if (memcmp(RuleIdentifier.data()+1, "hift_of_shifted_logic_chain", 27) != 0)
1486 break;
1487 return 170; // "shift_of_shifted_logic_chain"
1488 }
1489 break;
1490 case 29: // 7 strings to match.
1491 switch (RuleIdentifier[0]) {
1492 default: break;
1493 case 'b': // 1 string to match.
1494 if (memcmp(RuleIdentifier.data()+1, "itfield_extract_from_shr_and", 28) != 0)
1495 break;
1496 return 186; // "bitfield_extract_from_shr_and"
1497 case 'c': // 5 strings to match.
1498 if (RuleIdentifier[1] != 'o')
1499 break;
1500 switch (RuleIdentifier[2]) {
1501 default: break;
1502 case 'm': // 3 strings to match.
1503 if (memcmp(RuleIdentifier.data()+3, "bine_", 5) != 0)
1504 break;
1505 switch (RuleIdentifier[8]) {
1506 default: break;
1507 case 'a': // 1 string to match.
1508 if (memcmp(RuleIdentifier.data()+9, "nd_s64_with_s32_mask", 20) != 0)
1509 break;
1510 return 270; // "combine_and_s64_with_s32_mask"
1511 case 'e': // 1 string to match.
1512 if (memcmp(RuleIdentifier.data()+9, "xtracted_vector_load", 20) != 0)
1513 break;
1514 return 76; // "combine_extracted_vector_load"
1515 case 's': // 1 string to match.
1516 if (memcmp(RuleIdentifier.data()+9, "huffle_disjoint_mask", 20) != 0)
1517 break;
1518 return 231; // "combine_shuffle_disjoint_mask"
1519 }
1520 break;
1521 case 'n': // 2 strings to match.
1522 if (memcmp(RuleIdentifier.data()+3, "stant_fold_intrinsic_", 21) != 0)
1523 break;
1524 switch (RuleIdentifier[24]) {
1525 default: break;
1526 case 'r': // 1 string to match.
1527 if (memcmp(RuleIdentifier.data()+25, "ound", 4) != 0)
1528 break;
1529 return 154; // "constant_fold_intrinsic_round"
1530 case 't': // 1 string to match.
1531 if (memcmp(RuleIdentifier.data()+25, "runc", 4) != 0)
1532 break;
1533 return 153; // "constant_fold_intrinsic_trunc"
1534 }
1535 break;
1536 }
1537 break;
1538 case 'i': // 1 string to match.
1539 if (memcmp(RuleIdentifier.data()+1, "cmp_to_true_false_known_bits", 28) != 0)
1540 break;
1541 return 120; // "icmp_to_true_false_known_bits"
1542 }
1543 break;
1544 case 30: // 2 strings to match.
1545 switch (RuleIdentifier[0]) {
1546 default: break;
1547 case 'f': // 1 string to match.
1548 if (memcmp(RuleIdentifier.data()+1, "reeze_of_non_undef_non_poison", 29) != 0)
1549 break;
1550 return 47; // "freeze_of_non_undef_non_poison"
1551 case 'r': // 1 string to match.
1552 if (memcmp(RuleIdentifier.data()+1, "ight_identity_neg_zero_fp_nsz", 29) != 0)
1553 break;
1554 return 109; // "right_identity_neg_zero_fp_nsz"
1555 }
1556 break;
1557 case 31: // 2 strings to match.
1558 if (memcmp(RuleIdentifier.data()+0, "insert_vector_element_", 22) != 0)
1559 break;
1560 switch (RuleIdentifier[22]) {
1561 default: break;
1562 case 'e': // 1 string to match.
1563 if (memcmp(RuleIdentifier.data()+23, "lt_undef", 8) != 0)
1564 break;
1565 return 28; // "insert_vector_element_elt_undef"
1566 case 'i': // 1 string to match.
1567 if (memcmp(RuleIdentifier.data()+23, "dx_undef", 8) != 0)
1568 break;
1569 return 27; // "insert_vector_element_idx_undef"
1570 }
1571 break;
1572 case 32: // 4 strings to match.
1573 switch (RuleIdentifier[0]) {
1574 default: break;
1575 case 'b': // 1 string to match.
1576 if (memcmp(RuleIdentifier.data()+1, "itfield_extract_from_sext_inreg", 31) != 0)
1577 break;
1578 return 183; // "bitfield_extract_from_sext_inreg"
1579 case 'c': // 2 strings to match.
1580 if (memcmp(RuleIdentifier.data()+1, "ombine_f", 8) != 0)
1581 break;
1582 switch (RuleIdentifier[9]) {
1583 default: break;
1584 case 'a': // 1 string to match.
1585 if (memcmp(RuleIdentifier.data()+10, "dd_fmul_to_fmad_or_fma", 22) != 0)
1586 break;
1587 return 196; // "combine_fadd_fmul_to_fmad_or_fma"
1588 case 's': // 1 string to match.
1589 if (memcmp(RuleIdentifier.data()+10, "ub_fmul_to_fmad_or_fma", 22) != 0)
1590 break;
1591 return 200; // "combine_fsub_fmul_to_fmad_or_fma"
1592 }
1593 break;
1594 case 'e': // 1 string to match.
1595 if (memcmp(RuleIdentifier.data()+1, "xtract_vector_element_not_const", 31) != 0)
1596 break;
1597 return 31; // "extract_vector_element_not_const"
1598 }
1599 break;
1600 case 33: // 1 string to match.
1601 if (memcmp(RuleIdentifier.data()+0, "constant_fold_intrinsic_roundeven", 33) != 0)
1602 break;
1603 return 155; // "constant_fold_intrinsic_roundeven"
1604 case 34: // 2 strings to match.
1605 switch (RuleIdentifier[0]) {
1606 default: break;
1607 case 'c': // 1 string to match.
1608 if (memcmp(RuleIdentifier.data()+1, "ombine_fmul_with_select_to_fldexp", 33) != 0)
1609 break;
1610 return 264; // "combine_fmul_with_select_to_fldexp"
1611 case 'e': // 1 string to match.
1612 if (memcmp(RuleIdentifier.data()+1, "xtract_all_elts_from_build_vector", 33) != 0)
1613 break;
1614 return 73; // "extract_all_elts_from_build_vector"
1615 }
1616 break;
1617 case 35: // 1 string to match.
1618 if (memcmp(RuleIdentifier.data()+0, "extract_vector_element_build_vector", 35) != 0)
1619 break;
1620 return 33; // "extract_vector_element_build_vector"
1621 case 36: // 4 strings to match.
1622 switch (RuleIdentifier[0]) {
1623 default: break;
1624 case 'c': // 2 strings to match.
1625 if (memcmp(RuleIdentifier.data()+1, "ombine_", 7) != 0)
1626 break;
1627 switch (RuleIdentifier[8]) {
1628 default: break;
1629 case 'f': // 1 string to match.
1630 if (memcmp(RuleIdentifier.data()+9, "add_fma_fmul_to_fmad_or_fma", 27) != 0)
1631 break;
1632 return 198; // "combine_fadd_fma_fmul_to_fmad_or_fma"
1633 case 'i': // 1 string to match.
1634 if (memcmp(RuleIdentifier.data()+9, "nsert_vec_elts_build_vector", 27) != 0)
1635 break;
1636 return 71; // "combine_insert_vec_elts_build_vector"
1637 }
1638 break;
1639 case 'i': // 1 string to match.
1640 if (memcmp(RuleIdentifier.data()+1, "nsert_extract_vec_elt_out_of_bounds", 35) != 0)
1641 break;
1642 return 88; // "insert_extract_vec_elt_out_of_bounds"
1643 case 'm': // 1 string to match.
1644 if (memcmp(RuleIdentifier.data()+1, "atch_extract_of_element_undef_index", 35) != 0)
1645 break;
1646 return 26; // "match_extract_of_element_undef_index"
1647 }
1648 break;
1649 case 37: // 4 strings to match.
1650 switch (RuleIdentifier[0]) {
1651 default: break;
1652 case 'c': // 1 string to match.
1653 if (memcmp(RuleIdentifier.data()+1, "ombine_fsub_fneg_fmul_to_fmad_or_fma", 36) != 0)
1654 break;
1655 return 201; // "combine_fsub_fneg_fmul_to_fmad_or_fma"
1656 case 'e': // 1 string to match.
1657 if (memcmp(RuleIdentifier.data()+1, "xtract_vector_element_shuffle_vector", 36) != 0)
1658 break;
1659 return 41; // "extract_vector_element_shuffle_vector"
1660 case 'h': // 1 string to match.
1661 if (memcmp(RuleIdentifier.data()+1, "oist_logic_op_with_same_opcode_hands", 36) != 0)
1662 break;
1663 return 113; // "hoist_logic_op_with_same_opcode_hands"
1664 case 'm': // 1 string to match.
1665 if (memcmp(RuleIdentifier.data()+1, "atch_extract_of_element_undef_vector", 36) != 0)
1666 break;
1667 return 25; // "match_extract_of_element_undef_vector"
1668 }
1669 break;
1670 case 38: // 3 strings to match.
1671 if (memcmp(RuleIdentifier.data()+0, "combine_", 8) != 0)
1672 break;
1673 switch (RuleIdentifier[8]) {
1674 default: break;
1675 case 'f': // 2 strings to match.
1676 switch (RuleIdentifier[9]) {
1677 default: break;
1678 case 'a': // 1 string to match.
1679 if (memcmp(RuleIdentifier.data()+10, "dd_fpext_fmul_to_fmad_or_fma", 28) != 0)
1680 break;
1681 return 197; // "combine_fadd_fpext_fmul_to_fmad_or_fma"
1682 case 's': // 1 string to match.
1683 if (memcmp(RuleIdentifier.data()+10, "ub_fpext_fmul_to_fmad_or_fma", 28) != 0)
1684 break;
1685 return 202; // "combine_fsub_fpext_fmul_to_fmad_or_fma"
1686 }
1687 break;
1688 case 's': // 1 string to match.
1689 if (memcmp(RuleIdentifier.data()+9, "huffle_vector_to_build_vector", 29) != 0)
1690 break;
1691 return 268; // "combine_shuffle_vector_to_build_vector"
1692 }
1693 break;
1694 case 40: // 1 string to match.
1695 if (memcmp(RuleIdentifier.data()+0, "extract_vector_element_different_indices", 40) != 0)
1696 break;
1697 return 32; // "extract_vector_element_different_indices"
1698 case 42: // 9 strings to match.
1699 switch (RuleIdentifier[0]) {
1700 default: break;
1701 case 'c': // 1 string to match.
1702 if (memcmp(RuleIdentifier.data()+1, "ombine_fadd_fpext_fma_fmul_to_fmad_or_fma", 41) != 0)
1703 break;
1704 return 199; // "combine_fadd_fpext_fma_fmul_to_fmad_or_fma"
1705 case 'e': // 7 strings to match.
1706 if (memcmp(RuleIdentifier.data()+1, "xtract_vector_element_build_vector_trunc", 40) != 0)
1707 break;
1708 switch (RuleIdentifier[41]) {
1709 default: break;
1710 case '2': // 1 string to match.
1711 return 34; // "extract_vector_element_build_vector_trunc2"
1712 case '3': // 1 string to match.
1713 return 35; // "extract_vector_element_build_vector_trunc3"
1714 case '4': // 1 string to match.
1715 return 36; // "extract_vector_element_build_vector_trunc4"
1716 case '5': // 1 string to match.
1717 return 37; // "extract_vector_element_build_vector_trunc5"
1718 case '6': // 1 string to match.
1719 return 38; // "extract_vector_element_build_vector_trunc6"
1720 case '7': // 1 string to match.
1721 return 39; // "extract_vector_element_build_vector_trunc7"
1722 case '8': // 1 string to match.
1723 return 40; // "extract_vector_element_build_vector_trunc8"
1724 }
1725 break;
1726 case 'f': // 1 string to match.
1727 if (memcmp(RuleIdentifier.data()+1, "unnel_shift_or_shift_to_funnel_shift_left", 41) != 0)
1728 break;
1729 return 178; // "funnel_shift_or_shift_to_funnel_shift_left"
1730 }
1731 break;
1732 case 43: // 2 strings to match.
1733 switch (RuleIdentifier[0]) {
1734 default: break;
1735 case 'c': // 1 string to match.
1736 if (memcmp(RuleIdentifier.data()+1, "ombine_fsub_fpext_fneg_fmul_to_fmad_or_fma", 42) != 0)
1737 break;
1738 return 203; // "combine_fsub_fpext_fneg_fmul_to_fmad_or_fma"
1739 case 'f': // 1 string to match.
1740 if (memcmp(RuleIdentifier.data()+1, "unnel_shift_or_shift_to_funnel_shift_right", 42) != 0)
1741 break;
1742 return 179; // "funnel_shift_or_shift_to_funnel_shift_right"
1743 }
1744 break;
1745 case 44: // 1 string to match.
1746 if (memcmp(RuleIdentifier.data()+0, "insert_vector_element_extract_vector_element", 44) != 0)
1747 break;
1748 return 42; // "insert_vector_element_extract_vector_element"
1749 case 46: // 1 string to match.
1750 if (memcmp(RuleIdentifier.data()+0, "push_freeze_to_prevent_poison_from_propagating", 46) != 0)
1751 break;
1752 return 48; // "push_freeze_to_prevent_poison_from_propagating"
1753 }
1754#endif // ifndef NDEBUG
1755
1756 return std::nullopt;
1757}
1758static std::optional<std::pair<uint64_t, uint64_t>> getRuleRangeForIdentifier(StringRef RuleIdentifier) {
1759 std::pair<StringRef, StringRef> RangePair = RuleIdentifier.split('-');
1760 if (!RangePair.second.empty()) {
1761 const auto First = getRuleIdxForIdentifier(RangePair.first);
1762 const auto Last = getRuleIdxForIdentifier(RangePair.second);
1763 if (!First || !Last)
1764 return std::nullopt;
1765 if (First >= Last)
1766 report_fatal_error("Beginning of range should be before end of range");
1767 return {{*First, *Last + 1}};
1768 }
1769 if (RangePair.first == "*") {
1770 return {{0, 272}};
1771 }
1772 const auto I = getRuleIdxForIdentifier(RangePair.first);
1773 if (!I)
1774 return std::nullopt;
1775 return {{*I, *I + 1}};
1776}
1777
1778bool AMDGPUPreLegalizerCombinerImplRuleConfig::setRuleEnabled(StringRef RuleIdentifier) {
1779 auto MaybeRange = getRuleRangeForIdentifier(RuleIdentifier);
1780 if (!MaybeRange)
1781 return false;
1782 for (auto I = MaybeRange->first; I < MaybeRange->second; ++I)
1783 DisabledRules.reset(I);
1784 return true;
1785}
1786
1787bool AMDGPUPreLegalizerCombinerImplRuleConfig::setRuleDisabled(StringRef RuleIdentifier) {
1788 auto MaybeRange = getRuleRangeForIdentifier(RuleIdentifier);
1789 if (!MaybeRange)
1790 return false;
1791 for (auto I = MaybeRange->first; I < MaybeRange->second; ++I)
1792 DisabledRules.set(I);
1793 return true;
1794}
1795
1796static std::vector<std::string> AMDGPUPreLegalizerCombinerOption;
1797static cl::list<std::string> AMDGPUPreLegalizerCombinerDisableOption(
1798 "amdgpuprelegalizercombiner-disable-rule",
1799 cl::desc("Disable one or more combiner rules temporarily in the AMDGPUPreLegalizerCombiner pass"),
1800 cl::CommaSeparated,
1801 cl::Hidden,
1802 cl::cat(GICombinerOptionCategory),
1803 cl::callback([](const std::string &Str) {
1804 AMDGPUPreLegalizerCombinerOption.push_back(Str);
1805 }));
1806static cl::list<std::string> AMDGPUPreLegalizerCombinerOnlyEnableOption(
1807 "amdgpuprelegalizercombiner-only-enable-rule",
1808 cl::desc("Disable all rules in the AMDGPUPreLegalizerCombiner pass then re-enable the specified ones"),
1809 cl::Hidden,
1810 cl::cat(GICombinerOptionCategory),
1811 cl::callback([](const std::string &CommaSeparatedArg) {
1812 StringRef Str = CommaSeparatedArg;
1813 AMDGPUPreLegalizerCombinerOption.push_back("*");
1814 do {
1815 auto X = Str.split(",");
1816 AMDGPUPreLegalizerCombinerOption.push_back(("!" + X.first).str());
1817 Str = X.second;
1818 } while (!Str.empty());
1819 }));
1820
1821
1822bool AMDGPUPreLegalizerCombinerImplRuleConfig::isRuleEnabled(unsigned RuleID) const {
1823 return !DisabledRules.test(RuleID);
1824}
1825bool AMDGPUPreLegalizerCombinerImplRuleConfig::parseCommandLineOption() {
1826 for (StringRef Identifier : AMDGPUPreLegalizerCombinerOption) {
1827 bool Enabled = Identifier.consume_front("!");
1828 if (Enabled && !setRuleEnabled(Identifier))
1829 return false;
1830 if (!Enabled && !setRuleDisabled(Identifier))
1831 return false;
1832 }
1833 return true;
1834}
1835
1836
1837#endif // GET_GICOMBINER_TYPES
1838
1839#ifdef GET_GICOMBINER_TYPES
1840
1841const unsigned MAX_SUBTARGET_PREDICATES = 0;
1842using PredicateBitset = llvm::Bitset<MAX_SUBTARGET_PREDICATES>;
1843
1844#endif // GET_GICOMBINER_TYPES
1845
1846#ifdef GET_GICOMBINER_CLASS_MEMBERS
1847
1848PredicateBitset AvailableModuleFeatures;
1849mutable PredicateBitset AvailableFunctionFeatures;
1850PredicateBitset getAvailableFeatures() const {
1851 return AvailableModuleFeatures | AvailableFunctionFeatures;
1852}
1853PredicateBitset
1854computeAvailableModuleFeatures(const AMDGPUSubtarget *Subtarget) const;
1855PredicateBitset
1856computeAvailableFunctionFeatures(const AMDGPUSubtarget *Subtarget,
1857 const MachineFunction *MF) const;
1858void setupGeneratedPerFunctionState(MachineFunction &MF) override;
1859
1860#endif // GET_GICOMBINER_CLASS_MEMBERS
1861
1862#ifdef GET_GICOMBINER_CLASS_MEMBERS
1863
1864 mutable MatcherState State;
1865 typedef ComplexRendererFns(AMDGPUPreLegalizerCombinerImpl::*ComplexMatcherMemFn)(MachineOperand &) const;
1866 typedef void(AMDGPUPreLegalizerCombinerImpl::*CustomRendererFn)(MachineInstrBuilder &, const MachineInstr &, int) const;
1867 const ExecInfoTy<PredicateBitset, ComplexMatcherMemFn, CustomRendererFn> ExecInfo;
1868 static AMDGPUPreLegalizerCombinerImpl::ComplexMatcherMemFn ComplexPredicateFns[];
1869 static AMDGPUPreLegalizerCombinerImpl::CustomRendererFn CustomRenderers[];
1870 bool testImmPredicate_I64(unsigned PredicateID, int64_t Imm) const override;
1871 bool testImmPredicate_APInt(unsigned PredicateID, const APInt &Imm) const override;
1872 bool testImmPredicate_APFloat(unsigned PredicateID, const APFloat &Imm) const override;
1873 const uint8_t *getMatchTable() const override;
1874 bool testMIPredicate_MI(unsigned PredicateID, const MachineInstr &MI, const MatcherState &State) const override;
1875 bool testMOPredicate_MO(unsigned PredicateID, const MachineOperand &MO, const MatcherState &State) const override;
1876 bool testSimplePredicate(unsigned PredicateID) const override;
1877 bool runCustomAction(unsigned FnID, const MatcherState &State, NewMIVector &OutMIs) const override;
1878
1879#endif // GET_GICOMBINER_CLASS_MEMBERS
1880
1881#ifdef GET_GICOMBINER_IMPL
1882
1883// LLT Objects.
1884enum {
1885 GILLT_s32,
1886 GILLT_s64,
1887};
1888const static size_t NumTypeObjects = 2;
1889const static LLT TypeObjects[] = {
1890 LLT::scalar(32),
1891 LLT::scalar(64),
1892};
1893
1894// Bits for subtarget features that participate in instruction matching.
1895enum SubtargetFeatureBits : uint8_t {
1896};
1897
1898PredicateBitset AMDGPUPreLegalizerCombinerImpl::
1899computeAvailableModuleFeatures(const AMDGPUSubtarget *Subtarget) const {
1900 PredicateBitset Features{};
1901 return Features;
1902}
1903
1904void AMDGPUPreLegalizerCombinerImpl::setupGeneratedPerFunctionState(MachineFunction &MF) {
1905 AvailableFunctionFeatures = computeAvailableFunctionFeatures((const AMDGPUSubtarget *)&MF.getSubtarget(), &MF);
1906}
1907PredicateBitset AMDGPUPreLegalizerCombinerImpl::
1908computeAvailableFunctionFeatures(const AMDGPUSubtarget *Subtarget, const MachineFunction *MF) const {
1909 PredicateBitset Features{};
1910 return Features;
1911}
1912
1913// Feature bitsets.
1914enum {
1915 GIFBS_Invalid,
1916};
1917constexpr static PredicateBitset FeatureBitsets[] {
1918 {}, // GIFBS_Invalid
1919};
1920
1921// ComplexPattern predicates.
1922enum {
1923 GICP_Invalid,
1924};
1925// See constructor for table contents
1926
1927AMDGPUPreLegalizerCombinerImpl::ComplexMatcherMemFn
1928AMDGPUPreLegalizerCombinerImpl::ComplexPredicateFns[] = {
1929 nullptr, // GICP_Invalid
1930};
1931
1932enum {
1933 GICXXPred_MI_Predicate_GICombiner0 = GICXXPred_Invalid + 1,
1934 GICXXPred_MI_Predicate_GICombiner1,
1935 GICXXPred_MI_Predicate_GICombiner2,
1936 GICXXPred_MI_Predicate_GICombiner3,
1937 GICXXPred_MI_Predicate_GICombiner4,
1938 GICXXPred_MI_Predicate_GICombiner5,
1939 GICXXPred_MI_Predicate_GICombiner6,
1940 GICXXPred_MI_Predicate_GICombiner7,
1941 GICXXPred_MI_Predicate_GICombiner8,
1942 GICXXPred_MI_Predicate_GICombiner9,
1943 GICXXPred_MI_Predicate_GICombiner10,
1944 GICXXPred_MI_Predicate_GICombiner11,
1945 GICXXPred_MI_Predicate_GICombiner12,
1946 GICXXPred_MI_Predicate_GICombiner13,
1947 GICXXPred_MI_Predicate_GICombiner14,
1948 GICXXPred_MI_Predicate_GICombiner15,
1949 GICXXPred_MI_Predicate_GICombiner16,
1950 GICXXPred_MI_Predicate_GICombiner17,
1951 GICXXPred_MI_Predicate_GICombiner18,
1952 GICXXPred_MI_Predicate_GICombiner19,
1953 GICXXPred_MI_Predicate_GICombiner20,
1954 GICXXPred_MI_Predicate_GICombiner21,
1955 GICXXPred_MI_Predicate_GICombiner22,
1956 GICXXPred_MI_Predicate_GICombiner23,
1957 GICXXPred_MI_Predicate_GICombiner24,
1958};
1959bool AMDGPUPreLegalizerCombinerImpl::testMIPredicate_MI(unsigned PredicateID, const MachineInstr & MI, const MatcherState &State) const {
1960 switch (PredicateID) {
1961 case GICXXPred_MI_Predicate_GICombiner0: {
1962 return MRI.hasOneNonDBGUse(State.MIs[0]->getOperand(2).getReg());
1963 }
1964 case GICXXPred_MI_Predicate_GICombiner1: {
1965 return MRI.hasOneNonDBGUse(State.MIs[0]->getOperand(1).getReg());
1966 }
1967 case GICXXPred_MI_Predicate_GICombiner2: {
1968 return isGuaranteedNotToBePoison(State.MIs[0]->getOperand(1).getReg(), MRI);
1969 }
1970 case GICXXPred_MI_Predicate_GICombiner3: {
1971 return isGuaranteedNotToBeUndefOrPoison(State.MIs[0]->getOperand(1).getReg(), MRI);
1972 }
1973 case GICXXPred_MI_Predicate_GICombiner4: {
1974 return Helper.matchConstantFPOp(State.MIs[0]->getOperand(2), 1.0);
1975 }
1976 case GICXXPred_MI_Predicate_GICombiner5: {
1977 return MRI.getType(State.MIs[1]->getOperand(1).getReg()) != MRI.getType(State.MIs[0]->getOperand(0).getReg());
1978 }
1979 case GICXXPred_MI_Predicate_GICombiner6: {
1980 return Helper.matchConstantFPOp(State.MIs[0]->getOperand(2), -0.0);
1981 }
1982 case GICXXPred_MI_Predicate_GICombiner7: {
1983 return Helper.matchConstantFPOp(State.MIs[0]->getOperand(2), 0.0);
1984 }
1985 case GICXXPred_MI_Predicate_GICombiner8: {
1986 return Helper.matchConstantFPOp(State.MIs[0]->getOperand(2), -1.0);
1987 }
1988 case GICXXPred_MI_Predicate_GICombiner9: {
1989 return State.MIs[1]->getOperand(1).getPredicate() == CmpInst::ICMP_EQ &&
1990 !MRI.getType(State.MIs[1]->getOperand(2).getReg()).getScalarType().isPointer() &&
1991 (MRI.getType(State.MIs[1]->getOperand(2).getReg()) ==
1992 MRI.getType(State.MIs[2]->getOperand(2).getReg()));
1993 }
1994 case GICXXPred_MI_Predicate_GICombiner10: {
1995 return State.MIs[1]->getOperand(1).getPredicate() == CmpInst::ICMP_NE &&
1996 !MRI.getType(State.MIs[1]->getOperand(2).getReg()).getScalarType().isPointer() &&
1997 (MRI.getType(State.MIs[1]->getOperand(2).getReg()) ==
1998 MRI.getType(State.MIs[2]->getOperand(2).getReg()));
1999 }
2000 case GICXXPred_MI_Predicate_GICombiner11: {
2001 return MRI.hasOneNonDBGUse(State.MIs[0]->getOperand(2).getReg()) &&
2002 Helper.isLegalOrBeforeLegalizer(
2003 {TargetOpcode::G_SEXT_INREG, {MRI.getType(State.MIs[1]->getOperand(1).getReg())}});
2004 }
2005 case GICXXPred_MI_Predicate_GICombiner12: {
2006 return MRI.getType(State.MIs[0]->getOperand(1).getReg()) == MRI.getType(State.MIs[0]->getOperand(0).getReg()) &&
2007 VT->computeNumSignBits(State.MIs[0]->getOperand(1).getReg()) == MRI.getType(State.MIs[0]->getOperand(0).getReg()).getScalarSizeInBits();
2008 }
2009 case GICXXPred_MI_Predicate_GICombiner13: {
2010 return Helper.isLegalOrBeforeLegalizer({TargetOpcode::G_LSHR,
2011 {MRI.getType(State.MIs[2]->getOperand(1).getReg()),
2012 MRI.getType(State.MIs[1]->getOperand(2).getReg())}});
2013 }
2014 case GICXXPred_MI_Predicate_GICombiner14: {
2015 return Helper.isLegalOrBeforeLegalizer({TargetOpcode::G_SHL,
2016 {MRI.getType(State.MIs[2]->getOperand(1).getReg()),
2017 MRI.getType(State.MIs[1]->getOperand(2).getReg())}});
2018 }
2019 case GICXXPred_MI_Predicate_GICombiner15: {
2020 return Helper.matchTruncUSatU(*State.MIs[0], *State.MIs[1]);
2021 }
2022 case GICXXPred_MI_Predicate_GICombiner16: {
2023 return Helper.matchTruncUSatUToFPTOUISat(*State.MIs[0], *State.MIs[1]);
2024 }
2025 case GICXXPred_MI_Predicate_GICombiner17: {
2026 return MRI.hasOneNonDBGUse(State.MIs[0]->getOperand(2).getReg()) &&
2027 MRI.hasOneNonDBGUse(State.MIs[1]->getOperand(1).getReg());
2028 }
2029 case GICXXPred_MI_Predicate_GICombiner18: {
2030 return MRI.hasOneNonDBGUse(State.MIs[0]->getOperand(1).getReg()) &&
2031 MRI.hasOneNonDBGUse(State.MIs[1]->getOperand(1).getReg());
2032 }
2033 case GICXXPred_MI_Predicate_GICombiner19: {
2034 return MRI.hasOneNonDBGUse(State.MIs[1]->getOperand(2).getReg()) &&
2035 MRI.hasOneNonDBGUse(State.MIs[0]->getOperand(2).getReg());
2036 }
2037 case GICXXPred_MI_Predicate_GICombiner20: {
2038 return Helper.matchAVG(*State.MIs[0], MRI, State.MIs[2]->getOperand(1).getReg(), State.MIs[3]->getOperand(1).getReg(), TargetOpcode::G_UAVGFLOOR);
2039 }
2040 case GICXXPred_MI_Predicate_GICombiner21: {
2041 return Helper.matchAVG(*State.MIs[0], MRI, State.MIs[2]->getOperand(1).getReg(), State.MIs[3]->getOperand(1).getReg(), TargetOpcode::G_SAVGFLOOR);
2042 }
2043 case GICXXPred_MI_Predicate_GICombiner22: {
2044 return Helper.matchAVG(*State.MIs[0], MRI, State.MIs[3]->getOperand(1).getReg(), State.MIs[4]->getOperand(1).getReg(), TargetOpcode::G_UAVGCEIL);
2045 }
2046 case GICXXPred_MI_Predicate_GICombiner23: {
2047 return Helper.matchAVG(*State.MIs[0], MRI, State.MIs[3]->getOperand(1).getReg(), State.MIs[4]->getOperand(1).getReg(), TargetOpcode::G_SAVGCEIL);
2048 }
2049 case GICXXPred_MI_Predicate_GICombiner24: {
2050 return Helper.matchConstantIs32BitMask(State.MIs[0]->getOperand(1).getReg()) ||
2051 Helper.matchConstantIs32BitMask(State.MIs[0]->getOperand(2).getReg());
2052 }
2053 }
2054 llvm_unreachable("Unknown predicate");
2055 return false;
2056}
2057bool AMDGPUPreLegalizerCombinerImpl::testMOPredicate_MO(unsigned PredicateID, const MachineOperand & MO, const MatcherState &State) const {
2058 llvm_unreachable("Unknown predicate");
2059 return false;
2060}
2061bool AMDGPUPreLegalizerCombinerImpl::testImmPredicate_I64(unsigned PredicateID, int64_t Imm) const {
2062 llvm_unreachable("Unknown predicate");
2063 return false;
2064}
2065bool AMDGPUPreLegalizerCombinerImpl::testImmPredicate_APFloat(unsigned PredicateID, const APFloat & Imm) const {
2066 llvm_unreachable("Unknown predicate");
2067 return false;
2068}
2069bool AMDGPUPreLegalizerCombinerImpl::testImmPredicate_APInt(unsigned PredicateID, const APInt & Imm) const {
2070 llvm_unreachable("Unknown predicate");
2071 return false;
2072}
2073enum {
2074 GICXXPred_Simple_IsRule0Enabled = GICXXPred_Invalid + 1,
2075 GICXXPred_Simple_IsRule1Enabled,
2076 GICXXPred_Simple_IsRule2Enabled,
2077 GICXXPred_Simple_IsRule3Enabled,
2078 GICXXPred_Simple_IsRule4Enabled,
2079 GICXXPred_Simple_IsRule5Enabled,
2080 GICXXPred_Simple_IsRule6Enabled,
2081 GICXXPred_Simple_IsRule7Enabled,
2082 GICXXPred_Simple_IsRule8Enabled,
2083 GICXXPred_Simple_IsRule9Enabled,
2084 GICXXPred_Simple_IsRule10Enabled,
2085 GICXXPred_Simple_IsRule11Enabled,
2086 GICXXPred_Simple_IsRule12Enabled,
2087 GICXXPred_Simple_IsRule13Enabled,
2088 GICXXPred_Simple_IsRule14Enabled,
2089 GICXXPred_Simple_IsRule15Enabled,
2090 GICXXPred_Simple_IsRule16Enabled,
2091 GICXXPred_Simple_IsRule17Enabled,
2092 GICXXPred_Simple_IsRule18Enabled,
2093 GICXXPred_Simple_IsRule19Enabled,
2094 GICXXPred_Simple_IsRule20Enabled,
2095 GICXXPred_Simple_IsRule21Enabled,
2096 GICXXPred_Simple_IsRule22Enabled,
2097 GICXXPred_Simple_IsRule23Enabled,
2098 GICXXPred_Simple_IsRule24Enabled,
2099 GICXXPred_Simple_IsRule25Enabled,
2100 GICXXPred_Simple_IsRule26Enabled,
2101 GICXXPred_Simple_IsRule27Enabled,
2102 GICXXPred_Simple_IsRule28Enabled,
2103 GICXXPred_Simple_IsRule29Enabled,
2104 GICXXPred_Simple_IsRule30Enabled,
2105 GICXXPred_Simple_IsRule31Enabled,
2106 GICXXPred_Simple_IsRule32Enabled,
2107 GICXXPred_Simple_IsRule33Enabled,
2108 GICXXPred_Simple_IsRule34Enabled,
2109 GICXXPred_Simple_IsRule35Enabled,
2110 GICXXPred_Simple_IsRule36Enabled,
2111 GICXXPred_Simple_IsRule37Enabled,
2112 GICXXPred_Simple_IsRule38Enabled,
2113 GICXXPred_Simple_IsRule39Enabled,
2114 GICXXPred_Simple_IsRule40Enabled,
2115 GICXXPred_Simple_IsRule41Enabled,
2116 GICXXPred_Simple_IsRule42Enabled,
2117 GICXXPred_Simple_IsRule43Enabled,
2118 GICXXPred_Simple_IsRule44Enabled,
2119 GICXXPred_Simple_IsRule45Enabled,
2120 GICXXPred_Simple_IsRule46Enabled,
2121 GICXXPred_Simple_IsRule47Enabled,
2122 GICXXPred_Simple_IsRule48Enabled,
2123 GICXXPred_Simple_IsRule49Enabled,
2124 GICXXPred_Simple_IsRule50Enabled,
2125 GICXXPred_Simple_IsRule51Enabled,
2126 GICXXPred_Simple_IsRule52Enabled,
2127 GICXXPred_Simple_IsRule53Enabled,
2128 GICXXPred_Simple_IsRule54Enabled,
2129 GICXXPred_Simple_IsRule55Enabled,
2130 GICXXPred_Simple_IsRule56Enabled,
2131 GICXXPred_Simple_IsRule57Enabled,
2132 GICXXPred_Simple_IsRule58Enabled,
2133 GICXXPred_Simple_IsRule59Enabled,
2134 GICXXPred_Simple_IsRule60Enabled,
2135 GICXXPred_Simple_IsRule61Enabled,
2136 GICXXPred_Simple_IsRule62Enabled,
2137 GICXXPred_Simple_IsRule63Enabled,
2138 GICXXPred_Simple_IsRule64Enabled,
2139 GICXXPred_Simple_IsRule65Enabled,
2140 GICXXPred_Simple_IsRule66Enabled,
2141 GICXXPred_Simple_IsRule67Enabled,
2142 GICXXPred_Simple_IsRule68Enabled,
2143 GICXXPred_Simple_IsRule69Enabled,
2144 GICXXPred_Simple_IsRule70Enabled,
2145 GICXXPred_Simple_IsRule71Enabled,
2146 GICXXPred_Simple_IsRule72Enabled,
2147 GICXXPred_Simple_IsRule73Enabled,
2148 GICXXPred_Simple_IsRule74Enabled,
2149 GICXXPred_Simple_IsRule75Enabled,
2150 GICXXPred_Simple_IsRule76Enabled,
2151 GICXXPred_Simple_IsRule77Enabled,
2152 GICXXPred_Simple_IsRule78Enabled,
2153 GICXXPred_Simple_IsRule79Enabled,
2154 GICXXPred_Simple_IsRule80Enabled,
2155 GICXXPred_Simple_IsRule81Enabled,
2156 GICXXPred_Simple_IsRule82Enabled,
2157 GICXXPred_Simple_IsRule83Enabled,
2158 GICXXPred_Simple_IsRule84Enabled,
2159 GICXXPred_Simple_IsRule85Enabled,
2160 GICXXPred_Simple_IsRule86Enabled,
2161 GICXXPred_Simple_IsRule87Enabled,
2162 GICXXPred_Simple_IsRule88Enabled,
2163 GICXXPred_Simple_IsRule89Enabled,
2164 GICXXPred_Simple_IsRule90Enabled,
2165 GICXXPred_Simple_IsRule91Enabled,
2166 GICXXPred_Simple_IsRule92Enabled,
2167 GICXXPred_Simple_IsRule93Enabled,
2168 GICXXPred_Simple_IsRule94Enabled,
2169 GICXXPred_Simple_IsRule95Enabled,
2170 GICXXPred_Simple_IsRule96Enabled,
2171 GICXXPred_Simple_IsRule97Enabled,
2172 GICXXPred_Simple_IsRule98Enabled,
2173 GICXXPred_Simple_IsRule99Enabled,
2174 GICXXPred_Simple_IsRule100Enabled,
2175 GICXXPred_Simple_IsRule101Enabled,
2176 GICXXPred_Simple_IsRule102Enabled,
2177 GICXXPred_Simple_IsRule103Enabled,
2178 GICXXPred_Simple_IsRule104Enabled,
2179 GICXXPred_Simple_IsRule105Enabled,
2180 GICXXPred_Simple_IsRule106Enabled,
2181 GICXXPred_Simple_IsRule107Enabled,
2182 GICXXPred_Simple_IsRule108Enabled,
2183 GICXXPred_Simple_IsRule109Enabled,
2184 GICXXPred_Simple_IsRule110Enabled,
2185 GICXXPred_Simple_IsRule111Enabled,
2186 GICXXPred_Simple_IsRule112Enabled,
2187 GICXXPred_Simple_IsRule113Enabled,
2188 GICXXPred_Simple_IsRule114Enabled,
2189 GICXXPred_Simple_IsRule115Enabled,
2190 GICXXPred_Simple_IsRule116Enabled,
2191 GICXXPred_Simple_IsRule117Enabled,
2192 GICXXPred_Simple_IsRule118Enabled,
2193 GICXXPred_Simple_IsRule119Enabled,
2194 GICXXPred_Simple_IsRule120Enabled,
2195 GICXXPred_Simple_IsRule121Enabled,
2196 GICXXPred_Simple_IsRule122Enabled,
2197 GICXXPred_Simple_IsRule123Enabled,
2198 GICXXPred_Simple_IsRule124Enabled,
2199 GICXXPred_Simple_IsRule125Enabled,
2200 GICXXPred_Simple_IsRule126Enabled,
2201 GICXXPred_Simple_IsRule127Enabled,
2202 GICXXPred_Simple_IsRule128Enabled,
2203 GICXXPred_Simple_IsRule129Enabled,
2204 GICXXPred_Simple_IsRule130Enabled,
2205 GICXXPred_Simple_IsRule131Enabled,
2206 GICXXPred_Simple_IsRule132Enabled,
2207 GICXXPred_Simple_IsRule133Enabled,
2208 GICXXPred_Simple_IsRule134Enabled,
2209 GICXXPred_Simple_IsRule135Enabled,
2210 GICXXPred_Simple_IsRule136Enabled,
2211 GICXXPred_Simple_IsRule137Enabled,
2212 GICXXPred_Simple_IsRule138Enabled,
2213 GICXXPred_Simple_IsRule139Enabled,
2214 GICXXPred_Simple_IsRule140Enabled,
2215 GICXXPred_Simple_IsRule141Enabled,
2216 GICXXPred_Simple_IsRule142Enabled,
2217 GICXXPred_Simple_IsRule143Enabled,
2218 GICXXPred_Simple_IsRule144Enabled,
2219 GICXXPred_Simple_IsRule145Enabled,
2220 GICXXPred_Simple_IsRule146Enabled,
2221 GICXXPred_Simple_IsRule147Enabled,
2222 GICXXPred_Simple_IsRule148Enabled,
2223 GICXXPred_Simple_IsRule149Enabled,
2224 GICXXPred_Simple_IsRule150Enabled,
2225 GICXXPred_Simple_IsRule151Enabled,
2226 GICXXPred_Simple_IsRule152Enabled,
2227 GICXXPred_Simple_IsRule153Enabled,
2228 GICXXPred_Simple_IsRule154Enabled,
2229 GICXXPred_Simple_IsRule155Enabled,
2230 GICXXPred_Simple_IsRule156Enabled,
2231 GICXXPred_Simple_IsRule157Enabled,
2232 GICXXPred_Simple_IsRule158Enabled,
2233 GICXXPred_Simple_IsRule159Enabled,
2234 GICXXPred_Simple_IsRule160Enabled,
2235 GICXXPred_Simple_IsRule161Enabled,
2236 GICXXPred_Simple_IsRule162Enabled,
2237 GICXXPred_Simple_IsRule163Enabled,
2238 GICXXPred_Simple_IsRule164Enabled,
2239 GICXXPred_Simple_IsRule165Enabled,
2240 GICXXPred_Simple_IsRule166Enabled,
2241 GICXXPred_Simple_IsRule167Enabled,
2242 GICXXPred_Simple_IsRule168Enabled,
2243 GICXXPred_Simple_IsRule169Enabled,
2244 GICXXPred_Simple_IsRule170Enabled,
2245 GICXXPred_Simple_IsRule171Enabled,
2246 GICXXPred_Simple_IsRule172Enabled,
2247 GICXXPred_Simple_IsRule173Enabled,
2248 GICXXPred_Simple_IsRule174Enabled,
2249 GICXXPred_Simple_IsRule175Enabled,
2250 GICXXPred_Simple_IsRule176Enabled,
2251 GICXXPred_Simple_IsRule177Enabled,
2252 GICXXPred_Simple_IsRule178Enabled,
2253 GICXXPred_Simple_IsRule179Enabled,
2254 GICXXPred_Simple_IsRule180Enabled,
2255 GICXXPred_Simple_IsRule181Enabled,
2256 GICXXPred_Simple_IsRule182Enabled,
2257 GICXXPred_Simple_IsRule183Enabled,
2258 GICXXPred_Simple_IsRule184Enabled,
2259 GICXXPred_Simple_IsRule185Enabled,
2260 GICXXPred_Simple_IsRule186Enabled,
2261 GICXXPred_Simple_IsRule187Enabled,
2262 GICXXPred_Simple_IsRule188Enabled,
2263 GICXXPred_Simple_IsRule189Enabled,
2264 GICXXPred_Simple_IsRule190Enabled,
2265 GICXXPred_Simple_IsRule191Enabled,
2266 GICXXPred_Simple_IsRule192Enabled,
2267 GICXXPred_Simple_IsRule193Enabled,
2268 GICXXPred_Simple_IsRule194Enabled,
2269 GICXXPred_Simple_IsRule195Enabled,
2270 GICXXPred_Simple_IsRule196Enabled,
2271 GICXXPred_Simple_IsRule197Enabled,
2272 GICXXPred_Simple_IsRule198Enabled,
2273 GICXXPred_Simple_IsRule199Enabled,
2274 GICXXPred_Simple_IsRule200Enabled,
2275 GICXXPred_Simple_IsRule201Enabled,
2276 GICXXPred_Simple_IsRule202Enabled,
2277 GICXXPred_Simple_IsRule203Enabled,
2278 GICXXPred_Simple_IsRule204Enabled,
2279 GICXXPred_Simple_IsRule205Enabled,
2280 GICXXPred_Simple_IsRule206Enabled,
2281 GICXXPred_Simple_IsRule207Enabled,
2282 GICXXPred_Simple_IsRule208Enabled,
2283 GICXXPred_Simple_IsRule209Enabled,
2284 GICXXPred_Simple_IsRule210Enabled,
2285 GICXXPred_Simple_IsRule211Enabled,
2286 GICXXPred_Simple_IsRule212Enabled,
2287 GICXXPred_Simple_IsRule213Enabled,
2288 GICXXPred_Simple_IsRule214Enabled,
2289 GICXXPred_Simple_IsRule215Enabled,
2290 GICXXPred_Simple_IsRule216Enabled,
2291 GICXXPred_Simple_IsRule217Enabled,
2292 GICXXPred_Simple_IsRule218Enabled,
2293 GICXXPred_Simple_IsRule219Enabled,
2294 GICXXPred_Simple_IsRule220Enabled,
2295 GICXXPred_Simple_IsRule221Enabled,
2296 GICXXPred_Simple_IsRule222Enabled,
2297 GICXXPred_Simple_IsRule223Enabled,
2298 GICXXPred_Simple_IsRule224Enabled,
2299 GICXXPred_Simple_IsRule225Enabled,
2300 GICXXPred_Simple_IsRule226Enabled,
2301 GICXXPred_Simple_IsRule227Enabled,
2302 GICXXPred_Simple_IsRule228Enabled,
2303 GICXXPred_Simple_IsRule229Enabled,
2304 GICXXPred_Simple_IsRule230Enabled,
2305 GICXXPred_Simple_IsRule231Enabled,
2306 GICXXPred_Simple_IsRule232Enabled,
2307 GICXXPred_Simple_IsRule233Enabled,
2308 GICXXPred_Simple_IsRule234Enabled,
2309 GICXXPred_Simple_IsRule235Enabled,
2310 GICXXPred_Simple_IsRule236Enabled,
2311 GICXXPred_Simple_IsRule237Enabled,
2312 GICXXPred_Simple_IsRule238Enabled,
2313 GICXXPred_Simple_IsRule239Enabled,
2314 GICXXPred_Simple_IsRule240Enabled,
2315 GICXXPred_Simple_IsRule241Enabled,
2316 GICXXPred_Simple_IsRule242Enabled,
2317 GICXXPred_Simple_IsRule243Enabled,
2318 GICXXPred_Simple_IsRule244Enabled,
2319 GICXXPred_Simple_IsRule245Enabled,
2320 GICXXPred_Simple_IsRule246Enabled,
2321 GICXXPred_Simple_IsRule247Enabled,
2322 GICXXPred_Simple_IsRule248Enabled,
2323 GICXXPred_Simple_IsRule249Enabled,
2324 GICXXPred_Simple_IsRule250Enabled,
2325 GICXXPred_Simple_IsRule251Enabled,
2326 GICXXPred_Simple_IsRule252Enabled,
2327 GICXXPred_Simple_IsRule253Enabled,
2328 GICXXPred_Simple_IsRule254Enabled,
2329 GICXXPred_Simple_IsRule255Enabled,
2330 GICXXPred_Simple_IsRule256Enabled,
2331 GICXXPred_Simple_IsRule257Enabled,
2332 GICXXPred_Simple_IsRule258Enabled,
2333 GICXXPred_Simple_IsRule259Enabled,
2334 GICXXPred_Simple_IsRule260Enabled,
2335 GICXXPred_Simple_IsRule261Enabled,
2336 GICXXPred_Simple_IsRule262Enabled,
2337 GICXXPred_Simple_IsRule263Enabled,
2338 GICXXPred_Simple_IsRule264Enabled,
2339 GICXXPred_Simple_IsRule265Enabled,
2340 GICXXPred_Simple_IsRule266Enabled,
2341 GICXXPred_Simple_IsRule267Enabled,
2342 GICXXPred_Simple_IsRule268Enabled,
2343 GICXXPred_Simple_IsRule269Enabled,
2344 GICXXPred_Simple_IsRule270Enabled,
2345 GICXXPred_Simple_IsRule271Enabled,
2346};
2347
2348bool AMDGPUPreLegalizerCombinerImpl::testSimplePredicate(unsigned Predicate) const {
2349 return RuleConfig.isRuleEnabled(Predicate - GICXXPred_Invalid - 1);
2350}
2351// Custom renderers.
2352enum {
2353 GICR_Invalid,
2354};
2355AMDGPUPreLegalizerCombinerImpl::CustomRendererFn
2356AMDGPUPreLegalizerCombinerImpl::CustomRenderers[] = {
2357 nullptr, // GICR_Invalid
2358};
2359
2360static bool AMDGPUPreLegalizerCombinerImpl_canMatchOpcode(unsigned Opc) {
2361 switch (Opc) {
2362 case TargetOpcode::G_FCMP:
2363 case TargetOpcode::G_FSHL:
2364 case TargetOpcode::G_FSHR:
2365 case TargetOpcode::G_ICMP:
2366 case TargetOpcode::G_INSERT_VECTOR_ELT:
2367 case TargetOpcode::G_SELECT:
2368 case TargetOpcode::G_SHUFFLE_VECTOR:
2369 case TargetOpcode::G_ADD:
2370 case TargetOpcode::G_AND:
2371 case TargetOpcode::G_ASHR:
2372 case TargetOpcode::G_EXTRACT_VECTOR_ELT:
2373 case TargetOpcode::G_FADD:
2374 case TargetOpcode::G_FCOPYSIGN:
2375 case TargetOpcode::G_FDIV:
2376 case TargetOpcode::G_FMAXIMUM:
2377 case TargetOpcode::G_FMAXIMUMNUM:
2378 case TargetOpcode::G_FMAXNUM:
2379 case TargetOpcode::G_FMINIMUM:
2380 case TargetOpcode::G_FMINIMUMNUM:
2381 case TargetOpcode::G_FMINNUM:
2382 case TargetOpcode::G_FMUL:
2383 case TargetOpcode::G_FPOWI:
2384 case TargetOpcode::G_FREM:
2385 case TargetOpcode::G_FSUB:
2386 case TargetOpcode::G_LSHR:
2387 case TargetOpcode::G_MERGE_VALUES:
2388 case TargetOpcode::G_MUL:
2389 case TargetOpcode::G_OR:
2390 case TargetOpcode::G_PTR_ADD:
2391 case TargetOpcode::G_ROTL:
2392 case TargetOpcode::G_ROTR:
2393 case TargetOpcode::G_SDIV:
2394 case TargetOpcode::G_SEXT_INREG:
2395 case TargetOpcode::G_SHL:
2396 case TargetOpcode::G_SREM:
2397 case TargetOpcode::G_SUB:
2398 case TargetOpcode::G_UDIV:
2399 case TargetOpcode::G_UREM:
2400 case TargetOpcode::G_XOR:
2401 case TargetOpcode::COPY:
2402 case TargetOpcode::G_ABS:
2403 case TargetOpcode::G_ANYEXT:
2404 case TargetOpcode::G_BITCAST:
2405 case TargetOpcode::G_BITREVERSE:
2406 case TargetOpcode::G_BSWAP:
2407 case TargetOpcode::G_BUILD_VECTOR:
2408 case TargetOpcode::G_CTLZ:
2409 case TargetOpcode::G_CTLZ_ZERO_POISON:
2410 case TargetOpcode::G_CTPOP:
2411 case TargetOpcode::G_CTTZ:
2412 case TargetOpcode::G_CTTZ_ZERO_POISON:
2413 case TargetOpcode::G_FABS:
2414 case TargetOpcode::G_FCANONICALIZE:
2415 case TargetOpcode::G_FCEIL:
2416 case TargetOpcode::G_FFLOOR:
2417 case TargetOpcode::G_FLOG2:
2418 case TargetOpcode::G_FNEARBYINT:
2419 case TargetOpcode::G_FNEG:
2420 case TargetOpcode::G_FPEXT:
2421 case TargetOpcode::G_FPTOSI:
2422 case TargetOpcode::G_FPTOUI:
2423 case TargetOpcode::G_FPTRUNC:
2424 case TargetOpcode::G_FREEZE:
2425 case TargetOpcode::G_FRINT:
2426 case TargetOpcode::G_FSQRT:
2427 case TargetOpcode::G_INTRINSIC_ROUND:
2428 case TargetOpcode::G_INTRINSIC_ROUNDEVEN:
2429 case TargetOpcode::G_INTRINSIC_TRUNC:
2430 case TargetOpcode::G_INTTOPTR:
2431 case TargetOpcode::G_PTRTOINT:
2432 case TargetOpcode::G_SEXT:
2433 case TargetOpcode::G_SITOFP:
2434 case TargetOpcode::G_TRUNC:
2435 case TargetOpcode::G_TRUNC_USAT_U:
2436 case TargetOpcode::G_UITOFP:
2437 case TargetOpcode::G_ZEXT:
2438 case TargetOpcode::G_BR:
2439 case TargetOpcode::G_BUILD_VECTOR_TRUNC:
2440 case TargetOpcode::G_CONCAT_VECTORS:
2441 case TargetOpcode::G_FMA:
2442 case TargetOpcode::G_FMAD:
2443 case TargetOpcode::G_FMAXNUM_IEEE:
2444 case TargetOpcode::G_FMINNUM_IEEE:
2445 case TargetOpcode::G_LOAD:
2446 case TargetOpcode::G_PHI:
2447 case TargetOpcode::G_SADDE:
2448 case TargetOpcode::G_SADDO:
2449 case TargetOpcode::G_SADDSAT:
2450 case TargetOpcode::G_SEXTLOAD:
2451 case TargetOpcode::G_SMAX:
2452 case TargetOpcode::G_SMIN:
2453 case TargetOpcode::G_SMULFIX:
2454 case TargetOpcode::G_SMULFIXSAT:
2455 case TargetOpcode::G_SMULH:
2456 case TargetOpcode::G_SMULO:
2457 case TargetOpcode::G_SSHLSAT:
2458 case TargetOpcode::G_SSUBE:
2459 case TargetOpcode::G_SSUBO:
2460 case TargetOpcode::G_STORE:
2461 case TargetOpcode::G_UADDE:
2462 case TargetOpcode::G_UADDO:
2463 case TargetOpcode::G_UADDSAT:
2464 case TargetOpcode::G_UMAX:
2465 case TargetOpcode::G_UMIN:
2466 case TargetOpcode::G_UMULFIX:
2467 case TargetOpcode::G_UMULFIXSAT:
2468 case TargetOpcode::G_UMULH:
2469 case TargetOpcode::G_UMULO:
2470 case TargetOpcode::G_UNMERGE_VALUES:
2471 case TargetOpcode::G_USHLSAT:
2472 case TargetOpcode::G_USUBE:
2473 case TargetOpcode::G_USUBO:
2474 case TargetOpcode::G_ZEXTLOAD:
2475 return true;
2476 default:
2477 return false;
2478 }
2479}
2480
2481bool AMDGPUPreLegalizerCombinerImpl::tryCombineAllImpl(MachineInstr &I) const {
2482 if (!AMDGPUPreLegalizerCombinerImpl_canMatchOpcode(I.getOpcode()))
2483 return false;
2484 const PredicateBitset AvailableFeatures = getAvailableFeatures();
2485 State.MIs.clear();
2486 State.MIs.push_back(&I);
2487 if (executeMatchTable(*this, State, ExecInfo, B, getMatchTable(), Helper.getTII(), MRI, Helper.getTRI(), Helper.getRBI(), AvailableFeatures, /*CoverageInfo*/ nullptr)) {
2488 return true;
2489 }
2490
2491 return false;
2492}
2493
2494enum {
2495 GICXXCustomAction_GICombiner0 = GICXXCustomAction_Invalid + 1,
2496 GICXXCustomAction_GICombiner1,
2497 GICXXCustomAction_GICombiner2,
2498 GICXXCustomAction_GICombiner3,
2499 GICXXCustomAction_GICombiner4,
2500 GICXXCustomAction_GICombiner5,
2501 GICXXCustomAction_GICombiner6,
2502 GICXXCustomAction_GICombiner7,
2503 GICXXCustomAction_GICombiner8,
2504 GICXXCustomAction_GICombiner9,
2505 GICXXCustomAction_GICombiner10,
2506 GICXXCustomAction_GICombiner11,
2507 GICXXCustomAction_GICombiner12,
2508 GICXXCustomAction_GICombiner13,
2509 GICXXCustomAction_GICombiner14,
2510 GICXXCustomAction_GICombiner15,
2511 GICXXCustomAction_GICombiner16,
2512 GICXXCustomAction_GICombiner17,
2513 GICXXCustomAction_GICombiner18,
2514 GICXXCustomAction_GICombiner19,
2515 GICXXCustomAction_GICombiner20,
2516 GICXXCustomAction_GICombiner21,
2517 GICXXCustomAction_GICombiner22,
2518 GICXXCustomAction_GICombiner23,
2519 GICXXCustomAction_GICombiner24,
2520 GICXXCustomAction_GICombiner25,
2521 GICXXCustomAction_GICombiner26,
2522 GICXXCustomAction_GICombiner27,
2523 GICXXCustomAction_GICombiner28,
2524 GICXXCustomAction_GICombiner29,
2525 GICXXCustomAction_GICombiner30,
2526 GICXXCustomAction_GICombiner31,
2527 GICXXCustomAction_GICombiner32,
2528 GICXXCustomAction_GICombiner33,
2529 GICXXCustomAction_GICombiner34,
2530 GICXXCustomAction_GICombiner35,
2531 GICXXCustomAction_GICombiner36,
2532 GICXXCustomAction_GICombiner37,
2533 GICXXCustomAction_GICombiner38,
2534 GICXXCustomAction_GICombiner39,
2535 GICXXCustomAction_GICombiner40,
2536 GICXXCustomAction_GICombiner41,
2537 GICXXCustomAction_GICombiner42,
2538 GICXXCustomAction_GICombiner43,
2539 GICXXCustomAction_GICombiner44,
2540 GICXXCustomAction_GICombiner45,
2541 GICXXCustomAction_GICombiner46,
2542 GICXXCustomAction_GICombiner47,
2543 GICXXCustomAction_GICombiner48,
2544 GICXXCustomAction_GICombiner49,
2545 GICXXCustomAction_GICombiner50,
2546 GICXXCustomAction_GICombiner51,
2547 GICXXCustomAction_GICombiner52,
2548 GICXXCustomAction_GICombiner53,
2549 GICXXCustomAction_GICombiner54,
2550 GICXXCustomAction_GICombiner55,
2551 GICXXCustomAction_GICombiner56,
2552 GICXXCustomAction_GICombiner57,
2553 GICXXCustomAction_GICombiner58,
2554 GICXXCustomAction_GICombiner59,
2555 GICXXCustomAction_GICombiner60,
2556 GICXXCustomAction_GICombiner61,
2557 GICXXCustomAction_GICombiner62,
2558 GICXXCustomAction_GICombiner63,
2559 GICXXCustomAction_GICombiner64,
2560 GICXXCustomAction_GICombiner65,
2561 GICXXCustomAction_GICombiner66,
2562 GICXXCustomAction_GICombiner67,
2563 GICXXCustomAction_GICombiner68,
2564 GICXXCustomAction_GICombiner69,
2565 GICXXCustomAction_GICombiner70,
2566 GICXXCustomAction_GICombiner71,
2567 GICXXCustomAction_GICombiner72,
2568 GICXXCustomAction_GICombiner73,
2569 GICXXCustomAction_GICombiner74,
2570 GICXXCustomAction_GICombiner75,
2571 GICXXCustomAction_GICombiner76,
2572 GICXXCustomAction_GICombiner77,
2573 GICXXCustomAction_GICombiner78,
2574 GICXXCustomAction_GICombiner79,
2575 GICXXCustomAction_GICombiner80,
2576 GICXXCustomAction_GICombiner81,
2577 GICXXCustomAction_GICombiner82,
2578 GICXXCustomAction_GICombiner83,
2579 GICXXCustomAction_GICombiner84,
2580 GICXXCustomAction_GICombiner85,
2581 GICXXCustomAction_GICombiner86,
2582 GICXXCustomAction_GICombiner87,
2583 GICXXCustomAction_GICombiner88,
2584 GICXXCustomAction_GICombiner89,
2585 GICXXCustomAction_GICombiner90,
2586 GICXXCustomAction_GICombiner91,
2587 GICXXCustomAction_GICombiner92,
2588 GICXXCustomAction_GICombiner93,
2589 GICXXCustomAction_GICombiner94,
2590 GICXXCustomAction_GICombiner95,
2591 GICXXCustomAction_GICombiner96,
2592 GICXXCustomAction_GICombiner97,
2593 GICXXCustomAction_GICombiner98,
2594 GICXXCustomAction_GICombiner99,
2595 GICXXCustomAction_GICombiner100,
2596 GICXXCustomAction_GICombiner101,
2597 GICXXCustomAction_GICombiner102,
2598 GICXXCustomAction_GICombiner103,
2599 GICXXCustomAction_GICombiner104,
2600 GICXXCustomAction_GICombiner105,
2601 GICXXCustomAction_GICombiner106,
2602 GICXXCustomAction_GICombiner107,
2603 GICXXCustomAction_GICombiner108,
2604 GICXXCustomAction_GICombiner109,
2605 GICXXCustomAction_GICombiner110,
2606 GICXXCustomAction_GICombiner111,
2607 GICXXCustomAction_GICombiner112,
2608 GICXXCustomAction_GICombiner113,
2609 GICXXCustomAction_GICombiner114,
2610 GICXXCustomAction_GICombiner115,
2611 GICXXCustomAction_GICombiner116,
2612 GICXXCustomAction_GICombiner117,
2613 GICXXCustomAction_GICombiner118,
2614 GICXXCustomAction_GICombiner119,
2615 GICXXCustomAction_GICombiner120,
2616 GICXXCustomAction_GICombiner121,
2617 GICXXCustomAction_GICombiner122,
2618 GICXXCustomAction_GICombiner123,
2619 GICXXCustomAction_GICombiner124,
2620 GICXXCustomAction_GICombiner125,
2621 GICXXCustomAction_GICombiner126,
2622 GICXXCustomAction_GICombiner127,
2623 GICXXCustomAction_GICombiner128,
2624 GICXXCustomAction_GICombiner129,
2625 GICXXCustomAction_GICombiner130,
2626 GICXXCustomAction_GICombiner131,
2627 GICXXCustomAction_GICombiner132,
2628 GICXXCustomAction_GICombiner133,
2629 GICXXCustomAction_GICombiner134,
2630 GICXXCustomAction_GICombiner135,
2631 GICXXCustomAction_GICombiner136,
2632 GICXXCustomAction_GICombiner137,
2633 GICXXCustomAction_GICombiner138,
2634 GICXXCustomAction_GICombiner139,
2635 GICXXCustomAction_GICombiner140,
2636 GICXXCustomAction_GICombiner141,
2637 GICXXCustomAction_GICombiner142,
2638 GICXXCustomAction_GICombiner143,
2639 GICXXCustomAction_GICombiner144,
2640 GICXXCustomAction_GICombiner145,
2641 GICXXCustomAction_GICombiner146,
2642 GICXXCustomAction_GICombiner147,
2643 GICXXCustomAction_GICombiner148,
2644 GICXXCustomAction_GICombiner149,
2645 GICXXCustomAction_GICombiner150,
2646 GICXXCustomAction_GICombiner151,
2647 GICXXCustomAction_GICombiner152,
2648 GICXXCustomAction_GICombiner153,
2649 GICXXCustomAction_GICombiner154,
2650 GICXXCustomAction_GICombiner155,
2651 GICXXCustomAction_GICombiner156,
2652 GICXXCustomAction_GICombiner157,
2653 GICXXCustomAction_GICombiner158,
2654 GICXXCustomAction_GICombiner159,
2655 GICXXCustomAction_GICombiner160,
2656 GICXXCustomAction_GICombiner161,
2657 GICXXCustomAction_GICombiner162,
2658 GICXXCustomAction_GICombiner163,
2659};
2660bool AMDGPUPreLegalizerCombinerImpl::runCustomAction(unsigned ApplyID, const MatcherState &State, NewMIVector &OutMIs) const {
2661 Helper.getBuilder().setInstrAndDebugLoc(*State.MIs[0]);
2662 switch(ApplyID) {
2663 case GICXXCustomAction_GICombiner0:{
2664 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2665 // Match Patterns
2666 if(![&](){return Helper.matchFoldAPlusC1MinusC2(*State.MIs[0], GIMatchData_matchinfo);}()) {
2667 return false;
2668 }
2669 // Apply Patterns
2670 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2671 return true;
2672 }
2673 case GICXXCustomAction_GICombiner1:{
2674 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2675 // Match Patterns
2676 if(![&](){return Helper.matchFoldC2MinusAPlusC1(*State.MIs[0], GIMatchData_matchinfo);}()) {
2677 return false;
2678 }
2679 // Apply Patterns
2680 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2681 return true;
2682 }
2683 case GICXXCustomAction_GICombiner2:{
2684 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2685 // Match Patterns
2686 if(![&](){return Helper.matchFoldAMinusC1MinusC2(*State.MIs[0], GIMatchData_matchinfo);}()) {
2687 return false;
2688 }
2689 // Apply Patterns
2690 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2691 return true;
2692 }
2693 case GICXXCustomAction_GICombiner3:{
2694 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2695 // Match Patterns
2696 if(![&](){return Helper.matchFoldC1Minus2MinusC2(*State.MIs[0], GIMatchData_matchinfo);}()) {
2697 return false;
2698 }
2699 // Apply Patterns
2700 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2701 return true;
2702 }
2703 case GICXXCustomAction_GICombiner4:{
2704 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2705 // Match Patterns
2706 if(![&](){return Helper.matchFoldAMinusC1PlusC2(*State.MIs[0], GIMatchData_matchinfo);}()) {
2707 return false;
2708 }
2709 // Apply Patterns
2710 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2711 return true;
2712 }
2713 case GICXXCustomAction_GICombiner5:{
2714 // Match Patterns
2715 if(![&](){return Helper.matchCombineCopy(*State.MIs[0]);}()) {
2716 return false;
2717 }
2718 // Apply Patterns
2719 Helper.applyCombineCopy(*State.MIs[0]);
2720 return true;
2721 }
2722 case GICXXCustomAction_GICombiner6:{
2723 unsigned GIMatchData_matchinfo;
2724 // Match Patterns
2725 if(![&](){return Helper.matchCombineMulToShl(*State.MIs[0], GIMatchData_matchinfo);}()) {
2726 return false;
2727 }
2728 // Apply Patterns
2729 Helper.applyCombineMulToShl(*State.MIs[0], GIMatchData_matchinfo);
2730 return true;
2731 }
2732 case GICXXCustomAction_GICombiner7:{
2733 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2734 // Match Patterns
2735 if(![&](){return Helper.matchCombineSubToAdd(*State.MIs[0], GIMatchData_matchinfo);}()) {
2736 return false;
2737 }
2738 // Apply Patterns
2739 Helper.applyBuildFnNoErase(*State.MIs[0], GIMatchData_matchinfo);
2740 return true;
2741 }
2742 case GICXXCustomAction_GICombiner8:{
2743 std::pair<Register, bool> GIMatchData_info;
2744 // Match Patterns
2745 if(![&](){return Helper.matchCombineAddP2IToPtrAdd(*State.MIs[0], GIMatchData_info);}()) {
2746 return false;
2747 }
2748 // Apply Patterns
2749 Helper.applyCombineAddP2IToPtrAdd(*State.MIs[0], GIMatchData_info);
2750 return true;
2751 }
2752 case GICXXCustomAction_GICombiner9:{
2753 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2754 // Match Patterns
2755 if(![&](){return Helper.matchExtractVectorElement(*State.MIs[0], GIMatchData_matchinfo);}()) {
2756 return false;
2757 }
2758 // Apply Patterns
2759 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2760 return true;
2761 }
2762 case GICXXCustomAction_GICombiner10:{
2763 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2764 // Match Patterns
2765 if(![&](){return Helper.matchInsertVectorElementOOB(*State.MIs[0], GIMatchData_matchinfo);}()) {
2766 return false;
2767 }
2768 // Apply Patterns
2769 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2770 return true;
2771 }
2772 case GICXXCustomAction_GICombiner11:{
2773 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2774 // Match Patterns
2775 if(![&](){return Helper.matchExtractVectorElementWithDifferentIndices(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
2776 return false;
2777 }
2778 // Apply Patterns
2779 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
2780 return true;
2781 }
2782 case GICXXCustomAction_GICombiner12:{
2783 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2784 // Match Patterns
2785 if(![&](){return Helper.matchExtractVectorElementWithBuildVector(*State.MIs[0], *State.MIs[1],
2786 GIMatchData_matchinfo);}()) {
2787 return false;
2788 }
2789 // Apply Patterns
2790 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2791 return true;
2792 }
2793 case GICXXCustomAction_GICombiner13:{
2794 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2795 // Match Patterns
2796 if(![&](){return Helper.matchExtractVectorElementWithBuildVectorTrunc(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
2797 return false;
2798 }
2799 // Apply Patterns
2800 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
2801 return true;
2802 }
2803 case GICXXCustomAction_GICombiner14:{
2804 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2805 // Match Patterns
2806 if(![&](){return Helper.matchExtractVectorElementWithShuffleVector(*State.MIs[0], *State.MIs[1],
2807 GIMatchData_matchinfo);}()) {
2808 return false;
2809 }
2810 // Apply Patterns
2811 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2812 return true;
2813 }
2814 case GICXXCustomAction_GICombiner15:{
2815 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2816 // Match Patterns
2817 if(![&](){return Helper.matchAddOfVScale(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
2818 return false;
2819 }
2820 // Apply Patterns
2821 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
2822 return true;
2823 }
2824 case GICXXCustomAction_GICombiner16:{
2825 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2826 // Match Patterns
2827 if(![&](){return Helper.matchMulOfVScale(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
2828 return false;
2829 }
2830 // Apply Patterns
2831 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
2832 return true;
2833 }
2834 case GICXXCustomAction_GICombiner17:{
2835 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2836 // Match Patterns
2837 if(![&](){return Helper.matchShlOfVScale(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
2838 return false;
2839 }
2840 // Apply Patterns
2841 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
2842 return true;
2843 }
2844 case GICXXCustomAction_GICombiner18:{
2845 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2846 // Match Patterns
2847 if(![&](){return Helper.matchSubOfVScale(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
2848 return false;
2849 }
2850 // Apply Patterns
2851 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
2852 return true;
2853 }
2854 case GICXXCustomAction_GICombiner19:{
2855 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2856 // Match Patterns
2857 if(![&](){return !isGuaranteedNotToBePoison(State.MIs[0]->getOperand(1).getReg(), MRI) && Helper.matchFreezeOfSingleMaybePoisonOperand(*State.MIs[0], GIMatchData_matchinfo);}()) {
2858 return false;
2859 }
2860 // Apply Patterns
2861 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2862 return true;
2863 }
2864 case GICXXCustomAction_GICombiner20:{
2865 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2866 // Match Patterns
2867 if(![&](){return Helper.matchTruncateOfExt(*State.MIs[0], *State.MIs[1], GIMatchData_matchinfo);}()) {
2868 return false;
2869 }
2870 // Apply Patterns
2871 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2872 return true;
2873 }
2874 case GICXXCustomAction_GICombiner21:{
2875 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2876 // Match Patterns
2877 if(![&](){return Helper.matchExtOfExt(*State.MIs[0], *State.MIs[1], GIMatchData_matchinfo);}()) {
2878 return false;
2879 }
2880 // Apply Patterns
2881 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2882 return true;
2883 }
2884 case GICXXCustomAction_GICombiner22:{
2885 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2886 // Match Patterns
2887 if(![&](){return Helper.matchRedundantSextInReg(*State.MIs[0], *State.MIs[1], GIMatchData_matchinfo);}()) {
2888 return false;
2889 }
2890 // Apply Patterns
2891 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2892 return true;
2893 }
2894 case GICXXCustomAction_GICombiner23:{
2895 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2896 // Match Patterns
2897 if(![&](){return Helper.matchCastOfSelect(*State.MIs[0], *State.MIs[1], GIMatchData_matchinfo);}()) {
2898 return false;
2899 }
2900 // Apply Patterns
2901 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2902 return true;
2903 }
2904 case GICXXCustomAction_GICombiner24:{
2905 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2906 // Match Patterns
2907 if(![&](){return Helper.matchCastOfBuildVector(*State.MIs[0], *State.MIs[1], GIMatchData_matchinfo);}()) {
2908 return false;
2909 }
2910 // Apply Patterns
2911 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2912 return true;
2913 }
2914 case GICXXCustomAction_GICombiner25:{
2915 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2916 // Match Patterns
2917 if(![&](){return Helper.matchNarrowBinop(*State.MIs[0], *State.MIs[1], GIMatchData_matchinfo);}()) {
2918 return false;
2919 }
2920 // Apply Patterns
2921 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2922 return true;
2923 }
2924 case GICXXCustomAction_GICombiner26:{
2925 APInt GIMatchData_matchinfo;
2926 // Match Patterns
2927 if(![&](){return Helper.matchCastOfInteger(*State.MIs[0], GIMatchData_matchinfo);}()) {
2928 return false;
2929 }
2930 // Apply Patterns
2931 Helper.replaceInstWithConstant(*State.MIs[0], GIMatchData_matchinfo);
2932 return true;
2933 }
2934 case GICXXCustomAction_GICombiner27:{
2935 SmallVector<Register> GIMatchData_info;
2936 // Match Patterns
2937 if(![&](){return Helper.matchCombineInsertVecElts(*State.MIs[0], GIMatchData_info);}()) {
2938 return false;
2939 }
2940 // Apply Patterns
2941 Helper.applyCombineInsertVecElts(*State.MIs[0], GIMatchData_info);
2942 return true;
2943 }
2944 case GICXXCustomAction_GICombiner28:{
2945 Register GIMatchData_matchinfo;
2946 // Match Patterns
2947 if(![&](){return Helper.matchExtractVecEltBuildVec(*State.MIs[0], GIMatchData_matchinfo);}()) {
2948 return false;
2949 }
2950 // Apply Patterns
2951 Helper.applyExtractVecEltBuildVec(*State.MIs[0], GIMatchData_matchinfo);
2952 return true;
2953 }
2954 case GICXXCustomAction_GICombiner29:{
2955 SmallVector<std::pair<Register, MachineInstr*>> GIMatchData_matchinfo;
2956 // Match Patterns
2957 if(![&](){return Helper.matchExtractAllEltsFromBuildVector(*State.MIs[0], GIMatchData_matchinfo);}()) {
2958 return false;
2959 }
2960 // Apply Patterns
2961 Helper.applyExtractAllEltsFromBuildVector(*State.MIs[0], GIMatchData_matchinfo);
2962 return true;
2963 }
2964 case GICXXCustomAction_GICombiner30:{
2965 PreferredTuple GIMatchData_matchinfo;
2966 // Match Patterns
2967 if(![&](){return Helper.matchCombineExtendingLoads(*State.MIs[0], GIMatchData_matchinfo);}()) {
2968 return false;
2969 }
2970 // Apply Patterns
2971 Helper.applyCombineExtendingLoads(*State.MIs[0], GIMatchData_matchinfo);
2972 return true;
2973 }
2974 case GICXXCustomAction_GICombiner31:{
2975 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2976 // Match Patterns
2977 if(![&](){return Helper.matchCombineLoadWithAndMask(*State.MIs[0], GIMatchData_matchinfo);}()) {
2978 return false;
2979 }
2980 // Apply Patterns
2981 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2982 return true;
2983 }
2984 case GICXXCustomAction_GICombiner32:{
2985 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2986 // Match Patterns
2987 if(![&](){return Helper.matchCombineExtractedVectorLoad(*State.MIs[0], GIMatchData_matchinfo);}()) {
2988 return false;
2989 }
2990 // Apply Patterns
2991 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2992 return true;
2993 }
2994 case GICXXCustomAction_GICombiner33:{
2995 // Match Patterns
2996 if(![&](){return Helper.matchAnyExplicitUseIsUndef(*State.MIs[0]);}()) {
2997 return false;
2998 }
2999 // Apply Patterns
3000 Helper.replaceInstWithFConstant(*State.MIs[0], 0.0);
3001 return true;
3002 }
3003 case GICXXCustomAction_GICombiner34:{
3004 // Match Patterns
3005 if(![&](){return Helper.matchAnyExplicitUseIsUndef(*State.MIs[0]);}()) {
3006 return false;
3007 }
3008 // Apply Patterns
3009 Helper.replaceInstWithConstant(*State.MIs[0], 0);
3010 return true;
3011 }
3012 case GICXXCustomAction_GICombiner35:{
3013 // Match Patterns
3014 if(![&](){return Helper.matchAnyExplicitUseIsUndef(*State.MIs[0]);}()) {
3015 return false;
3016 }
3017 // Apply Patterns
3018 Helper.replaceInstWithConstant(*State.MIs[0], -1);
3019 return true;
3020 }
3021 case GICXXCustomAction_GICombiner36:{
3022 // Match Patterns
3023 if(![&](){return Helper.matchOperandIsUndef(*State.MIs[0], 1);}()) {
3024 return false;
3025 }
3026 // Apply Patterns
3027 Helper.replaceInstWithConstant(*State.MIs[0], 0);
3028 return true;
3029 }
3030 case GICXXCustomAction_GICombiner37:{
3031 // Match Patterns
3032 if(![&](){return Helper.matchOperandIsUndef(*State.MIs[0], 2);}()) {
3033 return false;
3034 }
3035 // Apply Patterns
3036 Helper.replaceInstWithUndef(*State.MIs[0]);
3037 return true;
3038 }
3039 case GICXXCustomAction_GICombiner38:{
3040 // Apply Patterns
3041 Helper.replaceInstWithUndef(*State.MIs[0]->getOperand(0).getParent());
3042 return true;
3043 }
3044 case GICXXCustomAction_GICombiner39:{
3045 // Match Patterns
3046 if(![&](){return Helper.matchAnyExplicitUseIsUndef(*State.MIs[0]);}()) {
3047 return false;
3048 }
3049 // Apply Patterns
3050 Helper.replaceInstWithUndef(*State.MIs[0]);
3051 return true;
3052 }
3053 case GICXXCustomAction_GICombiner40:{
3054 // Match Patterns
3055 if(![&](){return Helper.matchAllExplicitUsesAreUndef(*State.MIs[0]);}()) {
3056 return false;
3057 }
3058 // Apply Patterns
3059 Helper.replaceInstWithUndef(*State.MIs[0]);
3060 return true;
3061 }
3062 case GICXXCustomAction_GICombiner41:{
3063 // Match Patterns
3064 if(![&](){return Helper.matchUndefShuffleVectorMask(*State.MIs[0]);}()) {
3065 return false;
3066 }
3067 // Apply Patterns
3068 Helper.replaceInstWithUndef(*State.MIs[0]);
3069 return true;
3070 }
3071 case GICXXCustomAction_GICombiner42:{
3072 // Match Patterns
3073 if(![&](){return Helper.matchUndefStore(*State.MIs[0]);}()) {
3074 return false;
3075 }
3076 // Apply Patterns
3077 Helper.eraseInst(*State.MIs[0]);
3078 return true;
3079 }
3080 case GICXXCustomAction_GICombiner43:{
3081 // Match Patterns
3082 if(![&](){return Helper.matchInsertExtractVecEltOutOfBounds(*State.MIs[0]);}()) {
3083 return false;
3084 }
3085 // Apply Patterns
3086 Helper.replaceInstWithUndef(*State.MIs[0]);
3087 return true;
3088 }
3089 case GICXXCustomAction_GICombiner44:{
3090 // Match Patterns
3091 if(![&](){return Helper.matchSelectSameVal(*State.MIs[0]);}()) {
3092 return false;
3093 }
3094 // Apply Patterns
3095 Helper.replaceSingleDefInstWithOperand(*State.MIs[0], 2);
3096 return true;
3097 }
3098 case GICXXCustomAction_GICombiner45:{
3099 Register GIMatchData_info;
3100 // Match Patterns
3101 if(![&](){return Helper.matchCombineI2PToP2I(*State.MIs[0], GIMatchData_info);}()) {
3102 return false;
3103 }
3104 // Apply Patterns
3105 Helper.applyCombineI2PToP2I(*State.MIs[0], GIMatchData_info);
3106 return true;
3107 }
3108 case GICXXCustomAction_GICombiner46:{
3109 Register GIMatchData_info;
3110 // Match Patterns
3111 if(![&](){GIMatchData_info = State.MIs[1]->getOperand(1).getReg(); return true;}()) {
3112 return false;
3113 }
3114 // Apply Patterns
3115 Helper.applyCombineP2IToI2P(*State.MIs[0], GIMatchData_info);
3116 return true;
3117 }
3118 case GICXXCustomAction_GICombiner47:{
3119 Register GIMatchData_matchinfo;
3120 // Match Patterns
3121 if(![&](){return Helper.matchCombineAnyExtTrunc(*State.MIs[0], GIMatchData_matchinfo);}()) {
3122 return false;
3123 }
3124 // Apply Patterns
3125 Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo);
3126 return true;
3127 }
3128 case GICXXCustomAction_GICombiner48:{
3129 Register GIMatchData_matchinfo;
3130 // Match Patterns
3131 if(![&](){return Helper.matchBuildVectorIdentityFold(*State.MIs[0], GIMatchData_matchinfo);}()) {
3132 return false;
3133 }
3134 // Apply Patterns
3135 Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo);
3136 return true;
3137 }
3138 case GICXXCustomAction_GICombiner49:{
3139 Register GIMatchData_matchinfo;
3140 // Match Patterns
3141 if(![&](){return Helper.matchTruncBuildVectorFold(*State.MIs[0], GIMatchData_matchinfo);}()) {
3142 return false;
3143 }
3144 // Apply Patterns
3145 Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo);
3146 return true;
3147 }
3148 case GICXXCustomAction_GICombiner50:{
3149 Register GIMatchData_matchinfo;
3150 // Match Patterns
3151 if(![&](){return Helper.matchTruncLshrBuildVectorFold(*State.MIs[0], GIMatchData_matchinfo);}()) {
3152 return false;
3153 }
3154 // Apply Patterns
3155 Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo);
3156 return true;
3157 }
3158 case GICXXCustomAction_GICombiner51:{
3159 // Match Patterns
3160 if(![&](){return MRI.getType(State.MIs[1]->getOperand(1).getReg()) == MRI.getType(State.MIs[0]->getOperand(0).getReg());}()) {
3161 return false;
3162 }
3163 // Apply Patterns
3164 Helper.replaceSingleDefInstWithReg(*State.MIs[0], State.MIs[1]->getOperand(1).getReg());
3165 return true;
3166 }
3167 case GICXXCustomAction_GICombiner52:{
3168 MachineInstr* GIMatchData_matchinfo;
3169 // Match Patterns
3170 if(![&](){return Helper.matchExtendThroughPhis(*State.MIs[0], GIMatchData_matchinfo);}()) {
3171 return false;
3172 }
3173 // Apply Patterns
3174 Helper.applyExtendThroughPhis(*State.MIs[0], GIMatchData_matchinfo);
3175 return true;
3176 }
3177 case GICXXCustomAction_GICombiner53:{
3178 std::tuple<Register, Register> GIMatchData_info;
3179 // Match Patterns
3180 if(![&](){return Helper.matchSimplifyAddToSub(*State.MIs[0], GIMatchData_info);}()) {
3181 return false;
3182 }
3183 // Apply Patterns
3184 Helper.applySimplifyAddToSub(*State.MIs[0], GIMatchData_info);
3185 return true;
3186 }
3187 case GICXXCustomAction_GICombiner54:{
3188 InstructionStepsMatchInfo GIMatchData_info;
3189 // Match Patterns
3190 if(![&](){return Helper.matchHoistLogicOpWithSameOpcodeHands(*State.MIs[0], GIMatchData_info);}()) {
3191 return false;
3192 }
3193 // Apply Patterns
3194 Helper.applyBuildInstructionSteps(*State.MIs[0], GIMatchData_info);
3195 return true;
3196 }
3197 case GICXXCustomAction_GICombiner55:{
3198 std::optional<int64_t> GIMatchData_matchinfo;
3199 // Match Patterns
3200 if(![&](){return Helper.matchShiftsTooBig(*State.MIs[0], GIMatchData_matchinfo);}()) {
3201 return false;
3202 }
3203 // Apply Patterns
3204 if (GIMatchData_matchinfo) {
3205 Helper.replaceInstWithConstant(*State.MIs[0], *GIMatchData_matchinfo);
3206 } else {
3207 Helper.replaceInstWithUndef(*State.MIs[0]);
3208 }
3209 return true;
3210 }
3211 case GICXXCustomAction_GICombiner56:{
3212 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3213 // Match Patterns
3214 if(![&](){return Helper.matchReassocPtrAdd(*State.MIs[0], GIMatchData_matchinfo);}()) {
3215 return false;
3216 }
3217 // Apply Patterns
3218 Helper.applyBuildFnNoErase(*State.MIs[0], GIMatchData_matchinfo);
3219 return true;
3220 }
3221 case GICXXCustomAction_GICombiner57:{
3222 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3223 // Match Patterns
3224 if(![&](){return Helper.matchReassocCommBinOp(*State.MIs[0], GIMatchData_matchinfo);}()) {
3225 return false;
3226 }
3227 // Apply Patterns
3228 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3229 return true;
3230 }
3231 case GICXXCustomAction_GICombiner58:{
3232 PtrAddChain GIMatchData_matchinfo;
3233 // Match Patterns
3234 if(![&](){return Helper.matchPtrAddImmedChain(*State.MIs[0], GIMatchData_matchinfo);}()) {
3235 return false;
3236 }
3237 // Apply Patterns
3238 Helper.applyPtrAddImmedChain(*State.MIs[0], GIMatchData_matchinfo);
3239 return true;
3240 }
3241 case GICXXCustomAction_GICombiner59:{
3242 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3243 // Match Patterns
3244 if(![&](){return Helper.matchCanonicalizeICmp(*State.MIs[0], GIMatchData_matchinfo);}()) {
3245 return false;
3246 }
3247 // Apply Patterns
3248 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3249 return true;
3250 }
3251 case GICXXCustomAction_GICombiner60:{
3252 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3253 // Match Patterns
3254 if(![&](){return Helper.matchCanonicalizeFCmp(*State.MIs[0], GIMatchData_matchinfo);}()) {
3255 return false;
3256 }
3257 // Apply Patterns
3258 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3259 return true;
3260 }
3261 case GICXXCustomAction_GICombiner61:{
3262 int64_t GIMatchData_matchinfo;
3263 // Match Patterns
3264 if(![&](){return Helper.matchICmpToTrueFalseKnownBits(*State.MIs[0], GIMatchData_matchinfo);}()) {
3265 return false;
3266 }
3267 // Apply Patterns
3268 Helper.replaceInstWithConstant(*State.MIs[0], GIMatchData_matchinfo);
3269 return true;
3270 }
3271 case GICXXCustomAction_GICombiner62:{
3272 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3273 // Match Patterns
3274 if(![&](){return Helper.matchICmpToLHSKnownBits(*State.MIs[0], GIMatchData_info);}()) {
3275 return false;
3276 }
3277 // Apply Patterns
3278 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3279 return true;
3280 }
3281 case GICXXCustomAction_GICombiner63:{
3282 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3283 // Match Patterns
3284 if(![&](){return Helper.matchRedundantBinOpInEquality(*State.MIs[0], GIMatchData_info);}()) {
3285 return false;
3286 }
3287 // Apply Patterns
3288 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3289 return true;
3290 }
3291 case GICXXCustomAction_GICombiner64:{
3292 std::tuple<Register, int64_t> GIMatchData_info;
3293 // Match Patterns
3294 if(![&](){return Helper.matchAshrShlToSextInreg(*State.MIs[0], GIMatchData_info);}()) {
3295 return false;
3296 }
3297 // Apply Patterns
3298 Helper.applyAshShlToSextInreg(*State.MIs[0], GIMatchData_info);
3299 return true;
3300 }
3301 case GICXXCustomAction_GICombiner65:{
3302 std::tuple<Register, unsigned> GIMatchData_matchinfo;
3303 // Match Patterns
3304 if(![&](){return Helper.matchSextInRegOfLoad(*State.MIs[0], GIMatchData_matchinfo);}()) {
3305 return false;
3306 }
3307 // Apply Patterns
3308 Helper.applySextInRegOfLoad(*State.MIs[0], GIMatchData_matchinfo);
3309 return true;
3310 }
3311 case GICXXCustomAction_GICombiner66:{
3312 RegisterImmPair GIMatchData_matchinfo;
3313 // Match Patterns
3314 if(![&](){return Helper.matchCombineShlOfExtend(*State.MIs[0], GIMatchData_matchinfo);}()) {
3315 return false;
3316 }
3317 // Apply Patterns
3318 Helper.applyCombineShlOfExtend(*State.MIs[0], GIMatchData_matchinfo);
3319 return true;
3320 }
3321 case GICXXCustomAction_GICombiner67:{
3322 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3323 // Match Patterns
3324 if(![&](){return Helper.matchNarrowBinopFeedingAnd(*State.MIs[0], GIMatchData_matchinfo);}()) {
3325 return false;
3326 }
3327 // Apply Patterns
3328 Helper.applyBuildFnNoErase(*State.MIs[0], GIMatchData_matchinfo);
3329 return true;
3330 }
3331 case GICXXCustomAction_GICombiner68:{
3332 unsigned GIMatchData_matchinfo;
3333 // Match Patterns
3334 if(![&](){return Helper.matchConstantSelectCmp(*State.MIs[0], GIMatchData_matchinfo);}()) {
3335 return false;
3336 }
3337 // Apply Patterns
3338 Helper.replaceSingleDefInstWithOperand(*State.MIs[0], GIMatchData_matchinfo);
3339 return true;
3340 }
3341 case GICXXCustomAction_GICombiner69:{
3342 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3343 // Match Patterns
3344 if(![&](){return Helper.matchSelectIMinMax(State.MIs[0]->getOperand(0), GIMatchData_info);}()) {
3345 return false;
3346 }
3347 // Apply Patterns
3348 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_info);
3349 return true;
3350 }
3351 case GICXXCustomAction_GICombiner70:{
3352 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3353 // Match Patterns
3354 if(![&](){return Helper.matchSelect(*State.MIs[0], GIMatchData_matchinfo);}()) {
3355 return false;
3356 }
3357 // Apply Patterns
3358 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3359 return true;
3360 }
3361 case GICXXCustomAction_GICombiner71:{
3362 Register GIMatchData_matchinfo;
3363 // Match Patterns
3364 if(![&](){return Helper.matchRedundantAnd(*State.MIs[0], GIMatchData_matchinfo);}()) {
3365 return false;
3366 }
3367 // Apply Patterns
3368 Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo);
3369 return true;
3370 }
3371 case GICXXCustomAction_GICombiner72:{
3372 // Match Patterns
3373 if(![&](){return Helper.matchRedundantSExtInReg(*State.MIs[0]);}()) {
3374 return false;
3375 }
3376 // Apply Patterns
3377 Helper.replaceSingleDefInstWithOperand(*State.MIs[0], 1);
3378 return true;
3379 }
3380 case GICXXCustomAction_GICombiner73:{
3381 Register GIMatchData_matchinfo;
3382 // Match Patterns
3383 if(![&](){return Helper.matchRedundantOr(*State.MIs[0], GIMatchData_matchinfo);}()) {
3384 return false;
3385 }
3386 // Apply Patterns
3387 Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo);
3388 return true;
3389 }
3390 case GICXXCustomAction_GICombiner74:{
3391 // Match Patterns
3392 if(![&](){return Helper.matchOperandIsKnownToBeAPowerOfTwo(State.MIs[0]->getOperand(2));}()) {
3393 return false;
3394 }
3395 // Apply Patterns
3396 Helper.applySimplifyURemByPow2(*State.MIs[0]);
3397 return true;
3398 }
3399 case GICXXCustomAction_GICombiner75:{
3400 Register GIMatchData_matchinfo;
3401 // Match Patterns
3402 if(![&](){return Helper.matchCombineZextTrunc(*State.MIs[0], GIMatchData_matchinfo);}()) {
3403 return false;
3404 }
3405 // Apply Patterns
3406 Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo);
3407 return true;
3408 }
3409 case GICXXCustomAction_GICombiner76:{
3410 // Match Patterns
3411 if(![&](){unsigned BitWidth = MRI.getType(State.MIs[0]->getOperand(1).getReg()).getScalarSizeInBits();
3412 return Helper.getValueTracking()->maskedValueIsZero(State.MIs[0]->getOperand(1).getReg(),
3413 APInt::getOneBitSet(BitWidth, State.MIs[0]->getOperand(2).getImm() - 1));}()) {
3414 return false;
3415 }
3416 // Apply Patterns
3417 Helper.getBuilder().setInstrAndDebugLoc(*State.MIs[0]);
3418 Helper.getBuilder().buildZExtInReg(State.MIs[0]->getOperand(0), State.MIs[0]->getOperand(1), State.MIs[0]->getOperand(2).getImm());
3419 State.MIs[0]->eraseFromParent();
3420 return true;
3421 }
3422 case GICXXCustomAction_GICombiner77:{
3423 std::pair<MachineInstr*, LLT> GIMatchData_matchinfo;
3424 // Match Patterns
3425 if(![&](){return Helper.matchCombineTruncOfShift(*State.MIs[0], GIMatchData_matchinfo);}()) {
3426 return false;
3427 }
3428 // Apply Patterns
3429 Helper.applyCombineTruncOfShift(*State.MIs[0], GIMatchData_matchinfo);
3430 return true;
3431 }
3432 case GICXXCustomAction_GICombiner78:{
3433 SmallVector<Register> GIMatchData_info;
3434 // Match Patterns
3435 if(![&](){return Helper.matchNotCmp(*State.MIs[0], GIMatchData_info);}()) {
3436 return false;
3437 }
3438 // Apply Patterns
3439 Helper.applyNotCmp(*State.MIs[0], GIMatchData_info);
3440 return true;
3441 }
3442 case GICXXCustomAction_GICombiner79:{
3443 MachineInstr * GIMatchData_matchinfo;
3444 // Match Patterns
3445 if(![&](){return Helper.matchOptBrCondByInvertingCond(*State.MIs[0], GIMatchData_matchinfo);}()) {
3446 return false;
3447 }
3448 // Apply Patterns
3449 Helper.applyOptBrCondByInvertingCond(*State.MIs[0], GIMatchData_matchinfo);
3450 return true;
3451 }
3452 case GICXXCustomAction_GICombiner80:{
3453 // Apply Patterns
3454 Helper.applyCombineConstantFoldFpUnary(*State.MIs[0], State.MIs[1]->getOperand(1).getFPImm());
3455 return true;
3456 }
3457 case GICXXCustomAction_GICombiner81:{
3458 // Apply Patterns
3459 Helper.replaceInstWithFConstant(*State.MIs[0]->getOperand(0).getParent(), 0.0);
3460 return true;
3461 }
3462 case GICXXCustomAction_GICombiner82:{
3463 APInt GIMatchData_info;
3464 // Match Patterns
3465 if(![&](){return Helper.matchCombineConstPtrAddToI2P(*State.MIs[0], GIMatchData_info);}()) {
3466 return false;
3467 }
3468 // Apply Patterns
3469 Helper.applyCombineConstPtrAddToI2P(*State.MIs[0], GIMatchData_info);
3470 return true;
3471 }
3472 case GICXXCustomAction_GICombiner83:{
3473 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3474 // Match Patterns
3475 if(![&](){return Helper.matchOverlappingAnd(*State.MIs[0], GIMatchData_info);}()) {
3476 return false;
3477 }
3478 // Apply Patterns
3479 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3480 return true;
3481 }
3482 case GICXXCustomAction_GICombiner84:{
3483 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3484 // Match Patterns
3485 if(![&](){return Helper.matchMulOBy2(*State.MIs[0], GIMatchData_matchinfo);}()) {
3486 return false;
3487 }
3488 // Apply Patterns
3489 Helper.applyBuildFnNoErase(*State.MIs[0], GIMatchData_matchinfo);
3490 return true;
3491 }
3492 case GICXXCustomAction_GICombiner85:{
3493 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3494 // Match Patterns
3495 if(![&](){return Helper.matchMulOBy0(*State.MIs[0], GIMatchData_matchinfo);}()) {
3496 return false;
3497 }
3498 // Apply Patterns
3499 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3500 return true;
3501 }
3502 case GICXXCustomAction_GICombiner86:{
3503 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3504 // Match Patterns
3505 if(![&](){return Helper.matchAddEToAddO(*State.MIs[0], GIMatchData_matchinfo);}()) {
3506 return false;
3507 }
3508 // Apply Patterns
3509 Helper.applyBuildFnNoErase(*State.MIs[0], GIMatchData_matchinfo);
3510 return true;
3511 }
3512 case GICXXCustomAction_GICombiner87:{
3513 unsigned GIMatchData_info;
3514 // Match Patterns
3515 if(![&](){return Helper.matchCombineFMinMaxNaN(*State.MIs[0], GIMatchData_info);}()) {
3516 return false;
3517 }
3518 // Apply Patterns
3519 Helper.replaceSingleDefInstWithOperand(*State.MIs[0], GIMatchData_info);
3520 return true;
3521 }
3522 case GICXXCustomAction_GICombiner88:{
3523 // Match Patterns
3524 if(![&](){return Helper.matchFPowIExpansion(*State.MIs[0], State.MIs[1]->getOperand(1).getCImm()->getSExtValue());}()) {
3525 return false;
3526 }
3527 // Apply Patterns
3528 Helper.applyExpandFPowI(*State.MIs[0], State.MIs[1]->getOperand(1).getCImm()->getSExtValue());
3529 return true;
3530 }
3531 case GICXXCustomAction_GICombiner89:{
3532 std::pair<Register, Register> GIMatchData_matchinfo;
3533 // Match Patterns
3534 if(![&](){return Helper.matchXorOfAndWithSameReg(*State.MIs[0], GIMatchData_matchinfo);}()) {
3535 return false;
3536 }
3537 // Apply Patterns
3538 Helper.applyXorOfAndWithSameReg(*State.MIs[0], GIMatchData_matchinfo);
3539 return true;
3540 }
3541 case GICXXCustomAction_GICombiner90:{
3542 // Match Patterns
3543 if(![&](){return Helper.matchPtrAddZero(*State.MIs[0]);}()) {
3544 return false;
3545 }
3546 // Apply Patterns
3547 Helper.applyPtrAddZero(*State.MIs[0]);
3548 return true;
3549 }
3550 case GICXXCustomAction_GICombiner91:{
3551 RegisterImmPair GIMatchData_matchinfo;
3552 // Match Patterns
3553 if(![&](){return Helper.matchShiftImmedChain(*State.MIs[0], GIMatchData_matchinfo);}()) {
3554 return false;
3555 }
3556 // Apply Patterns
3557 Helper.applyShiftImmedChain(*State.MIs[0], GIMatchData_matchinfo);
3558 return true;
3559 }
3560 case GICXXCustomAction_GICombiner92:{
3561 ShiftOfShiftedLogic GIMatchData_matchinfo;
3562 // Match Patterns
3563 if(![&](){return Helper.matchShiftOfShiftedLogic(*State.MIs[0], GIMatchData_matchinfo);}()) {
3564 return false;
3565 }
3566 // Apply Patterns
3567 Helper.applyShiftOfShiftedLogic(*State.MIs[0], GIMatchData_matchinfo);
3568 return true;
3569 }
3570 case GICXXCustomAction_GICombiner93:{
3571 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3572 // Match Patterns
3573 if(![&](){return Helper.matchLoadOrCombine(*State.MIs[0], GIMatchData_info);}()) {
3574 return false;
3575 }
3576 // Apply Patterns
3577 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3578 return true;
3579 }
3580 case GICXXCustomAction_GICombiner94:{
3581 MachineInstr * GIMatchData_matchinfo;
3582 // Match Patterns
3583 if(![&](){return Helper.matchCombineDivRem(*State.MIs[0], GIMatchData_matchinfo);}()) {
3584 return false;
3585 }
3586 // Apply Patterns
3587 Helper.applyCombineDivRem(*State.MIs[0], GIMatchData_matchinfo);
3588 return true;
3589 }
3590 case GICXXCustomAction_GICombiner95:{
3591 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3592 // Match Patterns
3593 if(![&](){return Helper.matchOrShiftToFunnelShift(*State.MIs[0], false, GIMatchData_info);}()) {
3594 return false;
3595 }
3596 // Apply Patterns
3597 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3598 return true;
3599 }
3600 case GICXXCustomAction_GICombiner96:{
3601 // Match Patterns
3602 if(![&](){return Helper.matchFunnelShiftToRotate(*State.MIs[0]);}()) {
3603 return false;
3604 }
3605 // Apply Patterns
3606 Helper.applyFunnelShiftToRotate(*State.MIs[0]);
3607 return true;
3608 }
3609 case GICXXCustomAction_GICombiner97:{
3610 // Match Patterns
3611 if(![&](){return Helper.matchConstantLargerBitWidth(*State.MIs[0], 3);}()) {
3612 return false;
3613 }
3614 // Apply Patterns
3615 Helper.applyFunnelShiftConstantModulo(*State.MIs[0]);
3616 return true;
3617 }
3618 case GICXXCustomAction_GICombiner98:{
3619 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3620 // Match Patterns
3621 if(![&](){return Helper.matchCommuteShift(*State.MIs[0], GIMatchData_matchinfo);}()) {
3622 return false;
3623 }
3624 // Apply Patterns
3625 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3626 return true;
3627 }
3628 case GICXXCustomAction_GICombiner99:{
3629 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3630 // Match Patterns
3631 if(![&](){return Helper.matchBitfieldExtractFromSExtInReg(*State.MIs[0], GIMatchData_info);}()) {
3632 return false;
3633 }
3634 // Apply Patterns
3635 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3636 return true;
3637 }
3638 case GICXXCustomAction_GICombiner100:{
3639 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3640 // Match Patterns
3641 if(![&](){return Helper.matchBitfieldExtractFromAnd(*State.MIs[0], GIMatchData_info);}()) {
3642 return false;
3643 }
3644 // Apply Patterns
3645 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3646 return true;
3647 }
3648 case GICXXCustomAction_GICombiner101:{
3649 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3650 // Match Patterns
3651 if(![&](){return Helper.matchBitfieldExtractFromShr(*State.MIs[0], GIMatchData_info);}()) {
3652 return false;
3653 }
3654 // Apply Patterns
3655 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3656 return true;
3657 }
3658 case GICXXCustomAction_GICombiner102:{
3659 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3660 // Match Patterns
3661 if(![&](){return Helper.matchBitfieldExtractFromShrAnd(*State.MIs[0], GIMatchData_info);}()) {
3662 return false;
3663 }
3664 // Apply Patterns
3665 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3666 return true;
3667 }
3668 case GICXXCustomAction_GICombiner103:{
3669 APInt GIMatchData_matchinfo;
3670 // Match Patterns
3671 if(![&](){return Helper.matchConstantFoldBinOp(*State.MIs[0], GIMatchData_matchinfo);}()) {
3672 return false;
3673 }
3674 // Apply Patterns
3675 Helper.replaceInstWithConstant(*State.MIs[0], GIMatchData_matchinfo);
3676 return true;
3677 }
3678 case GICXXCustomAction_GICombiner104:{
3679 ConstantFP* GIMatchData_matchinfo;
3680 // Match Patterns
3681 if(![&](){return Helper.matchConstantFoldFPBinOp(*State.MIs[0], GIMatchData_matchinfo);}()) {
3682 return false;
3683 }
3684 // Apply Patterns
3685 Helper.replaceInstWithFConstant(*State.MIs[0], GIMatchData_matchinfo);
3686 return true;
3687 }
3688 case GICXXCustomAction_GICombiner105:{
3689 ConstantFP* GIMatchData_matchinfo;
3690 // Match Patterns
3691 if(![&](){return Helper.matchConstantFoldFMA(*State.MIs[0], GIMatchData_matchinfo);}()) {
3692 return false;
3693 }
3694 // Apply Patterns
3695 Helper.replaceInstWithFConstant(*State.MIs[0], GIMatchData_matchinfo);
3696 return true;
3697 }
3698 case GICXXCustomAction_GICombiner106:{
3699 APInt GIMatchData_matchinfo;
3700 // Match Patterns
3701 if(![&](){return Helper.matchConstantFoldCastOp(*State.MIs[0], GIMatchData_matchinfo);}()) {
3702 return false;
3703 }
3704 // Apply Patterns
3705 Helper.replaceInstWithConstant(*State.MIs[0], GIMatchData_matchinfo);
3706 return true;
3707 }
3708 case GICXXCustomAction_GICombiner107:{
3709 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3710 // Match Patterns
3711 if(![&](){return Helper.matchConstantFoldUnaryIntOp(*State.MIs[0], GIMatchData_matchinfo);}()) {
3712 return false;
3713 }
3714 // Apply Patterns
3715 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3716 return true;
3717 }
3718 case GICXXCustomAction_GICombiner108:{
3719 // Match Patterns
3720 if(![&](){return Helper.matchUMulHToLShr(*State.MIs[0]);}()) {
3721 return false;
3722 }
3723 // Apply Patterns
3724 Helper.applyUMulHToLShr(*State.MIs[0]);
3725 return true;
3726 }
3727 case GICXXCustomAction_GICombiner109:{
3728 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3729 // Match Patterns
3730 if(![&](){return Helper.matchRedundantNegOperands(*State.MIs[0], GIMatchData_matchinfo);}()) {
3731 return false;
3732 }
3733 // Apply Patterns
3734 Helper.applyBuildFnNoErase(*State.MIs[0], GIMatchData_matchinfo);
3735 return true;
3736 }
3737 case GICXXCustomAction_GICombiner110:{
3738 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3739 // Match Patterns
3740 if(![&](){return Helper.matchAndOrDisjointMask(*State.MIs[0], GIMatchData_info);}()) {
3741 return false;
3742 }
3743 // Apply Patterns
3744 Helper.applyBuildFnNoErase(*State.MIs[0], GIMatchData_info);
3745 return true;
3746 }
3747 case GICXXCustomAction_GICombiner111:{
3748 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3749 // Match Patterns
3750 if(![&](){return Helper.matchCombineFAddFMulToFMadOrFMA(*State.MIs[0],
3751 GIMatchData_info);}()) {
3752 return false;
3753 }
3754 // Apply Patterns
3755 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3756 return true;
3757 }
3758 case GICXXCustomAction_GICombiner112:{
3759 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3760 // Match Patterns
3761 if(![&](){return Helper.matchCombineFAddFpExtFMulToFMadOrFMA(*State.MIs[0],
3762 GIMatchData_info);}()) {
3763 return false;
3764 }
3765 // Apply Patterns
3766 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3767 return true;
3768 }
3769 case GICXXCustomAction_GICombiner113:{
3770 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3771 // Match Patterns
3772 if(![&](){return Helper.matchCombineFAddFMAFMulToFMadOrFMA(*State.MIs[0],
3773 GIMatchData_info);}()) {
3774 return false;
3775 }
3776 // Apply Patterns
3777 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3778 return true;
3779 }
3780 case GICXXCustomAction_GICombiner114:{
3781 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3782 // Match Patterns
3783 if(![&](){return Helper.matchCombineFAddFpExtFMulToFMadOrFMAAggressive(
3784 *State.MIs[0], GIMatchData_info);}()) {
3785 return false;
3786 }
3787 // Apply Patterns
3788 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3789 return true;
3790 }
3791 case GICXXCustomAction_GICombiner115:{
3792 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3793 // Match Patterns
3794 if(![&](){return Helper.matchCombineFSubFMulToFMadOrFMA(*State.MIs[0],
3795 GIMatchData_info);}()) {
3796 return false;
3797 }
3798 // Apply Patterns
3799 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3800 return true;
3801 }
3802 case GICXXCustomAction_GICombiner116:{
3803 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3804 // Match Patterns
3805 if(![&](){return Helper.matchCombineFSubFNegFMulToFMadOrFMA(*State.MIs[0],
3806 GIMatchData_info);}()) {
3807 return false;
3808 }
3809 // Apply Patterns
3810 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3811 return true;
3812 }
3813 case GICXXCustomAction_GICombiner117:{
3814 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3815 // Match Patterns
3816 if(![&](){return Helper.matchCombineFSubFpExtFMulToFMadOrFMA(*State.MIs[0],
3817 GIMatchData_info);}()) {
3818 return false;
3819 }
3820 // Apply Patterns
3821 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3822 return true;
3823 }
3824 case GICXXCustomAction_GICombiner118:{
3825 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3826 // Match Patterns
3827 if(![&](){return Helper.matchCombineFSubFpExtFNegFMulToFMadOrFMA(
3828 *State.MIs[0], GIMatchData_info);}()) {
3829 return false;
3830 }
3831 // Apply Patterns
3832 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3833 return true;
3834 }
3835 case GICXXCustomAction_GICombiner119:{
3836 unsigned GIMatchData_select_op_no;
3837 // Match Patterns
3838 if(![&](){return Helper.matchFoldBinOpIntoSelect(*State.MIs[0], GIMatchData_select_op_no);}()) {
3839 return false;
3840 }
3841 // Apply Patterns
3842 Helper.applyFoldBinOpIntoSelect(*State.MIs[0], GIMatchData_select_op_no);
3843 return true;
3844 }
3845 case GICXXCustomAction_GICombiner120:{
3846 // Match Patterns
3847 if(![&](){return Helper.matchOperandIsKnownToBeAPowerOfTwo(State.MIs[0]->getOperand(2),
3848 /*OrNegative=*/true);}()) {
3849 return false;
3850 }
3851 // Apply Patterns
3852 Helper.applySimplifySRemByPow2(*State.MIs[0]);
3853 return true;
3854 }
3855 case GICXXCustomAction_GICombiner121:{
3856 // Match Patterns
3857 if(![&](){return Helper.matchUDivOrURemByConst(*State.MIs[0]);}()) {
3858 return false;
3859 }
3860 // Apply Patterns
3861 Helper.applyUDivOrURemByConst(*State.MIs[0]);
3862 return true;
3863 }
3864 case GICXXCustomAction_GICombiner122:{
3865 // Match Patterns
3866 if(![&](){return Helper.matchSDivOrSRemByConst(*State.MIs[0]);}()) {
3867 return false;
3868 }
3869 // Apply Patterns
3870 Helper.applySDivOrSRemByConst(*State.MIs[0]);
3871 return true;
3872 }
3873 case GICXXCustomAction_GICombiner123:{
3874 // Match Patterns
3875 if(![&](){return Helper.matchDivByPow2(*State.MIs[0], /*IsSigned=*/false);}()) {
3876 return false;
3877 }
3878 // Apply Patterns
3879 Helper.applyUDivByPow2(*State.MIs[0]);
3880 return true;
3881 }
3882 case GICXXCustomAction_GICombiner124:{
3883 // Match Patterns
3884 if(![&](){return Helper.matchDivByPow2(*State.MIs[0], /*IsSigned=*/true);}()) {
3885 return false;
3886 }
3887 // Apply Patterns
3888 Helper.applySDivByPow2(*State.MIs[0]);
3889 return true;
3890 }
3891 case GICXXCustomAction_GICombiner125:{
3892 SmallVector<MachineInstr *> GIMatchData_matchinfo;
3893 // Match Patterns
3894 if(![&](){return Helper.matchRepeatedFPDivisor(*State.MIs[0], GIMatchData_matchinfo);}()) {
3895 return false;
3896 }
3897 // Apply Patterns
3898 Helper.applyRepeatedFPDivisor(GIMatchData_matchinfo);
3899 return true;
3900 }
3901 case GICXXCustomAction_GICombiner126:{
3902 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3903 // Match Patterns
3904 if(![&](){return Helper.matchSubAddSameReg(*State.MIs[0], GIMatchData_matchinfo);}()) {
3905 return false;
3906 }
3907 // Apply Patterns
3908 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3909 return true;
3910 }
3911 case GICXXCustomAction_GICombiner127:{
3912 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3913 // Match Patterns
3914 if(![&](){return Helper.matchSimplifySelectToMinMax(*State.MIs[0], GIMatchData_info);}()) {
3915 return false;
3916 }
3917 // Apply Patterns
3918 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3919 return true;
3920 }
3921 case GICXXCustomAction_GICombiner128:{
3922 Register GIMatchData_matchinfo;
3923 // Match Patterns
3924 if(![&](){return Helper.matchFsubToFneg(*State.MIs[0], GIMatchData_matchinfo);}()) {
3925 return false;
3926 }
3927 // Apply Patterns
3928 Helper.applyFsubToFneg(*State.MIs[0], GIMatchData_matchinfo);
3929 return true;
3930 }
3931 case GICXXCustomAction_GICombiner129:{
3932 // Match Patterns
3933 if(![&](){return Helper.matchCommuteConstantToRHS(*State.MIs[0]);}()) {
3934 return false;
3935 }
3936 // Apply Patterns
3937 Helper.applyCommuteBinOpOperands(*State.MIs[0]);
3938 return true;
3939 }
3940 case GICXXCustomAction_GICombiner130:{
3941 // Match Patterns
3942 if(![&](){return Helper.matchCommuteFPConstantToRHS(*State.MIs[0]);}()) {
3943 return false;
3944 }
3945 // Apply Patterns
3946 Helper.applyCommuteBinOpOperands(*State.MIs[0]);
3947 return true;
3948 }
3949 case GICXXCustomAction_GICombiner131:{
3950 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3951 // Match Patterns
3952 if(![&](){return Helper.matchAnd(*State.MIs[0], GIMatchData_matchinfo);}()) {
3953 return false;
3954 }
3955 // Apply Patterns
3956 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3957 return true;
3958 }
3959 case GICXXCustomAction_GICombiner132:{
3960 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3961 // Match Patterns
3962 if(![&](){return Helper.matchOr(*State.MIs[0], GIMatchData_matchinfo);}()) {
3963 return false;
3964 }
3965 // Apply Patterns
3966 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3967 return true;
3968 }
3969 case GICXXCustomAction_GICombiner133:{
3970 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3971 // Match Patterns
3972 if(![&](){return Helper.matchSimplifyNegMinMax(*State.MIs[0], GIMatchData_matchinfo);}()) {
3973 return false;
3974 }
3975 // Apply Patterns
3976 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3977 return true;
3978 }
3979 case GICXXCustomAction_GICombiner134:{
3980 SmallVector<Register> GIMatchData_matchinfo;
3981 // Match Patterns
3982 if(![&](){return Helper.matchCombineConcatVectors(*State.MIs[0], GIMatchData_matchinfo);}()) {
3983 return false;
3984 }
3985 // Apply Patterns
3986 Helper.applyCombineConcatVectors(*State.MIs[0], GIMatchData_matchinfo);
3987 return true;
3988 }
3989 case GICXXCustomAction_GICombiner135:{
3990 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3991 // Match Patterns
3992 if(![&](){return Helper.matchSextOfTrunc(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
3993 return false;
3994 }
3995 // Apply Patterns
3996 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
3997 return true;
3998 }
3999 case GICXXCustomAction_GICombiner136:{
4000 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4001 // Match Patterns
4002 if(![&](){return Helper.matchZextOfTrunc(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
4003 return false;
4004 }
4005 // Apply Patterns
4006 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
4007 return true;
4008 }
4009 case GICXXCustomAction_GICombiner137:{
4010 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4011 // Match Patterns
4012 if(![&](){return Helper.matchNonNegZext(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
4013 return false;
4014 }
4015 // Apply Patterns
4016 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
4017 return true;
4018 }
4019 case GICXXCustomAction_GICombiner138:{
4020 SmallVector<Register> GIMatchData_matchinfo;
4021 // Match Patterns
4022 if(![&](){return Helper.matchCombineShuffleConcat(*State.MIs[0], GIMatchData_matchinfo);}()) {
4023 return false;
4024 }
4025 // Apply Patterns
4026 Helper.applyCombineShuffleConcat(*State.MIs[0], GIMatchData_matchinfo);
4027 return true;
4028 }
4029 case GICXXCustomAction_GICombiner139:{
4030 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4031 // Match Patterns
4032 if(![&](){return Helper.matchShuffleUndefRHS(*State.MIs[0], GIMatchData_matchinfo);}()) {
4033 return false;
4034 }
4035 // Apply Patterns
4036 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4037 return true;
4038 }
4039 case GICXXCustomAction_GICombiner140:{
4040 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4041 // Match Patterns
4042 if(![&](){return Helper.matchShuffleDisjointMask(*State.MIs[0], GIMatchData_matchinfo);}()) {
4043 return false;
4044 }
4045 // Apply Patterns
4046 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4047 return true;
4048 }
4049 case GICXXCustomAction_GICombiner141:{
4050 Register GIMatchData_matchinfo;
4051 // Match Patterns
4052 if(![&](){return Helper.matchUseVectorTruncate(*State.MIs[0], GIMatchData_matchinfo);}()) {
4053 return false;
4054 }
4055 // Apply Patterns
4056 Helper.applyUseVectorTruncate(*State.MIs[0], GIMatchData_matchinfo);
4057 return true;
4058 }
4059 case GICXXCustomAction_GICombiner142:{
4060 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4061 // Match Patterns
4062 if(![&](){return Helper.matchUnmergeValuesAnyExtBuildVector(*State.MIs[0], GIMatchData_matchinfo);}()) {
4063 return false;
4064 }
4065 // Apply Patterns
4066 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4067 return true;
4068 }
4069 case GICXXCustomAction_GICombiner143:{
4070 SmallVector<Register> GIMatchData_info;
4071 // Match Patterns
4072 if(![&](){return Helper.matchCombineUnmergeMergeToPlainValues(*State.MIs[0], GIMatchData_info);}()) {
4073 return false;
4074 }
4075 // Apply Patterns
4076 Helper.applyCombineUnmergeMergeToPlainValues(*State.MIs[0], GIMatchData_info);
4077 return true;
4078 }
4079 case GICXXCustomAction_GICombiner144:{
4080 Register GIMatchData_src;
4081 // Match Patterns
4082 if(![&](){// Check if first source comes from G_UNMERGE_VALUES.
4083 Register FirstMergeSrc = getRemainingOperands(*State.MIs[0], 1)[0].getReg();
4084 MachineInstr *UnmergeMI = MRI.getVRegDef(FirstMergeSrc);
4085 if (!UnmergeMI || UnmergeMI->getOpcode() != TargetOpcode::G_UNMERGE_VALUES)
4086 return false;
4087
4088 // Check counts match.
4089 unsigned NumMergeSrcs = getRemainingOperands(*State.MIs[0], 1).size();
4090 unsigned NumUnmergeDefs = UnmergeMI->getNumDefs();
4091 if (NumMergeSrcs != NumUnmergeDefs)
4092 return false;
4093
4094 // Verify all merge sources match unmerge defs in order.
4095 for (unsigned I = 0; I < NumMergeSrcs; ++I) {
4096 Register MergeSrc = getRemainingOperands(*State.MIs[0], 1)[I].getReg();
4097 Register UnmergeDef = UnmergeMI->getOperand(I).getReg();
4098
4099 if (MergeSrc != UnmergeDef)
4100 return false;
4101
4102 if (!MRI.hasOneNonDBGUse(MergeSrc))
4103 return false;
4104 }
4105
4106 // Check size compatibility.
4107 GIMatchData_src = UnmergeMI->getOperand(NumUnmergeDefs).getReg();
4108 LLT SrcTy = MRI.getType(GIMatchData_src);
4109 LLT DstTy = MRI.getType(State.MIs[0]->getOperand(0).getReg());
4110 if (SrcTy.getSizeInBits() != DstTy.getSizeInBits())
4111 return false;
4112
4113 // Check bitcast legality.
4114 if (SrcTy != DstTy) {
4115 std::array<LLT, 2> Types = {{DstTy, SrcTy}};
4116 LegalityQuery Query(TargetOpcode::G_BITCAST, Types);
4117 if (!Helper.isLegalOrBeforeLegalizer(Query))
4118 return false;
4119 }
4120
4121 return true;}()) {
4122 return false;
4123 }
4124 // Apply Patterns
4125 LLT SrcTy = MRI.getType(GIMatchData_src);
4126 LLT DstTy = MRI.getType(State.MIs[0]->getOperand(0).getReg());
4127
4128 Helper.getBuilder().setInstrAndDebugLoc(*State.MIs[0]);
4129
4130 if (SrcTy == DstTy) {
4131 Helper.replaceRegWith(MRI, State.MIs[0]->getOperand(0).getReg(), GIMatchData_src);
4132 } else {
4133 Helper.getBuilder().buildBitcast(State.MIs[0]->getOperand(0).getReg(), GIMatchData_src);
4134 }
4135
4136 State.MIs[0]->eraseFromParent();
4137 return true;
4138 }
4139 case GICXXCustomAction_GICombiner145:{
4140 SmallVector<APInt, 8> GIMatchData_info;
4141 // Match Patterns
4142 if(![&](){return Helper.matchCombineUnmergeConstant(*State.MIs[0], GIMatchData_info);}()) {
4143 return false;
4144 }
4145 // Apply Patterns
4146 Helper.applyCombineUnmergeConstant(*State.MIs[0], GIMatchData_info);
4147 return true;
4148 }
4149 case GICXXCustomAction_GICombiner146:{
4150 std::function<void(MachineIRBuilder &)> GIMatchData_info;
4151 // Match Patterns
4152 if(![&](){return Helper.matchCombineUnmergeUndef(*State.MIs[0], GIMatchData_info);}()) {
4153 return false;
4154 }
4155 // Apply Patterns
4156 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
4157 return true;
4158 }
4159 case GICXXCustomAction_GICombiner147:{
4160 // Match Patterns
4161 if(![&](){return Helper.matchCombineUnmergeWithDeadLanesToTrunc(*State.MIs[0]);}()) {
4162 return false;
4163 }
4164 // Apply Patterns
4165 Helper.applyCombineUnmergeWithDeadLanesToTrunc(*State.MIs[0]);
4166 return true;
4167 }
4168 case GICXXCustomAction_GICombiner148:{
4169 // Match Patterns
4170 if(![&](){return Helper.matchCombineUnmergeZExtToZExt(*State.MIs[0]);}()) {
4171 return false;
4172 }
4173 // Apply Patterns
4174 Helper.applyCombineUnmergeZExtToZExt(*State.MIs[0]);
4175 return true;
4176 }
4177 case GICXXCustomAction_GICombiner149:{
4178 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4179 // Match Patterns
4180 if(![&](){return Helper.matchMergeXAndUndef(*State.MIs[0], GIMatchData_matchinfo);}()) {
4181 return false;
4182 }
4183 // Apply Patterns
4184 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4185 return true;
4186 }
4187 case GICXXCustomAction_GICombiner150:{
4188 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4189 // Match Patterns
4190 if(![&](){return Helper.matchMergeXAndZero(*State.MIs[0], GIMatchData_matchinfo);}()) {
4191 return false;
4192 }
4193 // Apply Patterns
4194 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4195 return true;
4196 }
4197 case GICXXCustomAction_GICombiner151:{
4198 Register GIMatchData_unmergeSrc;
4199 // Match Patterns
4200 if(![&](){return Helper.matchCombineBuildUnmerge(*State.MIs[0], MRI, GIMatchData_unmergeSrc);}()) {
4201 return false;
4202 }
4203 // Apply Patterns
4204 Helper.applyCombineBuildUnmerge(*State.MIs[0], MRI, B, GIMatchData_unmergeSrc);
4205 return true;
4206 }
4207 case GICXXCustomAction_GICombiner152:{
4208 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4209 // Match Patterns
4210 if(![&](){return Helper.matchAddOverflow(*State.MIs[0], GIMatchData_matchinfo);}()) {
4211 return false;
4212 }
4213 // Apply Patterns
4214 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4215 return true;
4216 }
4217 case GICXXCustomAction_GICombiner153:{
4218 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4219 // Match Patterns
4220 if(![&](){return Helper.matchSuboCarryOut(*State.MIs[0], GIMatchData_matchinfo);}()) {
4221 return false;
4222 }
4223 // Apply Patterns
4224 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4225 return true;
4226 }
4227 case GICXXCustomAction_GICombiner154:{
4228 Register GIMatchData_matchinfo;
4229 // Match Patterns
4230 if(![&](){return Helper.matchTruncSSatS(*State.MIs[0], GIMatchData_matchinfo);}()) {
4231 return false;
4232 }
4233 // Apply Patterns
4234 Helper.applyTruncSSatS(*State.MIs[0], GIMatchData_matchinfo);
4235 return true;
4236 }
4237 case GICXXCustomAction_GICombiner155:{
4238 Register GIMatchData_matchinfo;
4239 // Match Patterns
4240 if(![&](){return Helper.matchTruncSSatU(*State.MIs[0], GIMatchData_matchinfo);}()) {
4241 return false;
4242 }
4243 // Apply Patterns
4244 Helper.applyTruncSSatU(*State.MIs[0], GIMatchData_matchinfo);
4245 return true;
4246 }
4247 case GICXXCustomAction_GICombiner156:{
4248 LshrOfTruncOfLshr GIMatchData_matchinfo;
4249 // Match Patterns
4250 if(![&](){return Helper.matchLshrOfTruncOfLshr(*State.MIs[0], GIMatchData_matchinfo, *State.MIs[2]);}()) {
4251 return false;
4252 }
4253 // Apply Patterns
4254 Helper.applyLshrOfTruncOfLshr(*State.MIs[0], GIMatchData_matchinfo);
4255 return true;
4256 }
4257 case GICXXCustomAction_GICombiner157:{
4258 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4259 // Match Patterns
4260 if(![&](){return Helper.matchCtls(*State.MIs[0], GIMatchData_matchinfo);}()) {
4261 return false;
4262 }
4263 // Apply Patterns
4264 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4265 return true;
4266 }
4267 case GICXXCustomAction_GICombiner158:{
4268 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4269 // Match Patterns
4270 if(![&](){return Helper.matchBinopWithNeg(*State.MIs[0], GIMatchData_matchinfo);}()) {
4271 return false;
4272 }
4273 // Apply Patterns
4274 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4275 return true;
4276 }
4277 case GICXXCustomAction_GICombiner159:{
4278 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4279 // Match Patterns
4280 if(![&](){return Helper.matchCombineFmulWithSelectToFldexp(*State.MIs[0], *State.MIs[1], GIMatchData_matchinfo);}()) {
4281 return false;
4282 }
4283 // Apply Patterns
4284 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4285 return true;
4286 }
4287 case GICXXCustomAction_GICombiner160:{
4288 ClampI64ToI16MatchInfo GIMatchData_matchinfo;
4289 // Match Patterns
4290 if(![&](){return matchClampI64ToI16(*State.MIs[0], MRI, MF, GIMatchData_matchinfo);}()) {
4291 return false;
4292 }
4293 // Apply Patterns
4294 applyClampI64ToI16(*State.MIs[0], GIMatchData_matchinfo);
4295 return true;
4296 }
4297 case GICXXCustomAction_GICombiner161:{
4298 MachineInstr * GIMatchData_matchinfo;
4299 // Match Patterns
4300 if(![&](){return Helper.matchFoldableFneg(*State.MIs[0], GIMatchData_matchinfo);}()) {
4301 return false;
4302 }
4303 // Apply Patterns
4304 Helper.applyFoldableFneg(*State.MIs[0], GIMatchData_matchinfo);
4305 return true;
4306 }
4307 case GICXXCustomAction_GICombiner162:{
4308 SmallVector<Register> GIMatchData_matchinfo;
4309 // Match Patterns
4310 if(![&](){return Helper.matchCombineShuffleVector(*State.MIs[0], GIMatchData_matchinfo);}()) {
4311 return false;
4312 }
4313 // Apply Patterns
4314 Helper.applyCombineShuffleVector(*State.MIs[0], GIMatchData_matchinfo);
4315 return true;
4316 }
4317 case GICXXCustomAction_GICombiner163:{
4318 // Apply Patterns
4319 Helper.applyCombineShuffleToBuildVector(*State.MIs[0]);
4320 return true;
4321 }
4322 }
4323 llvm_unreachable("Unknown Apply Action");
4324}
4325#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
4326#define GIMT_Encode2(Val) uint8_t(Val), uint8_t((Val) >> 8)
4327#define GIMT_Encode4(Val) uint8_t(Val), uint8_t((Val) >> 8), uint8_t((Val) >> 16), uint8_t((Val) >> 24)
4328#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)
4329#else
4330#define GIMT_Encode2(Val) uint8_t((Val) >> 8), uint8_t(Val)
4331#define GIMT_Encode4(Val) uint8_t((Val) >> 24), uint8_t((Val) >> 16), uint8_t((Val) >> 8), uint8_t(Val)
4332#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)
4333#endif
4334const uint8_t *AMDGPUPreLegalizerCombinerImpl::getMatchTable() const {
4335 constexpr static uint8_t MatchTable0[] = {
4336 /* 0 */ GIM_SwitchOpcode, /*MI*/0, /*[*/GIMT_Encode2(20), GIMT_Encode2(285), /*)*//*default:*//*Label 113*/ GIMT_Encode4(10419),
4337 /* 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),
4338 /* 150 */ /*TargetOpcode::G_ADD*//*Label 1*/ GIMT_Encode4(1082),
4339 /* 154 */ /*TargetOpcode::G_SUB*//*Label 2*/ GIMT_Encode4(1815),
4340 /* 158 */ /*TargetOpcode::G_MUL*//*Label 3*/ GIMT_Encode4(2796),
4341 /* 162 */ /*TargetOpcode::G_SDIV*//*Label 4*/ GIMT_Encode4(3002),
4342 /* 166 */ /*TargetOpcode::G_UDIV*//*Label 5*/ GIMT_Encode4(3104),
4343 /* 170 */ /*TargetOpcode::G_SREM*//*Label 6*/ GIMT_Encode4(3217),
4344 /* 174 */ /*TargetOpcode::G_UREM*//*Label 7*/ GIMT_Encode4(3313), GIMT_Encode4(0), GIMT_Encode4(0),
4345 /* 186 */ /*TargetOpcode::G_AND*//*Label 8*/ GIMT_Encode4(3420),
4346 /* 190 */ /*TargetOpcode::G_OR*//*Label 9*/ GIMT_Encode4(3961),
4347 /* 194 */ /*TargetOpcode::G_XOR*//*Label 10*/ GIMT_Encode4(4964), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4348 /* 226 */ /*TargetOpcode::G_PHI*//*Label 11*/ GIMT_Encode4(5175), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4349 /* 250 */ /*TargetOpcode::G_UNMERGE_VALUES*//*Label 12*/ GIMT_Encode4(5187), GIMT_Encode4(0),
4350 /* 258 */ /*TargetOpcode::G_MERGE_VALUES*//*Label 13*/ GIMT_Encode4(5254),
4351 /* 262 */ /*TargetOpcode::G_BUILD_VECTOR*//*Label 14*/ GIMT_Encode4(5331),
4352 /* 266 */ /*TargetOpcode::G_BUILD_VECTOR_TRUNC*//*Label 15*/ GIMT_Encode4(5396),
4353 /* 270 */ /*TargetOpcode::G_CONCAT_VECTORS*//*Label 16*/ GIMT_Encode4(5408),
4354 /* 274 */ /*TargetOpcode::G_PTRTOINT*//*Label 17*/ GIMT_Encode4(5420),
4355 /* 278 */ /*TargetOpcode::G_INTTOPTR*//*Label 18*/ GIMT_Encode4(5463),
4356 /* 282 */ /*TargetOpcode::G_BITCAST*//*Label 19*/ GIMT_Encode4(5496),
4357 /* 286 */ /*TargetOpcode::G_FREEZE*//*Label 20*/ GIMT_Encode4(5571), GIMT_Encode4(0), GIMT_Encode4(0),
4358 /* 298 */ /*TargetOpcode::G_INTRINSIC_TRUNC*//*Label 21*/ GIMT_Encode4(5635),
4359 /* 302 */ /*TargetOpcode::G_INTRINSIC_ROUND*//*Label 22*/ GIMT_Encode4(5657), GIMT_Encode4(0), GIMT_Encode4(0),
4360 /* 314 */ /*TargetOpcode::G_INTRINSIC_ROUNDEVEN*//*Label 23*/ GIMT_Encode4(5679), GIMT_Encode4(0), GIMT_Encode4(0),
4361 /* 326 */ /*TargetOpcode::G_LOAD*//*Label 24*/ GIMT_Encode4(5701),
4362 /* 330 */ /*TargetOpcode::G_SEXTLOAD*//*Label 25*/ GIMT_Encode4(5713),
4363 /* 334 */ /*TargetOpcode::G_ZEXTLOAD*//*Label 26*/ GIMT_Encode4(5725), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4364 /* 354 */ /*TargetOpcode::G_STORE*//*Label 27*/ GIMT_Encode4(5737), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4365 /* 502 */ /*TargetOpcode::G_ANYEXT*//*Label 28*/ GIMT_Encode4(5749),
4366 /* 506 */ /*TargetOpcode::G_TRUNC*//*Label 29*/ GIMT_Encode4(5877), GIMT_Encode4(0), GIMT_Encode4(0),
4367 /* 518 */ /*TargetOpcode::G_TRUNC_USAT_U*//*Label 30*/ GIMT_Encode4(6300), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4368 /* 538 */ /*TargetOpcode::G_SEXT*//*Label 31*/ GIMT_Encode4(6333),
4369 /* 542 */ /*TargetOpcode::G_SEXT_INREG*//*Label 32*/ GIMT_Encode4(6408),
4370 /* 546 */ /*TargetOpcode::G_ZEXT*//*Label 33*/ GIMT_Encode4(6474),
4371 /* 550 */ /*TargetOpcode::G_SHL*//*Label 34*/ GIMT_Encode4(6604),
4372 /* 554 */ /*TargetOpcode::G_LSHR*//*Label 35*/ GIMT_Encode4(6802),
4373 /* 558 */ /*TargetOpcode::G_ASHR*//*Label 36*/ GIMT_Encode4(7149),
4374 /* 562 */ /*TargetOpcode::G_FSHL*//*Label 37*/ GIMT_Encode4(7478),
4375 /* 566 */ /*TargetOpcode::G_FSHR*//*Label 38*/ GIMT_Encode4(7521),
4376 /* 570 */ /*TargetOpcode::G_ROTR*//*Label 39*/ GIMT_Encode4(7564),
4377 /* 574 */ /*TargetOpcode::G_ROTL*//*Label 40*/ GIMT_Encode4(7588),
4378 /* 578 */ /*TargetOpcode::G_ICMP*//*Label 41*/ GIMT_Encode4(7612),
4379 /* 582 */ /*TargetOpcode::G_FCMP*//*Label 42*/ GIMT_Encode4(7657), GIMT_Encode4(0), GIMT_Encode4(0),
4380 /* 594 */ /*TargetOpcode::G_SELECT*//*Label 43*/ GIMT_Encode4(7669),
4381 /* 598 */ /*TargetOpcode::G_UADDO*//*Label 44*/ GIMT_Encode4(7849),
4382 /* 602 */ /*TargetOpcode::G_UADDE*//*Label 45*/ GIMT_Encode4(7872),
4383 /* 606 */ /*TargetOpcode::G_USUBO*//*Label 46*/ GIMT_Encode4(7884),
4384 /* 610 */ /*TargetOpcode::G_USUBE*//*Label 47*/ GIMT_Encode4(7896),
4385 /* 614 */ /*TargetOpcode::G_SADDO*//*Label 48*/ GIMT_Encode4(7908),
4386 /* 618 */ /*TargetOpcode::G_SADDE*//*Label 49*/ GIMT_Encode4(7931),
4387 /* 622 */ /*TargetOpcode::G_SSUBO*//*Label 50*/ GIMT_Encode4(7943),
4388 /* 626 */ /*TargetOpcode::G_SSUBE*//*Label 51*/ GIMT_Encode4(7955),
4389 /* 630 */ /*TargetOpcode::G_UMULO*//*Label 52*/ GIMT_Encode4(7967),
4390 /* 634 */ /*TargetOpcode::G_SMULO*//*Label 53*/ GIMT_Encode4(8001),
4391 /* 638 */ /*TargetOpcode::G_UMULH*//*Label 54*/ GIMT_Encode4(8035),
4392 /* 642 */ /*TargetOpcode::G_SMULH*//*Label 55*/ GIMT_Encode4(8058),
4393 /* 646 */ /*TargetOpcode::G_UADDSAT*//*Label 56*/ GIMT_Encode4(8070),
4394 /* 650 */ /*TargetOpcode::G_SADDSAT*//*Label 57*/ GIMT_Encode4(8082), GIMT_Encode4(0), GIMT_Encode4(0),
4395 /* 662 */ /*TargetOpcode::G_USHLSAT*//*Label 58*/ GIMT_Encode4(8094),
4396 /* 666 */ /*TargetOpcode::G_SSHLSAT*//*Label 59*/ GIMT_Encode4(8117),
4397 /* 670 */ /*TargetOpcode::G_SMULFIX*//*Label 60*/ GIMT_Encode4(8140),
4398 /* 674 */ /*TargetOpcode::G_UMULFIX*//*Label 61*/ GIMT_Encode4(8152),
4399 /* 678 */ /*TargetOpcode::G_SMULFIXSAT*//*Label 62*/ GIMT_Encode4(8164),
4400 /* 682 */ /*TargetOpcode::G_UMULFIXSAT*//*Label 63*/ GIMT_Encode4(8176), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4401 /* 702 */ /*TargetOpcode::G_FADD*//*Label 64*/ GIMT_Encode4(8188),
4402 /* 706 */ /*TargetOpcode::G_FSUB*//*Label 65*/ GIMT_Encode4(8329),
4403 /* 710 */ /*TargetOpcode::G_FMUL*//*Label 66*/ GIMT_Encode4(8418),
4404 /* 714 */ /*TargetOpcode::G_FMA*//*Label 67*/ GIMT_Encode4(8527),
4405 /* 718 */ /*TargetOpcode::G_FMAD*//*Label 68*/ GIMT_Encode4(8550),
4406 /* 722 */ /*TargetOpcode::G_FDIV*//*Label 69*/ GIMT_Encode4(8573),
4407 /* 726 */ /*TargetOpcode::G_FREM*//*Label 70*/ GIMT_Encode4(8618), GIMT_Encode4(0), GIMT_Encode4(0),
4408 /* 738 */ /*TargetOpcode::G_FPOWI*//*Label 71*/ GIMT_Encode4(8641), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4409 /* 758 */ /*TargetOpcode::G_FLOG2*//*Label 72*/ GIMT_Encode4(8663), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4410 /* 774 */ /*TargetOpcode::G_FNEG*//*Label 73*/ GIMT_Encode4(8685),
4411 /* 778 */ /*TargetOpcode::G_FPEXT*//*Label 74*/ GIMT_Encode4(8747),
4412 /* 782 */ /*TargetOpcode::G_FPTRUNC*//*Label 75*/ GIMT_Encode4(8769),
4413 /* 786 */ /*TargetOpcode::G_FPTOSI*//*Label 76*/ GIMT_Encode4(8812),
4414 /* 790 */ /*TargetOpcode::G_FPTOUI*//*Label 77*/ GIMT_Encode4(8834),
4415 /* 794 */ /*TargetOpcode::G_SITOFP*//*Label 78*/ GIMT_Encode4(8856),
4416 /* 798 */ /*TargetOpcode::G_UITOFP*//*Label 79*/ GIMT_Encode4(8883), GIMT_Encode4(0), GIMT_Encode4(0),
4417 /* 810 */ /*TargetOpcode::G_FABS*//*Label 80*/ GIMT_Encode4(8910),
4418 /* 814 */ /*TargetOpcode::G_FCOPYSIGN*//*Label 81*/ GIMT_Encode4(8989), GIMT_Encode4(0),
4419 /* 822 */ /*TargetOpcode::G_FCANONICALIZE*//*Label 82*/ GIMT_Encode4(9001),
4420 /* 826 */ /*TargetOpcode::G_FMINNUM*//*Label 83*/ GIMT_Encode4(9031),
4421 /* 830 */ /*TargetOpcode::G_FMAXNUM*//*Label 84*/ GIMT_Encode4(9076),
4422 /* 834 */ /*TargetOpcode::G_FMINNUM_IEEE*//*Label 85*/ GIMT_Encode4(9121),
4423 /* 838 */ /*TargetOpcode::G_FMAXNUM_IEEE*//*Label 86*/ GIMT_Encode4(9133),
4424 /* 842 */ /*TargetOpcode::G_FMINIMUM*//*Label 87*/ GIMT_Encode4(9145),
4425 /* 846 */ /*TargetOpcode::G_FMAXIMUM*//*Label 88*/ GIMT_Encode4(9190),
4426 /* 850 */ /*TargetOpcode::G_FMINIMUMNUM*//*Label 89*/ GIMT_Encode4(9235),
4427 /* 854 */ /*TargetOpcode::G_FMAXIMUMNUM*//*Label 90*/ GIMT_Encode4(9247), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4428 /* 890 */ /*TargetOpcode::G_PTR_ADD*//*Label 91*/ GIMT_Encode4(9259), GIMT_Encode4(0),
4429 /* 898 */ /*TargetOpcode::G_SMIN*//*Label 92*/ GIMT_Encode4(9349),
4430 /* 902 */ /*TargetOpcode::G_SMAX*//*Label 93*/ GIMT_Encode4(9383),
4431 /* 906 */ /*TargetOpcode::G_UMIN*//*Label 94*/ GIMT_Encode4(9417),
4432 /* 910 */ /*TargetOpcode::G_UMAX*//*Label 95*/ GIMT_Encode4(9451),
4433 /* 914 */ /*TargetOpcode::G_ABS*//*Label 96*/ GIMT_Encode4(9485), GIMT_Encode4(0), GIMT_Encode4(0),
4434 /* 926 */ /*TargetOpcode::G_BR*//*Label 97*/ GIMT_Encode4(9508), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4435 /* 946 */ /*TargetOpcode::G_INSERT_VECTOR_ELT*//*Label 98*/ GIMT_Encode4(9520),
4436 /* 950 */ /*TargetOpcode::G_EXTRACT_VECTOR_ELT*//*Label 99*/ GIMT_Encode4(9650),
4437 /* 954 */ /*TargetOpcode::G_SHUFFLE_VECTOR*//*Label 100*/ GIMT_Encode4(10027), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4438 /* 970 */ /*TargetOpcode::G_CTTZ*//*Label 101*/ GIMT_Encode4(10115),
4439 /* 974 */ /*TargetOpcode::G_CTTZ_ZERO_POISON*//*Label 102*/ GIMT_Encode4(10127),
4440 /* 978 */ /*TargetOpcode::G_CTLZ*//*Label 103*/ GIMT_Encode4(10139),
4441 /* 982 */ /*TargetOpcode::G_CTLZ_ZERO_POISON*//*Label 104*/ GIMT_Encode4(10162), GIMT_Encode4(0),
4442 /* 990 */ /*TargetOpcode::G_CTPOP*//*Label 105*/ GIMT_Encode4(10185),
4443 /* 994 */ /*TargetOpcode::G_BSWAP*//*Label 106*/ GIMT_Encode4(10197),
4444 /* 998 */ /*TargetOpcode::G_BITREVERSE*//*Label 107*/ GIMT_Encode4(10209), GIMT_Encode4(0),
4445 /* 1006 */ /*TargetOpcode::G_FCEIL*//*Label 108*/ GIMT_Encode4(10309), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4446 /* 1054 */ /*TargetOpcode::G_FSQRT*//*Label 109*/ GIMT_Encode4(10331),
4447 /* 1058 */ /*TargetOpcode::G_FFLOOR*//*Label 110*/ GIMT_Encode4(10353),
4448 /* 1062 */ /*TargetOpcode::G_FRINT*//*Label 111*/ GIMT_Encode4(10375),
4449 /* 1066 */ /*TargetOpcode::G_FNEARBYINT*//*Label 112*/ GIMT_Encode4(10397),
4450 /* 1070 */ // Label 0: @1070
4451 /* 1070 */ GIM_Try, /*On fail goto*//*Label 114*/ GIMT_Encode4(1081), // Rule ID 19 //
4452 /* 1075 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule19Enabled),
4453 /* 1078 */ // MIs[0] d
4454 /* 1078 */ // No operand predicates
4455 /* 1078 */ // MIs[0] s
4456 /* 1078 */ // No operand predicates
4457 /* 1078 */ // Combiner Rule #19: copy_prop
4458 /* 1078 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner5),
4459 /* 1081 */ // Label 114: @1081
4460 /* 1081 */ GIM_Reject,
4461 /* 1082 */ // Label 1: @1082
4462 /* 1082 */ GIM_Try, /*On fail goto*//*Label 115*/ GIMT_Encode4(1093), // Rule ID 22 //
4463 /* 1087 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule22Enabled),
4464 /* 1090 */ // Combiner Rule #22: add_p2i_to_ptradd; wip_match_opcode 'G_ADD'
4465 /* 1090 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner8),
4466 /* 1093 */ // Label 115: @1093
4467 /* 1093 */ GIM_Try, /*On fail goto*//*Label 116*/ GIMT_Encode4(1104), // Rule ID 100 //
4468 /* 1098 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule84Enabled),
4469 /* 1101 */ // Combiner Rule #84: propagate_undef_any_op; wip_match_opcode 'G_ADD'
4470 /* 1101 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner39),
4471 /* 1104 */ // Label 116: @1104
4472 /* 1104 */ GIM_Try, /*On fail goto*//*Label 117*/ GIMT_Encode4(1115), // Rule ID 152 //
4473 /* 1109 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule112Enabled),
4474 /* 1112 */ // Combiner Rule #112: simplify_add_to_sub; wip_match_opcode 'G_ADD'
4475 /* 1112 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner53),
4476 /* 1115 */ // Label 117: @1115
4477 /* 1115 */ GIM_Try, /*On fail goto*//*Label 118*/ GIMT_Encode4(1126), // Rule ID 256 //
4478 /* 1120 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled),
4479 /* 1123 */ // Combiner Rule #187: constant_fold_binop; wip_match_opcode 'G_ADD'
4480 /* 1123 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103),
4481 /* 1126 */ // Label 118: @1126
4482 /* 1126 */ GIM_Try, /*On fail goto*//*Label 119*/ GIMT_Encode4(1137), // Rule ID 316 //
4483 /* 1131 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
4484 /* 1134 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_ADD'
4485 /* 1134 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
4486 /* 1137 */ // Label 119: @1137
4487 /* 1137 */ GIM_Try, /*On fail goto*//*Label 120*/ GIMT_Encode4(1148), // Rule ID 353 //
4488 /* 1142 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
4489 /* 1145 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_ADD'
4490 /* 1145 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129),
4491 /* 1148 */ // Label 120: @1148
4492 /* 1148 */ GIM_Try, /*On fail goto*//*Label 121*/ GIMT_Encode4(1236), // Rule ID 419 //
4493 /* 1153 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule252Enabled),
4494 /* 1156 */ // MIs[0] dst
4495 /* 1156 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
4496 /* 1160 */ // MIs[0] __add_shift_match_0.shl_neg
4497 /* 1160 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4498 /* 1164 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SHL),
4499 /* 1168 */ // MIs[1] __add_shift_match_0.neg_y
4500 /* 1168 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
4501 /* 1172 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB),
4502 /* 1176 */ // MIs[2] __add_shift_match_0.zero
4503 /* 1176 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/2, /*OpIdx*/1, // MIs[3]
4504 /* 1180 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
4505 /* 1184 */ // MIs[3] Operand 1
4506 /* 1184 */ GIM_CheckLiteralInt, /*MI*/3, /*Op*/1, GIMT_Encode8(0),
4507 /* 1195 */ // MIs[2] y
4508 /* 1195 */ // No operand predicates
4509 /* 1195 */ // MIs[1] n
4510 /* 1195 */ // No operand predicates
4511 /* 1195 */ // MIs[0] x
4512 /* 1195 */ // No operand predicates
4513 /* 1195 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner18),
4514 /* 1199 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
4515 /* 1201 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
4516 /* 1204 */ // Combiner Rule #252: add_shift @ [__add_shift_match_0[1]]
4517 /* 1204 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SHL),
4518 /* 1207 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
4519 /* 1212 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/2, // y
4520 /* 1216 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // n
4521 /* 1220 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
4522 /* 1224 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
4523 /* 1228 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/2, // x
4524 /* 1232 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
4525 /* 1235 */ GIR_EraseRootFromParent_Done,
4526 /* 1236 */ // Label 121: @1236
4527 /* 1236 */ GIM_Try, /*On fail goto*//*Label 122*/ GIMT_Encode4(1324), // Rule ID 418 //
4528 /* 1241 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule252Enabled),
4529 /* 1244 */ // MIs[0] dst
4530 /* 1244 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
4531 /* 1248 */ // MIs[0] x
4532 /* 1248 */ // No operand predicates
4533 /* 1248 */ // MIs[0] __add_shift_match_0.shl_neg
4534 /* 1248 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
4535 /* 1252 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SHL),
4536 /* 1256 */ // MIs[1] __add_shift_match_0.neg_y
4537 /* 1256 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
4538 /* 1260 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB),
4539 /* 1264 */ // MIs[2] __add_shift_match_0.zero
4540 /* 1264 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/2, /*OpIdx*/1, // MIs[3]
4541 /* 1268 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
4542 /* 1272 */ // MIs[3] Operand 1
4543 /* 1272 */ GIM_CheckLiteralInt, /*MI*/3, /*Op*/1, GIMT_Encode8(0),
4544 /* 1283 */ // MIs[2] y
4545 /* 1283 */ // No operand predicates
4546 /* 1283 */ // MIs[1] n
4547 /* 1283 */ // No operand predicates
4548 /* 1283 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner17),
4549 /* 1287 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
4550 /* 1289 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
4551 /* 1292 */ // Combiner Rule #252: add_shift @ [__add_shift_match_0[0]]
4552 /* 1292 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SHL),
4553 /* 1295 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
4554 /* 1300 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/2, // y
4555 /* 1304 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // n
4556 /* 1308 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
4557 /* 1312 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
4558 /* 1316 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/1, // x
4559 /* 1320 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
4560 /* 1323 */ GIR_EraseRootFromParent_Done,
4561 /* 1324 */ // Label 122: @1324
4562 /* 1324 */ GIM_Try, /*On fail goto*//*Label 123*/ GIMT_Encode4(1358), // Rule ID 2 //
4563 /* 1329 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule2Enabled),
4564 /* 1332 */ // MIs[0] root
4565 /* 1332 */ // No operand predicates
4566 /* 1332 */ // MIs[0] sub
4567 /* 1332 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4568 /* 1336 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
4569 /* 1340 */ // MIs[1] Operand 1
4570 /* 1340 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/1, 0,
4571 /* 1344 */ // MIs[1] A
4572 /* 1344 */ // No operand predicates
4573 /* 1344 */ // MIs[0] B
4574 /* 1344 */ // No operand predicates
4575 /* 1344 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4576 /* 1346 */ // Combiner Rule #2: ZeroMinusAPlusB
4577 /* 1346 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
4578 /* 1349 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
4579 /* 1351 */ GIR_RootToRootCopy, /*OpIdx*/2, // B
4580 /* 1353 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // A
4581 /* 1357 */ GIR_EraseRootFromParent_Done,
4582 /* 1358 */ // Label 123: @1358
4583 /* 1358 */ GIM_Try, /*On fail goto*//*Label 124*/ GIMT_Encode4(1395), // Rule ID 18 //
4584 /* 1363 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule18Enabled),
4585 /* 1366 */ // MIs[0] root
4586 /* 1366 */ // No operand predicates
4587 /* 1366 */ // MIs[0] sub
4588 /* 1366 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4589 /* 1370 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
4590 /* 1374 */ // MIs[1] A
4591 /* 1374 */ // No operand predicates
4592 /* 1374 */ // MIs[1] c1
4593 /* 1374 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
4594 /* 1378 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
4595 /* 1382 */ // MIs[2] imm1
4596 /* 1382 */ // No operand predicates
4597 /* 1382 */ // MIs[0] c2
4598 /* 1382 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/0, /*OpIdx*/2, // MIs[3]
4599 /* 1386 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
4600 /* 1390 */ // MIs[3] imm2
4601 /* 1390 */ // No operand predicates
4602 /* 1390 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
4603 /* 1392 */ // Combiner Rule #18: AMinusC1PlusC2
4604 /* 1392 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner4),
4605 /* 1395 */ // Label 124: @1395
4606 /* 1395 */ GIM_Try, /*On fail goto*//*Label 125*/ GIMT_Encode4(1429), // Rule ID 5 //
4607 /* 1400 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule5Enabled),
4608 /* 1403 */ // MIs[0] root
4609 /* 1403 */ // No operand predicates
4610 /* 1403 */ // MIs[0] sub
4611 /* 1403 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4612 /* 1407 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
4613 /* 1411 */ // MIs[1] B
4614 /* 1411 */ // No operand predicates
4615 /* 1411 */ // MIs[1] A
4616 /* 1411 */ // No operand predicates
4617 /* 1411 */ // MIs[0] A
4618 /* 1411 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/2,
4619 /* 1416 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
4620 /* 1421 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4621 /* 1423 */ // Combiner Rule #5: BMinusAPlusA
4622 /* 1423 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
4623 /* 1428 */ GIR_EraseRootFromParent_Done,
4624 /* 1429 */ // Label 125: @1429
4625 /* 1429 */ GIM_Try, /*On fail goto*//*Label 126*/ GIMT_Encode4(1463), // Rule ID 140 //
4626 /* 1434 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule101Enabled),
4627 /* 1437 */ // MIs[0] dst
4628 /* 1437 */ // No operand predicates
4629 /* 1437 */ // MIs[0] __add_sub_reg_match_0.tmp
4630 /* 1437 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4631 /* 1441 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
4632 /* 1445 */ // MIs[1] src
4633 /* 1445 */ // No operand predicates
4634 /* 1445 */ // MIs[1] __add_sub_reg_match_0.x
4635 /* 1445 */ // No operand predicates
4636 /* 1445 */ // MIs[0] __add_sub_reg_match_0.x
4637 /* 1445 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/2,
4638 /* 1450 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
4639 /* 1455 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4640 /* 1457 */ // Combiner Rule #101: add_sub_reg @ [__add_sub_reg_match_0[1]]
4641 /* 1457 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
4642 /* 1462 */ GIR_EraseRootFromParent_Done,
4643 /* 1463 */ // Label 126: @1463
4644 /* 1463 */ GIM_Try, /*On fail goto*//*Label 127*/ GIMT_Encode4(1508), // Rule ID 7 //
4645 /* 1468 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule7Enabled),
4646 /* 1471 */ // MIs[0] root
4647 /* 1471 */ // No operand predicates
4648 /* 1471 */ // MIs[0] sub1
4649 /* 1471 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4650 /* 1475 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
4651 /* 1479 */ // MIs[1] A
4652 /* 1479 */ // No operand predicates
4653 /* 1479 */ // MIs[1] B
4654 /* 1479 */ // No operand predicates
4655 /* 1479 */ // MIs[0] sub2
4656 /* 1479 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
4657 /* 1483 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB),
4658 /* 1487 */ // MIs[2] B
4659 /* 1487 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/2,
4660 /* 1492 */ // MIs[2] C
4661 /* 1492 */ // No operand predicates
4662 /* 1492 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
4663 /* 1494 */ // Combiner Rule #7: AMinusBPlusBMinusC
4664 /* 1494 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
4665 /* 1497 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
4666 /* 1499 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // A
4667 /* 1503 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/2, // C
4668 /* 1507 */ GIR_EraseRootFromParent_Done,
4669 /* 1508 */ // Label 127: @1508
4670 /* 1508 */ GIM_Try, /*On fail goto*//*Label 128*/ GIMT_Encode4(1553), // Rule ID 6 //
4671 /* 1513 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule6Enabled),
4672 /* 1516 */ // MIs[0] root
4673 /* 1516 */ // No operand predicates
4674 /* 1516 */ // MIs[0] sub1
4675 /* 1516 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4676 /* 1520 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
4677 /* 1524 */ // MIs[1] A
4678 /* 1524 */ // No operand predicates
4679 /* 1524 */ // MIs[1] B
4680 /* 1524 */ // No operand predicates
4681 /* 1524 */ // MIs[0] sub2
4682 /* 1524 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
4683 /* 1528 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB),
4684 /* 1532 */ // MIs[2] C
4685 /* 1532 */ // No operand predicates
4686 /* 1532 */ // MIs[2] A
4687 /* 1532 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/1,
4688 /* 1537 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
4689 /* 1539 */ // Combiner Rule #6: AMinusBPlusCMinusA
4690 /* 1539 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
4691 /* 1542 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
4692 /* 1544 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // C
4693 /* 1548 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // B
4694 /* 1552 */ GIR_EraseRootFromParent_Done,
4695 /* 1553 */ // Label 128: @1553
4696 /* 1553 */ GIM_Try, /*On fail goto*//*Label 129*/ GIMT_Encode4(1588), // Rule ID 45 //
4697 /* 1558 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule43Enabled),
4698 /* 1561 */ GIM_MIFlags, /*MI*/0, GIMT_Encode4(MachineInstr::NoSWrap),
4699 /* 1567 */ // MIs[0] root
4700 /* 1567 */ // No operand predicates
4701 /* 1567 */ // MIs[0] left
4702 /* 1567 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4703 /* 1571 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_VSCALE),
4704 /* 1575 */ // MIs[1] imm1
4705 /* 1575 */ // No operand predicates
4706 /* 1575 */ // MIs[0] right
4707 /* 1575 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
4708 /* 1579 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_VSCALE),
4709 /* 1583 */ // MIs[2] imm2
4710 /* 1583 */ // No operand predicates
4711 /* 1583 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
4712 /* 1585 */ // Combiner Rule #43: add_of_vscale
4713 /* 1585 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner15),
4714 /* 1588 */ // Label 129: @1588
4715 /* 1588 */ GIM_Try, /*On fail goto*//*Label 130*/ GIMT_Encode4(1622), // Rule ID 3 //
4716 /* 1593 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule3Enabled),
4717 /* 1596 */ // MIs[0] root
4718 /* 1596 */ // No operand predicates
4719 /* 1596 */ // MIs[0] A
4720 /* 1596 */ // No operand predicates
4721 /* 1596 */ // MIs[0] sub
4722 /* 1596 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
4723 /* 1600 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
4724 /* 1604 */ // MIs[1] Operand 1
4725 /* 1604 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/1, 0,
4726 /* 1608 */ // MIs[1] B
4727 /* 1608 */ // No operand predicates
4728 /* 1608 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4729 /* 1610 */ // Combiner Rule #3: APlusZeroMinusB
4730 /* 1610 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
4731 /* 1613 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
4732 /* 1615 */ GIR_RootToRootCopy, /*OpIdx*/1, // A
4733 /* 1617 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // B
4734 /* 1621 */ GIR_EraseRootFromParent_Done,
4735 /* 1622 */ // Label 130: @1622
4736 /* 1622 */ GIM_Try, /*On fail goto*//*Label 131*/ GIMT_Encode4(1656), // Rule ID 4 //
4737 /* 1627 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule4Enabled),
4738 /* 1630 */ // MIs[0] root
4739 /* 1630 */ // No operand predicates
4740 /* 1630 */ // MIs[0] A
4741 /* 1630 */ // No operand predicates
4742 /* 1630 */ // MIs[0] sub
4743 /* 1630 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
4744 /* 1634 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
4745 /* 1638 */ // MIs[1] B
4746 /* 1638 */ // No operand predicates
4747 /* 1638 */ // MIs[1] A
4748 /* 1638 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/1, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
4749 /* 1643 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
4750 /* 1648 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4751 /* 1650 */ // Combiner Rule #4: APlusBMinusB
4752 /* 1650 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
4753 /* 1655 */ GIR_EraseRootFromParent_Done,
4754 /* 1656 */ // Label 131: @1656
4755 /* 1656 */ GIM_Try, /*On fail goto*//*Label 132*/ GIMT_Encode4(1690), // Rule ID 139 //
4756 /* 1661 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule101Enabled),
4757 /* 1664 */ // MIs[0] dst
4758 /* 1664 */ // No operand predicates
4759 /* 1664 */ // MIs[0] __add_sub_reg_match_0.x
4760 /* 1664 */ // No operand predicates
4761 /* 1664 */ // MIs[0] __add_sub_reg_match_0.tmp
4762 /* 1664 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
4763 /* 1668 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
4764 /* 1672 */ // MIs[1] src
4765 /* 1672 */ // No operand predicates
4766 /* 1672 */ // MIs[1] __add_sub_reg_match_0.x
4767 /* 1672 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/1, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
4768 /* 1677 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
4769 /* 1682 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4770 /* 1684 */ // Combiner Rule #101: add_sub_reg @ [__add_sub_reg_match_0[0]]
4771 /* 1684 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
4772 /* 1689 */ GIR_EraseRootFromParent_Done,
4773 /* 1690 */ // Label 132: @1690
4774 /* 1690 */ GIM_Try, /*On fail goto*//*Label 133*/ GIMT_Encode4(1735), // Rule ID 8 //
4775 /* 1695 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule8Enabled),
4776 /* 1698 */ // MIs[0] root
4777 /* 1698 */ // No operand predicates
4778 /* 1698 */ // MIs[0] A
4779 /* 1698 */ // No operand predicates
4780 /* 1698 */ // MIs[0] sub1
4781 /* 1698 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
4782 /* 1702 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
4783 /* 1706 */ // MIs[1] B
4784 /* 1706 */ // No operand predicates
4785 /* 1706 */ // MIs[1] add1
4786 /* 1706 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
4787 /* 1710 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ADD),
4788 /* 1714 */ // MIs[2] A
4789 /* 1714 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/0, /*OtherOpIdx*/1,
4790 /* 1719 */ // MIs[2] C
4791 /* 1719 */ // No operand predicates
4792 /* 1719 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
4793 /* 1721 */ // Combiner Rule #8: APlusBMinusAplusC
4794 /* 1721 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
4795 /* 1724 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
4796 /* 1726 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // B
4797 /* 1730 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/2, // C
4798 /* 1734 */ GIR_EraseRootFromParent_Done,
4799 /* 1735 */ // Label 133: @1735
4800 /* 1735 */ GIM_Try, /*On fail goto*//*Label 134*/ GIMT_Encode4(1780), // Rule ID 10 //
4801 /* 1740 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule10Enabled),
4802 /* 1743 */ // MIs[0] root
4803 /* 1743 */ // No operand predicates
4804 /* 1743 */ // MIs[0] A
4805 /* 1743 */ // No operand predicates
4806 /* 1743 */ // MIs[0] sub1
4807 /* 1743 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
4808 /* 1747 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
4809 /* 1751 */ // MIs[1] B
4810 /* 1751 */ // No operand predicates
4811 /* 1751 */ // MIs[1] add1
4812 /* 1751 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
4813 /* 1755 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ADD),
4814 /* 1759 */ // MIs[2] C
4815 /* 1759 */ // No operand predicates
4816 /* 1759 */ // MIs[2] A
4817 /* 1759 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
4818 /* 1764 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
4819 /* 1766 */ // Combiner Rule #10: APlusBMinusCPlusA
4820 /* 1766 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
4821 /* 1769 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
4822 /* 1771 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // B
4823 /* 1775 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // C
4824 /* 1779 */ GIR_EraseRootFromParent_Done,
4825 /* 1780 */ // Label 134: @1780
4826 /* 1780 */ GIM_Try, /*On fail goto*//*Label 135*/ GIMT_Encode4(1803), // Rule ID 111 //
4827 /* 1785 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled),
4828 /* 1788 */ // MIs[0] dst
4829 /* 1788 */ // No operand predicates
4830 /* 1788 */ // MIs[0] lhs
4831 /* 1788 */ // No operand predicates
4832 /* 1788 */ // MIs[0] Operand 2
4833 /* 1788 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
4834 /* 1792 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
4835 /* 1797 */ // Combiner Rule #90: right_identity_zero @ [__right_identity_zero_match_0[1]]
4836 /* 1797 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
4837 /* 1802 */ GIR_EraseRootFromParent_Done,
4838 /* 1803 */ // Label 135: @1803
4839 /* 1803 */ GIM_Try, /*On fail goto*//*Label 136*/ GIMT_Encode4(1814), // Rule ID 160 //
4840 /* 1808 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule116Enabled),
4841 /* 1811 */ // MIs[0] root
4842 /* 1811 */ // No operand predicates
4843 /* 1811 */ // MIs[0] src1
4844 /* 1811 */ // No operand predicates
4845 /* 1811 */ // MIs[0] src2
4846 /* 1811 */ // No operand predicates
4847 /* 1811 */ // Combiner Rule #116: reassoc_comm_binops
4848 /* 1811 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner57),
4849 /* 1814 */ // Label 136: @1814
4850 /* 1814 */ GIM_Reject,
4851 /* 1815 */ // Label 2: @1815
4852 /* 1815 */ GIM_Try, /*On fail goto*//*Label 137*/ GIMT_Encode4(1826), // Rule ID 101 //
4853 /* 1820 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule84Enabled),
4854 /* 1823 */ // Combiner Rule #84: propagate_undef_any_op; wip_match_opcode 'G_SUB'
4855 /* 1823 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner39),
4856 /* 1826 */ // Label 137: @1826
4857 /* 1826 */ GIM_Try, /*On fail goto*//*Label 138*/ GIMT_Encode4(1837), // Rule ID 264 //
4858 /* 1831 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled),
4859 /* 1834 */ // Combiner Rule #187: constant_fold_binop; wip_match_opcode 'G_SUB'
4860 /* 1834 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103),
4861 /* 1837 */ // Label 138: @1837
4862 /* 1837 */ GIM_Try, /*On fail goto*//*Label 139*/ GIMT_Encode4(1848), // Rule ID 317 //
4863 /* 1842 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
4864 /* 1845 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_SUB'
4865 /* 1845 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
4866 /* 1848 */ // Label 139: @1848
4867 /* 1848 */ GIM_Try, /*On fail goto*//*Label 140*/ GIMT_Encode4(1859), // Rule ID 350 //
4868 /* 1853 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule213Enabled),
4869 /* 1856 */ // Combiner Rule #213: sub_add_reg; wip_match_opcode 'G_SUB'
4870 /* 1856 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner126),
4871 /* 1859 */ // Label 140: @1859
4872 /* 1859 */ GIM_Try, /*On fail goto*//*Label 141*/ GIMT_Encode4(1870), // Rule ID 388 //
4873 /* 1864 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule224Enabled),
4874 /* 1867 */ // Combiner Rule #224: simplify_neg_minmax; wip_match_opcode 'G_SUB'
4875 /* 1867 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner133),
4876 /* 1870 */ // Label 141: @1870
4877 /* 1870 */ GIM_Try, /*On fail goto*//*Label 142*/ GIMT_Encode4(1947), // Rule ID 420 //
4878 /* 1875 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule253Enabled),
4879 /* 1878 */ // MIs[0] dst
4880 /* 1878 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
4881 /* 1882 */ // MIs[0] sub1
4882 /* 1882 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4883 /* 1886 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
4884 /* 1890 */ // MIs[1] a
4885 /* 1890 */ // No operand predicates
4886 /* 1890 */ // MIs[1] b
4887 /* 1890 */ // No operand predicates
4888 /* 1890 */ // MIs[0] Operand 2
4889 /* 1890 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 1,
4890 /* 1894 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner1),
4891 /* 1898 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4892 /* 1900 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
4893 /* 1903 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(18446744073709551615u),
4894 /* 1913 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
4895 /* 1916 */ // Combiner Rule #253: sub_one_from_sub
4896 /* 1916 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_XOR),
4897 /* 1919 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
4898 /* 1924 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // b
4899 /* 1928 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/1,
4900 /* 1931 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ADD),
4901 /* 1935 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
4902 /* 1939 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
4903 /* 1942 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // a
4904 /* 1946 */ GIR_EraseRootFromParent_Done,
4905 /* 1947 */ // Label 142: @1947
4906 /* 1947 */ GIM_Try, /*On fail goto*//*Label 143*/ GIMT_Encode4(2041), // Rule ID 426 //
4907 /* 1952 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule257Enabled),
4908 /* 1955 */ // MIs[0] root
4909 /* 1955 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
4910 /* 1959 */ // MIs[0] Operand 1
4911 /* 1959 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/1, 0,
4912 /* 1963 */ // MIs[0] max
4913 /* 1963 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
4914 /* 1967 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SMAX),
4915 /* 1971 */ // MIs[1] A
4916 /* 1971 */ // No operand predicates
4917 /* 1971 */ // MIs[1] sub
4918 /* 1971 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
4919 /* 1975 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB),
4920 /* 1979 */ // MIs[2] Operand 1
4921 /* 1979 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/1, 0,
4922 /* 1983 */ // MIs[2] A
4923 /* 1983 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/1,
4924 /* 1988 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner19),
4925 /* 1992 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
4926 /* 1994 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
4927 /* 1997 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(0),
4928 /* 2007 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
4929 /* 2010 */ // Combiner Rule #257: SubSmaxSub
4930 /* 2010 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
4931 /* 2013 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
4932 /* 2018 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/1,
4933 /* 2021 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // A
4934 /* 2025 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SMIN),
4935 /* 2029 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // root
4936 /* 2033 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // A
4937 /* 2037 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
4938 /* 2040 */ GIR_EraseRootFromParent_Done,
4939 /* 2041 */ // Label 143: @2041
4940 /* 2041 */ GIM_Try, /*On fail goto*//*Label 144*/ GIMT_Encode4(2135), // Rule ID 427 //
4941 /* 2046 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule258Enabled),
4942 /* 2049 */ // MIs[0] root
4943 /* 2049 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
4944 /* 2053 */ // MIs[0] Operand 1
4945 /* 2053 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/1, 0,
4946 /* 2057 */ // MIs[0] max
4947 /* 2057 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
4948 /* 2061 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_UMAX),
4949 /* 2065 */ // MIs[1] A
4950 /* 2065 */ // No operand predicates
4951 /* 2065 */ // MIs[1] sub
4952 /* 2065 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
4953 /* 2069 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB),
4954 /* 2073 */ // MIs[2] Operand 1
4955 /* 2073 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/1, 0,
4956 /* 2077 */ // MIs[2] A
4957 /* 2077 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/1,
4958 /* 2082 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner19),
4959 /* 2086 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
4960 /* 2088 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
4961 /* 2091 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(0),
4962 /* 2101 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
4963 /* 2104 */ // Combiner Rule #258: SubUmaxSub
4964 /* 2104 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
4965 /* 2107 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
4966 /* 2112 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/1,
4967 /* 2115 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // A
4968 /* 2119 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UMIN),
4969 /* 2123 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // root
4970 /* 2127 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // A
4971 /* 2131 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
4972 /* 2134 */ GIR_EraseRootFromParent_Done,
4973 /* 2135 */ // Label 144: @2135
4974 /* 2135 */ GIM_Try, /*On fail goto*//*Label 145*/ GIMT_Encode4(2175), // Rule ID 424 //
4975 /* 2140 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule255Enabled),
4976 /* 2143 */ // MIs[0] root
4977 /* 2143 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
4978 /* 2147 */ // MIs[0] Operand 1
4979 /* 2147 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/1, 255,
4980 /* 2151 */ // MIs[0] op1
4981 /* 2151 */ // No operand predicates
4982 /* 2151 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
4983 /* 2154 */ GIR_BuildConstant, /*TempRegID*/0, /*Val*/GIMT_Encode8(18446744073709551615u),
4984 /* 2164 */ // Combiner Rule #255: sub_minus_one
4985 /* 2164 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_XOR),
4986 /* 2167 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
4987 /* 2169 */ GIR_RootToRootCopy, /*OpIdx*/2, // op1
4988 /* 2171 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/0,
4989 /* 2174 */ GIR_EraseRootFromParent_Done,
4990 /* 2175 */ // Label 145: @2175
4991 /* 2175 */ GIM_Try, /*On fail goto*//*Label 146*/ GIMT_Encode4(2275), // Rule ID 425 //
4992 /* 2180 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule256Enabled),
4993 /* 2183 */ // MIs[0] d
4994 /* 2183 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
4995 /* 2187 */ // MIs[0] a
4996 /* 2187 */ // No operand predicates
4997 /* 2187 */ // MIs[0] mul
4998 /* 2187 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
4999 /* 2191 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_MUL),
5000 /* 2195 */ // MIs[1] x
5001 /* 2195 */ // No operand predicates
5002 /* 2195 */ // MIs[1] c
5003 /* 2195 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
5004 /* 2199 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5005 /* 2203 */ // MIs[2] imm
5006 /* 2203 */ // No operand predicates
5007 /* 2203 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner0),
5008 /* 2207 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5009 /* 2209 */ GIR_MakeTempReg, /*TempRegID*/2, /*TypeID*/255,
5010 /* 2212 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
5011 /* 2215 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(0),
5012 /* 2225 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5013 /* 2228 */ // Combiner Rule #256: sub_of_mul_const
5014 /* 2228 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5015 /* 2231 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5016 /* 2236 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/1,
5017 /* 2239 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // c
5018 /* 2243 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_MUL),
5019 /* 2247 */ GIR_AddTempRegister, /*InsnID*/1, /*TempRegID*/2, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5020 /* 2252 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // x
5021 /* 2256 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
5022 /* 2259 */ GIR_BuildMI, /*InsnID*/2, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ADD),
5023 /* 2263 */ GIR_Copy, /*NewInsnID*/2, /*OldInsnID*/0, /*OpIdx*/0, // d
5024 /* 2267 */ GIR_Copy, /*NewInsnID*/2, /*OldInsnID*/0, /*OpIdx*/1, // a
5025 /* 2271 */ GIR_AddSimpleTempRegister, /*InsnID*/2, /*TempRegID*/2,
5026 /* 2274 */ GIR_EraseRootFromParent_Done,
5027 /* 2275 */ // Label 146: @2275
5028 /* 2275 */ GIM_Try, /*On fail goto*//*Label 147*/ GIMT_Encode4(2336), // Rule ID 9 //
5029 /* 2280 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule9Enabled),
5030 /* 2283 */ // MIs[0] root
5031 /* 2283 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
5032 /* 2287 */ // MIs[0] A
5033 /* 2287 */ // No operand predicates
5034 /* 2287 */ // MIs[0] sub1
5035 /* 2287 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5036 /* 2291 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5037 /* 2295 */ // MIs[1] B
5038 /* 2295 */ // No operand predicates
5039 /* 2295 */ // MIs[1] C
5040 /* 2295 */ // No operand predicates
5041 /* 2295 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner0),
5042 /* 2299 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5043 /* 2301 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5044 /* 2304 */ // Combiner Rule #9: AMinusBMinusC
5045 /* 2304 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5046 /* 2307 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5047 /* 2312 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // C
5048 /* 2316 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // B
5049 /* 2320 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ADD),
5050 /* 2324 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // root
5051 /* 2328 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/1, // A
5052 /* 2332 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
5053 /* 2335 */ GIR_EraseRootFromParent_Done,
5054 /* 2336 */ // Label 147: @2336
5055 /* 2336 */ GIM_Try, /*On fail goto*//*Label 148*/ GIMT_Encode4(2381), // Rule ID 0 //
5056 /* 2341 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule0Enabled),
5057 /* 2344 */ // MIs[0] root
5058 /* 2344 */ // No operand predicates
5059 /* 2344 */ // MIs[0] add1
5060 /* 2344 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5061 /* 2348 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
5062 /* 2352 */ // MIs[1] A
5063 /* 2352 */ // No operand predicates
5064 /* 2352 */ // MIs[1] sub1
5065 /* 2352 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
5066 /* 2356 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB),
5067 /* 2360 */ // MIs[2] B
5068 /* 2360 */ // No operand predicates
5069 /* 2360 */ // MIs[2] C
5070 /* 2360 */ // No operand predicates
5071 /* 2360 */ // MIs[0] B
5072 /* 2360 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/2, /*OtherOpIdx*/1,
5073 /* 2365 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5074 /* 2367 */ // Combiner Rule #0: APlusBMinusCMinusB
5075 /* 2367 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5076 /* 2370 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
5077 /* 2372 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // A
5078 /* 2376 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/2, // C
5079 /* 2380 */ GIR_EraseRootFromParent_Done,
5080 /* 2381 */ // Label 148: @2381
5081 /* 2381 */ GIM_Try, /*On fail goto*//*Label 149*/ GIMT_Encode4(2418), // Rule ID 14 //
5082 /* 2386 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule14Enabled),
5083 /* 2389 */ // MIs[0] root
5084 /* 2389 */ // No operand predicates
5085 /* 2389 */ // MIs[0] add
5086 /* 2389 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5087 /* 2393 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
5088 /* 2397 */ // MIs[1] A
5089 /* 2397 */ // No operand predicates
5090 /* 2397 */ // MIs[1] c1
5091 /* 2397 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
5092 /* 2401 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5093 /* 2405 */ // MIs[2] imm1
5094 /* 2405 */ // No operand predicates
5095 /* 2405 */ // MIs[0] c2
5096 /* 2405 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/0, /*OpIdx*/2, // MIs[3]
5097 /* 2409 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5098 /* 2413 */ // MIs[3] imm2
5099 /* 2413 */ // No operand predicates
5100 /* 2413 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
5101 /* 2415 */ // Combiner Rule #14: APlusC1MinusC2
5102 /* 2415 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner0),
5103 /* 2418 */ // Label 149: @2418
5104 /* 2418 */ GIM_Try, /*On fail goto*//*Label 150*/ GIMT_Encode4(2455), // Rule ID 17 //
5105 /* 2423 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule17Enabled),
5106 /* 2426 */ // MIs[0] root
5107 /* 2426 */ // No operand predicates
5108 /* 2426 */ // MIs[0] sub1
5109 /* 2426 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5110 /* 2430 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5111 /* 2434 */ // MIs[1] c1
5112 /* 2434 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
5113 /* 2438 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5114 /* 2442 */ // MIs[2] imm1
5115 /* 2442 */ // No operand predicates
5116 /* 2442 */ // MIs[1] A
5117 /* 2442 */ // No operand predicates
5118 /* 2442 */ // MIs[0] c2
5119 /* 2442 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/0, /*OpIdx*/2, // MIs[3]
5120 /* 2446 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5121 /* 2450 */ // MIs[3] imm2
5122 /* 2450 */ // No operand predicates
5123 /* 2450 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
5124 /* 2452 */ // Combiner Rule #17: C1Minus2MinusC2
5125 /* 2452 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner3),
5126 /* 2455 */ // Label 150: @2455
5127 /* 2455 */ GIM_Try, /*On fail goto*//*Label 151*/ GIMT_Encode4(2500), // Rule ID 1 //
5128 /* 2460 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule1Enabled),
5129 /* 2463 */ // MIs[0] root
5130 /* 2463 */ // No operand predicates
5131 /* 2463 */ // MIs[0] sub2
5132 /* 2463 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5133 /* 2467 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5134 /* 2471 */ // MIs[1] A
5135 /* 2471 */ // No operand predicates
5136 /* 2471 */ // MIs[1] sub1
5137 /* 2471 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
5138 /* 2475 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB),
5139 /* 2479 */ // MIs[2] B
5140 /* 2479 */ // No operand predicates
5141 /* 2479 */ // MIs[2] C
5142 /* 2479 */ // No operand predicates
5143 /* 2479 */ // MIs[0] C
5144 /* 2479 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/2, /*OtherOpIdx*/2,
5145 /* 2484 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5146 /* 2486 */ // Combiner Rule #1: AMinusBMinusCMinusC
5147 /* 2486 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5148 /* 2489 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
5149 /* 2491 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // A
5150 /* 2495 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // B
5151 /* 2499 */ GIR_EraseRootFromParent_Done,
5152 /* 2500 */ // Label 151: @2500
5153 /* 2500 */ GIM_Try, /*On fail goto*//*Label 152*/ GIMT_Encode4(2537), // Rule ID 16 //
5154 /* 2505 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule16Enabled),
5155 /* 2508 */ // MIs[0] root
5156 /* 2508 */ // No operand predicates
5157 /* 2508 */ // MIs[0] sub1
5158 /* 2508 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5159 /* 2512 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5160 /* 2516 */ // MIs[1] A
5161 /* 2516 */ // No operand predicates
5162 /* 2516 */ // MIs[1] c1
5163 /* 2516 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
5164 /* 2520 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5165 /* 2524 */ // MIs[2] imm1
5166 /* 2524 */ // No operand predicates
5167 /* 2524 */ // MIs[0] c2
5168 /* 2524 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/0, /*OpIdx*/2, // MIs[3]
5169 /* 2528 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5170 /* 2532 */ // MIs[3] imm2
5171 /* 2532 */ // No operand predicates
5172 /* 2532 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
5173 /* 2534 */ // Combiner Rule #16: AMinusC1MinusC2
5174 /* 2534 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner2),
5175 /* 2537 */ // Label 152: @2537
5176 /* 2537 */ GIM_Try, /*On fail goto*//*Label 153*/ GIMT_Encode4(2580), // Rule ID 170 //
5177 /* 2542 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule126Enabled),
5178 /* 2545 */ // MIs[0] dst
5179 /* 2545 */ // No operand predicates
5180 /* 2545 */ // MIs[0] Operand 1
5181 /* 2545 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/1, 0,
5182 /* 2549 */ // MIs[0] and
5183 /* 2549 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5184 /* 2553 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_AND),
5185 /* 2557 */ // MIs[1] x
5186 /* 2557 */ // No operand predicates
5187 /* 2557 */ // MIs[1] Operand 2
5188 /* 2557 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/2, 1,
5189 /* 2561 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner11),
5190 /* 2565 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5191 /* 2567 */ // Combiner Rule #126: neg_and_one_to_sext_inreg
5192 /* 2567 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SEXT_INREG),
5193 /* 2570 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
5194 /* 2572 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
5195 /* 2576 */ GIR_AddImm8, /*InsnID*/0, /*Imm*/1,
5196 /* 2579 */ GIR_EraseRootFromParent_Done,
5197 /* 2580 */ // Label 153: @2580
5198 /* 2580 */ GIM_Try, /*On fail goto*//*Label 154*/ GIMT_Encode4(2617), // Rule ID 15 //
5199 /* 2585 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule15Enabled),
5200 /* 2588 */ // MIs[0] root
5201 /* 2588 */ // No operand predicates
5202 /* 2588 */ // MIs[0] c2
5203 /* 2588 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5204 /* 2592 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5205 /* 2596 */ // MIs[1] imm2
5206 /* 2596 */ // No operand predicates
5207 /* 2596 */ // MIs[0] add
5208 /* 2596 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
5209 /* 2600 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ADD),
5210 /* 2604 */ // MIs[2] A
5211 /* 2604 */ // No operand predicates
5212 /* 2604 */ // MIs[2] c1
5213 /* 2604 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/2, /*OpIdx*/2, // MIs[3]
5214 /* 2608 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5215 /* 2612 */ // MIs[3] imm1
5216 /* 2612 */ // No operand predicates
5217 /* 2612 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
5218 /* 2614 */ // Combiner Rule #15: C2MinusAPlusC1
5219 /* 2614 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner1),
5220 /* 2617 */ // Label 154: @2617
5221 /* 2617 */ GIM_Try, /*On fail goto*//*Label 155*/ GIMT_Encode4(2656), // Rule ID 122 //
5222 /* 2622 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule92Enabled),
5223 /* 2625 */ // MIs[0] dst
5224 /* 2625 */ // No operand predicates
5225 /* 2625 */ // MIs[0] x
5226 /* 2625 */ GIM_RecordRegType, /*MI*/0, /*Op*/1, /*TempTypeIdx*/255,
5227 /* 2629 */ // MIs[0] x
5228 /* 2629 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
5229 /* 2634 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5230 /* 2637 */ GIR_BuildConstant, /*TempRegID*/0, /*Val*/GIMT_Encode8(0),
5231 /* 2647 */ // Combiner Rule #92: same_val_zero @ [__same_val_zero_match_0[0]]
5232 /* 2647 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::COPY),
5233 /* 2650 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
5234 /* 2652 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/0,
5235 /* 2655 */ GIR_EraseRootFromParent_Done,
5236 /* 2656 */ // Label 155: @2656
5237 /* 2656 */ GIM_Try, /*On fail goto*//*Label 156*/ GIMT_Encode4(2690), // Rule ID 12 //
5238 /* 2661 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule12Enabled),
5239 /* 2664 */ // MIs[0] root
5240 /* 2664 */ // No operand predicates
5241 /* 2664 */ // MIs[0] A
5242 /* 2664 */ // No operand predicates
5243 /* 2664 */ // MIs[0] add
5244 /* 2664 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5245 /* 2668 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5246 /* 2672 */ // MIs[1] A
5247 /* 2672 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/1, /*OpIdx*/1, /*OtherMI*/0, /*OtherOpIdx*/1,
5248 /* 2677 */ // MIs[1] B
5249 /* 2677 */ // No operand predicates
5250 /* 2677 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/2,
5251 /* 2682 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5252 /* 2684 */ // Combiner Rule #12: AMinusBMinusA
5253 /* 2684 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/2,
5254 /* 2689 */ GIR_EraseRootFromParent_Done,
5255 /* 2690 */ // Label 156: @2690
5256 /* 2690 */ GIM_Try, /*On fail goto*//*Label 157*/ GIMT_Encode4(2724), // Rule ID 11 //
5257 /* 2695 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule11Enabled),
5258 /* 2698 */ // MIs[0] root
5259 /* 2698 */ // No operand predicates
5260 /* 2698 */ // MIs[0] A
5261 /* 2698 */ // No operand predicates
5262 /* 2698 */ // MIs[0] sub1
5263 /* 2698 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5264 /* 2702 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5265 /* 2706 */ // MIs[1] Operand 1
5266 /* 2706 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/1, 0,
5267 /* 2710 */ // MIs[1] B
5268 /* 2710 */ // No operand predicates
5269 /* 2710 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5270 /* 2712 */ // Combiner Rule #11: AMinusZeroMinusB
5271 /* 2712 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ADD),
5272 /* 2715 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
5273 /* 2717 */ GIR_RootToRootCopy, /*OpIdx*/1, // A
5274 /* 2719 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // B
5275 /* 2723 */ GIR_EraseRootFromParent_Done,
5276 /* 2724 */ // Label 157: @2724
5277 /* 2724 */ GIM_Try, /*On fail goto*//*Label 158*/ GIMT_Encode4(2751), // Rule ID 48 //
5278 /* 2729 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule46Enabled),
5279 /* 2732 */ GIM_MIFlags, /*MI*/0, GIMT_Encode4(MachineInstr::NoSWrap),
5280 /* 2738 */ // MIs[0] root
5281 /* 2738 */ // No operand predicates
5282 /* 2738 */ // MIs[0] x
5283 /* 2738 */ // No operand predicates
5284 /* 2738 */ // MIs[0] right
5285 /* 2738 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5286 /* 2742 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_VSCALE),
5287 /* 2746 */ // MIs[1] imm
5288 /* 2746 */ // No operand predicates
5289 /* 2746 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5290 /* 2748 */ // Combiner Rule #46: sub_of_vscale
5291 /* 2748 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner18),
5292 /* 2751 */ // Label 158: @2751
5293 /* 2751 */ GIM_Try, /*On fail goto*//*Label 159*/ GIMT_Encode4(2774), // Rule ID 110 //
5294 /* 2756 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled),
5295 /* 2759 */ // MIs[0] dst
5296 /* 2759 */ // No operand predicates
5297 /* 2759 */ // MIs[0] lhs
5298 /* 2759 */ // No operand predicates
5299 /* 2759 */ // MIs[0] Operand 2
5300 /* 2759 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
5301 /* 2763 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5302 /* 2768 */ // Combiner Rule #90: right_identity_zero @ [__right_identity_zero_match_0[0]]
5303 /* 2768 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5304 /* 2773 */ GIR_EraseRootFromParent_Done,
5305 /* 2774 */ // Label 159: @2774
5306 /* 2774 */ GIM_Try, /*On fail goto*//*Label 160*/ GIMT_Encode4(2795), // Rule ID 21 //
5307 /* 2779 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule21Enabled),
5308 /* 2782 */ // MIs[0] d
5309 /* 2782 */ // No operand predicates
5310 /* 2782 */ // MIs[0] op1
5311 /* 2782 */ // No operand predicates
5312 /* 2782 */ // MIs[0] c
5313 /* 2782 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5314 /* 2786 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5315 /* 2790 */ // MIs[1] imm
5316 /* 2790 */ // No operand predicates
5317 /* 2790 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5318 /* 2792 */ // Combiner Rule #21: sub_to_add
5319 /* 2792 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner7),
5320 /* 2795 */ // Label 160: @2795
5321 /* 2795 */ GIM_Reject,
5322 /* 2796 */ // Label 3: @2796
5323 /* 2796 */ GIM_Try, /*On fail goto*//*Label 161*/ GIMT_Encode4(2807), // Rule ID 84 //
5324 /* 2801 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule78Enabled),
5325 /* 2804 */ // Combiner Rule #78: undef_to_int_zero; wip_match_opcode 'G_MUL'
5326 /* 2804 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner34),
5327 /* 2807 */ // Label 161: @2807
5328 /* 2807 */ GIM_Try, /*On fail goto*//*Label 162*/ GIMT_Encode4(2818), // Rule ID 261 //
5329 /* 2812 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled),
5330 /* 2815 */ // Combiner Rule #187: constant_fold_binop; wip_match_opcode 'G_MUL'
5331 /* 2815 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103),
5332 /* 2818 */ // Label 162: @2818
5333 /* 2818 */ GIM_Try, /*On fail goto*//*Label 163*/ GIMT_Encode4(2829), // Rule ID 354 //
5334 /* 2823 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
5335 /* 2826 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_MUL'
5336 /* 2826 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129),
5337 /* 2829 */ // Label 163: @2829
5338 /* 2829 */ GIM_Try, /*On fail goto*//*Label 164*/ GIMT_Encode4(2869), // Rule ID 23 //
5339 /* 2834 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule23Enabled),
5340 /* 2837 */ // MIs[0] dst
5341 /* 2837 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
5342 /* 2841 */ // MIs[0] x
5343 /* 2841 */ // No operand predicates
5344 /* 2841 */ // MIs[0] Operand 2
5345 /* 2841 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 255,
5346 /* 2845 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5347 /* 2848 */ GIR_BuildConstant, /*TempRegID*/0, /*Val*/GIMT_Encode8(0),
5348 /* 2858 */ // Combiner Rule #23: mul_by_neg_one
5349 /* 2858 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5350 /* 2861 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
5351 /* 2863 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/0,
5352 /* 2866 */ GIR_RootToRootCopy, /*OpIdx*/1, // x
5353 /* 2868 */ GIR_EraseRootFromParent_Done,
5354 /* 2869 */ // Label 164: @2869
5355 /* 2869 */ GIM_Try, /*On fail goto*//*Label 165*/ GIMT_Encode4(2904), // Rule ID 46 //
5356 /* 2874 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule44Enabled),
5357 /* 2877 */ GIM_MIFlags, /*MI*/0, GIMT_Encode4(MachineInstr::NoSWrap),
5358 /* 2883 */ // MIs[0] root
5359 /* 2883 */ // No operand predicates
5360 /* 2883 */ // MIs[0] left
5361 /* 2883 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5362 /* 2887 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_VSCALE),
5363 /* 2891 */ // MIs[1] scale
5364 /* 2891 */ // No operand predicates
5365 /* 2891 */ // MIs[0] x
5366 /* 2891 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
5367 /* 2895 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5368 /* 2899 */ // MIs[2] imm1
5369 /* 2899 */ // No operand predicates
5370 /* 2899 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5371 /* 2901 */ // Combiner Rule #44: mul_of_vscale
5372 /* 2901 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner16),
5373 /* 2904 */ // Label 165: @2904
5374 /* 2904 */ GIM_Try, /*On fail goto*//*Label 166*/ GIMT_Encode4(2944), // Rule ID 131 //
5375 /* 2909 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
5376 /* 2912 */ // MIs[0] dst
5377 /* 2912 */ // No operand predicates
5378 /* 2912 */ // MIs[0] zero
5379 /* 2912 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5380 /* 2916 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5381 /* 2920 */ // MIs[1] Operand 1
5382 /* 2920 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0),
5383 /* 2931 */ // MIs[0] rhs
5384 /* 2931 */ // No operand predicates
5385 /* 2931 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5386 /* 2936 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5387 /* 2938 */ // Combiner Rule #93: binop_left_to_zero @ [__binop_left_to_zero_match_0[7]]
5388 /* 2938 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5389 /* 2943 */ GIR_EraseRootFromParent_Done,
5390 /* 2944 */ // Label 166: @2944
5391 /* 2944 */ GIM_Try, /*On fail goto*//*Label 167*/ GIMT_Encode4(2967), // Rule ID 132 //
5392 /* 2949 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule94Enabled),
5393 /* 2952 */ // MIs[0] dst
5394 /* 2952 */ // No operand predicates
5395 /* 2952 */ // MIs[0] lhs
5396 /* 2952 */ // No operand predicates
5397 /* 2952 */ // MIs[0] zero
5398 /* 2952 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
5399 /* 2956 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
5400 /* 2961 */ // Combiner Rule #94: binop_right_to_zero
5401 /* 2961 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
5402 /* 2966 */ GIR_EraseRootFromParent_Done,
5403 /* 2967 */ // Label 167: @2967
5404 /* 2967 */ GIM_Try, /*On fail goto*//*Label 168*/ GIMT_Encode4(2990), // Rule ID 137 //
5405 /* 2972 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule99Enabled),
5406 /* 2975 */ // MIs[0] dst
5407 /* 2975 */ // No operand predicates
5408 /* 2975 */ // MIs[0] x
5409 /* 2975 */ // No operand predicates
5410 /* 2975 */ // MIs[0] Operand 2
5411 /* 2975 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 1,
5412 /* 2979 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5413 /* 2984 */ // Combiner Rule #99: right_identity_one_int
5414 /* 2984 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5415 /* 2989 */ GIR_EraseRootFromParent_Done,
5416 /* 2990 */ // Label 168: @2990
5417 /* 2990 */ GIM_Try, /*On fail goto*//*Label 169*/ GIMT_Encode4(3001), // Rule ID 20 //
5418 /* 2995 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule20Enabled),
5419 /* 2998 */ // MIs[0] d
5420 /* 2998 */ // No operand predicates
5421 /* 2998 */ // MIs[0] op1
5422 /* 2998 */ // No operand predicates
5423 /* 2998 */ // MIs[0] op2
5424 /* 2998 */ // No operand predicates
5425 /* 2998 */ // Combiner Rule #20: mul_to_shl
5426 /* 2998 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner6),
5427 /* 3001 */ // Label 169: @3001
5428 /* 3001 */ GIM_Reject,
5429 /* 3002 */ // Label 4: @3002
5430 /* 3002 */ GIM_Try, /*On fail goto*//*Label 170*/ GIMT_Encode4(3013), // Rule ID 232 //
5431 /* 3007 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule172Enabled),
5432 /* 3010 */ // Combiner Rule #172: div_rem_to_divrem; wip_match_opcode 'G_SDIV'
5433 /* 3010 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
5434 /* 3013 */ // Label 170: @3013
5435 /* 3013 */ GIM_Try, /*On fail goto*//*Label 171*/ GIMT_Encode4(3024), // Rule ID 267 //
5436 /* 3018 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled),
5437 /* 3021 */ // Combiner Rule #187: constant_fold_binop; wip_match_opcode 'G_SDIV'
5438 /* 3021 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103),
5439 /* 3024 */ // Label 171: @3024
5440 /* 3024 */ GIM_Try, /*On fail goto*//*Label 172*/ GIMT_Encode4(3035), // Rule ID 322 //
5441 /* 3029 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
5442 /* 3032 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_SDIV'
5443 /* 3032 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
5444 /* 3035 */ // Label 172: @3035
5445 /* 3035 */ GIM_Try, /*On fail goto*//*Label 173*/ GIMT_Encode4(3075), // Rule ID 127 //
5446 /* 3040 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
5447 /* 3043 */ // MIs[0] dst
5448 /* 3043 */ // No operand predicates
5449 /* 3043 */ // MIs[0] zero
5450 /* 3043 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5451 /* 3047 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5452 /* 3051 */ // MIs[1] Operand 1
5453 /* 3051 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0),
5454 /* 3062 */ // MIs[0] rhs
5455 /* 3062 */ // No operand predicates
5456 /* 3062 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5457 /* 3067 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5458 /* 3069 */ // Combiner Rule #93: binop_left_to_zero @ [__binop_left_to_zero_match_0[3]]
5459 /* 3069 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5460 /* 3074 */ GIR_EraseRootFromParent_Done,
5461 /* 3075 */ // Label 173: @3075
5462 /* 3075 */ GIM_Try, /*On fail goto*//*Label 174*/ GIMT_Encode4(3092), // Rule ID 346 //
5463 /* 3080 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule209Enabled),
5464 /* 3083 */ GIM_MIFlagsNot, /*MI*/0, GIMT_Encode4(MachineInstr::IsExact),
5465 /* 3089 */ // MIs[0] dst
5466 /* 3089 */ // No operand predicates
5467 /* 3089 */ // MIs[0] x
5468 /* 3089 */ // No operand predicates
5469 /* 3089 */ // MIs[0] y
5470 /* 3089 */ // No operand predicates
5471 /* 3089 */ // Combiner Rule #209: sdiv_by_pow2
5472 /* 3089 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner124),
5473 /* 3092 */ // Label 174: @3092
5474 /* 3092 */ GIM_Try, /*On fail goto*//*Label 175*/ GIMT_Encode4(3103), // Rule ID 348 //
5475 /* 3097 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule211Enabled),
5476 /* 3100 */ // MIs[0] dst
5477 /* 3100 */ // No operand predicates
5478 /* 3100 */ // MIs[0] x
5479 /* 3100 */ // No operand predicates
5480 /* 3100 */ // MIs[0] y
5481 /* 3100 */ // No operand predicates
5482 /* 3100 */ // Combiner Rule #211: sdiv_by_const
5483 /* 3100 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner122),
5484 /* 3103 */ // Label 175: @3103
5485 /* 3103 */ GIM_Reject,
5486 /* 3104 */ // Label 5: @3104
5487 /* 3104 */ GIM_Try, /*On fail goto*//*Label 176*/ GIMT_Encode4(3115), // Rule ID 87 //
5488 /* 3109 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule80Enabled),
5489 /* 3112 */ // Combiner Rule #80: binop_left_undef_to_zero; wip_match_opcode 'G_UDIV'
5490 /* 3112 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner36),
5491 /* 3115 */ // Label 176: @3115
5492 /* 3115 */ GIM_Try, /*On fail goto*//*Label 177*/ GIMT_Encode4(3126), // Rule ID 233 //
5493 /* 3120 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule172Enabled),
5494 /* 3123 */ // Combiner Rule #172: div_rem_to_divrem; wip_match_opcode 'G_UDIV'
5495 /* 3123 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
5496 /* 3126 */ // Label 177: @3126
5497 /* 3126 */ GIM_Try, /*On fail goto*//*Label 178*/ GIMT_Encode4(3137), // Rule ID 266 //
5498 /* 3131 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled),
5499 /* 3134 */ // Combiner Rule #187: constant_fold_binop; wip_match_opcode 'G_UDIV'
5500 /* 3134 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103),
5501 /* 3137 */ // Label 178: @3137
5502 /* 3137 */ GIM_Try, /*On fail goto*//*Label 179*/ GIMT_Encode4(3148), // Rule ID 324 //
5503 /* 3142 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
5504 /* 3145 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_UDIV'
5505 /* 3145 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
5506 /* 3148 */ // Label 179: @3148
5507 /* 3148 */ GIM_Try, /*On fail goto*//*Label 180*/ GIMT_Encode4(3188), // Rule ID 128 //
5508 /* 3153 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
5509 /* 3156 */ // MIs[0] dst
5510 /* 3156 */ // No operand predicates
5511 /* 3156 */ // MIs[0] zero
5512 /* 3156 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5513 /* 3160 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5514 /* 3164 */ // MIs[1] Operand 1
5515 /* 3164 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0),
5516 /* 3175 */ // MIs[0] rhs
5517 /* 3175 */ // No operand predicates
5518 /* 3175 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5519 /* 3180 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5520 /* 3182 */ // Combiner Rule #93: binop_left_to_zero @ [__binop_left_to_zero_match_0[4]]
5521 /* 3182 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5522 /* 3187 */ GIR_EraseRootFromParent_Done,
5523 /* 3188 */ // Label 180: @3188
5524 /* 3188 */ GIM_Try, /*On fail goto*//*Label 181*/ GIMT_Encode4(3205), // Rule ID 345 //
5525 /* 3193 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule208Enabled),
5526 /* 3196 */ GIM_MIFlagsNot, /*MI*/0, GIMT_Encode4(MachineInstr::IsExact),
5527 /* 3202 */ // MIs[0] dst
5528 /* 3202 */ // No operand predicates
5529 /* 3202 */ // MIs[0] x
5530 /* 3202 */ // No operand predicates
5531 /* 3202 */ // MIs[0] y
5532 /* 3202 */ // No operand predicates
5533 /* 3202 */ // Combiner Rule #208: udiv_by_pow2
5534 /* 3202 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner123),
5535 /* 3205 */ // Label 181: @3205
5536 /* 3205 */ GIM_Try, /*On fail goto*//*Label 182*/ GIMT_Encode4(3216), // Rule ID 347 //
5537 /* 3210 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule210Enabled),
5538 /* 3213 */ // MIs[0] dst
5539 /* 3213 */ // No operand predicates
5540 /* 3213 */ // MIs[0] x
5541 /* 3213 */ // No operand predicates
5542 /* 3213 */ // MIs[0] y
5543 /* 3213 */ // No operand predicates
5544 /* 3213 */ // Combiner Rule #210: udiv_by_const
5545 /* 3213 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner121),
5546 /* 3216 */ // Label 182: @3216
5547 /* 3216 */ GIM_Reject,
5548 /* 3217 */ // Label 6: @3217
5549 /* 3217 */ GIM_Try, /*On fail goto*//*Label 183*/ GIMT_Encode4(3228), // Rule ID 234 //
5550 /* 3222 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule172Enabled),
5551 /* 3225 */ // Combiner Rule #172: div_rem_to_divrem; wip_match_opcode 'G_SREM'
5552 /* 3225 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
5553 /* 3228 */ // Label 183: @3228
5554 /* 3228 */ GIM_Try, /*On fail goto*//*Label 184*/ GIMT_Encode4(3239), // Rule ID 269 //
5555 /* 3233 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled),
5556 /* 3236 */ // Combiner Rule #187: constant_fold_binop; wip_match_opcode 'G_SREM'
5557 /* 3236 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103),
5558 /* 3239 */ // Label 184: @3239
5559 /* 3239 */ GIM_Try, /*On fail goto*//*Label 185*/ GIMT_Encode4(3250), // Rule ID 323 //
5560 /* 3244 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
5561 /* 3247 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_SREM'
5562 /* 3247 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
5563 /* 3250 */ // Label 185: @3250
5564 /* 3250 */ GIM_Try, /*On fail goto*//*Label 186*/ GIMT_Encode4(3290), // Rule ID 129 //
5565 /* 3255 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
5566 /* 3258 */ // MIs[0] dst
5567 /* 3258 */ // No operand predicates
5568 /* 3258 */ // MIs[0] zero
5569 /* 3258 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5570 /* 3262 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5571 /* 3266 */ // MIs[1] Operand 1
5572 /* 3266 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0),
5573 /* 3277 */ // MIs[0] rhs
5574 /* 3277 */ // No operand predicates
5575 /* 3277 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5576 /* 3282 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5577 /* 3284 */ // Combiner Rule #93: binop_left_to_zero @ [__binop_left_to_zero_match_0[5]]
5578 /* 3284 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5579 /* 3289 */ GIR_EraseRootFromParent_Done,
5580 /* 3290 */ // Label 186: @3290
5581 /* 3290 */ GIM_Try, /*On fail goto*//*Label 187*/ GIMT_Encode4(3301), // Rule ID 342 //
5582 /* 3295 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule205Enabled),
5583 /* 3298 */ // MIs[0] dst
5584 /* 3298 */ // No operand predicates
5585 /* 3298 */ // MIs[0] x
5586 /* 3298 */ // No operand predicates
5587 /* 3298 */ // MIs[0] y
5588 /* 3298 */ // No operand predicates
5589 /* 3298 */ // Combiner Rule #205: srem_pow2_to_mask
5590 /* 3298 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner120),
5591 /* 3301 */ // Label 187: @3301
5592 /* 3301 */ GIM_Try, /*On fail goto*//*Label 188*/ GIMT_Encode4(3312), // Rule ID 344 //
5593 /* 3306 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule207Enabled),
5594 /* 3309 */ // MIs[0] dst
5595 /* 3309 */ // No operand predicates
5596 /* 3309 */ // MIs[0] x
5597 /* 3309 */ // No operand predicates
5598 /* 3309 */ // MIs[0] y
5599 /* 3309 */ // No operand predicates
5600 /* 3309 */ // Combiner Rule #207: srem_by_const
5601 /* 3309 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner122),
5602 /* 3312 */ // Label 188: @3312
5603 /* 3312 */ GIM_Reject,
5604 /* 3313 */ // Label 7: @3313
5605 /* 3313 */ GIM_Try, /*On fail goto*//*Label 189*/ GIMT_Encode4(3324), // Rule ID 88 //
5606 /* 3318 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule80Enabled),
5607 /* 3321 */ // Combiner Rule #80: binop_left_undef_to_zero; wip_match_opcode 'G_UREM'
5608 /* 3321 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner36),
5609 /* 3324 */ // Label 189: @3324
5610 /* 3324 */ GIM_Try, /*On fail goto*//*Label 190*/ GIMT_Encode4(3335), // Rule ID 235 //
5611 /* 3329 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule172Enabled),
5612 /* 3332 */ // Combiner Rule #172: div_rem_to_divrem; wip_match_opcode 'G_UREM'
5613 /* 3332 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
5614 /* 3335 */ // Label 190: @3335
5615 /* 3335 */ GIM_Try, /*On fail goto*//*Label 191*/ GIMT_Encode4(3346), // Rule ID 268 //
5616 /* 3340 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled),
5617 /* 3343 */ // Combiner Rule #187: constant_fold_binop; wip_match_opcode 'G_UREM'
5618 /* 3343 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103),
5619 /* 3346 */ // Label 191: @3346
5620 /* 3346 */ GIM_Try, /*On fail goto*//*Label 192*/ GIMT_Encode4(3357), // Rule ID 325 //
5621 /* 3351 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
5622 /* 3354 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_UREM'
5623 /* 3354 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
5624 /* 3357 */ // Label 192: @3357
5625 /* 3357 */ GIM_Try, /*On fail goto*//*Label 193*/ GIMT_Encode4(3397), // Rule ID 130 //
5626 /* 3362 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
5627 /* 3365 */ // MIs[0] dst
5628 /* 3365 */ // No operand predicates
5629 /* 3365 */ // MIs[0] zero
5630 /* 3365 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5631 /* 3369 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5632 /* 3373 */ // MIs[1] Operand 1
5633 /* 3373 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0),
5634 /* 3384 */ // MIs[0] rhs
5635 /* 3384 */ // No operand predicates
5636 /* 3384 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5637 /* 3389 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5638 /* 3391 */ // Combiner Rule #93: binop_left_to_zero @ [__binop_left_to_zero_match_0[6]]
5639 /* 3391 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5640 /* 3396 */ GIR_EraseRootFromParent_Done,
5641 /* 3397 */ // Label 193: @3397
5642 /* 3397 */ GIM_Try, /*On fail goto*//*Label 194*/ GIMT_Encode4(3408), // Rule ID 183 //
5643 /* 3402 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule139Enabled),
5644 /* 3405 */ // MIs[0] dst
5645 /* 3405 */ // No operand predicates
5646 /* 3405 */ // MIs[0] x
5647 /* 3405 */ // No operand predicates
5648 /* 3405 */ // MIs[0] y
5649 /* 3405 */ // No operand predicates
5650 /* 3405 */ // Combiner Rule #139: urem_pow2_to_mask
5651 /* 3405 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner74),
5652 /* 3408 */ // Label 194: @3408
5653 /* 3408 */ GIM_Try, /*On fail goto*//*Label 195*/ GIMT_Encode4(3419), // Rule ID 343 //
5654 /* 3413 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule206Enabled),
5655 /* 3416 */ // MIs[0] dst
5656 /* 3416 */ // No operand predicates
5657 /* 3416 */ // MIs[0] x
5658 /* 3416 */ // No operand predicates
5659 /* 3416 */ // MIs[0] y
5660 /* 3416 */ // No operand predicates
5661 /* 3416 */ // Combiner Rule #206: urem_by_const
5662 /* 3416 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner121),
5663 /* 3419 */ // Label 195: @3419
5664 /* 3419 */ GIM_Reject,
5665 /* 3420 */ // Label 8: @3420
5666 /* 3420 */ GIM_Try, /*On fail goto*//*Label 196*/ GIMT_Encode4(3431), // Rule ID 79 //
5667 /* 3425 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule75Enabled),
5668 /* 3428 */ // Combiner Rule #75: load_and_mask; wip_match_opcode 'G_AND'
5669 /* 3428 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner31),
5670 /* 3431 */ // Label 196: @3431
5671 /* 3431 */ GIM_Try, /*On fail goto*//*Label 197*/ GIMT_Encode4(3442), // Rule ID 83 //
5672 /* 3436 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule78Enabled),
5673 /* 3439 */ // Combiner Rule #78: undef_to_int_zero; wip_match_opcode 'G_AND'
5674 /* 3439 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner34),
5675 /* 3442 */ // Label 197: @3442
5676 /* 3442 */ GIM_Try, /*On fail goto*//*Label 198*/ GIMT_Encode4(3453), // Rule ID 153 //
5677 /* 3447 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule113Enabled),
5678 /* 3450 */ // Combiner Rule #113: hoist_logic_op_with_same_opcode_hands; wip_match_opcode 'G_AND'
5679 /* 3450 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner54),
5680 /* 3453 */ // Label 198: @3453
5681 /* 3453 */ GIM_Try, /*On fail goto*//*Label 199*/ GIMT_Encode4(3464), // Rule ID 173 //
5682 /* 3458 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule129Enabled),
5683 /* 3461 */ // Combiner Rule #129: narrow_binop_feeding_and; wip_match_opcode 'G_AND'
5684 /* 3461 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner67),
5685 /* 3464 */ // Label 199: @3464
5686 /* 3464 */ GIM_Try, /*On fail goto*//*Label 200*/ GIMT_Encode4(3475), // Rule ID 180 //
5687 /* 3469 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule136Enabled),
5688 /* 3472 */ // Combiner Rule #136: redundant_and; wip_match_opcode 'G_AND'
5689 /* 3472 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner71),
5690 /* 3475 */ // Label 200: @3475
5691 /* 3475 */ GIM_Try, /*On fail goto*//*Label 201*/ GIMT_Encode4(3486), // Rule ID 205 //
5692 /* 3480 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule161Enabled),
5693 /* 3483 */ // Combiner Rule #161: overlapping_and; wip_match_opcode 'G_AND'
5694 /* 3483 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner83),
5695 /* 3486 */ // Label 201: @3486
5696 /* 3486 */ GIM_Try, /*On fail goto*//*Label 202*/ GIMT_Encode4(3497), // Rule ID 258 //
5697 /* 3491 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled),
5698 /* 3494 */ // Combiner Rule #187: constant_fold_binop; wip_match_opcode 'G_AND'
5699 /* 3494 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103),
5700 /* 3497 */ // Label 202: @3497
5701 /* 3497 */ GIM_Try, /*On fail goto*//*Label 203*/ GIMT_Encode4(3508), // Rule ID 307 //
5702 /* 3502 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule195Enabled),
5703 /* 3505 */ // Combiner Rule #195: and_or_disjoint_mask; wip_match_opcode 'G_AND'
5704 /* 3505 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner110),
5705 /* 3508 */ // Label 203: @3508
5706 /* 3508 */ GIM_Try, /*On fail goto*//*Label 204*/ GIMT_Encode4(3519), // Rule ID 319 //
5707 /* 3513 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
5708 /* 3516 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_AND'
5709 /* 3516 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
5710 /* 3519 */ // Label 204: @3519
5711 /* 3519 */ GIM_Try, /*On fail goto*//*Label 205*/ GIMT_Encode4(3530), // Rule ID 355 //
5712 /* 3524 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
5713 /* 3527 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_AND'
5714 /* 3527 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129),
5715 /* 3530 */ // Label 205: @3530
5716 /* 3530 */ GIM_Try, /*On fail goto*//*Label 206*/ GIMT_Encode4(3541), // Rule ID 382 //
5717 /* 3535 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule218Enabled),
5718 /* 3538 */ // Combiner Rule #218: match_ands; wip_match_opcode 'G_AND'
5719 /* 3538 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner131),
5720 /* 3541 */ // Label 206: @3541
5721 /* 3541 */ GIM_Try, /*On fail goto*//*Label 207*/ GIMT_Encode4(3552), // Rule ID 421 //
5722 /* 3546 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule254Enabled),
5723 /* 3549 */ // Combiner Rule #254: binop_with_neg; wip_match_opcode 'G_AND'
5724 /* 3549 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner158),
5725 /* 3552 */ // Label 207: @3552
5726 /* 3552 */ GIM_Try, /*On fail goto*//*Label 208*/ GIMT_Encode4(3638), // Rule ID 387 //
5727 /* 3557 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule223Enabled),
5728 /* 3560 */ // MIs[0] root
5729 /* 3560 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
5730 /* 3564 */ // MIs[0] and
5731 /* 3564 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5732 /* 3568 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_OR),
5733 /* 3572 */ // MIs[1] x
5734 /* 3572 */ // No operand predicates
5735 /* 3572 */ // MIs[1] y
5736 /* 3572 */ // No operand predicates
5737 /* 3572 */ // MIs[0] not
5738 /* 3572 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
5739 /* 3576 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_XOR),
5740 /* 3580 */ // MIs[2] y
5741 /* 3580 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/2,
5742 /* 3585 */ // MIs[2] Operand 2
5743 /* 3585 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/2, 255,
5744 /* 3589 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5745 /* 3591 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
5746 /* 3594 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(18446744073709551615u),
5747 /* 3604 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5748 /* 3607 */ // Combiner Rule #223: and_xor_or_to_xor_and
5749 /* 3607 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_XOR),
5750 /* 3610 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5751 /* 3615 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // y
5752 /* 3619 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/1,
5753 /* 3622 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_AND),
5754 /* 3626 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // root
5755 /* 3630 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // x
5756 /* 3634 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
5757 /* 3637 */ GIR_EraseRootFromParent_Done,
5758 /* 3638 */ // Label 208: @3638
5759 /* 3638 */ GIM_Try, /*On fail goto*//*Label 209*/ GIMT_Encode4(3736), // Rule ID 166 //
5760 /* 3643 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule122Enabled),
5761 /* 3646 */ // MIs[0] root
5762 /* 3646 */ // No operand predicates
5763 /* 3646 */ // MIs[0] d1
5764 /* 3646 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5765 /* 3650 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ICMP),
5766 /* 3654 */ // MIs[1] p
5767 /* 3654 */ // No operand predicates
5768 /* 3654 */ // MIs[1] s1
5769 /* 3654 */ GIM_RecordRegType, /*MI*/1, /*Op*/2, /*TempTypeIdx*/255,
5770 /* 3658 */ // MIs[1] Operand 3
5771 /* 3658 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/3, 0,
5772 /* 3662 */ // MIs[0] d2
5773 /* 3662 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
5774 /* 3666 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ICMP),
5775 /* 3670 */ // MIs[2] p
5776 /* 3670 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/1,
5777 /* 3675 */ // MIs[2] s2
5778 /* 3675 */ // No operand predicates
5779 /* 3675 */ // MIs[2] Operand 3
5780 /* 3675 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/3, 0,
5781 /* 3679 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner9),
5782 /* 3683 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5783 /* 3685 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
5784 /* 3688 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(0),
5785 /* 3698 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5786 /* 3701 */ // Combiner Rule #122: double_icmp_zero_and_combine
5787 /* 3701 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR),
5788 /* 3704 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5789 /* 3709 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // s1
5790 /* 3713 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/2, // s2
5791 /* 3717 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ICMP),
5792 /* 3721 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // root
5793 /* 3725 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // p
5794 /* 3729 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
5795 /* 3732 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/1,
5796 /* 3735 */ GIR_EraseRootFromParent_Done,
5797 /* 3736 */ // Label 209: @3736
5798 /* 3736 */ GIM_Try, /*On fail goto*//*Label 210*/ GIMT_Encode4(3773), // Rule ID 251 //
5799 /* 3741 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule184Enabled),
5800 /* 3744 */ // MIs[0] root
5801 /* 3744 */ // No operand predicates
5802 /* 3744 */ // MIs[0] shift
5803 /* 3744 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5804 /* 3748 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_LSHR),
5805 /* 3752 */ // MIs[1] x
5806 /* 3752 */ // No operand predicates
5807 /* 3752 */ // MIs[1] lsb
5808 /* 3752 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
5809 /* 3756 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5810 /* 3760 */ // MIs[2] imm1
5811 /* 3760 */ // No operand predicates
5812 /* 3760 */ // MIs[0] mask
5813 /* 3760 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/0, /*OpIdx*/2, // MIs[3]
5814 /* 3764 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5815 /* 3768 */ // MIs[3] imm2
5816 /* 3768 */ // No operand predicates
5817 /* 3768 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
5818 /* 3770 */ // Combiner Rule #184: bitfield_extract_from_and
5819 /* 3770 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner100),
5820 /* 3773 */ // Label 210: @3773
5821 /* 3773 */ GIM_Try, /*On fail goto*//*Label 211*/ GIMT_Encode4(3822), // Rule ID 386 //
5822 /* 3778 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule222Enabled),
5823 /* 3781 */ // MIs[0] root
5824 /* 3781 */ // No operand predicates
5825 /* 3781 */ // MIs[0] or
5826 /* 3781 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5827 /* 3785 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_OR),
5828 /* 3789 */ // MIs[1] x
5829 /* 3789 */ // No operand predicates
5830 /* 3789 */ // MIs[1] not
5831 /* 3789 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
5832 /* 3793 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_XOR),
5833 /* 3797 */ // MIs[2] y
5834 /* 3797 */ // No operand predicates
5835 /* 3797 */ // MIs[2] Operand 2
5836 /* 3797 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/2, 255,
5837 /* 3801 */ // MIs[0] y
5838 /* 3801 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/2, /*OtherOpIdx*/1,
5839 /* 3806 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5840 /* 3808 */ // Combiner Rule #222: and_xor_or_to_and
5841 /* 3808 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_AND),
5842 /* 3811 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
5843 /* 3813 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
5844 /* 3817 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // y
5845 /* 3821 */ GIR_EraseRootFromParent_Done,
5846 /* 3822 */ // Label 211: @3822
5847 /* 3822 */ GIM_Try, /*On fail goto*//*Label 212*/ GIMT_Encode4(3936), // Rule ID 442 //
5848 /* 3827 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule270Enabled),
5849 /* 3830 */ GIM_RootCheckType, /*Op*/1, /*Type*/GILLT_s64,
5850 /* 3833 */ GIM_RootCheckType, /*Op*/2, /*Type*/GILLT_s64,
5851 /* 3836 */ // MIs[0] dst
5852 /* 3836 */ // No operand predicates
5853 /* 3836 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner24),
5854 /* 3840 */ GIR_MakeTempReg, /*TempRegID*/5, /*TypeID*/GILLT_s32,
5855 /* 3843 */ GIR_MakeTempReg, /*TempRegID*/4, /*TypeID*/GILLT_s32,
5856 /* 3846 */ GIR_MakeTempReg, /*TempRegID*/3, /*TypeID*/GILLT_s32,
5857 /* 3849 */ GIR_MakeTempReg, /*TempRegID*/2, /*TypeID*/GILLT_s32,
5858 /* 3852 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/GILLT_s32,
5859 /* 3855 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/GILLT_s32,
5860 /* 3858 */ // Combiner Rule #270: combine_and_s64_with_s32_mask
5861 /* 3858 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UNMERGE_VALUES),
5862 /* 3861 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5863 /* 3866 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/1, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5864 /* 3871 */ GIR_RootToRootCopy, /*OpIdx*/1, // x
5865 /* 3873 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UNMERGE_VALUES),
5866 /* 3877 */ GIR_AddTempRegister, /*InsnID*/1, /*TempRegID*/2, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5867 /* 3882 */ GIR_AddTempRegister, /*InsnID*/1, /*TempRegID*/3, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5868 /* 3887 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/2, // y
5869 /* 3891 */ GIR_BuildMI, /*InsnID*/2, /*Opcode*/GIMT_Encode2(TargetOpcode::G_AND),
5870 /* 3895 */ GIR_AddTempRegister, /*InsnID*/2, /*TempRegID*/4, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5871 /* 3900 */ GIR_AddSimpleTempRegister, /*InsnID*/2, /*TempRegID*/0,
5872 /* 3903 */ GIR_AddSimpleTempRegister, /*InsnID*/2, /*TempRegID*/2,
5873 /* 3906 */ GIR_BuildMI, /*InsnID*/3, /*Opcode*/GIMT_Encode2(TargetOpcode::G_AND),
5874 /* 3910 */ GIR_AddTempRegister, /*InsnID*/3, /*TempRegID*/5, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5875 /* 3915 */ GIR_AddSimpleTempRegister, /*InsnID*/3, /*TempRegID*/1,
5876 /* 3918 */ GIR_AddSimpleTempRegister, /*InsnID*/3, /*TempRegID*/3,
5877 /* 3921 */ GIR_BuildMI, /*InsnID*/4, /*Opcode*/GIMT_Encode2(TargetOpcode::G_MERGE_VALUES),
5878 /* 3925 */ GIR_Copy, /*NewInsnID*/4, /*OldInsnID*/0, /*OpIdx*/0, // dst
5879 /* 3929 */ GIR_AddSimpleTempRegister, /*InsnID*/4, /*TempRegID*/4,
5880 /* 3932 */ GIR_AddSimpleTempRegister, /*InsnID*/4, /*TempRegID*/5,
5881 /* 3935 */ GIR_EraseRootFromParent_Done,
5882 /* 3936 */ // Label 212: @3936
5883 /* 3936 */ GIM_Try, /*On fail goto*//*Label 213*/ GIMT_Encode4(3960), // Rule ID 120 //
5884 /* 3941 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule91Enabled),
5885 /* 3944 */ // MIs[0] dst
5886 /* 3944 */ // No operand predicates
5887 /* 3944 */ // MIs[0] src
5888 /* 3944 */ // No operand predicates
5889 /* 3944 */ // MIs[0] src
5890 /* 3944 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
5891 /* 3949 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5892 /* 3954 */ // Combiner Rule #91: binop_same_val @ [__binop_same_val_match_0[0]]
5893 /* 3954 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5894 /* 3959 */ GIR_EraseRootFromParent_Done,
5895 /* 3960 */ // Label 213: @3960
5896 /* 3960 */ GIM_Reject,
5897 /* 3961 */ // Label 9: @3961
5898 /* 3961 */ GIM_Try, /*On fail goto*//*Label 214*/ GIMT_Encode4(3972), // Rule ID 85 //
5899 /* 3966 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule79Enabled),
5900 /* 3969 */ // Combiner Rule #79: undef_to_negative_one; wip_match_opcode 'G_OR'
5901 /* 3969 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner35),
5902 /* 3972 */ // Label 214: @3972
5903 /* 3972 */ GIM_Try, /*On fail goto*//*Label 215*/ GIMT_Encode4(3983), // Rule ID 154 //
5904 /* 3977 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule113Enabled),
5905 /* 3980 */ // Combiner Rule #113: hoist_logic_op_with_same_opcode_hands; wip_match_opcode 'G_OR'
5906 /* 3980 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner54),
5907 /* 3983 */ // Label 215: @3983
5908 /* 3983 */ GIM_Try, /*On fail goto*//*Label 216*/ GIMT_Encode4(3994), // Rule ID 182 //
5909 /* 3988 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule138Enabled),
5910 /* 3991 */ // Combiner Rule #138: redundant_or; wip_match_opcode 'G_OR'
5911 /* 3991 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner73),
5912 /* 3994 */ // Label 216: @3994
5913 /* 3994 */ GIM_Try, /*On fail goto*//*Label 217*/ GIMT_Encode4(4005), // Rule ID 231 //
5914 /* 3999 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule171Enabled),
5915 /* 4002 */ // Combiner Rule #171: load_or_combine; wip_match_opcode 'G_OR'
5916 /* 4002 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner93),
5917 /* 4005 */ // Label 217: @4005
5918 /* 4005 */ GIM_Try, /*On fail goto*//*Label 218*/ GIMT_Encode4(4016), // Rule ID 236 //
5919 /* 4010 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule173Enabled),
5920 /* 4013 */ // Combiner Rule #173: funnel_shift_from_or_shift; wip_match_opcode 'G_OR'
5921 /* 4013 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner95),
5922 /* 4016 */ // Label 218: @4016
5923 /* 4016 */ GIM_Try, /*On fail goto*//*Label 219*/ GIMT_Encode4(4027), // Rule ID 262 //
5924 /* 4021 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled),
5925 /* 4024 */ // Combiner Rule #187: constant_fold_binop; wip_match_opcode 'G_OR'
5926 /* 4024 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103),
5927 /* 4027 */ // Label 219: @4027
5928 /* 4027 */ GIM_Try, /*On fail goto*//*Label 220*/ GIMT_Encode4(4038), // Rule ID 320 //
5929 /* 4032 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
5930 /* 4035 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_OR'
5931 /* 4035 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
5932 /* 4038 */ // Label 220: @4038
5933 /* 4038 */ GIM_Try, /*On fail goto*//*Label 221*/ GIMT_Encode4(4049), // Rule ID 356 //
5934 /* 4043 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
5935 /* 4046 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_OR'
5936 /* 4046 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129),
5937 /* 4049 */ // Label 221: @4049
5938 /* 4049 */ GIM_Try, /*On fail goto*//*Label 222*/ GIMT_Encode4(4060), // Rule ID 383 //
5939 /* 4054 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule219Enabled),
5940 /* 4057 */ // Combiner Rule #219: match_ors; wip_match_opcode 'G_OR'
5941 /* 4057 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner132),
5942 /* 4060 */ // Label 222: @4060
5943 /* 4060 */ GIM_Try, /*On fail goto*//*Label 223*/ GIMT_Encode4(4071), // Rule ID 422 //
5944 /* 4065 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule254Enabled),
5945 /* 4068 */ // Combiner Rule #254: binop_with_neg; wip_match_opcode 'G_OR'
5946 /* 4068 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner158),
5947 /* 4071 */ // Label 223: @4071
5948 /* 4071 */ GIM_Try, /*On fail goto*//*Label 224*/ GIMT_Encode4(4157), // Rule ID 385 //
5949 /* 4076 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule221Enabled),
5950 /* 4079 */ // MIs[0] root
5951 /* 4079 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
5952 /* 4083 */ // MIs[0] and
5953 /* 4083 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5954 /* 4087 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_AND),
5955 /* 4091 */ // MIs[1] x
5956 /* 4091 */ // No operand predicates
5957 /* 4091 */ // MIs[1] y
5958 /* 4091 */ // No operand predicates
5959 /* 4091 */ // MIs[0] not
5960 /* 4091 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
5961 /* 4095 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_XOR),
5962 /* 4099 */ // MIs[2] y
5963 /* 4099 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/2,
5964 /* 4104 */ // MIs[2] Operand 2
5965 /* 4104 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/2, 255,
5966 /* 4108 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5967 /* 4110 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
5968 /* 4113 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(18446744073709551615u),
5969 /* 4123 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5970 /* 4126 */ // Combiner Rule #221: or_and_xor_to_xor_or
5971 /* 4126 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_XOR),
5972 /* 4129 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5973 /* 4134 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // y
5974 /* 4138 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/1,
5975 /* 4141 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR),
5976 /* 4145 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // root
5977 /* 4149 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // x
5978 /* 4153 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
5979 /* 4156 */ GIR_EraseRootFromParent_Done,
5980 /* 4157 */ // Label 224: @4157
5981 /* 4157 */ GIM_Try, /*On fail goto*//*Label 225*/ GIMT_Encode4(4244), // Rule ID 444 //
5982 /* 4162 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule271Enabled),
5983 /* 4165 */ GIM_RootCheckType, /*Op*/1, /*Type*/GILLT_s64,
5984 /* 4168 */ GIM_RootCheckType, /*Op*/2, /*Type*/GILLT_s64,
5985 /* 4171 */ // MIs[0] dst
5986 /* 4171 */ // No operand predicates
5987 /* 4171 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5988 /* 4175 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ZEXT),
5989 /* 4179 */ GIM_CheckType, /*MI*/1, /*Op*/1, /*Type*/GILLT_s32,
5990 /* 4183 */ GIM_RecordRegType, /*MI*/1, /*Op*/1, /*TempTypeIdx*/255,
5991 /* 4187 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5992 /* 4189 */ GIR_MakeTempReg, /*TempRegID*/2, /*TypeID*/255,
5993 /* 4192 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
5994 /* 4195 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5995 /* 4198 */ // Combiner Rule #271: combine_or_s64_s32 @ [dst[1]]
5996 /* 4198 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UNMERGE_VALUES),
5997 /* 4201 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5998 /* 4206 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/1, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5999 /* 4211 */ GIR_RootToRootCopy, /*OpIdx*/2, // x
6000 /* 4213 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR),
6001 /* 4217 */ GIR_AddTempRegister, /*InsnID*/1, /*TempRegID*/2, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
6002 /* 4222 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
6003 /* 4225 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // y
6004 /* 4229 */ GIR_BuildMI, /*InsnID*/2, /*Opcode*/GIMT_Encode2(TargetOpcode::G_MERGE_VALUES),
6005 /* 4233 */ GIR_Copy, /*NewInsnID*/2, /*OldInsnID*/0, /*OpIdx*/0, // dst
6006 /* 4237 */ GIR_AddSimpleTempRegister, /*InsnID*/2, /*TempRegID*/2,
6007 /* 4240 */ GIR_AddSimpleTempRegister, /*InsnID*/2, /*TempRegID*/1,
6008 /* 4243 */ GIR_EraseRootFromParent_Done,
6009 /* 4244 */ // Label 225: @4244
6010 /* 4244 */ GIM_Try, /*On fail goto*//*Label 226*/ GIMT_Encode4(4291), // Rule ID 243 //
6011 /* 4249 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule178Enabled),
6012 /* 4252 */ // MIs[0] root
6013 /* 4252 */ // No operand predicates
6014 /* 4252 */ // MIs[0] out1
6015 /* 4252 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6016 /* 4256 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FSHL),
6017 /* 4260 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_left_match_0.x
6018 /* 4260 */ // No operand predicates
6019 /* 4260 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_left_match_0.z
6020 /* 4260 */ // No operand predicates
6021 /* 4260 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_left_match_0.y
6022 /* 4260 */ // No operand predicates
6023 /* 4260 */ // MIs[0] out2
6024 /* 4260 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
6025 /* 4264 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SHL),
6026 /* 4268 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_left_match_0.x
6027 /* 4268 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/1,
6028 /* 4273 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_left_match_0.y
6029 /* 4273 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/3,
6030 /* 4278 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6031 /* 4283 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
6032 /* 4285 */ // Combiner Rule #178: funnel_shift_or_shift_to_funnel_shift_left @ [__funnel_shift_or_shift_to_funnel_shift_left_match_0[0]]
6033 /* 4285 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6034 /* 4290 */ GIR_EraseRootFromParent_Done,
6035 /* 4291 */ // Label 226: @4291
6036 /* 4291 */ GIM_Try, /*On fail goto*//*Label 227*/ GIMT_Encode4(4338), // Rule ID 245 //
6037 /* 4296 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule179Enabled),
6038 /* 4299 */ // MIs[0] root
6039 /* 4299 */ // No operand predicates
6040 /* 4299 */ // MIs[0] out1
6041 /* 4299 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6042 /* 4303 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FSHR),
6043 /* 4307 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_right_match_0.z
6044 /* 4307 */ // No operand predicates
6045 /* 4307 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_right_match_0.x
6046 /* 4307 */ // No operand predicates
6047 /* 4307 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_right_match_0.y
6048 /* 4307 */ // No operand predicates
6049 /* 4307 */ // MIs[0] out2
6050 /* 4307 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
6051 /* 4311 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_LSHR),
6052 /* 4315 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_right_match_0.x
6053 /* 4315 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/2,
6054 /* 4320 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_right_match_0.y
6055 /* 4320 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/3,
6056 /* 4325 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6057 /* 4330 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
6058 /* 4332 */ // Combiner Rule #179: funnel_shift_or_shift_to_funnel_shift_right @ [__funnel_shift_or_shift_to_funnel_shift_right_match_0[0]]
6059 /* 4332 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6060 /* 4337 */ GIR_EraseRootFromParent_Done,
6061 /* 4338 */ // Label 227: @4338
6062 /* 4338 */ GIM_Try, /*On fail goto*//*Label 228*/ GIMT_Encode4(4436), // Rule ID 167 //
6063 /* 4343 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule123Enabled),
6064 /* 4346 */ // MIs[0] root
6065 /* 4346 */ // No operand predicates
6066 /* 4346 */ // MIs[0] d1
6067 /* 4346 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6068 /* 4350 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ICMP),
6069 /* 4354 */ // MIs[1] p
6070 /* 4354 */ // No operand predicates
6071 /* 4354 */ // MIs[1] s1
6072 /* 4354 */ GIM_RecordRegType, /*MI*/1, /*Op*/2, /*TempTypeIdx*/255,
6073 /* 4358 */ // MIs[1] Operand 3
6074 /* 4358 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/3, 0,
6075 /* 4362 */ // MIs[0] d2
6076 /* 4362 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
6077 /* 4366 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ICMP),
6078 /* 4370 */ // MIs[2] p
6079 /* 4370 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/1,
6080 /* 4375 */ // MIs[2] s2
6081 /* 4375 */ // No operand predicates
6082 /* 4375 */ // MIs[2] Operand 3
6083 /* 4375 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/3, 0,
6084 /* 4379 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner10),
6085 /* 4383 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
6086 /* 4385 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
6087 /* 4388 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(0),
6088 /* 4398 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
6089 /* 4401 */ // Combiner Rule #123: double_icmp_zero_or_combine
6090 /* 4401 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR),
6091 /* 4404 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
6092 /* 4409 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // s1
6093 /* 4413 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/2, // s2
6094 /* 4417 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ICMP),
6095 /* 4421 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // root
6096 /* 4425 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // p
6097 /* 4429 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
6098 /* 4432 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/1,
6099 /* 4435 */ GIR_EraseRootFromParent_Done,
6100 /* 4436 */ // Label 228: @4436
6101 /* 4436 */ GIM_Try, /*On fail goto*//*Label 229*/ GIMT_Encode4(4485), // Rule ID 384 //
6102 /* 4441 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule220Enabled),
6103 /* 4444 */ // MIs[0] root
6104 /* 4444 */ // No operand predicates
6105 /* 4444 */ // MIs[0] and
6106 /* 4444 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6107 /* 4448 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_AND),
6108 /* 4452 */ // MIs[1] x
6109 /* 4452 */ // No operand predicates
6110 /* 4452 */ // MIs[1] not
6111 /* 4452 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
6112 /* 4456 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_XOR),
6113 /* 4460 */ // MIs[2] y
6114 /* 4460 */ // No operand predicates
6115 /* 4460 */ // MIs[2] Operand 2
6116 /* 4460 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/2, 255,
6117 /* 4464 */ // MIs[0] y
6118 /* 4464 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/2, /*OtherOpIdx*/1,
6119 /* 4469 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
6120 /* 4471 */ // Combiner Rule #220: or_and_xor_to_or
6121 /* 4471 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR),
6122 /* 4474 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
6123 /* 4476 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
6124 /* 4480 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // y
6125 /* 4484 */ GIR_EraseRootFromParent_Done,
6126 /* 4485 */ // Label 229: @4485
6127 /* 4485 */ GIM_Try, /*On fail goto*//*Label 230*/ GIMT_Encode4(4519), // Rule ID 432 //
6128 /* 4490 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule263Enabled),
6129 /* 4493 */ // MIs[0] dst
6130 /* 4493 */ // No operand predicates
6131 /* 4493 */ // MIs[0] __combine_or_of_and_match_0.and
6132 /* 4493 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6133 /* 4497 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_AND),
6134 /* 4501 */ // MIs[1] x
6135 /* 4501 */ // No operand predicates
6136 /* 4501 */ // MIs[1] y
6137 /* 4501 */ // No operand predicates
6138 /* 4501 */ // MIs[0] x
6139 /* 4501 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/1,
6140 /* 4506 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
6141 /* 4511 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6142 /* 4513 */ // Combiner Rule #263: combine_or_of_and @ [__combine_or_of_and_match_0[0]]
6143 /* 4513 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
6144 /* 4518 */ GIR_EraseRootFromParent_Done,
6145 /* 4519 */ // Label 230: @4519
6146 /* 4519 */ GIM_Try, /*On fail goto*//*Label 231*/ GIMT_Encode4(4553), // Rule ID 433 //
6147 /* 4524 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule263Enabled),
6148 /* 4527 */ // MIs[0] dst
6149 /* 4527 */ // No operand predicates
6150 /* 4527 */ // MIs[0] __combine_or_of_and_match_0.and
6151 /* 4527 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6152 /* 4531 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_AND),
6153 /* 4535 */ // MIs[1] y
6154 /* 4535 */ // No operand predicates
6155 /* 4535 */ // MIs[1] x
6156 /* 4535 */ // No operand predicates
6157 /* 4535 */ // MIs[0] x
6158 /* 4535 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/2,
6159 /* 4540 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/2,
6160 /* 4545 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6161 /* 4547 */ // Combiner Rule #263: combine_or_of_and @ [__combine_or_of_and_match_0[1]]
6162 /* 4547 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/2,
6163 /* 4552 */ GIR_EraseRootFromParent_Done,
6164 /* 4553 */ // Label 231: @4553
6165 /* 4553 */ GIM_Try, /*On fail goto*//*Label 232*/ GIMT_Encode4(4600), // Rule ID 246 //
6166 /* 4558 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule179Enabled),
6167 /* 4561 */ // MIs[0] root
6168 /* 4561 */ // No operand predicates
6169 /* 4561 */ // MIs[0] out2
6170 /* 4561 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6171 /* 4565 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_LSHR),
6172 /* 4569 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_right_match_0.x
6173 /* 4569 */ // No operand predicates
6174 /* 4569 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_right_match_0.y
6175 /* 4569 */ // No operand predicates
6176 /* 4569 */ // MIs[0] out1
6177 /* 4569 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
6178 /* 4573 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_FSHR),
6179 /* 4577 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_right_match_0.z
6180 /* 4577 */ // No operand predicates
6181 /* 4577 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_right_match_0.x
6182 /* 4577 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/1,
6183 /* 4582 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_right_match_0.y
6184 /* 4582 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/3, /*OtherMI*/1, /*OtherOpIdx*/2,
6185 /* 4587 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
6186 /* 4592 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
6187 /* 4594 */ // Combiner Rule #179: funnel_shift_or_shift_to_funnel_shift_right @ [__funnel_shift_or_shift_to_funnel_shift_right_match_0[1]]
6188 /* 4594 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
6189 /* 4599 */ GIR_EraseRootFromParent_Done,
6190 /* 4600 */ // Label 232: @4600
6191 /* 4600 */ GIM_Try, /*On fail goto*//*Label 233*/ GIMT_Encode4(4647), // Rule ID 244 //
6192 /* 4605 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule178Enabled),
6193 /* 4608 */ // MIs[0] root
6194 /* 4608 */ // No operand predicates
6195 /* 4608 */ // MIs[0] out2
6196 /* 4608 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6197 /* 4612 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SHL),
6198 /* 4616 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_left_match_0.x
6199 /* 4616 */ // No operand predicates
6200 /* 4616 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_left_match_0.y
6201 /* 4616 */ // No operand predicates
6202 /* 4616 */ // MIs[0] out1
6203 /* 4616 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
6204 /* 4620 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_FSHL),
6205 /* 4624 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_left_match_0.x
6206 /* 4624 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/1,
6207 /* 4629 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_left_match_0.z
6208 /* 4629 */ // No operand predicates
6209 /* 4629 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_left_match_0.y
6210 /* 4629 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/3, /*OtherMI*/1, /*OtherOpIdx*/2,
6211 /* 4634 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
6212 /* 4639 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
6213 /* 4641 */ // Combiner Rule #178: funnel_shift_or_shift_to_funnel_shift_left @ [__funnel_shift_or_shift_to_funnel_shift_left_match_0[1]]
6214 /* 4641 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
6215 /* 4646 */ GIR_EraseRootFromParent_Done,
6216 /* 4647 */ // Label 233: @4647
6217 /* 4647 */ GIM_Try, /*On fail goto*//*Label 234*/ GIMT_Encode4(4848),
6218 /* 4652 */ GIM_RootCheckType, /*Op*/1, /*Type*/GILLT_s64,
6219 /* 4655 */ GIM_RootCheckType, /*Op*/2, /*Type*/GILLT_s64,
6220 /* 4658 */ GIM_Try, /*On fail goto*//*Label 235*/ GIMT_Encode4(4739), // Rule ID 443 //
6221 /* 4663 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule271Enabled),
6222 /* 4666 */ // MIs[0] dst
6223 /* 4666 */ // No operand predicates
6224 /* 4666 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
6225 /* 4670 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ZEXT),
6226 /* 4674 */ GIM_CheckType, /*MI*/1, /*Op*/1, /*Type*/GILLT_s32,
6227 /* 4678 */ GIM_RecordRegType, /*MI*/1, /*Op*/1, /*TempTypeIdx*/255,
6228 /* 4682 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6229 /* 4684 */ GIR_MakeTempReg, /*TempRegID*/2, /*TypeID*/255,
6230 /* 4687 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
6231 /* 4690 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
6232 /* 4693 */ // Combiner Rule #271: combine_or_s64_s32 @ [dst[0]]
6233 /* 4693 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UNMERGE_VALUES),
6234 /* 4696 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
6235 /* 4701 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/1, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
6236 /* 4706 */ GIR_RootToRootCopy, /*OpIdx*/1, // x
6237 /* 4708 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR),
6238 /* 4712 */ GIR_AddTempRegister, /*InsnID*/1, /*TempRegID*/2, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
6239 /* 4717 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
6240 /* 4720 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // y
6241 /* 4724 */ GIR_BuildMI, /*InsnID*/2, /*Opcode*/GIMT_Encode2(TargetOpcode::G_MERGE_VALUES),
6242 /* 4728 */ GIR_Copy, /*NewInsnID*/2, /*OldInsnID*/0, /*OpIdx*/0, // dst
6243 /* 4732 */ GIR_AddSimpleTempRegister, /*InsnID*/2, /*TempRegID*/2,
6244 /* 4735 */ GIR_AddSimpleTempRegister, /*InsnID*/2, /*TempRegID*/1,
6245 /* 4738 */ GIR_EraseRootFromParent_Done,
6246 /* 4739 */ // Label 235: @4739
6247 /* 4739 */ GIM_Try, /*On fail goto*//*Label 236*/ GIMT_Encode4(4847), // Rule ID 441 //
6248 /* 4744 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule269Enabled),
6249 /* 4747 */ // MIs[0] dst
6250 /* 4747 */ // No operand predicates
6251 /* 4747 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner24),
6252 /* 4751 */ GIR_MakeTempReg, /*TempRegID*/5, /*TypeID*/GILLT_s32,
6253 /* 4754 */ GIR_MakeTempReg, /*TempRegID*/4, /*TypeID*/GILLT_s32,
6254 /* 4757 */ GIR_MakeTempReg, /*TempRegID*/3, /*TypeID*/GILLT_s32,
6255 /* 4760 */ GIR_MakeTempReg, /*TempRegID*/2, /*TypeID*/GILLT_s32,
6256 /* 4763 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/GILLT_s32,
6257 /* 4766 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/GILLT_s32,
6258 /* 4769 */ // Combiner Rule #269: combine_or_s64_with_s32_mask
6259 /* 4769 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UNMERGE_VALUES),
6260 /* 4772 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
6261 /* 4777 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/1, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
6262 /* 4782 */ GIR_RootToRootCopy, /*OpIdx*/1, // x
6263 /* 4784 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UNMERGE_VALUES),
6264 /* 4788 */ GIR_AddTempRegister, /*InsnID*/1, /*TempRegID*/2, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
6265 /* 4793 */ GIR_AddTempRegister, /*InsnID*/1, /*TempRegID*/3, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
6266 /* 4798 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/2, // y
6267 /* 4802 */ GIR_BuildMI, /*InsnID*/2, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR),
6268 /* 4806 */ GIR_AddTempRegister, /*InsnID*/2, /*TempRegID*/4, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
6269 /* 4811 */ GIR_AddSimpleTempRegister, /*InsnID*/2, /*TempRegID*/0,
6270 /* 4814 */ GIR_AddSimpleTempRegister, /*InsnID*/2, /*TempRegID*/2,
6271 /* 4817 */ GIR_BuildMI, /*InsnID*/3, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR),
6272 /* 4821 */ GIR_AddTempRegister, /*InsnID*/3, /*TempRegID*/5, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
6273 /* 4826 */ GIR_AddSimpleTempRegister, /*InsnID*/3, /*TempRegID*/1,
6274 /* 4829 */ GIR_AddSimpleTempRegister, /*InsnID*/3, /*TempRegID*/3,
6275 /* 4832 */ GIR_BuildMI, /*InsnID*/4, /*Opcode*/GIMT_Encode2(TargetOpcode::G_MERGE_VALUES),
6276 /* 4836 */ GIR_Copy, /*NewInsnID*/4, /*OldInsnID*/0, /*OpIdx*/0, // dst
6277 /* 4840 */ GIR_AddSimpleTempRegister, /*InsnID*/4, /*TempRegID*/4,
6278 /* 4843 */ GIR_AddSimpleTempRegister, /*InsnID*/4, /*TempRegID*/5,
6279 /* 4846 */ GIR_EraseRootFromParent_Done,
6280 /* 4847 */ // Label 236: @4847
6281 /* 4847 */ GIM_Reject,
6282 /* 4848 */ // Label 234: @4848
6283 /* 4848 */ GIM_Try, /*On fail goto*//*Label 237*/ GIMT_Encode4(4872), // Rule ID 121 //
6284 /* 4853 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule91Enabled),
6285 /* 4856 */ // MIs[0] dst
6286 /* 4856 */ // No operand predicates
6287 /* 4856 */ // MIs[0] src
6288 /* 4856 */ // No operand predicates
6289 /* 4856 */ // MIs[0] src
6290 /* 4856 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
6291 /* 4861 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6292 /* 4866 */ // Combiner Rule #91: binop_same_val @ [__binop_same_val_match_0[1]]
6293 /* 4866 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6294 /* 4871 */ GIR_EraseRootFromParent_Done,
6295 /* 4872 */ // Label 237: @4872
6296 /* 4872 */ GIM_Try, /*On fail goto*//*Label 238*/ GIMT_Encode4(4906), // Rule ID 434 //
6297 /* 4877 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule263Enabled),
6298 /* 4880 */ // MIs[0] dst
6299 /* 4880 */ // No operand predicates
6300 /* 4880 */ // MIs[0] x
6301 /* 4880 */ // No operand predicates
6302 /* 4880 */ // MIs[0] __combine_or_of_and_match_0.and
6303 /* 4880 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
6304 /* 4884 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_AND),
6305 /* 4888 */ // MIs[1] x
6306 /* 4888 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/1, /*OpIdx*/1, /*OtherMI*/0, /*OtherOpIdx*/1,
6307 /* 4893 */ // MIs[1] y
6308 /* 4893 */ // No operand predicates
6309 /* 4893 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6310 /* 4898 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6311 /* 4900 */ // Combiner Rule #263: combine_or_of_and @ [__combine_or_of_and_match_0[2]]
6312 /* 4900 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6313 /* 4905 */ GIR_EraseRootFromParent_Done,
6314 /* 4906 */ // Label 238: @4906
6315 /* 4906 */ GIM_Try, /*On fail goto*//*Label 239*/ GIMT_Encode4(4940), // Rule ID 435 //
6316 /* 4911 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule263Enabled),
6317 /* 4914 */ // MIs[0] dst
6318 /* 4914 */ // No operand predicates
6319 /* 4914 */ // MIs[0] x
6320 /* 4914 */ // No operand predicates
6321 /* 4914 */ // MIs[0] __combine_or_of_and_match_0.and
6322 /* 4914 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
6323 /* 4918 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_AND),
6324 /* 4922 */ // MIs[1] y
6325 /* 4922 */ // No operand predicates
6326 /* 4922 */ // MIs[1] x
6327 /* 4922 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/1, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
6328 /* 4927 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6329 /* 4932 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6330 /* 4934 */ // Combiner Rule #263: combine_or_of_and @ [__combine_or_of_and_match_0[3]]
6331 /* 4934 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6332 /* 4939 */ GIR_EraseRootFromParent_Done,
6333 /* 4940 */ // Label 239: @4940
6334 /* 4940 */ GIM_Try, /*On fail goto*//*Label 240*/ GIMT_Encode4(4963), // Rule ID 112 //
6335 /* 4945 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled),
6336 /* 4948 */ // MIs[0] dst
6337 /* 4948 */ // No operand predicates
6338 /* 4948 */ // MIs[0] lhs
6339 /* 4948 */ // No operand predicates
6340 /* 4948 */ // MIs[0] Operand 2
6341 /* 4948 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
6342 /* 4952 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6343 /* 4957 */ // Combiner Rule #90: right_identity_zero @ [__right_identity_zero_match_0[2]]
6344 /* 4957 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6345 /* 4962 */ GIR_EraseRootFromParent_Done,
6346 /* 4963 */ // Label 240: @4963
6347 /* 4963 */ GIM_Reject,
6348 /* 4964 */ // Label 10: @4964
6349 /* 4964 */ GIM_Try, /*On fail goto*//*Label 241*/ GIMT_Encode4(4975), // Rule ID 102 //
6350 /* 4969 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule84Enabled),
6351 /* 4972 */ // Combiner Rule #84: propagate_undef_any_op; wip_match_opcode 'G_XOR'
6352 /* 4972 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner39),
6353 /* 4975 */ // Label 241: @4975
6354 /* 4975 */ GIM_Try, /*On fail goto*//*Label 242*/ GIMT_Encode4(4986), // Rule ID 155 //
6355 /* 4980 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule113Enabled),
6356 /* 4983 */ // Combiner Rule #113: hoist_logic_op_with_same_opcode_hands; wip_match_opcode 'G_XOR'
6357 /* 4983 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner54),
6358 /* 4986 */ // Label 242: @4986
6359 /* 4986 */ GIM_Try, /*On fail goto*//*Label 243*/ GIMT_Encode4(4997), // Rule ID 187 //
6360 /* 4991 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule143Enabled),
6361 /* 4994 */ // Combiner Rule #143: not_cmp_fold; wip_match_opcode 'G_XOR'
6362 /* 4994 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner78),
6363 /* 4997 */ // Label 243: @4997
6364 /* 4997 */ GIM_Try, /*On fail goto*//*Label 244*/ GIMT_Encode4(5008), // Rule ID 219 //
6365 /* 5002 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule167Enabled),
6366 /* 5005 */ // Combiner Rule #167: xor_of_and_with_same_reg; wip_match_opcode 'G_XOR'
6367 /* 5005 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner89),
6368 /* 5008 */ // Label 244: @5008
6369 /* 5008 */ GIM_Try, /*On fail goto*//*Label 245*/ GIMT_Encode4(5019), // Rule ID 265 //
6370 /* 5013 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled),
6371 /* 5016 */ // Combiner Rule #187: constant_fold_binop; wip_match_opcode 'G_XOR'
6372 /* 5016 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103),
6373 /* 5019 */ // Label 245: @5019
6374 /* 5019 */ GIM_Try, /*On fail goto*//*Label 246*/ GIMT_Encode4(5030), // Rule ID 321 //
6375 /* 5024 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
6376 /* 5027 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_XOR'
6377 /* 5027 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
6378 /* 5030 */ // Label 246: @5030
6379 /* 5030 */ GIM_Try, /*On fail goto*//*Label 247*/ GIMT_Encode4(5041), // Rule ID 357 //
6380 /* 5035 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
6381 /* 5038 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_XOR'
6382 /* 5038 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129),
6383 /* 5041 */ // Label 247: @5041
6384 /* 5041 */ GIM_Try, /*On fail goto*//*Label 248*/ GIMT_Encode4(5052), // Rule ID 423 //
6385 /* 5046 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule254Enabled),
6386 /* 5049 */ // Combiner Rule #254: binop_with_neg; wip_match_opcode 'G_XOR'
6387 /* 5049 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner158),
6388 /* 5052 */ // Label 248: @5052
6389 /* 5052 */ GIM_Try, /*On fail goto*//*Label 249*/ GIMT_Encode4(5112), // Rule ID 13 //
6390 /* 5057 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule13Enabled),
6391 /* 5060 */ // MIs[0] root
6392 /* 5060 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
6393 /* 5064 */ // MIs[0] add
6394 /* 5064 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6395 /* 5068 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
6396 /* 5072 */ // MIs[1] A
6397 /* 5072 */ // No operand predicates
6398 /* 5072 */ // MIs[1] Operand 2
6399 /* 5072 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/2, 255,
6400 /* 5076 */ // MIs[0] Operand 2
6401 /* 5076 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 255,
6402 /* 5080 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner1),
6403 /* 5084 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6404 /* 5086 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
6405 /* 5089 */ GIR_BuildConstant, /*TempRegID*/0, /*Val*/GIMT_Encode8(0),
6406 /* 5099 */ // Combiner Rule #13: NotAPlusNegOne
6407 /* 5099 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
6408 /* 5102 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
6409 /* 5104 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/0,
6410 /* 5107 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // A
6411 /* 5111 */ GIR_EraseRootFromParent_Done,
6412 /* 5112 */ // Label 249: @5112
6413 /* 5112 */ GIM_Try, /*On fail goto*//*Label 250*/ GIMT_Encode4(5151), // Rule ID 123 //
6414 /* 5117 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule92Enabled),
6415 /* 5120 */ // MIs[0] dst
6416 /* 5120 */ // No operand predicates
6417 /* 5120 */ // MIs[0] x
6418 /* 5120 */ GIM_RecordRegType, /*MI*/0, /*Op*/1, /*TempTypeIdx*/255,
6419 /* 5124 */ // MIs[0] x
6420 /* 5124 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
6421 /* 5129 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
6422 /* 5132 */ GIR_BuildConstant, /*TempRegID*/0, /*Val*/GIMT_Encode8(0),
6423 /* 5142 */ // Combiner Rule #92: same_val_zero @ [__same_val_zero_match_0[1]]
6424 /* 5142 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::COPY),
6425 /* 5145 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
6426 /* 5147 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/0,
6427 /* 5150 */ GIR_EraseRootFromParent_Done,
6428 /* 5151 */ // Label 250: @5151
6429 /* 5151 */ GIM_Try, /*On fail goto*//*Label 251*/ GIMT_Encode4(5174), // Rule ID 113 //
6430 /* 5156 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled),
6431 /* 5159 */ // MIs[0] dst
6432 /* 5159 */ // No operand predicates
6433 /* 5159 */ // MIs[0] lhs
6434 /* 5159 */ // No operand predicates
6435 /* 5159 */ // MIs[0] Operand 2
6436 /* 5159 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
6437 /* 5163 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6438 /* 5168 */ // Combiner Rule #90: right_identity_zero @ [__right_identity_zero_match_0[3]]
6439 /* 5168 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6440 /* 5173 */ GIR_EraseRootFromParent_Done,
6441 /* 5174 */ // Label 251: @5174
6442 /* 5174 */ GIM_Reject,
6443 /* 5175 */ // Label 11: @5175
6444 /* 5175 */ GIM_Try, /*On fail goto*//*Label 252*/ GIMT_Encode4(5186), // Rule ID 151 //
6445 /* 5180 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule111Enabled),
6446 /* 5183 */ // Combiner Rule #111: extend_through_phis; wip_match_opcode 'G_PHI'
6447 /* 5183 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner52),
6448 /* 5186 */ // Label 252: @5186
6449 /* 5186 */ GIM_Reject,
6450 /* 5187 */ // Label 12: @5187
6451 /* 5187 */ GIM_Try, /*On fail goto*//*Label 253*/ GIMT_Encode4(5198), // Rule ID 397 //
6452 /* 5192 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule233Enabled),
6453 /* 5195 */ // Combiner Rule #233: unmerge_anyext_build_vector; wip_match_opcode 'G_UNMERGE_VALUES'
6454 /* 5195 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner142),
6455 /* 5198 */ // Label 253: @5198
6456 /* 5198 */ GIM_Try, /*On fail goto*//*Label 254*/ GIMT_Encode4(5209), // Rule ID 398 //
6457 /* 5203 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule234Enabled),
6458 /* 5206 */ // Combiner Rule #234: unmerge_merge; wip_match_opcode 'G_UNMERGE_VALUES'
6459 /* 5206 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner143),
6460 /* 5209 */ // Label 254: @5209
6461 /* 5209 */ GIM_Try, /*On fail goto*//*Label 255*/ GIMT_Encode4(5220), // Rule ID 400 //
6462 /* 5214 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule236Enabled),
6463 /* 5217 */ // Combiner Rule #236: unmerge_cst; wip_match_opcode 'G_UNMERGE_VALUES'
6464 /* 5217 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner145),
6465 /* 5220 */ // Label 255: @5220
6466 /* 5220 */ GIM_Try, /*On fail goto*//*Label 256*/ GIMT_Encode4(5231), // Rule ID 401 //
6467 /* 5225 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule237Enabled),
6468 /* 5228 */ // Combiner Rule #237: unmerge_undef; wip_match_opcode 'G_UNMERGE_VALUES'
6469 /* 5228 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner146),
6470 /* 5231 */ // Label 256: @5231
6471 /* 5231 */ GIM_Try, /*On fail goto*//*Label 257*/ GIMT_Encode4(5242), // Rule ID 402 //
6472 /* 5236 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule238Enabled),
6473 /* 5239 */ // Combiner Rule #238: unmerge_dead_to_trunc; wip_match_opcode 'G_UNMERGE_VALUES'
6474 /* 5239 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner147),
6475 /* 5242 */ // Label 257: @5242
6476 /* 5242 */ GIM_Try, /*On fail goto*//*Label 258*/ GIMT_Encode4(5253), // Rule ID 403 //
6477 /* 5247 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule239Enabled),
6478 /* 5250 */ // Combiner Rule #239: unmerge_zext_to_zext; wip_match_opcode 'G_UNMERGE_VALUES'
6479 /* 5250 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner148),
6480 /* 5253 */ // Label 258: @5253
6481 /* 5253 */ GIM_Reject,
6482 /* 5254 */ // Label 13: @5254
6483 /* 5254 */ GIM_Try, /*On fail goto*//*Label 259*/ GIMT_Encode4(5268), // Rule ID 399 //
6484 /* 5259 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule235Enabled),
6485 /* 5262 */ GIM_CheckNumOperandsGE, /*MI*/0, /*Expected*/2,
6486 /* 5265 */ // MIs[0] dst
6487 /* 5265 */ // No operand predicates
6488 /* 5265 */ // MIs[0] merge_srcs
6489 /* 5265 */ // No operand predicates
6490 /* 5265 */ // Combiner Rule #235: merge_unmerge
6491 /* 5265 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner144),
6492 /* 5268 */ // Label 259: @5268
6493 /* 5268 */ GIM_Try, /*On fail goto*//*Label 260*/ GIMT_Encode4(5330),
6494 /* 5273 */ GIM_CheckNumOperands, /*MI*/0, /*Expected*/3,
6495 /* 5276 */ GIM_Try, /*On fail goto*//*Label 261*/ GIMT_Encode4(5297), // Rule ID 404 //
6496 /* 5281 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule240Enabled),
6497 /* 5284 */ // MIs[0] root
6498 /* 5284 */ // No operand predicates
6499 /* 5284 */ // MIs[0] x
6500 /* 5284 */ // No operand predicates
6501 /* 5284 */ // MIs[0] undef
6502 /* 5284 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
6503 /* 5288 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
6504 /* 5292 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6505 /* 5294 */ // Combiner Rule #240: merge_of_x_and_undef
6506 /* 5294 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner149),
6507 /* 5297 */ // Label 261: @5297
6508 /* 5297 */ GIM_Try, /*On fail goto*//*Label 262*/ GIMT_Encode4(5329), // Rule ID 405 //
6509 /* 5302 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule241Enabled),
6510 /* 5305 */ // MIs[0] root
6511 /* 5305 */ // No operand predicates
6512 /* 5305 */ // MIs[0] x
6513 /* 5305 */ // No operand predicates
6514 /* 5305 */ // MIs[0] zero
6515 /* 5305 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
6516 /* 5309 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
6517 /* 5313 */ // MIs[1] Operand 1
6518 /* 5313 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0),
6519 /* 5324 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6520 /* 5326 */ // Combiner Rule #241: merge_of_x_and_zero
6521 /* 5326 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner150),
6522 /* 5329 */ // Label 262: @5329
6523 /* 5329 */ GIM_Reject,
6524 /* 5330 */ // Label 260: @5330
6525 /* 5330 */ GIM_Reject,
6526 /* 5331 */ // Label 14: @5331
6527 /* 5331 */ GIM_Try, /*On fail goto*//*Label 263*/ GIMT_Encode4(5342), // Rule ID 75 //
6528 /* 5336 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule73Enabled),
6529 /* 5339 */ // Combiner Rule #73: extract_all_elts_from_build_vector; wip_match_opcode 'G_BUILD_VECTOR'
6530 /* 5339 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner29),
6531 /* 5342 */ // Label 263: @5342
6532 /* 5342 */ GIM_Try, /*On fail goto*//*Label 264*/ GIMT_Encode4(5353), // Rule ID 104 //
6533 /* 5347 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule85Enabled),
6534 /* 5350 */ // Combiner Rule #85: propagate_undef_all_ops; wip_match_opcode 'G_BUILD_VECTOR'
6535 /* 5350 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner40),
6536 /* 5353 */ // Label 264: @5353
6537 /* 5353 */ GIM_Try, /*On fail goto*//*Label 265*/ GIMT_Encode4(5364), // Rule ID 142 //
6538 /* 5358 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule102Enabled),
6539 /* 5361 */ // Combiner Rule #102: buildvector_identity_fold; wip_match_opcode 'G_BUILD_VECTOR'
6540 /* 5361 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner48),
6541 /* 5364 */ // Label 265: @5364
6542 /* 5364 */ GIM_Try, /*On fail goto*//*Label 266*/ GIMT_Encode4(5395),
6543 /* 5369 */ GIM_CheckNumOperandsGE, /*MI*/0, /*Expected*/2,
6544 /* 5372 */ GIM_Try, /*On fail goto*//*Label 267*/ GIMT_Encode4(5383), // Rule ID 396 //
6545 /* 5377 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule232Enabled),
6546 /* 5380 */ // MIs[0] dst
6547 /* 5380 */ // No operand predicates
6548 /* 5380 */ // MIs[0] unused
6549 /* 5380 */ // No operand predicates
6550 /* 5380 */ // Combiner Rule #232: combine_use_vector_truncate
6551 /* 5380 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner141),
6552 /* 5383 */ // Label 267: @5383
6553 /* 5383 */ GIM_Try, /*On fail goto*//*Label 268*/ GIMT_Encode4(5394), // Rule ID 406 //
6554 /* 5388 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule242Enabled),
6555 /* 5391 */ // MIs[0] dst
6556 /* 5391 */ // No operand predicates
6557 /* 5391 */ // MIs[0] unused
6558 /* 5391 */ // No operand predicates
6559 /* 5391 */ // Combiner Rule #242: combine_build_unmerge
6560 /* 5391 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner151),
6561 /* 5394 */ // Label 268: @5394
6562 /* 5394 */ GIM_Reject,
6563 /* 5395 */ // Label 266: @5395
6564 /* 5395 */ GIM_Reject,
6565 /* 5396 */ // Label 15: @5396
6566 /* 5396 */ GIM_Try, /*On fail goto*//*Label 269*/ GIMT_Encode4(5407), // Rule ID 141 //
6567 /* 5401 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule102Enabled),
6568 /* 5404 */ // Combiner Rule #102: buildvector_identity_fold; wip_match_opcode 'G_BUILD_VECTOR_TRUNC'
6569 /* 5404 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner48),
6570 /* 5407 */ // Label 269: @5407
6571 /* 5407 */ GIM_Reject,
6572 /* 5408 */ // Label 16: @5408
6573 /* 5408 */ GIM_Try, /*On fail goto*//*Label 270*/ GIMT_Encode4(5419), // Rule ID 389 //
6574 /* 5413 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule225Enabled),
6575 /* 5416 */ // Combiner Rule #225: combine_concat_vector; wip_match_opcode 'G_CONCAT_VECTORS'
6576 /* 5416 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner134),
6577 /* 5419 */ // Label 270: @5419
6578 /* 5419 */ GIM_Reject,
6579 /* 5420 */ // Label 17: @5420
6580 /* 5420 */ GIM_Try, /*On fail goto*//*Label 271*/ GIMT_Encode4(5441), // Rule ID 134 //
6581 /* 5425 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule96Enabled),
6582 /* 5428 */ // MIs[0] dst
6583 /* 5428 */ // No operand predicates
6584 /* 5428 */ // MIs[0] t
6585 /* 5428 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6586 /* 5432 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_INTTOPTR),
6587 /* 5436 */ // MIs[1] ptr
6588 /* 5436 */ // No operand predicates
6589 /* 5436 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6590 /* 5438 */ // Combiner Rule #96: i2p_to_p2i
6591 /* 5438 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner46),
6592 /* 5441 */ // Label 271: @5441
6593 /* 5441 */ GIM_Try, /*On fail goto*//*Label 272*/ GIMT_Encode4(5462), // Rule ID 96 //
6594 /* 5446 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule83Enabled),
6595 /* 5449 */ // MIs[0] dst
6596 /* 5449 */ // No operand predicates
6597 /* 5449 */ // MIs[0] __unary_undef_to_undef_match_0.x
6598 /* 5449 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6599 /* 5453 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
6600 /* 5457 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6601 /* 5459 */ // Combiner Rule #83: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[3]]
6602 /* 5459 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner38),
6603 /* 5462 */ // Label 272: @5462
6604 /* 5462 */ GIM_Reject,
6605 /* 5463 */ // Label 18: @5463
6606 /* 5463 */ GIM_Try, /*On fail goto*//*Label 273*/ GIMT_Encode4(5474), // Rule ID 133 //
6607 /* 5468 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule95Enabled),
6608 /* 5471 */ // Combiner Rule #95: p2i_to_i2p; wip_match_opcode 'G_INTTOPTR'
6609 /* 5471 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner45),
6610 /* 5474 */ // Label 273: @5474
6611 /* 5474 */ GIM_Try, /*On fail goto*//*Label 274*/ GIMT_Encode4(5495), // Rule ID 97 //
6612 /* 5479 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule83Enabled),
6613 /* 5482 */ // MIs[0] dst
6614 /* 5482 */ // No operand predicates
6615 /* 5482 */ // MIs[0] __unary_undef_to_undef_match_0.x
6616 /* 5482 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6617 /* 5486 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
6618 /* 5490 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6619 /* 5492 */ // Combiner Rule #83: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[4]]
6620 /* 5492 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner38),
6621 /* 5495 */ // Label 274: @5495
6622 /* 5495 */ GIM_Reject,
6623 /* 5496 */ // Label 19: @5496
6624 /* 5496 */ GIM_Try, /*On fail goto*//*Label 275*/ GIMT_Encode4(5528), // Rule ID 146 //
6625 /* 5501 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule106Enabled),
6626 /* 5504 */ // MIs[0] dst
6627 /* 5504 */ // No operand predicates
6628 /* 5504 */ // MIs[0] src1
6629 /* 5504 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6630 /* 5508 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BITCAST),
6631 /* 5512 */ // MIs[1] src0
6632 /* 5512 */ // No operand predicates
6633 /* 5512 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner5),
6634 /* 5516 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6635 /* 5518 */ // Combiner Rule #106: bitcast_bitcast_to_bitcast
6636 /* 5518 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_BITCAST),
6637 /* 5521 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
6638 /* 5523 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // src0
6639 /* 5527 */ GIR_EraseRootFromParent_Done,
6640 /* 5528 */ // Label 275: @5528
6641 /* 5528 */ GIM_Try, /*On fail goto*//*Label 276*/ GIMT_Encode4(5549), // Rule ID 145 //
6642 /* 5533 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule105Enabled),
6643 /* 5536 */ // MIs[0] dst
6644 /* 5536 */ // No operand predicates
6645 /* 5536 */ // MIs[0] src1
6646 /* 5536 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6647 /* 5540 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BITCAST),
6648 /* 5544 */ // MIs[1] src0
6649 /* 5544 */ // No operand predicates
6650 /* 5544 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6651 /* 5546 */ // Combiner Rule #105: bitcast_bitcast_fold
6652 /* 5546 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner51),
6653 /* 5549 */ // Label 276: @5549
6654 /* 5549 */ GIM_Try, /*On fail goto*//*Label 277*/ GIMT_Encode4(5570), // Rule ID 94 //
6655 /* 5554 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule83Enabled),
6656 /* 5557 */ // MIs[0] dst
6657 /* 5557 */ // No operand predicates
6658 /* 5557 */ // MIs[0] __unary_undef_to_undef_match_0.x
6659 /* 5557 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6660 /* 5561 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
6661 /* 5565 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6662 /* 5567 */ // Combiner Rule #83: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[1]]
6663 /* 5567 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner38),
6664 /* 5570 */ // Label 277: @5570
6665 /* 5570 */ GIM_Reject,
6666 /* 5571 */ // Label 20: @5571
6667 /* 5571 */ GIM_Try, /*On fail goto*//*Label 278*/ GIMT_Encode4(5600), // Rule ID 24 //
6668 /* 5576 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule24Enabled),
6669 /* 5579 */ // MIs[0] dst
6670 /* 5579 */ // No operand predicates
6671 /* 5579 */ // MIs[0] src
6672 /* 5579 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6673 /* 5583 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FREEZE),
6674 /* 5587 */ // MIs[1] __idempotent_prop_match_0.x
6675 /* 5587 */ // No operand predicates
6676 /* 5587 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6677 /* 5592 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6678 /* 5594 */ // Combiner Rule #24: idempotent_prop @ [__idempotent_prop_match_0[0]]
6679 /* 5594 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6680 /* 5599 */ GIR_EraseRootFromParent_Done,
6681 /* 5600 */ // Label 278: @5600
6682 /* 5600 */ GIM_Try, /*On fail goto*//*Label 279*/ GIMT_Encode4(5623), // Rule ID 49 //
6683 /* 5605 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule47Enabled),
6684 /* 5608 */ // MIs[0] root
6685 /* 5608 */ // No operand predicates
6686 /* 5608 */ // MIs[0] src
6687 /* 5608 */ // No operand predicates
6688 /* 5608 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner3),
6689 /* 5612 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6690 /* 5617 */ // Combiner Rule #47: freeze_of_non_undef_non_poison
6691 /* 5617 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6692 /* 5622 */ GIR_EraseRootFromParent_Done,
6693 /* 5623 */ // Label 279: @5623
6694 /* 5623 */ GIM_Try, /*On fail goto*//*Label 280*/ GIMT_Encode4(5634), // Rule ID 50 //
6695 /* 5628 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule48Enabled),
6696 /* 5631 */ // MIs[0] dst
6697 /* 5631 */ // No operand predicates
6698 /* 5631 */ // MIs[0] src
6699 /* 5631 */ // No operand predicates
6700 /* 5631 */ // Combiner Rule #48: push_freeze_to_prevent_poison_from_propagating
6701 /* 5631 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner19),
6702 /* 5634 */ // Label 280: @5634
6703 /* 5634 */ GIM_Reject,
6704 /* 5635 */ // Label 21: @5635
6705 /* 5635 */ GIM_Try, /*On fail goto*//*Label 281*/ GIMT_Encode4(5656), // Rule ID 197 //
6706 /* 5640 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule153Enabled),
6707 /* 5643 */ // MIs[0] dst
6708 /* 5643 */ // No operand predicates
6709 /* 5643 */ // MIs[0] src0
6710 /* 5643 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6711 /* 5647 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT),
6712 /* 5651 */ // MIs[1] cst
6713 /* 5651 */ // No operand predicates
6714 /* 5651 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6715 /* 5653 */ // Combiner Rule #153: constant_fold_intrinsic_trunc
6716 /* 5653 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
6717 /* 5656 */ // Label 281: @5656
6718 /* 5656 */ GIM_Reject,
6719 /* 5657 */ // Label 22: @5657
6720 /* 5657 */ GIM_Try, /*On fail goto*//*Label 282*/ GIMT_Encode4(5678), // Rule ID 198 //
6721 /* 5662 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule154Enabled),
6722 /* 5665 */ // MIs[0] dst
6723 /* 5665 */ // No operand predicates
6724 /* 5665 */ // MIs[0] src0
6725 /* 5665 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6726 /* 5669 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT),
6727 /* 5673 */ // MIs[1] cst
6728 /* 5673 */ // No operand predicates
6729 /* 5673 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6730 /* 5675 */ // Combiner Rule #154: constant_fold_intrinsic_round
6731 /* 5675 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
6732 /* 5678 */ // Label 282: @5678
6733 /* 5678 */ GIM_Reject,
6734 /* 5679 */ // Label 23: @5679
6735 /* 5679 */ GIM_Try, /*On fail goto*//*Label 283*/ GIMT_Encode4(5700), // Rule ID 199 //
6736 /* 5684 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule155Enabled),
6737 /* 5687 */ // MIs[0] dst
6738 /* 5687 */ // No operand predicates
6739 /* 5687 */ // MIs[0] src0
6740 /* 5687 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6741 /* 5691 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT),
6742 /* 5695 */ // MIs[1] cst
6743 /* 5695 */ // No operand predicates
6744 /* 5695 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6745 /* 5697 */ // Combiner Rule #155: constant_fold_intrinsic_roundeven
6746 /* 5697 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
6747 /* 5700 */ // Label 283: @5700
6748 /* 5700 */ GIM_Reject,
6749 /* 5701 */ // Label 24: @5701
6750 /* 5701 */ GIM_Try, /*On fail goto*//*Label 284*/ GIMT_Encode4(5712), // Rule ID 76 //
6751 /* 5706 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule74Enabled),
6752 /* 5709 */ // Combiner Rule #74: extending_loads; wip_match_opcode 'G_LOAD'
6753 /* 5709 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner30),
6754 /* 5712 */ // Label 284: @5712
6755 /* 5712 */ GIM_Reject,
6756 /* 5713 */ // Label 25: @5713
6757 /* 5713 */ GIM_Try, /*On fail goto*//*Label 285*/ GIMT_Encode4(5724), // Rule ID 77 //
6758 /* 5718 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule74Enabled),
6759 /* 5721 */ // Combiner Rule #74: extending_loads; wip_match_opcode 'G_SEXTLOAD'
6760 /* 5721 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner30),
6761 /* 5724 */ // Label 285: @5724
6762 /* 5724 */ GIM_Reject,
6763 /* 5725 */ // Label 26: @5725
6764 /* 5725 */ GIM_Try, /*On fail goto*//*Label 286*/ GIMT_Encode4(5736), // Rule ID 78 //
6765 /* 5730 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule74Enabled),
6766 /* 5733 */ // Combiner Rule #74: extending_loads; wip_match_opcode 'G_ZEXTLOAD'
6767 /* 5733 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner30),
6768 /* 5736 */ // Label 286: @5736
6769 /* 5736 */ GIM_Reject,
6770 /* 5737 */ // Label 27: @5737
6771 /* 5737 */ GIM_Try, /*On fail goto*//*Label 287*/ GIMT_Encode4(5748), // Rule ID 106 //
6772 /* 5742 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule87Enabled),
6773 /* 5745 */ // Combiner Rule #87: erase_undef_store; wip_match_opcode 'G_STORE'
6774 /* 5745 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner42),
6775 /* 5748 */ // Label 287: @5748
6776 /* 5748 */ GIM_Reject,
6777 /* 5749 */ // Label 28: @5749
6778 /* 5749 */ GIM_Try, /*On fail goto*//*Label 288*/ GIMT_Encode4(5760), // Rule ID 135 //
6779 /* 5754 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule97Enabled),
6780 /* 5757 */ // Combiner Rule #97: anyext_trunc_fold; wip_match_opcode 'G_ANYEXT'
6781 /* 5757 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner47),
6782 /* 5760 */ // Label 288: @5760
6783 /* 5760 */ GIM_Try, /*On fail goto*//*Label 289*/ GIMT_Encode4(5771), // Rule ID 290 //
6784 /* 5765 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule190Enabled),
6785 /* 5768 */ // Combiner Rule #190: constant_fold_cast_op; wip_match_opcode 'G_ANYEXT'
6786 /* 5768 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner106),
6787 /* 5771 */ // Label 289: @5771
6788 /* 5771 */ GIM_Try, /*On fail goto*//*Label 290*/ GIMT_Encode4(5792), // Rule ID 63 //
6789 /* 5776 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule61Enabled),
6790 /* 5779 */ // MIs[0] root
6791 /* 5779 */ // No operand predicates
6792 /* 5779 */ // MIs[0] select
6793 /* 5779 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6794 /* 5783 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SELECT),
6795 /* 5787 */ // MIs[1] cond
6796 /* 5787 */ // No operand predicates
6797 /* 5787 */ // MIs[1] true
6798 /* 5787 */ // No operand predicates
6799 /* 5787 */ // MIs[1] false
6800 /* 5787 */ // No operand predicates
6801 /* 5787 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6802 /* 5789 */ // Combiner Rule #61: select_of_anyext
6803 /* 5789 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner23),
6804 /* 5792 */ // Label 290: @5792
6805 /* 5792 */ GIM_Try, /*On fail goto*//*Label 291*/ GIMT_Encode4(5813), // Rule ID 58 //
6806 /* 5797 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule56Enabled),
6807 /* 5800 */ // MIs[0] root
6808 /* 5800 */ // No operand predicates
6809 /* 5800 */ // MIs[0] second
6810 /* 5800 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6811 /* 5804 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ANYEXT),
6812 /* 5808 */ // MIs[1] src
6813 /* 5808 */ // No operand predicates
6814 /* 5808 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6815 /* 5810 */ // Combiner Rule #56: anyext_of_anyext
6816 /* 5810 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner21),
6817 /* 5813 */ // Label 291: @5813
6818 /* 5813 */ GIM_Try, /*On fail goto*//*Label 292*/ GIMT_Encode4(5834), // Rule ID 60 //
6819 /* 5818 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule58Enabled),
6820 /* 5821 */ // MIs[0] root
6821 /* 5821 */ // No operand predicates
6822 /* 5821 */ // MIs[0] second
6823 /* 5821 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6824 /* 5825 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SEXT),
6825 /* 5829 */ // MIs[1] src
6826 /* 5829 */ // No operand predicates
6827 /* 5829 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6828 /* 5831 */ // Combiner Rule #58: anyext_of_sext
6829 /* 5831 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner21),
6830 /* 5834 */ // Label 292: @5834
6831 /* 5834 */ GIM_Try, /*On fail goto*//*Label 293*/ GIMT_Encode4(5855), // Rule ID 59 //
6832 /* 5839 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule57Enabled),
6833 /* 5842 */ // MIs[0] root
6834 /* 5842 */ // No operand predicates
6835 /* 5842 */ // MIs[0] second
6836 /* 5842 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6837 /* 5846 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ZEXT),
6838 /* 5850 */ // MIs[1] src
6839 /* 5850 */ // No operand predicates
6840 /* 5850 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6841 /* 5852 */ // Combiner Rule #57: anyext_of_zext
6842 /* 5852 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner21),
6843 /* 5855 */ // Label 293: @5855
6844 /* 5855 */ GIM_Try, /*On fail goto*//*Label 294*/ GIMT_Encode4(5876), // Rule ID 95 //
6845 /* 5860 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule83Enabled),
6846 /* 5863 */ // MIs[0] dst
6847 /* 5863 */ // No operand predicates
6848 /* 5863 */ // MIs[0] __unary_undef_to_undef_match_0.x
6849 /* 5863 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6850 /* 5867 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
6851 /* 5871 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6852 /* 5873 */ // Combiner Rule #83: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[2]]
6853 /* 5873 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner38),
6854 /* 5876 */ // Label 294: @5876
6855 /* 5876 */ GIM_Reject,
6856 /* 5877 */ // Label 29: @5877
6857 /* 5877 */ GIM_Try, /*On fail goto*//*Label 295*/ GIMT_Encode4(5888), // Rule ID 143 //
6858 /* 5882 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule103Enabled),
6859 /* 5885 */ // Combiner Rule #103: trunc_buildvector_fold; wip_match_opcode 'G_TRUNC'
6860 /* 5885 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner49),
6861 /* 5888 */ // Label 295: @5888
6862 /* 5888 */ GIM_Try, /*On fail goto*//*Label 296*/ GIMT_Encode4(5899), // Rule ID 144 //
6863 /* 5893 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule104Enabled),
6864 /* 5896 */ // Combiner Rule #104: trunc_lshr_buildvector_fold; wip_match_opcode 'G_TRUNC'
6865 /* 5896 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner50),
6866 /* 5899 */ // Label 296: @5899
6867 /* 5899 */ GIM_Try, /*On fail goto*//*Label 297*/ GIMT_Encode4(5910), // Rule ID 186 //
6868 /* 5904 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule142Enabled),
6869 /* 5907 */ // Combiner Rule #142: trunc_shift; wip_match_opcode 'G_TRUNC'
6870 /* 5907 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner77),
6871 /* 5910 */ // Label 297: @5910
6872 /* 5910 */ GIM_Try, /*On fail goto*//*Label 298*/ GIMT_Encode4(5921), // Rule ID 437 //
6873 /* 5915 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule265Enabled),
6874 /* 5918 */ // Combiner Rule #265: clamp_i64_to_i16; wip_match_opcode 'G_TRUNC'
6875 /* 5918 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner160),
6876 /* 5921 */ // Label 298: @5921
6877 /* 5921 */ GIM_Try, /*On fail goto*//*Label 299*/ GIMT_Encode4(5942), // Rule ID 64 //
6878 /* 5926 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule62Enabled),
6879 /* 5929 */ // MIs[0] root
6880 /* 5929 */ // No operand predicates
6881 /* 5929 */ // MIs[0] select
6882 /* 5929 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6883 /* 5933 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SELECT),
6884 /* 5937 */ // MIs[1] cond
6885 /* 5937 */ // No operand predicates
6886 /* 5937 */ // MIs[1] true
6887 /* 5937 */ // No operand predicates
6888 /* 5937 */ // MIs[1] false
6889 /* 5937 */ // No operand predicates
6890 /* 5937 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6891 /* 5939 */ // Combiner Rule #62: select_of_truncate
6892 /* 5939 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner23),
6893 /* 5942 */ // Label 299: @5942
6894 /* 5942 */ GIM_Try, /*On fail goto*//*Label 300*/ GIMT_Encode4(5971), // Rule ID 66 //
6895 /* 5947 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule64Enabled),
6896 /* 5950 */ // MIs[0] root
6897 /* 5950 */ // No operand predicates
6898 /* 5950 */ // MIs[0] binop
6899 /* 5950 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6900 /* 5954 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
6901 /* 5958 */ // MIs[1] x
6902 /* 5958 */ // No operand predicates
6903 /* 5958 */ // MIs[1] const
6904 /* 5958 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
6905 /* 5962 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
6906 /* 5966 */ // MIs[2] imm
6907 /* 5966 */ // No operand predicates
6908 /* 5966 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
6909 /* 5968 */ // Combiner Rule #64: narrow_binop_add
6910 /* 5968 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner25),
6911 /* 5971 */ // Label 300: @5971
6912 /* 5971 */ GIM_Try, /*On fail goto*//*Label 301*/ GIMT_Encode4(6000), // Rule ID 69 //
6913 /* 5976 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule67Enabled),
6914 /* 5979 */ // MIs[0] root
6915 /* 5979 */ // No operand predicates
6916 /* 5979 */ // MIs[0] binop
6917 /* 5979 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6918 /* 5983 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_AND),
6919 /* 5987 */ // MIs[1] x
6920 /* 5987 */ // No operand predicates
6921 /* 5987 */ // MIs[1] const
6922 /* 5987 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
6923 /* 5991 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
6924 /* 5995 */ // MIs[2] imm
6925 /* 5995 */ // No operand predicates
6926 /* 5995 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
6927 /* 5997 */ // Combiner Rule #67: narrow_binop_and
6928 /* 5997 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner25),
6929 /* 6000 */ // Label 301: @6000
6930 /* 6000 */ GIM_Try, /*On fail goto*//*Label 302*/ GIMT_Encode4(6029), // Rule ID 68 //
6931 /* 6005 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule66Enabled),
6932 /* 6008 */ // MIs[0] root
6933 /* 6008 */ // No operand predicates
6934 /* 6008 */ // MIs[0] binop
6935 /* 6008 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6936 /* 6012 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_MUL),
6937 /* 6016 */ // MIs[1] x
6938 /* 6016 */ // No operand predicates
6939 /* 6016 */ // MIs[1] const
6940 /* 6016 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
6941 /* 6020 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
6942 /* 6024 */ // MIs[2] imm
6943 /* 6024 */ // No operand predicates
6944 /* 6024 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
6945 /* 6026 */ // Combiner Rule #66: narrow_binop_mul
6946 /* 6026 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner25),
6947 /* 6029 */ // Label 302: @6029
6948 /* 6029 */ GIM_Try, /*On fail goto*//*Label 303*/ GIMT_Encode4(6058), // Rule ID 70 //
6949 /* 6034 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule68Enabled),
6950 /* 6037 */ // MIs[0] root
6951 /* 6037 */ // No operand predicates
6952 /* 6037 */ // MIs[0] binop
6953 /* 6037 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6954 /* 6041 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_OR),
6955 /* 6045 */ // MIs[1] x
6956 /* 6045 */ // No operand predicates
6957 /* 6045 */ // MIs[1] const
6958 /* 6045 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
6959 /* 6049 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
6960 /* 6053 */ // MIs[2] imm
6961 /* 6053 */ // No operand predicates
6962 /* 6053 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
6963 /* 6055 */ // Combiner Rule #68: narrow_binop_or
6964 /* 6055 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner25),
6965 /* 6058 */ // Label 303: @6058
6966 /* 6058 */ GIM_Try, /*On fail goto*//*Label 304*/ GIMT_Encode4(6087), // Rule ID 67 //
6967 /* 6063 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule65Enabled),
6968 /* 6066 */ // MIs[0] root
6969 /* 6066 */ // No operand predicates
6970 /* 6066 */ // MIs[0] binop
6971 /* 6066 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6972 /* 6070 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
6973 /* 6074 */ // MIs[1] x
6974 /* 6074 */ // No operand predicates
6975 /* 6074 */ // MIs[1] const
6976 /* 6074 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
6977 /* 6078 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
6978 /* 6082 */ // MIs[2] imm
6979 /* 6082 */ // No operand predicates
6980 /* 6082 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
6981 /* 6084 */ // Combiner Rule #65: narrow_binop_sub
6982 /* 6084 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner25),
6983 /* 6087 */ // Label 304: @6087
6984 /* 6087 */ GIM_Try, /*On fail goto*//*Label 305*/ GIMT_Encode4(6119), // Rule ID 413 //
6985 /* 6092 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule247Enabled),
6986 /* 6095 */ // MIs[0] dst
6987 /* 6095 */ // No operand predicates
6988 /* 6095 */ // MIs[0] min
6989 /* 6095 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6990 /* 6099 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_UMIN),
6991 /* 6103 */ // MIs[1] x
6992 /* 6103 */ // No operand predicates
6993 /* 6103 */ // MIs[1] y
6994 /* 6103 */ // No operand predicates
6995 /* 6103 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner15),
6996 /* 6107 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6997 /* 6109 */ // Combiner Rule #247: trunc_usatu
6998 /* 6109 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_TRUNC_USAT_U),
6999 /* 6112 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
7000 /* 6114 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
7001 /* 6118 */ GIR_EraseRootFromParent_Done,
7002 /* 6119 */ // Label 305: @6119
7003 /* 6119 */ GIM_Try, /*On fail goto*//*Label 306*/ GIMT_Encode4(6148), // Rule ID 71 //
7004 /* 6124 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule69Enabled),
7005 /* 6127 */ // MIs[0] root
7006 /* 6127 */ // No operand predicates
7007 /* 6127 */ // MIs[0] binop
7008 /* 6127 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7009 /* 6131 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_XOR),
7010 /* 6135 */ // MIs[1] x
7011 /* 6135 */ // No operand predicates
7012 /* 6135 */ // MIs[1] const
7013 /* 6135 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
7014 /* 6139 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
7015 /* 6143 */ // MIs[2] imm
7016 /* 6143 */ // No operand predicates
7017 /* 6143 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
7018 /* 6145 */ // Combiner Rule #69: narrow_binop_xor
7019 /* 6145 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner25),
7020 /* 6148 */ // Label 306: @6148
7021 /* 6148 */ GIM_Try, /*On fail goto*//*Label 307*/ GIMT_Encode4(6169), // Rule ID 53 //
7022 /* 6153 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule51Enabled),
7023 /* 6156 */ // MIs[0] root
7024 /* 6156 */ // No operand predicates
7025 /* 6156 */ // MIs[0] ext
7026 /* 6156 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7027 /* 6160 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ANYEXT),
7028 /* 6164 */ // MIs[1] src
7029 /* 6164 */ // No operand predicates
7030 /* 6164 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7031 /* 6166 */ // Combiner Rule #51: truncate_of_anyext
7032 /* 6166 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner20),
7033 /* 6169 */ // Label 307: @6169
7034 /* 6169 */ GIM_Try, /*On fail goto*//*Label 308*/ GIMT_Encode4(6193), // Rule ID 65 //
7035 /* 6174 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule63Enabled),
7036 /* 6177 */ // MIs[0] root
7037 /* 6177 */ // No operand predicates
7038 /* 6177 */ // MIs[0] bv
7039 /* 6177 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7040 /* 6181 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR),
7041 /* 6185 */ GIM_CheckNumOperandsGE, /*MI*/1, /*Expected*/2,
7042 /* 6188 */ // MIs[1] unused
7043 /* 6188 */ // No operand predicates
7044 /* 6188 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7045 /* 6190 */ // Combiner Rule #63: buildvector_of_truncate
7046 /* 6190 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner24),
7047 /* 6193 */ // Label 308: @6193
7048 /* 6193 */ GIM_Try, /*On fail goto*//*Label 309*/ GIMT_Encode4(6214), // Rule ID 52 //
7049 /* 6198 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule50Enabled),
7050 /* 6201 */ // MIs[0] root
7051 /* 6201 */ // No operand predicates
7052 /* 6201 */ // MIs[0] ext
7053 /* 6201 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7054 /* 6205 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SEXT),
7055 /* 6209 */ // MIs[1] src
7056 /* 6209 */ // No operand predicates
7057 /* 6209 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7058 /* 6211 */ // Combiner Rule #50: truncate_of_sext
7059 /* 6211 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner20),
7060 /* 6214 */ // Label 309: @6214
7061 /* 6214 */ GIM_Try, /*On fail goto*//*Label 310*/ GIMT_Encode4(6235), // Rule ID 51 //
7062 /* 6219 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule49Enabled),
7063 /* 6222 */ // MIs[0] root
7064 /* 6222 */ // No operand predicates
7065 /* 6222 */ // MIs[0] ext
7066 /* 6222 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7067 /* 6226 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ZEXT),
7068 /* 6230 */ // MIs[1] src
7069 /* 6230 */ // No operand predicates
7070 /* 6230 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7071 /* 6232 */ // Combiner Rule #49: truncate_of_zext
7072 /* 6232 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner20),
7073 /* 6235 */ // Label 310: @6235
7074 /* 6235 */ GIM_Try, /*On fail goto*//*Label 311*/ GIMT_Encode4(6256), // Rule ID 93 //
7075 /* 6240 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule83Enabled),
7076 /* 6243 */ // MIs[0] dst
7077 /* 6243 */ // No operand predicates
7078 /* 6243 */ // MIs[0] __unary_undef_to_undef_match_0.x
7079 /* 6243 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7080 /* 6247 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
7081 /* 6251 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7082 /* 6253 */ // Combiner Rule #83: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[0]]
7083 /* 6253 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner38),
7084 /* 6256 */ // Label 311: @6256
7085 /* 6256 */ GIM_Try, /*On fail goto*//*Label 312*/ GIMT_Encode4(6277), // Rule ID 72 //
7086 /* 6261 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule70Enabled),
7087 /* 6264 */ // MIs[0] root
7088 /* 6264 */ // No operand predicates
7089 /* 6264 */ // MIs[0] int
7090 /* 6264 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7091 /* 6268 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
7092 /* 6272 */ // MIs[1] imm
7093 /* 6272 */ // No operand predicates
7094 /* 6272 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7095 /* 6274 */ // Combiner Rule #70: integer_of_truncate
7096 /* 6274 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner26),
7097 /* 6277 */ // Label 312: @6277
7098 /* 6277 */ GIM_Try, /*On fail goto*//*Label 313*/ GIMT_Encode4(6288), // Rule ID 411 //
7099 /* 6282 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule245Enabled),
7100 /* 6285 */ // MIs[0] dst
7101 /* 6285 */ // No operand predicates
7102 /* 6285 */ // MIs[0] src
7103 /* 6285 */ // No operand predicates
7104 /* 6285 */ // Combiner Rule #245: trunc_ssats
7105 /* 6285 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner154),
7106 /* 6288 */ // Label 313: @6288
7107 /* 6288 */ GIM_Try, /*On fail goto*//*Label 314*/ GIMT_Encode4(6299), // Rule ID 412 //
7108 /* 6293 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule246Enabled),
7109 /* 6296 */ // MIs[0] dst
7110 /* 6296 */ // No operand predicates
7111 /* 6296 */ // MIs[0] src
7112 /* 6296 */ // No operand predicates
7113 /* 6296 */ // Combiner Rule #246: trunc_ssatu
7114 /* 6296 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner155),
7115 /* 6299 */ // Label 314: @6299
7116 /* 6299 */ GIM_Reject,
7117 /* 6300 */ // Label 30: @6300
7118 /* 6300 */ GIM_Try, /*On fail goto*//*Label 315*/ GIMT_Encode4(6332), // Rule ID 414 //
7119 /* 6305 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule248Enabled),
7120 /* 6308 */ // MIs[0] dst
7121 /* 6308 */ // No operand predicates
7122 /* 6308 */ // MIs[0] src
7123 /* 6308 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7124 /* 6312 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FPTOUI),
7125 /* 6316 */ // MIs[1] x
7126 /* 6316 */ // No operand predicates
7127 /* 6316 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner16),
7128 /* 6320 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7129 /* 6322 */ // Combiner Rule #248: truncusatu_to_fptouisat
7130 /* 6322 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FPTOUI_SAT),
7131 /* 6325 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
7132 /* 6327 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
7133 /* 6331 */ GIR_EraseRootFromParent_Done,
7134 /* 6332 */ // Label 315: @6332
7135 /* 6332 */ GIM_Reject,
7136 /* 6333 */ // Label 31: @6333
7137 /* 6333 */ GIM_Try, /*On fail goto*//*Label 316*/ GIMT_Encode4(6344), // Rule ID 289 //
7138 /* 6338 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule190Enabled),
7139 /* 6341 */ // Combiner Rule #190: constant_fold_cast_op; wip_match_opcode 'G_SEXT'
7140 /* 6341 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner106),
7141 /* 6344 */ // Label 316: @6344
7142 /* 6344 */ GIM_Try, /*On fail goto*//*Label 317*/ GIMT_Encode4(6365), // Rule ID 57 //
7143 /* 6349 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule55Enabled),
7144 /* 6352 */ // MIs[0] root
7145 /* 6352 */ // No operand predicates
7146 /* 6352 */ // MIs[0] second
7147 /* 6352 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7148 /* 6356 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ANYEXT),
7149 /* 6360 */ // MIs[1] src
7150 /* 6360 */ // No operand predicates
7151 /* 6360 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7152 /* 6362 */ // Combiner Rule #55: sext_of_anyext
7153 /* 6362 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner21),
7154 /* 6365 */ // Label 317: @6365
7155 /* 6365 */ GIM_Try, /*On fail goto*//*Label 318*/ GIMT_Encode4(6386), // Rule ID 56 //
7156 /* 6370 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule54Enabled),
7157 /* 6373 */ // MIs[0] root
7158 /* 6373 */ // No operand predicates
7159 /* 6373 */ // MIs[0] second
7160 /* 6373 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7161 /* 6377 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SEXT),
7162 /* 6381 */ // MIs[1] src
7163 /* 6381 */ // No operand predicates
7164 /* 6381 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7165 /* 6383 */ // Combiner Rule #54: sext_of_sext
7166 /* 6383 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner21),
7167 /* 6386 */ // Label 318: @6386
7168 /* 6386 */ GIM_Try, /*On fail goto*//*Label 319*/ GIMT_Encode4(6407), // Rule ID 390 //
7169 /* 6391 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule226Enabled),
7170 /* 6394 */ // MIs[0] root
7171 /* 6394 */ // No operand predicates
7172 /* 6394 */ // MIs[0] src
7173 /* 6394 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7174 /* 6398 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_TRUNC),
7175 /* 6402 */ // MIs[1] x
7176 /* 6402 */ // No operand predicates
7177 /* 6402 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7178 /* 6404 */ // Combiner Rule #226: sext_trunc
7179 /* 6404 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner135),
7180 /* 6407 */ // Label 319: @6407
7181 /* 6407 */ GIM_Reject,
7182 /* 6408 */ // Label 32: @6408
7183 /* 6408 */ GIM_Try, /*On fail goto*//*Label 320*/ GIMT_Encode4(6419), // Rule ID 171 //
7184 /* 6413 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule127Enabled),
7185 /* 6416 */ // Combiner Rule #127: sext_inreg_of_load; wip_match_opcode 'G_SEXT_INREG'
7186 /* 6416 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner65),
7187 /* 6419 */ // Label 320: @6419
7188 /* 6419 */ GIM_Try, /*On fail goto*//*Label 321*/ GIMT_Encode4(6430), // Rule ID 181 //
7189 /* 6424 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule137Enabled),
7190 /* 6427 */ // Combiner Rule #137: redundant_sext_inreg; wip_match_opcode 'G_SEXT_INREG'
7191 /* 6427 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner72),
7192 /* 6430 */ // Label 321: @6430
7193 /* 6430 */ GIM_Try, /*On fail goto*//*Label 322*/ GIMT_Encode4(6441), // Rule ID 250 //
7194 /* 6435 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule183Enabled),
7195 /* 6438 */ // Combiner Rule #183: bitfield_extract_from_sext_inreg; wip_match_opcode 'G_SEXT_INREG'
7196 /* 6438 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner99),
7197 /* 6441 */ // Label 322: @6441
7198 /* 6441 */ GIM_Try, /*On fail goto*//*Label 323*/ GIMT_Encode4(6462), // Rule ID 61 //
7199 /* 6446 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule59Enabled),
7200 /* 6449 */ // MIs[0] dst
7201 /* 6449 */ // No operand predicates
7202 /* 6449 */ // MIs[0] x
7203 /* 6449 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7204 /* 6453 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SEXT_INREG),
7205 /* 6457 */ // MIs[1] src
7206 /* 6457 */ // No operand predicates
7207 /* 6457 */ // MIs[1] a
7208 /* 6457 */ // No operand predicates
7209 /* 6457 */ // MIs[0] b
7210 /* 6457 */ // No operand predicates
7211 /* 6457 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7212 /* 6459 */ // Combiner Rule #59: sext_inreg_of_sext_inreg
7213 /* 6459 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner22),
7214 /* 6462 */ // Label 323: @6462
7215 /* 6462 */ GIM_Try, /*On fail goto*//*Label 324*/ GIMT_Encode4(6473), // Rule ID 185 //
7216 /* 6467 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule141Enabled),
7217 /* 6470 */ // MIs[0] dst
7218 /* 6470 */ // No operand predicates
7219 /* 6470 */ // MIs[0] src
7220 /* 6470 */ // No operand predicates
7221 /* 6470 */ // MIs[0] imm
7222 /* 6470 */ // No operand predicates
7223 /* 6470 */ // Combiner Rule #141: sext_inreg_to_zext_inreg
7224 /* 6470 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner76),
7225 /* 6473 */ // Label 324: @6473
7226 /* 6473 */ GIM_Reject,
7227 /* 6474 */ // Label 33: @6474
7228 /* 6474 */ GIM_Try, /*On fail goto*//*Label 325*/ GIMT_Encode4(6485), // Rule ID 184 //
7229 /* 6479 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule140Enabled),
7230 /* 6482 */ // Combiner Rule #140: zext_trunc_fold; wip_match_opcode 'G_ZEXT'
7231 /* 6482 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner75),
7232 /* 6485 */ // Label 325: @6485
7233 /* 6485 */ GIM_Try, /*On fail goto*//*Label 326*/ GIMT_Encode4(6496), // Rule ID 288 //
7234 /* 6490 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule190Enabled),
7235 /* 6493 */ // Combiner Rule #190: constant_fold_cast_op; wip_match_opcode 'G_ZEXT'
7236 /* 6493 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner106),
7237 /* 6496 */ // Label 326: @6496
7238 /* 6496 */ GIM_Try, /*On fail goto*//*Label 327*/ GIMT_Encode4(6517), // Rule ID 62 //
7239 /* 6501 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule60Enabled),
7240 /* 6504 */ // MIs[0] root
7241 /* 6504 */ // No operand predicates
7242 /* 6504 */ // MIs[0] select
7243 /* 6504 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7244 /* 6508 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SELECT),
7245 /* 6512 */ // MIs[1] cond
7246 /* 6512 */ // No operand predicates
7247 /* 6512 */ // MIs[1] true
7248 /* 6512 */ // No operand predicates
7249 /* 6512 */ // MIs[1] false
7250 /* 6512 */ // No operand predicates
7251 /* 6512 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7252 /* 6514 */ // Combiner Rule #60: select_of_zext
7253 /* 6514 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner23),
7254 /* 6517 */ // Label 327: @6517
7255 /* 6517 */ GIM_Try, /*On fail goto*//*Label 328*/ GIMT_Encode4(6538), // Rule ID 55 //
7256 /* 6522 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule53Enabled),
7257 /* 6525 */ // MIs[0] root
7258 /* 6525 */ // No operand predicates
7259 /* 6525 */ // MIs[0] second
7260 /* 6525 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7261 /* 6529 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ANYEXT),
7262 /* 6533 */ // MIs[1] src
7263 /* 6533 */ // No operand predicates
7264 /* 6533 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7265 /* 6535 */ // Combiner Rule #53: zext_of_anyext
7266 /* 6535 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner21),
7267 /* 6538 */ // Label 328: @6538
7268 /* 6538 */ GIM_Try, /*On fail goto*//*Label 329*/ GIMT_Encode4(6565), // Rule ID 391 //
7269 /* 6543 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule227Enabled),
7270 /* 6546 */ // MIs[0] root
7271 /* 6546 */ // No operand predicates
7272 /* 6546 */ // MIs[0] src
7273 /* 6546 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7274 /* 6550 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_TRUNC),
7275 /* 6554 */ GIM_MIFlags, /*MI*/1, GIMT_Encode4(MachineInstr::NoUWrap),
7276 /* 6560 */ // MIs[1] x
7277 /* 6560 */ // No operand predicates
7278 /* 6560 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7279 /* 6562 */ // Combiner Rule #227: zext_trunc
7280 /* 6562 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner136),
7281 /* 6565 */ // Label 329: @6565
7282 /* 6565 */ GIM_Try, /*On fail goto*//*Label 330*/ GIMT_Encode4(6586), // Rule ID 54 //
7283 /* 6570 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule52Enabled),
7284 /* 6573 */ // MIs[0] root
7285 /* 6573 */ // No operand predicates
7286 /* 6573 */ // MIs[0] second
7287 /* 6573 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7288 /* 6577 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ZEXT),
7289 /* 6581 */ // MIs[1] src
7290 /* 6581 */ // No operand predicates
7291 /* 6581 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7292 /* 6583 */ // Combiner Rule #52: zext_of_zext
7293 /* 6583 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner21),
7294 /* 6586 */ // Label 330: @6586
7295 /* 6586 */ GIM_Try, /*On fail goto*//*Label 331*/ GIMT_Encode4(6603), // Rule ID 392 //
7296 /* 6591 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule228Enabled),
7297 /* 6594 */ GIM_MIFlags, /*MI*/0, GIMT_Encode4(MachineInstr::NonNeg),
7298 /* 6600 */ // MIs[0] root
7299 /* 6600 */ // No operand predicates
7300 /* 6600 */ // MIs[0] x
7301 /* 6600 */ // No operand predicates
7302 /* 6600 */ // Combiner Rule #228: nneg_zext
7303 /* 6600 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner137),
7304 /* 6603 */ // Label 331: @6603
7305 /* 6603 */ GIM_Reject,
7306 /* 6604 */ // Label 34: @6604
7307 /* 6604 */ GIM_Try, /*On fail goto*//*Label 332*/ GIMT_Encode4(6615), // Rule ID 86 //
7308 /* 6609 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule80Enabled),
7309 /* 6612 */ // Combiner Rule #80: binop_left_undef_to_zero; wip_match_opcode 'G_SHL'
7310 /* 6612 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner36),
7311 /* 6615 */ // Label 332: @6615
7312 /* 6615 */ GIM_Try, /*On fail goto*//*Label 333*/ GIMT_Encode4(6626), // Rule ID 89 //
7313 /* 6620 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule81Enabled),
7314 /* 6623 */ // Combiner Rule #81: binop_right_undef_to_undef; wip_match_opcode 'G_SHL'
7315 /* 6623 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner37),
7316 /* 6626 */ // Label 333: @6626
7317 /* 6626 */ GIM_Try, /*On fail goto*//*Label 334*/ GIMT_Encode4(6637), // Rule ID 221 //
7318 /* 6631 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule169Enabled),
7319 /* 6634 */ // Combiner Rule #169: shift_immed_chain; wip_match_opcode 'G_SHL'
7320 /* 6634 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner91),
7321 /* 6637 */ // Label 334: @6637
7322 /* 6637 */ GIM_Try, /*On fail goto*//*Label 335*/ GIMT_Encode4(6648), // Rule ID 226 //
7323 /* 6642 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule170Enabled),
7324 /* 6645 */ // Combiner Rule #170: shift_of_shifted_logic_chain; wip_match_opcode 'G_SHL'
7325 /* 6645 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner92),
7326 /* 6648 */ // Label 335: @6648
7327 /* 6648 */ GIM_Try, /*On fail goto*//*Label 336*/ GIMT_Encode4(6659), // Rule ID 249 //
7328 /* 6653 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule182Enabled),
7329 /* 6656 */ // Combiner Rule #182: commute_shift; wip_match_opcode 'G_SHL'
7330 /* 6656 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner98),
7331 /* 6659 */ // Label 336: @6659
7332 /* 6659 */ GIM_Try, /*On fail goto*//*Label 337*/ GIMT_Encode4(6670), // Rule ID 263 //
7333 /* 6664 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled),
7334 /* 6667 */ // Combiner Rule #187: constant_fold_binop; wip_match_opcode 'G_SHL'
7335 /* 6667 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103),
7336 /* 6670 */ // Label 337: @6670
7337 /* 6670 */ GIM_Try, /*On fail goto*//*Label 338*/ GIMT_Encode4(6681), // Rule ID 328 //
7338 /* 6675 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
7339 /* 6678 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_SHL'
7340 /* 6678 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
7341 /* 6681 */ // Label 338: @6681
7342 /* 6681 */ GIM_Try, /*On fail goto*//*Label 339*/ GIMT_Encode4(6716), // Rule ID 47 //
7343 /* 6686 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule45Enabled),
7344 /* 6689 */ GIM_MIFlags, /*MI*/0, GIMT_Encode4(MachineInstr::NoSWrap),
7345 /* 6695 */ // MIs[0] root
7346 /* 6695 */ // No operand predicates
7347 /* 6695 */ // MIs[0] left
7348 /* 6695 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7349 /* 6699 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_VSCALE),
7350 /* 6703 */ // MIs[1] imm
7351 /* 6703 */ // No operand predicates
7352 /* 6703 */ // MIs[0] x
7353 /* 6703 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
7354 /* 6707 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
7355 /* 6711 */ // MIs[2] imm1
7356 /* 6711 */ // No operand predicates
7357 /* 6711 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
7358 /* 6713 */ // Combiner Rule #45: shl_of_vscale
7359 /* 6713 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner17),
7360 /* 6716 */ // Label 339: @6716
7361 /* 6716 */ GIM_Try, /*On fail goto*//*Label 340*/ GIMT_Encode4(6756), // Rule ID 124 //
7362 /* 6721 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
7363 /* 6724 */ // MIs[0] dst
7364 /* 6724 */ // No operand predicates
7365 /* 6724 */ // MIs[0] zero
7366 /* 6724 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7367 /* 6728 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
7368 /* 6732 */ // MIs[1] Operand 1
7369 /* 6732 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0),
7370 /* 6743 */ // MIs[0] rhs
7371 /* 6743 */ // No operand predicates
7372 /* 6743 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7373 /* 6748 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7374 /* 6750 */ // Combiner Rule #93: binop_left_to_zero @ [__binop_left_to_zero_match_0[0]]
7375 /* 6750 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7376 /* 6755 */ GIR_EraseRootFromParent_Done,
7377 /* 6756 */ // Label 340: @6756
7378 /* 6756 */ GIM_Try, /*On fail goto*//*Label 341*/ GIMT_Encode4(6779), // Rule ID 114 //
7379 /* 6761 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled),
7380 /* 6764 */ // MIs[0] dst
7381 /* 6764 */ // No operand predicates
7382 /* 6764 */ // MIs[0] lhs
7383 /* 6764 */ // No operand predicates
7384 /* 6764 */ // MIs[0] Operand 2
7385 /* 6764 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
7386 /* 6768 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7387 /* 6773 */ // Combiner Rule #90: right_identity_zero @ [__right_identity_zero_match_0[4]]
7388 /* 6773 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7389 /* 6778 */ GIR_EraseRootFromParent_Done,
7390 /* 6779 */ // Label 341: @6779
7391 /* 6779 */ GIM_Try, /*On fail goto*//*Label 342*/ GIMT_Encode4(6790), // Rule ID 156 //
7392 /* 6784 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule114Enabled),
7393 /* 6787 */ // MIs[0] root
7394 /* 6787 */ // No operand predicates
7395 /* 6787 */ // MIs[0] mi.shifted
7396 /* 6787 */ // No operand predicates
7397 /* 6787 */ // MIs[0] mi.amt
7398 /* 6787 */ // No operand predicates
7399 /* 6787 */ // Combiner Rule #114: shifts_too_big @ [mi[0]]
7400 /* 6787 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner55),
7401 /* 6790 */ // Label 342: @6790
7402 /* 6790 */ GIM_Try, /*On fail goto*//*Label 343*/ GIMT_Encode4(6801), // Rule ID 172 //
7403 /* 6795 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule128Enabled),
7404 /* 6798 */ // MIs[0] dst
7405 /* 6798 */ // No operand predicates
7406 /* 6798 */ // MIs[0] src0
7407 /* 6798 */ // No operand predicates
7408 /* 6798 */ // MIs[0] src1
7409 /* 6798 */ // No operand predicates
7410 /* 6798 */ // Combiner Rule #128: reduce_shl_of_extend
7411 /* 6798 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner66),
7412 /* 6801 */ // Label 343: @6801
7413 /* 6801 */ GIM_Reject,
7414 /* 6802 */ // Label 35: @6802
7415 /* 6802 */ GIM_Try, /*On fail goto*//*Label 344*/ GIMT_Encode4(6813), // Rule ID 91 //
7416 /* 6807 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule81Enabled),
7417 /* 6810 */ // Combiner Rule #81: binop_right_undef_to_undef; wip_match_opcode 'G_LSHR'
7418 /* 6810 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner37),
7419 /* 6813 */ // Label 344: @6813
7420 /* 6813 */ GIM_Try, /*On fail goto*//*Label 345*/ GIMT_Encode4(6824), // Rule ID 223 //
7421 /* 6818 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule169Enabled),
7422 /* 6821 */ // Combiner Rule #169: shift_immed_chain; wip_match_opcode 'G_LSHR'
7423 /* 6821 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner91),
7424 /* 6824 */ // Label 345: @6824
7425 /* 6824 */ GIM_Try, /*On fail goto*//*Label 346*/ GIMT_Encode4(6835), // Rule ID 228 //
7426 /* 6829 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule170Enabled),
7427 /* 6832 */ // Combiner Rule #170: shift_of_shifted_logic_chain; wip_match_opcode 'G_LSHR'
7428 /* 6832 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner92),
7429 /* 6835 */ // Label 346: @6835
7430 /* 6835 */ GIM_Try, /*On fail goto*//*Label 347*/ GIMT_Encode4(6846), // Rule ID 253 //
7431 /* 6840 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule185Enabled),
7432 /* 6843 */ // Combiner Rule #185: bitfield_extract_from_shr; wip_match_opcode 'G_LSHR'
7433 /* 6843 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner101),
7434 /* 6846 */ // Label 347: @6846
7435 /* 6846 */ GIM_Try, /*On fail goto*//*Label 348*/ GIMT_Encode4(6857), // Rule ID 255 //
7436 /* 6851 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule186Enabled),
7437 /* 6854 */ // Combiner Rule #186: bitfield_extract_from_shr_and; wip_match_opcode 'G_LSHR'
7438 /* 6854 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner102),
7439 /* 6857 */ // Label 348: @6857
7440 /* 6857 */ GIM_Try, /*On fail goto*//*Label 349*/ GIMT_Encode4(6868), // Rule ID 260 //
7441 /* 6862 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled),
7442 /* 6865 */ // Combiner Rule #187: constant_fold_binop; wip_match_opcode 'G_LSHR'
7443 /* 6865 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103),
7444 /* 6868 */ // Label 349: @6868
7445 /* 6868 */ GIM_Try, /*On fail goto*//*Label 350*/ GIMT_Encode4(6879), // Rule ID 326 //
7446 /* 6873 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
7447 /* 6876 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_LSHR'
7448 /* 6876 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
7449 /* 6879 */ // Label 350: @6879
7450 /* 6879 */ GIM_Try, /*On fail goto*//*Label 351*/ GIMT_Encode4(6968), // Rule ID 430 //
7451 /* 6884 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule261Enabled),
7452 /* 6887 */ // MIs[0] dst
7453 /* 6887 */ // No operand predicates
7454 /* 6887 */ // MIs[0] sum
7455 /* 6887 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7456 /* 6891 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
7457 /* 6895 */ // MIs[1] inner
7458 /* 6895 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
7459 /* 6899 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ADD),
7460 /* 6903 */ // MIs[2] ext1
7461 /* 6903 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/2, /*OpIdx*/1, // MIs[3]
7462 /* 6907 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_ZEXT),
7463 /* 6911 */ // MIs[3] x
7464 /* 6911 */ GIM_RecordRegType, /*MI*/3, /*Op*/1, /*TempTypeIdx*/255,
7465 /* 6915 */ // MIs[2] ext2
7466 /* 6915 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/4, /*MI*/2, /*OpIdx*/2, // MIs[4]
7467 /* 6919 */ GIM_CheckOpcode, /*MI*/4, GIMT_Encode2(TargetOpcode::G_ZEXT),
7468 /* 6923 */ // MIs[4] y
7469 /* 6923 */ // No operand predicates
7470 /* 6923 */ // MIs[1] Operand 2
7471 /* 6923 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/2, 1,
7472 /* 6927 */ // MIs[0] Operand 2
7473 /* 6927 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 1,
7474 /* 6931 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner22),
7475 /* 6935 */ GIM_CheckIsSafeToFold, /*NumInsns*/4,
7476 /* 6937 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
7477 /* 6940 */ // Combiner Rule #261: avgceil_u_match
7478 /* 6940 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UAVGCEIL),
7479 /* 6943 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
7480 /* 6948 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/3, /*OpIdx*/1, // x
7481 /* 6952 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/4, /*OpIdx*/1, // y
7482 /* 6956 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ZEXT),
7483 /* 6960 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
7484 /* 6964 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
7485 /* 6967 */ GIR_EraseRootFromParent_Done,
7486 /* 6968 */ // Label 351: @6968
7487 /* 6968 */ GIM_Try, /*On fail goto*//*Label 352*/ GIMT_Encode4(7045), // Rule ID 428 //
7488 /* 6973 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule259Enabled),
7489 /* 6976 */ // MIs[0] dst
7490 /* 6976 */ // No operand predicates
7491 /* 6976 */ // MIs[0] sum
7492 /* 6976 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7493 /* 6980 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
7494 /* 6984 */ // MIs[1] ext1
7495 /* 6984 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
7496 /* 6988 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ZEXT),
7497 /* 6992 */ // MIs[2] x
7498 /* 6992 */ GIM_RecordRegType, /*MI*/2, /*Op*/1, /*TempTypeIdx*/255,
7499 /* 6996 */ // MIs[1] ext2
7500 /* 6996 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/1, /*OpIdx*/2, // MIs[3]
7501 /* 7000 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_ZEXT),
7502 /* 7004 */ // MIs[3] y
7503 /* 7004 */ // No operand predicates
7504 /* 7004 */ // MIs[0] Operand 2
7505 /* 7004 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 1,
7506 /* 7008 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner20),
7507 /* 7012 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
7508 /* 7014 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
7509 /* 7017 */ // Combiner Rule #259: avgfloor_u_match
7510 /* 7017 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UAVGFLOOR),
7511 /* 7020 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
7512 /* 7025 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // x
7513 /* 7029 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/3, /*OpIdx*/1, // y
7514 /* 7033 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ZEXT),
7515 /* 7037 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
7516 /* 7041 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
7517 /* 7044 */ GIR_EraseRootFromParent_Done,
7518 /* 7045 */ // Label 352: @7045
7519 /* 7045 */ GIM_Try, /*On fail goto*//*Label 353*/ GIMT_Encode4(7074), // Rule ID 415 //
7520 /* 7050 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule249Enabled),
7521 /* 7053 */ // MIs[0] dst
7522 /* 7053 */ // No operand predicates
7523 /* 7053 */ // MIs[0] d2
7524 /* 7053 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7525 /* 7057 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_TRUNC),
7526 /* 7061 */ // MIs[1] d1
7527 /* 7061 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
7528 /* 7065 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_LSHR),
7529 /* 7069 */ // MIs[2] x
7530 /* 7069 */ // No operand predicates
7531 /* 7069 */ // MIs[2] y
7532 /* 7069 */ // No operand predicates
7533 /* 7069 */ // MIs[0] z
7534 /* 7069 */ // No operand predicates
7535 /* 7069 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
7536 /* 7071 */ // Combiner Rule #249: lshr_of_trunc_of_lshr
7537 /* 7071 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner156),
7538 /* 7074 */ // Label 353: @7074
7539 /* 7074 */ GIM_Try, /*On fail goto*//*Label 354*/ GIMT_Encode4(7114), // Rule ID 125 //
7540 /* 7079 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
7541 /* 7082 */ // MIs[0] dst
7542 /* 7082 */ // No operand predicates
7543 /* 7082 */ // MIs[0] zero
7544 /* 7082 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7545 /* 7086 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
7546 /* 7090 */ // MIs[1] Operand 1
7547 /* 7090 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0),
7548 /* 7101 */ // MIs[0] rhs
7549 /* 7101 */ // No operand predicates
7550 /* 7101 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7551 /* 7106 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7552 /* 7108 */ // Combiner Rule #93: binop_left_to_zero @ [__binop_left_to_zero_match_0[1]]
7553 /* 7108 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7554 /* 7113 */ GIR_EraseRootFromParent_Done,
7555 /* 7114 */ // Label 354: @7114
7556 /* 7114 */ GIM_Try, /*On fail goto*//*Label 355*/ GIMT_Encode4(7137), // Rule ID 116 //
7557 /* 7119 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled),
7558 /* 7122 */ // MIs[0] dst
7559 /* 7122 */ // No operand predicates
7560 /* 7122 */ // MIs[0] lhs
7561 /* 7122 */ // No operand predicates
7562 /* 7122 */ // MIs[0] Operand 2
7563 /* 7122 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
7564 /* 7126 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7565 /* 7131 */ // Combiner Rule #90: right_identity_zero @ [__right_identity_zero_match_0[6]]
7566 /* 7131 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7567 /* 7136 */ GIR_EraseRootFromParent_Done,
7568 /* 7137 */ // Label 355: @7137
7569 /* 7137 */ GIM_Try, /*On fail goto*//*Label 356*/ GIMT_Encode4(7148), // Rule ID 158 //
7570 /* 7142 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule114Enabled),
7571 /* 7145 */ // MIs[0] root
7572 /* 7145 */ // No operand predicates
7573 /* 7145 */ // MIs[0] mi.shifted
7574 /* 7145 */ // No operand predicates
7575 /* 7145 */ // MIs[0] mi.amt
7576 /* 7145 */ // No operand predicates
7577 /* 7145 */ // Combiner Rule #114: shifts_too_big @ [mi[2]]
7578 /* 7145 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner55),
7579 /* 7148 */ // Label 356: @7148
7580 /* 7148 */ GIM_Reject,
7581 /* 7149 */ // Label 36: @7149
7582 /* 7149 */ GIM_Try, /*On fail goto*//*Label 357*/ GIMT_Encode4(7160), // Rule ID 90 //
7583 /* 7154 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule81Enabled),
7584 /* 7157 */ // Combiner Rule #81: binop_right_undef_to_undef; wip_match_opcode 'G_ASHR'
7585 /* 7157 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner37),
7586 /* 7160 */ // Label 357: @7160
7587 /* 7160 */ GIM_Try, /*On fail goto*//*Label 358*/ GIMT_Encode4(7171), // Rule ID 169 //
7588 /* 7165 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule125Enabled),
7589 /* 7168 */ // Combiner Rule #125: shl_ashr_to_sext_inreg; wip_match_opcode 'G_ASHR'
7590 /* 7168 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner64),
7591 /* 7171 */ // Label 358: @7171
7592 /* 7171 */ GIM_Try, /*On fail goto*//*Label 359*/ GIMT_Encode4(7182), // Rule ID 222 //
7593 /* 7176 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule169Enabled),
7594 /* 7179 */ // Combiner Rule #169: shift_immed_chain; wip_match_opcode 'G_ASHR'
7595 /* 7179 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner91),
7596 /* 7182 */ // Label 359: @7182
7597 /* 7182 */ GIM_Try, /*On fail goto*//*Label 360*/ GIMT_Encode4(7193), // Rule ID 227 //
7598 /* 7187 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule170Enabled),
7599 /* 7190 */ // Combiner Rule #170: shift_of_shifted_logic_chain; wip_match_opcode 'G_ASHR'
7600 /* 7190 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner92),
7601 /* 7193 */ // Label 360: @7193
7602 /* 7193 */ GIM_Try, /*On fail goto*//*Label 361*/ GIMT_Encode4(7204), // Rule ID 252 //
7603 /* 7198 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule185Enabled),
7604 /* 7201 */ // Combiner Rule #185: bitfield_extract_from_shr; wip_match_opcode 'G_ASHR'
7605 /* 7201 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner101),
7606 /* 7204 */ // Label 361: @7204
7607 /* 7204 */ GIM_Try, /*On fail goto*//*Label 362*/ GIMT_Encode4(7215), // Rule ID 254 //
7608 /* 7209 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule186Enabled),
7609 /* 7212 */ // Combiner Rule #186: bitfield_extract_from_shr_and; wip_match_opcode 'G_ASHR'
7610 /* 7212 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner102),
7611 /* 7215 */ // Label 362: @7215
7612 /* 7215 */ GIM_Try, /*On fail goto*//*Label 363*/ GIMT_Encode4(7226), // Rule ID 259 //
7613 /* 7220 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled),
7614 /* 7223 */ // Combiner Rule #187: constant_fold_binop; wip_match_opcode 'G_ASHR'
7615 /* 7223 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103),
7616 /* 7226 */ // Label 363: @7226
7617 /* 7226 */ GIM_Try, /*On fail goto*//*Label 364*/ GIMT_Encode4(7237), // Rule ID 327 //
7618 /* 7231 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
7619 /* 7234 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_ASHR'
7620 /* 7234 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
7621 /* 7237 */ // Label 364: @7237
7622 /* 7237 */ GIM_Try, /*On fail goto*//*Label 365*/ GIMT_Encode4(7326), // Rule ID 431 //
7623 /* 7242 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule262Enabled),
7624 /* 7245 */ // MIs[0] dst
7625 /* 7245 */ // No operand predicates
7626 /* 7245 */ // MIs[0] sum
7627 /* 7245 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7628 /* 7249 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
7629 /* 7253 */ // MIs[1] inner
7630 /* 7253 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
7631 /* 7257 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ADD),
7632 /* 7261 */ // MIs[2] ext1
7633 /* 7261 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/2, /*OpIdx*/1, // MIs[3]
7634 /* 7265 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_SEXT),
7635 /* 7269 */ // MIs[3] x
7636 /* 7269 */ GIM_RecordRegType, /*MI*/3, /*Op*/1, /*TempTypeIdx*/255,
7637 /* 7273 */ // MIs[2] ext2
7638 /* 7273 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/4, /*MI*/2, /*OpIdx*/2, // MIs[4]
7639 /* 7277 */ GIM_CheckOpcode, /*MI*/4, GIMT_Encode2(TargetOpcode::G_SEXT),
7640 /* 7281 */ // MIs[4] y
7641 /* 7281 */ // No operand predicates
7642 /* 7281 */ // MIs[1] Operand 2
7643 /* 7281 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/2, 1,
7644 /* 7285 */ // MIs[0] Operand 2
7645 /* 7285 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 1,
7646 /* 7289 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner23),
7647 /* 7293 */ GIM_CheckIsSafeToFold, /*NumInsns*/4,
7648 /* 7295 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
7649 /* 7298 */ // Combiner Rule #262: avgceil_s_match
7650 /* 7298 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SAVGCEIL),
7651 /* 7301 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
7652 /* 7306 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/3, /*OpIdx*/1, // x
7653 /* 7310 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/4, /*OpIdx*/1, // y
7654 /* 7314 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SEXT),
7655 /* 7318 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
7656 /* 7322 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
7657 /* 7325 */ GIR_EraseRootFromParent_Done,
7658 /* 7326 */ // Label 365: @7326
7659 /* 7326 */ GIM_Try, /*On fail goto*//*Label 366*/ GIMT_Encode4(7403), // Rule ID 429 //
7660 /* 7331 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule260Enabled),
7661 /* 7334 */ // MIs[0] dst
7662 /* 7334 */ // No operand predicates
7663 /* 7334 */ // MIs[0] sum
7664 /* 7334 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7665 /* 7338 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
7666 /* 7342 */ // MIs[1] ext1
7667 /* 7342 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
7668 /* 7346 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SEXT),
7669 /* 7350 */ // MIs[2] x
7670 /* 7350 */ GIM_RecordRegType, /*MI*/2, /*Op*/1, /*TempTypeIdx*/255,
7671 /* 7354 */ // MIs[1] ext2
7672 /* 7354 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/1, /*OpIdx*/2, // MIs[3]
7673 /* 7358 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_SEXT),
7674 /* 7362 */ // MIs[3] y
7675 /* 7362 */ // No operand predicates
7676 /* 7362 */ // MIs[0] Operand 2
7677 /* 7362 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 1,
7678 /* 7366 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner21),
7679 /* 7370 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
7680 /* 7372 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
7681 /* 7375 */ // Combiner Rule #260: avgfloor_s_match
7682 /* 7375 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SAVGFLOOR),
7683 /* 7378 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
7684 /* 7383 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // x
7685 /* 7387 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/3, /*OpIdx*/1, // y
7686 /* 7391 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SEXT),
7687 /* 7395 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
7688 /* 7399 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
7689 /* 7402 */ GIR_EraseRootFromParent_Done,
7690 /* 7403 */ // Label 366: @7403
7691 /* 7403 */ GIM_Try, /*On fail goto*//*Label 367*/ GIMT_Encode4(7443), // Rule ID 126 //
7692 /* 7408 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
7693 /* 7411 */ // MIs[0] dst
7694 /* 7411 */ // No operand predicates
7695 /* 7411 */ // MIs[0] zero
7696 /* 7411 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7697 /* 7415 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
7698 /* 7419 */ // MIs[1] Operand 1
7699 /* 7419 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0),
7700 /* 7430 */ // MIs[0] rhs
7701 /* 7430 */ // No operand predicates
7702 /* 7430 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7703 /* 7435 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7704 /* 7437 */ // Combiner Rule #93: binop_left_to_zero @ [__binop_left_to_zero_match_0[2]]
7705 /* 7437 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7706 /* 7442 */ GIR_EraseRootFromParent_Done,
7707 /* 7443 */ // Label 367: @7443
7708 /* 7443 */ GIM_Try, /*On fail goto*//*Label 368*/ GIMT_Encode4(7466), // Rule ID 115 //
7709 /* 7448 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled),
7710 /* 7451 */ // MIs[0] dst
7711 /* 7451 */ // No operand predicates
7712 /* 7451 */ // MIs[0] lhs
7713 /* 7451 */ // No operand predicates
7714 /* 7451 */ // MIs[0] Operand 2
7715 /* 7451 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
7716 /* 7455 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7717 /* 7460 */ // Combiner Rule #90: right_identity_zero @ [__right_identity_zero_match_0[5]]
7718 /* 7460 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7719 /* 7465 */ GIR_EraseRootFromParent_Done,
7720 /* 7466 */ // Label 368: @7466
7721 /* 7466 */ GIM_Try, /*On fail goto*//*Label 369*/ GIMT_Encode4(7477), // Rule ID 157 //
7722 /* 7471 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule114Enabled),
7723 /* 7474 */ // MIs[0] root
7724 /* 7474 */ // No operand predicates
7725 /* 7474 */ // MIs[0] mi.shifted
7726 /* 7474 */ // No operand predicates
7727 /* 7474 */ // MIs[0] mi.amt
7728 /* 7474 */ // No operand predicates
7729 /* 7474 */ // Combiner Rule #114: shifts_too_big @ [mi[1]]
7730 /* 7474 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner55),
7731 /* 7477 */ // Label 369: @7477
7732 /* 7477 */ GIM_Reject,
7733 /* 7478 */ // Label 37: @7478
7734 /* 7478 */ GIM_Try, /*On fail goto*//*Label 370*/ GIMT_Encode4(7489), // Rule ID 237 //
7735 /* 7483 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule174Enabled),
7736 /* 7486 */ // Combiner Rule #174: funnel_shift_to_rotate; wip_match_opcode 'G_FSHL'
7737 /* 7486 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner96),
7738 /* 7489 */ // Label 370: @7489
7739 /* 7489 */ GIM_Try, /*On fail goto*//*Label 371*/ GIMT_Encode4(7500), // Rule ID 241 //
7740 /* 7494 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule177Enabled),
7741 /* 7497 */ // Combiner Rule #177: funnel_shift_overshift; wip_match_opcode 'G_FSHL'
7742 /* 7497 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner97),
7743 /* 7500 */ // Label 371: @7500
7744 /* 7500 */ GIM_Try, /*On fail goto*//*Label 372*/ GIMT_Encode4(7520), // Rule ID 240 //
7745 /* 7505 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule176Enabled),
7746 /* 7508 */ // MIs[0] x
7747 /* 7508 */ // No operand predicates
7748 /* 7508 */ // MIs[0] y
7749 /* 7508 */ // No operand predicates
7750 /* 7508 */ // MIs[0] z
7751 /* 7508 */ // No operand predicates
7752 /* 7508 */ // MIs[0] Operand 3
7753 /* 7508 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/3, 0,
7754 /* 7512 */ // Combiner Rule #176: funnel_shift_left_zero
7755 /* 7512 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::COPY),
7756 /* 7515 */ GIR_RootToRootCopy, /*OpIdx*/0, // x
7757 /* 7517 */ GIR_RootToRootCopy, /*OpIdx*/1, // y
7758 /* 7519 */ GIR_EraseRootFromParent_Done,
7759 /* 7520 */ // Label 372: @7520
7760 /* 7520 */ GIM_Reject,
7761 /* 7521 */ // Label 38: @7521
7762 /* 7521 */ GIM_Try, /*On fail goto*//*Label 373*/ GIMT_Encode4(7532), // Rule ID 238 //
7763 /* 7526 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule174Enabled),
7764 /* 7529 */ // Combiner Rule #174: funnel_shift_to_rotate; wip_match_opcode 'G_FSHR'
7765 /* 7529 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner96),
7766 /* 7532 */ // Label 373: @7532
7767 /* 7532 */ GIM_Try, /*On fail goto*//*Label 374*/ GIMT_Encode4(7543), // Rule ID 242 //
7768 /* 7537 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule177Enabled),
7769 /* 7540 */ // Combiner Rule #177: funnel_shift_overshift; wip_match_opcode 'G_FSHR'
7770 /* 7540 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner97),
7771 /* 7543 */ // Label 374: @7543
7772 /* 7543 */ GIM_Try, /*On fail goto*//*Label 375*/ GIMT_Encode4(7563), // Rule ID 239 //
7773 /* 7548 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule175Enabled),
7774 /* 7551 */ // MIs[0] x
7775 /* 7551 */ // No operand predicates
7776 /* 7551 */ // MIs[0] y
7777 /* 7551 */ // No operand predicates
7778 /* 7551 */ // MIs[0] z
7779 /* 7551 */ // No operand predicates
7780 /* 7551 */ // MIs[0] Operand 3
7781 /* 7551 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/3, 0,
7782 /* 7555 */ // Combiner Rule #175: funnel_shift_right_zero
7783 /* 7555 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::COPY),
7784 /* 7558 */ GIR_RootToRootCopy, /*OpIdx*/0, // x
7785 /* 7560 */ GIR_RootToRootCopy, /*OpIdx*/2, // z
7786 /* 7562 */ GIR_EraseRootFromParent_Done,
7787 /* 7563 */ // Label 375: @7563
7788 /* 7563 */ GIM_Reject,
7789 /* 7564 */ // Label 39: @7564
7790 /* 7564 */ GIM_Try, /*On fail goto*//*Label 376*/ GIMT_Encode4(7587), // Rule ID 119 //
7791 /* 7569 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled),
7792 /* 7572 */ // MIs[0] dst
7793 /* 7572 */ // No operand predicates
7794 /* 7572 */ // MIs[0] lhs
7795 /* 7572 */ // No operand predicates
7796 /* 7572 */ // MIs[0] Operand 2
7797 /* 7572 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
7798 /* 7576 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7799 /* 7581 */ // Combiner Rule #90: right_identity_zero @ [__right_identity_zero_match_0[9]]
7800 /* 7581 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7801 /* 7586 */ GIR_EraseRootFromParent_Done,
7802 /* 7587 */ // Label 376: @7587
7803 /* 7587 */ GIM_Reject,
7804 /* 7588 */ // Label 40: @7588
7805 /* 7588 */ GIM_Try, /*On fail goto*//*Label 377*/ GIMT_Encode4(7611), // Rule ID 118 //
7806 /* 7593 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled),
7807 /* 7596 */ // MIs[0] dst
7808 /* 7596 */ // No operand predicates
7809 /* 7596 */ // MIs[0] lhs
7810 /* 7596 */ // No operand predicates
7811 /* 7596 */ // MIs[0] Operand 2
7812 /* 7596 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
7813 /* 7600 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7814 /* 7605 */ // Combiner Rule #90: right_identity_zero @ [__right_identity_zero_match_0[8]]
7815 /* 7605 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7816 /* 7610 */ GIR_EraseRootFromParent_Done,
7817 /* 7611 */ // Label 377: @7611
7818 /* 7611 */ GIM_Reject,
7819 /* 7612 */ // Label 41: @7612
7820 /* 7612 */ GIM_Try, /*On fail goto*//*Label 378*/ GIMT_Encode4(7623), // Rule ID 164 //
7821 /* 7617 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule120Enabled),
7822 /* 7620 */ // Combiner Rule #120: icmp_to_true_false_known_bits; wip_match_opcode 'G_ICMP'
7823 /* 7620 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner61),
7824 /* 7623 */ // Label 378: @7623
7825 /* 7623 */ GIM_Try, /*On fail goto*//*Label 379*/ GIMT_Encode4(7634), // Rule ID 165 //
7826 /* 7628 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule121Enabled),
7827 /* 7631 */ // Combiner Rule #121: icmp_to_lhs_known_bits; wip_match_opcode 'G_ICMP'
7828 /* 7631 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner62),
7829 /* 7634 */ // Label 379: @7634
7830 /* 7634 */ GIM_Try, /*On fail goto*//*Label 380*/ GIMT_Encode4(7645), // Rule ID 168 //
7831 /* 7639 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule124Enabled),
7832 /* 7642 */ // Combiner Rule #124: redundant_binop_in_equality; wip_match_opcode 'G_ICMP'
7833 /* 7642 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner63),
7834 /* 7645 */ // Label 380: @7645
7835 /* 7645 */ GIM_Try, /*On fail goto*//*Label 381*/ GIMT_Encode4(7656), // Rule ID 162 //
7836 /* 7650 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule118Enabled),
7837 /* 7653 */ // MIs[0] root
7838 /* 7653 */ // No operand predicates
7839 /* 7653 */ // MIs[0] pred
7840 /* 7653 */ // No operand predicates
7841 /* 7653 */ // MIs[0] lhs
7842 /* 7653 */ // No operand predicates
7843 /* 7653 */ // MIs[0] rhs
7844 /* 7653 */ // No operand predicates
7845 /* 7653 */ // Combiner Rule #118: canonicalize_icmp
7846 /* 7653 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner59),
7847 /* 7656 */ // Label 381: @7656
7848 /* 7656 */ GIM_Reject,
7849 /* 7657 */ // Label 42: @7657
7850 /* 7657 */ GIM_Try, /*On fail goto*//*Label 382*/ GIMT_Encode4(7668), // Rule ID 163 //
7851 /* 7662 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule119Enabled),
7852 /* 7665 */ // MIs[0] root
7853 /* 7665 */ // No operand predicates
7854 /* 7665 */ // MIs[0] pred
7855 /* 7665 */ // No operand predicates
7856 /* 7665 */ // MIs[0] lhs
7857 /* 7665 */ // No operand predicates
7858 /* 7665 */ // MIs[0] rhs
7859 /* 7665 */ // No operand predicates
7860 /* 7665 */ // Combiner Rule #119: canonicalize_fcmp
7861 /* 7665 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner60),
7862 /* 7668 */ // Label 382: @7668
7863 /* 7668 */ GIM_Reject,
7864 /* 7669 */ // Label 43: @7669
7865 /* 7669 */ GIM_Try, /*On fail goto*//*Label 383*/ GIMT_Encode4(7680), // Rule ID 109 //
7866 /* 7674 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule89Enabled),
7867 /* 7677 */ // Combiner Rule #89: select_same_val; wip_match_opcode 'G_SELECT'
7868 /* 7677 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner44),
7869 /* 7680 */ // Label 383: @7680
7870 /* 7680 */ GIM_Try, /*On fail goto*//*Label 384*/ GIMT_Encode4(7691), // Rule ID 175 //
7871 /* 7685 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule131Enabled),
7872 /* 7688 */ // Combiner Rule #131: select_constant_cmp; wip_match_opcode 'G_SELECT'
7873 /* 7688 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner68),
7874 /* 7691 */ // Label 384: @7691
7875 /* 7691 */ GIM_Try, /*On fail goto*//*Label 385*/ GIMT_Encode4(7702), // Rule ID 177 //
7876 /* 7696 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule133Enabled),
7877 /* 7699 */ // Combiner Rule #133: match_selects; wip_match_opcode 'G_SELECT'
7878 /* 7699 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner70),
7879 /* 7702 */ // Label 385: @7702
7880 /* 7702 */ GIM_Try, /*On fail goto*//*Label 386*/ GIMT_Encode4(7713), // Rule ID 351 //
7881 /* 7707 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule214Enabled),
7882 /* 7710 */ // Combiner Rule #214: select_to_minmax; wip_match_opcode 'G_SELECT'
7883 /* 7710 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner127),
7884 /* 7713 */ // Label 386: @7713
7885 /* 7713 */ GIM_Try, /*On fail goto*//*Label 387*/ GIMT_Encode4(7762), // Rule ID 178 //
7886 /* 7718 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule134Enabled),
7887 /* 7721 */ // MIs[0] dst
7888 /* 7721 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
7889 /* 7725 */ // MIs[0] c
7890 /* 7725 */ // No operand predicates
7891 /* 7725 */ // MIs[0] x
7892 /* 7725 */ // No operand predicates
7893 /* 7725 */ // MIs[0] Operand 3
7894 /* 7725 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/3, 0,
7895 /* 7729 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner12),
7896 /* 7733 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
7897 /* 7736 */ // Combiner Rule #134: select_zero_false
7898 /* 7736 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FREEZE),
7899 /* 7739 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
7900 /* 7744 */ GIR_RootToRootCopy, /*OpIdx*/2, // x
7901 /* 7746 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_AND),
7902 /* 7750 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
7903 /* 7754 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/1, // c
7904 /* 7758 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
7905 /* 7761 */ GIR_EraseRootFromParent_Done,
7906 /* 7762 */ // Label 387: @7762
7907 /* 7762 */ GIM_Try, /*On fail goto*//*Label 388*/ GIMT_Encode4(7783), // Rule ID 176 //
7908 /* 7767 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule132Enabled),
7909 /* 7770 */ // MIs[0] root
7910 /* 7770 */ // No operand predicates
7911 /* 7770 */ // MIs[0] tst
7912 /* 7770 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7913 /* 7774 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ICMP),
7914 /* 7778 */ // MIs[1] tst1
7915 /* 7778 */ // No operand predicates
7916 /* 7778 */ // MIs[1] a
7917 /* 7778 */ // No operand predicates
7918 /* 7778 */ // MIs[1] b
7919 /* 7778 */ // No operand predicates
7920 /* 7778 */ // MIs[0] x
7921 /* 7778 */ // No operand predicates
7922 /* 7778 */ // MIs[0] y
7923 /* 7778 */ // No operand predicates
7924 /* 7778 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7925 /* 7780 */ // Combiner Rule #132: select_to_iminmax
7926 /* 7780 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner69),
7927 /* 7783 */ // Label 388: @7783
7928 /* 7783 */ GIM_Try, /*On fail goto*//*Label 389*/ GIMT_Encode4(7819), // Rule ID 179 //
7929 /* 7788 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule135Enabled),
7930 /* 7791 */ // MIs[0] dst
7931 /* 7791 */ // No operand predicates
7932 /* 7791 */ // MIs[0] c
7933 /* 7791 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7934 /* 7795 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_XOR),
7935 /* 7799 */ // MIs[1] src
7936 /* 7799 */ // No operand predicates
7937 /* 7799 */ // MIs[1] Operand 2
7938 /* 7799 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/2, 255,
7939 /* 7803 */ // MIs[0] x
7940 /* 7803 */ // No operand predicates
7941 /* 7803 */ // MIs[0] y
7942 /* 7803 */ // No operand predicates
7943 /* 7803 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7944 /* 7805 */ // Combiner Rule #135: select_not
7945 /* 7805 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SELECT),
7946 /* 7808 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
7947 /* 7810 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // src
7948 /* 7814 */ GIR_RootToRootCopy, /*OpIdx*/3, // y
7949 /* 7816 */ GIR_RootToRootCopy, /*OpIdx*/2, // x
7950 /* 7818 */ GIR_EraseRootFromParent_Done,
7951 /* 7819 */ // Label 389: @7819
7952 /* 7819 */ GIM_Try, /*On fail goto*//*Label 390*/ GIMT_Encode4(7848), // Rule ID 174 //
7953 /* 7824 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule130Enabled),
7954 /* 7827 */ // MIs[0] dst
7955 /* 7827 */ // No operand predicates
7956 /* 7827 */ // MIs[0] undef
7957 /* 7827 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7958 /* 7831 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
7959 /* 7835 */ // MIs[0] x
7960 /* 7835 */ // No operand predicates
7961 /* 7835 */ // MIs[0] y
7962 /* 7835 */ // No operand predicates
7963 /* 7835 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/3,
7964 /* 7840 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7965 /* 7842 */ // Combiner Rule #130: select_undef_cmp
7966 /* 7842 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/3,
7967 /* 7847 */ GIR_EraseRootFromParent_Done,
7968 /* 7848 */ // Label 390: @7848
7969 /* 7848 */ GIM_Reject,
7970 /* 7849 */ // Label 44: @7849
7971 /* 7849 */ GIM_Try, /*On fail goto*//*Label 391*/ GIMT_Encode4(7860), // Rule ID 362 //
7972 /* 7854 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
7973 /* 7857 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_UADDO'
7974 /* 7857 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129),
7975 /* 7860 */ // Label 391: @7860
7976 /* 7860 */ GIM_Try, /*On fail goto*//*Label 392*/ GIMT_Encode4(7871), // Rule ID 408 //
7977 /* 7865 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule243Enabled),
7978 /* 7868 */ // Combiner Rule #243: match_addos; wip_match_opcode 'G_UADDO'
7979 /* 7868 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner152),
7980 /* 7871 */ // Label 392: @7871
7981 /* 7871 */ GIM_Reject,
7982 /* 7872 */ // Label 45: @7872
7983 /* 7872 */ GIM_Try, /*On fail goto*//*Label 393*/ GIMT_Encode4(7883), // Rule ID 210 //
7984 /* 7877 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule164Enabled),
7985 /* 7880 */ // Combiner Rule #164: adde_to_addo; wip_match_opcode 'G_UADDE'
7986 /* 7880 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner86),
7987 /* 7883 */ // Label 393: @7883
7988 /* 7883 */ GIM_Reject,
7989 /* 7884 */ // Label 46: @7884
7990 /* 7884 */ GIM_Try, /*On fail goto*//*Label 394*/ GIMT_Encode4(7895), // Rule ID 410 //
7991 /* 7889 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule244Enabled),
7992 /* 7892 */ // Combiner Rule #244: match_subo_no_overflow; wip_match_opcode 'G_USUBO'
7993 /* 7892 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner153),
7994 /* 7895 */ // Label 394: @7895
7995 /* 7895 */ GIM_Reject,
7996 /* 7896 */ // Label 47: @7896
7997 /* 7896 */ GIM_Try, /*On fail goto*//*Label 395*/ GIMT_Encode4(7907), // Rule ID 212 //
7998 /* 7901 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule164Enabled),
7999 /* 7904 */ // Combiner Rule #164: adde_to_addo; wip_match_opcode 'G_USUBE'
8000 /* 7904 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner86),
8001 /* 7907 */ // Label 395: @7907
8002 /* 7907 */ GIM_Reject,
8003 /* 7908 */ // Label 48: @7908
8004 /* 7908 */ GIM_Try, /*On fail goto*//*Label 396*/ GIMT_Encode4(7919), // Rule ID 363 //
8005 /* 7913 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
8006 /* 7916 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_SADDO'
8007 /* 7916 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129),
8008 /* 7919 */ // Label 396: @7919
8009 /* 7919 */ GIM_Try, /*On fail goto*//*Label 397*/ GIMT_Encode4(7930), // Rule ID 407 //
8010 /* 7924 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule243Enabled),
8011 /* 7927 */ // Combiner Rule #243: match_addos; wip_match_opcode 'G_SADDO'
8012 /* 7927 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner152),
8013 /* 7930 */ // Label 397: @7930
8014 /* 7930 */ GIM_Reject,
8015 /* 7931 */ // Label 49: @7931
8016 /* 7931 */ GIM_Try, /*On fail goto*//*Label 398*/ GIMT_Encode4(7942), // Rule ID 211 //
8017 /* 7936 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule164Enabled),
8018 /* 7939 */ // Combiner Rule #164: adde_to_addo; wip_match_opcode 'G_SADDE'
8019 /* 7939 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner86),
8020 /* 7942 */ // Label 398: @7942
8021 /* 7942 */ GIM_Reject,
8022 /* 7943 */ // Label 50: @7943
8023 /* 7943 */ GIM_Try, /*On fail goto*//*Label 399*/ GIMT_Encode4(7954), // Rule ID 409 //
8024 /* 7948 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule244Enabled),
8025 /* 7951 */ // Combiner Rule #244: match_subo_no_overflow; wip_match_opcode 'G_SSUBO'
8026 /* 7951 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner153),
8027 /* 7954 */ // Label 399: @7954
8028 /* 7954 */ GIM_Reject,
8029 /* 7955 */ // Label 51: @7955
8030 /* 7955 */ GIM_Try, /*On fail goto*//*Label 400*/ GIMT_Encode4(7966), // Rule ID 213 //
8031 /* 7960 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule164Enabled),
8032 /* 7963 */ // Combiner Rule #164: adde_to_addo; wip_match_opcode 'G_SSUBE'
8033 /* 7963 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner86),
8034 /* 7966 */ // Label 400: @7966
8035 /* 7966 */ GIM_Reject,
8036 /* 7967 */ // Label 52: @7967
8037 /* 7967 */ GIM_Try, /*On fail goto*//*Label 401*/ GIMT_Encode4(7978), // Rule ID 206 //
8038 /* 7972 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule162Enabled),
8039 /* 7975 */ // Combiner Rule #162: mulo_by_2; wip_match_opcode 'G_UMULO'
8040 /* 7975 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner84),
8041 /* 7978 */ // Label 401: @7978
8042 /* 7978 */ GIM_Try, /*On fail goto*//*Label 402*/ GIMT_Encode4(7989), // Rule ID 208 //
8043 /* 7983 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule163Enabled),
8044 /* 7986 */ // Combiner Rule #163: mulo_by_0; wip_match_opcode 'G_UMULO'
8045 /* 7986 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner85),
8046 /* 7989 */ // Label 402: @7989
8047 /* 7989 */ GIM_Try, /*On fail goto*//*Label 403*/ GIMT_Encode4(8000), // Rule ID 364 //
8048 /* 7994 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
8049 /* 7997 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_UMULO'
8050 /* 7997 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129),
8051 /* 8000 */ // Label 403: @8000
8052 /* 8000 */ GIM_Reject,
8053 /* 8001 */ // Label 53: @8001
8054 /* 8001 */ GIM_Try, /*On fail goto*//*Label 404*/ GIMT_Encode4(8012), // Rule ID 207 //
8055 /* 8006 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule162Enabled),
8056 /* 8009 */ // Combiner Rule #162: mulo_by_2; wip_match_opcode 'G_SMULO'
8057 /* 8009 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner84),
8058 /* 8012 */ // Label 404: @8012
8059 /* 8012 */ GIM_Try, /*On fail goto*//*Label 405*/ GIMT_Encode4(8023), // Rule ID 209 //
8060 /* 8017 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule163Enabled),
8061 /* 8020 */ // Combiner Rule #163: mulo_by_0; wip_match_opcode 'G_SMULO'
8062 /* 8020 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner85),
8063 /* 8023 */ // Label 405: @8023
8064 /* 8023 */ GIM_Try, /*On fail goto*//*Label 406*/ GIMT_Encode4(8034), // Rule ID 365 //
8065 /* 8028 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
8066 /* 8031 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_SMULO'
8067 /* 8031 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129),
8068 /* 8034 */ // Label 406: @8034
8069 /* 8034 */ GIM_Reject,
8070 /* 8035 */ // Label 54: @8035
8071 /* 8035 */ GIM_Try, /*On fail goto*//*Label 407*/ GIMT_Encode4(8046), // Rule ID 300 //
8072 /* 8040 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule193Enabled),
8073 /* 8043 */ // Combiner Rule #193: mulh_to_lshr; wip_match_opcode 'G_UMULH'
8074 /* 8043 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner108),
8075 /* 8046 */ // Label 407: @8046
8076 /* 8046 */ GIM_Try, /*On fail goto*//*Label 408*/ GIMT_Encode4(8057), // Rule ID 366 //
8077 /* 8051 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
8078 /* 8054 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_UMULH'
8079 /* 8054 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129),
8080 /* 8057 */ // Label 408: @8057
8081 /* 8057 */ GIM_Reject,
8082 /* 8058 */ // Label 55: @8058
8083 /* 8058 */ GIM_Try, /*On fail goto*//*Label 409*/ GIMT_Encode4(8069), // Rule ID 367 //
8084 /* 8063 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
8085 /* 8066 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_SMULH'
8086 /* 8066 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129),
8087 /* 8069 */ // Label 409: @8069
8088 /* 8069 */ GIM_Reject,
8089 /* 8070 */ // Label 56: @8070
8090 /* 8070 */ GIM_Try, /*On fail goto*//*Label 410*/ GIMT_Encode4(8081), // Rule ID 368 //
8091 /* 8075 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
8092 /* 8078 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_UADDSAT'
8093 /* 8078 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129),
8094 /* 8081 */ // Label 410: @8081
8095 /* 8081 */ GIM_Reject,
8096 /* 8082 */ // Label 57: @8082
8097 /* 8082 */ GIM_Try, /*On fail goto*//*Label 411*/ GIMT_Encode4(8093), // Rule ID 369 //
8098 /* 8087 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
8099 /* 8090 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_SADDSAT'
8100 /* 8090 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129),
8101 /* 8093 */ // Label 411: @8093
8102 /* 8093 */ GIM_Reject,
8103 /* 8094 */ // Label 58: @8094
8104 /* 8094 */ GIM_Try, /*On fail goto*//*Label 412*/ GIMT_Encode4(8105), // Rule ID 225 //
8105 /* 8099 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule169Enabled),
8106 /* 8102 */ // Combiner Rule #169: shift_immed_chain; wip_match_opcode 'G_USHLSAT'
8107 /* 8102 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner91),
8108 /* 8105 */ // Label 412: @8105
8109 /* 8105 */ GIM_Try, /*On fail goto*//*Label 413*/ GIMT_Encode4(8116), // Rule ID 229 //
8110 /* 8110 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule170Enabled),
8111 /* 8113 */ // Combiner Rule #170: shift_of_shifted_logic_chain; wip_match_opcode 'G_USHLSAT'
8112 /* 8113 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner92),
8113 /* 8116 */ // Label 413: @8116
8114 /* 8116 */ GIM_Reject,
8115 /* 8117 */ // Label 59: @8117
8116 /* 8117 */ GIM_Try, /*On fail goto*//*Label 414*/ GIMT_Encode4(8128), // Rule ID 224 //
8117 /* 8122 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule169Enabled),
8118 /* 8125 */ // Combiner Rule #169: shift_immed_chain; wip_match_opcode 'G_SSHLSAT'
8119 /* 8125 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner91),
8120 /* 8128 */ // Label 414: @8128
8121 /* 8128 */ GIM_Try, /*On fail goto*//*Label 415*/ GIMT_Encode4(8139), // Rule ID 230 //
8122 /* 8133 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule170Enabled),
8123 /* 8136 */ // Combiner Rule #170: shift_of_shifted_logic_chain; wip_match_opcode 'G_SSHLSAT'
8124 /* 8136 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner92),
8125 /* 8139 */ // Label 415: @8139
8126 /* 8139 */ GIM_Reject,
8127 /* 8140 */ // Label 60: @8140
8128 /* 8140 */ GIM_Try, /*On fail goto*//*Label 416*/ GIMT_Encode4(8151), // Rule ID 370 //
8129 /* 8145 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
8130 /* 8148 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_SMULFIX'
8131 /* 8148 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129),
8132 /* 8151 */ // Label 416: @8151
8133 /* 8151 */ GIM_Reject,
8134 /* 8152 */ // Label 61: @8152
8135 /* 8152 */ GIM_Try, /*On fail goto*//*Label 417*/ GIMT_Encode4(8163), // Rule ID 371 //
8136 /* 8157 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
8137 /* 8160 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_UMULFIX'
8138 /* 8160 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129),
8139 /* 8163 */ // Label 417: @8163
8140 /* 8163 */ GIM_Reject,
8141 /* 8164 */ // Label 62: @8164
8142 /* 8164 */ GIM_Try, /*On fail goto*//*Label 418*/ GIMT_Encode4(8175), // Rule ID 372 //
8143 /* 8169 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
8144 /* 8172 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_SMULFIXSAT'
8145 /* 8172 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129),
8146 /* 8175 */ // Label 418: @8175
8147 /* 8175 */ GIM_Reject,
8148 /* 8176 */ // Label 63: @8176
8149 /* 8176 */ GIM_Try, /*On fail goto*//*Label 419*/ GIMT_Encode4(8187), // Rule ID 373 //
8150 /* 8181 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
8151 /* 8184 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_UMULFIXSAT'
8152 /* 8184 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129),
8153 /* 8187 */ // Label 419: @8187
8154 /* 8187 */ GIM_Reject,
8155 /* 8188 */ // Label 64: @8188
8156 /* 8188 */ GIM_Try, /*On fail goto*//*Label 420*/ GIMT_Encode4(8199), // Rule ID 301 //
8157 /* 8193 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
8158 /* 8196 */ // Combiner Rule #194: redundant_neg_operands; wip_match_opcode 'G_FADD'
8159 /* 8196 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner109),
8160 /* 8199 */ // Label 420: @8199
8161 /* 8199 */ GIM_Try, /*On fail goto*//*Label 421*/ GIMT_Encode4(8210), // Rule ID 308 //
8162 /* 8204 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule196Enabled),
8163 /* 8207 */ // Combiner Rule #196: combine_fadd_fmul_to_fmad_or_fma; wip_match_opcode 'G_FADD'
8164 /* 8207 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner111),
8165 /* 8210 */ // Label 421: @8210
8166 /* 8210 */ GIM_Try, /*On fail goto*//*Label 422*/ GIMT_Encode4(8221), // Rule ID 309 //
8167 /* 8215 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule197Enabled),
8168 /* 8218 */ // Combiner Rule #197: combine_fadd_fpext_fmul_to_fmad_or_fma; wip_match_opcode 'G_FADD'
8169 /* 8218 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner112),
8170 /* 8221 */ // Label 422: @8221
8171 /* 8221 */ GIM_Try, /*On fail goto*//*Label 423*/ GIMT_Encode4(8232), // Rule ID 310 //
8172 /* 8226 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule198Enabled),
8173 /* 8229 */ // Combiner Rule #198: combine_fadd_fma_fmul_to_fmad_or_fma; wip_match_opcode 'G_FADD'
8174 /* 8229 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner113),
8175 /* 8232 */ // Label 423: @8232
8176 /* 8232 */ GIM_Try, /*On fail goto*//*Label 424*/ GIMT_Encode4(8243), // Rule ID 311 //
8177 /* 8237 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule199Enabled),
8178 /* 8240 */ // Combiner Rule #199: combine_fadd_fpext_fma_fmul_to_fmad_or_fma; wip_match_opcode 'G_FADD'
8179 /* 8240 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner114),
8180 /* 8243 */ // Label 424: @8243
8181 /* 8243 */ GIM_Try, /*On fail goto*//*Label 425*/ GIMT_Encode4(8254), // Rule ID 334 //
8182 /* 8248 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
8183 /* 8251 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_FADD'
8184 /* 8251 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
8185 /* 8254 */ // Label 425: @8254
8186 /* 8254 */ GIM_Try, /*On fail goto*//*Label 426*/ GIMT_Encode4(8265), // Rule ID 374 //
8187 /* 8259 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule217Enabled),
8188 /* 8262 */ // Combiner Rule #217: commute_fp_constant_to_rhs; wip_match_opcode 'G_FADD'
8189 /* 8262 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner130),
8190 /* 8265 */ // Label 426: @8265
8191 /* 8265 */ GIM_Try, /*On fail goto*//*Label 427*/ GIMT_Encode4(8288), // Rule ID 148 //
8192 /* 8270 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule108Enabled),
8193 /* 8273 */ // MIs[0] dst
8194 /* 8273 */ // No operand predicates
8195 /* 8273 */ // MIs[0] x
8196 /* 8273 */ // No operand predicates
8197 /* 8273 */ // MIs[0] y
8198 /* 8273 */ // No operand predicates
8199 /* 8273 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner6),
8200 /* 8277 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8201 /* 8282 */ // Combiner Rule #108: right_identity_neg_zero_fp
8202 /* 8282 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8203 /* 8287 */ GIR_EraseRootFromParent_Done,
8204 /* 8288 */ // Label 427: @8288
8205 /* 8288 */ GIM_Try, /*On fail goto*//*Label 428*/ GIMT_Encode4(8317), // Rule ID 149 //
8206 /* 8293 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule109Enabled),
8207 /* 8296 */ GIM_MIFlags, /*MI*/0, GIMT_Encode4(MachineInstr::FmNsz),
8208 /* 8302 */ // MIs[0] dst
8209 /* 8302 */ // No operand predicates
8210 /* 8302 */ // MIs[0] x
8211 /* 8302 */ // No operand predicates
8212 /* 8302 */ // MIs[0] y
8213 /* 8302 */ // No operand predicates
8214 /* 8302 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner7),
8215 /* 8306 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8216 /* 8311 */ // Combiner Rule #109: right_identity_neg_zero_fp_nsz
8217 /* 8311 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8218 /* 8316 */ GIR_EraseRootFromParent_Done,
8219 /* 8317 */ // Label 428: @8317
8220 /* 8317 */ GIM_Try, /*On fail goto*//*Label 429*/ GIMT_Encode4(8328), // Rule ID 274 //
8221 /* 8322 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule188Enabled),
8222 /* 8325 */ // MIs[0] d
8223 /* 8325 */ // No operand predicates
8224 /* 8325 */ // MIs[0] mi.src0
8225 /* 8325 */ // No operand predicates
8226 /* 8325 */ // MIs[0] mi.src1
8227 /* 8325 */ // No operand predicates
8228 /* 8325 */ // Combiner Rule #188: constant_fold_fp_binop @ [mi[0]]
8229 /* 8325 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner104),
8230 /* 8328 */ // Label 429: @8328
8231 /* 8328 */ GIM_Reject,
8232 /* 8329 */ // Label 65: @8329
8233 /* 8329 */ GIM_Try, /*On fail goto*//*Label 430*/ GIMT_Encode4(8340), // Rule ID 302 //
8234 /* 8334 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
8235 /* 8337 */ // Combiner Rule #194: redundant_neg_operands; wip_match_opcode 'G_FSUB'
8236 /* 8337 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner109),
8237 /* 8340 */ // Label 430: @8340
8238 /* 8340 */ GIM_Try, /*On fail goto*//*Label 431*/ GIMT_Encode4(8351), // Rule ID 312 //
8239 /* 8345 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule200Enabled),
8240 /* 8348 */ // Combiner Rule #200: combine_fsub_fmul_to_fmad_or_fma; wip_match_opcode 'G_FSUB'
8241 /* 8348 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner115),
8242 /* 8351 */ // Label 431: @8351
8243 /* 8351 */ GIM_Try, /*On fail goto*//*Label 432*/ GIMT_Encode4(8362), // Rule ID 313 //
8244 /* 8356 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule201Enabled),
8245 /* 8359 */ // Combiner Rule #201: combine_fsub_fneg_fmul_to_fmad_or_fma; wip_match_opcode 'G_FSUB'
8246 /* 8359 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner116),
8247 /* 8362 */ // Label 432: @8362
8248 /* 8362 */ GIM_Try, /*On fail goto*//*Label 433*/ GIMT_Encode4(8373), // Rule ID 314 //
8249 /* 8367 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule202Enabled),
8250 /* 8370 */ // Combiner Rule #202: combine_fsub_fpext_fmul_to_fmad_or_fma; wip_match_opcode 'G_FSUB'
8251 /* 8370 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner117),
8252 /* 8373 */ // Label 433: @8373
8253 /* 8373 */ GIM_Try, /*On fail goto*//*Label 434*/ GIMT_Encode4(8384), // Rule ID 315 //
8254 /* 8378 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule203Enabled),
8255 /* 8381 */ // Combiner Rule #203: combine_fsub_fpext_fneg_fmul_to_fmad_or_fma; wip_match_opcode 'G_FSUB'
8256 /* 8381 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner118),
8257 /* 8384 */ // Label 434: @8384
8258 /* 8384 */ GIM_Try, /*On fail goto*//*Label 435*/ GIMT_Encode4(8395), // Rule ID 335 //
8259 /* 8389 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
8260 /* 8392 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_FSUB'
8261 /* 8392 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
8262 /* 8395 */ // Label 435: @8395
8263 /* 8395 */ GIM_Try, /*On fail goto*//*Label 436*/ GIMT_Encode4(8406), // Rule ID 352 //
8264 /* 8400 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule215Enabled),
8265 /* 8403 */ // Combiner Rule #215: fsub_to_fneg; wip_match_opcode 'G_FSUB'
8266 /* 8403 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner128),
8267 /* 8406 */ // Label 436: @8406
8268 /* 8406 */ GIM_Try, /*On fail goto*//*Label 437*/ GIMT_Encode4(8417), // Rule ID 275 //
8269 /* 8411 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule188Enabled),
8270 /* 8414 */ // MIs[0] d
8271 /* 8414 */ // No operand predicates
8272 /* 8414 */ // MIs[0] mi.src0
8273 /* 8414 */ // No operand predicates
8274 /* 8414 */ // MIs[0] mi.src1
8275 /* 8414 */ // No operand predicates
8276 /* 8414 */ // Combiner Rule #188: constant_fold_fp_binop @ [mi[1]]
8277 /* 8414 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner104),
8278 /* 8417 */ // Label 437: @8417
8279 /* 8417 */ GIM_Reject,
8280 /* 8418 */ // Label 66: @8418
8281 /* 8418 */ GIM_Try, /*On fail goto*//*Label 438*/ GIMT_Encode4(8429), // Rule ID 303 //
8282 /* 8423 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
8283 /* 8426 */ // Combiner Rule #194: redundant_neg_operands; wip_match_opcode 'G_FMUL'
8284 /* 8426 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner109),
8285 /* 8429 */ // Label 438: @8429
8286 /* 8429 */ GIM_Try, /*On fail goto*//*Label 439*/ GIMT_Encode4(8440), // Rule ID 333 //
8287 /* 8434 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
8288 /* 8437 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_FMUL'
8289 /* 8437 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
8290 /* 8440 */ // Label 439: @8440
8291 /* 8440 */ GIM_Try, /*On fail goto*//*Label 440*/ GIMT_Encode4(8451), // Rule ID 375 //
8292 /* 8445 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule217Enabled),
8293 /* 8448 */ // Combiner Rule #217: commute_fp_constant_to_rhs; wip_match_opcode 'G_FMUL'
8294 /* 8448 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner130),
8295 /* 8451 */ // Label 440: @8451
8296 /* 8451 */ GIM_Try, /*On fail goto*//*Label 441*/ GIMT_Encode4(8472), // Rule ID 436 //
8297 /* 8456 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule264Enabled),
8298 /* 8459 */ // MIs[0] dst
8299 /* 8459 */ // No operand predicates
8300 /* 8459 */ // MIs[0] x
8301 /* 8459 */ // No operand predicates
8302 /* 8459 */ // MIs[0] select
8303 /* 8459 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
8304 /* 8463 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SELECT),
8305 /* 8467 */ // MIs[1] y
8306 /* 8467 */ // No operand predicates
8307 /* 8467 */ // MIs[1] A
8308 /* 8467 */ // No operand predicates
8309 /* 8467 */ // MIs[1] B
8310 /* 8467 */ // No operand predicates
8311 /* 8467 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8312 /* 8469 */ // Combiner Rule #264: combine_fmul_with_select_to_fldexp
8313 /* 8469 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner159),
8314 /* 8472 */ // Label 441: @8472
8315 /* 8472 */ GIM_Try, /*On fail goto*//*Label 442*/ GIMT_Encode4(8495), // Rule ID 138 //
8316 /* 8477 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule100Enabled),
8317 /* 8480 */ // MIs[0] dst
8318 /* 8480 */ // No operand predicates
8319 /* 8480 */ // MIs[0] x
8320 /* 8480 */ // No operand predicates
8321 /* 8480 */ // MIs[0] y
8322 /* 8480 */ // No operand predicates
8323 /* 8480 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner4),
8324 /* 8484 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8325 /* 8489 */ // Combiner Rule #100: right_identity_one_fp
8326 /* 8489 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8327 /* 8494 */ GIR_EraseRootFromParent_Done,
8328 /* 8495 */ // Label 442: @8495
8329 /* 8495 */ GIM_Try, /*On fail goto*//*Label 443*/ GIMT_Encode4(8515), // Rule ID 150 //
8330 /* 8500 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule110Enabled),
8331 /* 8503 */ // MIs[0] dst
8332 /* 8503 */ // No operand predicates
8333 /* 8503 */ // MIs[0] x
8334 /* 8503 */ // No operand predicates
8335 /* 8503 */ // MIs[0] y
8336 /* 8503 */ // No operand predicates
8337 /* 8503 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner8),
8338 /* 8507 */ // Combiner Rule #110: right_identity_neg_one_fp
8339 /* 8507 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FNEG),
8340 /* 8510 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
8341 /* 8512 */ GIR_RootToRootCopy, /*OpIdx*/1, // x
8342 /* 8514 */ GIR_EraseRootFromParent_Done,
8343 /* 8515 */ // Label 443: @8515
8344 /* 8515 */ GIM_Try, /*On fail goto*//*Label 444*/ GIMT_Encode4(8526), // Rule ID 276 //
8345 /* 8520 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule188Enabled),
8346 /* 8523 */ // MIs[0] d
8347 /* 8523 */ // No operand predicates
8348 /* 8523 */ // MIs[0] mi.src0
8349 /* 8523 */ // No operand predicates
8350 /* 8523 */ // MIs[0] mi.src1
8351 /* 8523 */ // No operand predicates
8352 /* 8523 */ // Combiner Rule #188: constant_fold_fp_binop @ [mi[2]]
8353 /* 8523 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner104),
8354 /* 8526 */ // Label 444: @8526
8355 /* 8526 */ GIM_Reject,
8356 /* 8527 */ // Label 67: @8527
8357 /* 8527 */ GIM_Try, /*On fail goto*//*Label 445*/ GIMT_Encode4(8538), // Rule ID 287 //
8358 /* 8532 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule189Enabled),
8359 /* 8535 */ // Combiner Rule #189: constant_fold_fma; wip_match_opcode 'G_FMA'
8360 /* 8535 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner105),
8361 /* 8538 */ // Label 445: @8538
8362 /* 8538 */ GIM_Try, /*On fail goto*//*Label 446*/ GIMT_Encode4(8549), // Rule ID 306 //
8363 /* 8543 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
8364 /* 8546 */ // Combiner Rule #194: redundant_neg_operands; wip_match_opcode 'G_FMA'
8365 /* 8546 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner109),
8366 /* 8549 */ // Label 446: @8549
8367 /* 8549 */ GIM_Reject,
8368 /* 8550 */ // Label 68: @8550
8369 /* 8550 */ GIM_Try, /*On fail goto*//*Label 447*/ GIMT_Encode4(8561), // Rule ID 286 //
8370 /* 8555 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule189Enabled),
8371 /* 8558 */ // Combiner Rule #189: constant_fold_fma; wip_match_opcode 'G_FMAD'
8372 /* 8558 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner105),
8373 /* 8561 */ // Label 447: @8561
8374 /* 8561 */ GIM_Try, /*On fail goto*//*Label 448*/ GIMT_Encode4(8572), // Rule ID 305 //
8375 /* 8566 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
8376 /* 8569 */ // Combiner Rule #194: redundant_neg_operands; wip_match_opcode 'G_FMAD'
8377 /* 8569 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner109),
8378 /* 8572 */ // Label 448: @8572
8379 /* 8572 */ GIM_Reject,
8380 /* 8573 */ // Label 69: @8573
8381 /* 8573 */ GIM_Try, /*On fail goto*//*Label 449*/ GIMT_Encode4(8584), // Rule ID 304 //
8382 /* 8578 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
8383 /* 8581 */ // Combiner Rule #194: redundant_neg_operands; wip_match_opcode 'G_FDIV'
8384 /* 8581 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner109),
8385 /* 8584 */ // Label 449: @8584
8386 /* 8584 */ GIM_Try, /*On fail goto*//*Label 450*/ GIMT_Encode4(8595), // Rule ID 336 //
8387 /* 8589 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
8388 /* 8592 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_FDIV'
8389 /* 8592 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
8390 /* 8595 */ // Label 450: @8595
8391 /* 8595 */ GIM_Try, /*On fail goto*//*Label 451*/ GIMT_Encode4(8606), // Rule ID 277 //
8392 /* 8600 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule188Enabled),
8393 /* 8603 */ // MIs[0] d
8394 /* 8603 */ // No operand predicates
8395 /* 8603 */ // MIs[0] mi.src0
8396 /* 8603 */ // No operand predicates
8397 /* 8603 */ // MIs[0] mi.src1
8398 /* 8603 */ // No operand predicates
8399 /* 8603 */ // Combiner Rule #188: constant_fold_fp_binop @ [mi[3]]
8400 /* 8603 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner104),
8401 /* 8606 */ // Label 451: @8606
8402 /* 8606 */ GIM_Try, /*On fail goto*//*Label 452*/ GIMT_Encode4(8617), // Rule ID 349 //
8403 /* 8611 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule212Enabled),
8404 /* 8614 */ // MIs[0] dst
8405 /* 8614 */ // No operand predicates
8406 /* 8614 */ // MIs[0] src1
8407 /* 8614 */ // No operand predicates
8408 /* 8614 */ // MIs[0] src2
8409 /* 8614 */ // No operand predicates
8410 /* 8614 */ // Combiner Rule #212: fdiv_repeated_divison
8411 /* 8614 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner125),
8412 /* 8617 */ // Label 452: @8617
8413 /* 8617 */ GIM_Reject,
8414 /* 8618 */ // Label 70: @8618
8415 /* 8618 */ GIM_Try, /*On fail goto*//*Label 453*/ GIMT_Encode4(8629), // Rule ID 337 //
8416 /* 8623 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
8417 /* 8626 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_FREM'
8418 /* 8626 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
8419 /* 8629 */ // Label 453: @8629
8420 /* 8629 */ GIM_Try, /*On fail goto*//*Label 454*/ GIMT_Encode4(8640), // Rule ID 278 //
8421 /* 8634 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule188Enabled),
8422 /* 8637 */ // MIs[0] d
8423 /* 8637 */ // No operand predicates
8424 /* 8637 */ // MIs[0] mi.src0
8425 /* 8637 */ // No operand predicates
8426 /* 8637 */ // MIs[0] mi.src1
8427 /* 8637 */ // No operand predicates
8428 /* 8637 */ // Combiner Rule #188: constant_fold_fp_binop @ [mi[4]]
8429 /* 8637 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner104),
8430 /* 8640 */ // Label 454: @8640
8431 /* 8640 */ GIM_Reject,
8432 /* 8641 */ // Label 71: @8641
8433 /* 8641 */ GIM_Try, /*On fail goto*//*Label 455*/ GIMT_Encode4(8662), // Rule ID 218 //
8434 /* 8646 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule166Enabled),
8435 /* 8649 */ // MIs[0] dst
8436 /* 8649 */ // No operand predicates
8437 /* 8649 */ // MIs[0] float
8438 /* 8649 */ // No operand predicates
8439 /* 8649 */ // MIs[0] int
8440 /* 8649 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
8441 /* 8653 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
8442 /* 8657 */ // MIs[1] imm
8443 /* 8657 */ // No operand predicates
8444 /* 8657 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8445 /* 8659 */ // Combiner Rule #166: expand_const_fpowi
8446 /* 8659 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner88),
8447 /* 8662 */ // Label 455: @8662
8448 /* 8662 */ GIM_Reject,
8449 /* 8663 */ // Label 72: @8663
8450 /* 8663 */ GIM_Try, /*On fail goto*//*Label 456*/ GIMT_Encode4(8684), // Rule ID 192 //
8451 /* 8668 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule148Enabled),
8452 /* 8671 */ // MIs[0] dst
8453 /* 8671 */ // No operand predicates
8454 /* 8671 */ // MIs[0] src0
8455 /* 8671 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8456 /* 8675 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT),
8457 /* 8679 */ // MIs[1] cst
8458 /* 8679 */ // No operand predicates
8459 /* 8679 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8460 /* 8681 */ // Combiner Rule #148: constant_fold_flog2
8461 /* 8681 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
8462 /* 8684 */ // Label 456: @8684
8463 /* 8684 */ GIM_Reject,
8464 /* 8685 */ // Label 73: @8685
8465 /* 8685 */ GIM_Try, /*On fail goto*//*Label 457*/ GIMT_Encode4(8696), // Rule ID 438 //
8466 /* 8690 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule266Enabled),
8467 /* 8693 */ // Combiner Rule #266: foldable_fneg; wip_match_opcode 'G_FNEG'
8468 /* 8693 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner161),
8469 /* 8696 */ // Label 457: @8696
8470 /* 8696 */ GIM_Try, /*On fail goto*//*Label 458*/ GIMT_Encode4(8717), // Rule ID 189 //
8471 /* 8701 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule145Enabled),
8472 /* 8704 */ // MIs[0] dst
8473 /* 8704 */ // No operand predicates
8474 /* 8704 */ // MIs[0] src0
8475 /* 8704 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8476 /* 8708 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT),
8477 /* 8712 */ // MIs[1] cst
8478 /* 8712 */ // No operand predicates
8479 /* 8712 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8480 /* 8714 */ // Combiner Rule #145: constant_fold_fneg
8481 /* 8714 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
8482 /* 8717 */ // Label 458: @8717
8483 /* 8717 */ GIM_Try, /*On fail goto*//*Label 459*/ GIMT_Encode4(8746), // Rule ID 136 //
8484 /* 8722 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule98Enabled),
8485 /* 8725 */ // MIs[0] dst
8486 /* 8725 */ // No operand predicates
8487 /* 8725 */ // MIs[0] t
8488 /* 8725 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8489 /* 8729 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FNEG),
8490 /* 8733 */ // MIs[1] src
8491 /* 8733 */ // No operand predicates
8492 /* 8733 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
8493 /* 8738 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8494 /* 8740 */ // Combiner Rule #98: fneg_fneg_fold
8495 /* 8740 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
8496 /* 8745 */ GIR_EraseRootFromParent_Done,
8497 /* 8746 */ // Label 459: @8746
8498 /* 8746 */ GIM_Reject,
8499 /* 8747 */ // Label 74: @8747
8500 /* 8747 */ GIM_Try, /*On fail goto*//*Label 460*/ GIMT_Encode4(8768), // Rule ID 194 //
8501 /* 8752 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule150Enabled),
8502 /* 8755 */ // MIs[0] dst
8503 /* 8755 */ // No operand predicates
8504 /* 8755 */ // MIs[0] src0
8505 /* 8755 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8506 /* 8759 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT),
8507 /* 8763 */ // MIs[1] cst
8508 /* 8763 */ // No operand predicates
8509 /* 8763 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8510 /* 8765 */ // Combiner Rule #150: constant_fold_fpext
8511 /* 8765 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
8512 /* 8768 */ // Label 460: @8768
8513 /* 8768 */ GIM_Reject,
8514 /* 8769 */ // Label 75: @8769
8515 /* 8769 */ GIM_Try, /*On fail goto*//*Label 461*/ GIMT_Encode4(8790), // Rule ID 193 //
8516 /* 8774 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule149Enabled),
8517 /* 8777 */ // MIs[0] dst
8518 /* 8777 */ // No operand predicates
8519 /* 8777 */ // MIs[0] src0
8520 /* 8777 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8521 /* 8781 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT),
8522 /* 8785 */ // MIs[1] cst
8523 /* 8785 */ // No operand predicates
8524 /* 8785 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8525 /* 8787 */ // Combiner Rule #149: constant_fold_fptrunc
8526 /* 8787 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
8527 /* 8790 */ // Label 461: @8790
8528 /* 8790 */ GIM_Try, /*On fail goto*//*Label 462*/ GIMT_Encode4(8811), // Rule ID 147 //
8529 /* 8795 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule107Enabled),
8530 /* 8798 */ // MIs[0] dst
8531 /* 8798 */ // No operand predicates
8532 /* 8798 */ // MIs[0] src1
8533 /* 8798 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8534 /* 8802 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FPEXT),
8535 /* 8806 */ // MIs[1] src0
8536 /* 8806 */ // No operand predicates
8537 /* 8806 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8538 /* 8808 */ // Combiner Rule #107: fptrunc_fpext_fold
8539 /* 8808 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner51),
8540 /* 8811 */ // Label 462: @8811
8541 /* 8811 */ GIM_Reject,
8542 /* 8812 */ // Label 76: @8812
8543 /* 8812 */ GIM_Try, /*On fail goto*//*Label 463*/ GIMT_Encode4(8833), // Rule ID 98 //
8544 /* 8817 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule83Enabled),
8545 /* 8820 */ // MIs[0] dst
8546 /* 8820 */ // No operand predicates
8547 /* 8820 */ // MIs[0] __unary_undef_to_undef_match_0.x
8548 /* 8820 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8549 /* 8824 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
8550 /* 8828 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8551 /* 8830 */ // Combiner Rule #83: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[5]]
8552 /* 8830 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner38),
8553 /* 8833 */ // Label 463: @8833
8554 /* 8833 */ GIM_Reject,
8555 /* 8834 */ // Label 77: @8834
8556 /* 8834 */ GIM_Try, /*On fail goto*//*Label 464*/ GIMT_Encode4(8855), // Rule ID 99 //
8557 /* 8839 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule83Enabled),
8558 /* 8842 */ // MIs[0] dst
8559 /* 8842 */ // No operand predicates
8560 /* 8842 */ // MIs[0] __unary_undef_to_undef_match_0.x
8561 /* 8842 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8562 /* 8846 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
8563 /* 8850 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8564 /* 8852 */ // Combiner Rule #83: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[6]]
8565 /* 8852 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner38),
8566 /* 8855 */ // Label 464: @8855
8567 /* 8855 */ GIM_Reject,
8568 /* 8856 */ // Label 78: @8856
8569 /* 8856 */ GIM_Try, /*On fail goto*//*Label 465*/ GIMT_Encode4(8867), // Rule ID 82 //
8570 /* 8861 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule77Enabled),
8571 /* 8864 */ // Combiner Rule #77: undef_to_fp_zero; wip_match_opcode 'G_SITOFP'
8572 /* 8864 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner33),
8573 /* 8867 */ // Label 465: @8867
8574 /* 8867 */ GIM_Try, /*On fail goto*//*Label 466*/ GIMT_Encode4(8882), // Rule ID 202 //
8575 /* 8872 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule158Enabled),
8576 /* 8875 */ // MIs[0] dst
8577 /* 8875 */ // No operand predicates
8578 /* 8875 */ // MIs[0] Operand 1
8579 /* 8875 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/1, 0,
8580 /* 8879 */ // Combiner Rule #158: itof_const_zero_fold_si
8581 /* 8879 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner81),
8582 /* 8882 */ // Label 466: @8882
8583 /* 8882 */ GIM_Reject,
8584 /* 8883 */ // Label 79: @8883
8585 /* 8883 */ GIM_Try, /*On fail goto*//*Label 467*/ GIMT_Encode4(8894), // Rule ID 81 //
8586 /* 8888 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule77Enabled),
8587 /* 8891 */ // Combiner Rule #77: undef_to_fp_zero; wip_match_opcode 'G_UITOFP'
8588 /* 8891 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner33),
8589 /* 8894 */ // Label 467: @8894
8590 /* 8894 */ GIM_Try, /*On fail goto*//*Label 468*/ GIMT_Encode4(8909), // Rule ID 203 //
8591 /* 8899 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule159Enabled),
8592 /* 8902 */ // MIs[0] dst
8593 /* 8902 */ // No operand predicates
8594 /* 8902 */ // MIs[0] Operand 1
8595 /* 8902 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/1, 0,
8596 /* 8906 */ // Combiner Rule #159: itof_const_zero_fold_ui
8597 /* 8906 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner81),
8598 /* 8909 */ // Label 468: @8909
8599 /* 8909 */ GIM_Reject,
8600 /* 8910 */ // Label 80: @8910
8601 /* 8910 */ GIM_Try, /*On fail goto*//*Label 469*/ GIMT_Encode4(8939), // Rule ID 25 //
8602 /* 8915 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule24Enabled),
8603 /* 8918 */ // MIs[0] dst
8604 /* 8918 */ // No operand predicates
8605 /* 8918 */ // MIs[0] src
8606 /* 8918 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8607 /* 8922 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FABS),
8608 /* 8926 */ // MIs[1] __idempotent_prop_match_0.x
8609 /* 8926 */ // No operand predicates
8610 /* 8926 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8611 /* 8931 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8612 /* 8933 */ // Combiner Rule #24: idempotent_prop @ [__idempotent_prop_match_0[1]]
8613 /* 8933 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8614 /* 8938 */ GIR_EraseRootFromParent_Done,
8615 /* 8939 */ // Label 469: @8939
8616 /* 8939 */ GIM_Try, /*On fail goto*//*Label 470*/ GIMT_Encode4(8960), // Rule ID 190 //
8617 /* 8944 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule146Enabled),
8618 /* 8947 */ // MIs[0] dst
8619 /* 8947 */ // No operand predicates
8620 /* 8947 */ // MIs[0] src0
8621 /* 8947 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8622 /* 8951 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT),
8623 /* 8955 */ // MIs[1] cst
8624 /* 8955 */ // No operand predicates
8625 /* 8955 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8626 /* 8957 */ // Combiner Rule #146: constant_fold_fabs
8627 /* 8957 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
8628 /* 8960 */ // Label 470: @8960
8629 /* 8960 */ GIM_Try, /*On fail goto*//*Label 471*/ GIMT_Encode4(8988), // Rule ID 299 //
8630 /* 8965 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule192Enabled),
8631 /* 8968 */ // MIs[0] dst
8632 /* 8968 */ // No operand predicates
8633 /* 8968 */ // MIs[0] tmp
8634 /* 8968 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8635 /* 8972 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FNEG),
8636 /* 8976 */ // MIs[1] x
8637 /* 8976 */ // No operand predicates
8638 /* 8976 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8639 /* 8978 */ // Combiner Rule #192: fabs_fneg_fold
8640 /* 8978 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FABS),
8641 /* 8981 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
8642 /* 8983 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
8643 /* 8987 */ GIR_EraseRootFromParent_Done,
8644 /* 8988 */ // Label 471: @8988
8645 /* 8988 */ GIM_Reject,
8646 /* 8989 */ // Label 81: @8989
8647 /* 8989 */ GIM_Try, /*On fail goto*//*Label 472*/ GIMT_Encode4(9000), // Rule ID 279 //
8648 /* 8994 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule188Enabled),
8649 /* 8997 */ // MIs[0] d
8650 /* 8997 */ // No operand predicates
8651 /* 8997 */ // MIs[0] mi.src0
8652 /* 8997 */ // No operand predicates
8653 /* 8997 */ // MIs[0] mi.src1
8654 /* 8997 */ // No operand predicates
8655 /* 8997 */ // Combiner Rule #188: constant_fold_fp_binop @ [mi[5]]
8656 /* 8997 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner104),
8657 /* 9000 */ // Label 472: @9000
8658 /* 9000 */ GIM_Reject,
8659 /* 9001 */ // Label 82: @9001
8660 /* 9001 */ GIM_Try, /*On fail goto*//*Label 473*/ GIMT_Encode4(9030), // Rule ID 26 //
8661 /* 9006 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule24Enabled),
8662 /* 9009 */ // MIs[0] dst
8663 /* 9009 */ // No operand predicates
8664 /* 9009 */ // MIs[0] src
8665 /* 9009 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8666 /* 9013 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCANONICALIZE),
8667 /* 9017 */ // MIs[1] __idempotent_prop_match_0.x
8668 /* 9017 */ // No operand predicates
8669 /* 9017 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8670 /* 9022 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8671 /* 9024 */ // Combiner Rule #24: idempotent_prop @ [__idempotent_prop_match_0[2]]
8672 /* 9024 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8673 /* 9029 */ GIR_EraseRootFromParent_Done,
8674 /* 9030 */ // Label 473: @9030
8675 /* 9030 */ GIM_Reject,
8676 /* 9031 */ // Label 83: @9031
8677 /* 9031 */ GIM_Try, /*On fail goto*//*Label 474*/ GIMT_Encode4(9042), // Rule ID 214 //
8678 /* 9036 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule165Enabled),
8679 /* 9039 */ // Combiner Rule #165: combine_minmax_nan; wip_match_opcode 'G_FMINNUM'
8680 /* 9039 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner87),
8681 /* 9042 */ // Label 474: @9042
8682 /* 9042 */ GIM_Try, /*On fail goto*//*Label 475*/ GIMT_Encode4(9053), // Rule ID 338 //
8683 /* 9047 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
8684 /* 9050 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_FMINNUM'
8685 /* 9050 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
8686 /* 9053 */ // Label 475: @9053
8687 /* 9053 */ GIM_Try, /*On fail goto*//*Label 476*/ GIMT_Encode4(9064), // Rule ID 376 //
8688 /* 9058 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule217Enabled),
8689 /* 9061 */ // Combiner Rule #217: commute_fp_constant_to_rhs; wip_match_opcode 'G_FMINNUM'
8690 /* 9061 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner130),
8691 /* 9064 */ // Label 476: @9064
8692 /* 9064 */ GIM_Try, /*On fail goto*//*Label 477*/ GIMT_Encode4(9075), // Rule ID 280 //
8693 /* 9069 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule188Enabled),
8694 /* 9072 */ // MIs[0] d
8695 /* 9072 */ // No operand predicates
8696 /* 9072 */ // MIs[0] mi.src0
8697 /* 9072 */ // No operand predicates
8698 /* 9072 */ // MIs[0] mi.src1
8699 /* 9072 */ // No operand predicates
8700 /* 9072 */ // Combiner Rule #188: constant_fold_fp_binop @ [mi[6]]
8701 /* 9072 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner104),
8702 /* 9075 */ // Label 477: @9075
8703 /* 9075 */ GIM_Reject,
8704 /* 9076 */ // Label 84: @9076
8705 /* 9076 */ GIM_Try, /*On fail goto*//*Label 478*/ GIMT_Encode4(9087), // Rule ID 215 //
8706 /* 9081 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule165Enabled),
8707 /* 9084 */ // Combiner Rule #165: combine_minmax_nan; wip_match_opcode 'G_FMAXNUM'
8708 /* 9084 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner87),
8709 /* 9087 */ // Label 478: @9087
8710 /* 9087 */ GIM_Try, /*On fail goto*//*Label 479*/ GIMT_Encode4(9098), // Rule ID 339 //
8711 /* 9092 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
8712 /* 9095 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_FMAXNUM'
8713 /* 9095 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
8714 /* 9098 */ // Label 479: @9098
8715 /* 9098 */ GIM_Try, /*On fail goto*//*Label 480*/ GIMT_Encode4(9109), // Rule ID 377 //
8716 /* 9103 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule217Enabled),
8717 /* 9106 */ // Combiner Rule #217: commute_fp_constant_to_rhs; wip_match_opcode 'G_FMAXNUM'
8718 /* 9106 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner130),
8719 /* 9109 */ // Label 480: @9109
8720 /* 9109 */ GIM_Try, /*On fail goto*//*Label 481*/ GIMT_Encode4(9120), // Rule ID 281 //
8721 /* 9114 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule188Enabled),
8722 /* 9117 */ // MIs[0] d
8723 /* 9117 */ // No operand predicates
8724 /* 9117 */ // MIs[0] mi.src0
8725 /* 9117 */ // No operand predicates
8726 /* 9117 */ // MIs[0] mi.src1
8727 /* 9117 */ // No operand predicates
8728 /* 9117 */ // Combiner Rule #188: constant_fold_fp_binop @ [mi[7]]
8729 /* 9117 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner104),
8730 /* 9120 */ // Label 481: @9120
8731 /* 9120 */ GIM_Reject,
8732 /* 9121 */ // Label 85: @9121
8733 /* 9121 */ GIM_Try, /*On fail goto*//*Label 482*/ GIMT_Encode4(9132), // Rule ID 378 //
8734 /* 9126 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule217Enabled),
8735 /* 9129 */ // Combiner Rule #217: commute_fp_constant_to_rhs; wip_match_opcode 'G_FMINNUM_IEEE'
8736 /* 9129 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner130),
8737 /* 9132 */ // Label 482: @9132
8738 /* 9132 */ GIM_Reject,
8739 /* 9133 */ // Label 86: @9133
8740 /* 9133 */ GIM_Try, /*On fail goto*//*Label 483*/ GIMT_Encode4(9144), // Rule ID 379 //
8741 /* 9138 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule217Enabled),
8742 /* 9141 */ // Combiner Rule #217: commute_fp_constant_to_rhs; wip_match_opcode 'G_FMAXNUM_IEEE'
8743 /* 9141 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner130),
8744 /* 9144 */ // Label 483: @9144
8745 /* 9144 */ GIM_Reject,
8746 /* 9145 */ // Label 87: @9145
8747 /* 9145 */ GIM_Try, /*On fail goto*//*Label 484*/ GIMT_Encode4(9156), // Rule ID 216 //
8748 /* 9150 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule165Enabled),
8749 /* 9153 */ // Combiner Rule #165: combine_minmax_nan; wip_match_opcode 'G_FMINIMUM'
8750 /* 9153 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner87),
8751 /* 9156 */ // Label 484: @9156
8752 /* 9156 */ GIM_Try, /*On fail goto*//*Label 485*/ GIMT_Encode4(9167), // Rule ID 340 //
8753 /* 9161 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
8754 /* 9164 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_FMINIMUM'
8755 /* 9164 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
8756 /* 9167 */ // Label 485: @9167
8757 /* 9167 */ GIM_Try, /*On fail goto*//*Label 486*/ GIMT_Encode4(9178), // Rule ID 380 //
8758 /* 9172 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule217Enabled),
8759 /* 9175 */ // Combiner Rule #217: commute_fp_constant_to_rhs; wip_match_opcode 'G_FMINIMUM'
8760 /* 9175 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner130),
8761 /* 9178 */ // Label 486: @9178
8762 /* 9178 */ GIM_Try, /*On fail goto*//*Label 487*/ GIMT_Encode4(9189), // Rule ID 282 //
8763 /* 9183 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule188Enabled),
8764 /* 9186 */ // MIs[0] d
8765 /* 9186 */ // No operand predicates
8766 /* 9186 */ // MIs[0] mi.src0
8767 /* 9186 */ // No operand predicates
8768 /* 9186 */ // MIs[0] mi.src1
8769 /* 9186 */ // No operand predicates
8770 /* 9186 */ // Combiner Rule #188: constant_fold_fp_binop @ [mi[8]]
8771 /* 9186 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner104),
8772 /* 9189 */ // Label 487: @9189
8773 /* 9189 */ GIM_Reject,
8774 /* 9190 */ // Label 88: @9190
8775 /* 9190 */ GIM_Try, /*On fail goto*//*Label 488*/ GIMT_Encode4(9201), // Rule ID 217 //
8776 /* 9195 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule165Enabled),
8777 /* 9198 */ // Combiner Rule #165: combine_minmax_nan; wip_match_opcode 'G_FMAXIMUM'
8778 /* 9198 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner87),
8779 /* 9201 */ // Label 488: @9201
8780 /* 9201 */ GIM_Try, /*On fail goto*//*Label 489*/ GIMT_Encode4(9212), // Rule ID 341 //
8781 /* 9206 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
8782 /* 9209 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_FMAXIMUM'
8783 /* 9209 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
8784 /* 9212 */ // Label 489: @9212
8785 /* 9212 */ GIM_Try, /*On fail goto*//*Label 490*/ GIMT_Encode4(9223), // Rule ID 381 //
8786 /* 9217 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule217Enabled),
8787 /* 9220 */ // Combiner Rule #217: commute_fp_constant_to_rhs; wip_match_opcode 'G_FMAXIMUM'
8788 /* 9220 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner130),
8789 /* 9223 */ // Label 490: @9223
8790 /* 9223 */ GIM_Try, /*On fail goto*//*Label 491*/ GIMT_Encode4(9234), // Rule ID 283 //
8791 /* 9228 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule188Enabled),
8792 /* 9231 */ // MIs[0] d
8793 /* 9231 */ // No operand predicates
8794 /* 9231 */ // MIs[0] mi.src0
8795 /* 9231 */ // No operand predicates
8796 /* 9231 */ // MIs[0] mi.src1
8797 /* 9231 */ // No operand predicates
8798 /* 9231 */ // Combiner Rule #188: constant_fold_fp_binop @ [mi[9]]
8799 /* 9231 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner104),
8800 /* 9234 */ // Label 491: @9234
8801 /* 9234 */ GIM_Reject,
8802 /* 9235 */ // Label 89: @9235
8803 /* 9235 */ GIM_Try, /*On fail goto*//*Label 492*/ GIMT_Encode4(9246), // Rule ID 284 //
8804 /* 9240 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule188Enabled),
8805 /* 9243 */ // MIs[0] d
8806 /* 9243 */ // No operand predicates
8807 /* 9243 */ // MIs[0] mi.src0
8808 /* 9243 */ // No operand predicates
8809 /* 9243 */ // MIs[0] mi.src1
8810 /* 9243 */ // No operand predicates
8811 /* 9243 */ // Combiner Rule #188: constant_fold_fp_binop @ [mi[10]]
8812 /* 9243 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner104),
8813 /* 9246 */ // Label 492: @9246
8814 /* 9246 */ GIM_Reject,
8815 /* 9247 */ // Label 90: @9247
8816 /* 9247 */ GIM_Try, /*On fail goto*//*Label 493*/ GIMT_Encode4(9258), // Rule ID 285 //
8817 /* 9252 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule188Enabled),
8818 /* 9255 */ // MIs[0] d
8819 /* 9255 */ // No operand predicates
8820 /* 9255 */ // MIs[0] mi.src0
8821 /* 9255 */ // No operand predicates
8822 /* 9255 */ // MIs[0] mi.src1
8823 /* 9255 */ // No operand predicates
8824 /* 9255 */ // Combiner Rule #188: constant_fold_fp_binop @ [mi[11]]
8825 /* 9255 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner104),
8826 /* 9258 */ // Label 493: @9258
8827 /* 9258 */ GIM_Reject,
8828 /* 9259 */ // Label 91: @9259
8829 /* 9259 */ GIM_Try, /*On fail goto*//*Label 494*/ GIMT_Encode4(9270), // Rule ID 159 //
8830 /* 9264 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule115Enabled),
8831 /* 9267 */ // Combiner Rule #115: reassoc_ptradd; wip_match_opcode 'G_PTR_ADD'
8832 /* 9267 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner56),
8833 /* 9270 */ // Label 494: @9270
8834 /* 9270 */ GIM_Try, /*On fail goto*//*Label 495*/ GIMT_Encode4(9281), // Rule ID 161 //
8835 /* 9275 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule117Enabled),
8836 /* 9278 */ // Combiner Rule #117: ptr_add_immed_chain; wip_match_opcode 'G_PTR_ADD'
8837 /* 9278 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner58),
8838 /* 9281 */ // Label 495: @9281
8839 /* 9281 */ GIM_Try, /*On fail goto*//*Label 496*/ GIMT_Encode4(9292), // Rule ID 204 //
8840 /* 9286 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule160Enabled),
8841 /* 9289 */ // Combiner Rule #160: const_ptradd_to_i2p; wip_match_opcode 'G_PTR_ADD'
8842 /* 9289 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner82),
8843 /* 9292 */ // Label 496: @9292
8844 /* 9292 */ GIM_Try, /*On fail goto*//*Label 497*/ GIMT_Encode4(9303), // Rule ID 220 //
8845 /* 9297 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule168Enabled),
8846 /* 9300 */ // Combiner Rule #168: ptr_add_with_zero; wip_match_opcode 'G_PTR_ADD'
8847 /* 9300 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner90),
8848 /* 9303 */ // Label 497: @9303
8849 /* 9303 */ GIM_Try, /*On fail goto*//*Label 498*/ GIMT_Encode4(9314), // Rule ID 257 //
8850 /* 9308 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled),
8851 /* 9311 */ // Combiner Rule #187: constant_fold_binop; wip_match_opcode 'G_PTR_ADD'
8852 /* 9311 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103),
8853 /* 9314 */ // Label 498: @9314
8854 /* 9314 */ GIM_Try, /*On fail goto*//*Label 499*/ GIMT_Encode4(9325), // Rule ID 318 //
8855 /* 9319 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
8856 /* 9322 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_PTR_ADD'
8857 /* 9322 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
8858 /* 9325 */ // Label 499: @9325
8859 /* 9325 */ GIM_Try, /*On fail goto*//*Label 500*/ GIMT_Encode4(9348), // Rule ID 117 //
8860 /* 9330 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled),
8861 /* 9333 */ // MIs[0] dst
8862 /* 9333 */ // No operand predicates
8863 /* 9333 */ // MIs[0] lhs
8864 /* 9333 */ // No operand predicates
8865 /* 9333 */ // MIs[0] Operand 2
8866 /* 9333 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
8867 /* 9337 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8868 /* 9342 */ // Combiner Rule #90: right_identity_zero @ [__right_identity_zero_match_0[7]]
8869 /* 9342 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8870 /* 9347 */ GIR_EraseRootFromParent_Done,
8871 /* 9348 */ // Label 500: @9348
8872 /* 9348 */ GIM_Reject,
8873 /* 9349 */ // Label 92: @9349
8874 /* 9349 */ GIM_Try, /*On fail goto*//*Label 501*/ GIMT_Encode4(9360), // Rule ID 270 //
8875 /* 9354 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled),
8876 /* 9357 */ // Combiner Rule #187: constant_fold_binop; wip_match_opcode 'G_SMIN'
8877 /* 9357 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103),
8878 /* 9360 */ // Label 501: @9360
8879 /* 9360 */ GIM_Try, /*On fail goto*//*Label 502*/ GIMT_Encode4(9371), // Rule ID 329 //
8880 /* 9365 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
8881 /* 9368 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_SMIN'
8882 /* 9368 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
8883 /* 9371 */ // Label 502: @9371
8884 /* 9371 */ GIM_Try, /*On fail goto*//*Label 503*/ GIMT_Encode4(9382), // Rule ID 358 //
8885 /* 9376 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
8886 /* 9379 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_SMIN'
8887 /* 9379 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129),
8888 /* 9382 */ // Label 503: @9382
8889 /* 9382 */ GIM_Reject,
8890 /* 9383 */ // Label 93: @9383
8891 /* 9383 */ GIM_Try, /*On fail goto*//*Label 504*/ GIMT_Encode4(9394), // Rule ID 271 //
8892 /* 9388 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled),
8893 /* 9391 */ // Combiner Rule #187: constant_fold_binop; wip_match_opcode 'G_SMAX'
8894 /* 9391 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103),
8895 /* 9394 */ // Label 504: @9394
8896 /* 9394 */ GIM_Try, /*On fail goto*//*Label 505*/ GIMT_Encode4(9405), // Rule ID 330 //
8897 /* 9399 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
8898 /* 9402 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_SMAX'
8899 /* 9402 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
8900 /* 9405 */ // Label 505: @9405
8901 /* 9405 */ GIM_Try, /*On fail goto*//*Label 506*/ GIMT_Encode4(9416), // Rule ID 359 //
8902 /* 9410 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
8903 /* 9413 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_SMAX'
8904 /* 9413 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129),
8905 /* 9416 */ // Label 506: @9416
8906 /* 9416 */ GIM_Reject,
8907 /* 9417 */ // Label 94: @9417
8908 /* 9417 */ GIM_Try, /*On fail goto*//*Label 507*/ GIMT_Encode4(9428), // Rule ID 272 //
8909 /* 9422 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled),
8910 /* 9425 */ // Combiner Rule #187: constant_fold_binop; wip_match_opcode 'G_UMIN'
8911 /* 9425 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103),
8912 /* 9428 */ // Label 507: @9428
8913 /* 9428 */ GIM_Try, /*On fail goto*//*Label 508*/ GIMT_Encode4(9439), // Rule ID 331 //
8914 /* 9433 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
8915 /* 9436 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_UMIN'
8916 /* 9436 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
8917 /* 9439 */ // Label 508: @9439
8918 /* 9439 */ GIM_Try, /*On fail goto*//*Label 509*/ GIMT_Encode4(9450), // Rule ID 360 //
8919 /* 9444 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
8920 /* 9447 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_UMIN'
8921 /* 9447 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129),
8922 /* 9450 */ // Label 509: @9450
8923 /* 9450 */ GIM_Reject,
8924 /* 9451 */ // Label 95: @9451
8925 /* 9451 */ GIM_Try, /*On fail goto*//*Label 510*/ GIMT_Encode4(9462), // Rule ID 273 //
8926 /* 9456 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled),
8927 /* 9459 */ // Combiner Rule #187: constant_fold_binop; wip_match_opcode 'G_UMAX'
8928 /* 9459 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103),
8929 /* 9462 */ // Label 510: @9462
8930 /* 9462 */ GIM_Try, /*On fail goto*//*Label 511*/ GIMT_Encode4(9473), // Rule ID 332 //
8931 /* 9467 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
8932 /* 9470 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_UMAX'
8933 /* 9470 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
8934 /* 9473 */ // Label 511: @9473
8935 /* 9473 */ GIM_Try, /*On fail goto*//*Label 512*/ GIMT_Encode4(9484), // Rule ID 361 //
8936 /* 9478 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
8937 /* 9481 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_UMAX'
8938 /* 9481 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129),
8939 /* 9484 */ // Label 512: @9484
8940 /* 9484 */ GIM_Reject,
8941 /* 9485 */ // Label 96: @9485
8942 /* 9485 */ GIM_Try, /*On fail goto*//*Label 513*/ GIMT_Encode4(9496), // Rule ID 92 //
8943 /* 9490 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule82Enabled),
8944 /* 9493 */ // Combiner Rule #82: unary_undef_to_zero; wip_match_opcode 'G_ABS'
8945 /* 9493 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner36),
8946 /* 9496 */ // Label 513: @9496
8947 /* 9496 */ GIM_Try, /*On fail goto*//*Label 514*/ GIMT_Encode4(9507), // Rule ID 296 //
8948 /* 9501 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule191Enabled),
8949 /* 9504 */ // MIs[0] dst
8950 /* 9504 */ // No operand predicates
8951 /* 9504 */ // MIs[0] mi.src
8952 /* 9504 */ // No operand predicates
8953 /* 9504 */ // Combiner Rule #191: constant_fold_unary_int_op @ [mi[5]]
8954 /* 9504 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner107),
8955 /* 9507 */ // Label 514: @9507
8956 /* 9507 */ GIM_Reject,
8957 /* 9508 */ // Label 97: @9508
8958 /* 9508 */ GIM_Try, /*On fail goto*//*Label 515*/ GIMT_Encode4(9519), // Rule ID 188 //
8959 /* 9513 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule144Enabled),
8960 /* 9516 */ // Combiner Rule #144: opt_brcond_by_inverting_cond; wip_match_opcode 'G_BR'
8961 /* 9516 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner79),
8962 /* 9519 */ // Label 515: @9519
8963 /* 9519 */ GIM_Reject,
8964 /* 9520 */ // Label 98: @9520
8965 /* 9520 */ GIM_Try, /*On fail goto*//*Label 516*/ GIMT_Encode4(9531), // Rule ID 32 //
8966 /* 9525 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule30Enabled),
8967 /* 9528 */ // Combiner Rule #30: insert_vector_elt_oob; wip_match_opcode 'G_INSERT_VECTOR_ELT'
8968 /* 9528 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner10),
8969 /* 9531 */ // Label 516: @9531
8970 /* 9531 */ GIM_Try, /*On fail goto*//*Label 517*/ GIMT_Encode4(9542), // Rule ID 73 //
8971 /* 9536 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule71Enabled),
8972 /* 9539 */ // Combiner Rule #71: combine_insert_vec_elts_build_vector; wip_match_opcode 'G_INSERT_VECTOR_ELT'
8973 /* 9539 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner27),
8974 /* 9542 */ // Label 517: @9542
8975 /* 9542 */ GIM_Try, /*On fail goto*//*Label 518*/ GIMT_Encode4(9553), // Rule ID 107 //
8976 /* 9547 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule88Enabled),
8977 /* 9550 */ // Combiner Rule #88: insert_extract_vec_elt_out_of_bounds; wip_match_opcode 'G_INSERT_VECTOR_ELT'
8978 /* 9550 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner43),
8979 /* 9553 */ // Label 518: @9553
8980 /* 9553 */ GIM_Try, /*On fail goto*//*Label 519*/ GIMT_Encode4(9592), // Rule ID 44 //
8981 /* 9558 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule42Enabled),
8982 /* 9561 */ // MIs[0] root
8983 /* 9561 */ // No operand predicates
8984 /* 9561 */ // MIs[0] src
8985 /* 9561 */ // No operand predicates
8986 /* 9561 */ // MIs[0] elt
8987 /* 9561 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
8988 /* 9565 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_EXTRACT_VECTOR_ELT),
8989 /* 9569 */ // MIs[1] src
8990 /* 9569 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/1, /*OpIdx*/1, /*OtherMI*/0, /*OtherOpIdx*/1,
8991 /* 9574 */ // MIs[1] idx
8992 /* 9574 */ // No operand predicates
8993 /* 9574 */ // MIs[0] idx
8994 /* 9574 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/3, /*OtherMI*/1, /*OtherOpIdx*/2,
8995 /* 9579 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8996 /* 9584 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8997 /* 9586 */ // Combiner Rule #42: insert_vector_element_extract_vector_element
8998 /* 9586 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8999 /* 9591 */ GIR_EraseRootFromParent_Done,
9000 /* 9592 */ // Label 519: @9592
9001 /* 9592 */ GIM_Try, /*On fail goto*//*Label 520*/ GIMT_Encode4(9625), // Rule ID 30 //
9002 /* 9597 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule28Enabled),
9003 /* 9600 */ // MIs[0] root
9004 /* 9600 */ // No operand predicates
9005 /* 9600 */ // MIs[0] src
9006 /* 9600 */ // No operand predicates
9007 /* 9600 */ // MIs[0] elt
9008 /* 9600 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
9009 /* 9604 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
9010 /* 9608 */ // MIs[0] idx
9011 /* 9608 */ // No operand predicates
9012 /* 9608 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner2),
9013 /* 9612 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9014 /* 9617 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9015 /* 9619 */ // Combiner Rule #28: insert_vector_element_elt_undef
9016 /* 9619 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9017 /* 9624 */ GIR_EraseRootFromParent_Done,
9018 /* 9625 */ // Label 520: @9625
9019 /* 9625 */ GIM_Try, /*On fail goto*//*Label 521*/ GIMT_Encode4(9649), // Rule ID 29 //
9020 /* 9630 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule27Enabled),
9021 /* 9633 */ // MIs[0] root
9022 /* 9633 */ // No operand predicates
9023 /* 9633 */ // MIs[0] src
9024 /* 9633 */ // No operand predicates
9025 /* 9633 */ // MIs[0] elt
9026 /* 9633 */ // No operand predicates
9027 /* 9633 */ // MIs[0] idx
9028 /* 9633 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/3, // MIs[1]
9029 /* 9637 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
9030 /* 9641 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9031 /* 9643 */ // Combiner Rule #27: insert_vector_element_idx_undef
9032 /* 9643 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
9033 /* 9646 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
9034 /* 9648 */ GIR_EraseRootFromParent_Done,
9035 /* 9649 */ // Label 521: @9649
9036 /* 9649 */ GIM_Reject,
9037 /* 9650 */ // Label 99: @9650
9038 /* 9650 */ GIM_Try, /*On fail goto*//*Label 522*/ GIMT_Encode4(9661), // Rule ID 31 //
9039 /* 9655 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule29Enabled),
9040 /* 9658 */ // Combiner Rule #29: match_extract_of_element; wip_match_opcode 'G_EXTRACT_VECTOR_ELT'
9041 /* 9658 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner9),
9042 /* 9661 */ // Label 522: @9661
9043 /* 9661 */ GIM_Try, /*On fail goto*//*Label 523*/ GIMT_Encode4(9672), // Rule ID 74 //
9044 /* 9666 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule72Enabled),
9045 /* 9669 */ // Combiner Rule #72: extract_vec_elt_build_vec; wip_match_opcode 'G_EXTRACT_VECTOR_ELT'
9046 /* 9669 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner28),
9047 /* 9672 */ // Label 523: @9672
9048 /* 9672 */ GIM_Try, /*On fail goto*//*Label 524*/ GIMT_Encode4(9683), // Rule ID 80 //
9049 /* 9677 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule76Enabled),
9050 /* 9680 */ // Combiner Rule #76: combine_extracted_vector_load; wip_match_opcode 'G_EXTRACT_VECTOR_ELT'
9051 /* 9680 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner32),
9052 /* 9683 */ // Label 524: @9683
9053 /* 9683 */ GIM_Try, /*On fail goto*//*Label 525*/ GIMT_Encode4(9694), // Rule ID 108 //
9054 /* 9688 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule88Enabled),
9055 /* 9691 */ // Combiner Rule #88: insert_extract_vec_elt_out_of_bounds; wip_match_opcode 'G_EXTRACT_VECTOR_ELT'
9056 /* 9691 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner43),
9057 /* 9694 */ // Label 525: @9694
9058 /* 9694 */ GIM_Try, /*On fail goto*//*Label 526*/ GIMT_Encode4(9718), // Rule ID 42 //
9059 /* 9699 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule40Enabled),
9060 /* 9702 */ // MIs[0] root
9061 /* 9702 */ // No operand predicates
9062 /* 9702 */ // MIs[0] src
9063 /* 9702 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9064 /* 9706 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR_TRUNC),
9065 /* 9710 */ GIM_CheckNumOperands, /*MI*/1, /*Expected*/9,
9066 /* 9713 */ // MIs[1] x
9067 /* 9713 */ // No operand predicates
9068 /* 9713 */ // MIs[1] y
9069 /* 9713 */ // No operand predicates
9070 /* 9713 */ // MIs[1] z
9071 /* 9713 */ // No operand predicates
9072 /* 9713 */ // MIs[1] a
9073 /* 9713 */ // No operand predicates
9074 /* 9713 */ // MIs[1] b
9075 /* 9713 */ // No operand predicates
9076 /* 9713 */ // MIs[1] c
9077 /* 9713 */ // No operand predicates
9078 /* 9713 */ // MIs[1] d
9079 /* 9713 */ // No operand predicates
9080 /* 9713 */ // MIs[1] e
9081 /* 9713 */ // No operand predicates
9082 /* 9713 */ // MIs[0] idx
9083 /* 9713 */ // No operand predicates
9084 /* 9713 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9085 /* 9715 */ // Combiner Rule #40: extract_vector_element_build_vector_trunc8
9086 /* 9715 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner13),
9087 /* 9718 */ // Label 526: @9718
9088 /* 9718 */ GIM_Try, /*On fail goto*//*Label 527*/ GIMT_Encode4(9742), // Rule ID 41 //
9089 /* 9723 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule39Enabled),
9090 /* 9726 */ // MIs[0] root
9091 /* 9726 */ // No operand predicates
9092 /* 9726 */ // MIs[0] src
9093 /* 9726 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9094 /* 9730 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR_TRUNC),
9095 /* 9734 */ GIM_CheckNumOperands, /*MI*/1, /*Expected*/8,
9096 /* 9737 */ // MIs[1] x
9097 /* 9737 */ // No operand predicates
9098 /* 9737 */ // MIs[1] y
9099 /* 9737 */ // No operand predicates
9100 /* 9737 */ // MIs[1] z
9101 /* 9737 */ // No operand predicates
9102 /* 9737 */ // MIs[1] a
9103 /* 9737 */ // No operand predicates
9104 /* 9737 */ // MIs[1] b
9105 /* 9737 */ // No operand predicates
9106 /* 9737 */ // MIs[1] c
9107 /* 9737 */ // No operand predicates
9108 /* 9737 */ // MIs[1] d
9109 /* 9737 */ // No operand predicates
9110 /* 9737 */ // MIs[0] idx
9111 /* 9737 */ // No operand predicates
9112 /* 9737 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9113 /* 9739 */ // Combiner Rule #39: extract_vector_element_build_vector_trunc7
9114 /* 9739 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner13),
9115 /* 9742 */ // Label 527: @9742
9116 /* 9742 */ GIM_Try, /*On fail goto*//*Label 528*/ GIMT_Encode4(9766), // Rule ID 40 //
9117 /* 9747 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule38Enabled),
9118 /* 9750 */ // MIs[0] root
9119 /* 9750 */ // No operand predicates
9120 /* 9750 */ // MIs[0] src
9121 /* 9750 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9122 /* 9754 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR_TRUNC),
9123 /* 9758 */ GIM_CheckNumOperands, /*MI*/1, /*Expected*/7,
9124 /* 9761 */ // MIs[1] x
9125 /* 9761 */ // No operand predicates
9126 /* 9761 */ // MIs[1] y
9127 /* 9761 */ // No operand predicates
9128 /* 9761 */ // MIs[1] z
9129 /* 9761 */ // No operand predicates
9130 /* 9761 */ // MIs[1] a
9131 /* 9761 */ // No operand predicates
9132 /* 9761 */ // MIs[1] b
9133 /* 9761 */ // No operand predicates
9134 /* 9761 */ // MIs[1] c
9135 /* 9761 */ // No operand predicates
9136 /* 9761 */ // MIs[0] idx
9137 /* 9761 */ // No operand predicates
9138 /* 9761 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9139 /* 9763 */ // Combiner Rule #38: extract_vector_element_build_vector_trunc6
9140 /* 9763 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner13),
9141 /* 9766 */ // Label 528: @9766
9142 /* 9766 */ GIM_Try, /*On fail goto*//*Label 529*/ GIMT_Encode4(9790), // Rule ID 39 //
9143 /* 9771 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule37Enabled),
9144 /* 9774 */ // MIs[0] root
9145 /* 9774 */ // No operand predicates
9146 /* 9774 */ // MIs[0] src
9147 /* 9774 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9148 /* 9778 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR_TRUNC),
9149 /* 9782 */ GIM_CheckNumOperands, /*MI*/1, /*Expected*/6,
9150 /* 9785 */ // MIs[1] x
9151 /* 9785 */ // No operand predicates
9152 /* 9785 */ // MIs[1] y
9153 /* 9785 */ // No operand predicates
9154 /* 9785 */ // MIs[1] z
9155 /* 9785 */ // No operand predicates
9156 /* 9785 */ // MIs[1] a
9157 /* 9785 */ // No operand predicates
9158 /* 9785 */ // MIs[1] b
9159 /* 9785 */ // No operand predicates
9160 /* 9785 */ // MIs[0] idx
9161 /* 9785 */ // No operand predicates
9162 /* 9785 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9163 /* 9787 */ // Combiner Rule #37: extract_vector_element_build_vector_trunc5
9164 /* 9787 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner13),
9165 /* 9790 */ // Label 529: @9790
9166 /* 9790 */ GIM_Try, /*On fail goto*//*Label 530*/ GIMT_Encode4(9814), // Rule ID 38 //
9167 /* 9795 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule36Enabled),
9168 /* 9798 */ // MIs[0] root
9169 /* 9798 */ // No operand predicates
9170 /* 9798 */ // MIs[0] src
9171 /* 9798 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9172 /* 9802 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR_TRUNC),
9173 /* 9806 */ GIM_CheckNumOperands, /*MI*/1, /*Expected*/5,
9174 /* 9809 */ // MIs[1] x
9175 /* 9809 */ // No operand predicates
9176 /* 9809 */ // MIs[1] y
9177 /* 9809 */ // No operand predicates
9178 /* 9809 */ // MIs[1] z
9179 /* 9809 */ // No operand predicates
9180 /* 9809 */ // MIs[1] a
9181 /* 9809 */ // No operand predicates
9182 /* 9809 */ // MIs[0] idx
9183 /* 9809 */ // No operand predicates
9184 /* 9809 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9185 /* 9811 */ // Combiner Rule #36: extract_vector_element_build_vector_trunc4
9186 /* 9811 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner13),
9187 /* 9814 */ // Label 530: @9814
9188 /* 9814 */ GIM_Try, /*On fail goto*//*Label 531*/ GIMT_Encode4(9838), // Rule ID 37 //
9189 /* 9819 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule35Enabled),
9190 /* 9822 */ // MIs[0] root
9191 /* 9822 */ // No operand predicates
9192 /* 9822 */ // MIs[0] src
9193 /* 9822 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9194 /* 9826 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR_TRUNC),
9195 /* 9830 */ GIM_CheckNumOperands, /*MI*/1, /*Expected*/4,
9196 /* 9833 */ // MIs[1] x
9197 /* 9833 */ // No operand predicates
9198 /* 9833 */ // MIs[1] y
9199 /* 9833 */ // No operand predicates
9200 /* 9833 */ // MIs[1] z
9201 /* 9833 */ // No operand predicates
9202 /* 9833 */ // MIs[0] idx
9203 /* 9833 */ // No operand predicates
9204 /* 9833 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9205 /* 9835 */ // Combiner Rule #35: extract_vector_element_build_vector_trunc3
9206 /* 9835 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner13),
9207 /* 9838 */ // Label 531: @9838
9208 /* 9838 */ GIM_Try, /*On fail goto*//*Label 532*/ GIMT_Encode4(9872), // Rule ID 33 //
9209 /* 9843 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule31Enabled),
9210 /* 9846 */ // MIs[0] root
9211 /* 9846 */ // No operand predicates
9212 /* 9846 */ // MIs[0] src
9213 /* 9846 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9214 /* 9850 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_INSERT_VECTOR_ELT),
9215 /* 9854 */ // MIs[1] x
9216 /* 9854 */ // No operand predicates
9217 /* 9854 */ // MIs[1] value
9218 /* 9854 */ // No operand predicates
9219 /* 9854 */ // MIs[1] idx
9220 /* 9854 */ // No operand predicates
9221 /* 9854 */ // MIs[0] idx
9222 /* 9854 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/3,
9223 /* 9859 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/2,
9224 /* 9864 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9225 /* 9866 */ // Combiner Rule #31: extract_vector_element_not_const
9226 /* 9866 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/2,
9227 /* 9871 */ GIR_EraseRootFromParent_Done,
9228 /* 9872 */ // Label 532: @9872
9229 /* 9872 */ GIM_Try, /*On fail goto*//*Label 533*/ GIMT_Encode4(9893), // Rule ID 34 //
9230 /* 9877 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule32Enabled),
9231 /* 9880 */ // MIs[0] root
9232 /* 9880 */ // No operand predicates
9233 /* 9880 */ // MIs[0] src
9234 /* 9880 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9235 /* 9884 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_INSERT_VECTOR_ELT),
9236 /* 9888 */ // MIs[1] x
9237 /* 9888 */ // No operand predicates
9238 /* 9888 */ // MIs[1] value
9239 /* 9888 */ // No operand predicates
9240 /* 9888 */ // MIs[1] idx2
9241 /* 9888 */ // No operand predicates
9242 /* 9888 */ // MIs[0] idx1
9243 /* 9888 */ // No operand predicates
9244 /* 9888 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9245 /* 9890 */ // Combiner Rule #32: extract_vector_element_different_indices
9246 /* 9890 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner11),
9247 /* 9893 */ // Label 533: @9893
9248 /* 9893 */ GIM_Try, /*On fail goto*//*Label 534*/ GIMT_Encode4(9922), // Rule ID 43 //
9249 /* 9898 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule41Enabled),
9250 /* 9901 */ // MIs[0] root
9251 /* 9901 */ // No operand predicates
9252 /* 9901 */ // MIs[0] src
9253 /* 9901 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9254 /* 9905 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SHUFFLE_VECTOR),
9255 /* 9909 */ // MIs[1] src1
9256 /* 9909 */ // No operand predicates
9257 /* 9909 */ // MIs[1] src2
9258 /* 9909 */ // No operand predicates
9259 /* 9909 */ // MIs[1] mask
9260 /* 9909 */ // No operand predicates
9261 /* 9909 */ // MIs[0] idx
9262 /* 9909 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
9263 /* 9913 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
9264 /* 9917 */ // MIs[2] imm
9265 /* 9917 */ // No operand predicates
9266 /* 9917 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
9267 /* 9919 */ // Combiner Rule #41: extract_vector_element_shuffle_vector
9268 /* 9919 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner14),
9269 /* 9922 */ // Label 534: @9922
9270 /* 9922 */ GIM_Try, /*On fail goto*//*Label 535*/ GIMT_Encode4(9946), // Rule ID 36 //
9271 /* 9927 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule34Enabled),
9272 /* 9930 */ // MIs[0] root
9273 /* 9930 */ // No operand predicates
9274 /* 9930 */ // MIs[0] src
9275 /* 9930 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9276 /* 9934 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR_TRUNC),
9277 /* 9938 */ GIM_CheckNumOperands, /*MI*/1, /*Expected*/3,
9278 /* 9941 */ // MIs[1] x
9279 /* 9941 */ // No operand predicates
9280 /* 9941 */ // MIs[1] y
9281 /* 9941 */ // No operand predicates
9282 /* 9941 */ // MIs[0] idx
9283 /* 9941 */ // No operand predicates
9284 /* 9941 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9285 /* 9943 */ // Combiner Rule #34: extract_vector_element_build_vector_trunc2
9286 /* 9943 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner13),
9287 /* 9946 */ // Label 535: @9946
9288 /* 9946 */ GIM_Try, /*On fail goto*//*Label 536*/ GIMT_Encode4(9978), // Rule ID 35 //
9289 /* 9951 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule33Enabled),
9290 /* 9954 */ // MIs[0] root
9291 /* 9954 */ // No operand predicates
9292 /* 9954 */ // MIs[0] src
9293 /* 9954 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9294 /* 9958 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR),
9295 /* 9962 */ GIM_CheckNumOperandsGE, /*MI*/1, /*Expected*/2,
9296 /* 9965 */ // MIs[1] unused
9297 /* 9965 */ // No operand predicates
9298 /* 9965 */ // MIs[0] idx
9299 /* 9965 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
9300 /* 9969 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
9301 /* 9973 */ // MIs[2] imm
9302 /* 9973 */ // No operand predicates
9303 /* 9973 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
9304 /* 9975 */ // Combiner Rule #33: extract_vector_element_build_vector
9305 /* 9975 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner12),
9306 /* 9978 */ // Label 536: @9978
9307 /* 9978 */ GIM_Try, /*On fail goto*//*Label 537*/ GIMT_Encode4(10002), // Rule ID 27 //
9308 /* 9983 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule25Enabled),
9309 /* 9986 */ // MIs[0] root
9310 /* 9986 */ // No operand predicates
9311 /* 9986 */ // MIs[0] vector
9312 /* 9986 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9313 /* 9990 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
9314 /* 9994 */ // MIs[0] idx
9315 /* 9994 */ // No operand predicates
9316 /* 9994 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9317 /* 9996 */ // Combiner Rule #25: match_extract_of_element_undef_vector
9318 /* 9996 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
9319 /* 9999 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
9320 /* 10001 */ GIR_EraseRootFromParent_Done,
9321 /* 10002 */ // Label 537: @10002
9322 /* 10002 */ GIM_Try, /*On fail goto*//*Label 538*/ GIMT_Encode4(10026), // Rule ID 28 //
9323 /* 10007 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule26Enabled),
9324 /* 10010 */ // MIs[0] root
9325 /* 10010 */ // No operand predicates
9326 /* 10010 */ // MIs[0] vector
9327 /* 10010 */ // No operand predicates
9328 /* 10010 */ // MIs[0] idx
9329 /* 10010 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
9330 /* 10014 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
9331 /* 10018 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9332 /* 10020 */ // Combiner Rule #26: match_extract_of_element_undef_index
9333 /* 10020 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
9334 /* 10023 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
9335 /* 10025 */ GIR_EraseRootFromParent_Done,
9336 /* 10026 */ // Label 538: @10026
9337 /* 10026 */ GIM_Reject,
9338 /* 10027 */ // Label 100: @10027
9339 /* 10027 */ GIM_Try, /*On fail goto*//*Label 539*/ GIMT_Encode4(10038), // Rule ID 103 //
9340 /* 10032 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule85Enabled),
9341 /* 10035 */ // Combiner Rule #85: propagate_undef_all_ops; wip_match_opcode 'G_SHUFFLE_VECTOR'
9342 /* 10035 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner40),
9343 /* 10038 */ // Label 539: @10038
9344 /* 10038 */ GIM_Try, /*On fail goto*//*Label 540*/ GIMT_Encode4(10049), // Rule ID 105 //
9345 /* 10043 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule86Enabled),
9346 /* 10046 */ // Combiner Rule #86: propagate_undef_shuffle_mask; wip_match_opcode 'G_SHUFFLE_VECTOR'
9347 /* 10046 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner41),
9348 /* 10049 */ // Label 540: @10049
9349 /* 10049 */ GIM_Try, /*On fail goto*//*Label 541*/ GIMT_Encode4(10060), // Rule ID 393 //
9350 /* 10054 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule229Enabled),
9351 /* 10057 */ // Combiner Rule #229: combine_shuffle_concat; wip_match_opcode 'G_SHUFFLE_VECTOR'
9352 /* 10057 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner138),
9353 /* 10060 */ // Label 541: @10060
9354 /* 10060 */ GIM_Try, /*On fail goto*//*Label 542*/ GIMT_Encode4(10071), // Rule ID 395 //
9355 /* 10065 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule231Enabled),
9356 /* 10068 */ // Combiner Rule #231: combine_shuffle_disjoint_mask; wip_match_opcode 'G_SHUFFLE_VECTOR'
9357 /* 10068 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner140),
9358 /* 10071 */ // Label 542: @10071
9359 /* 10071 */ GIM_Try, /*On fail goto*//*Label 543*/ GIMT_Encode4(10082), // Rule ID 439 //
9360 /* 10076 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule267Enabled),
9361 /* 10079 */ // Combiner Rule #267: combine_shuffle_vector; wip_match_opcode 'G_SHUFFLE_VECTOR'
9362 /* 10079 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner162),
9363 /* 10082 */ // Label 543: @10082
9364 /* 10082 */ GIM_Try, /*On fail goto*//*Label 544*/ GIMT_Encode4(10103), // Rule ID 394 //
9365 /* 10087 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule230Enabled),
9366 /* 10090 */ // MIs[0] root
9367 /* 10090 */ // No operand predicates
9368 /* 10090 */ // MIs[0] src1
9369 /* 10090 */ // No operand predicates
9370 /* 10090 */ // MIs[0] undef
9371 /* 10090 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
9372 /* 10094 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
9373 /* 10098 */ // MIs[0] mask
9374 /* 10098 */ // No operand predicates
9375 /* 10098 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9376 /* 10100 */ // Combiner Rule #230: combine_shuffle_undef_rhs
9377 /* 10100 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner139),
9378 /* 10103 */ // Label 544: @10103
9379 /* 10103 */ GIM_Try, /*On fail goto*//*Label 545*/ GIMT_Encode4(10114), // Rule ID 440 //
9380 /* 10108 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule268Enabled),
9381 /* 10111 */ // MIs[0] dst
9382 /* 10111 */ // No operand predicates
9383 /* 10111 */ // MIs[0] src1
9384 /* 10111 */ // No operand predicates
9385 /* 10111 */ // MIs[0] src2
9386 /* 10111 */ // No operand predicates
9387 /* 10111 */ // MIs[0] mask
9388 /* 10111 */ // No operand predicates
9389 /* 10111 */ // Combiner Rule #268: combine_shuffle_vector_to_build_vector
9390 /* 10111 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner163),
9391 /* 10114 */ // Label 545: @10114
9392 /* 10114 */ GIM_Reject,
9393 /* 10115 */ // Label 101: @10115
9394 /* 10115 */ GIM_Try, /*On fail goto*//*Label 546*/ GIMT_Encode4(10126), // Rule ID 293 //
9395 /* 10120 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule191Enabled),
9396 /* 10123 */ // MIs[0] dst
9397 /* 10123 */ // No operand predicates
9398 /* 10123 */ // MIs[0] mi.src
9399 /* 10123 */ // No operand predicates
9400 /* 10123 */ // Combiner Rule #191: constant_fold_unary_int_op @ [mi[2]]
9401 /* 10123 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner107),
9402 /* 10126 */ // Label 546: @10126
9403 /* 10126 */ GIM_Reject,
9404 /* 10127 */ // Label 102: @10127
9405 /* 10127 */ GIM_Try, /*On fail goto*//*Label 547*/ GIMT_Encode4(10138), // Rule ID 294 //
9406 /* 10132 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule191Enabled),
9407 /* 10135 */ // MIs[0] dst
9408 /* 10135 */ // No operand predicates
9409 /* 10135 */ // MIs[0] mi.src
9410 /* 10135 */ // No operand predicates
9411 /* 10135 */ // Combiner Rule #191: constant_fold_unary_int_op @ [mi[3]]
9412 /* 10135 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner107),
9413 /* 10138 */ // Label 547: @10138
9414 /* 10138 */ GIM_Reject,
9415 /* 10139 */ // Label 103: @10139
9416 /* 10139 */ GIM_Try, /*On fail goto*//*Label 548*/ GIMT_Encode4(10150), // Rule ID 291 //
9417 /* 10144 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule191Enabled),
9418 /* 10147 */ // MIs[0] dst
9419 /* 10147 */ // No operand predicates
9420 /* 10147 */ // MIs[0] mi.src
9421 /* 10147 */ // No operand predicates
9422 /* 10147 */ // Combiner Rule #191: constant_fold_unary_int_op @ [mi[0]]
9423 /* 10147 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner107),
9424 /* 10150 */ // Label 548: @10150
9425 /* 10150 */ GIM_Try, /*On fail goto*//*Label 549*/ GIMT_Encode4(10161), // Rule ID 416 //
9426 /* 10155 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule250Enabled),
9427 /* 10158 */ // MIs[0] dst
9428 /* 10158 */ // No operand predicates
9429 /* 10158 */ // MIs[0] src
9430 /* 10158 */ // No operand predicates
9431 /* 10158 */ // Combiner Rule #250: ctlz_to_ctls
9432 /* 10158 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner157),
9433 /* 10161 */ // Label 549: @10161
9434 /* 10161 */ GIM_Reject,
9435 /* 10162 */ // Label 104: @10162
9436 /* 10162 */ GIM_Try, /*On fail goto*//*Label 550*/ GIMT_Encode4(10173), // Rule ID 292 //
9437 /* 10167 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule191Enabled),
9438 /* 10170 */ // MIs[0] dst
9439 /* 10170 */ // No operand predicates
9440 /* 10170 */ // MIs[0] mi.src
9441 /* 10170 */ // No operand predicates
9442 /* 10170 */ // Combiner Rule #191: constant_fold_unary_int_op @ [mi[1]]
9443 /* 10170 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner107),
9444 /* 10173 */ // Label 550: @10173
9445 /* 10173 */ GIM_Try, /*On fail goto*//*Label 551*/ GIMT_Encode4(10184), // Rule ID 417 //
9446 /* 10178 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule251Enabled),
9447 /* 10181 */ // MIs[0] dst
9448 /* 10181 */ // No operand predicates
9449 /* 10181 */ // MIs[0] src
9450 /* 10181 */ // No operand predicates
9451 /* 10181 */ // Combiner Rule #251: ctlz_zero_poison_to_ctls
9452 /* 10181 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner157),
9453 /* 10184 */ // Label 551: @10184
9454 /* 10184 */ GIM_Reject,
9455 /* 10185 */ // Label 105: @10185
9456 /* 10185 */ GIM_Try, /*On fail goto*//*Label 552*/ GIMT_Encode4(10196), // Rule ID 295 //
9457 /* 10190 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule191Enabled),
9458 /* 10193 */ // MIs[0] dst
9459 /* 10193 */ // No operand predicates
9460 /* 10193 */ // MIs[0] mi.src
9461 /* 10193 */ // No operand predicates
9462 /* 10193 */ // Combiner Rule #191: constant_fold_unary_int_op @ [mi[4]]
9463 /* 10193 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner107),
9464 /* 10196 */ // Label 552: @10196
9465 /* 10196 */ GIM_Reject,
9466 /* 10197 */ // Label 106: @10197
9467 /* 10197 */ GIM_Try, /*On fail goto*//*Label 553*/ GIMT_Encode4(10208), // Rule ID 297 //
9468 /* 10202 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule191Enabled),
9469 /* 10205 */ // MIs[0] dst
9470 /* 10205 */ // No operand predicates
9471 /* 10205 */ // MIs[0] mi.src
9472 /* 10205 */ // No operand predicates
9473 /* 10205 */ // Combiner Rule #191: constant_fold_unary_int_op @ [mi[6]]
9474 /* 10205 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner107),
9475 /* 10208 */ // Label 553: @10208
9476 /* 10208 */ GIM_Reject,
9477 /* 10209 */ // Label 107: @10209
9478 /* 10209 */ GIM_Try, /*On fail goto*//*Label 554*/ GIMT_Encode4(10253), // Rule ID 248 //
9479 /* 10214 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule181Enabled),
9480 /* 10217 */ // MIs[0] d
9481 /* 10217 */ // No operand predicates
9482 /* 10217 */ // MIs[0] src
9483 /* 10217 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9484 /* 10221 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_LSHR),
9485 /* 10225 */ // MIs[1] rev
9486 /* 10225 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
9487 /* 10229 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_BITREVERSE),
9488 /* 10233 */ // MIs[2] val
9489 /* 10233 */ // No operand predicates
9490 /* 10233 */ // MIs[1] amt
9491 /* 10233 */ // No operand predicates
9492 /* 10233 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner14),
9493 /* 10237 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
9494 /* 10239 */ // Combiner Rule #181: bitreverse_lshr
9495 /* 10239 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SHL),
9496 /* 10242 */ GIR_RootToRootCopy, /*OpIdx*/0, // d
9497 /* 10244 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // val
9498 /* 10248 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // amt
9499 /* 10252 */ GIR_EraseRootFromParent_Done,
9500 /* 10253 */ // Label 554: @10253
9501 /* 10253 */ GIM_Try, /*On fail goto*//*Label 555*/ GIMT_Encode4(10297), // Rule ID 247 //
9502 /* 10258 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule180Enabled),
9503 /* 10261 */ // MIs[0] d
9504 /* 10261 */ // No operand predicates
9505 /* 10261 */ // MIs[0] src
9506 /* 10261 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9507 /* 10265 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SHL),
9508 /* 10269 */ // MIs[1] rev
9509 /* 10269 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
9510 /* 10273 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_BITREVERSE),
9511 /* 10277 */ // MIs[2] val
9512 /* 10277 */ // No operand predicates
9513 /* 10277 */ // MIs[1] amt
9514 /* 10277 */ // No operand predicates
9515 /* 10277 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner13),
9516 /* 10281 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
9517 /* 10283 */ // Combiner Rule #180: bitreverse_shl
9518 /* 10283 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_LSHR),
9519 /* 10286 */ GIR_RootToRootCopy, /*OpIdx*/0, // d
9520 /* 10288 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // val
9521 /* 10292 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // amt
9522 /* 10296 */ GIR_EraseRootFromParent_Done,
9523 /* 10297 */ // Label 555: @10297
9524 /* 10297 */ GIM_Try, /*On fail goto*//*Label 556*/ GIMT_Encode4(10308), // Rule ID 298 //
9525 /* 10302 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule191Enabled),
9526 /* 10305 */ // MIs[0] dst
9527 /* 10305 */ // No operand predicates
9528 /* 10305 */ // MIs[0] mi.src
9529 /* 10305 */ // No operand predicates
9530 /* 10305 */ // Combiner Rule #191: constant_fold_unary_int_op @ [mi[7]]
9531 /* 10305 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner107),
9532 /* 10308 */ // Label 556: @10308
9533 /* 10308 */ GIM_Reject,
9534 /* 10309 */ // Label 108: @10309
9535 /* 10309 */ GIM_Try, /*On fail goto*//*Label 557*/ GIMT_Encode4(10330), // Rule ID 195 //
9536 /* 10314 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule151Enabled),
9537 /* 10317 */ // MIs[0] dst
9538 /* 10317 */ // No operand predicates
9539 /* 10317 */ // MIs[0] src0
9540 /* 10317 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9541 /* 10321 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT),
9542 /* 10325 */ // MIs[1] cst
9543 /* 10325 */ // No operand predicates
9544 /* 10325 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9545 /* 10327 */ // Combiner Rule #151: constant_fold_fceil
9546 /* 10327 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
9547 /* 10330 */ // Label 557: @10330
9548 /* 10330 */ GIM_Reject,
9549 /* 10331 */ // Label 109: @10331
9550 /* 10331 */ GIM_Try, /*On fail goto*//*Label 558*/ GIMT_Encode4(10352), // Rule ID 191 //
9551 /* 10336 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule147Enabled),
9552 /* 10339 */ // MIs[0] dst
9553 /* 10339 */ // No operand predicates
9554 /* 10339 */ // MIs[0] src0
9555 /* 10339 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9556 /* 10343 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT),
9557 /* 10347 */ // MIs[1] cst
9558 /* 10347 */ // No operand predicates
9559 /* 10347 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9560 /* 10349 */ // Combiner Rule #147: constant_fold_fsqrt
9561 /* 10349 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
9562 /* 10352 */ // Label 558: @10352
9563 /* 10352 */ GIM_Reject,
9564 /* 10353 */ // Label 110: @10353
9565 /* 10353 */ GIM_Try, /*On fail goto*//*Label 559*/ GIMT_Encode4(10374), // Rule ID 196 //
9566 /* 10358 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule152Enabled),
9567 /* 10361 */ // MIs[0] dst
9568 /* 10361 */ // No operand predicates
9569 /* 10361 */ // MIs[0] src0
9570 /* 10361 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9571 /* 10365 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT),
9572 /* 10369 */ // MIs[1] cst
9573 /* 10369 */ // No operand predicates
9574 /* 10369 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9575 /* 10371 */ // Combiner Rule #152: constant_fold_ffloor
9576 /* 10371 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
9577 /* 10374 */ // Label 559: @10374
9578 /* 10374 */ GIM_Reject,
9579 /* 10375 */ // Label 111: @10375
9580 /* 10375 */ GIM_Try, /*On fail goto*//*Label 560*/ GIMT_Encode4(10396), // Rule ID 200 //
9581 /* 10380 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule156Enabled),
9582 /* 10383 */ // MIs[0] dst
9583 /* 10383 */ // No operand predicates
9584 /* 10383 */ // MIs[0] src0
9585 /* 10383 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9586 /* 10387 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT),
9587 /* 10391 */ // MIs[1] cst
9588 /* 10391 */ // No operand predicates
9589 /* 10391 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9590 /* 10393 */ // Combiner Rule #156: constant_fold_frint
9591 /* 10393 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
9592 /* 10396 */ // Label 560: @10396
9593 /* 10396 */ GIM_Reject,
9594 /* 10397 */ // Label 112: @10397
9595 /* 10397 */ GIM_Try, /*On fail goto*//*Label 561*/ GIMT_Encode4(10418), // Rule ID 201 //
9596 /* 10402 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule157Enabled),
9597 /* 10405 */ // MIs[0] dst
9598 /* 10405 */ // No operand predicates
9599 /* 10405 */ // MIs[0] src0
9600 /* 10405 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9601 /* 10409 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT),
9602 /* 10413 */ // MIs[1] cst
9603 /* 10413 */ // No operand predicates
9604 /* 10413 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9605 /* 10415 */ // Combiner Rule #157: constant_fold_fnearbyint
9606 /* 10415 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
9607 /* 10418 */ // Label 561: @10418
9608 /* 10418 */ GIM_Reject,
9609 /* 10419 */ // Label 113: @10419
9610 /* 10419 */ GIM_Reject,
9611 /* 10420 */ }; // Size: 10420 bytes
9612 return MatchTable0;
9613}
9614#undef GIMT_Encode2
9615#undef GIMT_Encode4
9616#undef GIMT_Encode8
9617
9618
9619#endif // GET_GICOMBINER_IMPL
9620
9621#ifdef GET_GICOMBINER_CONSTRUCTOR_INITS
9622
9623AvailableModuleFeatures(computeAvailableModuleFeatures(&STI)),
9624AvailableFunctionFeatures()
9625
9626#endif // GET_GICOMBINER_CONSTRUCTOR_INITS
9627
9628#ifdef GET_GICOMBINER_CONSTRUCTOR_INITS
9629
9630, State(0),
9631ExecInfo(TypeObjects, NumTypeObjects, FeatureBitsets, ComplexPredicateFns, CustomRenderers)
9632
9633#endif // GET_GICOMBINER_CONSTRUCTOR_INITS
9634
9635