1/*===- TableGen'erated file -------------------------------------*- C++ -*-===*\
2|* *|
3|* RISCVPreLegalizerCombinerImpl Combiner Match Table *|
4|* *|
5|* Automatically generated file, do not edit! *|
6|* *|
7\*===----------------------------------------------------------------------===*/
8
9#ifdef GET_GICOMBINER_DEPS
10
11#include "llvm/ADT/SparseBitVector.h"
12namespace llvm {
13
14extern cl::OptionCategory GICombinerOptionCategory;
15
16} // namespace llvm
17
18#endif // GET_GICOMBINER_DEPS
19
20#ifdef GET_GICOMBINER_TYPES
21
22struct RISCVPreLegalizerCombinerImplRuleConfig {
23 SparseBitVector<> DisabledRules;
24
25 bool isRuleEnabled(unsigned RuleID) const;
26 bool parseCommandLineOption();
27 bool setRuleEnabled(StringRef RuleIdentifier);
28 bool setRuleDisabled(StringRef RuleIdentifier);
29};
30
31static std::optional<uint64_t> getRuleIdxForIdentifier(StringRef RuleIdentifier) {
32 uint64_t I;
33 // getAtInteger(...) returns false on success
34 bool Parsed = !RuleIdentifier.getAsInteger(0, I);
35 if (Parsed)
36 return I;
37
38#ifndef NDEBUG
39 switch (RuleIdentifier.size()) {
40 default: break;
41 case 9: // 7 strings to match.
42 switch (RuleIdentifier[0]) {
43 default: break;
44 case 'a': // 1 string to match.
45 if (memcmp(RuleIdentifier.data()+1, "dd_shift", 8) != 0)
46 break;
47 return 267; // "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 230; // "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 169; // "mulo_by_0"
66 case '2': // 1 string to match.
67 return 168; // "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 241; // "nneg_zext"
76 case 'o': // 1 string to match.
77 if (memcmp(RuleIdentifier.data()+1, "r_xor_or", 8) != 0)
78 break;
79 return 235; // "or_xor_or"
80 }
81 break;
82 case 10: // 11 strings to match.
83 switch (RuleIdentifier[0]) {
84 default: break;
85 case 'S': // 2 strings to match.
86 if (memcmp(RuleIdentifier.data()+1, "ub", 2) != 0)
87 break;
88 switch (RuleIdentifier[3]) {
89 default: break;
90 case 'S': // 1 string to match.
91 if (memcmp(RuleIdentifier.data()+4, "maxSub", 6) != 0)
92 break;
93 return 272; // "SubSmaxSub"
94 case 'U': // 1 string to match.
95 if (memcmp(RuleIdentifier.data()+4, "maxSub", 6) != 0)
96 break;
97 return 273; // "SubUmaxSub"
98 }
99 break;
100 case 'i': // 1 string to match.
101 if (memcmp(RuleIdentifier.data()+1, "2p_to_p2i", 9) != 0)
102 break;
103 return 96; // "i2p_to_p2i"
104 case 'm': // 2 strings to match.
105 switch (RuleIdentifier[1]) {
106 default: break;
107 case 'a': // 1 string to match.
108 if (memcmp(RuleIdentifier.data()+2, "tch_ands", 8) != 0)
109 break;
110 return 229; // "match_ands"
111 case 'u': // 1 string to match.
112 if (memcmp(RuleIdentifier.data()+2, "l_to_shl", 8) != 0)
113 break;
114 return 20; // "mul_to_shl"
115 }
116 break;
117 case 'o': // 1 string to match.
118 if (memcmp(RuleIdentifier.data()+1, "r_xor_and", 9) != 0)
119 break;
120 return 236; // "or_xor_and"
121 case 'p': // 1 string to match.
122 if (memcmp(RuleIdentifier.data()+1, "2i_to_i2p", 9) != 0)
123 break;
124 return 95; // "p2i_to_i2p"
125 case 's': // 3 strings to match.
126 switch (RuleIdentifier[1]) {
127 default: break;
128 case 'e': // 2 strings to match.
129 switch (RuleIdentifier[2]) {
130 default: break;
131 case 'l': // 1 string to match.
132 if (memcmp(RuleIdentifier.data()+3, "ect_not", 7) != 0)
133 break;
134 return 137; // "select_not"
135 case 'x': // 1 string to match.
136 if (memcmp(RuleIdentifier.data()+3, "t_trunc", 7) != 0)
137 break;
138 return 239; // "sext_trunc"
139 }
140 break;
141 case 'u': // 1 string to match.
142 if (memcmp(RuleIdentifier.data()+2, "b_to_add", 8) != 0)
143 break;
144 return 21; // "sub_to_add"
145 }
146 break;
147 case 'z': // 1 string to match.
148 if (memcmp(RuleIdentifier.data()+1, "ext_trunc", 9) != 0)
149 break;
150 return 240; // "zext_trunc"
151 }
152 break;
153 case 11: // 8 strings to match.
154 switch (RuleIdentifier[0]) {
155 default: break;
156 case 'a': // 1 string to match.
157 if (memcmp(RuleIdentifier.data()+1, "dd_sub_reg", 10) != 0)
158 break;
159 return 101; // "add_sub_reg"
160 case 'm': // 1 string to match.
161 if (memcmp(RuleIdentifier.data()+1, "atch_addos", 10) != 0)
162 break;
163 return 256; // "match_addos"
164 case 's': // 1 string to match.
165 if (memcmp(RuleIdentifier.data()+1, "ub_add_reg", 10) != 0)
166 break;
167 return 224; // "sub_add_reg"
168 case 't': // 4 strings to match.
169 if (memcmp(RuleIdentifier.data()+1, "runc_", 5) != 0)
170 break;
171 switch (RuleIdentifier[6]) {
172 default: break;
173 case 's': // 3 strings to match.
174 switch (RuleIdentifier[7]) {
175 default: break;
176 case 'h': // 1 string to match.
177 if (memcmp(RuleIdentifier.data()+8, "ift", 3) != 0)
178 break;
179 return 148; // "trunc_shift"
180 case 's': // 2 strings to match.
181 if (memcmp(RuleIdentifier.data()+8, "at", 2) != 0)
182 break;
183 switch (RuleIdentifier[10]) {
184 default: break;
185 case 's': // 1 string to match.
186 return 258; // "trunc_ssats"
187 case 'u': // 1 string to match.
188 return 259; // "trunc_ssatu"
189 }
190 break;
191 }
192 break;
193 case 'u': // 1 string to match.
194 if (memcmp(RuleIdentifier.data()+7, "satu", 4) != 0)
195 break;
196 return 260; // "trunc_usatu"
197 }
198 break;
199 case 'u': // 1 string to match.
200 if (memcmp(RuleIdentifier.data()+1, "nmerge_cst", 10) != 0)
201 break;
202 return 249; // "unmerge_cst"
203 }
204 break;
205 case 12: // 12 strings to match.
206 switch (RuleIdentifier[0]) {
207 default: break;
208 case 'A': // 1 string to match.
209 if (memcmp(RuleIdentifier.data()+1, "PlusBMinusB", 11) != 0)
210 break;
211 return 4; // "APlusBMinusB"
212 case 'B': // 1 string to match.
213 if (memcmp(RuleIdentifier.data()+1, "MinusAPlusA", 11) != 0)
214 break;
215 return 5; // "BMinusAPlusA"
216 case 'a': // 1 string to match.
217 if (memcmp(RuleIdentifier.data()+1, "dde_to_addo", 11) != 0)
218 break;
219 return 170; // "adde_to_addo"
220 case 'c': // 1 string to match.
221 if (memcmp(RuleIdentifier.data()+1, "tlz_to_ctls", 11) != 0)
222 break;
223 return 263; // "ctlz_to_ctls"
224 case 'f': // 1 string to match.
225 if (memcmp(RuleIdentifier.data()+1, "sub_to_fneg", 11) != 0)
226 break;
227 return 226; // "fsub_to_fneg"
228 case 'm': // 1 string to match.
229 if (memcmp(RuleIdentifier.data()+1, "ulh_to_lshr", 11) != 0)
230 break;
231 return 200; // "mulh_to_lshr"
232 case 'n': // 1 string to match.
233 if (memcmp(RuleIdentifier.data()+1, "ot_cmp_fold", 11) != 0)
234 break;
235 return 149; // "not_cmp_fold"
236 case 'r': // 1 string to match.
237 if (memcmp(RuleIdentifier.data()+1, "edundant_or", 11) != 0)
238 break;
239 return 144; // "redundant_or"
240 case 's': // 2 strings to match.
241 switch (RuleIdentifier[1]) {
242 default: break;
243 case 'd': // 1 string to match.
244 if (memcmp(RuleIdentifier.data()+2, "iv_by_pow2", 10) != 0)
245 break;
246 return 220; // "sdiv_by_pow2"
247 case 'e': // 1 string to match.
248 if (memcmp(RuleIdentifier.data()+2, "xt_of_sext", 10) != 0)
249 break;
250 return 53; // "sext_of_sext"
251 }
252 break;
253 case 'u': // 1 string to match.
254 if (memcmp(RuleIdentifier.data()+1, "div_by_pow2", 11) != 0)
255 break;
256 return 219; // "udiv_by_pow2"
257 case 'z': // 1 string to match.
258 if (memcmp(RuleIdentifier.data()+1, "ext_of_zext", 11) != 0)
259 break;
260 return 51; // "zext_of_zext"
261 }
262 break;
263 case 13: // 18 strings to match.
264 switch (RuleIdentifier[0]) {
265 default: break;
266 case 'A': // 2 strings to match.
267 if (memcmp(RuleIdentifier.data()+1, "MinusBMinus", 11) != 0)
268 break;
269 switch (RuleIdentifier[12]) {
270 default: break;
271 case 'A': // 1 string to match.
272 return 12; // "AMinusBMinusA"
273 case 'C': // 1 string to match.
274 return 9; // "AMinusBMinusC"
275 }
276 break;
277 case 'a': // 1 string to match.
278 if (memcmp(RuleIdentifier.data()+1, "dd_of_vscale", 12) != 0)
279 break;
280 return 42; // "add_of_vscale"
281 case 'l': // 1 string to match.
282 if (memcmp(RuleIdentifier.data()+1, "oad_and_mask", 12) != 0)
283 break;
284 return 74; // "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 135; // "match_selects"
292 case 'e': // 1 string to match.
293 if (memcmp(RuleIdentifier.data()+2, "rge_unmerge", 11) != 0)
294 break;
295 return 248; // "merge_unmerge"
296 case 'u': // 1 string to match.
297 if (memcmp(RuleIdentifier.data()+2, "l_of_vscale", 11) != 0)
298 break;
299 return 43; // "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 143; // "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 222; // "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 44; // "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 218; // "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 270; // "sub_minus_one"
334 case 'o': // 1 string to match.
335 if (memcmp(RuleIdentifier.data()+5, "f_vscale", 8) != 0)
336 break;
337 return 45; // "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 221; // "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 247; // "unmerge_merge"
358 case 'u': // 1 string to match.
359 if (memcmp(RuleIdentifier.data()+9, "ndef", 4) != 0)
360 break;
361 return 250; // "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 217; // "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 57; // "anyext_of_sext"
405 case 'z': // 1 string to match.
406 if (memcmp(RuleIdentifier.data()+11, "ext", 3) != 0)
407 break;
408 return 56; // "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 269; // "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 186; // "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 199; // "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 59; // "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 54; // "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 52; // "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 'G': // 1 string to match.
507 if (memcmp(RuleIdentifier.data()+1, "_FMA_fneg_fneg", 14) != 0)
508 break;
509 return 205; // "G_FMA_fneg_fneg"
510 case 'Z': // 1 string to match.
511 if (memcmp(RuleIdentifier.data()+1, "eroMinusAPlusB", 14) != 0)
512 break;
513 return 2; // "ZeroMinusAPlusB"
514 case 'a': // 2 strings to match.
515 if (memcmp(RuleIdentifier.data()+1, "vgceil_", 7) != 0)
516 break;
517 switch (RuleIdentifier[8]) {
518 default: break;
519 case 's': // 1 string to match.
520 if (memcmp(RuleIdentifier.data()+9, "_match", 6) != 0)
521 break;
522 return 277; // "avgceil_s_match"
523 case 'u': // 1 string to match.
524 if (memcmp(RuleIdentifier.data()+9, "_match", 6) != 0)
525 break;
526 return 276; // "avgceil_u_match"
527 }
528 break;
529 case 'b': // 1 string to match.
530 if (memcmp(RuleIdentifier.data()+1, "itreverse_lshr", 14) != 0)
531 break;
532 return 187; // "bitreverse_lshr"
533 case 'e': // 1 string to match.
534 if (memcmp(RuleIdentifier.data()+1, "xtending_loads", 14) != 0)
535 break;
536 return 73; // "extending_loads"
537 case 'i': // 1 string to match.
538 if (memcmp(RuleIdentifier.data()+1, "dempotent_prop", 14) != 0)
539 break;
540 return 24; // "idempotent_prop"
541 case 'l': // 1 string to match.
542 if (memcmp(RuleIdentifier.data()+1, "oad_or_combine", 14) != 0)
543 break;
544 return 177; // "load_or_combine"
545 case 'n': // 1 string to match.
546 if (memcmp(RuleIdentifier.data()+1, "arrow_binop_or", 14) != 0)
547 break;
548 return 67; // "narrow_binop_or"
549 case 'o': // 1 string to match.
550 if (memcmp(RuleIdentifier.data()+1, "verlapping_and", 14) != 0)
551 break;
552 return 167; // "overlapping_and"
553 case 'z': // 1 string to match.
554 if (memcmp(RuleIdentifier.data()+1, "ext_trunc_fold", 14) != 0)
555 break;
556 return 146; // "zext_trunc_fold"
557 }
558 break;
559 case 16: // 22 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 'G': // 3 strings to match.
567 if (memcmp(RuleIdentifier.data()+1, "_F", 2) != 0)
568 break;
569 switch (RuleIdentifier[3]) {
570 default: break;
571 case 'D': // 1 string to match.
572 if (memcmp(RuleIdentifier.data()+4, "IV_fneg_fneg", 12) != 0)
573 break;
574 return 203; // "G_FDIV_fneg_fneg"
575 case 'M': // 2 strings to match.
576 switch (RuleIdentifier[4]) {
577 default: break;
578 case 'A': // 1 string to match.
579 if (memcmp(RuleIdentifier.data()+5, "D_fneg_fneg", 11) != 0)
580 break;
581 return 204; // "G_FMAD_fneg_fneg"
582 case 'U': // 1 string to match.
583 if (memcmp(RuleIdentifier.data()+5, "L_fneg_fneg", 11) != 0)
584 break;
585 return 202; // "G_FMUL_fneg_fneg"
586 }
587 break;
588 }
589 break;
590 case 'a': // 3 strings to match.
591 switch (RuleIdentifier[1]) {
592 default: break;
593 case 'n': // 1 string to match.
594 if (memcmp(RuleIdentifier.data()+2, "yext_of_anyext", 14) != 0)
595 break;
596 return 55; // "anyext_of_anyext"
597 case 'v': // 2 strings to match.
598 if (memcmp(RuleIdentifier.data()+2, "gfloor_", 7) != 0)
599 break;
600 switch (RuleIdentifier[9]) {
601 default: break;
602 case 's': // 1 string to match.
603 if (memcmp(RuleIdentifier.data()+10, "_match", 6) != 0)
604 break;
605 return 275; // "avgfloor_s_match"
606 case 'u': // 1 string to match.
607 if (memcmp(RuleIdentifier.data()+10, "_match", 6) != 0)
608 break;
609 return 274; // "avgfloor_u_match"
610 }
611 break;
612 }
613 break;
614 case 'c': // 1 string to match.
615 if (memcmp(RuleIdentifier.data()+1, "ommute_shift_or", 15) != 0)
616 break;
617 return 189; // "commute_shift_or"
618 case 'n': // 5 strings to match.
619 if (memcmp(RuleIdentifier.data()+1, "arrow_binop_", 12) != 0)
620 break;
621 switch (RuleIdentifier[13]) {
622 default: break;
623 case 'a': // 2 strings to match.
624 switch (RuleIdentifier[14]) {
625 default: break;
626 case 'd': // 1 string to match.
627 if (RuleIdentifier[15] != 'd')
628 break;
629 return 63; // "narrow_binop_add"
630 case 'n': // 1 string to match.
631 if (RuleIdentifier[15] != 'd')
632 break;
633 return 66; // "narrow_binop_and"
634 }
635 break;
636 case 'm': // 1 string to match.
637 if (memcmp(RuleIdentifier.data()+14, "ul", 2) != 0)
638 break;
639 return 65; // "narrow_binop_mul"
640 case 's': // 1 string to match.
641 if (memcmp(RuleIdentifier.data()+14, "ub", 2) != 0)
642 break;
643 return 64; // "narrow_binop_sub"
644 case 'x': // 1 string to match.
645 if (memcmp(RuleIdentifier.data()+14, "or", 2) != 0)
646 break;
647 return 68; // "narrow_binop_xor"
648 }
649 break;
650 case 'o': // 1 string to match.
651 if (memcmp(RuleIdentifier.data()+1, "r_and_xor_to_or", 15) != 0)
652 break;
653 return 231; // "or_and_xor_to_or"
654 case 's': // 5 strings to match.
655 switch (RuleIdentifier[1]) {
656 default: break;
657 case 'e': // 3 strings to match.
658 if (memcmp(RuleIdentifier.data()+2, "lect_", 5) != 0)
659 break;
660 switch (RuleIdentifier[7]) {
661 default: break;
662 case 'o': // 1 string to match.
663 if (memcmp(RuleIdentifier.data()+8, "f_anyext", 8) != 0)
664 break;
665 return 60; // "select_of_anyext"
666 case 't': // 1 string to match.
667 if (memcmp(RuleIdentifier.data()+8, "o_minmax", 8) != 0)
668 break;
669 return 225; // "select_to_minmax"
670 case 'u': // 1 string to match.
671 if (memcmp(RuleIdentifier.data()+8, "ndef_cmp", 8) != 0)
672 break;
673 return 130; // "select_undef_cmp"
674 }
675 break;
676 case 'u': // 2 strings to match.
677 if (memcmp(RuleIdentifier.data()+2, "b_o", 3) != 0)
678 break;
679 switch (RuleIdentifier[5]) {
680 default: break;
681 case 'f': // 1 string to match.
682 if (memcmp(RuleIdentifier.data()+6, "_mul_const", 10) != 0)
683 break;
684 return 271; // "sub_of_mul_const"
685 case 'n': // 1 string to match.
686 if (memcmp(RuleIdentifier.data()+6, "e_from_sub", 10) != 0)
687 break;
688 return 268; // "sub_one_from_sub"
689 }
690 break;
691 }
692 break;
693 case 't': // 2 strings to match.
694 if (memcmp(RuleIdentifier.data()+1, "runcate_of_", 11) != 0)
695 break;
696 switch (RuleIdentifier[12]) {
697 default: break;
698 case 's': // 1 string to match.
699 if (memcmp(RuleIdentifier.data()+13, "ext", 3) != 0)
700 break;
701 return 49; // "truncate_of_sext"
702 case 'z': // 1 string to match.
703 if (memcmp(RuleIdentifier.data()+13, "ext", 3) != 0)
704 break;
705 return 48; // "truncate_of_zext"
706 }
707 break;
708 case 'u': // 1 string to match.
709 if (memcmp(RuleIdentifier.data()+1, "ndef_to_fp_zero", 15) != 0)
710 break;
711 return 76; // "undef_to_fp_zero"
712 }
713 break;
714 case 17: // 19 strings to match.
715 switch (RuleIdentifier[0]) {
716 default: break;
717 case 'A': // 2 strings to match.
718 if (memcmp(RuleIdentifier.data()+1, "PlusBMinus", 10) != 0)
719 break;
720 switch (RuleIdentifier[11]) {
721 default: break;
722 case 'A': // 1 string to match.
723 if (memcmp(RuleIdentifier.data()+12, "plusC", 5) != 0)
724 break;
725 return 8; // "APlusBMinusAplusC"
726 case 'C': // 1 string to match.
727 if (memcmp(RuleIdentifier.data()+12, "PlusA", 5) != 0)
728 break;
729 return 10; // "APlusBMinusCPlusA"
730 }
731 break;
732 case 'a': // 3 strings to match.
733 switch (RuleIdentifier[1]) {
734 default: break;
735 case 'd': // 1 string to match.
736 if (memcmp(RuleIdentifier.data()+2, "d_p2i_to_ptradd", 15) != 0)
737 break;
738 return 22; // "add_p2i_to_ptradd"
739 case 'n': // 2 strings to match.
740 switch (RuleIdentifier[2]) {
741 default: break;
742 case 'd': // 1 string to match.
743 if (memcmp(RuleIdentifier.data()+3, "_xor_or_to_and", 14) != 0)
744 break;
745 return 233; // "and_xor_or_to_and"
746 case 'y': // 1 string to match.
747 if (memcmp(RuleIdentifier.data()+3, "ext_trunc_fold", 14) != 0)
748 break;
749 return 97; // "anyext_trunc_fold"
750 }
751 break;
752 }
753 break;
754 case 'c': // 5 strings to match.
755 switch (RuleIdentifier[1]) {
756 default: break;
757 case 'a': // 2 strings to match.
758 if (memcmp(RuleIdentifier.data()+2, "nonicalize_", 11) != 0)
759 break;
760 switch (RuleIdentifier[13]) {
761 default: break;
762 case 'f': // 1 string to match.
763 if (memcmp(RuleIdentifier.data()+14, "cmp", 3) != 0)
764 break;
765 return 119; // "canonicalize_fcmp"
766 case 'i': // 1 string to match.
767 if (memcmp(RuleIdentifier.data()+14, "cmp", 3) != 0)
768 break;
769 return 118; // "canonicalize_icmp"
770 }
771 break;
772 case 'o': // 3 strings to match.
773 switch (RuleIdentifier[2]) {
774 default: break;
775 case 'm': // 2 strings to match.
776 switch (RuleIdentifier[3]) {
777 default: break;
778 case 'b': // 1 string to match.
779 if (memcmp(RuleIdentifier.data()+4, "ine_or_of_and", 13) != 0)
780 break;
781 return 278; // "combine_or_of_and"
782 case 'm': // 1 string to match.
783 if (memcmp(RuleIdentifier.data()+4, "ute_shift_add", 13) != 0)
784 break;
785 return 188; // "commute_shift_add"
786 }
787 break;
788 case 'n': // 1 string to match.
789 if (memcmp(RuleIdentifier.data()+3, "stant_fold_fma", 14) != 0)
790 break;
791 return 196; // "constant_fold_fma"
792 }
793 break;
794 }
795 break;
796 case 'd': // 1 string to match.
797 if (memcmp(RuleIdentifier.data()+1, "iv_rem_to_divrem", 16) != 0)
798 break;
799 return 178; // "div_rem_to_divrem"
800 case 'e': // 1 string to match.
801 if (memcmp(RuleIdentifier.data()+1, "rase_undef_store", 16) != 0)
802 break;
803 return 86; // "erase_undef_store"
804 case 'p': // 1 string to match.
805 if (memcmp(RuleIdentifier.data()+1, "tr_add_with_zero", 16) != 0)
806 break;
807 return 174; // "ptr_add_with_zero"
808 case 's': // 4 strings to match.
809 switch (RuleIdentifier[1]) {
810 default: break;
811 case 'e': // 2 strings to match.
812 if (memcmp(RuleIdentifier.data()+2, "lect_", 5) != 0)
813 break;
814 switch (RuleIdentifier[7]) {
815 default: break;
816 case 't': // 1 string to match.
817 if (memcmp(RuleIdentifier.data()+8, "o_iminmax", 9) != 0)
818 break;
819 return 134; // "select_to_iminmax"
820 case 'z': // 1 string to match.
821 if (memcmp(RuleIdentifier.data()+8, "ero_false", 9) != 0)
822 break;
823 return 136; // "select_zero_false"
824 }
825 break;
826 case 'h': // 1 string to match.
827 if (memcmp(RuleIdentifier.data()+2, "ift_immed_chain", 15) != 0)
828 break;
829 return 175; // "shift_immed_chain"
830 case 'r': // 1 string to match.
831 if (memcmp(RuleIdentifier.data()+2, "em_pow2_to_mask", 15) != 0)
832 break;
833 return 216; // "srem_pow2_to_mask"
834 }
835 break;
836 case 'u': // 2 strings to match.
837 switch (RuleIdentifier[1]) {
838 default: break;
839 case 'n': // 1 string to match.
840 if (memcmp(RuleIdentifier.data()+2, "def_to_int_zero", 15) != 0)
841 break;
842 return 77; // "undef_to_int_zero"
843 case 'r': // 1 string to match.
844 if (memcmp(RuleIdentifier.data()+2, "em_pow2_to_mask", 15) != 0)
845 break;
846 return 145; // "urem_pow2_to_mask"
847 }
848 break;
849 }
850 break;
851 case 18: // 12 strings to match.
852 switch (RuleIdentifier[0]) {
853 default: break;
854 case 'A': // 3 strings to match.
855 switch (RuleIdentifier[1]) {
856 default: break;
857 case 'M': // 2 strings to match.
858 if (memcmp(RuleIdentifier.data()+2, "inusBPlus", 9) != 0)
859 break;
860 switch (RuleIdentifier[11]) {
861 default: break;
862 case 'B': // 1 string to match.
863 if (memcmp(RuleIdentifier.data()+12, "MinusC", 6) != 0)
864 break;
865 return 7; // "AMinusBPlusBMinusC"
866 case 'C': // 1 string to match.
867 if (memcmp(RuleIdentifier.data()+12, "MinusA", 6) != 0)
868 break;
869 return 6; // "AMinusBPlusCMinusA"
870 }
871 break;
872 case 'P': // 1 string to match.
873 if (memcmp(RuleIdentifier.data()+2, "lusBMinusCMinusB", 16) != 0)
874 break;
875 return 0; // "APlusBMinusCMinusB"
876 }
877 break;
878 case 'b': // 1 string to match.
879 if (memcmp(RuleIdentifier.data()+1, "inop_left_to_zero", 17) != 0)
880 break;
881 return 93; // "binop_left_to_zero"
882 case 'c': // 3 strings to match.
883 if (RuleIdentifier[1] != 'o')
884 break;
885 switch (RuleIdentifier[2]) {
886 default: break;
887 case 'm': // 1 string to match.
888 if (memcmp(RuleIdentifier.data()+3, "bine_minmax_nan", 15) != 0)
889 break;
890 return 171; // "combine_minmax_nan"
891 case 'n': // 2 strings to match.
892 if (memcmp(RuleIdentifier.data()+3, "stant_fold_f", 12) != 0)
893 break;
894 switch (RuleIdentifier[15]) {
895 default: break;
896 case 'a': // 1 string to match.
897 if (memcmp(RuleIdentifier.data()+16, "bs", 2) != 0)
898 break;
899 return 152; // "constant_fold_fabs"
900 case 'n': // 1 string to match.
901 if (memcmp(RuleIdentifier.data()+16, "eg", 2) != 0)
902 break;
903 return 151; // "constant_fold_fneg"
904 }
905 break;
906 }
907 break;
908 case 'e': // 1 string to match.
909 if (memcmp(RuleIdentifier.data()+1, "xpand_const_fpowi", 17) != 0)
910 break;
911 return 172; // "expand_const_fpowi"
912 case 'f': // 1 string to match.
913 if (memcmp(RuleIdentifier.data()+1, "ptrunc_fpext_fold", 17) != 0)
914 break;
915 return 107; // "fptrunc_fpext_fold"
916 case 's': // 2 strings to match.
917 if (RuleIdentifier[1] != 'e')
918 break;
919 switch (RuleIdentifier[2]) {
920 default: break;
921 case 'l': // 1 string to match.
922 if (memcmp(RuleIdentifier.data()+3, "ect_of_truncate", 15) != 0)
923 break;
924 return 61; // "select_of_truncate"
925 case 'x': // 1 string to match.
926 if (memcmp(RuleIdentifier.data()+3, "t_inreg_of_load", 15) != 0)
927 break;
928 return 127; // "sext_inreg_of_load"
929 }
930 break;
931 case 't': // 1 string to match.
932 if (memcmp(RuleIdentifier.data()+1, "runcate_of_anyext", 17) != 0)
933 break;
934 return 50; // "truncate_of_anyext"
935 }
936 break;
937 case 19: // 18 strings to match.
938 switch (RuleIdentifier[0]) {
939 default: break;
940 case 'A': // 1 string to match.
941 if (memcmp(RuleIdentifier.data()+1, "MinusBMinusCMinusC", 18) != 0)
942 break;
943 return 1; // "AMinusBMinusCMinusC"
944 case 'b': // 1 string to match.
945 if (memcmp(RuleIdentifier.data()+1, "inop_right_to_zero", 18) != 0)
946 break;
947 return 94; // "binop_right_to_zero"
948 case 'c': // 7 strings to match.
949 if (memcmp(RuleIdentifier.data()+1, "onst", 4) != 0)
950 break;
951 switch (RuleIdentifier[5]) {
952 default: break;
953 case '_': // 1 string to match.
954 if (memcmp(RuleIdentifier.data()+6, "ptradd_to_i2p", 13) != 0)
955 break;
956 return 166; // "const_ptradd_to_i2p"
957 case 'a': // 6 strings to match.
958 if (memcmp(RuleIdentifier.data()+6, "nt_fold_", 8) != 0)
959 break;
960 switch (RuleIdentifier[14]) {
961 default: break;
962 case 'b': // 1 string to match.
963 if (memcmp(RuleIdentifier.data()+15, "inop", 4) != 0)
964 break;
965 return 194; // "constant_fold_binop"
966 case 'f': // 5 strings to match.
967 switch (RuleIdentifier[15]) {
968 default: break;
969 case 'c': // 1 string to match.
970 if (memcmp(RuleIdentifier.data()+16, "eil", 3) != 0)
971 break;
972 return 157; // "constant_fold_fceil"
973 case 'l': // 1 string to match.
974 if (memcmp(RuleIdentifier.data()+16, "og2", 3) != 0)
975 break;
976 return 154; // "constant_fold_flog2"
977 case 'p': // 1 string to match.
978 if (memcmp(RuleIdentifier.data()+16, "ext", 3) != 0)
979 break;
980 return 156; // "constant_fold_fpext"
981 case 'r': // 1 string to match.
982 if (memcmp(RuleIdentifier.data()+16, "int", 3) != 0)
983 break;
984 return 162; // "constant_fold_frint"
985 case 's': // 1 string to match.
986 if (memcmp(RuleIdentifier.data()+16, "qrt", 3) != 0)
987 break;
988 return 153; // "constant_fold_fsqrt"
989 }
990 break;
991 }
992 break;
993 }
994 break;
995 case 'e': // 1 string to match.
996 if (memcmp(RuleIdentifier.data()+1, "xtend_through_phis", 18) != 0)
997 break;
998 return 111; // "extend_through_phis"
999 case 'i': // 1 string to match.
1000 if (memcmp(RuleIdentifier.data()+1, "nteger_of_truncate", 18) != 0)
1001 break;
1002 return 69; // "integer_of_truncate"
1003 case 'm': // 1 string to match.
1004 if (memcmp(RuleIdentifier.data()+1, "erge_of_x_and_zero", 18) != 0)
1005 break;
1006 return 254; // "merge_of_x_and_zero"
1007 case 'p': // 1 string to match.
1008 if (memcmp(RuleIdentifier.data()+1, "tr_add_immed_chain", 18) != 0)
1009 break;
1010 return 117; // "ptr_add_immed_chain"
1011 case 'r': // 2 strings to match.
1012 switch (RuleIdentifier[1]) {
1013 default: break;
1014 case 'e': // 1 string to match.
1015 if (memcmp(RuleIdentifier.data()+2, "assoc_comm_binops", 17) != 0)
1016 break;
1017 return 116; // "reassoc_comm_binops"
1018 case 'i': // 1 string to match.
1019 if (memcmp(RuleIdentifier.data()+2, "ght_identity_zero", 17) != 0)
1020 break;
1021 return 90; // "right_identity_zero"
1022 }
1023 break;
1024 case 's': // 2 strings to match.
1025 if (memcmp(RuleIdentifier.data()+1, "implify_", 8) != 0)
1026 break;
1027 switch (RuleIdentifier[9]) {
1028 default: break;
1029 case 'a': // 1 string to match.
1030 if (memcmp(RuleIdentifier.data()+10, "dd_to_sub", 9) != 0)
1031 break;
1032 return 112; // "simplify_add_to_sub"
1033 case 'n': // 1 string to match.
1034 if (memcmp(RuleIdentifier.data()+10, "eg_minmax", 9) != 0)
1035 break;
1036 return 237; // "simplify_neg_minmax"
1037 }
1038 break;
1039 case 'u': // 1 string to match.
1040 if (memcmp(RuleIdentifier.data()+1, "nary_undef_to_zero", 18) != 0)
1041 break;
1042 return 81; // "unary_undef_to_zero"
1043 }
1044 break;
1045 case 20: // 9 strings to match.
1046 switch (RuleIdentifier[0]) {
1047 default: break;
1048 case 'a': // 1 string to match.
1049 if (memcmp(RuleIdentifier.data()+1, "nd_or_disjoint_mask", 19) != 0)
1050 break;
1051 return 206; // "and_or_disjoint_mask"
1052 case 'b': // 1 string to match.
1053 if (memcmp(RuleIdentifier.data()+1, "itcast_bitcast_fold", 19) != 0)
1054 break;
1055 return 105; // "bitcast_bitcast_fold"
1056 case 'c': // 1 string to match.
1057 if (memcmp(RuleIdentifier.data()+1, "onstant_fold_ffloor", 19) != 0)
1058 break;
1059 return 158; // "constant_fold_ffloor"
1060 case 'm': // 1 string to match.
1061 if (memcmp(RuleIdentifier.data()+1, "erge_of_x_and_undef", 19) != 0)
1062 break;
1063 return 253; // "merge_of_x_and_undef"
1064 case 'o': // 1 string to match.
1065 if (memcmp(RuleIdentifier.data()+1, "r_and_xor_to_xor_or", 19) != 0)
1066 break;
1067 return 232; // "or_and_xor_to_xor_or"
1068 case 'r': // 2 strings to match.
1069 if (memcmp(RuleIdentifier.data()+1, "edu", 3) != 0)
1070 break;
1071 switch (RuleIdentifier[4]) {
1072 default: break;
1073 case 'c': // 1 string to match.
1074 if (memcmp(RuleIdentifier.data()+5, "e_shl_of_extend", 15) != 0)
1075 break;
1076 return 128; // "reduce_shl_of_extend"
1077 case 'n': // 1 string to match.
1078 if (memcmp(RuleIdentifier.data()+5, "dant_sext_inreg", 15) != 0)
1079 break;
1080 return 138; // "redundant_sext_inreg"
1081 }
1082 break;
1083 case 'u': // 2 strings to match.
1084 if (RuleIdentifier[1] != 'n')
1085 break;
1086 switch (RuleIdentifier[2]) {
1087 default: break;
1088 case 'a': // 1 string to match.
1089 if (memcmp(RuleIdentifier.data()+3, "ry_undef_to_undef", 17) != 0)
1090 break;
1091 return 82; // "unary_undef_to_undef"
1092 case 'm': // 1 string to match.
1093 if (memcmp(RuleIdentifier.data()+3, "erge_zext_to_zext", 17) != 0)
1094 break;
1095 return 252; // "unmerge_zext_to_zext"
1096 }
1097 break;
1098 }
1099 break;
1100 case 21: // 12 strings to match.
1101 switch (RuleIdentifier[0]) {
1102 default: break;
1103 case 'a': // 1 string to match.
1104 if (memcmp(RuleIdentifier.data()+1, "nd_xor_or_to_xor_and", 20) != 0)
1105 break;
1106 return 234; // "and_xor_or_to_xor_and"
1107 case 'c': // 4 strings to match.
1108 if (RuleIdentifier[1] != 'o')
1109 break;
1110 switch (RuleIdentifier[2]) {
1111 default: break;
1112 case 'm': // 2 strings to match.
1113 if (memcmp(RuleIdentifier.data()+3, "bine_", 5) != 0)
1114 break;
1115 switch (RuleIdentifier[8]) {
1116 default: break;
1117 case 'b': // 1 string to match.
1118 if (memcmp(RuleIdentifier.data()+9, "uild_unmerge", 12) != 0)
1119 break;
1120 return 255; // "combine_build_unmerge"
1121 case 'c': // 1 string to match.
1122 if (memcmp(RuleIdentifier.data()+9, "oncat_vector", 12) != 0)
1123 break;
1124 return 238; // "combine_concat_vector"
1125 }
1126 break;
1127 case 'n': // 2 strings to match.
1128 if (memcmp(RuleIdentifier.data()+3, "stant_fold_", 11) != 0)
1129 break;
1130 switch (RuleIdentifier[14]) {
1131 default: break;
1132 case 'c': // 1 string to match.
1133 if (memcmp(RuleIdentifier.data()+15, "ast_op", 6) != 0)
1134 break;
1135 return 197; // "constant_fold_cast_op"
1136 case 'f': // 1 string to match.
1137 if (memcmp(RuleIdentifier.data()+15, "ptrunc", 6) != 0)
1138 break;
1139 return 155; // "constant_fold_fptrunc"
1140 }
1141 break;
1142 }
1143 break;
1144 case 'f': // 1 string to match.
1145 if (memcmp(RuleIdentifier.data()+1, "div_repeated_divison", 20) != 0)
1146 break;
1147 return 223; // "fdiv_repeated_divison"
1148 case 'i': // 1 string to match.
1149 if (memcmp(RuleIdentifier.data()+1, "nsert_vector_elt_oob", 20) != 0)
1150 break;
1151 return 29; // "insert_vector_elt_oob"
1152 case 'l': // 1 string to match.
1153 if (memcmp(RuleIdentifier.data()+1, "shr_of_trunc_of_lshr", 20) != 0)
1154 break;
1155 return 262; // "lshr_of_trunc_of_lshr"
1156 case 'r': // 1 string to match.
1157 if (memcmp(RuleIdentifier.data()+1, "ight_identity_one_fp", 20) != 0)
1158 break;
1159 return 100; // "right_identity_one_fp"
1160 case 's': // 1 string to match.
1161 if (memcmp(RuleIdentifier.data()+1, "elect_same_val_equiv", 20) != 0)
1162 break;
1163 return 89; // "select_same_val_equiv"
1164 case 'u': // 2 strings to match.
1165 if (RuleIdentifier[1] != 'n')
1166 break;
1167 switch (RuleIdentifier[2]) {
1168 default: break;
1169 case 'd': // 1 string to match.
1170 if (memcmp(RuleIdentifier.data()+3, "ef_to_negative_one", 18) != 0)
1171 break;
1172 return 78; // "undef_to_negative_one"
1173 case 'm': // 1 string to match.
1174 if (memcmp(RuleIdentifier.data()+3, "erge_dead_to_trunc", 18) != 0)
1175 break;
1176 return 251; // "unmerge_dead_to_trunc"
1177 }
1178 break;
1179 }
1180 break;
1181 case 22: // 12 strings to match.
1182 switch (RuleIdentifier[0]) {
1183 default: break;
1184 case 'c': // 2 strings to match.
1185 if (RuleIdentifier[1] != 'o')
1186 break;
1187 switch (RuleIdentifier[2]) {
1188 default: break;
1189 case 'm': // 1 string to match.
1190 if (memcmp(RuleIdentifier.data()+3, "bine_shuffle_concat", 19) != 0)
1191 break;
1192 return 242; // "combine_shuffle_concat"
1193 case 'n': // 1 string to match.
1194 if (memcmp(RuleIdentifier.data()+3, "stant_fold_fp_binop", 19) != 0)
1195 break;
1196 return 195; // "constant_fold_fp_binop"
1197 }
1198 break;
1199 case 'f': // 4 strings to match.
1200 switch (RuleIdentifier[1]) {
1201 default: break;
1202 case 'o': // 1 string to match.
1203 if (memcmp(RuleIdentifier.data()+2, "ld_binop_into_select", 20) != 0)
1204 break;
1205 return 215; // "fold_binop_into_select"
1206 case 'u': // 3 strings to match.
1207 if (memcmp(RuleIdentifier.data()+2, "nnel_shift_", 11) != 0)
1208 break;
1209 switch (RuleIdentifier[13]) {
1210 default: break;
1211 case 'l': // 1 string to match.
1212 if (memcmp(RuleIdentifier.data()+14, "eft_zero", 8) != 0)
1213 break;
1214 return 182; // "funnel_shift_left_zero"
1215 case 'o': // 1 string to match.
1216 if (memcmp(RuleIdentifier.data()+14, "vershift", 8) != 0)
1217 break;
1218 return 183; // "funnel_shift_overshift"
1219 case 't': // 1 string to match.
1220 if (memcmp(RuleIdentifier.data()+14, "o_rotate", 8) != 0)
1221 break;
1222 return 180; // "funnel_shift_to_rotate"
1223 }
1224 break;
1225 }
1226 break;
1227 case 'i': // 1 string to match.
1228 if (memcmp(RuleIdentifier.data()+1, "cmp_to_lhs_known_bits", 21) != 0)
1229 break;
1230 return 121; // "icmp_to_lhs_known_bits"
1231 case 'm': // 1 string to match.
1232 if (memcmp(RuleIdentifier.data()+1, "atch_subo_no_overflow", 21) != 0)
1233 break;
1234 return 257; // "match_subo_no_overflow"
1235 case 'p': // 1 string to match.
1236 if (memcmp(RuleIdentifier.data()+1, "ropagate_undef_any_op", 21) != 0)
1237 break;
1238 return 83; // "propagate_undef_any_op"
1239 case 'r': // 1 string to match.
1240 if (memcmp(RuleIdentifier.data()+1, "ight_identity_one_int", 21) != 0)
1241 break;
1242 return 99; // "right_identity_one_int"
1243 case 's': // 1 string to match.
1244 if (memcmp(RuleIdentifier.data()+1, "hl_ashr_to_sext_inreg", 21) != 0)
1245 break;
1246 return 125; // "shl_ashr_to_sext_inreg"
1247 case 't': // 1 string to match.
1248 if (memcmp(RuleIdentifier.data()+1, "runc_buildvector_fold", 21) != 0)
1249 break;
1250 return 103; // "trunc_buildvector_fold"
1251 }
1252 break;
1253 case 23: // 7 strings to match.
1254 switch (RuleIdentifier[0]) {
1255 default: break;
1256 case 'b': // 1 string to match.
1257 if (memcmp(RuleIdentifier.data()+1, "uildvector_of_truncate", 22) != 0)
1258 break;
1259 return 62; // "buildvector_of_truncate"
1260 case 'f': // 1 string to match.
1261 if (memcmp(RuleIdentifier.data()+1, "unnel_shift_right_zero", 22) != 0)
1262 break;
1263 return 181; // "funnel_shift_right_zero"
1264 case 'i': // 2 strings to match.
1265 if (memcmp(RuleIdentifier.data()+1, "tof_const_zero_fold_", 20) != 0)
1266 break;
1267 switch (RuleIdentifier[21]) {
1268 default: break;
1269 case 's': // 1 string to match.
1270 if (RuleIdentifier[22] != 'i')
1271 break;
1272 return 164; // "itof_const_zero_fold_si"
1273 case 'u': // 1 string to match.
1274 if (RuleIdentifier[22] != 'i')
1275 break;
1276 return 165; // "itof_const_zero_fold_ui"
1277 }
1278 break;
1279 case 'p': // 1 string to match.
1280 if (memcmp(RuleIdentifier.data()+1, "ropagate_undef_all_ops", 22) != 0)
1281 break;
1282 return 84; // "propagate_undef_all_ops"
1283 case 's': // 1 string to match.
1284 if (memcmp(RuleIdentifier.data()+1, "elect_same_val_trivial", 22) != 0)
1285 break;
1286 return 88; // "select_same_val_trivial"
1287 case 't': // 1 string to match.
1288 if (memcmp(RuleIdentifier.data()+1, "runcusatu_to_fptouisat", 22) != 0)
1289 break;
1290 return 261; // "truncusatu_to_fptouisat"
1291 }
1292 break;
1293 case 24: // 11 strings to match.
1294 switch (RuleIdentifier[0]) {
1295 default: break;
1296 case 'b': // 1 string to match.
1297 if (memcmp(RuleIdentifier.data()+1, "inop_left_undef_to_zero", 23) != 0)
1298 break;
1299 return 79; // "binop_left_undef_to_zero"
1300 case 'c': // 4 strings to match.
1301 switch (RuleIdentifier[1]) {
1302 default: break;
1303 case 'o': // 1 string to match.
1304 if (memcmp(RuleIdentifier.data()+2, "nstant_fold_fnearbyint", 22) != 0)
1305 break;
1306 return 163; // "constant_fold_fnearbyint"
1307 case 't': // 3 strings to match.
1308 switch (RuleIdentifier[2]) {
1309 default: break;
1310 case 'l': // 2 strings to match.
1311 if (memcmp(RuleIdentifier.data()+3, "z_", 2) != 0)
1312 break;
1313 switch (RuleIdentifier[5]) {
1314 default: break;
1315 case 't': // 1 string to match.
1316 if (memcmp(RuleIdentifier.data()+6, "o_ctlz_zero_poison", 18) != 0)
1317 break;
1318 return 265; // "ctlz_to_ctlz_zero_poison"
1319 case 'z': // 1 string to match.
1320 if (memcmp(RuleIdentifier.data()+6, "ero_poison_to_ctls", 18) != 0)
1321 break;
1322 return 264; // "ctlz_zero_poison_to_ctls"
1323 }
1324 break;
1325 case 't': // 1 string to match.
1326 if (memcmp(RuleIdentifier.data()+3, "z_to_cttz_zero_poison", 21) != 0)
1327 break;
1328 return 266; // "cttz_to_cttz_zero_poison"
1329 }
1330 break;
1331 }
1332 break;
1333 case 'm': // 1 string to match.
1334 if (memcmp(RuleIdentifier.data()+1, "atch_extract_of_element", 23) != 0)
1335 break;
1336 return 28; // "match_extract_of_element"
1337 case 'n': // 1 string to match.
1338 if (memcmp(RuleIdentifier.data()+1, "arrow_binop_feeding_and", 23) != 0)
1339 break;
1340 return 129; // "narrow_binop_feeding_and"
1341 case 's': // 3 strings to match.
1342 if (RuleIdentifier[1] != 'e')
1343 break;
1344 switch (RuleIdentifier[2]) {
1345 default: break;
1346 case 'l': // 1 string to match.
1347 if (memcmp(RuleIdentifier.data()+3, "ect_constant_cmp_true", 21) != 0)
1348 break;
1349 return 132; // "select_constant_cmp_true"
1350 case 'x': // 2 strings to match.
1351 if (memcmp(RuleIdentifier.data()+3, "t_inreg_", 8) != 0)
1352 break;
1353 switch (RuleIdentifier[11]) {
1354 default: break;
1355 case 'o': // 1 string to match.
1356 if (memcmp(RuleIdentifier.data()+12, "f_sext_inreg", 12) != 0)
1357 break;
1358 return 58; // "sext_inreg_of_sext_inreg"
1359 case 't': // 1 string to match.
1360 if (memcmp(RuleIdentifier.data()+12, "o_zext_inreg", 12) != 0)
1361 break;
1362 return 147; // "sext_inreg_to_zext_inreg"
1363 }
1364 break;
1365 }
1366 break;
1367 case 'x': // 1 string to match.
1368 if (memcmp(RuleIdentifier.data()+1, "or_of_and_with_same_reg", 23) != 0)
1369 break;
1370 return 173; // "xor_of_and_with_same_reg"
1371 }
1372 break;
1373 case 25: // 10 strings to match.
1374 switch (RuleIdentifier[0]) {
1375 default: break;
1376 case 'b': // 3 strings to match.
1377 switch (RuleIdentifier[1]) {
1378 default: break;
1379 case 'i': // 2 strings to match.
1380 if (memcmp(RuleIdentifier.data()+2, "tfield_extract_from_", 20) != 0)
1381 break;
1382 switch (RuleIdentifier[22]) {
1383 default: break;
1384 case 'a': // 1 string to match.
1385 if (memcmp(RuleIdentifier.data()+23, "nd", 2) != 0)
1386 break;
1387 return 191; // "bitfield_extract_from_and"
1388 case 's': // 1 string to match.
1389 if (memcmp(RuleIdentifier.data()+23, "hr", 2) != 0)
1390 break;
1391 return 192; // "bitfield_extract_from_shr"
1392 }
1393 break;
1394 case 'u': // 1 string to match.
1395 if (memcmp(RuleIdentifier.data()+2, "ildvector_identity_fold", 23) != 0)
1396 break;
1397 return 102; // "buildvector_identity_fold"
1398 }
1399 break;
1400 case 'c': // 1 string to match.
1401 if (memcmp(RuleIdentifier.data()+1, "ombine_shuffle_undef_rhs", 24) != 0)
1402 break;
1403 return 243; // "combine_shuffle_undef_rhs"
1404 case 'e': // 1 string to match.
1405 if (memcmp(RuleIdentifier.data()+1, "xtract_vec_elt_build_vec", 24) != 0)
1406 break;
1407 return 71; // "extract_vec_elt_build_vec"
1408 case 'n': // 1 string to match.
1409 if (memcmp(RuleIdentifier.data()+1, "eg_and_one_to_sext_inreg", 24) != 0)
1410 break;
1411 return 126; // "neg_and_one_to_sext_inreg"
1412 case 'r': // 3 strings to match.
1413 switch (RuleIdentifier[1]) {
1414 default: break;
1415 case 'e': // 2 strings to match.
1416 if (memcmp(RuleIdentifier.data()+2, "dundant_", 8) != 0)
1417 break;
1418 switch (RuleIdentifier[10]) {
1419 default: break;
1420 case 'a': // 1 string to match.
1421 if (memcmp(RuleIdentifier.data()+11, "ext_sext_inreg", 14) != 0)
1422 break;
1423 return 140; // "redundant_aext_sext_inreg"
1424 case 'z': // 1 string to match.
1425 if (memcmp(RuleIdentifier.data()+11, "ext_sext_inreg", 14) != 0)
1426 break;
1427 return 139; // "redundant_zext_sext_inreg"
1428 }
1429 break;
1430 case 'i': // 1 string to match.
1431 if (memcmp(RuleIdentifier.data()+2, "ght_identity_neg_one_fp", 23) != 0)
1432 break;
1433 return 110; // "right_identity_neg_one_fp"
1434 }
1435 break;
1436 case 's': // 1 string to match.
1437 if (memcmp(RuleIdentifier.data()+1, "elect_constant_cmp_false", 24) != 0)
1438 break;
1439 return 131; // "select_constant_cmp_false"
1440 }
1441 break;
1442 case 26: // 6 strings to match.
1443 switch (RuleIdentifier[0]) {
1444 default: break;
1445 case 'b': // 2 strings to match.
1446 if (RuleIdentifier[1] != 'i')
1447 break;
1448 switch (RuleIdentifier[2]) {
1449 default: break;
1450 case 'n': // 1 string to match.
1451 if (memcmp(RuleIdentifier.data()+3, "op_right_undef_to_undef", 23) != 0)
1452 break;
1453 return 80; // "binop_right_undef_to_undef"
1454 case 't': // 1 string to match.
1455 if (memcmp(RuleIdentifier.data()+3, "cast_bitcast_to_bitcast", 23) != 0)
1456 break;
1457 return 106; // "bitcast_bitcast_to_bitcast"
1458 }
1459 break;
1460 case 'c': // 2 strings to match.
1461 if (RuleIdentifier[1] != 'o')
1462 break;
1463 switch (RuleIdentifier[2]) {
1464 default: break;
1465 case 'm': // 1 string to match.
1466 if (memcmp(RuleIdentifier.data()+3, "mute_fp_constant_to_rhs", 23) != 0)
1467 break;
1468 return 228; // "commute_fp_constant_to_rhs"
1469 case 'n': // 1 string to match.
1470 if (memcmp(RuleIdentifier.data()+3, "stant_fold_unary_int_op", 23) != 0)
1471 break;
1472 return 198; // "constant_fold_unary_int_op"
1473 }
1474 break;
1475 case 'f': // 1 string to match.
1476 if (memcmp(RuleIdentifier.data()+1, "unnel_shift_from_or_shift", 25) != 0)
1477 break;
1478 return 179; // "funnel_shift_from_or_shift"
1479 case 'r': // 1 string to match.
1480 if (memcmp(RuleIdentifier.data()+1, "ight_identity_neg_zero_fp", 25) != 0)
1481 break;
1482 return 108; // "right_identity_neg_zero_fp"
1483 }
1484 break;
1485 case 27: // 7 strings to match.
1486 switch (RuleIdentifier[0]) {
1487 default: break;
1488 case 'c': // 2 strings to match.
1489 if (memcmp(RuleIdentifier.data()+1, "om", 2) != 0)
1490 break;
1491 switch (RuleIdentifier[3]) {
1492 default: break;
1493 case 'b': // 1 string to match.
1494 if (memcmp(RuleIdentifier.data()+4, "ine_use_vector_truncate", 23) != 0)
1495 break;
1496 return 245; // "combine_use_vector_truncate"
1497 case 'm': // 1 string to match.
1498 if (memcmp(RuleIdentifier.data()+4, "ute_int_constant_to_rhs", 23) != 0)
1499 break;
1500 return 227; // "commute_int_constant_to_rhs"
1501 }
1502 break;
1503 case 'd': // 1 string to match.
1504 if (memcmp(RuleIdentifier.data()+1, "ouble_icmp_zero_or_combine", 26) != 0)
1505 break;
1506 return 123; // "double_icmp_zero_or_combine"
1507 case 'r': // 1 string to match.
1508 if (memcmp(RuleIdentifier.data()+1, "edundant_binop_in_equality", 26) != 0)
1509 break;
1510 return 124; // "redundant_binop_in_equality"
1511 case 's': // 1 string to match.
1512 if (memcmp(RuleIdentifier.data()+1, "elect_constant_cmp_general", 26) != 0)
1513 break;
1514 return 133; // "select_constant_cmp_general"
1515 case 't': // 1 string to match.
1516 if (memcmp(RuleIdentifier.data()+1, "runc_lshr_buildvector_fold", 26) != 0)
1517 break;
1518 return 104; // "trunc_lshr_buildvector_fold"
1519 case 'u': // 1 string to match.
1520 if (memcmp(RuleIdentifier.data()+1, "nmerge_anyext_build_vector", 26) != 0)
1521 break;
1522 return 246; // "unmerge_anyext_build_vector"
1523 }
1524 break;
1525 case 28: // 5 strings to match.
1526 switch (RuleIdentifier[0]) {
1527 default: break;
1528 case 'd': // 1 string to match.
1529 if (memcmp(RuleIdentifier.data()+1, "ouble_icmp_zero_and_combine", 27) != 0)
1530 break;
1531 return 122; // "double_icmp_zero_and_combine"
1532 case 'e': // 1 string to match.
1533 if (memcmp(RuleIdentifier.data()+1, "xtract_vector_element_undef", 27) != 0)
1534 break;
1535 return 25; // "extract_vector_element_undef"
1536 case 'o': // 1 string to match.
1537 if (memcmp(RuleIdentifier.data()+1, "pt_brcond_by_inverting_cond", 27) != 0)
1538 break;
1539 return 150; // "opt_brcond_by_inverting_cond"
1540 case 'p': // 1 string to match.
1541 if (memcmp(RuleIdentifier.data()+1, "ropagate_undef_shuffle_mask", 27) != 0)
1542 break;
1543 return 85; // "propagate_undef_shuffle_mask"
1544 case 's': // 1 string to match.
1545 if (memcmp(RuleIdentifier.data()+1, "hift_of_shifted_logic_chain", 27) != 0)
1546 break;
1547 return 176; // "shift_of_shifted_logic_chain"
1548 }
1549 break;
1550 case 29: // 6 strings to match.
1551 switch (RuleIdentifier[0]) {
1552 default: break;
1553 case 'b': // 1 string to match.
1554 if (memcmp(RuleIdentifier.data()+1, "itfield_extract_from_shr_and", 28) != 0)
1555 break;
1556 return 193; // "bitfield_extract_from_shr_and"
1557 case 'c': // 4 strings to match.
1558 if (RuleIdentifier[1] != 'o')
1559 break;
1560 switch (RuleIdentifier[2]) {
1561 default: break;
1562 case 'm': // 2 strings to match.
1563 if (memcmp(RuleIdentifier.data()+3, "bine_", 5) != 0)
1564 break;
1565 switch (RuleIdentifier[8]) {
1566 default: break;
1567 case 'e': // 1 string to match.
1568 if (memcmp(RuleIdentifier.data()+9, "xtracted_vector_load", 20) != 0)
1569 break;
1570 return 75; // "combine_extracted_vector_load"
1571 case 's': // 1 string to match.
1572 if (memcmp(RuleIdentifier.data()+9, "huffle_disjoint_mask", 20) != 0)
1573 break;
1574 return 244; // "combine_shuffle_disjoint_mask"
1575 }
1576 break;
1577 case 'n': // 2 strings to match.
1578 if (memcmp(RuleIdentifier.data()+3, "stant_fold_intrinsic_", 21) != 0)
1579 break;
1580 switch (RuleIdentifier[24]) {
1581 default: break;
1582 case 'r': // 1 string to match.
1583 if (memcmp(RuleIdentifier.data()+25, "ound", 4) != 0)
1584 break;
1585 return 160; // "constant_fold_intrinsic_round"
1586 case 't': // 1 string to match.
1587 if (memcmp(RuleIdentifier.data()+25, "runc", 4) != 0)
1588 break;
1589 return 159; // "constant_fold_intrinsic_trunc"
1590 }
1591 break;
1592 }
1593 break;
1594 case 'i': // 1 string to match.
1595 if (memcmp(RuleIdentifier.data()+1, "cmp_to_true_false_known_bits", 28) != 0)
1596 break;
1597 return 120; // "icmp_to_true_false_known_bits"
1598 }
1599 break;
1600 case 30: // 2 strings to match.
1601 switch (RuleIdentifier[0]) {
1602 default: break;
1603 case 'f': // 1 string to match.
1604 if (memcmp(RuleIdentifier.data()+1, "reeze_of_non_undef_non_poison", 29) != 0)
1605 break;
1606 return 46; // "freeze_of_non_undef_non_poison"
1607 case 'r': // 1 string to match.
1608 if (memcmp(RuleIdentifier.data()+1, "ight_identity_neg_zero_fp_nsz", 29) != 0)
1609 break;
1610 return 109; // "right_identity_neg_zero_fp_nsz"
1611 }
1612 break;
1613 case 31: // 2 strings to match.
1614 if (memcmp(RuleIdentifier.data()+0, "insert_vector_element_", 22) != 0)
1615 break;
1616 switch (RuleIdentifier[22]) {
1617 default: break;
1618 case 'e': // 1 string to match.
1619 if (memcmp(RuleIdentifier.data()+23, "lt_undef", 8) != 0)
1620 break;
1621 return 27; // "insert_vector_element_elt_undef"
1622 case 'i': // 1 string to match.
1623 if (memcmp(RuleIdentifier.data()+23, "dx_undef", 8) != 0)
1624 break;
1625 return 26; // "insert_vector_element_idx_undef"
1626 }
1627 break;
1628 case 32: // 5 strings to match.
1629 switch (RuleIdentifier[0]) {
1630 default: break;
1631 case 'b': // 1 string to match.
1632 if (memcmp(RuleIdentifier.data()+1, "itfield_extract_from_sext_inreg", 31) != 0)
1633 break;
1634 return 190; // "bitfield_extract_from_sext_inreg"
1635 case 'c': // 2 strings to match.
1636 if (memcmp(RuleIdentifier.data()+1, "ombine_f", 8) != 0)
1637 break;
1638 switch (RuleIdentifier[9]) {
1639 default: break;
1640 case 'a': // 1 string to match.
1641 if (memcmp(RuleIdentifier.data()+10, "dd_fmul_to_fmad_or_fma", 22) != 0)
1642 break;
1643 return 207; // "combine_fadd_fmul_to_fmad_or_fma"
1644 case 's': // 1 string to match.
1645 if (memcmp(RuleIdentifier.data()+10, "ub_fmul_to_fmad_or_fma", 22) != 0)
1646 break;
1647 return 211; // "combine_fsub_fmul_to_fmad_or_fma"
1648 }
1649 break;
1650 case 'e': // 1 string to match.
1651 if (memcmp(RuleIdentifier.data()+1, "xtract_vector_element_not_const", 31) != 0)
1652 break;
1653 return 30; // "extract_vector_element_not_const"
1654 case 'r': // 1 string to match.
1655 if (memcmp(RuleIdentifier.data()+1, "edundant_neg_operands_fadd_fsub", 31) != 0)
1656 break;
1657 return 201; // "redundant_neg_operands_fadd_fsub"
1658 }
1659 break;
1660 case 33: // 3 strings to match.
1661 switch (RuleIdentifier[0]) {
1662 default: break;
1663 case 'c': // 1 string to match.
1664 if (memcmp(RuleIdentifier.data()+1, "onstant_fold_intrinsic_roundeven", 32) != 0)
1665 break;
1666 return 161; // "constant_fold_intrinsic_roundeven"
1667 case 'r': // 2 strings to match.
1668 if (memcmp(RuleIdentifier.data()+1, "edundant_", 9) != 0)
1669 break;
1670 switch (RuleIdentifier[10]) {
1671 default: break;
1672 case 'a': // 1 string to match.
1673 if (memcmp(RuleIdentifier.data()+11, "ext_unmerge_sext_inreg", 22) != 0)
1674 break;
1675 return 142; // "redundant_aext_unmerge_sext_inreg"
1676 case 'z': // 1 string to match.
1677 if (memcmp(RuleIdentifier.data()+11, "ext_unmerge_sext_inreg", 22) != 0)
1678 break;
1679 return 141; // "redundant_zext_unmerge_sext_inreg"
1680 }
1681 break;
1682 }
1683 break;
1684 case 34: // 1 string to match.
1685 if (memcmp(RuleIdentifier.data()+0, "extract_all_elts_from_build_vector", 34) != 0)
1686 break;
1687 return 72; // "extract_all_elts_from_build_vector"
1688 case 35: // 1 string to match.
1689 if (memcmp(RuleIdentifier.data()+0, "extract_vector_element_build_vector", 35) != 0)
1690 break;
1691 return 32; // "extract_vector_element_build_vector"
1692 case 36: // 3 strings to match.
1693 switch (RuleIdentifier[0]) {
1694 default: break;
1695 case 'c': // 2 strings to match.
1696 if (memcmp(RuleIdentifier.data()+1, "ombine_", 7) != 0)
1697 break;
1698 switch (RuleIdentifier[8]) {
1699 default: break;
1700 case 'f': // 1 string to match.
1701 if (memcmp(RuleIdentifier.data()+9, "add_fma_fmul_to_fmad_or_fma", 27) != 0)
1702 break;
1703 return 209; // "combine_fadd_fma_fmul_to_fmad_or_fma"
1704 case 'i': // 1 string to match.
1705 if (memcmp(RuleIdentifier.data()+9, "nsert_vec_elts_build_vector", 27) != 0)
1706 break;
1707 return 70; // "combine_insert_vec_elts_build_vector"
1708 }
1709 break;
1710 case 'i': // 1 string to match.
1711 if (memcmp(RuleIdentifier.data()+1, "nsert_extract_vec_elt_out_of_bounds", 35) != 0)
1712 break;
1713 return 87; // "insert_extract_vec_elt_out_of_bounds"
1714 }
1715 break;
1716 case 37: // 3 strings to match.
1717 switch (RuleIdentifier[0]) {
1718 default: break;
1719 case 'c': // 1 string to match.
1720 if (memcmp(RuleIdentifier.data()+1, "ombine_fsub_fneg_fmul_to_fmad_or_fma", 36) != 0)
1721 break;
1722 return 212; // "combine_fsub_fneg_fmul_to_fmad_or_fma"
1723 case 'e': // 1 string to match.
1724 if (memcmp(RuleIdentifier.data()+1, "xtract_vector_element_shuffle_vector", 36) != 0)
1725 break;
1726 return 40; // "extract_vector_element_shuffle_vector"
1727 case 'h': // 1 string to match.
1728 if (memcmp(RuleIdentifier.data()+1, "oist_logic_op_with_same_opcode_hands", 36) != 0)
1729 break;
1730 return 113; // "hoist_logic_op_with_same_opcode_hands"
1731 }
1732 break;
1733 case 38: // 2 strings to match.
1734 if (memcmp(RuleIdentifier.data()+0, "combine_f", 9) != 0)
1735 break;
1736 switch (RuleIdentifier[9]) {
1737 default: break;
1738 case 'a': // 1 string to match.
1739 if (memcmp(RuleIdentifier.data()+10, "dd_fpext_fmul_to_fmad_or_fma", 28) != 0)
1740 break;
1741 return 208; // "combine_fadd_fpext_fmul_to_fmad_or_fma"
1742 case 's': // 1 string to match.
1743 if (memcmp(RuleIdentifier.data()+10, "ub_fpext_fmul_to_fmad_or_fma", 28) != 0)
1744 break;
1745 return 213; // "combine_fsub_fpext_fmul_to_fmad_or_fma"
1746 }
1747 break;
1748 case 40: // 1 string to match.
1749 if (memcmp(RuleIdentifier.data()+0, "extract_vector_element_different_indices", 40) != 0)
1750 break;
1751 return 31; // "extract_vector_element_different_indices"
1752 case 42: // 9 strings to match.
1753 switch (RuleIdentifier[0]) {
1754 default: break;
1755 case 'c': // 1 string to match.
1756 if (memcmp(RuleIdentifier.data()+1, "ombine_fadd_fpext_fma_fmul_to_fmad_or_fma", 41) != 0)
1757 break;
1758 return 210; // "combine_fadd_fpext_fma_fmul_to_fmad_or_fma"
1759 case 'e': // 7 strings to match.
1760 if (memcmp(RuleIdentifier.data()+1, "xtract_vector_element_build_vector_trunc", 40) != 0)
1761 break;
1762 switch (RuleIdentifier[41]) {
1763 default: break;
1764 case '2': // 1 string to match.
1765 return 33; // "extract_vector_element_build_vector_trunc2"
1766 case '3': // 1 string to match.
1767 return 34; // "extract_vector_element_build_vector_trunc3"
1768 case '4': // 1 string to match.
1769 return 35; // "extract_vector_element_build_vector_trunc4"
1770 case '5': // 1 string to match.
1771 return 36; // "extract_vector_element_build_vector_trunc5"
1772 case '6': // 1 string to match.
1773 return 37; // "extract_vector_element_build_vector_trunc6"
1774 case '7': // 1 string to match.
1775 return 38; // "extract_vector_element_build_vector_trunc7"
1776 case '8': // 1 string to match.
1777 return 39; // "extract_vector_element_build_vector_trunc8"
1778 }
1779 break;
1780 case 'f': // 1 string to match.
1781 if (memcmp(RuleIdentifier.data()+1, "unnel_shift_or_shift_to_funnel_shift_left", 41) != 0)
1782 break;
1783 return 184; // "funnel_shift_or_shift_to_funnel_shift_left"
1784 }
1785 break;
1786 case 43: // 2 strings to match.
1787 switch (RuleIdentifier[0]) {
1788 default: break;
1789 case 'c': // 1 string to match.
1790 if (memcmp(RuleIdentifier.data()+1, "ombine_fsub_fpext_fneg_fmul_to_fmad_or_fma", 42) != 0)
1791 break;
1792 return 214; // "combine_fsub_fpext_fneg_fmul_to_fmad_or_fma"
1793 case 'f': // 1 string to match.
1794 if (memcmp(RuleIdentifier.data()+1, "unnel_shift_or_shift_to_funnel_shift_right", 42) != 0)
1795 break;
1796 return 185; // "funnel_shift_or_shift_to_funnel_shift_right"
1797 }
1798 break;
1799 case 44: // 1 string to match.
1800 if (memcmp(RuleIdentifier.data()+0, "insert_vector_element_extract_vector_element", 44) != 0)
1801 break;
1802 return 41; // "insert_vector_element_extract_vector_element"
1803 case 46: // 1 string to match.
1804 if (memcmp(RuleIdentifier.data()+0, "push_freeze_to_prevent_poison_from_propagating", 46) != 0)
1805 break;
1806 return 47; // "push_freeze_to_prevent_poison_from_propagating"
1807 }
1808#endif // ifndef NDEBUG
1809
1810 return std::nullopt;
1811}
1812static std::optional<std::pair<uint64_t, uint64_t>> getRuleRangeForIdentifier(StringRef RuleIdentifier) {
1813 std::pair<StringRef, StringRef> RangePair = RuleIdentifier.split('-');
1814 if (!RangePair.second.empty()) {
1815 const auto First = getRuleIdxForIdentifier(RangePair.first);
1816 const auto Last = getRuleIdxForIdentifier(RangePair.second);
1817 if (!First || !Last)
1818 return std::nullopt;
1819 if (First >= Last)
1820 report_fatal_error("Beginning of range should be before end of range");
1821 return {{*First, *Last + 1}};
1822 }
1823 if (RangePair.first == "*") {
1824 return {{0, 279}};
1825 }
1826 const auto I = getRuleIdxForIdentifier(RangePair.first);
1827 if (!I)
1828 return std::nullopt;
1829 return {{*I, *I + 1}};
1830}
1831
1832bool RISCVPreLegalizerCombinerImplRuleConfig::setRuleEnabled(StringRef RuleIdentifier) {
1833 auto MaybeRange = getRuleRangeForIdentifier(RuleIdentifier);
1834 if (!MaybeRange)
1835 return false;
1836 for (auto I = MaybeRange->first; I < MaybeRange->second; ++I)
1837 DisabledRules.reset(I);
1838 return true;
1839}
1840
1841bool RISCVPreLegalizerCombinerImplRuleConfig::setRuleDisabled(StringRef RuleIdentifier) {
1842 auto MaybeRange = getRuleRangeForIdentifier(RuleIdentifier);
1843 if (!MaybeRange)
1844 return false;
1845 for (auto I = MaybeRange->first; I < MaybeRange->second; ++I)
1846 DisabledRules.set(I);
1847 return true;
1848}
1849
1850static std::vector<std::string> RISCVPreLegalizerCombinerOption;
1851static cl::list<std::string> RISCVPreLegalizerCombinerDisableOption(
1852 "riscvprelegalizercombiner-disable-rule",
1853 cl::desc("Disable one or more combiner rules temporarily in the RISCVPreLegalizerCombiner pass"),
1854 cl::CommaSeparated,
1855 cl::Hidden,
1856 cl::cat(GICombinerOptionCategory),
1857 cl::callback([](const std::string &Str) {
1858 RISCVPreLegalizerCombinerOption.push_back(Str);
1859 }));
1860static cl::list<std::string> RISCVPreLegalizerCombinerOnlyEnableOption(
1861 "riscvprelegalizercombiner-only-enable-rule",
1862 cl::desc("Disable all rules in the RISCVPreLegalizerCombiner pass then re-enable the specified ones"),
1863 cl::Hidden,
1864 cl::cat(GICombinerOptionCategory),
1865 cl::callback([](const std::string &CommaSeparatedArg) {
1866 StringRef Str = CommaSeparatedArg;
1867 RISCVPreLegalizerCombinerOption.push_back("*");
1868 do {
1869 auto X = Str.split(",");
1870 RISCVPreLegalizerCombinerOption.push_back(("!" + X.first).str());
1871 Str = X.second;
1872 } while (!Str.empty());
1873 }));
1874
1875
1876bool RISCVPreLegalizerCombinerImplRuleConfig::isRuleEnabled(unsigned RuleID) const {
1877 return !DisabledRules.test(RuleID);
1878}
1879bool RISCVPreLegalizerCombinerImplRuleConfig::parseCommandLineOption() {
1880 for (StringRef Identifier : RISCVPreLegalizerCombinerOption) {
1881 bool Enabled = Identifier.consume_front("!");
1882 if (Enabled && !setRuleEnabled(Identifier))
1883 return false;
1884 if (!Enabled && !setRuleDisabled(Identifier))
1885 return false;
1886 }
1887 return true;
1888}
1889
1890
1891#endif // GET_GICOMBINER_TYPES
1892
1893#ifdef GET_GICOMBINER_TYPES
1894
1895const unsigned MAX_SUBTARGET_PREDICATES = 0;
1896using PredicateBitset = llvm::Bitset<MAX_SUBTARGET_PREDICATES>;
1897
1898#endif // GET_GICOMBINER_TYPES
1899
1900#ifdef GET_GICOMBINER_CLASS_MEMBERS
1901
1902 bool canMatchOpcode(unsigned Opc) const override;
1903 uint32_t getRootFlagsToDrop() const override;
1904
1905#endif // GET_GICOMBINER_CLASS_MEMBERS
1906
1907#ifdef GET_GICOMBINER_CLASS_MEMBERS
1908
1909PredicateBitset AvailableModuleFeatures;
1910mutable PredicateBitset AvailableFunctionFeatures;
1911PredicateBitset getAvailableFeatures() const {
1912 return AvailableModuleFeatures | AvailableFunctionFeatures;
1913}
1914PredicateBitset
1915computeAvailableModuleFeatures(const RISCVSubtarget *Subtarget) const;
1916PredicateBitset
1917computeAvailableFunctionFeatures(const RISCVSubtarget *Subtarget,
1918 const MachineFunction *MF) const;
1919void setupGeneratedPerFunctionState(MachineFunction &MF) override;
1920
1921#endif // GET_GICOMBINER_CLASS_MEMBERS
1922
1923#ifdef GET_GICOMBINER_CLASS_MEMBERS
1924
1925 mutable MatcherState State;
1926 typedef ComplexRendererFns(RISCVPreLegalizerCombinerImpl::*ComplexMatcherMemFn)(MachineOperand &) const;
1927 typedef void(RISCVPreLegalizerCombinerImpl::*CustomRendererFn)(MachineInstrBuilder &, const MachineInstr &, int) const;
1928 const ExecInfoTy<PredicateBitset, ComplexMatcherMemFn, CustomRendererFn> ExecInfo;
1929 static RISCVPreLegalizerCombinerImpl::ComplexMatcherMemFn ComplexPredicateFns[];
1930 static RISCVPreLegalizerCombinerImpl::CustomRendererFn CustomRenderers[];
1931 bool testImmPredicate_I64(unsigned PredicateID, int64_t Imm) const override;
1932 bool testImmPredicate_APInt(unsigned PredicateID, const APInt &Imm) const override;
1933 bool testImmPredicate_APFloat(unsigned PredicateID, const APFloat &Imm) const override;
1934 const uint8_t *getMatchTable() const override;
1935 bool testMIPredicate_MI(unsigned PredicateID, const MachineInstr &MI, const MatcherState &State) const override;
1936 bool testMOPredicate_MO(unsigned PredicateID, const MachineOperand &MO, const MatcherState &State) const override;
1937 bool testSimplePredicate(unsigned PredicateID) const override;
1938 bool runCustomAction(unsigned FnID, const MatcherState &State, NewMIVector &OutMIs) const override;
1939
1940#endif // GET_GICOMBINER_CLASS_MEMBERS
1941
1942#ifdef GET_GICOMBINER_IMPL
1943
1944// LLT Objects.
1945enum {
1946 GILLT_s1,
1947};
1948const static size_t NumTypeObjects = 1;
1949const static LLT TypeObjects[] = {
1950 LLT::scalar(1),
1951};
1952
1953// Bits for subtarget features that participate in instruction matching.
1954enum SubtargetFeatureBits : uint8_t {
1955};
1956
1957PredicateBitset RISCVPreLegalizerCombinerImpl::
1958computeAvailableModuleFeatures(const RISCVSubtarget *Subtarget) const {
1959 PredicateBitset Features{};
1960 return Features;
1961}
1962
1963void RISCVPreLegalizerCombinerImpl::setupGeneratedPerFunctionState(MachineFunction &MF) {
1964 AvailableFunctionFeatures = computeAvailableFunctionFeatures((const RISCVSubtarget *)&MF.getSubtarget(), &MF);
1965}
1966PredicateBitset RISCVPreLegalizerCombinerImpl::
1967computeAvailableFunctionFeatures(const RISCVSubtarget *Subtarget, const MachineFunction *MF) const {
1968 PredicateBitset Features{};
1969 return Features;
1970}
1971
1972// Feature bitsets.
1973enum {
1974 GIFBS_Invalid,
1975};
1976constexpr static PredicateBitset FeatureBitsets[] {
1977 {}, // GIFBS_Invalid
1978};
1979
1980// ComplexPattern predicates.
1981enum {
1982 GICP_Invalid,
1983};
1984// See constructor for table contents
1985
1986RISCVPreLegalizerCombinerImpl::ComplexMatcherMemFn
1987RISCVPreLegalizerCombinerImpl::ComplexPredicateFns[] = {
1988 nullptr, // GICP_Invalid
1989};
1990
1991enum {
1992 GICXXPred_MI_Predicate_GICombiner0 = GICXXPred_Invalid + 1,
1993 GICXXPred_MI_Predicate_GICombiner1,
1994 GICXXPred_MI_Predicate_GICombiner2,
1995 GICXXPred_MI_Predicate_GICombiner3,
1996 GICXXPred_MI_Predicate_GICombiner4,
1997 GICXXPred_MI_Predicate_GICombiner5,
1998 GICXXPred_MI_Predicate_GICombiner6,
1999 GICXXPred_MI_Predicate_GICombiner7,
2000 GICXXPred_MI_Predicate_GICombiner8,
2001 GICXXPred_MI_Predicate_GICombiner9,
2002 GICXXPred_MI_Predicate_GICombiner10,
2003 GICXXPred_MI_Predicate_GICombiner11,
2004 GICXXPred_MI_Predicate_GICombiner12,
2005 GICXXPred_MI_Predicate_GICombiner13,
2006 GICXXPred_MI_Predicate_GICombiner14,
2007 GICXXPred_MI_Predicate_GICombiner15,
2008 GICXXPred_MI_Predicate_GICombiner16,
2009 GICXXPred_MI_Predicate_GICombiner17,
2010 GICXXPred_MI_Predicate_GICombiner18,
2011 GICXXPred_MI_Predicate_GICombiner19,
2012 GICXXPred_MI_Predicate_GICombiner20,
2013 GICXXPred_MI_Predicate_GICombiner21,
2014 GICXXPred_MI_Predicate_GICombiner22,
2015 GICXXPred_MI_Predicate_GICombiner23,
2016 GICXXPred_MI_Predicate_GICombiner24,
2017 GICXXPred_MI_Predicate_GICombiner25,
2018 GICXXPred_MI_Predicate_GICombiner26,
2019 GICXXPred_MI_Predicate_GICombiner27,
2020 GICXXPred_MI_Predicate_GICombiner28,
2021 GICXXPred_MI_Predicate_GICombiner29,
2022 GICXXPred_MI_Predicate_GICombiner30,
2023 GICXXPred_MI_Predicate_GICombiner31,
2024};
2025bool RISCVPreLegalizerCombinerImpl::testMIPredicate_MI(unsigned PredicateID, const MachineInstr & MI, const MatcherState &State) const {
2026 switch (PredicateID) {
2027 case GICXXPred_MI_Predicate_GICombiner0: {
2028 return MRI.hasOneNonDBGUse(State.MIs[0]->getOperand(2).getReg());
2029 }
2030 case GICXXPred_MI_Predicate_GICombiner1: {
2031 return MRI.hasOneNonDBGUse(State.MIs[0]->getOperand(1).getReg());
2032 }
2033 case GICXXPred_MI_Predicate_GICombiner2: {
2034 return MRI.getType(State.MIs[1]->getOperand(1).getReg()).getScalarSizeInBits() ==
2035 MRI.getType(State.MIs[0]->getOperand(0).getReg()).getScalarSizeInBits();
2036 }
2037 case GICXXPred_MI_Predicate_GICombiner3: {
2038 return isGuaranteedNotToBePoison(State.MIs[0]->getOperand(1).getReg(), MRI);
2039 }
2040 case GICXXPred_MI_Predicate_GICombiner4: {
2041 return isGuaranteedNotToBeUndefOrPoison(State.MIs[0]->getOperand(1).getReg(), MRI);
2042 }
2043 case GICXXPred_MI_Predicate_GICombiner5: {
2044 return Helper.matchUndefShuffleVectorMask(*State.MIs[0]);
2045 }
2046 case GICXXPred_MI_Predicate_GICombiner6: {
2047 return Helper.matchSelectSameVal(*State.MIs[0]);
2048 }
2049 case GICXXPred_MI_Predicate_GICombiner7: {
2050 return MRI.getType(State.MIs[1]->getOperand(1).getReg()) == MRI.getType(State.MIs[0]->getOperand(0).getReg());
2051 }
2052 case GICXXPred_MI_Predicate_GICombiner8: {
2053 return Helper.matchConstantFPOp(State.MIs[0]->getOperand(2), 1.0);
2054 }
2055 case GICXXPred_MI_Predicate_GICombiner9: {
2056 return MRI.getType(State.MIs[1]->getOperand(1).getReg()) != MRI.getType(State.MIs[0]->getOperand(0).getReg());
2057 }
2058 case GICXXPred_MI_Predicate_GICombiner10: {
2059 return Helper.matchConstantFPOp(State.MIs[0]->getOperand(2), -0.0);
2060 }
2061 case GICXXPred_MI_Predicate_GICombiner11: {
2062 return Helper.matchConstantFPOp(State.MIs[0]->getOperand(2), 0.0);
2063 }
2064 case GICXXPred_MI_Predicate_GICombiner12: {
2065 return Helper.matchConstantFPOp(State.MIs[0]->getOperand(2), -1.0);
2066 }
2067 case GICXXPred_MI_Predicate_GICombiner13: {
2068 return State.MIs[1]->getOperand(1).getPredicate() == CmpInst::ICMP_EQ &&
2069 !MRI.getType(State.MIs[1]->getOperand(2).getReg()).getScalarType().isPointer() &&
2070 (MRI.getType(State.MIs[1]->getOperand(2).getReg()) ==
2071 MRI.getType(State.MIs[2]->getOperand(2).getReg()));
2072 }
2073 case GICXXPred_MI_Predicate_GICombiner14: {
2074 return State.MIs[1]->getOperand(1).getPredicate() == CmpInst::ICMP_NE &&
2075 !MRI.getType(State.MIs[1]->getOperand(2).getReg()).getScalarType().isPointer() &&
2076 (MRI.getType(State.MIs[1]->getOperand(2).getReg()) ==
2077 MRI.getType(State.MIs[2]->getOperand(2).getReg()));
2078 }
2079 case GICXXPred_MI_Predicate_GICombiner15: {
2080 return MRI.hasOneNonDBGUse(State.MIs[0]->getOperand(2).getReg()) &&
2081 Helper.isLegalOrBeforeLegalizer({
2082 TargetOpcode::G_SEXT_INREG,
2083 {MRI.getType(State.MIs[1]->getOperand(1).getReg())},
2084 {},
2085 {1}
2086 });
2087 }
2088 case GICXXPred_MI_Predicate_GICombiner16: {
2089 return !isConstantOrConstantSplatVector(State.MIs[0]->getOperand(1).getReg(), MRI) &&
2090 MRI.getType(State.MIs[0]->getOperand(1).getReg()) == MRI.getType(State.MIs[0]->getOperand(0).getReg()) &&
2091 VT->computeNumSignBits(State.MIs[0]->getOperand(1).getReg()) == MRI.getType(State.MIs[0]->getOperand(0).getReg()).getScalarSizeInBits();
2092 }
2093 case GICXXPred_MI_Predicate_GICombiner17: {
2094 return Helper.matchRedundantSExtInReg(*State.MIs[0]);
2095 }
2096 case GICXXPred_MI_Predicate_GICombiner18: {
2097 LLT SrcTy = MRI.getType(State.MIs[1]->getOperand(1).getReg());
2098 return State.MIs[0]->getOperand(2).getImm() <= SrcTy.getScalarSizeInBits() &&
2099 VT->computeNumSignBits(State.MIs[1]->getOperand(1).getReg()) >=
2100 (SrcTy.getScalarSizeInBits() - State.MIs[0]->getOperand(2).getImm() + 1);
2101 llvm_unreachable("GICombiner18 should have returned");
2102 }
2103 case GICXXPred_MI_Predicate_GICombiner19: {
2104 return Helper.matchPtrAddZero(*State.MIs[0]);
2105 }
2106 case GICXXPred_MI_Predicate_GICombiner20: {
2107 return Helper.isLegalOrBeforeLegalizer({TargetOpcode::G_LSHR,
2108 {MRI.getType(State.MIs[2]->getOperand(1).getReg()),
2109 MRI.getType(State.MIs[1]->getOperand(2).getReg())}});
2110 }
2111 case GICXXPred_MI_Predicate_GICombiner21: {
2112 return Helper.isLegalOrBeforeLegalizer({TargetOpcode::G_SHL,
2113 {MRI.getType(State.MIs[2]->getOperand(1).getReg()),
2114 MRI.getType(State.MIs[1]->getOperand(2).getReg())}});
2115 }
2116 case GICXXPred_MI_Predicate_GICombiner22: {
2117 return MRI.hasOneNonDBGUse(State.MIs[0]->getOperand(1).getReg()) &&
2118 isConstantOrConstantSplatVector(State.MIs[1]->getOperand(2).getReg(), MRI) &&
2119 isConstantOrConstantSplatVector(State.MIs[0]->getOperand(2).getReg(), MRI) &&
2120 Helper.isDesirableToCommuteWithShift(*State.MIs[0]);
2121 }
2122 case GICXXPred_MI_Predicate_GICombiner23: {
2123 return Helper.matchTruncUSatU(*State.MIs[0], *State.MIs[1]);
2124 }
2125 case GICXXPred_MI_Predicate_GICombiner24: {
2126 return Helper.matchTruncUSatUToFPTOUISat(*State.MIs[0], *State.MIs[1]);
2127 }
2128 case GICXXPred_MI_Predicate_GICombiner25: {
2129 return MRI.hasOneNonDBGUse(State.MIs[0]->getOperand(2).getReg()) &&
2130 MRI.hasOneNonDBGUse(State.MIs[1]->getOperand(1).getReg());
2131 }
2132 case GICXXPred_MI_Predicate_GICombiner26: {
2133 return MRI.hasOneNonDBGUse(State.MIs[0]->getOperand(1).getReg()) &&
2134 MRI.hasOneNonDBGUse(State.MIs[1]->getOperand(1).getReg());
2135 }
2136 case GICXXPred_MI_Predicate_GICombiner27: {
2137 return MRI.hasOneNonDBGUse(State.MIs[1]->getOperand(2).getReg()) &&
2138 MRI.hasOneNonDBGUse(State.MIs[0]->getOperand(2).getReg());
2139 }
2140 case GICXXPred_MI_Predicate_GICombiner28: {
2141 return Helper.matchAVG(*State.MIs[0], MRI, State.MIs[2]->getOperand(1).getReg(), State.MIs[3]->getOperand(1).getReg(), TargetOpcode::G_UAVGFLOOR);
2142 }
2143 case GICXXPred_MI_Predicate_GICombiner29: {
2144 return Helper.matchAVG(*State.MIs[0], MRI, State.MIs[2]->getOperand(1).getReg(), State.MIs[3]->getOperand(1).getReg(), TargetOpcode::G_SAVGFLOOR);
2145 }
2146 case GICXXPred_MI_Predicate_GICombiner30: {
2147 return Helper.matchAVG(*State.MIs[0], MRI, State.MIs[3]->getOperand(1).getReg(), State.MIs[4]->getOperand(1).getReg(), TargetOpcode::G_UAVGCEIL);
2148 }
2149 case GICXXPred_MI_Predicate_GICombiner31: {
2150 return Helper.matchAVG(*State.MIs[0], MRI, State.MIs[3]->getOperand(1).getReg(), State.MIs[4]->getOperand(1).getReg(), TargetOpcode::G_SAVGCEIL);
2151 }
2152 }
2153 llvm_unreachable("Unknown predicate");
2154 return false;
2155}
2156bool RISCVPreLegalizerCombinerImpl::testMOPredicate_MO(unsigned PredicateID, const MachineOperand & MO, const MatcherState &State) const {
2157 llvm_unreachable("Unknown predicate");
2158 return false;
2159}
2160bool RISCVPreLegalizerCombinerImpl::testImmPredicate_I64(unsigned PredicateID, int64_t Imm) const {
2161 llvm_unreachable("Unknown predicate");
2162 return false;
2163}
2164bool RISCVPreLegalizerCombinerImpl::testImmPredicate_APFloat(unsigned PredicateID, const APFloat & Imm) const {
2165 llvm_unreachable("Unknown predicate");
2166 return false;
2167}
2168bool RISCVPreLegalizerCombinerImpl::testImmPredicate_APInt(unsigned PredicateID, const APInt & Imm) const {
2169 llvm_unreachable("Unknown predicate");
2170 return false;
2171}
2172enum {
2173 GICXXPred_Simple_IsRule0Enabled = GICXXPred_Invalid + 1,
2174 GICXXPred_Simple_IsRule1Enabled,
2175 GICXXPred_Simple_IsRule2Enabled,
2176 GICXXPred_Simple_IsRule3Enabled,
2177 GICXXPred_Simple_IsRule4Enabled,
2178 GICXXPred_Simple_IsRule5Enabled,
2179 GICXXPred_Simple_IsRule6Enabled,
2180 GICXXPred_Simple_IsRule7Enabled,
2181 GICXXPred_Simple_IsRule8Enabled,
2182 GICXXPred_Simple_IsRule9Enabled,
2183 GICXXPred_Simple_IsRule10Enabled,
2184 GICXXPred_Simple_IsRule11Enabled,
2185 GICXXPred_Simple_IsRule12Enabled,
2186 GICXXPred_Simple_IsRule13Enabled,
2187 GICXXPred_Simple_IsRule14Enabled,
2188 GICXXPred_Simple_IsRule15Enabled,
2189 GICXXPred_Simple_IsRule16Enabled,
2190 GICXXPred_Simple_IsRule17Enabled,
2191 GICXXPred_Simple_IsRule18Enabled,
2192 GICXXPred_Simple_IsRule19Enabled,
2193 GICXXPred_Simple_IsRule20Enabled,
2194 GICXXPred_Simple_IsRule21Enabled,
2195 GICXXPred_Simple_IsRule22Enabled,
2196 GICXXPred_Simple_IsRule23Enabled,
2197 GICXXPred_Simple_IsRule24Enabled,
2198 GICXXPred_Simple_IsRule25Enabled,
2199 GICXXPred_Simple_IsRule26Enabled,
2200 GICXXPred_Simple_IsRule27Enabled,
2201 GICXXPred_Simple_IsRule28Enabled,
2202 GICXXPred_Simple_IsRule29Enabled,
2203 GICXXPred_Simple_IsRule30Enabled,
2204 GICXXPred_Simple_IsRule31Enabled,
2205 GICXXPred_Simple_IsRule32Enabled,
2206 GICXXPred_Simple_IsRule33Enabled,
2207 GICXXPred_Simple_IsRule34Enabled,
2208 GICXXPred_Simple_IsRule35Enabled,
2209 GICXXPred_Simple_IsRule36Enabled,
2210 GICXXPred_Simple_IsRule37Enabled,
2211 GICXXPred_Simple_IsRule38Enabled,
2212 GICXXPred_Simple_IsRule39Enabled,
2213 GICXXPred_Simple_IsRule40Enabled,
2214 GICXXPred_Simple_IsRule41Enabled,
2215 GICXXPred_Simple_IsRule42Enabled,
2216 GICXXPred_Simple_IsRule43Enabled,
2217 GICXXPred_Simple_IsRule44Enabled,
2218 GICXXPred_Simple_IsRule45Enabled,
2219 GICXXPred_Simple_IsRule46Enabled,
2220 GICXXPred_Simple_IsRule47Enabled,
2221 GICXXPred_Simple_IsRule48Enabled,
2222 GICXXPred_Simple_IsRule49Enabled,
2223 GICXXPred_Simple_IsRule50Enabled,
2224 GICXXPred_Simple_IsRule51Enabled,
2225 GICXXPred_Simple_IsRule52Enabled,
2226 GICXXPred_Simple_IsRule53Enabled,
2227 GICXXPred_Simple_IsRule54Enabled,
2228 GICXXPred_Simple_IsRule55Enabled,
2229 GICXXPred_Simple_IsRule56Enabled,
2230 GICXXPred_Simple_IsRule57Enabled,
2231 GICXXPred_Simple_IsRule58Enabled,
2232 GICXXPred_Simple_IsRule59Enabled,
2233 GICXXPred_Simple_IsRule60Enabled,
2234 GICXXPred_Simple_IsRule61Enabled,
2235 GICXXPred_Simple_IsRule62Enabled,
2236 GICXXPred_Simple_IsRule63Enabled,
2237 GICXXPred_Simple_IsRule64Enabled,
2238 GICXXPred_Simple_IsRule65Enabled,
2239 GICXXPred_Simple_IsRule66Enabled,
2240 GICXXPred_Simple_IsRule67Enabled,
2241 GICXXPred_Simple_IsRule68Enabled,
2242 GICXXPred_Simple_IsRule69Enabled,
2243 GICXXPred_Simple_IsRule70Enabled,
2244 GICXXPred_Simple_IsRule71Enabled,
2245 GICXXPred_Simple_IsRule72Enabled,
2246 GICXXPred_Simple_IsRule73Enabled,
2247 GICXXPred_Simple_IsRule74Enabled,
2248 GICXXPred_Simple_IsRule75Enabled,
2249 GICXXPred_Simple_IsRule76Enabled,
2250 GICXXPred_Simple_IsRule77Enabled,
2251 GICXXPred_Simple_IsRule78Enabled,
2252 GICXXPred_Simple_IsRule79Enabled,
2253 GICXXPred_Simple_IsRule80Enabled,
2254 GICXXPred_Simple_IsRule81Enabled,
2255 GICXXPred_Simple_IsRule82Enabled,
2256 GICXXPred_Simple_IsRule83Enabled,
2257 GICXXPred_Simple_IsRule84Enabled,
2258 GICXXPred_Simple_IsRule85Enabled,
2259 GICXXPred_Simple_IsRule86Enabled,
2260 GICXXPred_Simple_IsRule87Enabled,
2261 GICXXPred_Simple_IsRule88Enabled,
2262 GICXXPred_Simple_IsRule89Enabled,
2263 GICXXPred_Simple_IsRule90Enabled,
2264 GICXXPred_Simple_IsRule91Enabled,
2265 GICXXPred_Simple_IsRule92Enabled,
2266 GICXXPred_Simple_IsRule93Enabled,
2267 GICXXPred_Simple_IsRule94Enabled,
2268 GICXXPred_Simple_IsRule95Enabled,
2269 GICXXPred_Simple_IsRule96Enabled,
2270 GICXXPred_Simple_IsRule97Enabled,
2271 GICXXPred_Simple_IsRule98Enabled,
2272 GICXXPred_Simple_IsRule99Enabled,
2273 GICXXPred_Simple_IsRule100Enabled,
2274 GICXXPred_Simple_IsRule101Enabled,
2275 GICXXPred_Simple_IsRule102Enabled,
2276 GICXXPred_Simple_IsRule103Enabled,
2277 GICXXPred_Simple_IsRule104Enabled,
2278 GICXXPred_Simple_IsRule105Enabled,
2279 GICXXPred_Simple_IsRule106Enabled,
2280 GICXXPred_Simple_IsRule107Enabled,
2281 GICXXPred_Simple_IsRule108Enabled,
2282 GICXXPred_Simple_IsRule109Enabled,
2283 GICXXPred_Simple_IsRule110Enabled,
2284 GICXXPred_Simple_IsRule111Enabled,
2285 GICXXPred_Simple_IsRule112Enabled,
2286 GICXXPred_Simple_IsRule113Enabled,
2287 GICXXPred_Simple_IsRule114Enabled,
2288 GICXXPred_Simple_IsRule115Enabled,
2289 GICXXPred_Simple_IsRule116Enabled,
2290 GICXXPred_Simple_IsRule117Enabled,
2291 GICXXPred_Simple_IsRule118Enabled,
2292 GICXXPred_Simple_IsRule119Enabled,
2293 GICXXPred_Simple_IsRule120Enabled,
2294 GICXXPred_Simple_IsRule121Enabled,
2295 GICXXPred_Simple_IsRule122Enabled,
2296 GICXXPred_Simple_IsRule123Enabled,
2297 GICXXPred_Simple_IsRule124Enabled,
2298 GICXXPred_Simple_IsRule125Enabled,
2299 GICXXPred_Simple_IsRule126Enabled,
2300 GICXXPred_Simple_IsRule127Enabled,
2301 GICXXPred_Simple_IsRule128Enabled,
2302 GICXXPred_Simple_IsRule129Enabled,
2303 GICXXPred_Simple_IsRule130Enabled,
2304 GICXXPred_Simple_IsRule131Enabled,
2305 GICXXPred_Simple_IsRule132Enabled,
2306 GICXXPred_Simple_IsRule133Enabled,
2307 GICXXPred_Simple_IsRule134Enabled,
2308 GICXXPred_Simple_IsRule135Enabled,
2309 GICXXPred_Simple_IsRule136Enabled,
2310 GICXXPred_Simple_IsRule137Enabled,
2311 GICXXPred_Simple_IsRule138Enabled,
2312 GICXXPred_Simple_IsRule139Enabled,
2313 GICXXPred_Simple_IsRule140Enabled,
2314 GICXXPred_Simple_IsRule141Enabled,
2315 GICXXPred_Simple_IsRule142Enabled,
2316 GICXXPred_Simple_IsRule143Enabled,
2317 GICXXPred_Simple_IsRule144Enabled,
2318 GICXXPred_Simple_IsRule145Enabled,
2319 GICXXPred_Simple_IsRule146Enabled,
2320 GICXXPred_Simple_IsRule147Enabled,
2321 GICXXPred_Simple_IsRule148Enabled,
2322 GICXXPred_Simple_IsRule149Enabled,
2323 GICXXPred_Simple_IsRule150Enabled,
2324 GICXXPred_Simple_IsRule151Enabled,
2325 GICXXPred_Simple_IsRule152Enabled,
2326 GICXXPred_Simple_IsRule153Enabled,
2327 GICXXPred_Simple_IsRule154Enabled,
2328 GICXXPred_Simple_IsRule155Enabled,
2329 GICXXPred_Simple_IsRule156Enabled,
2330 GICXXPred_Simple_IsRule157Enabled,
2331 GICXXPred_Simple_IsRule158Enabled,
2332 GICXXPred_Simple_IsRule159Enabled,
2333 GICXXPred_Simple_IsRule160Enabled,
2334 GICXXPred_Simple_IsRule161Enabled,
2335 GICXXPred_Simple_IsRule162Enabled,
2336 GICXXPred_Simple_IsRule163Enabled,
2337 GICXXPred_Simple_IsRule164Enabled,
2338 GICXXPred_Simple_IsRule165Enabled,
2339 GICXXPred_Simple_IsRule166Enabled,
2340 GICXXPred_Simple_IsRule167Enabled,
2341 GICXXPred_Simple_IsRule168Enabled,
2342 GICXXPred_Simple_IsRule169Enabled,
2343 GICXXPred_Simple_IsRule170Enabled,
2344 GICXXPred_Simple_IsRule171Enabled,
2345 GICXXPred_Simple_IsRule172Enabled,
2346 GICXXPred_Simple_IsRule173Enabled,
2347 GICXXPred_Simple_IsRule174Enabled,
2348 GICXXPred_Simple_IsRule175Enabled,
2349 GICXXPred_Simple_IsRule176Enabled,
2350 GICXXPred_Simple_IsRule177Enabled,
2351 GICXXPred_Simple_IsRule178Enabled,
2352 GICXXPred_Simple_IsRule179Enabled,
2353 GICXXPred_Simple_IsRule180Enabled,
2354 GICXXPred_Simple_IsRule181Enabled,
2355 GICXXPred_Simple_IsRule182Enabled,
2356 GICXXPred_Simple_IsRule183Enabled,
2357 GICXXPred_Simple_IsRule184Enabled,
2358 GICXXPred_Simple_IsRule185Enabled,
2359 GICXXPred_Simple_IsRule186Enabled,
2360 GICXXPred_Simple_IsRule187Enabled,
2361 GICXXPred_Simple_IsRule188Enabled,
2362 GICXXPred_Simple_IsRule189Enabled,
2363 GICXXPred_Simple_IsRule190Enabled,
2364 GICXXPred_Simple_IsRule191Enabled,
2365 GICXXPred_Simple_IsRule192Enabled,
2366 GICXXPred_Simple_IsRule193Enabled,
2367 GICXXPred_Simple_IsRule194Enabled,
2368 GICXXPred_Simple_IsRule195Enabled,
2369 GICXXPred_Simple_IsRule196Enabled,
2370 GICXXPred_Simple_IsRule197Enabled,
2371 GICXXPred_Simple_IsRule198Enabled,
2372 GICXXPred_Simple_IsRule199Enabled,
2373 GICXXPred_Simple_IsRule200Enabled,
2374 GICXXPred_Simple_IsRule201Enabled,
2375 GICXXPred_Simple_IsRule202Enabled,
2376 GICXXPred_Simple_IsRule203Enabled,
2377 GICXXPred_Simple_IsRule204Enabled,
2378 GICXXPred_Simple_IsRule205Enabled,
2379 GICXXPred_Simple_IsRule206Enabled,
2380 GICXXPred_Simple_IsRule207Enabled,
2381 GICXXPred_Simple_IsRule208Enabled,
2382 GICXXPred_Simple_IsRule209Enabled,
2383 GICXXPred_Simple_IsRule210Enabled,
2384 GICXXPred_Simple_IsRule211Enabled,
2385 GICXXPred_Simple_IsRule212Enabled,
2386 GICXXPred_Simple_IsRule213Enabled,
2387 GICXXPred_Simple_IsRule214Enabled,
2388 GICXXPred_Simple_IsRule215Enabled,
2389 GICXXPred_Simple_IsRule216Enabled,
2390 GICXXPred_Simple_IsRule217Enabled,
2391 GICXXPred_Simple_IsRule218Enabled,
2392 GICXXPred_Simple_IsRule219Enabled,
2393 GICXXPred_Simple_IsRule220Enabled,
2394 GICXXPred_Simple_IsRule221Enabled,
2395 GICXXPred_Simple_IsRule222Enabled,
2396 GICXXPred_Simple_IsRule223Enabled,
2397 GICXXPred_Simple_IsRule224Enabled,
2398 GICXXPred_Simple_IsRule225Enabled,
2399 GICXXPred_Simple_IsRule226Enabled,
2400 GICXXPred_Simple_IsRule227Enabled,
2401 GICXXPred_Simple_IsRule228Enabled,
2402 GICXXPred_Simple_IsRule229Enabled,
2403 GICXXPred_Simple_IsRule230Enabled,
2404 GICXXPred_Simple_IsRule231Enabled,
2405 GICXXPred_Simple_IsRule232Enabled,
2406 GICXXPred_Simple_IsRule233Enabled,
2407 GICXXPred_Simple_IsRule234Enabled,
2408 GICXXPred_Simple_IsRule235Enabled,
2409 GICXXPred_Simple_IsRule236Enabled,
2410 GICXXPred_Simple_IsRule237Enabled,
2411 GICXXPred_Simple_IsRule238Enabled,
2412 GICXXPred_Simple_IsRule239Enabled,
2413 GICXXPred_Simple_IsRule240Enabled,
2414 GICXXPred_Simple_IsRule241Enabled,
2415 GICXXPred_Simple_IsRule242Enabled,
2416 GICXXPred_Simple_IsRule243Enabled,
2417 GICXXPred_Simple_IsRule244Enabled,
2418 GICXXPred_Simple_IsRule245Enabled,
2419 GICXXPred_Simple_IsRule246Enabled,
2420 GICXXPred_Simple_IsRule247Enabled,
2421 GICXXPred_Simple_IsRule248Enabled,
2422 GICXXPred_Simple_IsRule249Enabled,
2423 GICXXPred_Simple_IsRule250Enabled,
2424 GICXXPred_Simple_IsRule251Enabled,
2425 GICXXPred_Simple_IsRule252Enabled,
2426 GICXXPred_Simple_IsRule253Enabled,
2427 GICXXPred_Simple_IsRule254Enabled,
2428 GICXXPred_Simple_IsRule255Enabled,
2429 GICXXPred_Simple_IsRule256Enabled,
2430 GICXXPred_Simple_IsRule257Enabled,
2431 GICXXPred_Simple_IsRule258Enabled,
2432 GICXXPred_Simple_IsRule259Enabled,
2433 GICXXPred_Simple_IsRule260Enabled,
2434 GICXXPred_Simple_IsRule261Enabled,
2435 GICXXPred_Simple_IsRule262Enabled,
2436 GICXXPred_Simple_IsRule263Enabled,
2437 GICXXPred_Simple_IsRule264Enabled,
2438 GICXXPred_Simple_IsRule265Enabled,
2439 GICXXPred_Simple_IsRule266Enabled,
2440 GICXXPred_Simple_IsRule267Enabled,
2441 GICXXPred_Simple_IsRule268Enabled,
2442 GICXXPred_Simple_IsRule269Enabled,
2443 GICXXPred_Simple_IsRule270Enabled,
2444 GICXXPred_Simple_IsRule271Enabled,
2445 GICXXPred_Simple_IsRule272Enabled,
2446 GICXXPred_Simple_IsRule273Enabled,
2447 GICXXPred_Simple_IsRule274Enabled,
2448 GICXXPred_Simple_IsRule275Enabled,
2449 GICXXPred_Simple_IsRule276Enabled,
2450 GICXXPred_Simple_IsRule277Enabled,
2451 GICXXPred_Simple_IsRule278Enabled,
2452};
2453
2454bool RISCVPreLegalizerCombinerImpl::testSimplePredicate(unsigned Predicate) const {
2455 return RuleConfig.isRuleEnabled(Predicate - GICXXPred_Invalid - 1);
2456}
2457// Custom renderers.
2458enum {
2459 GICR_Invalid,
2460};
2461RISCVPreLegalizerCombinerImpl::CustomRendererFn
2462RISCVPreLegalizerCombinerImpl::CustomRenderers[] = {
2463 nullptr, // GICR_Invalid
2464};
2465
2466bool RISCVPreLegalizerCombinerImpl::canMatchOpcode(unsigned Opc) const {
2467 switch (Opc) {
2468 case TargetOpcode::G_FCMP:
2469 case TargetOpcode::G_FMA:
2470 case TargetOpcode::G_FMAD:
2471 case TargetOpcode::G_FSHL:
2472 case TargetOpcode::G_FSHR:
2473 case TargetOpcode::G_ICMP:
2474 case TargetOpcode::G_INSERT_VECTOR_ELT:
2475 case TargetOpcode::G_SELECT:
2476 case TargetOpcode::G_SHUFFLE_VECTOR:
2477 case TargetOpcode::G_ADD:
2478 case TargetOpcode::G_AND:
2479 case TargetOpcode::G_ASHR:
2480 case TargetOpcode::G_EXTRACT_VECTOR_ELT:
2481 case TargetOpcode::G_FADD:
2482 case TargetOpcode::G_FCOPYSIGN:
2483 case TargetOpcode::G_FDIV:
2484 case TargetOpcode::G_FMAXIMUM:
2485 case TargetOpcode::G_FMAXIMUMNUM:
2486 case TargetOpcode::G_FMAXNUM:
2487 case TargetOpcode::G_FMINIMUM:
2488 case TargetOpcode::G_FMINIMUMNUM:
2489 case TargetOpcode::G_FMINNUM:
2490 case TargetOpcode::G_FMUL:
2491 case TargetOpcode::G_FPOWI:
2492 case TargetOpcode::G_FREM:
2493 case TargetOpcode::G_FSUB:
2494 case TargetOpcode::G_LSHR:
2495 case TargetOpcode::G_MERGE_VALUES:
2496 case TargetOpcode::G_MUL:
2497 case TargetOpcode::G_OR:
2498 case TargetOpcode::G_PTR_ADD:
2499 case TargetOpcode::G_ROTL:
2500 case TargetOpcode::G_ROTR:
2501 case TargetOpcode::G_SDIV:
2502 case TargetOpcode::G_SEXT_INREG:
2503 case TargetOpcode::G_SHL:
2504 case TargetOpcode::G_SREM:
2505 case TargetOpcode::G_SUB:
2506 case TargetOpcode::G_UDIV:
2507 case TargetOpcode::G_UMULH:
2508 case TargetOpcode::G_UREM:
2509 case TargetOpcode::G_XOR:
2510 case TargetOpcode::COPY:
2511 case TargetOpcode::G_ABS:
2512 case TargetOpcode::G_ANYEXT:
2513 case TargetOpcode::G_BITCAST:
2514 case TargetOpcode::G_BITREVERSE:
2515 case TargetOpcode::G_BSWAP:
2516 case TargetOpcode::G_BUILD_VECTOR:
2517 case TargetOpcode::G_CONCAT_VECTORS:
2518 case TargetOpcode::G_CTLZ:
2519 case TargetOpcode::G_CTLZ_ZERO_POISON:
2520 case TargetOpcode::G_CTPOP:
2521 case TargetOpcode::G_CTTZ:
2522 case TargetOpcode::G_CTTZ_ZERO_POISON:
2523 case TargetOpcode::G_FABS:
2524 case TargetOpcode::G_FCANONICALIZE:
2525 case TargetOpcode::G_FCEIL:
2526 case TargetOpcode::G_FFLOOR:
2527 case TargetOpcode::G_FLOG2:
2528 case TargetOpcode::G_FNEARBYINT:
2529 case TargetOpcode::G_FNEG:
2530 case TargetOpcode::G_FPEXT:
2531 case TargetOpcode::G_FPTOSI:
2532 case TargetOpcode::G_FPTOUI:
2533 case TargetOpcode::G_FPTRUNC:
2534 case TargetOpcode::G_FREEZE:
2535 case TargetOpcode::G_FRINT:
2536 case TargetOpcode::G_FSQRT:
2537 case TargetOpcode::G_INTRINSIC_ROUND:
2538 case TargetOpcode::G_INTRINSIC_ROUNDEVEN:
2539 case TargetOpcode::G_INTRINSIC_TRUNC:
2540 case TargetOpcode::G_INTTOPTR:
2541 case TargetOpcode::G_PHI:
2542 case TargetOpcode::G_PTRTOINT:
2543 case TargetOpcode::G_SEXT:
2544 case TargetOpcode::G_SITOFP:
2545 case TargetOpcode::G_TRUNC:
2546 case TargetOpcode::G_TRUNC_USAT_U:
2547 case TargetOpcode::G_UITOFP:
2548 case TargetOpcode::G_ZEXT:
2549 case TargetOpcode::G_BR:
2550 case TargetOpcode::G_BUILD_VECTOR_TRUNC:
2551 case TargetOpcode::G_FMAXNUM_IEEE:
2552 case TargetOpcode::G_FMINNUM_IEEE:
2553 case TargetOpcode::G_LOAD:
2554 case TargetOpcode::G_SADDE:
2555 case TargetOpcode::G_SADDO:
2556 case TargetOpcode::G_SADDSAT:
2557 case TargetOpcode::G_SEXTLOAD:
2558 case TargetOpcode::G_SMAX:
2559 case TargetOpcode::G_SMIN:
2560 case TargetOpcode::G_SMULFIX:
2561 case TargetOpcode::G_SMULFIXSAT:
2562 case TargetOpcode::G_SMULH:
2563 case TargetOpcode::G_SMULO:
2564 case TargetOpcode::G_SSHLSAT:
2565 case TargetOpcode::G_SSUBE:
2566 case TargetOpcode::G_SSUBO:
2567 case TargetOpcode::G_STORE:
2568 case TargetOpcode::G_UADDE:
2569 case TargetOpcode::G_UADDO:
2570 case TargetOpcode::G_UADDSAT:
2571 case TargetOpcode::G_UMAX:
2572 case TargetOpcode::G_UMIN:
2573 case TargetOpcode::G_UMULFIX:
2574 case TargetOpcode::G_UMULFIXSAT:
2575 case TargetOpcode::G_UMULO:
2576 case TargetOpcode::G_UNMERGE_VALUES:
2577 case TargetOpcode::G_USHLSAT:
2578 case TargetOpcode::G_USUBE:
2579 case TargetOpcode::G_USUBO:
2580 case TargetOpcode::G_ZEXTLOAD:
2581 return true;
2582 default:
2583 return false;
2584 }
2585}
2586
2587uint32_t RISCVPreLegalizerCombinerImpl::getRootFlagsToDrop() const {
2588 return MachineInstr::getPoisonGeneratingFlags();
2589}
2590
2591bool RISCVPreLegalizerCombinerImpl::tryCombineAll(MachineInstr &I) const {
2592 const PredicateBitset AvailableFeatures = getAvailableFeatures();
2593 State.MIs.clear();
2594 State.MIs.push_back(&I);
2595 if (executeMatchTable(*this, State, ExecInfo, B, getMatchTable(), Helper.getTII(), MRI, Helper.getTRI(), Helper.getRBI(), AvailableFeatures, /*CoverageInfo*/ nullptr)) {
2596 return true;
2597 }
2598
2599 return false;
2600}
2601
2602enum {
2603 GICXXCustomAction_GICombiner0 = GICXXCustomAction_Invalid + 1,
2604 GICXXCustomAction_GICombiner1,
2605 GICXXCustomAction_GICombiner2,
2606 GICXXCustomAction_GICombiner3,
2607 GICXXCustomAction_GICombiner4,
2608 GICXXCustomAction_GICombiner5,
2609 GICXXCustomAction_GICombiner6,
2610 GICXXCustomAction_GICombiner7,
2611 GICXXCustomAction_GICombiner8,
2612 GICXXCustomAction_GICombiner9,
2613 GICXXCustomAction_GICombiner10,
2614 GICXXCustomAction_GICombiner11,
2615 GICXXCustomAction_GICombiner12,
2616 GICXXCustomAction_GICombiner13,
2617 GICXXCustomAction_GICombiner14,
2618 GICXXCustomAction_GICombiner15,
2619 GICXXCustomAction_GICombiner16,
2620 GICXXCustomAction_GICombiner17,
2621 GICXXCustomAction_GICombiner18,
2622 GICXXCustomAction_GICombiner19,
2623 GICXXCustomAction_GICombiner20,
2624 GICXXCustomAction_GICombiner21,
2625 GICXXCustomAction_GICombiner22,
2626 GICXXCustomAction_GICombiner23,
2627 GICXXCustomAction_GICombiner24,
2628 GICXXCustomAction_GICombiner25,
2629 GICXXCustomAction_GICombiner26,
2630 GICXXCustomAction_GICombiner27,
2631 GICXXCustomAction_GICombiner28,
2632 GICXXCustomAction_GICombiner29,
2633 GICXXCustomAction_GICombiner30,
2634 GICXXCustomAction_GICombiner31,
2635 GICXXCustomAction_GICombiner32,
2636 GICXXCustomAction_GICombiner33,
2637 GICXXCustomAction_GICombiner34,
2638 GICXXCustomAction_GICombiner35,
2639 GICXXCustomAction_GICombiner36,
2640 GICXXCustomAction_GICombiner37,
2641 GICXXCustomAction_GICombiner38,
2642 GICXXCustomAction_GICombiner39,
2643 GICXXCustomAction_GICombiner40,
2644 GICXXCustomAction_GICombiner41,
2645 GICXXCustomAction_GICombiner42,
2646 GICXXCustomAction_GICombiner43,
2647 GICXXCustomAction_GICombiner44,
2648 GICXXCustomAction_GICombiner45,
2649 GICXXCustomAction_GICombiner46,
2650 GICXXCustomAction_GICombiner47,
2651 GICXXCustomAction_GICombiner48,
2652 GICXXCustomAction_GICombiner49,
2653 GICXXCustomAction_GICombiner50,
2654 GICXXCustomAction_GICombiner51,
2655 GICXXCustomAction_GICombiner52,
2656 GICXXCustomAction_GICombiner53,
2657 GICXXCustomAction_GICombiner54,
2658 GICXXCustomAction_GICombiner55,
2659 GICXXCustomAction_GICombiner56,
2660 GICXXCustomAction_GICombiner57,
2661 GICXXCustomAction_GICombiner58,
2662 GICXXCustomAction_GICombiner59,
2663 GICXXCustomAction_GICombiner60,
2664 GICXXCustomAction_GICombiner61,
2665 GICXXCustomAction_GICombiner62,
2666 GICXXCustomAction_GICombiner63,
2667 GICXXCustomAction_GICombiner64,
2668 GICXXCustomAction_GICombiner65,
2669 GICXXCustomAction_GICombiner66,
2670 GICXXCustomAction_GICombiner67,
2671 GICXXCustomAction_GICombiner68,
2672 GICXXCustomAction_GICombiner69,
2673 GICXXCustomAction_GICombiner70,
2674 GICXXCustomAction_GICombiner71,
2675 GICXXCustomAction_GICombiner72,
2676 GICXXCustomAction_GICombiner73,
2677 GICXXCustomAction_GICombiner74,
2678 GICXXCustomAction_GICombiner75,
2679 GICXXCustomAction_GICombiner76,
2680 GICXXCustomAction_GICombiner77,
2681 GICXXCustomAction_GICombiner78,
2682 GICXXCustomAction_GICombiner79,
2683 GICXXCustomAction_GICombiner80,
2684 GICXXCustomAction_GICombiner81,
2685 GICXXCustomAction_GICombiner82,
2686 GICXXCustomAction_GICombiner83,
2687 GICXXCustomAction_GICombiner84,
2688 GICXXCustomAction_GICombiner85,
2689 GICXXCustomAction_GICombiner86,
2690 GICXXCustomAction_GICombiner87,
2691 GICXXCustomAction_GICombiner88,
2692 GICXXCustomAction_GICombiner89,
2693 GICXXCustomAction_GICombiner90,
2694 GICXXCustomAction_GICombiner91,
2695 GICXXCustomAction_GICombiner92,
2696 GICXXCustomAction_GICombiner93,
2697 GICXXCustomAction_GICombiner94,
2698 GICXXCustomAction_GICombiner95,
2699 GICXXCustomAction_GICombiner96,
2700 GICXXCustomAction_GICombiner97,
2701 GICXXCustomAction_GICombiner98,
2702 GICXXCustomAction_GICombiner99,
2703 GICXXCustomAction_GICombiner100,
2704 GICXXCustomAction_GICombiner101,
2705 GICXXCustomAction_GICombiner102,
2706 GICXXCustomAction_GICombiner103,
2707 GICXXCustomAction_GICombiner104,
2708 GICXXCustomAction_GICombiner105,
2709 GICXXCustomAction_GICombiner106,
2710 GICXXCustomAction_GICombiner107,
2711 GICXXCustomAction_GICombiner108,
2712 GICXXCustomAction_GICombiner109,
2713 GICXXCustomAction_GICombiner110,
2714 GICXXCustomAction_GICombiner111,
2715 GICXXCustomAction_GICombiner112,
2716 GICXXCustomAction_GICombiner113,
2717 GICXXCustomAction_GICombiner114,
2718 GICXXCustomAction_GICombiner115,
2719 GICXXCustomAction_GICombiner116,
2720 GICXXCustomAction_GICombiner117,
2721 GICXXCustomAction_GICombiner118,
2722 GICXXCustomAction_GICombiner119,
2723 GICXXCustomAction_GICombiner120,
2724 GICXXCustomAction_GICombiner121,
2725 GICXXCustomAction_GICombiner122,
2726 GICXXCustomAction_GICombiner123,
2727 GICXXCustomAction_GICombiner124,
2728 GICXXCustomAction_GICombiner125,
2729 GICXXCustomAction_GICombiner126,
2730 GICXXCustomAction_GICombiner127,
2731 GICXXCustomAction_GICombiner128,
2732 GICXXCustomAction_GICombiner129,
2733 GICXXCustomAction_GICombiner130,
2734 GICXXCustomAction_GICombiner131,
2735 GICXXCustomAction_GICombiner132,
2736 GICXXCustomAction_GICombiner133,
2737 GICXXCustomAction_GICombiner134,
2738 GICXXCustomAction_GICombiner135,
2739 GICXXCustomAction_GICombiner136,
2740 GICXXCustomAction_GICombiner137,
2741 GICXXCustomAction_GICombiner138,
2742 GICXXCustomAction_GICombiner139,
2743 GICXXCustomAction_GICombiner140,
2744 GICXXCustomAction_GICombiner141,
2745 GICXXCustomAction_GICombiner142,
2746 GICXXCustomAction_GICombiner143,
2747 GICXXCustomAction_GICombiner144,
2748 GICXXCustomAction_GICombiner145,
2749 GICXXCustomAction_GICombiner146,
2750 GICXXCustomAction_GICombiner147,
2751 GICXXCustomAction_GICombiner148,
2752};
2753bool RISCVPreLegalizerCombinerImpl::runCustomAction(unsigned ApplyID, const MatcherState &State, NewMIVector &OutMIs) const {
2754 Helper.getBuilder().setInstrAndDebugLoc(*State.MIs[0]);
2755 switch(ApplyID) {
2756 case GICXXCustomAction_GICombiner0:{
2757 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2758 // Match Patterns
2759 if(![&](){return Helper.matchFoldAPlusC1MinusC2(*State.MIs[0], GIMatchData_matchinfo);}()) {
2760 return false;
2761 }
2762 // Apply Patterns
2763 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2764 return true;
2765 }
2766 case GICXXCustomAction_GICombiner1:{
2767 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2768 // Match Patterns
2769 if(![&](){return Helper.matchFoldC2MinusAPlusC1(*State.MIs[0], GIMatchData_matchinfo);}()) {
2770 return false;
2771 }
2772 // Apply Patterns
2773 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2774 return true;
2775 }
2776 case GICXXCustomAction_GICombiner2:{
2777 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2778 // Match Patterns
2779 if(![&](){return Helper.matchFoldAMinusC1MinusC2(*State.MIs[0], GIMatchData_matchinfo);}()) {
2780 return false;
2781 }
2782 // Apply Patterns
2783 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2784 return true;
2785 }
2786 case GICXXCustomAction_GICombiner3:{
2787 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2788 // Match Patterns
2789 if(![&](){return Helper.matchFoldC1Minus2MinusC2(*State.MIs[0], GIMatchData_matchinfo);}()) {
2790 return false;
2791 }
2792 // Apply Patterns
2793 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2794 return true;
2795 }
2796 case GICXXCustomAction_GICombiner4:{
2797 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2798 // Match Patterns
2799 if(![&](){return Helper.matchFoldAMinusC1PlusC2(*State.MIs[0], GIMatchData_matchinfo);}()) {
2800 return false;
2801 }
2802 // Apply Patterns
2803 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2804 return true;
2805 }
2806 case GICXXCustomAction_GICombiner5:{
2807 // Match Patterns
2808 if(![&](){return Helper.matchCombineCopy(*State.MIs[0]);}()) {
2809 return false;
2810 }
2811 // Apply Patterns
2812 Helper.applyCombineCopy(*State.MIs[0]);
2813 return true;
2814 }
2815 case GICXXCustomAction_GICombiner6:{
2816 unsigned GIMatchData_matchinfo;
2817 // Match Patterns
2818 if(![&](){return Helper.matchCombineMulToShl(*State.MIs[0], GIMatchData_matchinfo);}()) {
2819 return false;
2820 }
2821 // Apply Patterns
2822 Helper.applyCombineMulToShl(*State.MIs[0], GIMatchData_matchinfo);
2823 return true;
2824 }
2825 case GICXXCustomAction_GICombiner7:{
2826 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2827 // Match Patterns
2828 if(![&](){return Helper.matchCombineSubToAdd(*State.MIs[0], GIMatchData_matchinfo);}()) {
2829 return false;
2830 }
2831 // Apply Patterns
2832 Helper.applyBuildFnNoErase(*State.MIs[0], GIMatchData_matchinfo);
2833 return true;
2834 }
2835 case GICXXCustomAction_GICombiner8:{
2836 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2837 // Match Patterns
2838 if(![&](){return Helper.matchExtractVectorElement(*State.MIs[0], GIMatchData_matchinfo);}()) {
2839 return false;
2840 }
2841 // Apply Patterns
2842 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2843 return true;
2844 }
2845 case GICXXCustomAction_GICombiner9:{
2846 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2847 // Match Patterns
2848 if(![&](){return Helper.matchInsertVectorElementOOB(*State.MIs[0], GIMatchData_matchinfo);}()) {
2849 return false;
2850 }
2851 // Apply Patterns
2852 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2853 return true;
2854 }
2855 case GICXXCustomAction_GICombiner10:{
2856 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2857 // Match Patterns
2858 if(![&](){return Helper.matchExtractVectorElementWithDifferentIndices(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
2859 return false;
2860 }
2861 // Apply Patterns
2862 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
2863 return true;
2864 }
2865 case GICXXCustomAction_GICombiner11:{
2866 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2867 // Match Patterns
2868 if(![&](){return Helper.matchExtractVectorElementWithBuildVector(*State.MIs[0], *State.MIs[1],
2869 GIMatchData_matchinfo);}()) {
2870 return false;
2871 }
2872 // Apply Patterns
2873 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2874 return true;
2875 }
2876 case GICXXCustomAction_GICombiner12:{
2877 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2878 // Match Patterns
2879 if(![&](){return Helper.matchExtractVectorElementWithBuildVectorTrunc(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
2880 return false;
2881 }
2882 // Apply Patterns
2883 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
2884 return true;
2885 }
2886 case GICXXCustomAction_GICombiner13:{
2887 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2888 // Match Patterns
2889 if(![&](){return Helper.matchExtractVectorElementWithShuffleVector(*State.MIs[0], *State.MIs[1],
2890 GIMatchData_matchinfo);}()) {
2891 return false;
2892 }
2893 // Apply Patterns
2894 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2895 return true;
2896 }
2897 case GICXXCustomAction_GICombiner14:{
2898 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2899 // Match Patterns
2900 if(![&](){return Helper.matchAddOfVScale(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
2901 return false;
2902 }
2903 // Apply Patterns
2904 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
2905 return true;
2906 }
2907 case GICXXCustomAction_GICombiner15:{
2908 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2909 // Match Patterns
2910 if(![&](){return Helper.matchMulOfVScale(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
2911 return false;
2912 }
2913 // Apply Patterns
2914 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
2915 return true;
2916 }
2917 case GICXXCustomAction_GICombiner16:{
2918 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2919 // Match Patterns
2920 if(![&](){return Helper.matchShlOfVScale(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
2921 return false;
2922 }
2923 // Apply Patterns
2924 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
2925 return true;
2926 }
2927 case GICXXCustomAction_GICombiner17:{
2928 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2929 // Match Patterns
2930 if(![&](){return Helper.matchSubOfVScale(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
2931 return false;
2932 }
2933 // Apply Patterns
2934 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
2935 return true;
2936 }
2937 case GICXXCustomAction_GICombiner18:{
2938 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2939 // Match Patterns
2940 if(![&](){return !isGuaranteedNotToBePoison(State.MIs[0]->getOperand(1).getReg(), MRI) && Helper.matchFreezeOfSingleMaybePoisonOperand(*State.MIs[0], GIMatchData_matchinfo);}()) {
2941 return false;
2942 }
2943 // Apply Patterns
2944 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2945 return true;
2946 }
2947 case GICXXCustomAction_GICombiner19:{
2948 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2949 // Match Patterns
2950 if(![&](){return Helper.matchTruncateOfExt(*State.MIs[0], *State.MIs[1], GIMatchData_matchinfo);}()) {
2951 return false;
2952 }
2953 // Apply Patterns
2954 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2955 return true;
2956 }
2957 case GICXXCustomAction_GICombiner20:{
2958 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2959 // Match Patterns
2960 if(![&](){return Helper.matchExtOfExt(*State.MIs[0], *State.MIs[1], GIMatchData_matchinfo);}()) {
2961 return false;
2962 }
2963 // Apply Patterns
2964 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2965 return true;
2966 }
2967 case GICXXCustomAction_GICombiner21:{
2968 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2969 // Match Patterns
2970 if(![&](){return Helper.matchRedundantSextInReg(*State.MIs[0], *State.MIs[1], GIMatchData_matchinfo);}()) {
2971 return false;
2972 }
2973 // Apply Patterns
2974 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2975 return true;
2976 }
2977 case GICXXCustomAction_GICombiner22:{
2978 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2979 // Match Patterns
2980 if(![&](){return Helper.matchCastOfSelect(*State.MIs[0], *State.MIs[1], GIMatchData_matchinfo);}()) {
2981 return false;
2982 }
2983 // Apply Patterns
2984 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2985 return true;
2986 }
2987 case GICXXCustomAction_GICombiner23:{
2988 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2989 // Match Patterns
2990 if(![&](){return Helper.matchCastOfBuildVector(*State.MIs[0], *State.MIs[1], GIMatchData_matchinfo);}()) {
2991 return false;
2992 }
2993 // Apply Patterns
2994 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2995 return true;
2996 }
2997 case GICXXCustomAction_GICombiner24:{
2998 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2999 // Match Patterns
3000 if(![&](){return Helper.matchNarrowBinop(*State.MIs[0], *State.MIs[1], GIMatchData_matchinfo);}()) {
3001 return false;
3002 }
3003 // Apply Patterns
3004 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3005 return true;
3006 }
3007 case GICXXCustomAction_GICombiner25:{
3008 APInt GIMatchData_matchinfo;
3009 // Match Patterns
3010 if(![&](){return Helper.matchCastOfInteger(*State.MIs[0], GIMatchData_matchinfo);}()) {
3011 return false;
3012 }
3013 // Apply Patterns
3014 Helper.replaceInstWithConstant(*State.MIs[0], GIMatchData_matchinfo);
3015 return true;
3016 }
3017 case GICXXCustomAction_GICombiner26:{
3018 SmallVector<Register> GIMatchData_info;
3019 // Match Patterns
3020 if(![&](){return Helper.matchCombineInsertVecElts(*State.MIs[0], GIMatchData_info);}()) {
3021 return false;
3022 }
3023 // Apply Patterns
3024 Helper.applyCombineInsertVecElts(*State.MIs[0], GIMatchData_info);
3025 return true;
3026 }
3027 case GICXXCustomAction_GICombiner27:{
3028 Register GIMatchData_matchinfo;
3029 // Match Patterns
3030 if(![&](){return Helper.matchExtractVecEltBuildVec(*State.MIs[0], GIMatchData_matchinfo);}()) {
3031 return false;
3032 }
3033 // Apply Patterns
3034 Helper.applyExtractVecEltBuildVec(*State.MIs[0], GIMatchData_matchinfo);
3035 return true;
3036 }
3037 case GICXXCustomAction_GICombiner28:{
3038 SmallVector<std::pair<Register, MachineInstr*>> GIMatchData_matchinfo;
3039 // Match Patterns
3040 if(![&](){return Helper.matchExtractAllEltsFromBuildVector(*State.MIs[0], GIMatchData_matchinfo);}()) {
3041 return false;
3042 }
3043 // Apply Patterns
3044 Helper.applyExtractAllEltsFromBuildVector(*State.MIs[0], GIMatchData_matchinfo);
3045 return true;
3046 }
3047 case GICXXCustomAction_GICombiner29:{
3048 PreferredTuple GIMatchData_matchinfo;
3049 // Match Patterns
3050 if(![&](){return Helper.matchCombineExtendingLoads(*State.MIs[0], GIMatchData_matchinfo);}()) {
3051 return false;
3052 }
3053 // Apply Patterns
3054 Helper.applyCombineExtendingLoads(*State.MIs[0], GIMatchData_matchinfo);
3055 return true;
3056 }
3057 case GICXXCustomAction_GICombiner30:{
3058 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3059 // Match Patterns
3060 if(![&](){return Helper.matchCombineLoadWithAndMask(*State.MIs[0], GIMatchData_matchinfo);}()) {
3061 return false;
3062 }
3063 // Apply Patterns
3064 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3065 return true;
3066 }
3067 case GICXXCustomAction_GICombiner31:{
3068 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3069 // Match Patterns
3070 if(![&](){return Helper.matchCombineExtractedVectorLoad(*State.MIs[0], GIMatchData_matchinfo);}()) {
3071 return false;
3072 }
3073 // Apply Patterns
3074 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3075 return true;
3076 }
3077 case GICXXCustomAction_GICombiner32:{
3078 // Apply Patterns
3079 Helper.replaceInstWithFConstant(*State.MIs[0]->getOperand(0).getParent(), 0.0);
3080 return true;
3081 }
3082 case GICXXCustomAction_GICombiner33:{
3083 // Apply Patterns
3084 Helper.replaceInstWithConstant(*State.MIs[0]->getOperand(0).getParent(), 0);
3085 return true;
3086 }
3087 case GICXXCustomAction_GICombiner34:{
3088 // Apply Patterns
3089 Helper.replaceInstWithConstant(*State.MIs[0]->getOperand(0).getParent(), -1);
3090 return true;
3091 }
3092 case GICXXCustomAction_GICombiner35:{
3093 // Apply Patterns
3094 Helper.replaceInstWithUndef(*State.MIs[0]->getOperand(0).getParent());
3095 return true;
3096 }
3097 case GICXXCustomAction_GICombiner36:{
3098 // Match Patterns
3099 if(![&](){return Helper.matchAllExplicitUsesAreUndef(*State.MIs[0]);}()) {
3100 return false;
3101 }
3102 // Apply Patterns
3103 Helper.replaceInstWithUndef(*State.MIs[0]);
3104 return true;
3105 }
3106 case GICXXCustomAction_GICombiner37:{
3107 // Match Patterns
3108 if(![&](){return Helper.matchUndefStore(*State.MIs[0]);}()) {
3109 return false;
3110 }
3111 // Apply Patterns
3112 Helper.eraseInst(*State.MIs[0]);
3113 return true;
3114 }
3115 case GICXXCustomAction_GICombiner38:{
3116 // Match Patterns
3117 if(![&](){return Helper.matchInsertExtractVecEltOutOfBounds(*State.MIs[0]);}()) {
3118 return false;
3119 }
3120 // Apply Patterns
3121 Helper.replaceInstWithUndef(*State.MIs[0]);
3122 return true;
3123 }
3124 case GICXXCustomAction_GICombiner39:{
3125 Register GIMatchData_info;
3126 // Match Patterns
3127 if(![&](){GIMatchData_info = State.MIs[1]->getOperand(1).getReg(); return true;}()) {
3128 return false;
3129 }
3130 // Apply Patterns
3131 Helper.applyCombineP2IToI2P(*State.MIs[0], GIMatchData_info);
3132 return true;
3133 }
3134 case GICXXCustomAction_GICombiner40:{
3135 Register GIMatchData_matchinfo;
3136 // Match Patterns
3137 if(![&](){return Helper.matchCombineAnyExtTrunc(*State.MIs[0], GIMatchData_matchinfo);}()) {
3138 return false;
3139 }
3140 // Apply Patterns
3141 Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo);
3142 return true;
3143 }
3144 case GICXXCustomAction_GICombiner41:{
3145 Register GIMatchData_matchinfo;
3146 // Match Patterns
3147 if(![&](){return Helper.matchBuildVectorIdentityFold(*State.MIs[0], GIMatchData_matchinfo);}()) {
3148 return false;
3149 }
3150 // Apply Patterns
3151 Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo);
3152 return true;
3153 }
3154 case GICXXCustomAction_GICombiner42:{
3155 Register GIMatchData_matchinfo;
3156 // Match Patterns
3157 if(![&](){return Helper.matchTruncBuildVectorFold(*State.MIs[0], GIMatchData_matchinfo);}()) {
3158 return false;
3159 }
3160 // Apply Patterns
3161 Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo);
3162 return true;
3163 }
3164 case GICXXCustomAction_GICombiner43:{
3165 Register GIMatchData_matchinfo;
3166 // Match Patterns
3167 if(![&](){return Helper.matchTruncLshrBuildVectorFold(*State.MIs[0], GIMatchData_matchinfo);}()) {
3168 return false;
3169 }
3170 // Apply Patterns
3171 Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo);
3172 return true;
3173 }
3174 case GICXXCustomAction_GICombiner44:{
3175 // Match Patterns
3176 if(![&](){return MRI.getType(State.MIs[1]->getOperand(1).getReg()) == MRI.getType(State.MIs[0]->getOperand(0).getReg());}()) {
3177 return false;
3178 }
3179 // Apply Patterns
3180 Helper.replaceSingleDefInstWithReg(*State.MIs[0], State.MIs[1]->getOperand(1).getReg());
3181 return true;
3182 }
3183 case GICXXCustomAction_GICombiner45:{
3184 MachineInstr* GIMatchData_matchinfo;
3185 // Match Patterns
3186 if(![&](){return Helper.matchExtendThroughPhis(*State.MIs[0], GIMatchData_matchinfo);}()) {
3187 return false;
3188 }
3189 // Apply Patterns
3190 Helper.applyExtendThroughPhis(*State.MIs[0], GIMatchData_matchinfo);
3191 return true;
3192 }
3193 case GICXXCustomAction_GICombiner46:{
3194 InstructionStepsMatchInfo GIMatchData_info;
3195 // Match Patterns
3196 if(![&](){return Helper.matchHoistLogicOpWithSameOpcodeHands(*State.MIs[0], GIMatchData_info);}()) {
3197 return false;
3198 }
3199 // Apply Patterns
3200 Helper.applyBuildInstructionSteps(*State.MIs[0], GIMatchData_info);
3201 return true;
3202 }
3203 case GICXXCustomAction_GICombiner47:{
3204 std::optional<int64_t> GIMatchData_matchinfo;
3205 // Match Patterns
3206 if(![&](){return Helper.matchShiftsTooBig(*State.MIs[0], GIMatchData_matchinfo);}()) {
3207 return false;
3208 }
3209 // Apply Patterns
3210 if (GIMatchData_matchinfo) {
3211 Helper.replaceInstWithConstant(*State.MIs[0], *GIMatchData_matchinfo);
3212 } else {
3213 Helper.replaceInstWithUndef(*State.MIs[0]);
3214 }
3215 return true;
3216 }
3217 case GICXXCustomAction_GICombiner48:{
3218 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3219 // Match Patterns
3220 if(![&](){return Helper.matchReassocPtrAdd(*State.MIs[0], GIMatchData_matchinfo);}()) {
3221 return false;
3222 }
3223 // Apply Patterns
3224 Helper.applyBuildFnNoErase(*State.MIs[0], GIMatchData_matchinfo);
3225 return true;
3226 }
3227 case GICXXCustomAction_GICombiner49:{
3228 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3229 // Match Patterns
3230 if(![&](){return Helper.matchReassocCommBinOp(*State.MIs[0], GIMatchData_matchinfo);}()) {
3231 return false;
3232 }
3233 // Apply Patterns
3234 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3235 return true;
3236 }
3237 case GICXXCustomAction_GICombiner50:{
3238 PtrAddChain GIMatchData_matchinfo;
3239 // Match Patterns
3240 if(![&](){return Helper.matchPtrAddImmedChain(*State.MIs[0], GIMatchData_matchinfo);}()) {
3241 return false;
3242 }
3243 // Apply Patterns
3244 Helper.applyPtrAddImmedChain(*State.MIs[0], GIMatchData_matchinfo);
3245 return true;
3246 }
3247 case GICXXCustomAction_GICombiner51:{
3248 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3249 // Match Patterns
3250 if(![&](){return Helper.matchCanonicalizeICmp(*State.MIs[0], GIMatchData_matchinfo);}()) {
3251 return false;
3252 }
3253 // Apply Patterns
3254 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3255 return true;
3256 }
3257 case GICXXCustomAction_GICombiner52:{
3258 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3259 // Match Patterns
3260 if(![&](){return Helper.matchCanonicalizeFCmp(*State.MIs[0], GIMatchData_matchinfo);}()) {
3261 return false;
3262 }
3263 // Apply Patterns
3264 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3265 return true;
3266 }
3267 case GICXXCustomAction_GICombiner53:{
3268 int64_t GIMatchData_matchinfo;
3269 // Match Patterns
3270 if(![&](){return Helper.matchICmpToTrueFalseKnownBits(*State.MIs[0], GIMatchData_matchinfo);}()) {
3271 return false;
3272 }
3273 // Apply Patterns
3274 Helper.replaceInstWithConstant(*State.MIs[0], GIMatchData_matchinfo);
3275 return true;
3276 }
3277 case GICXXCustomAction_GICombiner54:{
3278 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3279 // Match Patterns
3280 if(![&](){return Helper.matchICmpToLHSKnownBits(*State.MIs[0], GIMatchData_info);}()) {
3281 return false;
3282 }
3283 // Apply Patterns
3284 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3285 return true;
3286 }
3287 case GICXXCustomAction_GICombiner55:{
3288 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3289 // Match Patterns
3290 if(![&](){return Helper.matchRedundantBinOpInEquality(*State.MIs[0], GIMatchData_info);}()) {
3291 return false;
3292 }
3293 // Apply Patterns
3294 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3295 return true;
3296 }
3297 case GICXXCustomAction_GICombiner56:{
3298 std::tuple<Register, int64_t> GIMatchData_info;
3299 // Match Patterns
3300 if(![&](){return Helper.matchAshrShlToSextInreg(*State.MIs[0], GIMatchData_info);}()) {
3301 return false;
3302 }
3303 // Apply Patterns
3304 Helper.applyAshShlToSextInreg(*State.MIs[0], GIMatchData_info);
3305 return true;
3306 }
3307 case GICXXCustomAction_GICombiner57:{
3308 std::tuple<Register, unsigned> GIMatchData_matchinfo;
3309 // Match Patterns
3310 if(![&](){return Helper.matchSextInRegOfLoad(*State.MIs[0], GIMatchData_matchinfo);}()) {
3311 return false;
3312 }
3313 // Apply Patterns
3314 Helper.applySextInRegOfLoad(*State.MIs[0], GIMatchData_matchinfo);
3315 return true;
3316 }
3317 case GICXXCustomAction_GICombiner58:{
3318 RegisterImmPair GIMatchData_matchinfo;
3319 // Match Patterns
3320 if(![&](){return Helper.matchCombineShlOfExtend(*State.MIs[0], GIMatchData_matchinfo);}()) {
3321 return false;
3322 }
3323 // Apply Patterns
3324 Helper.applyCombineShlOfExtend(*State.MIs[0], GIMatchData_matchinfo);
3325 return true;
3326 }
3327 case GICXXCustomAction_GICombiner59:{
3328 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3329 // Match Patterns
3330 if(![&](){return Helper.matchNarrowBinopFeedingAnd(*State.MIs[0], GIMatchData_matchinfo);}()) {
3331 return false;
3332 }
3333 // Apply Patterns
3334 Helper.applyBuildFnNoErase(*State.MIs[0], GIMatchData_matchinfo);
3335 return true;
3336 }
3337 case GICXXCustomAction_GICombiner60:{
3338 unsigned GIMatchData_matchinfo;
3339 // Match Patterns
3340 if(![&](){return Helper.matchConstantSelectCmp(*State.MIs[0], GIMatchData_matchinfo);}()) {
3341 return false;
3342 }
3343 // Apply Patterns
3344 Helper.replaceSingleDefInstWithOperand(*State.MIs[0], GIMatchData_matchinfo);
3345 return true;
3346 }
3347 case GICXXCustomAction_GICombiner61:{
3348 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3349 // Match Patterns
3350 if(![&](){return Helper.matchSelectIMinMax(State.MIs[0]->getOperand(0), GIMatchData_info);}()) {
3351 return false;
3352 }
3353 // Apply Patterns
3354 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_info);
3355 return true;
3356 }
3357 case GICXXCustomAction_GICombiner62:{
3358 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3359 // Match Patterns
3360 if(![&](){return Helper.matchSelect(*State.MIs[0], GIMatchData_matchinfo);}()) {
3361 return false;
3362 }
3363 // Apply Patterns
3364 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3365 return true;
3366 }
3367 case GICXXCustomAction_GICombiner63:{
3368 // Match Patterns
3369 if(![&](){LLT SrcTy = MRI.getType(State.MIs[3]->getOperand(1).getReg());
3370 return State.MIs[0]->getOperand(2).getImm() <= SrcTy.getScalarSizeInBits() &&
3371 MRI.getType(State.MIs[1]->getOperand(1).getReg()).getScalarType() ==
3372 MRI.getType(State.MIs[2]->getOperand(2).getReg()).getScalarType() &&
3373 VT->computeNumSignBits(State.MIs[3]->getOperand(1).getReg()) >=
3374 (SrcTy.getScalarSizeInBits() - State.MIs[0]->getOperand(2).getImm() + 1);}()) {
3375 return false;
3376 }
3377 // Apply Patterns
3378 auto SExt1 = Helper.getBuilder().buildSExt(MRI.getType(State.MIs[2]->getOperand(2).getReg()), State.MIs[3]->getOperand(1).getReg());
3379 auto Unmerge = Helper.getBuilder().buildUnmerge(MRI.getType(State.MIs[1]->getOperand(1).getReg()), SExt1);
3380 unsigned UnmergeDef = State.MIs[1]->getOperand(1).getReg() == State.MIs[2]->getOperand(0).getReg() ? 0 : 1;
3381 Helper.getBuilder().buildSExt(State.MIs[0]->getOperand(0).getReg(), Unmerge.getReg(UnmergeDef));
3382 State.MIs[0]->eraseFromParent();
3383 return true;
3384 }
3385 case GICXXCustomAction_GICombiner64:{
3386 Register GIMatchData_matchinfo;
3387 // Match Patterns
3388 if(![&](){return Helper.matchRedundantAnd(*State.MIs[0], GIMatchData_matchinfo);}()) {
3389 return false;
3390 }
3391 // Apply Patterns
3392 Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo);
3393 return true;
3394 }
3395 case GICXXCustomAction_GICombiner65:{
3396 Register GIMatchData_matchinfo;
3397 // Match Patterns
3398 if(![&](){return Helper.matchRedundantOr(*State.MIs[0], GIMatchData_matchinfo);}()) {
3399 return false;
3400 }
3401 // Apply Patterns
3402 Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo);
3403 return true;
3404 }
3405 case GICXXCustomAction_GICombiner66:{
3406 // Match Patterns
3407 if(![&](){return Helper.matchOperandIsKnownToBeAPowerOfTwo(State.MIs[0]->getOperand(2));}()) {
3408 return false;
3409 }
3410 // Apply Patterns
3411 Helper.applySimplifyURemByPow2(*State.MIs[0]);
3412 return true;
3413 }
3414 case GICXXCustomAction_GICombiner67:{
3415 Register GIMatchData_matchinfo;
3416 // Match Patterns
3417 if(![&](){return Helper.matchCombineZextTrunc(*State.MIs[0], GIMatchData_matchinfo);}()) {
3418 return false;
3419 }
3420 // Apply Patterns
3421 Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo);
3422 return true;
3423 }
3424 case GICXXCustomAction_GICombiner68:{
3425 // Match Patterns
3426 if(![&](){unsigned BitWidth = MRI.getType(State.MIs[0]->getOperand(1).getReg()).getScalarSizeInBits();
3427 return Helper.getValueTracking()->maskedValueIsZero(State.MIs[0]->getOperand(1).getReg(),
3428 APInt::getOneBitSet(BitWidth, State.MIs[0]->getOperand(2).getImm() - 1));}()) {
3429 return false;
3430 }
3431 // Apply Patterns
3432 Helper.getBuilder().setInstrAndDebugLoc(*State.MIs[0]);
3433 Helper.getBuilder().buildZExtInReg(State.MIs[0]->getOperand(0), State.MIs[0]->getOperand(1), State.MIs[0]->getOperand(2).getImm());
3434 State.MIs[0]->eraseFromParent();
3435 return true;
3436 }
3437 case GICXXCustomAction_GICombiner69:{
3438 std::pair<MachineInstr*, LLT> GIMatchData_matchinfo;
3439 // Match Patterns
3440 if(![&](){return Helper.matchCombineTruncOfShift(*State.MIs[0], GIMatchData_matchinfo);}()) {
3441 return false;
3442 }
3443 // Apply Patterns
3444 Helper.applyCombineTruncOfShift(*State.MIs[0], GIMatchData_matchinfo);
3445 return true;
3446 }
3447 case GICXXCustomAction_GICombiner70:{
3448 SmallVector<Register> GIMatchData_info;
3449 // Match Patterns
3450 if(![&](){return Helper.matchNotCmp(*State.MIs[0], GIMatchData_info);}()) {
3451 return false;
3452 }
3453 // Apply Patterns
3454 Helper.applyNotCmp(*State.MIs[0], GIMatchData_info);
3455 return true;
3456 }
3457 case GICXXCustomAction_GICombiner71:{
3458 MachineInstr * GIMatchData_matchinfo;
3459 // Match Patterns
3460 if(![&](){return Helper.matchOptBrCondByInvertingCond(*State.MIs[0], GIMatchData_matchinfo);}()) {
3461 return false;
3462 }
3463 // Apply Patterns
3464 Helper.applyOptBrCondByInvertingCond(*State.MIs[0], GIMatchData_matchinfo);
3465 return true;
3466 }
3467 case GICXXCustomAction_GICombiner72:{
3468 // Apply Patterns
3469 Helper.applyCombineConstantFoldFpUnary(*State.MIs[0], State.MIs[1]->getOperand(1).getFPImm());
3470 return true;
3471 }
3472 case GICXXCustomAction_GICombiner73:{
3473 APInt GIMatchData_info;
3474 // Match Patterns
3475 if(![&](){LLT DstTy = MRI.getType(State.MIs[0]->getOperand(0).getReg());
3476 APInt NewCst = State.MIs[2]->getOperand(1).getCImm()->getValue().zextOrTrunc(
3477 DstTy.getSizeInBits());
3478 NewCst += State.MIs[3]->getOperand(1).getCImm()->getValue().sextOrTrunc(
3479 DstTy.getSizeInBits());
3480 GIMatchData_info = NewCst;
3481 return true;}()) {
3482 return false;
3483 }
3484 // Apply Patterns
3485 Helper.getBuilder().setInstrAndDebugLoc(*State.MIs[0]);
3486 Helper.getBuilder().buildConstant(State.MIs[0]->getOperand(0), GIMatchData_info);
3487 State.MIs[0]->eraseFromParent();
3488 return true;
3489 }
3490 case GICXXCustomAction_GICombiner74:{
3491 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3492 // Match Patterns
3493 if(![&](){return Helper.matchOverlappingAnd(*State.MIs[0], GIMatchData_info);}()) {
3494 return false;
3495 }
3496 // Apply Patterns
3497 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3498 return true;
3499 }
3500 case GICXXCustomAction_GICombiner75:{
3501 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3502 // Match Patterns
3503 if(![&](){return Helper.matchMulOBy2(*State.MIs[0], GIMatchData_matchinfo);}()) {
3504 return false;
3505 }
3506 // Apply Patterns
3507 Helper.applyBuildFnNoErase(*State.MIs[0], GIMatchData_matchinfo);
3508 return true;
3509 }
3510 case GICXXCustomAction_GICombiner76:{
3511 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3512 // Match Patterns
3513 if(![&](){return Helper.matchMulOBy0(*State.MIs[0], GIMatchData_matchinfo);}()) {
3514 return false;
3515 }
3516 // Apply Patterns
3517 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3518 return true;
3519 }
3520 case GICXXCustomAction_GICombiner77:{
3521 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3522 // Match Patterns
3523 if(![&](){return Helper.matchAddEToAddO(*State.MIs[0], GIMatchData_matchinfo);}()) {
3524 return false;
3525 }
3526 // Apply Patterns
3527 Helper.applyBuildFnNoErase(*State.MIs[0], GIMatchData_matchinfo);
3528 return true;
3529 }
3530 case GICXXCustomAction_GICombiner78:{
3531 unsigned GIMatchData_info;
3532 // Match Patterns
3533 if(![&](){return Helper.matchCombineFMinMaxNaN(*State.MIs[0], GIMatchData_info);}()) {
3534 return false;
3535 }
3536 // Apply Patterns
3537 Helper.replaceSingleDefInstWithOperand(*State.MIs[0], GIMatchData_info);
3538 return true;
3539 }
3540 case GICXXCustomAction_GICombiner79:{
3541 // Match Patterns
3542 if(![&](){return Helper.matchFPowIExpansion(*State.MIs[0], State.MIs[1]->getOperand(1).getCImm()->getSExtValue());}()) {
3543 return false;
3544 }
3545 // Apply Patterns
3546 Helper.applyExpandFPowI(*State.MIs[0], State.MIs[1]->getOperand(1).getCImm()->getSExtValue());
3547 return true;
3548 }
3549 case GICXXCustomAction_GICombiner80:{
3550 std::pair<Register, Register> GIMatchData_matchinfo;
3551 // Match Patterns
3552 if(![&](){return Helper.matchXorOfAndWithSameReg(*State.MIs[0], GIMatchData_matchinfo);}()) {
3553 return false;
3554 }
3555 // Apply Patterns
3556 Helper.applyXorOfAndWithSameReg(*State.MIs[0], GIMatchData_matchinfo);
3557 return true;
3558 }
3559 case GICXXCustomAction_GICombiner81:{
3560 RegisterImmPair GIMatchData_matchinfo;
3561 // Match Patterns
3562 if(![&](){return Helper.matchShiftImmedChain(*State.MIs[0], GIMatchData_matchinfo);}()) {
3563 return false;
3564 }
3565 // Apply Patterns
3566 Helper.applyShiftImmedChain(*State.MIs[0], GIMatchData_matchinfo);
3567 return true;
3568 }
3569 case GICXXCustomAction_GICombiner82:{
3570 ShiftOfShiftedLogic GIMatchData_matchinfo;
3571 // Match Patterns
3572 if(![&](){return Helper.matchShiftOfShiftedLogic(*State.MIs[0], GIMatchData_matchinfo);}()) {
3573 return false;
3574 }
3575 // Apply Patterns
3576 Helper.applyShiftOfShiftedLogic(*State.MIs[0], GIMatchData_matchinfo);
3577 return true;
3578 }
3579 case GICXXCustomAction_GICombiner83:{
3580 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3581 // Match Patterns
3582 if(![&](){return Helper.matchLoadOrCombine(*State.MIs[0], GIMatchData_info);}()) {
3583 return false;
3584 }
3585 // Apply Patterns
3586 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3587 return true;
3588 }
3589 case GICXXCustomAction_GICombiner84:{
3590 MachineInstr * GIMatchData_matchinfo;
3591 // Match Patterns
3592 if(![&](){return Helper.matchCombineDivRem(*State.MIs[0], GIMatchData_matchinfo);}()) {
3593 return false;
3594 }
3595 // Apply Patterns
3596 Helper.applyCombineDivRem(*State.MIs[0], GIMatchData_matchinfo);
3597 return true;
3598 }
3599 case GICXXCustomAction_GICombiner85:{
3600 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3601 // Match Patterns
3602 if(![&](){return Helper.matchOrShiftToFunnelShift(*State.MIs[0], false, GIMatchData_info);}()) {
3603 return false;
3604 }
3605 // Apply Patterns
3606 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3607 return true;
3608 }
3609 case GICXXCustomAction_GICombiner86:{
3610 // Match Patterns
3611 if(![&](){return Helper.matchFunnelShiftToRotate(*State.MIs[0]);}()) {
3612 return false;
3613 }
3614 // Apply Patterns
3615 Helper.applyFunnelShiftToRotate(*State.MIs[0]);
3616 return true;
3617 }
3618 case GICXXCustomAction_GICombiner87:{
3619 // Match Patterns
3620 if(![&](){return Helper.matchConstantLargerBitWidth(*State.MIs[0], 3);}()) {
3621 return false;
3622 }
3623 // Apply Patterns
3624 Helper.applyFunnelShiftConstantModulo(*State.MIs[0]);
3625 return true;
3626 }
3627 case GICXXCustomAction_GICombiner88:{
3628 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3629 // Match Patterns
3630 if(![&](){return Helper.matchBitfieldExtractFromSExtInReg(*State.MIs[0], GIMatchData_info);}()) {
3631 return false;
3632 }
3633 // Apply Patterns
3634 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3635 return true;
3636 }
3637 case GICXXCustomAction_GICombiner89:{
3638 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3639 // Match Patterns
3640 if(![&](){return Helper.matchBitfieldExtractFromAnd(*State.MIs[0], GIMatchData_info);}()) {
3641 return false;
3642 }
3643 // Apply Patterns
3644 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3645 return true;
3646 }
3647 case GICXXCustomAction_GICombiner90:{
3648 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3649 // Match Patterns
3650 if(![&](){return Helper.matchBitfieldExtractFromShr(*State.MIs[0], GIMatchData_info);}()) {
3651 return false;
3652 }
3653 // Apply Patterns
3654 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3655 return true;
3656 }
3657 case GICXXCustomAction_GICombiner91:{
3658 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3659 // Match Patterns
3660 if(![&](){return Helper.matchBitfieldExtractFromShrAnd(*State.MIs[0], GIMatchData_info);}()) {
3661 return false;
3662 }
3663 // Apply Patterns
3664 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3665 return true;
3666 }
3667 case GICXXCustomAction_GICombiner92:{
3668 APInt GIMatchData_matchinfo;
3669 // Match Patterns
3670 if(![&](){return Helper.matchConstantFoldBinOp(*State.MIs[0], GIMatchData_matchinfo);}()) {
3671 return false;
3672 }
3673 // Apply Patterns
3674 Helper.replaceInstWithConstant(*State.MIs[0], GIMatchData_matchinfo);
3675 return true;
3676 }
3677 case GICXXCustomAction_GICombiner93:{
3678 ConstantFP* GIMatchData_matchinfo;
3679 // Match Patterns
3680 if(![&](){return Helper.matchConstantFoldFPBinOp(*State.MIs[0], GIMatchData_matchinfo);}()) {
3681 return false;
3682 }
3683 // Apply Patterns
3684 Helper.replaceInstWithFConstant(*State.MIs[0], GIMatchData_matchinfo);
3685 return true;
3686 }
3687 case GICXXCustomAction_GICombiner94:{
3688 ConstantFP* GIMatchData_matchinfo;
3689 // Match Patterns
3690 if(![&](){return Helper.matchConstantFoldFMA(*State.MIs[0], GIMatchData_matchinfo);}()) {
3691 return false;
3692 }
3693 // Apply Patterns
3694 Helper.replaceInstWithFConstant(*State.MIs[0], GIMatchData_matchinfo);
3695 return true;
3696 }
3697 case GICXXCustomAction_GICombiner95:{
3698 APInt GIMatchData_matchinfo;
3699 // Match Patterns
3700 if(![&](){return Helper.matchConstantFoldCastOp(*State.MIs[0], GIMatchData_matchinfo);}()) {
3701 return false;
3702 }
3703 // Apply Patterns
3704 Helper.replaceInstWithConstant(*State.MIs[0], GIMatchData_matchinfo);
3705 return true;
3706 }
3707 case GICXXCustomAction_GICombiner96:{
3708 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3709 // Match Patterns
3710 if(![&](){return Helper.matchConstantFoldUnaryIntOp(*State.MIs[0], GIMatchData_matchinfo);}()) {
3711 return false;
3712 }
3713 // Apply Patterns
3714 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3715 return true;
3716 }
3717 case GICXXCustomAction_GICombiner97:{
3718 // Match Patterns
3719 if(![&](){return Helper.matchUMulHToLShr(*State.MIs[0]);}()) {
3720 return false;
3721 }
3722 // Apply Patterns
3723 Helper.applyUMulHToLShr(*State.MIs[0]);
3724 return true;
3725 }
3726 case GICXXCustomAction_GICombiner98:{
3727 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3728 // Match Patterns
3729 if(![&](){return Helper.matchRedundantNegOperands(*State.MIs[0], GIMatchData_matchinfo);}()) {
3730 return false;
3731 }
3732 // Apply Patterns
3733 Helper.applyBuildFnNoErase(*State.MIs[0], GIMatchData_matchinfo);
3734 return true;
3735 }
3736 case GICXXCustomAction_GICombiner99:{
3737 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3738 // Match Patterns
3739 if(![&](){return Helper.matchAndOrDisjointMask(*State.MIs[0], GIMatchData_info);}()) {
3740 return false;
3741 }
3742 // Apply Patterns
3743 Helper.applyBuildFnNoErase(*State.MIs[0], GIMatchData_info);
3744 return true;
3745 }
3746 case GICXXCustomAction_GICombiner100:{
3747 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3748 // Match Patterns
3749 if(![&](){return Helper.matchCombineFAddFMulToFMadOrFMA(*State.MIs[0],
3750 GIMatchData_info);}()) {
3751 return false;
3752 }
3753 // Apply Patterns
3754 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3755 return true;
3756 }
3757 case GICXXCustomAction_GICombiner101:{
3758 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3759 // Match Patterns
3760 if(![&](){return Helper.matchCombineFAddFpExtFMulToFMadOrFMA(*State.MIs[0],
3761 GIMatchData_info);}()) {
3762 return false;
3763 }
3764 // Apply Patterns
3765 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3766 return true;
3767 }
3768 case GICXXCustomAction_GICombiner102:{
3769 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3770 // Match Patterns
3771 if(![&](){return Helper.matchCombineFAddFMAFMulToFMadOrFMA(*State.MIs[0],
3772 GIMatchData_info);}()) {
3773 return false;
3774 }
3775 // Apply Patterns
3776 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3777 return true;
3778 }
3779 case GICXXCustomAction_GICombiner103:{
3780 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3781 // Match Patterns
3782 if(![&](){return Helper.matchCombineFAddFpExtFMulToFMadOrFMAAggressive(
3783 *State.MIs[0], GIMatchData_info);}()) {
3784 return false;
3785 }
3786 // Apply Patterns
3787 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3788 return true;
3789 }
3790 case GICXXCustomAction_GICombiner104:{
3791 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3792 // Match Patterns
3793 if(![&](){return Helper.matchCombineFSubFMulToFMadOrFMA(*State.MIs[0],
3794 GIMatchData_info);}()) {
3795 return false;
3796 }
3797 // Apply Patterns
3798 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3799 return true;
3800 }
3801 case GICXXCustomAction_GICombiner105:{
3802 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3803 // Match Patterns
3804 if(![&](){return Helper.matchCombineFSubFNegFMulToFMadOrFMA(*State.MIs[0],
3805 GIMatchData_info);}()) {
3806 return false;
3807 }
3808 // Apply Patterns
3809 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3810 return true;
3811 }
3812 case GICXXCustomAction_GICombiner106:{
3813 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3814 // Match Patterns
3815 if(![&](){return Helper.matchCombineFSubFpExtFMulToFMadOrFMA(*State.MIs[0],
3816 GIMatchData_info);}()) {
3817 return false;
3818 }
3819 // Apply Patterns
3820 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3821 return true;
3822 }
3823 case GICXXCustomAction_GICombiner107:{
3824 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3825 // Match Patterns
3826 if(![&](){return Helper.matchCombineFSubFpExtFNegFMulToFMadOrFMA(
3827 *State.MIs[0], GIMatchData_info);}()) {
3828 return false;
3829 }
3830 // Apply Patterns
3831 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3832 return true;
3833 }
3834 case GICXXCustomAction_GICombiner108:{
3835 unsigned GIMatchData_select_op_no;
3836 // Match Patterns
3837 if(![&](){return Helper.matchFoldBinOpIntoSelect(*State.MIs[0], GIMatchData_select_op_no);}()) {
3838 return false;
3839 }
3840 // Apply Patterns
3841 Helper.applyFoldBinOpIntoSelect(*State.MIs[0], GIMatchData_select_op_no);
3842 return true;
3843 }
3844 case GICXXCustomAction_GICombiner109:{
3845 // Match Patterns
3846 if(![&](){return Helper.matchOperandIsKnownToBeAPowerOfTwo(State.MIs[0]->getOperand(2),
3847 /*OrNegative=*/true);}()) {
3848 return false;
3849 }
3850 // Apply Patterns
3851 Helper.applySimplifySRemByPow2(*State.MIs[0]);
3852 return true;
3853 }
3854 case GICXXCustomAction_GICombiner110:{
3855 // Match Patterns
3856 if(![&](){return Helper.matchUDivOrURemByConst(*State.MIs[0]);}()) {
3857 return false;
3858 }
3859 // Apply Patterns
3860 Helper.applyUDivOrURemByConst(*State.MIs[0]);
3861 return true;
3862 }
3863 case GICXXCustomAction_GICombiner111:{
3864 // Match Patterns
3865 if(![&](){return Helper.matchSDivOrSRemByConst(*State.MIs[0]);}()) {
3866 return false;
3867 }
3868 // Apply Patterns
3869 Helper.applySDivOrSRemByConst(*State.MIs[0]);
3870 return true;
3871 }
3872 case GICXXCustomAction_GICombiner112:{
3873 // Match Patterns
3874 if(![&](){return Helper.matchDivByPow2(*State.MIs[0], /*IsSigned=*/false);}()) {
3875 return false;
3876 }
3877 // Apply Patterns
3878 Helper.applyUDivByPow2(*State.MIs[0]);
3879 return true;
3880 }
3881 case GICXXCustomAction_GICombiner113:{
3882 // Match Patterns
3883 if(![&](){return Helper.matchDivByPow2(*State.MIs[0], /*IsSigned=*/true);}()) {
3884 return false;
3885 }
3886 // Apply Patterns
3887 Helper.applySDivByPow2(*State.MIs[0]);
3888 return true;
3889 }
3890 case GICXXCustomAction_GICombiner114:{
3891 SmallVector<MachineInstr *> GIMatchData_matchinfo;
3892 // Match Patterns
3893 if(![&](){return Helper.matchRepeatedFPDivisor(*State.MIs[0], GIMatchData_matchinfo);}()) {
3894 return false;
3895 }
3896 // Apply Patterns
3897 Helper.applyRepeatedFPDivisor(GIMatchData_matchinfo);
3898 return true;
3899 }
3900 case GICXXCustomAction_GICombiner115:{
3901 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3902 // Match Patterns
3903 if(![&](){return Helper.matchSubAddSameReg(*State.MIs[0], GIMatchData_matchinfo);}()) {
3904 return false;
3905 }
3906 // Apply Patterns
3907 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3908 return true;
3909 }
3910 case GICXXCustomAction_GICombiner116:{
3911 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3912 // Match Patterns
3913 if(![&](){return Helper.matchSimplifySelectToMinMax(*State.MIs[0], GIMatchData_info);}()) {
3914 return false;
3915 }
3916 // Apply Patterns
3917 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3918 return true;
3919 }
3920 case GICXXCustomAction_GICombiner117:{
3921 Register GIMatchData_matchinfo;
3922 // Match Patterns
3923 if(![&](){return Helper.matchFsubToFneg(*State.MIs[0], GIMatchData_matchinfo);}()) {
3924 return false;
3925 }
3926 // Apply Patterns
3927 Helper.applyFsubToFneg(*State.MIs[0], GIMatchData_matchinfo);
3928 return true;
3929 }
3930 case GICXXCustomAction_GICombiner118:{
3931 // Match Patterns
3932 if(![&](){return Helper.matchCommuteConstantToRHS(*State.MIs[0]);}()) {
3933 return false;
3934 }
3935 // Apply Patterns
3936 Helper.applyCommuteBinOpOperands(*State.MIs[0]);
3937 return true;
3938 }
3939 case GICXXCustomAction_GICombiner119:{
3940 // Match Patterns
3941 if(![&](){return Helper.matchCommuteFPConstantToRHS(*State.MIs[0]);}()) {
3942 return false;
3943 }
3944 // Apply Patterns
3945 Helper.applyCommuteBinOpOperands(*State.MIs[0]);
3946 return true;
3947 }
3948 case GICXXCustomAction_GICombiner120:{
3949 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3950 // Match Patterns
3951 if(![&](){return Helper.matchAnd(*State.MIs[0], GIMatchData_matchinfo);}()) {
3952 return false;
3953 }
3954 // Apply Patterns
3955 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3956 return true;
3957 }
3958 case GICXXCustomAction_GICombiner121:{
3959 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3960 // Match Patterns
3961 if(![&](){return Helper.matchOr(*State.MIs[0], GIMatchData_matchinfo);}()) {
3962 return false;
3963 }
3964 // Apply Patterns
3965 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3966 return true;
3967 }
3968 case GICXXCustomAction_GICombiner122:{
3969 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3970 // Match Patterns
3971 if(![&](){return Helper.matchSimplifyNegMinMax(*State.MIs[0], GIMatchData_matchinfo);}()) {
3972 return false;
3973 }
3974 // Apply Patterns
3975 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3976 return true;
3977 }
3978 case GICXXCustomAction_GICombiner123:{
3979 SmallVector<Register> GIMatchData_matchinfo;
3980 // Match Patterns
3981 if(![&](){return Helper.matchCombineConcatVectors(*State.MIs[0], GIMatchData_matchinfo);}()) {
3982 return false;
3983 }
3984 // Apply Patterns
3985 Helper.applyCombineConcatVectors(*State.MIs[0], GIMatchData_matchinfo);
3986 return true;
3987 }
3988 case GICXXCustomAction_GICombiner124:{
3989 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3990 // Match Patterns
3991 if(![&](){return Helper.matchSextOfTrunc(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
3992 return false;
3993 }
3994 // Apply Patterns
3995 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
3996 return true;
3997 }
3998 case GICXXCustomAction_GICombiner125:{
3999 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4000 // Match Patterns
4001 if(![&](){return Helper.matchZextOfTrunc(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
4002 return false;
4003 }
4004 // Apply Patterns
4005 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
4006 return true;
4007 }
4008 case GICXXCustomAction_GICombiner126:{
4009 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4010 // Match Patterns
4011 if(![&](){return Helper.matchNonNegZext(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
4012 return false;
4013 }
4014 // Apply Patterns
4015 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
4016 return true;
4017 }
4018 case GICXXCustomAction_GICombiner127:{
4019 SmallVector<Register> GIMatchData_matchinfo;
4020 // Match Patterns
4021 if(![&](){return Helper.matchCombineShuffleConcat(*State.MIs[0], GIMatchData_matchinfo);}()) {
4022 return false;
4023 }
4024 // Apply Patterns
4025 Helper.applyCombineShuffleConcat(*State.MIs[0], GIMatchData_matchinfo);
4026 return true;
4027 }
4028 case GICXXCustomAction_GICombiner128:{
4029 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4030 // Match Patterns
4031 if(![&](){return Helper.matchShuffleUndefRHS(*State.MIs[0], GIMatchData_matchinfo);}()) {
4032 return false;
4033 }
4034 // Apply Patterns
4035 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4036 return true;
4037 }
4038 case GICXXCustomAction_GICombiner129:{
4039 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4040 // Match Patterns
4041 if(![&](){return Helper.matchShuffleDisjointMask(*State.MIs[0], GIMatchData_matchinfo);}()) {
4042 return false;
4043 }
4044 // Apply Patterns
4045 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4046 return true;
4047 }
4048 case GICXXCustomAction_GICombiner130:{
4049 Register GIMatchData_matchinfo;
4050 // Match Patterns
4051 if(![&](){return Helper.matchUseVectorTruncate(*State.MIs[0], GIMatchData_matchinfo);}()) {
4052 return false;
4053 }
4054 // Apply Patterns
4055 Helper.applyUseVectorTruncate(*State.MIs[0], GIMatchData_matchinfo);
4056 return true;
4057 }
4058 case GICXXCustomAction_GICombiner131:{
4059 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4060 // Match Patterns
4061 if(![&](){return Helper.matchUnmergeValuesAnyExtBuildVector(*State.MIs[0], GIMatchData_matchinfo);}()) {
4062 return false;
4063 }
4064 // Apply Patterns
4065 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4066 return true;
4067 }
4068 case GICXXCustomAction_GICombiner132:{
4069 SmallVector<Register> GIMatchData_info;
4070 // Match Patterns
4071 if(![&](){return Helper.matchCombineUnmergeMergeToPlainValues(*State.MIs[0], GIMatchData_info);}()) {
4072 return false;
4073 }
4074 // Apply Patterns
4075 Helper.applyCombineUnmergeMergeToPlainValues(*State.MIs[0], GIMatchData_info);
4076 return true;
4077 }
4078 case GICXXCustomAction_GICombiner133:{
4079 Register GIMatchData_src;
4080 // Match Patterns
4081 if(![&](){// Check if first source comes from G_UNMERGE_VALUES.
4082 Register FirstMergeSrc = getRemainingOperands(*State.MIs[0], 1)[0].getReg();
4083 MachineInstr *UnmergeMI = MRI.getVRegDef(FirstMergeSrc);
4084 if (!UnmergeMI || UnmergeMI->getOpcode() != TargetOpcode::G_UNMERGE_VALUES)
4085 return false;
4086
4087 // Check counts match.
4088 unsigned NumMergeSrcs = getRemainingOperands(*State.MIs[0], 1).size();
4089 unsigned NumUnmergeDefs = UnmergeMI->getNumDefs();
4090 if (NumMergeSrcs != NumUnmergeDefs)
4091 return false;
4092
4093 // Verify all merge sources match unmerge defs in order.
4094 for (unsigned I = 0; I < NumMergeSrcs; ++I) {
4095 Register MergeSrc = getRemainingOperands(*State.MIs[0], 1)[I].getReg();
4096 Register UnmergeDef = UnmergeMI->getOperand(I).getReg();
4097
4098 if (MergeSrc != UnmergeDef)
4099 return false;
4100
4101 if (!MRI.hasOneNonDBGUse(MergeSrc))
4102 return false;
4103 }
4104
4105 // Check size compatibility.
4106 GIMatchData_src = UnmergeMI->getOperand(NumUnmergeDefs).getReg();
4107 LLT SrcTy = MRI.getType(GIMatchData_src);
4108 LLT DstTy = MRI.getType(State.MIs[0]->getOperand(0).getReg());
4109 if (SrcTy.getSizeInBits() != DstTy.getSizeInBits())
4110 return false;
4111
4112 // Check bitcast legality.
4113 if (SrcTy != DstTy) {
4114 std::array<LLT, 2> Types = {{DstTy, SrcTy}};
4115 LegalityQuery Query(TargetOpcode::G_BITCAST, Types);
4116 if (!Helper.isLegalOrBeforeLegalizer(Query))
4117 return false;
4118 }
4119
4120 return true;}()) {
4121 return false;
4122 }
4123 // Apply Patterns
4124 LLT SrcTy = MRI.getType(GIMatchData_src);
4125 LLT DstTy = MRI.getType(State.MIs[0]->getOperand(0).getReg());
4126
4127 Helper.getBuilder().setInstrAndDebugLoc(*State.MIs[0]);
4128
4129 if (SrcTy == DstTy) {
4130 Helper.replaceRegWith(MRI, State.MIs[0]->getOperand(0).getReg(), GIMatchData_src);
4131 } else {
4132 Helper.getBuilder().buildBitcast(State.MIs[0]->getOperand(0).getReg(), GIMatchData_src);
4133 }
4134
4135 State.MIs[0]->eraseFromParent();
4136 return true;
4137 }
4138 case GICXXCustomAction_GICombiner134:{
4139 SmallVector<APInt, 8> GIMatchData_info;
4140 // Match Patterns
4141 if(![&](){return Helper.matchCombineUnmergeConstant(*State.MIs[0], GIMatchData_info);}()) {
4142 return false;
4143 }
4144 // Apply Patterns
4145 Helper.applyCombineUnmergeConstant(*State.MIs[0], GIMatchData_info);
4146 return true;
4147 }
4148 case GICXXCustomAction_GICombiner135:{
4149 std::function<void(MachineIRBuilder &)> GIMatchData_info;
4150 // Match Patterns
4151 if(![&](){return Helper.matchCombineUnmergeUndef(*State.MIs[0], GIMatchData_info);}()) {
4152 return false;
4153 }
4154 // Apply Patterns
4155 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
4156 return true;
4157 }
4158 case GICXXCustomAction_GICombiner136:{
4159 // Match Patterns
4160 if(![&](){return Helper.matchCombineUnmergeWithDeadLanesToTrunc(*State.MIs[0]);}()) {
4161 return false;
4162 }
4163 // Apply Patterns
4164 Helper.applyCombineUnmergeWithDeadLanesToTrunc(*State.MIs[0]);
4165 return true;
4166 }
4167 case GICXXCustomAction_GICombiner137:{
4168 // Match Patterns
4169 if(![&](){return Helper.matchCombineUnmergeZExtToZExt(*State.MIs[0]);}()) {
4170 return false;
4171 }
4172 // Apply Patterns
4173 Helper.applyCombineUnmergeZExtToZExt(*State.MIs[0]);
4174 return true;
4175 }
4176 case GICXXCustomAction_GICombiner138:{
4177 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4178 // Match Patterns
4179 if(![&](){return Helper.matchMergeXAndUndef(*State.MIs[0], GIMatchData_matchinfo);}()) {
4180 return false;
4181 }
4182 // Apply Patterns
4183 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4184 return true;
4185 }
4186 case GICXXCustomAction_GICombiner139:{
4187 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4188 // Match Patterns
4189 if(![&](){return Helper.matchMergeXAndZero(*State.MIs[0], GIMatchData_matchinfo);}()) {
4190 return false;
4191 }
4192 // Apply Patterns
4193 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4194 return true;
4195 }
4196 case GICXXCustomAction_GICombiner140:{
4197 Register GIMatchData_unmergeSrc;
4198 // Match Patterns
4199 if(![&](){return Helper.matchCombineBuildUnmerge(*State.MIs[0], MRI, GIMatchData_unmergeSrc);}()) {
4200 return false;
4201 }
4202 // Apply Patterns
4203 Helper.applyCombineBuildUnmerge(*State.MIs[0], MRI, B, GIMatchData_unmergeSrc);
4204 return true;
4205 }
4206 case GICXXCustomAction_GICombiner141:{
4207 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4208 // Match Patterns
4209 if(![&](){return Helper.matchAddOverflow(*State.MIs[0], GIMatchData_matchinfo);}()) {
4210 return false;
4211 }
4212 // Apply Patterns
4213 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4214 return true;
4215 }
4216 case GICXXCustomAction_GICombiner142:{
4217 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4218 // Match Patterns
4219 if(![&](){return Helper.matchSuboCarryOut(*State.MIs[0], GIMatchData_matchinfo);}()) {
4220 return false;
4221 }
4222 // Apply Patterns
4223 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4224 return true;
4225 }
4226 case GICXXCustomAction_GICombiner143:{
4227 Register GIMatchData_matchinfo;
4228 // Match Patterns
4229 if(![&](){return Helper.matchTruncSSatS(*State.MIs[0], GIMatchData_matchinfo);}()) {
4230 return false;
4231 }
4232 // Apply Patterns
4233 Helper.applyTruncSSatS(*State.MIs[0], GIMatchData_matchinfo);
4234 return true;
4235 }
4236 case GICXXCustomAction_GICombiner144:{
4237 Register GIMatchData_matchinfo;
4238 // Match Patterns
4239 if(![&](){return Helper.matchTruncSSatU(*State.MIs[0], GIMatchData_matchinfo);}()) {
4240 return false;
4241 }
4242 // Apply Patterns
4243 Helper.applyTruncSSatU(*State.MIs[0], GIMatchData_matchinfo);
4244 return true;
4245 }
4246 case GICXXCustomAction_GICombiner145:{
4247 LshrOfTruncOfLshr GIMatchData_matchinfo;
4248 // Match Patterns
4249 if(![&](){return Helper.matchLshrOfTruncOfLshr(*State.MIs[0], GIMatchData_matchinfo, *State.MIs[2]);}()) {
4250 return false;
4251 }
4252 // Apply Patterns
4253 Helper.applyLshrOfTruncOfLshr(*State.MIs[0], GIMatchData_matchinfo);
4254 return true;
4255 }
4256 case GICXXCustomAction_GICombiner146:{
4257 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4258 // Match Patterns
4259 if(![&](){return Helper.matchCtls(*State.MIs[0], GIMatchData_matchinfo);}()) {
4260 return false;
4261 }
4262 // Apply Patterns
4263 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4264 return true;
4265 }
4266 case GICXXCustomAction_GICombiner147:{
4267 // Match Patterns
4268 if(![&](){return Helper.matchCountZeroToZeroPoison(*State.MIs[0]);}()) {
4269 return false;
4270 }
4271 // Apply Patterns
4272 Helper.applyCountZeroToZeroPoison(*State.MIs[0]);
4273 return true;
4274 }
4275 case GICXXCustomAction_GICombiner148:{
4276 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4277 // Match Patterns
4278 if(![&](){return Helper.matchBinopWithNeg(*State.MIs[0], GIMatchData_matchinfo);}()) {
4279 return false;
4280 }
4281 // Apply Patterns
4282 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4283 return true;
4284 }
4285 }
4286 llvm_unreachable("Unknown Apply Action");
4287}
4288#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
4289#define GIMT_Encode2(Val) uint8_t(Val), uint8_t((Val) >> 8)
4290#define GIMT_Encode4(Val) uint8_t(Val), uint8_t((Val) >> 8), uint8_t((Val) >> 16), uint8_t((Val) >> 24)
4291#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)
4292#else
4293#define GIMT_Encode2(Val) uint8_t((Val) >> 8), uint8_t(Val)
4294#define GIMT_Encode4(Val) uint8_t((Val) >> 24), uint8_t((Val) >> 16), uint8_t((Val) >> 8), uint8_t(Val)
4295#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)
4296#endif
4297const uint8_t *RISCVPreLegalizerCombinerImpl::getMatchTable() const {
4298 constexpr static uint8_t MatchTable0[] = {
4299 /* 0 */ GIM_SwitchOpcode, /*MI*/0, /*[*/GIMT_Encode2(20), GIMT_Encode2(287), /*)*//*default:*//*Label 113*/ GIMT_Encode4(11163),
4300 /* 10 */ /*TargetOpcode::COPY*//*Label 0*/ GIMT_Encode4(1078), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4301 /* 150 */ /*TargetOpcode::G_ADD*//*Label 1*/ GIMT_Encode4(1090),
4302 /* 154 */ /*TargetOpcode::G_SUB*//*Label 2*/ GIMT_Encode4(2040),
4303 /* 158 */ /*TargetOpcode::G_MUL*//*Label 3*/ GIMT_Encode4(3052),
4304 /* 162 */ /*TargetOpcode::G_SDIV*//*Label 4*/ GIMT_Encode4(3289),
4305 /* 166 */ /*TargetOpcode::G_UDIV*//*Label 5*/ GIMT_Encode4(3391),
4306 /* 170 */ /*TargetOpcode::G_SREM*//*Label 6*/ GIMT_Encode4(3514),
4307 /* 174 */ /*TargetOpcode::G_UREM*//*Label 7*/ GIMT_Encode4(3610), GIMT_Encode4(0), GIMT_Encode4(0),
4308 /* 186 */ /*TargetOpcode::G_AND*//*Label 8*/ GIMT_Encode4(3727),
4309 /* 190 */ /*TargetOpcode::G_OR*//*Label 9*/ GIMT_Encode4(4185),
4310 /* 194 */ /*TargetOpcode::G_XOR*//*Label 10*/ GIMT_Encode4(5031), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4311 /* 226 */ /*TargetOpcode::G_PHI*//*Label 11*/ GIMT_Encode4(5273), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4312 /* 250 */ /*TargetOpcode::G_UNMERGE_VALUES*//*Label 12*/ GIMT_Encode4(5288), GIMT_Encode4(0),
4313 /* 258 */ /*TargetOpcode::G_MERGE_VALUES*//*Label 13*/ GIMT_Encode4(5355),
4314 /* 262 */ /*TargetOpcode::G_BUILD_VECTOR*//*Label 14*/ GIMT_Encode4(5432),
4315 /* 266 */ /*TargetOpcode::G_BUILD_VECTOR_TRUNC*//*Label 15*/ GIMT_Encode4(5497),
4316 /* 270 */ /*TargetOpcode::G_CONCAT_VECTORS*//*Label 16*/ GIMT_Encode4(5509),
4317 /* 274 */ /*TargetOpcode::G_PTRTOINT*//*Label 17*/ GIMT_Encode4(5524),
4318 /* 278 */ /*TargetOpcode::G_INTTOPTR*//*Label 18*/ GIMT_Encode4(5567),
4319 /* 282 */ /*TargetOpcode::G_BITCAST*//*Label 19*/ GIMT_Encode4(5622),
4320 /* 286 */ /*TargetOpcode::G_FREEZE*//*Label 20*/ GIMT_Encode4(5697), GIMT_Encode4(0), GIMT_Encode4(0),
4321 /* 298 */ /*TargetOpcode::G_INTRINSIC_TRUNC*//*Label 21*/ GIMT_Encode4(5761),
4322 /* 302 */ /*TargetOpcode::G_INTRINSIC_ROUND*//*Label 22*/ GIMT_Encode4(5783), GIMT_Encode4(0), GIMT_Encode4(0),
4323 /* 314 */ /*TargetOpcode::G_INTRINSIC_ROUNDEVEN*//*Label 23*/ GIMT_Encode4(5805), GIMT_Encode4(0), GIMT_Encode4(0),
4324 /* 326 */ /*TargetOpcode::G_LOAD*//*Label 24*/ GIMT_Encode4(5827),
4325 /* 330 */ /*TargetOpcode::G_SEXTLOAD*//*Label 25*/ GIMT_Encode4(5839),
4326 /* 334 */ /*TargetOpcode::G_ZEXTLOAD*//*Label 26*/ GIMT_Encode4(5851), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4327 /* 354 */ /*TargetOpcode::G_STORE*//*Label 27*/ GIMT_Encode4(5863), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4328 /* 502 */ /*TargetOpcode::G_ANYEXT*//*Label 28*/ GIMT_Encode4(5875),
4329 /* 506 */ /*TargetOpcode::G_TRUNC*//*Label 29*/ GIMT_Encode4(6003), GIMT_Encode4(0), GIMT_Encode4(0),
4330 /* 518 */ /*TargetOpcode::G_TRUNC_USAT_U*//*Label 30*/ GIMT_Encode4(6415), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4331 /* 538 */ /*TargetOpcode::G_SEXT*//*Label 31*/ GIMT_Encode4(6448),
4332 /* 542 */ /*TargetOpcode::G_SEXT_INREG*//*Label 32*/ GIMT_Encode4(6523),
4333 /* 546 */ /*TargetOpcode::G_ZEXT*//*Label 33*/ GIMT_Encode4(6745),
4334 /* 550 */ /*TargetOpcode::G_SHL*//*Label 34*/ GIMT_Encode4(6875),
4335 /* 554 */ /*TargetOpcode::G_LSHR*//*Label 35*/ GIMT_Encode4(7238),
4336 /* 558 */ /*TargetOpcode::G_ASHR*//*Label 36*/ GIMT_Encode4(7595),
4337 /* 562 */ /*TargetOpcode::G_FSHL*//*Label 37*/ GIMT_Encode4(7934),
4338 /* 566 */ /*TargetOpcode::G_FSHR*//*Label 38*/ GIMT_Encode4(7977),
4339 /* 570 */ /*TargetOpcode::G_ROTR*//*Label 39*/ GIMT_Encode4(8020),
4340 /* 574 */ /*TargetOpcode::G_ROTL*//*Label 40*/ GIMT_Encode4(8044),
4341 /* 578 */ /*TargetOpcode::G_ICMP*//*Label 41*/ GIMT_Encode4(8068),
4342 /* 582 */ /*TargetOpcode::G_FCMP*//*Label 42*/ GIMT_Encode4(8113), GIMT_Encode4(0), GIMT_Encode4(0),
4343 /* 594 */ /*TargetOpcode::G_SELECT*//*Label 43*/ GIMT_Encode4(8125),
4344 /* 598 */ /*TargetOpcode::G_UADDO*//*Label 44*/ GIMT_Encode4(8421),
4345 /* 602 */ /*TargetOpcode::G_UADDE*//*Label 45*/ GIMT_Encode4(8444),
4346 /* 606 */ /*TargetOpcode::G_USUBO*//*Label 46*/ GIMT_Encode4(8456),
4347 /* 610 */ /*TargetOpcode::G_USUBE*//*Label 47*/ GIMT_Encode4(8468),
4348 /* 614 */ /*TargetOpcode::G_SADDO*//*Label 48*/ GIMT_Encode4(8480),
4349 /* 618 */ /*TargetOpcode::G_SADDE*//*Label 49*/ GIMT_Encode4(8503),
4350 /* 622 */ /*TargetOpcode::G_SSUBO*//*Label 50*/ GIMT_Encode4(8515),
4351 /* 626 */ /*TargetOpcode::G_SSUBE*//*Label 51*/ GIMT_Encode4(8527),
4352 /* 630 */ /*TargetOpcode::G_UMULO*//*Label 52*/ GIMT_Encode4(8539),
4353 /* 634 */ /*TargetOpcode::G_SMULO*//*Label 53*/ GIMT_Encode4(8573),
4354 /* 638 */ /*TargetOpcode::G_UMULH*//*Label 54*/ GIMT_Encode4(8607),
4355 /* 642 */ /*TargetOpcode::G_SMULH*//*Label 55*/ GIMT_Encode4(8630),
4356 /* 646 */ /*TargetOpcode::G_UADDSAT*//*Label 56*/ GIMT_Encode4(8642),
4357 /* 650 */ /*TargetOpcode::G_SADDSAT*//*Label 57*/ GIMT_Encode4(8654), GIMT_Encode4(0), GIMT_Encode4(0),
4358 /* 662 */ /*TargetOpcode::G_USHLSAT*//*Label 58*/ GIMT_Encode4(8666),
4359 /* 666 */ /*TargetOpcode::G_SSHLSAT*//*Label 59*/ GIMT_Encode4(8689),
4360 /* 670 */ /*TargetOpcode::G_SMULFIX*//*Label 60*/ GIMT_Encode4(8712),
4361 /* 674 */ /*TargetOpcode::G_UMULFIX*//*Label 61*/ GIMT_Encode4(8724),
4362 /* 678 */ /*TargetOpcode::G_SMULFIXSAT*//*Label 62*/ GIMT_Encode4(8736),
4363 /* 682 */ /*TargetOpcode::G_UMULFIXSAT*//*Label 63*/ GIMT_Encode4(8748), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4364 /* 702 */ /*TargetOpcode::G_FADD*//*Label 64*/ GIMT_Encode4(8760),
4365 /* 706 */ /*TargetOpcode::G_FSUB*//*Label 65*/ GIMT_Encode4(8901),
4366 /* 710 */ /*TargetOpcode::G_FMUL*//*Label 66*/ GIMT_Encode4(8990),
4367 /* 714 */ /*TargetOpcode::G_FMA*//*Label 67*/ GIMT_Encode4(9110),
4368 /* 718 */ /*TargetOpcode::G_FMAD*//*Label 68*/ GIMT_Encode4(9167),
4369 /* 722 */ /*TargetOpcode::G_FDIV*//*Label 69*/ GIMT_Encode4(9224),
4370 /* 726 */ /*TargetOpcode::G_FREM*//*Label 70*/ GIMT_Encode4(9301), GIMT_Encode4(0), GIMT_Encode4(0),
4371 /* 738 */ /*TargetOpcode::G_FPOWI*//*Label 71*/ GIMT_Encode4(9324), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4372 /* 758 */ /*TargetOpcode::G_FLOG2*//*Label 72*/ GIMT_Encode4(9346), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4373 /* 774 */ /*TargetOpcode::G_FNEG*//*Label 73*/ GIMT_Encode4(9368),
4374 /* 778 */ /*TargetOpcode::G_FPEXT*//*Label 74*/ GIMT_Encode4(9419),
4375 /* 782 */ /*TargetOpcode::G_FPTRUNC*//*Label 75*/ GIMT_Encode4(9441),
4376 /* 786 */ /*TargetOpcode::G_FPTOSI*//*Label 76*/ GIMT_Encode4(9484),
4377 /* 790 */ /*TargetOpcode::G_FPTOUI*//*Label 77*/ GIMT_Encode4(9506),
4378 /* 794 */ /*TargetOpcode::G_SITOFP*//*Label 78*/ GIMT_Encode4(9528),
4379 /* 798 */ /*TargetOpcode::G_UITOFP*//*Label 79*/ GIMT_Encode4(9565), GIMT_Encode4(0), GIMT_Encode4(0),
4380 /* 810 */ /*TargetOpcode::G_FABS*//*Label 80*/ GIMT_Encode4(9602),
4381 /* 814 */ /*TargetOpcode::G_FCOPYSIGN*//*Label 81*/ GIMT_Encode4(9681), GIMT_Encode4(0),
4382 /* 822 */ /*TargetOpcode::G_FCANONICALIZE*//*Label 82*/ GIMT_Encode4(9693),
4383 /* 826 */ /*TargetOpcode::G_FMINNUM*//*Label 83*/ GIMT_Encode4(9723),
4384 /* 830 */ /*TargetOpcode::G_FMAXNUM*//*Label 84*/ GIMT_Encode4(9768),
4385 /* 834 */ /*TargetOpcode::G_FMINNUM_IEEE*//*Label 85*/ GIMT_Encode4(9813),
4386 /* 838 */ /*TargetOpcode::G_FMAXNUM_IEEE*//*Label 86*/ GIMT_Encode4(9825),
4387 /* 842 */ /*TargetOpcode::G_FMINIMUM*//*Label 87*/ GIMT_Encode4(9837),
4388 /* 846 */ /*TargetOpcode::G_FMAXIMUM*//*Label 88*/ GIMT_Encode4(9882),
4389 /* 850 */ /*TargetOpcode::G_FMINIMUMNUM*//*Label 89*/ GIMT_Encode4(9927),
4390 /* 854 */ /*TargetOpcode::G_FMAXIMUMNUM*//*Label 90*/ GIMT_Encode4(9939), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4391 /* 890 */ /*TargetOpcode::G_PTR_ADD*//*Label 91*/ GIMT_Encode4(9951), GIMT_Encode4(0),
4392 /* 898 */ /*TargetOpcode::G_SMIN*//*Label 92*/ GIMT_Encode4(10076),
4393 /* 902 */ /*TargetOpcode::G_SMAX*//*Label 93*/ GIMT_Encode4(10110),
4394 /* 906 */ /*TargetOpcode::G_UMIN*//*Label 94*/ GIMT_Encode4(10144),
4395 /* 910 */ /*TargetOpcode::G_UMAX*//*Label 95*/ GIMT_Encode4(10178),
4396 /* 914 */ /*TargetOpcode::G_ABS*//*Label 96*/ GIMT_Encode4(10212), GIMT_Encode4(0), GIMT_Encode4(0),
4397 /* 926 */ /*TargetOpcode::G_BR*//*Label 97*/ GIMT_Encode4(10245), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4398 /* 946 */ /*TargetOpcode::G_INSERT_VECTOR_ELT*//*Label 98*/ GIMT_Encode4(10257),
4399 /* 950 */ /*TargetOpcode::G_EXTRACT_VECTOR_ELT*//*Label 99*/ GIMT_Encode4(10387),
4400 /* 954 */ /*TargetOpcode::G_SHUFFLE_VECTOR*//*Label 100*/ GIMT_Encode4(10764), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4401 /* 970 */ /*TargetOpcode::G_CTTZ*//*Label 101*/ GIMT_Encode4(10837),
4402 /* 974 */ /*TargetOpcode::G_CTTZ_ZERO_POISON*//*Label 102*/ GIMT_Encode4(10860),
4403 /* 978 */ /*TargetOpcode::G_CTLZ*//*Label 103*/ GIMT_Encode4(10872),
4404 /* 982 */ /*TargetOpcode::G_CTLZ_ZERO_POISON*//*Label 104*/ GIMT_Encode4(10906), GIMT_Encode4(0),
4405 /* 990 */ /*TargetOpcode::G_CTPOP*//*Label 105*/ GIMT_Encode4(10929),
4406 /* 994 */ /*TargetOpcode::G_BSWAP*//*Label 106*/ GIMT_Encode4(10941),
4407 /* 998 */ /*TargetOpcode::G_BITREVERSE*//*Label 107*/ GIMT_Encode4(10953), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4408 /* 1014 */ /*TargetOpcode::G_FCEIL*//*Label 108*/ GIMT_Encode4(11053), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4409 /* 1062 */ /*TargetOpcode::G_FSQRT*//*Label 109*/ GIMT_Encode4(11075),
4410 /* 1066 */ /*TargetOpcode::G_FFLOOR*//*Label 110*/ GIMT_Encode4(11097),
4411 /* 1070 */ /*TargetOpcode::G_FRINT*//*Label 111*/ GIMT_Encode4(11119),
4412 /* 1074 */ /*TargetOpcode::G_FNEARBYINT*//*Label 112*/ GIMT_Encode4(11141),
4413 /* 1078 */ // Label 0: @1078
4414 /* 1078 */ GIM_Try, /*On fail goto*//*Label 114*/ GIMT_Encode4(1089), // Rule ID 19 //
4415 /* 1083 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule19Enabled),
4416 /* 1086 */ // MIs[0] d
4417 /* 1086 */ // No operand predicates
4418 /* 1086 */ // MIs[0] s
4419 /* 1086 */ // No operand predicates
4420 /* 1086 */ // Combiner Rule #19: copy_prop
4421 /* 1086 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner5),
4422 /* 1089 */ // Label 114: @1089
4423 /* 1089 */ GIM_Reject,
4424 /* 1090 */ // Label 1: @1090
4425 /* 1090 */ GIM_Try, /*On fail goto*//*Label 115*/ GIMT_Encode4(1101), // Rule ID 272 //
4426 /* 1095 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
4427 /* 1098 */ // Combiner Rule #194: constant_fold_binop; wip_match_opcode 'G_ADD'
4428 /* 1098 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner92),
4429 /* 1101 */ // Label 115: @1101
4430 /* 1101 */ GIM_Try, /*On fail goto*//*Label 116*/ GIMT_Encode4(1112), // Rule ID 332 //
4431 /* 1106 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule215Enabled),
4432 /* 1109 */ // Combiner Rule #215: fold_binop_into_select; wip_match_opcode 'G_ADD'
4433 /* 1109 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner108),
4434 /* 1112 */ // Label 116: @1112
4435 /* 1112 */ GIM_Try, /*On fail goto*//*Label 117*/ GIMT_Encode4(1123), // Rule ID 369 //
4436 /* 1117 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule227Enabled),
4437 /* 1120 */ // Combiner Rule #227: commute_int_constant_to_rhs; wip_match_opcode 'G_ADD'
4438 /* 1120 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner118),
4439 /* 1123 */ // Label 117: @1123
4440 /* 1123 */ GIM_Try, /*On fail goto*//*Label 118*/ GIMT_Encode4(1211), // Rule ID 439 //
4441 /* 1128 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule267Enabled),
4442 /* 1131 */ // MIs[0] dst
4443 /* 1131 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
4444 /* 1135 */ // MIs[0] __add_shift_match_0.shl_neg
4445 /* 1135 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4446 /* 1139 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SHL),
4447 /* 1143 */ // MIs[1] __add_shift_match_0.neg_y
4448 /* 1143 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
4449 /* 1147 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB),
4450 /* 1151 */ // MIs[2] __add_shift_match_0.zero
4451 /* 1151 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/2, /*OpIdx*/1, // MIs[3]
4452 /* 1155 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
4453 /* 1159 */ // MIs[3] Operand 1
4454 /* 1159 */ GIM_CheckLiteralInt, /*MI*/3, /*Op*/1, GIMT_Encode8(0),
4455 /* 1170 */ // MIs[2] y
4456 /* 1170 */ // No operand predicates
4457 /* 1170 */ // MIs[1] n
4458 /* 1170 */ // No operand predicates
4459 /* 1170 */ // MIs[0] x
4460 /* 1170 */ // No operand predicates
4461 /* 1170 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner26),
4462 /* 1174 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
4463 /* 1176 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
4464 /* 1179 */ // Combiner Rule #267: add_shift @ [__add_shift_match_0[1]]
4465 /* 1179 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SHL),
4466 /* 1182 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
4467 /* 1187 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/2, // y
4468 /* 1191 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // n
4469 /* 1195 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
4470 /* 1199 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
4471 /* 1203 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/2, // x
4472 /* 1207 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
4473 /* 1210 */ GIR_EraseRootFromParent_Done,
4474 /* 1211 */ // Label 118: @1211
4475 /* 1211 */ GIM_Try, /*On fail goto*//*Label 119*/ GIMT_Encode4(1299), // Rule ID 438 //
4476 /* 1216 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule267Enabled),
4477 /* 1219 */ // MIs[0] dst
4478 /* 1219 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
4479 /* 1223 */ // MIs[0] x
4480 /* 1223 */ // No operand predicates
4481 /* 1223 */ // MIs[0] __add_shift_match_0.shl_neg
4482 /* 1223 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
4483 /* 1227 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SHL),
4484 /* 1231 */ // MIs[1] __add_shift_match_0.neg_y
4485 /* 1231 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
4486 /* 1235 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB),
4487 /* 1239 */ // MIs[2] __add_shift_match_0.zero
4488 /* 1239 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/2, /*OpIdx*/1, // MIs[3]
4489 /* 1243 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
4490 /* 1247 */ // MIs[3] Operand 1
4491 /* 1247 */ GIM_CheckLiteralInt, /*MI*/3, /*Op*/1, GIMT_Encode8(0),
4492 /* 1258 */ // MIs[2] y
4493 /* 1258 */ // No operand predicates
4494 /* 1258 */ // MIs[1] n
4495 /* 1258 */ // No operand predicates
4496 /* 1258 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner25),
4497 /* 1262 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
4498 /* 1264 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
4499 /* 1267 */ // Combiner Rule #267: add_shift @ [__add_shift_match_0[0]]
4500 /* 1267 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SHL),
4501 /* 1270 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
4502 /* 1275 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/2, // y
4503 /* 1279 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // n
4504 /* 1283 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
4505 /* 1287 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
4506 /* 1291 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/1, // x
4507 /* 1295 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
4508 /* 1298 */ GIR_EraseRootFromParent_Done,
4509 /* 1299 */ // Label 119: @1299
4510 /* 1299 */ GIM_Try, /*On fail goto*//*Label 120*/ GIMT_Encode4(1333), // Rule ID 2 //
4511 /* 1304 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule2Enabled),
4512 /* 1307 */ // MIs[0] root
4513 /* 1307 */ // No operand predicates
4514 /* 1307 */ // MIs[0] sub
4515 /* 1307 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4516 /* 1311 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
4517 /* 1315 */ // MIs[1] Operand 1
4518 /* 1315 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/1, 0,
4519 /* 1319 */ // MIs[1] A
4520 /* 1319 */ // No operand predicates
4521 /* 1319 */ // MIs[0] B
4522 /* 1319 */ // No operand predicates
4523 /* 1319 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4524 /* 1321 */ // Combiner Rule #2: ZeroMinusAPlusB
4525 /* 1321 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
4526 /* 1324 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
4527 /* 1326 */ GIR_RootToRootCopy, /*OpIdx*/2, // B
4528 /* 1328 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // A
4529 /* 1332 */ GIR_EraseRootFromParent_Done,
4530 /* 1333 */ // Label 120: @1333
4531 /* 1333 */ GIM_Try, /*On fail goto*//*Label 121*/ GIMT_Encode4(1382), // Rule ID 160 //
4532 /* 1338 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule112Enabled),
4533 /* 1341 */ // MIs[0] dst
4534 /* 1341 */ // No operand predicates
4535 /* 1341 */ // MIs[0] __simplify_add_to_sub_match_0.neg
4536 /* 1341 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4537 /* 1345 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
4538 /* 1349 */ // MIs[1] __simplify_add_to_sub_match_0.zero
4539 /* 1349 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
4540 /* 1353 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
4541 /* 1357 */ // MIs[2] Operand 1
4542 /* 1357 */ GIM_CheckLiteralInt, /*MI*/2, /*Op*/1, GIMT_Encode8(0),
4543 /* 1368 */ // MIs[1] newrhs
4544 /* 1368 */ // No operand predicates
4545 /* 1368 */ // MIs[0] newlhs
4546 /* 1368 */ // No operand predicates
4547 /* 1368 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
4548 /* 1370 */ // Combiner Rule #112: simplify_add_to_sub @ [__simplify_add_to_sub_match_0[0]]
4549 /* 1370 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
4550 /* 1373 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
4551 /* 1375 */ GIR_RootToRootCopy, /*OpIdx*/2, // newlhs
4552 /* 1377 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // newrhs
4553 /* 1381 */ GIR_EraseRootFromParent_Done,
4554 /* 1382 */ // Label 121: @1382
4555 /* 1382 */ GIM_Try, /*On fail goto*//*Label 122*/ GIMT_Encode4(1419), // Rule ID 18 //
4556 /* 1387 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule18Enabled),
4557 /* 1390 */ // MIs[0] root
4558 /* 1390 */ // No operand predicates
4559 /* 1390 */ // MIs[0] sub
4560 /* 1390 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4561 /* 1394 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
4562 /* 1398 */ // MIs[1] A
4563 /* 1398 */ // No operand predicates
4564 /* 1398 */ // MIs[1] c1
4565 /* 1398 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
4566 /* 1402 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
4567 /* 1406 */ // MIs[2] imm1
4568 /* 1406 */ // No operand predicates
4569 /* 1406 */ // MIs[0] c2
4570 /* 1406 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/0, /*OpIdx*/2, // MIs[3]
4571 /* 1410 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
4572 /* 1414 */ // MIs[3] imm2
4573 /* 1414 */ // No operand predicates
4574 /* 1414 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
4575 /* 1416 */ // Combiner Rule #18: AMinusC1PlusC2
4576 /* 1416 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner4),
4577 /* 1419 */ // Label 122: @1419
4578 /* 1419 */ GIM_Try, /*On fail goto*//*Label 123*/ GIMT_Encode4(1453), // Rule ID 5 //
4579 /* 1424 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule5Enabled),
4580 /* 1427 */ // MIs[0] root
4581 /* 1427 */ // No operand predicates
4582 /* 1427 */ // MIs[0] sub
4583 /* 1427 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4584 /* 1431 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
4585 /* 1435 */ // MIs[1] B
4586 /* 1435 */ // No operand predicates
4587 /* 1435 */ // MIs[1] A
4588 /* 1435 */ // No operand predicates
4589 /* 1435 */ // MIs[0] A
4590 /* 1435 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/2,
4591 /* 1440 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
4592 /* 1445 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4593 /* 1447 */ // Combiner Rule #5: BMinusAPlusA
4594 /* 1447 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
4595 /* 1452 */ GIR_EraseRootFromParent_Done,
4596 /* 1453 */ // Label 123: @1453
4597 /* 1453 */ GIM_Try, /*On fail goto*//*Label 124*/ GIMT_Encode4(1487), // Rule ID 148 //
4598 /* 1458 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule101Enabled),
4599 /* 1461 */ // MIs[0] dst
4600 /* 1461 */ // No operand predicates
4601 /* 1461 */ // MIs[0] __add_sub_reg_match_0.tmp
4602 /* 1461 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4603 /* 1465 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
4604 /* 1469 */ // MIs[1] src
4605 /* 1469 */ // No operand predicates
4606 /* 1469 */ // MIs[1] __add_sub_reg_match_0.x
4607 /* 1469 */ // No operand predicates
4608 /* 1469 */ // MIs[0] __add_sub_reg_match_0.x
4609 /* 1469 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/2,
4610 /* 1474 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
4611 /* 1479 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4612 /* 1481 */ // Combiner Rule #101: add_sub_reg @ [__add_sub_reg_match_0[1]]
4613 /* 1481 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
4614 /* 1486 */ GIR_EraseRootFromParent_Done,
4615 /* 1487 */ // Label 124: @1487
4616 /* 1487 */ GIM_Try, /*On fail goto*//*Label 125*/ GIMT_Encode4(1532), // Rule ID 7 //
4617 /* 1492 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule7Enabled),
4618 /* 1495 */ // MIs[0] root
4619 /* 1495 */ // No operand predicates
4620 /* 1495 */ // MIs[0] sub1
4621 /* 1495 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4622 /* 1499 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
4623 /* 1503 */ // MIs[1] A
4624 /* 1503 */ // No operand predicates
4625 /* 1503 */ // MIs[1] B
4626 /* 1503 */ // No operand predicates
4627 /* 1503 */ // MIs[0] sub2
4628 /* 1503 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
4629 /* 1507 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB),
4630 /* 1511 */ // MIs[2] B
4631 /* 1511 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/2,
4632 /* 1516 */ // MIs[2] C
4633 /* 1516 */ // No operand predicates
4634 /* 1516 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
4635 /* 1518 */ // Combiner Rule #7: AMinusBPlusBMinusC
4636 /* 1518 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
4637 /* 1521 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
4638 /* 1523 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // A
4639 /* 1527 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/2, // C
4640 /* 1531 */ GIR_EraseRootFromParent_Done,
4641 /* 1532 */ // Label 125: @1532
4642 /* 1532 */ GIM_Try, /*On fail goto*//*Label 126*/ GIMT_Encode4(1577), // Rule ID 6 //
4643 /* 1537 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule6Enabled),
4644 /* 1540 */ // MIs[0] root
4645 /* 1540 */ // No operand predicates
4646 /* 1540 */ // MIs[0] sub1
4647 /* 1540 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4648 /* 1544 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
4649 /* 1548 */ // MIs[1] A
4650 /* 1548 */ // No operand predicates
4651 /* 1548 */ // MIs[1] B
4652 /* 1548 */ // No operand predicates
4653 /* 1548 */ // MIs[0] sub2
4654 /* 1548 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
4655 /* 1552 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB),
4656 /* 1556 */ // MIs[2] C
4657 /* 1556 */ // No operand predicates
4658 /* 1556 */ // MIs[2] A
4659 /* 1556 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/1,
4660 /* 1561 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
4661 /* 1563 */ // Combiner Rule #6: AMinusBPlusCMinusA
4662 /* 1563 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
4663 /* 1566 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
4664 /* 1568 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // C
4665 /* 1572 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // B
4666 /* 1576 */ GIR_EraseRootFromParent_Done,
4667 /* 1577 */ // Label 126: @1577
4668 /* 1577 */ GIM_Try, /*On fail goto*//*Label 127*/ GIMT_Encode4(1632), // Rule ID 22 //
4669 /* 1582 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule22Enabled),
4670 /* 1585 */ // MIs[0] dst
4671 /* 1585 */ // No operand predicates
4672 /* 1585 */ // MIs[0] __add_p2i_to_ptradd_match_0.x
4673 /* 1585 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4674 /* 1589 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_PTRTOINT),
4675 /* 1593 */ // MIs[1] ptr
4676 /* 1593 */ GIM_RecordRegType, /*MI*/1, /*Op*/1, /*TempTypeIdx*/255,
4677 /* 1597 */ // MIs[0] other
4678 /* 1597 */ // No operand predicates
4679 /* 1597 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner2),
4680 /* 1601 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4681 /* 1603 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
4682 /* 1606 */ // Combiner Rule #22: add_p2i_to_ptradd @ [__add_p2i_to_ptradd_match_0[0]]
4683 /* 1606 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_PTR_ADD),
4684 /* 1609 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
4685 /* 1614 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // ptr
4686 /* 1618 */ GIR_RootToRootCopy, /*OpIdx*/2, // other
4687 /* 1620 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_PTRTOINT),
4688 /* 1624 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
4689 /* 1628 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
4690 /* 1631 */ GIR_EraseRootFromParent_Done,
4691 /* 1632 */ // Label 127: @1632
4692 /* 1632 */ GIM_Try, /*On fail goto*//*Label 128*/ GIMT_Encode4(1667), // Rule ID 46 //
4693 /* 1637 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule42Enabled),
4694 /* 1640 */ GIM_MIFlags, /*MI*/0, GIMT_Encode4(MachineInstr::NoSWrap),
4695 /* 1646 */ // MIs[0] root
4696 /* 1646 */ // No operand predicates
4697 /* 1646 */ // MIs[0] left
4698 /* 1646 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4699 /* 1650 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_VSCALE),
4700 /* 1654 */ // MIs[1] imm1
4701 /* 1654 */ // No operand predicates
4702 /* 1654 */ // MIs[0] right
4703 /* 1654 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
4704 /* 1658 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_VSCALE),
4705 /* 1662 */ // MIs[2] imm2
4706 /* 1662 */ // No operand predicates
4707 /* 1662 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
4708 /* 1664 */ // Combiner Rule #42: add_of_vscale
4709 /* 1664 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner14),
4710 /* 1667 */ // Label 128: @1667
4711 /* 1667 */ GIM_Try, /*On fail goto*//*Label 129*/ GIMT_Encode4(1688), // Rule ID 104 //
4712 /* 1672 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule83Enabled),
4713 /* 1675 */ // MIs[0] dst
4714 /* 1675 */ // No operand predicates
4715 /* 1675 */ // MIs[0] __propagate_undef_any_op_match_0.x
4716 /* 1675 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4717 /* 1679 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
4718 /* 1683 */ // MIs[0] __propagate_undef_any_op_match_0.y
4719 /* 1683 */ // No operand predicates
4720 /* 1683 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4721 /* 1685 */ // Combiner Rule #83: propagate_undef_any_op @ [__propagate_undef_any_op_match_0[0]]
4722 /* 1685 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner35),
4723 /* 1688 */ // Label 129: @1688
4724 /* 1688 */ GIM_Try, /*On fail goto*//*Label 130*/ GIMT_Encode4(1722), // Rule ID 3 //
4725 /* 1693 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule3Enabled),
4726 /* 1696 */ // MIs[0] root
4727 /* 1696 */ // No operand predicates
4728 /* 1696 */ // MIs[0] A
4729 /* 1696 */ // No operand predicates
4730 /* 1696 */ // MIs[0] sub
4731 /* 1696 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
4732 /* 1700 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
4733 /* 1704 */ // MIs[1] Operand 1
4734 /* 1704 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/1, 0,
4735 /* 1708 */ // MIs[1] B
4736 /* 1708 */ // No operand predicates
4737 /* 1708 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4738 /* 1710 */ // Combiner Rule #3: APlusZeroMinusB
4739 /* 1710 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
4740 /* 1713 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
4741 /* 1715 */ GIR_RootToRootCopy, /*OpIdx*/1, // A
4742 /* 1717 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // B
4743 /* 1721 */ GIR_EraseRootFromParent_Done,
4744 /* 1722 */ // Label 130: @1722
4745 /* 1722 */ GIM_Try, /*On fail goto*//*Label 131*/ GIMT_Encode4(1771), // Rule ID 161 //
4746 /* 1727 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule112Enabled),
4747 /* 1730 */ // MIs[0] dst
4748 /* 1730 */ // No operand predicates
4749 /* 1730 */ // MIs[0] newlhs
4750 /* 1730 */ // No operand predicates
4751 /* 1730 */ // MIs[0] __simplify_add_to_sub_match_0.neg
4752 /* 1730 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
4753 /* 1734 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
4754 /* 1738 */ // MIs[1] __simplify_add_to_sub_match_0.zero
4755 /* 1738 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
4756 /* 1742 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
4757 /* 1746 */ // MIs[2] Operand 1
4758 /* 1746 */ GIM_CheckLiteralInt, /*MI*/2, /*Op*/1, GIMT_Encode8(0),
4759 /* 1757 */ // MIs[1] newrhs
4760 /* 1757 */ // No operand predicates
4761 /* 1757 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
4762 /* 1759 */ // Combiner Rule #112: simplify_add_to_sub @ [__simplify_add_to_sub_match_0[1]]
4763 /* 1759 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
4764 /* 1762 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
4765 /* 1764 */ GIR_RootToRootCopy, /*OpIdx*/1, // newlhs
4766 /* 1766 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // newrhs
4767 /* 1770 */ GIR_EraseRootFromParent_Done,
4768 /* 1771 */ // Label 131: @1771
4769 /* 1771 */ GIM_Try, /*On fail goto*//*Label 132*/ GIMT_Encode4(1805), // Rule ID 4 //
4770 /* 1776 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule4Enabled),
4771 /* 1779 */ // MIs[0] root
4772 /* 1779 */ // No operand predicates
4773 /* 1779 */ // MIs[0] A
4774 /* 1779 */ // No operand predicates
4775 /* 1779 */ // MIs[0] sub
4776 /* 1779 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
4777 /* 1783 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
4778 /* 1787 */ // MIs[1] B
4779 /* 1787 */ // No operand predicates
4780 /* 1787 */ // MIs[1] A
4781 /* 1787 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/1, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
4782 /* 1792 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
4783 /* 1797 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4784 /* 1799 */ // Combiner Rule #4: APlusBMinusB
4785 /* 1799 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
4786 /* 1804 */ GIR_EraseRootFromParent_Done,
4787 /* 1805 */ // Label 132: @1805
4788 /* 1805 */ GIM_Try, /*On fail goto*//*Label 133*/ GIMT_Encode4(1839), // Rule ID 147 //
4789 /* 1810 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule101Enabled),
4790 /* 1813 */ // MIs[0] dst
4791 /* 1813 */ // No operand predicates
4792 /* 1813 */ // MIs[0] __add_sub_reg_match_0.x
4793 /* 1813 */ // No operand predicates
4794 /* 1813 */ // MIs[0] __add_sub_reg_match_0.tmp
4795 /* 1813 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
4796 /* 1817 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
4797 /* 1821 */ // MIs[1] src
4798 /* 1821 */ // No operand predicates
4799 /* 1821 */ // MIs[1] __add_sub_reg_match_0.x
4800 /* 1821 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/1, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
4801 /* 1826 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
4802 /* 1831 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4803 /* 1833 */ // Combiner Rule #101: add_sub_reg @ [__add_sub_reg_match_0[0]]
4804 /* 1833 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
4805 /* 1838 */ GIR_EraseRootFromParent_Done,
4806 /* 1839 */ // Label 133: @1839
4807 /* 1839 */ GIM_Try, /*On fail goto*//*Label 134*/ GIMT_Encode4(1884), // Rule ID 8 //
4808 /* 1844 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule8Enabled),
4809 /* 1847 */ // MIs[0] root
4810 /* 1847 */ // No operand predicates
4811 /* 1847 */ // MIs[0] A
4812 /* 1847 */ // No operand predicates
4813 /* 1847 */ // MIs[0] sub1
4814 /* 1847 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
4815 /* 1851 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
4816 /* 1855 */ // MIs[1] B
4817 /* 1855 */ // No operand predicates
4818 /* 1855 */ // MIs[1] add1
4819 /* 1855 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
4820 /* 1859 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ADD),
4821 /* 1863 */ // MIs[2] A
4822 /* 1863 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/0, /*OtherOpIdx*/1,
4823 /* 1868 */ // MIs[2] C
4824 /* 1868 */ // No operand predicates
4825 /* 1868 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
4826 /* 1870 */ // Combiner Rule #8: APlusBMinusAplusC
4827 /* 1870 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
4828 /* 1873 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
4829 /* 1875 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // B
4830 /* 1879 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/2, // C
4831 /* 1883 */ GIR_EraseRootFromParent_Done,
4832 /* 1884 */ // Label 134: @1884
4833 /* 1884 */ GIM_Try, /*On fail goto*//*Label 135*/ GIMT_Encode4(1929), // Rule ID 10 //
4834 /* 1889 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule10Enabled),
4835 /* 1892 */ // MIs[0] root
4836 /* 1892 */ // No operand predicates
4837 /* 1892 */ // MIs[0] A
4838 /* 1892 */ // No operand predicates
4839 /* 1892 */ // MIs[0] sub1
4840 /* 1892 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
4841 /* 1896 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
4842 /* 1900 */ // MIs[1] B
4843 /* 1900 */ // No operand predicates
4844 /* 1900 */ // MIs[1] add1
4845 /* 1900 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
4846 /* 1904 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ADD),
4847 /* 1908 */ // MIs[2] C
4848 /* 1908 */ // No operand predicates
4849 /* 1908 */ // MIs[2] A
4850 /* 1908 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
4851 /* 1913 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
4852 /* 1915 */ // Combiner Rule #10: APlusBMinusCPlusA
4853 /* 1915 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
4854 /* 1918 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
4855 /* 1920 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // B
4856 /* 1924 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // C
4857 /* 1928 */ GIR_EraseRootFromParent_Done,
4858 /* 1929 */ // Label 135: @1929
4859 /* 1929 */ GIM_Try, /*On fail goto*//*Label 136*/ GIMT_Encode4(1984), // Rule ID 23 //
4860 /* 1934 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule22Enabled),
4861 /* 1937 */ // MIs[0] dst
4862 /* 1937 */ // No operand predicates
4863 /* 1937 */ // MIs[0] other
4864 /* 1937 */ // No operand predicates
4865 /* 1937 */ // MIs[0] __add_p2i_to_ptradd_match_0.x
4866 /* 1937 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
4867 /* 1941 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_PTRTOINT),
4868 /* 1945 */ // MIs[1] ptr
4869 /* 1945 */ GIM_RecordRegType, /*MI*/1, /*Op*/1, /*TempTypeIdx*/255,
4870 /* 1949 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner2),
4871 /* 1953 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4872 /* 1955 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
4873 /* 1958 */ // Combiner Rule #22: add_p2i_to_ptradd @ [__add_p2i_to_ptradd_match_0[1]]
4874 /* 1958 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_PTR_ADD),
4875 /* 1961 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
4876 /* 1966 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // ptr
4877 /* 1970 */ GIR_RootToRootCopy, /*OpIdx*/1, // other
4878 /* 1972 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_PTRTOINT),
4879 /* 1976 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
4880 /* 1980 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
4881 /* 1983 */ GIR_EraseRootFromParent_Done,
4882 /* 1984 */ // Label 136: @1984
4883 /* 1984 */ GIM_Try, /*On fail goto*//*Label 137*/ GIMT_Encode4(2005), // Rule ID 107 //
4884 /* 1989 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule83Enabled),
4885 /* 1992 */ // MIs[0] dst
4886 /* 1992 */ // No operand predicates
4887 /* 1992 */ // MIs[0] __propagate_undef_any_op_match_0.x
4888 /* 1992 */ // No operand predicates
4889 /* 1992 */ // MIs[0] __propagate_undef_any_op_match_0.y
4890 /* 1992 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
4891 /* 1996 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
4892 /* 2000 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4893 /* 2002 */ // Combiner Rule #83: propagate_undef_any_op @ [__propagate_undef_any_op_match_0[3]]
4894 /* 2002 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner35),
4895 /* 2005 */ // Label 137: @2005
4896 /* 2005 */ GIM_Try, /*On fail goto*//*Label 138*/ GIMT_Encode4(2028), // Rule ID 119 //
4897 /* 2010 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled),
4898 /* 2013 */ // MIs[0] dst
4899 /* 2013 */ // No operand predicates
4900 /* 2013 */ // MIs[0] lhs
4901 /* 2013 */ // No operand predicates
4902 /* 2013 */ // MIs[0] Operand 2
4903 /* 2013 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
4904 /* 2017 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
4905 /* 2022 */ // Combiner Rule #90: right_identity_zero @ [__right_identity_zero_match_0[1]]
4906 /* 2022 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
4907 /* 2027 */ GIR_EraseRootFromParent_Done,
4908 /* 2028 */ // Label 138: @2028
4909 /* 2028 */ GIM_Try, /*On fail goto*//*Label 139*/ GIMT_Encode4(2039), // Rule ID 169 //
4910 /* 2033 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule116Enabled),
4911 /* 2036 */ // MIs[0] root
4912 /* 2036 */ // No operand predicates
4913 /* 2036 */ // MIs[0] src1
4914 /* 2036 */ // No operand predicates
4915 /* 2036 */ // MIs[0] src2
4916 /* 2036 */ // No operand predicates
4917 /* 2036 */ // Combiner Rule #116: reassoc_comm_binops
4918 /* 2036 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner49),
4919 /* 2039 */ // Label 139: @2039
4920 /* 2039 */ GIM_Reject,
4921 /* 2040 */ // Label 2: @2040
4922 /* 2040 */ GIM_Try, /*On fail goto*//*Label 140*/ GIMT_Encode4(2051), // Rule ID 280 //
4923 /* 2045 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
4924 /* 2048 */ // Combiner Rule #194: constant_fold_binop; wip_match_opcode 'G_SUB'
4925 /* 2048 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner92),
4926 /* 2051 */ // Label 140: @2051
4927 /* 2051 */ GIM_Try, /*On fail goto*//*Label 141*/ GIMT_Encode4(2062), // Rule ID 333 //
4928 /* 2056 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule215Enabled),
4929 /* 2059 */ // Combiner Rule #215: fold_binop_into_select; wip_match_opcode 'G_SUB'
4930 /* 2059 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner108),
4931 /* 2062 */ // Label 141: @2062
4932 /* 2062 */ GIM_Try, /*On fail goto*//*Label 142*/ GIMT_Encode4(2139), // Rule ID 440 //
4933 /* 2067 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule268Enabled),
4934 /* 2070 */ // MIs[0] dst
4935 /* 2070 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
4936 /* 2074 */ // MIs[0] sub1
4937 /* 2074 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4938 /* 2078 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
4939 /* 2082 */ // MIs[1] a
4940 /* 2082 */ // No operand predicates
4941 /* 2082 */ // MIs[1] b
4942 /* 2082 */ // No operand predicates
4943 /* 2082 */ // MIs[0] Operand 2
4944 /* 2082 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 1,
4945 /* 2086 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner1),
4946 /* 2090 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4947 /* 2092 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
4948 /* 2095 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(18446744073709551615u),
4949 /* 2105 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
4950 /* 2108 */ // Combiner Rule #268: sub_one_from_sub
4951 /* 2108 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_XOR),
4952 /* 2111 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
4953 /* 2116 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // b
4954 /* 2120 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/1,
4955 /* 2123 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ADD),
4956 /* 2127 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
4957 /* 2131 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
4958 /* 2134 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // a
4959 /* 2138 */ GIR_EraseRootFromParent_Done,
4960 /* 2139 */ // Label 142: @2139
4961 /* 2139 */ GIM_Try, /*On fail goto*//*Label 143*/ GIMT_Encode4(2233), // Rule ID 446 //
4962 /* 2144 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule272Enabled),
4963 /* 2147 */ // MIs[0] root
4964 /* 2147 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
4965 /* 2151 */ // MIs[0] Operand 1
4966 /* 2151 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/1, 0,
4967 /* 2155 */ // MIs[0] max
4968 /* 2155 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
4969 /* 2159 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SMAX),
4970 /* 2163 */ // MIs[1] A
4971 /* 2163 */ // No operand predicates
4972 /* 2163 */ // MIs[1] sub
4973 /* 2163 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
4974 /* 2167 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB),
4975 /* 2171 */ // MIs[2] Operand 1
4976 /* 2171 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/1, 0,
4977 /* 2175 */ // MIs[2] A
4978 /* 2175 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/1,
4979 /* 2180 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner27),
4980 /* 2184 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
4981 /* 2186 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
4982 /* 2189 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(0),
4983 /* 2199 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
4984 /* 2202 */ // Combiner Rule #272: SubSmaxSub
4985 /* 2202 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
4986 /* 2205 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
4987 /* 2210 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/1,
4988 /* 2213 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // A
4989 /* 2217 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SMIN),
4990 /* 2221 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // root
4991 /* 2225 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // A
4992 /* 2229 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
4993 /* 2232 */ GIR_EraseRootFromParent_Done,
4994 /* 2233 */ // Label 143: @2233
4995 /* 2233 */ GIM_Try, /*On fail goto*//*Label 144*/ GIMT_Encode4(2327), // Rule ID 447 //
4996 /* 2238 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule273Enabled),
4997 /* 2241 */ // MIs[0] root
4998 /* 2241 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
4999 /* 2245 */ // MIs[0] Operand 1
5000 /* 2245 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/1, 0,
5001 /* 2249 */ // MIs[0] max
5002 /* 2249 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5003 /* 2253 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_UMAX),
5004 /* 2257 */ // MIs[1] A
5005 /* 2257 */ // No operand predicates
5006 /* 2257 */ // MIs[1] sub
5007 /* 2257 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
5008 /* 2261 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB),
5009 /* 2265 */ // MIs[2] Operand 1
5010 /* 2265 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/1, 0,
5011 /* 2269 */ // MIs[2] A
5012 /* 2269 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/1,
5013 /* 2274 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner27),
5014 /* 2278 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5015 /* 2280 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
5016 /* 2283 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(0),
5017 /* 2293 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5018 /* 2296 */ // Combiner Rule #273: SubUmaxSub
5019 /* 2296 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5020 /* 2299 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5021 /* 2304 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/1,
5022 /* 2307 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // A
5023 /* 2311 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UMIN),
5024 /* 2315 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // root
5025 /* 2319 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // A
5026 /* 2323 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
5027 /* 2326 */ GIR_EraseRootFromParent_Done,
5028 /* 2327 */ // Label 144: @2327
5029 /* 2327 */ GIM_Try, /*On fail goto*//*Label 145*/ GIMT_Encode4(2467),
5030 /* 2332 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
5031 /* 2336 */ GIM_Try, /*On fail goto*//*Label 146*/ GIMT_Encode4(2372), // Rule ID 444 //
5032 /* 2341 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule270Enabled),
5033 /* 2344 */ // MIs[0] Operand 1
5034 /* 2344 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/1, 255,
5035 /* 2348 */ // MIs[0] op1
5036 /* 2348 */ // No operand predicates
5037 /* 2348 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5038 /* 2351 */ GIR_BuildConstant, /*TempRegID*/0, /*Val*/GIMT_Encode8(18446744073709551615u),
5039 /* 2361 */ // Combiner Rule #270: sub_minus_one
5040 /* 2361 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_XOR),
5041 /* 2364 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
5042 /* 2366 */ GIR_RootToRootCopy, /*OpIdx*/2, // op1
5043 /* 2368 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/0,
5044 /* 2371 */ GIR_EraseRootFromParent_Done,
5045 /* 2372 */ // Label 146: @2372
5046 /* 2372 */ GIM_Try, /*On fail goto*//*Label 147*/ GIMT_Encode4(2466), // Rule ID 445 //
5047 /* 2377 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule271Enabled),
5048 /* 2380 */ // MIs[0] a
5049 /* 2380 */ // No operand predicates
5050 /* 2380 */ // MIs[0] mul
5051 /* 2380 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5052 /* 2384 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_MUL),
5053 /* 2388 */ GIM_CheckHasOneUse, /*MI*/1,
5054 /* 2390 */ // MIs[1] x
5055 /* 2390 */ // No operand predicates
5056 /* 2390 */ // MIs[1] c
5057 /* 2390 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
5058 /* 2394 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5059 /* 2398 */ // MIs[2] imm
5060 /* 2398 */ // No operand predicates
5061 /* 2398 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5062 /* 2400 */ GIR_MakeTempReg, /*TempRegID*/2, /*TypeID*/255,
5063 /* 2403 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
5064 /* 2406 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(0),
5065 /* 2416 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5066 /* 2419 */ // Combiner Rule #271: sub_of_mul_const
5067 /* 2419 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5068 /* 2422 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5069 /* 2427 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/1,
5070 /* 2430 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // c
5071 /* 2434 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_MUL),
5072 /* 2438 */ GIR_AddTempRegister, /*InsnID*/1, /*TempRegID*/2, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5073 /* 2443 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // x
5074 /* 2447 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
5075 /* 2450 */ GIR_BuildMI, /*InsnID*/2, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ADD),
5076 /* 2454 */ GIR_Copy, /*NewInsnID*/2, /*OldInsnID*/0, /*OpIdx*/0, // d
5077 /* 2458 */ GIR_Copy, /*NewInsnID*/2, /*OldInsnID*/0, /*OpIdx*/1, // a
5078 /* 2462 */ GIR_AddSimpleTempRegister, /*InsnID*/2, /*TempRegID*/2,
5079 /* 2465 */ GIR_EraseRootFromParent_Done,
5080 /* 2466 */ // Label 147: @2466
5081 /* 2466 */ GIM_Reject,
5082 /* 2467 */ // Label 145: @2467
5083 /* 2467 */ GIM_Try, /*On fail goto*//*Label 148*/ GIMT_Encode4(2528), // Rule ID 9 //
5084 /* 2472 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule9Enabled),
5085 /* 2475 */ // MIs[0] root
5086 /* 2475 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
5087 /* 2479 */ // MIs[0] A
5088 /* 2479 */ // No operand predicates
5089 /* 2479 */ // MIs[0] sub1
5090 /* 2479 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5091 /* 2483 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5092 /* 2487 */ // MIs[1] B
5093 /* 2487 */ // No operand predicates
5094 /* 2487 */ // MIs[1] C
5095 /* 2487 */ // No operand predicates
5096 /* 2487 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner0),
5097 /* 2491 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5098 /* 2493 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5099 /* 2496 */ // Combiner Rule #9: AMinusBMinusC
5100 /* 2496 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5101 /* 2499 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5102 /* 2504 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // C
5103 /* 2508 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // B
5104 /* 2512 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ADD),
5105 /* 2516 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // root
5106 /* 2520 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/1, // A
5107 /* 2524 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
5108 /* 2527 */ GIR_EraseRootFromParent_Done,
5109 /* 2528 */ // Label 148: @2528
5110 /* 2528 */ GIM_Try, /*On fail goto*//*Label 149*/ GIMT_Encode4(2573), // Rule ID 0 //
5111 /* 2533 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule0Enabled),
5112 /* 2536 */ // MIs[0] root
5113 /* 2536 */ // No operand predicates
5114 /* 2536 */ // MIs[0] add1
5115 /* 2536 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5116 /* 2540 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
5117 /* 2544 */ // MIs[1] A
5118 /* 2544 */ // No operand predicates
5119 /* 2544 */ // MIs[1] sub1
5120 /* 2544 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
5121 /* 2548 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB),
5122 /* 2552 */ // MIs[2] B
5123 /* 2552 */ // No operand predicates
5124 /* 2552 */ // MIs[2] C
5125 /* 2552 */ // No operand predicates
5126 /* 2552 */ // MIs[0] B
5127 /* 2552 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/2, /*OtherOpIdx*/1,
5128 /* 2557 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5129 /* 2559 */ // Combiner Rule #0: APlusBMinusCMinusB
5130 /* 2559 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5131 /* 2562 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
5132 /* 2564 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // A
5133 /* 2568 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/2, // C
5134 /* 2572 */ GIR_EraseRootFromParent_Done,
5135 /* 2573 */ // Label 149: @2573
5136 /* 2573 */ GIM_Try, /*On fail goto*//*Label 150*/ GIMT_Encode4(2610), // Rule ID 14 //
5137 /* 2578 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule14Enabled),
5138 /* 2581 */ // MIs[0] root
5139 /* 2581 */ // No operand predicates
5140 /* 2581 */ // MIs[0] add
5141 /* 2581 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5142 /* 2585 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
5143 /* 2589 */ // MIs[1] A
5144 /* 2589 */ // No operand predicates
5145 /* 2589 */ // MIs[1] c1
5146 /* 2589 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
5147 /* 2593 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5148 /* 2597 */ // MIs[2] imm1
5149 /* 2597 */ // No operand predicates
5150 /* 2597 */ // MIs[0] c2
5151 /* 2597 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/0, /*OpIdx*/2, // MIs[3]
5152 /* 2601 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5153 /* 2605 */ // MIs[3] imm2
5154 /* 2605 */ // No operand predicates
5155 /* 2605 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
5156 /* 2607 */ // Combiner Rule #14: APlusC1MinusC2
5157 /* 2607 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner0),
5158 /* 2610 */ // Label 150: @2610
5159 /* 2610 */ GIM_Try, /*On fail goto*//*Label 151*/ GIMT_Encode4(2647), // Rule ID 17 //
5160 /* 2615 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule17Enabled),
5161 /* 2618 */ // MIs[0] root
5162 /* 2618 */ // No operand predicates
5163 /* 2618 */ // MIs[0] sub1
5164 /* 2618 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5165 /* 2622 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5166 /* 2626 */ // MIs[1] c1
5167 /* 2626 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
5168 /* 2630 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5169 /* 2634 */ // MIs[2] imm1
5170 /* 2634 */ // No operand predicates
5171 /* 2634 */ // MIs[1] A
5172 /* 2634 */ // No operand predicates
5173 /* 2634 */ // MIs[0] c2
5174 /* 2634 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/0, /*OpIdx*/2, // MIs[3]
5175 /* 2638 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5176 /* 2642 */ // MIs[3] imm2
5177 /* 2642 */ // No operand predicates
5178 /* 2642 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
5179 /* 2644 */ // Combiner Rule #17: C1Minus2MinusC2
5180 /* 2644 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner3),
5181 /* 2647 */ // Label 151: @2647
5182 /* 2647 */ GIM_Try, /*On fail goto*//*Label 152*/ GIMT_Encode4(2692), // Rule ID 1 //
5183 /* 2652 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule1Enabled),
5184 /* 2655 */ // MIs[0] root
5185 /* 2655 */ // No operand predicates
5186 /* 2655 */ // MIs[0] sub2
5187 /* 2655 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5188 /* 2659 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5189 /* 2663 */ // MIs[1] A
5190 /* 2663 */ // No operand predicates
5191 /* 2663 */ // MIs[1] sub1
5192 /* 2663 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
5193 /* 2667 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB),
5194 /* 2671 */ // MIs[2] B
5195 /* 2671 */ // No operand predicates
5196 /* 2671 */ // MIs[2] C
5197 /* 2671 */ // No operand predicates
5198 /* 2671 */ // MIs[0] C
5199 /* 2671 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/2, /*OtherOpIdx*/2,
5200 /* 2676 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5201 /* 2678 */ // Combiner Rule #1: AMinusBMinusCMinusC
5202 /* 2678 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5203 /* 2681 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
5204 /* 2683 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // A
5205 /* 2687 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // B
5206 /* 2691 */ GIR_EraseRootFromParent_Done,
5207 /* 2692 */ // Label 152: @2692
5208 /* 2692 */ GIM_Try, /*On fail goto*//*Label 153*/ GIMT_Encode4(2729), // Rule ID 16 //
5209 /* 2697 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule16Enabled),
5210 /* 2700 */ // MIs[0] root
5211 /* 2700 */ // No operand predicates
5212 /* 2700 */ // MIs[0] sub1
5213 /* 2700 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5214 /* 2704 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5215 /* 2708 */ // MIs[1] A
5216 /* 2708 */ // No operand predicates
5217 /* 2708 */ // MIs[1] c1
5218 /* 2708 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
5219 /* 2712 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5220 /* 2716 */ // MIs[2] imm1
5221 /* 2716 */ // No operand predicates
5222 /* 2716 */ // MIs[0] c2
5223 /* 2716 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/0, /*OpIdx*/2, // MIs[3]
5224 /* 2720 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5225 /* 2724 */ // MIs[3] imm2
5226 /* 2724 */ // No operand predicates
5227 /* 2724 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
5228 /* 2726 */ // Combiner Rule #16: AMinusC1MinusC2
5229 /* 2726 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner2),
5230 /* 2729 */ // Label 153: @2729
5231 /* 2729 */ GIM_Try, /*On fail goto*//*Label 154*/ GIMT_Encode4(2750), // Rule ID 105 //
5232 /* 2734 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule83Enabled),
5233 /* 2737 */ // MIs[0] dst
5234 /* 2737 */ // No operand predicates
5235 /* 2737 */ // MIs[0] __propagate_undef_any_op_match_0.x
5236 /* 2737 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5237 /* 2741 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
5238 /* 2745 */ // MIs[0] __propagate_undef_any_op_match_0.y
5239 /* 2745 */ // No operand predicates
5240 /* 2745 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5241 /* 2747 */ // Combiner Rule #83: propagate_undef_any_op @ [__propagate_undef_any_op_match_0[1]]
5242 /* 2747 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner35),
5243 /* 2750 */ // Label 154: @2750
5244 /* 2750 */ GIM_Try, /*On fail goto*//*Label 155*/ GIMT_Encode4(2793), // Rule ID 179 //
5245 /* 2755 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule126Enabled),
5246 /* 2758 */ // MIs[0] dst
5247 /* 2758 */ // No operand predicates
5248 /* 2758 */ // MIs[0] Operand 1
5249 /* 2758 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/1, 0,
5250 /* 2762 */ // MIs[0] and
5251 /* 2762 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5252 /* 2766 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_AND),
5253 /* 2770 */ // MIs[1] x
5254 /* 2770 */ // No operand predicates
5255 /* 2770 */ // MIs[1] Operand 2
5256 /* 2770 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/2, 1,
5257 /* 2774 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner15),
5258 /* 2778 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5259 /* 2780 */ // Combiner Rule #126: neg_and_one_to_sext_inreg
5260 /* 2780 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SEXT_INREG),
5261 /* 2783 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
5262 /* 2785 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
5263 /* 2789 */ GIR_AddImm8, /*InsnID*/0, /*Imm*/1,
5264 /* 2792 */ GIR_EraseRootFromParent_Done,
5265 /* 2793 */ // Label 155: @2793
5266 /* 2793 */ GIM_Try, /*On fail goto*//*Label 156*/ GIMT_Encode4(2830), // Rule ID 15 //
5267 /* 2798 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule15Enabled),
5268 /* 2801 */ // MIs[0] root
5269 /* 2801 */ // No operand predicates
5270 /* 2801 */ // MIs[0] c2
5271 /* 2801 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5272 /* 2805 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5273 /* 2809 */ // MIs[1] imm2
5274 /* 2809 */ // No operand predicates
5275 /* 2809 */ // MIs[0] add
5276 /* 2809 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
5277 /* 2813 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ADD),
5278 /* 2817 */ // MIs[2] A
5279 /* 2817 */ // No operand predicates
5280 /* 2817 */ // MIs[2] c1
5281 /* 2817 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/2, /*OpIdx*/2, // MIs[3]
5282 /* 2821 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5283 /* 2825 */ // MIs[3] imm1
5284 /* 2825 */ // No operand predicates
5285 /* 2825 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
5286 /* 2827 */ // Combiner Rule #15: C2MinusAPlusC1
5287 /* 2827 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner1),
5288 /* 2830 */ // Label 156: @2830
5289 /* 2830 */ GIM_Try, /*On fail goto*//*Label 157*/ GIMT_Encode4(2869), // Rule ID 130 //
5290 /* 2835 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule92Enabled),
5291 /* 2838 */ // MIs[0] dst
5292 /* 2838 */ // No operand predicates
5293 /* 2838 */ // MIs[0] x
5294 /* 2838 */ GIM_RecordRegType, /*MI*/0, /*Op*/1, /*TempTypeIdx*/255,
5295 /* 2842 */ // MIs[0] x
5296 /* 2842 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
5297 /* 2847 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5298 /* 2850 */ GIR_BuildConstant, /*TempRegID*/0, /*Val*/GIMT_Encode8(0),
5299 /* 2860 */ // Combiner Rule #92: same_val_zero @ [__same_val_zero_match_0[0]]
5300 /* 2860 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::COPY),
5301 /* 2863 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
5302 /* 2865 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/0,
5303 /* 2868 */ GIR_EraseRootFromParent_Done,
5304 /* 2869 */ // Label 157: @2869
5305 /* 2869 */ GIM_Try, /*On fail goto*//*Label 158*/ GIMT_Encode4(2903), // Rule ID 12 //
5306 /* 2874 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule12Enabled),
5307 /* 2877 */ // MIs[0] root
5308 /* 2877 */ // No operand predicates
5309 /* 2877 */ // MIs[0] A
5310 /* 2877 */ // No operand predicates
5311 /* 2877 */ // MIs[0] add
5312 /* 2877 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5313 /* 2881 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5314 /* 2885 */ // MIs[1] A
5315 /* 2885 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/1, /*OpIdx*/1, /*OtherMI*/0, /*OtherOpIdx*/1,
5316 /* 2890 */ // MIs[1] B
5317 /* 2890 */ // No operand predicates
5318 /* 2890 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/2,
5319 /* 2895 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5320 /* 2897 */ // Combiner Rule #12: AMinusBMinusA
5321 /* 2897 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/2,
5322 /* 2902 */ GIR_EraseRootFromParent_Done,
5323 /* 2903 */ // Label 158: @2903
5324 /* 2903 */ GIM_Try, /*On fail goto*//*Label 159*/ GIMT_Encode4(2937), // Rule ID 11 //
5325 /* 2908 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule11Enabled),
5326 /* 2911 */ // MIs[0] root
5327 /* 2911 */ // No operand predicates
5328 /* 2911 */ // MIs[0] A
5329 /* 2911 */ // No operand predicates
5330 /* 2911 */ // MIs[0] sub1
5331 /* 2911 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5332 /* 2915 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5333 /* 2919 */ // MIs[1] Operand 1
5334 /* 2919 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/1, 0,
5335 /* 2923 */ // MIs[1] B
5336 /* 2923 */ // No operand predicates
5337 /* 2923 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5338 /* 2925 */ // Combiner Rule #11: AMinusZeroMinusB
5339 /* 2925 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ADD),
5340 /* 2928 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
5341 /* 2930 */ GIR_RootToRootCopy, /*OpIdx*/1, // A
5342 /* 2932 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // B
5343 /* 2936 */ GIR_EraseRootFromParent_Done,
5344 /* 2937 */ // Label 159: @2937
5345 /* 2937 */ GIM_Try, /*On fail goto*//*Label 160*/ GIMT_Encode4(2964), // Rule ID 49 //
5346 /* 2942 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule45Enabled),
5347 /* 2945 */ GIM_MIFlags, /*MI*/0, GIMT_Encode4(MachineInstr::NoSWrap),
5348 /* 2951 */ // MIs[0] root
5349 /* 2951 */ // No operand predicates
5350 /* 2951 */ // MIs[0] x
5351 /* 2951 */ // No operand predicates
5352 /* 2951 */ // MIs[0] right
5353 /* 2951 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5354 /* 2955 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_VSCALE),
5355 /* 2959 */ // MIs[1] imm
5356 /* 2959 */ // No operand predicates
5357 /* 2959 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5358 /* 2961 */ // Combiner Rule #45: sub_of_vscale
5359 /* 2961 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner17),
5360 /* 2964 */ // Label 160: @2964
5361 /* 2964 */ GIM_Try, /*On fail goto*//*Label 161*/ GIMT_Encode4(2985), // Rule ID 108 //
5362 /* 2969 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule83Enabled),
5363 /* 2972 */ // MIs[0] dst
5364 /* 2972 */ // No operand predicates
5365 /* 2972 */ // MIs[0] __propagate_undef_any_op_match_0.x
5366 /* 2972 */ // No operand predicates
5367 /* 2972 */ // MIs[0] __propagate_undef_any_op_match_0.y
5368 /* 2972 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5369 /* 2976 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
5370 /* 2980 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5371 /* 2982 */ // Combiner Rule #83: propagate_undef_any_op @ [__propagate_undef_any_op_match_0[4]]
5372 /* 2982 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner35),
5373 /* 2985 */ // Label 161: @2985
5374 /* 2985 */ GIM_Try, /*On fail goto*//*Label 162*/ GIMT_Encode4(3008), // Rule ID 118 //
5375 /* 2990 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled),
5376 /* 2993 */ // MIs[0] dst
5377 /* 2993 */ // No operand predicates
5378 /* 2993 */ // MIs[0] lhs
5379 /* 2993 */ // No operand predicates
5380 /* 2993 */ // MIs[0] Operand 2
5381 /* 2993 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
5382 /* 2997 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5383 /* 3002 */ // Combiner Rule #90: right_identity_zero @ [__right_identity_zero_match_0[0]]
5384 /* 3002 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5385 /* 3007 */ GIR_EraseRootFromParent_Done,
5386 /* 3008 */ // Label 162: @3008
5387 /* 3008 */ GIM_Try, /*On fail goto*//*Label 163*/ GIMT_Encode4(3029), // Rule ID 21 //
5388 /* 3013 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule21Enabled),
5389 /* 3016 */ // MIs[0] d
5390 /* 3016 */ // No operand predicates
5391 /* 3016 */ // MIs[0] op1
5392 /* 3016 */ // No operand predicates
5393 /* 3016 */ // MIs[0] c
5394 /* 3016 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5395 /* 3020 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5396 /* 3024 */ // MIs[1] imm
5397 /* 3024 */ // No operand predicates
5398 /* 3024 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5399 /* 3026 */ // Combiner Rule #21: sub_to_add
5400 /* 3026 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner7),
5401 /* 3029 */ // Label 163: @3029
5402 /* 3029 */ GIM_Try, /*On fail goto*//*Label 164*/ GIMT_Encode4(3040), // Rule ID 366 //
5403 /* 3034 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule224Enabled),
5404 /* 3037 */ // MIs[0] dst
5405 /* 3037 */ // No operand predicates
5406 /* 3037 */ // MIs[0] src1
5407 /* 3037 */ // No operand predicates
5408 /* 3037 */ // MIs[0] src2
5409 /* 3037 */ // No operand predicates
5410 /* 3037 */ // Combiner Rule #224: sub_add_reg
5411 /* 3037 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner115),
5412 /* 3040 */ // Label 164: @3040
5413 /* 3040 */ GIM_Try, /*On fail goto*//*Label 165*/ GIMT_Encode4(3051), // Rule ID 406 //
5414 /* 3045 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule237Enabled),
5415 /* 3048 */ // MIs[0] dst
5416 /* 3048 */ // No operand predicates
5417 /* 3048 */ // MIs[0] src1
5418 /* 3048 */ // No operand predicates
5419 /* 3048 */ // MIs[0] src2
5420 /* 3048 */ // No operand predicates
5421 /* 3048 */ // Combiner Rule #237: simplify_neg_minmax
5422 /* 3048 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner122),
5423 /* 3051 */ // Label 165: @3051
5424 /* 3051 */ GIM_Reject,
5425 /* 3052 */ // Label 3: @3052
5426 /* 3052 */ GIM_Try, /*On fail goto*//*Label 166*/ GIMT_Encode4(3063), // Rule ID 277 //
5427 /* 3057 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
5428 /* 3060 */ // Combiner Rule #194: constant_fold_binop; wip_match_opcode 'G_MUL'
5429 /* 3060 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner92),
5430 /* 3063 */ // Label 166: @3063
5431 /* 3063 */ GIM_Try, /*On fail goto*//*Label 167*/ GIMT_Encode4(3074), // Rule ID 370 //
5432 /* 3068 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule227Enabled),
5433 /* 3071 */ // Combiner Rule #227: commute_int_constant_to_rhs; wip_match_opcode 'G_MUL'
5434 /* 3071 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner118),
5435 /* 3074 */ // Label 167: @3074
5436 /* 3074 */ GIM_Try, /*On fail goto*//*Label 168*/ GIMT_Encode4(3114), // Rule ID 24 //
5437 /* 3079 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule23Enabled),
5438 /* 3082 */ // MIs[0] dst
5439 /* 3082 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
5440 /* 3086 */ // MIs[0] x
5441 /* 3086 */ // No operand predicates
5442 /* 3086 */ // MIs[0] Operand 2
5443 /* 3086 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 255,
5444 /* 3090 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5445 /* 3093 */ GIR_BuildConstant, /*TempRegID*/0, /*Val*/GIMT_Encode8(0),
5446 /* 3103 */ // Combiner Rule #23: mul_by_neg_one
5447 /* 3103 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5448 /* 3106 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
5449 /* 3108 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/0,
5450 /* 3111 */ GIR_RootToRootCopy, /*OpIdx*/1, // x
5451 /* 3113 */ GIR_EraseRootFromParent_Done,
5452 /* 3114 */ // Label 168: @3114
5453 /* 3114 */ GIM_Try, /*On fail goto*//*Label 169*/ GIMT_Encode4(3149), // Rule ID 47 //
5454 /* 3119 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule43Enabled),
5455 /* 3122 */ GIM_MIFlags, /*MI*/0, GIMT_Encode4(MachineInstr::NoSWrap),
5456 /* 3128 */ // MIs[0] root
5457 /* 3128 */ // No operand predicates
5458 /* 3128 */ // MIs[0] left
5459 /* 3128 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5460 /* 3132 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_VSCALE),
5461 /* 3136 */ // MIs[1] scale
5462 /* 3136 */ // No operand predicates
5463 /* 3136 */ // MIs[0] x
5464 /* 3136 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
5465 /* 3140 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5466 /* 3144 */ // MIs[2] imm1
5467 /* 3144 */ // No operand predicates
5468 /* 3144 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5469 /* 3146 */ // Combiner Rule #43: mul_of_vscale
5470 /* 3146 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner15),
5471 /* 3149 */ // Label 169: @3149
5472 /* 3149 */ GIM_Try, /*On fail goto*//*Label 170*/ GIMT_Encode4(3170), // Rule ID 85 //
5473 /* 3154 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule77Enabled),
5474 /* 3157 */ // MIs[0] dst
5475 /* 3157 */ // No operand predicates
5476 /* 3157 */ // MIs[0] __undef_to_int_zero_match_0.x
5477 /* 3157 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5478 /* 3161 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
5479 /* 3165 */ // MIs[0] __undef_to_int_zero_match_0.y
5480 /* 3165 */ // No operand predicates
5481 /* 3165 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5482 /* 3167 */ // Combiner Rule #77: undef_to_int_zero @ [__undef_to_int_zero_match_0[1]]
5483 /* 3167 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner33),
5484 /* 3170 */ // Label 170: @3170
5485 /* 3170 */ GIM_Try, /*On fail goto*//*Label 171*/ GIMT_Encode4(3210), // Rule ID 139 //
5486 /* 3175 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
5487 /* 3178 */ // MIs[0] dst
5488 /* 3178 */ // No operand predicates
5489 /* 3178 */ // MIs[0] zero
5490 /* 3178 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5491 /* 3182 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5492 /* 3186 */ // MIs[1] Operand 1
5493 /* 3186 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0),
5494 /* 3197 */ // MIs[0] rhs
5495 /* 3197 */ // No operand predicates
5496 /* 3197 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5497 /* 3202 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5498 /* 3204 */ // Combiner Rule #93: binop_left_to_zero @ [__binop_left_to_zero_match_0[7]]
5499 /* 3204 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5500 /* 3209 */ GIR_EraseRootFromParent_Done,
5501 /* 3210 */ // Label 171: @3210
5502 /* 3210 */ GIM_Try, /*On fail goto*//*Label 172*/ GIMT_Encode4(3231), // Rule ID 87 //
5503 /* 3215 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule77Enabled),
5504 /* 3218 */ // MIs[0] dst
5505 /* 3218 */ // No operand predicates
5506 /* 3218 */ // MIs[0] __undef_to_int_zero_match_0.x
5507 /* 3218 */ // No operand predicates
5508 /* 3218 */ // MIs[0] __undef_to_int_zero_match_0.y
5509 /* 3218 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5510 /* 3222 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
5511 /* 3226 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5512 /* 3228 */ // Combiner Rule #77: undef_to_int_zero @ [__undef_to_int_zero_match_0[3]]
5513 /* 3228 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner33),
5514 /* 3231 */ // Label 172: @3231
5515 /* 3231 */ GIM_Try, /*On fail goto*//*Label 173*/ GIMT_Encode4(3254), // Rule ID 140 //
5516 /* 3236 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule94Enabled),
5517 /* 3239 */ // MIs[0] dst
5518 /* 3239 */ // No operand predicates
5519 /* 3239 */ // MIs[0] lhs
5520 /* 3239 */ // No operand predicates
5521 /* 3239 */ // MIs[0] zero
5522 /* 3239 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
5523 /* 3243 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
5524 /* 3248 */ // Combiner Rule #94: binop_right_to_zero
5525 /* 3248 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
5526 /* 3253 */ GIR_EraseRootFromParent_Done,
5527 /* 3254 */ // Label 173: @3254
5528 /* 3254 */ GIM_Try, /*On fail goto*//*Label 174*/ GIMT_Encode4(3277), // Rule ID 145 //
5529 /* 3259 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule99Enabled),
5530 /* 3262 */ // MIs[0] dst
5531 /* 3262 */ // No operand predicates
5532 /* 3262 */ // MIs[0] x
5533 /* 3262 */ // No operand predicates
5534 /* 3262 */ // MIs[0] Operand 2
5535 /* 3262 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 1,
5536 /* 3266 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5537 /* 3271 */ // Combiner Rule #99: right_identity_one_int
5538 /* 3271 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5539 /* 3276 */ GIR_EraseRootFromParent_Done,
5540 /* 3277 */ // Label 174: @3277
5541 /* 3277 */ GIM_Try, /*On fail goto*//*Label 175*/ GIMT_Encode4(3288), // Rule ID 20 //
5542 /* 3282 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule20Enabled),
5543 /* 3285 */ // MIs[0] d
5544 /* 3285 */ // No operand predicates
5545 /* 3285 */ // MIs[0] op1
5546 /* 3285 */ // No operand predicates
5547 /* 3285 */ // MIs[0] op2
5548 /* 3285 */ // No operand predicates
5549 /* 3285 */ // Combiner Rule #20: mul_to_shl
5550 /* 3285 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner6),
5551 /* 3288 */ // Label 175: @3288
5552 /* 3288 */ GIM_Reject,
5553 /* 3289 */ // Label 4: @3289
5554 /* 3289 */ GIM_Try, /*On fail goto*//*Label 176*/ GIMT_Encode4(3300), // Rule ID 247 //
5555 /* 3294 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule178Enabled),
5556 /* 3297 */ // Combiner Rule #178: div_rem_to_divrem; wip_match_opcode 'G_SDIV'
5557 /* 3297 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner84),
5558 /* 3300 */ // Label 176: @3300
5559 /* 3300 */ GIM_Try, /*On fail goto*//*Label 177*/ GIMT_Encode4(3311), // Rule ID 283 //
5560 /* 3305 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
5561 /* 3308 */ // Combiner Rule #194: constant_fold_binop; wip_match_opcode 'G_SDIV'
5562 /* 3308 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner92),
5563 /* 3311 */ // Label 177: @3311
5564 /* 3311 */ GIM_Try, /*On fail goto*//*Label 178*/ GIMT_Encode4(3322), // Rule ID 338 //
5565 /* 3316 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule215Enabled),
5566 /* 3319 */ // Combiner Rule #215: fold_binop_into_select; wip_match_opcode 'G_SDIV'
5567 /* 3319 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner108),
5568 /* 3322 */ // Label 178: @3322
5569 /* 3322 */ GIM_Try, /*On fail goto*//*Label 179*/ GIMT_Encode4(3362), // Rule ID 135 //
5570 /* 3327 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
5571 /* 3330 */ // MIs[0] dst
5572 /* 3330 */ // No operand predicates
5573 /* 3330 */ // MIs[0] zero
5574 /* 3330 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5575 /* 3334 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5576 /* 3338 */ // MIs[1] Operand 1
5577 /* 3338 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0),
5578 /* 3349 */ // MIs[0] rhs
5579 /* 3349 */ // No operand predicates
5580 /* 3349 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5581 /* 3354 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5582 /* 3356 */ // Combiner Rule #93: binop_left_to_zero @ [__binop_left_to_zero_match_0[3]]
5583 /* 3356 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5584 /* 3361 */ GIR_EraseRootFromParent_Done,
5585 /* 3362 */ // Label 179: @3362
5586 /* 3362 */ GIM_Try, /*On fail goto*//*Label 180*/ GIMT_Encode4(3379), // Rule ID 362 //
5587 /* 3367 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule220Enabled),
5588 /* 3370 */ GIM_MIFlagsNot, /*MI*/0, GIMT_Encode4(MachineInstr::IsExact),
5589 /* 3376 */ // MIs[0] dst
5590 /* 3376 */ // No operand predicates
5591 /* 3376 */ // MIs[0] x
5592 /* 3376 */ // No operand predicates
5593 /* 3376 */ // MIs[0] y
5594 /* 3376 */ // No operand predicates
5595 /* 3376 */ // Combiner Rule #220: sdiv_by_pow2
5596 /* 3376 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner113),
5597 /* 3379 */ // Label 180: @3379
5598 /* 3379 */ GIM_Try, /*On fail goto*//*Label 181*/ GIMT_Encode4(3390), // Rule ID 364 //
5599 /* 3384 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule222Enabled),
5600 /* 3387 */ // MIs[0] dst
5601 /* 3387 */ // No operand predicates
5602 /* 3387 */ // MIs[0] x
5603 /* 3387 */ // No operand predicates
5604 /* 3387 */ // MIs[0] y
5605 /* 3387 */ // No operand predicates
5606 /* 3387 */ // Combiner Rule #222: sdiv_by_const
5607 /* 3387 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner111),
5608 /* 3390 */ // Label 181: @3390
5609 /* 3390 */ GIM_Reject,
5610 /* 3391 */ // Label 5: @3391
5611 /* 3391 */ GIM_Try, /*On fail goto*//*Label 182*/ GIMT_Encode4(3402), // Rule ID 248 //
5612 /* 3396 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule178Enabled),
5613 /* 3399 */ // Combiner Rule #178: div_rem_to_divrem; wip_match_opcode 'G_UDIV'
5614 /* 3399 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner84),
5615 /* 3402 */ // Label 182: @3402
5616 /* 3402 */ GIM_Try, /*On fail goto*//*Label 183*/ GIMT_Encode4(3413), // Rule ID 282 //
5617 /* 3407 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
5618 /* 3410 */ // Combiner Rule #194: constant_fold_binop; wip_match_opcode 'G_UDIV'
5619 /* 3410 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner92),
5620 /* 3413 */ // Label 183: @3413
5621 /* 3413 */ GIM_Try, /*On fail goto*//*Label 184*/ GIMT_Encode4(3424), // Rule ID 340 //
5622 /* 3418 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule215Enabled),
5623 /* 3421 */ // Combiner Rule #215: fold_binop_into_select; wip_match_opcode 'G_UDIV'
5624 /* 3421 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner108),
5625 /* 3424 */ // Label 184: @3424
5626 /* 3424 */ GIM_Try, /*On fail goto*//*Label 185*/ GIMT_Encode4(3445), // Rule ID 91 //
5627 /* 3429 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule79Enabled),
5628 /* 3432 */ // MIs[0] dst
5629 /* 3432 */ // No operand predicates
5630 /* 3432 */ // MIs[0] __binop_left_undef_to_zero_match_0.x
5631 /* 3432 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5632 /* 3436 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
5633 /* 3440 */ // MIs[0] __binop_left_undef_to_zero_match_0.y
5634 /* 3440 */ // No operand predicates
5635 /* 3440 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5636 /* 3442 */ // Combiner Rule #79: binop_left_undef_to_zero @ [__binop_left_undef_to_zero_match_0[1]]
5637 /* 3442 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner33),
5638 /* 3445 */ // Label 185: @3445
5639 /* 3445 */ GIM_Try, /*On fail goto*//*Label 186*/ GIMT_Encode4(3485), // Rule ID 136 //
5640 /* 3450 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
5641 /* 3453 */ // MIs[0] dst
5642 /* 3453 */ // No operand predicates
5643 /* 3453 */ // MIs[0] zero
5644 /* 3453 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5645 /* 3457 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5646 /* 3461 */ // MIs[1] Operand 1
5647 /* 3461 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0),
5648 /* 3472 */ // MIs[0] rhs
5649 /* 3472 */ // No operand predicates
5650 /* 3472 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5651 /* 3477 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5652 /* 3479 */ // Combiner Rule #93: binop_left_to_zero @ [__binop_left_to_zero_match_0[4]]
5653 /* 3479 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5654 /* 3484 */ GIR_EraseRootFromParent_Done,
5655 /* 3485 */ // Label 186: @3485
5656 /* 3485 */ GIM_Try, /*On fail goto*//*Label 187*/ GIMT_Encode4(3502), // Rule ID 361 //
5657 /* 3490 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule219Enabled),
5658 /* 3493 */ GIM_MIFlagsNot, /*MI*/0, GIMT_Encode4(MachineInstr::IsExact),
5659 /* 3499 */ // MIs[0] dst
5660 /* 3499 */ // No operand predicates
5661 /* 3499 */ // MIs[0] x
5662 /* 3499 */ // No operand predicates
5663 /* 3499 */ // MIs[0] y
5664 /* 3499 */ // No operand predicates
5665 /* 3499 */ // Combiner Rule #219: udiv_by_pow2
5666 /* 3499 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner112),
5667 /* 3502 */ // Label 187: @3502
5668 /* 3502 */ GIM_Try, /*On fail goto*//*Label 188*/ GIMT_Encode4(3513), // Rule ID 363 //
5669 /* 3507 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule221Enabled),
5670 /* 3510 */ // MIs[0] dst
5671 /* 3510 */ // No operand predicates
5672 /* 3510 */ // MIs[0] x
5673 /* 3510 */ // No operand predicates
5674 /* 3510 */ // MIs[0] y
5675 /* 3510 */ // No operand predicates
5676 /* 3510 */ // Combiner Rule #221: udiv_by_const
5677 /* 3510 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner110),
5678 /* 3513 */ // Label 188: @3513
5679 /* 3513 */ GIM_Reject,
5680 /* 3514 */ // Label 6: @3514
5681 /* 3514 */ GIM_Try, /*On fail goto*//*Label 189*/ GIMT_Encode4(3525), // Rule ID 249 //
5682 /* 3519 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule178Enabled),
5683 /* 3522 */ // Combiner Rule #178: div_rem_to_divrem; wip_match_opcode 'G_SREM'
5684 /* 3522 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner84),
5685 /* 3525 */ // Label 189: @3525
5686 /* 3525 */ GIM_Try, /*On fail goto*//*Label 190*/ GIMT_Encode4(3536), // Rule ID 285 //
5687 /* 3530 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
5688 /* 3533 */ // Combiner Rule #194: constant_fold_binop; wip_match_opcode 'G_SREM'
5689 /* 3533 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner92),
5690 /* 3536 */ // Label 190: @3536
5691 /* 3536 */ GIM_Try, /*On fail goto*//*Label 191*/ GIMT_Encode4(3547), // Rule ID 339 //
5692 /* 3541 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule215Enabled),
5693 /* 3544 */ // Combiner Rule #215: fold_binop_into_select; wip_match_opcode 'G_SREM'
5694 /* 3544 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner108),
5695 /* 3547 */ // Label 191: @3547
5696 /* 3547 */ GIM_Try, /*On fail goto*//*Label 192*/ GIMT_Encode4(3587), // Rule ID 137 //
5697 /* 3552 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
5698 /* 3555 */ // MIs[0] dst
5699 /* 3555 */ // No operand predicates
5700 /* 3555 */ // MIs[0] zero
5701 /* 3555 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5702 /* 3559 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5703 /* 3563 */ // MIs[1] Operand 1
5704 /* 3563 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0),
5705 /* 3574 */ // MIs[0] rhs
5706 /* 3574 */ // No operand predicates
5707 /* 3574 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5708 /* 3579 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5709 /* 3581 */ // Combiner Rule #93: binop_left_to_zero @ [__binop_left_to_zero_match_0[5]]
5710 /* 3581 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5711 /* 3586 */ GIR_EraseRootFromParent_Done,
5712 /* 3587 */ // Label 192: @3587
5713 /* 3587 */ GIM_Try, /*On fail goto*//*Label 193*/ GIMT_Encode4(3598), // Rule ID 358 //
5714 /* 3592 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
5715 /* 3595 */ // MIs[0] dst
5716 /* 3595 */ // No operand predicates
5717 /* 3595 */ // MIs[0] x
5718 /* 3595 */ // No operand predicates
5719 /* 3595 */ // MIs[0] y
5720 /* 3595 */ // No operand predicates
5721 /* 3595 */ // Combiner Rule #216: srem_pow2_to_mask
5722 /* 3595 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner109),
5723 /* 3598 */ // Label 193: @3598
5724 /* 3598 */ GIM_Try, /*On fail goto*//*Label 194*/ GIMT_Encode4(3609), // Rule ID 360 //
5725 /* 3603 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule218Enabled),
5726 /* 3606 */ // MIs[0] dst
5727 /* 3606 */ // No operand predicates
5728 /* 3606 */ // MIs[0] x
5729 /* 3606 */ // No operand predicates
5730 /* 3606 */ // MIs[0] y
5731 /* 3606 */ // No operand predicates
5732 /* 3606 */ // Combiner Rule #218: srem_by_const
5733 /* 3606 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner111),
5734 /* 3609 */ // Label 194: @3609
5735 /* 3609 */ GIM_Reject,
5736 /* 3610 */ // Label 7: @3610
5737 /* 3610 */ GIM_Try, /*On fail goto*//*Label 195*/ GIMT_Encode4(3621), // Rule ID 250 //
5738 /* 3615 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule178Enabled),
5739 /* 3618 */ // Combiner Rule #178: div_rem_to_divrem; wip_match_opcode 'G_UREM'
5740 /* 3618 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner84),
5741 /* 3621 */ // Label 195: @3621
5742 /* 3621 */ GIM_Try, /*On fail goto*//*Label 196*/ GIMT_Encode4(3632), // Rule ID 284 //
5743 /* 3626 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
5744 /* 3629 */ // Combiner Rule #194: constant_fold_binop; wip_match_opcode 'G_UREM'
5745 /* 3629 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner92),
5746 /* 3632 */ // Label 196: @3632
5747 /* 3632 */ GIM_Try, /*On fail goto*//*Label 197*/ GIMT_Encode4(3643), // Rule ID 341 //
5748 /* 3637 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule215Enabled),
5749 /* 3640 */ // Combiner Rule #215: fold_binop_into_select; wip_match_opcode 'G_UREM'
5750 /* 3640 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner108),
5751 /* 3643 */ // Label 197: @3643
5752 /* 3643 */ GIM_Try, /*On fail goto*//*Label 198*/ GIMT_Encode4(3664), // Rule ID 92 //
5753 /* 3648 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule79Enabled),
5754 /* 3651 */ // MIs[0] dst
5755 /* 3651 */ // No operand predicates
5756 /* 3651 */ // MIs[0] __binop_left_undef_to_zero_match_0.x
5757 /* 3651 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5758 /* 3655 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
5759 /* 3659 */ // MIs[0] __binop_left_undef_to_zero_match_0.y
5760 /* 3659 */ // No operand predicates
5761 /* 3659 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5762 /* 3661 */ // Combiner Rule #79: binop_left_undef_to_zero @ [__binop_left_undef_to_zero_match_0[2]]
5763 /* 3661 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner33),
5764 /* 3664 */ // Label 198: @3664
5765 /* 3664 */ GIM_Try, /*On fail goto*//*Label 199*/ GIMT_Encode4(3704), // Rule ID 138 //
5766 /* 3669 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
5767 /* 3672 */ // MIs[0] dst
5768 /* 3672 */ // No operand predicates
5769 /* 3672 */ // MIs[0] zero
5770 /* 3672 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5771 /* 3676 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5772 /* 3680 */ // MIs[1] Operand 1
5773 /* 3680 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0),
5774 /* 3691 */ // MIs[0] rhs
5775 /* 3691 */ // No operand predicates
5776 /* 3691 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5777 /* 3696 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5778 /* 3698 */ // Combiner Rule #93: binop_left_to_zero @ [__binop_left_to_zero_match_0[6]]
5779 /* 3698 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5780 /* 3703 */ GIR_EraseRootFromParent_Done,
5781 /* 3704 */ // Label 199: @3704
5782 /* 3704 */ GIM_Try, /*On fail goto*//*Label 200*/ GIMT_Encode4(3715), // Rule ID 198 //
5783 /* 3709 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule145Enabled),
5784 /* 3712 */ // MIs[0] dst
5785 /* 3712 */ // No operand predicates
5786 /* 3712 */ // MIs[0] x
5787 /* 3712 */ // No operand predicates
5788 /* 3712 */ // MIs[0] y
5789 /* 3712 */ // No operand predicates
5790 /* 3712 */ // Combiner Rule #145: urem_pow2_to_mask
5791 /* 3712 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner66),
5792 /* 3715 */ // Label 200: @3715
5793 /* 3715 */ GIM_Try, /*On fail goto*//*Label 201*/ GIMT_Encode4(3726), // Rule ID 359 //
5794 /* 3720 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule217Enabled),
5795 /* 3723 */ // MIs[0] dst
5796 /* 3723 */ // No operand predicates
5797 /* 3723 */ // MIs[0] x
5798 /* 3723 */ // No operand predicates
5799 /* 3723 */ // MIs[0] y
5800 /* 3723 */ // No operand predicates
5801 /* 3723 */ // Combiner Rule #217: urem_by_const
5802 /* 3723 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner110),
5803 /* 3726 */ // Label 201: @3726
5804 /* 3726 */ GIM_Reject,
5805 /* 3727 */ // Label 8: @3727
5806 /* 3727 */ GIM_Try, /*On fail goto*//*Label 202*/ GIMT_Encode4(3738), // Rule ID 162 //
5807 /* 3732 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule113Enabled),
5808 /* 3735 */ // Combiner Rule #113: hoist_logic_op_with_same_opcode_hands; wip_match_opcode 'G_AND'
5809 /* 3735 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner46),
5810 /* 3738 */ // Label 202: @3738
5811 /* 3738 */ GIM_Try, /*On fail goto*//*Label 203*/ GIMT_Encode4(3749), // Rule ID 220 //
5812 /* 3743 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule167Enabled),
5813 /* 3746 */ // Combiner Rule #167: overlapping_and; wip_match_opcode 'G_AND'
5814 /* 3746 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner74),
5815 /* 3749 */ // Label 203: @3749
5816 /* 3749 */ GIM_Try, /*On fail goto*//*Label 204*/ GIMT_Encode4(3760), // Rule ID 274 //
5817 /* 3754 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
5818 /* 3757 */ // Combiner Rule #194: constant_fold_binop; wip_match_opcode 'G_AND'
5819 /* 3757 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner92),
5820 /* 3760 */ // Label 204: @3760
5821 /* 3760 */ GIM_Try, /*On fail goto*//*Label 205*/ GIMT_Encode4(3771), // Rule ID 335 //
5822 /* 3765 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule215Enabled),
5823 /* 3768 */ // Combiner Rule #215: fold_binop_into_select; wip_match_opcode 'G_AND'
5824 /* 3768 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner108),
5825 /* 3771 */ // Label 205: @3771
5826 /* 3771 */ GIM_Try, /*On fail goto*//*Label 206*/ GIMT_Encode4(3782), // Rule ID 371 //
5827 /* 3776 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule227Enabled),
5828 /* 3779 */ // Combiner Rule #227: commute_int_constant_to_rhs; wip_match_opcode 'G_AND'
5829 /* 3779 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner118),
5830 /* 3782 */ // Label 206: @3782
5831 /* 3782 */ GIM_Try, /*On fail goto*//*Label 207*/ GIMT_Encode4(3793), // Rule ID 441 //
5832 /* 3787 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule269Enabled),
5833 /* 3790 */ // Combiner Rule #269: binop_with_neg; wip_match_opcode 'G_AND'
5834 /* 3790 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner148),
5835 /* 3793 */ // Label 207: @3793
5836 /* 3793 */ GIM_Try, /*On fail goto*//*Label 208*/ GIMT_Encode4(3879), // Rule ID 403 //
5837 /* 3798 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule234Enabled),
5838 /* 3801 */ // MIs[0] root
5839 /* 3801 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
5840 /* 3805 */ // MIs[0] or
5841 /* 3805 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5842 /* 3809 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_OR),
5843 /* 3813 */ // MIs[1] x
5844 /* 3813 */ // No operand predicates
5845 /* 3813 */ // MIs[1] y
5846 /* 3813 */ // No operand predicates
5847 /* 3813 */ // MIs[0] not
5848 /* 3813 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
5849 /* 3817 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_XOR),
5850 /* 3821 */ // MIs[2] y
5851 /* 3821 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/2,
5852 /* 3826 */ // MIs[2] Operand 2
5853 /* 3826 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/2, 255,
5854 /* 3830 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5855 /* 3832 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
5856 /* 3835 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(18446744073709551615u),
5857 /* 3845 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5858 /* 3848 */ // Combiner Rule #234: and_xor_or_to_xor_and
5859 /* 3848 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_XOR),
5860 /* 3851 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5861 /* 3856 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // y
5862 /* 3860 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/1,
5863 /* 3863 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_AND),
5864 /* 3867 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // root
5865 /* 3871 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // x
5866 /* 3875 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
5867 /* 3878 */ GIR_EraseRootFromParent_Done,
5868 /* 3879 */ // Label 208: @3879
5869 /* 3879 */ GIM_Try, /*On fail goto*//*Label 209*/ GIMT_Encode4(3977), // Rule ID 175 //
5870 /* 3884 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule122Enabled),
5871 /* 3887 */ // MIs[0] root
5872 /* 3887 */ // No operand predicates
5873 /* 3887 */ // MIs[0] d1
5874 /* 3887 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5875 /* 3891 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ICMP),
5876 /* 3895 */ // MIs[1] p
5877 /* 3895 */ // No operand predicates
5878 /* 3895 */ // MIs[1] s1
5879 /* 3895 */ GIM_RecordRegType, /*MI*/1, /*Op*/2, /*TempTypeIdx*/255,
5880 /* 3899 */ // MIs[1] Operand 3
5881 /* 3899 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/3, 0,
5882 /* 3903 */ // MIs[0] d2
5883 /* 3903 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
5884 /* 3907 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ICMP),
5885 /* 3911 */ // MIs[2] p
5886 /* 3911 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/1,
5887 /* 3916 */ // MIs[2] s2
5888 /* 3916 */ // No operand predicates
5889 /* 3916 */ // MIs[2] Operand 3
5890 /* 3916 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/3, 0,
5891 /* 3920 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner13),
5892 /* 3924 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5893 /* 3926 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
5894 /* 3929 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(0),
5895 /* 3939 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5896 /* 3942 */ // Combiner Rule #122: double_icmp_zero_and_combine
5897 /* 3942 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR),
5898 /* 3945 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5899 /* 3950 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // s1
5900 /* 3954 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/2, // s2
5901 /* 3958 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ICMP),
5902 /* 3962 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // root
5903 /* 3966 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // p
5904 /* 3970 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
5905 /* 3973 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/1,
5906 /* 3976 */ GIR_EraseRootFromParent_Done,
5907 /* 3977 */ // Label 209: @3977
5908 /* 3977 */ GIM_Try, /*On fail goto*//*Label 210*/ GIMT_Encode4(4014), // Rule ID 267 //
5909 /* 3982 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule191Enabled),
5910 /* 3985 */ // MIs[0] root
5911 /* 3985 */ // No operand predicates
5912 /* 3985 */ // MIs[0] shift
5913 /* 3985 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5914 /* 3989 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_LSHR),
5915 /* 3993 */ // MIs[1] x
5916 /* 3993 */ // No operand predicates
5917 /* 3993 */ // MIs[1] lsb
5918 /* 3993 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
5919 /* 3997 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5920 /* 4001 */ // MIs[2] imm1
5921 /* 4001 */ // No operand predicates
5922 /* 4001 */ // MIs[0] mask
5923 /* 4001 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/0, /*OpIdx*/2, // MIs[3]
5924 /* 4005 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5925 /* 4009 */ // MIs[3] imm2
5926 /* 4009 */ // No operand predicates
5927 /* 4009 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
5928 /* 4011 */ // Combiner Rule #191: bitfield_extract_from_and
5929 /* 4011 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner89),
5930 /* 4014 */ // Label 210: @4014
5931 /* 4014 */ GIM_Try, /*On fail goto*//*Label 211*/ GIMT_Encode4(4063), // Rule ID 402 //
5932 /* 4019 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule233Enabled),
5933 /* 4022 */ // MIs[0] root
5934 /* 4022 */ // No operand predicates
5935 /* 4022 */ // MIs[0] or
5936 /* 4022 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5937 /* 4026 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_OR),
5938 /* 4030 */ // MIs[1] x
5939 /* 4030 */ // No operand predicates
5940 /* 4030 */ // MIs[1] not
5941 /* 4030 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
5942 /* 4034 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_XOR),
5943 /* 4038 */ // MIs[2] y
5944 /* 4038 */ // No operand predicates
5945 /* 4038 */ // MIs[2] Operand 2
5946 /* 4038 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/2, 255,
5947 /* 4042 */ // MIs[0] y
5948 /* 4042 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/2, /*OtherOpIdx*/1,
5949 /* 4047 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5950 /* 4049 */ // Combiner Rule #233: and_xor_or_to_and
5951 /* 4049 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_AND),
5952 /* 4052 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
5953 /* 4054 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
5954 /* 4058 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // y
5955 /* 4062 */ GIR_EraseRootFromParent_Done,
5956 /* 4063 */ // Label 211: @4063
5957 /* 4063 */ GIM_Try, /*On fail goto*//*Label 212*/ GIMT_Encode4(4084), // Rule ID 84 //
5958 /* 4068 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule77Enabled),
5959 /* 4071 */ // MIs[0] dst
5960 /* 4071 */ // No operand predicates
5961 /* 4071 */ // MIs[0] __undef_to_int_zero_match_0.x
5962 /* 4071 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5963 /* 4075 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
5964 /* 4079 */ // MIs[0] __undef_to_int_zero_match_0.y
5965 /* 4079 */ // No operand predicates
5966 /* 4079 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5967 /* 4081 */ // Combiner Rule #77: undef_to_int_zero @ [__undef_to_int_zero_match_0[0]]
5968 /* 4081 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner33),
5969 /* 4084 */ // Label 212: @4084
5970 /* 4084 */ GIM_Try, /*On fail goto*//*Label 213*/ GIMT_Encode4(4108), // Rule ID 128 //
5971 /* 4089 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule91Enabled),
5972 /* 4092 */ // MIs[0] dst
5973 /* 4092 */ // No operand predicates
5974 /* 4092 */ // MIs[0] src
5975 /* 4092 */ // No operand predicates
5976 /* 4092 */ // MIs[0] src
5977 /* 4092 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
5978 /* 4097 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5979 /* 4102 */ // Combiner Rule #91: binop_same_val @ [__binop_same_val_match_0[0]]
5980 /* 4102 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5981 /* 4107 */ GIR_EraseRootFromParent_Done,
5982 /* 4108 */ // Label 213: @4108
5983 /* 4108 */ GIM_Try, /*On fail goto*//*Label 214*/ GIMT_Encode4(4129), // Rule ID 86 //
5984 /* 4113 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule77Enabled),
5985 /* 4116 */ // MIs[0] dst
5986 /* 4116 */ // No operand predicates
5987 /* 4116 */ // MIs[0] __undef_to_int_zero_match_0.x
5988 /* 4116 */ // No operand predicates
5989 /* 4116 */ // MIs[0] __undef_to_int_zero_match_0.y
5990 /* 4116 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5991 /* 4120 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
5992 /* 4124 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5993 /* 4126 */ // Combiner Rule #77: undef_to_int_zero @ [__undef_to_int_zero_match_0[2]]
5994 /* 4126 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner33),
5995 /* 4129 */ // Label 214: @4129
5996 /* 4129 */ GIM_Try, /*On fail goto*//*Label 215*/ GIMT_Encode4(4140), // Rule ID 80 //
5997 /* 4134 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule74Enabled),
5998 /* 4137 */ // MIs[0] dst
5999 /* 4137 */ // No operand predicates
6000 /* 4137 */ // MIs[0] src1
6001 /* 4137 */ // No operand predicates
6002 /* 4137 */ // MIs[0] src2
6003 /* 4137 */ // No operand predicates
6004 /* 4137 */ // Combiner Rule #74: load_and_mask
6005 /* 4137 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner30),
6006 /* 4140 */ // Label 215: @4140
6007 /* 4140 */ GIM_Try, /*On fail goto*//*Label 216*/ GIMT_Encode4(4151), // Rule ID 182 //
6008 /* 4145 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule129Enabled),
6009 /* 4148 */ // MIs[0] dst
6010 /* 4148 */ // No operand predicates
6011 /* 4148 */ // MIs[0] src1
6012 /* 4148 */ // No operand predicates
6013 /* 4148 */ // MIs[0] src2
6014 /* 4148 */ // No operand predicates
6015 /* 4148 */ // Combiner Rule #129: narrow_binop_feeding_and
6016 /* 4148 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner59),
6017 /* 4151 */ // Label 216: @4151
6018 /* 4151 */ GIM_Try, /*On fail goto*//*Label 217*/ GIMT_Encode4(4162), // Rule ID 196 //
6019 /* 4156 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule143Enabled),
6020 /* 4159 */ // MIs[0] dst
6021 /* 4159 */ // No operand predicates
6022 /* 4159 */ // MIs[0] src1
6023 /* 4159 */ // No operand predicates
6024 /* 4159 */ // MIs[0] src2
6025 /* 4159 */ // No operand predicates
6026 /* 4159 */ // Combiner Rule #143: redundant_and
6027 /* 4159 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner64),
6028 /* 4162 */ // Label 217: @4162
6029 /* 4162 */ GIM_Try, /*On fail goto*//*Label 218*/ GIMT_Encode4(4173), // Rule ID 323 //
6030 /* 4167 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule206Enabled),
6031 /* 4170 */ // MIs[0] dst
6032 /* 4170 */ // No operand predicates
6033 /* 4170 */ // MIs[0] src1
6034 /* 4170 */ // No operand predicates
6035 /* 4170 */ // MIs[0] src2
6036 /* 4170 */ // No operand predicates
6037 /* 4170 */ // Combiner Rule #206: and_or_disjoint_mask
6038 /* 4170 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner99),
6039 /* 4173 */ // Label 218: @4173
6040 /* 4173 */ GIM_Try, /*On fail goto*//*Label 219*/ GIMT_Encode4(4184), // Rule ID 398 //
6041 /* 4178 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule229Enabled),
6042 /* 4181 */ // MIs[0] dst
6043 /* 4181 */ // No operand predicates
6044 /* 4181 */ // MIs[0] src1
6045 /* 4181 */ // No operand predicates
6046 /* 4181 */ // MIs[0] src2
6047 /* 4181 */ // No operand predicates
6048 /* 4181 */ // Combiner Rule #229: match_ands
6049 /* 4181 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner120),
6050 /* 4184 */ // Label 219: @4184
6051 /* 4184 */ GIM_Reject,
6052 /* 4185 */ // Label 9: @4185
6053 /* 4185 */ GIM_Try, /*On fail goto*//*Label 220*/ GIMT_Encode4(4196), // Rule ID 163 //
6054 /* 4190 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule113Enabled),
6055 /* 4193 */ // Combiner Rule #113: hoist_logic_op_with_same_opcode_hands; wip_match_opcode 'G_OR'
6056 /* 4193 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner46),
6057 /* 4196 */ // Label 220: @4196
6058 /* 4196 */ GIM_Try, /*On fail goto*//*Label 221*/ GIMT_Encode4(4207), // Rule ID 278 //
6059 /* 4201 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
6060 /* 4204 */ // Combiner Rule #194: constant_fold_binop; wip_match_opcode 'G_OR'
6061 /* 4204 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner92),
6062 /* 4207 */ // Label 221: @4207
6063 /* 4207 */ GIM_Try, /*On fail goto*//*Label 222*/ GIMT_Encode4(4218), // Rule ID 336 //
6064 /* 4212 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule215Enabled),
6065 /* 4215 */ // Combiner Rule #215: fold_binop_into_select; wip_match_opcode 'G_OR'
6066 /* 4215 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner108),
6067 /* 4218 */ // Label 222: @4218
6068 /* 4218 */ GIM_Try, /*On fail goto*//*Label 223*/ GIMT_Encode4(4229), // Rule ID 372 //
6069 /* 4223 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule227Enabled),
6070 /* 4226 */ // Combiner Rule #227: commute_int_constant_to_rhs; wip_match_opcode 'G_OR'
6071 /* 4226 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner118),
6072 /* 4229 */ // Label 223: @4229
6073 /* 4229 */ GIM_Try, /*On fail goto*//*Label 224*/ GIMT_Encode4(4240), // Rule ID 442 //
6074 /* 4234 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule269Enabled),
6075 /* 4237 */ // Combiner Rule #269: binop_with_neg; wip_match_opcode 'G_OR'
6076 /* 4237 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner148),
6077 /* 4240 */ // Label 224: @4240
6078 /* 4240 */ GIM_Try, /*On fail goto*//*Label 225*/ GIMT_Encode4(4326), // Rule ID 401 //
6079 /* 4245 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule232Enabled),
6080 /* 4248 */ // MIs[0] root
6081 /* 4248 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
6082 /* 4252 */ // MIs[0] and
6083 /* 4252 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6084 /* 4256 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_AND),
6085 /* 4260 */ // MIs[1] x
6086 /* 4260 */ // No operand predicates
6087 /* 4260 */ // MIs[1] y
6088 /* 4260 */ // No operand predicates
6089 /* 4260 */ // MIs[0] not
6090 /* 4260 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
6091 /* 4264 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_XOR),
6092 /* 4268 */ // MIs[2] y
6093 /* 4268 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/2,
6094 /* 4273 */ // MIs[2] Operand 2
6095 /* 4273 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/2, 255,
6096 /* 4277 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
6097 /* 4279 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
6098 /* 4282 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(18446744073709551615u),
6099 /* 4292 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
6100 /* 4295 */ // Combiner Rule #232: or_and_xor_to_xor_or
6101 /* 4295 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_XOR),
6102 /* 4298 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
6103 /* 4303 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // y
6104 /* 4307 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/1,
6105 /* 4310 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR),
6106 /* 4314 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // root
6107 /* 4318 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // x
6108 /* 4322 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
6109 /* 4325 */ GIR_EraseRootFromParent_Done,
6110 /* 4326 */ // Label 225: @4326
6111 /* 4326 */ GIM_Try, /*On fail goto*//*Label 226*/ GIMT_Encode4(4373), // Rule ID 258 //
6112 /* 4331 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule184Enabled),
6113 /* 4334 */ // MIs[0] root
6114 /* 4334 */ // No operand predicates
6115 /* 4334 */ // MIs[0] out1
6116 /* 4334 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6117 /* 4338 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FSHL),
6118 /* 4342 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_left_match_0.x
6119 /* 4342 */ // No operand predicates
6120 /* 4342 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_left_match_0.z
6121 /* 4342 */ // No operand predicates
6122 /* 4342 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_left_match_0.y
6123 /* 4342 */ // No operand predicates
6124 /* 4342 */ // MIs[0] out2
6125 /* 4342 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
6126 /* 4346 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SHL),
6127 /* 4350 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_left_match_0.x
6128 /* 4350 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/1,
6129 /* 4355 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_left_match_0.y
6130 /* 4355 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/3,
6131 /* 4360 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6132 /* 4365 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
6133 /* 4367 */ // Combiner Rule #184: funnel_shift_or_shift_to_funnel_shift_left @ [__funnel_shift_or_shift_to_funnel_shift_left_match_0[0]]
6134 /* 4367 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6135 /* 4372 */ GIR_EraseRootFromParent_Done,
6136 /* 4373 */ // Label 226: @4373
6137 /* 4373 */ GIM_Try, /*On fail goto*//*Label 227*/ GIMT_Encode4(4420), // Rule ID 260 //
6138 /* 4378 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule185Enabled),
6139 /* 4381 */ // MIs[0] root
6140 /* 4381 */ // No operand predicates
6141 /* 4381 */ // MIs[0] out1
6142 /* 4381 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6143 /* 4385 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FSHR),
6144 /* 4389 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_right_match_0.z
6145 /* 4389 */ // No operand predicates
6146 /* 4389 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_right_match_0.x
6147 /* 4389 */ // No operand predicates
6148 /* 4389 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_right_match_0.y
6149 /* 4389 */ // No operand predicates
6150 /* 4389 */ // MIs[0] out2
6151 /* 4389 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
6152 /* 4393 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_LSHR),
6153 /* 4397 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_right_match_0.x
6154 /* 4397 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/2,
6155 /* 4402 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_right_match_0.y
6156 /* 4402 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/3,
6157 /* 4407 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6158 /* 4412 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
6159 /* 4414 */ // Combiner Rule #185: funnel_shift_or_shift_to_funnel_shift_right @ [__funnel_shift_or_shift_to_funnel_shift_right_match_0[0]]
6160 /* 4414 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6161 /* 4419 */ GIR_EraseRootFromParent_Done,
6162 /* 4420 */ // Label 227: @4420
6163 /* 4420 */ GIM_Try, /*On fail goto*//*Label 228*/ GIMT_Encode4(4518), // Rule ID 176 //
6164 /* 4425 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule123Enabled),
6165 /* 4428 */ // MIs[0] root
6166 /* 4428 */ // No operand predicates
6167 /* 4428 */ // MIs[0] d1
6168 /* 4428 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6169 /* 4432 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ICMP),
6170 /* 4436 */ // MIs[1] p
6171 /* 4436 */ // No operand predicates
6172 /* 4436 */ // MIs[1] s1
6173 /* 4436 */ GIM_RecordRegType, /*MI*/1, /*Op*/2, /*TempTypeIdx*/255,
6174 /* 4440 */ // MIs[1] Operand 3
6175 /* 4440 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/3, 0,
6176 /* 4444 */ // MIs[0] d2
6177 /* 4444 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
6178 /* 4448 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ICMP),
6179 /* 4452 */ // MIs[2] p
6180 /* 4452 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/1,
6181 /* 4457 */ // MIs[2] s2
6182 /* 4457 */ // No operand predicates
6183 /* 4457 */ // MIs[2] Operand 3
6184 /* 4457 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/3, 0,
6185 /* 4461 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner14),
6186 /* 4465 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
6187 /* 4467 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
6188 /* 4470 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(0),
6189 /* 4480 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
6190 /* 4483 */ // Combiner Rule #123: double_icmp_zero_or_combine
6191 /* 4483 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR),
6192 /* 4486 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
6193 /* 4491 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // s1
6194 /* 4495 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/2, // s2
6195 /* 4499 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ICMP),
6196 /* 4503 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // root
6197 /* 4507 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // p
6198 /* 4511 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
6199 /* 4514 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/1,
6200 /* 4517 */ GIR_EraseRootFromParent_Done,
6201 /* 4518 */ // Label 228: @4518
6202 /* 4518 */ GIM_Try, /*On fail goto*//*Label 229*/ GIMT_Encode4(4567), // Rule ID 400 //
6203 /* 4523 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule231Enabled),
6204 /* 4526 */ // MIs[0] root
6205 /* 4526 */ // No operand predicates
6206 /* 4526 */ // MIs[0] and
6207 /* 4526 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6208 /* 4530 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_AND),
6209 /* 4534 */ // MIs[1] x
6210 /* 4534 */ // No operand predicates
6211 /* 4534 */ // MIs[1] not
6212 /* 4534 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
6213 /* 4538 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_XOR),
6214 /* 4542 */ // MIs[2] y
6215 /* 4542 */ // No operand predicates
6216 /* 4542 */ // MIs[2] Operand 2
6217 /* 4542 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/2, 255,
6218 /* 4546 */ // MIs[0] y
6219 /* 4546 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/2, /*OtherOpIdx*/1,
6220 /* 4551 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
6221 /* 4553 */ // Combiner Rule #231: or_and_xor_to_or
6222 /* 4553 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR),
6223 /* 4556 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
6224 /* 4558 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
6225 /* 4562 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // y
6226 /* 4566 */ GIR_EraseRootFromParent_Done,
6227 /* 4567 */ // Label 229: @4567
6228 /* 4567 */ GIM_Try, /*On fail goto*//*Label 230*/ GIMT_Encode4(4601), // Rule ID 452 //
6229 /* 4572 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule278Enabled),
6230 /* 4575 */ // MIs[0] dst
6231 /* 4575 */ // No operand predicates
6232 /* 4575 */ // MIs[0] __combine_or_of_and_match_0.and
6233 /* 4575 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6234 /* 4579 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_AND),
6235 /* 4583 */ // MIs[1] x
6236 /* 4583 */ // No operand predicates
6237 /* 4583 */ // MIs[1] y
6238 /* 4583 */ // No operand predicates
6239 /* 4583 */ // MIs[0] x
6240 /* 4583 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/1,
6241 /* 4588 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
6242 /* 4593 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6243 /* 4595 */ // Combiner Rule #278: combine_or_of_and @ [__combine_or_of_and_match_0[0]]
6244 /* 4595 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
6245 /* 4600 */ GIR_EraseRootFromParent_Done,
6246 /* 4601 */ // Label 230: @4601
6247 /* 4601 */ GIM_Try, /*On fail goto*//*Label 231*/ GIMT_Encode4(4635), // Rule ID 453 //
6248 /* 4606 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule278Enabled),
6249 /* 4609 */ // MIs[0] dst
6250 /* 4609 */ // No operand predicates
6251 /* 4609 */ // MIs[0] __combine_or_of_and_match_0.and
6252 /* 4609 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6253 /* 4613 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_AND),
6254 /* 4617 */ // MIs[1] y
6255 /* 4617 */ // No operand predicates
6256 /* 4617 */ // MIs[1] x
6257 /* 4617 */ // No operand predicates
6258 /* 4617 */ // MIs[0] x
6259 /* 4617 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/2,
6260 /* 4622 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/2,
6261 /* 4627 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6262 /* 4629 */ // Combiner Rule #278: combine_or_of_and @ [__combine_or_of_and_match_0[1]]
6263 /* 4629 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/2,
6264 /* 4634 */ GIR_EraseRootFromParent_Done,
6265 /* 4635 */ // Label 231: @4635
6266 /* 4635 */ GIM_Try, /*On fail goto*//*Label 232*/ GIMT_Encode4(4682), // Rule ID 261 //
6267 /* 4640 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule185Enabled),
6268 /* 4643 */ // MIs[0] root
6269 /* 4643 */ // No operand predicates
6270 /* 4643 */ // MIs[0] out2
6271 /* 4643 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6272 /* 4647 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_LSHR),
6273 /* 4651 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_right_match_0.x
6274 /* 4651 */ // No operand predicates
6275 /* 4651 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_right_match_0.y
6276 /* 4651 */ // No operand predicates
6277 /* 4651 */ // MIs[0] out1
6278 /* 4651 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
6279 /* 4655 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_FSHR),
6280 /* 4659 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_right_match_0.z
6281 /* 4659 */ // No operand predicates
6282 /* 4659 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_right_match_0.x
6283 /* 4659 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/1,
6284 /* 4664 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_right_match_0.y
6285 /* 4664 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/3, /*OtherMI*/1, /*OtherOpIdx*/2,
6286 /* 4669 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
6287 /* 4674 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
6288 /* 4676 */ // Combiner Rule #185: funnel_shift_or_shift_to_funnel_shift_right @ [__funnel_shift_or_shift_to_funnel_shift_right_match_0[1]]
6289 /* 4676 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
6290 /* 4681 */ GIR_EraseRootFromParent_Done,
6291 /* 4682 */ // Label 232: @4682
6292 /* 4682 */ GIM_Try, /*On fail goto*//*Label 233*/ GIMT_Encode4(4729), // Rule ID 259 //
6293 /* 4687 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule184Enabled),
6294 /* 4690 */ // MIs[0] root
6295 /* 4690 */ // No operand predicates
6296 /* 4690 */ // MIs[0] out2
6297 /* 4690 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6298 /* 4694 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SHL),
6299 /* 4698 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_left_match_0.x
6300 /* 4698 */ // No operand predicates
6301 /* 4698 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_left_match_0.y
6302 /* 4698 */ // No operand predicates
6303 /* 4698 */ // MIs[0] out1
6304 /* 4698 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
6305 /* 4702 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_FSHL),
6306 /* 4706 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_left_match_0.x
6307 /* 4706 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/1,
6308 /* 4711 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_left_match_0.z
6309 /* 4711 */ // No operand predicates
6310 /* 4711 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_left_match_0.y
6311 /* 4711 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/3, /*OtherMI*/1, /*OtherOpIdx*/2,
6312 /* 4716 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
6313 /* 4721 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
6314 /* 4723 */ // Combiner Rule #184: funnel_shift_or_shift_to_funnel_shift_left @ [__funnel_shift_or_shift_to_funnel_shift_left_match_0[1]]
6315 /* 4723 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
6316 /* 4728 */ GIR_EraseRootFromParent_Done,
6317 /* 4729 */ // Label 233: @4729
6318 /* 4729 */ GIM_Try, /*On fail goto*//*Label 234*/ GIMT_Encode4(4779), // Rule ID 405 //
6319 /* 4734 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule236Enabled),
6320 /* 4737 */ // MIs[0] root
6321 /* 4737 */ // No operand predicates
6322 /* 4737 */ // MIs[0] xor
6323 /* 4737 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6324 /* 4741 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_XOR),
6325 /* 4745 */ // MIs[1] x
6326 /* 4745 */ // No operand predicates
6327 /* 4745 */ // MIs[1] y
6328 /* 4745 */ // No operand predicates
6329 /* 4745 */ // MIs[0] and
6330 /* 4745 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
6331 /* 4749 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_AND),
6332 /* 4753 */ // MIs[2] x
6333 /* 4753 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/1,
6334 /* 4758 */ // MIs[2] y
6335 /* 4758 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/2,
6336 /* 4763 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
6337 /* 4765 */ // Combiner Rule #236: or_xor_and
6338 /* 4765 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR),
6339 /* 4768 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
6340 /* 4770 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
6341 /* 4774 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // y
6342 /* 4778 */ GIR_EraseRootFromParent_Done,
6343 /* 4779 */ // Label 234: @4779
6344 /* 4779 */ GIM_Try, /*On fail goto*//*Label 235*/ GIMT_Encode4(4829), // Rule ID 404 //
6345 /* 4784 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule235Enabled),
6346 /* 4787 */ // MIs[0] root
6347 /* 4787 */ // No operand predicates
6348 /* 4787 */ // MIs[0] xor
6349 /* 4787 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6350 /* 4791 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_XOR),
6351 /* 4795 */ // MIs[1] x
6352 /* 4795 */ // No operand predicates
6353 /* 4795 */ // MIs[1] y
6354 /* 4795 */ // No operand predicates
6355 /* 4795 */ // MIs[0] or
6356 /* 4795 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
6357 /* 4799 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_OR),
6358 /* 4803 */ // MIs[2] x
6359 /* 4803 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/1,
6360 /* 4808 */ // MIs[2] y
6361 /* 4808 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/2,
6362 /* 4813 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
6363 /* 4815 */ // Combiner Rule #235: or_xor_or
6364 /* 4815 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR),
6365 /* 4818 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
6366 /* 4820 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
6367 /* 4824 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // y
6368 /* 4828 */ GIR_EraseRootFromParent_Done,
6369 /* 4829 */ // Label 235: @4829
6370 /* 4829 */ GIM_Try, /*On fail goto*//*Label 236*/ GIMT_Encode4(4850), // Rule ID 88 //
6371 /* 4834 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule78Enabled),
6372 /* 4837 */ // MIs[0] dst
6373 /* 4837 */ // No operand predicates
6374 /* 4837 */ // MIs[0] __undef_to_negative_one_match_0.x
6375 /* 4837 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6376 /* 4841 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
6377 /* 4845 */ // MIs[0] __undef_to_negative_one_match_0.y
6378 /* 4845 */ // No operand predicates
6379 /* 4845 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6380 /* 4847 */ // Combiner Rule #78: undef_to_negative_one @ [__undef_to_negative_one_match_0[0]]
6381 /* 4847 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner34),
6382 /* 4850 */ // Label 236: @4850
6383 /* 4850 */ GIM_Try, /*On fail goto*//*Label 237*/ GIMT_Encode4(4874), // Rule ID 129 //
6384 /* 4855 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule91Enabled),
6385 /* 4858 */ // MIs[0] dst
6386 /* 4858 */ // No operand predicates
6387 /* 4858 */ // MIs[0] src
6388 /* 4858 */ // No operand predicates
6389 /* 4858 */ // MIs[0] src
6390 /* 4858 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
6391 /* 4863 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6392 /* 4868 */ // Combiner Rule #91: binop_same_val @ [__binop_same_val_match_0[1]]
6393 /* 4868 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6394 /* 4873 */ GIR_EraseRootFromParent_Done,
6395 /* 4874 */ // Label 237: @4874
6396 /* 4874 */ GIM_Try, /*On fail goto*//*Label 238*/ GIMT_Encode4(4908), // Rule ID 454 //
6397 /* 4879 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule278Enabled),
6398 /* 4882 */ // MIs[0] dst
6399 /* 4882 */ // No operand predicates
6400 /* 4882 */ // MIs[0] x
6401 /* 4882 */ // No operand predicates
6402 /* 4882 */ // MIs[0] __combine_or_of_and_match_0.and
6403 /* 4882 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
6404 /* 4886 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_AND),
6405 /* 4890 */ // MIs[1] x
6406 /* 4890 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/1, /*OpIdx*/1, /*OtherMI*/0, /*OtherOpIdx*/1,
6407 /* 4895 */ // MIs[1] y
6408 /* 4895 */ // No operand predicates
6409 /* 4895 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6410 /* 4900 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6411 /* 4902 */ // Combiner Rule #278: combine_or_of_and @ [__combine_or_of_and_match_0[2]]
6412 /* 4902 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6413 /* 4907 */ GIR_EraseRootFromParent_Done,
6414 /* 4908 */ // Label 238: @4908
6415 /* 4908 */ GIM_Try, /*On fail goto*//*Label 239*/ GIMT_Encode4(4942), // Rule ID 455 //
6416 /* 4913 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule278Enabled),
6417 /* 4916 */ // MIs[0] dst
6418 /* 4916 */ // No operand predicates
6419 /* 4916 */ // MIs[0] x
6420 /* 4916 */ // No operand predicates
6421 /* 4916 */ // MIs[0] __combine_or_of_and_match_0.and
6422 /* 4916 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
6423 /* 4920 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_AND),
6424 /* 4924 */ // MIs[1] y
6425 /* 4924 */ // No operand predicates
6426 /* 4924 */ // MIs[1] x
6427 /* 4924 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/1, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
6428 /* 4929 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6429 /* 4934 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6430 /* 4936 */ // Combiner Rule #278: combine_or_of_and @ [__combine_or_of_and_match_0[3]]
6431 /* 4936 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6432 /* 4941 */ GIR_EraseRootFromParent_Done,
6433 /* 4942 */ // Label 239: @4942
6434 /* 4942 */ GIM_Try, /*On fail goto*//*Label 240*/ GIMT_Encode4(4963), // Rule ID 89 //
6435 /* 4947 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule78Enabled),
6436 /* 4950 */ // MIs[0] dst
6437 /* 4950 */ // No operand predicates
6438 /* 4950 */ // MIs[0] __undef_to_negative_one_match_0.x
6439 /* 4950 */ // No operand predicates
6440 /* 4950 */ // MIs[0] __undef_to_negative_one_match_0.y
6441 /* 4950 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
6442 /* 4954 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
6443 /* 4958 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6444 /* 4960 */ // Combiner Rule #78: undef_to_negative_one @ [__undef_to_negative_one_match_0[1]]
6445 /* 4960 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner34),
6446 /* 4963 */ // Label 240: @4963
6447 /* 4963 */ GIM_Try, /*On fail goto*//*Label 241*/ GIMT_Encode4(4986), // Rule ID 120 //
6448 /* 4968 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled),
6449 /* 4971 */ // MIs[0] dst
6450 /* 4971 */ // No operand predicates
6451 /* 4971 */ // MIs[0] lhs
6452 /* 4971 */ // No operand predicates
6453 /* 4971 */ // MIs[0] Operand 2
6454 /* 4971 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
6455 /* 4975 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6456 /* 4980 */ // Combiner Rule #90: right_identity_zero @ [__right_identity_zero_match_0[2]]
6457 /* 4980 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6458 /* 4985 */ GIR_EraseRootFromParent_Done,
6459 /* 4986 */ // Label 241: @4986
6460 /* 4986 */ GIM_Try, /*On fail goto*//*Label 242*/ GIMT_Encode4(4997), // Rule ID 197 //
6461 /* 4991 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule144Enabled),
6462 /* 4994 */ // MIs[0] dst
6463 /* 4994 */ // No operand predicates
6464 /* 4994 */ // MIs[0] src1
6465 /* 4994 */ // No operand predicates
6466 /* 4994 */ // MIs[0] src2
6467 /* 4994 */ // No operand predicates
6468 /* 4994 */ // Combiner Rule #144: redundant_or
6469 /* 4994 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner65),
6470 /* 4997 */ // Label 242: @4997
6471 /* 4997 */ GIM_Try, /*On fail goto*//*Label 243*/ GIMT_Encode4(5008), // Rule ID 246 //
6472 /* 5002 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule177Enabled),
6473 /* 5005 */ // MIs[0] dst
6474 /* 5005 */ // No operand predicates
6475 /* 5005 */ // MIs[0] src1
6476 /* 5005 */ // No operand predicates
6477 /* 5005 */ // MIs[0] src2
6478 /* 5005 */ // No operand predicates
6479 /* 5005 */ // Combiner Rule #177: load_or_combine
6480 /* 5005 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner83),
6481 /* 5008 */ // Label 243: @5008
6482 /* 5008 */ GIM_Try, /*On fail goto*//*Label 244*/ GIMT_Encode4(5019), // Rule ID 251 //
6483 /* 5013 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule179Enabled),
6484 /* 5016 */ // MIs[0] dst
6485 /* 5016 */ // No operand predicates
6486 /* 5016 */ // MIs[0] src1
6487 /* 5016 */ // No operand predicates
6488 /* 5016 */ // MIs[0] src2
6489 /* 5016 */ // No operand predicates
6490 /* 5016 */ // Combiner Rule #179: funnel_shift_from_or_shift
6491 /* 5016 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner85),
6492 /* 5019 */ // Label 244: @5019
6493 /* 5019 */ GIM_Try, /*On fail goto*//*Label 245*/ GIMT_Encode4(5030), // Rule ID 399 //
6494 /* 5024 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule230Enabled),
6495 /* 5027 */ // MIs[0] dst
6496 /* 5027 */ // No operand predicates
6497 /* 5027 */ // MIs[0] src1
6498 /* 5027 */ // No operand predicates
6499 /* 5027 */ // MIs[0] src2
6500 /* 5027 */ // No operand predicates
6501 /* 5027 */ // Combiner Rule #230: match_ors
6502 /* 5027 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner121),
6503 /* 5030 */ // Label 245: @5030
6504 /* 5030 */ GIM_Reject,
6505 /* 5031 */ // Label 10: @5031
6506 /* 5031 */ GIM_Try, /*On fail goto*//*Label 246*/ GIMT_Encode4(5042), // Rule ID 164 //
6507 /* 5036 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule113Enabled),
6508 /* 5039 */ // Combiner Rule #113: hoist_logic_op_with_same_opcode_hands; wip_match_opcode 'G_XOR'
6509 /* 5039 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner46),
6510 /* 5042 */ // Label 246: @5042
6511 /* 5042 */ GIM_Try, /*On fail goto*//*Label 247*/ GIMT_Encode4(5053), // Rule ID 281 //
6512 /* 5047 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
6513 /* 5050 */ // Combiner Rule #194: constant_fold_binop; wip_match_opcode 'G_XOR'
6514 /* 5050 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner92),
6515 /* 5053 */ // Label 247: @5053
6516 /* 5053 */ GIM_Try, /*On fail goto*//*Label 248*/ GIMT_Encode4(5064), // Rule ID 337 //
6517 /* 5058 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule215Enabled),
6518 /* 5061 */ // Combiner Rule #215: fold_binop_into_select; wip_match_opcode 'G_XOR'
6519 /* 5061 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner108),
6520 /* 5064 */ // Label 248: @5064
6521 /* 5064 */ GIM_Try, /*On fail goto*//*Label 249*/ GIMT_Encode4(5075), // Rule ID 373 //
6522 /* 5069 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule227Enabled),
6523 /* 5072 */ // Combiner Rule #227: commute_int_constant_to_rhs; wip_match_opcode 'G_XOR'
6524 /* 5072 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner118),
6525 /* 5075 */ // Label 249: @5075
6526 /* 5075 */ GIM_Try, /*On fail goto*//*Label 250*/ GIMT_Encode4(5086), // Rule ID 443 //
6527 /* 5080 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule269Enabled),
6528 /* 5083 */ // Combiner Rule #269: binop_with_neg; wip_match_opcode 'G_XOR'
6529 /* 5083 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner148),
6530 /* 5086 */ // Label 250: @5086
6531 /* 5086 */ GIM_Try, /*On fail goto*//*Label 251*/ GIMT_Encode4(5146), // Rule ID 13 //
6532 /* 5091 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule13Enabled),
6533 /* 5094 */ // MIs[0] root
6534 /* 5094 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
6535 /* 5098 */ // MIs[0] add
6536 /* 5098 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6537 /* 5102 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
6538 /* 5106 */ // MIs[1] A
6539 /* 5106 */ // No operand predicates
6540 /* 5106 */ // MIs[1] Operand 2
6541 /* 5106 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/2, 255,
6542 /* 5110 */ // MIs[0] Operand 2
6543 /* 5110 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 255,
6544 /* 5114 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner1),
6545 /* 5118 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6546 /* 5120 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
6547 /* 5123 */ GIR_BuildConstant, /*TempRegID*/0, /*Val*/GIMT_Encode8(0),
6548 /* 5133 */ // Combiner Rule #13: NotAPlusNegOne
6549 /* 5133 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
6550 /* 5136 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
6551 /* 5138 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/0,
6552 /* 5141 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // A
6553 /* 5145 */ GIR_EraseRootFromParent_Done,
6554 /* 5146 */ // Label 251: @5146
6555 /* 5146 */ GIM_Try, /*On fail goto*//*Label 252*/ GIMT_Encode4(5167), // Rule ID 106 //
6556 /* 5151 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule83Enabled),
6557 /* 5154 */ // MIs[0] dst
6558 /* 5154 */ // No operand predicates
6559 /* 5154 */ // MIs[0] __propagate_undef_any_op_match_0.x
6560 /* 5154 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6561 /* 5158 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
6562 /* 5162 */ // MIs[0] __propagate_undef_any_op_match_0.y
6563 /* 5162 */ // No operand predicates
6564 /* 5162 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6565 /* 5164 */ // Combiner Rule #83: propagate_undef_any_op @ [__propagate_undef_any_op_match_0[2]]
6566 /* 5164 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner35),
6567 /* 5167 */ // Label 252: @5167
6568 /* 5167 */ GIM_Try, /*On fail goto*//*Label 253*/ GIMT_Encode4(5206), // Rule ID 131 //
6569 /* 5172 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule92Enabled),
6570 /* 5175 */ // MIs[0] dst
6571 /* 5175 */ // No operand predicates
6572 /* 5175 */ // MIs[0] x
6573 /* 5175 */ GIM_RecordRegType, /*MI*/0, /*Op*/1, /*TempTypeIdx*/255,
6574 /* 5179 */ // MIs[0] x
6575 /* 5179 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
6576 /* 5184 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
6577 /* 5187 */ GIR_BuildConstant, /*TempRegID*/0, /*Val*/GIMT_Encode8(0),
6578 /* 5197 */ // Combiner Rule #92: same_val_zero @ [__same_val_zero_match_0[1]]
6579 /* 5197 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::COPY),
6580 /* 5200 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
6581 /* 5202 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/0,
6582 /* 5205 */ GIR_EraseRootFromParent_Done,
6583 /* 5206 */ // Label 253: @5206
6584 /* 5206 */ GIM_Try, /*On fail goto*//*Label 254*/ GIMT_Encode4(5227), // Rule ID 109 //
6585 /* 5211 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule83Enabled),
6586 /* 5214 */ // MIs[0] dst
6587 /* 5214 */ // No operand predicates
6588 /* 5214 */ // MIs[0] __propagate_undef_any_op_match_0.x
6589 /* 5214 */ // No operand predicates
6590 /* 5214 */ // MIs[0] __propagate_undef_any_op_match_0.y
6591 /* 5214 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
6592 /* 5218 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
6593 /* 5222 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6594 /* 5224 */ // Combiner Rule #83: propagate_undef_any_op @ [__propagate_undef_any_op_match_0[5]]
6595 /* 5224 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner35),
6596 /* 5227 */ // Label 254: @5227
6597 /* 5227 */ GIM_Try, /*On fail goto*//*Label 255*/ GIMT_Encode4(5250), // Rule ID 121 //
6598 /* 5232 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled),
6599 /* 5235 */ // MIs[0] dst
6600 /* 5235 */ // No operand predicates
6601 /* 5235 */ // MIs[0] lhs
6602 /* 5235 */ // No operand predicates
6603 /* 5235 */ // MIs[0] Operand 2
6604 /* 5235 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
6605 /* 5239 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6606 /* 5244 */ // Combiner Rule #90: right_identity_zero @ [__right_identity_zero_match_0[3]]
6607 /* 5244 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6608 /* 5249 */ GIR_EraseRootFromParent_Done,
6609 /* 5250 */ // Label 255: @5250
6610 /* 5250 */ GIM_Try, /*On fail goto*//*Label 256*/ GIMT_Encode4(5261), // Rule ID 202 //
6611 /* 5255 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule149Enabled),
6612 /* 5258 */ // MIs[0] dst
6613 /* 5258 */ // No operand predicates
6614 /* 5258 */ // MIs[0] src1
6615 /* 5258 */ // No operand predicates
6616 /* 5258 */ // MIs[0] src2
6617 /* 5258 */ // No operand predicates
6618 /* 5258 */ // Combiner Rule #149: not_cmp_fold
6619 /* 5258 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner70),
6620 /* 5261 */ // Label 256: @5261
6621 /* 5261 */ GIM_Try, /*On fail goto*//*Label 257*/ GIMT_Encode4(5272), // Rule ID 234 //
6622 /* 5266 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule173Enabled),
6623 /* 5269 */ // MIs[0] dst
6624 /* 5269 */ // No operand predicates
6625 /* 5269 */ // MIs[0] src1
6626 /* 5269 */ // No operand predicates
6627 /* 5269 */ // MIs[0] src2
6628 /* 5269 */ // No operand predicates
6629 /* 5269 */ // Combiner Rule #173: xor_of_and_with_same_reg
6630 /* 5269 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
6631 /* 5272 */ // Label 257: @5272
6632 /* 5272 */ GIM_Reject,
6633 /* 5273 */ // Label 11: @5273
6634 /* 5273 */ GIM_Try, /*On fail goto*//*Label 258*/ GIMT_Encode4(5287), // Rule ID 159 //
6635 /* 5278 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule111Enabled),
6636 /* 5281 */ GIM_CheckNumOperandsGE, /*MI*/0, /*Expected*/2,
6637 /* 5284 */ // MIs[0] dst
6638 /* 5284 */ // No operand predicates
6639 /* 5284 */ // MIs[0] srcs
6640 /* 5284 */ // No operand predicates
6641 /* 5284 */ // Combiner Rule #111: extend_through_phis
6642 /* 5284 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner45),
6643 /* 5287 */ // Label 258: @5287
6644 /* 5287 */ GIM_Reject,
6645 /* 5288 */ // Label 12: @5288
6646 /* 5288 */ GIM_Try, /*On fail goto*//*Label 259*/ GIMT_Encode4(5299), // Rule ID 415 //
6647 /* 5293 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule246Enabled),
6648 /* 5296 */ // Combiner Rule #246: unmerge_anyext_build_vector; wip_match_opcode 'G_UNMERGE_VALUES'
6649 /* 5296 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner131),
6650 /* 5299 */ // Label 259: @5299
6651 /* 5299 */ GIM_Try, /*On fail goto*//*Label 260*/ GIMT_Encode4(5310), // Rule ID 416 //
6652 /* 5304 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule247Enabled),
6653 /* 5307 */ // Combiner Rule #247: unmerge_merge; wip_match_opcode 'G_UNMERGE_VALUES'
6654 /* 5307 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner132),
6655 /* 5310 */ // Label 260: @5310
6656 /* 5310 */ GIM_Try, /*On fail goto*//*Label 261*/ GIMT_Encode4(5321), // Rule ID 418 //
6657 /* 5315 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule249Enabled),
6658 /* 5318 */ // Combiner Rule #249: unmerge_cst; wip_match_opcode 'G_UNMERGE_VALUES'
6659 /* 5318 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner134),
6660 /* 5321 */ // Label 261: @5321
6661 /* 5321 */ GIM_Try, /*On fail goto*//*Label 262*/ GIMT_Encode4(5332), // Rule ID 419 //
6662 /* 5326 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule250Enabled),
6663 /* 5329 */ // Combiner Rule #250: unmerge_undef; wip_match_opcode 'G_UNMERGE_VALUES'
6664 /* 5329 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner135),
6665 /* 5332 */ // Label 262: @5332
6666 /* 5332 */ GIM_Try, /*On fail goto*//*Label 263*/ GIMT_Encode4(5343), // Rule ID 420 //
6667 /* 5337 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule251Enabled),
6668 /* 5340 */ // Combiner Rule #251: unmerge_dead_to_trunc; wip_match_opcode 'G_UNMERGE_VALUES'
6669 /* 5340 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner136),
6670 /* 5343 */ // Label 263: @5343
6671 /* 5343 */ GIM_Try, /*On fail goto*//*Label 264*/ GIMT_Encode4(5354), // Rule ID 421 //
6672 /* 5348 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule252Enabled),
6673 /* 5351 */ // Combiner Rule #252: unmerge_zext_to_zext; wip_match_opcode 'G_UNMERGE_VALUES'
6674 /* 5351 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner137),
6675 /* 5354 */ // Label 264: @5354
6676 /* 5354 */ GIM_Reject,
6677 /* 5355 */ // Label 13: @5355
6678 /* 5355 */ GIM_Try, /*On fail goto*//*Label 265*/ GIMT_Encode4(5369), // Rule ID 417 //
6679 /* 5360 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule248Enabled),
6680 /* 5363 */ GIM_CheckNumOperandsGE, /*MI*/0, /*Expected*/2,
6681 /* 5366 */ // MIs[0] dst
6682 /* 5366 */ // No operand predicates
6683 /* 5366 */ // MIs[0] merge_srcs
6684 /* 5366 */ // No operand predicates
6685 /* 5366 */ // Combiner Rule #248: merge_unmerge
6686 /* 5366 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner133),
6687 /* 5369 */ // Label 265: @5369
6688 /* 5369 */ GIM_Try, /*On fail goto*//*Label 266*/ GIMT_Encode4(5431),
6689 /* 5374 */ GIM_CheckNumOperands, /*MI*/0, /*Expected*/3,
6690 /* 5377 */ GIM_Try, /*On fail goto*//*Label 267*/ GIMT_Encode4(5398), // Rule ID 422 //
6691 /* 5382 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule253Enabled),
6692 /* 5385 */ // MIs[0] root
6693 /* 5385 */ // No operand predicates
6694 /* 5385 */ // MIs[0] x
6695 /* 5385 */ // No operand predicates
6696 /* 5385 */ // MIs[0] undef
6697 /* 5385 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
6698 /* 5389 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
6699 /* 5393 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6700 /* 5395 */ // Combiner Rule #253: merge_of_x_and_undef
6701 /* 5395 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner138),
6702 /* 5398 */ // Label 267: @5398
6703 /* 5398 */ GIM_Try, /*On fail goto*//*Label 268*/ GIMT_Encode4(5430), // Rule ID 423 //
6704 /* 5403 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule254Enabled),
6705 /* 5406 */ // MIs[0] root
6706 /* 5406 */ // No operand predicates
6707 /* 5406 */ // MIs[0] x
6708 /* 5406 */ // No operand predicates
6709 /* 5406 */ // MIs[0] zero
6710 /* 5406 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
6711 /* 5410 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
6712 /* 5414 */ // MIs[1] Operand 1
6713 /* 5414 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0),
6714 /* 5425 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6715 /* 5427 */ // Combiner Rule #254: merge_of_x_and_zero
6716 /* 5427 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner139),
6717 /* 5430 */ // Label 268: @5430
6718 /* 5430 */ GIM_Reject,
6719 /* 5431 */ // Label 266: @5431
6720 /* 5431 */ GIM_Reject,
6721 /* 5432 */ // Label 14: @5432
6722 /* 5432 */ GIM_Try, /*On fail goto*//*Label 269*/ GIMT_Encode4(5443), // Rule ID 111 //
6723 /* 5437 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule84Enabled),
6724 /* 5440 */ // Combiner Rule #84: propagate_undef_all_ops; wip_match_opcode 'G_BUILD_VECTOR'
6725 /* 5440 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner36),
6726 /* 5443 */ // Label 269: @5443
6727 /* 5443 */ GIM_Try, /*On fail goto*//*Label 270*/ GIMT_Encode4(5454), // Rule ID 150 //
6728 /* 5448 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule102Enabled),
6729 /* 5451 */ // Combiner Rule #102: buildvector_identity_fold; wip_match_opcode 'G_BUILD_VECTOR'
6730 /* 5451 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner41),
6731 /* 5454 */ // Label 270: @5454
6732 /* 5454 */ GIM_Try, /*On fail goto*//*Label 271*/ GIMT_Encode4(5496),
6733 /* 5459 */ GIM_CheckNumOperandsGE, /*MI*/0, /*Expected*/2,
6734 /* 5462 */ GIM_Try, /*On fail goto*//*Label 272*/ GIMT_Encode4(5473), // Rule ID 76 //
6735 /* 5467 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule72Enabled),
6736 /* 5470 */ // MIs[0] dst
6737 /* 5470 */ // No operand predicates
6738 /* 5470 */ // MIs[0] srcs
6739 /* 5470 */ // No operand predicates
6740 /* 5470 */ // Combiner Rule #72: extract_all_elts_from_build_vector
6741 /* 5470 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner28),
6742 /* 5473 */ // Label 272: @5473
6743 /* 5473 */ GIM_Try, /*On fail goto*//*Label 273*/ GIMT_Encode4(5484), // Rule ID 414 //
6744 /* 5478 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule245Enabled),
6745 /* 5481 */ // MIs[0] dst
6746 /* 5481 */ // No operand predicates
6747 /* 5481 */ // MIs[0] unused
6748 /* 5481 */ // No operand predicates
6749 /* 5481 */ // Combiner Rule #245: combine_use_vector_truncate
6750 /* 5481 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner130),
6751 /* 5484 */ // Label 273: @5484
6752 /* 5484 */ GIM_Try, /*On fail goto*//*Label 274*/ GIMT_Encode4(5495), // Rule ID 424 //
6753 /* 5489 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule255Enabled),
6754 /* 5492 */ // MIs[0] dst
6755 /* 5492 */ // No operand predicates
6756 /* 5492 */ // MIs[0] unused
6757 /* 5492 */ // No operand predicates
6758 /* 5492 */ // Combiner Rule #255: combine_build_unmerge
6759 /* 5492 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner140),
6760 /* 5495 */ // Label 274: @5495
6761 /* 5495 */ GIM_Reject,
6762 /* 5496 */ // Label 271: @5496
6763 /* 5496 */ GIM_Reject,
6764 /* 5497 */ // Label 15: @5497
6765 /* 5497 */ GIM_Try, /*On fail goto*//*Label 275*/ GIMT_Encode4(5508), // Rule ID 149 //
6766 /* 5502 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule102Enabled),
6767 /* 5505 */ // Combiner Rule #102: buildvector_identity_fold; wip_match_opcode 'G_BUILD_VECTOR_TRUNC'
6768 /* 5505 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner41),
6769 /* 5508 */ // Label 275: @5508
6770 /* 5508 */ GIM_Reject,
6771 /* 5509 */ // Label 16: @5509
6772 /* 5509 */ GIM_Try, /*On fail goto*//*Label 276*/ GIMT_Encode4(5523), // Rule ID 407 //
6773 /* 5514 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule238Enabled),
6774 /* 5517 */ GIM_CheckNumOperandsGE, /*MI*/0, /*Expected*/2,
6775 /* 5520 */ // MIs[0] dst
6776 /* 5520 */ // No operand predicates
6777 /* 5520 */ // MIs[0] srcs
6778 /* 5520 */ // No operand predicates
6779 /* 5520 */ // Combiner Rule #238: combine_concat_vector
6780 /* 5520 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner123),
6781 /* 5523 */ // Label 276: @5523
6782 /* 5523 */ GIM_Reject,
6783 /* 5524 */ // Label 17: @5524
6784 /* 5524 */ GIM_Try, /*On fail goto*//*Label 277*/ GIMT_Encode4(5545), // Rule ID 142 //
6785 /* 5529 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule96Enabled),
6786 /* 5532 */ // MIs[0] dst
6787 /* 5532 */ // No operand predicates
6788 /* 5532 */ // MIs[0] t
6789 /* 5532 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6790 /* 5536 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_INTTOPTR),
6791 /* 5540 */ // MIs[1] ptr
6792 /* 5540 */ // No operand predicates
6793 /* 5540 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6794 /* 5542 */ // Combiner Rule #96: i2p_to_p2i
6795 /* 5542 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner39),
6796 /* 5545 */ // Label 277: @5545
6797 /* 5545 */ GIM_Try, /*On fail goto*//*Label 278*/ GIMT_Encode4(5566), // Rule ID 100 //
6798 /* 5550 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule82Enabled),
6799 /* 5553 */ // MIs[0] dst
6800 /* 5553 */ // No operand predicates
6801 /* 5553 */ // MIs[0] __unary_undef_to_undef_match_0.x
6802 /* 5553 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6803 /* 5557 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
6804 /* 5561 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6805 /* 5563 */ // Combiner Rule #82: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[3]]
6806 /* 5563 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner35),
6807 /* 5566 */ // Label 278: @5566
6808 /* 5566 */ GIM_Reject,
6809 /* 5567 */ // Label 18: @5567
6810 /* 5567 */ GIM_Try, /*On fail goto*//*Label 279*/ GIMT_Encode4(5600), // Rule ID 141 //
6811 /* 5572 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule95Enabled),
6812 /* 5575 */ // MIs[0] dst
6813 /* 5575 */ // No operand predicates
6814 /* 5575 */ // MIs[0] mid
6815 /* 5575 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6816 /* 5579 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_PTRTOINT),
6817 /* 5583 */ // MIs[1] x
6818 /* 5583 */ // No operand predicates
6819 /* 5583 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner7),
6820 /* 5587 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
6821 /* 5592 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6822 /* 5594 */ // Combiner Rule #95: p2i_to_i2p
6823 /* 5594 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
6824 /* 5599 */ GIR_EraseRootFromParent_Done,
6825 /* 5600 */ // Label 279: @5600
6826 /* 5600 */ GIM_Try, /*On fail goto*//*Label 280*/ GIMT_Encode4(5621), // Rule ID 101 //
6827 /* 5605 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule82Enabled),
6828 /* 5608 */ // MIs[0] dst
6829 /* 5608 */ // No operand predicates
6830 /* 5608 */ // MIs[0] __unary_undef_to_undef_match_0.x
6831 /* 5608 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6832 /* 5612 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
6833 /* 5616 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6834 /* 5618 */ // Combiner Rule #82: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[4]]
6835 /* 5618 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner35),
6836 /* 5621 */ // Label 280: @5621
6837 /* 5621 */ GIM_Reject,
6838 /* 5622 */ // Label 19: @5622
6839 /* 5622 */ GIM_Try, /*On fail goto*//*Label 281*/ GIMT_Encode4(5654), // Rule ID 154 //
6840 /* 5627 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule106Enabled),
6841 /* 5630 */ // MIs[0] dst
6842 /* 5630 */ // No operand predicates
6843 /* 5630 */ // MIs[0] src1
6844 /* 5630 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6845 /* 5634 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BITCAST),
6846 /* 5638 */ // MIs[1] src0
6847 /* 5638 */ // No operand predicates
6848 /* 5638 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner9),
6849 /* 5642 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6850 /* 5644 */ // Combiner Rule #106: bitcast_bitcast_to_bitcast
6851 /* 5644 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_BITCAST),
6852 /* 5647 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
6853 /* 5649 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // src0
6854 /* 5653 */ GIR_EraseRootFromParent_Done,
6855 /* 5654 */ // Label 281: @5654
6856 /* 5654 */ GIM_Try, /*On fail goto*//*Label 282*/ GIMT_Encode4(5675), // Rule ID 153 //
6857 /* 5659 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule105Enabled),
6858 /* 5662 */ // MIs[0] dst
6859 /* 5662 */ // No operand predicates
6860 /* 5662 */ // MIs[0] src1
6861 /* 5662 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6862 /* 5666 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BITCAST),
6863 /* 5670 */ // MIs[1] src0
6864 /* 5670 */ // No operand predicates
6865 /* 5670 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6866 /* 5672 */ // Combiner Rule #105: bitcast_bitcast_fold
6867 /* 5672 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner44),
6868 /* 5675 */ // Label 282: @5675
6869 /* 5675 */ GIM_Try, /*On fail goto*//*Label 283*/ GIMT_Encode4(5696), // Rule ID 98 //
6870 /* 5680 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule82Enabled),
6871 /* 5683 */ // MIs[0] dst
6872 /* 5683 */ // No operand predicates
6873 /* 5683 */ // MIs[0] __unary_undef_to_undef_match_0.x
6874 /* 5683 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6875 /* 5687 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
6876 /* 5691 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6877 /* 5693 */ // Combiner Rule #82: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[1]]
6878 /* 5693 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner35),
6879 /* 5696 */ // Label 283: @5696
6880 /* 5696 */ GIM_Reject,
6881 /* 5697 */ // Label 20: @5697
6882 /* 5697 */ GIM_Try, /*On fail goto*//*Label 284*/ GIMT_Encode4(5726), // Rule ID 25 //
6883 /* 5702 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule24Enabled),
6884 /* 5705 */ // MIs[0] dst
6885 /* 5705 */ // No operand predicates
6886 /* 5705 */ // MIs[0] src
6887 /* 5705 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6888 /* 5709 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FREEZE),
6889 /* 5713 */ // MIs[1] __idempotent_prop_match_0.x
6890 /* 5713 */ // No operand predicates
6891 /* 5713 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6892 /* 5718 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6893 /* 5720 */ // Combiner Rule #24: idempotent_prop @ [__idempotent_prop_match_0[0]]
6894 /* 5720 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6895 /* 5725 */ GIR_EraseRootFromParent_Done,
6896 /* 5726 */ // Label 284: @5726
6897 /* 5726 */ GIM_Try, /*On fail goto*//*Label 285*/ GIMT_Encode4(5749), // Rule ID 50 //
6898 /* 5731 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule46Enabled),
6899 /* 5734 */ // MIs[0] root
6900 /* 5734 */ // No operand predicates
6901 /* 5734 */ // MIs[0] src
6902 /* 5734 */ // No operand predicates
6903 /* 5734 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner4),
6904 /* 5738 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6905 /* 5743 */ // Combiner Rule #46: freeze_of_non_undef_non_poison
6906 /* 5743 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6907 /* 5748 */ GIR_EraseRootFromParent_Done,
6908 /* 5749 */ // Label 285: @5749
6909 /* 5749 */ GIM_Try, /*On fail goto*//*Label 286*/ GIMT_Encode4(5760), // Rule ID 51 //
6910 /* 5754 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule47Enabled),
6911 /* 5757 */ // MIs[0] dst
6912 /* 5757 */ // No operand predicates
6913 /* 5757 */ // MIs[0] src
6914 /* 5757 */ // No operand predicates
6915 /* 5757 */ // Combiner Rule #47: push_freeze_to_prevent_poison_from_propagating
6916 /* 5757 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner18),
6917 /* 5760 */ // Label 286: @5760
6918 /* 5760 */ GIM_Reject,
6919 /* 5761 */ // Label 21: @5761
6920 /* 5761 */ GIM_Try, /*On fail goto*//*Label 287*/ GIMT_Encode4(5782), // Rule ID 212 //
6921 /* 5766 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule159Enabled),
6922 /* 5769 */ // MIs[0] dst
6923 /* 5769 */ // No operand predicates
6924 /* 5769 */ // MIs[0] src0
6925 /* 5769 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6926 /* 5773 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT),
6927 /* 5777 */ // MIs[1] cst
6928 /* 5777 */ // No operand predicates
6929 /* 5777 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6930 /* 5779 */ // Combiner Rule #159: constant_fold_intrinsic_trunc
6931 /* 5779 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner72),
6932 /* 5782 */ // Label 287: @5782
6933 /* 5782 */ GIM_Reject,
6934 /* 5783 */ // Label 22: @5783
6935 /* 5783 */ GIM_Try, /*On fail goto*//*Label 288*/ GIMT_Encode4(5804), // Rule ID 213 //
6936 /* 5788 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule160Enabled),
6937 /* 5791 */ // MIs[0] dst
6938 /* 5791 */ // No operand predicates
6939 /* 5791 */ // MIs[0] src0
6940 /* 5791 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6941 /* 5795 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT),
6942 /* 5799 */ // MIs[1] cst
6943 /* 5799 */ // No operand predicates
6944 /* 5799 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6945 /* 5801 */ // Combiner Rule #160: constant_fold_intrinsic_round
6946 /* 5801 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner72),
6947 /* 5804 */ // Label 288: @5804
6948 /* 5804 */ GIM_Reject,
6949 /* 5805 */ // Label 23: @5805
6950 /* 5805 */ GIM_Try, /*On fail goto*//*Label 289*/ GIMT_Encode4(5826), // Rule ID 214 //
6951 /* 5810 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule161Enabled),
6952 /* 5813 */ // MIs[0] dst
6953 /* 5813 */ // No operand predicates
6954 /* 5813 */ // MIs[0] src0
6955 /* 5813 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6956 /* 5817 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT),
6957 /* 5821 */ // MIs[1] cst
6958 /* 5821 */ // No operand predicates
6959 /* 5821 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6960 /* 5823 */ // Combiner Rule #161: constant_fold_intrinsic_roundeven
6961 /* 5823 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner72),
6962 /* 5826 */ // Label 289: @5826
6963 /* 5826 */ GIM_Reject,
6964 /* 5827 */ // Label 24: @5827
6965 /* 5827 */ GIM_Try, /*On fail goto*//*Label 290*/ GIMT_Encode4(5838), // Rule ID 77 //
6966 /* 5832 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule73Enabled),
6967 /* 5835 */ // Combiner Rule #73: extending_loads; wip_match_opcode 'G_LOAD'
6968 /* 5835 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner29),
6969 /* 5838 */ // Label 290: @5838
6970 /* 5838 */ GIM_Reject,
6971 /* 5839 */ // Label 25: @5839
6972 /* 5839 */ GIM_Try, /*On fail goto*//*Label 291*/ GIMT_Encode4(5850), // Rule ID 78 //
6973 /* 5844 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule73Enabled),
6974 /* 5847 */ // Combiner Rule #73: extending_loads; wip_match_opcode 'G_SEXTLOAD'
6975 /* 5847 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner29),
6976 /* 5850 */ // Label 291: @5850
6977 /* 5850 */ GIM_Reject,
6978 /* 5851 */ // Label 26: @5851
6979 /* 5851 */ GIM_Try, /*On fail goto*//*Label 292*/ GIMT_Encode4(5862), // Rule ID 79 //
6980 /* 5856 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule73Enabled),
6981 /* 5859 */ // Combiner Rule #73: extending_loads; wip_match_opcode 'G_ZEXTLOAD'
6982 /* 5859 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner29),
6983 /* 5862 */ // Label 292: @5862
6984 /* 5862 */ GIM_Reject,
6985 /* 5863 */ // Label 27: @5863
6986 /* 5863 */ GIM_Try, /*On fail goto*//*Label 293*/ GIMT_Encode4(5874), // Rule ID 113 //
6987 /* 5868 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule86Enabled),
6988 /* 5871 */ // Combiner Rule #86: erase_undef_store; wip_match_opcode 'G_STORE'
6989 /* 5871 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner37),
6990 /* 5874 */ // Label 293: @5874
6991 /* 5874 */ GIM_Reject,
6992 /* 5875 */ // Label 28: @5875
6993 /* 5875 */ GIM_Try, /*On fail goto*//*Label 294*/ GIMT_Encode4(5896), // Rule ID 64 //
6994 /* 5880 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule60Enabled),
6995 /* 5883 */ // MIs[0] root
6996 /* 5883 */ // No operand predicates
6997 /* 5883 */ // MIs[0] select
6998 /* 5883 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6999 /* 5887 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SELECT),
7000 /* 5891 */ // MIs[1] cond
7001 /* 5891 */ // No operand predicates
7002 /* 5891 */ // MIs[1] true
7003 /* 5891 */ // No operand predicates
7004 /* 5891 */ // MIs[1] false
7005 /* 5891 */ // No operand predicates
7006 /* 5891 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7007 /* 5893 */ // Combiner Rule #60: select_of_anyext
7008 /* 5893 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner22),
7009 /* 5896 */ // Label 294: @5896
7010 /* 5896 */ GIM_Try, /*On fail goto*//*Label 295*/ GIMT_Encode4(5917), // Rule ID 59 //
7011 /* 5901 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule55Enabled),
7012 /* 5904 */ // MIs[0] root
7013 /* 5904 */ // No operand predicates
7014 /* 5904 */ // MIs[0] second
7015 /* 5904 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7016 /* 5908 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ANYEXT),
7017 /* 5912 */ // MIs[1] src
7018 /* 5912 */ // No operand predicates
7019 /* 5912 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7020 /* 5914 */ // Combiner Rule #55: anyext_of_anyext
7021 /* 5914 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner20),
7022 /* 5917 */ // Label 295: @5917
7023 /* 5917 */ GIM_Try, /*On fail goto*//*Label 296*/ GIMT_Encode4(5938), // Rule ID 61 //
7024 /* 5922 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule57Enabled),
7025 /* 5925 */ // MIs[0] root
7026 /* 5925 */ // No operand predicates
7027 /* 5925 */ // MIs[0] second
7028 /* 5925 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7029 /* 5929 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SEXT),
7030 /* 5933 */ // MIs[1] src
7031 /* 5933 */ // No operand predicates
7032 /* 5933 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7033 /* 5935 */ // Combiner Rule #57: anyext_of_sext
7034 /* 5935 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner20),
7035 /* 5938 */ // Label 296: @5938
7036 /* 5938 */ GIM_Try, /*On fail goto*//*Label 297*/ GIMT_Encode4(5959), // Rule ID 60 //
7037 /* 5943 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule56Enabled),
7038 /* 5946 */ // MIs[0] root
7039 /* 5946 */ // No operand predicates
7040 /* 5946 */ // MIs[0] second
7041 /* 5946 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7042 /* 5950 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ZEXT),
7043 /* 5954 */ // MIs[1] src
7044 /* 5954 */ // No operand predicates
7045 /* 5954 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7046 /* 5956 */ // Combiner Rule #56: anyext_of_zext
7047 /* 5956 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner20),
7048 /* 5959 */ // Label 297: @5959
7049 /* 5959 */ GIM_Try, /*On fail goto*//*Label 298*/ GIMT_Encode4(5980), // Rule ID 99 //
7050 /* 5964 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule82Enabled),
7051 /* 5967 */ // MIs[0] dst
7052 /* 5967 */ // No operand predicates
7053 /* 5967 */ // MIs[0] __unary_undef_to_undef_match_0.x
7054 /* 5967 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7055 /* 5971 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
7056 /* 5975 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7057 /* 5977 */ // Combiner Rule #82: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[2]]
7058 /* 5977 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner35),
7059 /* 5980 */ // Label 298: @5980
7060 /* 5980 */ GIM_Try, /*On fail goto*//*Label 299*/ GIMT_Encode4(5991), // Rule ID 143 //
7061 /* 5985 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule97Enabled),
7062 /* 5988 */ // MIs[0] dst
7063 /* 5988 */ // No operand predicates
7064 /* 5988 */ // MIs[0] src
7065 /* 5988 */ // No operand predicates
7066 /* 5988 */ // Combiner Rule #97: anyext_trunc_fold
7067 /* 5988 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner40),
7068 /* 5991 */ // Label 299: @5991
7069 /* 5991 */ GIM_Try, /*On fail goto*//*Label 300*/ GIMT_Encode4(6002), // Rule ID 306 //
7070 /* 5996 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule197Enabled),
7071 /* 5999 */ // MIs[0] dst
7072 /* 5999 */ // No operand predicates
7073 /* 5999 */ // MIs[0] d.src
7074 /* 5999 */ // No operand predicates
7075 /* 5999 */ // Combiner Rule #197: constant_fold_cast_op @ [d[2]]
7076 /* 5999 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner95),
7077 /* 6002 */ // Label 300: @6002
7078 /* 6002 */ GIM_Reject,
7079 /* 6003 */ // Label 29: @6003
7080 /* 6003 */ GIM_Try, /*On fail goto*//*Label 301*/ GIMT_Encode4(6024), // Rule ID 65 //
7081 /* 6008 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule61Enabled),
7082 /* 6011 */ // MIs[0] root
7083 /* 6011 */ // No operand predicates
7084 /* 6011 */ // MIs[0] select
7085 /* 6011 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7086 /* 6015 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SELECT),
7087 /* 6019 */ // MIs[1] cond
7088 /* 6019 */ // No operand predicates
7089 /* 6019 */ // MIs[1] true
7090 /* 6019 */ // No operand predicates
7091 /* 6019 */ // MIs[1] false
7092 /* 6019 */ // No operand predicates
7093 /* 6019 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7094 /* 6021 */ // Combiner Rule #61: select_of_truncate
7095 /* 6021 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner22),
7096 /* 6024 */ // Label 301: @6024
7097 /* 6024 */ GIM_Try, /*On fail goto*//*Label 302*/ GIMT_Encode4(6053), // Rule ID 67 //
7098 /* 6029 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule63Enabled),
7099 /* 6032 */ // MIs[0] root
7100 /* 6032 */ // No operand predicates
7101 /* 6032 */ // MIs[0] binop
7102 /* 6032 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7103 /* 6036 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
7104 /* 6040 */ // MIs[1] x
7105 /* 6040 */ // No operand predicates
7106 /* 6040 */ // MIs[1] const
7107 /* 6040 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
7108 /* 6044 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
7109 /* 6048 */ // MIs[2] imm
7110 /* 6048 */ // No operand predicates
7111 /* 6048 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
7112 /* 6050 */ // Combiner Rule #63: narrow_binop_add
7113 /* 6050 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner24),
7114 /* 6053 */ // Label 302: @6053
7115 /* 6053 */ GIM_Try, /*On fail goto*//*Label 303*/ GIMT_Encode4(6082), // Rule ID 70 //
7116 /* 6058 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule66Enabled),
7117 /* 6061 */ // MIs[0] root
7118 /* 6061 */ // No operand predicates
7119 /* 6061 */ // MIs[0] binop
7120 /* 6061 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7121 /* 6065 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_AND),
7122 /* 6069 */ // MIs[1] x
7123 /* 6069 */ // No operand predicates
7124 /* 6069 */ // MIs[1] const
7125 /* 6069 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
7126 /* 6073 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
7127 /* 6077 */ // MIs[2] imm
7128 /* 6077 */ // No operand predicates
7129 /* 6077 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
7130 /* 6079 */ // Combiner Rule #66: narrow_binop_and
7131 /* 6079 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner24),
7132 /* 6082 */ // Label 303: @6082
7133 /* 6082 */ GIM_Try, /*On fail goto*//*Label 304*/ GIMT_Encode4(6111), // Rule ID 69 //
7134 /* 6087 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule65Enabled),
7135 /* 6090 */ // MIs[0] root
7136 /* 6090 */ // No operand predicates
7137 /* 6090 */ // MIs[0] binop
7138 /* 6090 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7139 /* 6094 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_MUL),
7140 /* 6098 */ // MIs[1] x
7141 /* 6098 */ // No operand predicates
7142 /* 6098 */ // MIs[1] const
7143 /* 6098 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
7144 /* 6102 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
7145 /* 6106 */ // MIs[2] imm
7146 /* 6106 */ // No operand predicates
7147 /* 6106 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
7148 /* 6108 */ // Combiner Rule #65: narrow_binop_mul
7149 /* 6108 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner24),
7150 /* 6111 */ // Label 304: @6111
7151 /* 6111 */ GIM_Try, /*On fail goto*//*Label 305*/ GIMT_Encode4(6140), // Rule ID 71 //
7152 /* 6116 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule67Enabled),
7153 /* 6119 */ // MIs[0] root
7154 /* 6119 */ // No operand predicates
7155 /* 6119 */ // MIs[0] binop
7156 /* 6119 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7157 /* 6123 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_OR),
7158 /* 6127 */ // MIs[1] x
7159 /* 6127 */ // No operand predicates
7160 /* 6127 */ // MIs[1] const
7161 /* 6127 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
7162 /* 6131 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
7163 /* 6135 */ // MIs[2] imm
7164 /* 6135 */ // No operand predicates
7165 /* 6135 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
7166 /* 6137 */ // Combiner Rule #67: narrow_binop_or
7167 /* 6137 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner24),
7168 /* 6140 */ // Label 305: @6140
7169 /* 6140 */ GIM_Try, /*On fail goto*//*Label 306*/ GIMT_Encode4(6169), // Rule ID 68 //
7170 /* 6145 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule64Enabled),
7171 /* 6148 */ // MIs[0] root
7172 /* 6148 */ // No operand predicates
7173 /* 6148 */ // MIs[0] binop
7174 /* 6148 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7175 /* 6152 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
7176 /* 6156 */ // MIs[1] x
7177 /* 6156 */ // No operand predicates
7178 /* 6156 */ // MIs[1] const
7179 /* 6156 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
7180 /* 6160 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
7181 /* 6164 */ // MIs[2] imm
7182 /* 6164 */ // No operand predicates
7183 /* 6164 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
7184 /* 6166 */ // Combiner Rule #64: narrow_binop_sub
7185 /* 6166 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner24),
7186 /* 6169 */ // Label 306: @6169
7187 /* 6169 */ GIM_Try, /*On fail goto*//*Label 307*/ GIMT_Encode4(6201), // Rule ID 431 //
7188 /* 6174 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule260Enabled),
7189 /* 6177 */ // MIs[0] dst
7190 /* 6177 */ // No operand predicates
7191 /* 6177 */ // MIs[0] min
7192 /* 6177 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7193 /* 6181 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_UMIN),
7194 /* 6185 */ // MIs[1] x
7195 /* 6185 */ // No operand predicates
7196 /* 6185 */ // MIs[1] y
7197 /* 6185 */ // No operand predicates
7198 /* 6185 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner23),
7199 /* 6189 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7200 /* 6191 */ // Combiner Rule #260: trunc_usatu
7201 /* 6191 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_TRUNC_USAT_U),
7202 /* 6194 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
7203 /* 6196 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
7204 /* 6200 */ GIR_EraseRootFromParent_Done,
7205 /* 6201 */ // Label 307: @6201
7206 /* 6201 */ GIM_Try, /*On fail goto*//*Label 308*/ GIMT_Encode4(6230), // Rule ID 72 //
7207 /* 6206 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule68Enabled),
7208 /* 6209 */ // MIs[0] root
7209 /* 6209 */ // No operand predicates
7210 /* 6209 */ // MIs[0] binop
7211 /* 6209 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7212 /* 6213 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_XOR),
7213 /* 6217 */ // MIs[1] x
7214 /* 6217 */ // No operand predicates
7215 /* 6217 */ // MIs[1] const
7216 /* 6217 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
7217 /* 6221 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
7218 /* 6225 */ // MIs[2] imm
7219 /* 6225 */ // No operand predicates
7220 /* 6225 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
7221 /* 6227 */ // Combiner Rule #68: narrow_binop_xor
7222 /* 6227 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner24),
7223 /* 6230 */ // Label 308: @6230
7224 /* 6230 */ GIM_Try, /*On fail goto*//*Label 309*/ GIMT_Encode4(6251), // Rule ID 54 //
7225 /* 6235 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule50Enabled),
7226 /* 6238 */ // MIs[0] root
7227 /* 6238 */ // No operand predicates
7228 /* 6238 */ // MIs[0] ext
7229 /* 6238 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7230 /* 6242 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ANYEXT),
7231 /* 6246 */ // MIs[1] src
7232 /* 6246 */ // No operand predicates
7233 /* 6246 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7234 /* 6248 */ // Combiner Rule #50: truncate_of_anyext
7235 /* 6248 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner19),
7236 /* 6251 */ // Label 309: @6251
7237 /* 6251 */ GIM_Try, /*On fail goto*//*Label 310*/ GIMT_Encode4(6275), // Rule ID 66 //
7238 /* 6256 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule62Enabled),
7239 /* 6259 */ // MIs[0] root
7240 /* 6259 */ // No operand predicates
7241 /* 6259 */ // MIs[0] bv
7242 /* 6259 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7243 /* 6263 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR),
7244 /* 6267 */ GIM_CheckNumOperandsGE, /*MI*/1, /*Expected*/2,
7245 /* 6270 */ // MIs[1] unused
7246 /* 6270 */ // No operand predicates
7247 /* 6270 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7248 /* 6272 */ // Combiner Rule #62: buildvector_of_truncate
7249 /* 6272 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner23),
7250 /* 6275 */ // Label 310: @6275
7251 /* 6275 */ GIM_Try, /*On fail goto*//*Label 311*/ GIMT_Encode4(6296), // Rule ID 53 //
7252 /* 6280 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule49Enabled),
7253 /* 6283 */ // MIs[0] root
7254 /* 6283 */ // No operand predicates
7255 /* 6283 */ // MIs[0] ext
7256 /* 6283 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7257 /* 6287 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SEXT),
7258 /* 6291 */ // MIs[1] src
7259 /* 6291 */ // No operand predicates
7260 /* 6291 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7261 /* 6293 */ // Combiner Rule #49: truncate_of_sext
7262 /* 6293 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner19),
7263 /* 6296 */ // Label 311: @6296
7264 /* 6296 */ GIM_Try, /*On fail goto*//*Label 312*/ GIMT_Encode4(6317), // Rule ID 52 //
7265 /* 6301 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule48Enabled),
7266 /* 6304 */ // MIs[0] root
7267 /* 6304 */ // No operand predicates
7268 /* 6304 */ // MIs[0] ext
7269 /* 6304 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7270 /* 6308 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ZEXT),
7271 /* 6312 */ // MIs[1] src
7272 /* 6312 */ // No operand predicates
7273 /* 6312 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7274 /* 6314 */ // Combiner Rule #48: truncate_of_zext
7275 /* 6314 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner19),
7276 /* 6317 */ // Label 312: @6317
7277 /* 6317 */ GIM_Try, /*On fail goto*//*Label 313*/ GIMT_Encode4(6338), // Rule ID 97 //
7278 /* 6322 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule82Enabled),
7279 /* 6325 */ // MIs[0] dst
7280 /* 6325 */ // No operand predicates
7281 /* 6325 */ // MIs[0] __unary_undef_to_undef_match_0.x
7282 /* 6325 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7283 /* 6329 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
7284 /* 6333 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7285 /* 6335 */ // Combiner Rule #82: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[0]]
7286 /* 6335 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner35),
7287 /* 6338 */ // Label 313: @6338
7288 /* 6338 */ GIM_Try, /*On fail goto*//*Label 314*/ GIMT_Encode4(6359), // Rule ID 73 //
7289 /* 6343 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule69Enabled),
7290 /* 6346 */ // MIs[0] root
7291 /* 6346 */ // No operand predicates
7292 /* 6346 */ // MIs[0] int
7293 /* 6346 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7294 /* 6350 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
7295 /* 6354 */ // MIs[1] imm
7296 /* 6354 */ // No operand predicates
7297 /* 6354 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7298 /* 6356 */ // Combiner Rule #69: integer_of_truncate
7299 /* 6356 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner25),
7300 /* 6359 */ // Label 314: @6359
7301 /* 6359 */ GIM_Try, /*On fail goto*//*Label 315*/ GIMT_Encode4(6370), // Rule ID 151 //
7302 /* 6364 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule103Enabled),
7303 /* 6367 */ // MIs[0] dst
7304 /* 6367 */ // No operand predicates
7305 /* 6367 */ // MIs[0] src
7306 /* 6367 */ // No operand predicates
7307 /* 6367 */ // Combiner Rule #103: trunc_buildvector_fold
7308 /* 6367 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner42),
7309 /* 6370 */ // Label 315: @6370
7310 /* 6370 */ GIM_Try, /*On fail goto*//*Label 316*/ GIMT_Encode4(6381), // Rule ID 152 //
7311 /* 6375 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule104Enabled),
7312 /* 6378 */ // MIs[0] dst
7313 /* 6378 */ // No operand predicates
7314 /* 6378 */ // MIs[0] src
7315 /* 6378 */ // No operand predicates
7316 /* 6378 */ // Combiner Rule #104: trunc_lshr_buildvector_fold
7317 /* 6378 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner43),
7318 /* 6381 */ // Label 316: @6381
7319 /* 6381 */ GIM_Try, /*On fail goto*//*Label 317*/ GIMT_Encode4(6392), // Rule ID 201 //
7320 /* 6386 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule148Enabled),
7321 /* 6389 */ // MIs[0] dst
7322 /* 6389 */ // No operand predicates
7323 /* 6389 */ // MIs[0] src
7324 /* 6389 */ // No operand predicates
7325 /* 6389 */ // Combiner Rule #148: trunc_shift
7326 /* 6389 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner69),
7327 /* 6392 */ // Label 317: @6392
7328 /* 6392 */ GIM_Try, /*On fail goto*//*Label 318*/ GIMT_Encode4(6403), // Rule ID 429 //
7329 /* 6397 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule258Enabled),
7330 /* 6400 */ // MIs[0] dst
7331 /* 6400 */ // No operand predicates
7332 /* 6400 */ // MIs[0] src
7333 /* 6400 */ // No operand predicates
7334 /* 6400 */ // Combiner Rule #258: trunc_ssats
7335 /* 6400 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner143),
7336 /* 6403 */ // Label 318: @6403
7337 /* 6403 */ GIM_Try, /*On fail goto*//*Label 319*/ GIMT_Encode4(6414), // Rule ID 430 //
7338 /* 6408 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule259Enabled),
7339 /* 6411 */ // MIs[0] dst
7340 /* 6411 */ // No operand predicates
7341 /* 6411 */ // MIs[0] src
7342 /* 6411 */ // No operand predicates
7343 /* 6411 */ // Combiner Rule #259: trunc_ssatu
7344 /* 6411 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner144),
7345 /* 6414 */ // Label 319: @6414
7346 /* 6414 */ GIM_Reject,
7347 /* 6415 */ // Label 30: @6415
7348 /* 6415 */ GIM_Try, /*On fail goto*//*Label 320*/ GIMT_Encode4(6447), // Rule ID 432 //
7349 /* 6420 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule261Enabled),
7350 /* 6423 */ // MIs[0] dst
7351 /* 6423 */ // No operand predicates
7352 /* 6423 */ // MIs[0] src
7353 /* 6423 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7354 /* 6427 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FPTOUI),
7355 /* 6431 */ // MIs[1] x
7356 /* 6431 */ // No operand predicates
7357 /* 6431 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner24),
7358 /* 6435 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7359 /* 6437 */ // Combiner Rule #261: truncusatu_to_fptouisat
7360 /* 6437 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FPTOUI_SAT),
7361 /* 6440 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
7362 /* 6442 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
7363 /* 6446 */ GIR_EraseRootFromParent_Done,
7364 /* 6447 */ // Label 320: @6447
7365 /* 6447 */ GIM_Reject,
7366 /* 6448 */ // Label 31: @6448
7367 /* 6448 */ GIM_Try, /*On fail goto*//*Label 321*/ GIMT_Encode4(6469), // Rule ID 58 //
7368 /* 6453 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule54Enabled),
7369 /* 6456 */ // MIs[0] root
7370 /* 6456 */ // No operand predicates
7371 /* 6456 */ // MIs[0] second
7372 /* 6456 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7373 /* 6460 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ANYEXT),
7374 /* 6464 */ // MIs[1] src
7375 /* 6464 */ // No operand predicates
7376 /* 6464 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7377 /* 6466 */ // Combiner Rule #54: sext_of_anyext
7378 /* 6466 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner20),
7379 /* 6469 */ // Label 321: @6469
7380 /* 6469 */ GIM_Try, /*On fail goto*//*Label 322*/ GIMT_Encode4(6490), // Rule ID 57 //
7381 /* 6474 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule53Enabled),
7382 /* 6477 */ // MIs[0] root
7383 /* 6477 */ // No operand predicates
7384 /* 6477 */ // MIs[0] second
7385 /* 6477 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7386 /* 6481 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SEXT),
7387 /* 6485 */ // MIs[1] src
7388 /* 6485 */ // No operand predicates
7389 /* 6485 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7390 /* 6487 */ // Combiner Rule #53: sext_of_sext
7391 /* 6487 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner20),
7392 /* 6490 */ // Label 322: @6490
7393 /* 6490 */ GIM_Try, /*On fail goto*//*Label 323*/ GIMT_Encode4(6511), // Rule ID 408 //
7394 /* 6495 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule239Enabled),
7395 /* 6498 */ // MIs[0] root
7396 /* 6498 */ // No operand predicates
7397 /* 6498 */ // MIs[0] src
7398 /* 6498 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7399 /* 6502 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_TRUNC),
7400 /* 6506 */ // MIs[1] x
7401 /* 6506 */ // No operand predicates
7402 /* 6506 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7403 /* 6508 */ // Combiner Rule #239: sext_trunc
7404 /* 6508 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner124),
7405 /* 6511 */ // Label 323: @6511
7406 /* 6511 */ GIM_Try, /*On fail goto*//*Label 324*/ GIMT_Encode4(6522), // Rule ID 305 //
7407 /* 6516 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule197Enabled),
7408 /* 6519 */ // MIs[0] dst
7409 /* 6519 */ // No operand predicates
7410 /* 6519 */ // MIs[0] d.src
7411 /* 6519 */ // No operand predicates
7412 /* 6519 */ // Combiner Rule #197: constant_fold_cast_op @ [d[1]]
7413 /* 6519 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner95),
7414 /* 6522 */ // Label 324: @6522
7415 /* 6522 */ GIM_Reject,
7416 /* 6523 */ // Label 32: @6523
7417 /* 6523 */ GIM_Try, /*On fail goto*//*Label 325*/ GIMT_Encode4(6544), // Rule ID 62 //
7418 /* 6528 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule58Enabled),
7419 /* 6531 */ // MIs[0] dst
7420 /* 6531 */ // No operand predicates
7421 /* 6531 */ // MIs[0] x
7422 /* 6531 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7423 /* 6535 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SEXT_INREG),
7424 /* 6539 */ // MIs[1] src
7425 /* 6539 */ // No operand predicates
7426 /* 6539 */ // MIs[1] a
7427 /* 6539 */ // No operand predicates
7428 /* 6539 */ // MIs[0] b
7429 /* 6539 */ // No operand predicates
7430 /* 6539 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7431 /* 6541 */ // Combiner Rule #58: sext_inreg_of_sext_inreg
7432 /* 6541 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner21),
7433 /* 6544 */ // Label 325: @6544
7434 /* 6544 */ GIM_Try, /*On fail goto*//*Label 326*/ GIMT_Encode4(6584), // Rule ID 195 //
7435 /* 6549 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule142Enabled),
7436 /* 6552 */ // MIs[0] dst
7437 /* 6552 */ // No operand predicates
7438 /* 6552 */ // MIs[0] tmp4
7439 /* 6552 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7440 /* 6556 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ANYEXT),
7441 /* 6560 */ // MIs[1] tmp2
7442 /* 6560 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
7443 /* 6564 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_UNMERGE_VALUES),
7444 /* 6568 */ GIM_CheckNumOperands, /*MI*/2, /*Expected*/3,
7445 /* 6571 */ // MIs[2] tmp3
7446 /* 6571 */ // No operand predicates
7447 /* 6571 */ // MIs[2] tmp1
7448 /* 6571 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/2, /*OpIdx*/2, // MIs[3]
7449 /* 6575 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_ANYEXT),
7450 /* 6579 */ // MIs[3] src
7451 /* 6579 */ // No operand predicates
7452 /* 6579 */ // MIs[0] amt
7453 /* 6579 */ // No operand predicates
7454 /* 6579 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
7455 /* 6581 */ // Combiner Rule #142: redundant_aext_unmerge_sext_inreg
7456 /* 6581 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner63),
7457 /* 6584 */ // Label 326: @6584
7458 /* 6584 */ GIM_Try, /*On fail goto*//*Label 327*/ GIMT_Encode4(6616), // Rule ID 193 //
7459 /* 6589 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule140Enabled),
7460 /* 6592 */ // MIs[0] dst
7461 /* 6592 */ // No operand predicates
7462 /* 6592 */ // MIs[0] tmp
7463 /* 6592 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7464 /* 6596 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ANYEXT),
7465 /* 6600 */ // MIs[1] src
7466 /* 6600 */ // No operand predicates
7467 /* 6600 */ // MIs[0] amt
7468 /* 6600 */ // No operand predicates
7469 /* 6600 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner18),
7470 /* 6604 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7471 /* 6606 */ // Combiner Rule #140: redundant_aext_sext_inreg
7472 /* 6606 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SEXT),
7473 /* 6609 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
7474 /* 6611 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // src
7475 /* 6615 */ GIR_EraseRootFromParent_Done,
7476 /* 6616 */ // Label 327: @6616
7477 /* 6616 */ GIM_Try, /*On fail goto*//*Label 328*/ GIMT_Encode4(6656), // Rule ID 194 //
7478 /* 6621 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule141Enabled),
7479 /* 6624 */ // MIs[0] dst
7480 /* 6624 */ // No operand predicates
7481 /* 6624 */ // MIs[0] tmp4
7482 /* 6624 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7483 /* 6628 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ZEXT),
7484 /* 6632 */ // MIs[1] tmp2
7485 /* 6632 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
7486 /* 6636 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_UNMERGE_VALUES),
7487 /* 6640 */ GIM_CheckNumOperands, /*MI*/2, /*Expected*/3,
7488 /* 6643 */ // MIs[2] tmp3
7489 /* 6643 */ // No operand predicates
7490 /* 6643 */ // MIs[2] tmp1
7491 /* 6643 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/2, /*OpIdx*/2, // MIs[3]
7492 /* 6647 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_ZEXT),
7493 /* 6651 */ // MIs[3] src
7494 /* 6651 */ // No operand predicates
7495 /* 6651 */ // MIs[0] amt
7496 /* 6651 */ // No operand predicates
7497 /* 6651 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
7498 /* 6653 */ // Combiner Rule #141: redundant_zext_unmerge_sext_inreg
7499 /* 6653 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner63),
7500 /* 6656 */ // Label 328: @6656
7501 /* 6656 */ GIM_Try, /*On fail goto*//*Label 329*/ GIMT_Encode4(6688), // Rule ID 192 //
7502 /* 6661 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule139Enabled),
7503 /* 6664 */ // MIs[0] dst
7504 /* 6664 */ // No operand predicates
7505 /* 6664 */ // MIs[0] tmp
7506 /* 6664 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7507 /* 6668 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ZEXT),
7508 /* 6672 */ // MIs[1] src
7509 /* 6672 */ // No operand predicates
7510 /* 6672 */ // MIs[0] amt
7511 /* 6672 */ // No operand predicates
7512 /* 6672 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner18),
7513 /* 6676 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7514 /* 6678 */ // Combiner Rule #139: redundant_zext_sext_inreg
7515 /* 6678 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SEXT),
7516 /* 6681 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
7517 /* 6683 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // src
7518 /* 6687 */ GIR_EraseRootFromParent_Done,
7519 /* 6688 */ // Label 329: @6688
7520 /* 6688 */ GIM_Try, /*On fail goto*//*Label 330*/ GIMT_Encode4(6711), // Rule ID 191 //
7521 /* 6693 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule138Enabled),
7522 /* 6696 */ // MIs[0] dst
7523 /* 6696 */ // No operand predicates
7524 /* 6696 */ // MIs[0] src
7525 /* 6696 */ // No operand predicates
7526 /* 6696 */ // MIs[0] sz
7527 /* 6696 */ // No operand predicates
7528 /* 6696 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner17),
7529 /* 6700 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7530 /* 6705 */ // Combiner Rule #138: redundant_sext_inreg
7531 /* 6705 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7532 /* 6710 */ GIR_EraseRootFromParent_Done,
7533 /* 6711 */ // Label 330: @6711
7534 /* 6711 */ GIM_Try, /*On fail goto*//*Label 331*/ GIMT_Encode4(6722), // Rule ID 180 //
7535 /* 6716 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule127Enabled),
7536 /* 6719 */ // MIs[0] dst
7537 /* 6719 */ // No operand predicates
7538 /* 6719 */ // MIs[0] src
7539 /* 6719 */ // No operand predicates
7540 /* 6719 */ // MIs[0] sz
7541 /* 6719 */ // No operand predicates
7542 /* 6719 */ // Combiner Rule #127: sext_inreg_of_load
7543 /* 6719 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner57),
7544 /* 6722 */ // Label 331: @6722
7545 /* 6722 */ GIM_Try, /*On fail goto*//*Label 332*/ GIMT_Encode4(6733), // Rule ID 200 //
7546 /* 6727 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule147Enabled),
7547 /* 6730 */ // MIs[0] dst
7548 /* 6730 */ // No operand predicates
7549 /* 6730 */ // MIs[0] src
7550 /* 6730 */ // No operand predicates
7551 /* 6730 */ // MIs[0] imm
7552 /* 6730 */ // No operand predicates
7553 /* 6730 */ // Combiner Rule #147: sext_inreg_to_zext_inreg
7554 /* 6730 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner68),
7555 /* 6733 */ // Label 332: @6733
7556 /* 6733 */ GIM_Try, /*On fail goto*//*Label 333*/ GIMT_Encode4(6744), // Rule ID 266 //
7557 /* 6738 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule190Enabled),
7558 /* 6741 */ // MIs[0] dst
7559 /* 6741 */ // No operand predicates
7560 /* 6741 */ // MIs[0] src
7561 /* 6741 */ // No operand predicates
7562 /* 6741 */ // MIs[0] sz
7563 /* 6741 */ // No operand predicates
7564 /* 6741 */ // Combiner Rule #190: bitfield_extract_from_sext_inreg
7565 /* 6741 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner88),
7566 /* 6744 */ // Label 333: @6744
7567 /* 6744 */ GIM_Reject,
7568 /* 6745 */ // Label 33: @6745
7569 /* 6745 */ GIM_Try, /*On fail goto*//*Label 334*/ GIMT_Encode4(6766), // Rule ID 63 //
7570 /* 6750 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule59Enabled),
7571 /* 6753 */ // MIs[0] root
7572 /* 6753 */ // No operand predicates
7573 /* 6753 */ // MIs[0] select
7574 /* 6753 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7575 /* 6757 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SELECT),
7576 /* 6761 */ // MIs[1] cond
7577 /* 6761 */ // No operand predicates
7578 /* 6761 */ // MIs[1] true
7579 /* 6761 */ // No operand predicates
7580 /* 6761 */ // MIs[1] false
7581 /* 6761 */ // No operand predicates
7582 /* 6761 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7583 /* 6763 */ // Combiner Rule #59: select_of_zext
7584 /* 6763 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner22),
7585 /* 6766 */ // Label 334: @6766
7586 /* 6766 */ GIM_Try, /*On fail goto*//*Label 335*/ GIMT_Encode4(6787), // Rule ID 56 //
7587 /* 6771 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule52Enabled),
7588 /* 6774 */ // MIs[0] root
7589 /* 6774 */ // No operand predicates
7590 /* 6774 */ // MIs[0] second
7591 /* 6774 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7592 /* 6778 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ANYEXT),
7593 /* 6782 */ // MIs[1] src
7594 /* 6782 */ // No operand predicates
7595 /* 6782 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7596 /* 6784 */ // Combiner Rule #52: zext_of_anyext
7597 /* 6784 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner20),
7598 /* 6787 */ // Label 335: @6787
7599 /* 6787 */ GIM_Try, /*On fail goto*//*Label 336*/ GIMT_Encode4(6814), // Rule ID 409 //
7600 /* 6792 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule240Enabled),
7601 /* 6795 */ // MIs[0] root
7602 /* 6795 */ // No operand predicates
7603 /* 6795 */ // MIs[0] src
7604 /* 6795 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7605 /* 6799 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_TRUNC),
7606 /* 6803 */ GIM_MIFlags, /*MI*/1, GIMT_Encode4(MachineInstr::NoUWrap),
7607 /* 6809 */ // MIs[1] x
7608 /* 6809 */ // No operand predicates
7609 /* 6809 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7610 /* 6811 */ // Combiner Rule #240: zext_trunc
7611 /* 6811 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner125),
7612 /* 6814 */ // Label 336: @6814
7613 /* 6814 */ GIM_Try, /*On fail goto*//*Label 337*/ GIMT_Encode4(6835), // Rule ID 55 //
7614 /* 6819 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule51Enabled),
7615 /* 6822 */ // MIs[0] root
7616 /* 6822 */ // No operand predicates
7617 /* 6822 */ // MIs[0] second
7618 /* 6822 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7619 /* 6826 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ZEXT),
7620 /* 6830 */ // MIs[1] src
7621 /* 6830 */ // No operand predicates
7622 /* 6830 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7623 /* 6832 */ // Combiner Rule #51: zext_of_zext
7624 /* 6832 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner20),
7625 /* 6835 */ // Label 337: @6835
7626 /* 6835 */ GIM_Try, /*On fail goto*//*Label 338*/ GIMT_Encode4(6852), // Rule ID 410 //
7627 /* 6840 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule241Enabled),
7628 /* 6843 */ GIM_MIFlags, /*MI*/0, GIMT_Encode4(MachineInstr::NonNeg),
7629 /* 6849 */ // MIs[0] root
7630 /* 6849 */ // No operand predicates
7631 /* 6849 */ // MIs[0] x
7632 /* 6849 */ // No operand predicates
7633 /* 6849 */ // Combiner Rule #241: nneg_zext
7634 /* 6849 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner126),
7635 /* 6852 */ // Label 338: @6852
7636 /* 6852 */ GIM_Try, /*On fail goto*//*Label 339*/ GIMT_Encode4(6863), // Rule ID 199 //
7637 /* 6857 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule146Enabled),
7638 /* 6860 */ // MIs[0] dst
7639 /* 6860 */ // No operand predicates
7640 /* 6860 */ // MIs[0] src
7641 /* 6860 */ // No operand predicates
7642 /* 6860 */ // Combiner Rule #146: zext_trunc_fold
7643 /* 6860 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner67),
7644 /* 6863 */ // Label 339: @6863
7645 /* 6863 */ GIM_Try, /*On fail goto*//*Label 340*/ GIMT_Encode4(6874), // Rule ID 304 //
7646 /* 6868 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule197Enabled),
7647 /* 6871 */ // MIs[0] dst
7648 /* 6871 */ // No operand predicates
7649 /* 6871 */ // MIs[0] d.src
7650 /* 6871 */ // No operand predicates
7651 /* 6871 */ // Combiner Rule #197: constant_fold_cast_op @ [d[0]]
7652 /* 6871 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner95),
7653 /* 6874 */ // Label 340: @6874
7654 /* 6874 */ GIM_Reject,
7655 /* 6875 */ // Label 34: @6875
7656 /* 6875 */ GIM_Try, /*On fail goto*//*Label 341*/ GIMT_Encode4(6886), // Rule ID 236 //
7657 /* 6880 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule175Enabled),
7658 /* 6883 */ // Combiner Rule #175: shift_immed_chain; wip_match_opcode 'G_SHL'
7659 /* 6883 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner81),
7660 /* 6886 */ // Label 341: @6886
7661 /* 6886 */ GIM_Try, /*On fail goto*//*Label 342*/ GIMT_Encode4(6897), // Rule ID 241 //
7662 /* 6891 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule176Enabled),
7663 /* 6894 */ // Combiner Rule #176: shift_of_shifted_logic_chain; wip_match_opcode 'G_SHL'
7664 /* 6894 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner82),
7665 /* 6897 */ // Label 342: @6897
7666 /* 6897 */ GIM_Try, /*On fail goto*//*Label 343*/ GIMT_Encode4(6908), // Rule ID 279 //
7667 /* 6902 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
7668 /* 6905 */ // Combiner Rule #194: constant_fold_binop; wip_match_opcode 'G_SHL'
7669 /* 6905 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner92),
7670 /* 6908 */ // Label 343: @6908
7671 /* 6908 */ GIM_Try, /*On fail goto*//*Label 344*/ GIMT_Encode4(6919), // Rule ID 344 //
7672 /* 6913 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule215Enabled),
7673 /* 6916 */ // Combiner Rule #215: fold_binop_into_select; wip_match_opcode 'G_SHL'
7674 /* 6916 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner108),
7675 /* 6919 */ // Label 344: @6919
7676 /* 6919 */ GIM_Try, /*On fail goto*//*Label 345*/ GIMT_Encode4(6997), // Rule ID 264 //
7677 /* 6924 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule188Enabled),
7678 /* 6927 */ // MIs[0] dst
7679 /* 6927 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
7680 /* 6931 */ // MIs[0] binop_dst
7681 /* 6931 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7682 /* 6935 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
7683 /* 6939 */ // MIs[1] x
7684 /* 6939 */ // No operand predicates
7685 /* 6939 */ // MIs[1] c1
7686 /* 6939 */ // No operand predicates
7687 /* 6939 */ // MIs[0] c2
7688 /* 6939 */ // No operand predicates
7689 /* 6939 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner22),
7690 /* 6943 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7691 /* 6945 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
7692 /* 6948 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
7693 /* 6951 */ // Combiner Rule #188: commute_shift_add
7694 /* 6951 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SHL),
7695 /* 6954 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
7696 /* 6959 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
7697 /* 6963 */ GIR_RootToRootCopy, /*OpIdx*/2, // c2
7698 /* 6965 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SHL),
7699 /* 6969 */ GIR_AddTempRegister, /*InsnID*/1, /*TempRegID*/1, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
7700 /* 6974 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/2, // c1
7701 /* 6978 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/2, // c2
7702 /* 6982 */ GIR_BuildMI, /*InsnID*/2, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ADD),
7703 /* 6986 */ GIR_Copy, /*NewInsnID*/2, /*OldInsnID*/0, /*OpIdx*/0, // dst
7704 /* 6990 */ GIR_AddSimpleTempRegister, /*InsnID*/2, /*TempRegID*/0,
7705 /* 6993 */ GIR_AddSimpleTempRegister, /*InsnID*/2, /*TempRegID*/1,
7706 /* 6996 */ GIR_EraseRootFromParent_Done,
7707 /* 6997 */ // Label 345: @6997
7708 /* 6997 */ GIM_Try, /*On fail goto*//*Label 346*/ GIMT_Encode4(7075), // Rule ID 265 //
7709 /* 7002 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule189Enabled),
7710 /* 7005 */ // MIs[0] dst
7711 /* 7005 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
7712 /* 7009 */ // MIs[0] binop_dst
7713 /* 7009 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7714 /* 7013 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_OR),
7715 /* 7017 */ // MIs[1] x
7716 /* 7017 */ // No operand predicates
7717 /* 7017 */ // MIs[1] c1
7718 /* 7017 */ // No operand predicates
7719 /* 7017 */ // MIs[0] c2
7720 /* 7017 */ // No operand predicates
7721 /* 7017 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner22),
7722 /* 7021 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7723 /* 7023 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
7724 /* 7026 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
7725 /* 7029 */ // Combiner Rule #189: commute_shift_or
7726 /* 7029 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SHL),
7727 /* 7032 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
7728 /* 7037 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
7729 /* 7041 */ GIR_RootToRootCopy, /*OpIdx*/2, // c2
7730 /* 7043 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SHL),
7731 /* 7047 */ GIR_AddTempRegister, /*InsnID*/1, /*TempRegID*/1, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
7732 /* 7052 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/2, // c1
7733 /* 7056 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/2, // c2
7734 /* 7060 */ GIR_BuildMI, /*InsnID*/2, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR),
7735 /* 7064 */ GIR_Copy, /*NewInsnID*/2, /*OldInsnID*/0, /*OpIdx*/0, // dst
7736 /* 7068 */ GIR_AddSimpleTempRegister, /*InsnID*/2, /*TempRegID*/0,
7737 /* 7071 */ GIR_AddSimpleTempRegister, /*InsnID*/2, /*TempRegID*/1,
7738 /* 7074 */ GIR_EraseRootFromParent_Done,
7739 /* 7075 */ // Label 346: @7075
7740 /* 7075 */ GIM_Try, /*On fail goto*//*Label 347*/ GIMT_Encode4(7110), // Rule ID 48 //
7741 /* 7080 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule44Enabled),
7742 /* 7083 */ GIM_MIFlags, /*MI*/0, GIMT_Encode4(MachineInstr::NoSWrap),
7743 /* 7089 */ // MIs[0] root
7744 /* 7089 */ // No operand predicates
7745 /* 7089 */ // MIs[0] left
7746 /* 7089 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7747 /* 7093 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_VSCALE),
7748 /* 7097 */ // MIs[1] imm
7749 /* 7097 */ // No operand predicates
7750 /* 7097 */ // MIs[0] x
7751 /* 7097 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
7752 /* 7101 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
7753 /* 7105 */ // MIs[2] imm1
7754 /* 7105 */ // No operand predicates
7755 /* 7105 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
7756 /* 7107 */ // Combiner Rule #44: shl_of_vscale
7757 /* 7107 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner16),
7758 /* 7110 */ // Label 347: @7110
7759 /* 7110 */ GIM_Try, /*On fail goto*//*Label 348*/ GIMT_Encode4(7131), // Rule ID 90 //
7760 /* 7115 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule79Enabled),
7761 /* 7118 */ // MIs[0] dst
7762 /* 7118 */ // No operand predicates
7763 /* 7118 */ // MIs[0] __binop_left_undef_to_zero_match_0.x
7764 /* 7118 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7765 /* 7122 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
7766 /* 7126 */ // MIs[0] __binop_left_undef_to_zero_match_0.y
7767 /* 7126 */ // No operand predicates
7768 /* 7126 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7769 /* 7128 */ // Combiner Rule #79: binop_left_undef_to_zero @ [__binop_left_undef_to_zero_match_0[0]]
7770 /* 7128 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner33),
7771 /* 7131 */ // Label 348: @7131
7772 /* 7131 */ GIM_Try, /*On fail goto*//*Label 349*/ GIMT_Encode4(7171), // Rule ID 132 //
7773 /* 7136 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
7774 /* 7139 */ // MIs[0] dst
7775 /* 7139 */ // No operand predicates
7776 /* 7139 */ // MIs[0] zero
7777 /* 7139 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7778 /* 7143 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
7779 /* 7147 */ // MIs[1] Operand 1
7780 /* 7147 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0),
7781 /* 7158 */ // MIs[0] rhs
7782 /* 7158 */ // No operand predicates
7783 /* 7158 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7784 /* 7163 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7785 /* 7165 */ // Combiner Rule #93: binop_left_to_zero @ [__binop_left_to_zero_match_0[0]]
7786 /* 7165 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7787 /* 7170 */ GIR_EraseRootFromParent_Done,
7788 /* 7171 */ // Label 349: @7171
7789 /* 7171 */ GIM_Try, /*On fail goto*//*Label 350*/ GIMT_Encode4(7192), // Rule ID 93 //
7790 /* 7176 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule80Enabled),
7791 /* 7179 */ // MIs[0] dst
7792 /* 7179 */ // No operand predicates
7793 /* 7179 */ // MIs[0] __binop_right_undef_to_undef_match_0.x
7794 /* 7179 */ // No operand predicates
7795 /* 7179 */ // MIs[0] __binop_right_undef_to_undef_match_0.y
7796 /* 7179 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
7797 /* 7183 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
7798 /* 7187 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7799 /* 7189 */ // Combiner Rule #80: binop_right_undef_to_undef @ [__binop_right_undef_to_undef_match_0[0]]
7800 /* 7189 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner35),
7801 /* 7192 */ // Label 350: @7192
7802 /* 7192 */ GIM_Try, /*On fail goto*//*Label 351*/ GIMT_Encode4(7215), // Rule ID 122 //
7803 /* 7197 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled),
7804 /* 7200 */ // MIs[0] dst
7805 /* 7200 */ // No operand predicates
7806 /* 7200 */ // MIs[0] lhs
7807 /* 7200 */ // No operand predicates
7808 /* 7200 */ // MIs[0] Operand 2
7809 /* 7200 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
7810 /* 7204 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7811 /* 7209 */ // Combiner Rule #90: right_identity_zero @ [__right_identity_zero_match_0[4]]
7812 /* 7209 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7813 /* 7214 */ GIR_EraseRootFromParent_Done,
7814 /* 7215 */ // Label 351: @7215
7815 /* 7215 */ GIM_Try, /*On fail goto*//*Label 352*/ GIMT_Encode4(7226), // Rule ID 165 //
7816 /* 7220 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule114Enabled),
7817 /* 7223 */ // MIs[0] root
7818 /* 7223 */ // No operand predicates
7819 /* 7223 */ // MIs[0] mi.shifted
7820 /* 7223 */ // No operand predicates
7821 /* 7223 */ // MIs[0] mi.amt
7822 /* 7223 */ // No operand predicates
7823 /* 7223 */ // Combiner Rule #114: shifts_too_big @ [mi[0]]
7824 /* 7223 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner47),
7825 /* 7226 */ // Label 352: @7226
7826 /* 7226 */ GIM_Try, /*On fail goto*//*Label 353*/ GIMT_Encode4(7237), // Rule ID 181 //
7827 /* 7231 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule128Enabled),
7828 /* 7234 */ // MIs[0] dst
7829 /* 7234 */ // No operand predicates
7830 /* 7234 */ // MIs[0] src0
7831 /* 7234 */ // No operand predicates
7832 /* 7234 */ // MIs[0] src1
7833 /* 7234 */ // No operand predicates
7834 /* 7234 */ // Combiner Rule #128: reduce_shl_of_extend
7835 /* 7234 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner58),
7836 /* 7237 */ // Label 353: @7237
7837 /* 7237 */ GIM_Reject,
7838 /* 7238 */ // Label 35: @7238
7839 /* 7238 */ GIM_Try, /*On fail goto*//*Label 354*/ GIMT_Encode4(7249), // Rule ID 238 //
7840 /* 7243 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule175Enabled),
7841 /* 7246 */ // Combiner Rule #175: shift_immed_chain; wip_match_opcode 'G_LSHR'
7842 /* 7246 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner81),
7843 /* 7249 */ // Label 354: @7249
7844 /* 7249 */ GIM_Try, /*On fail goto*//*Label 355*/ GIMT_Encode4(7260), // Rule ID 243 //
7845 /* 7254 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule176Enabled),
7846 /* 7257 */ // Combiner Rule #176: shift_of_shifted_logic_chain; wip_match_opcode 'G_LSHR'
7847 /* 7257 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner82),
7848 /* 7260 */ // Label 355: @7260
7849 /* 7260 */ GIM_Try, /*On fail goto*//*Label 356*/ GIMT_Encode4(7271), // Rule ID 276 //
7850 /* 7265 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
7851 /* 7268 */ // Combiner Rule #194: constant_fold_binop; wip_match_opcode 'G_LSHR'
7852 /* 7268 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner92),
7853 /* 7271 */ // Label 356: @7271
7854 /* 7271 */ GIM_Try, /*On fail goto*//*Label 357*/ GIMT_Encode4(7282), // Rule ID 342 //
7855 /* 7276 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule215Enabled),
7856 /* 7279 */ // Combiner Rule #215: fold_binop_into_select; wip_match_opcode 'G_LSHR'
7857 /* 7279 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner108),
7858 /* 7282 */ // Label 357: @7282
7859 /* 7282 */ GIM_Try, /*On fail goto*//*Label 358*/ GIMT_Encode4(7371), // Rule ID 450 //
7860 /* 7287 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule276Enabled),
7861 /* 7290 */ // MIs[0] dst
7862 /* 7290 */ // No operand predicates
7863 /* 7290 */ // MIs[0] sum
7864 /* 7290 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7865 /* 7294 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
7866 /* 7298 */ // MIs[1] inner
7867 /* 7298 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
7868 /* 7302 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ADD),
7869 /* 7306 */ // MIs[2] ext1
7870 /* 7306 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/2, /*OpIdx*/1, // MIs[3]
7871 /* 7310 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_ZEXT),
7872 /* 7314 */ // MIs[3] x
7873 /* 7314 */ GIM_RecordRegType, /*MI*/3, /*Op*/1, /*TempTypeIdx*/255,
7874 /* 7318 */ // MIs[2] ext2
7875 /* 7318 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/4, /*MI*/2, /*OpIdx*/2, // MIs[4]
7876 /* 7322 */ GIM_CheckOpcode, /*MI*/4, GIMT_Encode2(TargetOpcode::G_ZEXT),
7877 /* 7326 */ // MIs[4] y
7878 /* 7326 */ // No operand predicates
7879 /* 7326 */ // MIs[1] Operand 2
7880 /* 7326 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/2, 1,
7881 /* 7330 */ // MIs[0] Operand 2
7882 /* 7330 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 1,
7883 /* 7334 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner30),
7884 /* 7338 */ GIM_CheckIsSafeToFold, /*NumInsns*/4,
7885 /* 7340 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
7886 /* 7343 */ // Combiner Rule #276: avgceil_u_match
7887 /* 7343 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UAVGCEIL),
7888 /* 7346 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
7889 /* 7351 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/3, /*OpIdx*/1, // x
7890 /* 7355 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/4, /*OpIdx*/1, // y
7891 /* 7359 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ZEXT),
7892 /* 7363 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
7893 /* 7367 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
7894 /* 7370 */ GIR_EraseRootFromParent_Done,
7895 /* 7371 */ // Label 358: @7371
7896 /* 7371 */ GIM_Try, /*On fail goto*//*Label 359*/ GIMT_Encode4(7448), // Rule ID 448 //
7897 /* 7376 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule274Enabled),
7898 /* 7379 */ // MIs[0] dst
7899 /* 7379 */ // No operand predicates
7900 /* 7379 */ // MIs[0] sum
7901 /* 7379 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7902 /* 7383 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
7903 /* 7387 */ // MIs[1] ext1
7904 /* 7387 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
7905 /* 7391 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ZEXT),
7906 /* 7395 */ // MIs[2] x
7907 /* 7395 */ GIM_RecordRegType, /*MI*/2, /*Op*/1, /*TempTypeIdx*/255,
7908 /* 7399 */ // MIs[1] ext2
7909 /* 7399 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/1, /*OpIdx*/2, // MIs[3]
7910 /* 7403 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_ZEXT),
7911 /* 7407 */ // MIs[3] y
7912 /* 7407 */ // No operand predicates
7913 /* 7407 */ // MIs[0] Operand 2
7914 /* 7407 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 1,
7915 /* 7411 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner28),
7916 /* 7415 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
7917 /* 7417 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
7918 /* 7420 */ // Combiner Rule #274: avgfloor_u_match
7919 /* 7420 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UAVGFLOOR),
7920 /* 7423 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
7921 /* 7428 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // x
7922 /* 7432 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/3, /*OpIdx*/1, // y
7923 /* 7436 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ZEXT),
7924 /* 7440 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
7925 /* 7444 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
7926 /* 7447 */ GIR_EraseRootFromParent_Done,
7927 /* 7448 */ // Label 359: @7448
7928 /* 7448 */ GIM_Try, /*On fail goto*//*Label 360*/ GIMT_Encode4(7477), // Rule ID 433 //
7929 /* 7453 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule262Enabled),
7930 /* 7456 */ // MIs[0] dst
7931 /* 7456 */ // No operand predicates
7932 /* 7456 */ // MIs[0] d2
7933 /* 7456 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7934 /* 7460 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_TRUNC),
7935 /* 7464 */ // MIs[1] d1
7936 /* 7464 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
7937 /* 7468 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_LSHR),
7938 /* 7472 */ // MIs[2] x
7939 /* 7472 */ // No operand predicates
7940 /* 7472 */ // MIs[2] y
7941 /* 7472 */ // No operand predicates
7942 /* 7472 */ // MIs[0] z
7943 /* 7472 */ // No operand predicates
7944 /* 7472 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
7945 /* 7474 */ // Combiner Rule #262: lshr_of_trunc_of_lshr
7946 /* 7474 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner145),
7947 /* 7477 */ // Label 360: @7477
7948 /* 7477 */ GIM_Try, /*On fail goto*//*Label 361*/ GIMT_Encode4(7517), // Rule ID 133 //
7949 /* 7482 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
7950 /* 7485 */ // MIs[0] dst
7951 /* 7485 */ // No operand predicates
7952 /* 7485 */ // MIs[0] zero
7953 /* 7485 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7954 /* 7489 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
7955 /* 7493 */ // MIs[1] Operand 1
7956 /* 7493 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0),
7957 /* 7504 */ // MIs[0] rhs
7958 /* 7504 */ // No operand predicates
7959 /* 7504 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7960 /* 7509 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7961 /* 7511 */ // Combiner Rule #93: binop_left_to_zero @ [__binop_left_to_zero_match_0[1]]
7962 /* 7511 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7963 /* 7516 */ GIR_EraseRootFromParent_Done,
7964 /* 7517 */ // Label 361: @7517
7965 /* 7517 */ GIM_Try, /*On fail goto*//*Label 362*/ GIMT_Encode4(7538), // Rule ID 95 //
7966 /* 7522 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule80Enabled),
7967 /* 7525 */ // MIs[0] dst
7968 /* 7525 */ // No operand predicates
7969 /* 7525 */ // MIs[0] __binop_right_undef_to_undef_match_0.x
7970 /* 7525 */ // No operand predicates
7971 /* 7525 */ // MIs[0] __binop_right_undef_to_undef_match_0.y
7972 /* 7525 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
7973 /* 7529 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
7974 /* 7533 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7975 /* 7535 */ // Combiner Rule #80: binop_right_undef_to_undef @ [__binop_right_undef_to_undef_match_0[2]]
7976 /* 7535 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner35),
7977 /* 7538 */ // Label 362: @7538
7978 /* 7538 */ GIM_Try, /*On fail goto*//*Label 363*/ GIMT_Encode4(7561), // Rule ID 124 //
7979 /* 7543 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled),
7980 /* 7546 */ // MIs[0] dst
7981 /* 7546 */ // No operand predicates
7982 /* 7546 */ // MIs[0] lhs
7983 /* 7546 */ // No operand predicates
7984 /* 7546 */ // MIs[0] Operand 2
7985 /* 7546 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
7986 /* 7550 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7987 /* 7555 */ // Combiner Rule #90: right_identity_zero @ [__right_identity_zero_match_0[6]]
7988 /* 7555 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7989 /* 7560 */ GIR_EraseRootFromParent_Done,
7990 /* 7561 */ // Label 363: @7561
7991 /* 7561 */ GIM_Try, /*On fail goto*//*Label 364*/ GIMT_Encode4(7572), // Rule ID 167 //
7992 /* 7566 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule114Enabled),
7993 /* 7569 */ // MIs[0] root
7994 /* 7569 */ // No operand predicates
7995 /* 7569 */ // MIs[0] mi.shifted
7996 /* 7569 */ // No operand predicates
7997 /* 7569 */ // MIs[0] mi.amt
7998 /* 7569 */ // No operand predicates
7999 /* 7569 */ // Combiner Rule #114: shifts_too_big @ [mi[2]]
8000 /* 7569 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner47),
8001 /* 7572 */ // Label 364: @7572
8002 /* 7572 */ GIM_Try, /*On fail goto*//*Label 365*/ GIMT_Encode4(7583), // Rule ID 269 //
8003 /* 7577 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule192Enabled),
8004 /* 7580 */ // MIs[0] dst
8005 /* 7580 */ // No operand predicates
8006 /* 7580 */ // MIs[0] root.src
8007 /* 7580 */ // No operand predicates
8008 /* 7580 */ // MIs[0] root.amt
8009 /* 7580 */ // No operand predicates
8010 /* 7580 */ // Combiner Rule #192: bitfield_extract_from_shr @ [root[1]]
8011 /* 7580 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner90),
8012 /* 7583 */ // Label 365: @7583
8013 /* 7583 */ GIM_Try, /*On fail goto*//*Label 366*/ GIMT_Encode4(7594), // Rule ID 271 //
8014 /* 7588 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule193Enabled),
8015 /* 7591 */ // MIs[0] dst
8016 /* 7591 */ // No operand predicates
8017 /* 7591 */ // MIs[0] root.src
8018 /* 7591 */ // No operand predicates
8019 /* 7591 */ // MIs[0] root.amt
8020 /* 7591 */ // No operand predicates
8021 /* 7591 */ // Combiner Rule #193: bitfield_extract_from_shr_and @ [root[1]]
8022 /* 7591 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner91),
8023 /* 7594 */ // Label 366: @7594
8024 /* 7594 */ GIM_Reject,
8025 /* 7595 */ // Label 36: @7595
8026 /* 7595 */ GIM_Try, /*On fail goto*//*Label 367*/ GIMT_Encode4(7606), // Rule ID 237 //
8027 /* 7600 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule175Enabled),
8028 /* 7603 */ // Combiner Rule #175: shift_immed_chain; wip_match_opcode 'G_ASHR'
8029 /* 7603 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner81),
8030 /* 7606 */ // Label 367: @7606
8031 /* 7606 */ GIM_Try, /*On fail goto*//*Label 368*/ GIMT_Encode4(7617), // Rule ID 242 //
8032 /* 7611 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule176Enabled),
8033 /* 7614 */ // Combiner Rule #176: shift_of_shifted_logic_chain; wip_match_opcode 'G_ASHR'
8034 /* 7614 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner82),
8035 /* 7617 */ // Label 368: @7617
8036 /* 7617 */ GIM_Try, /*On fail goto*//*Label 369*/ GIMT_Encode4(7628), // Rule ID 275 //
8037 /* 7622 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
8038 /* 7625 */ // Combiner Rule #194: constant_fold_binop; wip_match_opcode 'G_ASHR'
8039 /* 7625 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner92),
8040 /* 7628 */ // Label 369: @7628
8041 /* 7628 */ GIM_Try, /*On fail goto*//*Label 370*/ GIMT_Encode4(7639), // Rule ID 343 //
8042 /* 7633 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule215Enabled),
8043 /* 7636 */ // Combiner Rule #215: fold_binop_into_select; wip_match_opcode 'G_ASHR'
8044 /* 7636 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner108),
8045 /* 7639 */ // Label 370: @7639
8046 /* 7639 */ GIM_Try, /*On fail goto*//*Label 371*/ GIMT_Encode4(7728), // Rule ID 451 //
8047 /* 7644 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule277Enabled),
8048 /* 7647 */ // MIs[0] dst
8049 /* 7647 */ // No operand predicates
8050 /* 7647 */ // MIs[0] sum
8051 /* 7647 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8052 /* 7651 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
8053 /* 7655 */ // MIs[1] inner
8054 /* 7655 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
8055 /* 7659 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ADD),
8056 /* 7663 */ // MIs[2] ext1
8057 /* 7663 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/2, /*OpIdx*/1, // MIs[3]
8058 /* 7667 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_SEXT),
8059 /* 7671 */ // MIs[3] x
8060 /* 7671 */ GIM_RecordRegType, /*MI*/3, /*Op*/1, /*TempTypeIdx*/255,
8061 /* 7675 */ // MIs[2] ext2
8062 /* 7675 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/4, /*MI*/2, /*OpIdx*/2, // MIs[4]
8063 /* 7679 */ GIM_CheckOpcode, /*MI*/4, GIMT_Encode2(TargetOpcode::G_SEXT),
8064 /* 7683 */ // MIs[4] y
8065 /* 7683 */ // No operand predicates
8066 /* 7683 */ // MIs[1] Operand 2
8067 /* 7683 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/2, 1,
8068 /* 7687 */ // MIs[0] Operand 2
8069 /* 7687 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 1,
8070 /* 7691 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner31),
8071 /* 7695 */ GIM_CheckIsSafeToFold, /*NumInsns*/4,
8072 /* 7697 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
8073 /* 7700 */ // Combiner Rule #277: avgceil_s_match
8074 /* 7700 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SAVGCEIL),
8075 /* 7703 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
8076 /* 7708 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/3, /*OpIdx*/1, // x
8077 /* 7712 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/4, /*OpIdx*/1, // y
8078 /* 7716 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SEXT),
8079 /* 7720 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
8080 /* 7724 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
8081 /* 7727 */ GIR_EraseRootFromParent_Done,
8082 /* 7728 */ // Label 371: @7728
8083 /* 7728 */ GIM_Try, /*On fail goto*//*Label 372*/ GIMT_Encode4(7805), // Rule ID 449 //
8084 /* 7733 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule275Enabled),
8085 /* 7736 */ // MIs[0] dst
8086 /* 7736 */ // No operand predicates
8087 /* 7736 */ // MIs[0] sum
8088 /* 7736 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8089 /* 7740 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
8090 /* 7744 */ // MIs[1] ext1
8091 /* 7744 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
8092 /* 7748 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SEXT),
8093 /* 7752 */ // MIs[2] x
8094 /* 7752 */ GIM_RecordRegType, /*MI*/2, /*Op*/1, /*TempTypeIdx*/255,
8095 /* 7756 */ // MIs[1] ext2
8096 /* 7756 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/1, /*OpIdx*/2, // MIs[3]
8097 /* 7760 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_SEXT),
8098 /* 7764 */ // MIs[3] y
8099 /* 7764 */ // No operand predicates
8100 /* 7764 */ // MIs[0] Operand 2
8101 /* 7764 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 1,
8102 /* 7768 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner29),
8103 /* 7772 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
8104 /* 7774 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
8105 /* 7777 */ // Combiner Rule #275: avgfloor_s_match
8106 /* 7777 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SAVGFLOOR),
8107 /* 7780 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
8108 /* 7785 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // x
8109 /* 7789 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/3, /*OpIdx*/1, // y
8110 /* 7793 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SEXT),
8111 /* 7797 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
8112 /* 7801 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
8113 /* 7804 */ GIR_EraseRootFromParent_Done,
8114 /* 7805 */ // Label 372: @7805
8115 /* 7805 */ GIM_Try, /*On fail goto*//*Label 373*/ GIMT_Encode4(7845), // Rule ID 134 //
8116 /* 7810 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
8117 /* 7813 */ // MIs[0] dst
8118 /* 7813 */ // No operand predicates
8119 /* 7813 */ // MIs[0] zero
8120 /* 7813 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8121 /* 7817 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
8122 /* 7821 */ // MIs[1] Operand 1
8123 /* 7821 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0),
8124 /* 7832 */ // MIs[0] rhs
8125 /* 7832 */ // No operand predicates
8126 /* 7832 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8127 /* 7837 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8128 /* 7839 */ // Combiner Rule #93: binop_left_to_zero @ [__binop_left_to_zero_match_0[2]]
8129 /* 7839 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8130 /* 7844 */ GIR_EraseRootFromParent_Done,
8131 /* 7845 */ // Label 373: @7845
8132 /* 7845 */ GIM_Try, /*On fail goto*//*Label 374*/ GIMT_Encode4(7866), // Rule ID 94 //
8133 /* 7850 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule80Enabled),
8134 /* 7853 */ // MIs[0] dst
8135 /* 7853 */ // No operand predicates
8136 /* 7853 */ // MIs[0] __binop_right_undef_to_undef_match_0.x
8137 /* 7853 */ // No operand predicates
8138 /* 7853 */ // MIs[0] __binop_right_undef_to_undef_match_0.y
8139 /* 7853 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
8140 /* 7857 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
8141 /* 7861 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8142 /* 7863 */ // Combiner Rule #80: binop_right_undef_to_undef @ [__binop_right_undef_to_undef_match_0[1]]
8143 /* 7863 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner35),
8144 /* 7866 */ // Label 374: @7866
8145 /* 7866 */ GIM_Try, /*On fail goto*//*Label 375*/ GIMT_Encode4(7889), // Rule ID 123 //
8146 /* 7871 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled),
8147 /* 7874 */ // MIs[0] dst
8148 /* 7874 */ // No operand predicates
8149 /* 7874 */ // MIs[0] lhs
8150 /* 7874 */ // No operand predicates
8151 /* 7874 */ // MIs[0] Operand 2
8152 /* 7874 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
8153 /* 7878 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8154 /* 7883 */ // Combiner Rule #90: right_identity_zero @ [__right_identity_zero_match_0[5]]
8155 /* 7883 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8156 /* 7888 */ GIR_EraseRootFromParent_Done,
8157 /* 7889 */ // Label 375: @7889
8158 /* 7889 */ GIM_Try, /*On fail goto*//*Label 376*/ GIMT_Encode4(7900), // Rule ID 166 //
8159 /* 7894 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule114Enabled),
8160 /* 7897 */ // MIs[0] root
8161 /* 7897 */ // No operand predicates
8162 /* 7897 */ // MIs[0] mi.shifted
8163 /* 7897 */ // No operand predicates
8164 /* 7897 */ // MIs[0] mi.amt
8165 /* 7897 */ // No operand predicates
8166 /* 7897 */ // Combiner Rule #114: shifts_too_big @ [mi[1]]
8167 /* 7897 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner47),
8168 /* 7900 */ // Label 376: @7900
8169 /* 7900 */ GIM_Try, /*On fail goto*//*Label 377*/ GIMT_Encode4(7911), // Rule ID 178 //
8170 /* 7905 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule125Enabled),
8171 /* 7908 */ // MIs[0] dst
8172 /* 7908 */ // No operand predicates
8173 /* 7908 */ // MIs[0] src1
8174 /* 7908 */ // No operand predicates
8175 /* 7908 */ // MIs[0] src2
8176 /* 7908 */ // No operand predicates
8177 /* 7908 */ // Combiner Rule #125: shl_ashr_to_sext_inreg
8178 /* 7908 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner56),
8179 /* 7911 */ // Label 377: @7911
8180 /* 7911 */ GIM_Try, /*On fail goto*//*Label 378*/ GIMT_Encode4(7922), // Rule ID 268 //
8181 /* 7916 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule192Enabled),
8182 /* 7919 */ // MIs[0] dst
8183 /* 7919 */ // No operand predicates
8184 /* 7919 */ // MIs[0] root.src
8185 /* 7919 */ // No operand predicates
8186 /* 7919 */ // MIs[0] root.amt
8187 /* 7919 */ // No operand predicates
8188 /* 7919 */ // Combiner Rule #192: bitfield_extract_from_shr @ [root[0]]
8189 /* 7919 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner90),
8190 /* 7922 */ // Label 378: @7922
8191 /* 7922 */ GIM_Try, /*On fail goto*//*Label 379*/ GIMT_Encode4(7933), // Rule ID 270 //
8192 /* 7927 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule193Enabled),
8193 /* 7930 */ // MIs[0] dst
8194 /* 7930 */ // No operand predicates
8195 /* 7930 */ // MIs[0] root.src
8196 /* 7930 */ // No operand predicates
8197 /* 7930 */ // MIs[0] root.amt
8198 /* 7930 */ // No operand predicates
8199 /* 7930 */ // Combiner Rule #193: bitfield_extract_from_shr_and @ [root[0]]
8200 /* 7930 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner91),
8201 /* 7933 */ // Label 379: @7933
8202 /* 7933 */ GIM_Reject,
8203 /* 7934 */ // Label 37: @7934
8204 /* 7934 */ GIM_Try, /*On fail goto*//*Label 380*/ GIMT_Encode4(7954), // Rule ID 255 //
8205 /* 7939 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule182Enabled),
8206 /* 7942 */ // MIs[0] x
8207 /* 7942 */ // No operand predicates
8208 /* 7942 */ // MIs[0] y
8209 /* 7942 */ // No operand predicates
8210 /* 7942 */ // MIs[0] z
8211 /* 7942 */ // No operand predicates
8212 /* 7942 */ // MIs[0] Operand 3
8213 /* 7942 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/3, 0,
8214 /* 7946 */ // Combiner Rule #182: funnel_shift_left_zero
8215 /* 7946 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::COPY),
8216 /* 7949 */ GIR_RootToRootCopy, /*OpIdx*/0, // x
8217 /* 7951 */ GIR_RootToRootCopy, /*OpIdx*/1, // y
8218 /* 7953 */ GIR_EraseRootFromParent_Done,
8219 /* 7954 */ // Label 380: @7954
8220 /* 7954 */ GIM_Try, /*On fail goto*//*Label 381*/ GIMT_Encode4(7965), // Rule ID 252 //
8221 /* 7959 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule180Enabled),
8222 /* 7962 */ // MIs[0] dst
8223 /* 7962 */ // No operand predicates
8224 /* 7962 */ // MIs[0] root.x
8225 /* 7962 */ // No operand predicates
8226 /* 7962 */ // MIs[0] root.y
8227 /* 7962 */ // No operand predicates
8228 /* 7962 */ // MIs[0] root.amt
8229 /* 7962 */ // No operand predicates
8230 /* 7962 */ // Combiner Rule #180: funnel_shift_to_rotate @ [root[0]]
8231 /* 7962 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner86),
8232 /* 7965 */ // Label 381: @7965
8233 /* 7965 */ GIM_Try, /*On fail goto*//*Label 382*/ GIMT_Encode4(7976), // Rule ID 256 //
8234 /* 7970 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule183Enabled),
8235 /* 7973 */ // MIs[0] dst
8236 /* 7973 */ // No operand predicates
8237 /* 7973 */ // MIs[0] root.x
8238 /* 7973 */ // No operand predicates
8239 /* 7973 */ // MIs[0] root.y
8240 /* 7973 */ // No operand predicates
8241 /* 7973 */ // MIs[0] root.amt
8242 /* 7973 */ // No operand predicates
8243 /* 7973 */ // Combiner Rule #183: funnel_shift_overshift @ [root[0]]
8244 /* 7973 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner87),
8245 /* 7976 */ // Label 382: @7976
8246 /* 7976 */ GIM_Reject,
8247 /* 7977 */ // Label 38: @7977
8248 /* 7977 */ GIM_Try, /*On fail goto*//*Label 383*/ GIMT_Encode4(7997), // Rule ID 254 //
8249 /* 7982 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule181Enabled),
8250 /* 7985 */ // MIs[0] x
8251 /* 7985 */ // No operand predicates
8252 /* 7985 */ // MIs[0] y
8253 /* 7985 */ // No operand predicates
8254 /* 7985 */ // MIs[0] z
8255 /* 7985 */ // No operand predicates
8256 /* 7985 */ // MIs[0] Operand 3
8257 /* 7985 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/3, 0,
8258 /* 7989 */ // Combiner Rule #181: funnel_shift_right_zero
8259 /* 7989 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::COPY),
8260 /* 7992 */ GIR_RootToRootCopy, /*OpIdx*/0, // x
8261 /* 7994 */ GIR_RootToRootCopy, /*OpIdx*/2, // z
8262 /* 7996 */ GIR_EraseRootFromParent_Done,
8263 /* 7997 */ // Label 383: @7997
8264 /* 7997 */ GIM_Try, /*On fail goto*//*Label 384*/ GIMT_Encode4(8008), // Rule ID 253 //
8265 /* 8002 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule180Enabled),
8266 /* 8005 */ // MIs[0] dst
8267 /* 8005 */ // No operand predicates
8268 /* 8005 */ // MIs[0] root.x
8269 /* 8005 */ // No operand predicates
8270 /* 8005 */ // MIs[0] root.y
8271 /* 8005 */ // No operand predicates
8272 /* 8005 */ // MIs[0] root.amt
8273 /* 8005 */ // No operand predicates
8274 /* 8005 */ // Combiner Rule #180: funnel_shift_to_rotate @ [root[1]]
8275 /* 8005 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner86),
8276 /* 8008 */ // Label 384: @8008
8277 /* 8008 */ GIM_Try, /*On fail goto*//*Label 385*/ GIMT_Encode4(8019), // Rule ID 257 //
8278 /* 8013 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule183Enabled),
8279 /* 8016 */ // MIs[0] dst
8280 /* 8016 */ // No operand predicates
8281 /* 8016 */ // MIs[0] root.x
8282 /* 8016 */ // No operand predicates
8283 /* 8016 */ // MIs[0] root.y
8284 /* 8016 */ // No operand predicates
8285 /* 8016 */ // MIs[0] root.amt
8286 /* 8016 */ // No operand predicates
8287 /* 8016 */ // Combiner Rule #183: funnel_shift_overshift @ [root[1]]
8288 /* 8016 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner87),
8289 /* 8019 */ // Label 385: @8019
8290 /* 8019 */ GIM_Reject,
8291 /* 8020 */ // Label 39: @8020
8292 /* 8020 */ GIM_Try, /*On fail goto*//*Label 386*/ GIMT_Encode4(8043), // Rule ID 127 //
8293 /* 8025 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled),
8294 /* 8028 */ // MIs[0] dst
8295 /* 8028 */ // No operand predicates
8296 /* 8028 */ // MIs[0] lhs
8297 /* 8028 */ // No operand predicates
8298 /* 8028 */ // MIs[0] Operand 2
8299 /* 8028 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
8300 /* 8032 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8301 /* 8037 */ // Combiner Rule #90: right_identity_zero @ [__right_identity_zero_match_0[9]]
8302 /* 8037 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8303 /* 8042 */ GIR_EraseRootFromParent_Done,
8304 /* 8043 */ // Label 386: @8043
8305 /* 8043 */ GIM_Reject,
8306 /* 8044 */ // Label 40: @8044
8307 /* 8044 */ GIM_Try, /*On fail goto*//*Label 387*/ GIMT_Encode4(8067), // Rule ID 126 //
8308 /* 8049 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled),
8309 /* 8052 */ // MIs[0] dst
8310 /* 8052 */ // No operand predicates
8311 /* 8052 */ // MIs[0] lhs
8312 /* 8052 */ // No operand predicates
8313 /* 8052 */ // MIs[0] Operand 2
8314 /* 8052 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
8315 /* 8056 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8316 /* 8061 */ // Combiner Rule #90: right_identity_zero @ [__right_identity_zero_match_0[8]]
8317 /* 8061 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8318 /* 8066 */ GIR_EraseRootFromParent_Done,
8319 /* 8067 */ // Label 387: @8067
8320 /* 8067 */ GIM_Reject,
8321 /* 8068 */ // Label 41: @8068
8322 /* 8068 */ GIM_Try, /*On fail goto*//*Label 388*/ GIMT_Encode4(8079), // Rule ID 171 //
8323 /* 8073 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule118Enabled),
8324 /* 8076 */ // MIs[0] root
8325 /* 8076 */ // No operand predicates
8326 /* 8076 */ // MIs[0] pred
8327 /* 8076 */ // No operand predicates
8328 /* 8076 */ // MIs[0] lhs
8329 /* 8076 */ // No operand predicates
8330 /* 8076 */ // MIs[0] rhs
8331 /* 8076 */ // No operand predicates
8332 /* 8076 */ // Combiner Rule #118: canonicalize_icmp
8333 /* 8076 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner51),
8334 /* 8079 */ // Label 388: @8079
8335 /* 8079 */ GIM_Try, /*On fail goto*//*Label 389*/ GIMT_Encode4(8090), // Rule ID 173 //
8336 /* 8084 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule120Enabled),
8337 /* 8087 */ // MIs[0] dst
8338 /* 8087 */ // No operand predicates
8339 /* 8087 */ // MIs[0] pred
8340 /* 8087 */ // No operand predicates
8341 /* 8087 */ // MIs[0] src1
8342 /* 8087 */ // No operand predicates
8343 /* 8087 */ // MIs[0] src2
8344 /* 8087 */ // No operand predicates
8345 /* 8087 */ // Combiner Rule #120: icmp_to_true_false_known_bits
8346 /* 8087 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner53),
8347 /* 8090 */ // Label 389: @8090
8348 /* 8090 */ GIM_Try, /*On fail goto*//*Label 390*/ GIMT_Encode4(8101), // Rule ID 174 //
8349 /* 8095 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule121Enabled),
8350 /* 8098 */ // MIs[0] dst
8351 /* 8098 */ // No operand predicates
8352 /* 8098 */ // MIs[0] pred
8353 /* 8098 */ // No operand predicates
8354 /* 8098 */ // MIs[0] src1
8355 /* 8098 */ // No operand predicates
8356 /* 8098 */ // MIs[0] src2
8357 /* 8098 */ // No operand predicates
8358 /* 8098 */ // Combiner Rule #121: icmp_to_lhs_known_bits
8359 /* 8098 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner54),
8360 /* 8101 */ // Label 390: @8101
8361 /* 8101 */ GIM_Try, /*On fail goto*//*Label 391*/ GIMT_Encode4(8112), // Rule ID 177 //
8362 /* 8106 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule124Enabled),
8363 /* 8109 */ // MIs[0] dst
8364 /* 8109 */ // No operand predicates
8365 /* 8109 */ // MIs[0] pred
8366 /* 8109 */ // No operand predicates
8367 /* 8109 */ // MIs[0] src1
8368 /* 8109 */ // No operand predicates
8369 /* 8109 */ // MIs[0] src2
8370 /* 8109 */ // No operand predicates
8371 /* 8109 */ // Combiner Rule #124: redundant_binop_in_equality
8372 /* 8109 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner55),
8373 /* 8112 */ // Label 391: @8112
8374 /* 8112 */ GIM_Reject,
8375 /* 8113 */ // Label 42: @8113
8376 /* 8113 */ GIM_Try, /*On fail goto*//*Label 392*/ GIMT_Encode4(8124), // Rule ID 172 //
8377 /* 8118 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule119Enabled),
8378 /* 8121 */ // MIs[0] root
8379 /* 8121 */ // No operand predicates
8380 /* 8121 */ // MIs[0] pred
8381 /* 8121 */ // No operand predicates
8382 /* 8121 */ // MIs[0] lhs
8383 /* 8121 */ // No operand predicates
8384 /* 8121 */ // MIs[0] rhs
8385 /* 8121 */ // No operand predicates
8386 /* 8121 */ // Combiner Rule #119: canonicalize_fcmp
8387 /* 8121 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner52),
8388 /* 8124 */ // Label 392: @8124
8389 /* 8124 */ GIM_Reject,
8390 /* 8125 */ // Label 43: @8125
8391 /* 8125 */ GIM_Try, /*On fail goto*//*Label 393*/ GIMT_Encode4(8174), // Rule ID 189 //
8392 /* 8130 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule136Enabled),
8393 /* 8133 */ // MIs[0] dst
8394 /* 8133 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
8395 /* 8137 */ // MIs[0] c
8396 /* 8137 */ // No operand predicates
8397 /* 8137 */ // MIs[0] x
8398 /* 8137 */ // No operand predicates
8399 /* 8137 */ // MIs[0] Operand 3
8400 /* 8137 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/3, 0,
8401 /* 8141 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner16),
8402 /* 8145 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
8403 /* 8148 */ // Combiner Rule #136: select_zero_false
8404 /* 8148 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FREEZE),
8405 /* 8151 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
8406 /* 8156 */ GIR_RootToRootCopy, /*OpIdx*/2, // x
8407 /* 8158 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_AND),
8408 /* 8162 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
8409 /* 8166 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/1, // c
8410 /* 8170 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
8411 /* 8173 */ GIR_EraseRootFromParent_Done,
8412 /* 8174 */ // Label 393: @8174
8413 /* 8174 */ GIM_Try, /*On fail goto*//*Label 394*/ GIMT_Encode4(8195), // Rule ID 187 //
8414 /* 8179 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule134Enabled),
8415 /* 8182 */ // MIs[0] root
8416 /* 8182 */ // No operand predicates
8417 /* 8182 */ // MIs[0] tst
8418 /* 8182 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8419 /* 8186 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ICMP),
8420 /* 8190 */ // MIs[1] tst1
8421 /* 8190 */ // No operand predicates
8422 /* 8190 */ // MIs[1] a
8423 /* 8190 */ // No operand predicates
8424 /* 8190 */ // MIs[1] b
8425 /* 8190 */ // No operand predicates
8426 /* 8190 */ // MIs[0] x
8427 /* 8190 */ // No operand predicates
8428 /* 8190 */ // MIs[0] y
8429 /* 8190 */ // No operand predicates
8430 /* 8190 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8431 /* 8192 */ // Combiner Rule #134: select_to_iminmax
8432 /* 8192 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner61),
8433 /* 8195 */ // Label 394: @8195
8434 /* 8195 */ GIM_Try, /*On fail goto*//*Label 395*/ GIMT_Encode4(8231), // Rule ID 190 //
8435 /* 8200 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule137Enabled),
8436 /* 8203 */ // MIs[0] dst
8437 /* 8203 */ // No operand predicates
8438 /* 8203 */ // MIs[0] c
8439 /* 8203 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8440 /* 8207 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_XOR),
8441 /* 8211 */ // MIs[1] src
8442 /* 8211 */ // No operand predicates
8443 /* 8211 */ // MIs[1] Operand 2
8444 /* 8211 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/2, 255,
8445 /* 8215 */ // MIs[0] x
8446 /* 8215 */ // No operand predicates
8447 /* 8215 */ // MIs[0] y
8448 /* 8215 */ // No operand predicates
8449 /* 8215 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8450 /* 8217 */ // Combiner Rule #137: select_not
8451 /* 8217 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SELECT),
8452 /* 8220 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
8453 /* 8222 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // src
8454 /* 8226 */ GIR_RootToRootCopy, /*OpIdx*/3, // y
8455 /* 8228 */ GIR_RootToRootCopy, /*OpIdx*/2, // x
8456 /* 8230 */ GIR_EraseRootFromParent_Done,
8457 /* 8231 */ // Label 395: @8231
8458 /* 8231 */ GIM_Try, /*On fail goto*//*Label 396*/ GIMT_Encode4(8260), // Rule ID 183 //
8459 /* 8236 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule130Enabled),
8460 /* 8239 */ // MIs[0] dst
8461 /* 8239 */ // No operand predicates
8462 /* 8239 */ // MIs[0] undef
8463 /* 8239 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8464 /* 8243 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
8465 /* 8247 */ // MIs[0] x
8466 /* 8247 */ // No operand predicates
8467 /* 8247 */ // MIs[0] y
8468 /* 8247 */ // No operand predicates
8469 /* 8247 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/3,
8470 /* 8252 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8471 /* 8254 */ // Combiner Rule #130: select_undef_cmp
8472 /* 8254 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/3,
8473 /* 8259 */ GIR_EraseRootFromParent_Done,
8474 /* 8260 */ // Label 396: @8260
8475 /* 8260 */ GIM_Try, /*On fail goto*//*Label 397*/ GIMT_Encode4(8300), // Rule ID 184 //
8476 /* 8265 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule131Enabled),
8477 /* 8268 */ // MIs[0] dst
8478 /* 8268 */ // No operand predicates
8479 /* 8268 */ // MIs[0] cond
8480 /* 8268 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8481 /* 8272 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
8482 /* 8276 */ // MIs[1] Operand 1
8483 /* 8276 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0),
8484 /* 8287 */ // MIs[0] tval
8485 /* 8287 */ // No operand predicates
8486 /* 8287 */ // MIs[0] fval
8487 /* 8287 */ // No operand predicates
8488 /* 8287 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/3,
8489 /* 8292 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8490 /* 8294 */ // Combiner Rule #131: select_constant_cmp_false
8491 /* 8294 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/3,
8492 /* 8299 */ GIR_EraseRootFromParent_Done,
8493 /* 8300 */ // Label 397: @8300
8494 /* 8300 */ GIM_Try, /*On fail goto*//*Label 398*/ GIMT_Encode4(8340), // Rule ID 185 //
8495 /* 8305 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule132Enabled),
8496 /* 8308 */ // MIs[0] dst
8497 /* 8308 */ // No operand predicates
8498 /* 8308 */ // MIs[0] cond
8499 /* 8308 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8500 /* 8312 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
8501 /* 8316 */ // MIs[1] Operand 1
8502 /* 8316 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(1),
8503 /* 8327 */ // MIs[0] tval
8504 /* 8327 */ // No operand predicates
8505 /* 8327 */ // MIs[0] fval
8506 /* 8327 */ // No operand predicates
8507 /* 8327 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
8508 /* 8332 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8509 /* 8334 */ // Combiner Rule #132: select_constant_cmp_true
8510 /* 8334 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
8511 /* 8339 */ GIR_EraseRootFromParent_Done,
8512 /* 8340 */ // Label 398: @8340
8513 /* 8340 */ GIM_Try, /*On fail goto*//*Label 399*/ GIMT_Encode4(8364), // Rule ID 116 //
8514 /* 8345 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule88Enabled),
8515 /* 8348 */ // MIs[0] dst
8516 /* 8348 */ // No operand predicates
8517 /* 8348 */ // MIs[0] cond
8518 /* 8348 */ // No operand predicates
8519 /* 8348 */ // MIs[0] x
8520 /* 8348 */ // No operand predicates
8521 /* 8348 */ // MIs[0] x
8522 /* 8348 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/3, /*OtherMI*/0, /*OtherOpIdx*/2,
8523 /* 8353 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
8524 /* 8358 */ // Combiner Rule #88: select_same_val_trivial
8525 /* 8358 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
8526 /* 8363 */ GIR_EraseRootFromParent_Done,
8527 /* 8364 */ // Label 399: @8364
8528 /* 8364 */ GIM_Try, /*On fail goto*//*Label 400*/ GIMT_Encode4(8387), // Rule ID 117 //
8529 /* 8369 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule89Enabled),
8530 /* 8372 */ // MIs[0] dst
8531 /* 8372 */ // No operand predicates
8532 /* 8372 */ // MIs[0] cond
8533 /* 8372 */ // No operand predicates
8534 /* 8372 */ // MIs[0] tval
8535 /* 8372 */ // No operand predicates
8536 /* 8372 */ // MIs[0] fval
8537 /* 8372 */ // No operand predicates
8538 /* 8372 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner6),
8539 /* 8376 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
8540 /* 8381 */ // Combiner Rule #89: select_same_val_equiv
8541 /* 8381 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
8542 /* 8386 */ GIR_EraseRootFromParent_Done,
8543 /* 8387 */ // Label 400: @8387
8544 /* 8387 */ GIM_Try, /*On fail goto*//*Label 401*/ GIMT_Encode4(8398), // Rule ID 186 //
8545 /* 8392 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule133Enabled),
8546 /* 8395 */ // MIs[0] dst
8547 /* 8395 */ // No operand predicates
8548 /* 8395 */ // MIs[0] cond
8549 /* 8395 */ // No operand predicates
8550 /* 8395 */ // MIs[0] tval
8551 /* 8395 */ // No operand predicates
8552 /* 8395 */ // MIs[0] fval
8553 /* 8395 */ // No operand predicates
8554 /* 8395 */ // Combiner Rule #133: select_constant_cmp_general
8555 /* 8395 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner60),
8556 /* 8398 */ // Label 401: @8398
8557 /* 8398 */ GIM_Try, /*On fail goto*//*Label 402*/ GIMT_Encode4(8409), // Rule ID 188 //
8558 /* 8403 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule135Enabled),
8559 /* 8406 */ // MIs[0] dst
8560 /* 8406 */ // No operand predicates
8561 /* 8406 */ // MIs[0] cond
8562 /* 8406 */ // No operand predicates
8563 /* 8406 */ // MIs[0] tval
8564 /* 8406 */ // No operand predicates
8565 /* 8406 */ // MIs[0] fval
8566 /* 8406 */ // No operand predicates
8567 /* 8406 */ // Combiner Rule #135: match_selects
8568 /* 8406 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner62),
8569 /* 8409 */ // Label 402: @8409
8570 /* 8409 */ GIM_Try, /*On fail goto*//*Label 403*/ GIMT_Encode4(8420), // Rule ID 367 //
8571 /* 8414 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule225Enabled),
8572 /* 8417 */ // MIs[0] dst
8573 /* 8417 */ // No operand predicates
8574 /* 8417 */ // MIs[0] cond
8575 /* 8417 */ // No operand predicates
8576 /* 8417 */ // MIs[0] tval
8577 /* 8417 */ // No operand predicates
8578 /* 8417 */ // MIs[0] fval
8579 /* 8417 */ // No operand predicates
8580 /* 8417 */ // Combiner Rule #225: select_to_minmax
8581 /* 8417 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner116),
8582 /* 8420 */ // Label 403: @8420
8583 /* 8420 */ GIM_Reject,
8584 /* 8421 */ // Label 44: @8421
8585 /* 8421 */ GIM_Try, /*On fail goto*//*Label 404*/ GIMT_Encode4(8432), // Rule ID 378 //
8586 /* 8426 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule227Enabled),
8587 /* 8429 */ // Combiner Rule #227: commute_int_constant_to_rhs; wip_match_opcode 'G_UADDO'
8588 /* 8429 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner118),
8589 /* 8432 */ // Label 404: @8432
8590 /* 8432 */ GIM_Try, /*On fail goto*//*Label 405*/ GIMT_Encode4(8443), // Rule ID 426 //
8591 /* 8437 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule256Enabled),
8592 /* 8440 */ // Combiner Rule #256: match_addos; wip_match_opcode 'G_UADDO'
8593 /* 8440 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner141),
8594 /* 8443 */ // Label 405: @8443
8595 /* 8443 */ GIM_Reject,
8596 /* 8444 */ // Label 45: @8444
8597 /* 8444 */ GIM_Try, /*On fail goto*//*Label 406*/ GIMT_Encode4(8455), // Rule ID 225 //
8598 /* 8449 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule170Enabled),
8599 /* 8452 */ // Combiner Rule #170: adde_to_addo; wip_match_opcode 'G_UADDE'
8600 /* 8452 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner77),
8601 /* 8455 */ // Label 406: @8455
8602 /* 8455 */ GIM_Reject,
8603 /* 8456 */ // Label 46: @8456
8604 /* 8456 */ GIM_Try, /*On fail goto*//*Label 407*/ GIMT_Encode4(8467), // Rule ID 428 //
8605 /* 8461 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule257Enabled),
8606 /* 8464 */ // Combiner Rule #257: match_subo_no_overflow; wip_match_opcode 'G_USUBO'
8607 /* 8464 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner142),
8608 /* 8467 */ // Label 407: @8467
8609 /* 8467 */ GIM_Reject,
8610 /* 8468 */ // Label 47: @8468
8611 /* 8468 */ GIM_Try, /*On fail goto*//*Label 408*/ GIMT_Encode4(8479), // Rule ID 227 //
8612 /* 8473 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule170Enabled),
8613 /* 8476 */ // Combiner Rule #170: adde_to_addo; wip_match_opcode 'G_USUBE'
8614 /* 8476 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner77),
8615 /* 8479 */ // Label 408: @8479
8616 /* 8479 */ GIM_Reject,
8617 /* 8480 */ // Label 48: @8480
8618 /* 8480 */ GIM_Try, /*On fail goto*//*Label 409*/ GIMT_Encode4(8491), // Rule ID 379 //
8619 /* 8485 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule227Enabled),
8620 /* 8488 */ // Combiner Rule #227: commute_int_constant_to_rhs; wip_match_opcode 'G_SADDO'
8621 /* 8488 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner118),
8622 /* 8491 */ // Label 409: @8491
8623 /* 8491 */ GIM_Try, /*On fail goto*//*Label 410*/ GIMT_Encode4(8502), // Rule ID 425 //
8624 /* 8496 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule256Enabled),
8625 /* 8499 */ // Combiner Rule #256: match_addos; wip_match_opcode 'G_SADDO'
8626 /* 8499 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner141),
8627 /* 8502 */ // Label 410: @8502
8628 /* 8502 */ GIM_Reject,
8629 /* 8503 */ // Label 49: @8503
8630 /* 8503 */ GIM_Try, /*On fail goto*//*Label 411*/ GIMT_Encode4(8514), // Rule ID 226 //
8631 /* 8508 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule170Enabled),
8632 /* 8511 */ // Combiner Rule #170: adde_to_addo; wip_match_opcode 'G_SADDE'
8633 /* 8511 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner77),
8634 /* 8514 */ // Label 411: @8514
8635 /* 8514 */ GIM_Reject,
8636 /* 8515 */ // Label 50: @8515
8637 /* 8515 */ GIM_Try, /*On fail goto*//*Label 412*/ GIMT_Encode4(8526), // Rule ID 427 //
8638 /* 8520 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule257Enabled),
8639 /* 8523 */ // Combiner Rule #257: match_subo_no_overflow; wip_match_opcode 'G_SSUBO'
8640 /* 8523 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner142),
8641 /* 8526 */ // Label 412: @8526
8642 /* 8526 */ GIM_Reject,
8643 /* 8527 */ // Label 51: @8527
8644 /* 8527 */ GIM_Try, /*On fail goto*//*Label 413*/ GIMT_Encode4(8538), // Rule ID 228 //
8645 /* 8532 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule170Enabled),
8646 /* 8535 */ // Combiner Rule #170: adde_to_addo; wip_match_opcode 'G_SSUBE'
8647 /* 8535 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner77),
8648 /* 8538 */ // Label 413: @8538
8649 /* 8538 */ GIM_Reject,
8650 /* 8539 */ // Label 52: @8539
8651 /* 8539 */ GIM_Try, /*On fail goto*//*Label 414*/ GIMT_Encode4(8550), // Rule ID 221 //
8652 /* 8544 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule168Enabled),
8653 /* 8547 */ // Combiner Rule #168: mulo_by_2; wip_match_opcode 'G_UMULO'
8654 /* 8547 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner75),
8655 /* 8550 */ // Label 414: @8550
8656 /* 8550 */ GIM_Try, /*On fail goto*//*Label 415*/ GIMT_Encode4(8561), // Rule ID 223 //
8657 /* 8555 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule169Enabled),
8658 /* 8558 */ // Combiner Rule #169: mulo_by_0; wip_match_opcode 'G_UMULO'
8659 /* 8558 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner76),
8660 /* 8561 */ // Label 415: @8561
8661 /* 8561 */ GIM_Try, /*On fail goto*//*Label 416*/ GIMT_Encode4(8572), // Rule ID 380 //
8662 /* 8566 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule227Enabled),
8663 /* 8569 */ // Combiner Rule #227: commute_int_constant_to_rhs; wip_match_opcode 'G_UMULO'
8664 /* 8569 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner118),
8665 /* 8572 */ // Label 416: @8572
8666 /* 8572 */ GIM_Reject,
8667 /* 8573 */ // Label 53: @8573
8668 /* 8573 */ GIM_Try, /*On fail goto*//*Label 417*/ GIMT_Encode4(8584), // Rule ID 222 //
8669 /* 8578 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule168Enabled),
8670 /* 8581 */ // Combiner Rule #168: mulo_by_2; wip_match_opcode 'G_SMULO'
8671 /* 8581 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner75),
8672 /* 8584 */ // Label 417: @8584
8673 /* 8584 */ GIM_Try, /*On fail goto*//*Label 418*/ GIMT_Encode4(8595), // Rule ID 224 //
8674 /* 8589 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule169Enabled),
8675 /* 8592 */ // Combiner Rule #169: mulo_by_0; wip_match_opcode 'G_SMULO'
8676 /* 8592 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner76),
8677 /* 8595 */ // Label 418: @8595
8678 /* 8595 */ GIM_Try, /*On fail goto*//*Label 419*/ GIMT_Encode4(8606), // Rule ID 381 //
8679 /* 8600 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule227Enabled),
8680 /* 8603 */ // Combiner Rule #227: commute_int_constant_to_rhs; wip_match_opcode 'G_SMULO'
8681 /* 8603 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner118),
8682 /* 8606 */ // Label 419: @8606
8683 /* 8606 */ GIM_Reject,
8684 /* 8607 */ // Label 54: @8607
8685 /* 8607 */ GIM_Try, /*On fail goto*//*Label 420*/ GIMT_Encode4(8618), // Rule ID 382 //
8686 /* 8612 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule227Enabled),
8687 /* 8615 */ // Combiner Rule #227: commute_int_constant_to_rhs; wip_match_opcode 'G_UMULH'
8688 /* 8615 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner118),
8689 /* 8618 */ // Label 420: @8618
8690 /* 8618 */ GIM_Try, /*On fail goto*//*Label 421*/ GIMT_Encode4(8629), // Rule ID 316 //
8691 /* 8623 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule200Enabled),
8692 /* 8626 */ // MIs[0] dst
8693 /* 8626 */ // No operand predicates
8694 /* 8626 */ // MIs[0] src1
8695 /* 8626 */ // No operand predicates
8696 /* 8626 */ // MIs[0] src2
8697 /* 8626 */ // No operand predicates
8698 /* 8626 */ // Combiner Rule #200: mulh_to_lshr
8699 /* 8626 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner97),
8700 /* 8629 */ // Label 421: @8629
8701 /* 8629 */ GIM_Reject,
8702 /* 8630 */ // Label 55: @8630
8703 /* 8630 */ GIM_Try, /*On fail goto*//*Label 422*/ GIMT_Encode4(8641), // Rule ID 383 //
8704 /* 8635 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule227Enabled),
8705 /* 8638 */ // Combiner Rule #227: commute_int_constant_to_rhs; wip_match_opcode 'G_SMULH'
8706 /* 8638 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner118),
8707 /* 8641 */ // Label 422: @8641
8708 /* 8641 */ GIM_Reject,
8709 /* 8642 */ // Label 56: @8642
8710 /* 8642 */ GIM_Try, /*On fail goto*//*Label 423*/ GIMT_Encode4(8653), // Rule ID 384 //
8711 /* 8647 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule227Enabled),
8712 /* 8650 */ // Combiner Rule #227: commute_int_constant_to_rhs; wip_match_opcode 'G_UADDSAT'
8713 /* 8650 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner118),
8714 /* 8653 */ // Label 423: @8653
8715 /* 8653 */ GIM_Reject,
8716 /* 8654 */ // Label 57: @8654
8717 /* 8654 */ GIM_Try, /*On fail goto*//*Label 424*/ GIMT_Encode4(8665), // Rule ID 385 //
8718 /* 8659 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule227Enabled),
8719 /* 8662 */ // Combiner Rule #227: commute_int_constant_to_rhs; wip_match_opcode 'G_SADDSAT'
8720 /* 8662 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner118),
8721 /* 8665 */ // Label 424: @8665
8722 /* 8665 */ GIM_Reject,
8723 /* 8666 */ // Label 58: @8666
8724 /* 8666 */ GIM_Try, /*On fail goto*//*Label 425*/ GIMT_Encode4(8677), // Rule ID 240 //
8725 /* 8671 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule175Enabled),
8726 /* 8674 */ // Combiner Rule #175: shift_immed_chain; wip_match_opcode 'G_USHLSAT'
8727 /* 8674 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner81),
8728 /* 8677 */ // Label 425: @8677
8729 /* 8677 */ GIM_Try, /*On fail goto*//*Label 426*/ GIMT_Encode4(8688), // Rule ID 244 //
8730 /* 8682 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule176Enabled),
8731 /* 8685 */ // Combiner Rule #176: shift_of_shifted_logic_chain; wip_match_opcode 'G_USHLSAT'
8732 /* 8685 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner82),
8733 /* 8688 */ // Label 426: @8688
8734 /* 8688 */ GIM_Reject,
8735 /* 8689 */ // Label 59: @8689
8736 /* 8689 */ GIM_Try, /*On fail goto*//*Label 427*/ GIMT_Encode4(8700), // Rule ID 239 //
8737 /* 8694 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule175Enabled),
8738 /* 8697 */ // Combiner Rule #175: shift_immed_chain; wip_match_opcode 'G_SSHLSAT'
8739 /* 8697 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner81),
8740 /* 8700 */ // Label 427: @8700
8741 /* 8700 */ GIM_Try, /*On fail goto*//*Label 428*/ GIMT_Encode4(8711), // Rule ID 245 //
8742 /* 8705 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule176Enabled),
8743 /* 8708 */ // Combiner Rule #176: shift_of_shifted_logic_chain; wip_match_opcode 'G_SSHLSAT'
8744 /* 8708 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner82),
8745 /* 8711 */ // Label 428: @8711
8746 /* 8711 */ GIM_Reject,
8747 /* 8712 */ // Label 60: @8712
8748 /* 8712 */ GIM_Try, /*On fail goto*//*Label 429*/ GIMT_Encode4(8723), // Rule ID 386 //
8749 /* 8717 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule227Enabled),
8750 /* 8720 */ // Combiner Rule #227: commute_int_constant_to_rhs; wip_match_opcode 'G_SMULFIX'
8751 /* 8720 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner118),
8752 /* 8723 */ // Label 429: @8723
8753 /* 8723 */ GIM_Reject,
8754 /* 8724 */ // Label 61: @8724
8755 /* 8724 */ GIM_Try, /*On fail goto*//*Label 430*/ GIMT_Encode4(8735), // Rule ID 387 //
8756 /* 8729 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule227Enabled),
8757 /* 8732 */ // Combiner Rule #227: commute_int_constant_to_rhs; wip_match_opcode 'G_UMULFIX'
8758 /* 8732 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner118),
8759 /* 8735 */ // Label 430: @8735
8760 /* 8735 */ GIM_Reject,
8761 /* 8736 */ // Label 62: @8736
8762 /* 8736 */ GIM_Try, /*On fail goto*//*Label 431*/ GIMT_Encode4(8747), // Rule ID 388 //
8763 /* 8741 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule227Enabled),
8764 /* 8744 */ // Combiner Rule #227: commute_int_constant_to_rhs; wip_match_opcode 'G_SMULFIXSAT'
8765 /* 8744 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner118),
8766 /* 8747 */ // Label 431: @8747
8767 /* 8747 */ GIM_Reject,
8768 /* 8748 */ // Label 63: @8748
8769 /* 8748 */ GIM_Try, /*On fail goto*//*Label 432*/ GIMT_Encode4(8759), // Rule ID 389 //
8770 /* 8753 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule227Enabled),
8771 /* 8756 */ // Combiner Rule #227: commute_int_constant_to_rhs; wip_match_opcode 'G_UMULFIXSAT'
8772 /* 8756 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner118),
8773 /* 8759 */ // Label 432: @8759
8774 /* 8759 */ GIM_Reject,
8775 /* 8760 */ // Label 64: @8760
8776 /* 8760 */ GIM_Try, /*On fail goto*//*Label 433*/ GIMT_Encode4(8771), // Rule ID 317 //
8777 /* 8765 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule201Enabled),
8778 /* 8768 */ // Combiner Rule #201: redundant_neg_operands_fadd_fsub; wip_match_opcode 'G_FADD'
8779 /* 8768 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner98),
8780 /* 8771 */ // Label 433: @8771
8781 /* 8771 */ GIM_Try, /*On fail goto*//*Label 434*/ GIMT_Encode4(8782), // Rule ID 350 //
8782 /* 8776 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule215Enabled),
8783 /* 8779 */ // Combiner Rule #215: fold_binop_into_select; wip_match_opcode 'G_FADD'
8784 /* 8779 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner108),
8785 /* 8782 */ // Label 434: @8782
8786 /* 8782 */ GIM_Try, /*On fail goto*//*Label 435*/ GIMT_Encode4(8793), // Rule ID 390 //
8787 /* 8787 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule228Enabled),
8788 /* 8790 */ // Combiner Rule #228: commute_fp_constant_to_rhs; wip_match_opcode 'G_FADD'
8789 /* 8790 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
8790 /* 8793 */ // Label 435: @8793
8791 /* 8793 */ GIM_Try, /*On fail goto*//*Label 436*/ GIMT_Encode4(8816), // Rule ID 156 //
8792 /* 8798 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule108Enabled),
8793 /* 8801 */ // MIs[0] dst
8794 /* 8801 */ // No operand predicates
8795 /* 8801 */ // MIs[0] x
8796 /* 8801 */ // No operand predicates
8797 /* 8801 */ // MIs[0] y
8798 /* 8801 */ // No operand predicates
8799 /* 8801 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner10),
8800 /* 8805 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8801 /* 8810 */ // Combiner Rule #108: right_identity_neg_zero_fp
8802 /* 8810 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8803 /* 8815 */ GIR_EraseRootFromParent_Done,
8804 /* 8816 */ // Label 436: @8816
8805 /* 8816 */ GIM_Try, /*On fail goto*//*Label 437*/ GIMT_Encode4(8845), // Rule ID 157 //
8806 /* 8821 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule109Enabled),
8807 /* 8824 */ GIM_MIFlags, /*MI*/0, GIMT_Encode4(MachineInstr::FmNsz),
8808 /* 8830 */ // MIs[0] dst
8809 /* 8830 */ // No operand predicates
8810 /* 8830 */ // MIs[0] x
8811 /* 8830 */ // No operand predicates
8812 /* 8830 */ // MIs[0] y
8813 /* 8830 */ // No operand predicates
8814 /* 8830 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner11),
8815 /* 8834 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8816 /* 8839 */ // Combiner Rule #109: right_identity_neg_zero_fp_nsz
8817 /* 8839 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8818 /* 8844 */ GIR_EraseRootFromParent_Done,
8819 /* 8845 */ // Label 437: @8845
8820 /* 8845 */ GIM_Try, /*On fail goto*//*Label 438*/ GIMT_Encode4(8856), // Rule ID 290 //
8821 /* 8850 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule195Enabled),
8822 /* 8853 */ // MIs[0] d
8823 /* 8853 */ // No operand predicates
8824 /* 8853 */ // MIs[0] mi.src0
8825 /* 8853 */ // No operand predicates
8826 /* 8853 */ // MIs[0] mi.src1
8827 /* 8853 */ // No operand predicates
8828 /* 8853 */ // Combiner Rule #195: constant_fold_fp_binop @ [mi[0]]
8829 /* 8853 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner93),
8830 /* 8856 */ // Label 438: @8856
8831 /* 8856 */ GIM_Try, /*On fail goto*//*Label 439*/ GIMT_Encode4(8867), // Rule ID 324 //
8832 /* 8861 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule207Enabled),
8833 /* 8864 */ // MIs[0] dst
8834 /* 8864 */ // No operand predicates
8835 /* 8864 */ // MIs[0] src1
8836 /* 8864 */ // No operand predicates
8837 /* 8864 */ // MIs[0] src2
8838 /* 8864 */ // No operand predicates
8839 /* 8864 */ // Combiner Rule #207: combine_fadd_fmul_to_fmad_or_fma
8840 /* 8864 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner100),
8841 /* 8867 */ // Label 439: @8867
8842 /* 8867 */ GIM_Try, /*On fail goto*//*Label 440*/ GIMT_Encode4(8878), // Rule ID 325 //
8843 /* 8872 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule208Enabled),
8844 /* 8875 */ // MIs[0] dst
8845 /* 8875 */ // No operand predicates
8846 /* 8875 */ // MIs[0] src1
8847 /* 8875 */ // No operand predicates
8848 /* 8875 */ // MIs[0] src2
8849 /* 8875 */ // No operand predicates
8850 /* 8875 */ // Combiner Rule #208: combine_fadd_fpext_fmul_to_fmad_or_fma
8851 /* 8875 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner101),
8852 /* 8878 */ // Label 440: @8878
8853 /* 8878 */ GIM_Try, /*On fail goto*//*Label 441*/ GIMT_Encode4(8889), // Rule ID 326 //
8854 /* 8883 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule209Enabled),
8855 /* 8886 */ // MIs[0] dst
8856 /* 8886 */ // No operand predicates
8857 /* 8886 */ // MIs[0] src1
8858 /* 8886 */ // No operand predicates
8859 /* 8886 */ // MIs[0] src2
8860 /* 8886 */ // No operand predicates
8861 /* 8886 */ // Combiner Rule #209: combine_fadd_fma_fmul_to_fmad_or_fma
8862 /* 8886 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner102),
8863 /* 8889 */ // Label 441: @8889
8864 /* 8889 */ GIM_Try, /*On fail goto*//*Label 442*/ GIMT_Encode4(8900), // Rule ID 327 //
8865 /* 8894 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule210Enabled),
8866 /* 8897 */ // MIs[0] dst
8867 /* 8897 */ // No operand predicates
8868 /* 8897 */ // MIs[0] src1
8869 /* 8897 */ // No operand predicates
8870 /* 8897 */ // MIs[0] src2
8871 /* 8897 */ // No operand predicates
8872 /* 8897 */ // Combiner Rule #210: combine_fadd_fpext_fma_fmul_to_fmad_or_fma
8873 /* 8897 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103),
8874 /* 8900 */ // Label 442: @8900
8875 /* 8900 */ GIM_Reject,
8876 /* 8901 */ // Label 65: @8901
8877 /* 8901 */ GIM_Try, /*On fail goto*//*Label 443*/ GIMT_Encode4(8912), // Rule ID 318 //
8878 /* 8906 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule201Enabled),
8879 /* 8909 */ // Combiner Rule #201: redundant_neg_operands_fadd_fsub; wip_match_opcode 'G_FSUB'
8880 /* 8909 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner98),
8881 /* 8912 */ // Label 443: @8912
8882 /* 8912 */ GIM_Try, /*On fail goto*//*Label 444*/ GIMT_Encode4(8923), // Rule ID 351 //
8883 /* 8917 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule215Enabled),
8884 /* 8920 */ // Combiner Rule #215: fold_binop_into_select; wip_match_opcode 'G_FSUB'
8885 /* 8920 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner108),
8886 /* 8923 */ // Label 444: @8923
8887 /* 8923 */ GIM_Try, /*On fail goto*//*Label 445*/ GIMT_Encode4(8934), // Rule ID 291 //
8888 /* 8928 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule195Enabled),
8889 /* 8931 */ // MIs[0] d
8890 /* 8931 */ // No operand predicates
8891 /* 8931 */ // MIs[0] mi.src0
8892 /* 8931 */ // No operand predicates
8893 /* 8931 */ // MIs[0] mi.src1
8894 /* 8931 */ // No operand predicates
8895 /* 8931 */ // Combiner Rule #195: constant_fold_fp_binop @ [mi[1]]
8896 /* 8931 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner93),
8897 /* 8934 */ // Label 445: @8934
8898 /* 8934 */ GIM_Try, /*On fail goto*//*Label 446*/ GIMT_Encode4(8945), // Rule ID 328 //
8899 /* 8939 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule211Enabled),
8900 /* 8942 */ // MIs[0] dst
8901 /* 8942 */ // No operand predicates
8902 /* 8942 */ // MIs[0] src1
8903 /* 8942 */ // No operand predicates
8904 /* 8942 */ // MIs[0] src2
8905 /* 8942 */ // No operand predicates
8906 /* 8942 */ // Combiner Rule #211: combine_fsub_fmul_to_fmad_or_fma
8907 /* 8942 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner104),
8908 /* 8945 */ // Label 446: @8945
8909 /* 8945 */ GIM_Try, /*On fail goto*//*Label 447*/ GIMT_Encode4(8956), // Rule ID 329 //
8910 /* 8950 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule212Enabled),
8911 /* 8953 */ // MIs[0] dst
8912 /* 8953 */ // No operand predicates
8913 /* 8953 */ // MIs[0] src1
8914 /* 8953 */ // No operand predicates
8915 /* 8953 */ // MIs[0] src2
8916 /* 8953 */ // No operand predicates
8917 /* 8953 */ // Combiner Rule #212: combine_fsub_fneg_fmul_to_fmad_or_fma
8918 /* 8953 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner105),
8919 /* 8956 */ // Label 447: @8956
8920 /* 8956 */ GIM_Try, /*On fail goto*//*Label 448*/ GIMT_Encode4(8967), // Rule ID 330 //
8921 /* 8961 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule213Enabled),
8922 /* 8964 */ // MIs[0] dst
8923 /* 8964 */ // No operand predicates
8924 /* 8964 */ // MIs[0] src1
8925 /* 8964 */ // No operand predicates
8926 /* 8964 */ // MIs[0] src2
8927 /* 8964 */ // No operand predicates
8928 /* 8964 */ // Combiner Rule #213: combine_fsub_fpext_fmul_to_fmad_or_fma
8929 /* 8964 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner106),
8930 /* 8967 */ // Label 448: @8967
8931 /* 8967 */ GIM_Try, /*On fail goto*//*Label 449*/ GIMT_Encode4(8978), // Rule ID 331 //
8932 /* 8972 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule214Enabled),
8933 /* 8975 */ // MIs[0] dst
8934 /* 8975 */ // No operand predicates
8935 /* 8975 */ // MIs[0] src1
8936 /* 8975 */ // No operand predicates
8937 /* 8975 */ // MIs[0] src2
8938 /* 8975 */ // No operand predicates
8939 /* 8975 */ // Combiner Rule #214: combine_fsub_fpext_fneg_fmul_to_fmad_or_fma
8940 /* 8975 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner107),
8941 /* 8978 */ // Label 449: @8978
8942 /* 8978 */ GIM_Try, /*On fail goto*//*Label 450*/ GIMT_Encode4(8989), // Rule ID 368 //
8943 /* 8983 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule226Enabled),
8944 /* 8986 */ // MIs[0] dst
8945 /* 8986 */ // No operand predicates
8946 /* 8986 */ // MIs[0] src1
8947 /* 8986 */ // No operand predicates
8948 /* 8986 */ // MIs[0] src2
8949 /* 8986 */ // No operand predicates
8950 /* 8986 */ // Combiner Rule #226: fsub_to_fneg
8951 /* 8986 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner117),
8952 /* 8989 */ // Label 450: @8989
8953 /* 8989 */ GIM_Reject,
8954 /* 8990 */ // Label 66: @8990
8955 /* 8990 */ GIM_Try, /*On fail goto*//*Label 451*/ GIMT_Encode4(9001), // Rule ID 349 //
8956 /* 8995 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule215Enabled),
8957 /* 8998 */ // Combiner Rule #215: fold_binop_into_select; wip_match_opcode 'G_FMUL'
8958 /* 8998 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner108),
8959 /* 9001 */ // Label 451: @9001
8960 /* 9001 */ GIM_Try, /*On fail goto*//*Label 452*/ GIMT_Encode4(9012), // Rule ID 391 //
8961 /* 9006 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule228Enabled),
8962 /* 9009 */ // Combiner Rule #228: commute_fp_constant_to_rhs; wip_match_opcode 'G_FMUL'
8963 /* 9009 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
8964 /* 9012 */ // Label 452: @9012
8965 /* 9012 */ GIM_Try, /*On fail goto*//*Label 453*/ GIMT_Encode4(9055), // Rule ID 319 //
8966 /* 9017 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule202Enabled),
8967 /* 9020 */ // MIs[0] dst
8968 /* 9020 */ // No operand predicates
8969 /* 9020 */ // MIs[0] nx
8970 /* 9020 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8971 /* 9024 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FNEG),
8972 /* 9028 */ // MIs[1] x
8973 /* 9028 */ // No operand predicates
8974 /* 9028 */ // MIs[0] ny
8975 /* 9028 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
8976 /* 9032 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_FNEG),
8977 /* 9036 */ // MIs[2] y
8978 /* 9036 */ // No operand predicates
8979 /* 9036 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
8980 /* 9038 */ // Combiner Rule #202: G_FMUL_fneg_fneg
8981 /* 9038 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FMUL),
8982 /* 9041 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
8983 /* 9043 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
8984 /* 9047 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // y
8985 /* 9051 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
8986 /* 9054 */ GIR_EraseRootFromParent_Done,
8987 /* 9055 */ // Label 453: @9055
8988 /* 9055 */ GIM_Try, /*On fail goto*//*Label 454*/ GIMT_Encode4(9078), // Rule ID 146 //
8989 /* 9060 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule100Enabled),
8990 /* 9063 */ // MIs[0] dst
8991 /* 9063 */ // No operand predicates
8992 /* 9063 */ // MIs[0] x
8993 /* 9063 */ // No operand predicates
8994 /* 9063 */ // MIs[0] y
8995 /* 9063 */ // No operand predicates
8996 /* 9063 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner8),
8997 /* 9067 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8998 /* 9072 */ // Combiner Rule #100: right_identity_one_fp
8999 /* 9072 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9000 /* 9077 */ GIR_EraseRootFromParent_Done,
9001 /* 9078 */ // Label 454: @9078
9002 /* 9078 */ GIM_Try, /*On fail goto*//*Label 455*/ GIMT_Encode4(9098), // Rule ID 158 //
9003 /* 9083 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule110Enabled),
9004 /* 9086 */ // MIs[0] dst
9005 /* 9086 */ // No operand predicates
9006 /* 9086 */ // MIs[0] x
9007 /* 9086 */ // No operand predicates
9008 /* 9086 */ // MIs[0] y
9009 /* 9086 */ // No operand predicates
9010 /* 9086 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner12),
9011 /* 9090 */ // Combiner Rule #110: right_identity_neg_one_fp
9012 /* 9090 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FNEG),
9013 /* 9093 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
9014 /* 9095 */ GIR_RootToRootCopy, /*OpIdx*/1, // x
9015 /* 9097 */ GIR_EraseRootFromParent_Done,
9016 /* 9098 */ // Label 455: @9098
9017 /* 9098 */ GIM_Try, /*On fail goto*//*Label 456*/ GIMT_Encode4(9109), // Rule ID 292 //
9018 /* 9103 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule195Enabled),
9019 /* 9106 */ // MIs[0] d
9020 /* 9106 */ // No operand predicates
9021 /* 9106 */ // MIs[0] mi.src0
9022 /* 9106 */ // No operand predicates
9023 /* 9106 */ // MIs[0] mi.src1
9024 /* 9106 */ // No operand predicates
9025 /* 9106 */ // Combiner Rule #195: constant_fold_fp_binop @ [mi[2]]
9026 /* 9106 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner93),
9027 /* 9109 */ // Label 456: @9109
9028 /* 9109 */ GIM_Reject,
9029 /* 9110 */ // Label 67: @9110
9030 /* 9110 */ GIM_Try, /*On fail goto*//*Label 457*/ GIMT_Encode4(9155), // Rule ID 322 //
9031 /* 9115 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule205Enabled),
9032 /* 9118 */ // MIs[0] dst
9033 /* 9118 */ // No operand predicates
9034 /* 9118 */ // MIs[0] nx
9035 /* 9118 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9036 /* 9122 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FNEG),
9037 /* 9126 */ // MIs[1] x
9038 /* 9126 */ // No operand predicates
9039 /* 9126 */ // MIs[0] ny
9040 /* 9126 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
9041 /* 9130 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_FNEG),
9042 /* 9134 */ // MIs[2] y
9043 /* 9134 */ // No operand predicates
9044 /* 9134 */ // MIs[0] z
9045 /* 9134 */ // No operand predicates
9046 /* 9134 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
9047 /* 9136 */ // Combiner Rule #205: G_FMA_fneg_fneg
9048 /* 9136 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FMA),
9049 /* 9139 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
9050 /* 9141 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
9051 /* 9145 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // y
9052 /* 9149 */ GIR_RootToRootCopy, /*OpIdx*/3, // z
9053 /* 9151 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
9054 /* 9154 */ GIR_EraseRootFromParent_Done,
9055 /* 9155 */ // Label 457: @9155
9056 /* 9155 */ GIM_Try, /*On fail goto*//*Label 458*/ GIMT_Encode4(9166), // Rule ID 303 //
9057 /* 9160 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule196Enabled),
9058 /* 9163 */ // MIs[0] dst
9059 /* 9163 */ // No operand predicates
9060 /* 9163 */ // MIs[0] d.src0
9061 /* 9163 */ // No operand predicates
9062 /* 9163 */ // MIs[0] d.src1
9063 /* 9163 */ // No operand predicates
9064 /* 9163 */ // MIs[0] d.src2
9065 /* 9163 */ // No operand predicates
9066 /* 9163 */ // Combiner Rule #196: constant_fold_fma @ [d[1]]
9067 /* 9163 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
9068 /* 9166 */ // Label 458: @9166
9069 /* 9166 */ GIM_Reject,
9070 /* 9167 */ // Label 68: @9167
9071 /* 9167 */ GIM_Try, /*On fail goto*//*Label 459*/ GIMT_Encode4(9212), // Rule ID 321 //
9072 /* 9172 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
9073 /* 9175 */ // MIs[0] dst
9074 /* 9175 */ // No operand predicates
9075 /* 9175 */ // MIs[0] nx
9076 /* 9175 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9077 /* 9179 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FNEG),
9078 /* 9183 */ // MIs[1] x
9079 /* 9183 */ // No operand predicates
9080 /* 9183 */ // MIs[0] ny
9081 /* 9183 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
9082 /* 9187 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_FNEG),
9083 /* 9191 */ // MIs[2] y
9084 /* 9191 */ // No operand predicates
9085 /* 9191 */ // MIs[0] z
9086 /* 9191 */ // No operand predicates
9087 /* 9191 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
9088 /* 9193 */ // Combiner Rule #204: G_FMAD_fneg_fneg
9089 /* 9193 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FMAD),
9090 /* 9196 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
9091 /* 9198 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
9092 /* 9202 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // y
9093 /* 9206 */ GIR_RootToRootCopy, /*OpIdx*/3, // z
9094 /* 9208 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
9095 /* 9211 */ GIR_EraseRootFromParent_Done,
9096 /* 9212 */ // Label 459: @9212
9097 /* 9212 */ GIM_Try, /*On fail goto*//*Label 460*/ GIMT_Encode4(9223), // Rule ID 302 //
9098 /* 9217 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule196Enabled),
9099 /* 9220 */ // MIs[0] dst
9100 /* 9220 */ // No operand predicates
9101 /* 9220 */ // MIs[0] d.src0
9102 /* 9220 */ // No operand predicates
9103 /* 9220 */ // MIs[0] d.src1
9104 /* 9220 */ // No operand predicates
9105 /* 9220 */ // MIs[0] d.src2
9106 /* 9220 */ // No operand predicates
9107 /* 9220 */ // Combiner Rule #196: constant_fold_fma @ [d[0]]
9108 /* 9220 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
9109 /* 9223 */ // Label 460: @9223
9110 /* 9223 */ GIM_Reject,
9111 /* 9224 */ // Label 69: @9224
9112 /* 9224 */ GIM_Try, /*On fail goto*//*Label 461*/ GIMT_Encode4(9235), // Rule ID 352 //
9113 /* 9229 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule215Enabled),
9114 /* 9232 */ // Combiner Rule #215: fold_binop_into_select; wip_match_opcode 'G_FDIV'
9115 /* 9232 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner108),
9116 /* 9235 */ // Label 461: @9235
9117 /* 9235 */ GIM_Try, /*On fail goto*//*Label 462*/ GIMT_Encode4(9278), // Rule ID 320 //
9118 /* 9240 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule203Enabled),
9119 /* 9243 */ // MIs[0] dst
9120 /* 9243 */ // No operand predicates
9121 /* 9243 */ // MIs[0] nx
9122 /* 9243 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9123 /* 9247 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FNEG),
9124 /* 9251 */ // MIs[1] x
9125 /* 9251 */ // No operand predicates
9126 /* 9251 */ // MIs[0] ny
9127 /* 9251 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
9128 /* 9255 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_FNEG),
9129 /* 9259 */ // MIs[2] y
9130 /* 9259 */ // No operand predicates
9131 /* 9259 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
9132 /* 9261 */ // Combiner Rule #203: G_FDIV_fneg_fneg
9133 /* 9261 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FDIV),
9134 /* 9264 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
9135 /* 9266 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
9136 /* 9270 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // y
9137 /* 9274 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
9138 /* 9277 */ GIR_EraseRootFromParent_Done,
9139 /* 9278 */ // Label 462: @9278
9140 /* 9278 */ GIM_Try, /*On fail goto*//*Label 463*/ GIMT_Encode4(9289), // Rule ID 293 //
9141 /* 9283 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule195Enabled),
9142 /* 9286 */ // MIs[0] d
9143 /* 9286 */ // No operand predicates
9144 /* 9286 */ // MIs[0] mi.src0
9145 /* 9286 */ // No operand predicates
9146 /* 9286 */ // MIs[0] mi.src1
9147 /* 9286 */ // No operand predicates
9148 /* 9286 */ // Combiner Rule #195: constant_fold_fp_binop @ [mi[3]]
9149 /* 9286 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner93),
9150 /* 9289 */ // Label 463: @9289
9151 /* 9289 */ GIM_Try, /*On fail goto*//*Label 464*/ GIMT_Encode4(9300), // Rule ID 365 //
9152 /* 9294 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule223Enabled),
9153 /* 9297 */ // MIs[0] dst
9154 /* 9297 */ // No operand predicates
9155 /* 9297 */ // MIs[0] src1
9156 /* 9297 */ // No operand predicates
9157 /* 9297 */ // MIs[0] src2
9158 /* 9297 */ // No operand predicates
9159 /* 9297 */ // Combiner Rule #223: fdiv_repeated_divison
9160 /* 9297 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner114),
9161 /* 9300 */ // Label 464: @9300
9162 /* 9300 */ GIM_Reject,
9163 /* 9301 */ // Label 70: @9301
9164 /* 9301 */ GIM_Try, /*On fail goto*//*Label 465*/ GIMT_Encode4(9312), // Rule ID 353 //
9165 /* 9306 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule215Enabled),
9166 /* 9309 */ // Combiner Rule #215: fold_binop_into_select; wip_match_opcode 'G_FREM'
9167 /* 9309 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner108),
9168 /* 9312 */ // Label 465: @9312
9169 /* 9312 */ GIM_Try, /*On fail goto*//*Label 466*/ GIMT_Encode4(9323), // Rule ID 294 //
9170 /* 9317 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule195Enabled),
9171 /* 9320 */ // MIs[0] d
9172 /* 9320 */ // No operand predicates
9173 /* 9320 */ // MIs[0] mi.src0
9174 /* 9320 */ // No operand predicates
9175 /* 9320 */ // MIs[0] mi.src1
9176 /* 9320 */ // No operand predicates
9177 /* 9320 */ // Combiner Rule #195: constant_fold_fp_binop @ [mi[4]]
9178 /* 9320 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner93),
9179 /* 9323 */ // Label 466: @9323
9180 /* 9323 */ GIM_Reject,
9181 /* 9324 */ // Label 71: @9324
9182 /* 9324 */ GIM_Try, /*On fail goto*//*Label 467*/ GIMT_Encode4(9345), // Rule ID 233 //
9183 /* 9329 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule172Enabled),
9184 /* 9332 */ // MIs[0] dst
9185 /* 9332 */ // No operand predicates
9186 /* 9332 */ // MIs[0] float
9187 /* 9332 */ // No operand predicates
9188 /* 9332 */ // MIs[0] int
9189 /* 9332 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
9190 /* 9336 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
9191 /* 9340 */ // MIs[1] imm
9192 /* 9340 */ // No operand predicates
9193 /* 9340 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9194 /* 9342 */ // Combiner Rule #172: expand_const_fpowi
9195 /* 9342 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner79),
9196 /* 9345 */ // Label 467: @9345
9197 /* 9345 */ GIM_Reject,
9198 /* 9346 */ // Label 72: @9346
9199 /* 9346 */ GIM_Try, /*On fail goto*//*Label 468*/ GIMT_Encode4(9367), // Rule ID 207 //
9200 /* 9351 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule154Enabled),
9201 /* 9354 */ // MIs[0] dst
9202 /* 9354 */ // No operand predicates
9203 /* 9354 */ // MIs[0] src0
9204 /* 9354 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9205 /* 9358 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT),
9206 /* 9362 */ // MIs[1] cst
9207 /* 9362 */ // No operand predicates
9208 /* 9362 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9209 /* 9364 */ // Combiner Rule #154: constant_fold_flog2
9210 /* 9364 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner72),
9211 /* 9367 */ // Label 468: @9367
9212 /* 9367 */ GIM_Reject,
9213 /* 9368 */ // Label 73: @9368
9214 /* 9368 */ GIM_Try, /*On fail goto*//*Label 469*/ GIMT_Encode4(9389), // Rule ID 204 //
9215 /* 9373 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule151Enabled),
9216 /* 9376 */ // MIs[0] dst
9217 /* 9376 */ // No operand predicates
9218 /* 9376 */ // MIs[0] src0
9219 /* 9376 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9220 /* 9380 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT),
9221 /* 9384 */ // MIs[1] cst
9222 /* 9384 */ // No operand predicates
9223 /* 9384 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9224 /* 9386 */ // Combiner Rule #151: constant_fold_fneg
9225 /* 9386 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner72),
9226 /* 9389 */ // Label 469: @9389
9227 /* 9389 */ GIM_Try, /*On fail goto*//*Label 470*/ GIMT_Encode4(9418), // Rule ID 144 //
9228 /* 9394 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule98Enabled),
9229 /* 9397 */ // MIs[0] dst
9230 /* 9397 */ // No operand predicates
9231 /* 9397 */ // MIs[0] t
9232 /* 9397 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9233 /* 9401 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FNEG),
9234 /* 9405 */ // MIs[1] src
9235 /* 9405 */ // No operand predicates
9236 /* 9405 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
9237 /* 9410 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9238 /* 9412 */ // Combiner Rule #98: fneg_fneg_fold
9239 /* 9412 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
9240 /* 9417 */ GIR_EraseRootFromParent_Done,
9241 /* 9418 */ // Label 470: @9418
9242 /* 9418 */ GIM_Reject,
9243 /* 9419 */ // Label 74: @9419
9244 /* 9419 */ GIM_Try, /*On fail goto*//*Label 471*/ GIMT_Encode4(9440), // Rule ID 209 //
9245 /* 9424 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule156Enabled),
9246 /* 9427 */ // MIs[0] dst
9247 /* 9427 */ // No operand predicates
9248 /* 9427 */ // MIs[0] src0
9249 /* 9427 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9250 /* 9431 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT),
9251 /* 9435 */ // MIs[1] cst
9252 /* 9435 */ // No operand predicates
9253 /* 9435 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9254 /* 9437 */ // Combiner Rule #156: constant_fold_fpext
9255 /* 9437 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner72),
9256 /* 9440 */ // Label 471: @9440
9257 /* 9440 */ GIM_Reject,
9258 /* 9441 */ // Label 75: @9441
9259 /* 9441 */ GIM_Try, /*On fail goto*//*Label 472*/ GIMT_Encode4(9462), // Rule ID 208 //
9260 /* 9446 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule155Enabled),
9261 /* 9449 */ // MIs[0] dst
9262 /* 9449 */ // No operand predicates
9263 /* 9449 */ // MIs[0] src0
9264 /* 9449 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9265 /* 9453 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT),
9266 /* 9457 */ // MIs[1] cst
9267 /* 9457 */ // No operand predicates
9268 /* 9457 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9269 /* 9459 */ // Combiner Rule #155: constant_fold_fptrunc
9270 /* 9459 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner72),
9271 /* 9462 */ // Label 472: @9462
9272 /* 9462 */ GIM_Try, /*On fail goto*//*Label 473*/ GIMT_Encode4(9483), // Rule ID 155 //
9273 /* 9467 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule107Enabled),
9274 /* 9470 */ // MIs[0] dst
9275 /* 9470 */ // No operand predicates
9276 /* 9470 */ // MIs[0] src1
9277 /* 9470 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9278 /* 9474 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FPEXT),
9279 /* 9478 */ // MIs[1] src0
9280 /* 9478 */ // No operand predicates
9281 /* 9478 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9282 /* 9480 */ // Combiner Rule #107: fptrunc_fpext_fold
9283 /* 9480 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner44),
9284 /* 9483 */ // Label 473: @9483
9285 /* 9483 */ GIM_Reject,
9286 /* 9484 */ // Label 76: @9484
9287 /* 9484 */ GIM_Try, /*On fail goto*//*Label 474*/ GIMT_Encode4(9505), // Rule ID 102 //
9288 /* 9489 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule82Enabled),
9289 /* 9492 */ // MIs[0] dst
9290 /* 9492 */ // No operand predicates
9291 /* 9492 */ // MIs[0] __unary_undef_to_undef_match_0.x
9292 /* 9492 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9293 /* 9496 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
9294 /* 9500 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9295 /* 9502 */ // Combiner Rule #82: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[5]]
9296 /* 9502 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner35),
9297 /* 9505 */ // Label 474: @9505
9298 /* 9505 */ GIM_Reject,
9299 /* 9506 */ // Label 77: @9506
9300 /* 9506 */ GIM_Try, /*On fail goto*//*Label 475*/ GIMT_Encode4(9527), // Rule ID 103 //
9301 /* 9511 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule82Enabled),
9302 /* 9514 */ // MIs[0] dst
9303 /* 9514 */ // No operand predicates
9304 /* 9514 */ // MIs[0] __unary_undef_to_undef_match_0.x
9305 /* 9514 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9306 /* 9518 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
9307 /* 9522 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9308 /* 9524 */ // Combiner Rule #82: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[6]]
9309 /* 9524 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner35),
9310 /* 9527 */ // Label 475: @9527
9311 /* 9527 */ GIM_Reject,
9312 /* 9528 */ // Label 78: @9528
9313 /* 9528 */ GIM_Try, /*On fail goto*//*Label 476*/ GIMT_Encode4(9549), // Rule ID 83 //
9314 /* 9533 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule76Enabled),
9315 /* 9536 */ // MIs[0] dst
9316 /* 9536 */ // No operand predicates
9317 /* 9536 */ // MIs[0] __undef_to_fp_zero_match_0.x
9318 /* 9536 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9319 /* 9540 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
9320 /* 9544 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9321 /* 9546 */ // Combiner Rule #76: undef_to_fp_zero @ [__undef_to_fp_zero_match_0[1]]
9322 /* 9546 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner32),
9323 /* 9549 */ // Label 476: @9549
9324 /* 9549 */ GIM_Try, /*On fail goto*//*Label 477*/ GIMT_Encode4(9564), // Rule ID 217 //
9325 /* 9554 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule164Enabled),
9326 /* 9557 */ // MIs[0] dst
9327 /* 9557 */ // No operand predicates
9328 /* 9557 */ // MIs[0] Operand 1
9329 /* 9557 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/1, 0,
9330 /* 9561 */ // Combiner Rule #164: itof_const_zero_fold_si
9331 /* 9561 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner32),
9332 /* 9564 */ // Label 477: @9564
9333 /* 9564 */ GIM_Reject,
9334 /* 9565 */ // Label 79: @9565
9335 /* 9565 */ GIM_Try, /*On fail goto*//*Label 478*/ GIMT_Encode4(9586), // Rule ID 82 //
9336 /* 9570 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule76Enabled),
9337 /* 9573 */ // MIs[0] dst
9338 /* 9573 */ // No operand predicates
9339 /* 9573 */ // MIs[0] __undef_to_fp_zero_match_0.x
9340 /* 9573 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9341 /* 9577 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
9342 /* 9581 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9343 /* 9583 */ // Combiner Rule #76: undef_to_fp_zero @ [__undef_to_fp_zero_match_0[0]]
9344 /* 9583 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner32),
9345 /* 9586 */ // Label 478: @9586
9346 /* 9586 */ GIM_Try, /*On fail goto*//*Label 479*/ GIMT_Encode4(9601), // Rule ID 218 //
9347 /* 9591 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule165Enabled),
9348 /* 9594 */ // MIs[0] dst
9349 /* 9594 */ // No operand predicates
9350 /* 9594 */ // MIs[0] Operand 1
9351 /* 9594 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/1, 0,
9352 /* 9598 */ // Combiner Rule #165: itof_const_zero_fold_ui
9353 /* 9598 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner32),
9354 /* 9601 */ // Label 479: @9601
9355 /* 9601 */ GIM_Reject,
9356 /* 9602 */ // Label 80: @9602
9357 /* 9602 */ GIM_Try, /*On fail goto*//*Label 480*/ GIMT_Encode4(9631), // Rule ID 26 //
9358 /* 9607 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule24Enabled),
9359 /* 9610 */ // MIs[0] dst
9360 /* 9610 */ // No operand predicates
9361 /* 9610 */ // MIs[0] src
9362 /* 9610 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9363 /* 9614 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FABS),
9364 /* 9618 */ // MIs[1] __idempotent_prop_match_0.x
9365 /* 9618 */ // No operand predicates
9366 /* 9618 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9367 /* 9623 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9368 /* 9625 */ // Combiner Rule #24: idempotent_prop @ [__idempotent_prop_match_0[1]]
9369 /* 9625 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9370 /* 9630 */ GIR_EraseRootFromParent_Done,
9371 /* 9631 */ // Label 480: @9631
9372 /* 9631 */ GIM_Try, /*On fail goto*//*Label 481*/ GIMT_Encode4(9652), // Rule ID 205 //
9373 /* 9636 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule152Enabled),
9374 /* 9639 */ // MIs[0] dst
9375 /* 9639 */ // No operand predicates
9376 /* 9639 */ // MIs[0] src0
9377 /* 9639 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9378 /* 9643 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT),
9379 /* 9647 */ // MIs[1] cst
9380 /* 9647 */ // No operand predicates
9381 /* 9647 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9382 /* 9649 */ // Combiner Rule #152: constant_fold_fabs
9383 /* 9649 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner72),
9384 /* 9652 */ // Label 481: @9652
9385 /* 9652 */ GIM_Try, /*On fail goto*//*Label 482*/ GIMT_Encode4(9680), // Rule ID 315 //
9386 /* 9657 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule199Enabled),
9387 /* 9660 */ // MIs[0] dst
9388 /* 9660 */ // No operand predicates
9389 /* 9660 */ // MIs[0] tmp
9390 /* 9660 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9391 /* 9664 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FNEG),
9392 /* 9668 */ // MIs[1] x
9393 /* 9668 */ // No operand predicates
9394 /* 9668 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9395 /* 9670 */ // Combiner Rule #199: fabs_fneg_fold
9396 /* 9670 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FABS),
9397 /* 9673 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
9398 /* 9675 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
9399 /* 9679 */ GIR_EraseRootFromParent_Done,
9400 /* 9680 */ // Label 482: @9680
9401 /* 9680 */ GIM_Reject,
9402 /* 9681 */ // Label 81: @9681
9403 /* 9681 */ GIM_Try, /*On fail goto*//*Label 483*/ GIMT_Encode4(9692), // Rule ID 295 //
9404 /* 9686 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule195Enabled),
9405 /* 9689 */ // MIs[0] d
9406 /* 9689 */ // No operand predicates
9407 /* 9689 */ // MIs[0] mi.src0
9408 /* 9689 */ // No operand predicates
9409 /* 9689 */ // MIs[0] mi.src1
9410 /* 9689 */ // No operand predicates
9411 /* 9689 */ // Combiner Rule #195: constant_fold_fp_binop @ [mi[5]]
9412 /* 9689 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner93),
9413 /* 9692 */ // Label 483: @9692
9414 /* 9692 */ GIM_Reject,
9415 /* 9693 */ // Label 82: @9693
9416 /* 9693 */ GIM_Try, /*On fail goto*//*Label 484*/ GIMT_Encode4(9722), // Rule ID 27 //
9417 /* 9698 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule24Enabled),
9418 /* 9701 */ // MIs[0] dst
9419 /* 9701 */ // No operand predicates
9420 /* 9701 */ // MIs[0] src
9421 /* 9701 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9422 /* 9705 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCANONICALIZE),
9423 /* 9709 */ // MIs[1] __idempotent_prop_match_0.x
9424 /* 9709 */ // No operand predicates
9425 /* 9709 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9426 /* 9714 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9427 /* 9716 */ // Combiner Rule #24: idempotent_prop @ [__idempotent_prop_match_0[2]]
9428 /* 9716 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9429 /* 9721 */ GIR_EraseRootFromParent_Done,
9430 /* 9722 */ // Label 484: @9722
9431 /* 9722 */ GIM_Reject,
9432 /* 9723 */ // Label 83: @9723
9433 /* 9723 */ GIM_Try, /*On fail goto*//*Label 485*/ GIMT_Encode4(9734), // Rule ID 354 //
9434 /* 9728 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule215Enabled),
9435 /* 9731 */ // Combiner Rule #215: fold_binop_into_select; wip_match_opcode 'G_FMINNUM'
9436 /* 9731 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner108),
9437 /* 9734 */ // Label 485: @9734
9438 /* 9734 */ GIM_Try, /*On fail goto*//*Label 486*/ GIMT_Encode4(9745), // Rule ID 392 //
9439 /* 9739 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule228Enabled),
9440 /* 9742 */ // Combiner Rule #228: commute_fp_constant_to_rhs; wip_match_opcode 'G_FMINNUM'
9441 /* 9742 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
9442 /* 9745 */ // Label 486: @9745
9443 /* 9745 */ GIM_Try, /*On fail goto*//*Label 487*/ GIMT_Encode4(9756), // Rule ID 229 //
9444 /* 9750 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule171Enabled),
9445 /* 9753 */ // MIs[0] dst
9446 /* 9753 */ // No operand predicates
9447 /* 9753 */ // MIs[0] root.src0
9448 /* 9753 */ // No operand predicates
9449 /* 9753 */ // MIs[0] root.src1
9450 /* 9753 */ // No operand predicates
9451 /* 9753 */ // Combiner Rule #171: combine_minmax_nan @ [root[0]]
9452 /* 9753 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner78),
9453 /* 9756 */ // Label 487: @9756
9454 /* 9756 */ GIM_Try, /*On fail goto*//*Label 488*/ GIMT_Encode4(9767), // Rule ID 296 //
9455 /* 9761 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule195Enabled),
9456 /* 9764 */ // MIs[0] d
9457 /* 9764 */ // No operand predicates
9458 /* 9764 */ // MIs[0] mi.src0
9459 /* 9764 */ // No operand predicates
9460 /* 9764 */ // MIs[0] mi.src1
9461 /* 9764 */ // No operand predicates
9462 /* 9764 */ // Combiner Rule #195: constant_fold_fp_binop @ [mi[6]]
9463 /* 9764 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner93),
9464 /* 9767 */ // Label 488: @9767
9465 /* 9767 */ GIM_Reject,
9466 /* 9768 */ // Label 84: @9768
9467 /* 9768 */ GIM_Try, /*On fail goto*//*Label 489*/ GIMT_Encode4(9779), // Rule ID 355 //
9468 /* 9773 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule215Enabled),
9469 /* 9776 */ // Combiner Rule #215: fold_binop_into_select; wip_match_opcode 'G_FMAXNUM'
9470 /* 9776 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner108),
9471 /* 9779 */ // Label 489: @9779
9472 /* 9779 */ GIM_Try, /*On fail goto*//*Label 490*/ GIMT_Encode4(9790), // Rule ID 393 //
9473 /* 9784 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule228Enabled),
9474 /* 9787 */ // Combiner Rule #228: commute_fp_constant_to_rhs; wip_match_opcode 'G_FMAXNUM'
9475 /* 9787 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
9476 /* 9790 */ // Label 490: @9790
9477 /* 9790 */ GIM_Try, /*On fail goto*//*Label 491*/ GIMT_Encode4(9801), // Rule ID 230 //
9478 /* 9795 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule171Enabled),
9479 /* 9798 */ // MIs[0] dst
9480 /* 9798 */ // No operand predicates
9481 /* 9798 */ // MIs[0] root.src0
9482 /* 9798 */ // No operand predicates
9483 /* 9798 */ // MIs[0] root.src1
9484 /* 9798 */ // No operand predicates
9485 /* 9798 */ // Combiner Rule #171: combine_minmax_nan @ [root[1]]
9486 /* 9798 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner78),
9487 /* 9801 */ // Label 491: @9801
9488 /* 9801 */ GIM_Try, /*On fail goto*//*Label 492*/ GIMT_Encode4(9812), // Rule ID 297 //
9489 /* 9806 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule195Enabled),
9490 /* 9809 */ // MIs[0] d
9491 /* 9809 */ // No operand predicates
9492 /* 9809 */ // MIs[0] mi.src0
9493 /* 9809 */ // No operand predicates
9494 /* 9809 */ // MIs[0] mi.src1
9495 /* 9809 */ // No operand predicates
9496 /* 9809 */ // Combiner Rule #195: constant_fold_fp_binop @ [mi[7]]
9497 /* 9809 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner93),
9498 /* 9812 */ // Label 492: @9812
9499 /* 9812 */ GIM_Reject,
9500 /* 9813 */ // Label 85: @9813
9501 /* 9813 */ GIM_Try, /*On fail goto*//*Label 493*/ GIMT_Encode4(9824), // Rule ID 394 //
9502 /* 9818 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule228Enabled),
9503 /* 9821 */ // Combiner Rule #228: commute_fp_constant_to_rhs; wip_match_opcode 'G_FMINNUM_IEEE'
9504 /* 9821 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
9505 /* 9824 */ // Label 493: @9824
9506 /* 9824 */ GIM_Reject,
9507 /* 9825 */ // Label 86: @9825
9508 /* 9825 */ GIM_Try, /*On fail goto*//*Label 494*/ GIMT_Encode4(9836), // Rule ID 395 //
9509 /* 9830 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule228Enabled),
9510 /* 9833 */ // Combiner Rule #228: commute_fp_constant_to_rhs; wip_match_opcode 'G_FMAXNUM_IEEE'
9511 /* 9833 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
9512 /* 9836 */ // Label 494: @9836
9513 /* 9836 */ GIM_Reject,
9514 /* 9837 */ // Label 87: @9837
9515 /* 9837 */ GIM_Try, /*On fail goto*//*Label 495*/ GIMT_Encode4(9848), // Rule ID 356 //
9516 /* 9842 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule215Enabled),
9517 /* 9845 */ // Combiner Rule #215: fold_binop_into_select; wip_match_opcode 'G_FMINIMUM'
9518 /* 9845 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner108),
9519 /* 9848 */ // Label 495: @9848
9520 /* 9848 */ GIM_Try, /*On fail goto*//*Label 496*/ GIMT_Encode4(9859), // Rule ID 396 //
9521 /* 9853 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule228Enabled),
9522 /* 9856 */ // Combiner Rule #228: commute_fp_constant_to_rhs; wip_match_opcode 'G_FMINIMUM'
9523 /* 9856 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
9524 /* 9859 */ // Label 496: @9859
9525 /* 9859 */ GIM_Try, /*On fail goto*//*Label 497*/ GIMT_Encode4(9870), // Rule ID 231 //
9526 /* 9864 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule171Enabled),
9527 /* 9867 */ // MIs[0] dst
9528 /* 9867 */ // No operand predicates
9529 /* 9867 */ // MIs[0] root.src0
9530 /* 9867 */ // No operand predicates
9531 /* 9867 */ // MIs[0] root.src1
9532 /* 9867 */ // No operand predicates
9533 /* 9867 */ // Combiner Rule #171: combine_minmax_nan @ [root[2]]
9534 /* 9867 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner78),
9535 /* 9870 */ // Label 497: @9870
9536 /* 9870 */ GIM_Try, /*On fail goto*//*Label 498*/ GIMT_Encode4(9881), // Rule ID 298 //
9537 /* 9875 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule195Enabled),
9538 /* 9878 */ // MIs[0] d
9539 /* 9878 */ // No operand predicates
9540 /* 9878 */ // MIs[0] mi.src0
9541 /* 9878 */ // No operand predicates
9542 /* 9878 */ // MIs[0] mi.src1
9543 /* 9878 */ // No operand predicates
9544 /* 9878 */ // Combiner Rule #195: constant_fold_fp_binop @ [mi[8]]
9545 /* 9878 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner93),
9546 /* 9881 */ // Label 498: @9881
9547 /* 9881 */ GIM_Reject,
9548 /* 9882 */ // Label 88: @9882
9549 /* 9882 */ GIM_Try, /*On fail goto*//*Label 499*/ GIMT_Encode4(9893), // Rule ID 357 //
9550 /* 9887 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule215Enabled),
9551 /* 9890 */ // Combiner Rule #215: fold_binop_into_select; wip_match_opcode 'G_FMAXIMUM'
9552 /* 9890 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner108),
9553 /* 9893 */ // Label 499: @9893
9554 /* 9893 */ GIM_Try, /*On fail goto*//*Label 500*/ GIMT_Encode4(9904), // Rule ID 397 //
9555 /* 9898 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule228Enabled),
9556 /* 9901 */ // Combiner Rule #228: commute_fp_constant_to_rhs; wip_match_opcode 'G_FMAXIMUM'
9557 /* 9901 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
9558 /* 9904 */ // Label 500: @9904
9559 /* 9904 */ GIM_Try, /*On fail goto*//*Label 501*/ GIMT_Encode4(9915), // Rule ID 232 //
9560 /* 9909 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule171Enabled),
9561 /* 9912 */ // MIs[0] dst
9562 /* 9912 */ // No operand predicates
9563 /* 9912 */ // MIs[0] root.src0
9564 /* 9912 */ // No operand predicates
9565 /* 9912 */ // MIs[0] root.src1
9566 /* 9912 */ // No operand predicates
9567 /* 9912 */ // Combiner Rule #171: combine_minmax_nan @ [root[3]]
9568 /* 9912 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner78),
9569 /* 9915 */ // Label 501: @9915
9570 /* 9915 */ GIM_Try, /*On fail goto*//*Label 502*/ GIMT_Encode4(9926), // Rule ID 299 //
9571 /* 9920 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule195Enabled),
9572 /* 9923 */ // MIs[0] d
9573 /* 9923 */ // No operand predicates
9574 /* 9923 */ // MIs[0] mi.src0
9575 /* 9923 */ // No operand predicates
9576 /* 9923 */ // MIs[0] mi.src1
9577 /* 9923 */ // No operand predicates
9578 /* 9923 */ // Combiner Rule #195: constant_fold_fp_binop @ [mi[9]]
9579 /* 9923 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner93),
9580 /* 9926 */ // Label 502: @9926
9581 /* 9926 */ GIM_Reject,
9582 /* 9927 */ // Label 89: @9927
9583 /* 9927 */ GIM_Try, /*On fail goto*//*Label 503*/ GIMT_Encode4(9938), // Rule ID 300 //
9584 /* 9932 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule195Enabled),
9585 /* 9935 */ // MIs[0] d
9586 /* 9935 */ // No operand predicates
9587 /* 9935 */ // MIs[0] mi.src0
9588 /* 9935 */ // No operand predicates
9589 /* 9935 */ // MIs[0] mi.src1
9590 /* 9935 */ // No operand predicates
9591 /* 9935 */ // Combiner Rule #195: constant_fold_fp_binop @ [mi[10]]
9592 /* 9935 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner93),
9593 /* 9938 */ // Label 503: @9938
9594 /* 9938 */ GIM_Reject,
9595 /* 9939 */ // Label 90: @9939
9596 /* 9939 */ GIM_Try, /*On fail goto*//*Label 504*/ GIMT_Encode4(9950), // Rule ID 301 //
9597 /* 9944 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule195Enabled),
9598 /* 9947 */ // MIs[0] d
9599 /* 9947 */ // No operand predicates
9600 /* 9947 */ // MIs[0] mi.src0
9601 /* 9947 */ // No operand predicates
9602 /* 9947 */ // MIs[0] mi.src1
9603 /* 9947 */ // No operand predicates
9604 /* 9947 */ // Combiner Rule #195: constant_fold_fp_binop @ [mi[11]]
9605 /* 9947 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner93),
9606 /* 9950 */ // Label 504: @9950
9607 /* 9950 */ GIM_Reject,
9608 /* 9951 */ // Label 91: @9951
9609 /* 9951 */ GIM_Try, /*On fail goto*//*Label 505*/ GIMT_Encode4(9962), // Rule ID 273 //
9610 /* 9956 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
9611 /* 9959 */ // Combiner Rule #194: constant_fold_binop; wip_match_opcode 'G_PTR_ADD'
9612 /* 9959 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner92),
9613 /* 9962 */ // Label 505: @9962
9614 /* 9962 */ GIM_Try, /*On fail goto*//*Label 506*/ GIMT_Encode4(9973), // Rule ID 334 //
9615 /* 9967 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule215Enabled),
9616 /* 9970 */ // Combiner Rule #215: fold_binop_into_select; wip_match_opcode 'G_PTR_ADD'
9617 /* 9970 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner108),
9618 /* 9973 */ // Label 506: @9973
9619 /* 9973 */ GIM_Try, /*On fail goto*//*Label 507*/ GIMT_Encode4(10010), // Rule ID 219 //
9620 /* 9978 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule166Enabled),
9621 /* 9981 */ // MIs[0] dst
9622 /* 9981 */ // No operand predicates
9623 /* 9981 */ // MIs[0] base
9624 /* 9981 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9625 /* 9985 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_INTTOPTR),
9626 /* 9989 */ // MIs[1] c1reg
9627 /* 9989 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
9628 /* 9993 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
9629 /* 9997 */ // MIs[2] c1imm
9630 /* 9997 */ // No operand predicates
9631 /* 9997 */ // MIs[0] c2reg
9632 /* 9997 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/0, /*OpIdx*/2, // MIs[3]
9633 /* 10001 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
9634 /* 10005 */ // MIs[3] c2imm
9635 /* 10005 */ // No operand predicates
9636 /* 10005 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
9637 /* 10007 */ // Combiner Rule #166: const_ptradd_to_i2p
9638 /* 10007 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner73),
9639 /* 10010 */ // Label 507: @10010
9640 /* 10010 */ GIM_Try, /*On fail goto*//*Label 508*/ GIMT_Encode4(10033), // Rule ID 125 //
9641 /* 10015 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled),
9642 /* 10018 */ // MIs[0] dst
9643 /* 10018 */ // No operand predicates
9644 /* 10018 */ // MIs[0] lhs
9645 /* 10018 */ // No operand predicates
9646 /* 10018 */ // MIs[0] Operand 2
9647 /* 10018 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
9648 /* 10022 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9649 /* 10027 */ // Combiner Rule #90: right_identity_zero @ [__right_identity_zero_match_0[7]]
9650 /* 10027 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9651 /* 10032 */ GIR_EraseRootFromParent_Done,
9652 /* 10033 */ // Label 508: @10033
9653 /* 10033 */ GIM_Try, /*On fail goto*//*Label 509*/ GIMT_Encode4(10053), // Rule ID 235 //
9654 /* 10038 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule174Enabled),
9655 /* 10041 */ // MIs[0] dst
9656 /* 10041 */ // No operand predicates
9657 /* 10041 */ // MIs[0] base
9658 /* 10041 */ // No operand predicates
9659 /* 10041 */ // MIs[0] offset
9660 /* 10041 */ // No operand predicates
9661 /* 10041 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner19),
9662 /* 10045 */ // Combiner Rule #174: ptr_add_with_zero
9663 /* 10045 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_INTTOPTR),
9664 /* 10048 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
9665 /* 10050 */ GIR_RootToRootCopy, /*OpIdx*/2, // offset
9666 /* 10052 */ GIR_EraseRootFromParent_Done,
9667 /* 10053 */ // Label 509: @10053
9668 /* 10053 */ GIM_Try, /*On fail goto*//*Label 510*/ GIMT_Encode4(10064), // Rule ID 168 //
9669 /* 10058 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule115Enabled),
9670 /* 10061 */ // MIs[0] dst
9671 /* 10061 */ // No operand predicates
9672 /* 10061 */ // MIs[0] base
9673 /* 10061 */ // No operand predicates
9674 /* 10061 */ // MIs[0] offset
9675 /* 10061 */ // No operand predicates
9676 /* 10061 */ // Combiner Rule #115: reassoc_ptradd
9677 /* 10061 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner48),
9678 /* 10064 */ // Label 510: @10064
9679 /* 10064 */ GIM_Try, /*On fail goto*//*Label 511*/ GIMT_Encode4(10075), // Rule ID 170 //
9680 /* 10069 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule117Enabled),
9681 /* 10072 */ // MIs[0] dst
9682 /* 10072 */ // No operand predicates
9683 /* 10072 */ // MIs[0] base
9684 /* 10072 */ // No operand predicates
9685 /* 10072 */ // MIs[0] offset
9686 /* 10072 */ // No operand predicates
9687 /* 10072 */ // Combiner Rule #117: ptr_add_immed_chain
9688 /* 10072 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner50),
9689 /* 10075 */ // Label 511: @10075
9690 /* 10075 */ GIM_Reject,
9691 /* 10076 */ // Label 92: @10076
9692 /* 10076 */ GIM_Try, /*On fail goto*//*Label 512*/ GIMT_Encode4(10087), // Rule ID 286 //
9693 /* 10081 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
9694 /* 10084 */ // Combiner Rule #194: constant_fold_binop; wip_match_opcode 'G_SMIN'
9695 /* 10084 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner92),
9696 /* 10087 */ // Label 512: @10087
9697 /* 10087 */ GIM_Try, /*On fail goto*//*Label 513*/ GIMT_Encode4(10098), // Rule ID 345 //
9698 /* 10092 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule215Enabled),
9699 /* 10095 */ // Combiner Rule #215: fold_binop_into_select; wip_match_opcode 'G_SMIN'
9700 /* 10095 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner108),
9701 /* 10098 */ // Label 513: @10098
9702 /* 10098 */ GIM_Try, /*On fail goto*//*Label 514*/ GIMT_Encode4(10109), // Rule ID 374 //
9703 /* 10103 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule227Enabled),
9704 /* 10106 */ // Combiner Rule #227: commute_int_constant_to_rhs; wip_match_opcode 'G_SMIN'
9705 /* 10106 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner118),
9706 /* 10109 */ // Label 514: @10109
9707 /* 10109 */ GIM_Reject,
9708 /* 10110 */ // Label 93: @10110
9709 /* 10110 */ GIM_Try, /*On fail goto*//*Label 515*/ GIMT_Encode4(10121), // Rule ID 287 //
9710 /* 10115 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
9711 /* 10118 */ // Combiner Rule #194: constant_fold_binop; wip_match_opcode 'G_SMAX'
9712 /* 10118 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner92),
9713 /* 10121 */ // Label 515: @10121
9714 /* 10121 */ GIM_Try, /*On fail goto*//*Label 516*/ GIMT_Encode4(10132), // Rule ID 346 //
9715 /* 10126 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule215Enabled),
9716 /* 10129 */ // Combiner Rule #215: fold_binop_into_select; wip_match_opcode 'G_SMAX'
9717 /* 10129 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner108),
9718 /* 10132 */ // Label 516: @10132
9719 /* 10132 */ GIM_Try, /*On fail goto*//*Label 517*/ GIMT_Encode4(10143), // Rule ID 375 //
9720 /* 10137 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule227Enabled),
9721 /* 10140 */ // Combiner Rule #227: commute_int_constant_to_rhs; wip_match_opcode 'G_SMAX'
9722 /* 10140 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner118),
9723 /* 10143 */ // Label 517: @10143
9724 /* 10143 */ GIM_Reject,
9725 /* 10144 */ // Label 94: @10144
9726 /* 10144 */ GIM_Try, /*On fail goto*//*Label 518*/ GIMT_Encode4(10155), // Rule ID 288 //
9727 /* 10149 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
9728 /* 10152 */ // Combiner Rule #194: constant_fold_binop; wip_match_opcode 'G_UMIN'
9729 /* 10152 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner92),
9730 /* 10155 */ // Label 518: @10155
9731 /* 10155 */ GIM_Try, /*On fail goto*//*Label 519*/ GIMT_Encode4(10166), // Rule ID 347 //
9732 /* 10160 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule215Enabled),
9733 /* 10163 */ // Combiner Rule #215: fold_binop_into_select; wip_match_opcode 'G_UMIN'
9734 /* 10163 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner108),
9735 /* 10166 */ // Label 519: @10166
9736 /* 10166 */ GIM_Try, /*On fail goto*//*Label 520*/ GIMT_Encode4(10177), // Rule ID 376 //
9737 /* 10171 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule227Enabled),
9738 /* 10174 */ // Combiner Rule #227: commute_int_constant_to_rhs; wip_match_opcode 'G_UMIN'
9739 /* 10174 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner118),
9740 /* 10177 */ // Label 520: @10177
9741 /* 10177 */ GIM_Reject,
9742 /* 10178 */ // Label 95: @10178
9743 /* 10178 */ GIM_Try, /*On fail goto*//*Label 521*/ GIMT_Encode4(10189), // Rule ID 289 //
9744 /* 10183 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
9745 /* 10186 */ // Combiner Rule #194: constant_fold_binop; wip_match_opcode 'G_UMAX'
9746 /* 10186 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner92),
9747 /* 10189 */ // Label 521: @10189
9748 /* 10189 */ GIM_Try, /*On fail goto*//*Label 522*/ GIMT_Encode4(10200), // Rule ID 348 //
9749 /* 10194 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule215Enabled),
9750 /* 10197 */ // Combiner Rule #215: fold_binop_into_select; wip_match_opcode 'G_UMAX'
9751 /* 10197 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner108),
9752 /* 10200 */ // Label 522: @10200
9753 /* 10200 */ GIM_Try, /*On fail goto*//*Label 523*/ GIMT_Encode4(10211), // Rule ID 377 //
9754 /* 10205 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule227Enabled),
9755 /* 10208 */ // Combiner Rule #227: commute_int_constant_to_rhs; wip_match_opcode 'G_UMAX'
9756 /* 10208 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner118),
9757 /* 10211 */ // Label 523: @10211
9758 /* 10211 */ GIM_Reject,
9759 /* 10212 */ // Label 96: @10212
9760 /* 10212 */ GIM_Try, /*On fail goto*//*Label 524*/ GIMT_Encode4(10233), // Rule ID 96 //
9761 /* 10217 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule81Enabled),
9762 /* 10220 */ // MIs[0] dst
9763 /* 10220 */ // No operand predicates
9764 /* 10220 */ // MIs[0] __unary_undef_to_zero_match_0.x
9765 /* 10220 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9766 /* 10224 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
9767 /* 10228 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9768 /* 10230 */ // Combiner Rule #81: unary_undef_to_zero @ [__unary_undef_to_zero_match_0[0]]
9769 /* 10230 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner33),
9770 /* 10233 */ // Label 524: @10233
9771 /* 10233 */ GIM_Try, /*On fail goto*//*Label 525*/ GIMT_Encode4(10244), // Rule ID 312 //
9772 /* 10238 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule198Enabled),
9773 /* 10241 */ // MIs[0] dst
9774 /* 10241 */ // No operand predicates
9775 /* 10241 */ // MIs[0] mi.src
9776 /* 10241 */ // No operand predicates
9777 /* 10241 */ // Combiner Rule #198: constant_fold_unary_int_op @ [mi[5]]
9778 /* 10241 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner96),
9779 /* 10244 */ // Label 525: @10244
9780 /* 10244 */ GIM_Reject,
9781 /* 10245 */ // Label 97: @10245
9782 /* 10245 */ GIM_Try, /*On fail goto*//*Label 526*/ GIMT_Encode4(10256), // Rule ID 203 //
9783 /* 10250 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule150Enabled),
9784 /* 10253 */ // MIs[0] tgt
9785 /* 10253 */ // No operand predicates
9786 /* 10253 */ // Combiner Rule #150: opt_brcond_by_inverting_cond
9787 /* 10253 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner71),
9788 /* 10256 */ // Label 526: @10256
9789 /* 10256 */ GIM_Reject,
9790 /* 10257 */ // Label 98: @10257
9791 /* 10257 */ GIM_Try, /*On fail goto*//*Label 527*/ GIMT_Encode4(10268), // Rule ID 114 //
9792 /* 10262 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule87Enabled),
9793 /* 10265 */ // Combiner Rule #87: insert_extract_vec_elt_out_of_bounds; wip_match_opcode 'G_INSERT_VECTOR_ELT'
9794 /* 10265 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner38),
9795 /* 10268 */ // Label 527: @10268
9796 /* 10268 */ GIM_Try, /*On fail goto*//*Label 528*/ GIMT_Encode4(10307), // Rule ID 45 //
9797 /* 10273 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule41Enabled),
9798 /* 10276 */ // MIs[0] root
9799 /* 10276 */ // No operand predicates
9800 /* 10276 */ // MIs[0] src
9801 /* 10276 */ // No operand predicates
9802 /* 10276 */ // MIs[0] elt
9803 /* 10276 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
9804 /* 10280 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_EXTRACT_VECTOR_ELT),
9805 /* 10284 */ // MIs[1] src
9806 /* 10284 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/1, /*OpIdx*/1, /*OtherMI*/0, /*OtherOpIdx*/1,
9807 /* 10289 */ // MIs[1] idx
9808 /* 10289 */ // No operand predicates
9809 /* 10289 */ // MIs[0] idx
9810 /* 10289 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/3, /*OtherMI*/1, /*OtherOpIdx*/2,
9811 /* 10294 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9812 /* 10299 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9813 /* 10301 */ // Combiner Rule #41: insert_vector_element_extract_vector_element
9814 /* 10301 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9815 /* 10306 */ GIR_EraseRootFromParent_Done,
9816 /* 10307 */ // Label 528: @10307
9817 /* 10307 */ GIM_Try, /*On fail goto*//*Label 529*/ GIMT_Encode4(10340), // Rule ID 31 //
9818 /* 10312 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule27Enabled),
9819 /* 10315 */ // MIs[0] root
9820 /* 10315 */ // No operand predicates
9821 /* 10315 */ // MIs[0] src
9822 /* 10315 */ // No operand predicates
9823 /* 10315 */ // MIs[0] elt
9824 /* 10315 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
9825 /* 10319 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
9826 /* 10323 */ // MIs[0] idx
9827 /* 10323 */ // No operand predicates
9828 /* 10323 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner3),
9829 /* 10327 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9830 /* 10332 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9831 /* 10334 */ // Combiner Rule #27: insert_vector_element_elt_undef
9832 /* 10334 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9833 /* 10339 */ GIR_EraseRootFromParent_Done,
9834 /* 10340 */ // Label 529: @10340
9835 /* 10340 */ GIM_Try, /*On fail goto*//*Label 530*/ GIMT_Encode4(10364), // Rule ID 30 //
9836 /* 10345 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule26Enabled),
9837 /* 10348 */ // MIs[0] root
9838 /* 10348 */ // No operand predicates
9839 /* 10348 */ // MIs[0] src
9840 /* 10348 */ // No operand predicates
9841 /* 10348 */ // MIs[0] elt
9842 /* 10348 */ // No operand predicates
9843 /* 10348 */ // MIs[0] idx
9844 /* 10348 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/3, // MIs[1]
9845 /* 10352 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
9846 /* 10356 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9847 /* 10358 */ // Combiner Rule #26: insert_vector_element_idx_undef
9848 /* 10358 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
9849 /* 10361 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
9850 /* 10363 */ GIR_EraseRootFromParent_Done,
9851 /* 10364 */ // Label 530: @10364
9852 /* 10364 */ GIM_Try, /*On fail goto*//*Label 531*/ GIMT_Encode4(10375), // Rule ID 33 //
9853 /* 10369 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule29Enabled),
9854 /* 10372 */ // MIs[0] dst
9855 /* 10372 */ // No operand predicates
9856 /* 10372 */ // MIs[0] src
9857 /* 10372 */ // No operand predicates
9858 /* 10372 */ // MIs[0] elt
9859 /* 10372 */ // No operand predicates
9860 /* 10372 */ // MIs[0] idx
9861 /* 10372 */ // No operand predicates
9862 /* 10372 */ // Combiner Rule #29: insert_vector_elt_oob
9863 /* 10372 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner9),
9864 /* 10375 */ // Label 531: @10375
9865 /* 10375 */ GIM_Try, /*On fail goto*//*Label 532*/ GIMT_Encode4(10386), // Rule ID 74 //
9866 /* 10380 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule70Enabled),
9867 /* 10383 */ // MIs[0] dst
9868 /* 10383 */ // No operand predicates
9869 /* 10383 */ // MIs[0] src
9870 /* 10383 */ // No operand predicates
9871 /* 10383 */ // MIs[0] elt
9872 /* 10383 */ // No operand predicates
9873 /* 10383 */ // MIs[0] idx
9874 /* 10383 */ // No operand predicates
9875 /* 10383 */ // Combiner Rule #70: combine_insert_vec_elts_build_vector
9876 /* 10383 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner26),
9877 /* 10386 */ // Label 532: @10386
9878 /* 10386 */ GIM_Reject,
9879 /* 10387 */ // Label 99: @10387
9880 /* 10387 */ GIM_Try, /*On fail goto*//*Label 533*/ GIMT_Encode4(10398), // Rule ID 115 //
9881 /* 10392 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule87Enabled),
9882 /* 10395 */ // Combiner Rule #87: insert_extract_vec_elt_out_of_bounds; wip_match_opcode 'G_EXTRACT_VECTOR_ELT'
9883 /* 10395 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner38),
9884 /* 10398 */ // Label 533: @10398
9885 /* 10398 */ GIM_Try, /*On fail goto*//*Label 534*/ GIMT_Encode4(10422), // Rule ID 43 //
9886 /* 10403 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule39Enabled),
9887 /* 10406 */ // MIs[0] root
9888 /* 10406 */ // No operand predicates
9889 /* 10406 */ // MIs[0] src
9890 /* 10406 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9891 /* 10410 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR_TRUNC),
9892 /* 10414 */ GIM_CheckNumOperands, /*MI*/1, /*Expected*/9,
9893 /* 10417 */ // MIs[1] x
9894 /* 10417 */ // No operand predicates
9895 /* 10417 */ // MIs[1] y
9896 /* 10417 */ // No operand predicates
9897 /* 10417 */ // MIs[1] z
9898 /* 10417 */ // No operand predicates
9899 /* 10417 */ // MIs[1] a
9900 /* 10417 */ // No operand predicates
9901 /* 10417 */ // MIs[1] b
9902 /* 10417 */ // No operand predicates
9903 /* 10417 */ // MIs[1] c
9904 /* 10417 */ // No operand predicates
9905 /* 10417 */ // MIs[1] d
9906 /* 10417 */ // No operand predicates
9907 /* 10417 */ // MIs[1] e
9908 /* 10417 */ // No operand predicates
9909 /* 10417 */ // MIs[0] idx
9910 /* 10417 */ // No operand predicates
9911 /* 10417 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9912 /* 10419 */ // Combiner Rule #39: extract_vector_element_build_vector_trunc8
9913 /* 10419 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner12),
9914 /* 10422 */ // Label 534: @10422
9915 /* 10422 */ GIM_Try, /*On fail goto*//*Label 535*/ GIMT_Encode4(10446), // Rule ID 42 //
9916 /* 10427 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule38Enabled),
9917 /* 10430 */ // MIs[0] root
9918 /* 10430 */ // No operand predicates
9919 /* 10430 */ // MIs[0] src
9920 /* 10430 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9921 /* 10434 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR_TRUNC),
9922 /* 10438 */ GIM_CheckNumOperands, /*MI*/1, /*Expected*/8,
9923 /* 10441 */ // MIs[1] x
9924 /* 10441 */ // No operand predicates
9925 /* 10441 */ // MIs[1] y
9926 /* 10441 */ // No operand predicates
9927 /* 10441 */ // MIs[1] z
9928 /* 10441 */ // No operand predicates
9929 /* 10441 */ // MIs[1] a
9930 /* 10441 */ // No operand predicates
9931 /* 10441 */ // MIs[1] b
9932 /* 10441 */ // No operand predicates
9933 /* 10441 */ // MIs[1] c
9934 /* 10441 */ // No operand predicates
9935 /* 10441 */ // MIs[1] d
9936 /* 10441 */ // No operand predicates
9937 /* 10441 */ // MIs[0] idx
9938 /* 10441 */ // No operand predicates
9939 /* 10441 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9940 /* 10443 */ // Combiner Rule #38: extract_vector_element_build_vector_trunc7
9941 /* 10443 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner12),
9942 /* 10446 */ // Label 535: @10446
9943 /* 10446 */ GIM_Try, /*On fail goto*//*Label 536*/ GIMT_Encode4(10470), // Rule ID 41 //
9944 /* 10451 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule37Enabled),
9945 /* 10454 */ // MIs[0] root
9946 /* 10454 */ // No operand predicates
9947 /* 10454 */ // MIs[0] src
9948 /* 10454 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9949 /* 10458 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR_TRUNC),
9950 /* 10462 */ GIM_CheckNumOperands, /*MI*/1, /*Expected*/7,
9951 /* 10465 */ // MIs[1] x
9952 /* 10465 */ // No operand predicates
9953 /* 10465 */ // MIs[1] y
9954 /* 10465 */ // No operand predicates
9955 /* 10465 */ // MIs[1] z
9956 /* 10465 */ // No operand predicates
9957 /* 10465 */ // MIs[1] a
9958 /* 10465 */ // No operand predicates
9959 /* 10465 */ // MIs[1] b
9960 /* 10465 */ // No operand predicates
9961 /* 10465 */ // MIs[1] c
9962 /* 10465 */ // No operand predicates
9963 /* 10465 */ // MIs[0] idx
9964 /* 10465 */ // No operand predicates
9965 /* 10465 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9966 /* 10467 */ // Combiner Rule #37: extract_vector_element_build_vector_trunc6
9967 /* 10467 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner12),
9968 /* 10470 */ // Label 536: @10470
9969 /* 10470 */ GIM_Try, /*On fail goto*//*Label 537*/ GIMT_Encode4(10494), // Rule ID 40 //
9970 /* 10475 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule36Enabled),
9971 /* 10478 */ // MIs[0] root
9972 /* 10478 */ // No operand predicates
9973 /* 10478 */ // MIs[0] src
9974 /* 10478 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9975 /* 10482 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR_TRUNC),
9976 /* 10486 */ GIM_CheckNumOperands, /*MI*/1, /*Expected*/6,
9977 /* 10489 */ // MIs[1] x
9978 /* 10489 */ // No operand predicates
9979 /* 10489 */ // MIs[1] y
9980 /* 10489 */ // No operand predicates
9981 /* 10489 */ // MIs[1] z
9982 /* 10489 */ // No operand predicates
9983 /* 10489 */ // MIs[1] a
9984 /* 10489 */ // No operand predicates
9985 /* 10489 */ // MIs[1] b
9986 /* 10489 */ // No operand predicates
9987 /* 10489 */ // MIs[0] idx
9988 /* 10489 */ // No operand predicates
9989 /* 10489 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9990 /* 10491 */ // Combiner Rule #36: extract_vector_element_build_vector_trunc5
9991 /* 10491 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner12),
9992 /* 10494 */ // Label 537: @10494
9993 /* 10494 */ GIM_Try, /*On fail goto*//*Label 538*/ GIMT_Encode4(10518), // Rule ID 39 //
9994 /* 10499 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule35Enabled),
9995 /* 10502 */ // MIs[0] root
9996 /* 10502 */ // No operand predicates
9997 /* 10502 */ // MIs[0] src
9998 /* 10502 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9999 /* 10506 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR_TRUNC),
10000 /* 10510 */ GIM_CheckNumOperands, /*MI*/1, /*Expected*/5,
10001 /* 10513 */ // MIs[1] x
10002 /* 10513 */ // No operand predicates
10003 /* 10513 */ // MIs[1] y
10004 /* 10513 */ // No operand predicates
10005 /* 10513 */ // MIs[1] z
10006 /* 10513 */ // No operand predicates
10007 /* 10513 */ // MIs[1] a
10008 /* 10513 */ // No operand predicates
10009 /* 10513 */ // MIs[0] idx
10010 /* 10513 */ // No operand predicates
10011 /* 10513 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
10012 /* 10515 */ // Combiner Rule #35: extract_vector_element_build_vector_trunc4
10013 /* 10515 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner12),
10014 /* 10518 */ // Label 538: @10518
10015 /* 10518 */ GIM_Try, /*On fail goto*//*Label 539*/ GIMT_Encode4(10542), // Rule ID 38 //
10016 /* 10523 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule34Enabled),
10017 /* 10526 */ // MIs[0] root
10018 /* 10526 */ // No operand predicates
10019 /* 10526 */ // MIs[0] src
10020 /* 10526 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
10021 /* 10530 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR_TRUNC),
10022 /* 10534 */ GIM_CheckNumOperands, /*MI*/1, /*Expected*/4,
10023 /* 10537 */ // MIs[1] x
10024 /* 10537 */ // No operand predicates
10025 /* 10537 */ // MIs[1] y
10026 /* 10537 */ // No operand predicates
10027 /* 10537 */ // MIs[1] z
10028 /* 10537 */ // No operand predicates
10029 /* 10537 */ // MIs[0] idx
10030 /* 10537 */ // No operand predicates
10031 /* 10537 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
10032 /* 10539 */ // Combiner Rule #34: extract_vector_element_build_vector_trunc3
10033 /* 10539 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner12),
10034 /* 10542 */ // Label 539: @10542
10035 /* 10542 */ GIM_Try, /*On fail goto*//*Label 540*/ GIMT_Encode4(10576), // Rule ID 34 //
10036 /* 10547 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule30Enabled),
10037 /* 10550 */ // MIs[0] root
10038 /* 10550 */ // No operand predicates
10039 /* 10550 */ // MIs[0] src
10040 /* 10550 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
10041 /* 10554 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_INSERT_VECTOR_ELT),
10042 /* 10558 */ // MIs[1] x
10043 /* 10558 */ // No operand predicates
10044 /* 10558 */ // MIs[1] value
10045 /* 10558 */ // No operand predicates
10046 /* 10558 */ // MIs[1] idx
10047 /* 10558 */ // No operand predicates
10048 /* 10558 */ // MIs[0] idx
10049 /* 10558 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/3,
10050 /* 10563 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/2,
10051 /* 10568 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
10052 /* 10570 */ // Combiner Rule #30: extract_vector_element_not_const
10053 /* 10570 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/2,
10054 /* 10575 */ GIR_EraseRootFromParent_Done,
10055 /* 10576 */ // Label 540: @10576
10056 /* 10576 */ GIM_Try, /*On fail goto*//*Label 541*/ GIMT_Encode4(10597), // Rule ID 35 //
10057 /* 10581 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule31Enabled),
10058 /* 10584 */ // MIs[0] root
10059 /* 10584 */ // No operand predicates
10060 /* 10584 */ // MIs[0] src
10061 /* 10584 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
10062 /* 10588 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_INSERT_VECTOR_ELT),
10063 /* 10592 */ // MIs[1] x
10064 /* 10592 */ // No operand predicates
10065 /* 10592 */ // MIs[1] value
10066 /* 10592 */ // No operand predicates
10067 /* 10592 */ // MIs[1] idx2
10068 /* 10592 */ // No operand predicates
10069 /* 10592 */ // MIs[0] idx1
10070 /* 10592 */ // No operand predicates
10071 /* 10592 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
10072 /* 10594 */ // Combiner Rule #31: extract_vector_element_different_indices
10073 /* 10594 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner10),
10074 /* 10597 */ // Label 541: @10597
10075 /* 10597 */ GIM_Try, /*On fail goto*//*Label 542*/ GIMT_Encode4(10626), // Rule ID 44 //
10076 /* 10602 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule40Enabled),
10077 /* 10605 */ // MIs[0] root
10078 /* 10605 */ // No operand predicates
10079 /* 10605 */ // MIs[0] src
10080 /* 10605 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
10081 /* 10609 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SHUFFLE_VECTOR),
10082 /* 10613 */ // MIs[1] src1
10083 /* 10613 */ // No operand predicates
10084 /* 10613 */ // MIs[1] src2
10085 /* 10613 */ // No operand predicates
10086 /* 10613 */ // MIs[1] mask
10087 /* 10613 */ // No operand predicates
10088 /* 10613 */ // MIs[0] idx
10089 /* 10613 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
10090 /* 10617 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
10091 /* 10621 */ // MIs[2] imm
10092 /* 10621 */ // No operand predicates
10093 /* 10621 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
10094 /* 10623 */ // Combiner Rule #40: extract_vector_element_shuffle_vector
10095 /* 10623 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner13),
10096 /* 10626 */ // Label 542: @10626
10097 /* 10626 */ GIM_Try, /*On fail goto*//*Label 543*/ GIMT_Encode4(10650), // Rule ID 37 //
10098 /* 10631 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule33Enabled),
10099 /* 10634 */ // MIs[0] root
10100 /* 10634 */ // No operand predicates
10101 /* 10634 */ // MIs[0] src
10102 /* 10634 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
10103 /* 10638 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR_TRUNC),
10104 /* 10642 */ GIM_CheckNumOperands, /*MI*/1, /*Expected*/3,
10105 /* 10645 */ // MIs[1] x
10106 /* 10645 */ // No operand predicates
10107 /* 10645 */ // MIs[1] y
10108 /* 10645 */ // No operand predicates
10109 /* 10645 */ // MIs[0] idx
10110 /* 10645 */ // No operand predicates
10111 /* 10645 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
10112 /* 10647 */ // Combiner Rule #33: extract_vector_element_build_vector_trunc2
10113 /* 10647 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner12),
10114 /* 10650 */ // Label 543: @10650
10115 /* 10650 */ GIM_Try, /*On fail goto*//*Label 544*/ GIMT_Encode4(10682), // Rule ID 36 //
10116 /* 10655 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule32Enabled),
10117 /* 10658 */ // MIs[0] root
10118 /* 10658 */ // No operand predicates
10119 /* 10658 */ // MIs[0] src
10120 /* 10658 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
10121 /* 10662 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR),
10122 /* 10666 */ GIM_CheckNumOperandsGE, /*MI*/1, /*Expected*/2,
10123 /* 10669 */ // MIs[1] unused
10124 /* 10669 */ // No operand predicates
10125 /* 10669 */ // MIs[0] idx
10126 /* 10669 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
10127 /* 10673 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
10128 /* 10677 */ // MIs[2] imm
10129 /* 10677 */ // No operand predicates
10130 /* 10677 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
10131 /* 10679 */ // Combiner Rule #32: extract_vector_element_build_vector
10132 /* 10679 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner11),
10133 /* 10682 */ // Label 544: @10682
10134 /* 10682 */ GIM_Try, /*On fail goto*//*Label 545*/ GIMT_Encode4(10706), // Rule ID 28 //
10135 /* 10687 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule25Enabled),
10136 /* 10690 */ // MIs[0] root
10137 /* 10690 */ // No operand predicates
10138 /* 10690 */ // MIs[0] __extract_vector_element_undef_match_0.x
10139 /* 10690 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
10140 /* 10694 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
10141 /* 10698 */ // MIs[0] __extract_vector_element_undef_match_0.y
10142 /* 10698 */ // No operand predicates
10143 /* 10698 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
10144 /* 10700 */ // Combiner Rule #25: extract_vector_element_undef @ [__extract_vector_element_undef_match_0[0]]
10145 /* 10700 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
10146 /* 10703 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
10147 /* 10705 */ GIR_EraseRootFromParent_Done,
10148 /* 10706 */ // Label 545: @10706
10149 /* 10706 */ GIM_Try, /*On fail goto*//*Label 546*/ GIMT_Encode4(10730), // Rule ID 29 //
10150 /* 10711 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule25Enabled),
10151 /* 10714 */ // MIs[0] root
10152 /* 10714 */ // No operand predicates
10153 /* 10714 */ // MIs[0] __extract_vector_element_undef_match_0.x
10154 /* 10714 */ // No operand predicates
10155 /* 10714 */ // MIs[0] __extract_vector_element_undef_match_0.y
10156 /* 10714 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
10157 /* 10718 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
10158 /* 10722 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
10159 /* 10724 */ // Combiner Rule #25: extract_vector_element_undef @ [__extract_vector_element_undef_match_0[1]]
10160 /* 10724 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
10161 /* 10727 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
10162 /* 10729 */ GIR_EraseRootFromParent_Done,
10163 /* 10730 */ // Label 546: @10730
10164 /* 10730 */ GIM_Try, /*On fail goto*//*Label 547*/ GIMT_Encode4(10741), // Rule ID 32 //
10165 /* 10735 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule28Enabled),
10166 /* 10738 */ // MIs[0] dst
10167 /* 10738 */ // No operand predicates
10168 /* 10738 */ // MIs[0] src
10169 /* 10738 */ // No operand predicates
10170 /* 10738 */ // MIs[0] idx
10171 /* 10738 */ // No operand predicates
10172 /* 10738 */ // Combiner Rule #28: match_extract_of_element
10173 /* 10738 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner8),
10174 /* 10741 */ // Label 547: @10741
10175 /* 10741 */ GIM_Try, /*On fail goto*//*Label 548*/ GIMT_Encode4(10752), // Rule ID 75 //
10176 /* 10746 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule71Enabled),
10177 /* 10749 */ // MIs[0] dst
10178 /* 10749 */ // No operand predicates
10179 /* 10749 */ // MIs[0] src
10180 /* 10749 */ // No operand predicates
10181 /* 10749 */ // MIs[0] idx
10182 /* 10749 */ // No operand predicates
10183 /* 10749 */ // Combiner Rule #71: extract_vec_elt_build_vec
10184 /* 10749 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner27),
10185 /* 10752 */ // Label 548: @10752
10186 /* 10752 */ GIM_Try, /*On fail goto*//*Label 549*/ GIMT_Encode4(10763), // Rule ID 81 //
10187 /* 10757 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule75Enabled),
10188 /* 10760 */ // MIs[0] dst
10189 /* 10760 */ // No operand predicates
10190 /* 10760 */ // MIs[0] src
10191 /* 10760 */ // No operand predicates
10192 /* 10760 */ // MIs[0] idx
10193 /* 10760 */ // No operand predicates
10194 /* 10760 */ // Combiner Rule #75: combine_extracted_vector_load
10195 /* 10760 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner31),
10196 /* 10763 */ // Label 549: @10763
10197 /* 10763 */ GIM_Reject,
10198 /* 10764 */ // Label 100: @10764
10199 /* 10764 */ GIM_Try, /*On fail goto*//*Label 550*/ GIMT_Encode4(10775), // Rule ID 110 //
10200 /* 10769 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule84Enabled),
10201 /* 10772 */ // Combiner Rule #84: propagate_undef_all_ops; wip_match_opcode 'G_SHUFFLE_VECTOR'
10202 /* 10772 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner36),
10203 /* 10775 */ // Label 550: @10775
10204 /* 10775 */ GIM_Try, /*On fail goto*//*Label 551*/ GIMT_Encode4(10796), // Rule ID 412 //
10205 /* 10780 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule243Enabled),
10206 /* 10783 */ // MIs[0] root
10207 /* 10783 */ // No operand predicates
10208 /* 10783 */ // MIs[0] src1
10209 /* 10783 */ // No operand predicates
10210 /* 10783 */ // MIs[0] undef
10211 /* 10783 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
10212 /* 10787 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
10213 /* 10791 */ // MIs[0] mask
10214 /* 10791 */ // No operand predicates
10215 /* 10791 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
10216 /* 10793 */ // Combiner Rule #243: combine_shuffle_undef_rhs
10217 /* 10793 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner128),
10218 /* 10796 */ // Label 551: @10796
10219 /* 10796 */ GIM_Try, /*On fail goto*//*Label 552*/ GIMT_Encode4(10814), // Rule ID 112 //
10220 /* 10801 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule85Enabled),
10221 /* 10804 */ // MIs[0] dst
10222 /* 10804 */ // No operand predicates
10223 /* 10804 */ // MIs[0] src1
10224 /* 10804 */ // No operand predicates
10225 /* 10804 */ // MIs[0] src2
10226 /* 10804 */ // No operand predicates
10227 /* 10804 */ // MIs[0] mask
10228 /* 10804 */ // No operand predicates
10229 /* 10804 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner5),
10230 /* 10808 */ // Combiner Rule #85: propagate_undef_shuffle_mask
10231 /* 10808 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
10232 /* 10811 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10233 /* 10813 */ GIR_EraseRootFromParent_Done,
10234 /* 10814 */ // Label 552: @10814
10235 /* 10814 */ GIM_Try, /*On fail goto*//*Label 553*/ GIMT_Encode4(10825), // Rule ID 411 //
10236 /* 10819 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule242Enabled),
10237 /* 10822 */ // MIs[0] dst
10238 /* 10822 */ // No operand predicates
10239 /* 10822 */ // MIs[0] src1
10240 /* 10822 */ // No operand predicates
10241 /* 10822 */ // MIs[0] src2
10242 /* 10822 */ // No operand predicates
10243 /* 10822 */ // MIs[0] mask
10244 /* 10822 */ // No operand predicates
10245 /* 10822 */ // Combiner Rule #242: combine_shuffle_concat
10246 /* 10822 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner127),
10247 /* 10825 */ // Label 553: @10825
10248 /* 10825 */ GIM_Try, /*On fail goto*//*Label 554*/ GIMT_Encode4(10836), // Rule ID 413 //
10249 /* 10830 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule244Enabled),
10250 /* 10833 */ // MIs[0] dst
10251 /* 10833 */ // No operand predicates
10252 /* 10833 */ // MIs[0] src1
10253 /* 10833 */ // No operand predicates
10254 /* 10833 */ // MIs[0] src2
10255 /* 10833 */ // No operand predicates
10256 /* 10833 */ // MIs[0] mask
10257 /* 10833 */ // No operand predicates
10258 /* 10833 */ // Combiner Rule #244: combine_shuffle_disjoint_mask
10259 /* 10833 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129),
10260 /* 10836 */ // Label 554: @10836
10261 /* 10836 */ GIM_Reject,
10262 /* 10837 */ // Label 101: @10837
10263 /* 10837 */ GIM_Try, /*On fail goto*//*Label 555*/ GIMT_Encode4(10848), // Rule ID 309 //
10264 /* 10842 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule198Enabled),
10265 /* 10845 */ // MIs[0] dst
10266 /* 10845 */ // No operand predicates
10267 /* 10845 */ // MIs[0] mi.src
10268 /* 10845 */ // No operand predicates
10269 /* 10845 */ // Combiner Rule #198: constant_fold_unary_int_op @ [mi[2]]
10270 /* 10845 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner96),
10271 /* 10848 */ // Label 555: @10848
10272 /* 10848 */ GIM_Try, /*On fail goto*//*Label 556*/ GIMT_Encode4(10859), // Rule ID 437 //
10273 /* 10853 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule266Enabled),
10274 /* 10856 */ // MIs[0] dst
10275 /* 10856 */ // No operand predicates
10276 /* 10856 */ // MIs[0] src
10277 /* 10856 */ // No operand predicates
10278 /* 10856 */ // Combiner Rule #266: cttz_to_cttz_zero_poison
10279 /* 10856 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner147),
10280 /* 10859 */ // Label 556: @10859
10281 /* 10859 */ GIM_Reject,
10282 /* 10860 */ // Label 102: @10860
10283 /* 10860 */ GIM_Try, /*On fail goto*//*Label 557*/ GIMT_Encode4(10871), // Rule ID 310 //
10284 /* 10865 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule198Enabled),
10285 /* 10868 */ // MIs[0] dst
10286 /* 10868 */ // No operand predicates
10287 /* 10868 */ // MIs[0] mi.src
10288 /* 10868 */ // No operand predicates
10289 /* 10868 */ // Combiner Rule #198: constant_fold_unary_int_op @ [mi[3]]
10290 /* 10868 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner96),
10291 /* 10871 */ // Label 557: @10871
10292 /* 10871 */ GIM_Reject,
10293 /* 10872 */ // Label 103: @10872
10294 /* 10872 */ GIM_Try, /*On fail goto*//*Label 558*/ GIMT_Encode4(10883), // Rule ID 307 //
10295 /* 10877 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule198Enabled),
10296 /* 10880 */ // MIs[0] dst
10297 /* 10880 */ // No operand predicates
10298 /* 10880 */ // MIs[0] mi.src
10299 /* 10880 */ // No operand predicates
10300 /* 10880 */ // Combiner Rule #198: constant_fold_unary_int_op @ [mi[0]]
10301 /* 10880 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner96),
10302 /* 10883 */ // Label 558: @10883
10303 /* 10883 */ GIM_Try, /*On fail goto*//*Label 559*/ GIMT_Encode4(10894), // Rule ID 434 //
10304 /* 10888 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule263Enabled),
10305 /* 10891 */ // MIs[0] dst
10306 /* 10891 */ // No operand predicates
10307 /* 10891 */ // MIs[0] src
10308 /* 10891 */ // No operand predicates
10309 /* 10891 */ // Combiner Rule #263: ctlz_to_ctls
10310 /* 10891 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner146),
10311 /* 10894 */ // Label 559: @10894
10312 /* 10894 */ GIM_Try, /*On fail goto*//*Label 560*/ GIMT_Encode4(10905), // Rule ID 436 //
10313 /* 10899 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule265Enabled),
10314 /* 10902 */ // MIs[0] dst
10315 /* 10902 */ // No operand predicates
10316 /* 10902 */ // MIs[0] src
10317 /* 10902 */ // No operand predicates
10318 /* 10902 */ // Combiner Rule #265: ctlz_to_ctlz_zero_poison
10319 /* 10902 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner147),
10320 /* 10905 */ // Label 560: @10905
10321 /* 10905 */ GIM_Reject,
10322 /* 10906 */ // Label 104: @10906
10323 /* 10906 */ GIM_Try, /*On fail goto*//*Label 561*/ GIMT_Encode4(10917), // Rule ID 308 //
10324 /* 10911 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule198Enabled),
10325 /* 10914 */ // MIs[0] dst
10326 /* 10914 */ // No operand predicates
10327 /* 10914 */ // MIs[0] mi.src
10328 /* 10914 */ // No operand predicates
10329 /* 10914 */ // Combiner Rule #198: constant_fold_unary_int_op @ [mi[1]]
10330 /* 10914 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner96),
10331 /* 10917 */ // Label 561: @10917
10332 /* 10917 */ GIM_Try, /*On fail goto*//*Label 562*/ GIMT_Encode4(10928), // Rule ID 435 //
10333 /* 10922 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule264Enabled),
10334 /* 10925 */ // MIs[0] dst
10335 /* 10925 */ // No operand predicates
10336 /* 10925 */ // MIs[0] src
10337 /* 10925 */ // No operand predicates
10338 /* 10925 */ // Combiner Rule #264: ctlz_zero_poison_to_ctls
10339 /* 10925 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner146),
10340 /* 10928 */ // Label 562: @10928
10341 /* 10928 */ GIM_Reject,
10342 /* 10929 */ // Label 105: @10929
10343 /* 10929 */ GIM_Try, /*On fail goto*//*Label 563*/ GIMT_Encode4(10940), // Rule ID 311 //
10344 /* 10934 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule198Enabled),
10345 /* 10937 */ // MIs[0] dst
10346 /* 10937 */ // No operand predicates
10347 /* 10937 */ // MIs[0] mi.src
10348 /* 10937 */ // No operand predicates
10349 /* 10937 */ // Combiner Rule #198: constant_fold_unary_int_op @ [mi[4]]
10350 /* 10937 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner96),
10351 /* 10940 */ // Label 563: @10940
10352 /* 10940 */ GIM_Reject,
10353 /* 10941 */ // Label 106: @10941
10354 /* 10941 */ GIM_Try, /*On fail goto*//*Label 564*/ GIMT_Encode4(10952), // Rule ID 313 //
10355 /* 10946 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule198Enabled),
10356 /* 10949 */ // MIs[0] dst
10357 /* 10949 */ // No operand predicates
10358 /* 10949 */ // MIs[0] mi.src
10359 /* 10949 */ // No operand predicates
10360 /* 10949 */ // Combiner Rule #198: constant_fold_unary_int_op @ [mi[6]]
10361 /* 10949 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner96),
10362 /* 10952 */ // Label 564: @10952
10363 /* 10952 */ GIM_Reject,
10364 /* 10953 */ // Label 107: @10953
10365 /* 10953 */ GIM_Try, /*On fail goto*//*Label 565*/ GIMT_Encode4(10997), // Rule ID 263 //
10366 /* 10958 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled),
10367 /* 10961 */ // MIs[0] d
10368 /* 10961 */ // No operand predicates
10369 /* 10961 */ // MIs[0] src
10370 /* 10961 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
10371 /* 10965 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_LSHR),
10372 /* 10969 */ // MIs[1] rev
10373 /* 10969 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
10374 /* 10973 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_BITREVERSE),
10375 /* 10977 */ // MIs[2] val
10376 /* 10977 */ // No operand predicates
10377 /* 10977 */ // MIs[1] amt
10378 /* 10977 */ // No operand predicates
10379 /* 10977 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner21),
10380 /* 10981 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
10381 /* 10983 */ // Combiner Rule #187: bitreverse_lshr
10382 /* 10983 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SHL),
10383 /* 10986 */ GIR_RootToRootCopy, /*OpIdx*/0, // d
10384 /* 10988 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // val
10385 /* 10992 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // amt
10386 /* 10996 */ GIR_EraseRootFromParent_Done,
10387 /* 10997 */ // Label 565: @10997
10388 /* 10997 */ GIM_Try, /*On fail goto*//*Label 566*/ GIMT_Encode4(11041), // Rule ID 262 //
10389 /* 11002 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule186Enabled),
10390 /* 11005 */ // MIs[0] d
10391 /* 11005 */ // No operand predicates
10392 /* 11005 */ // MIs[0] src
10393 /* 11005 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
10394 /* 11009 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SHL),
10395 /* 11013 */ // MIs[1] rev
10396 /* 11013 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
10397 /* 11017 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_BITREVERSE),
10398 /* 11021 */ // MIs[2] val
10399 /* 11021 */ // No operand predicates
10400 /* 11021 */ // MIs[1] amt
10401 /* 11021 */ // No operand predicates
10402 /* 11021 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner20),
10403 /* 11025 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
10404 /* 11027 */ // Combiner Rule #186: bitreverse_shl
10405 /* 11027 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_LSHR),
10406 /* 11030 */ GIR_RootToRootCopy, /*OpIdx*/0, // d
10407 /* 11032 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // val
10408 /* 11036 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // amt
10409 /* 11040 */ GIR_EraseRootFromParent_Done,
10410 /* 11041 */ // Label 566: @11041
10411 /* 11041 */ GIM_Try, /*On fail goto*//*Label 567*/ GIMT_Encode4(11052), // Rule ID 314 //
10412 /* 11046 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule198Enabled),
10413 /* 11049 */ // MIs[0] dst
10414 /* 11049 */ // No operand predicates
10415 /* 11049 */ // MIs[0] mi.src
10416 /* 11049 */ // No operand predicates
10417 /* 11049 */ // Combiner Rule #198: constant_fold_unary_int_op @ [mi[7]]
10418 /* 11049 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner96),
10419 /* 11052 */ // Label 567: @11052
10420 /* 11052 */ GIM_Reject,
10421 /* 11053 */ // Label 108: @11053
10422 /* 11053 */ GIM_Try, /*On fail goto*//*Label 568*/ GIMT_Encode4(11074), // Rule ID 210 //
10423 /* 11058 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule157Enabled),
10424 /* 11061 */ // MIs[0] dst
10425 /* 11061 */ // No operand predicates
10426 /* 11061 */ // MIs[0] src0
10427 /* 11061 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
10428 /* 11065 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT),
10429 /* 11069 */ // MIs[1] cst
10430 /* 11069 */ // No operand predicates
10431 /* 11069 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
10432 /* 11071 */ // Combiner Rule #157: constant_fold_fceil
10433 /* 11071 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner72),
10434 /* 11074 */ // Label 568: @11074
10435 /* 11074 */ GIM_Reject,
10436 /* 11075 */ // Label 109: @11075
10437 /* 11075 */ GIM_Try, /*On fail goto*//*Label 569*/ GIMT_Encode4(11096), // Rule ID 206 //
10438 /* 11080 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule153Enabled),
10439 /* 11083 */ // MIs[0] dst
10440 /* 11083 */ // No operand predicates
10441 /* 11083 */ // MIs[0] src0
10442 /* 11083 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
10443 /* 11087 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT),
10444 /* 11091 */ // MIs[1] cst
10445 /* 11091 */ // No operand predicates
10446 /* 11091 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
10447 /* 11093 */ // Combiner Rule #153: constant_fold_fsqrt
10448 /* 11093 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner72),
10449 /* 11096 */ // Label 569: @11096
10450 /* 11096 */ GIM_Reject,
10451 /* 11097 */ // Label 110: @11097
10452 /* 11097 */ GIM_Try, /*On fail goto*//*Label 570*/ GIMT_Encode4(11118), // Rule ID 211 //
10453 /* 11102 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule158Enabled),
10454 /* 11105 */ // MIs[0] dst
10455 /* 11105 */ // No operand predicates
10456 /* 11105 */ // MIs[0] src0
10457 /* 11105 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
10458 /* 11109 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT),
10459 /* 11113 */ // MIs[1] cst
10460 /* 11113 */ // No operand predicates
10461 /* 11113 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
10462 /* 11115 */ // Combiner Rule #158: constant_fold_ffloor
10463 /* 11115 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner72),
10464 /* 11118 */ // Label 570: @11118
10465 /* 11118 */ GIM_Reject,
10466 /* 11119 */ // Label 111: @11119
10467 /* 11119 */ GIM_Try, /*On fail goto*//*Label 571*/ GIMT_Encode4(11140), // Rule ID 215 //
10468 /* 11124 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule162Enabled),
10469 /* 11127 */ // MIs[0] dst
10470 /* 11127 */ // No operand predicates
10471 /* 11127 */ // MIs[0] src0
10472 /* 11127 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
10473 /* 11131 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT),
10474 /* 11135 */ // MIs[1] cst
10475 /* 11135 */ // No operand predicates
10476 /* 11135 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
10477 /* 11137 */ // Combiner Rule #162: constant_fold_frint
10478 /* 11137 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner72),
10479 /* 11140 */ // Label 571: @11140
10480 /* 11140 */ GIM_Reject,
10481 /* 11141 */ // Label 112: @11141
10482 /* 11141 */ GIM_Try, /*On fail goto*//*Label 572*/ GIMT_Encode4(11162), // Rule ID 216 //
10483 /* 11146 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule163Enabled),
10484 /* 11149 */ // MIs[0] dst
10485 /* 11149 */ // No operand predicates
10486 /* 11149 */ // MIs[0] src0
10487 /* 11149 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
10488 /* 11153 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT),
10489 /* 11157 */ // MIs[1] cst
10490 /* 11157 */ // No operand predicates
10491 /* 11157 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
10492 /* 11159 */ // Combiner Rule #163: constant_fold_fnearbyint
10493 /* 11159 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner72),
10494 /* 11162 */ // Label 572: @11162
10495 /* 11162 */ GIM_Reject,
10496 /* 11163 */ // Label 113: @11163
10497 /* 11163 */ GIM_Reject,
10498 /* 11164 */ }; // Size: 11164 bytes
10499 return MatchTable0;
10500}
10501#undef GIMT_Encode2
10502#undef GIMT_Encode4
10503#undef GIMT_Encode8
10504
10505
10506#endif // GET_GICOMBINER_IMPL
10507
10508#ifdef GET_GICOMBINER_CONSTRUCTOR_INITS
10509
10510AvailableModuleFeatures(computeAvailableModuleFeatures(&STI)),
10511AvailableFunctionFeatures()
10512
10513#endif // GET_GICOMBINER_CONSTRUCTOR_INITS
10514
10515#ifdef GET_GICOMBINER_CONSTRUCTOR_INITS
10516
10517, State(0),
10518ExecInfo(TypeObjects, NumTypeObjects, FeatureBitsets, ComplexPredicateFns, CustomRenderers)
10519
10520#endif // GET_GICOMBINER_CONSTRUCTOR_INITS
10521
10522