1/*===- TableGen'erated file -------------------------------------*- C++ -*-===*\
2|* *|
3|* AMDGPUPreLegalizerCombinerImpl Combiner Match Table *|
4|* *|
5|* Automatically generated file, do not edit! *|
6|* *|
7\*===----------------------------------------------------------------------===*/
8
9#ifdef GET_GICOMBINER_DEPS
10
11#include "llvm/ADT/SparseBitVector.h"
12namespace llvm {
13
14extern cl::OptionCategory GICombinerOptionCategory;
15
16} // namespace llvm
17
18#endif // GET_GICOMBINER_DEPS
19
20#ifdef GET_GICOMBINER_TYPES
21
22struct AMDGPUPreLegalizerCombinerImplRuleConfig {
23 SparseBitVector<> DisabledRules;
24
25 bool isRuleEnabled(unsigned RuleID) const;
26 bool parseCommandLineOption();
27 bool setRuleEnabled(StringRef RuleIdentifier);
28 bool setRuleDisabled(StringRef RuleIdentifier);
29};
30
31static std::optional<uint64_t> getRuleIdxForIdentifier(StringRef RuleIdentifier) {
32 uint64_t I;
33 // getAtInteger(...) returns false on success
34 bool Parsed = !RuleIdentifier.getAsInteger(0, I);
35 if (Parsed)
36 return I;
37
38#ifndef NDEBUG
39 switch (RuleIdentifier.size()) {
40 default: break;
41 case 9: // 7 strings to match.
42 switch (RuleIdentifier[0]) {
43 default: break;
44 case 'a': // 1 string to match.
45 if (memcmp(RuleIdentifier.data()+1, "dd_shift", 8) != 0)
46 break;
47 return 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: // 19 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 'f': // 1 string to match.
282 if (memcmp(RuleIdentifier.data()+1, "oldable_fneg", 12) != 0)
283 break;
284 return 281; // "foldable_fneg"
285 case 'l': // 1 string to match.
286 if (memcmp(RuleIdentifier.data()+1, "oad_and_mask", 12) != 0)
287 break;
288 return 74; // "load_and_mask"
289 case 'm': // 3 strings to match.
290 switch (RuleIdentifier[1]) {
291 default: break;
292 case 'a': // 1 string to match.
293 if (memcmp(RuleIdentifier.data()+2, "tch_selects", 11) != 0)
294 break;
295 return 135; // "match_selects"
296 case 'e': // 1 string to match.
297 if (memcmp(RuleIdentifier.data()+2, "rge_unmerge", 11) != 0)
298 break;
299 return 248; // "merge_unmerge"
300 case 'u': // 1 string to match.
301 if (memcmp(RuleIdentifier.data()+2, "l_of_vscale", 11) != 0)
302 break;
303 return 43; // "mul_of_vscale"
304 }
305 break;
306 case 'r': // 1 string to match.
307 if (memcmp(RuleIdentifier.data()+1, "edundant_and", 12) != 0)
308 break;
309 return 143; // "redundant_and"
310 case 's': // 6 strings to match.
311 switch (RuleIdentifier[1]) {
312 default: break;
313 case 'a': // 1 string to match.
314 if (memcmp(RuleIdentifier.data()+2, "me_val_zero", 11) != 0)
315 break;
316 return 92; // "same_val_zero"
317 case 'd': // 1 string to match.
318 if (memcmp(RuleIdentifier.data()+2, "iv_by_const", 11) != 0)
319 break;
320 return 222; // "sdiv_by_const"
321 case 'h': // 1 string to match.
322 if (memcmp(RuleIdentifier.data()+2, "l_of_vscale", 11) != 0)
323 break;
324 return 44; // "shl_of_vscale"
325 case 'r': // 1 string to match.
326 if (memcmp(RuleIdentifier.data()+2, "em_by_const", 11) != 0)
327 break;
328 return 218; // "srem_by_const"
329 case 'u': // 2 strings to match.
330 if (memcmp(RuleIdentifier.data()+2, "b_", 2) != 0)
331 break;
332 switch (RuleIdentifier[4]) {
333 default: break;
334 case 'm': // 1 string to match.
335 if (memcmp(RuleIdentifier.data()+5, "inus_one", 8) != 0)
336 break;
337 return 270; // "sub_minus_one"
338 case 'o': // 1 string to match.
339 if (memcmp(RuleIdentifier.data()+5, "f_vscale", 8) != 0)
340 break;
341 return 45; // "sub_of_vscale"
342 }
343 break;
344 }
345 break;
346 case 'u': // 4 strings to match.
347 switch (RuleIdentifier[1]) {
348 default: break;
349 case 'd': // 1 string to match.
350 if (memcmp(RuleIdentifier.data()+2, "iv_by_const", 11) != 0)
351 break;
352 return 221; // "udiv_by_const"
353 case 'n': // 2 strings to match.
354 if (memcmp(RuleIdentifier.data()+2, "merge_", 6) != 0)
355 break;
356 switch (RuleIdentifier[8]) {
357 default: break;
358 case 'm': // 1 string to match.
359 if (memcmp(RuleIdentifier.data()+9, "erge", 4) != 0)
360 break;
361 return 247; // "unmerge_merge"
362 case 'u': // 1 string to match.
363 if (memcmp(RuleIdentifier.data()+9, "ndef", 4) != 0)
364 break;
365 return 250; // "unmerge_undef"
366 }
367 break;
368 case 'r': // 1 string to match.
369 if (memcmp(RuleIdentifier.data()+2, "em_by_const", 11) != 0)
370 break;
371 return 217; // "urem_by_const"
372 }
373 break;
374 }
375 break;
376 case 14: // 17 strings to match.
377 switch (RuleIdentifier[0]) {
378 default: break;
379 case 'A': // 2 strings to match.
380 switch (RuleIdentifier[1]) {
381 default: break;
382 case 'M': // 1 string to match.
383 if (memcmp(RuleIdentifier.data()+2, "inusC1PlusC2", 12) != 0)
384 break;
385 return 18; // "AMinusC1PlusC2"
386 case 'P': // 1 string to match.
387 if (memcmp(RuleIdentifier.data()+2, "lusC1MinusC2", 12) != 0)
388 break;
389 return 14; // "APlusC1MinusC2"
390 }
391 break;
392 case 'C': // 1 string to match.
393 if (memcmp(RuleIdentifier.data()+1, "2MinusAPlusC1", 13) != 0)
394 break;
395 return 15; // "C2MinusAPlusC1"
396 case 'N': // 1 string to match.
397 if (memcmp(RuleIdentifier.data()+1, "otAPlusNegOne", 13) != 0)
398 break;
399 return 13; // "NotAPlusNegOne"
400 case 'a': // 2 strings to match.
401 if (memcmp(RuleIdentifier.data()+1, "nyext_of_", 9) != 0)
402 break;
403 switch (RuleIdentifier[10]) {
404 default: break;
405 case 's': // 1 string to match.
406 if (memcmp(RuleIdentifier.data()+11, "ext", 3) != 0)
407 break;
408 return 57; // "anyext_of_sext"
409 case 'z': // 1 string to match.
410 if (memcmp(RuleIdentifier.data()+11, "ext", 3) != 0)
411 break;
412 return 56; // "anyext_of_zext"
413 }
414 break;
415 case 'b': // 3 strings to match.
416 if (RuleIdentifier[1] != 'i')
417 break;
418 switch (RuleIdentifier[2]) {
419 default: break;
420 case 'n': // 2 strings to match.
421 if (memcmp(RuleIdentifier.data()+3, "op_", 3) != 0)
422 break;
423 switch (RuleIdentifier[6]) {
424 default: break;
425 case 's': // 1 string to match.
426 if (memcmp(RuleIdentifier.data()+7, "ame_val", 7) != 0)
427 break;
428 return 91; // "binop_same_val"
429 case 'w': // 1 string to match.
430 if (memcmp(RuleIdentifier.data()+7, "ith_neg", 7) != 0)
431 break;
432 return 269; // "binop_with_neg"
433 }
434 break;
435 case 't': // 1 string to match.
436 if (memcmp(RuleIdentifier.data()+3, "reverse_shl", 11) != 0)
437 break;
438 return 186; // "bitreverse_shl"
439 }
440 break;
441 case 'f': // 2 strings to match.
442 switch (RuleIdentifier[1]) {
443 default: break;
444 case 'a': // 1 string to match.
445 if (memcmp(RuleIdentifier.data()+2, "bs_fneg_fold", 12) != 0)
446 break;
447 return 199; // "fabs_fneg_fold"
448 case 'n': // 1 string to match.
449 if (memcmp(RuleIdentifier.data()+2, "eg_fneg_fold", 12) != 0)
450 break;
451 return 98; // "fneg_fneg_fold"
452 }
453 break;
454 case 'm': // 1 string to match.
455 if (memcmp(RuleIdentifier.data()+1, "ul_by_neg_one", 13) != 0)
456 break;
457 return 23; // "mul_by_neg_one"
458 case 'r': // 1 string to match.
459 if (memcmp(RuleIdentifier.data()+1, "eassoc_ptradd", 13) != 0)
460 break;
461 return 115; // "reassoc_ptradd"
462 case 's': // 3 strings to match.
463 switch (RuleIdentifier[1]) {
464 default: break;
465 case 'e': // 2 strings to match.
466 switch (RuleIdentifier[2]) {
467 default: break;
468 case 'l': // 1 string to match.
469 if (memcmp(RuleIdentifier.data()+3, "ect_of_zext", 11) != 0)
470 break;
471 return 59; // "select_of_zext"
472 case 'x': // 1 string to match.
473 if (memcmp(RuleIdentifier.data()+3, "t_of_anyext", 11) != 0)
474 break;
475 return 54; // "sext_of_anyext"
476 }
477 break;
478 case 'h': // 1 string to match.
479 if (memcmp(RuleIdentifier.data()+2, "ifts_too_big", 12) != 0)
480 break;
481 return 114; // "shifts_too_big"
482 }
483 break;
484 case 'z': // 1 string to match.
485 if (memcmp(RuleIdentifier.data()+1, "ext_of_anyext", 13) != 0)
486 break;
487 return 52; // "zext_of_anyext"
488 }
489 break;
490 case 15: // 14 strings to match.
491 switch (RuleIdentifier[0]) {
492 default: break;
493 case 'A': // 2 strings to match.
494 switch (RuleIdentifier[1]) {
495 default: break;
496 case 'M': // 1 string to match.
497 if (memcmp(RuleIdentifier.data()+2, "inusC1MinusC2", 13) != 0)
498 break;
499 return 16; // "AMinusC1MinusC2"
500 case 'P': // 1 string to match.
501 if (memcmp(RuleIdentifier.data()+2, "lusZeroMinusB", 13) != 0)
502 break;
503 return 3; // "APlusZeroMinusB"
504 }
505 break;
506 case 'C': // 1 string to match.
507 if (memcmp(RuleIdentifier.data()+1, "1Minus2MinusC2", 14) != 0)
508 break;
509 return 17; // "C1Minus2MinusC2"
510 case 'G': // 1 string to match.
511 if (memcmp(RuleIdentifier.data()+1, "_FMA_fneg_fneg", 14) != 0)
512 break;
513 return 205; // "G_FMA_fneg_fneg"
514 case 'Z': // 1 string to match.
515 if (memcmp(RuleIdentifier.data()+1, "eroMinusAPlusB", 14) != 0)
516 break;
517 return 2; // "ZeroMinusAPlusB"
518 case 'a': // 2 strings to match.
519 if (memcmp(RuleIdentifier.data()+1, "vgceil_", 7) != 0)
520 break;
521 switch (RuleIdentifier[8]) {
522 default: break;
523 case 's': // 1 string to match.
524 if (memcmp(RuleIdentifier.data()+9, "_match", 6) != 0)
525 break;
526 return 277; // "avgceil_s_match"
527 case 'u': // 1 string to match.
528 if (memcmp(RuleIdentifier.data()+9, "_match", 6) != 0)
529 break;
530 return 276; // "avgceil_u_match"
531 }
532 break;
533 case 'b': // 1 string to match.
534 if (memcmp(RuleIdentifier.data()+1, "itreverse_lshr", 14) != 0)
535 break;
536 return 187; // "bitreverse_lshr"
537 case 'e': // 1 string to match.
538 if (memcmp(RuleIdentifier.data()+1, "xtending_loads", 14) != 0)
539 break;
540 return 73; // "extending_loads"
541 case 'i': // 1 string to match.
542 if (memcmp(RuleIdentifier.data()+1, "dempotent_prop", 14) != 0)
543 break;
544 return 24; // "idempotent_prop"
545 case 'l': // 1 string to match.
546 if (memcmp(RuleIdentifier.data()+1, "oad_or_combine", 14) != 0)
547 break;
548 return 177; // "load_or_combine"
549 case 'n': // 1 string to match.
550 if (memcmp(RuleIdentifier.data()+1, "arrow_binop_or", 14) != 0)
551 break;
552 return 67; // "narrow_binop_or"
553 case 'o': // 1 string to match.
554 if (memcmp(RuleIdentifier.data()+1, "verlapping_and", 14) != 0)
555 break;
556 return 167; // "overlapping_and"
557 case 'z': // 1 string to match.
558 if (memcmp(RuleIdentifier.data()+1, "ext_trunc_fold", 14) != 0)
559 break;
560 return 146; // "zext_trunc_fold"
561 }
562 break;
563 case 16: // 23 strings to match.
564 switch (RuleIdentifier[0]) {
565 default: break;
566 case 'A': // 1 string to match.
567 if (memcmp(RuleIdentifier.data()+1, "MinusZeroMinusB", 15) != 0)
568 break;
569 return 11; // "AMinusZeroMinusB"
570 case 'G': // 3 strings to match.
571 if (memcmp(RuleIdentifier.data()+1, "_F", 2) != 0)
572 break;
573 switch (RuleIdentifier[3]) {
574 default: break;
575 case 'D': // 1 string to match.
576 if (memcmp(RuleIdentifier.data()+4, "IV_fneg_fneg", 12) != 0)
577 break;
578 return 203; // "G_FDIV_fneg_fneg"
579 case 'M': // 2 strings to match.
580 switch (RuleIdentifier[4]) {
581 default: break;
582 case 'A': // 1 string to match.
583 if (memcmp(RuleIdentifier.data()+5, "D_fneg_fneg", 11) != 0)
584 break;
585 return 204; // "G_FMAD_fneg_fneg"
586 case 'U': // 1 string to match.
587 if (memcmp(RuleIdentifier.data()+5, "L_fneg_fneg", 11) != 0)
588 break;
589 return 202; // "G_FMUL_fneg_fneg"
590 }
591 break;
592 }
593 break;
594 case 'a': // 3 strings to match.
595 switch (RuleIdentifier[1]) {
596 default: break;
597 case 'n': // 1 string to match.
598 if (memcmp(RuleIdentifier.data()+2, "yext_of_anyext", 14) != 0)
599 break;
600 return 55; // "anyext_of_anyext"
601 case 'v': // 2 strings to match.
602 if (memcmp(RuleIdentifier.data()+2, "gfloor_", 7) != 0)
603 break;
604 switch (RuleIdentifier[9]) {
605 default: break;
606 case 's': // 1 string to match.
607 if (memcmp(RuleIdentifier.data()+10, "_match", 6) != 0)
608 break;
609 return 275; // "avgfloor_s_match"
610 case 'u': // 1 string to match.
611 if (memcmp(RuleIdentifier.data()+10, "_match", 6) != 0)
612 break;
613 return 274; // "avgfloor_u_match"
614 }
615 break;
616 }
617 break;
618 case 'c': // 2 strings to match.
619 switch (RuleIdentifier[1]) {
620 default: break;
621 case 'l': // 1 string to match.
622 if (memcmp(RuleIdentifier.data()+2, "amp_i64_to_i16", 14) != 0)
623 break;
624 return 280; // "clamp_i64_to_i16"
625 case 'o': // 1 string to match.
626 if (memcmp(RuleIdentifier.data()+2, "mmute_shift_or", 14) != 0)
627 break;
628 return 189; // "commute_shift_or"
629 }
630 break;
631 case 'n': // 5 strings to match.
632 if (memcmp(RuleIdentifier.data()+1, "arrow_binop_", 12) != 0)
633 break;
634 switch (RuleIdentifier[13]) {
635 default: break;
636 case 'a': // 2 strings to match.
637 switch (RuleIdentifier[14]) {
638 default: break;
639 case 'd': // 1 string to match.
640 if (RuleIdentifier[15] != 'd')
641 break;
642 return 63; // "narrow_binop_add"
643 case 'n': // 1 string to match.
644 if (RuleIdentifier[15] != 'd')
645 break;
646 return 66; // "narrow_binop_and"
647 }
648 break;
649 case 'm': // 1 string to match.
650 if (memcmp(RuleIdentifier.data()+14, "ul", 2) != 0)
651 break;
652 return 65; // "narrow_binop_mul"
653 case 's': // 1 string to match.
654 if (memcmp(RuleIdentifier.data()+14, "ub", 2) != 0)
655 break;
656 return 64; // "narrow_binop_sub"
657 case 'x': // 1 string to match.
658 if (memcmp(RuleIdentifier.data()+14, "or", 2) != 0)
659 break;
660 return 68; // "narrow_binop_xor"
661 }
662 break;
663 case 'o': // 1 string to match.
664 if (memcmp(RuleIdentifier.data()+1, "r_and_xor_to_or", 15) != 0)
665 break;
666 return 231; // "or_and_xor_to_or"
667 case 's': // 5 strings to match.
668 switch (RuleIdentifier[1]) {
669 default: break;
670 case 'e': // 3 strings to match.
671 if (memcmp(RuleIdentifier.data()+2, "lect_", 5) != 0)
672 break;
673 switch (RuleIdentifier[7]) {
674 default: break;
675 case 'o': // 1 string to match.
676 if (memcmp(RuleIdentifier.data()+8, "f_anyext", 8) != 0)
677 break;
678 return 60; // "select_of_anyext"
679 case 't': // 1 string to match.
680 if (memcmp(RuleIdentifier.data()+8, "o_minmax", 8) != 0)
681 break;
682 return 225; // "select_to_minmax"
683 case 'u': // 1 string to match.
684 if (memcmp(RuleIdentifier.data()+8, "ndef_cmp", 8) != 0)
685 break;
686 return 130; // "select_undef_cmp"
687 }
688 break;
689 case 'u': // 2 strings to match.
690 if (memcmp(RuleIdentifier.data()+2, "b_o", 3) != 0)
691 break;
692 switch (RuleIdentifier[5]) {
693 default: break;
694 case 'f': // 1 string to match.
695 if (memcmp(RuleIdentifier.data()+6, "_mul_const", 10) != 0)
696 break;
697 return 271; // "sub_of_mul_const"
698 case 'n': // 1 string to match.
699 if (memcmp(RuleIdentifier.data()+6, "e_from_sub", 10) != 0)
700 break;
701 return 268; // "sub_one_from_sub"
702 }
703 break;
704 }
705 break;
706 case 't': // 2 strings to match.
707 if (memcmp(RuleIdentifier.data()+1, "runcate_of_", 11) != 0)
708 break;
709 switch (RuleIdentifier[12]) {
710 default: break;
711 case 's': // 1 string to match.
712 if (memcmp(RuleIdentifier.data()+13, "ext", 3) != 0)
713 break;
714 return 49; // "truncate_of_sext"
715 case 'z': // 1 string to match.
716 if (memcmp(RuleIdentifier.data()+13, "ext", 3) != 0)
717 break;
718 return 48; // "truncate_of_zext"
719 }
720 break;
721 case 'u': // 1 string to match.
722 if (memcmp(RuleIdentifier.data()+1, "ndef_to_fp_zero", 15) != 0)
723 break;
724 return 76; // "undef_to_fp_zero"
725 }
726 break;
727 case 17: // 20 strings to match.
728 switch (RuleIdentifier[0]) {
729 default: break;
730 case 'A': // 2 strings to match.
731 if (memcmp(RuleIdentifier.data()+1, "PlusBMinus", 10) != 0)
732 break;
733 switch (RuleIdentifier[11]) {
734 default: break;
735 case 'A': // 1 string to match.
736 if (memcmp(RuleIdentifier.data()+12, "plusC", 5) != 0)
737 break;
738 return 8; // "APlusBMinusAplusC"
739 case 'C': // 1 string to match.
740 if (memcmp(RuleIdentifier.data()+12, "PlusA", 5) != 0)
741 break;
742 return 10; // "APlusBMinusCPlusA"
743 }
744 break;
745 case 'a': // 3 strings to match.
746 switch (RuleIdentifier[1]) {
747 default: break;
748 case 'd': // 1 string to match.
749 if (memcmp(RuleIdentifier.data()+2, "d_p2i_to_ptradd", 15) != 0)
750 break;
751 return 22; // "add_p2i_to_ptradd"
752 case 'n': // 2 strings to match.
753 switch (RuleIdentifier[2]) {
754 default: break;
755 case 'd': // 1 string to match.
756 if (memcmp(RuleIdentifier.data()+3, "_xor_or_to_and", 14) != 0)
757 break;
758 return 233; // "and_xor_or_to_and"
759 case 'y': // 1 string to match.
760 if (memcmp(RuleIdentifier.data()+3, "ext_trunc_fold", 14) != 0)
761 break;
762 return 97; // "anyext_trunc_fold"
763 }
764 break;
765 }
766 break;
767 case 'c': // 5 strings to match.
768 switch (RuleIdentifier[1]) {
769 default: break;
770 case 'a': // 2 strings to match.
771 if (memcmp(RuleIdentifier.data()+2, "nonicalize_", 11) != 0)
772 break;
773 switch (RuleIdentifier[13]) {
774 default: break;
775 case 'f': // 1 string to match.
776 if (memcmp(RuleIdentifier.data()+14, "cmp", 3) != 0)
777 break;
778 return 119; // "canonicalize_fcmp"
779 case 'i': // 1 string to match.
780 if (memcmp(RuleIdentifier.data()+14, "cmp", 3) != 0)
781 break;
782 return 118; // "canonicalize_icmp"
783 }
784 break;
785 case 'o': // 3 strings to match.
786 switch (RuleIdentifier[2]) {
787 default: break;
788 case 'm': // 2 strings to match.
789 switch (RuleIdentifier[3]) {
790 default: break;
791 case 'b': // 1 string to match.
792 if (memcmp(RuleIdentifier.data()+4, "ine_or_of_and", 13) != 0)
793 break;
794 return 278; // "combine_or_of_and"
795 case 'm': // 1 string to match.
796 if (memcmp(RuleIdentifier.data()+4, "ute_shift_add", 13) != 0)
797 break;
798 return 188; // "commute_shift_add"
799 }
800 break;
801 case 'n': // 1 string to match.
802 if (memcmp(RuleIdentifier.data()+3, "stant_fold_fma", 14) != 0)
803 break;
804 return 196; // "constant_fold_fma"
805 }
806 break;
807 }
808 break;
809 case 'd': // 1 string to match.
810 if (memcmp(RuleIdentifier.data()+1, "iv_rem_to_divrem", 16) != 0)
811 break;
812 return 178; // "div_rem_to_divrem"
813 case 'e': // 1 string to match.
814 if (memcmp(RuleIdentifier.data()+1, "rase_undef_store", 16) != 0)
815 break;
816 return 86; // "erase_undef_store"
817 case 'f': // 1 string to match.
818 if (memcmp(RuleIdentifier.data()+1, "old_fabs_fptrunc", 16) != 0)
819 break;
820 return 282; // "fold_fabs_fptrunc"
821 case 'p': // 1 string to match.
822 if (memcmp(RuleIdentifier.data()+1, "tr_add_with_zero", 16) != 0)
823 break;
824 return 174; // "ptr_add_with_zero"
825 case 's': // 4 strings to match.
826 switch (RuleIdentifier[1]) {
827 default: break;
828 case 'e': // 2 strings to match.
829 if (memcmp(RuleIdentifier.data()+2, "lect_", 5) != 0)
830 break;
831 switch (RuleIdentifier[7]) {
832 default: break;
833 case 't': // 1 string to match.
834 if (memcmp(RuleIdentifier.data()+8, "o_iminmax", 9) != 0)
835 break;
836 return 134; // "select_to_iminmax"
837 case 'z': // 1 string to match.
838 if (memcmp(RuleIdentifier.data()+8, "ero_false", 9) != 0)
839 break;
840 return 136; // "select_zero_false"
841 }
842 break;
843 case 'h': // 1 string to match.
844 if (memcmp(RuleIdentifier.data()+2, "ift_immed_chain", 15) != 0)
845 break;
846 return 175; // "shift_immed_chain"
847 case 'r': // 1 string to match.
848 if (memcmp(RuleIdentifier.data()+2, "em_pow2_to_mask", 15) != 0)
849 break;
850 return 216; // "srem_pow2_to_mask"
851 }
852 break;
853 case 'u': // 2 strings to match.
854 switch (RuleIdentifier[1]) {
855 default: break;
856 case 'n': // 1 string to match.
857 if (memcmp(RuleIdentifier.data()+2, "def_to_int_zero", 15) != 0)
858 break;
859 return 77; // "undef_to_int_zero"
860 case 'r': // 1 string to match.
861 if (memcmp(RuleIdentifier.data()+2, "em_pow2_to_mask", 15) != 0)
862 break;
863 return 145; // "urem_pow2_to_mask"
864 }
865 break;
866 }
867 break;
868 case 18: // 13 strings to match.
869 switch (RuleIdentifier[0]) {
870 default: break;
871 case 'A': // 3 strings to match.
872 switch (RuleIdentifier[1]) {
873 default: break;
874 case 'M': // 2 strings to match.
875 if (memcmp(RuleIdentifier.data()+2, "inusBPlus", 9) != 0)
876 break;
877 switch (RuleIdentifier[11]) {
878 default: break;
879 case 'B': // 1 string to match.
880 if (memcmp(RuleIdentifier.data()+12, "MinusC", 6) != 0)
881 break;
882 return 7; // "AMinusBPlusBMinusC"
883 case 'C': // 1 string to match.
884 if (memcmp(RuleIdentifier.data()+12, "MinusA", 6) != 0)
885 break;
886 return 6; // "AMinusBPlusCMinusA"
887 }
888 break;
889 case 'P': // 1 string to match.
890 if (memcmp(RuleIdentifier.data()+2, "lusBMinusCMinusB", 16) != 0)
891 break;
892 return 0; // "APlusBMinusCMinusB"
893 }
894 break;
895 case 'b': // 1 string to match.
896 if (memcmp(RuleIdentifier.data()+1, "inop_left_to_zero", 17) != 0)
897 break;
898 return 93; // "binop_left_to_zero"
899 case 'c': // 4 strings to match.
900 if (RuleIdentifier[1] != 'o')
901 break;
902 switch (RuleIdentifier[2]) {
903 default: break;
904 case 'm': // 2 strings to match.
905 if (memcmp(RuleIdentifier.data()+3, "bine_", 5) != 0)
906 break;
907 switch (RuleIdentifier[8]) {
908 default: break;
909 case 'm': // 1 string to match.
910 if (memcmp(RuleIdentifier.data()+9, "inmax_nan", 9) != 0)
911 break;
912 return 171; // "combine_minmax_nan"
913 case 'o': // 1 string to match.
914 if (memcmp(RuleIdentifier.data()+9, "r_s64_s32", 9) != 0)
915 break;
916 return 290; // "combine_or_s64_s32"
917 }
918 break;
919 case 'n': // 2 strings to match.
920 if (memcmp(RuleIdentifier.data()+3, "stant_fold_f", 12) != 0)
921 break;
922 switch (RuleIdentifier[15]) {
923 default: break;
924 case 'a': // 1 string to match.
925 if (memcmp(RuleIdentifier.data()+16, "bs", 2) != 0)
926 break;
927 return 152; // "constant_fold_fabs"
928 case 'n': // 1 string to match.
929 if (memcmp(RuleIdentifier.data()+16, "eg", 2) != 0)
930 break;
931 return 151; // "constant_fold_fneg"
932 }
933 break;
934 }
935 break;
936 case 'e': // 1 string to match.
937 if (memcmp(RuleIdentifier.data()+1, "xpand_const_fpowi", 17) != 0)
938 break;
939 return 172; // "expand_const_fpowi"
940 case 'f': // 1 string to match.
941 if (memcmp(RuleIdentifier.data()+1, "ptrunc_fpext_fold", 17) != 0)
942 break;
943 return 107; // "fptrunc_fpext_fold"
944 case 's': // 2 strings to match.
945 if (RuleIdentifier[1] != 'e')
946 break;
947 switch (RuleIdentifier[2]) {
948 default: break;
949 case 'l': // 1 string to match.
950 if (memcmp(RuleIdentifier.data()+3, "ect_of_truncate", 15) != 0)
951 break;
952 return 61; // "select_of_truncate"
953 case 'x': // 1 string to match.
954 if (memcmp(RuleIdentifier.data()+3, "t_inreg_of_load", 15) != 0)
955 break;
956 return 127; // "sext_inreg_of_load"
957 }
958 break;
959 case 't': // 1 string to match.
960 if (memcmp(RuleIdentifier.data()+1, "runcate_of_anyext", 17) != 0)
961 break;
962 return 50; // "truncate_of_anyext"
963 }
964 break;
965 case 19: // 18 strings to match.
966 switch (RuleIdentifier[0]) {
967 default: break;
968 case 'A': // 1 string to match.
969 if (memcmp(RuleIdentifier.data()+1, "MinusBMinusCMinusC", 18) != 0)
970 break;
971 return 1; // "AMinusBMinusCMinusC"
972 case 'b': // 1 string to match.
973 if (memcmp(RuleIdentifier.data()+1, "inop_right_to_zero", 18) != 0)
974 break;
975 return 94; // "binop_right_to_zero"
976 case 'c': // 7 strings to match.
977 if (memcmp(RuleIdentifier.data()+1, "onst", 4) != 0)
978 break;
979 switch (RuleIdentifier[5]) {
980 default: break;
981 case '_': // 1 string to match.
982 if (memcmp(RuleIdentifier.data()+6, "ptradd_to_i2p", 13) != 0)
983 break;
984 return 166; // "const_ptradd_to_i2p"
985 case 'a': // 6 strings to match.
986 if (memcmp(RuleIdentifier.data()+6, "nt_fold_", 8) != 0)
987 break;
988 switch (RuleIdentifier[14]) {
989 default: break;
990 case 'b': // 1 string to match.
991 if (memcmp(RuleIdentifier.data()+15, "inop", 4) != 0)
992 break;
993 return 194; // "constant_fold_binop"
994 case 'f': // 5 strings to match.
995 switch (RuleIdentifier[15]) {
996 default: break;
997 case 'c': // 1 string to match.
998 if (memcmp(RuleIdentifier.data()+16, "eil", 3) != 0)
999 break;
1000 return 157; // "constant_fold_fceil"
1001 case 'l': // 1 string to match.
1002 if (memcmp(RuleIdentifier.data()+16, "og2", 3) != 0)
1003 break;
1004 return 154; // "constant_fold_flog2"
1005 case 'p': // 1 string to match.
1006 if (memcmp(RuleIdentifier.data()+16, "ext", 3) != 0)
1007 break;
1008 return 156; // "constant_fold_fpext"
1009 case 'r': // 1 string to match.
1010 if (memcmp(RuleIdentifier.data()+16, "int", 3) != 0)
1011 break;
1012 return 162; // "constant_fold_frint"
1013 case 's': // 1 string to match.
1014 if (memcmp(RuleIdentifier.data()+16, "qrt", 3) != 0)
1015 break;
1016 return 153; // "constant_fold_fsqrt"
1017 }
1018 break;
1019 }
1020 break;
1021 }
1022 break;
1023 case 'e': // 1 string to match.
1024 if (memcmp(RuleIdentifier.data()+1, "xtend_through_phis", 18) != 0)
1025 break;
1026 return 111; // "extend_through_phis"
1027 case 'i': // 1 string to match.
1028 if (memcmp(RuleIdentifier.data()+1, "nteger_of_truncate", 18) != 0)
1029 break;
1030 return 69; // "integer_of_truncate"
1031 case 'm': // 1 string to match.
1032 if (memcmp(RuleIdentifier.data()+1, "erge_of_x_and_zero", 18) != 0)
1033 break;
1034 return 254; // "merge_of_x_and_zero"
1035 case 'p': // 1 string to match.
1036 if (memcmp(RuleIdentifier.data()+1, "tr_add_immed_chain", 18) != 0)
1037 break;
1038 return 117; // "ptr_add_immed_chain"
1039 case 'r': // 2 strings to match.
1040 switch (RuleIdentifier[1]) {
1041 default: break;
1042 case 'e': // 1 string to match.
1043 if (memcmp(RuleIdentifier.data()+2, "assoc_comm_binops", 17) != 0)
1044 break;
1045 return 116; // "reassoc_comm_binops"
1046 case 'i': // 1 string to match.
1047 if (memcmp(RuleIdentifier.data()+2, "ght_identity_zero", 17) != 0)
1048 break;
1049 return 90; // "right_identity_zero"
1050 }
1051 break;
1052 case 's': // 2 strings to match.
1053 if (memcmp(RuleIdentifier.data()+1, "implify_", 8) != 0)
1054 break;
1055 switch (RuleIdentifier[9]) {
1056 default: break;
1057 case 'a': // 1 string to match.
1058 if (memcmp(RuleIdentifier.data()+10, "dd_to_sub", 9) != 0)
1059 break;
1060 return 112; // "simplify_add_to_sub"
1061 case 'n': // 1 string to match.
1062 if (memcmp(RuleIdentifier.data()+10, "eg_minmax", 9) != 0)
1063 break;
1064 return 237; // "simplify_neg_minmax"
1065 }
1066 break;
1067 case 'u': // 1 string to match.
1068 if (memcmp(RuleIdentifier.data()+1, "nary_undef_to_zero", 18) != 0)
1069 break;
1070 return 81; // "unary_undef_to_zero"
1071 }
1072 break;
1073 case 20: // 9 strings to match.
1074 switch (RuleIdentifier[0]) {
1075 default: break;
1076 case 'a': // 1 string to match.
1077 if (memcmp(RuleIdentifier.data()+1, "nd_or_disjoint_mask", 19) != 0)
1078 break;
1079 return 206; // "and_or_disjoint_mask"
1080 case 'b': // 1 string to match.
1081 if (memcmp(RuleIdentifier.data()+1, "itcast_bitcast_fold", 19) != 0)
1082 break;
1083 return 105; // "bitcast_bitcast_fold"
1084 case 'c': // 1 string to match.
1085 if (memcmp(RuleIdentifier.data()+1, "onstant_fold_ffloor", 19) != 0)
1086 break;
1087 return 158; // "constant_fold_ffloor"
1088 case 'm': // 1 string to match.
1089 if (memcmp(RuleIdentifier.data()+1, "erge_of_x_and_undef", 19) != 0)
1090 break;
1091 return 253; // "merge_of_x_and_undef"
1092 case 'o': // 1 string to match.
1093 if (memcmp(RuleIdentifier.data()+1, "r_and_xor_to_xor_or", 19) != 0)
1094 break;
1095 return 232; // "or_and_xor_to_xor_or"
1096 case 'r': // 2 strings to match.
1097 if (memcmp(RuleIdentifier.data()+1, "edu", 3) != 0)
1098 break;
1099 switch (RuleIdentifier[4]) {
1100 default: break;
1101 case 'c': // 1 string to match.
1102 if (memcmp(RuleIdentifier.data()+5, "e_shl_of_extend", 15) != 0)
1103 break;
1104 return 128; // "reduce_shl_of_extend"
1105 case 'n': // 1 string to match.
1106 if (memcmp(RuleIdentifier.data()+5, "dant_sext_inreg", 15) != 0)
1107 break;
1108 return 138; // "redundant_sext_inreg"
1109 }
1110 break;
1111 case 'u': // 2 strings to match.
1112 if (RuleIdentifier[1] != 'n')
1113 break;
1114 switch (RuleIdentifier[2]) {
1115 default: break;
1116 case 'a': // 1 string to match.
1117 if (memcmp(RuleIdentifier.data()+3, "ry_undef_to_undef", 17) != 0)
1118 break;
1119 return 82; // "unary_undef_to_undef"
1120 case 'm': // 1 string to match.
1121 if (memcmp(RuleIdentifier.data()+3, "erge_zext_to_zext", 17) != 0)
1122 break;
1123 return 252; // "unmerge_zext_to_zext"
1124 }
1125 break;
1126 }
1127 break;
1128 case 21: // 12 strings to match.
1129 switch (RuleIdentifier[0]) {
1130 default: break;
1131 case 'a': // 1 string to match.
1132 if (memcmp(RuleIdentifier.data()+1, "nd_xor_or_to_xor_and", 20) != 0)
1133 break;
1134 return 234; // "and_xor_or_to_xor_and"
1135 case 'c': // 4 strings to match.
1136 if (RuleIdentifier[1] != 'o')
1137 break;
1138 switch (RuleIdentifier[2]) {
1139 default: break;
1140 case 'm': // 2 strings to match.
1141 if (memcmp(RuleIdentifier.data()+3, "bine_", 5) != 0)
1142 break;
1143 switch (RuleIdentifier[8]) {
1144 default: break;
1145 case 'b': // 1 string to match.
1146 if (memcmp(RuleIdentifier.data()+9, "uild_unmerge", 12) != 0)
1147 break;
1148 return 255; // "combine_build_unmerge"
1149 case 'c': // 1 string to match.
1150 if (memcmp(RuleIdentifier.data()+9, "oncat_vector", 12) != 0)
1151 break;
1152 return 238; // "combine_concat_vector"
1153 }
1154 break;
1155 case 'n': // 2 strings to match.
1156 if (memcmp(RuleIdentifier.data()+3, "stant_fold_", 11) != 0)
1157 break;
1158 switch (RuleIdentifier[14]) {
1159 default: break;
1160 case 'c': // 1 string to match.
1161 if (memcmp(RuleIdentifier.data()+15, "ast_op", 6) != 0)
1162 break;
1163 return 197; // "constant_fold_cast_op"
1164 case 'f': // 1 string to match.
1165 if (memcmp(RuleIdentifier.data()+15, "ptrunc", 6) != 0)
1166 break;
1167 return 155; // "constant_fold_fptrunc"
1168 }
1169 break;
1170 }
1171 break;
1172 case 'f': // 1 string to match.
1173 if (memcmp(RuleIdentifier.data()+1, "div_repeated_divison", 20) != 0)
1174 break;
1175 return 223; // "fdiv_repeated_divison"
1176 case 'i': // 1 string to match.
1177 if (memcmp(RuleIdentifier.data()+1, "nsert_vector_elt_oob", 20) != 0)
1178 break;
1179 return 29; // "insert_vector_elt_oob"
1180 case 'l': // 1 string to match.
1181 if (memcmp(RuleIdentifier.data()+1, "shr_of_trunc_of_lshr", 20) != 0)
1182 break;
1183 return 262; // "lshr_of_trunc_of_lshr"
1184 case 'r': // 1 string to match.
1185 if (memcmp(RuleIdentifier.data()+1, "ight_identity_one_fp", 20) != 0)
1186 break;
1187 return 100; // "right_identity_one_fp"
1188 case 's': // 1 string to match.
1189 if (memcmp(RuleIdentifier.data()+1, "elect_same_val_equiv", 20) != 0)
1190 break;
1191 return 89; // "select_same_val_equiv"
1192 case 'u': // 2 strings to match.
1193 if (RuleIdentifier[1] != 'n')
1194 break;
1195 switch (RuleIdentifier[2]) {
1196 default: break;
1197 case 'd': // 1 string to match.
1198 if (memcmp(RuleIdentifier.data()+3, "ef_to_negative_one", 18) != 0)
1199 break;
1200 return 78; // "undef_to_negative_one"
1201 case 'm': // 1 string to match.
1202 if (memcmp(RuleIdentifier.data()+3, "erge_dead_to_trunc", 18) != 0)
1203 break;
1204 return 251; // "unmerge_dead_to_trunc"
1205 }
1206 break;
1207 }
1208 break;
1209 case 22: // 13 strings to match.
1210 switch (RuleIdentifier[0]) {
1211 default: break;
1212 case 'c': // 3 strings to match.
1213 if (RuleIdentifier[1] != 'o')
1214 break;
1215 switch (RuleIdentifier[2]) {
1216 default: break;
1217 case 'm': // 2 strings to match.
1218 if (memcmp(RuleIdentifier.data()+3, "bine_shuffle_", 13) != 0)
1219 break;
1220 switch (RuleIdentifier[16]) {
1221 default: break;
1222 case 'c': // 1 string to match.
1223 if (memcmp(RuleIdentifier.data()+17, "oncat", 5) != 0)
1224 break;
1225 return 242; // "combine_shuffle_concat"
1226 case 'v': // 1 string to match.
1227 if (memcmp(RuleIdentifier.data()+17, "ector", 5) != 0)
1228 break;
1229 return 283; // "combine_shuffle_vector"
1230 }
1231 break;
1232 case 'n': // 1 string to match.
1233 if (memcmp(RuleIdentifier.data()+3, "stant_fold_fp_binop", 19) != 0)
1234 break;
1235 return 195; // "constant_fold_fp_binop"
1236 }
1237 break;
1238 case 'f': // 4 strings to match.
1239 switch (RuleIdentifier[1]) {
1240 default: break;
1241 case 'o': // 1 string to match.
1242 if (memcmp(RuleIdentifier.data()+2, "ld_binop_into_select", 20) != 0)
1243 break;
1244 return 215; // "fold_binop_into_select"
1245 case 'u': // 3 strings to match.
1246 if (memcmp(RuleIdentifier.data()+2, "nnel_shift_", 11) != 0)
1247 break;
1248 switch (RuleIdentifier[13]) {
1249 default: break;
1250 case 'l': // 1 string to match.
1251 if (memcmp(RuleIdentifier.data()+14, "eft_zero", 8) != 0)
1252 break;
1253 return 182; // "funnel_shift_left_zero"
1254 case 'o': // 1 string to match.
1255 if (memcmp(RuleIdentifier.data()+14, "vershift", 8) != 0)
1256 break;
1257 return 183; // "funnel_shift_overshift"
1258 case 't': // 1 string to match.
1259 if (memcmp(RuleIdentifier.data()+14, "o_rotate", 8) != 0)
1260 break;
1261 return 180; // "funnel_shift_to_rotate"
1262 }
1263 break;
1264 }
1265 break;
1266 case 'i': // 1 string to match.
1267 if (memcmp(RuleIdentifier.data()+1, "cmp_to_lhs_known_bits", 21) != 0)
1268 break;
1269 return 121; // "icmp_to_lhs_known_bits"
1270 case 'm': // 1 string to match.
1271 if (memcmp(RuleIdentifier.data()+1, "atch_subo_no_overflow", 21) != 0)
1272 break;
1273 return 257; // "match_subo_no_overflow"
1274 case 'p': // 1 string to match.
1275 if (memcmp(RuleIdentifier.data()+1, "ropagate_undef_any_op", 21) != 0)
1276 break;
1277 return 83; // "propagate_undef_any_op"
1278 case 'r': // 1 string to match.
1279 if (memcmp(RuleIdentifier.data()+1, "ight_identity_one_int", 21) != 0)
1280 break;
1281 return 99; // "right_identity_one_int"
1282 case 's': // 1 string to match.
1283 if (memcmp(RuleIdentifier.data()+1, "hl_ashr_to_sext_inreg", 21) != 0)
1284 break;
1285 return 125; // "shl_ashr_to_sext_inreg"
1286 case 't': // 1 string to match.
1287 if (memcmp(RuleIdentifier.data()+1, "runc_buildvector_fold", 21) != 0)
1288 break;
1289 return 103; // "trunc_buildvector_fold"
1290 }
1291 break;
1292 case 23: // 7 strings to match.
1293 switch (RuleIdentifier[0]) {
1294 default: break;
1295 case 'b': // 1 string to match.
1296 if (memcmp(RuleIdentifier.data()+1, "uildvector_of_truncate", 22) != 0)
1297 break;
1298 return 62; // "buildvector_of_truncate"
1299 case 'f': // 1 string to match.
1300 if (memcmp(RuleIdentifier.data()+1, "unnel_shift_right_zero", 22) != 0)
1301 break;
1302 return 181; // "funnel_shift_right_zero"
1303 case 'i': // 2 strings to match.
1304 if (memcmp(RuleIdentifier.data()+1, "tof_const_zero_fold_", 20) != 0)
1305 break;
1306 switch (RuleIdentifier[21]) {
1307 default: break;
1308 case 's': // 1 string to match.
1309 if (RuleIdentifier[22] != 'i')
1310 break;
1311 return 164; // "itof_const_zero_fold_si"
1312 case 'u': // 1 string to match.
1313 if (RuleIdentifier[22] != 'i')
1314 break;
1315 return 165; // "itof_const_zero_fold_ui"
1316 }
1317 break;
1318 case 'p': // 1 string to match.
1319 if (memcmp(RuleIdentifier.data()+1, "ropagate_undef_all_ops", 22) != 0)
1320 break;
1321 return 84; // "propagate_undef_all_ops"
1322 case 's': // 1 string to match.
1323 if (memcmp(RuleIdentifier.data()+1, "elect_same_val_trivial", 22) != 0)
1324 break;
1325 return 88; // "select_same_val_trivial"
1326 case 't': // 1 string to match.
1327 if (memcmp(RuleIdentifier.data()+1, "runcusatu_to_fptouisat", 22) != 0)
1328 break;
1329 return 261; // "truncusatu_to_fptouisat"
1330 }
1331 break;
1332 case 24: // 13 strings to match.
1333 switch (RuleIdentifier[0]) {
1334 default: break;
1335 case 'b': // 1 string to match.
1336 if (memcmp(RuleIdentifier.data()+1, "inop_left_undef_to_zero", 23) != 0)
1337 break;
1338 return 79; // "binop_left_undef_to_zero"
1339 case 'c': // 4 strings to match.
1340 switch (RuleIdentifier[1]) {
1341 default: break;
1342 case 'o': // 1 string to match.
1343 if (memcmp(RuleIdentifier.data()+2, "nstant_fold_fnearbyint", 22) != 0)
1344 break;
1345 return 163; // "constant_fold_fnearbyint"
1346 case 't': // 3 strings to match.
1347 switch (RuleIdentifier[2]) {
1348 default: break;
1349 case 'l': // 2 strings to match.
1350 if (memcmp(RuleIdentifier.data()+3, "z_", 2) != 0)
1351 break;
1352 switch (RuleIdentifier[5]) {
1353 default: break;
1354 case 't': // 1 string to match.
1355 if (memcmp(RuleIdentifier.data()+6, "o_ctlz_zero_poison", 18) != 0)
1356 break;
1357 return 265; // "ctlz_to_ctlz_zero_poison"
1358 case 'z': // 1 string to match.
1359 if (memcmp(RuleIdentifier.data()+6, "ero_poison_to_ctls", 18) != 0)
1360 break;
1361 return 264; // "ctlz_zero_poison_to_ctls"
1362 }
1363 break;
1364 case 't': // 1 string to match.
1365 if (memcmp(RuleIdentifier.data()+3, "z_to_cttz_zero_poison", 21) != 0)
1366 break;
1367 return 266; // "cttz_to_cttz_zero_poison"
1368 }
1369 break;
1370 }
1371 break;
1372 case 'm': // 1 string to match.
1373 if (memcmp(RuleIdentifier.data()+1, "atch_extract_of_element", 23) != 0)
1374 break;
1375 return 28; // "match_extract_of_element"
1376 case 'n': // 1 string to match.
1377 if (memcmp(RuleIdentifier.data()+1, "arrow_binop_feeding_and", 23) != 0)
1378 break;
1379 return 129; // "narrow_binop_feeding_and"
1380 case 's': // 3 strings to match.
1381 if (RuleIdentifier[1] != 'e')
1382 break;
1383 switch (RuleIdentifier[2]) {
1384 default: break;
1385 case 'l': // 1 string to match.
1386 if (memcmp(RuleIdentifier.data()+3, "ect_constant_cmp_true", 21) != 0)
1387 break;
1388 return 132; // "select_constant_cmp_true"
1389 case 'x': // 2 strings to match.
1390 if (memcmp(RuleIdentifier.data()+3, "t_inreg_", 8) != 0)
1391 break;
1392 switch (RuleIdentifier[11]) {
1393 default: break;
1394 case 'o': // 1 string to match.
1395 if (memcmp(RuleIdentifier.data()+12, "f_sext_inreg", 12) != 0)
1396 break;
1397 return 58; // "sext_inreg_of_sext_inreg"
1398 case 't': // 1 string to match.
1399 if (memcmp(RuleIdentifier.data()+12, "o_zext_inreg", 12) != 0)
1400 break;
1401 return 147; // "sext_inreg_to_zext_inreg"
1402 }
1403 break;
1404 }
1405 break;
1406 case 't': // 2 strings to match.
1407 if (memcmp(RuleIdentifier.data()+1, "runc_lshr16_unmerge_", 20) != 0)
1408 break;
1409 switch (RuleIdentifier[21]) {
1410 default: break;
1411 case 'f': // 1 string to match.
1412 if (memcmp(RuleIdentifier.data()+22, "16", 2) != 0)
1413 break;
1414 return 286; // "trunc_lshr16_unmerge_f16"
1415 case 'i': // 1 string to match.
1416 if (memcmp(RuleIdentifier.data()+22, "16", 2) != 0)
1417 break;
1418 return 285; // "trunc_lshr16_unmerge_i16"
1419 }
1420 break;
1421 case 'x': // 1 string to match.
1422 if (memcmp(RuleIdentifier.data()+1, "or_of_and_with_same_reg", 23) != 0)
1423 break;
1424 return 173; // "xor_of_and_with_same_reg"
1425 }
1426 break;
1427 case 25: // 11 strings to match.
1428 switch (RuleIdentifier[0]) {
1429 default: break;
1430 case 'b': // 3 strings to match.
1431 switch (RuleIdentifier[1]) {
1432 default: break;
1433 case 'i': // 2 strings to match.
1434 if (memcmp(RuleIdentifier.data()+2, "tfield_extract_from_", 20) != 0)
1435 break;
1436 switch (RuleIdentifier[22]) {
1437 default: break;
1438 case 'a': // 1 string to match.
1439 if (memcmp(RuleIdentifier.data()+23, "nd", 2) != 0)
1440 break;
1441 return 191; // "bitfield_extract_from_and"
1442 case 's': // 1 string to match.
1443 if (memcmp(RuleIdentifier.data()+23, "hr", 2) != 0)
1444 break;
1445 return 192; // "bitfield_extract_from_shr"
1446 }
1447 break;
1448 case 'u': // 1 string to match.
1449 if (memcmp(RuleIdentifier.data()+2, "ildvector_identity_fold", 23) != 0)
1450 break;
1451 return 102; // "buildvector_identity_fold"
1452 }
1453 break;
1454 case 'c': // 1 string to match.
1455 if (memcmp(RuleIdentifier.data()+1, "ombine_shuffle_undef_rhs", 24) != 0)
1456 break;
1457 return 243; // "combine_shuffle_undef_rhs"
1458 case 'e': // 1 string to match.
1459 if (memcmp(RuleIdentifier.data()+1, "xtract_vec_elt_build_vec", 24) != 0)
1460 break;
1461 return 71; // "extract_vec_elt_build_vec"
1462 case 'n': // 1 string to match.
1463 if (memcmp(RuleIdentifier.data()+1, "eg_and_one_to_sext_inreg", 24) != 0)
1464 break;
1465 return 126; // "neg_and_one_to_sext_inreg"
1466 case 'r': // 3 strings to match.
1467 switch (RuleIdentifier[1]) {
1468 default: break;
1469 case 'e': // 2 strings to match.
1470 if (memcmp(RuleIdentifier.data()+2, "dundant_", 8) != 0)
1471 break;
1472 switch (RuleIdentifier[10]) {
1473 default: break;
1474 case 'a': // 1 string to match.
1475 if (memcmp(RuleIdentifier.data()+11, "ext_sext_inreg", 14) != 0)
1476 break;
1477 return 140; // "redundant_aext_sext_inreg"
1478 case 'z': // 1 string to match.
1479 if (memcmp(RuleIdentifier.data()+11, "ext_sext_inreg", 14) != 0)
1480 break;
1481 return 139; // "redundant_zext_sext_inreg"
1482 }
1483 break;
1484 case 'i': // 1 string to match.
1485 if (memcmp(RuleIdentifier.data()+2, "ght_identity_neg_one_fp", 23) != 0)
1486 break;
1487 return 110; // "right_identity_neg_one_fp"
1488 }
1489 break;
1490 case 's': // 1 string to match.
1491 if (memcmp(RuleIdentifier.data()+1, "elect_constant_cmp_false", 24) != 0)
1492 break;
1493 return 131; // "select_constant_cmp_false"
1494 case 't': // 1 string to match.
1495 if (memcmp(RuleIdentifier.data()+1, "runc_lshr16_unmerge_bf16", 24) != 0)
1496 break;
1497 return 287; // "trunc_lshr16_unmerge_bf16"
1498 }
1499 break;
1500 case 26: // 6 strings to match.
1501 switch (RuleIdentifier[0]) {
1502 default: break;
1503 case 'b': // 2 strings to match.
1504 if (RuleIdentifier[1] != 'i')
1505 break;
1506 switch (RuleIdentifier[2]) {
1507 default: break;
1508 case 'n': // 1 string to match.
1509 if (memcmp(RuleIdentifier.data()+3, "op_right_undef_to_undef", 23) != 0)
1510 break;
1511 return 80; // "binop_right_undef_to_undef"
1512 case 't': // 1 string to match.
1513 if (memcmp(RuleIdentifier.data()+3, "cast_bitcast_to_bitcast", 23) != 0)
1514 break;
1515 return 106; // "bitcast_bitcast_to_bitcast"
1516 }
1517 break;
1518 case 'c': // 2 strings to match.
1519 if (RuleIdentifier[1] != 'o')
1520 break;
1521 switch (RuleIdentifier[2]) {
1522 default: break;
1523 case 'm': // 1 string to match.
1524 if (memcmp(RuleIdentifier.data()+3, "mute_fp_constant_to_rhs", 23) != 0)
1525 break;
1526 return 228; // "commute_fp_constant_to_rhs"
1527 case 'n': // 1 string to match.
1528 if (memcmp(RuleIdentifier.data()+3, "stant_fold_unary_int_op", 23) != 0)
1529 break;
1530 return 198; // "constant_fold_unary_int_op"
1531 }
1532 break;
1533 case 'f': // 1 string to match.
1534 if (memcmp(RuleIdentifier.data()+1, "unnel_shift_from_or_shift", 25) != 0)
1535 break;
1536 return 179; // "funnel_shift_from_or_shift"
1537 case 'r': // 1 string to match.
1538 if (memcmp(RuleIdentifier.data()+1, "ight_identity_neg_zero_fp", 25) != 0)
1539 break;
1540 return 108; // "right_identity_neg_zero_fp"
1541 }
1542 break;
1543 case 27: // 7 strings to match.
1544 switch (RuleIdentifier[0]) {
1545 default: break;
1546 case 'c': // 2 strings to match.
1547 if (memcmp(RuleIdentifier.data()+1, "om", 2) != 0)
1548 break;
1549 switch (RuleIdentifier[3]) {
1550 default: break;
1551 case 'b': // 1 string to match.
1552 if (memcmp(RuleIdentifier.data()+4, "ine_use_vector_truncate", 23) != 0)
1553 break;
1554 return 245; // "combine_use_vector_truncate"
1555 case 'm': // 1 string to match.
1556 if (memcmp(RuleIdentifier.data()+4, "ute_int_constant_to_rhs", 23) != 0)
1557 break;
1558 return 227; // "commute_int_constant_to_rhs"
1559 }
1560 break;
1561 case 'd': // 1 string to match.
1562 if (memcmp(RuleIdentifier.data()+1, "ouble_icmp_zero_or_combine", 26) != 0)
1563 break;
1564 return 123; // "double_icmp_zero_or_combine"
1565 case 'r': // 1 string to match.
1566 if (memcmp(RuleIdentifier.data()+1, "edundant_binop_in_equality", 26) != 0)
1567 break;
1568 return 124; // "redundant_binop_in_equality"
1569 case 's': // 1 string to match.
1570 if (memcmp(RuleIdentifier.data()+1, "elect_constant_cmp_general", 26) != 0)
1571 break;
1572 return 133; // "select_constant_cmp_general"
1573 case 't': // 1 string to match.
1574 if (memcmp(RuleIdentifier.data()+1, "runc_lshr_buildvector_fold", 26) != 0)
1575 break;
1576 return 104; // "trunc_lshr_buildvector_fold"
1577 case 'u': // 1 string to match.
1578 if (memcmp(RuleIdentifier.data()+1, "nmerge_anyext_build_vector", 26) != 0)
1579 break;
1580 return 246; // "unmerge_anyext_build_vector"
1581 }
1582 break;
1583 case 28: // 6 strings to match.
1584 switch (RuleIdentifier[0]) {
1585 default: break;
1586 case 'c': // 1 string to match.
1587 if (memcmp(RuleIdentifier.data()+1, "ombine_or_s64_with_s32_mask", 27) != 0)
1588 break;
1589 return 288; // "combine_or_s64_with_s32_mask"
1590 case 'd': // 1 string to match.
1591 if (memcmp(RuleIdentifier.data()+1, "ouble_icmp_zero_and_combine", 27) != 0)
1592 break;
1593 return 122; // "double_icmp_zero_and_combine"
1594 case 'e': // 1 string to match.
1595 if (memcmp(RuleIdentifier.data()+1, "xtract_vector_element_undef", 27) != 0)
1596 break;
1597 return 25; // "extract_vector_element_undef"
1598 case 'o': // 1 string to match.
1599 if (memcmp(RuleIdentifier.data()+1, "pt_brcond_by_inverting_cond", 27) != 0)
1600 break;
1601 return 150; // "opt_brcond_by_inverting_cond"
1602 case 'p': // 1 string to match.
1603 if (memcmp(RuleIdentifier.data()+1, "ropagate_undef_shuffle_mask", 27) != 0)
1604 break;
1605 return 85; // "propagate_undef_shuffle_mask"
1606 case 's': // 1 string to match.
1607 if (memcmp(RuleIdentifier.data()+1, "hift_of_shifted_logic_chain", 27) != 0)
1608 break;
1609 return 176; // "shift_of_shifted_logic_chain"
1610 }
1611 break;
1612 case 29: // 7 strings to match.
1613 switch (RuleIdentifier[0]) {
1614 default: break;
1615 case 'b': // 1 string to match.
1616 if (memcmp(RuleIdentifier.data()+1, "itfield_extract_from_shr_and", 28) != 0)
1617 break;
1618 return 193; // "bitfield_extract_from_shr_and"
1619 case 'c': // 5 strings to match.
1620 if (RuleIdentifier[1] != 'o')
1621 break;
1622 switch (RuleIdentifier[2]) {
1623 default: break;
1624 case 'm': // 3 strings to match.
1625 if (memcmp(RuleIdentifier.data()+3, "bine_", 5) != 0)
1626 break;
1627 switch (RuleIdentifier[8]) {
1628 default: break;
1629 case 'a': // 1 string to match.
1630 if (memcmp(RuleIdentifier.data()+9, "nd_s64_with_s32_mask", 20) != 0)
1631 break;
1632 return 289; // "combine_and_s64_with_s32_mask"
1633 case 'e': // 1 string to match.
1634 if (memcmp(RuleIdentifier.data()+9, "xtracted_vector_load", 20) != 0)
1635 break;
1636 return 75; // "combine_extracted_vector_load"
1637 case 's': // 1 string to match.
1638 if (memcmp(RuleIdentifier.data()+9, "huffle_disjoint_mask", 20) != 0)
1639 break;
1640 return 244; // "combine_shuffle_disjoint_mask"
1641 }
1642 break;
1643 case 'n': // 2 strings to match.
1644 if (memcmp(RuleIdentifier.data()+3, "stant_fold_intrinsic_", 21) != 0)
1645 break;
1646 switch (RuleIdentifier[24]) {
1647 default: break;
1648 case 'r': // 1 string to match.
1649 if (memcmp(RuleIdentifier.data()+25, "ound", 4) != 0)
1650 break;
1651 return 160; // "constant_fold_intrinsic_round"
1652 case 't': // 1 string to match.
1653 if (memcmp(RuleIdentifier.data()+25, "runc", 4) != 0)
1654 break;
1655 return 159; // "constant_fold_intrinsic_trunc"
1656 }
1657 break;
1658 }
1659 break;
1660 case 'i': // 1 string to match.
1661 if (memcmp(RuleIdentifier.data()+1, "cmp_to_true_false_known_bits", 28) != 0)
1662 break;
1663 return 120; // "icmp_to_true_false_known_bits"
1664 }
1665 break;
1666 case 30: // 2 strings to match.
1667 switch (RuleIdentifier[0]) {
1668 default: break;
1669 case 'f': // 1 string to match.
1670 if (memcmp(RuleIdentifier.data()+1, "reeze_of_non_undef_non_poison", 29) != 0)
1671 break;
1672 return 46; // "freeze_of_non_undef_non_poison"
1673 case 'r': // 1 string to match.
1674 if (memcmp(RuleIdentifier.data()+1, "ight_identity_neg_zero_fp_nsz", 29) != 0)
1675 break;
1676 return 109; // "right_identity_neg_zero_fp_nsz"
1677 }
1678 break;
1679 case 31: // 2 strings to match.
1680 if (memcmp(RuleIdentifier.data()+0, "insert_vector_element_", 22) != 0)
1681 break;
1682 switch (RuleIdentifier[22]) {
1683 default: break;
1684 case 'e': // 1 string to match.
1685 if (memcmp(RuleIdentifier.data()+23, "lt_undef", 8) != 0)
1686 break;
1687 return 27; // "insert_vector_element_elt_undef"
1688 case 'i': // 1 string to match.
1689 if (memcmp(RuleIdentifier.data()+23, "dx_undef", 8) != 0)
1690 break;
1691 return 26; // "insert_vector_element_idx_undef"
1692 }
1693 break;
1694 case 32: // 5 strings to match.
1695 switch (RuleIdentifier[0]) {
1696 default: break;
1697 case 'b': // 1 string to match.
1698 if (memcmp(RuleIdentifier.data()+1, "itfield_extract_from_sext_inreg", 31) != 0)
1699 break;
1700 return 190; // "bitfield_extract_from_sext_inreg"
1701 case 'c': // 2 strings to match.
1702 if (memcmp(RuleIdentifier.data()+1, "ombine_f", 8) != 0)
1703 break;
1704 switch (RuleIdentifier[9]) {
1705 default: break;
1706 case 'a': // 1 string to match.
1707 if (memcmp(RuleIdentifier.data()+10, "dd_fmul_to_fmad_or_fma", 22) != 0)
1708 break;
1709 return 207; // "combine_fadd_fmul_to_fmad_or_fma"
1710 case 's': // 1 string to match.
1711 if (memcmp(RuleIdentifier.data()+10, "ub_fmul_to_fmad_or_fma", 22) != 0)
1712 break;
1713 return 211; // "combine_fsub_fmul_to_fmad_or_fma"
1714 }
1715 break;
1716 case 'e': // 1 string to match.
1717 if (memcmp(RuleIdentifier.data()+1, "xtract_vector_element_not_const", 31) != 0)
1718 break;
1719 return 30; // "extract_vector_element_not_const"
1720 case 'r': // 1 string to match.
1721 if (memcmp(RuleIdentifier.data()+1, "edundant_neg_operands_fadd_fsub", 31) != 0)
1722 break;
1723 return 201; // "redundant_neg_operands_fadd_fsub"
1724 }
1725 break;
1726 case 33: // 3 strings to match.
1727 switch (RuleIdentifier[0]) {
1728 default: break;
1729 case 'c': // 1 string to match.
1730 if (memcmp(RuleIdentifier.data()+1, "onstant_fold_intrinsic_roundeven", 32) != 0)
1731 break;
1732 return 161; // "constant_fold_intrinsic_roundeven"
1733 case 'r': // 2 strings to match.
1734 if (memcmp(RuleIdentifier.data()+1, "edundant_", 9) != 0)
1735 break;
1736 switch (RuleIdentifier[10]) {
1737 default: break;
1738 case 'a': // 1 string to match.
1739 if (memcmp(RuleIdentifier.data()+11, "ext_unmerge_sext_inreg", 22) != 0)
1740 break;
1741 return 142; // "redundant_aext_unmerge_sext_inreg"
1742 case 'z': // 1 string to match.
1743 if (memcmp(RuleIdentifier.data()+11, "ext_unmerge_sext_inreg", 22) != 0)
1744 break;
1745 return 141; // "redundant_zext_unmerge_sext_inreg"
1746 }
1747 break;
1748 }
1749 break;
1750 case 34: // 2 strings to match.
1751 switch (RuleIdentifier[0]) {
1752 default: break;
1753 case 'c': // 1 string to match.
1754 if (memcmp(RuleIdentifier.data()+1, "ombine_fmul_with_select_to_fldexp", 33) != 0)
1755 break;
1756 return 279; // "combine_fmul_with_select_to_fldexp"
1757 case 'e': // 1 string to match.
1758 if (memcmp(RuleIdentifier.data()+1, "xtract_all_elts_from_build_vector", 33) != 0)
1759 break;
1760 return 72; // "extract_all_elts_from_build_vector"
1761 }
1762 break;
1763 case 35: // 1 string to match.
1764 if (memcmp(RuleIdentifier.data()+0, "extract_vector_element_build_vector", 35) != 0)
1765 break;
1766 return 32; // "extract_vector_element_build_vector"
1767 case 36: // 3 strings to match.
1768 switch (RuleIdentifier[0]) {
1769 default: break;
1770 case 'c': // 2 strings to match.
1771 if (memcmp(RuleIdentifier.data()+1, "ombine_", 7) != 0)
1772 break;
1773 switch (RuleIdentifier[8]) {
1774 default: break;
1775 case 'f': // 1 string to match.
1776 if (memcmp(RuleIdentifier.data()+9, "add_fma_fmul_to_fmad_or_fma", 27) != 0)
1777 break;
1778 return 209; // "combine_fadd_fma_fmul_to_fmad_or_fma"
1779 case 'i': // 1 string to match.
1780 if (memcmp(RuleIdentifier.data()+9, "nsert_vec_elts_build_vector", 27) != 0)
1781 break;
1782 return 70; // "combine_insert_vec_elts_build_vector"
1783 }
1784 break;
1785 case 'i': // 1 string to match.
1786 if (memcmp(RuleIdentifier.data()+1, "nsert_extract_vec_elt_out_of_bounds", 35) != 0)
1787 break;
1788 return 87; // "insert_extract_vec_elt_out_of_bounds"
1789 }
1790 break;
1791 case 37: // 3 strings to match.
1792 switch (RuleIdentifier[0]) {
1793 default: break;
1794 case 'c': // 1 string to match.
1795 if (memcmp(RuleIdentifier.data()+1, "ombine_fsub_fneg_fmul_to_fmad_or_fma", 36) != 0)
1796 break;
1797 return 212; // "combine_fsub_fneg_fmul_to_fmad_or_fma"
1798 case 'e': // 1 string to match.
1799 if (memcmp(RuleIdentifier.data()+1, "xtract_vector_element_shuffle_vector", 36) != 0)
1800 break;
1801 return 40; // "extract_vector_element_shuffle_vector"
1802 case 'h': // 1 string to match.
1803 if (memcmp(RuleIdentifier.data()+1, "oist_logic_op_with_same_opcode_hands", 36) != 0)
1804 break;
1805 return 113; // "hoist_logic_op_with_same_opcode_hands"
1806 }
1807 break;
1808 case 38: // 3 strings to match.
1809 if (memcmp(RuleIdentifier.data()+0, "combine_", 8) != 0)
1810 break;
1811 switch (RuleIdentifier[8]) {
1812 default: break;
1813 case 'f': // 2 strings to match.
1814 switch (RuleIdentifier[9]) {
1815 default: break;
1816 case 'a': // 1 string to match.
1817 if (memcmp(RuleIdentifier.data()+10, "dd_fpext_fmul_to_fmad_or_fma", 28) != 0)
1818 break;
1819 return 208; // "combine_fadd_fpext_fmul_to_fmad_or_fma"
1820 case 's': // 1 string to match.
1821 if (memcmp(RuleIdentifier.data()+10, "ub_fpext_fmul_to_fmad_or_fma", 28) != 0)
1822 break;
1823 return 213; // "combine_fsub_fpext_fmul_to_fmad_or_fma"
1824 }
1825 break;
1826 case 's': // 1 string to match.
1827 if (memcmp(RuleIdentifier.data()+9, "huffle_vector_to_build_vector", 29) != 0)
1828 break;
1829 return 284; // "combine_shuffle_vector_to_build_vector"
1830 }
1831 break;
1832 case 40: // 1 string to match.
1833 if (memcmp(RuleIdentifier.data()+0, "extract_vector_element_different_indices", 40) != 0)
1834 break;
1835 return 31; // "extract_vector_element_different_indices"
1836 case 42: // 9 strings to match.
1837 switch (RuleIdentifier[0]) {
1838 default: break;
1839 case 'c': // 1 string to match.
1840 if (memcmp(RuleIdentifier.data()+1, "ombine_fadd_fpext_fma_fmul_to_fmad_or_fma", 41) != 0)
1841 break;
1842 return 210; // "combine_fadd_fpext_fma_fmul_to_fmad_or_fma"
1843 case 'e': // 7 strings to match.
1844 if (memcmp(RuleIdentifier.data()+1, "xtract_vector_element_build_vector_trunc", 40) != 0)
1845 break;
1846 switch (RuleIdentifier[41]) {
1847 default: break;
1848 case '2': // 1 string to match.
1849 return 33; // "extract_vector_element_build_vector_trunc2"
1850 case '3': // 1 string to match.
1851 return 34; // "extract_vector_element_build_vector_trunc3"
1852 case '4': // 1 string to match.
1853 return 35; // "extract_vector_element_build_vector_trunc4"
1854 case '5': // 1 string to match.
1855 return 36; // "extract_vector_element_build_vector_trunc5"
1856 case '6': // 1 string to match.
1857 return 37; // "extract_vector_element_build_vector_trunc6"
1858 case '7': // 1 string to match.
1859 return 38; // "extract_vector_element_build_vector_trunc7"
1860 case '8': // 1 string to match.
1861 return 39; // "extract_vector_element_build_vector_trunc8"
1862 }
1863 break;
1864 case 'f': // 1 string to match.
1865 if (memcmp(RuleIdentifier.data()+1, "unnel_shift_or_shift_to_funnel_shift_left", 41) != 0)
1866 break;
1867 return 184; // "funnel_shift_or_shift_to_funnel_shift_left"
1868 }
1869 break;
1870 case 43: // 2 strings to match.
1871 switch (RuleIdentifier[0]) {
1872 default: break;
1873 case 'c': // 1 string to match.
1874 if (memcmp(RuleIdentifier.data()+1, "ombine_fsub_fpext_fneg_fmul_to_fmad_or_fma", 42) != 0)
1875 break;
1876 return 214; // "combine_fsub_fpext_fneg_fmul_to_fmad_or_fma"
1877 case 'f': // 1 string to match.
1878 if (memcmp(RuleIdentifier.data()+1, "unnel_shift_or_shift_to_funnel_shift_right", 42) != 0)
1879 break;
1880 return 185; // "funnel_shift_or_shift_to_funnel_shift_right"
1881 }
1882 break;
1883 case 44: // 1 string to match.
1884 if (memcmp(RuleIdentifier.data()+0, "insert_vector_element_extract_vector_element", 44) != 0)
1885 break;
1886 return 41; // "insert_vector_element_extract_vector_element"
1887 case 46: // 1 string to match.
1888 if (memcmp(RuleIdentifier.data()+0, "push_freeze_to_prevent_poison_from_propagating", 46) != 0)
1889 break;
1890 return 47; // "push_freeze_to_prevent_poison_from_propagating"
1891 }
1892#endif // ifndef NDEBUG
1893
1894 return std::nullopt;
1895}
1896static std::optional<std::pair<uint64_t, uint64_t>> getRuleRangeForIdentifier(StringRef RuleIdentifier) {
1897 std::pair<StringRef, StringRef> RangePair = RuleIdentifier.split('-');
1898 if (!RangePair.second.empty()) {
1899 const auto First = getRuleIdxForIdentifier(RangePair.first);
1900 const auto Last = getRuleIdxForIdentifier(RangePair.second);
1901 if (!First || !Last)
1902 return std::nullopt;
1903 if (First >= Last)
1904 report_fatal_error("Beginning of range should be before end of range");
1905 return {{*First, *Last + 1}};
1906 }
1907 if (RangePair.first == "*") {
1908 return {{0, 291}};
1909 }
1910 const auto I = getRuleIdxForIdentifier(RangePair.first);
1911 if (!I)
1912 return std::nullopt;
1913 return {{*I, *I + 1}};
1914}
1915
1916bool AMDGPUPreLegalizerCombinerImplRuleConfig::setRuleEnabled(StringRef RuleIdentifier) {
1917 auto MaybeRange = getRuleRangeForIdentifier(RuleIdentifier);
1918 if (!MaybeRange)
1919 return false;
1920 for (auto I = MaybeRange->first; I < MaybeRange->second; ++I)
1921 DisabledRules.reset(I);
1922 return true;
1923}
1924
1925bool AMDGPUPreLegalizerCombinerImplRuleConfig::setRuleDisabled(StringRef RuleIdentifier) {
1926 auto MaybeRange = getRuleRangeForIdentifier(RuleIdentifier);
1927 if (!MaybeRange)
1928 return false;
1929 for (auto I = MaybeRange->first; I < MaybeRange->second; ++I)
1930 DisabledRules.set(I);
1931 return true;
1932}
1933
1934static std::vector<std::string> AMDGPUPreLegalizerCombinerOption;
1935static cl::list<std::string> AMDGPUPreLegalizerCombinerDisableOption(
1936 "amdgpuprelegalizercombiner-disable-rule",
1937 cl::desc("Disable one or more combiner rules temporarily in the AMDGPUPreLegalizerCombiner pass"),
1938 cl::CommaSeparated,
1939 cl::Hidden,
1940 cl::cat(GICombinerOptionCategory),
1941 cl::callback([](const std::string &Str) {
1942 AMDGPUPreLegalizerCombinerOption.push_back(Str);
1943 }));
1944static cl::list<std::string> AMDGPUPreLegalizerCombinerOnlyEnableOption(
1945 "amdgpuprelegalizercombiner-only-enable-rule",
1946 cl::desc("Disable all rules in the AMDGPUPreLegalizerCombiner pass then re-enable the specified ones"),
1947 cl::Hidden,
1948 cl::cat(GICombinerOptionCategory),
1949 cl::callback([](const std::string &CommaSeparatedArg) {
1950 StringRef Str = CommaSeparatedArg;
1951 AMDGPUPreLegalizerCombinerOption.push_back("*");
1952 do {
1953 auto X = Str.split(",");
1954 AMDGPUPreLegalizerCombinerOption.push_back(("!" + X.first).str());
1955 Str = X.second;
1956 } while (!Str.empty());
1957 }));
1958
1959
1960bool AMDGPUPreLegalizerCombinerImplRuleConfig::isRuleEnabled(unsigned RuleID) const {
1961 return !DisabledRules.test(RuleID);
1962}
1963bool AMDGPUPreLegalizerCombinerImplRuleConfig::parseCommandLineOption() {
1964 for (StringRef Identifier : AMDGPUPreLegalizerCombinerOption) {
1965 bool Enabled = Identifier.consume_front("!");
1966 if (Enabled && !setRuleEnabled(Identifier))
1967 return false;
1968 if (!Enabled && !setRuleDisabled(Identifier))
1969 return false;
1970 }
1971 return true;
1972}
1973
1974
1975#endif // GET_GICOMBINER_TYPES
1976
1977#ifdef GET_GICOMBINER_TYPES
1978
1979const unsigned MAX_SUBTARGET_PREDICATES = 0;
1980using PredicateBitset = llvm::Bitset<MAX_SUBTARGET_PREDICATES>;
1981
1982#endif // GET_GICOMBINER_TYPES
1983
1984#ifdef GET_GICOMBINER_CLASS_MEMBERS
1985
1986 bool canMatchOpcode(unsigned Opc) const override;
1987 uint32_t getRootFlagsToDrop() const override;
1988
1989#endif // GET_GICOMBINER_CLASS_MEMBERS
1990
1991#ifdef GET_GICOMBINER_CLASS_MEMBERS
1992
1993PredicateBitset AvailableModuleFeatures;
1994mutable PredicateBitset AvailableFunctionFeatures;
1995PredicateBitset getAvailableFeatures() const {
1996 return AvailableModuleFeatures | AvailableFunctionFeatures;
1997}
1998PredicateBitset
1999computeAvailableModuleFeatures(const AMDGPUSubtarget *Subtarget) const;
2000PredicateBitset
2001computeAvailableFunctionFeatures(const AMDGPUSubtarget *Subtarget,
2002 const MachineFunction *MF) const;
2003void setupGeneratedPerFunctionState(MachineFunction &MF) override;
2004
2005#endif // GET_GICOMBINER_CLASS_MEMBERS
2006
2007#ifdef GET_GICOMBINER_CLASS_MEMBERS
2008
2009 mutable MatcherState State;
2010 typedef ComplexRendererFns(AMDGPUPreLegalizerCombinerImpl::*ComplexMatcherMemFn)(MachineOperand &) const;
2011 typedef void(AMDGPUPreLegalizerCombinerImpl::*CustomRendererFn)(MachineInstrBuilder &, const MachineInstr &, int) const;
2012 const ExecInfoTy<PredicateBitset, ComplexMatcherMemFn, CustomRendererFn> ExecInfo;
2013 static AMDGPUPreLegalizerCombinerImpl::ComplexMatcherMemFn ComplexPredicateFns[];
2014 static AMDGPUPreLegalizerCombinerImpl::CustomRendererFn CustomRenderers[];
2015 bool testImmPredicate_I64(unsigned PredicateID, int64_t Imm) const override;
2016 bool testImmPredicate_APInt(unsigned PredicateID, const APInt &Imm) const override;
2017 bool testImmPredicate_APFloat(unsigned PredicateID, const APFloat &Imm) const override;
2018 const uint8_t *getMatchTable() const override;
2019 bool testMIPredicate_MI(unsigned PredicateID, const MachineInstr &MI, const MatcherState &State) const override;
2020 bool testMOPredicate_MO(unsigned PredicateID, const MachineOperand &MO, const MatcherState &State) const override;
2021 bool testSimplePredicate(unsigned PredicateID) const override;
2022 bool runCustomAction(unsigned FnID, const MatcherState &State, NewMIVector &OutMIs) const override;
2023
2024#endif // GET_GICOMBINER_CLASS_MEMBERS
2025
2026#ifdef GET_GICOMBINER_IMPL
2027
2028// LLT Objects.
2029enum {
2030 GILLT_i16,
2031 GILLT_i32,
2032 GILLT_i64,
2033 GILLT_f16,
2034 GILLT_bf16,
2035};
2036const static size_t NumTypeObjects = 5;
2037const static LLT TypeObjects[] = {
2038 LLT(LLT::Kind::INTEGER, ElementCount::getFixed(0), 16),
2039 LLT(LLT::Kind::INTEGER, ElementCount::getFixed(0), 32),
2040 LLT(LLT::Kind::INTEGER, ElementCount::getFixed(0), 64),
2041 LLT(LLT::Kind::FLOAT, ElementCount::getFixed(0), 16, LLT::FpSemantics::S_IEEEhalf),
2042 LLT(LLT::Kind::FLOAT, ElementCount::getFixed(0), 16, LLT::FpSemantics::S_BFloat),
2043};
2044
2045// Bits for subtarget features that participate in instruction matching.
2046enum SubtargetFeatureBits : uint8_t {
2047};
2048
2049PredicateBitset AMDGPUPreLegalizerCombinerImpl::
2050computeAvailableModuleFeatures(const AMDGPUSubtarget *Subtarget) const {
2051 PredicateBitset Features{};
2052 return Features;
2053}
2054
2055void AMDGPUPreLegalizerCombinerImpl::setupGeneratedPerFunctionState(MachineFunction &MF) {
2056 AvailableFunctionFeatures = computeAvailableFunctionFeatures((const AMDGPUSubtarget *)&MF.getSubtarget(), &MF);
2057}
2058PredicateBitset AMDGPUPreLegalizerCombinerImpl::
2059computeAvailableFunctionFeatures(const AMDGPUSubtarget *Subtarget, const MachineFunction *MF) const {
2060 PredicateBitset Features{};
2061 return Features;
2062}
2063
2064// Feature bitsets.
2065enum {
2066 GIFBS_Invalid,
2067};
2068constexpr static PredicateBitset FeatureBitsets[] {
2069 {}, // GIFBS_Invalid
2070};
2071
2072// ComplexPattern predicates.
2073enum {
2074 GICP_Invalid,
2075};
2076// See constructor for table contents
2077
2078AMDGPUPreLegalizerCombinerImpl::ComplexMatcherMemFn
2079AMDGPUPreLegalizerCombinerImpl::ComplexPredicateFns[] = {
2080 nullptr, // GICP_Invalid
2081};
2082
2083enum {
2084 GICXXPred_MI_Predicate_GICombiner0 = GICXXPred_Invalid + 1,
2085 GICXXPred_MI_Predicate_GICombiner1,
2086 GICXXPred_MI_Predicate_GICombiner2,
2087 GICXXPred_MI_Predicate_GICombiner3,
2088 GICXXPred_MI_Predicate_GICombiner4,
2089 GICXXPred_MI_Predicate_GICombiner5,
2090 GICXXPred_MI_Predicate_GICombiner6,
2091 GICXXPred_MI_Predicate_GICombiner7,
2092 GICXXPred_MI_Predicate_GICombiner8,
2093 GICXXPred_MI_Predicate_GICombiner9,
2094 GICXXPred_MI_Predicate_GICombiner10,
2095 GICXXPred_MI_Predicate_GICombiner11,
2096 GICXXPred_MI_Predicate_GICombiner12,
2097 GICXXPred_MI_Predicate_GICombiner13,
2098 GICXXPred_MI_Predicate_GICombiner14,
2099 GICXXPred_MI_Predicate_GICombiner15,
2100 GICXXPred_MI_Predicate_GICombiner16,
2101 GICXXPred_MI_Predicate_GICombiner17,
2102 GICXXPred_MI_Predicate_GICombiner18,
2103 GICXXPred_MI_Predicate_GICombiner19,
2104 GICXXPred_MI_Predicate_GICombiner20,
2105 GICXXPred_MI_Predicate_GICombiner21,
2106 GICXXPred_MI_Predicate_GICombiner22,
2107 GICXXPred_MI_Predicate_GICombiner23,
2108 GICXXPred_MI_Predicate_GICombiner24,
2109 GICXXPred_MI_Predicate_GICombiner25,
2110 GICXXPred_MI_Predicate_GICombiner26,
2111 GICXXPred_MI_Predicate_GICombiner27,
2112 GICXXPred_MI_Predicate_GICombiner28,
2113 GICXXPred_MI_Predicate_GICombiner29,
2114 GICXXPred_MI_Predicate_GICombiner30,
2115 GICXXPred_MI_Predicate_GICombiner31,
2116 GICXXPred_MI_Predicate_GICombiner32,
2117 GICXXPred_MI_Predicate_GICombiner33,
2118};
2119bool AMDGPUPreLegalizerCombinerImpl::testMIPredicate_MI(unsigned PredicateID, const MachineInstr & MI, const MatcherState &State) const {
2120 switch (PredicateID) {
2121 case GICXXPred_MI_Predicate_GICombiner0: {
2122 return MRI.hasOneNonDBGUse(State.MIs[0]->getOperand(2).getReg());
2123 }
2124 case GICXXPred_MI_Predicate_GICombiner1: {
2125 return MRI.hasOneNonDBGUse(State.MIs[0]->getOperand(1).getReg());
2126 }
2127 case GICXXPred_MI_Predicate_GICombiner2: {
2128 return MRI.getType(State.MIs[1]->getOperand(1).getReg()).getScalarSizeInBits() ==
2129 MRI.getType(State.MIs[0]->getOperand(0).getReg()).getScalarSizeInBits();
2130 }
2131 case GICXXPred_MI_Predicate_GICombiner3: {
2132 return isGuaranteedNotToBePoison(State.MIs[0]->getOperand(1).getReg(), MRI);
2133 }
2134 case GICXXPred_MI_Predicate_GICombiner4: {
2135 return isGuaranteedNotToBeUndefOrPoison(State.MIs[0]->getOperand(1).getReg(), MRI);
2136 }
2137 case GICXXPred_MI_Predicate_GICombiner5: {
2138 return Helper.matchUndefShuffleVectorMask(*State.MIs[0]);
2139 }
2140 case GICXXPred_MI_Predicate_GICombiner6: {
2141 return Helper.matchSelectSameVal(*State.MIs[0]);
2142 }
2143 case GICXXPred_MI_Predicate_GICombiner7: {
2144 return MRI.getType(State.MIs[1]->getOperand(1).getReg()) == MRI.getType(State.MIs[0]->getOperand(0).getReg());
2145 }
2146 case GICXXPred_MI_Predicate_GICombiner8: {
2147 return Helper.matchConstantFPOp(State.MIs[0]->getOperand(2), 1.0);
2148 }
2149 case GICXXPred_MI_Predicate_GICombiner9: {
2150 return MRI.getType(State.MIs[1]->getOperand(1).getReg()) != MRI.getType(State.MIs[0]->getOperand(0).getReg());
2151 }
2152 case GICXXPred_MI_Predicate_GICombiner10: {
2153 return Helper.matchConstantFPOp(State.MIs[0]->getOperand(2), -0.0);
2154 }
2155 case GICXXPred_MI_Predicate_GICombiner11: {
2156 return Helper.matchConstantFPOp(State.MIs[0]->getOperand(2), 0.0);
2157 }
2158 case GICXXPred_MI_Predicate_GICombiner12: {
2159 return Helper.matchConstantFPOp(State.MIs[0]->getOperand(2), -1.0);
2160 }
2161 case GICXXPred_MI_Predicate_GICombiner13: {
2162 return State.MIs[1]->getOperand(1).getPredicate() == CmpInst::ICMP_EQ &&
2163 !MRI.getType(State.MIs[1]->getOperand(2).getReg()).getScalarType().isPointer() &&
2164 (MRI.getType(State.MIs[1]->getOperand(2).getReg()) ==
2165 MRI.getType(State.MIs[2]->getOperand(2).getReg()));
2166 }
2167 case GICXXPred_MI_Predicate_GICombiner14: {
2168 return State.MIs[1]->getOperand(1).getPredicate() == CmpInst::ICMP_NE &&
2169 !MRI.getType(State.MIs[1]->getOperand(2).getReg()).getScalarType().isPointer() &&
2170 (MRI.getType(State.MIs[1]->getOperand(2).getReg()) ==
2171 MRI.getType(State.MIs[2]->getOperand(2).getReg()));
2172 }
2173 case GICXXPred_MI_Predicate_GICombiner15: {
2174 return MRI.hasOneNonDBGUse(State.MIs[0]->getOperand(2).getReg()) &&
2175 Helper.isLegalOrBeforeLegalizer({
2176 TargetOpcode::G_SEXT_INREG,
2177 {MRI.getType(State.MIs[1]->getOperand(1).getReg())},
2178 {},
2179 {1}
2180 });
2181 }
2182 case GICXXPred_MI_Predicate_GICombiner16: {
2183 return !isConstantOrConstantSplatVector(State.MIs[0]->getOperand(1).getReg(), MRI) &&
2184 MRI.getType(State.MIs[0]->getOperand(1).getReg()) == MRI.getType(State.MIs[0]->getOperand(0).getReg()) &&
2185 VT->computeNumSignBits(State.MIs[0]->getOperand(1).getReg()) == MRI.getType(State.MIs[0]->getOperand(0).getReg()).getScalarSizeInBits();
2186 }
2187 case GICXXPred_MI_Predicate_GICombiner17: {
2188 return Helper.matchRedundantSExtInReg(*State.MIs[0]);
2189 }
2190 case GICXXPred_MI_Predicate_GICombiner18: {
2191 LLT SrcTy = MRI.getType(State.MIs[1]->getOperand(1).getReg());
2192 return State.MIs[0]->getOperand(2).getImm() <= SrcTy.getScalarSizeInBits() &&
2193 VT->computeNumSignBits(State.MIs[1]->getOperand(1).getReg()) >=
2194 (SrcTy.getScalarSizeInBits() - State.MIs[0]->getOperand(2).getImm() + 1);
2195 llvm_unreachable("GICombiner18 should have returned");
2196 }
2197 case GICXXPred_MI_Predicate_GICombiner19: {
2198 return Helper.matchPtrAddZero(*State.MIs[0]);
2199 }
2200 case GICXXPred_MI_Predicate_GICombiner20: {
2201 return Helper.isLegalOrBeforeLegalizer({TargetOpcode::G_LSHR,
2202 {MRI.getType(State.MIs[2]->getOperand(1).getReg()),
2203 MRI.getType(State.MIs[1]->getOperand(2).getReg())}});
2204 }
2205 case GICXXPred_MI_Predicate_GICombiner21: {
2206 return Helper.isLegalOrBeforeLegalizer({TargetOpcode::G_SHL,
2207 {MRI.getType(State.MIs[2]->getOperand(1).getReg()),
2208 MRI.getType(State.MIs[1]->getOperand(2).getReg())}});
2209 }
2210 case GICXXPred_MI_Predicate_GICombiner22: {
2211 return MRI.hasOneNonDBGUse(State.MIs[0]->getOperand(1).getReg()) &&
2212 isConstantOrConstantSplatVector(State.MIs[1]->getOperand(2).getReg(), MRI) &&
2213 isConstantOrConstantSplatVector(State.MIs[0]->getOperand(2).getReg(), MRI) &&
2214 Helper.isDesirableToCommuteWithShift(*State.MIs[0]);
2215 }
2216 case GICXXPred_MI_Predicate_GICombiner23: {
2217 return Helper.matchTruncUSatU(*State.MIs[0], *State.MIs[1]);
2218 }
2219 case GICXXPred_MI_Predicate_GICombiner24: {
2220 return Helper.matchTruncUSatUToFPTOUISat(*State.MIs[0], *State.MIs[1]);
2221 }
2222 case GICXXPred_MI_Predicate_GICombiner25: {
2223 return MRI.hasOneNonDBGUse(State.MIs[0]->getOperand(2).getReg()) &&
2224 MRI.hasOneNonDBGUse(State.MIs[1]->getOperand(1).getReg());
2225 }
2226 case GICXXPred_MI_Predicate_GICombiner26: {
2227 return MRI.hasOneNonDBGUse(State.MIs[0]->getOperand(1).getReg()) &&
2228 MRI.hasOneNonDBGUse(State.MIs[1]->getOperand(1).getReg());
2229 }
2230 case GICXXPred_MI_Predicate_GICombiner27: {
2231 return MRI.hasOneNonDBGUse(State.MIs[1]->getOperand(2).getReg()) &&
2232 MRI.hasOneNonDBGUse(State.MIs[0]->getOperand(2).getReg());
2233 }
2234 case GICXXPred_MI_Predicate_GICombiner28: {
2235 return Helper.matchAVG(*State.MIs[0], MRI, State.MIs[2]->getOperand(1).getReg(), State.MIs[3]->getOperand(1).getReg(), TargetOpcode::G_UAVGFLOOR);
2236 }
2237 case GICXXPred_MI_Predicate_GICombiner29: {
2238 return Helper.matchAVG(*State.MIs[0], MRI, State.MIs[2]->getOperand(1).getReg(), State.MIs[3]->getOperand(1).getReg(), TargetOpcode::G_SAVGFLOOR);
2239 }
2240 case GICXXPred_MI_Predicate_GICombiner30: {
2241 return Helper.matchAVG(*State.MIs[0], MRI, State.MIs[3]->getOperand(1).getReg(), State.MIs[4]->getOperand(1).getReg(), TargetOpcode::G_UAVGCEIL);
2242 }
2243 case GICXXPred_MI_Predicate_GICombiner31: {
2244 return Helper.matchAVG(*State.MIs[0], MRI, State.MIs[3]->getOperand(1).getReg(), State.MIs[4]->getOperand(1).getReg(), TargetOpcode::G_SAVGCEIL);
2245 }
2246 case GICXXPred_MI_Predicate_GICombiner32: {
2247 return MRI.hasOneNonDBGUse(State.MIs[0]->getOperand(1).getReg()) &&
2248 Helper.isLegalOrBeforeLegalizer(
2249 {TargetOpcode::G_UNMERGE_VALUES,
2250 {LLT::integer(16), LLT::integer(32)}});
2251 }
2252 case GICXXPred_MI_Predicate_GICombiner33: {
2253 return Helper.matchConstantIs32BitMask(State.MIs[0]->getOperand(1).getReg()) ||
2254 Helper.matchConstantIs32BitMask(State.MIs[0]->getOperand(2).getReg());
2255 }
2256 }
2257 llvm_unreachable("Unknown predicate");
2258 return false;
2259}
2260bool AMDGPUPreLegalizerCombinerImpl::testMOPredicate_MO(unsigned PredicateID, const MachineOperand & MO, const MatcherState &State) const {
2261 llvm_unreachable("Unknown predicate");
2262 return false;
2263}
2264bool AMDGPUPreLegalizerCombinerImpl::testImmPredicate_I64(unsigned PredicateID, int64_t Imm) const {
2265 llvm_unreachable("Unknown predicate");
2266 return false;
2267}
2268bool AMDGPUPreLegalizerCombinerImpl::testImmPredicate_APFloat(unsigned PredicateID, const APFloat & Imm) const {
2269 llvm_unreachable("Unknown predicate");
2270 return false;
2271}
2272bool AMDGPUPreLegalizerCombinerImpl::testImmPredicate_APInt(unsigned PredicateID, const APInt & Imm) const {
2273 llvm_unreachable("Unknown predicate");
2274 return false;
2275}
2276enum {
2277 GICXXPred_Simple_IsRule0Enabled = GICXXPred_Invalid + 1,
2278 GICXXPred_Simple_IsRule1Enabled,
2279 GICXXPred_Simple_IsRule2Enabled,
2280 GICXXPred_Simple_IsRule3Enabled,
2281 GICXXPred_Simple_IsRule4Enabled,
2282 GICXXPred_Simple_IsRule5Enabled,
2283 GICXXPred_Simple_IsRule6Enabled,
2284 GICXXPred_Simple_IsRule7Enabled,
2285 GICXXPred_Simple_IsRule8Enabled,
2286 GICXXPred_Simple_IsRule9Enabled,
2287 GICXXPred_Simple_IsRule10Enabled,
2288 GICXXPred_Simple_IsRule11Enabled,
2289 GICXXPred_Simple_IsRule12Enabled,
2290 GICXXPred_Simple_IsRule13Enabled,
2291 GICXXPred_Simple_IsRule14Enabled,
2292 GICXXPred_Simple_IsRule15Enabled,
2293 GICXXPred_Simple_IsRule16Enabled,
2294 GICXXPred_Simple_IsRule17Enabled,
2295 GICXXPred_Simple_IsRule18Enabled,
2296 GICXXPred_Simple_IsRule19Enabled,
2297 GICXXPred_Simple_IsRule20Enabled,
2298 GICXXPred_Simple_IsRule21Enabled,
2299 GICXXPred_Simple_IsRule22Enabled,
2300 GICXXPred_Simple_IsRule23Enabled,
2301 GICXXPred_Simple_IsRule24Enabled,
2302 GICXXPred_Simple_IsRule25Enabled,
2303 GICXXPred_Simple_IsRule26Enabled,
2304 GICXXPred_Simple_IsRule27Enabled,
2305 GICXXPred_Simple_IsRule28Enabled,
2306 GICXXPred_Simple_IsRule29Enabled,
2307 GICXXPred_Simple_IsRule30Enabled,
2308 GICXXPred_Simple_IsRule31Enabled,
2309 GICXXPred_Simple_IsRule32Enabled,
2310 GICXXPred_Simple_IsRule33Enabled,
2311 GICXXPred_Simple_IsRule34Enabled,
2312 GICXXPred_Simple_IsRule35Enabled,
2313 GICXXPred_Simple_IsRule36Enabled,
2314 GICXXPred_Simple_IsRule37Enabled,
2315 GICXXPred_Simple_IsRule38Enabled,
2316 GICXXPred_Simple_IsRule39Enabled,
2317 GICXXPred_Simple_IsRule40Enabled,
2318 GICXXPred_Simple_IsRule41Enabled,
2319 GICXXPred_Simple_IsRule42Enabled,
2320 GICXXPred_Simple_IsRule43Enabled,
2321 GICXXPred_Simple_IsRule44Enabled,
2322 GICXXPred_Simple_IsRule45Enabled,
2323 GICXXPred_Simple_IsRule46Enabled,
2324 GICXXPred_Simple_IsRule47Enabled,
2325 GICXXPred_Simple_IsRule48Enabled,
2326 GICXXPred_Simple_IsRule49Enabled,
2327 GICXXPred_Simple_IsRule50Enabled,
2328 GICXXPred_Simple_IsRule51Enabled,
2329 GICXXPred_Simple_IsRule52Enabled,
2330 GICXXPred_Simple_IsRule53Enabled,
2331 GICXXPred_Simple_IsRule54Enabled,
2332 GICXXPred_Simple_IsRule55Enabled,
2333 GICXXPred_Simple_IsRule56Enabled,
2334 GICXXPred_Simple_IsRule57Enabled,
2335 GICXXPred_Simple_IsRule58Enabled,
2336 GICXXPred_Simple_IsRule59Enabled,
2337 GICXXPred_Simple_IsRule60Enabled,
2338 GICXXPred_Simple_IsRule61Enabled,
2339 GICXXPred_Simple_IsRule62Enabled,
2340 GICXXPred_Simple_IsRule63Enabled,
2341 GICXXPred_Simple_IsRule64Enabled,
2342 GICXXPred_Simple_IsRule65Enabled,
2343 GICXXPred_Simple_IsRule66Enabled,
2344 GICXXPred_Simple_IsRule67Enabled,
2345 GICXXPred_Simple_IsRule68Enabled,
2346 GICXXPred_Simple_IsRule69Enabled,
2347 GICXXPred_Simple_IsRule70Enabled,
2348 GICXXPred_Simple_IsRule71Enabled,
2349 GICXXPred_Simple_IsRule72Enabled,
2350 GICXXPred_Simple_IsRule73Enabled,
2351 GICXXPred_Simple_IsRule74Enabled,
2352 GICXXPred_Simple_IsRule75Enabled,
2353 GICXXPred_Simple_IsRule76Enabled,
2354 GICXXPred_Simple_IsRule77Enabled,
2355 GICXXPred_Simple_IsRule78Enabled,
2356 GICXXPred_Simple_IsRule79Enabled,
2357 GICXXPred_Simple_IsRule80Enabled,
2358 GICXXPred_Simple_IsRule81Enabled,
2359 GICXXPred_Simple_IsRule82Enabled,
2360 GICXXPred_Simple_IsRule83Enabled,
2361 GICXXPred_Simple_IsRule84Enabled,
2362 GICXXPred_Simple_IsRule85Enabled,
2363 GICXXPred_Simple_IsRule86Enabled,
2364 GICXXPred_Simple_IsRule87Enabled,
2365 GICXXPred_Simple_IsRule88Enabled,
2366 GICXXPred_Simple_IsRule89Enabled,
2367 GICXXPred_Simple_IsRule90Enabled,
2368 GICXXPred_Simple_IsRule91Enabled,
2369 GICXXPred_Simple_IsRule92Enabled,
2370 GICXXPred_Simple_IsRule93Enabled,
2371 GICXXPred_Simple_IsRule94Enabled,
2372 GICXXPred_Simple_IsRule95Enabled,
2373 GICXXPred_Simple_IsRule96Enabled,
2374 GICXXPred_Simple_IsRule97Enabled,
2375 GICXXPred_Simple_IsRule98Enabled,
2376 GICXXPred_Simple_IsRule99Enabled,
2377 GICXXPred_Simple_IsRule100Enabled,
2378 GICXXPred_Simple_IsRule101Enabled,
2379 GICXXPred_Simple_IsRule102Enabled,
2380 GICXXPred_Simple_IsRule103Enabled,
2381 GICXXPred_Simple_IsRule104Enabled,
2382 GICXXPred_Simple_IsRule105Enabled,
2383 GICXXPred_Simple_IsRule106Enabled,
2384 GICXXPred_Simple_IsRule107Enabled,
2385 GICXXPred_Simple_IsRule108Enabled,
2386 GICXXPred_Simple_IsRule109Enabled,
2387 GICXXPred_Simple_IsRule110Enabled,
2388 GICXXPred_Simple_IsRule111Enabled,
2389 GICXXPred_Simple_IsRule112Enabled,
2390 GICXXPred_Simple_IsRule113Enabled,
2391 GICXXPred_Simple_IsRule114Enabled,
2392 GICXXPred_Simple_IsRule115Enabled,
2393 GICXXPred_Simple_IsRule116Enabled,
2394 GICXXPred_Simple_IsRule117Enabled,
2395 GICXXPred_Simple_IsRule118Enabled,
2396 GICXXPred_Simple_IsRule119Enabled,
2397 GICXXPred_Simple_IsRule120Enabled,
2398 GICXXPred_Simple_IsRule121Enabled,
2399 GICXXPred_Simple_IsRule122Enabled,
2400 GICXXPred_Simple_IsRule123Enabled,
2401 GICXXPred_Simple_IsRule124Enabled,
2402 GICXXPred_Simple_IsRule125Enabled,
2403 GICXXPred_Simple_IsRule126Enabled,
2404 GICXXPred_Simple_IsRule127Enabled,
2405 GICXXPred_Simple_IsRule128Enabled,
2406 GICXXPred_Simple_IsRule129Enabled,
2407 GICXXPred_Simple_IsRule130Enabled,
2408 GICXXPred_Simple_IsRule131Enabled,
2409 GICXXPred_Simple_IsRule132Enabled,
2410 GICXXPred_Simple_IsRule133Enabled,
2411 GICXXPred_Simple_IsRule134Enabled,
2412 GICXXPred_Simple_IsRule135Enabled,
2413 GICXXPred_Simple_IsRule136Enabled,
2414 GICXXPred_Simple_IsRule137Enabled,
2415 GICXXPred_Simple_IsRule138Enabled,
2416 GICXXPred_Simple_IsRule139Enabled,
2417 GICXXPred_Simple_IsRule140Enabled,
2418 GICXXPred_Simple_IsRule141Enabled,
2419 GICXXPred_Simple_IsRule142Enabled,
2420 GICXXPred_Simple_IsRule143Enabled,
2421 GICXXPred_Simple_IsRule144Enabled,
2422 GICXXPred_Simple_IsRule145Enabled,
2423 GICXXPred_Simple_IsRule146Enabled,
2424 GICXXPred_Simple_IsRule147Enabled,
2425 GICXXPred_Simple_IsRule148Enabled,
2426 GICXXPred_Simple_IsRule149Enabled,
2427 GICXXPred_Simple_IsRule150Enabled,
2428 GICXXPred_Simple_IsRule151Enabled,
2429 GICXXPred_Simple_IsRule152Enabled,
2430 GICXXPred_Simple_IsRule153Enabled,
2431 GICXXPred_Simple_IsRule154Enabled,
2432 GICXXPred_Simple_IsRule155Enabled,
2433 GICXXPred_Simple_IsRule156Enabled,
2434 GICXXPred_Simple_IsRule157Enabled,
2435 GICXXPred_Simple_IsRule158Enabled,
2436 GICXXPred_Simple_IsRule159Enabled,
2437 GICXXPred_Simple_IsRule160Enabled,
2438 GICXXPred_Simple_IsRule161Enabled,
2439 GICXXPred_Simple_IsRule162Enabled,
2440 GICXXPred_Simple_IsRule163Enabled,
2441 GICXXPred_Simple_IsRule164Enabled,
2442 GICXXPred_Simple_IsRule165Enabled,
2443 GICXXPred_Simple_IsRule166Enabled,
2444 GICXXPred_Simple_IsRule167Enabled,
2445 GICXXPred_Simple_IsRule168Enabled,
2446 GICXXPred_Simple_IsRule169Enabled,
2447 GICXXPred_Simple_IsRule170Enabled,
2448 GICXXPred_Simple_IsRule171Enabled,
2449 GICXXPred_Simple_IsRule172Enabled,
2450 GICXXPred_Simple_IsRule173Enabled,
2451 GICXXPred_Simple_IsRule174Enabled,
2452 GICXXPred_Simple_IsRule175Enabled,
2453 GICXXPred_Simple_IsRule176Enabled,
2454 GICXXPred_Simple_IsRule177Enabled,
2455 GICXXPred_Simple_IsRule178Enabled,
2456 GICXXPred_Simple_IsRule179Enabled,
2457 GICXXPred_Simple_IsRule180Enabled,
2458 GICXXPred_Simple_IsRule181Enabled,
2459 GICXXPred_Simple_IsRule182Enabled,
2460 GICXXPred_Simple_IsRule183Enabled,
2461 GICXXPred_Simple_IsRule184Enabled,
2462 GICXXPred_Simple_IsRule185Enabled,
2463 GICXXPred_Simple_IsRule186Enabled,
2464 GICXXPred_Simple_IsRule187Enabled,
2465 GICXXPred_Simple_IsRule188Enabled,
2466 GICXXPred_Simple_IsRule189Enabled,
2467 GICXXPred_Simple_IsRule190Enabled,
2468 GICXXPred_Simple_IsRule191Enabled,
2469 GICXXPred_Simple_IsRule192Enabled,
2470 GICXXPred_Simple_IsRule193Enabled,
2471 GICXXPred_Simple_IsRule194Enabled,
2472 GICXXPred_Simple_IsRule195Enabled,
2473 GICXXPred_Simple_IsRule196Enabled,
2474 GICXXPred_Simple_IsRule197Enabled,
2475 GICXXPred_Simple_IsRule198Enabled,
2476 GICXXPred_Simple_IsRule199Enabled,
2477 GICXXPred_Simple_IsRule200Enabled,
2478 GICXXPred_Simple_IsRule201Enabled,
2479 GICXXPred_Simple_IsRule202Enabled,
2480 GICXXPred_Simple_IsRule203Enabled,
2481 GICXXPred_Simple_IsRule204Enabled,
2482 GICXXPred_Simple_IsRule205Enabled,
2483 GICXXPred_Simple_IsRule206Enabled,
2484 GICXXPred_Simple_IsRule207Enabled,
2485 GICXXPred_Simple_IsRule208Enabled,
2486 GICXXPred_Simple_IsRule209Enabled,
2487 GICXXPred_Simple_IsRule210Enabled,
2488 GICXXPred_Simple_IsRule211Enabled,
2489 GICXXPred_Simple_IsRule212Enabled,
2490 GICXXPred_Simple_IsRule213Enabled,
2491 GICXXPred_Simple_IsRule214Enabled,
2492 GICXXPred_Simple_IsRule215Enabled,
2493 GICXXPred_Simple_IsRule216Enabled,
2494 GICXXPred_Simple_IsRule217Enabled,
2495 GICXXPred_Simple_IsRule218Enabled,
2496 GICXXPred_Simple_IsRule219Enabled,
2497 GICXXPred_Simple_IsRule220Enabled,
2498 GICXXPred_Simple_IsRule221Enabled,
2499 GICXXPred_Simple_IsRule222Enabled,
2500 GICXXPred_Simple_IsRule223Enabled,
2501 GICXXPred_Simple_IsRule224Enabled,
2502 GICXXPred_Simple_IsRule225Enabled,
2503 GICXXPred_Simple_IsRule226Enabled,
2504 GICXXPred_Simple_IsRule227Enabled,
2505 GICXXPred_Simple_IsRule228Enabled,
2506 GICXXPred_Simple_IsRule229Enabled,
2507 GICXXPred_Simple_IsRule230Enabled,
2508 GICXXPred_Simple_IsRule231Enabled,
2509 GICXXPred_Simple_IsRule232Enabled,
2510 GICXXPred_Simple_IsRule233Enabled,
2511 GICXXPred_Simple_IsRule234Enabled,
2512 GICXXPred_Simple_IsRule235Enabled,
2513 GICXXPred_Simple_IsRule236Enabled,
2514 GICXXPred_Simple_IsRule237Enabled,
2515 GICXXPred_Simple_IsRule238Enabled,
2516 GICXXPred_Simple_IsRule239Enabled,
2517 GICXXPred_Simple_IsRule240Enabled,
2518 GICXXPred_Simple_IsRule241Enabled,
2519 GICXXPred_Simple_IsRule242Enabled,
2520 GICXXPred_Simple_IsRule243Enabled,
2521 GICXXPred_Simple_IsRule244Enabled,
2522 GICXXPred_Simple_IsRule245Enabled,
2523 GICXXPred_Simple_IsRule246Enabled,
2524 GICXXPred_Simple_IsRule247Enabled,
2525 GICXXPred_Simple_IsRule248Enabled,
2526 GICXXPred_Simple_IsRule249Enabled,
2527 GICXXPred_Simple_IsRule250Enabled,
2528 GICXXPred_Simple_IsRule251Enabled,
2529 GICXXPred_Simple_IsRule252Enabled,
2530 GICXXPred_Simple_IsRule253Enabled,
2531 GICXXPred_Simple_IsRule254Enabled,
2532 GICXXPred_Simple_IsRule255Enabled,
2533 GICXXPred_Simple_IsRule256Enabled,
2534 GICXXPred_Simple_IsRule257Enabled,
2535 GICXXPred_Simple_IsRule258Enabled,
2536 GICXXPred_Simple_IsRule259Enabled,
2537 GICXXPred_Simple_IsRule260Enabled,
2538 GICXXPred_Simple_IsRule261Enabled,
2539 GICXXPred_Simple_IsRule262Enabled,
2540 GICXXPred_Simple_IsRule263Enabled,
2541 GICXXPred_Simple_IsRule264Enabled,
2542 GICXXPred_Simple_IsRule265Enabled,
2543 GICXXPred_Simple_IsRule266Enabled,
2544 GICXXPred_Simple_IsRule267Enabled,
2545 GICXXPred_Simple_IsRule268Enabled,
2546 GICXXPred_Simple_IsRule269Enabled,
2547 GICXXPred_Simple_IsRule270Enabled,
2548 GICXXPred_Simple_IsRule271Enabled,
2549 GICXXPred_Simple_IsRule272Enabled,
2550 GICXXPred_Simple_IsRule273Enabled,
2551 GICXXPred_Simple_IsRule274Enabled,
2552 GICXXPred_Simple_IsRule275Enabled,
2553 GICXXPred_Simple_IsRule276Enabled,
2554 GICXXPred_Simple_IsRule277Enabled,
2555 GICXXPred_Simple_IsRule278Enabled,
2556 GICXXPred_Simple_IsRule279Enabled,
2557 GICXXPred_Simple_IsRule280Enabled,
2558 GICXXPred_Simple_IsRule281Enabled,
2559 GICXXPred_Simple_IsRule282Enabled,
2560 GICXXPred_Simple_IsRule283Enabled,
2561 GICXXPred_Simple_IsRule284Enabled,
2562 GICXXPred_Simple_IsRule285Enabled,
2563 GICXXPred_Simple_IsRule286Enabled,
2564 GICXXPred_Simple_IsRule287Enabled,
2565 GICXXPred_Simple_IsRule288Enabled,
2566 GICXXPred_Simple_IsRule289Enabled,
2567 GICXXPred_Simple_IsRule290Enabled,
2568};
2569
2570bool AMDGPUPreLegalizerCombinerImpl::testSimplePredicate(unsigned Predicate) const {
2571 return RuleConfig.isRuleEnabled(Predicate - GICXXPred_Invalid - 1);
2572}
2573// Custom renderers.
2574enum {
2575 GICR_Invalid,
2576};
2577AMDGPUPreLegalizerCombinerImpl::CustomRendererFn
2578AMDGPUPreLegalizerCombinerImpl::CustomRenderers[] = {
2579 nullptr, // GICR_Invalid
2580};
2581
2582bool AMDGPUPreLegalizerCombinerImpl::canMatchOpcode(unsigned Opc) const {
2583 switch (Opc) {
2584 case TargetOpcode::G_FCMP:
2585 case TargetOpcode::G_FMA:
2586 case TargetOpcode::G_FMAD:
2587 case TargetOpcode::G_FSHL:
2588 case TargetOpcode::G_FSHR:
2589 case TargetOpcode::G_ICMP:
2590 case TargetOpcode::G_INSERT_VECTOR_ELT:
2591 case TargetOpcode::G_SELECT:
2592 case TargetOpcode::G_SHUFFLE_VECTOR:
2593 case TargetOpcode::G_ADD:
2594 case TargetOpcode::G_AND:
2595 case TargetOpcode::G_ASHR:
2596 case TargetOpcode::G_EXTRACT_VECTOR_ELT:
2597 case TargetOpcode::G_FADD:
2598 case TargetOpcode::G_FCOPYSIGN:
2599 case TargetOpcode::G_FDIV:
2600 case TargetOpcode::G_FMAXIMUM:
2601 case TargetOpcode::G_FMAXIMUMNUM:
2602 case TargetOpcode::G_FMAXNUM:
2603 case TargetOpcode::G_FMINIMUM:
2604 case TargetOpcode::G_FMINIMUMNUM:
2605 case TargetOpcode::G_FMINNUM:
2606 case TargetOpcode::G_FMUL:
2607 case TargetOpcode::G_FPOWI:
2608 case TargetOpcode::G_FREM:
2609 case TargetOpcode::G_FSUB:
2610 case TargetOpcode::G_LSHR:
2611 case TargetOpcode::G_MERGE_VALUES:
2612 case TargetOpcode::G_MUL:
2613 case TargetOpcode::G_OR:
2614 case TargetOpcode::G_PTR_ADD:
2615 case TargetOpcode::G_ROTL:
2616 case TargetOpcode::G_ROTR:
2617 case TargetOpcode::G_SDIV:
2618 case TargetOpcode::G_SEXT_INREG:
2619 case TargetOpcode::G_SHL:
2620 case TargetOpcode::G_SREM:
2621 case TargetOpcode::G_SUB:
2622 case TargetOpcode::G_UDIV:
2623 case TargetOpcode::G_UMULH:
2624 case TargetOpcode::G_UREM:
2625 case TargetOpcode::G_XOR:
2626 case TargetOpcode::COPY:
2627 case TargetOpcode::G_ABS:
2628 case TargetOpcode::G_ANYEXT:
2629 case TargetOpcode::G_BITCAST:
2630 case TargetOpcode::G_BITREVERSE:
2631 case TargetOpcode::G_BSWAP:
2632 case TargetOpcode::G_BUILD_VECTOR:
2633 case TargetOpcode::G_CONCAT_VECTORS:
2634 case TargetOpcode::G_CTLZ:
2635 case TargetOpcode::G_CTLZ_ZERO_POISON:
2636 case TargetOpcode::G_CTPOP:
2637 case TargetOpcode::G_CTTZ:
2638 case TargetOpcode::G_CTTZ_ZERO_POISON:
2639 case TargetOpcode::G_FABS:
2640 case TargetOpcode::G_FCANONICALIZE:
2641 case TargetOpcode::G_FCEIL:
2642 case TargetOpcode::G_FFLOOR:
2643 case TargetOpcode::G_FLOG2:
2644 case TargetOpcode::G_FNEARBYINT:
2645 case TargetOpcode::G_FNEG:
2646 case TargetOpcode::G_FPEXT:
2647 case TargetOpcode::G_FPTOSI:
2648 case TargetOpcode::G_FPTOUI:
2649 case TargetOpcode::G_FPTRUNC:
2650 case TargetOpcode::G_FREEZE:
2651 case TargetOpcode::G_FRINT:
2652 case TargetOpcode::G_FSQRT:
2653 case TargetOpcode::G_INTRINSIC_ROUND:
2654 case TargetOpcode::G_INTRINSIC_ROUNDEVEN:
2655 case TargetOpcode::G_INTRINSIC_TRUNC:
2656 case TargetOpcode::G_INTTOPTR:
2657 case TargetOpcode::G_PHI:
2658 case TargetOpcode::G_PTRTOINT:
2659 case TargetOpcode::G_SEXT:
2660 case TargetOpcode::G_SITOFP:
2661 case TargetOpcode::G_TRUNC:
2662 case TargetOpcode::G_TRUNC_USAT_U:
2663 case TargetOpcode::G_UITOFP:
2664 case TargetOpcode::G_ZEXT:
2665 case TargetOpcode::G_BR:
2666 case TargetOpcode::G_BUILD_VECTOR_TRUNC:
2667 case TargetOpcode::G_FMAXNUM_IEEE:
2668 case TargetOpcode::G_FMINNUM_IEEE:
2669 case TargetOpcode::G_LOAD:
2670 case TargetOpcode::G_SADDE:
2671 case TargetOpcode::G_SADDO:
2672 case TargetOpcode::G_SADDSAT:
2673 case TargetOpcode::G_SEXTLOAD:
2674 case TargetOpcode::G_SMAX:
2675 case TargetOpcode::G_SMIN:
2676 case TargetOpcode::G_SMULFIX:
2677 case TargetOpcode::G_SMULFIXSAT:
2678 case TargetOpcode::G_SMULH:
2679 case TargetOpcode::G_SMULO:
2680 case TargetOpcode::G_SSHLSAT:
2681 case TargetOpcode::G_SSUBE:
2682 case TargetOpcode::G_SSUBO:
2683 case TargetOpcode::G_STORE:
2684 case TargetOpcode::G_UADDE:
2685 case TargetOpcode::G_UADDO:
2686 case TargetOpcode::G_UADDSAT:
2687 case TargetOpcode::G_UMAX:
2688 case TargetOpcode::G_UMIN:
2689 case TargetOpcode::G_UMULFIX:
2690 case TargetOpcode::G_UMULFIXSAT:
2691 case TargetOpcode::G_UMULO:
2692 case TargetOpcode::G_UNMERGE_VALUES:
2693 case TargetOpcode::G_USHLSAT:
2694 case TargetOpcode::G_USUBE:
2695 case TargetOpcode::G_USUBO:
2696 case TargetOpcode::G_ZEXTLOAD:
2697 return true;
2698 default:
2699 return false;
2700 }
2701}
2702
2703uint32_t AMDGPUPreLegalizerCombinerImpl::getRootFlagsToDrop() const {
2704 return MachineInstr::getPoisonGeneratingFlags();
2705}
2706
2707bool AMDGPUPreLegalizerCombinerImpl::tryCombineAllImpl(MachineInstr &I) const {
2708 const PredicateBitset AvailableFeatures = getAvailableFeatures();
2709 State.MIs.clear();
2710 State.MIs.push_back(&I);
2711 if (executeMatchTable(*this, State, ExecInfo, B, getMatchTable(), Helper.getTII(), MRI, Helper.getTRI(), Helper.getRBI(), AvailableFeatures, /*CoverageInfo*/ nullptr)) {
2712 return true;
2713 }
2714
2715 return false;
2716}
2717
2718enum {
2719 GICXXCustomAction_GICombiner0 = GICXXCustomAction_Invalid + 1,
2720 GICXXCustomAction_GICombiner1,
2721 GICXXCustomAction_GICombiner2,
2722 GICXXCustomAction_GICombiner3,
2723 GICXXCustomAction_GICombiner4,
2724 GICXXCustomAction_GICombiner5,
2725 GICXXCustomAction_GICombiner6,
2726 GICXXCustomAction_GICombiner7,
2727 GICXXCustomAction_GICombiner8,
2728 GICXXCustomAction_GICombiner9,
2729 GICXXCustomAction_GICombiner10,
2730 GICXXCustomAction_GICombiner11,
2731 GICXXCustomAction_GICombiner12,
2732 GICXXCustomAction_GICombiner13,
2733 GICXXCustomAction_GICombiner14,
2734 GICXXCustomAction_GICombiner15,
2735 GICXXCustomAction_GICombiner16,
2736 GICXXCustomAction_GICombiner17,
2737 GICXXCustomAction_GICombiner18,
2738 GICXXCustomAction_GICombiner19,
2739 GICXXCustomAction_GICombiner20,
2740 GICXXCustomAction_GICombiner21,
2741 GICXXCustomAction_GICombiner22,
2742 GICXXCustomAction_GICombiner23,
2743 GICXXCustomAction_GICombiner24,
2744 GICXXCustomAction_GICombiner25,
2745 GICXXCustomAction_GICombiner26,
2746 GICXXCustomAction_GICombiner27,
2747 GICXXCustomAction_GICombiner28,
2748 GICXXCustomAction_GICombiner29,
2749 GICXXCustomAction_GICombiner30,
2750 GICXXCustomAction_GICombiner31,
2751 GICXXCustomAction_GICombiner32,
2752 GICXXCustomAction_GICombiner33,
2753 GICXXCustomAction_GICombiner34,
2754 GICXXCustomAction_GICombiner35,
2755 GICXXCustomAction_GICombiner36,
2756 GICXXCustomAction_GICombiner37,
2757 GICXXCustomAction_GICombiner38,
2758 GICXXCustomAction_GICombiner39,
2759 GICXXCustomAction_GICombiner40,
2760 GICXXCustomAction_GICombiner41,
2761 GICXXCustomAction_GICombiner42,
2762 GICXXCustomAction_GICombiner43,
2763 GICXXCustomAction_GICombiner44,
2764 GICXXCustomAction_GICombiner45,
2765 GICXXCustomAction_GICombiner46,
2766 GICXXCustomAction_GICombiner47,
2767 GICXXCustomAction_GICombiner48,
2768 GICXXCustomAction_GICombiner49,
2769 GICXXCustomAction_GICombiner50,
2770 GICXXCustomAction_GICombiner51,
2771 GICXXCustomAction_GICombiner52,
2772 GICXXCustomAction_GICombiner53,
2773 GICXXCustomAction_GICombiner54,
2774 GICXXCustomAction_GICombiner55,
2775 GICXXCustomAction_GICombiner56,
2776 GICXXCustomAction_GICombiner57,
2777 GICXXCustomAction_GICombiner58,
2778 GICXXCustomAction_GICombiner59,
2779 GICXXCustomAction_GICombiner60,
2780 GICXXCustomAction_GICombiner61,
2781 GICXXCustomAction_GICombiner62,
2782 GICXXCustomAction_GICombiner63,
2783 GICXXCustomAction_GICombiner64,
2784 GICXXCustomAction_GICombiner65,
2785 GICXXCustomAction_GICombiner66,
2786 GICXXCustomAction_GICombiner67,
2787 GICXXCustomAction_GICombiner68,
2788 GICXXCustomAction_GICombiner69,
2789 GICXXCustomAction_GICombiner70,
2790 GICXXCustomAction_GICombiner71,
2791 GICXXCustomAction_GICombiner72,
2792 GICXXCustomAction_GICombiner73,
2793 GICXXCustomAction_GICombiner74,
2794 GICXXCustomAction_GICombiner75,
2795 GICXXCustomAction_GICombiner76,
2796 GICXXCustomAction_GICombiner77,
2797 GICXXCustomAction_GICombiner78,
2798 GICXXCustomAction_GICombiner79,
2799 GICXXCustomAction_GICombiner80,
2800 GICXXCustomAction_GICombiner81,
2801 GICXXCustomAction_GICombiner82,
2802 GICXXCustomAction_GICombiner83,
2803 GICXXCustomAction_GICombiner84,
2804 GICXXCustomAction_GICombiner85,
2805 GICXXCustomAction_GICombiner86,
2806 GICXXCustomAction_GICombiner87,
2807 GICXXCustomAction_GICombiner88,
2808 GICXXCustomAction_GICombiner89,
2809 GICXXCustomAction_GICombiner90,
2810 GICXXCustomAction_GICombiner91,
2811 GICXXCustomAction_GICombiner92,
2812 GICXXCustomAction_GICombiner93,
2813 GICXXCustomAction_GICombiner94,
2814 GICXXCustomAction_GICombiner95,
2815 GICXXCustomAction_GICombiner96,
2816 GICXXCustomAction_GICombiner97,
2817 GICXXCustomAction_GICombiner98,
2818 GICXXCustomAction_GICombiner99,
2819 GICXXCustomAction_GICombiner100,
2820 GICXXCustomAction_GICombiner101,
2821 GICXXCustomAction_GICombiner102,
2822 GICXXCustomAction_GICombiner103,
2823 GICXXCustomAction_GICombiner104,
2824 GICXXCustomAction_GICombiner105,
2825 GICXXCustomAction_GICombiner106,
2826 GICXXCustomAction_GICombiner107,
2827 GICXXCustomAction_GICombiner108,
2828 GICXXCustomAction_GICombiner109,
2829 GICXXCustomAction_GICombiner110,
2830 GICXXCustomAction_GICombiner111,
2831 GICXXCustomAction_GICombiner112,
2832 GICXXCustomAction_GICombiner113,
2833 GICXXCustomAction_GICombiner114,
2834 GICXXCustomAction_GICombiner115,
2835 GICXXCustomAction_GICombiner116,
2836 GICXXCustomAction_GICombiner117,
2837 GICXXCustomAction_GICombiner118,
2838 GICXXCustomAction_GICombiner119,
2839 GICXXCustomAction_GICombiner120,
2840 GICXXCustomAction_GICombiner121,
2841 GICXXCustomAction_GICombiner122,
2842 GICXXCustomAction_GICombiner123,
2843 GICXXCustomAction_GICombiner124,
2844 GICXXCustomAction_GICombiner125,
2845 GICXXCustomAction_GICombiner126,
2846 GICXXCustomAction_GICombiner127,
2847 GICXXCustomAction_GICombiner128,
2848 GICXXCustomAction_GICombiner129,
2849 GICXXCustomAction_GICombiner130,
2850 GICXXCustomAction_GICombiner131,
2851 GICXXCustomAction_GICombiner132,
2852 GICXXCustomAction_GICombiner133,
2853 GICXXCustomAction_GICombiner134,
2854 GICXXCustomAction_GICombiner135,
2855 GICXXCustomAction_GICombiner136,
2856 GICXXCustomAction_GICombiner137,
2857 GICXXCustomAction_GICombiner138,
2858 GICXXCustomAction_GICombiner139,
2859 GICXXCustomAction_GICombiner140,
2860 GICXXCustomAction_GICombiner141,
2861 GICXXCustomAction_GICombiner142,
2862 GICXXCustomAction_GICombiner143,
2863 GICXXCustomAction_GICombiner144,
2864 GICXXCustomAction_GICombiner145,
2865 GICXXCustomAction_GICombiner146,
2866 GICXXCustomAction_GICombiner147,
2867 GICXXCustomAction_GICombiner148,
2868 GICXXCustomAction_GICombiner149,
2869 GICXXCustomAction_GICombiner150,
2870 GICXXCustomAction_GICombiner151,
2871 GICXXCustomAction_GICombiner152,
2872 GICXXCustomAction_GICombiner153,
2873 GICXXCustomAction_GICombiner154,
2874};
2875bool AMDGPUPreLegalizerCombinerImpl::runCustomAction(unsigned ApplyID, const MatcherState &State, NewMIVector &OutMIs) const {
2876 Helper.getBuilder().setInstrAndDebugLoc(*State.MIs[0]);
2877 switch(ApplyID) {
2878 case GICXXCustomAction_GICombiner0:{
2879 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2880 // Match Patterns
2881 if(![&](){return Helper.matchFoldAPlusC1MinusC2(*State.MIs[0], GIMatchData_matchinfo);}()) {
2882 return false;
2883 }
2884 // Apply Patterns
2885 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2886 return true;
2887 }
2888 case GICXXCustomAction_GICombiner1:{
2889 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2890 // Match Patterns
2891 if(![&](){return Helper.matchFoldC2MinusAPlusC1(*State.MIs[0], GIMatchData_matchinfo);}()) {
2892 return false;
2893 }
2894 // Apply Patterns
2895 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2896 return true;
2897 }
2898 case GICXXCustomAction_GICombiner2:{
2899 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2900 // Match Patterns
2901 if(![&](){return Helper.matchFoldAMinusC1MinusC2(*State.MIs[0], GIMatchData_matchinfo);}()) {
2902 return false;
2903 }
2904 // Apply Patterns
2905 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2906 return true;
2907 }
2908 case GICXXCustomAction_GICombiner3:{
2909 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2910 // Match Patterns
2911 if(![&](){return Helper.matchFoldC1Minus2MinusC2(*State.MIs[0], GIMatchData_matchinfo);}()) {
2912 return false;
2913 }
2914 // Apply Patterns
2915 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2916 return true;
2917 }
2918 case GICXXCustomAction_GICombiner4:{
2919 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2920 // Match Patterns
2921 if(![&](){return Helper.matchFoldAMinusC1PlusC2(*State.MIs[0], GIMatchData_matchinfo);}()) {
2922 return false;
2923 }
2924 // Apply Patterns
2925 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2926 return true;
2927 }
2928 case GICXXCustomAction_GICombiner5:{
2929 // Match Patterns
2930 if(![&](){return Helper.matchCombineCopy(*State.MIs[0]);}()) {
2931 return false;
2932 }
2933 // Apply Patterns
2934 Helper.applyCombineCopy(*State.MIs[0]);
2935 return true;
2936 }
2937 case GICXXCustomAction_GICombiner6:{
2938 unsigned GIMatchData_matchinfo;
2939 // Match Patterns
2940 if(![&](){return Helper.matchCombineMulToShl(*State.MIs[0], GIMatchData_matchinfo);}()) {
2941 return false;
2942 }
2943 // Apply Patterns
2944 Helper.applyCombineMulToShl(*State.MIs[0], GIMatchData_matchinfo);
2945 return true;
2946 }
2947 case GICXXCustomAction_GICombiner7:{
2948 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2949 // Match Patterns
2950 if(![&](){return Helper.matchCombineSubToAdd(*State.MIs[0], GIMatchData_matchinfo);}()) {
2951 return false;
2952 }
2953 // Apply Patterns
2954 Helper.applyBuildFnNoErase(*State.MIs[0], GIMatchData_matchinfo);
2955 return true;
2956 }
2957 case GICXXCustomAction_GICombiner8:{
2958 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2959 // Match Patterns
2960 if(![&](){return Helper.matchExtractVectorElement(*State.MIs[0], GIMatchData_matchinfo);}()) {
2961 return false;
2962 }
2963 // Apply Patterns
2964 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2965 return true;
2966 }
2967 case GICXXCustomAction_GICombiner9:{
2968 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2969 // Match Patterns
2970 if(![&](){return Helper.matchInsertVectorElementOOB(*State.MIs[0], GIMatchData_matchinfo);}()) {
2971 return false;
2972 }
2973 // Apply Patterns
2974 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2975 return true;
2976 }
2977 case GICXXCustomAction_GICombiner10:{
2978 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2979 // Match Patterns
2980 if(![&](){return Helper.matchExtractVectorElementWithDifferentIndices(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
2981 return false;
2982 }
2983 // Apply Patterns
2984 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
2985 return true;
2986 }
2987 case GICXXCustomAction_GICombiner11:{
2988 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
2989 // Match Patterns
2990 if(![&](){return Helper.matchExtractVectorElementWithBuildVector(*State.MIs[0], *State.MIs[1],
2991 GIMatchData_matchinfo);}()) {
2992 return false;
2993 }
2994 // Apply Patterns
2995 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
2996 return true;
2997 }
2998 case GICXXCustomAction_GICombiner12:{
2999 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3000 // Match Patterns
3001 if(![&](){return Helper.matchExtractVectorElementWithBuildVectorTrunc(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
3002 return false;
3003 }
3004 // Apply Patterns
3005 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
3006 return true;
3007 }
3008 case GICXXCustomAction_GICombiner13:{
3009 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3010 // Match Patterns
3011 if(![&](){return Helper.matchExtractVectorElementWithShuffleVector(*State.MIs[0], *State.MIs[1],
3012 GIMatchData_matchinfo);}()) {
3013 return false;
3014 }
3015 // Apply Patterns
3016 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3017 return true;
3018 }
3019 case GICXXCustomAction_GICombiner14:{
3020 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3021 // Match Patterns
3022 if(![&](){return Helper.matchAddOfVScale(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
3023 return false;
3024 }
3025 // Apply Patterns
3026 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
3027 return true;
3028 }
3029 case GICXXCustomAction_GICombiner15:{
3030 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3031 // Match Patterns
3032 if(![&](){return Helper.matchMulOfVScale(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
3033 return false;
3034 }
3035 // Apply Patterns
3036 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
3037 return true;
3038 }
3039 case GICXXCustomAction_GICombiner16:{
3040 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3041 // Match Patterns
3042 if(![&](){return Helper.matchShlOfVScale(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
3043 return false;
3044 }
3045 // Apply Patterns
3046 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
3047 return true;
3048 }
3049 case GICXXCustomAction_GICombiner17:{
3050 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3051 // Match Patterns
3052 if(![&](){return Helper.matchSubOfVScale(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
3053 return false;
3054 }
3055 // Apply Patterns
3056 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
3057 return true;
3058 }
3059 case GICXXCustomAction_GICombiner18:{
3060 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3061 // Match Patterns
3062 if(![&](){return !isGuaranteedNotToBePoison(State.MIs[0]->getOperand(1).getReg(), MRI) && Helper.matchFreezeOfSingleMaybePoisonOperand(*State.MIs[0], GIMatchData_matchinfo);}()) {
3063 return false;
3064 }
3065 // Apply Patterns
3066 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3067 return true;
3068 }
3069 case GICXXCustomAction_GICombiner19:{
3070 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3071 // Match Patterns
3072 if(![&](){return Helper.matchTruncateOfExt(*State.MIs[0], *State.MIs[1], GIMatchData_matchinfo);}()) {
3073 return false;
3074 }
3075 // Apply Patterns
3076 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3077 return true;
3078 }
3079 case GICXXCustomAction_GICombiner20:{
3080 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3081 // Match Patterns
3082 if(![&](){return Helper.matchExtOfExt(*State.MIs[0], *State.MIs[1], GIMatchData_matchinfo);}()) {
3083 return false;
3084 }
3085 // Apply Patterns
3086 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3087 return true;
3088 }
3089 case GICXXCustomAction_GICombiner21:{
3090 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3091 // Match Patterns
3092 if(![&](){return Helper.matchRedundantSextInReg(*State.MIs[0], *State.MIs[1], GIMatchData_matchinfo);}()) {
3093 return false;
3094 }
3095 // Apply Patterns
3096 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3097 return true;
3098 }
3099 case GICXXCustomAction_GICombiner22:{
3100 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3101 // Match Patterns
3102 if(![&](){return Helper.matchCastOfSelect(*State.MIs[0], *State.MIs[1], GIMatchData_matchinfo);}()) {
3103 return false;
3104 }
3105 // Apply Patterns
3106 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3107 return true;
3108 }
3109 case GICXXCustomAction_GICombiner23:{
3110 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3111 // Match Patterns
3112 if(![&](){return Helper.matchCastOfBuildVector(*State.MIs[0], *State.MIs[1], GIMatchData_matchinfo);}()) {
3113 return false;
3114 }
3115 // Apply Patterns
3116 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3117 return true;
3118 }
3119 case GICXXCustomAction_GICombiner24:{
3120 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3121 // Match Patterns
3122 if(![&](){return Helper.matchNarrowBinop(*State.MIs[0], *State.MIs[1], GIMatchData_matchinfo);}()) {
3123 return false;
3124 }
3125 // Apply Patterns
3126 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3127 return true;
3128 }
3129 case GICXXCustomAction_GICombiner25:{
3130 APInt GIMatchData_matchinfo;
3131 // Match Patterns
3132 if(![&](){return Helper.matchCastOfInteger(*State.MIs[0], GIMatchData_matchinfo);}()) {
3133 return false;
3134 }
3135 // Apply Patterns
3136 Helper.replaceInstWithConstant(*State.MIs[0], GIMatchData_matchinfo);
3137 return true;
3138 }
3139 case GICXXCustomAction_GICombiner26:{
3140 SmallVector<Register> GIMatchData_info;
3141 // Match Patterns
3142 if(![&](){return Helper.matchCombineInsertVecElts(*State.MIs[0], GIMatchData_info);}()) {
3143 return false;
3144 }
3145 // Apply Patterns
3146 Helper.applyCombineInsertVecElts(*State.MIs[0], GIMatchData_info);
3147 return true;
3148 }
3149 case GICXXCustomAction_GICombiner27:{
3150 Register GIMatchData_matchinfo;
3151 // Match Patterns
3152 if(![&](){return Helper.matchExtractVecEltBuildVec(*State.MIs[0], GIMatchData_matchinfo);}()) {
3153 return false;
3154 }
3155 // Apply Patterns
3156 Helper.applyExtractVecEltBuildVec(*State.MIs[0], GIMatchData_matchinfo);
3157 return true;
3158 }
3159 case GICXXCustomAction_GICombiner28:{
3160 SmallVector<std::pair<Register, MachineInstr*>> GIMatchData_matchinfo;
3161 // Match Patterns
3162 if(![&](){return Helper.matchExtractAllEltsFromBuildVector(*State.MIs[0], GIMatchData_matchinfo);}()) {
3163 return false;
3164 }
3165 // Apply Patterns
3166 Helper.applyExtractAllEltsFromBuildVector(*State.MIs[0], GIMatchData_matchinfo);
3167 return true;
3168 }
3169 case GICXXCustomAction_GICombiner29:{
3170 PreferredTuple GIMatchData_matchinfo;
3171 // Match Patterns
3172 if(![&](){return Helper.matchCombineExtendingLoads(*State.MIs[0], GIMatchData_matchinfo);}()) {
3173 return false;
3174 }
3175 // Apply Patterns
3176 Helper.applyCombineExtendingLoads(*State.MIs[0], GIMatchData_matchinfo);
3177 return true;
3178 }
3179 case GICXXCustomAction_GICombiner30:{
3180 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3181 // Match Patterns
3182 if(![&](){return Helper.matchCombineLoadWithAndMask(*State.MIs[0], GIMatchData_matchinfo);}()) {
3183 return false;
3184 }
3185 // Apply Patterns
3186 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3187 return true;
3188 }
3189 case GICXXCustomAction_GICombiner31:{
3190 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3191 // Match Patterns
3192 if(![&](){return Helper.matchCombineExtractedVectorLoad(*State.MIs[0], GIMatchData_matchinfo);}()) {
3193 return false;
3194 }
3195 // Apply Patterns
3196 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3197 return true;
3198 }
3199 case GICXXCustomAction_GICombiner32:{
3200 // Apply Patterns
3201 Helper.replaceInstWithFConstant(*State.MIs[0]->getOperand(0).getParent(), 0.0);
3202 return true;
3203 }
3204 case GICXXCustomAction_GICombiner33:{
3205 // Apply Patterns
3206 Helper.replaceInstWithConstant(*State.MIs[0]->getOperand(0).getParent(), 0);
3207 return true;
3208 }
3209 case GICXXCustomAction_GICombiner34:{
3210 // Apply Patterns
3211 Helper.replaceInstWithConstant(*State.MIs[0]->getOperand(0).getParent(), -1);
3212 return true;
3213 }
3214 case GICXXCustomAction_GICombiner35:{
3215 // Apply Patterns
3216 Helper.replaceInstWithUndef(*State.MIs[0]->getOperand(0).getParent());
3217 return true;
3218 }
3219 case GICXXCustomAction_GICombiner36:{
3220 // Match Patterns
3221 if(![&](){return Helper.matchAllExplicitUsesAreUndef(*State.MIs[0]);}()) {
3222 return false;
3223 }
3224 // Apply Patterns
3225 Helper.replaceInstWithUndef(*State.MIs[0]);
3226 return true;
3227 }
3228 case GICXXCustomAction_GICombiner37:{
3229 // Match Patterns
3230 if(![&](){return Helper.matchUndefStore(*State.MIs[0]);}()) {
3231 return false;
3232 }
3233 // Apply Patterns
3234 Helper.eraseInst(*State.MIs[0]);
3235 return true;
3236 }
3237 case GICXXCustomAction_GICombiner38:{
3238 // Match Patterns
3239 if(![&](){return Helper.matchInsertExtractVecEltOutOfBounds(*State.MIs[0]);}()) {
3240 return false;
3241 }
3242 // Apply Patterns
3243 Helper.replaceInstWithUndef(*State.MIs[0]);
3244 return true;
3245 }
3246 case GICXXCustomAction_GICombiner39:{
3247 Register GIMatchData_info;
3248 // Match Patterns
3249 if(![&](){GIMatchData_info = State.MIs[1]->getOperand(1).getReg(); return true;}()) {
3250 return false;
3251 }
3252 // Apply Patterns
3253 Helper.applyCombineP2IToI2P(*State.MIs[0], GIMatchData_info);
3254 return true;
3255 }
3256 case GICXXCustomAction_GICombiner40:{
3257 Register GIMatchData_matchinfo;
3258 // Match Patterns
3259 if(![&](){return Helper.matchCombineAnyExtTrunc(*State.MIs[0], GIMatchData_matchinfo);}()) {
3260 return false;
3261 }
3262 // Apply Patterns
3263 Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo);
3264 return true;
3265 }
3266 case GICXXCustomAction_GICombiner41:{
3267 Register GIMatchData_matchinfo;
3268 // Match Patterns
3269 if(![&](){return Helper.matchBuildVectorIdentityFold(*State.MIs[0], GIMatchData_matchinfo);}()) {
3270 return false;
3271 }
3272 // Apply Patterns
3273 Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo);
3274 return true;
3275 }
3276 case GICXXCustomAction_GICombiner42:{
3277 Register GIMatchData_matchinfo;
3278 // Match Patterns
3279 if(![&](){return Helper.matchTruncBuildVectorFold(*State.MIs[0], GIMatchData_matchinfo);}()) {
3280 return false;
3281 }
3282 // Apply Patterns
3283 Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo);
3284 return true;
3285 }
3286 case GICXXCustomAction_GICombiner43:{
3287 Register GIMatchData_matchinfo;
3288 // Match Patterns
3289 if(![&](){return Helper.matchTruncLshrBuildVectorFold(*State.MIs[0], GIMatchData_matchinfo);}()) {
3290 return false;
3291 }
3292 // Apply Patterns
3293 Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo);
3294 return true;
3295 }
3296 case GICXXCustomAction_GICombiner44:{
3297 // Match Patterns
3298 if(![&](){return MRI.getType(State.MIs[1]->getOperand(1).getReg()) == MRI.getType(State.MIs[0]->getOperand(0).getReg());}()) {
3299 return false;
3300 }
3301 // Apply Patterns
3302 Helper.replaceSingleDefInstWithReg(*State.MIs[0], State.MIs[1]->getOperand(1).getReg());
3303 return true;
3304 }
3305 case GICXXCustomAction_GICombiner45:{
3306 MachineInstr* GIMatchData_matchinfo;
3307 // Match Patterns
3308 if(![&](){return Helper.matchExtendThroughPhis(*State.MIs[0], GIMatchData_matchinfo);}()) {
3309 return false;
3310 }
3311 // Apply Patterns
3312 Helper.applyExtendThroughPhis(*State.MIs[0], GIMatchData_matchinfo);
3313 return true;
3314 }
3315 case GICXXCustomAction_GICombiner46:{
3316 InstructionStepsMatchInfo GIMatchData_info;
3317 // Match Patterns
3318 if(![&](){return Helper.matchHoistLogicOpWithSameOpcodeHands(*State.MIs[0], GIMatchData_info);}()) {
3319 return false;
3320 }
3321 // Apply Patterns
3322 Helper.applyBuildInstructionSteps(*State.MIs[0], GIMatchData_info);
3323 return true;
3324 }
3325 case GICXXCustomAction_GICombiner47:{
3326 std::optional<int64_t> GIMatchData_matchinfo;
3327 // Match Patterns
3328 if(![&](){return Helper.matchShiftsTooBig(*State.MIs[0], GIMatchData_matchinfo);}()) {
3329 return false;
3330 }
3331 // Apply Patterns
3332 if (GIMatchData_matchinfo) {
3333 Helper.replaceInstWithConstant(*State.MIs[0], *GIMatchData_matchinfo);
3334 } else {
3335 Helper.replaceInstWithUndef(*State.MIs[0]);
3336 }
3337 return true;
3338 }
3339 case GICXXCustomAction_GICombiner48:{
3340 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3341 // Match Patterns
3342 if(![&](){return Helper.matchReassocPtrAdd(*State.MIs[0], GIMatchData_matchinfo);}()) {
3343 return false;
3344 }
3345 // Apply Patterns
3346 Helper.applyBuildFnNoErase(*State.MIs[0], GIMatchData_matchinfo);
3347 return true;
3348 }
3349 case GICXXCustomAction_GICombiner49:{
3350 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3351 // Match Patterns
3352 if(![&](){return Helper.matchReassocCommBinOp(*State.MIs[0], GIMatchData_matchinfo);}()) {
3353 return false;
3354 }
3355 // Apply Patterns
3356 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3357 return true;
3358 }
3359 case GICXXCustomAction_GICombiner50:{
3360 PtrAddChain GIMatchData_matchinfo;
3361 // Match Patterns
3362 if(![&](){return Helper.matchPtrAddImmedChain(*State.MIs[0], GIMatchData_matchinfo);}()) {
3363 return false;
3364 }
3365 // Apply Patterns
3366 Helper.applyPtrAddImmedChain(*State.MIs[0], GIMatchData_matchinfo);
3367 return true;
3368 }
3369 case GICXXCustomAction_GICombiner51:{
3370 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3371 // Match Patterns
3372 if(![&](){return Helper.matchCanonicalizeICmp(*State.MIs[0], GIMatchData_matchinfo);}()) {
3373 return false;
3374 }
3375 // Apply Patterns
3376 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3377 return true;
3378 }
3379 case GICXXCustomAction_GICombiner52:{
3380 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3381 // Match Patterns
3382 if(![&](){return Helper.matchCanonicalizeFCmp(*State.MIs[0], GIMatchData_matchinfo);}()) {
3383 return false;
3384 }
3385 // Apply Patterns
3386 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3387 return true;
3388 }
3389 case GICXXCustomAction_GICombiner53:{
3390 int64_t GIMatchData_matchinfo;
3391 // Match Patterns
3392 if(![&](){return Helper.matchICmpToTrueFalseKnownBits(*State.MIs[0], GIMatchData_matchinfo);}()) {
3393 return false;
3394 }
3395 // Apply Patterns
3396 Helper.replaceInstWithConstant(*State.MIs[0], GIMatchData_matchinfo);
3397 return true;
3398 }
3399 case GICXXCustomAction_GICombiner54:{
3400 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3401 // Match Patterns
3402 if(![&](){return Helper.matchICmpToLHSKnownBits(*State.MIs[0], GIMatchData_info);}()) {
3403 return false;
3404 }
3405 // Apply Patterns
3406 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3407 return true;
3408 }
3409 case GICXXCustomAction_GICombiner55:{
3410 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3411 // Match Patterns
3412 if(![&](){return Helper.matchRedundantBinOpInEquality(*State.MIs[0], GIMatchData_info);}()) {
3413 return false;
3414 }
3415 // Apply Patterns
3416 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3417 return true;
3418 }
3419 case GICXXCustomAction_GICombiner56:{
3420 std::tuple<Register, int64_t> GIMatchData_info;
3421 // Match Patterns
3422 if(![&](){return Helper.matchAshrShlToSextInreg(*State.MIs[0], GIMatchData_info);}()) {
3423 return false;
3424 }
3425 // Apply Patterns
3426 Helper.applyAshShlToSextInreg(*State.MIs[0], GIMatchData_info);
3427 return true;
3428 }
3429 case GICXXCustomAction_GICombiner57:{
3430 std::tuple<Register, unsigned> GIMatchData_matchinfo;
3431 // Match Patterns
3432 if(![&](){return Helper.matchSextInRegOfLoad(*State.MIs[0], GIMatchData_matchinfo);}()) {
3433 return false;
3434 }
3435 // Apply Patterns
3436 Helper.applySextInRegOfLoad(*State.MIs[0], GIMatchData_matchinfo);
3437 return true;
3438 }
3439 case GICXXCustomAction_GICombiner58:{
3440 RegisterImmPair GIMatchData_matchinfo;
3441 // Match Patterns
3442 if(![&](){return Helper.matchCombineShlOfExtend(*State.MIs[0], GIMatchData_matchinfo);}()) {
3443 return false;
3444 }
3445 // Apply Patterns
3446 Helper.applyCombineShlOfExtend(*State.MIs[0], GIMatchData_matchinfo);
3447 return true;
3448 }
3449 case GICXXCustomAction_GICombiner59:{
3450 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3451 // Match Patterns
3452 if(![&](){return Helper.matchNarrowBinopFeedingAnd(*State.MIs[0], GIMatchData_matchinfo);}()) {
3453 return false;
3454 }
3455 // Apply Patterns
3456 Helper.applyBuildFnNoErase(*State.MIs[0], GIMatchData_matchinfo);
3457 return true;
3458 }
3459 case GICXXCustomAction_GICombiner60:{
3460 unsigned GIMatchData_matchinfo;
3461 // Match Patterns
3462 if(![&](){return Helper.matchConstantSelectCmp(*State.MIs[0], GIMatchData_matchinfo);}()) {
3463 return false;
3464 }
3465 // Apply Patterns
3466 Helper.replaceSingleDefInstWithOperand(*State.MIs[0], GIMatchData_matchinfo);
3467 return true;
3468 }
3469 case GICXXCustomAction_GICombiner61:{
3470 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3471 // Match Patterns
3472 if(![&](){return Helper.matchSelectIMinMax(State.MIs[0]->getOperand(0), GIMatchData_info);}()) {
3473 return false;
3474 }
3475 // Apply Patterns
3476 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_info);
3477 return true;
3478 }
3479 case GICXXCustomAction_GICombiner62:{
3480 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3481 // Match Patterns
3482 if(![&](){return Helper.matchSelect(*State.MIs[0], GIMatchData_matchinfo);}()) {
3483 return false;
3484 }
3485 // Apply Patterns
3486 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3487 return true;
3488 }
3489 case GICXXCustomAction_GICombiner63:{
3490 // Match Patterns
3491 if(![&](){LLT SrcTy = MRI.getType(State.MIs[3]->getOperand(1).getReg());
3492 return State.MIs[0]->getOperand(2).getImm() <= SrcTy.getScalarSizeInBits() &&
3493 MRI.getType(State.MIs[1]->getOperand(1).getReg()).getScalarType() ==
3494 MRI.getType(State.MIs[2]->getOperand(2).getReg()).getScalarType() &&
3495 VT->computeNumSignBits(State.MIs[3]->getOperand(1).getReg()) >=
3496 (SrcTy.getScalarSizeInBits() - State.MIs[0]->getOperand(2).getImm() + 1);}()) {
3497 return false;
3498 }
3499 // Apply Patterns
3500 auto SExt1 = Helper.getBuilder().buildSExt(MRI.getType(State.MIs[2]->getOperand(2).getReg()), State.MIs[3]->getOperand(1).getReg());
3501 auto Unmerge = Helper.getBuilder().buildUnmerge(MRI.getType(State.MIs[1]->getOperand(1).getReg()), SExt1);
3502 unsigned UnmergeDef = State.MIs[1]->getOperand(1).getReg() == State.MIs[2]->getOperand(0).getReg() ? 0 : 1;
3503 Helper.getBuilder().buildSExt(State.MIs[0]->getOperand(0).getReg(), Unmerge.getReg(UnmergeDef));
3504 State.MIs[0]->eraseFromParent();
3505 return true;
3506 }
3507 case GICXXCustomAction_GICombiner64:{
3508 Register GIMatchData_matchinfo;
3509 // Match Patterns
3510 if(![&](){return Helper.matchRedundantAnd(*State.MIs[0], GIMatchData_matchinfo);}()) {
3511 return false;
3512 }
3513 // Apply Patterns
3514 Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo);
3515 return true;
3516 }
3517 case GICXXCustomAction_GICombiner65:{
3518 Register GIMatchData_matchinfo;
3519 // Match Patterns
3520 if(![&](){return Helper.matchRedundantOr(*State.MIs[0], GIMatchData_matchinfo);}()) {
3521 return false;
3522 }
3523 // Apply Patterns
3524 Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo);
3525 return true;
3526 }
3527 case GICXXCustomAction_GICombiner66:{
3528 // Match Patterns
3529 if(![&](){return Helper.matchOperandIsKnownToBeAPowerOfTwo(State.MIs[0]->getOperand(2));}()) {
3530 return false;
3531 }
3532 // Apply Patterns
3533 Helper.applySimplifyURemByPow2(*State.MIs[0]);
3534 return true;
3535 }
3536 case GICXXCustomAction_GICombiner67:{
3537 Register GIMatchData_matchinfo;
3538 // Match Patterns
3539 if(![&](){return Helper.matchCombineZextTrunc(*State.MIs[0], GIMatchData_matchinfo);}()) {
3540 return false;
3541 }
3542 // Apply Patterns
3543 Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo);
3544 return true;
3545 }
3546 case GICXXCustomAction_GICombiner68:{
3547 // Match Patterns
3548 if(![&](){unsigned BitWidth = MRI.getType(State.MIs[0]->getOperand(1).getReg()).getScalarSizeInBits();
3549 return Helper.getValueTracking()->maskedValueIsZero(State.MIs[0]->getOperand(1).getReg(),
3550 APInt::getOneBitSet(BitWidth, State.MIs[0]->getOperand(2).getImm() - 1));}()) {
3551 return false;
3552 }
3553 // Apply Patterns
3554 Helper.getBuilder().setInstrAndDebugLoc(*State.MIs[0]);
3555 Helper.getBuilder().buildZExtInReg(State.MIs[0]->getOperand(0), State.MIs[0]->getOperand(1), State.MIs[0]->getOperand(2).getImm());
3556 State.MIs[0]->eraseFromParent();
3557 return true;
3558 }
3559 case GICXXCustomAction_GICombiner69:{
3560 std::pair<MachineInstr*, LLT> GIMatchData_matchinfo;
3561 // Match Patterns
3562 if(![&](){return Helper.matchCombineTruncOfShift(*State.MIs[0], GIMatchData_matchinfo);}()) {
3563 return false;
3564 }
3565 // Apply Patterns
3566 Helper.applyCombineTruncOfShift(*State.MIs[0], GIMatchData_matchinfo);
3567 return true;
3568 }
3569 case GICXXCustomAction_GICombiner70:{
3570 SmallVector<Register> GIMatchData_info;
3571 // Match Patterns
3572 if(![&](){return Helper.matchNotCmp(*State.MIs[0], GIMatchData_info);}()) {
3573 return false;
3574 }
3575 // Apply Patterns
3576 Helper.applyNotCmp(*State.MIs[0], GIMatchData_info);
3577 return true;
3578 }
3579 case GICXXCustomAction_GICombiner71:{
3580 MachineInstr * GIMatchData_matchinfo;
3581 // Match Patterns
3582 if(![&](){return Helper.matchOptBrCondByInvertingCond(*State.MIs[0], GIMatchData_matchinfo);}()) {
3583 return false;
3584 }
3585 // Apply Patterns
3586 Helper.applyOptBrCondByInvertingCond(*State.MIs[0], GIMatchData_matchinfo);
3587 return true;
3588 }
3589 case GICXXCustomAction_GICombiner72:{
3590 // Apply Patterns
3591 Helper.applyCombineConstantFoldFpUnary(*State.MIs[0], State.MIs[1]->getOperand(1).getFPImm());
3592 return true;
3593 }
3594 case GICXXCustomAction_GICombiner73:{
3595 APInt GIMatchData_info;
3596 // Match Patterns
3597 if(![&](){LLT DstTy = MRI.getType(State.MIs[0]->getOperand(0).getReg());
3598 APInt NewCst = State.MIs[2]->getOperand(1).getCImm()->getValue().zextOrTrunc(
3599 DstTy.getSizeInBits());
3600 NewCst += State.MIs[3]->getOperand(1).getCImm()->getValue().sextOrTrunc(
3601 DstTy.getSizeInBits());
3602 GIMatchData_info = NewCst;
3603 return true;}()) {
3604 return false;
3605 }
3606 // Apply Patterns
3607 Helper.getBuilder().setInstrAndDebugLoc(*State.MIs[0]);
3608 Helper.getBuilder().buildConstant(State.MIs[0]->getOperand(0), GIMatchData_info);
3609 State.MIs[0]->eraseFromParent();
3610 return true;
3611 }
3612 case GICXXCustomAction_GICombiner74:{
3613 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3614 // Match Patterns
3615 if(![&](){return Helper.matchOverlappingAnd(*State.MIs[0], GIMatchData_info);}()) {
3616 return false;
3617 }
3618 // Apply Patterns
3619 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3620 return true;
3621 }
3622 case GICXXCustomAction_GICombiner75:{
3623 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3624 // Match Patterns
3625 if(![&](){return Helper.matchMulOBy2(*State.MIs[0], GIMatchData_matchinfo);}()) {
3626 return false;
3627 }
3628 // Apply Patterns
3629 Helper.applyBuildFnNoErase(*State.MIs[0], GIMatchData_matchinfo);
3630 return true;
3631 }
3632 case GICXXCustomAction_GICombiner76:{
3633 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3634 // Match Patterns
3635 if(![&](){return Helper.matchMulOBy0(*State.MIs[0], GIMatchData_matchinfo);}()) {
3636 return false;
3637 }
3638 // Apply Patterns
3639 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3640 return true;
3641 }
3642 case GICXXCustomAction_GICombiner77:{
3643 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3644 // Match Patterns
3645 if(![&](){return Helper.matchAddEToAddO(*State.MIs[0], GIMatchData_matchinfo);}()) {
3646 return false;
3647 }
3648 // Apply Patterns
3649 Helper.applyBuildFnNoErase(*State.MIs[0], GIMatchData_matchinfo);
3650 return true;
3651 }
3652 case GICXXCustomAction_GICombiner78:{
3653 unsigned GIMatchData_info;
3654 // Match Patterns
3655 if(![&](){return Helper.matchCombineFMinMaxNaN(*State.MIs[0], GIMatchData_info);}()) {
3656 return false;
3657 }
3658 // Apply Patterns
3659 Helper.replaceSingleDefInstWithOperand(*State.MIs[0], GIMatchData_info);
3660 return true;
3661 }
3662 case GICXXCustomAction_GICombiner79:{
3663 // Match Patterns
3664 if(![&](){return Helper.matchFPowIExpansion(*State.MIs[0], State.MIs[1]->getOperand(1).getCImm()->getSExtValue());}()) {
3665 return false;
3666 }
3667 // Apply Patterns
3668 Helper.applyExpandFPowI(*State.MIs[0], State.MIs[1]->getOperand(1).getCImm()->getSExtValue());
3669 return true;
3670 }
3671 case GICXXCustomAction_GICombiner80:{
3672 std::pair<Register, Register> GIMatchData_matchinfo;
3673 // Match Patterns
3674 if(![&](){return Helper.matchXorOfAndWithSameReg(*State.MIs[0], GIMatchData_matchinfo);}()) {
3675 return false;
3676 }
3677 // Apply Patterns
3678 Helper.applyXorOfAndWithSameReg(*State.MIs[0], GIMatchData_matchinfo);
3679 return true;
3680 }
3681 case GICXXCustomAction_GICombiner81:{
3682 RegisterImmPair GIMatchData_matchinfo;
3683 // Match Patterns
3684 if(![&](){return Helper.matchShiftImmedChain(*State.MIs[0], GIMatchData_matchinfo);}()) {
3685 return false;
3686 }
3687 // Apply Patterns
3688 Helper.applyShiftImmedChain(*State.MIs[0], GIMatchData_matchinfo);
3689 return true;
3690 }
3691 case GICXXCustomAction_GICombiner82:{
3692 ShiftOfShiftedLogic GIMatchData_matchinfo;
3693 // Match Patterns
3694 if(![&](){return Helper.matchShiftOfShiftedLogic(*State.MIs[0], GIMatchData_matchinfo);}()) {
3695 return false;
3696 }
3697 // Apply Patterns
3698 Helper.applyShiftOfShiftedLogic(*State.MIs[0], GIMatchData_matchinfo);
3699 return true;
3700 }
3701 case GICXXCustomAction_GICombiner83:{
3702 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3703 // Match Patterns
3704 if(![&](){return Helper.matchLoadOrCombine(*State.MIs[0], GIMatchData_info);}()) {
3705 return false;
3706 }
3707 // Apply Patterns
3708 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3709 return true;
3710 }
3711 case GICXXCustomAction_GICombiner84:{
3712 MachineInstr * GIMatchData_matchinfo;
3713 // Match Patterns
3714 if(![&](){return Helper.matchCombineDivRem(*State.MIs[0], GIMatchData_matchinfo);}()) {
3715 return false;
3716 }
3717 // Apply Patterns
3718 Helper.applyCombineDivRem(*State.MIs[0], GIMatchData_matchinfo);
3719 return true;
3720 }
3721 case GICXXCustomAction_GICombiner85:{
3722 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3723 // Match Patterns
3724 if(![&](){return Helper.matchOrShiftToFunnelShift(*State.MIs[0], false, GIMatchData_info);}()) {
3725 return false;
3726 }
3727 // Apply Patterns
3728 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3729 return true;
3730 }
3731 case GICXXCustomAction_GICombiner86:{
3732 // Match Patterns
3733 if(![&](){return Helper.matchFunnelShiftToRotate(*State.MIs[0]);}()) {
3734 return false;
3735 }
3736 // Apply Patterns
3737 Helper.applyFunnelShiftToRotate(*State.MIs[0]);
3738 return true;
3739 }
3740 case GICXXCustomAction_GICombiner87:{
3741 // Match Patterns
3742 if(![&](){return Helper.matchConstantLargerBitWidth(*State.MIs[0], 3);}()) {
3743 return false;
3744 }
3745 // Apply Patterns
3746 Helper.applyFunnelShiftConstantModulo(*State.MIs[0]);
3747 return true;
3748 }
3749 case GICXXCustomAction_GICombiner88:{
3750 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3751 // Match Patterns
3752 if(![&](){return Helper.matchBitfieldExtractFromSExtInReg(*State.MIs[0], GIMatchData_info);}()) {
3753 return false;
3754 }
3755 // Apply Patterns
3756 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3757 return true;
3758 }
3759 case GICXXCustomAction_GICombiner89:{
3760 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3761 // Match Patterns
3762 if(![&](){return Helper.matchBitfieldExtractFromAnd(*State.MIs[0], GIMatchData_info);}()) {
3763 return false;
3764 }
3765 // Apply Patterns
3766 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3767 return true;
3768 }
3769 case GICXXCustomAction_GICombiner90:{
3770 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3771 // Match Patterns
3772 if(![&](){return Helper.matchBitfieldExtractFromShr(*State.MIs[0], GIMatchData_info);}()) {
3773 return false;
3774 }
3775 // Apply Patterns
3776 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3777 return true;
3778 }
3779 case GICXXCustomAction_GICombiner91:{
3780 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3781 // Match Patterns
3782 if(![&](){return Helper.matchBitfieldExtractFromShrAnd(*State.MIs[0], GIMatchData_info);}()) {
3783 return false;
3784 }
3785 // Apply Patterns
3786 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3787 return true;
3788 }
3789 case GICXXCustomAction_GICombiner92:{
3790 APInt GIMatchData_matchinfo;
3791 // Match Patterns
3792 if(![&](){return Helper.matchConstantFoldBinOp(*State.MIs[0], GIMatchData_matchinfo);}()) {
3793 return false;
3794 }
3795 // Apply Patterns
3796 Helper.replaceInstWithConstant(*State.MIs[0], GIMatchData_matchinfo);
3797 return true;
3798 }
3799 case GICXXCustomAction_GICombiner93:{
3800 ConstantFP* GIMatchData_matchinfo;
3801 // Match Patterns
3802 if(![&](){return Helper.matchConstantFoldFPBinOp(*State.MIs[0], GIMatchData_matchinfo);}()) {
3803 return false;
3804 }
3805 // Apply Patterns
3806 Helper.replaceInstWithFConstant(*State.MIs[0], GIMatchData_matchinfo);
3807 return true;
3808 }
3809 case GICXXCustomAction_GICombiner94:{
3810 ConstantFP* GIMatchData_matchinfo;
3811 // Match Patterns
3812 if(![&](){return Helper.matchConstantFoldFMA(*State.MIs[0], GIMatchData_matchinfo);}()) {
3813 return false;
3814 }
3815 // Apply Patterns
3816 Helper.replaceInstWithFConstant(*State.MIs[0], GIMatchData_matchinfo);
3817 return true;
3818 }
3819 case GICXXCustomAction_GICombiner95:{
3820 APInt GIMatchData_matchinfo;
3821 // Match Patterns
3822 if(![&](){return Helper.matchConstantFoldCastOp(*State.MIs[0], GIMatchData_matchinfo);}()) {
3823 return false;
3824 }
3825 // Apply Patterns
3826 Helper.replaceInstWithConstant(*State.MIs[0], GIMatchData_matchinfo);
3827 return true;
3828 }
3829 case GICXXCustomAction_GICombiner96:{
3830 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3831 // Match Patterns
3832 if(![&](){return Helper.matchConstantFoldUnaryIntOp(*State.MIs[0], GIMatchData_matchinfo);}()) {
3833 return false;
3834 }
3835 // Apply Patterns
3836 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
3837 return true;
3838 }
3839 case GICXXCustomAction_GICombiner97:{
3840 // Match Patterns
3841 if(![&](){return Helper.matchUMulHToLShr(*State.MIs[0]);}()) {
3842 return false;
3843 }
3844 // Apply Patterns
3845 Helper.applyUMulHToLShr(*State.MIs[0]);
3846 return true;
3847 }
3848 case GICXXCustomAction_GICombiner98:{
3849 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
3850 // Match Patterns
3851 if(![&](){return Helper.matchRedundantNegOperands(*State.MIs[0], GIMatchData_matchinfo);}()) {
3852 return false;
3853 }
3854 // Apply Patterns
3855 Helper.applyBuildFnNoErase(*State.MIs[0], GIMatchData_matchinfo);
3856 return true;
3857 }
3858 case GICXXCustomAction_GICombiner99:{
3859 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3860 // Match Patterns
3861 if(![&](){return Helper.matchAndOrDisjointMask(*State.MIs[0], GIMatchData_info);}()) {
3862 return false;
3863 }
3864 // Apply Patterns
3865 Helper.applyBuildFnNoErase(*State.MIs[0], GIMatchData_info);
3866 return true;
3867 }
3868 case GICXXCustomAction_GICombiner100:{
3869 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3870 // Match Patterns
3871 if(![&](){return Helper.matchCombineFAddFMulToFMadOrFMA(*State.MIs[0],
3872 GIMatchData_info);}()) {
3873 return false;
3874 }
3875 // Apply Patterns
3876 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3877 return true;
3878 }
3879 case GICXXCustomAction_GICombiner101:{
3880 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3881 // Match Patterns
3882 if(![&](){return Helper.matchCombineFAddFpExtFMulToFMadOrFMA(*State.MIs[0],
3883 GIMatchData_info);}()) {
3884 return false;
3885 }
3886 // Apply Patterns
3887 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3888 return true;
3889 }
3890 case GICXXCustomAction_GICombiner102:{
3891 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3892 // Match Patterns
3893 if(![&](){return Helper.matchCombineFAddFMAFMulToFMadOrFMA(*State.MIs[0],
3894 GIMatchData_info);}()) {
3895 return false;
3896 }
3897 // Apply Patterns
3898 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3899 return true;
3900 }
3901 case GICXXCustomAction_GICombiner103:{
3902 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3903 // Match Patterns
3904 if(![&](){return Helper.matchCombineFAddFpExtFMulToFMadOrFMAAggressive(
3905 *State.MIs[0], GIMatchData_info);}()) {
3906 return false;
3907 }
3908 // Apply Patterns
3909 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3910 return true;
3911 }
3912 case GICXXCustomAction_GICombiner104:{
3913 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3914 // Match Patterns
3915 if(![&](){return Helper.matchCombineFSubFMulToFMadOrFMA(*State.MIs[0],
3916 GIMatchData_info);}()) {
3917 return false;
3918 }
3919 // Apply Patterns
3920 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3921 return true;
3922 }
3923 case GICXXCustomAction_GICombiner105:{
3924 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3925 // Match Patterns
3926 if(![&](){return Helper.matchCombineFSubFNegFMulToFMadOrFMA(*State.MIs[0],
3927 GIMatchData_info);}()) {
3928 return false;
3929 }
3930 // Apply Patterns
3931 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3932 return true;
3933 }
3934 case GICXXCustomAction_GICombiner106:{
3935 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3936 // Match Patterns
3937 if(![&](){return Helper.matchCombineFSubFpExtFMulToFMadOrFMA(*State.MIs[0],
3938 GIMatchData_info);}()) {
3939 return false;
3940 }
3941 // Apply Patterns
3942 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3943 return true;
3944 }
3945 case GICXXCustomAction_GICombiner107:{
3946 std::function<void(MachineIRBuilder &)> GIMatchData_info;
3947 // Match Patterns
3948 if(![&](){return Helper.matchCombineFSubFpExtFNegFMulToFMadOrFMA(
3949 *State.MIs[0], GIMatchData_info);}()) {
3950 return false;
3951 }
3952 // Apply Patterns
3953 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
3954 return true;
3955 }
3956 case GICXXCustomAction_GICombiner108:{
3957 unsigned GIMatchData_select_op_no;
3958 // Match Patterns
3959 if(![&](){return Helper.matchFoldBinOpIntoSelect(*State.MIs[0], GIMatchData_select_op_no);}()) {
3960 return false;
3961 }
3962 // Apply Patterns
3963 Helper.applyFoldBinOpIntoSelect(*State.MIs[0], GIMatchData_select_op_no);
3964 return true;
3965 }
3966 case GICXXCustomAction_GICombiner109:{
3967 // Match Patterns
3968 if(![&](){return Helper.matchOperandIsKnownToBeAPowerOfTwo(State.MIs[0]->getOperand(2),
3969 /*OrNegative=*/true);}()) {
3970 return false;
3971 }
3972 // Apply Patterns
3973 Helper.applySimplifySRemByPow2(*State.MIs[0]);
3974 return true;
3975 }
3976 case GICXXCustomAction_GICombiner110:{
3977 // Match Patterns
3978 if(![&](){return Helper.matchUDivOrURemByConst(*State.MIs[0]);}()) {
3979 return false;
3980 }
3981 // Apply Patterns
3982 Helper.applyUDivOrURemByConst(*State.MIs[0]);
3983 return true;
3984 }
3985 case GICXXCustomAction_GICombiner111:{
3986 // Match Patterns
3987 if(![&](){return Helper.matchSDivOrSRemByConst(*State.MIs[0]);}()) {
3988 return false;
3989 }
3990 // Apply Patterns
3991 Helper.applySDivOrSRemByConst(*State.MIs[0]);
3992 return true;
3993 }
3994 case GICXXCustomAction_GICombiner112:{
3995 // Match Patterns
3996 if(![&](){return Helper.matchDivByPow2(*State.MIs[0], /*IsSigned=*/false);}()) {
3997 return false;
3998 }
3999 // Apply Patterns
4000 Helper.applyUDivByPow2(*State.MIs[0]);
4001 return true;
4002 }
4003 case GICXXCustomAction_GICombiner113:{
4004 // Match Patterns
4005 if(![&](){return Helper.matchDivByPow2(*State.MIs[0], /*IsSigned=*/true);}()) {
4006 return false;
4007 }
4008 // Apply Patterns
4009 Helper.applySDivByPow2(*State.MIs[0]);
4010 return true;
4011 }
4012 case GICXXCustomAction_GICombiner114:{
4013 SmallVector<MachineInstr *> GIMatchData_matchinfo;
4014 // Match Patterns
4015 if(![&](){return Helper.matchRepeatedFPDivisor(*State.MIs[0], GIMatchData_matchinfo);}()) {
4016 return false;
4017 }
4018 // Apply Patterns
4019 Helper.applyRepeatedFPDivisor(GIMatchData_matchinfo);
4020 return true;
4021 }
4022 case GICXXCustomAction_GICombiner115:{
4023 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4024 // Match Patterns
4025 if(![&](){return Helper.matchSubAddSameReg(*State.MIs[0], GIMatchData_matchinfo);}()) {
4026 return false;
4027 }
4028 // Apply Patterns
4029 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4030 return true;
4031 }
4032 case GICXXCustomAction_GICombiner116:{
4033 std::function<void(MachineIRBuilder &)> GIMatchData_info;
4034 // Match Patterns
4035 if(![&](){return Helper.matchSimplifySelectToMinMax(*State.MIs[0], GIMatchData_info);}()) {
4036 return false;
4037 }
4038 // Apply Patterns
4039 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
4040 return true;
4041 }
4042 case GICXXCustomAction_GICombiner117:{
4043 Register GIMatchData_matchinfo;
4044 // Match Patterns
4045 if(![&](){return Helper.matchFsubToFneg(*State.MIs[0], GIMatchData_matchinfo);}()) {
4046 return false;
4047 }
4048 // Apply Patterns
4049 Helper.applyFsubToFneg(*State.MIs[0], GIMatchData_matchinfo);
4050 return true;
4051 }
4052 case GICXXCustomAction_GICombiner118:{
4053 // Match Patterns
4054 if(![&](){return Helper.matchCommuteConstantToRHS(*State.MIs[0]);}()) {
4055 return false;
4056 }
4057 // Apply Patterns
4058 Helper.applyCommuteBinOpOperands(*State.MIs[0]);
4059 return true;
4060 }
4061 case GICXXCustomAction_GICombiner119:{
4062 // Match Patterns
4063 if(![&](){return Helper.matchCommuteFPConstantToRHS(*State.MIs[0]);}()) {
4064 return false;
4065 }
4066 // Apply Patterns
4067 Helper.applyCommuteBinOpOperands(*State.MIs[0]);
4068 return true;
4069 }
4070 case GICXXCustomAction_GICombiner120:{
4071 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4072 // Match Patterns
4073 if(![&](){return Helper.matchAnd(*State.MIs[0], GIMatchData_matchinfo);}()) {
4074 return false;
4075 }
4076 // Apply Patterns
4077 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4078 return true;
4079 }
4080 case GICXXCustomAction_GICombiner121:{
4081 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4082 // Match Patterns
4083 if(![&](){return Helper.matchOr(*State.MIs[0], GIMatchData_matchinfo);}()) {
4084 return false;
4085 }
4086 // Apply Patterns
4087 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4088 return true;
4089 }
4090 case GICXXCustomAction_GICombiner122:{
4091 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4092 // Match Patterns
4093 if(![&](){return Helper.matchSimplifyNegMinMax(*State.MIs[0], GIMatchData_matchinfo);}()) {
4094 return false;
4095 }
4096 // Apply Patterns
4097 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4098 return true;
4099 }
4100 case GICXXCustomAction_GICombiner123:{
4101 SmallVector<Register> GIMatchData_matchinfo;
4102 // Match Patterns
4103 if(![&](){return Helper.matchCombineConcatVectors(*State.MIs[0], GIMatchData_matchinfo);}()) {
4104 return false;
4105 }
4106 // Apply Patterns
4107 Helper.applyCombineConcatVectors(*State.MIs[0], GIMatchData_matchinfo);
4108 return true;
4109 }
4110 case GICXXCustomAction_GICombiner124:{
4111 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4112 // Match Patterns
4113 if(![&](){return Helper.matchSextOfTrunc(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
4114 return false;
4115 }
4116 // Apply Patterns
4117 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
4118 return true;
4119 }
4120 case GICXXCustomAction_GICombiner125:{
4121 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4122 // Match Patterns
4123 if(![&](){return Helper.matchZextOfTrunc(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
4124 return false;
4125 }
4126 // Apply Patterns
4127 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
4128 return true;
4129 }
4130 case GICXXCustomAction_GICombiner126:{
4131 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4132 // Match Patterns
4133 if(![&](){return Helper.matchNonNegZext(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
4134 return false;
4135 }
4136 // Apply Patterns
4137 Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
4138 return true;
4139 }
4140 case GICXXCustomAction_GICombiner127:{
4141 SmallVector<Register> GIMatchData_matchinfo;
4142 // Match Patterns
4143 if(![&](){return Helper.matchCombineShuffleConcat(*State.MIs[0], GIMatchData_matchinfo);}()) {
4144 return false;
4145 }
4146 // Apply Patterns
4147 Helper.applyCombineShuffleConcat(*State.MIs[0], GIMatchData_matchinfo);
4148 return true;
4149 }
4150 case GICXXCustomAction_GICombiner128:{
4151 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4152 // Match Patterns
4153 if(![&](){return Helper.matchShuffleUndefRHS(*State.MIs[0], GIMatchData_matchinfo);}()) {
4154 return false;
4155 }
4156 // Apply Patterns
4157 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4158 return true;
4159 }
4160 case GICXXCustomAction_GICombiner129:{
4161 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4162 // Match Patterns
4163 if(![&](){return Helper.matchShuffleDisjointMask(*State.MIs[0], GIMatchData_matchinfo);}()) {
4164 return false;
4165 }
4166 // Apply Patterns
4167 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4168 return true;
4169 }
4170 case GICXXCustomAction_GICombiner130:{
4171 Register GIMatchData_matchinfo;
4172 // Match Patterns
4173 if(![&](){return Helper.matchUseVectorTruncate(*State.MIs[0], GIMatchData_matchinfo);}()) {
4174 return false;
4175 }
4176 // Apply Patterns
4177 Helper.applyUseVectorTruncate(*State.MIs[0], GIMatchData_matchinfo);
4178 return true;
4179 }
4180 case GICXXCustomAction_GICombiner131:{
4181 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4182 // Match Patterns
4183 if(![&](){return Helper.matchUnmergeValuesAnyExtBuildVector(*State.MIs[0], GIMatchData_matchinfo);}()) {
4184 return false;
4185 }
4186 // Apply Patterns
4187 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4188 return true;
4189 }
4190 case GICXXCustomAction_GICombiner132:{
4191 SmallVector<Register> GIMatchData_info;
4192 // Match Patterns
4193 if(![&](){return Helper.matchCombineUnmergeMergeToPlainValues(*State.MIs[0], GIMatchData_info);}()) {
4194 return false;
4195 }
4196 // Apply Patterns
4197 Helper.applyCombineUnmergeMergeToPlainValues(*State.MIs[0], GIMatchData_info);
4198 return true;
4199 }
4200 case GICXXCustomAction_GICombiner133:{
4201 Register GIMatchData_src;
4202 // Match Patterns
4203 if(![&](){// Check if first source comes from G_UNMERGE_VALUES.
4204 Register FirstMergeSrc = getRemainingOperands(*State.MIs[0], 1)[0].getReg();
4205 MachineInstr *UnmergeMI = MRI.getVRegDef(FirstMergeSrc);
4206 if (!UnmergeMI || UnmergeMI->getOpcode() != TargetOpcode::G_UNMERGE_VALUES)
4207 return false;
4208
4209 // Check counts match.
4210 unsigned NumMergeSrcs = getRemainingOperands(*State.MIs[0], 1).size();
4211 unsigned NumUnmergeDefs = UnmergeMI->getNumDefs();
4212 if (NumMergeSrcs != NumUnmergeDefs)
4213 return false;
4214
4215 // Verify all merge sources match unmerge defs in order.
4216 for (unsigned I = 0; I < NumMergeSrcs; ++I) {
4217 Register MergeSrc = getRemainingOperands(*State.MIs[0], 1)[I].getReg();
4218 Register UnmergeDef = UnmergeMI->getOperand(I).getReg();
4219
4220 if (MergeSrc != UnmergeDef)
4221 return false;
4222
4223 if (!MRI.hasOneNonDBGUse(MergeSrc))
4224 return false;
4225 }
4226
4227 // Check size compatibility.
4228 GIMatchData_src = UnmergeMI->getOperand(NumUnmergeDefs).getReg();
4229 LLT SrcTy = MRI.getType(GIMatchData_src);
4230 LLT DstTy = MRI.getType(State.MIs[0]->getOperand(0).getReg());
4231 if (SrcTy.getSizeInBits() != DstTy.getSizeInBits())
4232 return false;
4233
4234 // Check bitcast legality.
4235 if (SrcTy != DstTy) {
4236 std::array<LLT, 2> Types = {{DstTy, SrcTy}};
4237 LegalityQuery Query(TargetOpcode::G_BITCAST, Types);
4238 if (!Helper.isLegalOrBeforeLegalizer(Query))
4239 return false;
4240 }
4241
4242 return true;}()) {
4243 return false;
4244 }
4245 // Apply Patterns
4246 LLT SrcTy = MRI.getType(GIMatchData_src);
4247 LLT DstTy = MRI.getType(State.MIs[0]->getOperand(0).getReg());
4248
4249 Helper.getBuilder().setInstrAndDebugLoc(*State.MIs[0]);
4250
4251 if (SrcTy == DstTy) {
4252 Helper.replaceRegWith(MRI, State.MIs[0]->getOperand(0).getReg(), GIMatchData_src);
4253 } else {
4254 Helper.getBuilder().buildBitcast(State.MIs[0]->getOperand(0).getReg(), GIMatchData_src);
4255 }
4256
4257 State.MIs[0]->eraseFromParent();
4258 return true;
4259 }
4260 case GICXXCustomAction_GICombiner134:{
4261 SmallVector<APInt, 8> GIMatchData_info;
4262 // Match Patterns
4263 if(![&](){return Helper.matchCombineUnmergeConstant(*State.MIs[0], GIMatchData_info);}()) {
4264 return false;
4265 }
4266 // Apply Patterns
4267 Helper.applyCombineUnmergeConstant(*State.MIs[0], GIMatchData_info);
4268 return true;
4269 }
4270 case GICXXCustomAction_GICombiner135:{
4271 std::function<void(MachineIRBuilder &)> GIMatchData_info;
4272 // Match Patterns
4273 if(![&](){return Helper.matchCombineUnmergeUndef(*State.MIs[0], GIMatchData_info);}()) {
4274 return false;
4275 }
4276 // Apply Patterns
4277 Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
4278 return true;
4279 }
4280 case GICXXCustomAction_GICombiner136:{
4281 // Match Patterns
4282 if(![&](){return Helper.matchCombineUnmergeWithDeadLanesToTrunc(*State.MIs[0]);}()) {
4283 return false;
4284 }
4285 // Apply Patterns
4286 Helper.applyCombineUnmergeWithDeadLanesToTrunc(*State.MIs[0]);
4287 return true;
4288 }
4289 case GICXXCustomAction_GICombiner137:{
4290 // Match Patterns
4291 if(![&](){return Helper.matchCombineUnmergeZExtToZExt(*State.MIs[0]);}()) {
4292 return false;
4293 }
4294 // Apply Patterns
4295 Helper.applyCombineUnmergeZExtToZExt(*State.MIs[0]);
4296 return true;
4297 }
4298 case GICXXCustomAction_GICombiner138:{
4299 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4300 // Match Patterns
4301 if(![&](){return Helper.matchMergeXAndUndef(*State.MIs[0], GIMatchData_matchinfo);}()) {
4302 return false;
4303 }
4304 // Apply Patterns
4305 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4306 return true;
4307 }
4308 case GICXXCustomAction_GICombiner139:{
4309 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4310 // Match Patterns
4311 if(![&](){return Helper.matchMergeXAndZero(*State.MIs[0], GIMatchData_matchinfo);}()) {
4312 return false;
4313 }
4314 // Apply Patterns
4315 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4316 return true;
4317 }
4318 case GICXXCustomAction_GICombiner140:{
4319 Register GIMatchData_unmergeSrc;
4320 // Match Patterns
4321 if(![&](){return Helper.matchCombineBuildUnmerge(*State.MIs[0], MRI, GIMatchData_unmergeSrc);}()) {
4322 return false;
4323 }
4324 // Apply Patterns
4325 Helper.applyCombineBuildUnmerge(*State.MIs[0], MRI, B, GIMatchData_unmergeSrc);
4326 return true;
4327 }
4328 case GICXXCustomAction_GICombiner141:{
4329 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4330 // Match Patterns
4331 if(![&](){return Helper.matchAddOverflow(*State.MIs[0], GIMatchData_matchinfo);}()) {
4332 return false;
4333 }
4334 // Apply Patterns
4335 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4336 return true;
4337 }
4338 case GICXXCustomAction_GICombiner142:{
4339 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4340 // Match Patterns
4341 if(![&](){return Helper.matchSuboCarryOut(*State.MIs[0], GIMatchData_matchinfo);}()) {
4342 return false;
4343 }
4344 // Apply Patterns
4345 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4346 return true;
4347 }
4348 case GICXXCustomAction_GICombiner143:{
4349 Register GIMatchData_matchinfo;
4350 // Match Patterns
4351 if(![&](){return Helper.matchTruncSSatS(*State.MIs[0], GIMatchData_matchinfo);}()) {
4352 return false;
4353 }
4354 // Apply Patterns
4355 Helper.applyTruncSSatS(*State.MIs[0], GIMatchData_matchinfo);
4356 return true;
4357 }
4358 case GICXXCustomAction_GICombiner144:{
4359 Register GIMatchData_matchinfo;
4360 // Match Patterns
4361 if(![&](){return Helper.matchTruncSSatU(*State.MIs[0], GIMatchData_matchinfo);}()) {
4362 return false;
4363 }
4364 // Apply Patterns
4365 Helper.applyTruncSSatU(*State.MIs[0], GIMatchData_matchinfo);
4366 return true;
4367 }
4368 case GICXXCustomAction_GICombiner145:{
4369 LshrOfTruncOfLshr GIMatchData_matchinfo;
4370 // Match Patterns
4371 if(![&](){return Helper.matchLshrOfTruncOfLshr(*State.MIs[0], GIMatchData_matchinfo, *State.MIs[2]);}()) {
4372 return false;
4373 }
4374 // Apply Patterns
4375 Helper.applyLshrOfTruncOfLshr(*State.MIs[0], GIMatchData_matchinfo);
4376 return true;
4377 }
4378 case GICXXCustomAction_GICombiner146:{
4379 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4380 // Match Patterns
4381 if(![&](){return Helper.matchCtls(*State.MIs[0], GIMatchData_matchinfo);}()) {
4382 return false;
4383 }
4384 // Apply Patterns
4385 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4386 return true;
4387 }
4388 case GICXXCustomAction_GICombiner147:{
4389 // Match Patterns
4390 if(![&](){return Helper.matchCountZeroToZeroPoison(*State.MIs[0]);}()) {
4391 return false;
4392 }
4393 // Apply Patterns
4394 Helper.applyCountZeroToZeroPoison(*State.MIs[0]);
4395 return true;
4396 }
4397 case GICXXCustomAction_GICombiner148:{
4398 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4399 // Match Patterns
4400 if(![&](){return Helper.matchBinopWithNeg(*State.MIs[0], GIMatchData_matchinfo);}()) {
4401 return false;
4402 }
4403 // Apply Patterns
4404 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4405 return true;
4406 }
4407 case GICXXCustomAction_GICombiner149:{
4408 std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
4409 // Match Patterns
4410 if(![&](){return Helper.matchCombineFmulWithSelectToFldexp(*State.MIs[0], *State.MIs[1], GIMatchData_matchinfo);}()) {
4411 return false;
4412 }
4413 // Apply Patterns
4414 Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
4415 return true;
4416 }
4417 case GICXXCustomAction_GICombiner150:{
4418 ClampI64ToI16MatchInfo GIMatchData_matchinfo;
4419 // Match Patterns
4420 if(![&](){return matchClampI64ToI16(*State.MIs[0], MRI, MF, GIMatchData_matchinfo);}()) {
4421 return false;
4422 }
4423 // Apply Patterns
4424 applyClampI64ToI16(*State.MIs[0], GIMatchData_matchinfo);
4425 return true;
4426 }
4427 case GICXXCustomAction_GICombiner151:{
4428 MachineInstr * GIMatchData_matchinfo;
4429 // Match Patterns
4430 if(![&](){return Helper.matchFoldableFneg(*State.MIs[0], GIMatchData_matchinfo);}()) {
4431 return false;
4432 }
4433 // Apply Patterns
4434 Helper.applyFoldableFneg(*State.MIs[0], GIMatchData_matchinfo);
4435 return true;
4436 }
4437 case GICXXCustomAction_GICombiner152:{
4438 // Match Patterns
4439 if(![&](){return Helper.matchFoldFAbsFptrunc(*State.MIs[0], *State.MIs[1]);}()) {
4440 return false;
4441 }
4442 // Apply Patterns
4443 Helper.applyFoldFAbsFptrunc(*State.MIs[0], *State.MIs[1]);
4444 return true;
4445 }
4446 case GICXXCustomAction_GICombiner153:{
4447 SmallVector<Register> GIMatchData_matchinfo;
4448 // Match Patterns
4449 if(![&](){return Helper.matchCombineShuffleVector(*State.MIs[0], GIMatchData_matchinfo);}()) {
4450 return false;
4451 }
4452 // Apply Patterns
4453 Helper.applyCombineShuffleVector(*State.MIs[0], GIMatchData_matchinfo);
4454 return true;
4455 }
4456 case GICXXCustomAction_GICombiner154:{
4457 // Apply Patterns
4458 Helper.applyCombineShuffleToBuildVector(*State.MIs[0]);
4459 return true;
4460 }
4461 }
4462 llvm_unreachable("Unknown Apply Action");
4463}
4464#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
4465#define GIMT_Encode2(Val) uint8_t(Val), uint8_t((Val) >> 8)
4466#define GIMT_Encode4(Val) uint8_t(Val), uint8_t((Val) >> 8), uint8_t((Val) >> 16), uint8_t((Val) >> 24)
4467#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)
4468#else
4469#define GIMT_Encode2(Val) uint8_t((Val) >> 8), uint8_t(Val)
4470#define GIMT_Encode4(Val) uint8_t((Val) >> 24), uint8_t((Val) >> 16), uint8_t((Val) >> 8), uint8_t(Val)
4471#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)
4472#endif
4473const uint8_t *AMDGPUPreLegalizerCombinerImpl::getMatchTable() const {
4474 constexpr static uint8_t MatchTable0[] = {
4475 /* 0 */ GIM_SwitchOpcode, /*MI*/0, /*[*/GIMT_Encode2(20), GIMT_Encode2(287), /*)*//*default:*//*Label 113*/ GIMT_Encode4(11917),
4476 /* 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),
4477 /* 150 */ /*TargetOpcode::G_ADD*//*Label 1*/ GIMT_Encode4(1090),
4478 /* 154 */ /*TargetOpcode::G_SUB*//*Label 2*/ GIMT_Encode4(2040),
4479 /* 158 */ /*TargetOpcode::G_MUL*//*Label 3*/ GIMT_Encode4(3052),
4480 /* 162 */ /*TargetOpcode::G_SDIV*//*Label 4*/ GIMT_Encode4(3289),
4481 /* 166 */ /*TargetOpcode::G_UDIV*//*Label 5*/ GIMT_Encode4(3391),
4482 /* 170 */ /*TargetOpcode::G_SREM*//*Label 6*/ GIMT_Encode4(3514),
4483 /* 174 */ /*TargetOpcode::G_UREM*//*Label 7*/ GIMT_Encode4(3610), GIMT_Encode4(0), GIMT_Encode4(0),
4484 /* 186 */ /*TargetOpcode::G_AND*//*Label 8*/ GIMT_Encode4(3727),
4485 /* 190 */ /*TargetOpcode::G_OR*//*Label 9*/ GIMT_Encode4(4299),
4486 /* 194 */ /*TargetOpcode::G_XOR*//*Label 10*/ GIMT_Encode4(5433), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4487 /* 226 */ /*TargetOpcode::G_PHI*//*Label 11*/ GIMT_Encode4(5675), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4488 /* 250 */ /*TargetOpcode::G_UNMERGE_VALUES*//*Label 12*/ GIMT_Encode4(5690), GIMT_Encode4(0),
4489 /* 258 */ /*TargetOpcode::G_MERGE_VALUES*//*Label 13*/ GIMT_Encode4(5757),
4490 /* 262 */ /*TargetOpcode::G_BUILD_VECTOR*//*Label 14*/ GIMT_Encode4(5834),
4491 /* 266 */ /*TargetOpcode::G_BUILD_VECTOR_TRUNC*//*Label 15*/ GIMT_Encode4(5899),
4492 /* 270 */ /*TargetOpcode::G_CONCAT_VECTORS*//*Label 16*/ GIMT_Encode4(5911),
4493 /* 274 */ /*TargetOpcode::G_PTRTOINT*//*Label 17*/ GIMT_Encode4(5926),
4494 /* 278 */ /*TargetOpcode::G_INTTOPTR*//*Label 18*/ GIMT_Encode4(5969),
4495 /* 282 */ /*TargetOpcode::G_BITCAST*//*Label 19*/ GIMT_Encode4(6024),
4496 /* 286 */ /*TargetOpcode::G_FREEZE*//*Label 20*/ GIMT_Encode4(6099), GIMT_Encode4(0), GIMT_Encode4(0),
4497 /* 298 */ /*TargetOpcode::G_INTRINSIC_TRUNC*//*Label 21*/ GIMT_Encode4(6163),
4498 /* 302 */ /*TargetOpcode::G_INTRINSIC_ROUND*//*Label 22*/ GIMT_Encode4(6185), GIMT_Encode4(0), GIMT_Encode4(0),
4499 /* 314 */ /*TargetOpcode::G_INTRINSIC_ROUNDEVEN*//*Label 23*/ GIMT_Encode4(6207), GIMT_Encode4(0), GIMT_Encode4(0),
4500 /* 326 */ /*TargetOpcode::G_LOAD*//*Label 24*/ GIMT_Encode4(6229),
4501 /* 330 */ /*TargetOpcode::G_SEXTLOAD*//*Label 25*/ GIMT_Encode4(6241),
4502 /* 334 */ /*TargetOpcode::G_ZEXTLOAD*//*Label 26*/ GIMT_Encode4(6253), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4503 /* 354 */ /*TargetOpcode::G_STORE*//*Label 27*/ GIMT_Encode4(6265), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4504 /* 502 */ /*TargetOpcode::G_ANYEXT*//*Label 28*/ GIMT_Encode4(6277),
4505 /* 506 */ /*TargetOpcode::G_TRUNC*//*Label 29*/ GIMT_Encode4(6405), GIMT_Encode4(0), GIMT_Encode4(0),
4506 /* 518 */ /*TargetOpcode::G_TRUNC_USAT_U*//*Label 30*/ GIMT_Encode4(7094), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4507 /* 538 */ /*TargetOpcode::G_SEXT*//*Label 31*/ GIMT_Encode4(7127),
4508 /* 542 */ /*TargetOpcode::G_SEXT_INREG*//*Label 32*/ GIMT_Encode4(7202),
4509 /* 546 */ /*TargetOpcode::G_ZEXT*//*Label 33*/ GIMT_Encode4(7424),
4510 /* 550 */ /*TargetOpcode::G_SHL*//*Label 34*/ GIMT_Encode4(7554),
4511 /* 554 */ /*TargetOpcode::G_LSHR*//*Label 35*/ GIMT_Encode4(7917),
4512 /* 558 */ /*TargetOpcode::G_ASHR*//*Label 36*/ GIMT_Encode4(8274),
4513 /* 562 */ /*TargetOpcode::G_FSHL*//*Label 37*/ GIMT_Encode4(8613),
4514 /* 566 */ /*TargetOpcode::G_FSHR*//*Label 38*/ GIMT_Encode4(8656),
4515 /* 570 */ /*TargetOpcode::G_ROTR*//*Label 39*/ GIMT_Encode4(8699),
4516 /* 574 */ /*TargetOpcode::G_ROTL*//*Label 40*/ GIMT_Encode4(8723),
4517 /* 578 */ /*TargetOpcode::G_ICMP*//*Label 41*/ GIMT_Encode4(8747),
4518 /* 582 */ /*TargetOpcode::G_FCMP*//*Label 42*/ GIMT_Encode4(8792), GIMT_Encode4(0), GIMT_Encode4(0),
4519 /* 594 */ /*TargetOpcode::G_SELECT*//*Label 43*/ GIMT_Encode4(8804),
4520 /* 598 */ /*TargetOpcode::G_UADDO*//*Label 44*/ GIMT_Encode4(9100),
4521 /* 602 */ /*TargetOpcode::G_UADDE*//*Label 45*/ GIMT_Encode4(9123),
4522 /* 606 */ /*TargetOpcode::G_USUBO*//*Label 46*/ GIMT_Encode4(9135),
4523 /* 610 */ /*TargetOpcode::G_USUBE*//*Label 47*/ GIMT_Encode4(9147),
4524 /* 614 */ /*TargetOpcode::G_SADDO*//*Label 48*/ GIMT_Encode4(9159),
4525 /* 618 */ /*TargetOpcode::G_SADDE*//*Label 49*/ GIMT_Encode4(9182),
4526 /* 622 */ /*TargetOpcode::G_SSUBO*//*Label 50*/ GIMT_Encode4(9194),
4527 /* 626 */ /*TargetOpcode::G_SSUBE*//*Label 51*/ GIMT_Encode4(9206),
4528 /* 630 */ /*TargetOpcode::G_UMULO*//*Label 52*/ GIMT_Encode4(9218),
4529 /* 634 */ /*TargetOpcode::G_SMULO*//*Label 53*/ GIMT_Encode4(9252),
4530 /* 638 */ /*TargetOpcode::G_UMULH*//*Label 54*/ GIMT_Encode4(9286),
4531 /* 642 */ /*TargetOpcode::G_SMULH*//*Label 55*/ GIMT_Encode4(9309),
4532 /* 646 */ /*TargetOpcode::G_UADDSAT*//*Label 56*/ GIMT_Encode4(9321),
4533 /* 650 */ /*TargetOpcode::G_SADDSAT*//*Label 57*/ GIMT_Encode4(9333), GIMT_Encode4(0), GIMT_Encode4(0),
4534 /* 662 */ /*TargetOpcode::G_USHLSAT*//*Label 58*/ GIMT_Encode4(9345),
4535 /* 666 */ /*TargetOpcode::G_SSHLSAT*//*Label 59*/ GIMT_Encode4(9368),
4536 /* 670 */ /*TargetOpcode::G_SMULFIX*//*Label 60*/ GIMT_Encode4(9391),
4537 /* 674 */ /*TargetOpcode::G_UMULFIX*//*Label 61*/ GIMT_Encode4(9403),
4538 /* 678 */ /*TargetOpcode::G_SMULFIXSAT*//*Label 62*/ GIMT_Encode4(9415),
4539 /* 682 */ /*TargetOpcode::G_UMULFIXSAT*//*Label 63*/ GIMT_Encode4(9427), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4540 /* 702 */ /*TargetOpcode::G_FADD*//*Label 64*/ GIMT_Encode4(9439),
4541 /* 706 */ /*TargetOpcode::G_FSUB*//*Label 65*/ GIMT_Encode4(9580),
4542 /* 710 */ /*TargetOpcode::G_FMUL*//*Label 66*/ GIMT_Encode4(9669),
4543 /* 714 */ /*TargetOpcode::G_FMA*//*Label 67*/ GIMT_Encode4(9810),
4544 /* 718 */ /*TargetOpcode::G_FMAD*//*Label 68*/ GIMT_Encode4(9867),
4545 /* 722 */ /*TargetOpcode::G_FDIV*//*Label 69*/ GIMT_Encode4(9924),
4546 /* 726 */ /*TargetOpcode::G_FREM*//*Label 70*/ GIMT_Encode4(10001), GIMT_Encode4(0), GIMT_Encode4(0),
4547 /* 738 */ /*TargetOpcode::G_FPOWI*//*Label 71*/ GIMT_Encode4(10024), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4548 /* 758 */ /*TargetOpcode::G_FLOG2*//*Label 72*/ GIMT_Encode4(10046), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4549 /* 774 */ /*TargetOpcode::G_FNEG*//*Label 73*/ GIMT_Encode4(10068),
4550 /* 778 */ /*TargetOpcode::G_FPEXT*//*Label 74*/ GIMT_Encode4(10130),
4551 /* 782 */ /*TargetOpcode::G_FPTRUNC*//*Label 75*/ GIMT_Encode4(10152),
4552 /* 786 */ /*TargetOpcode::G_FPTOSI*//*Label 76*/ GIMT_Encode4(10195),
4553 /* 790 */ /*TargetOpcode::G_FPTOUI*//*Label 77*/ GIMT_Encode4(10217),
4554 /* 794 */ /*TargetOpcode::G_SITOFP*//*Label 78*/ GIMT_Encode4(10239),
4555 /* 798 */ /*TargetOpcode::G_UITOFP*//*Label 79*/ GIMT_Encode4(10276), GIMT_Encode4(0), GIMT_Encode4(0),
4556 /* 810 */ /*TargetOpcode::G_FABS*//*Label 80*/ GIMT_Encode4(10313),
4557 /* 814 */ /*TargetOpcode::G_FCOPYSIGN*//*Label 81*/ GIMT_Encode4(10413), GIMT_Encode4(0),
4558 /* 822 */ /*TargetOpcode::G_FCANONICALIZE*//*Label 82*/ GIMT_Encode4(10425),
4559 /* 826 */ /*TargetOpcode::G_FMINNUM*//*Label 83*/ GIMT_Encode4(10455),
4560 /* 830 */ /*TargetOpcode::G_FMAXNUM*//*Label 84*/ GIMT_Encode4(10500),
4561 /* 834 */ /*TargetOpcode::G_FMINNUM_IEEE*//*Label 85*/ GIMT_Encode4(10545),
4562 /* 838 */ /*TargetOpcode::G_FMAXNUM_IEEE*//*Label 86*/ GIMT_Encode4(10557),
4563 /* 842 */ /*TargetOpcode::G_FMINIMUM*//*Label 87*/ GIMT_Encode4(10569),
4564 /* 846 */ /*TargetOpcode::G_FMAXIMUM*//*Label 88*/ GIMT_Encode4(10614),
4565 /* 850 */ /*TargetOpcode::G_FMINIMUMNUM*//*Label 89*/ GIMT_Encode4(10659),
4566 /* 854 */ /*TargetOpcode::G_FMAXIMUMNUM*//*Label 90*/ GIMT_Encode4(10671), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4567 /* 890 */ /*TargetOpcode::G_PTR_ADD*//*Label 91*/ GIMT_Encode4(10683), GIMT_Encode4(0),
4568 /* 898 */ /*TargetOpcode::G_SMIN*//*Label 92*/ GIMT_Encode4(10808),
4569 /* 902 */ /*TargetOpcode::G_SMAX*//*Label 93*/ GIMT_Encode4(10842),
4570 /* 906 */ /*TargetOpcode::G_UMIN*//*Label 94*/ GIMT_Encode4(10876),
4571 /* 910 */ /*TargetOpcode::G_UMAX*//*Label 95*/ GIMT_Encode4(10910),
4572 /* 914 */ /*TargetOpcode::G_ABS*//*Label 96*/ GIMT_Encode4(10944), GIMT_Encode4(0), GIMT_Encode4(0),
4573 /* 926 */ /*TargetOpcode::G_BR*//*Label 97*/ GIMT_Encode4(10977), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4574 /* 946 */ /*TargetOpcode::G_INSERT_VECTOR_ELT*//*Label 98*/ GIMT_Encode4(10989),
4575 /* 950 */ /*TargetOpcode::G_EXTRACT_VECTOR_ELT*//*Label 99*/ GIMT_Encode4(11119),
4576 /* 954 */ /*TargetOpcode::G_SHUFFLE_VECTOR*//*Label 100*/ GIMT_Encode4(11496), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4577 /* 970 */ /*TargetOpcode::G_CTTZ*//*Label 101*/ GIMT_Encode4(11591),
4578 /* 974 */ /*TargetOpcode::G_CTTZ_ZERO_POISON*//*Label 102*/ GIMT_Encode4(11614),
4579 /* 978 */ /*TargetOpcode::G_CTLZ*//*Label 103*/ GIMT_Encode4(11626),
4580 /* 982 */ /*TargetOpcode::G_CTLZ_ZERO_POISON*//*Label 104*/ GIMT_Encode4(11660), GIMT_Encode4(0),
4581 /* 990 */ /*TargetOpcode::G_CTPOP*//*Label 105*/ GIMT_Encode4(11683),
4582 /* 994 */ /*TargetOpcode::G_BSWAP*//*Label 106*/ GIMT_Encode4(11695),
4583 /* 998 */ /*TargetOpcode::G_BITREVERSE*//*Label 107*/ GIMT_Encode4(11707), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4584 /* 1014 */ /*TargetOpcode::G_FCEIL*//*Label 108*/ GIMT_Encode4(11807), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
4585 /* 1062 */ /*TargetOpcode::G_FSQRT*//*Label 109*/ GIMT_Encode4(11829),
4586 /* 1066 */ /*TargetOpcode::G_FFLOOR*//*Label 110*/ GIMT_Encode4(11851),
4587 /* 1070 */ /*TargetOpcode::G_FRINT*//*Label 111*/ GIMT_Encode4(11873),
4588 /* 1074 */ /*TargetOpcode::G_FNEARBYINT*//*Label 112*/ GIMT_Encode4(11895),
4589 /* 1078 */ // Label 0: @1078
4590 /* 1078 */ GIM_Try, /*On fail goto*//*Label 114*/ GIMT_Encode4(1089), // Rule ID 19 //
4591 /* 1083 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule19Enabled),
4592 /* 1086 */ // MIs[0] d
4593 /* 1086 */ // No operand predicates
4594 /* 1086 */ // MIs[0] s
4595 /* 1086 */ // No operand predicates
4596 /* 1086 */ // Combiner Rule #19: copy_prop
4597 /* 1086 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner5),
4598 /* 1089 */ // Label 114: @1089
4599 /* 1089 */ GIM_Reject,
4600 /* 1090 */ // Label 1: @1090
4601 /* 1090 */ GIM_Try, /*On fail goto*//*Label 115*/ GIMT_Encode4(1101), // Rule ID 272 //
4602 /* 1095 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
4603 /* 1098 */ // Combiner Rule #194: constant_fold_binop; wip_match_opcode 'G_ADD'
4604 /* 1098 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner92),
4605 /* 1101 */ // Label 115: @1101
4606 /* 1101 */ GIM_Try, /*On fail goto*//*Label 116*/ GIMT_Encode4(1112), // Rule ID 332 //
4607 /* 1106 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule215Enabled),
4608 /* 1109 */ // Combiner Rule #215: fold_binop_into_select; wip_match_opcode 'G_ADD'
4609 /* 1109 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner108),
4610 /* 1112 */ // Label 116: @1112
4611 /* 1112 */ GIM_Try, /*On fail goto*//*Label 117*/ GIMT_Encode4(1123), // Rule ID 369 //
4612 /* 1117 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule227Enabled),
4613 /* 1120 */ // Combiner Rule #227: commute_int_constant_to_rhs; wip_match_opcode 'G_ADD'
4614 /* 1120 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner118),
4615 /* 1123 */ // Label 117: @1123
4616 /* 1123 */ GIM_Try, /*On fail goto*//*Label 118*/ GIMT_Encode4(1211), // Rule ID 439 //
4617 /* 1128 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule267Enabled),
4618 /* 1131 */ // MIs[0] dst
4619 /* 1131 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
4620 /* 1135 */ // MIs[0] __add_shift_match_0.shl_neg
4621 /* 1135 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4622 /* 1139 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SHL),
4623 /* 1143 */ // MIs[1] __add_shift_match_0.neg_y
4624 /* 1143 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
4625 /* 1147 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB),
4626 /* 1151 */ // MIs[2] __add_shift_match_0.zero
4627 /* 1151 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/2, /*OpIdx*/1, // MIs[3]
4628 /* 1155 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
4629 /* 1159 */ // MIs[3] Operand 1
4630 /* 1159 */ GIM_CheckLiteralInt, /*MI*/3, /*Op*/1, GIMT_Encode8(0),
4631 /* 1170 */ // MIs[2] y
4632 /* 1170 */ // No operand predicates
4633 /* 1170 */ // MIs[1] n
4634 /* 1170 */ // No operand predicates
4635 /* 1170 */ // MIs[0] x
4636 /* 1170 */ // No operand predicates
4637 /* 1170 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner26),
4638 /* 1174 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
4639 /* 1176 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
4640 /* 1179 */ // Combiner Rule #267: add_shift @ [__add_shift_match_0[1]]
4641 /* 1179 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SHL),
4642 /* 1182 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
4643 /* 1187 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/2, // y
4644 /* 1191 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // n
4645 /* 1195 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
4646 /* 1199 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
4647 /* 1203 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/2, // x
4648 /* 1207 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
4649 /* 1210 */ GIR_EraseRootFromParent_Done,
4650 /* 1211 */ // Label 118: @1211
4651 /* 1211 */ GIM_Try, /*On fail goto*//*Label 119*/ GIMT_Encode4(1299), // Rule ID 438 //
4652 /* 1216 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule267Enabled),
4653 /* 1219 */ // MIs[0] dst
4654 /* 1219 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
4655 /* 1223 */ // MIs[0] x
4656 /* 1223 */ // No operand predicates
4657 /* 1223 */ // MIs[0] __add_shift_match_0.shl_neg
4658 /* 1223 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
4659 /* 1227 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SHL),
4660 /* 1231 */ // MIs[1] __add_shift_match_0.neg_y
4661 /* 1231 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
4662 /* 1235 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB),
4663 /* 1239 */ // MIs[2] __add_shift_match_0.zero
4664 /* 1239 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/2, /*OpIdx*/1, // MIs[3]
4665 /* 1243 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
4666 /* 1247 */ // MIs[3] Operand 1
4667 /* 1247 */ GIM_CheckLiteralInt, /*MI*/3, /*Op*/1, GIMT_Encode8(0),
4668 /* 1258 */ // MIs[2] y
4669 /* 1258 */ // No operand predicates
4670 /* 1258 */ // MIs[1] n
4671 /* 1258 */ // No operand predicates
4672 /* 1258 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner25),
4673 /* 1262 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
4674 /* 1264 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
4675 /* 1267 */ // Combiner Rule #267: add_shift @ [__add_shift_match_0[0]]
4676 /* 1267 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SHL),
4677 /* 1270 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
4678 /* 1275 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/2, // y
4679 /* 1279 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // n
4680 /* 1283 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
4681 /* 1287 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
4682 /* 1291 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/1, // x
4683 /* 1295 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
4684 /* 1298 */ GIR_EraseRootFromParent_Done,
4685 /* 1299 */ // Label 119: @1299
4686 /* 1299 */ GIM_Try, /*On fail goto*//*Label 120*/ GIMT_Encode4(1333), // Rule ID 2 //
4687 /* 1304 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule2Enabled),
4688 /* 1307 */ // MIs[0] root
4689 /* 1307 */ // No operand predicates
4690 /* 1307 */ // MIs[0] sub
4691 /* 1307 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4692 /* 1311 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
4693 /* 1315 */ // MIs[1] Operand 1
4694 /* 1315 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/1, 0,
4695 /* 1319 */ // MIs[1] A
4696 /* 1319 */ // No operand predicates
4697 /* 1319 */ // MIs[0] B
4698 /* 1319 */ // No operand predicates
4699 /* 1319 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4700 /* 1321 */ // Combiner Rule #2: ZeroMinusAPlusB
4701 /* 1321 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
4702 /* 1324 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
4703 /* 1326 */ GIR_RootToRootCopy, /*OpIdx*/2, // B
4704 /* 1328 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // A
4705 /* 1332 */ GIR_EraseRootFromParent_Done,
4706 /* 1333 */ // Label 120: @1333
4707 /* 1333 */ GIM_Try, /*On fail goto*//*Label 121*/ GIMT_Encode4(1382), // Rule ID 160 //
4708 /* 1338 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule112Enabled),
4709 /* 1341 */ // MIs[0] dst
4710 /* 1341 */ // No operand predicates
4711 /* 1341 */ // MIs[0] __simplify_add_to_sub_match_0.neg
4712 /* 1341 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4713 /* 1345 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
4714 /* 1349 */ // MIs[1] __simplify_add_to_sub_match_0.zero
4715 /* 1349 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
4716 /* 1353 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
4717 /* 1357 */ // MIs[2] Operand 1
4718 /* 1357 */ GIM_CheckLiteralInt, /*MI*/2, /*Op*/1, GIMT_Encode8(0),
4719 /* 1368 */ // MIs[1] newrhs
4720 /* 1368 */ // No operand predicates
4721 /* 1368 */ // MIs[0] newlhs
4722 /* 1368 */ // No operand predicates
4723 /* 1368 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
4724 /* 1370 */ // Combiner Rule #112: simplify_add_to_sub @ [__simplify_add_to_sub_match_0[0]]
4725 /* 1370 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
4726 /* 1373 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
4727 /* 1375 */ GIR_RootToRootCopy, /*OpIdx*/2, // newlhs
4728 /* 1377 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // newrhs
4729 /* 1381 */ GIR_EraseRootFromParent_Done,
4730 /* 1382 */ // Label 121: @1382
4731 /* 1382 */ GIM_Try, /*On fail goto*//*Label 122*/ GIMT_Encode4(1419), // Rule ID 18 //
4732 /* 1387 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule18Enabled),
4733 /* 1390 */ // MIs[0] root
4734 /* 1390 */ // No operand predicates
4735 /* 1390 */ // MIs[0] sub
4736 /* 1390 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4737 /* 1394 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
4738 /* 1398 */ // MIs[1] A
4739 /* 1398 */ // No operand predicates
4740 /* 1398 */ // MIs[1] c1
4741 /* 1398 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
4742 /* 1402 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
4743 /* 1406 */ // MIs[2] imm1
4744 /* 1406 */ // No operand predicates
4745 /* 1406 */ // MIs[0] c2
4746 /* 1406 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/0, /*OpIdx*/2, // MIs[3]
4747 /* 1410 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
4748 /* 1414 */ // MIs[3] imm2
4749 /* 1414 */ // No operand predicates
4750 /* 1414 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
4751 /* 1416 */ // Combiner Rule #18: AMinusC1PlusC2
4752 /* 1416 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner4),
4753 /* 1419 */ // Label 122: @1419
4754 /* 1419 */ GIM_Try, /*On fail goto*//*Label 123*/ GIMT_Encode4(1453), // Rule ID 5 //
4755 /* 1424 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule5Enabled),
4756 /* 1427 */ // MIs[0] root
4757 /* 1427 */ // No operand predicates
4758 /* 1427 */ // MIs[0] sub
4759 /* 1427 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4760 /* 1431 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
4761 /* 1435 */ // MIs[1] B
4762 /* 1435 */ // No operand predicates
4763 /* 1435 */ // MIs[1] A
4764 /* 1435 */ // No operand predicates
4765 /* 1435 */ // MIs[0] A
4766 /* 1435 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/2,
4767 /* 1440 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
4768 /* 1445 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4769 /* 1447 */ // Combiner Rule #5: BMinusAPlusA
4770 /* 1447 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
4771 /* 1452 */ GIR_EraseRootFromParent_Done,
4772 /* 1453 */ // Label 123: @1453
4773 /* 1453 */ GIM_Try, /*On fail goto*//*Label 124*/ GIMT_Encode4(1487), // Rule ID 148 //
4774 /* 1458 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule101Enabled),
4775 /* 1461 */ // MIs[0] dst
4776 /* 1461 */ // No operand predicates
4777 /* 1461 */ // MIs[0] __add_sub_reg_match_0.tmp
4778 /* 1461 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4779 /* 1465 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
4780 /* 1469 */ // MIs[1] src
4781 /* 1469 */ // No operand predicates
4782 /* 1469 */ // MIs[1] __add_sub_reg_match_0.x
4783 /* 1469 */ // No operand predicates
4784 /* 1469 */ // MIs[0] __add_sub_reg_match_0.x
4785 /* 1469 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/2,
4786 /* 1474 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
4787 /* 1479 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4788 /* 1481 */ // Combiner Rule #101: add_sub_reg @ [__add_sub_reg_match_0[1]]
4789 /* 1481 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
4790 /* 1486 */ GIR_EraseRootFromParent_Done,
4791 /* 1487 */ // Label 124: @1487
4792 /* 1487 */ GIM_Try, /*On fail goto*//*Label 125*/ GIMT_Encode4(1532), // Rule ID 7 //
4793 /* 1492 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule7Enabled),
4794 /* 1495 */ // MIs[0] root
4795 /* 1495 */ // No operand predicates
4796 /* 1495 */ // MIs[0] sub1
4797 /* 1495 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4798 /* 1499 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
4799 /* 1503 */ // MIs[1] A
4800 /* 1503 */ // No operand predicates
4801 /* 1503 */ // MIs[1] B
4802 /* 1503 */ // No operand predicates
4803 /* 1503 */ // MIs[0] sub2
4804 /* 1503 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
4805 /* 1507 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB),
4806 /* 1511 */ // MIs[2] B
4807 /* 1511 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/2,
4808 /* 1516 */ // MIs[2] C
4809 /* 1516 */ // No operand predicates
4810 /* 1516 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
4811 /* 1518 */ // Combiner Rule #7: AMinusBPlusBMinusC
4812 /* 1518 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
4813 /* 1521 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
4814 /* 1523 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // A
4815 /* 1527 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/2, // C
4816 /* 1531 */ GIR_EraseRootFromParent_Done,
4817 /* 1532 */ // Label 125: @1532
4818 /* 1532 */ GIM_Try, /*On fail goto*//*Label 126*/ GIMT_Encode4(1577), // Rule ID 6 //
4819 /* 1537 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule6Enabled),
4820 /* 1540 */ // MIs[0] root
4821 /* 1540 */ // No operand predicates
4822 /* 1540 */ // MIs[0] sub1
4823 /* 1540 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4824 /* 1544 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
4825 /* 1548 */ // MIs[1] A
4826 /* 1548 */ // No operand predicates
4827 /* 1548 */ // MIs[1] B
4828 /* 1548 */ // No operand predicates
4829 /* 1548 */ // MIs[0] sub2
4830 /* 1548 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
4831 /* 1552 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB),
4832 /* 1556 */ // MIs[2] C
4833 /* 1556 */ // No operand predicates
4834 /* 1556 */ // MIs[2] A
4835 /* 1556 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/1,
4836 /* 1561 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
4837 /* 1563 */ // Combiner Rule #6: AMinusBPlusCMinusA
4838 /* 1563 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
4839 /* 1566 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
4840 /* 1568 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // C
4841 /* 1572 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // B
4842 /* 1576 */ GIR_EraseRootFromParent_Done,
4843 /* 1577 */ // Label 126: @1577
4844 /* 1577 */ GIM_Try, /*On fail goto*//*Label 127*/ GIMT_Encode4(1632), // Rule ID 22 //
4845 /* 1582 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule22Enabled),
4846 /* 1585 */ // MIs[0] dst
4847 /* 1585 */ // No operand predicates
4848 /* 1585 */ // MIs[0] __add_p2i_to_ptradd_match_0.x
4849 /* 1585 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4850 /* 1589 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_PTRTOINT),
4851 /* 1593 */ // MIs[1] ptr
4852 /* 1593 */ GIM_RecordRegType, /*MI*/1, /*Op*/1, /*TempTypeIdx*/255,
4853 /* 1597 */ // MIs[0] other
4854 /* 1597 */ // No operand predicates
4855 /* 1597 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner2),
4856 /* 1601 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4857 /* 1603 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
4858 /* 1606 */ // Combiner Rule #22: add_p2i_to_ptradd @ [__add_p2i_to_ptradd_match_0[0]]
4859 /* 1606 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_PTR_ADD),
4860 /* 1609 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
4861 /* 1614 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // ptr
4862 /* 1618 */ GIR_RootToRootCopy, /*OpIdx*/2, // other
4863 /* 1620 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_PTRTOINT),
4864 /* 1624 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
4865 /* 1628 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
4866 /* 1631 */ GIR_EraseRootFromParent_Done,
4867 /* 1632 */ // Label 127: @1632
4868 /* 1632 */ GIM_Try, /*On fail goto*//*Label 128*/ GIMT_Encode4(1667), // Rule ID 46 //
4869 /* 1637 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule42Enabled),
4870 /* 1640 */ GIM_MIFlags, /*MI*/0, GIMT_Encode4(MachineInstr::NoSWrap),
4871 /* 1646 */ // MIs[0] root
4872 /* 1646 */ // No operand predicates
4873 /* 1646 */ // MIs[0] left
4874 /* 1646 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4875 /* 1650 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_VSCALE),
4876 /* 1654 */ // MIs[1] imm1
4877 /* 1654 */ // No operand predicates
4878 /* 1654 */ // MIs[0] right
4879 /* 1654 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
4880 /* 1658 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_VSCALE),
4881 /* 1662 */ // MIs[2] imm2
4882 /* 1662 */ // No operand predicates
4883 /* 1662 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
4884 /* 1664 */ // Combiner Rule #42: add_of_vscale
4885 /* 1664 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner14),
4886 /* 1667 */ // Label 128: @1667
4887 /* 1667 */ GIM_Try, /*On fail goto*//*Label 129*/ GIMT_Encode4(1688), // Rule ID 104 //
4888 /* 1672 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule83Enabled),
4889 /* 1675 */ // MIs[0] dst
4890 /* 1675 */ // No operand predicates
4891 /* 1675 */ // MIs[0] __propagate_undef_any_op_match_0.x
4892 /* 1675 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
4893 /* 1679 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
4894 /* 1683 */ // MIs[0] __propagate_undef_any_op_match_0.y
4895 /* 1683 */ // No operand predicates
4896 /* 1683 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4897 /* 1685 */ // Combiner Rule #83: propagate_undef_any_op @ [__propagate_undef_any_op_match_0[0]]
4898 /* 1685 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner35),
4899 /* 1688 */ // Label 129: @1688
4900 /* 1688 */ GIM_Try, /*On fail goto*//*Label 130*/ GIMT_Encode4(1722), // Rule ID 3 //
4901 /* 1693 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule3Enabled),
4902 /* 1696 */ // MIs[0] root
4903 /* 1696 */ // No operand predicates
4904 /* 1696 */ // MIs[0] A
4905 /* 1696 */ // No operand predicates
4906 /* 1696 */ // MIs[0] sub
4907 /* 1696 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
4908 /* 1700 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
4909 /* 1704 */ // MIs[1] Operand 1
4910 /* 1704 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/1, 0,
4911 /* 1708 */ // MIs[1] B
4912 /* 1708 */ // No operand predicates
4913 /* 1708 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4914 /* 1710 */ // Combiner Rule #3: APlusZeroMinusB
4915 /* 1710 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
4916 /* 1713 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
4917 /* 1715 */ GIR_RootToRootCopy, /*OpIdx*/1, // A
4918 /* 1717 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // B
4919 /* 1721 */ GIR_EraseRootFromParent_Done,
4920 /* 1722 */ // Label 130: @1722
4921 /* 1722 */ GIM_Try, /*On fail goto*//*Label 131*/ GIMT_Encode4(1771), // Rule ID 161 //
4922 /* 1727 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule112Enabled),
4923 /* 1730 */ // MIs[0] dst
4924 /* 1730 */ // No operand predicates
4925 /* 1730 */ // MIs[0] newlhs
4926 /* 1730 */ // No operand predicates
4927 /* 1730 */ // MIs[0] __simplify_add_to_sub_match_0.neg
4928 /* 1730 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
4929 /* 1734 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
4930 /* 1738 */ // MIs[1] __simplify_add_to_sub_match_0.zero
4931 /* 1738 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
4932 /* 1742 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
4933 /* 1746 */ // MIs[2] Operand 1
4934 /* 1746 */ GIM_CheckLiteralInt, /*MI*/2, /*Op*/1, GIMT_Encode8(0),
4935 /* 1757 */ // MIs[1] newrhs
4936 /* 1757 */ // No operand predicates
4937 /* 1757 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
4938 /* 1759 */ // Combiner Rule #112: simplify_add_to_sub @ [__simplify_add_to_sub_match_0[1]]
4939 /* 1759 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
4940 /* 1762 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
4941 /* 1764 */ GIR_RootToRootCopy, /*OpIdx*/1, // newlhs
4942 /* 1766 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // newrhs
4943 /* 1770 */ GIR_EraseRootFromParent_Done,
4944 /* 1771 */ // Label 131: @1771
4945 /* 1771 */ GIM_Try, /*On fail goto*//*Label 132*/ GIMT_Encode4(1805), // Rule ID 4 //
4946 /* 1776 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule4Enabled),
4947 /* 1779 */ // MIs[0] root
4948 /* 1779 */ // No operand predicates
4949 /* 1779 */ // MIs[0] A
4950 /* 1779 */ // No operand predicates
4951 /* 1779 */ // MIs[0] sub
4952 /* 1779 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
4953 /* 1783 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
4954 /* 1787 */ // MIs[1] B
4955 /* 1787 */ // No operand predicates
4956 /* 1787 */ // MIs[1] A
4957 /* 1787 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/1, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
4958 /* 1792 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
4959 /* 1797 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4960 /* 1799 */ // Combiner Rule #4: APlusBMinusB
4961 /* 1799 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
4962 /* 1804 */ GIR_EraseRootFromParent_Done,
4963 /* 1805 */ // Label 132: @1805
4964 /* 1805 */ GIM_Try, /*On fail goto*//*Label 133*/ GIMT_Encode4(1839), // Rule ID 147 //
4965 /* 1810 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule101Enabled),
4966 /* 1813 */ // MIs[0] dst
4967 /* 1813 */ // No operand predicates
4968 /* 1813 */ // MIs[0] __add_sub_reg_match_0.x
4969 /* 1813 */ // No operand predicates
4970 /* 1813 */ // MIs[0] __add_sub_reg_match_0.tmp
4971 /* 1813 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
4972 /* 1817 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
4973 /* 1821 */ // MIs[1] src
4974 /* 1821 */ // No operand predicates
4975 /* 1821 */ // MIs[1] __add_sub_reg_match_0.x
4976 /* 1821 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/1, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
4977 /* 1826 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
4978 /* 1831 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
4979 /* 1833 */ // Combiner Rule #101: add_sub_reg @ [__add_sub_reg_match_0[0]]
4980 /* 1833 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
4981 /* 1838 */ GIR_EraseRootFromParent_Done,
4982 /* 1839 */ // Label 133: @1839
4983 /* 1839 */ GIM_Try, /*On fail goto*//*Label 134*/ GIMT_Encode4(1884), // Rule ID 8 //
4984 /* 1844 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule8Enabled),
4985 /* 1847 */ // MIs[0] root
4986 /* 1847 */ // No operand predicates
4987 /* 1847 */ // MIs[0] A
4988 /* 1847 */ // No operand predicates
4989 /* 1847 */ // MIs[0] sub1
4990 /* 1847 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
4991 /* 1851 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
4992 /* 1855 */ // MIs[1] B
4993 /* 1855 */ // No operand predicates
4994 /* 1855 */ // MIs[1] add1
4995 /* 1855 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
4996 /* 1859 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ADD),
4997 /* 1863 */ // MIs[2] A
4998 /* 1863 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/0, /*OtherOpIdx*/1,
4999 /* 1868 */ // MIs[2] C
5000 /* 1868 */ // No operand predicates
5001 /* 1868 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5002 /* 1870 */ // Combiner Rule #8: APlusBMinusAplusC
5003 /* 1870 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5004 /* 1873 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
5005 /* 1875 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // B
5006 /* 1879 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/2, // C
5007 /* 1883 */ GIR_EraseRootFromParent_Done,
5008 /* 1884 */ // Label 134: @1884
5009 /* 1884 */ GIM_Try, /*On fail goto*//*Label 135*/ GIMT_Encode4(1929), // Rule ID 10 //
5010 /* 1889 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule10Enabled),
5011 /* 1892 */ // MIs[0] root
5012 /* 1892 */ // No operand predicates
5013 /* 1892 */ // MIs[0] A
5014 /* 1892 */ // No operand predicates
5015 /* 1892 */ // MIs[0] sub1
5016 /* 1892 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5017 /* 1896 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5018 /* 1900 */ // MIs[1] B
5019 /* 1900 */ // No operand predicates
5020 /* 1900 */ // MIs[1] add1
5021 /* 1900 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
5022 /* 1904 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ADD),
5023 /* 1908 */ // MIs[2] C
5024 /* 1908 */ // No operand predicates
5025 /* 1908 */ // MIs[2] A
5026 /* 1908 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
5027 /* 1913 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5028 /* 1915 */ // Combiner Rule #10: APlusBMinusCPlusA
5029 /* 1915 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5030 /* 1918 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
5031 /* 1920 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // B
5032 /* 1924 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // C
5033 /* 1928 */ GIR_EraseRootFromParent_Done,
5034 /* 1929 */ // Label 135: @1929
5035 /* 1929 */ GIM_Try, /*On fail goto*//*Label 136*/ GIMT_Encode4(1984), // Rule ID 23 //
5036 /* 1934 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule22Enabled),
5037 /* 1937 */ // MIs[0] dst
5038 /* 1937 */ // No operand predicates
5039 /* 1937 */ // MIs[0] other
5040 /* 1937 */ // No operand predicates
5041 /* 1937 */ // MIs[0] __add_p2i_to_ptradd_match_0.x
5042 /* 1937 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5043 /* 1941 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_PTRTOINT),
5044 /* 1945 */ // MIs[1] ptr
5045 /* 1945 */ GIM_RecordRegType, /*MI*/1, /*Op*/1, /*TempTypeIdx*/255,
5046 /* 1949 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner2),
5047 /* 1953 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5048 /* 1955 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5049 /* 1958 */ // Combiner Rule #22: add_p2i_to_ptradd @ [__add_p2i_to_ptradd_match_0[1]]
5050 /* 1958 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_PTR_ADD),
5051 /* 1961 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5052 /* 1966 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // ptr
5053 /* 1970 */ GIR_RootToRootCopy, /*OpIdx*/1, // other
5054 /* 1972 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_PTRTOINT),
5055 /* 1976 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
5056 /* 1980 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
5057 /* 1983 */ GIR_EraseRootFromParent_Done,
5058 /* 1984 */ // Label 136: @1984
5059 /* 1984 */ GIM_Try, /*On fail goto*//*Label 137*/ GIMT_Encode4(2005), // Rule ID 107 //
5060 /* 1989 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule83Enabled),
5061 /* 1992 */ // MIs[0] dst
5062 /* 1992 */ // No operand predicates
5063 /* 1992 */ // MIs[0] __propagate_undef_any_op_match_0.x
5064 /* 1992 */ // No operand predicates
5065 /* 1992 */ // MIs[0] __propagate_undef_any_op_match_0.y
5066 /* 1992 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5067 /* 1996 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
5068 /* 2000 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5069 /* 2002 */ // Combiner Rule #83: propagate_undef_any_op @ [__propagate_undef_any_op_match_0[3]]
5070 /* 2002 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner35),
5071 /* 2005 */ // Label 137: @2005
5072 /* 2005 */ GIM_Try, /*On fail goto*//*Label 138*/ GIMT_Encode4(2028), // Rule ID 119 //
5073 /* 2010 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled),
5074 /* 2013 */ // MIs[0] dst
5075 /* 2013 */ // No operand predicates
5076 /* 2013 */ // MIs[0] lhs
5077 /* 2013 */ // No operand predicates
5078 /* 2013 */ // MIs[0] Operand 2
5079 /* 2013 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
5080 /* 2017 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5081 /* 2022 */ // Combiner Rule #90: right_identity_zero @ [__right_identity_zero_match_0[1]]
5082 /* 2022 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5083 /* 2027 */ GIR_EraseRootFromParent_Done,
5084 /* 2028 */ // Label 138: @2028
5085 /* 2028 */ GIM_Try, /*On fail goto*//*Label 139*/ GIMT_Encode4(2039), // Rule ID 169 //
5086 /* 2033 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule116Enabled),
5087 /* 2036 */ // MIs[0] root
5088 /* 2036 */ // No operand predicates
5089 /* 2036 */ // MIs[0] src1
5090 /* 2036 */ // No operand predicates
5091 /* 2036 */ // MIs[0] src2
5092 /* 2036 */ // No operand predicates
5093 /* 2036 */ // Combiner Rule #116: reassoc_comm_binops
5094 /* 2036 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner49),
5095 /* 2039 */ // Label 139: @2039
5096 /* 2039 */ GIM_Reject,
5097 /* 2040 */ // Label 2: @2040
5098 /* 2040 */ GIM_Try, /*On fail goto*//*Label 140*/ GIMT_Encode4(2051), // Rule ID 280 //
5099 /* 2045 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
5100 /* 2048 */ // Combiner Rule #194: constant_fold_binop; wip_match_opcode 'G_SUB'
5101 /* 2048 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner92),
5102 /* 2051 */ // Label 140: @2051
5103 /* 2051 */ GIM_Try, /*On fail goto*//*Label 141*/ GIMT_Encode4(2062), // Rule ID 333 //
5104 /* 2056 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule215Enabled),
5105 /* 2059 */ // Combiner Rule #215: fold_binop_into_select; wip_match_opcode 'G_SUB'
5106 /* 2059 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner108),
5107 /* 2062 */ // Label 141: @2062
5108 /* 2062 */ GIM_Try, /*On fail goto*//*Label 142*/ GIMT_Encode4(2139), // Rule ID 440 //
5109 /* 2067 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule268Enabled),
5110 /* 2070 */ // MIs[0] dst
5111 /* 2070 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
5112 /* 2074 */ // MIs[0] sub1
5113 /* 2074 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5114 /* 2078 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5115 /* 2082 */ // MIs[1] a
5116 /* 2082 */ // No operand predicates
5117 /* 2082 */ // MIs[1] b
5118 /* 2082 */ // No operand predicates
5119 /* 2082 */ // MIs[0] Operand 2
5120 /* 2082 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 1,
5121 /* 2086 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner1),
5122 /* 2090 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5123 /* 2092 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
5124 /* 2095 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(18446744073709551615u),
5125 /* 2105 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5126 /* 2108 */ // Combiner Rule #268: sub_one_from_sub
5127 /* 2108 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_XOR),
5128 /* 2111 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5129 /* 2116 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // b
5130 /* 2120 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/1,
5131 /* 2123 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ADD),
5132 /* 2127 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
5133 /* 2131 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
5134 /* 2134 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // a
5135 /* 2138 */ GIR_EraseRootFromParent_Done,
5136 /* 2139 */ // Label 142: @2139
5137 /* 2139 */ GIM_Try, /*On fail goto*//*Label 143*/ GIMT_Encode4(2233), // Rule ID 446 //
5138 /* 2144 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule272Enabled),
5139 /* 2147 */ // MIs[0] root
5140 /* 2147 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
5141 /* 2151 */ // MIs[0] Operand 1
5142 /* 2151 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/1, 0,
5143 /* 2155 */ // MIs[0] max
5144 /* 2155 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5145 /* 2159 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SMAX),
5146 /* 2163 */ // MIs[1] A
5147 /* 2163 */ // No operand predicates
5148 /* 2163 */ // MIs[1] sub
5149 /* 2163 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
5150 /* 2167 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB),
5151 /* 2171 */ // MIs[2] Operand 1
5152 /* 2171 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/1, 0,
5153 /* 2175 */ // MIs[2] A
5154 /* 2175 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/1,
5155 /* 2180 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner27),
5156 /* 2184 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5157 /* 2186 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
5158 /* 2189 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(0),
5159 /* 2199 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5160 /* 2202 */ // Combiner Rule #272: SubSmaxSub
5161 /* 2202 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5162 /* 2205 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5163 /* 2210 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/1,
5164 /* 2213 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // A
5165 /* 2217 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SMIN),
5166 /* 2221 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // root
5167 /* 2225 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // A
5168 /* 2229 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
5169 /* 2232 */ GIR_EraseRootFromParent_Done,
5170 /* 2233 */ // Label 143: @2233
5171 /* 2233 */ GIM_Try, /*On fail goto*//*Label 144*/ GIMT_Encode4(2327), // Rule ID 447 //
5172 /* 2238 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule273Enabled),
5173 /* 2241 */ // MIs[0] root
5174 /* 2241 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
5175 /* 2245 */ // MIs[0] Operand 1
5176 /* 2245 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/1, 0,
5177 /* 2249 */ // MIs[0] max
5178 /* 2249 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5179 /* 2253 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_UMAX),
5180 /* 2257 */ // MIs[1] A
5181 /* 2257 */ // No operand predicates
5182 /* 2257 */ // MIs[1] sub
5183 /* 2257 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
5184 /* 2261 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB),
5185 /* 2265 */ // MIs[2] Operand 1
5186 /* 2265 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/1, 0,
5187 /* 2269 */ // MIs[2] A
5188 /* 2269 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/1,
5189 /* 2274 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner27),
5190 /* 2278 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5191 /* 2280 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
5192 /* 2283 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(0),
5193 /* 2293 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5194 /* 2296 */ // Combiner Rule #273: SubUmaxSub
5195 /* 2296 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5196 /* 2299 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5197 /* 2304 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/1,
5198 /* 2307 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // A
5199 /* 2311 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UMIN),
5200 /* 2315 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // root
5201 /* 2319 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // A
5202 /* 2323 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
5203 /* 2326 */ GIR_EraseRootFromParent_Done,
5204 /* 2327 */ // Label 144: @2327
5205 /* 2327 */ GIM_Try, /*On fail goto*//*Label 145*/ GIMT_Encode4(2467),
5206 /* 2332 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
5207 /* 2336 */ GIM_Try, /*On fail goto*//*Label 146*/ GIMT_Encode4(2372), // Rule ID 444 //
5208 /* 2341 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule270Enabled),
5209 /* 2344 */ // MIs[0] Operand 1
5210 /* 2344 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/1, 255,
5211 /* 2348 */ // MIs[0] op1
5212 /* 2348 */ // No operand predicates
5213 /* 2348 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5214 /* 2351 */ GIR_BuildConstant, /*TempRegID*/0, /*Val*/GIMT_Encode8(18446744073709551615u),
5215 /* 2361 */ // Combiner Rule #270: sub_minus_one
5216 /* 2361 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_XOR),
5217 /* 2364 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
5218 /* 2366 */ GIR_RootToRootCopy, /*OpIdx*/2, // op1
5219 /* 2368 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/0,
5220 /* 2371 */ GIR_EraseRootFromParent_Done,
5221 /* 2372 */ // Label 146: @2372
5222 /* 2372 */ GIM_Try, /*On fail goto*//*Label 147*/ GIMT_Encode4(2466), // Rule ID 445 //
5223 /* 2377 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule271Enabled),
5224 /* 2380 */ // MIs[0] a
5225 /* 2380 */ // No operand predicates
5226 /* 2380 */ // MIs[0] mul
5227 /* 2380 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5228 /* 2384 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_MUL),
5229 /* 2388 */ GIM_CheckHasOneUse, /*MI*/1,
5230 /* 2390 */ // MIs[1] x
5231 /* 2390 */ // No operand predicates
5232 /* 2390 */ // MIs[1] c
5233 /* 2390 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
5234 /* 2394 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5235 /* 2398 */ // MIs[2] imm
5236 /* 2398 */ // No operand predicates
5237 /* 2398 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5238 /* 2400 */ GIR_MakeTempReg, /*TempRegID*/2, /*TypeID*/255,
5239 /* 2403 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
5240 /* 2406 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(0),
5241 /* 2416 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5242 /* 2419 */ // Combiner Rule #271: sub_of_mul_const
5243 /* 2419 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5244 /* 2422 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5245 /* 2427 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/1,
5246 /* 2430 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // c
5247 /* 2434 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_MUL),
5248 /* 2438 */ GIR_AddTempRegister, /*InsnID*/1, /*TempRegID*/2, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5249 /* 2443 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // x
5250 /* 2447 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
5251 /* 2450 */ GIR_BuildMI, /*InsnID*/2, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ADD),
5252 /* 2454 */ GIR_Copy, /*NewInsnID*/2, /*OldInsnID*/0, /*OpIdx*/0, // d
5253 /* 2458 */ GIR_Copy, /*NewInsnID*/2, /*OldInsnID*/0, /*OpIdx*/1, // a
5254 /* 2462 */ GIR_AddSimpleTempRegister, /*InsnID*/2, /*TempRegID*/2,
5255 /* 2465 */ GIR_EraseRootFromParent_Done,
5256 /* 2466 */ // Label 147: @2466
5257 /* 2466 */ GIM_Reject,
5258 /* 2467 */ // Label 145: @2467
5259 /* 2467 */ GIM_Try, /*On fail goto*//*Label 148*/ GIMT_Encode4(2528), // Rule ID 9 //
5260 /* 2472 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule9Enabled),
5261 /* 2475 */ // MIs[0] root
5262 /* 2475 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
5263 /* 2479 */ // MIs[0] A
5264 /* 2479 */ // No operand predicates
5265 /* 2479 */ // MIs[0] sub1
5266 /* 2479 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5267 /* 2483 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5268 /* 2487 */ // MIs[1] B
5269 /* 2487 */ // No operand predicates
5270 /* 2487 */ // MIs[1] C
5271 /* 2487 */ // No operand predicates
5272 /* 2487 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner0),
5273 /* 2491 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5274 /* 2493 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5275 /* 2496 */ // Combiner Rule #9: AMinusBMinusC
5276 /* 2496 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5277 /* 2499 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
5278 /* 2504 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // C
5279 /* 2508 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // B
5280 /* 2512 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ADD),
5281 /* 2516 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // root
5282 /* 2520 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/1, // A
5283 /* 2524 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
5284 /* 2527 */ GIR_EraseRootFromParent_Done,
5285 /* 2528 */ // Label 148: @2528
5286 /* 2528 */ GIM_Try, /*On fail goto*//*Label 149*/ GIMT_Encode4(2573), // Rule ID 0 //
5287 /* 2533 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule0Enabled),
5288 /* 2536 */ // MIs[0] root
5289 /* 2536 */ // No operand predicates
5290 /* 2536 */ // MIs[0] add1
5291 /* 2536 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5292 /* 2540 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
5293 /* 2544 */ // MIs[1] A
5294 /* 2544 */ // No operand predicates
5295 /* 2544 */ // MIs[1] sub1
5296 /* 2544 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
5297 /* 2548 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB),
5298 /* 2552 */ // MIs[2] B
5299 /* 2552 */ // No operand predicates
5300 /* 2552 */ // MIs[2] C
5301 /* 2552 */ // No operand predicates
5302 /* 2552 */ // MIs[0] B
5303 /* 2552 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/2, /*OtherOpIdx*/1,
5304 /* 2557 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5305 /* 2559 */ // Combiner Rule #0: APlusBMinusCMinusB
5306 /* 2559 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5307 /* 2562 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
5308 /* 2564 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // A
5309 /* 2568 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/2, // C
5310 /* 2572 */ GIR_EraseRootFromParent_Done,
5311 /* 2573 */ // Label 149: @2573
5312 /* 2573 */ GIM_Try, /*On fail goto*//*Label 150*/ GIMT_Encode4(2610), // Rule ID 14 //
5313 /* 2578 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule14Enabled),
5314 /* 2581 */ // MIs[0] root
5315 /* 2581 */ // No operand predicates
5316 /* 2581 */ // MIs[0] add
5317 /* 2581 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5318 /* 2585 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
5319 /* 2589 */ // MIs[1] A
5320 /* 2589 */ // No operand predicates
5321 /* 2589 */ // MIs[1] c1
5322 /* 2589 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
5323 /* 2593 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5324 /* 2597 */ // MIs[2] imm1
5325 /* 2597 */ // No operand predicates
5326 /* 2597 */ // MIs[0] c2
5327 /* 2597 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/0, /*OpIdx*/2, // MIs[3]
5328 /* 2601 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5329 /* 2605 */ // MIs[3] imm2
5330 /* 2605 */ // No operand predicates
5331 /* 2605 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
5332 /* 2607 */ // Combiner Rule #14: APlusC1MinusC2
5333 /* 2607 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner0),
5334 /* 2610 */ // Label 150: @2610
5335 /* 2610 */ GIM_Try, /*On fail goto*//*Label 151*/ GIMT_Encode4(2647), // Rule ID 17 //
5336 /* 2615 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule17Enabled),
5337 /* 2618 */ // MIs[0] root
5338 /* 2618 */ // No operand predicates
5339 /* 2618 */ // MIs[0] sub1
5340 /* 2618 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5341 /* 2622 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5342 /* 2626 */ // MIs[1] c1
5343 /* 2626 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
5344 /* 2630 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5345 /* 2634 */ // MIs[2] imm1
5346 /* 2634 */ // No operand predicates
5347 /* 2634 */ // MIs[1] A
5348 /* 2634 */ // No operand predicates
5349 /* 2634 */ // MIs[0] c2
5350 /* 2634 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/0, /*OpIdx*/2, // MIs[3]
5351 /* 2638 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5352 /* 2642 */ // MIs[3] imm2
5353 /* 2642 */ // No operand predicates
5354 /* 2642 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
5355 /* 2644 */ // Combiner Rule #17: C1Minus2MinusC2
5356 /* 2644 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner3),
5357 /* 2647 */ // Label 151: @2647
5358 /* 2647 */ GIM_Try, /*On fail goto*//*Label 152*/ GIMT_Encode4(2692), // Rule ID 1 //
5359 /* 2652 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule1Enabled),
5360 /* 2655 */ // MIs[0] root
5361 /* 2655 */ // No operand predicates
5362 /* 2655 */ // MIs[0] sub2
5363 /* 2655 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5364 /* 2659 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5365 /* 2663 */ // MIs[1] A
5366 /* 2663 */ // No operand predicates
5367 /* 2663 */ // MIs[1] sub1
5368 /* 2663 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
5369 /* 2667 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB),
5370 /* 2671 */ // MIs[2] B
5371 /* 2671 */ // No operand predicates
5372 /* 2671 */ // MIs[2] C
5373 /* 2671 */ // No operand predicates
5374 /* 2671 */ // MIs[0] C
5375 /* 2671 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/2, /*OtherOpIdx*/2,
5376 /* 2676 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5377 /* 2678 */ // Combiner Rule #1: AMinusBMinusCMinusC
5378 /* 2678 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5379 /* 2681 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
5380 /* 2683 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // A
5381 /* 2687 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // B
5382 /* 2691 */ GIR_EraseRootFromParent_Done,
5383 /* 2692 */ // Label 152: @2692
5384 /* 2692 */ GIM_Try, /*On fail goto*//*Label 153*/ GIMT_Encode4(2729), // Rule ID 16 //
5385 /* 2697 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule16Enabled),
5386 /* 2700 */ // MIs[0] root
5387 /* 2700 */ // No operand predicates
5388 /* 2700 */ // MIs[0] sub1
5389 /* 2700 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5390 /* 2704 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5391 /* 2708 */ // MIs[1] A
5392 /* 2708 */ // No operand predicates
5393 /* 2708 */ // MIs[1] c1
5394 /* 2708 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
5395 /* 2712 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5396 /* 2716 */ // MIs[2] imm1
5397 /* 2716 */ // No operand predicates
5398 /* 2716 */ // MIs[0] c2
5399 /* 2716 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/0, /*OpIdx*/2, // MIs[3]
5400 /* 2720 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5401 /* 2724 */ // MIs[3] imm2
5402 /* 2724 */ // No operand predicates
5403 /* 2724 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
5404 /* 2726 */ // Combiner Rule #16: AMinusC1MinusC2
5405 /* 2726 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner2),
5406 /* 2729 */ // Label 153: @2729
5407 /* 2729 */ GIM_Try, /*On fail goto*//*Label 154*/ GIMT_Encode4(2750), // Rule ID 105 //
5408 /* 2734 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule83Enabled),
5409 /* 2737 */ // MIs[0] dst
5410 /* 2737 */ // No operand predicates
5411 /* 2737 */ // MIs[0] __propagate_undef_any_op_match_0.x
5412 /* 2737 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5413 /* 2741 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
5414 /* 2745 */ // MIs[0] __propagate_undef_any_op_match_0.y
5415 /* 2745 */ // No operand predicates
5416 /* 2745 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5417 /* 2747 */ // Combiner Rule #83: propagate_undef_any_op @ [__propagate_undef_any_op_match_0[1]]
5418 /* 2747 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner35),
5419 /* 2750 */ // Label 154: @2750
5420 /* 2750 */ GIM_Try, /*On fail goto*//*Label 155*/ GIMT_Encode4(2793), // Rule ID 179 //
5421 /* 2755 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule126Enabled),
5422 /* 2758 */ // MIs[0] dst
5423 /* 2758 */ // No operand predicates
5424 /* 2758 */ // MIs[0] Operand 1
5425 /* 2758 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/1, 0,
5426 /* 2762 */ // MIs[0] and
5427 /* 2762 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5428 /* 2766 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_AND),
5429 /* 2770 */ // MIs[1] x
5430 /* 2770 */ // No operand predicates
5431 /* 2770 */ // MIs[1] Operand 2
5432 /* 2770 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/2, 1,
5433 /* 2774 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner15),
5434 /* 2778 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5435 /* 2780 */ // Combiner Rule #126: neg_and_one_to_sext_inreg
5436 /* 2780 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SEXT_INREG),
5437 /* 2783 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
5438 /* 2785 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
5439 /* 2789 */ GIR_AddImm8, /*InsnID*/0, /*Imm*/1,
5440 /* 2792 */ GIR_EraseRootFromParent_Done,
5441 /* 2793 */ // Label 155: @2793
5442 /* 2793 */ GIM_Try, /*On fail goto*//*Label 156*/ GIMT_Encode4(2830), // Rule ID 15 //
5443 /* 2798 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule15Enabled),
5444 /* 2801 */ // MIs[0] root
5445 /* 2801 */ // No operand predicates
5446 /* 2801 */ // MIs[0] c2
5447 /* 2801 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5448 /* 2805 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5449 /* 2809 */ // MIs[1] imm2
5450 /* 2809 */ // No operand predicates
5451 /* 2809 */ // MIs[0] add
5452 /* 2809 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
5453 /* 2813 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ADD),
5454 /* 2817 */ // MIs[2] A
5455 /* 2817 */ // No operand predicates
5456 /* 2817 */ // MIs[2] c1
5457 /* 2817 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/2, /*OpIdx*/2, // MIs[3]
5458 /* 2821 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5459 /* 2825 */ // MIs[3] imm1
5460 /* 2825 */ // No operand predicates
5461 /* 2825 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
5462 /* 2827 */ // Combiner Rule #15: C2MinusAPlusC1
5463 /* 2827 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner1),
5464 /* 2830 */ // Label 156: @2830
5465 /* 2830 */ GIM_Try, /*On fail goto*//*Label 157*/ GIMT_Encode4(2869), // Rule ID 130 //
5466 /* 2835 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule92Enabled),
5467 /* 2838 */ // MIs[0] dst
5468 /* 2838 */ // No operand predicates
5469 /* 2838 */ // MIs[0] x
5470 /* 2838 */ GIM_RecordRegType, /*MI*/0, /*Op*/1, /*TempTypeIdx*/255,
5471 /* 2842 */ // MIs[0] x
5472 /* 2842 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
5473 /* 2847 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5474 /* 2850 */ GIR_BuildConstant, /*TempRegID*/0, /*Val*/GIMT_Encode8(0),
5475 /* 2860 */ // Combiner Rule #92: same_val_zero @ [__same_val_zero_match_0[0]]
5476 /* 2860 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::COPY),
5477 /* 2863 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
5478 /* 2865 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/0,
5479 /* 2868 */ GIR_EraseRootFromParent_Done,
5480 /* 2869 */ // Label 157: @2869
5481 /* 2869 */ GIM_Try, /*On fail goto*//*Label 158*/ GIMT_Encode4(2903), // Rule ID 12 //
5482 /* 2874 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule12Enabled),
5483 /* 2877 */ // MIs[0] root
5484 /* 2877 */ // No operand predicates
5485 /* 2877 */ // MIs[0] A
5486 /* 2877 */ // No operand predicates
5487 /* 2877 */ // MIs[0] add
5488 /* 2877 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5489 /* 2881 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5490 /* 2885 */ // MIs[1] A
5491 /* 2885 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/1, /*OpIdx*/1, /*OtherMI*/0, /*OtherOpIdx*/1,
5492 /* 2890 */ // MIs[1] B
5493 /* 2890 */ // No operand predicates
5494 /* 2890 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/2,
5495 /* 2895 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5496 /* 2897 */ // Combiner Rule #12: AMinusBMinusA
5497 /* 2897 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/2,
5498 /* 2902 */ GIR_EraseRootFromParent_Done,
5499 /* 2903 */ // Label 158: @2903
5500 /* 2903 */ GIM_Try, /*On fail goto*//*Label 159*/ GIMT_Encode4(2937), // Rule ID 11 //
5501 /* 2908 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule11Enabled),
5502 /* 2911 */ // MIs[0] root
5503 /* 2911 */ // No operand predicates
5504 /* 2911 */ // MIs[0] A
5505 /* 2911 */ // No operand predicates
5506 /* 2911 */ // MIs[0] sub1
5507 /* 2911 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5508 /* 2915 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
5509 /* 2919 */ // MIs[1] Operand 1
5510 /* 2919 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/1, 0,
5511 /* 2923 */ // MIs[1] B
5512 /* 2923 */ // No operand predicates
5513 /* 2923 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5514 /* 2925 */ // Combiner Rule #11: AMinusZeroMinusB
5515 /* 2925 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ADD),
5516 /* 2928 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
5517 /* 2930 */ GIR_RootToRootCopy, /*OpIdx*/1, // A
5518 /* 2932 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // B
5519 /* 2936 */ GIR_EraseRootFromParent_Done,
5520 /* 2937 */ // Label 159: @2937
5521 /* 2937 */ GIM_Try, /*On fail goto*//*Label 160*/ GIMT_Encode4(2964), // Rule ID 49 //
5522 /* 2942 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule45Enabled),
5523 /* 2945 */ GIM_MIFlags, /*MI*/0, GIMT_Encode4(MachineInstr::NoSWrap),
5524 /* 2951 */ // MIs[0] root
5525 /* 2951 */ // No operand predicates
5526 /* 2951 */ // MIs[0] x
5527 /* 2951 */ // No operand predicates
5528 /* 2951 */ // MIs[0] right
5529 /* 2951 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5530 /* 2955 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_VSCALE),
5531 /* 2959 */ // MIs[1] imm
5532 /* 2959 */ // No operand predicates
5533 /* 2959 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5534 /* 2961 */ // Combiner Rule #45: sub_of_vscale
5535 /* 2961 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner17),
5536 /* 2964 */ // Label 160: @2964
5537 /* 2964 */ GIM_Try, /*On fail goto*//*Label 161*/ GIMT_Encode4(2985), // Rule ID 108 //
5538 /* 2969 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule83Enabled),
5539 /* 2972 */ // MIs[0] dst
5540 /* 2972 */ // No operand predicates
5541 /* 2972 */ // MIs[0] __propagate_undef_any_op_match_0.x
5542 /* 2972 */ // No operand predicates
5543 /* 2972 */ // MIs[0] __propagate_undef_any_op_match_0.y
5544 /* 2972 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5545 /* 2976 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
5546 /* 2980 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5547 /* 2982 */ // Combiner Rule #83: propagate_undef_any_op @ [__propagate_undef_any_op_match_0[4]]
5548 /* 2982 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner35),
5549 /* 2985 */ // Label 161: @2985
5550 /* 2985 */ GIM_Try, /*On fail goto*//*Label 162*/ GIMT_Encode4(3008), // Rule ID 118 //
5551 /* 2990 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled),
5552 /* 2993 */ // MIs[0] dst
5553 /* 2993 */ // No operand predicates
5554 /* 2993 */ // MIs[0] lhs
5555 /* 2993 */ // No operand predicates
5556 /* 2993 */ // MIs[0] Operand 2
5557 /* 2993 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
5558 /* 2997 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5559 /* 3002 */ // Combiner Rule #90: right_identity_zero @ [__right_identity_zero_match_0[0]]
5560 /* 3002 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5561 /* 3007 */ GIR_EraseRootFromParent_Done,
5562 /* 3008 */ // Label 162: @3008
5563 /* 3008 */ GIM_Try, /*On fail goto*//*Label 163*/ GIMT_Encode4(3029), // Rule ID 21 //
5564 /* 3013 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule21Enabled),
5565 /* 3016 */ // MIs[0] d
5566 /* 3016 */ // No operand predicates
5567 /* 3016 */ // MIs[0] op1
5568 /* 3016 */ // No operand predicates
5569 /* 3016 */ // MIs[0] c
5570 /* 3016 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5571 /* 3020 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5572 /* 3024 */ // MIs[1] imm
5573 /* 3024 */ // No operand predicates
5574 /* 3024 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5575 /* 3026 */ // Combiner Rule #21: sub_to_add
5576 /* 3026 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner7),
5577 /* 3029 */ // Label 163: @3029
5578 /* 3029 */ GIM_Try, /*On fail goto*//*Label 164*/ GIMT_Encode4(3040), // Rule ID 366 //
5579 /* 3034 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule224Enabled),
5580 /* 3037 */ // MIs[0] dst
5581 /* 3037 */ // No operand predicates
5582 /* 3037 */ // MIs[0] src1
5583 /* 3037 */ // No operand predicates
5584 /* 3037 */ // MIs[0] src2
5585 /* 3037 */ // No operand predicates
5586 /* 3037 */ // Combiner Rule #224: sub_add_reg
5587 /* 3037 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner115),
5588 /* 3040 */ // Label 164: @3040
5589 /* 3040 */ GIM_Try, /*On fail goto*//*Label 165*/ GIMT_Encode4(3051), // Rule ID 406 //
5590 /* 3045 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule237Enabled),
5591 /* 3048 */ // MIs[0] dst
5592 /* 3048 */ // No operand predicates
5593 /* 3048 */ // MIs[0] src1
5594 /* 3048 */ // No operand predicates
5595 /* 3048 */ // MIs[0] src2
5596 /* 3048 */ // No operand predicates
5597 /* 3048 */ // Combiner Rule #237: simplify_neg_minmax
5598 /* 3048 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner122),
5599 /* 3051 */ // Label 165: @3051
5600 /* 3051 */ GIM_Reject,
5601 /* 3052 */ // Label 3: @3052
5602 /* 3052 */ GIM_Try, /*On fail goto*//*Label 166*/ GIMT_Encode4(3063), // Rule ID 277 //
5603 /* 3057 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
5604 /* 3060 */ // Combiner Rule #194: constant_fold_binop; wip_match_opcode 'G_MUL'
5605 /* 3060 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner92),
5606 /* 3063 */ // Label 166: @3063
5607 /* 3063 */ GIM_Try, /*On fail goto*//*Label 167*/ GIMT_Encode4(3074), // Rule ID 370 //
5608 /* 3068 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule227Enabled),
5609 /* 3071 */ // Combiner Rule #227: commute_int_constant_to_rhs; wip_match_opcode 'G_MUL'
5610 /* 3071 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner118),
5611 /* 3074 */ // Label 167: @3074
5612 /* 3074 */ GIM_Try, /*On fail goto*//*Label 168*/ GIMT_Encode4(3114), // Rule ID 24 //
5613 /* 3079 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule23Enabled),
5614 /* 3082 */ // MIs[0] dst
5615 /* 3082 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
5616 /* 3086 */ // MIs[0] x
5617 /* 3086 */ // No operand predicates
5618 /* 3086 */ // MIs[0] Operand 2
5619 /* 3086 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 255,
5620 /* 3090 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
5621 /* 3093 */ GIR_BuildConstant, /*TempRegID*/0, /*Val*/GIMT_Encode8(0),
5622 /* 3103 */ // Combiner Rule #23: mul_by_neg_one
5623 /* 3103 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
5624 /* 3106 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
5625 /* 3108 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/0,
5626 /* 3111 */ GIR_RootToRootCopy, /*OpIdx*/1, // x
5627 /* 3113 */ GIR_EraseRootFromParent_Done,
5628 /* 3114 */ // Label 168: @3114
5629 /* 3114 */ GIM_Try, /*On fail goto*//*Label 169*/ GIMT_Encode4(3149), // Rule ID 47 //
5630 /* 3119 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule43Enabled),
5631 /* 3122 */ GIM_MIFlags, /*MI*/0, GIMT_Encode4(MachineInstr::NoSWrap),
5632 /* 3128 */ // MIs[0] root
5633 /* 3128 */ // No operand predicates
5634 /* 3128 */ // MIs[0] left
5635 /* 3128 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5636 /* 3132 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_VSCALE),
5637 /* 3136 */ // MIs[1] scale
5638 /* 3136 */ // No operand predicates
5639 /* 3136 */ // MIs[0] x
5640 /* 3136 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
5641 /* 3140 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5642 /* 3144 */ // MIs[2] imm1
5643 /* 3144 */ // No operand predicates
5644 /* 3144 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
5645 /* 3146 */ // Combiner Rule #43: mul_of_vscale
5646 /* 3146 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner15),
5647 /* 3149 */ // Label 169: @3149
5648 /* 3149 */ GIM_Try, /*On fail goto*//*Label 170*/ GIMT_Encode4(3170), // Rule ID 85 //
5649 /* 3154 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule77Enabled),
5650 /* 3157 */ // MIs[0] dst
5651 /* 3157 */ // No operand predicates
5652 /* 3157 */ // MIs[0] __undef_to_int_zero_match_0.x
5653 /* 3157 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5654 /* 3161 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
5655 /* 3165 */ // MIs[0] __undef_to_int_zero_match_0.y
5656 /* 3165 */ // No operand predicates
5657 /* 3165 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5658 /* 3167 */ // Combiner Rule #77: undef_to_int_zero @ [__undef_to_int_zero_match_0[1]]
5659 /* 3167 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner33),
5660 /* 3170 */ // Label 170: @3170
5661 /* 3170 */ GIM_Try, /*On fail goto*//*Label 171*/ GIMT_Encode4(3210), // Rule ID 139 //
5662 /* 3175 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
5663 /* 3178 */ // MIs[0] dst
5664 /* 3178 */ // No operand predicates
5665 /* 3178 */ // MIs[0] zero
5666 /* 3178 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5667 /* 3182 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5668 /* 3186 */ // MIs[1] Operand 1
5669 /* 3186 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0),
5670 /* 3197 */ // MIs[0] rhs
5671 /* 3197 */ // No operand predicates
5672 /* 3197 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5673 /* 3202 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5674 /* 3204 */ // Combiner Rule #93: binop_left_to_zero @ [__binop_left_to_zero_match_0[7]]
5675 /* 3204 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5676 /* 3209 */ GIR_EraseRootFromParent_Done,
5677 /* 3210 */ // Label 171: @3210
5678 /* 3210 */ GIM_Try, /*On fail goto*//*Label 172*/ GIMT_Encode4(3231), // Rule ID 87 //
5679 /* 3215 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule77Enabled),
5680 /* 3218 */ // MIs[0] dst
5681 /* 3218 */ // No operand predicates
5682 /* 3218 */ // MIs[0] __undef_to_int_zero_match_0.x
5683 /* 3218 */ // No operand predicates
5684 /* 3218 */ // MIs[0] __undef_to_int_zero_match_0.y
5685 /* 3218 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
5686 /* 3222 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
5687 /* 3226 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5688 /* 3228 */ // Combiner Rule #77: undef_to_int_zero @ [__undef_to_int_zero_match_0[3]]
5689 /* 3228 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner33),
5690 /* 3231 */ // Label 172: @3231
5691 /* 3231 */ GIM_Try, /*On fail goto*//*Label 173*/ GIMT_Encode4(3254), // Rule ID 140 //
5692 /* 3236 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule94Enabled),
5693 /* 3239 */ // MIs[0] dst
5694 /* 3239 */ // No operand predicates
5695 /* 3239 */ // MIs[0] lhs
5696 /* 3239 */ // No operand predicates
5697 /* 3239 */ // MIs[0] zero
5698 /* 3239 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
5699 /* 3243 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
5700 /* 3248 */ // Combiner Rule #94: binop_right_to_zero
5701 /* 3248 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
5702 /* 3253 */ GIR_EraseRootFromParent_Done,
5703 /* 3254 */ // Label 173: @3254
5704 /* 3254 */ GIM_Try, /*On fail goto*//*Label 174*/ GIMT_Encode4(3277), // Rule ID 145 //
5705 /* 3259 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule99Enabled),
5706 /* 3262 */ // MIs[0] dst
5707 /* 3262 */ // No operand predicates
5708 /* 3262 */ // MIs[0] x
5709 /* 3262 */ // No operand predicates
5710 /* 3262 */ // MIs[0] Operand 2
5711 /* 3262 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 1,
5712 /* 3266 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5713 /* 3271 */ // Combiner Rule #99: right_identity_one_int
5714 /* 3271 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5715 /* 3276 */ GIR_EraseRootFromParent_Done,
5716 /* 3277 */ // Label 174: @3277
5717 /* 3277 */ GIM_Try, /*On fail goto*//*Label 175*/ GIMT_Encode4(3288), // Rule ID 20 //
5718 /* 3282 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule20Enabled),
5719 /* 3285 */ // MIs[0] d
5720 /* 3285 */ // No operand predicates
5721 /* 3285 */ // MIs[0] op1
5722 /* 3285 */ // No operand predicates
5723 /* 3285 */ // MIs[0] op2
5724 /* 3285 */ // No operand predicates
5725 /* 3285 */ // Combiner Rule #20: mul_to_shl
5726 /* 3285 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner6),
5727 /* 3288 */ // Label 175: @3288
5728 /* 3288 */ GIM_Reject,
5729 /* 3289 */ // Label 4: @3289
5730 /* 3289 */ GIM_Try, /*On fail goto*//*Label 176*/ GIMT_Encode4(3300), // Rule ID 247 //
5731 /* 3294 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule178Enabled),
5732 /* 3297 */ // Combiner Rule #178: div_rem_to_divrem; wip_match_opcode 'G_SDIV'
5733 /* 3297 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner84),
5734 /* 3300 */ // Label 176: @3300
5735 /* 3300 */ GIM_Try, /*On fail goto*//*Label 177*/ GIMT_Encode4(3311), // Rule ID 283 //
5736 /* 3305 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
5737 /* 3308 */ // Combiner Rule #194: constant_fold_binop; wip_match_opcode 'G_SDIV'
5738 /* 3308 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner92),
5739 /* 3311 */ // Label 177: @3311
5740 /* 3311 */ GIM_Try, /*On fail goto*//*Label 178*/ GIMT_Encode4(3322), // Rule ID 338 //
5741 /* 3316 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule215Enabled),
5742 /* 3319 */ // Combiner Rule #215: fold_binop_into_select; wip_match_opcode 'G_SDIV'
5743 /* 3319 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner108),
5744 /* 3322 */ // Label 178: @3322
5745 /* 3322 */ GIM_Try, /*On fail goto*//*Label 179*/ GIMT_Encode4(3362), // Rule ID 135 //
5746 /* 3327 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
5747 /* 3330 */ // MIs[0] dst
5748 /* 3330 */ // No operand predicates
5749 /* 3330 */ // MIs[0] zero
5750 /* 3330 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5751 /* 3334 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5752 /* 3338 */ // MIs[1] Operand 1
5753 /* 3338 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0),
5754 /* 3349 */ // MIs[0] rhs
5755 /* 3349 */ // No operand predicates
5756 /* 3349 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5757 /* 3354 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5758 /* 3356 */ // Combiner Rule #93: binop_left_to_zero @ [__binop_left_to_zero_match_0[3]]
5759 /* 3356 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5760 /* 3361 */ GIR_EraseRootFromParent_Done,
5761 /* 3362 */ // Label 179: @3362
5762 /* 3362 */ GIM_Try, /*On fail goto*//*Label 180*/ GIMT_Encode4(3379), // Rule ID 362 //
5763 /* 3367 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule220Enabled),
5764 /* 3370 */ GIM_MIFlagsNot, /*MI*/0, GIMT_Encode4(MachineInstr::IsExact),
5765 /* 3376 */ // MIs[0] dst
5766 /* 3376 */ // No operand predicates
5767 /* 3376 */ // MIs[0] x
5768 /* 3376 */ // No operand predicates
5769 /* 3376 */ // MIs[0] y
5770 /* 3376 */ // No operand predicates
5771 /* 3376 */ // Combiner Rule #220: sdiv_by_pow2
5772 /* 3376 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner113),
5773 /* 3379 */ // Label 180: @3379
5774 /* 3379 */ GIM_Try, /*On fail goto*//*Label 181*/ GIMT_Encode4(3390), // Rule ID 364 //
5775 /* 3384 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule222Enabled),
5776 /* 3387 */ // MIs[0] dst
5777 /* 3387 */ // No operand predicates
5778 /* 3387 */ // MIs[0] x
5779 /* 3387 */ // No operand predicates
5780 /* 3387 */ // MIs[0] y
5781 /* 3387 */ // No operand predicates
5782 /* 3387 */ // Combiner Rule #222: sdiv_by_const
5783 /* 3387 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner111),
5784 /* 3390 */ // Label 181: @3390
5785 /* 3390 */ GIM_Reject,
5786 /* 3391 */ // Label 5: @3391
5787 /* 3391 */ GIM_Try, /*On fail goto*//*Label 182*/ GIMT_Encode4(3402), // Rule ID 248 //
5788 /* 3396 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule178Enabled),
5789 /* 3399 */ // Combiner Rule #178: div_rem_to_divrem; wip_match_opcode 'G_UDIV'
5790 /* 3399 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner84),
5791 /* 3402 */ // Label 182: @3402
5792 /* 3402 */ GIM_Try, /*On fail goto*//*Label 183*/ GIMT_Encode4(3413), // Rule ID 282 //
5793 /* 3407 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
5794 /* 3410 */ // Combiner Rule #194: constant_fold_binop; wip_match_opcode 'G_UDIV'
5795 /* 3410 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner92),
5796 /* 3413 */ // Label 183: @3413
5797 /* 3413 */ GIM_Try, /*On fail goto*//*Label 184*/ GIMT_Encode4(3424), // Rule ID 340 //
5798 /* 3418 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule215Enabled),
5799 /* 3421 */ // Combiner Rule #215: fold_binop_into_select; wip_match_opcode 'G_UDIV'
5800 /* 3421 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner108),
5801 /* 3424 */ // Label 184: @3424
5802 /* 3424 */ GIM_Try, /*On fail goto*//*Label 185*/ GIMT_Encode4(3445), // Rule ID 91 //
5803 /* 3429 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule79Enabled),
5804 /* 3432 */ // MIs[0] dst
5805 /* 3432 */ // No operand predicates
5806 /* 3432 */ // MIs[0] __binop_left_undef_to_zero_match_0.x
5807 /* 3432 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5808 /* 3436 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
5809 /* 3440 */ // MIs[0] __binop_left_undef_to_zero_match_0.y
5810 /* 3440 */ // No operand predicates
5811 /* 3440 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5812 /* 3442 */ // Combiner Rule #79: binop_left_undef_to_zero @ [__binop_left_undef_to_zero_match_0[1]]
5813 /* 3442 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner33),
5814 /* 3445 */ // Label 185: @3445
5815 /* 3445 */ GIM_Try, /*On fail goto*//*Label 186*/ GIMT_Encode4(3485), // Rule ID 136 //
5816 /* 3450 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
5817 /* 3453 */ // MIs[0] dst
5818 /* 3453 */ // No operand predicates
5819 /* 3453 */ // MIs[0] zero
5820 /* 3453 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5821 /* 3457 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5822 /* 3461 */ // MIs[1] Operand 1
5823 /* 3461 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0),
5824 /* 3472 */ // MIs[0] rhs
5825 /* 3472 */ // No operand predicates
5826 /* 3472 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5827 /* 3477 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5828 /* 3479 */ // Combiner Rule #93: binop_left_to_zero @ [__binop_left_to_zero_match_0[4]]
5829 /* 3479 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5830 /* 3484 */ GIR_EraseRootFromParent_Done,
5831 /* 3485 */ // Label 186: @3485
5832 /* 3485 */ GIM_Try, /*On fail goto*//*Label 187*/ GIMT_Encode4(3502), // Rule ID 361 //
5833 /* 3490 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule219Enabled),
5834 /* 3493 */ GIM_MIFlagsNot, /*MI*/0, GIMT_Encode4(MachineInstr::IsExact),
5835 /* 3499 */ // MIs[0] dst
5836 /* 3499 */ // No operand predicates
5837 /* 3499 */ // MIs[0] x
5838 /* 3499 */ // No operand predicates
5839 /* 3499 */ // MIs[0] y
5840 /* 3499 */ // No operand predicates
5841 /* 3499 */ // Combiner Rule #219: udiv_by_pow2
5842 /* 3499 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner112),
5843 /* 3502 */ // Label 187: @3502
5844 /* 3502 */ GIM_Try, /*On fail goto*//*Label 188*/ GIMT_Encode4(3513), // Rule ID 363 //
5845 /* 3507 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule221Enabled),
5846 /* 3510 */ // MIs[0] dst
5847 /* 3510 */ // No operand predicates
5848 /* 3510 */ // MIs[0] x
5849 /* 3510 */ // No operand predicates
5850 /* 3510 */ // MIs[0] y
5851 /* 3510 */ // No operand predicates
5852 /* 3510 */ // Combiner Rule #221: udiv_by_const
5853 /* 3510 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner110),
5854 /* 3513 */ // Label 188: @3513
5855 /* 3513 */ GIM_Reject,
5856 /* 3514 */ // Label 6: @3514
5857 /* 3514 */ GIM_Try, /*On fail goto*//*Label 189*/ GIMT_Encode4(3525), // Rule ID 249 //
5858 /* 3519 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule178Enabled),
5859 /* 3522 */ // Combiner Rule #178: div_rem_to_divrem; wip_match_opcode 'G_SREM'
5860 /* 3522 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner84),
5861 /* 3525 */ // Label 189: @3525
5862 /* 3525 */ GIM_Try, /*On fail goto*//*Label 190*/ GIMT_Encode4(3536), // Rule ID 285 //
5863 /* 3530 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
5864 /* 3533 */ // Combiner Rule #194: constant_fold_binop; wip_match_opcode 'G_SREM'
5865 /* 3533 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner92),
5866 /* 3536 */ // Label 190: @3536
5867 /* 3536 */ GIM_Try, /*On fail goto*//*Label 191*/ GIMT_Encode4(3547), // Rule ID 339 //
5868 /* 3541 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule215Enabled),
5869 /* 3544 */ // Combiner Rule #215: fold_binop_into_select; wip_match_opcode 'G_SREM'
5870 /* 3544 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner108),
5871 /* 3547 */ // Label 191: @3547
5872 /* 3547 */ GIM_Try, /*On fail goto*//*Label 192*/ GIMT_Encode4(3587), // Rule ID 137 //
5873 /* 3552 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
5874 /* 3555 */ // MIs[0] dst
5875 /* 3555 */ // No operand predicates
5876 /* 3555 */ // MIs[0] zero
5877 /* 3555 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5878 /* 3559 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5879 /* 3563 */ // MIs[1] Operand 1
5880 /* 3563 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0),
5881 /* 3574 */ // MIs[0] rhs
5882 /* 3574 */ // No operand predicates
5883 /* 3574 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5884 /* 3579 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5885 /* 3581 */ // Combiner Rule #93: binop_left_to_zero @ [__binop_left_to_zero_match_0[5]]
5886 /* 3581 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5887 /* 3586 */ GIR_EraseRootFromParent_Done,
5888 /* 3587 */ // Label 192: @3587
5889 /* 3587 */ GIM_Try, /*On fail goto*//*Label 193*/ GIMT_Encode4(3598), // Rule ID 358 //
5890 /* 3592 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled),
5891 /* 3595 */ // MIs[0] dst
5892 /* 3595 */ // No operand predicates
5893 /* 3595 */ // MIs[0] x
5894 /* 3595 */ // No operand predicates
5895 /* 3595 */ // MIs[0] y
5896 /* 3595 */ // No operand predicates
5897 /* 3595 */ // Combiner Rule #216: srem_pow2_to_mask
5898 /* 3595 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner109),
5899 /* 3598 */ // Label 193: @3598
5900 /* 3598 */ GIM_Try, /*On fail goto*//*Label 194*/ GIMT_Encode4(3609), // Rule ID 360 //
5901 /* 3603 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule218Enabled),
5902 /* 3606 */ // MIs[0] dst
5903 /* 3606 */ // No operand predicates
5904 /* 3606 */ // MIs[0] x
5905 /* 3606 */ // No operand predicates
5906 /* 3606 */ // MIs[0] y
5907 /* 3606 */ // No operand predicates
5908 /* 3606 */ // Combiner Rule #218: srem_by_const
5909 /* 3606 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner111),
5910 /* 3609 */ // Label 194: @3609
5911 /* 3609 */ GIM_Reject,
5912 /* 3610 */ // Label 7: @3610
5913 /* 3610 */ GIM_Try, /*On fail goto*//*Label 195*/ GIMT_Encode4(3621), // Rule ID 250 //
5914 /* 3615 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule178Enabled),
5915 /* 3618 */ // Combiner Rule #178: div_rem_to_divrem; wip_match_opcode 'G_UREM'
5916 /* 3618 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner84),
5917 /* 3621 */ // Label 195: @3621
5918 /* 3621 */ GIM_Try, /*On fail goto*//*Label 196*/ GIMT_Encode4(3632), // Rule ID 284 //
5919 /* 3626 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
5920 /* 3629 */ // Combiner Rule #194: constant_fold_binop; wip_match_opcode 'G_UREM'
5921 /* 3629 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner92),
5922 /* 3632 */ // Label 196: @3632
5923 /* 3632 */ GIM_Try, /*On fail goto*//*Label 197*/ GIMT_Encode4(3643), // Rule ID 341 //
5924 /* 3637 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule215Enabled),
5925 /* 3640 */ // Combiner Rule #215: fold_binop_into_select; wip_match_opcode 'G_UREM'
5926 /* 3640 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner108),
5927 /* 3643 */ // Label 197: @3643
5928 /* 3643 */ GIM_Try, /*On fail goto*//*Label 198*/ GIMT_Encode4(3664), // Rule ID 92 //
5929 /* 3648 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule79Enabled),
5930 /* 3651 */ // MIs[0] dst
5931 /* 3651 */ // No operand predicates
5932 /* 3651 */ // MIs[0] __binop_left_undef_to_zero_match_0.x
5933 /* 3651 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5934 /* 3655 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
5935 /* 3659 */ // MIs[0] __binop_left_undef_to_zero_match_0.y
5936 /* 3659 */ // No operand predicates
5937 /* 3659 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5938 /* 3661 */ // Combiner Rule #79: binop_left_undef_to_zero @ [__binop_left_undef_to_zero_match_0[2]]
5939 /* 3661 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner33),
5940 /* 3664 */ // Label 198: @3664
5941 /* 3664 */ GIM_Try, /*On fail goto*//*Label 199*/ GIMT_Encode4(3704), // Rule ID 138 //
5942 /* 3669 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
5943 /* 3672 */ // MIs[0] dst
5944 /* 3672 */ // No operand predicates
5945 /* 3672 */ // MIs[0] zero
5946 /* 3672 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
5947 /* 3676 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
5948 /* 3680 */ // MIs[1] Operand 1
5949 /* 3680 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0),
5950 /* 3691 */ // MIs[0] rhs
5951 /* 3691 */ // No operand predicates
5952 /* 3691 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5953 /* 3696 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
5954 /* 3698 */ // Combiner Rule #93: binop_left_to_zero @ [__binop_left_to_zero_match_0[6]]
5955 /* 3698 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
5956 /* 3703 */ GIR_EraseRootFromParent_Done,
5957 /* 3704 */ // Label 199: @3704
5958 /* 3704 */ GIM_Try, /*On fail goto*//*Label 200*/ GIMT_Encode4(3715), // Rule ID 198 //
5959 /* 3709 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule145Enabled),
5960 /* 3712 */ // MIs[0] dst
5961 /* 3712 */ // No operand predicates
5962 /* 3712 */ // MIs[0] x
5963 /* 3712 */ // No operand predicates
5964 /* 3712 */ // MIs[0] y
5965 /* 3712 */ // No operand predicates
5966 /* 3712 */ // Combiner Rule #145: urem_pow2_to_mask
5967 /* 3712 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner66),
5968 /* 3715 */ // Label 200: @3715
5969 /* 3715 */ GIM_Try, /*On fail goto*//*Label 201*/ GIMT_Encode4(3726), // Rule ID 359 //
5970 /* 3720 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule217Enabled),
5971 /* 3723 */ // MIs[0] dst
5972 /* 3723 */ // No operand predicates
5973 /* 3723 */ // MIs[0] x
5974 /* 3723 */ // No operand predicates
5975 /* 3723 */ // MIs[0] y
5976 /* 3723 */ // No operand predicates
5977 /* 3723 */ // Combiner Rule #217: urem_by_const
5978 /* 3723 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner110),
5979 /* 3726 */ // Label 201: @3726
5980 /* 3726 */ GIM_Reject,
5981 /* 3727 */ // Label 8: @3727
5982 /* 3727 */ GIM_Try, /*On fail goto*//*Label 202*/ GIMT_Encode4(3738), // Rule ID 162 //
5983 /* 3732 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule113Enabled),
5984 /* 3735 */ // Combiner Rule #113: hoist_logic_op_with_same_opcode_hands; wip_match_opcode 'G_AND'
5985 /* 3735 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner46),
5986 /* 3738 */ // Label 202: @3738
5987 /* 3738 */ GIM_Try, /*On fail goto*//*Label 203*/ GIMT_Encode4(3749), // Rule ID 220 //
5988 /* 3743 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule167Enabled),
5989 /* 3746 */ // Combiner Rule #167: overlapping_and; wip_match_opcode 'G_AND'
5990 /* 3746 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner74),
5991 /* 3749 */ // Label 203: @3749
5992 /* 3749 */ GIM_Try, /*On fail goto*//*Label 204*/ GIMT_Encode4(3760), // Rule ID 274 //
5993 /* 3754 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
5994 /* 3757 */ // Combiner Rule #194: constant_fold_binop; wip_match_opcode 'G_AND'
5995 /* 3757 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner92),
5996 /* 3760 */ // Label 204: @3760
5997 /* 3760 */ GIM_Try, /*On fail goto*//*Label 205*/ GIMT_Encode4(3771), // Rule ID 335 //
5998 /* 3765 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule215Enabled),
5999 /* 3768 */ // Combiner Rule #215: fold_binop_into_select; wip_match_opcode 'G_AND'
6000 /* 3768 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner108),
6001 /* 3771 */ // Label 205: @3771
6002 /* 3771 */ GIM_Try, /*On fail goto*//*Label 206*/ GIMT_Encode4(3782), // Rule ID 371 //
6003 /* 3776 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule227Enabled),
6004 /* 3779 */ // Combiner Rule #227: commute_int_constant_to_rhs; wip_match_opcode 'G_AND'
6005 /* 3779 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner118),
6006 /* 3782 */ // Label 206: @3782
6007 /* 3782 */ GIM_Try, /*On fail goto*//*Label 207*/ GIMT_Encode4(3793), // Rule ID 441 //
6008 /* 3787 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule269Enabled),
6009 /* 3790 */ // Combiner Rule #269: binop_with_neg; wip_match_opcode 'G_AND'
6010 /* 3790 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner148),
6011 /* 3793 */ // Label 207: @3793
6012 /* 3793 */ GIM_Try, /*On fail goto*//*Label 208*/ GIMT_Encode4(3879), // Rule ID 403 //
6013 /* 3798 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule234Enabled),
6014 /* 3801 */ // MIs[0] root
6015 /* 3801 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
6016 /* 3805 */ // MIs[0] or
6017 /* 3805 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6018 /* 3809 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_OR),
6019 /* 3813 */ // MIs[1] x
6020 /* 3813 */ // No operand predicates
6021 /* 3813 */ // MIs[1] y
6022 /* 3813 */ // No operand predicates
6023 /* 3813 */ // MIs[0] not
6024 /* 3813 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
6025 /* 3817 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_XOR),
6026 /* 3821 */ // MIs[2] y
6027 /* 3821 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/2,
6028 /* 3826 */ // MIs[2] Operand 2
6029 /* 3826 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/2, 255,
6030 /* 3830 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
6031 /* 3832 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
6032 /* 3835 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(18446744073709551615u),
6033 /* 3845 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
6034 /* 3848 */ // Combiner Rule #234: and_xor_or_to_xor_and
6035 /* 3848 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_XOR),
6036 /* 3851 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
6037 /* 3856 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // y
6038 /* 3860 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/1,
6039 /* 3863 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_AND),
6040 /* 3867 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // root
6041 /* 3871 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // x
6042 /* 3875 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
6043 /* 3878 */ GIR_EraseRootFromParent_Done,
6044 /* 3879 */ // Label 208: @3879
6045 /* 3879 */ GIM_Try, /*On fail goto*//*Label 209*/ GIMT_Encode4(3977), // Rule ID 175 //
6046 /* 3884 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule122Enabled),
6047 /* 3887 */ // MIs[0] root
6048 /* 3887 */ // No operand predicates
6049 /* 3887 */ // MIs[0] d1
6050 /* 3887 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6051 /* 3891 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ICMP),
6052 /* 3895 */ // MIs[1] p
6053 /* 3895 */ // No operand predicates
6054 /* 3895 */ // MIs[1] s1
6055 /* 3895 */ GIM_RecordRegType, /*MI*/1, /*Op*/2, /*TempTypeIdx*/255,
6056 /* 3899 */ // MIs[1] Operand 3
6057 /* 3899 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/3, 0,
6058 /* 3903 */ // MIs[0] d2
6059 /* 3903 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
6060 /* 3907 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ICMP),
6061 /* 3911 */ // MIs[2] p
6062 /* 3911 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/1,
6063 /* 3916 */ // MIs[2] s2
6064 /* 3916 */ // No operand predicates
6065 /* 3916 */ // MIs[2] Operand 3
6066 /* 3916 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/3, 0,
6067 /* 3920 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner13),
6068 /* 3924 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
6069 /* 3926 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
6070 /* 3929 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(0),
6071 /* 3939 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
6072 /* 3942 */ // Combiner Rule #122: double_icmp_zero_and_combine
6073 /* 3942 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR),
6074 /* 3945 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
6075 /* 3950 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // s1
6076 /* 3954 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/2, // s2
6077 /* 3958 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ICMP),
6078 /* 3962 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // root
6079 /* 3966 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // p
6080 /* 3970 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
6081 /* 3973 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/1,
6082 /* 3976 */ GIR_EraseRootFromParent_Done,
6083 /* 3977 */ // Label 209: @3977
6084 /* 3977 */ GIM_Try, /*On fail goto*//*Label 210*/ GIMT_Encode4(4014), // Rule ID 267 //
6085 /* 3982 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule191Enabled),
6086 /* 3985 */ // MIs[0] root
6087 /* 3985 */ // No operand predicates
6088 /* 3985 */ // MIs[0] shift
6089 /* 3985 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6090 /* 3989 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_LSHR),
6091 /* 3993 */ // MIs[1] x
6092 /* 3993 */ // No operand predicates
6093 /* 3993 */ // MIs[1] lsb
6094 /* 3993 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
6095 /* 3997 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
6096 /* 4001 */ // MIs[2] imm1
6097 /* 4001 */ // No operand predicates
6098 /* 4001 */ // MIs[0] mask
6099 /* 4001 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/0, /*OpIdx*/2, // MIs[3]
6100 /* 4005 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
6101 /* 4009 */ // MIs[3] imm2
6102 /* 4009 */ // No operand predicates
6103 /* 4009 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
6104 /* 4011 */ // Combiner Rule #191: bitfield_extract_from_and
6105 /* 4011 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner89),
6106 /* 4014 */ // Label 210: @4014
6107 /* 4014 */ GIM_Try, /*On fail goto*//*Label 211*/ GIMT_Encode4(4063), // Rule ID 402 //
6108 /* 4019 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule233Enabled),
6109 /* 4022 */ // MIs[0] root
6110 /* 4022 */ // No operand predicates
6111 /* 4022 */ // MIs[0] or
6112 /* 4022 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6113 /* 4026 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_OR),
6114 /* 4030 */ // MIs[1] x
6115 /* 4030 */ // No operand predicates
6116 /* 4030 */ // MIs[1] not
6117 /* 4030 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
6118 /* 4034 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_XOR),
6119 /* 4038 */ // MIs[2] y
6120 /* 4038 */ // No operand predicates
6121 /* 4038 */ // MIs[2] Operand 2
6122 /* 4038 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/2, 255,
6123 /* 4042 */ // MIs[0] y
6124 /* 4042 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/2, /*OtherOpIdx*/1,
6125 /* 4047 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
6126 /* 4049 */ // Combiner Rule #233: and_xor_or_to_and
6127 /* 4049 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_AND),
6128 /* 4052 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
6129 /* 4054 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
6130 /* 4058 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // y
6131 /* 4062 */ GIR_EraseRootFromParent_Done,
6132 /* 4063 */ // Label 211: @4063
6133 /* 4063 */ GIM_Try, /*On fail goto*//*Label 212*/ GIMT_Encode4(4084), // Rule ID 84 //
6134 /* 4068 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule77Enabled),
6135 /* 4071 */ // MIs[0] dst
6136 /* 4071 */ // No operand predicates
6137 /* 4071 */ // MIs[0] __undef_to_int_zero_match_0.x
6138 /* 4071 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6139 /* 4075 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
6140 /* 4079 */ // MIs[0] __undef_to_int_zero_match_0.y
6141 /* 4079 */ // No operand predicates
6142 /* 4079 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6143 /* 4081 */ // Combiner Rule #77: undef_to_int_zero @ [__undef_to_int_zero_match_0[0]]
6144 /* 4081 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner33),
6145 /* 4084 */ // Label 212: @4084
6146 /* 4084 */ GIM_Try, /*On fail goto*//*Label 213*/ GIMT_Encode4(4198), // Rule ID 466 //
6147 /* 4089 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule289Enabled),
6148 /* 4092 */ GIM_RootCheckType, /*Op*/1, /*Type*/GILLT_i64,
6149 /* 4095 */ GIM_RootCheckType, /*Op*/2, /*Type*/GILLT_i64,
6150 /* 4098 */ // MIs[0] dst
6151 /* 4098 */ // No operand predicates
6152 /* 4098 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner33),
6153 /* 4102 */ GIR_MakeTempReg, /*TempRegID*/5, /*TypeID*/GILLT_i32,
6154 /* 4105 */ GIR_MakeTempReg, /*TempRegID*/4, /*TypeID*/GILLT_i32,
6155 /* 4108 */ GIR_MakeTempReg, /*TempRegID*/3, /*TypeID*/GILLT_i32,
6156 /* 4111 */ GIR_MakeTempReg, /*TempRegID*/2, /*TypeID*/GILLT_i32,
6157 /* 4114 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/GILLT_i32,
6158 /* 4117 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/GILLT_i32,
6159 /* 4120 */ // Combiner Rule #289: combine_and_s64_with_s32_mask
6160 /* 4120 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UNMERGE_VALUES),
6161 /* 4123 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
6162 /* 4128 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/1, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
6163 /* 4133 */ GIR_RootToRootCopy, /*OpIdx*/1, // x
6164 /* 4135 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UNMERGE_VALUES),
6165 /* 4139 */ GIR_AddTempRegister, /*InsnID*/1, /*TempRegID*/2, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
6166 /* 4144 */ GIR_AddTempRegister, /*InsnID*/1, /*TempRegID*/3, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
6167 /* 4149 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/2, // y
6168 /* 4153 */ GIR_BuildMI, /*InsnID*/2, /*Opcode*/GIMT_Encode2(TargetOpcode::G_AND),
6169 /* 4157 */ GIR_AddTempRegister, /*InsnID*/2, /*TempRegID*/4, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
6170 /* 4162 */ GIR_AddSimpleTempRegister, /*InsnID*/2, /*TempRegID*/0,
6171 /* 4165 */ GIR_AddSimpleTempRegister, /*InsnID*/2, /*TempRegID*/2,
6172 /* 4168 */ GIR_BuildMI, /*InsnID*/3, /*Opcode*/GIMT_Encode2(TargetOpcode::G_AND),
6173 /* 4172 */ GIR_AddTempRegister, /*InsnID*/3, /*TempRegID*/5, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
6174 /* 4177 */ GIR_AddSimpleTempRegister, /*InsnID*/3, /*TempRegID*/1,
6175 /* 4180 */ GIR_AddSimpleTempRegister, /*InsnID*/3, /*TempRegID*/3,
6176 /* 4183 */ GIR_BuildMI, /*InsnID*/4, /*Opcode*/GIMT_Encode2(TargetOpcode::G_MERGE_VALUES),
6177 /* 4187 */ GIR_Copy, /*NewInsnID*/4, /*OldInsnID*/0, /*OpIdx*/0, // dst
6178 /* 4191 */ GIR_AddSimpleTempRegister, /*InsnID*/4, /*TempRegID*/4,
6179 /* 4194 */ GIR_AddSimpleTempRegister, /*InsnID*/4, /*TempRegID*/5,
6180 /* 4197 */ GIR_EraseRootFromParent_Done,
6181 /* 4198 */ // Label 213: @4198
6182 /* 4198 */ GIM_Try, /*On fail goto*//*Label 214*/ GIMT_Encode4(4222), // Rule ID 128 //
6183 /* 4203 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule91Enabled),
6184 /* 4206 */ // MIs[0] dst
6185 /* 4206 */ // No operand predicates
6186 /* 4206 */ // MIs[0] src
6187 /* 4206 */ // No operand predicates
6188 /* 4206 */ // MIs[0] src
6189 /* 4206 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
6190 /* 4211 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6191 /* 4216 */ // Combiner Rule #91: binop_same_val @ [__binop_same_val_match_0[0]]
6192 /* 4216 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6193 /* 4221 */ GIR_EraseRootFromParent_Done,
6194 /* 4222 */ // Label 214: @4222
6195 /* 4222 */ GIM_Try, /*On fail goto*//*Label 215*/ GIMT_Encode4(4243), // Rule ID 86 //
6196 /* 4227 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule77Enabled),
6197 /* 4230 */ // MIs[0] dst
6198 /* 4230 */ // No operand predicates
6199 /* 4230 */ // MIs[0] __undef_to_int_zero_match_0.x
6200 /* 4230 */ // No operand predicates
6201 /* 4230 */ // MIs[0] __undef_to_int_zero_match_0.y
6202 /* 4230 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
6203 /* 4234 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
6204 /* 4238 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6205 /* 4240 */ // Combiner Rule #77: undef_to_int_zero @ [__undef_to_int_zero_match_0[2]]
6206 /* 4240 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner33),
6207 /* 4243 */ // Label 215: @4243
6208 /* 4243 */ GIM_Try, /*On fail goto*//*Label 216*/ GIMT_Encode4(4254), // Rule ID 80 //
6209 /* 4248 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule74Enabled),
6210 /* 4251 */ // MIs[0] dst
6211 /* 4251 */ // No operand predicates
6212 /* 4251 */ // MIs[0] src1
6213 /* 4251 */ // No operand predicates
6214 /* 4251 */ // MIs[0] src2
6215 /* 4251 */ // No operand predicates
6216 /* 4251 */ // Combiner Rule #74: load_and_mask
6217 /* 4251 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner30),
6218 /* 4254 */ // Label 216: @4254
6219 /* 4254 */ GIM_Try, /*On fail goto*//*Label 217*/ GIMT_Encode4(4265), // Rule ID 182 //
6220 /* 4259 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule129Enabled),
6221 /* 4262 */ // MIs[0] dst
6222 /* 4262 */ // No operand predicates
6223 /* 4262 */ // MIs[0] src1
6224 /* 4262 */ // No operand predicates
6225 /* 4262 */ // MIs[0] src2
6226 /* 4262 */ // No operand predicates
6227 /* 4262 */ // Combiner Rule #129: narrow_binop_feeding_and
6228 /* 4262 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner59),
6229 /* 4265 */ // Label 217: @4265
6230 /* 4265 */ GIM_Try, /*On fail goto*//*Label 218*/ GIMT_Encode4(4276), // Rule ID 196 //
6231 /* 4270 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule143Enabled),
6232 /* 4273 */ // MIs[0] dst
6233 /* 4273 */ // No operand predicates
6234 /* 4273 */ // MIs[0] src1
6235 /* 4273 */ // No operand predicates
6236 /* 4273 */ // MIs[0] src2
6237 /* 4273 */ // No operand predicates
6238 /* 4273 */ // Combiner Rule #143: redundant_and
6239 /* 4273 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner64),
6240 /* 4276 */ // Label 218: @4276
6241 /* 4276 */ GIM_Try, /*On fail goto*//*Label 219*/ GIMT_Encode4(4287), // Rule ID 323 //
6242 /* 4281 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule206Enabled),
6243 /* 4284 */ // MIs[0] dst
6244 /* 4284 */ // No operand predicates
6245 /* 4284 */ // MIs[0] src1
6246 /* 4284 */ // No operand predicates
6247 /* 4284 */ // MIs[0] src2
6248 /* 4284 */ // No operand predicates
6249 /* 4284 */ // Combiner Rule #206: and_or_disjoint_mask
6250 /* 4284 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner99),
6251 /* 4287 */ // Label 219: @4287
6252 /* 4287 */ GIM_Try, /*On fail goto*//*Label 220*/ GIMT_Encode4(4298), // Rule ID 398 //
6253 /* 4292 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule229Enabled),
6254 /* 4295 */ // MIs[0] dst
6255 /* 4295 */ // No operand predicates
6256 /* 4295 */ // MIs[0] src1
6257 /* 4295 */ // No operand predicates
6258 /* 4295 */ // MIs[0] src2
6259 /* 4295 */ // No operand predicates
6260 /* 4295 */ // Combiner Rule #229: match_ands
6261 /* 4295 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner120),
6262 /* 4298 */ // Label 220: @4298
6263 /* 4298 */ GIM_Reject,
6264 /* 4299 */ // Label 9: @4299
6265 /* 4299 */ GIM_Try, /*On fail goto*//*Label 221*/ GIMT_Encode4(4310), // Rule ID 163 //
6266 /* 4304 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule113Enabled),
6267 /* 4307 */ // Combiner Rule #113: hoist_logic_op_with_same_opcode_hands; wip_match_opcode 'G_OR'
6268 /* 4307 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner46),
6269 /* 4310 */ // Label 221: @4310
6270 /* 4310 */ GIM_Try, /*On fail goto*//*Label 222*/ GIMT_Encode4(4321), // Rule ID 278 //
6271 /* 4315 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
6272 /* 4318 */ // Combiner Rule #194: constant_fold_binop; wip_match_opcode 'G_OR'
6273 /* 4318 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner92),
6274 /* 4321 */ // Label 222: @4321
6275 /* 4321 */ GIM_Try, /*On fail goto*//*Label 223*/ GIMT_Encode4(4332), // Rule ID 336 //
6276 /* 4326 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule215Enabled),
6277 /* 4329 */ // Combiner Rule #215: fold_binop_into_select; wip_match_opcode 'G_OR'
6278 /* 4329 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner108),
6279 /* 4332 */ // Label 223: @4332
6280 /* 4332 */ GIM_Try, /*On fail goto*//*Label 224*/ GIMT_Encode4(4343), // Rule ID 372 //
6281 /* 4337 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule227Enabled),
6282 /* 4340 */ // Combiner Rule #227: commute_int_constant_to_rhs; wip_match_opcode 'G_OR'
6283 /* 4340 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner118),
6284 /* 4343 */ // Label 224: @4343
6285 /* 4343 */ GIM_Try, /*On fail goto*//*Label 225*/ GIMT_Encode4(4354), // Rule ID 442 //
6286 /* 4348 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule269Enabled),
6287 /* 4351 */ // Combiner Rule #269: binop_with_neg; wip_match_opcode 'G_OR'
6288 /* 4351 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner148),
6289 /* 4354 */ // Label 225: @4354
6290 /* 4354 */ GIM_Try, /*On fail goto*//*Label 226*/ GIMT_Encode4(4440), // Rule ID 401 //
6291 /* 4359 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule232Enabled),
6292 /* 4362 */ // MIs[0] root
6293 /* 4362 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
6294 /* 4366 */ // MIs[0] and
6295 /* 4366 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6296 /* 4370 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_AND),
6297 /* 4374 */ // MIs[1] x
6298 /* 4374 */ // No operand predicates
6299 /* 4374 */ // MIs[1] y
6300 /* 4374 */ // No operand predicates
6301 /* 4374 */ // MIs[0] not
6302 /* 4374 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
6303 /* 4378 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_XOR),
6304 /* 4382 */ // MIs[2] y
6305 /* 4382 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/2,
6306 /* 4387 */ // MIs[2] Operand 2
6307 /* 4387 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/2, 255,
6308 /* 4391 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
6309 /* 4393 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
6310 /* 4396 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(18446744073709551615u),
6311 /* 4406 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
6312 /* 4409 */ // Combiner Rule #232: or_and_xor_to_xor_or
6313 /* 4409 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_XOR),
6314 /* 4412 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
6315 /* 4417 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // y
6316 /* 4421 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/1,
6317 /* 4424 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR),
6318 /* 4428 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // root
6319 /* 4432 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // x
6320 /* 4436 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
6321 /* 4439 */ GIR_EraseRootFromParent_Done,
6322 /* 4440 */ // Label 226: @4440
6323 /* 4440 */ GIM_Try, /*On fail goto*//*Label 227*/ GIMT_Encode4(4527), // Rule ID 468 //
6324 /* 4445 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule290Enabled),
6325 /* 4448 */ GIM_RootCheckType, /*Op*/1, /*Type*/GILLT_i64,
6326 /* 4451 */ GIM_RootCheckType, /*Op*/2, /*Type*/GILLT_i64,
6327 /* 4454 */ // MIs[0] dst
6328 /* 4454 */ // No operand predicates
6329 /* 4454 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6330 /* 4458 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ZEXT),
6331 /* 4462 */ GIM_CheckType, /*MI*/1, /*Op*/1, /*Type*/GILLT_i32,
6332 /* 4466 */ GIM_RecordRegType, /*MI*/1, /*Op*/1, /*TempTypeIdx*/255,
6333 /* 4470 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6334 /* 4472 */ GIR_MakeTempReg, /*TempRegID*/2, /*TypeID*/255,
6335 /* 4475 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
6336 /* 4478 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
6337 /* 4481 */ // Combiner Rule #290: combine_or_s64_s32 @ [dst[1]]
6338 /* 4481 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UNMERGE_VALUES),
6339 /* 4484 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
6340 /* 4489 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/1, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
6341 /* 4494 */ GIR_RootToRootCopy, /*OpIdx*/2, // x
6342 /* 4496 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR),
6343 /* 4500 */ GIR_AddTempRegister, /*InsnID*/1, /*TempRegID*/2, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
6344 /* 4505 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
6345 /* 4508 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // y
6346 /* 4512 */ GIR_BuildMI, /*InsnID*/2, /*Opcode*/GIMT_Encode2(TargetOpcode::G_MERGE_VALUES),
6347 /* 4516 */ GIR_Copy, /*NewInsnID*/2, /*OldInsnID*/0, /*OpIdx*/0, // dst
6348 /* 4520 */ GIR_AddSimpleTempRegister, /*InsnID*/2, /*TempRegID*/2,
6349 /* 4523 */ GIR_AddSimpleTempRegister, /*InsnID*/2, /*TempRegID*/1,
6350 /* 4526 */ GIR_EraseRootFromParent_Done,
6351 /* 4527 */ // Label 227: @4527
6352 /* 4527 */ GIM_Try, /*On fail goto*//*Label 228*/ GIMT_Encode4(4574), // Rule ID 258 //
6353 /* 4532 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule184Enabled),
6354 /* 4535 */ // MIs[0] root
6355 /* 4535 */ // No operand predicates
6356 /* 4535 */ // MIs[0] out1
6357 /* 4535 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6358 /* 4539 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FSHL),
6359 /* 4543 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_left_match_0.x
6360 /* 4543 */ // No operand predicates
6361 /* 4543 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_left_match_0.z
6362 /* 4543 */ // No operand predicates
6363 /* 4543 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_left_match_0.y
6364 /* 4543 */ // No operand predicates
6365 /* 4543 */ // MIs[0] out2
6366 /* 4543 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
6367 /* 4547 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SHL),
6368 /* 4551 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_left_match_0.x
6369 /* 4551 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/1,
6370 /* 4556 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_left_match_0.y
6371 /* 4556 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/3,
6372 /* 4561 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6373 /* 4566 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
6374 /* 4568 */ // Combiner Rule #184: funnel_shift_or_shift_to_funnel_shift_left @ [__funnel_shift_or_shift_to_funnel_shift_left_match_0[0]]
6375 /* 4568 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6376 /* 4573 */ GIR_EraseRootFromParent_Done,
6377 /* 4574 */ // Label 228: @4574
6378 /* 4574 */ GIM_Try, /*On fail goto*//*Label 229*/ GIMT_Encode4(4621), // Rule ID 260 //
6379 /* 4579 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule185Enabled),
6380 /* 4582 */ // MIs[0] root
6381 /* 4582 */ // No operand predicates
6382 /* 4582 */ // MIs[0] out1
6383 /* 4582 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6384 /* 4586 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FSHR),
6385 /* 4590 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_right_match_0.z
6386 /* 4590 */ // No operand predicates
6387 /* 4590 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_right_match_0.x
6388 /* 4590 */ // No operand predicates
6389 /* 4590 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_right_match_0.y
6390 /* 4590 */ // No operand predicates
6391 /* 4590 */ // MIs[0] out2
6392 /* 4590 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
6393 /* 4594 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_LSHR),
6394 /* 4598 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_right_match_0.x
6395 /* 4598 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/2,
6396 /* 4603 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_right_match_0.y
6397 /* 4603 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/3,
6398 /* 4608 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6399 /* 4613 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
6400 /* 4615 */ // Combiner Rule #185: funnel_shift_or_shift_to_funnel_shift_right @ [__funnel_shift_or_shift_to_funnel_shift_right_match_0[0]]
6401 /* 4615 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6402 /* 4620 */ GIR_EraseRootFromParent_Done,
6403 /* 4621 */ // Label 229: @4621
6404 /* 4621 */ GIM_Try, /*On fail goto*//*Label 230*/ GIMT_Encode4(4719), // Rule ID 176 //
6405 /* 4626 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule123Enabled),
6406 /* 4629 */ // MIs[0] root
6407 /* 4629 */ // No operand predicates
6408 /* 4629 */ // MIs[0] d1
6409 /* 4629 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6410 /* 4633 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ICMP),
6411 /* 4637 */ // MIs[1] p
6412 /* 4637 */ // No operand predicates
6413 /* 4637 */ // MIs[1] s1
6414 /* 4637 */ GIM_RecordRegType, /*MI*/1, /*Op*/2, /*TempTypeIdx*/255,
6415 /* 4641 */ // MIs[1] Operand 3
6416 /* 4641 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/3, 0,
6417 /* 4645 */ // MIs[0] d2
6418 /* 4645 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
6419 /* 4649 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ICMP),
6420 /* 4653 */ // MIs[2] p
6421 /* 4653 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/1,
6422 /* 4658 */ // MIs[2] s2
6423 /* 4658 */ // No operand predicates
6424 /* 4658 */ // MIs[2] Operand 3
6425 /* 4658 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/3, 0,
6426 /* 4662 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner14),
6427 /* 4666 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
6428 /* 4668 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
6429 /* 4671 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(0),
6430 /* 4681 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
6431 /* 4684 */ // Combiner Rule #123: double_icmp_zero_or_combine
6432 /* 4684 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR),
6433 /* 4687 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
6434 /* 4692 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // s1
6435 /* 4696 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/2, // s2
6436 /* 4700 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ICMP),
6437 /* 4704 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // root
6438 /* 4708 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // p
6439 /* 4712 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
6440 /* 4715 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/1,
6441 /* 4718 */ GIR_EraseRootFromParent_Done,
6442 /* 4719 */ // Label 230: @4719
6443 /* 4719 */ GIM_Try, /*On fail goto*//*Label 231*/ GIMT_Encode4(4768), // Rule ID 400 //
6444 /* 4724 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule231Enabled),
6445 /* 4727 */ // MIs[0] root
6446 /* 4727 */ // No operand predicates
6447 /* 4727 */ // MIs[0] and
6448 /* 4727 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6449 /* 4731 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_AND),
6450 /* 4735 */ // MIs[1] x
6451 /* 4735 */ // No operand predicates
6452 /* 4735 */ // MIs[1] not
6453 /* 4735 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
6454 /* 4739 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_XOR),
6455 /* 4743 */ // MIs[2] y
6456 /* 4743 */ // No operand predicates
6457 /* 4743 */ // MIs[2] Operand 2
6458 /* 4743 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/2, 255,
6459 /* 4747 */ // MIs[0] y
6460 /* 4747 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/2, /*OtherOpIdx*/1,
6461 /* 4752 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
6462 /* 4754 */ // Combiner Rule #231: or_and_xor_to_or
6463 /* 4754 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR),
6464 /* 4757 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
6465 /* 4759 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
6466 /* 4763 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // y
6467 /* 4767 */ GIR_EraseRootFromParent_Done,
6468 /* 4768 */ // Label 231: @4768
6469 /* 4768 */ GIM_Try, /*On fail goto*//*Label 232*/ GIMT_Encode4(4802), // Rule ID 452 //
6470 /* 4773 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule278Enabled),
6471 /* 4776 */ // MIs[0] dst
6472 /* 4776 */ // No operand predicates
6473 /* 4776 */ // MIs[0] __combine_or_of_and_match_0.and
6474 /* 4776 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6475 /* 4780 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_AND),
6476 /* 4784 */ // MIs[1] x
6477 /* 4784 */ // No operand predicates
6478 /* 4784 */ // MIs[1] y
6479 /* 4784 */ // No operand predicates
6480 /* 4784 */ // MIs[0] x
6481 /* 4784 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/1,
6482 /* 4789 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
6483 /* 4794 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6484 /* 4796 */ // Combiner Rule #278: combine_or_of_and @ [__combine_or_of_and_match_0[0]]
6485 /* 4796 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
6486 /* 4801 */ GIR_EraseRootFromParent_Done,
6487 /* 4802 */ // Label 232: @4802
6488 /* 4802 */ GIM_Try, /*On fail goto*//*Label 233*/ GIMT_Encode4(4836), // Rule ID 453 //
6489 /* 4807 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule278Enabled),
6490 /* 4810 */ // MIs[0] dst
6491 /* 4810 */ // No operand predicates
6492 /* 4810 */ // MIs[0] __combine_or_of_and_match_0.and
6493 /* 4810 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6494 /* 4814 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_AND),
6495 /* 4818 */ // MIs[1] y
6496 /* 4818 */ // No operand predicates
6497 /* 4818 */ // MIs[1] x
6498 /* 4818 */ // No operand predicates
6499 /* 4818 */ // MIs[0] x
6500 /* 4818 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/2,
6501 /* 4823 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/2,
6502 /* 4828 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6503 /* 4830 */ // Combiner Rule #278: combine_or_of_and @ [__combine_or_of_and_match_0[1]]
6504 /* 4830 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/2,
6505 /* 4835 */ GIR_EraseRootFromParent_Done,
6506 /* 4836 */ // Label 233: @4836
6507 /* 4836 */ GIM_Try, /*On fail goto*//*Label 234*/ GIMT_Encode4(4883), // Rule ID 261 //
6508 /* 4841 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule185Enabled),
6509 /* 4844 */ // MIs[0] root
6510 /* 4844 */ // No operand predicates
6511 /* 4844 */ // MIs[0] out2
6512 /* 4844 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6513 /* 4848 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_LSHR),
6514 /* 4852 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_right_match_0.x
6515 /* 4852 */ // No operand predicates
6516 /* 4852 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_right_match_0.y
6517 /* 4852 */ // No operand predicates
6518 /* 4852 */ // MIs[0] out1
6519 /* 4852 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
6520 /* 4856 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_FSHR),
6521 /* 4860 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_right_match_0.z
6522 /* 4860 */ // No operand predicates
6523 /* 4860 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_right_match_0.x
6524 /* 4860 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/1,
6525 /* 4865 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_right_match_0.y
6526 /* 4865 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/3, /*OtherMI*/1, /*OtherOpIdx*/2,
6527 /* 4870 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
6528 /* 4875 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
6529 /* 4877 */ // Combiner Rule #185: funnel_shift_or_shift_to_funnel_shift_right @ [__funnel_shift_or_shift_to_funnel_shift_right_match_0[1]]
6530 /* 4877 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
6531 /* 4882 */ GIR_EraseRootFromParent_Done,
6532 /* 4883 */ // Label 234: @4883
6533 /* 4883 */ GIM_Try, /*On fail goto*//*Label 235*/ GIMT_Encode4(4930), // Rule ID 259 //
6534 /* 4888 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule184Enabled),
6535 /* 4891 */ // MIs[0] root
6536 /* 4891 */ // No operand predicates
6537 /* 4891 */ // MIs[0] out2
6538 /* 4891 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6539 /* 4895 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SHL),
6540 /* 4899 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_left_match_0.x
6541 /* 4899 */ // No operand predicates
6542 /* 4899 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_left_match_0.y
6543 /* 4899 */ // No operand predicates
6544 /* 4899 */ // MIs[0] out1
6545 /* 4899 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
6546 /* 4903 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_FSHL),
6547 /* 4907 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_left_match_0.x
6548 /* 4907 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/1,
6549 /* 4912 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_left_match_0.z
6550 /* 4912 */ // No operand predicates
6551 /* 4912 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_left_match_0.y
6552 /* 4912 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/3, /*OtherMI*/1, /*OtherOpIdx*/2,
6553 /* 4917 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
6554 /* 4922 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
6555 /* 4924 */ // Combiner Rule #184: funnel_shift_or_shift_to_funnel_shift_left @ [__funnel_shift_or_shift_to_funnel_shift_left_match_0[1]]
6556 /* 4924 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
6557 /* 4929 */ GIR_EraseRootFromParent_Done,
6558 /* 4930 */ // Label 235: @4930
6559 /* 4930 */ GIM_Try, /*On fail goto*//*Label 236*/ GIMT_Encode4(4980), // Rule ID 405 //
6560 /* 4935 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule236Enabled),
6561 /* 4938 */ // MIs[0] root
6562 /* 4938 */ // No operand predicates
6563 /* 4938 */ // MIs[0] xor
6564 /* 4938 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6565 /* 4942 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_XOR),
6566 /* 4946 */ // MIs[1] x
6567 /* 4946 */ // No operand predicates
6568 /* 4946 */ // MIs[1] y
6569 /* 4946 */ // No operand predicates
6570 /* 4946 */ // MIs[0] and
6571 /* 4946 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
6572 /* 4950 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_AND),
6573 /* 4954 */ // MIs[2] x
6574 /* 4954 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/1,
6575 /* 4959 */ // MIs[2] y
6576 /* 4959 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/2,
6577 /* 4964 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
6578 /* 4966 */ // Combiner Rule #236: or_xor_and
6579 /* 4966 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR),
6580 /* 4969 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
6581 /* 4971 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
6582 /* 4975 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // y
6583 /* 4979 */ GIR_EraseRootFromParent_Done,
6584 /* 4980 */ // Label 236: @4980
6585 /* 4980 */ GIM_Try, /*On fail goto*//*Label 237*/ GIMT_Encode4(5030), // Rule ID 404 //
6586 /* 4985 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule235Enabled),
6587 /* 4988 */ // MIs[0] root
6588 /* 4988 */ // No operand predicates
6589 /* 4988 */ // MIs[0] xor
6590 /* 4988 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6591 /* 4992 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_XOR),
6592 /* 4996 */ // MIs[1] x
6593 /* 4996 */ // No operand predicates
6594 /* 4996 */ // MIs[1] y
6595 /* 4996 */ // No operand predicates
6596 /* 4996 */ // MIs[0] or
6597 /* 4996 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
6598 /* 5000 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_OR),
6599 /* 5004 */ // MIs[2] x
6600 /* 5004 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/1,
6601 /* 5009 */ // MIs[2] y
6602 /* 5009 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/2,
6603 /* 5014 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
6604 /* 5016 */ // Combiner Rule #235: or_xor_or
6605 /* 5016 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR),
6606 /* 5019 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
6607 /* 5021 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
6608 /* 5025 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // y
6609 /* 5029 */ GIR_EraseRootFromParent_Done,
6610 /* 5030 */ // Label 237: @5030
6611 /* 5030 */ GIM_Try, /*On fail goto*//*Label 238*/ GIMT_Encode4(5051), // Rule ID 88 //
6612 /* 5035 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule78Enabled),
6613 /* 5038 */ // MIs[0] dst
6614 /* 5038 */ // No operand predicates
6615 /* 5038 */ // MIs[0] __undef_to_negative_one_match_0.x
6616 /* 5038 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6617 /* 5042 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
6618 /* 5046 */ // MIs[0] __undef_to_negative_one_match_0.y
6619 /* 5046 */ // No operand predicates
6620 /* 5046 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6621 /* 5048 */ // Combiner Rule #78: undef_to_negative_one @ [__undef_to_negative_one_match_0[0]]
6622 /* 5048 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner34),
6623 /* 5051 */ // Label 238: @5051
6624 /* 5051 */ GIM_Try, /*On fail goto*//*Label 239*/ GIMT_Encode4(5252),
6625 /* 5056 */ GIM_RootCheckType, /*Op*/1, /*Type*/GILLT_i64,
6626 /* 5059 */ GIM_RootCheckType, /*Op*/2, /*Type*/GILLT_i64,
6627 /* 5062 */ GIM_Try, /*On fail goto*//*Label 240*/ GIMT_Encode4(5143), // Rule ID 467 //
6628 /* 5067 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule290Enabled),
6629 /* 5070 */ // MIs[0] dst
6630 /* 5070 */ // No operand predicates
6631 /* 5070 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
6632 /* 5074 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ZEXT),
6633 /* 5078 */ GIM_CheckType, /*MI*/1, /*Op*/1, /*Type*/GILLT_i32,
6634 /* 5082 */ GIM_RecordRegType, /*MI*/1, /*Op*/1, /*TempTypeIdx*/255,
6635 /* 5086 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6636 /* 5088 */ GIR_MakeTempReg, /*TempRegID*/2, /*TypeID*/255,
6637 /* 5091 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
6638 /* 5094 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
6639 /* 5097 */ // Combiner Rule #290: combine_or_s64_s32 @ [dst[0]]
6640 /* 5097 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UNMERGE_VALUES),
6641 /* 5100 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
6642 /* 5105 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/1, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
6643 /* 5110 */ GIR_RootToRootCopy, /*OpIdx*/1, // x
6644 /* 5112 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR),
6645 /* 5116 */ GIR_AddTempRegister, /*InsnID*/1, /*TempRegID*/2, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
6646 /* 5121 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
6647 /* 5124 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // y
6648 /* 5128 */ GIR_BuildMI, /*InsnID*/2, /*Opcode*/GIMT_Encode2(TargetOpcode::G_MERGE_VALUES),
6649 /* 5132 */ GIR_Copy, /*NewInsnID*/2, /*OldInsnID*/0, /*OpIdx*/0, // dst
6650 /* 5136 */ GIR_AddSimpleTempRegister, /*InsnID*/2, /*TempRegID*/2,
6651 /* 5139 */ GIR_AddSimpleTempRegister, /*InsnID*/2, /*TempRegID*/1,
6652 /* 5142 */ GIR_EraseRootFromParent_Done,
6653 /* 5143 */ // Label 240: @5143
6654 /* 5143 */ GIM_Try, /*On fail goto*//*Label 241*/ GIMT_Encode4(5251), // Rule ID 465 //
6655 /* 5148 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule288Enabled),
6656 /* 5151 */ // MIs[0] dst
6657 /* 5151 */ // No operand predicates
6658 /* 5151 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner33),
6659 /* 5155 */ GIR_MakeTempReg, /*TempRegID*/5, /*TypeID*/GILLT_i32,
6660 /* 5158 */ GIR_MakeTempReg, /*TempRegID*/4, /*TypeID*/GILLT_i32,
6661 /* 5161 */ GIR_MakeTempReg, /*TempRegID*/3, /*TypeID*/GILLT_i32,
6662 /* 5164 */ GIR_MakeTempReg, /*TempRegID*/2, /*TypeID*/GILLT_i32,
6663 /* 5167 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/GILLT_i32,
6664 /* 5170 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/GILLT_i32,
6665 /* 5173 */ // Combiner Rule #288: combine_or_s64_with_s32_mask
6666 /* 5173 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UNMERGE_VALUES),
6667 /* 5176 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
6668 /* 5181 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/1, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
6669 /* 5186 */ GIR_RootToRootCopy, /*OpIdx*/1, // x
6670 /* 5188 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UNMERGE_VALUES),
6671 /* 5192 */ GIR_AddTempRegister, /*InsnID*/1, /*TempRegID*/2, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
6672 /* 5197 */ GIR_AddTempRegister, /*InsnID*/1, /*TempRegID*/3, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
6673 /* 5202 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/2, // y
6674 /* 5206 */ GIR_BuildMI, /*InsnID*/2, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR),
6675 /* 5210 */ GIR_AddTempRegister, /*InsnID*/2, /*TempRegID*/4, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
6676 /* 5215 */ GIR_AddSimpleTempRegister, /*InsnID*/2, /*TempRegID*/0,
6677 /* 5218 */ GIR_AddSimpleTempRegister, /*InsnID*/2, /*TempRegID*/2,
6678 /* 5221 */ GIR_BuildMI, /*InsnID*/3, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR),
6679 /* 5225 */ GIR_AddTempRegister, /*InsnID*/3, /*TempRegID*/5, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
6680 /* 5230 */ GIR_AddSimpleTempRegister, /*InsnID*/3, /*TempRegID*/1,
6681 /* 5233 */ GIR_AddSimpleTempRegister, /*InsnID*/3, /*TempRegID*/3,
6682 /* 5236 */ GIR_BuildMI, /*InsnID*/4, /*Opcode*/GIMT_Encode2(TargetOpcode::G_MERGE_VALUES),
6683 /* 5240 */ GIR_Copy, /*NewInsnID*/4, /*OldInsnID*/0, /*OpIdx*/0, // dst
6684 /* 5244 */ GIR_AddSimpleTempRegister, /*InsnID*/4, /*TempRegID*/4,
6685 /* 5247 */ GIR_AddSimpleTempRegister, /*InsnID*/4, /*TempRegID*/5,
6686 /* 5250 */ GIR_EraseRootFromParent_Done,
6687 /* 5251 */ // Label 241: @5251
6688 /* 5251 */ GIM_Reject,
6689 /* 5252 */ // Label 239: @5252
6690 /* 5252 */ GIM_Try, /*On fail goto*//*Label 242*/ GIMT_Encode4(5276), // Rule ID 129 //
6691 /* 5257 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule91Enabled),
6692 /* 5260 */ // MIs[0] dst
6693 /* 5260 */ // No operand predicates
6694 /* 5260 */ // MIs[0] src
6695 /* 5260 */ // No operand predicates
6696 /* 5260 */ // MIs[0] src
6697 /* 5260 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
6698 /* 5265 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6699 /* 5270 */ // Combiner Rule #91: binop_same_val @ [__binop_same_val_match_0[1]]
6700 /* 5270 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6701 /* 5275 */ GIR_EraseRootFromParent_Done,
6702 /* 5276 */ // Label 242: @5276
6703 /* 5276 */ GIM_Try, /*On fail goto*//*Label 243*/ GIMT_Encode4(5310), // Rule ID 454 //
6704 /* 5281 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule278Enabled),
6705 /* 5284 */ // MIs[0] dst
6706 /* 5284 */ // No operand predicates
6707 /* 5284 */ // MIs[0] x
6708 /* 5284 */ // No operand predicates
6709 /* 5284 */ // MIs[0] __combine_or_of_and_match_0.and
6710 /* 5284 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
6711 /* 5288 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_AND),
6712 /* 5292 */ // MIs[1] x
6713 /* 5292 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/1, /*OpIdx*/1, /*OtherMI*/0, /*OtherOpIdx*/1,
6714 /* 5297 */ // MIs[1] y
6715 /* 5297 */ // No operand predicates
6716 /* 5297 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6717 /* 5302 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6718 /* 5304 */ // Combiner Rule #278: combine_or_of_and @ [__combine_or_of_and_match_0[2]]
6719 /* 5304 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6720 /* 5309 */ GIR_EraseRootFromParent_Done,
6721 /* 5310 */ // Label 243: @5310
6722 /* 5310 */ GIM_Try, /*On fail goto*//*Label 244*/ GIMT_Encode4(5344), // Rule ID 455 //
6723 /* 5315 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule278Enabled),
6724 /* 5318 */ // MIs[0] dst
6725 /* 5318 */ // No operand predicates
6726 /* 5318 */ // MIs[0] x
6727 /* 5318 */ // No operand predicates
6728 /* 5318 */ // MIs[0] __combine_or_of_and_match_0.and
6729 /* 5318 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
6730 /* 5322 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_AND),
6731 /* 5326 */ // MIs[1] y
6732 /* 5326 */ // No operand predicates
6733 /* 5326 */ // MIs[1] x
6734 /* 5326 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/1, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
6735 /* 5331 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6736 /* 5336 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6737 /* 5338 */ // Combiner Rule #278: combine_or_of_and @ [__combine_or_of_and_match_0[3]]
6738 /* 5338 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6739 /* 5343 */ GIR_EraseRootFromParent_Done,
6740 /* 5344 */ // Label 244: @5344
6741 /* 5344 */ GIM_Try, /*On fail goto*//*Label 245*/ GIMT_Encode4(5365), // Rule ID 89 //
6742 /* 5349 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule78Enabled),
6743 /* 5352 */ // MIs[0] dst
6744 /* 5352 */ // No operand predicates
6745 /* 5352 */ // MIs[0] __undef_to_negative_one_match_0.x
6746 /* 5352 */ // No operand predicates
6747 /* 5352 */ // MIs[0] __undef_to_negative_one_match_0.y
6748 /* 5352 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
6749 /* 5356 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
6750 /* 5360 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6751 /* 5362 */ // Combiner Rule #78: undef_to_negative_one @ [__undef_to_negative_one_match_0[1]]
6752 /* 5362 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner34),
6753 /* 5365 */ // Label 245: @5365
6754 /* 5365 */ GIM_Try, /*On fail goto*//*Label 246*/ GIMT_Encode4(5388), // Rule ID 120 //
6755 /* 5370 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled),
6756 /* 5373 */ // MIs[0] dst
6757 /* 5373 */ // No operand predicates
6758 /* 5373 */ // MIs[0] lhs
6759 /* 5373 */ // No operand predicates
6760 /* 5373 */ // MIs[0] Operand 2
6761 /* 5373 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
6762 /* 5377 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6763 /* 5382 */ // Combiner Rule #90: right_identity_zero @ [__right_identity_zero_match_0[2]]
6764 /* 5382 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6765 /* 5387 */ GIR_EraseRootFromParent_Done,
6766 /* 5388 */ // Label 246: @5388
6767 /* 5388 */ GIM_Try, /*On fail goto*//*Label 247*/ GIMT_Encode4(5399), // Rule ID 197 //
6768 /* 5393 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule144Enabled),
6769 /* 5396 */ // MIs[0] dst
6770 /* 5396 */ // No operand predicates
6771 /* 5396 */ // MIs[0] src1
6772 /* 5396 */ // No operand predicates
6773 /* 5396 */ // MIs[0] src2
6774 /* 5396 */ // No operand predicates
6775 /* 5396 */ // Combiner Rule #144: redundant_or
6776 /* 5396 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner65),
6777 /* 5399 */ // Label 247: @5399
6778 /* 5399 */ GIM_Try, /*On fail goto*//*Label 248*/ GIMT_Encode4(5410), // Rule ID 246 //
6779 /* 5404 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule177Enabled),
6780 /* 5407 */ // MIs[0] dst
6781 /* 5407 */ // No operand predicates
6782 /* 5407 */ // MIs[0] src1
6783 /* 5407 */ // No operand predicates
6784 /* 5407 */ // MIs[0] src2
6785 /* 5407 */ // No operand predicates
6786 /* 5407 */ // Combiner Rule #177: load_or_combine
6787 /* 5407 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner83),
6788 /* 5410 */ // Label 248: @5410
6789 /* 5410 */ GIM_Try, /*On fail goto*//*Label 249*/ GIMT_Encode4(5421), // Rule ID 251 //
6790 /* 5415 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule179Enabled),
6791 /* 5418 */ // MIs[0] dst
6792 /* 5418 */ // No operand predicates
6793 /* 5418 */ // MIs[0] src1
6794 /* 5418 */ // No operand predicates
6795 /* 5418 */ // MIs[0] src2
6796 /* 5418 */ // No operand predicates
6797 /* 5418 */ // Combiner Rule #179: funnel_shift_from_or_shift
6798 /* 5418 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner85),
6799 /* 5421 */ // Label 249: @5421
6800 /* 5421 */ GIM_Try, /*On fail goto*//*Label 250*/ GIMT_Encode4(5432), // Rule ID 399 //
6801 /* 5426 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule230Enabled),
6802 /* 5429 */ // MIs[0] dst
6803 /* 5429 */ // No operand predicates
6804 /* 5429 */ // MIs[0] src1
6805 /* 5429 */ // No operand predicates
6806 /* 5429 */ // MIs[0] src2
6807 /* 5429 */ // No operand predicates
6808 /* 5429 */ // Combiner Rule #230: match_ors
6809 /* 5429 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner121),
6810 /* 5432 */ // Label 250: @5432
6811 /* 5432 */ GIM_Reject,
6812 /* 5433 */ // Label 10: @5433
6813 /* 5433 */ GIM_Try, /*On fail goto*//*Label 251*/ GIMT_Encode4(5444), // Rule ID 164 //
6814 /* 5438 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule113Enabled),
6815 /* 5441 */ // Combiner Rule #113: hoist_logic_op_with_same_opcode_hands; wip_match_opcode 'G_XOR'
6816 /* 5441 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner46),
6817 /* 5444 */ // Label 251: @5444
6818 /* 5444 */ GIM_Try, /*On fail goto*//*Label 252*/ GIMT_Encode4(5455), // Rule ID 281 //
6819 /* 5449 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
6820 /* 5452 */ // Combiner Rule #194: constant_fold_binop; wip_match_opcode 'G_XOR'
6821 /* 5452 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner92),
6822 /* 5455 */ // Label 252: @5455
6823 /* 5455 */ GIM_Try, /*On fail goto*//*Label 253*/ GIMT_Encode4(5466), // Rule ID 337 //
6824 /* 5460 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule215Enabled),
6825 /* 5463 */ // Combiner Rule #215: fold_binop_into_select; wip_match_opcode 'G_XOR'
6826 /* 5463 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner108),
6827 /* 5466 */ // Label 253: @5466
6828 /* 5466 */ GIM_Try, /*On fail goto*//*Label 254*/ GIMT_Encode4(5477), // Rule ID 373 //
6829 /* 5471 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule227Enabled),
6830 /* 5474 */ // Combiner Rule #227: commute_int_constant_to_rhs; wip_match_opcode 'G_XOR'
6831 /* 5474 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner118),
6832 /* 5477 */ // Label 254: @5477
6833 /* 5477 */ GIM_Try, /*On fail goto*//*Label 255*/ GIMT_Encode4(5488), // Rule ID 443 //
6834 /* 5482 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule269Enabled),
6835 /* 5485 */ // Combiner Rule #269: binop_with_neg; wip_match_opcode 'G_XOR'
6836 /* 5485 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner148),
6837 /* 5488 */ // Label 255: @5488
6838 /* 5488 */ GIM_Try, /*On fail goto*//*Label 256*/ GIMT_Encode4(5548), // Rule ID 13 //
6839 /* 5493 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule13Enabled),
6840 /* 5496 */ // MIs[0] root
6841 /* 5496 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
6842 /* 5500 */ // MIs[0] add
6843 /* 5500 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6844 /* 5504 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
6845 /* 5508 */ // MIs[1] A
6846 /* 5508 */ // No operand predicates
6847 /* 5508 */ // MIs[1] Operand 2
6848 /* 5508 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/2, 255,
6849 /* 5512 */ // MIs[0] Operand 2
6850 /* 5512 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 255,
6851 /* 5516 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner1),
6852 /* 5520 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6853 /* 5522 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
6854 /* 5525 */ GIR_BuildConstant, /*TempRegID*/0, /*Val*/GIMT_Encode8(0),
6855 /* 5535 */ // Combiner Rule #13: NotAPlusNegOne
6856 /* 5535 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB),
6857 /* 5538 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
6858 /* 5540 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/0,
6859 /* 5543 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // A
6860 /* 5547 */ GIR_EraseRootFromParent_Done,
6861 /* 5548 */ // Label 256: @5548
6862 /* 5548 */ GIM_Try, /*On fail goto*//*Label 257*/ GIMT_Encode4(5569), // Rule ID 106 //
6863 /* 5553 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule83Enabled),
6864 /* 5556 */ // MIs[0] dst
6865 /* 5556 */ // No operand predicates
6866 /* 5556 */ // MIs[0] __propagate_undef_any_op_match_0.x
6867 /* 5556 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
6868 /* 5560 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
6869 /* 5564 */ // MIs[0] __propagate_undef_any_op_match_0.y
6870 /* 5564 */ // No operand predicates
6871 /* 5564 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6872 /* 5566 */ // Combiner Rule #83: propagate_undef_any_op @ [__propagate_undef_any_op_match_0[2]]
6873 /* 5566 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner35),
6874 /* 5569 */ // Label 257: @5569
6875 /* 5569 */ GIM_Try, /*On fail goto*//*Label 258*/ GIMT_Encode4(5608), // Rule ID 131 //
6876 /* 5574 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule92Enabled),
6877 /* 5577 */ // MIs[0] dst
6878 /* 5577 */ // No operand predicates
6879 /* 5577 */ // MIs[0] x
6880 /* 5577 */ GIM_RecordRegType, /*MI*/0, /*Op*/1, /*TempTypeIdx*/255,
6881 /* 5581 */ // MIs[0] x
6882 /* 5581 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1,
6883 /* 5586 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
6884 /* 5589 */ GIR_BuildConstant, /*TempRegID*/0, /*Val*/GIMT_Encode8(0),
6885 /* 5599 */ // Combiner Rule #92: same_val_zero @ [__same_val_zero_match_0[1]]
6886 /* 5599 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::COPY),
6887 /* 5602 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
6888 /* 5604 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/0,
6889 /* 5607 */ GIR_EraseRootFromParent_Done,
6890 /* 5608 */ // Label 258: @5608
6891 /* 5608 */ GIM_Try, /*On fail goto*//*Label 259*/ GIMT_Encode4(5629), // Rule ID 109 //
6892 /* 5613 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule83Enabled),
6893 /* 5616 */ // MIs[0] dst
6894 /* 5616 */ // No operand predicates
6895 /* 5616 */ // MIs[0] __propagate_undef_any_op_match_0.x
6896 /* 5616 */ // No operand predicates
6897 /* 5616 */ // MIs[0] __propagate_undef_any_op_match_0.y
6898 /* 5616 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
6899 /* 5620 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
6900 /* 5624 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
6901 /* 5626 */ // Combiner Rule #83: propagate_undef_any_op @ [__propagate_undef_any_op_match_0[5]]
6902 /* 5626 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner35),
6903 /* 5629 */ // Label 259: @5629
6904 /* 5629 */ GIM_Try, /*On fail goto*//*Label 260*/ GIMT_Encode4(5652), // Rule ID 121 //
6905 /* 5634 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled),
6906 /* 5637 */ // MIs[0] dst
6907 /* 5637 */ // No operand predicates
6908 /* 5637 */ // MIs[0] lhs
6909 /* 5637 */ // No operand predicates
6910 /* 5637 */ // MIs[0] Operand 2
6911 /* 5637 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
6912 /* 5641 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6913 /* 5646 */ // Combiner Rule #90: right_identity_zero @ [__right_identity_zero_match_0[3]]
6914 /* 5646 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
6915 /* 5651 */ GIR_EraseRootFromParent_Done,
6916 /* 5652 */ // Label 260: @5652
6917 /* 5652 */ GIM_Try, /*On fail goto*//*Label 261*/ GIMT_Encode4(5663), // Rule ID 202 //
6918 /* 5657 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule149Enabled),
6919 /* 5660 */ // MIs[0] dst
6920 /* 5660 */ // No operand predicates
6921 /* 5660 */ // MIs[0] src1
6922 /* 5660 */ // No operand predicates
6923 /* 5660 */ // MIs[0] src2
6924 /* 5660 */ // No operand predicates
6925 /* 5660 */ // Combiner Rule #149: not_cmp_fold
6926 /* 5660 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner70),
6927 /* 5663 */ // Label 261: @5663
6928 /* 5663 */ GIM_Try, /*On fail goto*//*Label 262*/ GIMT_Encode4(5674), // Rule ID 234 //
6929 /* 5668 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule173Enabled),
6930 /* 5671 */ // MIs[0] dst
6931 /* 5671 */ // No operand predicates
6932 /* 5671 */ // MIs[0] src1
6933 /* 5671 */ // No operand predicates
6934 /* 5671 */ // MIs[0] src2
6935 /* 5671 */ // No operand predicates
6936 /* 5671 */ // Combiner Rule #173: xor_of_and_with_same_reg
6937 /* 5671 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80),
6938 /* 5674 */ // Label 262: @5674
6939 /* 5674 */ GIM_Reject,
6940 /* 5675 */ // Label 11: @5675
6941 /* 5675 */ GIM_Try, /*On fail goto*//*Label 263*/ GIMT_Encode4(5689), // Rule ID 159 //
6942 /* 5680 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule111Enabled),
6943 /* 5683 */ GIM_CheckNumOperandsGE, /*MI*/0, /*Expected*/2,
6944 /* 5686 */ // MIs[0] dst
6945 /* 5686 */ // No operand predicates
6946 /* 5686 */ // MIs[0] srcs
6947 /* 5686 */ // No operand predicates
6948 /* 5686 */ // Combiner Rule #111: extend_through_phis
6949 /* 5686 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner45),
6950 /* 5689 */ // Label 263: @5689
6951 /* 5689 */ GIM_Reject,
6952 /* 5690 */ // Label 12: @5690
6953 /* 5690 */ GIM_Try, /*On fail goto*//*Label 264*/ GIMT_Encode4(5701), // Rule ID 415 //
6954 /* 5695 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule246Enabled),
6955 /* 5698 */ // Combiner Rule #246: unmerge_anyext_build_vector; wip_match_opcode 'G_UNMERGE_VALUES'
6956 /* 5698 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner131),
6957 /* 5701 */ // Label 264: @5701
6958 /* 5701 */ GIM_Try, /*On fail goto*//*Label 265*/ GIMT_Encode4(5712), // Rule ID 416 //
6959 /* 5706 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule247Enabled),
6960 /* 5709 */ // Combiner Rule #247: unmerge_merge; wip_match_opcode 'G_UNMERGE_VALUES'
6961 /* 5709 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner132),
6962 /* 5712 */ // Label 265: @5712
6963 /* 5712 */ GIM_Try, /*On fail goto*//*Label 266*/ GIMT_Encode4(5723), // Rule ID 418 //
6964 /* 5717 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule249Enabled),
6965 /* 5720 */ // Combiner Rule #249: unmerge_cst; wip_match_opcode 'G_UNMERGE_VALUES'
6966 /* 5720 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner134),
6967 /* 5723 */ // Label 266: @5723
6968 /* 5723 */ GIM_Try, /*On fail goto*//*Label 267*/ GIMT_Encode4(5734), // Rule ID 419 //
6969 /* 5728 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule250Enabled),
6970 /* 5731 */ // Combiner Rule #250: unmerge_undef; wip_match_opcode 'G_UNMERGE_VALUES'
6971 /* 5731 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner135),
6972 /* 5734 */ // Label 267: @5734
6973 /* 5734 */ GIM_Try, /*On fail goto*//*Label 268*/ GIMT_Encode4(5745), // Rule ID 420 //
6974 /* 5739 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule251Enabled),
6975 /* 5742 */ // Combiner Rule #251: unmerge_dead_to_trunc; wip_match_opcode 'G_UNMERGE_VALUES'
6976 /* 5742 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner136),
6977 /* 5745 */ // Label 268: @5745
6978 /* 5745 */ GIM_Try, /*On fail goto*//*Label 269*/ GIMT_Encode4(5756), // Rule ID 421 //
6979 /* 5750 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule252Enabled),
6980 /* 5753 */ // Combiner Rule #252: unmerge_zext_to_zext; wip_match_opcode 'G_UNMERGE_VALUES'
6981 /* 5753 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner137),
6982 /* 5756 */ // Label 269: @5756
6983 /* 5756 */ GIM_Reject,
6984 /* 5757 */ // Label 13: @5757
6985 /* 5757 */ GIM_Try, /*On fail goto*//*Label 270*/ GIMT_Encode4(5771), // Rule ID 417 //
6986 /* 5762 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule248Enabled),
6987 /* 5765 */ GIM_CheckNumOperandsGE, /*MI*/0, /*Expected*/2,
6988 /* 5768 */ // MIs[0] dst
6989 /* 5768 */ // No operand predicates
6990 /* 5768 */ // MIs[0] merge_srcs
6991 /* 5768 */ // No operand predicates
6992 /* 5768 */ // Combiner Rule #248: merge_unmerge
6993 /* 5768 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner133),
6994 /* 5771 */ // Label 270: @5771
6995 /* 5771 */ GIM_Try, /*On fail goto*//*Label 271*/ GIMT_Encode4(5833),
6996 /* 5776 */ GIM_CheckNumOperands, /*MI*/0, /*Expected*/3,
6997 /* 5779 */ GIM_Try, /*On fail goto*//*Label 272*/ GIMT_Encode4(5800), // Rule ID 422 //
6998 /* 5784 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule253Enabled),
6999 /* 5787 */ // MIs[0] root
7000 /* 5787 */ // No operand predicates
7001 /* 5787 */ // MIs[0] x
7002 /* 5787 */ // No operand predicates
7003 /* 5787 */ // MIs[0] undef
7004 /* 5787 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
7005 /* 5791 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
7006 /* 5795 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7007 /* 5797 */ // Combiner Rule #253: merge_of_x_and_undef
7008 /* 5797 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner138),
7009 /* 5800 */ // Label 272: @5800
7010 /* 5800 */ GIM_Try, /*On fail goto*//*Label 273*/ GIMT_Encode4(5832), // Rule ID 423 //
7011 /* 5805 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule254Enabled),
7012 /* 5808 */ // MIs[0] root
7013 /* 5808 */ // No operand predicates
7014 /* 5808 */ // MIs[0] x
7015 /* 5808 */ // No operand predicates
7016 /* 5808 */ // MIs[0] zero
7017 /* 5808 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
7018 /* 5812 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
7019 /* 5816 */ // MIs[1] Operand 1
7020 /* 5816 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0),
7021 /* 5827 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7022 /* 5829 */ // Combiner Rule #254: merge_of_x_and_zero
7023 /* 5829 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner139),
7024 /* 5832 */ // Label 273: @5832
7025 /* 5832 */ GIM_Reject,
7026 /* 5833 */ // Label 271: @5833
7027 /* 5833 */ GIM_Reject,
7028 /* 5834 */ // Label 14: @5834
7029 /* 5834 */ GIM_Try, /*On fail goto*//*Label 274*/ GIMT_Encode4(5845), // Rule ID 111 //
7030 /* 5839 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule84Enabled),
7031 /* 5842 */ // Combiner Rule #84: propagate_undef_all_ops; wip_match_opcode 'G_BUILD_VECTOR'
7032 /* 5842 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner36),
7033 /* 5845 */ // Label 274: @5845
7034 /* 5845 */ GIM_Try, /*On fail goto*//*Label 275*/ GIMT_Encode4(5856), // Rule ID 150 //
7035 /* 5850 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule102Enabled),
7036 /* 5853 */ // Combiner Rule #102: buildvector_identity_fold; wip_match_opcode 'G_BUILD_VECTOR'
7037 /* 5853 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner41),
7038 /* 5856 */ // Label 275: @5856
7039 /* 5856 */ GIM_Try, /*On fail goto*//*Label 276*/ GIMT_Encode4(5898),
7040 /* 5861 */ GIM_CheckNumOperandsGE, /*MI*/0, /*Expected*/2,
7041 /* 5864 */ GIM_Try, /*On fail goto*//*Label 277*/ GIMT_Encode4(5875), // Rule ID 76 //
7042 /* 5869 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule72Enabled),
7043 /* 5872 */ // MIs[0] dst
7044 /* 5872 */ // No operand predicates
7045 /* 5872 */ // MIs[0] srcs
7046 /* 5872 */ // No operand predicates
7047 /* 5872 */ // Combiner Rule #72: extract_all_elts_from_build_vector
7048 /* 5872 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner28),
7049 /* 5875 */ // Label 277: @5875
7050 /* 5875 */ GIM_Try, /*On fail goto*//*Label 278*/ GIMT_Encode4(5886), // Rule ID 414 //
7051 /* 5880 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule245Enabled),
7052 /* 5883 */ // MIs[0] dst
7053 /* 5883 */ // No operand predicates
7054 /* 5883 */ // MIs[0] unused
7055 /* 5883 */ // No operand predicates
7056 /* 5883 */ // Combiner Rule #245: combine_use_vector_truncate
7057 /* 5883 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner130),
7058 /* 5886 */ // Label 278: @5886
7059 /* 5886 */ GIM_Try, /*On fail goto*//*Label 279*/ GIMT_Encode4(5897), // Rule ID 424 //
7060 /* 5891 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule255Enabled),
7061 /* 5894 */ // MIs[0] dst
7062 /* 5894 */ // No operand predicates
7063 /* 5894 */ // MIs[0] unused
7064 /* 5894 */ // No operand predicates
7065 /* 5894 */ // Combiner Rule #255: combine_build_unmerge
7066 /* 5894 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner140),
7067 /* 5897 */ // Label 279: @5897
7068 /* 5897 */ GIM_Reject,
7069 /* 5898 */ // Label 276: @5898
7070 /* 5898 */ GIM_Reject,
7071 /* 5899 */ // Label 15: @5899
7072 /* 5899 */ GIM_Try, /*On fail goto*//*Label 280*/ GIMT_Encode4(5910), // Rule ID 149 //
7073 /* 5904 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule102Enabled),
7074 /* 5907 */ // Combiner Rule #102: buildvector_identity_fold; wip_match_opcode 'G_BUILD_VECTOR_TRUNC'
7075 /* 5907 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner41),
7076 /* 5910 */ // Label 280: @5910
7077 /* 5910 */ GIM_Reject,
7078 /* 5911 */ // Label 16: @5911
7079 /* 5911 */ GIM_Try, /*On fail goto*//*Label 281*/ GIMT_Encode4(5925), // Rule ID 407 //
7080 /* 5916 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule238Enabled),
7081 /* 5919 */ GIM_CheckNumOperandsGE, /*MI*/0, /*Expected*/2,
7082 /* 5922 */ // MIs[0] dst
7083 /* 5922 */ // No operand predicates
7084 /* 5922 */ // MIs[0] srcs
7085 /* 5922 */ // No operand predicates
7086 /* 5922 */ // Combiner Rule #238: combine_concat_vector
7087 /* 5922 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner123),
7088 /* 5925 */ // Label 281: @5925
7089 /* 5925 */ GIM_Reject,
7090 /* 5926 */ // Label 17: @5926
7091 /* 5926 */ GIM_Try, /*On fail goto*//*Label 282*/ GIMT_Encode4(5947), // Rule ID 142 //
7092 /* 5931 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule96Enabled),
7093 /* 5934 */ // MIs[0] dst
7094 /* 5934 */ // No operand predicates
7095 /* 5934 */ // MIs[0] t
7096 /* 5934 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7097 /* 5938 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_INTTOPTR),
7098 /* 5942 */ // MIs[1] ptr
7099 /* 5942 */ // No operand predicates
7100 /* 5942 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7101 /* 5944 */ // Combiner Rule #96: i2p_to_p2i
7102 /* 5944 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner39),
7103 /* 5947 */ // Label 282: @5947
7104 /* 5947 */ GIM_Try, /*On fail goto*//*Label 283*/ GIMT_Encode4(5968), // Rule ID 100 //
7105 /* 5952 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule82Enabled),
7106 /* 5955 */ // MIs[0] dst
7107 /* 5955 */ // No operand predicates
7108 /* 5955 */ // MIs[0] __unary_undef_to_undef_match_0.x
7109 /* 5955 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7110 /* 5959 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
7111 /* 5963 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7112 /* 5965 */ // Combiner Rule #82: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[3]]
7113 /* 5965 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner35),
7114 /* 5968 */ // Label 283: @5968
7115 /* 5968 */ GIM_Reject,
7116 /* 5969 */ // Label 18: @5969
7117 /* 5969 */ GIM_Try, /*On fail goto*//*Label 284*/ GIMT_Encode4(6002), // Rule ID 141 //
7118 /* 5974 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule95Enabled),
7119 /* 5977 */ // MIs[0] dst
7120 /* 5977 */ // No operand predicates
7121 /* 5977 */ // MIs[0] mid
7122 /* 5977 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7123 /* 5981 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_PTRTOINT),
7124 /* 5985 */ // MIs[1] x
7125 /* 5985 */ // No operand predicates
7126 /* 5985 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner7),
7127 /* 5989 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
7128 /* 5994 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7129 /* 5996 */ // Combiner Rule #95: p2i_to_i2p
7130 /* 5996 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
7131 /* 6001 */ GIR_EraseRootFromParent_Done,
7132 /* 6002 */ // Label 284: @6002
7133 /* 6002 */ GIM_Try, /*On fail goto*//*Label 285*/ GIMT_Encode4(6023), // Rule ID 101 //
7134 /* 6007 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule82Enabled),
7135 /* 6010 */ // MIs[0] dst
7136 /* 6010 */ // No operand predicates
7137 /* 6010 */ // MIs[0] __unary_undef_to_undef_match_0.x
7138 /* 6010 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7139 /* 6014 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
7140 /* 6018 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7141 /* 6020 */ // Combiner Rule #82: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[4]]
7142 /* 6020 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner35),
7143 /* 6023 */ // Label 285: @6023
7144 /* 6023 */ GIM_Reject,
7145 /* 6024 */ // Label 19: @6024
7146 /* 6024 */ GIM_Try, /*On fail goto*//*Label 286*/ GIMT_Encode4(6056), // Rule ID 154 //
7147 /* 6029 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule106Enabled),
7148 /* 6032 */ // MIs[0] dst
7149 /* 6032 */ // No operand predicates
7150 /* 6032 */ // MIs[0] src1
7151 /* 6032 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7152 /* 6036 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BITCAST),
7153 /* 6040 */ // MIs[1] src0
7154 /* 6040 */ // No operand predicates
7155 /* 6040 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner9),
7156 /* 6044 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7157 /* 6046 */ // Combiner Rule #106: bitcast_bitcast_to_bitcast
7158 /* 6046 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_BITCAST),
7159 /* 6049 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
7160 /* 6051 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // src0
7161 /* 6055 */ GIR_EraseRootFromParent_Done,
7162 /* 6056 */ // Label 286: @6056
7163 /* 6056 */ GIM_Try, /*On fail goto*//*Label 287*/ GIMT_Encode4(6077), // Rule ID 153 //
7164 /* 6061 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule105Enabled),
7165 /* 6064 */ // MIs[0] dst
7166 /* 6064 */ // No operand predicates
7167 /* 6064 */ // MIs[0] src1
7168 /* 6064 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7169 /* 6068 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BITCAST),
7170 /* 6072 */ // MIs[1] src0
7171 /* 6072 */ // No operand predicates
7172 /* 6072 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7173 /* 6074 */ // Combiner Rule #105: bitcast_bitcast_fold
7174 /* 6074 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner44),
7175 /* 6077 */ // Label 287: @6077
7176 /* 6077 */ GIM_Try, /*On fail goto*//*Label 288*/ GIMT_Encode4(6098), // Rule ID 98 //
7177 /* 6082 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule82Enabled),
7178 /* 6085 */ // MIs[0] dst
7179 /* 6085 */ // No operand predicates
7180 /* 6085 */ // MIs[0] __unary_undef_to_undef_match_0.x
7181 /* 6085 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7182 /* 6089 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
7183 /* 6093 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7184 /* 6095 */ // Combiner Rule #82: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[1]]
7185 /* 6095 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner35),
7186 /* 6098 */ // Label 288: @6098
7187 /* 6098 */ GIM_Reject,
7188 /* 6099 */ // Label 20: @6099
7189 /* 6099 */ GIM_Try, /*On fail goto*//*Label 289*/ GIMT_Encode4(6128), // Rule ID 25 //
7190 /* 6104 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule24Enabled),
7191 /* 6107 */ // MIs[0] dst
7192 /* 6107 */ // No operand predicates
7193 /* 6107 */ // MIs[0] src
7194 /* 6107 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7195 /* 6111 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FREEZE),
7196 /* 6115 */ // MIs[1] __idempotent_prop_match_0.x
7197 /* 6115 */ // No operand predicates
7198 /* 6115 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7199 /* 6120 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7200 /* 6122 */ // Combiner Rule #24: idempotent_prop @ [__idempotent_prop_match_0[0]]
7201 /* 6122 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7202 /* 6127 */ GIR_EraseRootFromParent_Done,
7203 /* 6128 */ // Label 289: @6128
7204 /* 6128 */ GIM_Try, /*On fail goto*//*Label 290*/ GIMT_Encode4(6151), // Rule ID 50 //
7205 /* 6133 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule46Enabled),
7206 /* 6136 */ // MIs[0] root
7207 /* 6136 */ // No operand predicates
7208 /* 6136 */ // MIs[0] src
7209 /* 6136 */ // No operand predicates
7210 /* 6136 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner4),
7211 /* 6140 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7212 /* 6145 */ // Combiner Rule #46: freeze_of_non_undef_non_poison
7213 /* 6145 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7214 /* 6150 */ GIR_EraseRootFromParent_Done,
7215 /* 6151 */ // Label 290: @6151
7216 /* 6151 */ GIM_Try, /*On fail goto*//*Label 291*/ GIMT_Encode4(6162), // Rule ID 51 //
7217 /* 6156 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule47Enabled),
7218 /* 6159 */ // MIs[0] dst
7219 /* 6159 */ // No operand predicates
7220 /* 6159 */ // MIs[0] src
7221 /* 6159 */ // No operand predicates
7222 /* 6159 */ // Combiner Rule #47: push_freeze_to_prevent_poison_from_propagating
7223 /* 6159 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner18),
7224 /* 6162 */ // Label 291: @6162
7225 /* 6162 */ GIM_Reject,
7226 /* 6163 */ // Label 21: @6163
7227 /* 6163 */ GIM_Try, /*On fail goto*//*Label 292*/ GIMT_Encode4(6184), // Rule ID 212 //
7228 /* 6168 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule159Enabled),
7229 /* 6171 */ // MIs[0] dst
7230 /* 6171 */ // No operand predicates
7231 /* 6171 */ // MIs[0] src0
7232 /* 6171 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7233 /* 6175 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT),
7234 /* 6179 */ // MIs[1] cst
7235 /* 6179 */ // No operand predicates
7236 /* 6179 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7237 /* 6181 */ // Combiner Rule #159: constant_fold_intrinsic_trunc
7238 /* 6181 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner72),
7239 /* 6184 */ // Label 292: @6184
7240 /* 6184 */ GIM_Reject,
7241 /* 6185 */ // Label 22: @6185
7242 /* 6185 */ GIM_Try, /*On fail goto*//*Label 293*/ GIMT_Encode4(6206), // Rule ID 213 //
7243 /* 6190 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule160Enabled),
7244 /* 6193 */ // MIs[0] dst
7245 /* 6193 */ // No operand predicates
7246 /* 6193 */ // MIs[0] src0
7247 /* 6193 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7248 /* 6197 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT),
7249 /* 6201 */ // MIs[1] cst
7250 /* 6201 */ // No operand predicates
7251 /* 6201 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7252 /* 6203 */ // Combiner Rule #160: constant_fold_intrinsic_round
7253 /* 6203 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner72),
7254 /* 6206 */ // Label 293: @6206
7255 /* 6206 */ GIM_Reject,
7256 /* 6207 */ // Label 23: @6207
7257 /* 6207 */ GIM_Try, /*On fail goto*//*Label 294*/ GIMT_Encode4(6228), // Rule ID 214 //
7258 /* 6212 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule161Enabled),
7259 /* 6215 */ // MIs[0] dst
7260 /* 6215 */ // No operand predicates
7261 /* 6215 */ // MIs[0] src0
7262 /* 6215 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7263 /* 6219 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT),
7264 /* 6223 */ // MIs[1] cst
7265 /* 6223 */ // No operand predicates
7266 /* 6223 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7267 /* 6225 */ // Combiner Rule #161: constant_fold_intrinsic_roundeven
7268 /* 6225 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner72),
7269 /* 6228 */ // Label 294: @6228
7270 /* 6228 */ GIM_Reject,
7271 /* 6229 */ // Label 24: @6229
7272 /* 6229 */ GIM_Try, /*On fail goto*//*Label 295*/ GIMT_Encode4(6240), // Rule ID 77 //
7273 /* 6234 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule73Enabled),
7274 /* 6237 */ // Combiner Rule #73: extending_loads; wip_match_opcode 'G_LOAD'
7275 /* 6237 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner29),
7276 /* 6240 */ // Label 295: @6240
7277 /* 6240 */ GIM_Reject,
7278 /* 6241 */ // Label 25: @6241
7279 /* 6241 */ GIM_Try, /*On fail goto*//*Label 296*/ GIMT_Encode4(6252), // Rule ID 78 //
7280 /* 6246 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule73Enabled),
7281 /* 6249 */ // Combiner Rule #73: extending_loads; wip_match_opcode 'G_SEXTLOAD'
7282 /* 6249 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner29),
7283 /* 6252 */ // Label 296: @6252
7284 /* 6252 */ GIM_Reject,
7285 /* 6253 */ // Label 26: @6253
7286 /* 6253 */ GIM_Try, /*On fail goto*//*Label 297*/ GIMT_Encode4(6264), // Rule ID 79 //
7287 /* 6258 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule73Enabled),
7288 /* 6261 */ // Combiner Rule #73: extending_loads; wip_match_opcode 'G_ZEXTLOAD'
7289 /* 6261 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner29),
7290 /* 6264 */ // Label 297: @6264
7291 /* 6264 */ GIM_Reject,
7292 /* 6265 */ // Label 27: @6265
7293 /* 6265 */ GIM_Try, /*On fail goto*//*Label 298*/ GIMT_Encode4(6276), // Rule ID 113 //
7294 /* 6270 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule86Enabled),
7295 /* 6273 */ // Combiner Rule #86: erase_undef_store; wip_match_opcode 'G_STORE'
7296 /* 6273 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner37),
7297 /* 6276 */ // Label 298: @6276
7298 /* 6276 */ GIM_Reject,
7299 /* 6277 */ // Label 28: @6277
7300 /* 6277 */ GIM_Try, /*On fail goto*//*Label 299*/ GIMT_Encode4(6298), // Rule ID 64 //
7301 /* 6282 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule60Enabled),
7302 /* 6285 */ // MIs[0] root
7303 /* 6285 */ // No operand predicates
7304 /* 6285 */ // MIs[0] select
7305 /* 6285 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7306 /* 6289 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SELECT),
7307 /* 6293 */ // MIs[1] cond
7308 /* 6293 */ // No operand predicates
7309 /* 6293 */ // MIs[1] true
7310 /* 6293 */ // No operand predicates
7311 /* 6293 */ // MIs[1] false
7312 /* 6293 */ // No operand predicates
7313 /* 6293 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7314 /* 6295 */ // Combiner Rule #60: select_of_anyext
7315 /* 6295 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner22),
7316 /* 6298 */ // Label 299: @6298
7317 /* 6298 */ GIM_Try, /*On fail goto*//*Label 300*/ GIMT_Encode4(6319), // Rule ID 59 //
7318 /* 6303 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule55Enabled),
7319 /* 6306 */ // MIs[0] root
7320 /* 6306 */ // No operand predicates
7321 /* 6306 */ // MIs[0] second
7322 /* 6306 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7323 /* 6310 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ANYEXT),
7324 /* 6314 */ // MIs[1] src
7325 /* 6314 */ // No operand predicates
7326 /* 6314 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7327 /* 6316 */ // Combiner Rule #55: anyext_of_anyext
7328 /* 6316 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner20),
7329 /* 6319 */ // Label 300: @6319
7330 /* 6319 */ GIM_Try, /*On fail goto*//*Label 301*/ GIMT_Encode4(6340), // Rule ID 61 //
7331 /* 6324 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule57Enabled),
7332 /* 6327 */ // MIs[0] root
7333 /* 6327 */ // No operand predicates
7334 /* 6327 */ // MIs[0] second
7335 /* 6327 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7336 /* 6331 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SEXT),
7337 /* 6335 */ // MIs[1] src
7338 /* 6335 */ // No operand predicates
7339 /* 6335 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7340 /* 6337 */ // Combiner Rule #57: anyext_of_sext
7341 /* 6337 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner20),
7342 /* 6340 */ // Label 301: @6340
7343 /* 6340 */ GIM_Try, /*On fail goto*//*Label 302*/ GIMT_Encode4(6361), // Rule ID 60 //
7344 /* 6345 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule56Enabled),
7345 /* 6348 */ // MIs[0] root
7346 /* 6348 */ // No operand predicates
7347 /* 6348 */ // MIs[0] second
7348 /* 6348 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7349 /* 6352 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ZEXT),
7350 /* 6356 */ // MIs[1] src
7351 /* 6356 */ // No operand predicates
7352 /* 6356 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7353 /* 6358 */ // Combiner Rule #56: anyext_of_zext
7354 /* 6358 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner20),
7355 /* 6361 */ // Label 302: @6361
7356 /* 6361 */ GIM_Try, /*On fail goto*//*Label 303*/ GIMT_Encode4(6382), // Rule ID 99 //
7357 /* 6366 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule82Enabled),
7358 /* 6369 */ // MIs[0] dst
7359 /* 6369 */ // No operand predicates
7360 /* 6369 */ // MIs[0] __unary_undef_to_undef_match_0.x
7361 /* 6369 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7362 /* 6373 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
7363 /* 6377 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7364 /* 6379 */ // Combiner Rule #82: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[2]]
7365 /* 6379 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner35),
7366 /* 6382 */ // Label 303: @6382
7367 /* 6382 */ GIM_Try, /*On fail goto*//*Label 304*/ GIMT_Encode4(6393), // Rule ID 143 //
7368 /* 6387 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule97Enabled),
7369 /* 6390 */ // MIs[0] dst
7370 /* 6390 */ // No operand predicates
7371 /* 6390 */ // MIs[0] src
7372 /* 6390 */ // No operand predicates
7373 /* 6390 */ // Combiner Rule #97: anyext_trunc_fold
7374 /* 6390 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner40),
7375 /* 6393 */ // Label 304: @6393
7376 /* 6393 */ GIM_Try, /*On fail goto*//*Label 305*/ GIMT_Encode4(6404), // Rule ID 306 //
7377 /* 6398 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule197Enabled),
7378 /* 6401 */ // MIs[0] dst
7379 /* 6401 */ // No operand predicates
7380 /* 6401 */ // MIs[0] d.src
7381 /* 6401 */ // No operand predicates
7382 /* 6401 */ // Combiner Rule #197: constant_fold_cast_op @ [d[2]]
7383 /* 6401 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner95),
7384 /* 6404 */ // Label 305: @6404
7385 /* 6404 */ GIM_Reject,
7386 /* 6405 */ // Label 29: @6405
7387 /* 6405 */ GIM_SwitchType, /*MI*/0, /*Op*/0, /*[*/GIMT_Encode2(0), GIMT_Encode2(5), /*)*//*default:*//*Label 309*/ GIMT_Encode4(6671),
7388 /* 6416 */ /*GILLT_i16*//*Label 306*/ GIMT_Encode4(6436), GIMT_Encode4(0), GIMT_Encode4(0),
7389 /* 6428 */ /*GILLT_f16*//*Label 307*/ GIMT_Encode4(6503),
7390 /* 6432 */ /*GILLT_bf16*//*Label 308*/ GIMT_Encode4(6587),
7391 /* 6436 */ // Label 306: @6436
7392 /* 6436 */ GIM_Try, /*On fail goto*//*Label 310*/ GIMT_Encode4(6502), // Rule ID 462 //
7393 /* 6441 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule285Enabled),
7394 /* 6444 */ GIM_RootCheckType, /*Op*/1, /*Type*/GILLT_i32,
7395 /* 6447 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7396 /* 6451 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_LSHR),
7397 /* 6455 */ GIM_CheckType, /*MI*/1, /*Op*/2, /*Type*/GILLT_i32,
7398 /* 6459 */ // MIs[1] src
7399 /* 6459 */ // No operand predicates
7400 /* 6459 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
7401 /* 6463 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
7402 /* 6467 */ // MIs[2] Operand 1
7403 /* 6467 */ GIM_CheckLiteralInt, /*MI*/2, /*Op*/1, GIMT_Encode8(16),
7404 /* 6478 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner32),
7405 /* 6482 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
7406 /* 6484 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/GILLT_i16,
7407 /* 6487 */ // Combiner Rule #285: trunc_lshr16_unmerge_i16
7408 /* 6487 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UNMERGE_VALUES),
7409 /* 6490 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
7410 /* 6495 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
7411 /* 6497 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // src
7412 /* 6501 */ GIR_EraseRootFromParent_Done,
7413 /* 6502 */ // Label 310: @6502
7414 /* 6502 */ GIM_Reject,
7415 /* 6503 */ // Label 307: @6503
7416 /* 6503 */ GIM_Try, /*On fail goto*//*Label 311*/ GIMT_Encode4(6586), // Rule ID 463 //
7417 /* 6508 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule286Enabled),
7418 /* 6511 */ GIM_RootCheckType, /*Op*/1, /*Type*/GILLT_i32,
7419 /* 6514 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7420 /* 6518 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_LSHR),
7421 /* 6522 */ GIM_CheckType, /*MI*/1, /*Op*/2, /*Type*/GILLT_i32,
7422 /* 6526 */ // MIs[1] src
7423 /* 6526 */ // No operand predicates
7424 /* 6526 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
7425 /* 6530 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
7426 /* 6534 */ // MIs[2] Operand 1
7427 /* 6534 */ GIM_CheckLiteralInt, /*MI*/2, /*Op*/1, GIMT_Encode8(16),
7428 /* 6545 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner32),
7429 /* 6549 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
7430 /* 6551 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/GILLT_i16,
7431 /* 6554 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/GILLT_i16,
7432 /* 6557 */ // Combiner Rule #286: trunc_lshr16_unmerge_f16
7433 /* 6557 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UNMERGE_VALUES),
7434 /* 6560 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
7435 /* 6565 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/1, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
7436 /* 6570 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // src
7437 /* 6574 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_BITCAST),
7438 /* 6578 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
7439 /* 6582 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/1,
7440 /* 6585 */ GIR_EraseRootFromParent_Done,
7441 /* 6586 */ // Label 311: @6586
7442 /* 6586 */ GIM_Reject,
7443 /* 6587 */ // Label 308: @6587
7444 /* 6587 */ GIM_Try, /*On fail goto*//*Label 312*/ GIMT_Encode4(6670), // Rule ID 464 //
7445 /* 6592 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule287Enabled),
7446 /* 6595 */ GIM_RootCheckType, /*Op*/1, /*Type*/GILLT_i32,
7447 /* 6598 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7448 /* 6602 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_LSHR),
7449 /* 6606 */ GIM_CheckType, /*MI*/1, /*Op*/2, /*Type*/GILLT_i32,
7450 /* 6610 */ // MIs[1] src
7451 /* 6610 */ // No operand predicates
7452 /* 6610 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
7453 /* 6614 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
7454 /* 6618 */ // MIs[2] Operand 1
7455 /* 6618 */ GIM_CheckLiteralInt, /*MI*/2, /*Op*/1, GIMT_Encode8(16),
7456 /* 6629 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner32),
7457 /* 6633 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
7458 /* 6635 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/GILLT_i16,
7459 /* 6638 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/GILLT_i16,
7460 /* 6641 */ // Combiner Rule #287: trunc_lshr16_unmerge_bf16
7461 /* 6641 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UNMERGE_VALUES),
7462 /* 6644 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
7463 /* 6649 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/1, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
7464 /* 6654 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // src
7465 /* 6658 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_BITCAST),
7466 /* 6662 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
7467 /* 6666 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/1,
7468 /* 6669 */ GIR_EraseRootFromParent_Done,
7469 /* 6670 */ // Label 312: @6670
7470 /* 6670 */ GIM_Reject,
7471 /* 6671 */ // Label 309: @6671
7472 /* 6671 */ GIM_Try, /*On fail goto*//*Label 313*/ GIMT_Encode4(6692), // Rule ID 65 //
7473 /* 6676 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule61Enabled),
7474 /* 6679 */ // MIs[0] root
7475 /* 6679 */ // No operand predicates
7476 /* 6679 */ // MIs[0] select
7477 /* 6679 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7478 /* 6683 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SELECT),
7479 /* 6687 */ // MIs[1] cond
7480 /* 6687 */ // No operand predicates
7481 /* 6687 */ // MIs[1] true
7482 /* 6687 */ // No operand predicates
7483 /* 6687 */ // MIs[1] false
7484 /* 6687 */ // No operand predicates
7485 /* 6687 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7486 /* 6689 */ // Combiner Rule #61: select_of_truncate
7487 /* 6689 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner22),
7488 /* 6692 */ // Label 313: @6692
7489 /* 6692 */ GIM_Try, /*On fail goto*//*Label 314*/ GIMT_Encode4(6721), // Rule ID 67 //
7490 /* 6697 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule63Enabled),
7491 /* 6700 */ // MIs[0] root
7492 /* 6700 */ // No operand predicates
7493 /* 6700 */ // MIs[0] binop
7494 /* 6700 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7495 /* 6704 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
7496 /* 6708 */ // MIs[1] x
7497 /* 6708 */ // No operand predicates
7498 /* 6708 */ // MIs[1] const
7499 /* 6708 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
7500 /* 6712 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
7501 /* 6716 */ // MIs[2] imm
7502 /* 6716 */ // No operand predicates
7503 /* 6716 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
7504 /* 6718 */ // Combiner Rule #63: narrow_binop_add
7505 /* 6718 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner24),
7506 /* 6721 */ // Label 314: @6721
7507 /* 6721 */ GIM_Try, /*On fail goto*//*Label 315*/ GIMT_Encode4(6750), // Rule ID 70 //
7508 /* 6726 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule66Enabled),
7509 /* 6729 */ // MIs[0] root
7510 /* 6729 */ // No operand predicates
7511 /* 6729 */ // MIs[0] binop
7512 /* 6729 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7513 /* 6733 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_AND),
7514 /* 6737 */ // MIs[1] x
7515 /* 6737 */ // No operand predicates
7516 /* 6737 */ // MIs[1] const
7517 /* 6737 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
7518 /* 6741 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
7519 /* 6745 */ // MIs[2] imm
7520 /* 6745 */ // No operand predicates
7521 /* 6745 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
7522 /* 6747 */ // Combiner Rule #66: narrow_binop_and
7523 /* 6747 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner24),
7524 /* 6750 */ // Label 315: @6750
7525 /* 6750 */ GIM_Try, /*On fail goto*//*Label 316*/ GIMT_Encode4(6779), // Rule ID 69 //
7526 /* 6755 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule65Enabled),
7527 /* 6758 */ // MIs[0] root
7528 /* 6758 */ // No operand predicates
7529 /* 6758 */ // MIs[0] binop
7530 /* 6758 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7531 /* 6762 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_MUL),
7532 /* 6766 */ // MIs[1] x
7533 /* 6766 */ // No operand predicates
7534 /* 6766 */ // MIs[1] const
7535 /* 6766 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
7536 /* 6770 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
7537 /* 6774 */ // MIs[2] imm
7538 /* 6774 */ // No operand predicates
7539 /* 6774 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
7540 /* 6776 */ // Combiner Rule #65: narrow_binop_mul
7541 /* 6776 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner24),
7542 /* 6779 */ // Label 316: @6779
7543 /* 6779 */ GIM_Try, /*On fail goto*//*Label 317*/ GIMT_Encode4(6808), // Rule ID 71 //
7544 /* 6784 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule67Enabled),
7545 /* 6787 */ // MIs[0] root
7546 /* 6787 */ // No operand predicates
7547 /* 6787 */ // MIs[0] binop
7548 /* 6787 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7549 /* 6791 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_OR),
7550 /* 6795 */ // MIs[1] x
7551 /* 6795 */ // No operand predicates
7552 /* 6795 */ // MIs[1] const
7553 /* 6795 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
7554 /* 6799 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
7555 /* 6803 */ // MIs[2] imm
7556 /* 6803 */ // No operand predicates
7557 /* 6803 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
7558 /* 6805 */ // Combiner Rule #67: narrow_binop_or
7559 /* 6805 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner24),
7560 /* 6808 */ // Label 317: @6808
7561 /* 6808 */ GIM_Try, /*On fail goto*//*Label 318*/ GIMT_Encode4(6837), // Rule ID 68 //
7562 /* 6813 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule64Enabled),
7563 /* 6816 */ // MIs[0] root
7564 /* 6816 */ // No operand predicates
7565 /* 6816 */ // MIs[0] binop
7566 /* 6816 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7567 /* 6820 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB),
7568 /* 6824 */ // MIs[1] x
7569 /* 6824 */ // No operand predicates
7570 /* 6824 */ // MIs[1] const
7571 /* 6824 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
7572 /* 6828 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
7573 /* 6832 */ // MIs[2] imm
7574 /* 6832 */ // No operand predicates
7575 /* 6832 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
7576 /* 6834 */ // Combiner Rule #64: narrow_binop_sub
7577 /* 6834 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner24),
7578 /* 6837 */ // Label 318: @6837
7579 /* 6837 */ GIM_Try, /*On fail goto*//*Label 319*/ GIMT_Encode4(6869), // Rule ID 431 //
7580 /* 6842 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule260Enabled),
7581 /* 6845 */ // MIs[0] dst
7582 /* 6845 */ // No operand predicates
7583 /* 6845 */ // MIs[0] min
7584 /* 6845 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7585 /* 6849 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_UMIN),
7586 /* 6853 */ // MIs[1] x
7587 /* 6853 */ // No operand predicates
7588 /* 6853 */ // MIs[1] y
7589 /* 6853 */ // No operand predicates
7590 /* 6853 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner23),
7591 /* 6857 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7592 /* 6859 */ // Combiner Rule #260: trunc_usatu
7593 /* 6859 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_TRUNC_USAT_U),
7594 /* 6862 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
7595 /* 6864 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
7596 /* 6868 */ GIR_EraseRootFromParent_Done,
7597 /* 6869 */ // Label 319: @6869
7598 /* 6869 */ GIM_Try, /*On fail goto*//*Label 320*/ GIMT_Encode4(6898), // Rule ID 72 //
7599 /* 6874 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule68Enabled),
7600 /* 6877 */ // MIs[0] root
7601 /* 6877 */ // No operand predicates
7602 /* 6877 */ // MIs[0] binop
7603 /* 6877 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7604 /* 6881 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_XOR),
7605 /* 6885 */ // MIs[1] x
7606 /* 6885 */ // No operand predicates
7607 /* 6885 */ // MIs[1] const
7608 /* 6885 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2]
7609 /* 6889 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
7610 /* 6893 */ // MIs[2] imm
7611 /* 6893 */ // No operand predicates
7612 /* 6893 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
7613 /* 6895 */ // Combiner Rule #68: narrow_binop_xor
7614 /* 6895 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner24),
7615 /* 6898 */ // Label 320: @6898
7616 /* 6898 */ GIM_Try, /*On fail goto*//*Label 321*/ GIMT_Encode4(6919), // Rule ID 54 //
7617 /* 6903 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule50Enabled),
7618 /* 6906 */ // MIs[0] root
7619 /* 6906 */ // No operand predicates
7620 /* 6906 */ // MIs[0] ext
7621 /* 6906 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7622 /* 6910 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ANYEXT),
7623 /* 6914 */ // MIs[1] src
7624 /* 6914 */ // No operand predicates
7625 /* 6914 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7626 /* 6916 */ // Combiner Rule #50: truncate_of_anyext
7627 /* 6916 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner19),
7628 /* 6919 */ // Label 321: @6919
7629 /* 6919 */ GIM_Try, /*On fail goto*//*Label 322*/ GIMT_Encode4(6943), // Rule ID 66 //
7630 /* 6924 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule62Enabled),
7631 /* 6927 */ // MIs[0] root
7632 /* 6927 */ // No operand predicates
7633 /* 6927 */ // MIs[0] bv
7634 /* 6927 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7635 /* 6931 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR),
7636 /* 6935 */ GIM_CheckNumOperandsGE, /*MI*/1, /*Expected*/2,
7637 /* 6938 */ // MIs[1] unused
7638 /* 6938 */ // No operand predicates
7639 /* 6938 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7640 /* 6940 */ // Combiner Rule #62: buildvector_of_truncate
7641 /* 6940 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner23),
7642 /* 6943 */ // Label 322: @6943
7643 /* 6943 */ GIM_Try, /*On fail goto*//*Label 323*/ GIMT_Encode4(6964), // Rule ID 53 //
7644 /* 6948 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule49Enabled),
7645 /* 6951 */ // MIs[0] root
7646 /* 6951 */ // No operand predicates
7647 /* 6951 */ // MIs[0] ext
7648 /* 6951 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7649 /* 6955 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SEXT),
7650 /* 6959 */ // MIs[1] src
7651 /* 6959 */ // No operand predicates
7652 /* 6959 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7653 /* 6961 */ // Combiner Rule #49: truncate_of_sext
7654 /* 6961 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner19),
7655 /* 6964 */ // Label 323: @6964
7656 /* 6964 */ GIM_Try, /*On fail goto*//*Label 324*/ GIMT_Encode4(6985), // Rule ID 52 //
7657 /* 6969 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule48Enabled),
7658 /* 6972 */ // MIs[0] root
7659 /* 6972 */ // No operand predicates
7660 /* 6972 */ // MIs[0] ext
7661 /* 6972 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7662 /* 6976 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ZEXT),
7663 /* 6980 */ // MIs[1] src
7664 /* 6980 */ // No operand predicates
7665 /* 6980 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7666 /* 6982 */ // Combiner Rule #48: truncate_of_zext
7667 /* 6982 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner19),
7668 /* 6985 */ // Label 324: @6985
7669 /* 6985 */ GIM_Try, /*On fail goto*//*Label 325*/ GIMT_Encode4(7006), // Rule ID 97 //
7670 /* 6990 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule82Enabled),
7671 /* 6993 */ // MIs[0] dst
7672 /* 6993 */ // No operand predicates
7673 /* 6993 */ // MIs[0] __unary_undef_to_undef_match_0.x
7674 /* 6993 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7675 /* 6997 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
7676 /* 7001 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7677 /* 7003 */ // Combiner Rule #82: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[0]]
7678 /* 7003 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner35),
7679 /* 7006 */ // Label 325: @7006
7680 /* 7006 */ GIM_Try, /*On fail goto*//*Label 326*/ GIMT_Encode4(7027), // Rule ID 73 //
7681 /* 7011 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule69Enabled),
7682 /* 7014 */ // MIs[0] root
7683 /* 7014 */ // No operand predicates
7684 /* 7014 */ // MIs[0] int
7685 /* 7014 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7686 /* 7018 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
7687 /* 7022 */ // MIs[1] imm
7688 /* 7022 */ // No operand predicates
7689 /* 7022 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7690 /* 7024 */ // Combiner Rule #69: integer_of_truncate
7691 /* 7024 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner25),
7692 /* 7027 */ // Label 326: @7027
7693 /* 7027 */ GIM_Try, /*On fail goto*//*Label 327*/ GIMT_Encode4(7038), // Rule ID 151 //
7694 /* 7032 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule103Enabled),
7695 /* 7035 */ // MIs[0] dst
7696 /* 7035 */ // No operand predicates
7697 /* 7035 */ // MIs[0] src
7698 /* 7035 */ // No operand predicates
7699 /* 7035 */ // Combiner Rule #103: trunc_buildvector_fold
7700 /* 7035 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner42),
7701 /* 7038 */ // Label 327: @7038
7702 /* 7038 */ GIM_Try, /*On fail goto*//*Label 328*/ GIMT_Encode4(7049), // Rule ID 152 //
7703 /* 7043 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule104Enabled),
7704 /* 7046 */ // MIs[0] dst
7705 /* 7046 */ // No operand predicates
7706 /* 7046 */ // MIs[0] src
7707 /* 7046 */ // No operand predicates
7708 /* 7046 */ // Combiner Rule #104: trunc_lshr_buildvector_fold
7709 /* 7046 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner43),
7710 /* 7049 */ // Label 328: @7049
7711 /* 7049 */ GIM_Try, /*On fail goto*//*Label 329*/ GIMT_Encode4(7060), // Rule ID 201 //
7712 /* 7054 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule148Enabled),
7713 /* 7057 */ // MIs[0] dst
7714 /* 7057 */ // No operand predicates
7715 /* 7057 */ // MIs[0] src
7716 /* 7057 */ // No operand predicates
7717 /* 7057 */ // Combiner Rule #148: trunc_shift
7718 /* 7057 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner69),
7719 /* 7060 */ // Label 329: @7060
7720 /* 7060 */ GIM_Try, /*On fail goto*//*Label 330*/ GIMT_Encode4(7071), // Rule ID 429 //
7721 /* 7065 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule258Enabled),
7722 /* 7068 */ // MIs[0] dst
7723 /* 7068 */ // No operand predicates
7724 /* 7068 */ // MIs[0] src
7725 /* 7068 */ // No operand predicates
7726 /* 7068 */ // Combiner Rule #258: trunc_ssats
7727 /* 7068 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner143),
7728 /* 7071 */ // Label 330: @7071
7729 /* 7071 */ GIM_Try, /*On fail goto*//*Label 331*/ GIMT_Encode4(7082), // Rule ID 430 //
7730 /* 7076 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule259Enabled),
7731 /* 7079 */ // MIs[0] dst
7732 /* 7079 */ // No operand predicates
7733 /* 7079 */ // MIs[0] src
7734 /* 7079 */ // No operand predicates
7735 /* 7079 */ // Combiner Rule #259: trunc_ssatu
7736 /* 7079 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner144),
7737 /* 7082 */ // Label 331: @7082
7738 /* 7082 */ GIM_Try, /*On fail goto*//*Label 332*/ GIMT_Encode4(7093), // Rule ID 457 //
7739 /* 7087 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule280Enabled),
7740 /* 7090 */ // MIs[0] dst
7741 /* 7090 */ // No operand predicates
7742 /* 7090 */ // MIs[0] src
7743 /* 7090 */ // No operand predicates
7744 /* 7090 */ // Combiner Rule #280: clamp_i64_to_i16
7745 /* 7090 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner150),
7746 /* 7093 */ // Label 332: @7093
7747 /* 7093 */ GIM_Reject,
7748 /* 7094 */ // Label 30: @7094
7749 /* 7094 */ GIM_Try, /*On fail goto*//*Label 333*/ GIMT_Encode4(7126), // Rule ID 432 //
7750 /* 7099 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule261Enabled),
7751 /* 7102 */ // MIs[0] dst
7752 /* 7102 */ // No operand predicates
7753 /* 7102 */ // MIs[0] src
7754 /* 7102 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7755 /* 7106 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FPTOUI),
7756 /* 7110 */ // MIs[1] x
7757 /* 7110 */ // No operand predicates
7758 /* 7110 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner24),
7759 /* 7114 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7760 /* 7116 */ // Combiner Rule #261: truncusatu_to_fptouisat
7761 /* 7116 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FPTOUI_SAT),
7762 /* 7119 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
7763 /* 7121 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
7764 /* 7125 */ GIR_EraseRootFromParent_Done,
7765 /* 7126 */ // Label 333: @7126
7766 /* 7126 */ GIM_Reject,
7767 /* 7127 */ // Label 31: @7127
7768 /* 7127 */ GIM_Try, /*On fail goto*//*Label 334*/ GIMT_Encode4(7148), // Rule ID 58 //
7769 /* 7132 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule54Enabled),
7770 /* 7135 */ // MIs[0] root
7771 /* 7135 */ // No operand predicates
7772 /* 7135 */ // MIs[0] second
7773 /* 7135 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7774 /* 7139 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ANYEXT),
7775 /* 7143 */ // MIs[1] src
7776 /* 7143 */ // No operand predicates
7777 /* 7143 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7778 /* 7145 */ // Combiner Rule #54: sext_of_anyext
7779 /* 7145 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner20),
7780 /* 7148 */ // Label 334: @7148
7781 /* 7148 */ GIM_Try, /*On fail goto*//*Label 335*/ GIMT_Encode4(7169), // Rule ID 57 //
7782 /* 7153 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule53Enabled),
7783 /* 7156 */ // MIs[0] root
7784 /* 7156 */ // No operand predicates
7785 /* 7156 */ // MIs[0] second
7786 /* 7156 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7787 /* 7160 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SEXT),
7788 /* 7164 */ // MIs[1] src
7789 /* 7164 */ // No operand predicates
7790 /* 7164 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7791 /* 7166 */ // Combiner Rule #53: sext_of_sext
7792 /* 7166 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner20),
7793 /* 7169 */ // Label 335: @7169
7794 /* 7169 */ GIM_Try, /*On fail goto*//*Label 336*/ GIMT_Encode4(7190), // Rule ID 408 //
7795 /* 7174 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule239Enabled),
7796 /* 7177 */ // MIs[0] root
7797 /* 7177 */ // No operand predicates
7798 /* 7177 */ // MIs[0] src
7799 /* 7177 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7800 /* 7181 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_TRUNC),
7801 /* 7185 */ // MIs[1] x
7802 /* 7185 */ // No operand predicates
7803 /* 7185 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7804 /* 7187 */ // Combiner Rule #239: sext_trunc
7805 /* 7187 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner124),
7806 /* 7190 */ // Label 336: @7190
7807 /* 7190 */ GIM_Try, /*On fail goto*//*Label 337*/ GIMT_Encode4(7201), // Rule ID 305 //
7808 /* 7195 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule197Enabled),
7809 /* 7198 */ // MIs[0] dst
7810 /* 7198 */ // No operand predicates
7811 /* 7198 */ // MIs[0] d.src
7812 /* 7198 */ // No operand predicates
7813 /* 7198 */ // Combiner Rule #197: constant_fold_cast_op @ [d[1]]
7814 /* 7198 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner95),
7815 /* 7201 */ // Label 337: @7201
7816 /* 7201 */ GIM_Reject,
7817 /* 7202 */ // Label 32: @7202
7818 /* 7202 */ GIM_Try, /*On fail goto*//*Label 338*/ GIMT_Encode4(7223), // Rule ID 62 //
7819 /* 7207 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule58Enabled),
7820 /* 7210 */ // MIs[0] dst
7821 /* 7210 */ // No operand predicates
7822 /* 7210 */ // MIs[0] x
7823 /* 7210 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7824 /* 7214 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SEXT_INREG),
7825 /* 7218 */ // MIs[1] src
7826 /* 7218 */ // No operand predicates
7827 /* 7218 */ // MIs[1] a
7828 /* 7218 */ // No operand predicates
7829 /* 7218 */ // MIs[0] b
7830 /* 7218 */ // No operand predicates
7831 /* 7218 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7832 /* 7220 */ // Combiner Rule #58: sext_inreg_of_sext_inreg
7833 /* 7220 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner21),
7834 /* 7223 */ // Label 338: @7223
7835 /* 7223 */ GIM_Try, /*On fail goto*//*Label 339*/ GIMT_Encode4(7263), // Rule ID 195 //
7836 /* 7228 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule142Enabled),
7837 /* 7231 */ // MIs[0] dst
7838 /* 7231 */ // No operand predicates
7839 /* 7231 */ // MIs[0] tmp4
7840 /* 7231 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7841 /* 7235 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ANYEXT),
7842 /* 7239 */ // MIs[1] tmp2
7843 /* 7239 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
7844 /* 7243 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_UNMERGE_VALUES),
7845 /* 7247 */ GIM_CheckNumOperands, /*MI*/2, /*Expected*/3,
7846 /* 7250 */ // MIs[2] tmp3
7847 /* 7250 */ // No operand predicates
7848 /* 7250 */ // MIs[2] tmp1
7849 /* 7250 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/2, /*OpIdx*/2, // MIs[3]
7850 /* 7254 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_ANYEXT),
7851 /* 7258 */ // MIs[3] src
7852 /* 7258 */ // No operand predicates
7853 /* 7258 */ // MIs[0] amt
7854 /* 7258 */ // No operand predicates
7855 /* 7258 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
7856 /* 7260 */ // Combiner Rule #142: redundant_aext_unmerge_sext_inreg
7857 /* 7260 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner63),
7858 /* 7263 */ // Label 339: @7263
7859 /* 7263 */ GIM_Try, /*On fail goto*//*Label 340*/ GIMT_Encode4(7295), // Rule ID 193 //
7860 /* 7268 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule140Enabled),
7861 /* 7271 */ // MIs[0] dst
7862 /* 7271 */ // No operand predicates
7863 /* 7271 */ // MIs[0] tmp
7864 /* 7271 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7865 /* 7275 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ANYEXT),
7866 /* 7279 */ // MIs[1] src
7867 /* 7279 */ // No operand predicates
7868 /* 7279 */ // MIs[0] amt
7869 /* 7279 */ // No operand predicates
7870 /* 7279 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner18),
7871 /* 7283 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7872 /* 7285 */ // Combiner Rule #140: redundant_aext_sext_inreg
7873 /* 7285 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SEXT),
7874 /* 7288 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
7875 /* 7290 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // src
7876 /* 7294 */ GIR_EraseRootFromParent_Done,
7877 /* 7295 */ // Label 340: @7295
7878 /* 7295 */ GIM_Try, /*On fail goto*//*Label 341*/ GIMT_Encode4(7335), // Rule ID 194 //
7879 /* 7300 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule141Enabled),
7880 /* 7303 */ // MIs[0] dst
7881 /* 7303 */ // No operand predicates
7882 /* 7303 */ // MIs[0] tmp4
7883 /* 7303 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7884 /* 7307 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ZEXT),
7885 /* 7311 */ // MIs[1] tmp2
7886 /* 7311 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
7887 /* 7315 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_UNMERGE_VALUES),
7888 /* 7319 */ GIM_CheckNumOperands, /*MI*/2, /*Expected*/3,
7889 /* 7322 */ // MIs[2] tmp3
7890 /* 7322 */ // No operand predicates
7891 /* 7322 */ // MIs[2] tmp1
7892 /* 7322 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/2, /*OpIdx*/2, // MIs[3]
7893 /* 7326 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_ZEXT),
7894 /* 7330 */ // MIs[3] src
7895 /* 7330 */ // No operand predicates
7896 /* 7330 */ // MIs[0] amt
7897 /* 7330 */ // No operand predicates
7898 /* 7330 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
7899 /* 7332 */ // Combiner Rule #141: redundant_zext_unmerge_sext_inreg
7900 /* 7332 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner63),
7901 /* 7335 */ // Label 341: @7335
7902 /* 7335 */ GIM_Try, /*On fail goto*//*Label 342*/ GIMT_Encode4(7367), // Rule ID 192 //
7903 /* 7340 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule139Enabled),
7904 /* 7343 */ // MIs[0] dst
7905 /* 7343 */ // No operand predicates
7906 /* 7343 */ // MIs[0] tmp
7907 /* 7343 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7908 /* 7347 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ZEXT),
7909 /* 7351 */ // MIs[1] src
7910 /* 7351 */ // No operand predicates
7911 /* 7351 */ // MIs[0] amt
7912 /* 7351 */ // No operand predicates
7913 /* 7351 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner18),
7914 /* 7355 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7915 /* 7357 */ // Combiner Rule #139: redundant_zext_sext_inreg
7916 /* 7357 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SEXT),
7917 /* 7360 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
7918 /* 7362 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // src
7919 /* 7366 */ GIR_EraseRootFromParent_Done,
7920 /* 7367 */ // Label 342: @7367
7921 /* 7367 */ GIM_Try, /*On fail goto*//*Label 343*/ GIMT_Encode4(7390), // Rule ID 191 //
7922 /* 7372 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule138Enabled),
7923 /* 7375 */ // MIs[0] dst
7924 /* 7375 */ // No operand predicates
7925 /* 7375 */ // MIs[0] src
7926 /* 7375 */ // No operand predicates
7927 /* 7375 */ // MIs[0] sz
7928 /* 7375 */ // No operand predicates
7929 /* 7375 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner17),
7930 /* 7379 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7931 /* 7384 */ // Combiner Rule #138: redundant_sext_inreg
7932 /* 7384 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
7933 /* 7389 */ GIR_EraseRootFromParent_Done,
7934 /* 7390 */ // Label 343: @7390
7935 /* 7390 */ GIM_Try, /*On fail goto*//*Label 344*/ GIMT_Encode4(7401), // Rule ID 180 //
7936 /* 7395 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule127Enabled),
7937 /* 7398 */ // MIs[0] dst
7938 /* 7398 */ // No operand predicates
7939 /* 7398 */ // MIs[0] src
7940 /* 7398 */ // No operand predicates
7941 /* 7398 */ // MIs[0] sz
7942 /* 7398 */ // No operand predicates
7943 /* 7398 */ // Combiner Rule #127: sext_inreg_of_load
7944 /* 7398 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner57),
7945 /* 7401 */ // Label 344: @7401
7946 /* 7401 */ GIM_Try, /*On fail goto*//*Label 345*/ GIMT_Encode4(7412), // Rule ID 200 //
7947 /* 7406 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule147Enabled),
7948 /* 7409 */ // MIs[0] dst
7949 /* 7409 */ // No operand predicates
7950 /* 7409 */ // MIs[0] src
7951 /* 7409 */ // No operand predicates
7952 /* 7409 */ // MIs[0] imm
7953 /* 7409 */ // No operand predicates
7954 /* 7409 */ // Combiner Rule #147: sext_inreg_to_zext_inreg
7955 /* 7409 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner68),
7956 /* 7412 */ // Label 345: @7412
7957 /* 7412 */ GIM_Try, /*On fail goto*//*Label 346*/ GIMT_Encode4(7423), // Rule ID 266 //
7958 /* 7417 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule190Enabled),
7959 /* 7420 */ // MIs[0] dst
7960 /* 7420 */ // No operand predicates
7961 /* 7420 */ // MIs[0] src
7962 /* 7420 */ // No operand predicates
7963 /* 7420 */ // MIs[0] sz
7964 /* 7420 */ // No operand predicates
7965 /* 7420 */ // Combiner Rule #190: bitfield_extract_from_sext_inreg
7966 /* 7420 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner88),
7967 /* 7423 */ // Label 346: @7423
7968 /* 7423 */ GIM_Reject,
7969 /* 7424 */ // Label 33: @7424
7970 /* 7424 */ GIM_Try, /*On fail goto*//*Label 347*/ GIMT_Encode4(7445), // Rule ID 63 //
7971 /* 7429 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule59Enabled),
7972 /* 7432 */ // MIs[0] root
7973 /* 7432 */ // No operand predicates
7974 /* 7432 */ // MIs[0] select
7975 /* 7432 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7976 /* 7436 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SELECT),
7977 /* 7440 */ // MIs[1] cond
7978 /* 7440 */ // No operand predicates
7979 /* 7440 */ // MIs[1] true
7980 /* 7440 */ // No operand predicates
7981 /* 7440 */ // MIs[1] false
7982 /* 7440 */ // No operand predicates
7983 /* 7440 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7984 /* 7442 */ // Combiner Rule #59: select_of_zext
7985 /* 7442 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner22),
7986 /* 7445 */ // Label 347: @7445
7987 /* 7445 */ GIM_Try, /*On fail goto*//*Label 348*/ GIMT_Encode4(7466), // Rule ID 56 //
7988 /* 7450 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule52Enabled),
7989 /* 7453 */ // MIs[0] root
7990 /* 7453 */ // No operand predicates
7991 /* 7453 */ // MIs[0] second
7992 /* 7453 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
7993 /* 7457 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ANYEXT),
7994 /* 7461 */ // MIs[1] src
7995 /* 7461 */ // No operand predicates
7996 /* 7461 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
7997 /* 7463 */ // Combiner Rule #52: zext_of_anyext
7998 /* 7463 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner20),
7999 /* 7466 */ // Label 348: @7466
8000 /* 7466 */ GIM_Try, /*On fail goto*//*Label 349*/ GIMT_Encode4(7493), // Rule ID 409 //
8001 /* 7471 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule240Enabled),
8002 /* 7474 */ // MIs[0] root
8003 /* 7474 */ // No operand predicates
8004 /* 7474 */ // MIs[0] src
8005 /* 7474 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8006 /* 7478 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_TRUNC),
8007 /* 7482 */ GIM_MIFlags, /*MI*/1, GIMT_Encode4(MachineInstr::NoUWrap),
8008 /* 7488 */ // MIs[1] x
8009 /* 7488 */ // No operand predicates
8010 /* 7488 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8011 /* 7490 */ // Combiner Rule #240: zext_trunc
8012 /* 7490 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner125),
8013 /* 7493 */ // Label 349: @7493
8014 /* 7493 */ GIM_Try, /*On fail goto*//*Label 350*/ GIMT_Encode4(7514), // Rule ID 55 //
8015 /* 7498 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule51Enabled),
8016 /* 7501 */ // MIs[0] root
8017 /* 7501 */ // No operand predicates
8018 /* 7501 */ // MIs[0] second
8019 /* 7501 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8020 /* 7505 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ZEXT),
8021 /* 7509 */ // MIs[1] src
8022 /* 7509 */ // No operand predicates
8023 /* 7509 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8024 /* 7511 */ // Combiner Rule #51: zext_of_zext
8025 /* 7511 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner20),
8026 /* 7514 */ // Label 350: @7514
8027 /* 7514 */ GIM_Try, /*On fail goto*//*Label 351*/ GIMT_Encode4(7531), // Rule ID 410 //
8028 /* 7519 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule241Enabled),
8029 /* 7522 */ GIM_MIFlags, /*MI*/0, GIMT_Encode4(MachineInstr::NonNeg),
8030 /* 7528 */ // MIs[0] root
8031 /* 7528 */ // No operand predicates
8032 /* 7528 */ // MIs[0] x
8033 /* 7528 */ // No operand predicates
8034 /* 7528 */ // Combiner Rule #241: nneg_zext
8035 /* 7528 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner126),
8036 /* 7531 */ // Label 351: @7531
8037 /* 7531 */ GIM_Try, /*On fail goto*//*Label 352*/ GIMT_Encode4(7542), // Rule ID 199 //
8038 /* 7536 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule146Enabled),
8039 /* 7539 */ // MIs[0] dst
8040 /* 7539 */ // No operand predicates
8041 /* 7539 */ // MIs[0] src
8042 /* 7539 */ // No operand predicates
8043 /* 7539 */ // Combiner Rule #146: zext_trunc_fold
8044 /* 7539 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner67),
8045 /* 7542 */ // Label 352: @7542
8046 /* 7542 */ GIM_Try, /*On fail goto*//*Label 353*/ GIMT_Encode4(7553), // Rule ID 304 //
8047 /* 7547 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule197Enabled),
8048 /* 7550 */ // MIs[0] dst
8049 /* 7550 */ // No operand predicates
8050 /* 7550 */ // MIs[0] d.src
8051 /* 7550 */ // No operand predicates
8052 /* 7550 */ // Combiner Rule #197: constant_fold_cast_op @ [d[0]]
8053 /* 7550 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner95),
8054 /* 7553 */ // Label 353: @7553
8055 /* 7553 */ GIM_Reject,
8056 /* 7554 */ // Label 34: @7554
8057 /* 7554 */ GIM_Try, /*On fail goto*//*Label 354*/ GIMT_Encode4(7565), // Rule ID 236 //
8058 /* 7559 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule175Enabled),
8059 /* 7562 */ // Combiner Rule #175: shift_immed_chain; wip_match_opcode 'G_SHL'
8060 /* 7562 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner81),
8061 /* 7565 */ // Label 354: @7565
8062 /* 7565 */ GIM_Try, /*On fail goto*//*Label 355*/ GIMT_Encode4(7576), // Rule ID 241 //
8063 /* 7570 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule176Enabled),
8064 /* 7573 */ // Combiner Rule #176: shift_of_shifted_logic_chain; wip_match_opcode 'G_SHL'
8065 /* 7573 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner82),
8066 /* 7576 */ // Label 355: @7576
8067 /* 7576 */ GIM_Try, /*On fail goto*//*Label 356*/ GIMT_Encode4(7587), // Rule ID 279 //
8068 /* 7581 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
8069 /* 7584 */ // Combiner Rule #194: constant_fold_binop; wip_match_opcode 'G_SHL'
8070 /* 7584 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner92),
8071 /* 7587 */ // Label 356: @7587
8072 /* 7587 */ GIM_Try, /*On fail goto*//*Label 357*/ GIMT_Encode4(7598), // Rule ID 344 //
8073 /* 7592 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule215Enabled),
8074 /* 7595 */ // Combiner Rule #215: fold_binop_into_select; wip_match_opcode 'G_SHL'
8075 /* 7595 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner108),
8076 /* 7598 */ // Label 357: @7598
8077 /* 7598 */ GIM_Try, /*On fail goto*//*Label 358*/ GIMT_Encode4(7676), // Rule ID 264 //
8078 /* 7603 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule188Enabled),
8079 /* 7606 */ // MIs[0] dst
8080 /* 7606 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
8081 /* 7610 */ // MIs[0] binop_dst
8082 /* 7610 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8083 /* 7614 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
8084 /* 7618 */ // MIs[1] x
8085 /* 7618 */ // No operand predicates
8086 /* 7618 */ // MIs[1] c1
8087 /* 7618 */ // No operand predicates
8088 /* 7618 */ // MIs[0] c2
8089 /* 7618 */ // No operand predicates
8090 /* 7618 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner22),
8091 /* 7622 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8092 /* 7624 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
8093 /* 7627 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
8094 /* 7630 */ // Combiner Rule #188: commute_shift_add
8095 /* 7630 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SHL),
8096 /* 7633 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
8097 /* 7638 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
8098 /* 7642 */ GIR_RootToRootCopy, /*OpIdx*/2, // c2
8099 /* 7644 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SHL),
8100 /* 7648 */ GIR_AddTempRegister, /*InsnID*/1, /*TempRegID*/1, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
8101 /* 7653 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/2, // c1
8102 /* 7657 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/2, // c2
8103 /* 7661 */ GIR_BuildMI, /*InsnID*/2, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ADD),
8104 /* 7665 */ GIR_Copy, /*NewInsnID*/2, /*OldInsnID*/0, /*OpIdx*/0, // dst
8105 /* 7669 */ GIR_AddSimpleTempRegister, /*InsnID*/2, /*TempRegID*/0,
8106 /* 7672 */ GIR_AddSimpleTempRegister, /*InsnID*/2, /*TempRegID*/1,
8107 /* 7675 */ GIR_EraseRootFromParent_Done,
8108 /* 7676 */ // Label 358: @7676
8109 /* 7676 */ GIM_Try, /*On fail goto*//*Label 359*/ GIMT_Encode4(7754), // Rule ID 265 //
8110 /* 7681 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule189Enabled),
8111 /* 7684 */ // MIs[0] dst
8112 /* 7684 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
8113 /* 7688 */ // MIs[0] binop_dst
8114 /* 7688 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8115 /* 7692 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_OR),
8116 /* 7696 */ // MIs[1] x
8117 /* 7696 */ // No operand predicates
8118 /* 7696 */ // MIs[1] c1
8119 /* 7696 */ // No operand predicates
8120 /* 7696 */ // MIs[0] c2
8121 /* 7696 */ // No operand predicates
8122 /* 7696 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner22),
8123 /* 7700 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8124 /* 7702 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255,
8125 /* 7705 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
8126 /* 7708 */ // Combiner Rule #189: commute_shift_or
8127 /* 7708 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SHL),
8128 /* 7711 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
8129 /* 7716 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
8130 /* 7720 */ GIR_RootToRootCopy, /*OpIdx*/2, // c2
8131 /* 7722 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SHL),
8132 /* 7726 */ GIR_AddTempRegister, /*InsnID*/1, /*TempRegID*/1, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
8133 /* 7731 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/2, // c1
8134 /* 7735 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/2, // c2
8135 /* 7739 */ GIR_BuildMI, /*InsnID*/2, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR),
8136 /* 7743 */ GIR_Copy, /*NewInsnID*/2, /*OldInsnID*/0, /*OpIdx*/0, // dst
8137 /* 7747 */ GIR_AddSimpleTempRegister, /*InsnID*/2, /*TempRegID*/0,
8138 /* 7750 */ GIR_AddSimpleTempRegister, /*InsnID*/2, /*TempRegID*/1,
8139 /* 7753 */ GIR_EraseRootFromParent_Done,
8140 /* 7754 */ // Label 359: @7754
8141 /* 7754 */ GIM_Try, /*On fail goto*//*Label 360*/ GIMT_Encode4(7789), // Rule ID 48 //
8142 /* 7759 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule44Enabled),
8143 /* 7762 */ GIM_MIFlags, /*MI*/0, GIMT_Encode4(MachineInstr::NoSWrap),
8144 /* 7768 */ // MIs[0] root
8145 /* 7768 */ // No operand predicates
8146 /* 7768 */ // MIs[0] left
8147 /* 7768 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8148 /* 7772 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_VSCALE),
8149 /* 7776 */ // MIs[1] imm
8150 /* 7776 */ // No operand predicates
8151 /* 7776 */ // MIs[0] x
8152 /* 7776 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
8153 /* 7780 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
8154 /* 7784 */ // MIs[2] imm1
8155 /* 7784 */ // No operand predicates
8156 /* 7784 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
8157 /* 7786 */ // Combiner Rule #44: shl_of_vscale
8158 /* 7786 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner16),
8159 /* 7789 */ // Label 360: @7789
8160 /* 7789 */ GIM_Try, /*On fail goto*//*Label 361*/ GIMT_Encode4(7810), // Rule ID 90 //
8161 /* 7794 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule79Enabled),
8162 /* 7797 */ // MIs[0] dst
8163 /* 7797 */ // No operand predicates
8164 /* 7797 */ // MIs[0] __binop_left_undef_to_zero_match_0.x
8165 /* 7797 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8166 /* 7801 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
8167 /* 7805 */ // MIs[0] __binop_left_undef_to_zero_match_0.y
8168 /* 7805 */ // No operand predicates
8169 /* 7805 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8170 /* 7807 */ // Combiner Rule #79: binop_left_undef_to_zero @ [__binop_left_undef_to_zero_match_0[0]]
8171 /* 7807 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner33),
8172 /* 7810 */ // Label 361: @7810
8173 /* 7810 */ GIM_Try, /*On fail goto*//*Label 362*/ GIMT_Encode4(7850), // Rule ID 132 //
8174 /* 7815 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
8175 /* 7818 */ // MIs[0] dst
8176 /* 7818 */ // No operand predicates
8177 /* 7818 */ // MIs[0] zero
8178 /* 7818 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8179 /* 7822 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
8180 /* 7826 */ // MIs[1] Operand 1
8181 /* 7826 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0),
8182 /* 7837 */ // MIs[0] rhs
8183 /* 7837 */ // No operand predicates
8184 /* 7837 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8185 /* 7842 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8186 /* 7844 */ // Combiner Rule #93: binop_left_to_zero @ [__binop_left_to_zero_match_0[0]]
8187 /* 7844 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8188 /* 7849 */ GIR_EraseRootFromParent_Done,
8189 /* 7850 */ // Label 362: @7850
8190 /* 7850 */ GIM_Try, /*On fail goto*//*Label 363*/ GIMT_Encode4(7871), // Rule ID 93 //
8191 /* 7855 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule80Enabled),
8192 /* 7858 */ // MIs[0] dst
8193 /* 7858 */ // No operand predicates
8194 /* 7858 */ // MIs[0] __binop_right_undef_to_undef_match_0.x
8195 /* 7858 */ // No operand predicates
8196 /* 7858 */ // MIs[0] __binop_right_undef_to_undef_match_0.y
8197 /* 7858 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
8198 /* 7862 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
8199 /* 7866 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8200 /* 7868 */ // Combiner Rule #80: binop_right_undef_to_undef @ [__binop_right_undef_to_undef_match_0[0]]
8201 /* 7868 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner35),
8202 /* 7871 */ // Label 363: @7871
8203 /* 7871 */ GIM_Try, /*On fail goto*//*Label 364*/ GIMT_Encode4(7894), // Rule ID 122 //
8204 /* 7876 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled),
8205 /* 7879 */ // MIs[0] dst
8206 /* 7879 */ // No operand predicates
8207 /* 7879 */ // MIs[0] lhs
8208 /* 7879 */ // No operand predicates
8209 /* 7879 */ // MIs[0] Operand 2
8210 /* 7879 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
8211 /* 7883 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8212 /* 7888 */ // Combiner Rule #90: right_identity_zero @ [__right_identity_zero_match_0[4]]
8213 /* 7888 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8214 /* 7893 */ GIR_EraseRootFromParent_Done,
8215 /* 7894 */ // Label 364: @7894
8216 /* 7894 */ GIM_Try, /*On fail goto*//*Label 365*/ GIMT_Encode4(7905), // Rule ID 165 //
8217 /* 7899 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule114Enabled),
8218 /* 7902 */ // MIs[0] root
8219 /* 7902 */ // No operand predicates
8220 /* 7902 */ // MIs[0] mi.shifted
8221 /* 7902 */ // No operand predicates
8222 /* 7902 */ // MIs[0] mi.amt
8223 /* 7902 */ // No operand predicates
8224 /* 7902 */ // Combiner Rule #114: shifts_too_big @ [mi[0]]
8225 /* 7902 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner47),
8226 /* 7905 */ // Label 365: @7905
8227 /* 7905 */ GIM_Try, /*On fail goto*//*Label 366*/ GIMT_Encode4(7916), // Rule ID 181 //
8228 /* 7910 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule128Enabled),
8229 /* 7913 */ // MIs[0] dst
8230 /* 7913 */ // No operand predicates
8231 /* 7913 */ // MIs[0] src0
8232 /* 7913 */ // No operand predicates
8233 /* 7913 */ // MIs[0] src1
8234 /* 7913 */ // No operand predicates
8235 /* 7913 */ // Combiner Rule #128: reduce_shl_of_extend
8236 /* 7913 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner58),
8237 /* 7916 */ // Label 366: @7916
8238 /* 7916 */ GIM_Reject,
8239 /* 7917 */ // Label 35: @7917
8240 /* 7917 */ GIM_Try, /*On fail goto*//*Label 367*/ GIMT_Encode4(7928), // Rule ID 238 //
8241 /* 7922 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule175Enabled),
8242 /* 7925 */ // Combiner Rule #175: shift_immed_chain; wip_match_opcode 'G_LSHR'
8243 /* 7925 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner81),
8244 /* 7928 */ // Label 367: @7928
8245 /* 7928 */ GIM_Try, /*On fail goto*//*Label 368*/ GIMT_Encode4(7939), // Rule ID 243 //
8246 /* 7933 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule176Enabled),
8247 /* 7936 */ // Combiner Rule #176: shift_of_shifted_logic_chain; wip_match_opcode 'G_LSHR'
8248 /* 7936 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner82),
8249 /* 7939 */ // Label 368: @7939
8250 /* 7939 */ GIM_Try, /*On fail goto*//*Label 369*/ GIMT_Encode4(7950), // Rule ID 276 //
8251 /* 7944 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
8252 /* 7947 */ // Combiner Rule #194: constant_fold_binop; wip_match_opcode 'G_LSHR'
8253 /* 7947 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner92),
8254 /* 7950 */ // Label 369: @7950
8255 /* 7950 */ GIM_Try, /*On fail goto*//*Label 370*/ GIMT_Encode4(7961), // Rule ID 342 //
8256 /* 7955 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule215Enabled),
8257 /* 7958 */ // Combiner Rule #215: fold_binop_into_select; wip_match_opcode 'G_LSHR'
8258 /* 7958 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner108),
8259 /* 7961 */ // Label 370: @7961
8260 /* 7961 */ GIM_Try, /*On fail goto*//*Label 371*/ GIMT_Encode4(8050), // Rule ID 450 //
8261 /* 7966 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule276Enabled),
8262 /* 7969 */ // MIs[0] dst
8263 /* 7969 */ // No operand predicates
8264 /* 7969 */ // MIs[0] sum
8265 /* 7969 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8266 /* 7973 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
8267 /* 7977 */ // MIs[1] inner
8268 /* 7977 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
8269 /* 7981 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ADD),
8270 /* 7985 */ // MIs[2] ext1
8271 /* 7985 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/2, /*OpIdx*/1, // MIs[3]
8272 /* 7989 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_ZEXT),
8273 /* 7993 */ // MIs[3] x
8274 /* 7993 */ GIM_RecordRegType, /*MI*/3, /*Op*/1, /*TempTypeIdx*/255,
8275 /* 7997 */ // MIs[2] ext2
8276 /* 7997 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/4, /*MI*/2, /*OpIdx*/2, // MIs[4]
8277 /* 8001 */ GIM_CheckOpcode, /*MI*/4, GIMT_Encode2(TargetOpcode::G_ZEXT),
8278 /* 8005 */ // MIs[4] y
8279 /* 8005 */ // No operand predicates
8280 /* 8005 */ // MIs[1] Operand 2
8281 /* 8005 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/2, 1,
8282 /* 8009 */ // MIs[0] Operand 2
8283 /* 8009 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 1,
8284 /* 8013 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner30),
8285 /* 8017 */ GIM_CheckIsSafeToFold, /*NumInsns*/4,
8286 /* 8019 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
8287 /* 8022 */ // Combiner Rule #276: avgceil_u_match
8288 /* 8022 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UAVGCEIL),
8289 /* 8025 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
8290 /* 8030 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/3, /*OpIdx*/1, // x
8291 /* 8034 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/4, /*OpIdx*/1, // y
8292 /* 8038 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ZEXT),
8293 /* 8042 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
8294 /* 8046 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
8295 /* 8049 */ GIR_EraseRootFromParent_Done,
8296 /* 8050 */ // Label 371: @8050
8297 /* 8050 */ GIM_Try, /*On fail goto*//*Label 372*/ GIMT_Encode4(8127), // Rule ID 448 //
8298 /* 8055 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule274Enabled),
8299 /* 8058 */ // MIs[0] dst
8300 /* 8058 */ // No operand predicates
8301 /* 8058 */ // MIs[0] sum
8302 /* 8058 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8303 /* 8062 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
8304 /* 8066 */ // MIs[1] ext1
8305 /* 8066 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
8306 /* 8070 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ZEXT),
8307 /* 8074 */ // MIs[2] x
8308 /* 8074 */ GIM_RecordRegType, /*MI*/2, /*Op*/1, /*TempTypeIdx*/255,
8309 /* 8078 */ // MIs[1] ext2
8310 /* 8078 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/1, /*OpIdx*/2, // MIs[3]
8311 /* 8082 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_ZEXT),
8312 /* 8086 */ // MIs[3] y
8313 /* 8086 */ // No operand predicates
8314 /* 8086 */ // MIs[0] Operand 2
8315 /* 8086 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 1,
8316 /* 8090 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner28),
8317 /* 8094 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
8318 /* 8096 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
8319 /* 8099 */ // Combiner Rule #274: avgfloor_u_match
8320 /* 8099 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UAVGFLOOR),
8321 /* 8102 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
8322 /* 8107 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // x
8323 /* 8111 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/3, /*OpIdx*/1, // y
8324 /* 8115 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ZEXT),
8325 /* 8119 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
8326 /* 8123 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
8327 /* 8126 */ GIR_EraseRootFromParent_Done,
8328 /* 8127 */ // Label 372: @8127
8329 /* 8127 */ GIM_Try, /*On fail goto*//*Label 373*/ GIMT_Encode4(8156), // Rule ID 433 //
8330 /* 8132 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule262Enabled),
8331 /* 8135 */ // MIs[0] dst
8332 /* 8135 */ // No operand predicates
8333 /* 8135 */ // MIs[0] d2
8334 /* 8135 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8335 /* 8139 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_TRUNC),
8336 /* 8143 */ // MIs[1] d1
8337 /* 8143 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
8338 /* 8147 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_LSHR),
8339 /* 8151 */ // MIs[2] x
8340 /* 8151 */ // No operand predicates
8341 /* 8151 */ // MIs[2] y
8342 /* 8151 */ // No operand predicates
8343 /* 8151 */ // MIs[0] z
8344 /* 8151 */ // No operand predicates
8345 /* 8151 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
8346 /* 8153 */ // Combiner Rule #262: lshr_of_trunc_of_lshr
8347 /* 8153 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner145),
8348 /* 8156 */ // Label 373: @8156
8349 /* 8156 */ GIM_Try, /*On fail goto*//*Label 374*/ GIMT_Encode4(8196), // Rule ID 133 //
8350 /* 8161 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
8351 /* 8164 */ // MIs[0] dst
8352 /* 8164 */ // No operand predicates
8353 /* 8164 */ // MIs[0] zero
8354 /* 8164 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8355 /* 8168 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
8356 /* 8172 */ // MIs[1] Operand 1
8357 /* 8172 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0),
8358 /* 8183 */ // MIs[0] rhs
8359 /* 8183 */ // No operand predicates
8360 /* 8183 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8361 /* 8188 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8362 /* 8190 */ // Combiner Rule #93: binop_left_to_zero @ [__binop_left_to_zero_match_0[1]]
8363 /* 8190 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8364 /* 8195 */ GIR_EraseRootFromParent_Done,
8365 /* 8196 */ // Label 374: @8196
8366 /* 8196 */ GIM_Try, /*On fail goto*//*Label 375*/ GIMT_Encode4(8217), // Rule ID 95 //
8367 /* 8201 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule80Enabled),
8368 /* 8204 */ // MIs[0] dst
8369 /* 8204 */ // No operand predicates
8370 /* 8204 */ // MIs[0] __binop_right_undef_to_undef_match_0.x
8371 /* 8204 */ // No operand predicates
8372 /* 8204 */ // MIs[0] __binop_right_undef_to_undef_match_0.y
8373 /* 8204 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
8374 /* 8208 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
8375 /* 8212 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8376 /* 8214 */ // Combiner Rule #80: binop_right_undef_to_undef @ [__binop_right_undef_to_undef_match_0[2]]
8377 /* 8214 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner35),
8378 /* 8217 */ // Label 375: @8217
8379 /* 8217 */ GIM_Try, /*On fail goto*//*Label 376*/ GIMT_Encode4(8240), // Rule ID 124 //
8380 /* 8222 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled),
8381 /* 8225 */ // MIs[0] dst
8382 /* 8225 */ // No operand predicates
8383 /* 8225 */ // MIs[0] lhs
8384 /* 8225 */ // No operand predicates
8385 /* 8225 */ // MIs[0] Operand 2
8386 /* 8225 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
8387 /* 8229 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8388 /* 8234 */ // Combiner Rule #90: right_identity_zero @ [__right_identity_zero_match_0[6]]
8389 /* 8234 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8390 /* 8239 */ GIR_EraseRootFromParent_Done,
8391 /* 8240 */ // Label 376: @8240
8392 /* 8240 */ GIM_Try, /*On fail goto*//*Label 377*/ GIMT_Encode4(8251), // Rule ID 167 //
8393 /* 8245 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule114Enabled),
8394 /* 8248 */ // MIs[0] root
8395 /* 8248 */ // No operand predicates
8396 /* 8248 */ // MIs[0] mi.shifted
8397 /* 8248 */ // No operand predicates
8398 /* 8248 */ // MIs[0] mi.amt
8399 /* 8248 */ // No operand predicates
8400 /* 8248 */ // Combiner Rule #114: shifts_too_big @ [mi[2]]
8401 /* 8248 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner47),
8402 /* 8251 */ // Label 377: @8251
8403 /* 8251 */ GIM_Try, /*On fail goto*//*Label 378*/ GIMT_Encode4(8262), // Rule ID 269 //
8404 /* 8256 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule192Enabled),
8405 /* 8259 */ // MIs[0] dst
8406 /* 8259 */ // No operand predicates
8407 /* 8259 */ // MIs[0] root.src
8408 /* 8259 */ // No operand predicates
8409 /* 8259 */ // MIs[0] root.amt
8410 /* 8259 */ // No operand predicates
8411 /* 8259 */ // Combiner Rule #192: bitfield_extract_from_shr @ [root[1]]
8412 /* 8259 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner90),
8413 /* 8262 */ // Label 378: @8262
8414 /* 8262 */ GIM_Try, /*On fail goto*//*Label 379*/ GIMT_Encode4(8273), // Rule ID 271 //
8415 /* 8267 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule193Enabled),
8416 /* 8270 */ // MIs[0] dst
8417 /* 8270 */ // No operand predicates
8418 /* 8270 */ // MIs[0] root.src
8419 /* 8270 */ // No operand predicates
8420 /* 8270 */ // MIs[0] root.amt
8421 /* 8270 */ // No operand predicates
8422 /* 8270 */ // Combiner Rule #193: bitfield_extract_from_shr_and @ [root[1]]
8423 /* 8270 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner91),
8424 /* 8273 */ // Label 379: @8273
8425 /* 8273 */ GIM_Reject,
8426 /* 8274 */ // Label 36: @8274
8427 /* 8274 */ GIM_Try, /*On fail goto*//*Label 380*/ GIMT_Encode4(8285), // Rule ID 237 //
8428 /* 8279 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule175Enabled),
8429 /* 8282 */ // Combiner Rule #175: shift_immed_chain; wip_match_opcode 'G_ASHR'
8430 /* 8282 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner81),
8431 /* 8285 */ // Label 380: @8285
8432 /* 8285 */ GIM_Try, /*On fail goto*//*Label 381*/ GIMT_Encode4(8296), // Rule ID 242 //
8433 /* 8290 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule176Enabled),
8434 /* 8293 */ // Combiner Rule #176: shift_of_shifted_logic_chain; wip_match_opcode 'G_ASHR'
8435 /* 8293 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner82),
8436 /* 8296 */ // Label 381: @8296
8437 /* 8296 */ GIM_Try, /*On fail goto*//*Label 382*/ GIMT_Encode4(8307), // Rule ID 275 //
8438 /* 8301 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
8439 /* 8304 */ // Combiner Rule #194: constant_fold_binop; wip_match_opcode 'G_ASHR'
8440 /* 8304 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner92),
8441 /* 8307 */ // Label 382: @8307
8442 /* 8307 */ GIM_Try, /*On fail goto*//*Label 383*/ GIMT_Encode4(8318), // Rule ID 343 //
8443 /* 8312 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule215Enabled),
8444 /* 8315 */ // Combiner Rule #215: fold_binop_into_select; wip_match_opcode 'G_ASHR'
8445 /* 8315 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner108),
8446 /* 8318 */ // Label 383: @8318
8447 /* 8318 */ GIM_Try, /*On fail goto*//*Label 384*/ GIMT_Encode4(8407), // Rule ID 451 //
8448 /* 8323 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule277Enabled),
8449 /* 8326 */ // MIs[0] dst
8450 /* 8326 */ // No operand predicates
8451 /* 8326 */ // MIs[0] sum
8452 /* 8326 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8453 /* 8330 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
8454 /* 8334 */ // MIs[1] inner
8455 /* 8334 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
8456 /* 8338 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ADD),
8457 /* 8342 */ // MIs[2] ext1
8458 /* 8342 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/2, /*OpIdx*/1, // MIs[3]
8459 /* 8346 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_SEXT),
8460 /* 8350 */ // MIs[3] x
8461 /* 8350 */ GIM_RecordRegType, /*MI*/3, /*Op*/1, /*TempTypeIdx*/255,
8462 /* 8354 */ // MIs[2] ext2
8463 /* 8354 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/4, /*MI*/2, /*OpIdx*/2, // MIs[4]
8464 /* 8358 */ GIM_CheckOpcode, /*MI*/4, GIMT_Encode2(TargetOpcode::G_SEXT),
8465 /* 8362 */ // MIs[4] y
8466 /* 8362 */ // No operand predicates
8467 /* 8362 */ // MIs[1] Operand 2
8468 /* 8362 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/2, 1,
8469 /* 8366 */ // MIs[0] Operand 2
8470 /* 8366 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 1,
8471 /* 8370 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner31),
8472 /* 8374 */ GIM_CheckIsSafeToFold, /*NumInsns*/4,
8473 /* 8376 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
8474 /* 8379 */ // Combiner Rule #277: avgceil_s_match
8475 /* 8379 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SAVGCEIL),
8476 /* 8382 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
8477 /* 8387 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/3, /*OpIdx*/1, // x
8478 /* 8391 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/4, /*OpIdx*/1, // y
8479 /* 8395 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SEXT),
8480 /* 8399 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
8481 /* 8403 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
8482 /* 8406 */ GIR_EraseRootFromParent_Done,
8483 /* 8407 */ // Label 384: @8407
8484 /* 8407 */ GIM_Try, /*On fail goto*//*Label 385*/ GIMT_Encode4(8484), // Rule ID 449 //
8485 /* 8412 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule275Enabled),
8486 /* 8415 */ // MIs[0] dst
8487 /* 8415 */ // No operand predicates
8488 /* 8415 */ // MIs[0] sum
8489 /* 8415 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8490 /* 8419 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD),
8491 /* 8423 */ // MIs[1] ext1
8492 /* 8423 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
8493 /* 8427 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SEXT),
8494 /* 8431 */ // MIs[2] x
8495 /* 8431 */ GIM_RecordRegType, /*MI*/2, /*Op*/1, /*TempTypeIdx*/255,
8496 /* 8435 */ // MIs[1] ext2
8497 /* 8435 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/1, /*OpIdx*/2, // MIs[3]
8498 /* 8439 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_SEXT),
8499 /* 8443 */ // MIs[3] y
8500 /* 8443 */ // No operand predicates
8501 /* 8443 */ // MIs[0] Operand 2
8502 /* 8443 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 1,
8503 /* 8447 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner29),
8504 /* 8451 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
8505 /* 8453 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
8506 /* 8456 */ // Combiner Rule #275: avgfloor_s_match
8507 /* 8456 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SAVGFLOOR),
8508 /* 8459 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
8509 /* 8464 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // x
8510 /* 8468 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/3, /*OpIdx*/1, // y
8511 /* 8472 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SEXT),
8512 /* 8476 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
8513 /* 8480 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
8514 /* 8483 */ GIR_EraseRootFromParent_Done,
8515 /* 8484 */ // Label 385: @8484
8516 /* 8484 */ GIM_Try, /*On fail goto*//*Label 386*/ GIMT_Encode4(8524), // Rule ID 134 //
8517 /* 8489 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
8518 /* 8492 */ // MIs[0] dst
8519 /* 8492 */ // No operand predicates
8520 /* 8492 */ // MIs[0] zero
8521 /* 8492 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8522 /* 8496 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
8523 /* 8500 */ // MIs[1] Operand 1
8524 /* 8500 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0),
8525 /* 8511 */ // MIs[0] rhs
8526 /* 8511 */ // No operand predicates
8527 /* 8511 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8528 /* 8516 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8529 /* 8518 */ // Combiner Rule #93: binop_left_to_zero @ [__binop_left_to_zero_match_0[2]]
8530 /* 8518 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8531 /* 8523 */ GIR_EraseRootFromParent_Done,
8532 /* 8524 */ // Label 386: @8524
8533 /* 8524 */ GIM_Try, /*On fail goto*//*Label 387*/ GIMT_Encode4(8545), // Rule ID 94 //
8534 /* 8529 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule80Enabled),
8535 /* 8532 */ // MIs[0] dst
8536 /* 8532 */ // No operand predicates
8537 /* 8532 */ // MIs[0] __binop_right_undef_to_undef_match_0.x
8538 /* 8532 */ // No operand predicates
8539 /* 8532 */ // MIs[0] __binop_right_undef_to_undef_match_0.y
8540 /* 8532 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
8541 /* 8536 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
8542 /* 8540 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8543 /* 8542 */ // Combiner Rule #80: binop_right_undef_to_undef @ [__binop_right_undef_to_undef_match_0[1]]
8544 /* 8542 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner35),
8545 /* 8545 */ // Label 387: @8545
8546 /* 8545 */ GIM_Try, /*On fail goto*//*Label 388*/ GIMT_Encode4(8568), // Rule ID 123 //
8547 /* 8550 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled),
8548 /* 8553 */ // MIs[0] dst
8549 /* 8553 */ // No operand predicates
8550 /* 8553 */ // MIs[0] lhs
8551 /* 8553 */ // No operand predicates
8552 /* 8553 */ // MIs[0] Operand 2
8553 /* 8553 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
8554 /* 8557 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8555 /* 8562 */ // Combiner Rule #90: right_identity_zero @ [__right_identity_zero_match_0[5]]
8556 /* 8562 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8557 /* 8567 */ GIR_EraseRootFromParent_Done,
8558 /* 8568 */ // Label 388: @8568
8559 /* 8568 */ GIM_Try, /*On fail goto*//*Label 389*/ GIMT_Encode4(8579), // Rule ID 166 //
8560 /* 8573 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule114Enabled),
8561 /* 8576 */ // MIs[0] root
8562 /* 8576 */ // No operand predicates
8563 /* 8576 */ // MIs[0] mi.shifted
8564 /* 8576 */ // No operand predicates
8565 /* 8576 */ // MIs[0] mi.amt
8566 /* 8576 */ // No operand predicates
8567 /* 8576 */ // Combiner Rule #114: shifts_too_big @ [mi[1]]
8568 /* 8576 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner47),
8569 /* 8579 */ // Label 389: @8579
8570 /* 8579 */ GIM_Try, /*On fail goto*//*Label 390*/ GIMT_Encode4(8590), // Rule ID 178 //
8571 /* 8584 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule125Enabled),
8572 /* 8587 */ // MIs[0] dst
8573 /* 8587 */ // No operand predicates
8574 /* 8587 */ // MIs[0] src1
8575 /* 8587 */ // No operand predicates
8576 /* 8587 */ // MIs[0] src2
8577 /* 8587 */ // No operand predicates
8578 /* 8587 */ // Combiner Rule #125: shl_ashr_to_sext_inreg
8579 /* 8587 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner56),
8580 /* 8590 */ // Label 390: @8590
8581 /* 8590 */ GIM_Try, /*On fail goto*//*Label 391*/ GIMT_Encode4(8601), // Rule ID 268 //
8582 /* 8595 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule192Enabled),
8583 /* 8598 */ // MIs[0] dst
8584 /* 8598 */ // No operand predicates
8585 /* 8598 */ // MIs[0] root.src
8586 /* 8598 */ // No operand predicates
8587 /* 8598 */ // MIs[0] root.amt
8588 /* 8598 */ // No operand predicates
8589 /* 8598 */ // Combiner Rule #192: bitfield_extract_from_shr @ [root[0]]
8590 /* 8598 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner90),
8591 /* 8601 */ // Label 391: @8601
8592 /* 8601 */ GIM_Try, /*On fail goto*//*Label 392*/ GIMT_Encode4(8612), // Rule ID 270 //
8593 /* 8606 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule193Enabled),
8594 /* 8609 */ // MIs[0] dst
8595 /* 8609 */ // No operand predicates
8596 /* 8609 */ // MIs[0] root.src
8597 /* 8609 */ // No operand predicates
8598 /* 8609 */ // MIs[0] root.amt
8599 /* 8609 */ // No operand predicates
8600 /* 8609 */ // Combiner Rule #193: bitfield_extract_from_shr_and @ [root[0]]
8601 /* 8609 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner91),
8602 /* 8612 */ // Label 392: @8612
8603 /* 8612 */ GIM_Reject,
8604 /* 8613 */ // Label 37: @8613
8605 /* 8613 */ GIM_Try, /*On fail goto*//*Label 393*/ GIMT_Encode4(8633), // Rule ID 255 //
8606 /* 8618 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule182Enabled),
8607 /* 8621 */ // MIs[0] x
8608 /* 8621 */ // No operand predicates
8609 /* 8621 */ // MIs[0] y
8610 /* 8621 */ // No operand predicates
8611 /* 8621 */ // MIs[0] z
8612 /* 8621 */ // No operand predicates
8613 /* 8621 */ // MIs[0] Operand 3
8614 /* 8621 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/3, 0,
8615 /* 8625 */ // Combiner Rule #182: funnel_shift_left_zero
8616 /* 8625 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::COPY),
8617 /* 8628 */ GIR_RootToRootCopy, /*OpIdx*/0, // x
8618 /* 8630 */ GIR_RootToRootCopy, /*OpIdx*/1, // y
8619 /* 8632 */ GIR_EraseRootFromParent_Done,
8620 /* 8633 */ // Label 393: @8633
8621 /* 8633 */ GIM_Try, /*On fail goto*//*Label 394*/ GIMT_Encode4(8644), // Rule ID 252 //
8622 /* 8638 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule180Enabled),
8623 /* 8641 */ // MIs[0] dst
8624 /* 8641 */ // No operand predicates
8625 /* 8641 */ // MIs[0] root.x
8626 /* 8641 */ // No operand predicates
8627 /* 8641 */ // MIs[0] root.y
8628 /* 8641 */ // No operand predicates
8629 /* 8641 */ // MIs[0] root.amt
8630 /* 8641 */ // No operand predicates
8631 /* 8641 */ // Combiner Rule #180: funnel_shift_to_rotate @ [root[0]]
8632 /* 8641 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner86),
8633 /* 8644 */ // Label 394: @8644
8634 /* 8644 */ GIM_Try, /*On fail goto*//*Label 395*/ GIMT_Encode4(8655), // Rule ID 256 //
8635 /* 8649 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule183Enabled),
8636 /* 8652 */ // MIs[0] dst
8637 /* 8652 */ // No operand predicates
8638 /* 8652 */ // MIs[0] root.x
8639 /* 8652 */ // No operand predicates
8640 /* 8652 */ // MIs[0] root.y
8641 /* 8652 */ // No operand predicates
8642 /* 8652 */ // MIs[0] root.amt
8643 /* 8652 */ // No operand predicates
8644 /* 8652 */ // Combiner Rule #183: funnel_shift_overshift @ [root[0]]
8645 /* 8652 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner87),
8646 /* 8655 */ // Label 395: @8655
8647 /* 8655 */ GIM_Reject,
8648 /* 8656 */ // Label 38: @8656
8649 /* 8656 */ GIM_Try, /*On fail goto*//*Label 396*/ GIMT_Encode4(8676), // Rule ID 254 //
8650 /* 8661 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule181Enabled),
8651 /* 8664 */ // MIs[0] x
8652 /* 8664 */ // No operand predicates
8653 /* 8664 */ // MIs[0] y
8654 /* 8664 */ // No operand predicates
8655 /* 8664 */ // MIs[0] z
8656 /* 8664 */ // No operand predicates
8657 /* 8664 */ // MIs[0] Operand 3
8658 /* 8664 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/3, 0,
8659 /* 8668 */ // Combiner Rule #181: funnel_shift_right_zero
8660 /* 8668 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::COPY),
8661 /* 8671 */ GIR_RootToRootCopy, /*OpIdx*/0, // x
8662 /* 8673 */ GIR_RootToRootCopy, /*OpIdx*/2, // z
8663 /* 8675 */ GIR_EraseRootFromParent_Done,
8664 /* 8676 */ // Label 396: @8676
8665 /* 8676 */ GIM_Try, /*On fail goto*//*Label 397*/ GIMT_Encode4(8687), // Rule ID 253 //
8666 /* 8681 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule180Enabled),
8667 /* 8684 */ // MIs[0] dst
8668 /* 8684 */ // No operand predicates
8669 /* 8684 */ // MIs[0] root.x
8670 /* 8684 */ // No operand predicates
8671 /* 8684 */ // MIs[0] root.y
8672 /* 8684 */ // No operand predicates
8673 /* 8684 */ // MIs[0] root.amt
8674 /* 8684 */ // No operand predicates
8675 /* 8684 */ // Combiner Rule #180: funnel_shift_to_rotate @ [root[1]]
8676 /* 8684 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner86),
8677 /* 8687 */ // Label 397: @8687
8678 /* 8687 */ GIM_Try, /*On fail goto*//*Label 398*/ GIMT_Encode4(8698), // Rule ID 257 //
8679 /* 8692 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule183Enabled),
8680 /* 8695 */ // MIs[0] dst
8681 /* 8695 */ // No operand predicates
8682 /* 8695 */ // MIs[0] root.x
8683 /* 8695 */ // No operand predicates
8684 /* 8695 */ // MIs[0] root.y
8685 /* 8695 */ // No operand predicates
8686 /* 8695 */ // MIs[0] root.amt
8687 /* 8695 */ // No operand predicates
8688 /* 8695 */ // Combiner Rule #183: funnel_shift_overshift @ [root[1]]
8689 /* 8695 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner87),
8690 /* 8698 */ // Label 398: @8698
8691 /* 8698 */ GIM_Reject,
8692 /* 8699 */ // Label 39: @8699
8693 /* 8699 */ GIM_Try, /*On fail goto*//*Label 399*/ GIMT_Encode4(8722), // Rule ID 127 //
8694 /* 8704 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled),
8695 /* 8707 */ // MIs[0] dst
8696 /* 8707 */ // No operand predicates
8697 /* 8707 */ // MIs[0] lhs
8698 /* 8707 */ // No operand predicates
8699 /* 8707 */ // MIs[0] Operand 2
8700 /* 8707 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
8701 /* 8711 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8702 /* 8716 */ // Combiner Rule #90: right_identity_zero @ [__right_identity_zero_match_0[9]]
8703 /* 8716 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8704 /* 8721 */ GIR_EraseRootFromParent_Done,
8705 /* 8722 */ // Label 399: @8722
8706 /* 8722 */ GIM_Reject,
8707 /* 8723 */ // Label 40: @8723
8708 /* 8723 */ GIM_Try, /*On fail goto*//*Label 400*/ GIMT_Encode4(8746), // Rule ID 126 //
8709 /* 8728 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled),
8710 /* 8731 */ // MIs[0] dst
8711 /* 8731 */ // No operand predicates
8712 /* 8731 */ // MIs[0] lhs
8713 /* 8731 */ // No operand predicates
8714 /* 8731 */ // MIs[0] Operand 2
8715 /* 8731 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
8716 /* 8735 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8717 /* 8740 */ // Combiner Rule #90: right_identity_zero @ [__right_identity_zero_match_0[8]]
8718 /* 8740 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
8719 /* 8745 */ GIR_EraseRootFromParent_Done,
8720 /* 8746 */ // Label 400: @8746
8721 /* 8746 */ GIM_Reject,
8722 /* 8747 */ // Label 41: @8747
8723 /* 8747 */ GIM_Try, /*On fail goto*//*Label 401*/ GIMT_Encode4(8758), // Rule ID 171 //
8724 /* 8752 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule118Enabled),
8725 /* 8755 */ // MIs[0] root
8726 /* 8755 */ // No operand predicates
8727 /* 8755 */ // MIs[0] pred
8728 /* 8755 */ // No operand predicates
8729 /* 8755 */ // MIs[0] lhs
8730 /* 8755 */ // No operand predicates
8731 /* 8755 */ // MIs[0] rhs
8732 /* 8755 */ // No operand predicates
8733 /* 8755 */ // Combiner Rule #118: canonicalize_icmp
8734 /* 8755 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner51),
8735 /* 8758 */ // Label 401: @8758
8736 /* 8758 */ GIM_Try, /*On fail goto*//*Label 402*/ GIMT_Encode4(8769), // Rule ID 173 //
8737 /* 8763 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule120Enabled),
8738 /* 8766 */ // MIs[0] dst
8739 /* 8766 */ // No operand predicates
8740 /* 8766 */ // MIs[0] pred
8741 /* 8766 */ // No operand predicates
8742 /* 8766 */ // MIs[0] src1
8743 /* 8766 */ // No operand predicates
8744 /* 8766 */ // MIs[0] src2
8745 /* 8766 */ // No operand predicates
8746 /* 8766 */ // Combiner Rule #120: icmp_to_true_false_known_bits
8747 /* 8766 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner53),
8748 /* 8769 */ // Label 402: @8769
8749 /* 8769 */ GIM_Try, /*On fail goto*//*Label 403*/ GIMT_Encode4(8780), // Rule ID 174 //
8750 /* 8774 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule121Enabled),
8751 /* 8777 */ // MIs[0] dst
8752 /* 8777 */ // No operand predicates
8753 /* 8777 */ // MIs[0] pred
8754 /* 8777 */ // No operand predicates
8755 /* 8777 */ // MIs[0] src1
8756 /* 8777 */ // No operand predicates
8757 /* 8777 */ // MIs[0] src2
8758 /* 8777 */ // No operand predicates
8759 /* 8777 */ // Combiner Rule #121: icmp_to_lhs_known_bits
8760 /* 8777 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner54),
8761 /* 8780 */ // Label 403: @8780
8762 /* 8780 */ GIM_Try, /*On fail goto*//*Label 404*/ GIMT_Encode4(8791), // Rule ID 177 //
8763 /* 8785 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule124Enabled),
8764 /* 8788 */ // MIs[0] dst
8765 /* 8788 */ // No operand predicates
8766 /* 8788 */ // MIs[0] pred
8767 /* 8788 */ // No operand predicates
8768 /* 8788 */ // MIs[0] src1
8769 /* 8788 */ // No operand predicates
8770 /* 8788 */ // MIs[0] src2
8771 /* 8788 */ // No operand predicates
8772 /* 8788 */ // Combiner Rule #124: redundant_binop_in_equality
8773 /* 8788 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner55),
8774 /* 8791 */ // Label 404: @8791
8775 /* 8791 */ GIM_Reject,
8776 /* 8792 */ // Label 42: @8792
8777 /* 8792 */ GIM_Try, /*On fail goto*//*Label 405*/ GIMT_Encode4(8803), // Rule ID 172 //
8778 /* 8797 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule119Enabled),
8779 /* 8800 */ // MIs[0] root
8780 /* 8800 */ // No operand predicates
8781 /* 8800 */ // MIs[0] pred
8782 /* 8800 */ // No operand predicates
8783 /* 8800 */ // MIs[0] lhs
8784 /* 8800 */ // No operand predicates
8785 /* 8800 */ // MIs[0] rhs
8786 /* 8800 */ // No operand predicates
8787 /* 8800 */ // Combiner Rule #119: canonicalize_fcmp
8788 /* 8800 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner52),
8789 /* 8803 */ // Label 405: @8803
8790 /* 8803 */ GIM_Reject,
8791 /* 8804 */ // Label 43: @8804
8792 /* 8804 */ GIM_Try, /*On fail goto*//*Label 406*/ GIMT_Encode4(8853), // Rule ID 189 //
8793 /* 8809 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule136Enabled),
8794 /* 8812 */ // MIs[0] dst
8795 /* 8812 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255,
8796 /* 8816 */ // MIs[0] c
8797 /* 8816 */ // No operand predicates
8798 /* 8816 */ // MIs[0] x
8799 /* 8816 */ // No operand predicates
8800 /* 8816 */ // MIs[0] Operand 3
8801 /* 8816 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/3, 0,
8802 /* 8820 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner16),
8803 /* 8824 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255,
8804 /* 8827 */ // Combiner Rule #136: select_zero_false
8805 /* 8827 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FREEZE),
8806 /* 8830 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)),
8807 /* 8835 */ GIR_RootToRootCopy, /*OpIdx*/2, // x
8808 /* 8837 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_AND),
8809 /* 8841 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst
8810 /* 8845 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/1, // c
8811 /* 8849 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0,
8812 /* 8852 */ GIR_EraseRootFromParent_Done,
8813 /* 8853 */ // Label 406: @8853
8814 /* 8853 */ GIM_Try, /*On fail goto*//*Label 407*/ GIMT_Encode4(8874), // Rule ID 187 //
8815 /* 8858 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule134Enabled),
8816 /* 8861 */ // MIs[0] root
8817 /* 8861 */ // No operand predicates
8818 /* 8861 */ // MIs[0] tst
8819 /* 8861 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8820 /* 8865 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ICMP),
8821 /* 8869 */ // MIs[1] tst1
8822 /* 8869 */ // No operand predicates
8823 /* 8869 */ // MIs[1] a
8824 /* 8869 */ // No operand predicates
8825 /* 8869 */ // MIs[1] b
8826 /* 8869 */ // No operand predicates
8827 /* 8869 */ // MIs[0] x
8828 /* 8869 */ // No operand predicates
8829 /* 8869 */ // MIs[0] y
8830 /* 8869 */ // No operand predicates
8831 /* 8869 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8832 /* 8871 */ // Combiner Rule #134: select_to_iminmax
8833 /* 8871 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner61),
8834 /* 8874 */ // Label 407: @8874
8835 /* 8874 */ GIM_Try, /*On fail goto*//*Label 408*/ GIMT_Encode4(8910), // Rule ID 190 //
8836 /* 8879 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule137Enabled),
8837 /* 8882 */ // MIs[0] dst
8838 /* 8882 */ // No operand predicates
8839 /* 8882 */ // MIs[0] c
8840 /* 8882 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8841 /* 8886 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_XOR),
8842 /* 8890 */ // MIs[1] src
8843 /* 8890 */ // No operand predicates
8844 /* 8890 */ // MIs[1] Operand 2
8845 /* 8890 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/2, 255,
8846 /* 8894 */ // MIs[0] x
8847 /* 8894 */ // No operand predicates
8848 /* 8894 */ // MIs[0] y
8849 /* 8894 */ // No operand predicates
8850 /* 8894 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8851 /* 8896 */ // Combiner Rule #137: select_not
8852 /* 8896 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SELECT),
8853 /* 8899 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
8854 /* 8901 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // src
8855 /* 8905 */ GIR_RootToRootCopy, /*OpIdx*/3, // y
8856 /* 8907 */ GIR_RootToRootCopy, /*OpIdx*/2, // x
8857 /* 8909 */ GIR_EraseRootFromParent_Done,
8858 /* 8910 */ // Label 408: @8910
8859 /* 8910 */ GIM_Try, /*On fail goto*//*Label 409*/ GIMT_Encode4(8939), // Rule ID 183 //
8860 /* 8915 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule130Enabled),
8861 /* 8918 */ // MIs[0] dst
8862 /* 8918 */ // No operand predicates
8863 /* 8918 */ // MIs[0] undef
8864 /* 8918 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8865 /* 8922 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
8866 /* 8926 */ // MIs[0] x
8867 /* 8926 */ // No operand predicates
8868 /* 8926 */ // MIs[0] y
8869 /* 8926 */ // No operand predicates
8870 /* 8926 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/3,
8871 /* 8931 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8872 /* 8933 */ // Combiner Rule #130: select_undef_cmp
8873 /* 8933 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/3,
8874 /* 8938 */ GIR_EraseRootFromParent_Done,
8875 /* 8939 */ // Label 409: @8939
8876 /* 8939 */ GIM_Try, /*On fail goto*//*Label 410*/ GIMT_Encode4(8979), // Rule ID 184 //
8877 /* 8944 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule131Enabled),
8878 /* 8947 */ // MIs[0] dst
8879 /* 8947 */ // No operand predicates
8880 /* 8947 */ // MIs[0] cond
8881 /* 8947 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8882 /* 8951 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
8883 /* 8955 */ // MIs[1] Operand 1
8884 /* 8955 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0),
8885 /* 8966 */ // MIs[0] tval
8886 /* 8966 */ // No operand predicates
8887 /* 8966 */ // MIs[0] fval
8888 /* 8966 */ // No operand predicates
8889 /* 8966 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/3,
8890 /* 8971 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8891 /* 8973 */ // Combiner Rule #131: select_constant_cmp_false
8892 /* 8973 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/3,
8893 /* 8978 */ GIR_EraseRootFromParent_Done,
8894 /* 8979 */ // Label 410: @8979
8895 /* 8979 */ GIM_Try, /*On fail goto*//*Label 411*/ GIMT_Encode4(9019), // Rule ID 185 //
8896 /* 8984 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule132Enabled),
8897 /* 8987 */ // MIs[0] dst
8898 /* 8987 */ // No operand predicates
8899 /* 8987 */ // MIs[0] cond
8900 /* 8987 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
8901 /* 8991 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
8902 /* 8995 */ // MIs[1] Operand 1
8903 /* 8995 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(1),
8904 /* 9006 */ // MIs[0] tval
8905 /* 9006 */ // No operand predicates
8906 /* 9006 */ // MIs[0] fval
8907 /* 9006 */ // No operand predicates
8908 /* 9006 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
8909 /* 9011 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
8910 /* 9013 */ // Combiner Rule #132: select_constant_cmp_true
8911 /* 9013 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
8912 /* 9018 */ GIR_EraseRootFromParent_Done,
8913 /* 9019 */ // Label 411: @9019
8914 /* 9019 */ GIM_Try, /*On fail goto*//*Label 412*/ GIMT_Encode4(9043), // Rule ID 116 //
8915 /* 9024 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule88Enabled),
8916 /* 9027 */ // MIs[0] dst
8917 /* 9027 */ // No operand predicates
8918 /* 9027 */ // MIs[0] cond
8919 /* 9027 */ // No operand predicates
8920 /* 9027 */ // MIs[0] x
8921 /* 9027 */ // No operand predicates
8922 /* 9027 */ // MIs[0] x
8923 /* 9027 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/3, /*OtherMI*/0, /*OtherOpIdx*/2,
8924 /* 9032 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
8925 /* 9037 */ // Combiner Rule #88: select_same_val_trivial
8926 /* 9037 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
8927 /* 9042 */ GIR_EraseRootFromParent_Done,
8928 /* 9043 */ // Label 412: @9043
8929 /* 9043 */ GIM_Try, /*On fail goto*//*Label 413*/ GIMT_Encode4(9066), // Rule ID 117 //
8930 /* 9048 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule89Enabled),
8931 /* 9051 */ // MIs[0] dst
8932 /* 9051 */ // No operand predicates
8933 /* 9051 */ // MIs[0] cond
8934 /* 9051 */ // No operand predicates
8935 /* 9051 */ // MIs[0] tval
8936 /* 9051 */ // No operand predicates
8937 /* 9051 */ // MIs[0] fval
8938 /* 9051 */ // No operand predicates
8939 /* 9051 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner6),
8940 /* 9055 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
8941 /* 9060 */ // Combiner Rule #89: select_same_val_equiv
8942 /* 9060 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2,
8943 /* 9065 */ GIR_EraseRootFromParent_Done,
8944 /* 9066 */ // Label 413: @9066
8945 /* 9066 */ GIM_Try, /*On fail goto*//*Label 414*/ GIMT_Encode4(9077), // Rule ID 186 //
8946 /* 9071 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule133Enabled),
8947 /* 9074 */ // MIs[0] dst
8948 /* 9074 */ // No operand predicates
8949 /* 9074 */ // MIs[0] cond
8950 /* 9074 */ // No operand predicates
8951 /* 9074 */ // MIs[0] tval
8952 /* 9074 */ // No operand predicates
8953 /* 9074 */ // MIs[0] fval
8954 /* 9074 */ // No operand predicates
8955 /* 9074 */ // Combiner Rule #133: select_constant_cmp_general
8956 /* 9074 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner60),
8957 /* 9077 */ // Label 414: @9077
8958 /* 9077 */ GIM_Try, /*On fail goto*//*Label 415*/ GIMT_Encode4(9088), // Rule ID 188 //
8959 /* 9082 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule135Enabled),
8960 /* 9085 */ // MIs[0] dst
8961 /* 9085 */ // No operand predicates
8962 /* 9085 */ // MIs[0] cond
8963 /* 9085 */ // No operand predicates
8964 /* 9085 */ // MIs[0] tval
8965 /* 9085 */ // No operand predicates
8966 /* 9085 */ // MIs[0] fval
8967 /* 9085 */ // No operand predicates
8968 /* 9085 */ // Combiner Rule #135: match_selects
8969 /* 9085 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner62),
8970 /* 9088 */ // Label 415: @9088
8971 /* 9088 */ GIM_Try, /*On fail goto*//*Label 416*/ GIMT_Encode4(9099), // Rule ID 367 //
8972 /* 9093 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule225Enabled),
8973 /* 9096 */ // MIs[0] dst
8974 /* 9096 */ // No operand predicates
8975 /* 9096 */ // MIs[0] cond
8976 /* 9096 */ // No operand predicates
8977 /* 9096 */ // MIs[0] tval
8978 /* 9096 */ // No operand predicates
8979 /* 9096 */ // MIs[0] fval
8980 /* 9096 */ // No operand predicates
8981 /* 9096 */ // Combiner Rule #225: select_to_minmax
8982 /* 9096 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner116),
8983 /* 9099 */ // Label 416: @9099
8984 /* 9099 */ GIM_Reject,
8985 /* 9100 */ // Label 44: @9100
8986 /* 9100 */ GIM_Try, /*On fail goto*//*Label 417*/ GIMT_Encode4(9111), // Rule ID 378 //
8987 /* 9105 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule227Enabled),
8988 /* 9108 */ // Combiner Rule #227: commute_int_constant_to_rhs; wip_match_opcode 'G_UADDO'
8989 /* 9108 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner118),
8990 /* 9111 */ // Label 417: @9111
8991 /* 9111 */ GIM_Try, /*On fail goto*//*Label 418*/ GIMT_Encode4(9122), // Rule ID 426 //
8992 /* 9116 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule256Enabled),
8993 /* 9119 */ // Combiner Rule #256: match_addos; wip_match_opcode 'G_UADDO'
8994 /* 9119 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner141),
8995 /* 9122 */ // Label 418: @9122
8996 /* 9122 */ GIM_Reject,
8997 /* 9123 */ // Label 45: @9123
8998 /* 9123 */ GIM_Try, /*On fail goto*//*Label 419*/ GIMT_Encode4(9134), // Rule ID 225 //
8999 /* 9128 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule170Enabled),
9000 /* 9131 */ // Combiner Rule #170: adde_to_addo; wip_match_opcode 'G_UADDE'
9001 /* 9131 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner77),
9002 /* 9134 */ // Label 419: @9134
9003 /* 9134 */ GIM_Reject,
9004 /* 9135 */ // Label 46: @9135
9005 /* 9135 */ GIM_Try, /*On fail goto*//*Label 420*/ GIMT_Encode4(9146), // Rule ID 428 //
9006 /* 9140 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule257Enabled),
9007 /* 9143 */ // Combiner Rule #257: match_subo_no_overflow; wip_match_opcode 'G_USUBO'
9008 /* 9143 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner142),
9009 /* 9146 */ // Label 420: @9146
9010 /* 9146 */ GIM_Reject,
9011 /* 9147 */ // Label 47: @9147
9012 /* 9147 */ GIM_Try, /*On fail goto*//*Label 421*/ GIMT_Encode4(9158), // Rule ID 227 //
9013 /* 9152 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule170Enabled),
9014 /* 9155 */ // Combiner Rule #170: adde_to_addo; wip_match_opcode 'G_USUBE'
9015 /* 9155 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner77),
9016 /* 9158 */ // Label 421: @9158
9017 /* 9158 */ GIM_Reject,
9018 /* 9159 */ // Label 48: @9159
9019 /* 9159 */ GIM_Try, /*On fail goto*//*Label 422*/ GIMT_Encode4(9170), // Rule ID 379 //
9020 /* 9164 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule227Enabled),
9021 /* 9167 */ // Combiner Rule #227: commute_int_constant_to_rhs; wip_match_opcode 'G_SADDO'
9022 /* 9167 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner118),
9023 /* 9170 */ // Label 422: @9170
9024 /* 9170 */ GIM_Try, /*On fail goto*//*Label 423*/ GIMT_Encode4(9181), // Rule ID 425 //
9025 /* 9175 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule256Enabled),
9026 /* 9178 */ // Combiner Rule #256: match_addos; wip_match_opcode 'G_SADDO'
9027 /* 9178 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner141),
9028 /* 9181 */ // Label 423: @9181
9029 /* 9181 */ GIM_Reject,
9030 /* 9182 */ // Label 49: @9182
9031 /* 9182 */ GIM_Try, /*On fail goto*//*Label 424*/ GIMT_Encode4(9193), // Rule ID 226 //
9032 /* 9187 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule170Enabled),
9033 /* 9190 */ // Combiner Rule #170: adde_to_addo; wip_match_opcode 'G_SADDE'
9034 /* 9190 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner77),
9035 /* 9193 */ // Label 424: @9193
9036 /* 9193 */ GIM_Reject,
9037 /* 9194 */ // Label 50: @9194
9038 /* 9194 */ GIM_Try, /*On fail goto*//*Label 425*/ GIMT_Encode4(9205), // Rule ID 427 //
9039 /* 9199 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule257Enabled),
9040 /* 9202 */ // Combiner Rule #257: match_subo_no_overflow; wip_match_opcode 'G_SSUBO'
9041 /* 9202 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner142),
9042 /* 9205 */ // Label 425: @9205
9043 /* 9205 */ GIM_Reject,
9044 /* 9206 */ // Label 51: @9206
9045 /* 9206 */ GIM_Try, /*On fail goto*//*Label 426*/ GIMT_Encode4(9217), // Rule ID 228 //
9046 /* 9211 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule170Enabled),
9047 /* 9214 */ // Combiner Rule #170: adde_to_addo; wip_match_opcode 'G_SSUBE'
9048 /* 9214 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner77),
9049 /* 9217 */ // Label 426: @9217
9050 /* 9217 */ GIM_Reject,
9051 /* 9218 */ // Label 52: @9218
9052 /* 9218 */ GIM_Try, /*On fail goto*//*Label 427*/ GIMT_Encode4(9229), // Rule ID 221 //
9053 /* 9223 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule168Enabled),
9054 /* 9226 */ // Combiner Rule #168: mulo_by_2; wip_match_opcode 'G_UMULO'
9055 /* 9226 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner75),
9056 /* 9229 */ // Label 427: @9229
9057 /* 9229 */ GIM_Try, /*On fail goto*//*Label 428*/ GIMT_Encode4(9240), // Rule ID 223 //
9058 /* 9234 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule169Enabled),
9059 /* 9237 */ // Combiner Rule #169: mulo_by_0; wip_match_opcode 'G_UMULO'
9060 /* 9237 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner76),
9061 /* 9240 */ // Label 428: @9240
9062 /* 9240 */ GIM_Try, /*On fail goto*//*Label 429*/ GIMT_Encode4(9251), // Rule ID 380 //
9063 /* 9245 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule227Enabled),
9064 /* 9248 */ // Combiner Rule #227: commute_int_constant_to_rhs; wip_match_opcode 'G_UMULO'
9065 /* 9248 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner118),
9066 /* 9251 */ // Label 429: @9251
9067 /* 9251 */ GIM_Reject,
9068 /* 9252 */ // Label 53: @9252
9069 /* 9252 */ GIM_Try, /*On fail goto*//*Label 430*/ GIMT_Encode4(9263), // Rule ID 222 //
9070 /* 9257 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule168Enabled),
9071 /* 9260 */ // Combiner Rule #168: mulo_by_2; wip_match_opcode 'G_SMULO'
9072 /* 9260 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner75),
9073 /* 9263 */ // Label 430: @9263
9074 /* 9263 */ GIM_Try, /*On fail goto*//*Label 431*/ GIMT_Encode4(9274), // Rule ID 224 //
9075 /* 9268 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule169Enabled),
9076 /* 9271 */ // Combiner Rule #169: mulo_by_0; wip_match_opcode 'G_SMULO'
9077 /* 9271 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner76),
9078 /* 9274 */ // Label 431: @9274
9079 /* 9274 */ GIM_Try, /*On fail goto*//*Label 432*/ GIMT_Encode4(9285), // Rule ID 381 //
9080 /* 9279 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule227Enabled),
9081 /* 9282 */ // Combiner Rule #227: commute_int_constant_to_rhs; wip_match_opcode 'G_SMULO'
9082 /* 9282 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner118),
9083 /* 9285 */ // Label 432: @9285
9084 /* 9285 */ GIM_Reject,
9085 /* 9286 */ // Label 54: @9286
9086 /* 9286 */ GIM_Try, /*On fail goto*//*Label 433*/ GIMT_Encode4(9297), // Rule ID 382 //
9087 /* 9291 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule227Enabled),
9088 /* 9294 */ // Combiner Rule #227: commute_int_constant_to_rhs; wip_match_opcode 'G_UMULH'
9089 /* 9294 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner118),
9090 /* 9297 */ // Label 433: @9297
9091 /* 9297 */ GIM_Try, /*On fail goto*//*Label 434*/ GIMT_Encode4(9308), // Rule ID 316 //
9092 /* 9302 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule200Enabled),
9093 /* 9305 */ // MIs[0] dst
9094 /* 9305 */ // No operand predicates
9095 /* 9305 */ // MIs[0] src1
9096 /* 9305 */ // No operand predicates
9097 /* 9305 */ // MIs[0] src2
9098 /* 9305 */ // No operand predicates
9099 /* 9305 */ // Combiner Rule #200: mulh_to_lshr
9100 /* 9305 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner97),
9101 /* 9308 */ // Label 434: @9308
9102 /* 9308 */ GIM_Reject,
9103 /* 9309 */ // Label 55: @9309
9104 /* 9309 */ GIM_Try, /*On fail goto*//*Label 435*/ GIMT_Encode4(9320), // Rule ID 383 //
9105 /* 9314 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule227Enabled),
9106 /* 9317 */ // Combiner Rule #227: commute_int_constant_to_rhs; wip_match_opcode 'G_SMULH'
9107 /* 9317 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner118),
9108 /* 9320 */ // Label 435: @9320
9109 /* 9320 */ GIM_Reject,
9110 /* 9321 */ // Label 56: @9321
9111 /* 9321 */ GIM_Try, /*On fail goto*//*Label 436*/ GIMT_Encode4(9332), // Rule ID 384 //
9112 /* 9326 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule227Enabled),
9113 /* 9329 */ // Combiner Rule #227: commute_int_constant_to_rhs; wip_match_opcode 'G_UADDSAT'
9114 /* 9329 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner118),
9115 /* 9332 */ // Label 436: @9332
9116 /* 9332 */ GIM_Reject,
9117 /* 9333 */ // Label 57: @9333
9118 /* 9333 */ GIM_Try, /*On fail goto*//*Label 437*/ GIMT_Encode4(9344), // Rule ID 385 //
9119 /* 9338 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule227Enabled),
9120 /* 9341 */ // Combiner Rule #227: commute_int_constant_to_rhs; wip_match_opcode 'G_SADDSAT'
9121 /* 9341 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner118),
9122 /* 9344 */ // Label 437: @9344
9123 /* 9344 */ GIM_Reject,
9124 /* 9345 */ // Label 58: @9345
9125 /* 9345 */ GIM_Try, /*On fail goto*//*Label 438*/ GIMT_Encode4(9356), // Rule ID 240 //
9126 /* 9350 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule175Enabled),
9127 /* 9353 */ // Combiner Rule #175: shift_immed_chain; wip_match_opcode 'G_USHLSAT'
9128 /* 9353 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner81),
9129 /* 9356 */ // Label 438: @9356
9130 /* 9356 */ GIM_Try, /*On fail goto*//*Label 439*/ GIMT_Encode4(9367), // Rule ID 244 //
9131 /* 9361 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule176Enabled),
9132 /* 9364 */ // Combiner Rule #176: shift_of_shifted_logic_chain; wip_match_opcode 'G_USHLSAT'
9133 /* 9364 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner82),
9134 /* 9367 */ // Label 439: @9367
9135 /* 9367 */ GIM_Reject,
9136 /* 9368 */ // Label 59: @9368
9137 /* 9368 */ GIM_Try, /*On fail goto*//*Label 440*/ GIMT_Encode4(9379), // Rule ID 239 //
9138 /* 9373 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule175Enabled),
9139 /* 9376 */ // Combiner Rule #175: shift_immed_chain; wip_match_opcode 'G_SSHLSAT'
9140 /* 9376 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner81),
9141 /* 9379 */ // Label 440: @9379
9142 /* 9379 */ GIM_Try, /*On fail goto*//*Label 441*/ GIMT_Encode4(9390), // Rule ID 245 //
9143 /* 9384 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule176Enabled),
9144 /* 9387 */ // Combiner Rule #176: shift_of_shifted_logic_chain; wip_match_opcode 'G_SSHLSAT'
9145 /* 9387 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner82),
9146 /* 9390 */ // Label 441: @9390
9147 /* 9390 */ GIM_Reject,
9148 /* 9391 */ // Label 60: @9391
9149 /* 9391 */ GIM_Try, /*On fail goto*//*Label 442*/ GIMT_Encode4(9402), // Rule ID 386 //
9150 /* 9396 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule227Enabled),
9151 /* 9399 */ // Combiner Rule #227: commute_int_constant_to_rhs; wip_match_opcode 'G_SMULFIX'
9152 /* 9399 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner118),
9153 /* 9402 */ // Label 442: @9402
9154 /* 9402 */ GIM_Reject,
9155 /* 9403 */ // Label 61: @9403
9156 /* 9403 */ GIM_Try, /*On fail goto*//*Label 443*/ GIMT_Encode4(9414), // Rule ID 387 //
9157 /* 9408 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule227Enabled),
9158 /* 9411 */ // Combiner Rule #227: commute_int_constant_to_rhs; wip_match_opcode 'G_UMULFIX'
9159 /* 9411 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner118),
9160 /* 9414 */ // Label 443: @9414
9161 /* 9414 */ GIM_Reject,
9162 /* 9415 */ // Label 62: @9415
9163 /* 9415 */ GIM_Try, /*On fail goto*//*Label 444*/ GIMT_Encode4(9426), // Rule ID 388 //
9164 /* 9420 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule227Enabled),
9165 /* 9423 */ // Combiner Rule #227: commute_int_constant_to_rhs; wip_match_opcode 'G_SMULFIXSAT'
9166 /* 9423 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner118),
9167 /* 9426 */ // Label 444: @9426
9168 /* 9426 */ GIM_Reject,
9169 /* 9427 */ // Label 63: @9427
9170 /* 9427 */ GIM_Try, /*On fail goto*//*Label 445*/ GIMT_Encode4(9438), // Rule ID 389 //
9171 /* 9432 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule227Enabled),
9172 /* 9435 */ // Combiner Rule #227: commute_int_constant_to_rhs; wip_match_opcode 'G_UMULFIXSAT'
9173 /* 9435 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner118),
9174 /* 9438 */ // Label 445: @9438
9175 /* 9438 */ GIM_Reject,
9176 /* 9439 */ // Label 64: @9439
9177 /* 9439 */ GIM_Try, /*On fail goto*//*Label 446*/ GIMT_Encode4(9450), // Rule ID 317 //
9178 /* 9444 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule201Enabled),
9179 /* 9447 */ // Combiner Rule #201: redundant_neg_operands_fadd_fsub; wip_match_opcode 'G_FADD'
9180 /* 9447 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner98),
9181 /* 9450 */ // Label 446: @9450
9182 /* 9450 */ GIM_Try, /*On fail goto*//*Label 447*/ GIMT_Encode4(9461), // Rule ID 350 //
9183 /* 9455 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule215Enabled),
9184 /* 9458 */ // Combiner Rule #215: fold_binop_into_select; wip_match_opcode 'G_FADD'
9185 /* 9458 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner108),
9186 /* 9461 */ // Label 447: @9461
9187 /* 9461 */ GIM_Try, /*On fail goto*//*Label 448*/ GIMT_Encode4(9472), // Rule ID 390 //
9188 /* 9466 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule228Enabled),
9189 /* 9469 */ // Combiner Rule #228: commute_fp_constant_to_rhs; wip_match_opcode 'G_FADD'
9190 /* 9469 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
9191 /* 9472 */ // Label 448: @9472
9192 /* 9472 */ GIM_Try, /*On fail goto*//*Label 449*/ GIMT_Encode4(9495), // Rule ID 156 //
9193 /* 9477 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule108Enabled),
9194 /* 9480 */ // MIs[0] dst
9195 /* 9480 */ // No operand predicates
9196 /* 9480 */ // MIs[0] x
9197 /* 9480 */ // No operand predicates
9198 /* 9480 */ // MIs[0] y
9199 /* 9480 */ // No operand predicates
9200 /* 9480 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner10),
9201 /* 9484 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9202 /* 9489 */ // Combiner Rule #108: right_identity_neg_zero_fp
9203 /* 9489 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9204 /* 9494 */ GIR_EraseRootFromParent_Done,
9205 /* 9495 */ // Label 449: @9495
9206 /* 9495 */ GIM_Try, /*On fail goto*//*Label 450*/ GIMT_Encode4(9524), // Rule ID 157 //
9207 /* 9500 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule109Enabled),
9208 /* 9503 */ GIM_MIFlags, /*MI*/0, GIMT_Encode4(MachineInstr::FmNsz),
9209 /* 9509 */ // MIs[0] dst
9210 /* 9509 */ // No operand predicates
9211 /* 9509 */ // MIs[0] x
9212 /* 9509 */ // No operand predicates
9213 /* 9509 */ // MIs[0] y
9214 /* 9509 */ // No operand predicates
9215 /* 9509 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner11),
9216 /* 9513 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9217 /* 9518 */ // Combiner Rule #109: right_identity_neg_zero_fp_nsz
9218 /* 9518 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9219 /* 9523 */ GIR_EraseRootFromParent_Done,
9220 /* 9524 */ // Label 450: @9524
9221 /* 9524 */ GIM_Try, /*On fail goto*//*Label 451*/ GIMT_Encode4(9535), // Rule ID 290 //
9222 /* 9529 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule195Enabled),
9223 /* 9532 */ // MIs[0] d
9224 /* 9532 */ // No operand predicates
9225 /* 9532 */ // MIs[0] mi.src0
9226 /* 9532 */ // No operand predicates
9227 /* 9532 */ // MIs[0] mi.src1
9228 /* 9532 */ // No operand predicates
9229 /* 9532 */ // Combiner Rule #195: constant_fold_fp_binop @ [mi[0]]
9230 /* 9532 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner93),
9231 /* 9535 */ // Label 451: @9535
9232 /* 9535 */ GIM_Try, /*On fail goto*//*Label 452*/ GIMT_Encode4(9546), // Rule ID 324 //
9233 /* 9540 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule207Enabled),
9234 /* 9543 */ // MIs[0] dst
9235 /* 9543 */ // No operand predicates
9236 /* 9543 */ // MIs[0] src1
9237 /* 9543 */ // No operand predicates
9238 /* 9543 */ // MIs[0] src2
9239 /* 9543 */ // No operand predicates
9240 /* 9543 */ // Combiner Rule #207: combine_fadd_fmul_to_fmad_or_fma
9241 /* 9543 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner100),
9242 /* 9546 */ // Label 452: @9546
9243 /* 9546 */ GIM_Try, /*On fail goto*//*Label 453*/ GIMT_Encode4(9557), // Rule ID 325 //
9244 /* 9551 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule208Enabled),
9245 /* 9554 */ // MIs[0] dst
9246 /* 9554 */ // No operand predicates
9247 /* 9554 */ // MIs[0] src1
9248 /* 9554 */ // No operand predicates
9249 /* 9554 */ // MIs[0] src2
9250 /* 9554 */ // No operand predicates
9251 /* 9554 */ // Combiner Rule #208: combine_fadd_fpext_fmul_to_fmad_or_fma
9252 /* 9554 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner101),
9253 /* 9557 */ // Label 453: @9557
9254 /* 9557 */ GIM_Try, /*On fail goto*//*Label 454*/ GIMT_Encode4(9568), // Rule ID 326 //
9255 /* 9562 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule209Enabled),
9256 /* 9565 */ // MIs[0] dst
9257 /* 9565 */ // No operand predicates
9258 /* 9565 */ // MIs[0] src1
9259 /* 9565 */ // No operand predicates
9260 /* 9565 */ // MIs[0] src2
9261 /* 9565 */ // No operand predicates
9262 /* 9565 */ // Combiner Rule #209: combine_fadd_fma_fmul_to_fmad_or_fma
9263 /* 9565 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner102),
9264 /* 9568 */ // Label 454: @9568
9265 /* 9568 */ GIM_Try, /*On fail goto*//*Label 455*/ GIMT_Encode4(9579), // Rule ID 327 //
9266 /* 9573 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule210Enabled),
9267 /* 9576 */ // MIs[0] dst
9268 /* 9576 */ // No operand predicates
9269 /* 9576 */ // MIs[0] src1
9270 /* 9576 */ // No operand predicates
9271 /* 9576 */ // MIs[0] src2
9272 /* 9576 */ // No operand predicates
9273 /* 9576 */ // Combiner Rule #210: combine_fadd_fpext_fma_fmul_to_fmad_or_fma
9274 /* 9576 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103),
9275 /* 9579 */ // Label 455: @9579
9276 /* 9579 */ GIM_Reject,
9277 /* 9580 */ // Label 65: @9580
9278 /* 9580 */ GIM_Try, /*On fail goto*//*Label 456*/ GIMT_Encode4(9591), // Rule ID 318 //
9279 /* 9585 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule201Enabled),
9280 /* 9588 */ // Combiner Rule #201: redundant_neg_operands_fadd_fsub; wip_match_opcode 'G_FSUB'
9281 /* 9588 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner98),
9282 /* 9591 */ // Label 456: @9591
9283 /* 9591 */ GIM_Try, /*On fail goto*//*Label 457*/ GIMT_Encode4(9602), // Rule ID 351 //
9284 /* 9596 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule215Enabled),
9285 /* 9599 */ // Combiner Rule #215: fold_binop_into_select; wip_match_opcode 'G_FSUB'
9286 /* 9599 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner108),
9287 /* 9602 */ // Label 457: @9602
9288 /* 9602 */ GIM_Try, /*On fail goto*//*Label 458*/ GIMT_Encode4(9613), // Rule ID 291 //
9289 /* 9607 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule195Enabled),
9290 /* 9610 */ // MIs[0] d
9291 /* 9610 */ // No operand predicates
9292 /* 9610 */ // MIs[0] mi.src0
9293 /* 9610 */ // No operand predicates
9294 /* 9610 */ // MIs[0] mi.src1
9295 /* 9610 */ // No operand predicates
9296 /* 9610 */ // Combiner Rule #195: constant_fold_fp_binop @ [mi[1]]
9297 /* 9610 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner93),
9298 /* 9613 */ // Label 458: @9613
9299 /* 9613 */ GIM_Try, /*On fail goto*//*Label 459*/ GIMT_Encode4(9624), // Rule ID 328 //
9300 /* 9618 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule211Enabled),
9301 /* 9621 */ // MIs[0] dst
9302 /* 9621 */ // No operand predicates
9303 /* 9621 */ // MIs[0] src1
9304 /* 9621 */ // No operand predicates
9305 /* 9621 */ // MIs[0] src2
9306 /* 9621 */ // No operand predicates
9307 /* 9621 */ // Combiner Rule #211: combine_fsub_fmul_to_fmad_or_fma
9308 /* 9621 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner104),
9309 /* 9624 */ // Label 459: @9624
9310 /* 9624 */ GIM_Try, /*On fail goto*//*Label 460*/ GIMT_Encode4(9635), // Rule ID 329 //
9311 /* 9629 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule212Enabled),
9312 /* 9632 */ // MIs[0] dst
9313 /* 9632 */ // No operand predicates
9314 /* 9632 */ // MIs[0] src1
9315 /* 9632 */ // No operand predicates
9316 /* 9632 */ // MIs[0] src2
9317 /* 9632 */ // No operand predicates
9318 /* 9632 */ // Combiner Rule #212: combine_fsub_fneg_fmul_to_fmad_or_fma
9319 /* 9632 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner105),
9320 /* 9635 */ // Label 460: @9635
9321 /* 9635 */ GIM_Try, /*On fail goto*//*Label 461*/ GIMT_Encode4(9646), // Rule ID 330 //
9322 /* 9640 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule213Enabled),
9323 /* 9643 */ // MIs[0] dst
9324 /* 9643 */ // No operand predicates
9325 /* 9643 */ // MIs[0] src1
9326 /* 9643 */ // No operand predicates
9327 /* 9643 */ // MIs[0] src2
9328 /* 9643 */ // No operand predicates
9329 /* 9643 */ // Combiner Rule #213: combine_fsub_fpext_fmul_to_fmad_or_fma
9330 /* 9643 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner106),
9331 /* 9646 */ // Label 461: @9646
9332 /* 9646 */ GIM_Try, /*On fail goto*//*Label 462*/ GIMT_Encode4(9657), // Rule ID 331 //
9333 /* 9651 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule214Enabled),
9334 /* 9654 */ // MIs[0] dst
9335 /* 9654 */ // No operand predicates
9336 /* 9654 */ // MIs[0] src1
9337 /* 9654 */ // No operand predicates
9338 /* 9654 */ // MIs[0] src2
9339 /* 9654 */ // No operand predicates
9340 /* 9654 */ // Combiner Rule #214: combine_fsub_fpext_fneg_fmul_to_fmad_or_fma
9341 /* 9654 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner107),
9342 /* 9657 */ // Label 462: @9657
9343 /* 9657 */ GIM_Try, /*On fail goto*//*Label 463*/ GIMT_Encode4(9668), // Rule ID 368 //
9344 /* 9662 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule226Enabled),
9345 /* 9665 */ // MIs[0] dst
9346 /* 9665 */ // No operand predicates
9347 /* 9665 */ // MIs[0] src1
9348 /* 9665 */ // No operand predicates
9349 /* 9665 */ // MIs[0] src2
9350 /* 9665 */ // No operand predicates
9351 /* 9665 */ // Combiner Rule #226: fsub_to_fneg
9352 /* 9665 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner117),
9353 /* 9668 */ // Label 463: @9668
9354 /* 9668 */ GIM_Reject,
9355 /* 9669 */ // Label 66: @9669
9356 /* 9669 */ GIM_Try, /*On fail goto*//*Label 464*/ GIMT_Encode4(9680), // Rule ID 349 //
9357 /* 9674 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule215Enabled),
9358 /* 9677 */ // Combiner Rule #215: fold_binop_into_select; wip_match_opcode 'G_FMUL'
9359 /* 9677 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner108),
9360 /* 9680 */ // Label 464: @9680
9361 /* 9680 */ GIM_Try, /*On fail goto*//*Label 465*/ GIMT_Encode4(9691), // Rule ID 391 //
9362 /* 9685 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule228Enabled),
9363 /* 9688 */ // Combiner Rule #228: commute_fp_constant_to_rhs; wip_match_opcode 'G_FMUL'
9364 /* 9688 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
9365 /* 9691 */ // Label 465: @9691
9366 /* 9691 */ GIM_Try, /*On fail goto*//*Label 466*/ GIMT_Encode4(9734), // Rule ID 319 //
9367 /* 9696 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule202Enabled),
9368 /* 9699 */ // MIs[0] dst
9369 /* 9699 */ // No operand predicates
9370 /* 9699 */ // MIs[0] nx
9371 /* 9699 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9372 /* 9703 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FNEG),
9373 /* 9707 */ // MIs[1] x
9374 /* 9707 */ // No operand predicates
9375 /* 9707 */ // MIs[0] ny
9376 /* 9707 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
9377 /* 9711 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_FNEG),
9378 /* 9715 */ // MIs[2] y
9379 /* 9715 */ // No operand predicates
9380 /* 9715 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
9381 /* 9717 */ // Combiner Rule #202: G_FMUL_fneg_fneg
9382 /* 9717 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FMUL),
9383 /* 9720 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
9384 /* 9722 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
9385 /* 9726 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // y
9386 /* 9730 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
9387 /* 9733 */ GIR_EraseRootFromParent_Done,
9388 /* 9734 */ // Label 466: @9734
9389 /* 9734 */ GIM_Try, /*On fail goto*//*Label 467*/ GIMT_Encode4(9755), // Rule ID 456 //
9390 /* 9739 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule279Enabled),
9391 /* 9742 */ // MIs[0] dst
9392 /* 9742 */ // No operand predicates
9393 /* 9742 */ // MIs[0] x
9394 /* 9742 */ // No operand predicates
9395 /* 9742 */ // MIs[0] select
9396 /* 9742 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
9397 /* 9746 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SELECT),
9398 /* 9750 */ // MIs[1] y
9399 /* 9750 */ // No operand predicates
9400 /* 9750 */ // MIs[1] A
9401 /* 9750 */ // No operand predicates
9402 /* 9750 */ // MIs[1] B
9403 /* 9750 */ // No operand predicates
9404 /* 9750 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9405 /* 9752 */ // Combiner Rule #279: combine_fmul_with_select_to_fldexp
9406 /* 9752 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner149),
9407 /* 9755 */ // Label 467: @9755
9408 /* 9755 */ GIM_Try, /*On fail goto*//*Label 468*/ GIMT_Encode4(9778), // Rule ID 146 //
9409 /* 9760 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule100Enabled),
9410 /* 9763 */ // MIs[0] dst
9411 /* 9763 */ // No operand predicates
9412 /* 9763 */ // MIs[0] x
9413 /* 9763 */ // No operand predicates
9414 /* 9763 */ // MIs[0] y
9415 /* 9763 */ // No operand predicates
9416 /* 9763 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner8),
9417 /* 9767 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9418 /* 9772 */ // Combiner Rule #100: right_identity_one_fp
9419 /* 9772 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9420 /* 9777 */ GIR_EraseRootFromParent_Done,
9421 /* 9778 */ // Label 468: @9778
9422 /* 9778 */ GIM_Try, /*On fail goto*//*Label 469*/ GIMT_Encode4(9798), // Rule ID 158 //
9423 /* 9783 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule110Enabled),
9424 /* 9786 */ // MIs[0] dst
9425 /* 9786 */ // No operand predicates
9426 /* 9786 */ // MIs[0] x
9427 /* 9786 */ // No operand predicates
9428 /* 9786 */ // MIs[0] y
9429 /* 9786 */ // No operand predicates
9430 /* 9786 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner12),
9431 /* 9790 */ // Combiner Rule #110: right_identity_neg_one_fp
9432 /* 9790 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FNEG),
9433 /* 9793 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
9434 /* 9795 */ GIR_RootToRootCopy, /*OpIdx*/1, // x
9435 /* 9797 */ GIR_EraseRootFromParent_Done,
9436 /* 9798 */ // Label 469: @9798
9437 /* 9798 */ GIM_Try, /*On fail goto*//*Label 470*/ GIMT_Encode4(9809), // Rule ID 292 //
9438 /* 9803 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule195Enabled),
9439 /* 9806 */ // MIs[0] d
9440 /* 9806 */ // No operand predicates
9441 /* 9806 */ // MIs[0] mi.src0
9442 /* 9806 */ // No operand predicates
9443 /* 9806 */ // MIs[0] mi.src1
9444 /* 9806 */ // No operand predicates
9445 /* 9806 */ // Combiner Rule #195: constant_fold_fp_binop @ [mi[2]]
9446 /* 9806 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner93),
9447 /* 9809 */ // Label 470: @9809
9448 /* 9809 */ GIM_Reject,
9449 /* 9810 */ // Label 67: @9810
9450 /* 9810 */ GIM_Try, /*On fail goto*//*Label 471*/ GIMT_Encode4(9855), // Rule ID 322 //
9451 /* 9815 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule205Enabled),
9452 /* 9818 */ // MIs[0] dst
9453 /* 9818 */ // No operand predicates
9454 /* 9818 */ // MIs[0] nx
9455 /* 9818 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9456 /* 9822 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FNEG),
9457 /* 9826 */ // MIs[1] x
9458 /* 9826 */ // No operand predicates
9459 /* 9826 */ // MIs[0] ny
9460 /* 9826 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
9461 /* 9830 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_FNEG),
9462 /* 9834 */ // MIs[2] y
9463 /* 9834 */ // No operand predicates
9464 /* 9834 */ // MIs[0] z
9465 /* 9834 */ // No operand predicates
9466 /* 9834 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
9467 /* 9836 */ // Combiner Rule #205: G_FMA_fneg_fneg
9468 /* 9836 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FMA),
9469 /* 9839 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
9470 /* 9841 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
9471 /* 9845 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // y
9472 /* 9849 */ GIR_RootToRootCopy, /*OpIdx*/3, // z
9473 /* 9851 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
9474 /* 9854 */ GIR_EraseRootFromParent_Done,
9475 /* 9855 */ // Label 471: @9855
9476 /* 9855 */ GIM_Try, /*On fail goto*//*Label 472*/ GIMT_Encode4(9866), // Rule ID 303 //
9477 /* 9860 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule196Enabled),
9478 /* 9863 */ // MIs[0] dst
9479 /* 9863 */ // No operand predicates
9480 /* 9863 */ // MIs[0] d.src0
9481 /* 9863 */ // No operand predicates
9482 /* 9863 */ // MIs[0] d.src1
9483 /* 9863 */ // No operand predicates
9484 /* 9863 */ // MIs[0] d.src2
9485 /* 9863 */ // No operand predicates
9486 /* 9863 */ // Combiner Rule #196: constant_fold_fma @ [d[1]]
9487 /* 9863 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
9488 /* 9866 */ // Label 472: @9866
9489 /* 9866 */ GIM_Reject,
9490 /* 9867 */ // Label 68: @9867
9491 /* 9867 */ GIM_Try, /*On fail goto*//*Label 473*/ GIMT_Encode4(9912), // Rule ID 321 //
9492 /* 9872 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
9493 /* 9875 */ // MIs[0] dst
9494 /* 9875 */ // No operand predicates
9495 /* 9875 */ // MIs[0] nx
9496 /* 9875 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9497 /* 9879 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FNEG),
9498 /* 9883 */ // MIs[1] x
9499 /* 9883 */ // No operand predicates
9500 /* 9883 */ // MIs[0] ny
9501 /* 9883 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
9502 /* 9887 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_FNEG),
9503 /* 9891 */ // MIs[2] y
9504 /* 9891 */ // No operand predicates
9505 /* 9891 */ // MIs[0] z
9506 /* 9891 */ // No operand predicates
9507 /* 9891 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
9508 /* 9893 */ // Combiner Rule #204: G_FMAD_fneg_fneg
9509 /* 9893 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FMAD),
9510 /* 9896 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
9511 /* 9898 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
9512 /* 9902 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // y
9513 /* 9906 */ GIR_RootToRootCopy, /*OpIdx*/3, // z
9514 /* 9908 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
9515 /* 9911 */ GIR_EraseRootFromParent_Done,
9516 /* 9912 */ // Label 473: @9912
9517 /* 9912 */ GIM_Try, /*On fail goto*//*Label 474*/ GIMT_Encode4(9923), // Rule ID 302 //
9518 /* 9917 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule196Enabled),
9519 /* 9920 */ // MIs[0] dst
9520 /* 9920 */ // No operand predicates
9521 /* 9920 */ // MIs[0] d.src0
9522 /* 9920 */ // No operand predicates
9523 /* 9920 */ // MIs[0] d.src1
9524 /* 9920 */ // No operand predicates
9525 /* 9920 */ // MIs[0] d.src2
9526 /* 9920 */ // No operand predicates
9527 /* 9920 */ // Combiner Rule #196: constant_fold_fma @ [d[0]]
9528 /* 9920 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94),
9529 /* 9923 */ // Label 474: @9923
9530 /* 9923 */ GIM_Reject,
9531 /* 9924 */ // Label 69: @9924
9532 /* 9924 */ GIM_Try, /*On fail goto*//*Label 475*/ GIMT_Encode4(9935), // Rule ID 352 //
9533 /* 9929 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule215Enabled),
9534 /* 9932 */ // Combiner Rule #215: fold_binop_into_select; wip_match_opcode 'G_FDIV'
9535 /* 9932 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner108),
9536 /* 9935 */ // Label 475: @9935
9537 /* 9935 */ GIM_Try, /*On fail goto*//*Label 476*/ GIMT_Encode4(9978), // Rule ID 320 //
9538 /* 9940 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule203Enabled),
9539 /* 9943 */ // MIs[0] dst
9540 /* 9943 */ // No operand predicates
9541 /* 9943 */ // MIs[0] nx
9542 /* 9943 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9543 /* 9947 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FNEG),
9544 /* 9951 */ // MIs[1] x
9545 /* 9951 */ // No operand predicates
9546 /* 9951 */ // MIs[0] ny
9547 /* 9951 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
9548 /* 9955 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_FNEG),
9549 /* 9959 */ // MIs[2] y
9550 /* 9959 */ // No operand predicates
9551 /* 9959 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
9552 /* 9961 */ // Combiner Rule #203: G_FDIV_fneg_fneg
9553 /* 9961 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FDIV),
9554 /* 9964 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
9555 /* 9966 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
9556 /* 9970 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // y
9557 /* 9974 */ GIR_CopyMIFlags, /*InsnID*/0, /*OldInsnID*/0,
9558 /* 9977 */ GIR_EraseRootFromParent_Done,
9559 /* 9978 */ // Label 476: @9978
9560 /* 9978 */ GIM_Try, /*On fail goto*//*Label 477*/ GIMT_Encode4(9989), // Rule ID 293 //
9561 /* 9983 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule195Enabled),
9562 /* 9986 */ // MIs[0] d
9563 /* 9986 */ // No operand predicates
9564 /* 9986 */ // MIs[0] mi.src0
9565 /* 9986 */ // No operand predicates
9566 /* 9986 */ // MIs[0] mi.src1
9567 /* 9986 */ // No operand predicates
9568 /* 9986 */ // Combiner Rule #195: constant_fold_fp_binop @ [mi[3]]
9569 /* 9986 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner93),
9570 /* 9989 */ // Label 477: @9989
9571 /* 9989 */ GIM_Try, /*On fail goto*//*Label 478*/ GIMT_Encode4(10000), // Rule ID 365 //
9572 /* 9994 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule223Enabled),
9573 /* 9997 */ // MIs[0] dst
9574 /* 9997 */ // No operand predicates
9575 /* 9997 */ // MIs[0] src1
9576 /* 9997 */ // No operand predicates
9577 /* 9997 */ // MIs[0] src2
9578 /* 9997 */ // No operand predicates
9579 /* 9997 */ // Combiner Rule #223: fdiv_repeated_divison
9580 /* 9997 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner114),
9581 /* 10000 */ // Label 478: @10000
9582 /* 10000 */ GIM_Reject,
9583 /* 10001 */ // Label 70: @10001
9584 /* 10001 */ GIM_Try, /*On fail goto*//*Label 479*/ GIMT_Encode4(10012), // Rule ID 353 //
9585 /* 10006 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule215Enabled),
9586 /* 10009 */ // Combiner Rule #215: fold_binop_into_select; wip_match_opcode 'G_FREM'
9587 /* 10009 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner108),
9588 /* 10012 */ // Label 479: @10012
9589 /* 10012 */ GIM_Try, /*On fail goto*//*Label 480*/ GIMT_Encode4(10023), // Rule ID 294 //
9590 /* 10017 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule195Enabled),
9591 /* 10020 */ // MIs[0] d
9592 /* 10020 */ // No operand predicates
9593 /* 10020 */ // MIs[0] mi.src0
9594 /* 10020 */ // No operand predicates
9595 /* 10020 */ // MIs[0] mi.src1
9596 /* 10020 */ // No operand predicates
9597 /* 10020 */ // Combiner Rule #195: constant_fold_fp_binop @ [mi[4]]
9598 /* 10020 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner93),
9599 /* 10023 */ // Label 480: @10023
9600 /* 10023 */ GIM_Reject,
9601 /* 10024 */ // Label 71: @10024
9602 /* 10024 */ GIM_Try, /*On fail goto*//*Label 481*/ GIMT_Encode4(10045), // Rule ID 233 //
9603 /* 10029 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule172Enabled),
9604 /* 10032 */ // MIs[0] dst
9605 /* 10032 */ // No operand predicates
9606 /* 10032 */ // MIs[0] float
9607 /* 10032 */ // No operand predicates
9608 /* 10032 */ // MIs[0] int
9609 /* 10032 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
9610 /* 10036 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
9611 /* 10040 */ // MIs[1] imm
9612 /* 10040 */ // No operand predicates
9613 /* 10040 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9614 /* 10042 */ // Combiner Rule #172: expand_const_fpowi
9615 /* 10042 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner79),
9616 /* 10045 */ // Label 481: @10045
9617 /* 10045 */ GIM_Reject,
9618 /* 10046 */ // Label 72: @10046
9619 /* 10046 */ GIM_Try, /*On fail goto*//*Label 482*/ GIMT_Encode4(10067), // Rule ID 207 //
9620 /* 10051 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule154Enabled),
9621 /* 10054 */ // MIs[0] dst
9622 /* 10054 */ // No operand predicates
9623 /* 10054 */ // MIs[0] src0
9624 /* 10054 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9625 /* 10058 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT),
9626 /* 10062 */ // MIs[1] cst
9627 /* 10062 */ // No operand predicates
9628 /* 10062 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9629 /* 10064 */ // Combiner Rule #154: constant_fold_flog2
9630 /* 10064 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner72),
9631 /* 10067 */ // Label 482: @10067
9632 /* 10067 */ GIM_Reject,
9633 /* 10068 */ // Label 73: @10068
9634 /* 10068 */ GIM_Try, /*On fail goto*//*Label 483*/ GIMT_Encode4(10089), // Rule ID 204 //
9635 /* 10073 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule151Enabled),
9636 /* 10076 */ // MIs[0] dst
9637 /* 10076 */ // No operand predicates
9638 /* 10076 */ // MIs[0] src0
9639 /* 10076 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9640 /* 10080 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT),
9641 /* 10084 */ // MIs[1] cst
9642 /* 10084 */ // No operand predicates
9643 /* 10084 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9644 /* 10086 */ // Combiner Rule #151: constant_fold_fneg
9645 /* 10086 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner72),
9646 /* 10089 */ // Label 483: @10089
9647 /* 10089 */ GIM_Try, /*On fail goto*//*Label 484*/ GIMT_Encode4(10118), // Rule ID 144 //
9648 /* 10094 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule98Enabled),
9649 /* 10097 */ // MIs[0] dst
9650 /* 10097 */ // No operand predicates
9651 /* 10097 */ // MIs[0] t
9652 /* 10097 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9653 /* 10101 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FNEG),
9654 /* 10105 */ // MIs[1] src
9655 /* 10105 */ // No operand predicates
9656 /* 10105 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
9657 /* 10110 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9658 /* 10112 */ // Combiner Rule #98: fneg_fneg_fold
9659 /* 10112 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1,
9660 /* 10117 */ GIR_EraseRootFromParent_Done,
9661 /* 10118 */ // Label 484: @10118
9662 /* 10118 */ GIM_Try, /*On fail goto*//*Label 485*/ GIMT_Encode4(10129), // Rule ID 458 //
9663 /* 10123 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule281Enabled),
9664 /* 10126 */ // MIs[0] dst
9665 /* 10126 */ // No operand predicates
9666 /* 10126 */ // MIs[0] src
9667 /* 10126 */ // No operand predicates
9668 /* 10126 */ // Combiner Rule #281: foldable_fneg
9669 /* 10126 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner151),
9670 /* 10129 */ // Label 485: @10129
9671 /* 10129 */ GIM_Reject,
9672 /* 10130 */ // Label 74: @10130
9673 /* 10130 */ GIM_Try, /*On fail goto*//*Label 486*/ GIMT_Encode4(10151), // Rule ID 209 //
9674 /* 10135 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule156Enabled),
9675 /* 10138 */ // MIs[0] dst
9676 /* 10138 */ // No operand predicates
9677 /* 10138 */ // MIs[0] src0
9678 /* 10138 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9679 /* 10142 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT),
9680 /* 10146 */ // MIs[1] cst
9681 /* 10146 */ // No operand predicates
9682 /* 10146 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9683 /* 10148 */ // Combiner Rule #156: constant_fold_fpext
9684 /* 10148 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner72),
9685 /* 10151 */ // Label 486: @10151
9686 /* 10151 */ GIM_Reject,
9687 /* 10152 */ // Label 75: @10152
9688 /* 10152 */ GIM_Try, /*On fail goto*//*Label 487*/ GIMT_Encode4(10173), // Rule ID 208 //
9689 /* 10157 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule155Enabled),
9690 /* 10160 */ // MIs[0] dst
9691 /* 10160 */ // No operand predicates
9692 /* 10160 */ // MIs[0] src0
9693 /* 10160 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9694 /* 10164 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT),
9695 /* 10168 */ // MIs[1] cst
9696 /* 10168 */ // No operand predicates
9697 /* 10168 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9698 /* 10170 */ // Combiner Rule #155: constant_fold_fptrunc
9699 /* 10170 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner72),
9700 /* 10173 */ // Label 487: @10173
9701 /* 10173 */ GIM_Try, /*On fail goto*//*Label 488*/ GIMT_Encode4(10194), // Rule ID 155 //
9702 /* 10178 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule107Enabled),
9703 /* 10181 */ // MIs[0] dst
9704 /* 10181 */ // No operand predicates
9705 /* 10181 */ // MIs[0] src1
9706 /* 10181 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9707 /* 10185 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FPEXT),
9708 /* 10189 */ // MIs[1] src0
9709 /* 10189 */ // No operand predicates
9710 /* 10189 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9711 /* 10191 */ // Combiner Rule #107: fptrunc_fpext_fold
9712 /* 10191 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner44),
9713 /* 10194 */ // Label 488: @10194
9714 /* 10194 */ GIM_Reject,
9715 /* 10195 */ // Label 76: @10195
9716 /* 10195 */ GIM_Try, /*On fail goto*//*Label 489*/ GIMT_Encode4(10216), // Rule ID 102 //
9717 /* 10200 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule82Enabled),
9718 /* 10203 */ // MIs[0] dst
9719 /* 10203 */ // No operand predicates
9720 /* 10203 */ // MIs[0] __unary_undef_to_undef_match_0.x
9721 /* 10203 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9722 /* 10207 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
9723 /* 10211 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9724 /* 10213 */ // Combiner Rule #82: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[5]]
9725 /* 10213 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner35),
9726 /* 10216 */ // Label 489: @10216
9727 /* 10216 */ GIM_Reject,
9728 /* 10217 */ // Label 77: @10217
9729 /* 10217 */ GIM_Try, /*On fail goto*//*Label 490*/ GIMT_Encode4(10238), // Rule ID 103 //
9730 /* 10222 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule82Enabled),
9731 /* 10225 */ // MIs[0] dst
9732 /* 10225 */ // No operand predicates
9733 /* 10225 */ // MIs[0] __unary_undef_to_undef_match_0.x
9734 /* 10225 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9735 /* 10229 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
9736 /* 10233 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9737 /* 10235 */ // Combiner Rule #82: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[6]]
9738 /* 10235 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner35),
9739 /* 10238 */ // Label 490: @10238
9740 /* 10238 */ GIM_Reject,
9741 /* 10239 */ // Label 78: @10239
9742 /* 10239 */ GIM_Try, /*On fail goto*//*Label 491*/ GIMT_Encode4(10260), // Rule ID 83 //
9743 /* 10244 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule76Enabled),
9744 /* 10247 */ // MIs[0] dst
9745 /* 10247 */ // No operand predicates
9746 /* 10247 */ // MIs[0] __undef_to_fp_zero_match_0.x
9747 /* 10247 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9748 /* 10251 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
9749 /* 10255 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9750 /* 10257 */ // Combiner Rule #76: undef_to_fp_zero @ [__undef_to_fp_zero_match_0[1]]
9751 /* 10257 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner32),
9752 /* 10260 */ // Label 491: @10260
9753 /* 10260 */ GIM_Try, /*On fail goto*//*Label 492*/ GIMT_Encode4(10275), // Rule ID 217 //
9754 /* 10265 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule164Enabled),
9755 /* 10268 */ // MIs[0] dst
9756 /* 10268 */ // No operand predicates
9757 /* 10268 */ // MIs[0] Operand 1
9758 /* 10268 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/1, 0,
9759 /* 10272 */ // Combiner Rule #164: itof_const_zero_fold_si
9760 /* 10272 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner32),
9761 /* 10275 */ // Label 492: @10275
9762 /* 10275 */ GIM_Reject,
9763 /* 10276 */ // Label 79: @10276
9764 /* 10276 */ GIM_Try, /*On fail goto*//*Label 493*/ GIMT_Encode4(10297), // Rule ID 82 //
9765 /* 10281 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule76Enabled),
9766 /* 10284 */ // MIs[0] dst
9767 /* 10284 */ // No operand predicates
9768 /* 10284 */ // MIs[0] __undef_to_fp_zero_match_0.x
9769 /* 10284 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9770 /* 10288 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
9771 /* 10292 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9772 /* 10294 */ // Combiner Rule #76: undef_to_fp_zero @ [__undef_to_fp_zero_match_0[0]]
9773 /* 10294 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner32),
9774 /* 10297 */ // Label 493: @10297
9775 /* 10297 */ GIM_Try, /*On fail goto*//*Label 494*/ GIMT_Encode4(10312), // Rule ID 218 //
9776 /* 10302 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule165Enabled),
9777 /* 10305 */ // MIs[0] dst
9778 /* 10305 */ // No operand predicates
9779 /* 10305 */ // MIs[0] Operand 1
9780 /* 10305 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/1, 0,
9781 /* 10309 */ // Combiner Rule #165: itof_const_zero_fold_ui
9782 /* 10309 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner32),
9783 /* 10312 */ // Label 494: @10312
9784 /* 10312 */ GIM_Reject,
9785 /* 10313 */ // Label 80: @10313
9786 /* 10313 */ GIM_Try, /*On fail goto*//*Label 495*/ GIMT_Encode4(10342), // Rule ID 26 //
9787 /* 10318 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule24Enabled),
9788 /* 10321 */ // MIs[0] dst
9789 /* 10321 */ // No operand predicates
9790 /* 10321 */ // MIs[0] src
9791 /* 10321 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9792 /* 10325 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FABS),
9793 /* 10329 */ // MIs[1] __idempotent_prop_match_0.x
9794 /* 10329 */ // No operand predicates
9795 /* 10329 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9796 /* 10334 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9797 /* 10336 */ // Combiner Rule #24: idempotent_prop @ [__idempotent_prop_match_0[1]]
9798 /* 10336 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9799 /* 10341 */ GIR_EraseRootFromParent_Done,
9800 /* 10342 */ // Label 495: @10342
9801 /* 10342 */ GIM_Try, /*On fail goto*//*Label 496*/ GIMT_Encode4(10363), // Rule ID 205 //
9802 /* 10347 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule152Enabled),
9803 /* 10350 */ // MIs[0] dst
9804 /* 10350 */ // No operand predicates
9805 /* 10350 */ // MIs[0] src0
9806 /* 10350 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9807 /* 10354 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT),
9808 /* 10358 */ // MIs[1] cst
9809 /* 10358 */ // No operand predicates
9810 /* 10358 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9811 /* 10360 */ // Combiner Rule #152: constant_fold_fabs
9812 /* 10360 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner72),
9813 /* 10363 */ // Label 496: @10363
9814 /* 10363 */ GIM_Try, /*On fail goto*//*Label 497*/ GIMT_Encode4(10391), // Rule ID 315 //
9815 /* 10368 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule199Enabled),
9816 /* 10371 */ // MIs[0] dst
9817 /* 10371 */ // No operand predicates
9818 /* 10371 */ // MIs[0] tmp
9819 /* 10371 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9820 /* 10375 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FNEG),
9821 /* 10379 */ // MIs[1] x
9822 /* 10379 */ // No operand predicates
9823 /* 10379 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9824 /* 10381 */ // Combiner Rule #199: fabs_fneg_fold
9825 /* 10381 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FABS),
9826 /* 10384 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
9827 /* 10386 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
9828 /* 10390 */ GIR_EraseRootFromParent_Done,
9829 /* 10391 */ // Label 497: @10391
9830 /* 10391 */ GIM_Try, /*On fail goto*//*Label 498*/ GIMT_Encode4(10412), // Rule ID 459 //
9831 /* 10396 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule282Enabled),
9832 /* 10399 */ // MIs[0] dst
9833 /* 10399 */ // No operand predicates
9834 /* 10399 */ // MIs[0] round
9835 /* 10399 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9836 /* 10403 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FPTRUNC),
9837 /* 10407 */ // MIs[1] src
9838 /* 10407 */ // No operand predicates
9839 /* 10407 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9840 /* 10409 */ // Combiner Rule #282: fold_fabs_fptrunc
9841 /* 10409 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner152),
9842 /* 10412 */ // Label 498: @10412
9843 /* 10412 */ GIM_Reject,
9844 /* 10413 */ // Label 81: @10413
9845 /* 10413 */ GIM_Try, /*On fail goto*//*Label 499*/ GIMT_Encode4(10424), // Rule ID 295 //
9846 /* 10418 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule195Enabled),
9847 /* 10421 */ // MIs[0] d
9848 /* 10421 */ // No operand predicates
9849 /* 10421 */ // MIs[0] mi.src0
9850 /* 10421 */ // No operand predicates
9851 /* 10421 */ // MIs[0] mi.src1
9852 /* 10421 */ // No operand predicates
9853 /* 10421 */ // Combiner Rule #195: constant_fold_fp_binop @ [mi[5]]
9854 /* 10421 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner93),
9855 /* 10424 */ // Label 499: @10424
9856 /* 10424 */ GIM_Reject,
9857 /* 10425 */ // Label 82: @10425
9858 /* 10425 */ GIM_Try, /*On fail goto*//*Label 500*/ GIMT_Encode4(10454), // Rule ID 27 //
9859 /* 10430 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule24Enabled),
9860 /* 10433 */ // MIs[0] dst
9861 /* 10433 */ // No operand predicates
9862 /* 10433 */ // MIs[0] src
9863 /* 10433 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
9864 /* 10437 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCANONICALIZE),
9865 /* 10441 */ // MIs[1] __idempotent_prop_match_0.x
9866 /* 10441 */ // No operand predicates
9867 /* 10441 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9868 /* 10446 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
9869 /* 10448 */ // Combiner Rule #24: idempotent_prop @ [__idempotent_prop_match_0[2]]
9870 /* 10448 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
9871 /* 10453 */ GIR_EraseRootFromParent_Done,
9872 /* 10454 */ // Label 500: @10454
9873 /* 10454 */ GIM_Reject,
9874 /* 10455 */ // Label 83: @10455
9875 /* 10455 */ GIM_Try, /*On fail goto*//*Label 501*/ GIMT_Encode4(10466), // Rule ID 354 //
9876 /* 10460 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule215Enabled),
9877 /* 10463 */ // Combiner Rule #215: fold_binop_into_select; wip_match_opcode 'G_FMINNUM'
9878 /* 10463 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner108),
9879 /* 10466 */ // Label 501: @10466
9880 /* 10466 */ GIM_Try, /*On fail goto*//*Label 502*/ GIMT_Encode4(10477), // Rule ID 392 //
9881 /* 10471 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule228Enabled),
9882 /* 10474 */ // Combiner Rule #228: commute_fp_constant_to_rhs; wip_match_opcode 'G_FMINNUM'
9883 /* 10474 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
9884 /* 10477 */ // Label 502: @10477
9885 /* 10477 */ GIM_Try, /*On fail goto*//*Label 503*/ GIMT_Encode4(10488), // Rule ID 229 //
9886 /* 10482 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule171Enabled),
9887 /* 10485 */ // MIs[0] dst
9888 /* 10485 */ // No operand predicates
9889 /* 10485 */ // MIs[0] root.src0
9890 /* 10485 */ // No operand predicates
9891 /* 10485 */ // MIs[0] root.src1
9892 /* 10485 */ // No operand predicates
9893 /* 10485 */ // Combiner Rule #171: combine_minmax_nan @ [root[0]]
9894 /* 10485 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner78),
9895 /* 10488 */ // Label 503: @10488
9896 /* 10488 */ GIM_Try, /*On fail goto*//*Label 504*/ GIMT_Encode4(10499), // Rule ID 296 //
9897 /* 10493 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule195Enabled),
9898 /* 10496 */ // MIs[0] d
9899 /* 10496 */ // No operand predicates
9900 /* 10496 */ // MIs[0] mi.src0
9901 /* 10496 */ // No operand predicates
9902 /* 10496 */ // MIs[0] mi.src1
9903 /* 10496 */ // No operand predicates
9904 /* 10496 */ // Combiner Rule #195: constant_fold_fp_binop @ [mi[6]]
9905 /* 10496 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner93),
9906 /* 10499 */ // Label 504: @10499
9907 /* 10499 */ GIM_Reject,
9908 /* 10500 */ // Label 84: @10500
9909 /* 10500 */ GIM_Try, /*On fail goto*//*Label 505*/ GIMT_Encode4(10511), // Rule ID 355 //
9910 /* 10505 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule215Enabled),
9911 /* 10508 */ // Combiner Rule #215: fold_binop_into_select; wip_match_opcode 'G_FMAXNUM'
9912 /* 10508 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner108),
9913 /* 10511 */ // Label 505: @10511
9914 /* 10511 */ GIM_Try, /*On fail goto*//*Label 506*/ GIMT_Encode4(10522), // Rule ID 393 //
9915 /* 10516 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule228Enabled),
9916 /* 10519 */ // Combiner Rule #228: commute_fp_constant_to_rhs; wip_match_opcode 'G_FMAXNUM'
9917 /* 10519 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
9918 /* 10522 */ // Label 506: @10522
9919 /* 10522 */ GIM_Try, /*On fail goto*//*Label 507*/ GIMT_Encode4(10533), // Rule ID 230 //
9920 /* 10527 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule171Enabled),
9921 /* 10530 */ // MIs[0] dst
9922 /* 10530 */ // No operand predicates
9923 /* 10530 */ // MIs[0] root.src0
9924 /* 10530 */ // No operand predicates
9925 /* 10530 */ // MIs[0] root.src1
9926 /* 10530 */ // No operand predicates
9927 /* 10530 */ // Combiner Rule #171: combine_minmax_nan @ [root[1]]
9928 /* 10530 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner78),
9929 /* 10533 */ // Label 507: @10533
9930 /* 10533 */ GIM_Try, /*On fail goto*//*Label 508*/ GIMT_Encode4(10544), // Rule ID 297 //
9931 /* 10538 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule195Enabled),
9932 /* 10541 */ // MIs[0] d
9933 /* 10541 */ // No operand predicates
9934 /* 10541 */ // MIs[0] mi.src0
9935 /* 10541 */ // No operand predicates
9936 /* 10541 */ // MIs[0] mi.src1
9937 /* 10541 */ // No operand predicates
9938 /* 10541 */ // Combiner Rule #195: constant_fold_fp_binop @ [mi[7]]
9939 /* 10541 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner93),
9940 /* 10544 */ // Label 508: @10544
9941 /* 10544 */ GIM_Reject,
9942 /* 10545 */ // Label 85: @10545
9943 /* 10545 */ GIM_Try, /*On fail goto*//*Label 509*/ GIMT_Encode4(10556), // Rule ID 394 //
9944 /* 10550 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule228Enabled),
9945 /* 10553 */ // Combiner Rule #228: commute_fp_constant_to_rhs; wip_match_opcode 'G_FMINNUM_IEEE'
9946 /* 10553 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
9947 /* 10556 */ // Label 509: @10556
9948 /* 10556 */ GIM_Reject,
9949 /* 10557 */ // Label 86: @10557
9950 /* 10557 */ GIM_Try, /*On fail goto*//*Label 510*/ GIMT_Encode4(10568), // Rule ID 395 //
9951 /* 10562 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule228Enabled),
9952 /* 10565 */ // Combiner Rule #228: commute_fp_constant_to_rhs; wip_match_opcode 'G_FMAXNUM_IEEE'
9953 /* 10565 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
9954 /* 10568 */ // Label 510: @10568
9955 /* 10568 */ GIM_Reject,
9956 /* 10569 */ // Label 87: @10569
9957 /* 10569 */ GIM_Try, /*On fail goto*//*Label 511*/ GIMT_Encode4(10580), // Rule ID 356 //
9958 /* 10574 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule215Enabled),
9959 /* 10577 */ // Combiner Rule #215: fold_binop_into_select; wip_match_opcode 'G_FMINIMUM'
9960 /* 10577 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner108),
9961 /* 10580 */ // Label 511: @10580
9962 /* 10580 */ GIM_Try, /*On fail goto*//*Label 512*/ GIMT_Encode4(10591), // Rule ID 396 //
9963 /* 10585 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule228Enabled),
9964 /* 10588 */ // Combiner Rule #228: commute_fp_constant_to_rhs; wip_match_opcode 'G_FMINIMUM'
9965 /* 10588 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
9966 /* 10591 */ // Label 512: @10591
9967 /* 10591 */ GIM_Try, /*On fail goto*//*Label 513*/ GIMT_Encode4(10602), // Rule ID 231 //
9968 /* 10596 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule171Enabled),
9969 /* 10599 */ // MIs[0] dst
9970 /* 10599 */ // No operand predicates
9971 /* 10599 */ // MIs[0] root.src0
9972 /* 10599 */ // No operand predicates
9973 /* 10599 */ // MIs[0] root.src1
9974 /* 10599 */ // No operand predicates
9975 /* 10599 */ // Combiner Rule #171: combine_minmax_nan @ [root[2]]
9976 /* 10599 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner78),
9977 /* 10602 */ // Label 513: @10602
9978 /* 10602 */ GIM_Try, /*On fail goto*//*Label 514*/ GIMT_Encode4(10613), // Rule ID 298 //
9979 /* 10607 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule195Enabled),
9980 /* 10610 */ // MIs[0] d
9981 /* 10610 */ // No operand predicates
9982 /* 10610 */ // MIs[0] mi.src0
9983 /* 10610 */ // No operand predicates
9984 /* 10610 */ // MIs[0] mi.src1
9985 /* 10610 */ // No operand predicates
9986 /* 10610 */ // Combiner Rule #195: constant_fold_fp_binop @ [mi[8]]
9987 /* 10610 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner93),
9988 /* 10613 */ // Label 514: @10613
9989 /* 10613 */ GIM_Reject,
9990 /* 10614 */ // Label 88: @10614
9991 /* 10614 */ GIM_Try, /*On fail goto*//*Label 515*/ GIMT_Encode4(10625), // Rule ID 357 //
9992 /* 10619 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule215Enabled),
9993 /* 10622 */ // Combiner Rule #215: fold_binop_into_select; wip_match_opcode 'G_FMAXIMUM'
9994 /* 10622 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner108),
9995 /* 10625 */ // Label 515: @10625
9996 /* 10625 */ GIM_Try, /*On fail goto*//*Label 516*/ GIMT_Encode4(10636), // Rule ID 397 //
9997 /* 10630 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule228Enabled),
9998 /* 10633 */ // Combiner Rule #228: commute_fp_constant_to_rhs; wip_match_opcode 'G_FMAXIMUM'
9999 /* 10633 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119),
10000 /* 10636 */ // Label 516: @10636
10001 /* 10636 */ GIM_Try, /*On fail goto*//*Label 517*/ GIMT_Encode4(10647), // Rule ID 232 //
10002 /* 10641 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule171Enabled),
10003 /* 10644 */ // MIs[0] dst
10004 /* 10644 */ // No operand predicates
10005 /* 10644 */ // MIs[0] root.src0
10006 /* 10644 */ // No operand predicates
10007 /* 10644 */ // MIs[0] root.src1
10008 /* 10644 */ // No operand predicates
10009 /* 10644 */ // Combiner Rule #171: combine_minmax_nan @ [root[3]]
10010 /* 10644 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner78),
10011 /* 10647 */ // Label 517: @10647
10012 /* 10647 */ GIM_Try, /*On fail goto*//*Label 518*/ GIMT_Encode4(10658), // Rule ID 299 //
10013 /* 10652 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule195Enabled),
10014 /* 10655 */ // MIs[0] d
10015 /* 10655 */ // No operand predicates
10016 /* 10655 */ // MIs[0] mi.src0
10017 /* 10655 */ // No operand predicates
10018 /* 10655 */ // MIs[0] mi.src1
10019 /* 10655 */ // No operand predicates
10020 /* 10655 */ // Combiner Rule #195: constant_fold_fp_binop @ [mi[9]]
10021 /* 10655 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner93),
10022 /* 10658 */ // Label 518: @10658
10023 /* 10658 */ GIM_Reject,
10024 /* 10659 */ // Label 89: @10659
10025 /* 10659 */ GIM_Try, /*On fail goto*//*Label 519*/ GIMT_Encode4(10670), // Rule ID 300 //
10026 /* 10664 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule195Enabled),
10027 /* 10667 */ // MIs[0] d
10028 /* 10667 */ // No operand predicates
10029 /* 10667 */ // MIs[0] mi.src0
10030 /* 10667 */ // No operand predicates
10031 /* 10667 */ // MIs[0] mi.src1
10032 /* 10667 */ // No operand predicates
10033 /* 10667 */ // Combiner Rule #195: constant_fold_fp_binop @ [mi[10]]
10034 /* 10667 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner93),
10035 /* 10670 */ // Label 519: @10670
10036 /* 10670 */ GIM_Reject,
10037 /* 10671 */ // Label 90: @10671
10038 /* 10671 */ GIM_Try, /*On fail goto*//*Label 520*/ GIMT_Encode4(10682), // Rule ID 301 //
10039 /* 10676 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule195Enabled),
10040 /* 10679 */ // MIs[0] d
10041 /* 10679 */ // No operand predicates
10042 /* 10679 */ // MIs[0] mi.src0
10043 /* 10679 */ // No operand predicates
10044 /* 10679 */ // MIs[0] mi.src1
10045 /* 10679 */ // No operand predicates
10046 /* 10679 */ // Combiner Rule #195: constant_fold_fp_binop @ [mi[11]]
10047 /* 10679 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner93),
10048 /* 10682 */ // Label 520: @10682
10049 /* 10682 */ GIM_Reject,
10050 /* 10683 */ // Label 91: @10683
10051 /* 10683 */ GIM_Try, /*On fail goto*//*Label 521*/ GIMT_Encode4(10694), // Rule ID 273 //
10052 /* 10688 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
10053 /* 10691 */ // Combiner Rule #194: constant_fold_binop; wip_match_opcode 'G_PTR_ADD'
10054 /* 10691 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner92),
10055 /* 10694 */ // Label 521: @10694
10056 /* 10694 */ GIM_Try, /*On fail goto*//*Label 522*/ GIMT_Encode4(10705), // Rule ID 334 //
10057 /* 10699 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule215Enabled),
10058 /* 10702 */ // Combiner Rule #215: fold_binop_into_select; wip_match_opcode 'G_PTR_ADD'
10059 /* 10702 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner108),
10060 /* 10705 */ // Label 522: @10705
10061 /* 10705 */ GIM_Try, /*On fail goto*//*Label 523*/ GIMT_Encode4(10742), // Rule ID 219 //
10062 /* 10710 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule166Enabled),
10063 /* 10713 */ // MIs[0] dst
10064 /* 10713 */ // No operand predicates
10065 /* 10713 */ // MIs[0] base
10066 /* 10713 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
10067 /* 10717 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_INTTOPTR),
10068 /* 10721 */ // MIs[1] c1reg
10069 /* 10721 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
10070 /* 10725 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
10071 /* 10729 */ // MIs[2] c1imm
10072 /* 10729 */ // No operand predicates
10073 /* 10729 */ // MIs[0] c2reg
10074 /* 10729 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/0, /*OpIdx*/2, // MIs[3]
10075 /* 10733 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
10076 /* 10737 */ // MIs[3] c2imm
10077 /* 10737 */ // No operand predicates
10078 /* 10737 */ GIM_CheckIsSafeToFold, /*NumInsns*/3,
10079 /* 10739 */ // Combiner Rule #166: const_ptradd_to_i2p
10080 /* 10739 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner73),
10081 /* 10742 */ // Label 523: @10742
10082 /* 10742 */ GIM_Try, /*On fail goto*//*Label 524*/ GIMT_Encode4(10765), // Rule ID 125 //
10083 /* 10747 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled),
10084 /* 10750 */ // MIs[0] dst
10085 /* 10750 */ // No operand predicates
10086 /* 10750 */ // MIs[0] lhs
10087 /* 10750 */ // No operand predicates
10088 /* 10750 */ // MIs[0] Operand 2
10089 /* 10750 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0,
10090 /* 10754 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
10091 /* 10759 */ // Combiner Rule #90: right_identity_zero @ [__right_identity_zero_match_0[7]]
10092 /* 10759 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
10093 /* 10764 */ GIR_EraseRootFromParent_Done,
10094 /* 10765 */ // Label 524: @10765
10095 /* 10765 */ GIM_Try, /*On fail goto*//*Label 525*/ GIMT_Encode4(10785), // Rule ID 235 //
10096 /* 10770 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule174Enabled),
10097 /* 10773 */ // MIs[0] dst
10098 /* 10773 */ // No operand predicates
10099 /* 10773 */ // MIs[0] base
10100 /* 10773 */ // No operand predicates
10101 /* 10773 */ // MIs[0] offset
10102 /* 10773 */ // No operand predicates
10103 /* 10773 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner19),
10104 /* 10777 */ // Combiner Rule #174: ptr_add_with_zero
10105 /* 10777 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_INTTOPTR),
10106 /* 10780 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10107 /* 10782 */ GIR_RootToRootCopy, /*OpIdx*/2, // offset
10108 /* 10784 */ GIR_EraseRootFromParent_Done,
10109 /* 10785 */ // Label 525: @10785
10110 /* 10785 */ GIM_Try, /*On fail goto*//*Label 526*/ GIMT_Encode4(10796), // Rule ID 168 //
10111 /* 10790 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule115Enabled),
10112 /* 10793 */ // MIs[0] dst
10113 /* 10793 */ // No operand predicates
10114 /* 10793 */ // MIs[0] base
10115 /* 10793 */ // No operand predicates
10116 /* 10793 */ // MIs[0] offset
10117 /* 10793 */ // No operand predicates
10118 /* 10793 */ // Combiner Rule #115: reassoc_ptradd
10119 /* 10793 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner48),
10120 /* 10796 */ // Label 526: @10796
10121 /* 10796 */ GIM_Try, /*On fail goto*//*Label 527*/ GIMT_Encode4(10807), // Rule ID 170 //
10122 /* 10801 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule117Enabled),
10123 /* 10804 */ // MIs[0] dst
10124 /* 10804 */ // No operand predicates
10125 /* 10804 */ // MIs[0] base
10126 /* 10804 */ // No operand predicates
10127 /* 10804 */ // MIs[0] offset
10128 /* 10804 */ // No operand predicates
10129 /* 10804 */ // Combiner Rule #117: ptr_add_immed_chain
10130 /* 10804 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner50),
10131 /* 10807 */ // Label 527: @10807
10132 /* 10807 */ GIM_Reject,
10133 /* 10808 */ // Label 92: @10808
10134 /* 10808 */ GIM_Try, /*On fail goto*//*Label 528*/ GIMT_Encode4(10819), // Rule ID 286 //
10135 /* 10813 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
10136 /* 10816 */ // Combiner Rule #194: constant_fold_binop; wip_match_opcode 'G_SMIN'
10137 /* 10816 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner92),
10138 /* 10819 */ // Label 528: @10819
10139 /* 10819 */ GIM_Try, /*On fail goto*//*Label 529*/ GIMT_Encode4(10830), // Rule ID 345 //
10140 /* 10824 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule215Enabled),
10141 /* 10827 */ // Combiner Rule #215: fold_binop_into_select; wip_match_opcode 'G_SMIN'
10142 /* 10827 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner108),
10143 /* 10830 */ // Label 529: @10830
10144 /* 10830 */ GIM_Try, /*On fail goto*//*Label 530*/ GIMT_Encode4(10841), // Rule ID 374 //
10145 /* 10835 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule227Enabled),
10146 /* 10838 */ // Combiner Rule #227: commute_int_constant_to_rhs; wip_match_opcode 'G_SMIN'
10147 /* 10838 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner118),
10148 /* 10841 */ // Label 530: @10841
10149 /* 10841 */ GIM_Reject,
10150 /* 10842 */ // Label 93: @10842
10151 /* 10842 */ GIM_Try, /*On fail goto*//*Label 531*/ GIMT_Encode4(10853), // Rule ID 287 //
10152 /* 10847 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
10153 /* 10850 */ // Combiner Rule #194: constant_fold_binop; wip_match_opcode 'G_SMAX'
10154 /* 10850 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner92),
10155 /* 10853 */ // Label 531: @10853
10156 /* 10853 */ GIM_Try, /*On fail goto*//*Label 532*/ GIMT_Encode4(10864), // Rule ID 346 //
10157 /* 10858 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule215Enabled),
10158 /* 10861 */ // Combiner Rule #215: fold_binop_into_select; wip_match_opcode 'G_SMAX'
10159 /* 10861 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner108),
10160 /* 10864 */ // Label 532: @10864
10161 /* 10864 */ GIM_Try, /*On fail goto*//*Label 533*/ GIMT_Encode4(10875), // Rule ID 375 //
10162 /* 10869 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule227Enabled),
10163 /* 10872 */ // Combiner Rule #227: commute_int_constant_to_rhs; wip_match_opcode 'G_SMAX'
10164 /* 10872 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner118),
10165 /* 10875 */ // Label 533: @10875
10166 /* 10875 */ GIM_Reject,
10167 /* 10876 */ // Label 94: @10876
10168 /* 10876 */ GIM_Try, /*On fail goto*//*Label 534*/ GIMT_Encode4(10887), // Rule ID 288 //
10169 /* 10881 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
10170 /* 10884 */ // Combiner Rule #194: constant_fold_binop; wip_match_opcode 'G_UMIN'
10171 /* 10884 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner92),
10172 /* 10887 */ // Label 534: @10887
10173 /* 10887 */ GIM_Try, /*On fail goto*//*Label 535*/ GIMT_Encode4(10898), // Rule ID 347 //
10174 /* 10892 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule215Enabled),
10175 /* 10895 */ // Combiner Rule #215: fold_binop_into_select; wip_match_opcode 'G_UMIN'
10176 /* 10895 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner108),
10177 /* 10898 */ // Label 535: @10898
10178 /* 10898 */ GIM_Try, /*On fail goto*//*Label 536*/ GIMT_Encode4(10909), // Rule ID 376 //
10179 /* 10903 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule227Enabled),
10180 /* 10906 */ // Combiner Rule #227: commute_int_constant_to_rhs; wip_match_opcode 'G_UMIN'
10181 /* 10906 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner118),
10182 /* 10909 */ // Label 536: @10909
10183 /* 10909 */ GIM_Reject,
10184 /* 10910 */ // Label 95: @10910
10185 /* 10910 */ GIM_Try, /*On fail goto*//*Label 537*/ GIMT_Encode4(10921), // Rule ID 289 //
10186 /* 10915 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
10187 /* 10918 */ // Combiner Rule #194: constant_fold_binop; wip_match_opcode 'G_UMAX'
10188 /* 10918 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner92),
10189 /* 10921 */ // Label 537: @10921
10190 /* 10921 */ GIM_Try, /*On fail goto*//*Label 538*/ GIMT_Encode4(10932), // Rule ID 348 //
10191 /* 10926 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule215Enabled),
10192 /* 10929 */ // Combiner Rule #215: fold_binop_into_select; wip_match_opcode 'G_UMAX'
10193 /* 10929 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner108),
10194 /* 10932 */ // Label 538: @10932
10195 /* 10932 */ GIM_Try, /*On fail goto*//*Label 539*/ GIMT_Encode4(10943), // Rule ID 377 //
10196 /* 10937 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule227Enabled),
10197 /* 10940 */ // Combiner Rule #227: commute_int_constant_to_rhs; wip_match_opcode 'G_UMAX'
10198 /* 10940 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner118),
10199 /* 10943 */ // Label 539: @10943
10200 /* 10943 */ GIM_Reject,
10201 /* 10944 */ // Label 96: @10944
10202 /* 10944 */ GIM_Try, /*On fail goto*//*Label 540*/ GIMT_Encode4(10965), // Rule ID 96 //
10203 /* 10949 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule81Enabled),
10204 /* 10952 */ // MIs[0] dst
10205 /* 10952 */ // No operand predicates
10206 /* 10952 */ // MIs[0] __unary_undef_to_zero_match_0.x
10207 /* 10952 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
10208 /* 10956 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
10209 /* 10960 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
10210 /* 10962 */ // Combiner Rule #81: unary_undef_to_zero @ [__unary_undef_to_zero_match_0[0]]
10211 /* 10962 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner33),
10212 /* 10965 */ // Label 540: @10965
10213 /* 10965 */ GIM_Try, /*On fail goto*//*Label 541*/ GIMT_Encode4(10976), // Rule ID 312 //
10214 /* 10970 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule198Enabled),
10215 /* 10973 */ // MIs[0] dst
10216 /* 10973 */ // No operand predicates
10217 /* 10973 */ // MIs[0] mi.src
10218 /* 10973 */ // No operand predicates
10219 /* 10973 */ // Combiner Rule #198: constant_fold_unary_int_op @ [mi[5]]
10220 /* 10973 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner96),
10221 /* 10976 */ // Label 541: @10976
10222 /* 10976 */ GIM_Reject,
10223 /* 10977 */ // Label 97: @10977
10224 /* 10977 */ GIM_Try, /*On fail goto*//*Label 542*/ GIMT_Encode4(10988), // Rule ID 203 //
10225 /* 10982 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule150Enabled),
10226 /* 10985 */ // MIs[0] tgt
10227 /* 10985 */ // No operand predicates
10228 /* 10985 */ // Combiner Rule #150: opt_brcond_by_inverting_cond
10229 /* 10985 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner71),
10230 /* 10988 */ // Label 542: @10988
10231 /* 10988 */ GIM_Reject,
10232 /* 10989 */ // Label 98: @10989
10233 /* 10989 */ GIM_Try, /*On fail goto*//*Label 543*/ GIMT_Encode4(11000), // Rule ID 114 //
10234 /* 10994 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule87Enabled),
10235 /* 10997 */ // Combiner Rule #87: insert_extract_vec_elt_out_of_bounds; wip_match_opcode 'G_INSERT_VECTOR_ELT'
10236 /* 10997 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner38),
10237 /* 11000 */ // Label 543: @11000
10238 /* 11000 */ GIM_Try, /*On fail goto*//*Label 544*/ GIMT_Encode4(11039), // Rule ID 45 //
10239 /* 11005 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule41Enabled),
10240 /* 11008 */ // MIs[0] root
10241 /* 11008 */ // No operand predicates
10242 /* 11008 */ // MIs[0] src
10243 /* 11008 */ // No operand predicates
10244 /* 11008 */ // MIs[0] elt
10245 /* 11008 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
10246 /* 11012 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_EXTRACT_VECTOR_ELT),
10247 /* 11016 */ // MIs[1] src
10248 /* 11016 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/1, /*OpIdx*/1, /*OtherMI*/0, /*OtherOpIdx*/1,
10249 /* 11021 */ // MIs[1] idx
10250 /* 11021 */ // No operand predicates
10251 /* 11021 */ // MIs[0] idx
10252 /* 11021 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/3, /*OtherMI*/1, /*OtherOpIdx*/2,
10253 /* 11026 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
10254 /* 11031 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
10255 /* 11033 */ // Combiner Rule #41: insert_vector_element_extract_vector_element
10256 /* 11033 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
10257 /* 11038 */ GIR_EraseRootFromParent_Done,
10258 /* 11039 */ // Label 544: @11039
10259 /* 11039 */ GIM_Try, /*On fail goto*//*Label 545*/ GIMT_Encode4(11072), // Rule ID 31 //
10260 /* 11044 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule27Enabled),
10261 /* 11047 */ // MIs[0] root
10262 /* 11047 */ // No operand predicates
10263 /* 11047 */ // MIs[0] src
10264 /* 11047 */ // No operand predicates
10265 /* 11047 */ // MIs[0] elt
10266 /* 11047 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
10267 /* 11051 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
10268 /* 11055 */ // MIs[0] idx
10269 /* 11055 */ // No operand predicates
10270 /* 11055 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner3),
10271 /* 11059 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
10272 /* 11064 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
10273 /* 11066 */ // Combiner Rule #27: insert_vector_element_elt_undef
10274 /* 11066 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1,
10275 /* 11071 */ GIR_EraseRootFromParent_Done,
10276 /* 11072 */ // Label 545: @11072
10277 /* 11072 */ GIM_Try, /*On fail goto*//*Label 546*/ GIMT_Encode4(11096), // Rule ID 30 //
10278 /* 11077 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule26Enabled),
10279 /* 11080 */ // MIs[0] root
10280 /* 11080 */ // No operand predicates
10281 /* 11080 */ // MIs[0] src
10282 /* 11080 */ // No operand predicates
10283 /* 11080 */ // MIs[0] elt
10284 /* 11080 */ // No operand predicates
10285 /* 11080 */ // MIs[0] idx
10286 /* 11080 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/3, // MIs[1]
10287 /* 11084 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
10288 /* 11088 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
10289 /* 11090 */ // Combiner Rule #26: insert_vector_element_idx_undef
10290 /* 11090 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
10291 /* 11093 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
10292 /* 11095 */ GIR_EraseRootFromParent_Done,
10293 /* 11096 */ // Label 546: @11096
10294 /* 11096 */ GIM_Try, /*On fail goto*//*Label 547*/ GIMT_Encode4(11107), // Rule ID 33 //
10295 /* 11101 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule29Enabled),
10296 /* 11104 */ // MIs[0] dst
10297 /* 11104 */ // No operand predicates
10298 /* 11104 */ // MIs[0] src
10299 /* 11104 */ // No operand predicates
10300 /* 11104 */ // MIs[0] elt
10301 /* 11104 */ // No operand predicates
10302 /* 11104 */ // MIs[0] idx
10303 /* 11104 */ // No operand predicates
10304 /* 11104 */ // Combiner Rule #29: insert_vector_elt_oob
10305 /* 11104 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner9),
10306 /* 11107 */ // Label 547: @11107
10307 /* 11107 */ GIM_Try, /*On fail goto*//*Label 548*/ GIMT_Encode4(11118), // Rule ID 74 //
10308 /* 11112 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule70Enabled),
10309 /* 11115 */ // MIs[0] dst
10310 /* 11115 */ // No operand predicates
10311 /* 11115 */ // MIs[0] src
10312 /* 11115 */ // No operand predicates
10313 /* 11115 */ // MIs[0] elt
10314 /* 11115 */ // No operand predicates
10315 /* 11115 */ // MIs[0] idx
10316 /* 11115 */ // No operand predicates
10317 /* 11115 */ // Combiner Rule #70: combine_insert_vec_elts_build_vector
10318 /* 11115 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner26),
10319 /* 11118 */ // Label 548: @11118
10320 /* 11118 */ GIM_Reject,
10321 /* 11119 */ // Label 99: @11119
10322 /* 11119 */ GIM_Try, /*On fail goto*//*Label 549*/ GIMT_Encode4(11130), // Rule ID 115 //
10323 /* 11124 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule87Enabled),
10324 /* 11127 */ // Combiner Rule #87: insert_extract_vec_elt_out_of_bounds; wip_match_opcode 'G_EXTRACT_VECTOR_ELT'
10325 /* 11127 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner38),
10326 /* 11130 */ // Label 549: @11130
10327 /* 11130 */ GIM_Try, /*On fail goto*//*Label 550*/ GIMT_Encode4(11154), // Rule ID 43 //
10328 /* 11135 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule39Enabled),
10329 /* 11138 */ // MIs[0] root
10330 /* 11138 */ // No operand predicates
10331 /* 11138 */ // MIs[0] src
10332 /* 11138 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
10333 /* 11142 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR_TRUNC),
10334 /* 11146 */ GIM_CheckNumOperands, /*MI*/1, /*Expected*/9,
10335 /* 11149 */ // MIs[1] x
10336 /* 11149 */ // No operand predicates
10337 /* 11149 */ // MIs[1] y
10338 /* 11149 */ // No operand predicates
10339 /* 11149 */ // MIs[1] z
10340 /* 11149 */ // No operand predicates
10341 /* 11149 */ // MIs[1] a
10342 /* 11149 */ // No operand predicates
10343 /* 11149 */ // MIs[1] b
10344 /* 11149 */ // No operand predicates
10345 /* 11149 */ // MIs[1] c
10346 /* 11149 */ // No operand predicates
10347 /* 11149 */ // MIs[1] d
10348 /* 11149 */ // No operand predicates
10349 /* 11149 */ // MIs[1] e
10350 /* 11149 */ // No operand predicates
10351 /* 11149 */ // MIs[0] idx
10352 /* 11149 */ // No operand predicates
10353 /* 11149 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
10354 /* 11151 */ // Combiner Rule #39: extract_vector_element_build_vector_trunc8
10355 /* 11151 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner12),
10356 /* 11154 */ // Label 550: @11154
10357 /* 11154 */ GIM_Try, /*On fail goto*//*Label 551*/ GIMT_Encode4(11178), // Rule ID 42 //
10358 /* 11159 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule38Enabled),
10359 /* 11162 */ // MIs[0] root
10360 /* 11162 */ // No operand predicates
10361 /* 11162 */ // MIs[0] src
10362 /* 11162 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
10363 /* 11166 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR_TRUNC),
10364 /* 11170 */ GIM_CheckNumOperands, /*MI*/1, /*Expected*/8,
10365 /* 11173 */ // MIs[1] x
10366 /* 11173 */ // No operand predicates
10367 /* 11173 */ // MIs[1] y
10368 /* 11173 */ // No operand predicates
10369 /* 11173 */ // MIs[1] z
10370 /* 11173 */ // No operand predicates
10371 /* 11173 */ // MIs[1] a
10372 /* 11173 */ // No operand predicates
10373 /* 11173 */ // MIs[1] b
10374 /* 11173 */ // No operand predicates
10375 /* 11173 */ // MIs[1] c
10376 /* 11173 */ // No operand predicates
10377 /* 11173 */ // MIs[1] d
10378 /* 11173 */ // No operand predicates
10379 /* 11173 */ // MIs[0] idx
10380 /* 11173 */ // No operand predicates
10381 /* 11173 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
10382 /* 11175 */ // Combiner Rule #38: extract_vector_element_build_vector_trunc7
10383 /* 11175 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner12),
10384 /* 11178 */ // Label 551: @11178
10385 /* 11178 */ GIM_Try, /*On fail goto*//*Label 552*/ GIMT_Encode4(11202), // Rule ID 41 //
10386 /* 11183 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule37Enabled),
10387 /* 11186 */ // MIs[0] root
10388 /* 11186 */ // No operand predicates
10389 /* 11186 */ // MIs[0] src
10390 /* 11186 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
10391 /* 11190 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR_TRUNC),
10392 /* 11194 */ GIM_CheckNumOperands, /*MI*/1, /*Expected*/7,
10393 /* 11197 */ // MIs[1] x
10394 /* 11197 */ // No operand predicates
10395 /* 11197 */ // MIs[1] y
10396 /* 11197 */ // No operand predicates
10397 /* 11197 */ // MIs[1] z
10398 /* 11197 */ // No operand predicates
10399 /* 11197 */ // MIs[1] a
10400 /* 11197 */ // No operand predicates
10401 /* 11197 */ // MIs[1] b
10402 /* 11197 */ // No operand predicates
10403 /* 11197 */ // MIs[1] c
10404 /* 11197 */ // No operand predicates
10405 /* 11197 */ // MIs[0] idx
10406 /* 11197 */ // No operand predicates
10407 /* 11197 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
10408 /* 11199 */ // Combiner Rule #37: extract_vector_element_build_vector_trunc6
10409 /* 11199 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner12),
10410 /* 11202 */ // Label 552: @11202
10411 /* 11202 */ GIM_Try, /*On fail goto*//*Label 553*/ GIMT_Encode4(11226), // Rule ID 40 //
10412 /* 11207 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule36Enabled),
10413 /* 11210 */ // MIs[0] root
10414 /* 11210 */ // No operand predicates
10415 /* 11210 */ // MIs[0] src
10416 /* 11210 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
10417 /* 11214 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR_TRUNC),
10418 /* 11218 */ GIM_CheckNumOperands, /*MI*/1, /*Expected*/6,
10419 /* 11221 */ // MIs[1] x
10420 /* 11221 */ // No operand predicates
10421 /* 11221 */ // MIs[1] y
10422 /* 11221 */ // No operand predicates
10423 /* 11221 */ // MIs[1] z
10424 /* 11221 */ // No operand predicates
10425 /* 11221 */ // MIs[1] a
10426 /* 11221 */ // No operand predicates
10427 /* 11221 */ // MIs[1] b
10428 /* 11221 */ // No operand predicates
10429 /* 11221 */ // MIs[0] idx
10430 /* 11221 */ // No operand predicates
10431 /* 11221 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
10432 /* 11223 */ // Combiner Rule #36: extract_vector_element_build_vector_trunc5
10433 /* 11223 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner12),
10434 /* 11226 */ // Label 553: @11226
10435 /* 11226 */ GIM_Try, /*On fail goto*//*Label 554*/ GIMT_Encode4(11250), // Rule ID 39 //
10436 /* 11231 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule35Enabled),
10437 /* 11234 */ // MIs[0] root
10438 /* 11234 */ // No operand predicates
10439 /* 11234 */ // MIs[0] src
10440 /* 11234 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
10441 /* 11238 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR_TRUNC),
10442 /* 11242 */ GIM_CheckNumOperands, /*MI*/1, /*Expected*/5,
10443 /* 11245 */ // MIs[1] x
10444 /* 11245 */ // No operand predicates
10445 /* 11245 */ // MIs[1] y
10446 /* 11245 */ // No operand predicates
10447 /* 11245 */ // MIs[1] z
10448 /* 11245 */ // No operand predicates
10449 /* 11245 */ // MIs[1] a
10450 /* 11245 */ // No operand predicates
10451 /* 11245 */ // MIs[0] idx
10452 /* 11245 */ // No operand predicates
10453 /* 11245 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
10454 /* 11247 */ // Combiner Rule #35: extract_vector_element_build_vector_trunc4
10455 /* 11247 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner12),
10456 /* 11250 */ // Label 554: @11250
10457 /* 11250 */ GIM_Try, /*On fail goto*//*Label 555*/ GIMT_Encode4(11274), // Rule ID 38 //
10458 /* 11255 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule34Enabled),
10459 /* 11258 */ // MIs[0] root
10460 /* 11258 */ // No operand predicates
10461 /* 11258 */ // MIs[0] src
10462 /* 11258 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
10463 /* 11262 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR_TRUNC),
10464 /* 11266 */ GIM_CheckNumOperands, /*MI*/1, /*Expected*/4,
10465 /* 11269 */ // MIs[1] x
10466 /* 11269 */ // No operand predicates
10467 /* 11269 */ // MIs[1] y
10468 /* 11269 */ // No operand predicates
10469 /* 11269 */ // MIs[1] z
10470 /* 11269 */ // No operand predicates
10471 /* 11269 */ // MIs[0] idx
10472 /* 11269 */ // No operand predicates
10473 /* 11269 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
10474 /* 11271 */ // Combiner Rule #34: extract_vector_element_build_vector_trunc3
10475 /* 11271 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner12),
10476 /* 11274 */ // Label 555: @11274
10477 /* 11274 */ GIM_Try, /*On fail goto*//*Label 556*/ GIMT_Encode4(11308), // Rule ID 34 //
10478 /* 11279 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule30Enabled),
10479 /* 11282 */ // MIs[0] root
10480 /* 11282 */ // No operand predicates
10481 /* 11282 */ // MIs[0] src
10482 /* 11282 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
10483 /* 11286 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_INSERT_VECTOR_ELT),
10484 /* 11290 */ // MIs[1] x
10485 /* 11290 */ // No operand predicates
10486 /* 11290 */ // MIs[1] value
10487 /* 11290 */ // No operand predicates
10488 /* 11290 */ // MIs[1] idx
10489 /* 11290 */ // No operand predicates
10490 /* 11290 */ // MIs[0] idx
10491 /* 11290 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/3,
10492 /* 11295 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/2,
10493 /* 11300 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
10494 /* 11302 */ // Combiner Rule #30: extract_vector_element_not_const
10495 /* 11302 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/2,
10496 /* 11307 */ GIR_EraseRootFromParent_Done,
10497 /* 11308 */ // Label 556: @11308
10498 /* 11308 */ GIM_Try, /*On fail goto*//*Label 557*/ GIMT_Encode4(11329), // Rule ID 35 //
10499 /* 11313 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule31Enabled),
10500 /* 11316 */ // MIs[0] root
10501 /* 11316 */ // No operand predicates
10502 /* 11316 */ // MIs[0] src
10503 /* 11316 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
10504 /* 11320 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_INSERT_VECTOR_ELT),
10505 /* 11324 */ // MIs[1] x
10506 /* 11324 */ // No operand predicates
10507 /* 11324 */ // MIs[1] value
10508 /* 11324 */ // No operand predicates
10509 /* 11324 */ // MIs[1] idx2
10510 /* 11324 */ // No operand predicates
10511 /* 11324 */ // MIs[0] idx1
10512 /* 11324 */ // No operand predicates
10513 /* 11324 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
10514 /* 11326 */ // Combiner Rule #31: extract_vector_element_different_indices
10515 /* 11326 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner10),
10516 /* 11329 */ // Label 557: @11329
10517 /* 11329 */ GIM_Try, /*On fail goto*//*Label 558*/ GIMT_Encode4(11358), // Rule ID 44 //
10518 /* 11334 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule40Enabled),
10519 /* 11337 */ // MIs[0] root
10520 /* 11337 */ // No operand predicates
10521 /* 11337 */ // MIs[0] src
10522 /* 11337 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
10523 /* 11341 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SHUFFLE_VECTOR),
10524 /* 11345 */ // MIs[1] src1
10525 /* 11345 */ // No operand predicates
10526 /* 11345 */ // MIs[1] src2
10527 /* 11345 */ // No operand predicates
10528 /* 11345 */ // MIs[1] mask
10529 /* 11345 */ // No operand predicates
10530 /* 11345 */ // MIs[0] idx
10531 /* 11345 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
10532 /* 11349 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
10533 /* 11353 */ // MIs[2] imm
10534 /* 11353 */ // No operand predicates
10535 /* 11353 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
10536 /* 11355 */ // Combiner Rule #40: extract_vector_element_shuffle_vector
10537 /* 11355 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner13),
10538 /* 11358 */ // Label 558: @11358
10539 /* 11358 */ GIM_Try, /*On fail goto*//*Label 559*/ GIMT_Encode4(11382), // Rule ID 37 //
10540 /* 11363 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule33Enabled),
10541 /* 11366 */ // MIs[0] root
10542 /* 11366 */ // No operand predicates
10543 /* 11366 */ // MIs[0] src
10544 /* 11366 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
10545 /* 11370 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR_TRUNC),
10546 /* 11374 */ GIM_CheckNumOperands, /*MI*/1, /*Expected*/3,
10547 /* 11377 */ // MIs[1] x
10548 /* 11377 */ // No operand predicates
10549 /* 11377 */ // MIs[1] y
10550 /* 11377 */ // No operand predicates
10551 /* 11377 */ // MIs[0] idx
10552 /* 11377 */ // No operand predicates
10553 /* 11377 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
10554 /* 11379 */ // Combiner Rule #33: extract_vector_element_build_vector_trunc2
10555 /* 11379 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner12),
10556 /* 11382 */ // Label 559: @11382
10557 /* 11382 */ GIM_Try, /*On fail goto*//*Label 560*/ GIMT_Encode4(11414), // Rule ID 36 //
10558 /* 11387 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule32Enabled),
10559 /* 11390 */ // MIs[0] root
10560 /* 11390 */ // No operand predicates
10561 /* 11390 */ // MIs[0] src
10562 /* 11390 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
10563 /* 11394 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR),
10564 /* 11398 */ GIM_CheckNumOperandsGE, /*MI*/1, /*Expected*/2,
10565 /* 11401 */ // MIs[1] unused
10566 /* 11401 */ // No operand predicates
10567 /* 11401 */ // MIs[0] idx
10568 /* 11401 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2]
10569 /* 11405 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
10570 /* 11409 */ // MIs[2] imm
10571 /* 11409 */ // No operand predicates
10572 /* 11409 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
10573 /* 11411 */ // Combiner Rule #32: extract_vector_element_build_vector
10574 /* 11411 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner11),
10575 /* 11414 */ // Label 560: @11414
10576 /* 11414 */ GIM_Try, /*On fail goto*//*Label 561*/ GIMT_Encode4(11438), // Rule ID 28 //
10577 /* 11419 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule25Enabled),
10578 /* 11422 */ // MIs[0] root
10579 /* 11422 */ // No operand predicates
10580 /* 11422 */ // MIs[0] __extract_vector_element_undef_match_0.x
10581 /* 11422 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
10582 /* 11426 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
10583 /* 11430 */ // MIs[0] __extract_vector_element_undef_match_0.y
10584 /* 11430 */ // No operand predicates
10585 /* 11430 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
10586 /* 11432 */ // Combiner Rule #25: extract_vector_element_undef @ [__extract_vector_element_undef_match_0[0]]
10587 /* 11432 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
10588 /* 11435 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
10589 /* 11437 */ GIR_EraseRootFromParent_Done,
10590 /* 11438 */ // Label 561: @11438
10591 /* 11438 */ GIM_Try, /*On fail goto*//*Label 562*/ GIMT_Encode4(11462), // Rule ID 29 //
10592 /* 11443 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule25Enabled),
10593 /* 11446 */ // MIs[0] root
10594 /* 11446 */ // No operand predicates
10595 /* 11446 */ // MIs[0] __extract_vector_element_undef_match_0.x
10596 /* 11446 */ // No operand predicates
10597 /* 11446 */ // MIs[0] __extract_vector_element_undef_match_0.y
10598 /* 11446 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
10599 /* 11450 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
10600 /* 11454 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
10601 /* 11456 */ // Combiner Rule #25: extract_vector_element_undef @ [__extract_vector_element_undef_match_0[1]]
10602 /* 11456 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
10603 /* 11459 */ GIR_RootToRootCopy, /*OpIdx*/0, // root
10604 /* 11461 */ GIR_EraseRootFromParent_Done,
10605 /* 11462 */ // Label 562: @11462
10606 /* 11462 */ GIM_Try, /*On fail goto*//*Label 563*/ GIMT_Encode4(11473), // Rule ID 32 //
10607 /* 11467 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule28Enabled),
10608 /* 11470 */ // MIs[0] dst
10609 /* 11470 */ // No operand predicates
10610 /* 11470 */ // MIs[0] src
10611 /* 11470 */ // No operand predicates
10612 /* 11470 */ // MIs[0] idx
10613 /* 11470 */ // No operand predicates
10614 /* 11470 */ // Combiner Rule #28: match_extract_of_element
10615 /* 11470 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner8),
10616 /* 11473 */ // Label 563: @11473
10617 /* 11473 */ GIM_Try, /*On fail goto*//*Label 564*/ GIMT_Encode4(11484), // Rule ID 75 //
10618 /* 11478 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule71Enabled),
10619 /* 11481 */ // MIs[0] dst
10620 /* 11481 */ // No operand predicates
10621 /* 11481 */ // MIs[0] src
10622 /* 11481 */ // No operand predicates
10623 /* 11481 */ // MIs[0] idx
10624 /* 11481 */ // No operand predicates
10625 /* 11481 */ // Combiner Rule #71: extract_vec_elt_build_vec
10626 /* 11481 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner27),
10627 /* 11484 */ // Label 564: @11484
10628 /* 11484 */ GIM_Try, /*On fail goto*//*Label 565*/ GIMT_Encode4(11495), // Rule ID 81 //
10629 /* 11489 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule75Enabled),
10630 /* 11492 */ // MIs[0] dst
10631 /* 11492 */ // No operand predicates
10632 /* 11492 */ // MIs[0] src
10633 /* 11492 */ // No operand predicates
10634 /* 11492 */ // MIs[0] idx
10635 /* 11492 */ // No operand predicates
10636 /* 11492 */ // Combiner Rule #75: combine_extracted_vector_load
10637 /* 11492 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner31),
10638 /* 11495 */ // Label 565: @11495
10639 /* 11495 */ GIM_Reject,
10640 /* 11496 */ // Label 100: @11496
10641 /* 11496 */ GIM_Try, /*On fail goto*//*Label 566*/ GIMT_Encode4(11507), // Rule ID 110 //
10642 /* 11501 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule84Enabled),
10643 /* 11504 */ // Combiner Rule #84: propagate_undef_all_ops; wip_match_opcode 'G_SHUFFLE_VECTOR'
10644 /* 11504 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner36),
10645 /* 11507 */ // Label 566: @11507
10646 /* 11507 */ GIM_Try, /*On fail goto*//*Label 567*/ GIMT_Encode4(11528), // Rule ID 412 //
10647 /* 11512 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule243Enabled),
10648 /* 11515 */ // MIs[0] root
10649 /* 11515 */ // No operand predicates
10650 /* 11515 */ // MIs[0] src1
10651 /* 11515 */ // No operand predicates
10652 /* 11515 */ // MIs[0] undef
10653 /* 11515 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
10654 /* 11519 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
10655 /* 11523 */ // MIs[0] mask
10656 /* 11523 */ // No operand predicates
10657 /* 11523 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
10658 /* 11525 */ // Combiner Rule #243: combine_shuffle_undef_rhs
10659 /* 11525 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner128),
10660 /* 11528 */ // Label 567: @11528
10661 /* 11528 */ GIM_Try, /*On fail goto*//*Label 568*/ GIMT_Encode4(11546), // Rule ID 112 //
10662 /* 11533 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule85Enabled),
10663 /* 11536 */ // MIs[0] dst
10664 /* 11536 */ // No operand predicates
10665 /* 11536 */ // MIs[0] src1
10666 /* 11536 */ // No operand predicates
10667 /* 11536 */ // MIs[0] src2
10668 /* 11536 */ // No operand predicates
10669 /* 11536 */ // MIs[0] mask
10670 /* 11536 */ // No operand predicates
10671 /* 11536 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner5),
10672 /* 11540 */ // Combiner Rule #85: propagate_undef_shuffle_mask
10673 /* 11540 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
10674 /* 11543 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
10675 /* 11545 */ GIR_EraseRootFromParent_Done,
10676 /* 11546 */ // Label 568: @11546
10677 /* 11546 */ GIM_Try, /*On fail goto*//*Label 569*/ GIMT_Encode4(11557), // Rule ID 411 //
10678 /* 11551 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule242Enabled),
10679 /* 11554 */ // MIs[0] dst
10680 /* 11554 */ // No operand predicates
10681 /* 11554 */ // MIs[0] src1
10682 /* 11554 */ // No operand predicates
10683 /* 11554 */ // MIs[0] src2
10684 /* 11554 */ // No operand predicates
10685 /* 11554 */ // MIs[0] mask
10686 /* 11554 */ // No operand predicates
10687 /* 11554 */ // Combiner Rule #242: combine_shuffle_concat
10688 /* 11554 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner127),
10689 /* 11557 */ // Label 569: @11557
10690 /* 11557 */ GIM_Try, /*On fail goto*//*Label 570*/ GIMT_Encode4(11568), // Rule ID 413 //
10691 /* 11562 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule244Enabled),
10692 /* 11565 */ // MIs[0] dst
10693 /* 11565 */ // No operand predicates
10694 /* 11565 */ // MIs[0] src1
10695 /* 11565 */ // No operand predicates
10696 /* 11565 */ // MIs[0] src2
10697 /* 11565 */ // No operand predicates
10698 /* 11565 */ // MIs[0] mask
10699 /* 11565 */ // No operand predicates
10700 /* 11565 */ // Combiner Rule #244: combine_shuffle_disjoint_mask
10701 /* 11565 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129),
10702 /* 11568 */ // Label 570: @11568
10703 /* 11568 */ GIM_Try, /*On fail goto*//*Label 571*/ GIMT_Encode4(11579), // Rule ID 460 //
10704 /* 11573 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule283Enabled),
10705 /* 11576 */ // MIs[0] dst
10706 /* 11576 */ // No operand predicates
10707 /* 11576 */ // MIs[0] src1
10708 /* 11576 */ // No operand predicates
10709 /* 11576 */ // MIs[0] src2
10710 /* 11576 */ // No operand predicates
10711 /* 11576 */ // MIs[0] mask
10712 /* 11576 */ // No operand predicates
10713 /* 11576 */ // Combiner Rule #283: combine_shuffle_vector
10714 /* 11576 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner153),
10715 /* 11579 */ // Label 571: @11579
10716 /* 11579 */ GIM_Try, /*On fail goto*//*Label 572*/ GIMT_Encode4(11590), // Rule ID 461 //
10717 /* 11584 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule284Enabled),
10718 /* 11587 */ // MIs[0] dst
10719 /* 11587 */ // No operand predicates
10720 /* 11587 */ // MIs[0] src1
10721 /* 11587 */ // No operand predicates
10722 /* 11587 */ // MIs[0] src2
10723 /* 11587 */ // No operand predicates
10724 /* 11587 */ // MIs[0] mask
10725 /* 11587 */ // No operand predicates
10726 /* 11587 */ // Combiner Rule #284: combine_shuffle_vector_to_build_vector
10727 /* 11587 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner154),
10728 /* 11590 */ // Label 572: @11590
10729 /* 11590 */ GIM_Reject,
10730 /* 11591 */ // Label 101: @11591
10731 /* 11591 */ GIM_Try, /*On fail goto*//*Label 573*/ GIMT_Encode4(11602), // Rule ID 309 //
10732 /* 11596 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule198Enabled),
10733 /* 11599 */ // MIs[0] dst
10734 /* 11599 */ // No operand predicates
10735 /* 11599 */ // MIs[0] mi.src
10736 /* 11599 */ // No operand predicates
10737 /* 11599 */ // Combiner Rule #198: constant_fold_unary_int_op @ [mi[2]]
10738 /* 11599 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner96),
10739 /* 11602 */ // Label 573: @11602
10740 /* 11602 */ GIM_Try, /*On fail goto*//*Label 574*/ GIMT_Encode4(11613), // Rule ID 437 //
10741 /* 11607 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule266Enabled),
10742 /* 11610 */ // MIs[0] dst
10743 /* 11610 */ // No operand predicates
10744 /* 11610 */ // MIs[0] src
10745 /* 11610 */ // No operand predicates
10746 /* 11610 */ // Combiner Rule #266: cttz_to_cttz_zero_poison
10747 /* 11610 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner147),
10748 /* 11613 */ // Label 574: @11613
10749 /* 11613 */ GIM_Reject,
10750 /* 11614 */ // Label 102: @11614
10751 /* 11614 */ GIM_Try, /*On fail goto*//*Label 575*/ GIMT_Encode4(11625), // Rule ID 310 //
10752 /* 11619 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule198Enabled),
10753 /* 11622 */ // MIs[0] dst
10754 /* 11622 */ // No operand predicates
10755 /* 11622 */ // MIs[0] mi.src
10756 /* 11622 */ // No operand predicates
10757 /* 11622 */ // Combiner Rule #198: constant_fold_unary_int_op @ [mi[3]]
10758 /* 11622 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner96),
10759 /* 11625 */ // Label 575: @11625
10760 /* 11625 */ GIM_Reject,
10761 /* 11626 */ // Label 103: @11626
10762 /* 11626 */ GIM_Try, /*On fail goto*//*Label 576*/ GIMT_Encode4(11637), // Rule ID 307 //
10763 /* 11631 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule198Enabled),
10764 /* 11634 */ // MIs[0] dst
10765 /* 11634 */ // No operand predicates
10766 /* 11634 */ // MIs[0] mi.src
10767 /* 11634 */ // No operand predicates
10768 /* 11634 */ // Combiner Rule #198: constant_fold_unary_int_op @ [mi[0]]
10769 /* 11634 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner96),
10770 /* 11637 */ // Label 576: @11637
10771 /* 11637 */ GIM_Try, /*On fail goto*//*Label 577*/ GIMT_Encode4(11648), // Rule ID 434 //
10772 /* 11642 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule263Enabled),
10773 /* 11645 */ // MIs[0] dst
10774 /* 11645 */ // No operand predicates
10775 /* 11645 */ // MIs[0] src
10776 /* 11645 */ // No operand predicates
10777 /* 11645 */ // Combiner Rule #263: ctlz_to_ctls
10778 /* 11645 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner146),
10779 /* 11648 */ // Label 577: @11648
10780 /* 11648 */ GIM_Try, /*On fail goto*//*Label 578*/ GIMT_Encode4(11659), // Rule ID 436 //
10781 /* 11653 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule265Enabled),
10782 /* 11656 */ // MIs[0] dst
10783 /* 11656 */ // No operand predicates
10784 /* 11656 */ // MIs[0] src
10785 /* 11656 */ // No operand predicates
10786 /* 11656 */ // Combiner Rule #265: ctlz_to_ctlz_zero_poison
10787 /* 11656 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner147),
10788 /* 11659 */ // Label 578: @11659
10789 /* 11659 */ GIM_Reject,
10790 /* 11660 */ // Label 104: @11660
10791 /* 11660 */ GIM_Try, /*On fail goto*//*Label 579*/ GIMT_Encode4(11671), // Rule ID 308 //
10792 /* 11665 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule198Enabled),
10793 /* 11668 */ // MIs[0] dst
10794 /* 11668 */ // No operand predicates
10795 /* 11668 */ // MIs[0] mi.src
10796 /* 11668 */ // No operand predicates
10797 /* 11668 */ // Combiner Rule #198: constant_fold_unary_int_op @ [mi[1]]
10798 /* 11668 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner96),
10799 /* 11671 */ // Label 579: @11671
10800 /* 11671 */ GIM_Try, /*On fail goto*//*Label 580*/ GIMT_Encode4(11682), // Rule ID 435 //
10801 /* 11676 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule264Enabled),
10802 /* 11679 */ // MIs[0] dst
10803 /* 11679 */ // No operand predicates
10804 /* 11679 */ // MIs[0] src
10805 /* 11679 */ // No operand predicates
10806 /* 11679 */ // Combiner Rule #264: ctlz_zero_poison_to_ctls
10807 /* 11679 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner146),
10808 /* 11682 */ // Label 580: @11682
10809 /* 11682 */ GIM_Reject,
10810 /* 11683 */ // Label 105: @11683
10811 /* 11683 */ GIM_Try, /*On fail goto*//*Label 581*/ GIMT_Encode4(11694), // Rule ID 311 //
10812 /* 11688 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule198Enabled),
10813 /* 11691 */ // MIs[0] dst
10814 /* 11691 */ // No operand predicates
10815 /* 11691 */ // MIs[0] mi.src
10816 /* 11691 */ // No operand predicates
10817 /* 11691 */ // Combiner Rule #198: constant_fold_unary_int_op @ [mi[4]]
10818 /* 11691 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner96),
10819 /* 11694 */ // Label 581: @11694
10820 /* 11694 */ GIM_Reject,
10821 /* 11695 */ // Label 106: @11695
10822 /* 11695 */ GIM_Try, /*On fail goto*//*Label 582*/ GIMT_Encode4(11706), // Rule ID 313 //
10823 /* 11700 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule198Enabled),
10824 /* 11703 */ // MIs[0] dst
10825 /* 11703 */ // No operand predicates
10826 /* 11703 */ // MIs[0] mi.src
10827 /* 11703 */ // No operand predicates
10828 /* 11703 */ // Combiner Rule #198: constant_fold_unary_int_op @ [mi[6]]
10829 /* 11703 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner96),
10830 /* 11706 */ // Label 582: @11706
10831 /* 11706 */ GIM_Reject,
10832 /* 11707 */ // Label 107: @11707
10833 /* 11707 */ GIM_Try, /*On fail goto*//*Label 583*/ GIMT_Encode4(11751), // Rule ID 263 //
10834 /* 11712 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled),
10835 /* 11715 */ // MIs[0] d
10836 /* 11715 */ // No operand predicates
10837 /* 11715 */ // MIs[0] src
10838 /* 11715 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
10839 /* 11719 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_LSHR),
10840 /* 11723 */ // MIs[1] rev
10841 /* 11723 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
10842 /* 11727 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_BITREVERSE),
10843 /* 11731 */ // MIs[2] val
10844 /* 11731 */ // No operand predicates
10845 /* 11731 */ // MIs[1] amt
10846 /* 11731 */ // No operand predicates
10847 /* 11731 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner21),
10848 /* 11735 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
10849 /* 11737 */ // Combiner Rule #187: bitreverse_lshr
10850 /* 11737 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SHL),
10851 /* 11740 */ GIR_RootToRootCopy, /*OpIdx*/0, // d
10852 /* 11742 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // val
10853 /* 11746 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // amt
10854 /* 11750 */ GIR_EraseRootFromParent_Done,
10855 /* 11751 */ // Label 583: @11751
10856 /* 11751 */ GIM_Try, /*On fail goto*//*Label 584*/ GIMT_Encode4(11795), // Rule ID 262 //
10857 /* 11756 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule186Enabled),
10858 /* 11759 */ // MIs[0] d
10859 /* 11759 */ // No operand predicates
10860 /* 11759 */ // MIs[0] src
10861 /* 11759 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
10862 /* 11763 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SHL),
10863 /* 11767 */ // MIs[1] rev
10864 /* 11767 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2]
10865 /* 11771 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_BITREVERSE),
10866 /* 11775 */ // MIs[2] val
10867 /* 11775 */ // No operand predicates
10868 /* 11775 */ // MIs[1] amt
10869 /* 11775 */ // No operand predicates
10870 /* 11775 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner20),
10871 /* 11779 */ GIM_CheckIsSafeToFold, /*NumInsns*/2,
10872 /* 11781 */ // Combiner Rule #186: bitreverse_shl
10873 /* 11781 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_LSHR),
10874 /* 11784 */ GIR_RootToRootCopy, /*OpIdx*/0, // d
10875 /* 11786 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // val
10876 /* 11790 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // amt
10877 /* 11794 */ GIR_EraseRootFromParent_Done,
10878 /* 11795 */ // Label 584: @11795
10879 /* 11795 */ GIM_Try, /*On fail goto*//*Label 585*/ GIMT_Encode4(11806), // Rule ID 314 //
10880 /* 11800 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule198Enabled),
10881 /* 11803 */ // MIs[0] dst
10882 /* 11803 */ // No operand predicates
10883 /* 11803 */ // MIs[0] mi.src
10884 /* 11803 */ // No operand predicates
10885 /* 11803 */ // Combiner Rule #198: constant_fold_unary_int_op @ [mi[7]]
10886 /* 11803 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner96),
10887 /* 11806 */ // Label 585: @11806
10888 /* 11806 */ GIM_Reject,
10889 /* 11807 */ // Label 108: @11807
10890 /* 11807 */ GIM_Try, /*On fail goto*//*Label 586*/ GIMT_Encode4(11828), // Rule ID 210 //
10891 /* 11812 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule157Enabled),
10892 /* 11815 */ // MIs[0] dst
10893 /* 11815 */ // No operand predicates
10894 /* 11815 */ // MIs[0] src0
10895 /* 11815 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
10896 /* 11819 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT),
10897 /* 11823 */ // MIs[1] cst
10898 /* 11823 */ // No operand predicates
10899 /* 11823 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
10900 /* 11825 */ // Combiner Rule #157: constant_fold_fceil
10901 /* 11825 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner72),
10902 /* 11828 */ // Label 586: @11828
10903 /* 11828 */ GIM_Reject,
10904 /* 11829 */ // Label 109: @11829
10905 /* 11829 */ GIM_Try, /*On fail goto*//*Label 587*/ GIMT_Encode4(11850), // Rule ID 206 //
10906 /* 11834 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule153Enabled),
10907 /* 11837 */ // MIs[0] dst
10908 /* 11837 */ // No operand predicates
10909 /* 11837 */ // MIs[0] src0
10910 /* 11837 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
10911 /* 11841 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT),
10912 /* 11845 */ // MIs[1] cst
10913 /* 11845 */ // No operand predicates
10914 /* 11845 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
10915 /* 11847 */ // Combiner Rule #153: constant_fold_fsqrt
10916 /* 11847 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner72),
10917 /* 11850 */ // Label 587: @11850
10918 /* 11850 */ GIM_Reject,
10919 /* 11851 */ // Label 110: @11851
10920 /* 11851 */ GIM_Try, /*On fail goto*//*Label 588*/ GIMT_Encode4(11872), // Rule ID 211 //
10921 /* 11856 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule158Enabled),
10922 /* 11859 */ // MIs[0] dst
10923 /* 11859 */ // No operand predicates
10924 /* 11859 */ // MIs[0] src0
10925 /* 11859 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
10926 /* 11863 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT),
10927 /* 11867 */ // MIs[1] cst
10928 /* 11867 */ // No operand predicates
10929 /* 11867 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
10930 /* 11869 */ // Combiner Rule #158: constant_fold_ffloor
10931 /* 11869 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner72),
10932 /* 11872 */ // Label 588: @11872
10933 /* 11872 */ GIM_Reject,
10934 /* 11873 */ // Label 111: @11873
10935 /* 11873 */ GIM_Try, /*On fail goto*//*Label 589*/ GIMT_Encode4(11894), // Rule ID 215 //
10936 /* 11878 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule162Enabled),
10937 /* 11881 */ // MIs[0] dst
10938 /* 11881 */ // No operand predicates
10939 /* 11881 */ // MIs[0] src0
10940 /* 11881 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
10941 /* 11885 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT),
10942 /* 11889 */ // MIs[1] cst
10943 /* 11889 */ // No operand predicates
10944 /* 11889 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
10945 /* 11891 */ // Combiner Rule #162: constant_fold_frint
10946 /* 11891 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner72),
10947 /* 11894 */ // Label 589: @11894
10948 /* 11894 */ GIM_Reject,
10949 /* 11895 */ // Label 112: @11895
10950 /* 11895 */ GIM_Try, /*On fail goto*//*Label 590*/ GIMT_Encode4(11916), // Rule ID 216 //
10951 /* 11900 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule163Enabled),
10952 /* 11903 */ // MIs[0] dst
10953 /* 11903 */ // No operand predicates
10954 /* 11903 */ // MIs[0] src0
10955 /* 11903 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1]
10956 /* 11907 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT),
10957 /* 11911 */ // MIs[1] cst
10958 /* 11911 */ // No operand predicates
10959 /* 11911 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
10960 /* 11913 */ // Combiner Rule #163: constant_fold_fnearbyint
10961 /* 11913 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner72),
10962 /* 11916 */ // Label 590: @11916
10963 /* 11916 */ GIM_Reject,
10964 /* 11917 */ // Label 113: @11917
10965 /* 11917 */ GIM_Reject,
10966 /* 11918 */ }; // Size: 11918 bytes
10967 return MatchTable0;
10968}
10969#undef GIMT_Encode2
10970#undef GIMT_Encode4
10971#undef GIMT_Encode8
10972
10973
10974#endif // GET_GICOMBINER_IMPL
10975
10976#ifdef GET_GICOMBINER_CONSTRUCTOR_INITS
10977
10978AvailableModuleFeatures(computeAvailableModuleFeatures(&STI)),
10979AvailableFunctionFeatures()
10980
10981#endif // GET_GICOMBINER_CONSTRUCTOR_INITS
10982
10983#ifdef GET_GICOMBINER_CONSTRUCTOR_INITS
10984
10985, State(0),
10986ExecInfo(TypeObjects, NumTypeObjects, FeatureBitsets, ComplexPredicateFns, CustomRenderers)
10987
10988#endif // GET_GICOMBINER_CONSTRUCTOR_INITS
10989
10990