#ifdef GET_GICOMBINER_DEPS
#include "llvm/ADT/SparseBitVector.h"
namespace llvm {
extern cl::OptionCategory GICombinerOptionCategory;
}
#endif
#ifdef GET_GICOMBINER_TYPES
struct RISCVPreLegalizerCombinerImplRuleConfig {
SparseBitVector<> DisabledRules;
bool isRuleEnabled(unsigned RuleID) const;
bool parseCommandLineOption();
bool setRuleEnabled(StringRef RuleIdentifier);
bool setRuleDisabled(StringRef RuleIdentifier);
};
static std::optional<uint64_t> getRuleIdxForIdentifier(StringRef RuleIdentifier) {
uint64_t I;
bool Parsed = !RuleIdentifier.getAsInteger(0, I);
if (Parsed)
return I;
#ifndef NDEBUG
switch (RuleIdentifier.size()) {
default: break;
case 9:
switch (RuleIdentifier[0]) {
default: break;
case 'c':
if (memcmp(RuleIdentifier.data()+1, "opy_prop", 8) != 0)
break;
return 13;
case 'm':
switch (RuleIdentifier[1]) {
default: break;
case 'a':
if (memcmp(RuleIdentifier.data()+2, "tch_ors", 7) != 0)
break;
return 197;
case 'u':
if (memcmp(RuleIdentifier.data()+2, "lo_by_", 6) != 0)
break;
switch (RuleIdentifier[8]) {
default: break;
case '0':
return 147;
case '2':
return 146;
}
break;
}
break;
case 'n':
if (memcmp(RuleIdentifier.data()+1, "neg_zext", 8) != 0)
break;
return 204;
}
break;
case 10:
switch (RuleIdentifier[0]) {
default: break;
case 'i':
if (memcmp(RuleIdentifier.data()+1, "2p_to_p2i", 9) != 0)
break;
return 93;
case 'm':
switch (RuleIdentifier[1]) {
default: break;
case 'a':
if (memcmp(RuleIdentifier.data()+2, "tch_ands", 8) != 0)
break;
return 196;
case 'u':
if (memcmp(RuleIdentifier.data()+2, "l_to_shl", 8) != 0)
break;
return 14;
}
break;
case 'p':
if (memcmp(RuleIdentifier.data()+1, "2i_to_i2p", 9) != 0)
break;
return 92;
case 's':
if (memcmp(RuleIdentifier.data()+1, "ext_trunc", 9) != 0)
break;
return 202;
case 'z':
if (memcmp(RuleIdentifier.data()+1, "ext_trunc", 9) != 0)
break;
return 203;
}
break;
case 11:
switch (RuleIdentifier[0]) {
default: break;
case 'a':
if (memcmp(RuleIdentifier.data()+1, "dd_sub_reg", 10) != 0)
break;
return 98;
case 'm':
if (memcmp(RuleIdentifier.data()+1, "atch_addos", 10) != 0)
break;
return 201;
case 's':
if (memcmp(RuleIdentifier.data()+1, "ub_add_reg", 10) != 0)
break;
return 190;
case 't':
if (memcmp(RuleIdentifier.data()+1, "runc_shift", 10) != 0)
break;
return 136;
case 'u':
if (memcmp(RuleIdentifier.data()+1, "nmerge_cst", 10) != 0)
break;
return 132;
}
break;
case 12:
switch (RuleIdentifier[0]) {
default: break;
case 'A':
if (memcmp(RuleIdentifier.data()+1, "PlusBMinusB", 11) != 0)
break;
return 2;
case 'B':
if (memcmp(RuleIdentifier.data()+1, "MinusAPlusA", 11) != 0)
break;
return 3;
case 'a':
if (memcmp(RuleIdentifier.data()+1, "dde_to_addo", 11) != 0)
break;
return 148;
case 'f':
if (memcmp(RuleIdentifier.data()+1, "sub_to_fneg", 11) != 0)
break;
return 193;
case 'm':
if (memcmp(RuleIdentifier.data()+1, "ulh_to_lshr", 11) != 0)
break;
return 178;
case 'n':
if (memcmp(RuleIdentifier.data()+1, "ot_cmp_fold", 11) != 0)
break;
return 129;
case 'r':
if (memcmp(RuleIdentifier.data()+1, "edundant_or", 11) != 0)
break;
return 123;
case 's':
switch (RuleIdentifier[1]) {
default: break;
case 'd':
if (memcmp(RuleIdentifier.data()+2, "iv_by_pow2", 10) != 0)
break;
return 176;
case 'e':
if (memcmp(RuleIdentifier.data()+2, "xt_of_sext", 10) != 0)
break;
return 63;
}
break;
case 'u':
if (memcmp(RuleIdentifier.data()+1, "div_by_pow2", 11) != 0)
break;
return 177;
case 'z':
if (memcmp(RuleIdentifier.data()+1, "ext_of_zext", 11) != 0)
break;
return 61;
}
break;
case 13:
switch (RuleIdentifier[0]) {
default: break;
case 'a':
if (memcmp(RuleIdentifier.data()+1, "dd_of_vscale", 12) != 0)
break;
return 49;
case 'c':
if (memcmp(RuleIdentifier.data()+1, "ommute_shift", 12) != 0)
break;
return 164;
case 'l':
if (memcmp(RuleIdentifier.data()+1, "oad_and_mask", 12) != 0)
break;
return 73;
case 'm':
switch (RuleIdentifier[1]) {
default: break;
case 'a':
if (memcmp(RuleIdentifier.data()+2, "tch_selects", 11) != 0)
break;
return 120;
case 'e':
if (memcmp(RuleIdentifier.data()+2, "rge_unmerge", 11) != 0)
break;
return 135;
case 'u':
if (memcmp(RuleIdentifier.data()+2, "l_of_vscale", 11) != 0)
break;
return 50;
}
break;
case 'r':
if (memcmp(RuleIdentifier.data()+1, "edundant_and", 12) != 0)
break;
return 121;
case 's':
switch (RuleIdentifier[1]) {
default: break;
case 'd':
if (memcmp(RuleIdentifier.data()+2, "iv_by_const", 11) != 0)
break;
return 175;
case 'h':
if (memcmp(RuleIdentifier.data()+2, "l_of_vscale", 11) != 0)
break;
return 51;
case 'u':
if (memcmp(RuleIdentifier.data()+2, "b_of_vscale", 11) != 0)
break;
return 52;
}
break;
case 'u':
switch (RuleIdentifier[1]) {
default: break;
case 'd':
if (memcmp(RuleIdentifier.data()+2, "iv_by_const", 11) != 0)
break;
return 174;
case 'n':
if (memcmp(RuleIdentifier.data()+2, "merge_", 6) != 0)
break;
switch (RuleIdentifier[8]) {
default: break;
case 'm':
if (memcmp(RuleIdentifier.data()+9, "erge", 4) != 0)
break;
return 131;
case 'u':
if (memcmp(RuleIdentifier.data()+9, "ndef", 4) != 0)
break;
return 85;
}
break;
}
break;
}
break;
case 14:
switch (RuleIdentifier[0]) {
default: break;
case 'A':
switch (RuleIdentifier[1]) {
default: break;
case 'M':
if (memcmp(RuleIdentifier.data()+2, "inusC1PlusC2", 12) != 0)
break;
return 12;
case 'P':
if (memcmp(RuleIdentifier.data()+2, "lusC1MinusC2", 12) != 0)
break;
return 8;
}
break;
case 'C':
if (memcmp(RuleIdentifier.data()+1, "2MinusAPlusC1", 13) != 0)
break;
return 9;
case 'a':
if (memcmp(RuleIdentifier.data()+1, "nyext_of_", 9) != 0)
break;
switch (RuleIdentifier[10]) {
default: break;
case 's':
if (memcmp(RuleIdentifier.data()+11, "ext", 3) != 0)
break;
return 67;
case 'z':
if (memcmp(RuleIdentifier.data()+11, "ext", 3) != 0)
break;
return 66;
}
break;
case 'b':
if (RuleIdentifier[1] != 'i')
break;
switch (RuleIdentifier[2]) {
default: break;
case 'n':
if (memcmp(RuleIdentifier.data()+3, "op_same_val", 11) != 0)
break;
return 89;
case 't':
if (memcmp(RuleIdentifier.data()+3, "reverse_shl", 11) != 0)
break;
return 162;
}
break;
case 'f':
switch (RuleIdentifier[1]) {
default: break;
case 'a':
if (memcmp(RuleIdentifier.data()+2, "bs_fneg_fold", 12) != 0)
break;
return 173;
case 'n':
if (memcmp(RuleIdentifier.data()+2, "eg_fneg_fold", 12) != 0)
break;
return 95;
}
break;
case 'm':
if (memcmp(RuleIdentifier.data()+1, "ul_by_neg_one", 13) != 0)
break;
return 16;
case 'r':
if (memcmp(RuleIdentifier.data()+1, "eassoc_ptradd", 13) != 0)
break;
return 110;
case 's':
switch (RuleIdentifier[1]) {
default: break;
case 'e':
switch (RuleIdentifier[2]) {
default: break;
case 'l':
if (memcmp(RuleIdentifier.data()+3, "ect_of_zext", 11) != 0)
break;
return 58;
case 'x':
if (memcmp(RuleIdentifier.data()+3, "t_of_anyext", 11) != 0)
break;
return 64;
}
break;
case 'h':
if (memcmp(RuleIdentifier.data()+2, "ifts_too_big", 12) != 0)
break;
return 109;
}
break;
case 'z':
if (memcmp(RuleIdentifier.data()+1, "ext_of_anyext", 13) != 0)
break;
return 62;
}
break;
case 15:
switch (RuleIdentifier[0]) {
default: break;
case 'A':
switch (RuleIdentifier[1]) {
default: break;
case 'M':
if (memcmp(RuleIdentifier.data()+2, "inusC1MinusC2", 13) != 0)
break;
return 10;
case 'P':
if (memcmp(RuleIdentifier.data()+2, "lusZeroMinusB", 13) != 0)
break;
return 1;
}
break;
case 'C':
if (memcmp(RuleIdentifier.data()+1, "1Minus2MinusC2", 14) != 0)
break;
return 11;
case 'Z':
if (memcmp(RuleIdentifier.data()+1, "eroMinusAPlusB", 14) != 0)
break;
return 0;
case 'b':
if (memcmp(RuleIdentifier.data()+1, "itreverse_lshr", 14) != 0)
break;
return 163;
case 'e':
if (memcmp(RuleIdentifier.data()+1, "xtending_loads", 14) != 0)
break;
return 72;
case 'i':
if (memcmp(RuleIdentifier.data()+1, "dempotent_prop", 14) != 0)
break;
return 17;
case 'l':
if (memcmp(RuleIdentifier.data()+1, "oad_or_combine", 14) != 0)
break;
return 155;
case 'o':
if (memcmp(RuleIdentifier.data()+1, "verlapping_and", 14) != 0)
break;
return 145;
case 's':
if (memcmp(RuleIdentifier.data()+1, "elect_same_val", 14) != 0)
break;
return 87;
case 'z':
if (memcmp(RuleIdentifier.data()+1, "ext_trunc_fold", 14) != 0)
break;
return 125;
}
break;
case 16:
switch (RuleIdentifier[0]) {
default: break;
case 'a':
if (memcmp(RuleIdentifier.data()+1, "nyext_of_anyext", 15) != 0)
break;
return 65;
case 's':
if (memcmp(RuleIdentifier.data()+1, "elect_", 6) != 0)
break;
switch (RuleIdentifier[7]) {
default: break;
case 'o':
if (memcmp(RuleIdentifier.data()+8, "f_anyext", 8) != 0)
break;
return 59;
case 't':
if (memcmp(RuleIdentifier.data()+8, "o_minmax", 8) != 0)
break;
return 191;
case 'u':
if (memcmp(RuleIdentifier.data()+8, "ndef_cmp", 8) != 0)
break;
return 117;
}
break;
case 't':
if (memcmp(RuleIdentifier.data()+1, "runcate_of_", 11) != 0)
break;
switch (RuleIdentifier[12]) {
default: break;
case 's':
if (memcmp(RuleIdentifier.data()+13, "ext", 3) != 0)
break;
return 56;
case 'z':
if (memcmp(RuleIdentifier.data()+13, "ext", 3) != 0)
break;
return 55;
}
break;
case 'u':
if (memcmp(RuleIdentifier.data()+1, "ndef_to_fp_zero", 15) != 0)
break;
return 75;
}
break;
case 17:
switch (RuleIdentifier[0]) {
default: break;
case 'A':
if (memcmp(RuleIdentifier.data()+1, "PlusBMinus", 10) != 0)
break;
switch (RuleIdentifier[11]) {
default: break;
case 'A':
if (memcmp(RuleIdentifier.data()+12, "plusC", 5) != 0)
break;
return 6;
case 'C':
if (memcmp(RuleIdentifier.data()+12, "PlusA", 5) != 0)
break;
return 7;
}
break;
case 'a':
switch (RuleIdentifier[1]) {
default: break;
case 'd':
if (memcmp(RuleIdentifier.data()+2, "d_p2i_to_ptradd", 15) != 0)
break;
return 15;
case 'n':
if (memcmp(RuleIdentifier.data()+2, "yext_trunc_fold", 15) != 0)
break;
return 94;
}
break;
case 'c':
if (memcmp(RuleIdentifier.data()+1, "onstant_fold_fma", 16) != 0)
break;
return 171;
case 'd':
if (memcmp(RuleIdentifier.data()+1, "iv_rem_to_divrem", 16) != 0)
break;
return 156;
case 'e':
if (memcmp(RuleIdentifier.data()+1, "rase_undef_store", 16) != 0)
break;
return 84;
case 'p':
if (memcmp(RuleIdentifier.data()+1, "tr_add_with_zero", 16) != 0)
break;
return 152;
case 's':
switch (RuleIdentifier[1]) {
default: break;
case 'e':
if (memcmp(RuleIdentifier.data()+2, "lect_to_iminmax", 15) != 0)
break;
return 119;
case 'h':
if (memcmp(RuleIdentifier.data()+2, "ift_immed_chain", 15) != 0)
break;
return 153;
}
break;
case 'u':
switch (RuleIdentifier[1]) {
default: break;
case 'n':
if (memcmp(RuleIdentifier.data()+2, "def_to_int_zero", 15) != 0)
break;
return 76;
case 'r':
if (memcmp(RuleIdentifier.data()+2, "em_pow2_to_mask", 15) != 0)
break;
return 124;
}
break;
}
break;
case 18:
switch (RuleIdentifier[0]) {
default: break;
case 'A':
if (memcmp(RuleIdentifier.data()+1, "MinusBPlus", 10) != 0)
break;
switch (RuleIdentifier[11]) {
default: break;
case 'B':
if (memcmp(RuleIdentifier.data()+12, "MinusC", 6) != 0)
break;
return 5;
case 'C':
if (memcmp(RuleIdentifier.data()+12, "MinusA", 6) != 0)
break;
return 4;
}
break;
case 'b':
if (memcmp(RuleIdentifier.data()+1, "inop_left_to_zero", 17) != 0)
break;
return 90;
case 'c':
if (RuleIdentifier[1] != 'o')
break;
switch (RuleIdentifier[2]) {
default: break;
case 'm':
if (memcmp(RuleIdentifier.data()+3, "bine_minmax_nan", 15) != 0)
break;
return 149;
case 'n':
if (memcmp(RuleIdentifier.data()+3, "stant_fold_f", 12) != 0)
break;
switch (RuleIdentifier[15]) {
default: break;
case 'a':
if (memcmp(RuleIdentifier.data()+16, "bs", 2) != 0)
break;
return 138;
case 'n':
if (memcmp(RuleIdentifier.data()+16, "eg", 2) != 0)
break;
return 137;
}
break;
}
break;
case 'e':
if (memcmp(RuleIdentifier.data()+1, "xpand_const_fpowi", 17) != 0)
break;
return 150;
case 'f':
if (memcmp(RuleIdentifier.data()+1, "ptrunc_fpext_fold", 17) != 0)
break;
return 103;
case 's':
if (RuleIdentifier[1] != 'e')
break;
switch (RuleIdentifier[2]) {
default: break;
case 'l':
if (memcmp(RuleIdentifier.data()+3, "ect_of_truncate", 15) != 0)
break;
return 60;
case 'x':
if (memcmp(RuleIdentifier.data()+3, "t_inreg_of_load", 15) != 0)
break;
return 114;
}
break;
case 't':
if (memcmp(RuleIdentifier.data()+1, "runcate_of_anyext", 17) != 0)
break;
return 57;
}
break;
case 19:
switch (RuleIdentifier[0]) {
default: break;
case 'b':
if (memcmp(RuleIdentifier.data()+1, "inop_right_to_zero", 18) != 0)
break;
return 91;
case 'c':
if (memcmp(RuleIdentifier.data()+1, "onst", 4) != 0)
break;
switch (RuleIdentifier[5]) {
default: break;
case '_':
if (memcmp(RuleIdentifier.data()+6, "ptradd_to_i2p", 13) != 0)
break;
return 144;
case 'a':
if (memcmp(RuleIdentifier.data()+6, "nt_fold_", 8) != 0)
break;
switch (RuleIdentifier[14]) {
default: break;
case 'b':
if (memcmp(RuleIdentifier.data()+15, "inop", 4) != 0)
break;
return 169;
case 'f':
switch (RuleIdentifier[15]) {
default: break;
case 'l':
if (memcmp(RuleIdentifier.data()+16, "og2", 3) != 0)
break;
return 140;
case 's':
if (memcmp(RuleIdentifier.data()+16, "qrt", 3) != 0)
break;
return 139;
}
break;
}
break;
}
break;
case 'e':
if (memcmp(RuleIdentifier.data()+1, "xtend_through_phis", 18) != 0)
break;
return 106;
case 'p':
if (memcmp(RuleIdentifier.data()+1, "tr_add_immed_chain", 18) != 0)
break;
return 112;
case 'r':
switch (RuleIdentifier[1]) {
default: break;
case 'e':
if (memcmp(RuleIdentifier.data()+2, "assoc_comm_binops", 17) != 0)
break;
return 111;
case 'i':
if (memcmp(RuleIdentifier.data()+2, "ght_identity_zero", 17) != 0)
break;
return 88;
}
break;
case 's':
switch (RuleIdentifier[1]) {
default: break;
case 'e':
if (memcmp(RuleIdentifier.data()+2, "lect_constant_cmp", 17) != 0)
break;
return 118;
case 'i':
if (memcmp(RuleIdentifier.data()+2, "mplify_add_to_sub", 17) != 0)
break;
return 107;
}
break;
case 'u':
if (memcmp(RuleIdentifier.data()+1, "nary_undef_to_zero", 18) != 0)
break;
return 80;
}
break;
case 20:
switch (RuleIdentifier[0]) {
default: break;
case 'a':
if (memcmp(RuleIdentifier.data()+1, "nd_or_disjoint_mask", 19) != 0)
break;
return 180;
case 'b':
if (memcmp(RuleIdentifier.data()+1, "itcast_bitcast_fold", 19) != 0)
break;
return 102;
case 'r':
if (memcmp(RuleIdentifier.data()+1, "edu", 3) != 0)
break;
switch (RuleIdentifier[4]) {
default: break;
case 'c':
if (memcmp(RuleIdentifier.data()+5, "e_shl_of_extend", 15) != 0)
break;
return 115;
case 'n':
if (memcmp(RuleIdentifier.data()+5, "dant_sext_inreg", 15) != 0)
break;
return 122;
}
break;
case 'u':
if (memcmp(RuleIdentifier.data()+1, "nmerge_zext_to_zext", 19) != 0)
break;
return 134;
}
break;
case 21:
switch (RuleIdentifier[0]) {
default: break;
case 'c':
if (RuleIdentifier[1] != 'o')
break;
switch (RuleIdentifier[2]) {
default: break;
case 'm':
if (memcmp(RuleIdentifier.data()+3, "bine_concat_vector", 18) != 0)
break;
return 198;
case 'n':
if (memcmp(RuleIdentifier.data()+3, "stant_fold_", 11) != 0)
break;
switch (RuleIdentifier[14]) {
default: break;
case 'c':
if (memcmp(RuleIdentifier.data()+15, "ast_op", 6) != 0)
break;
return 172;
case 'f':
if (memcmp(RuleIdentifier.data()+15, "ptrunc", 6) != 0)
break;
return 141;
}
break;
}
break;
case 'i':
if (memcmp(RuleIdentifier.data()+1, "nsert_vector_elt_oob", 20) != 0)
break;
return 23;
case 'r':
if (memcmp(RuleIdentifier.data()+1, "ight_identity_one_fp", 20) != 0)
break;
return 97;
case 'u':
if (RuleIdentifier[1] != 'n')
break;
switch (RuleIdentifier[2]) {
default: break;
case 'd':
if (memcmp(RuleIdentifier.data()+3, "ef_to_negative_one", 18) != 0)
break;
return 77;
case 'm':
if (memcmp(RuleIdentifier.data()+3, "erge_dead_to_trunc", 18) != 0)
break;
return 133;
}
break;
}
break;
case 22:
switch (RuleIdentifier[0]) {
default: break;
case 'c':
if (RuleIdentifier[1] != 'o')
break;
switch (RuleIdentifier[2]) {
default: break;
case 'm':
if (memcmp(RuleIdentifier.data()+3, "bine_shuffle_concat", 19) != 0)
break;
return 205;
case 'n':
if (memcmp(RuleIdentifier.data()+3, "stant_fold_fp_binop", 19) != 0)
break;
return 170;
}
break;
case 'f':
switch (RuleIdentifier[1]) {
default: break;
case 'o':
if (memcmp(RuleIdentifier.data()+2, "ld_binop_into_select", 20) != 0)
break;
return 189;
case 'u':
if (memcmp(RuleIdentifier.data()+2, "nnel_shift_", 11) != 0)
break;
switch (RuleIdentifier[13]) {
default: break;
case 'l':
if (memcmp(RuleIdentifier.data()+14, "eft_zero", 8) != 0)
break;
return 160;
case 'o':
if (memcmp(RuleIdentifier.data()+14, "vershift", 8) != 0)
break;
return 161;
case 't':
if (memcmp(RuleIdentifier.data()+14, "o_rotate", 8) != 0)
break;
return 158;
}
break;
}
break;
case 'i':
if (memcmp(RuleIdentifier.data()+1, "cmp_to_lhs_known_bits", 21) != 0)
break;
return 127;
case 'p':
if (memcmp(RuleIdentifier.data()+1, "ropagate_undef_any_op", 21) != 0)
break;
return 81;
case 'r':
switch (RuleIdentifier[1]) {
default: break;
case 'e':
if (memcmp(RuleIdentifier.data()+2, "dundant_neg_operands", 20) != 0)
break;
return 179;
case 'i':
if (memcmp(RuleIdentifier.data()+2, "ght_identity_one_int", 20) != 0)
break;
return 96;
}
break;
case 's':
if (memcmp(RuleIdentifier.data()+1, "hl_ashr_to_sext_inreg", 21) != 0)
break;
return 113;
case 't':
if (memcmp(RuleIdentifier.data()+1, "runc_buildvector_fold", 21) != 0)
break;
return 100;
}
break;
case 23:
switch (RuleIdentifier[0]) {
default: break;
case 'b':
if (memcmp(RuleIdentifier.data()+1, "uildvector_of_truncate", 22) != 0)
break;
return 68;
case 'f':
if (memcmp(RuleIdentifier.data()+1, "unnel_shift_right_zero", 22) != 0)
break;
return 159;
case 'i':
if (memcmp(RuleIdentifier.data()+1, "tof_const_zero_fold_", 20) != 0)
break;
switch (RuleIdentifier[21]) {
default: break;
case 's':
if (RuleIdentifier[22] != 'i')
break;
return 142;
case 'u':
if (RuleIdentifier[22] != 'i')
break;
return 143;
}
break;
case 'p':
if (memcmp(RuleIdentifier.data()+1, "ropagate_undef_all_ops", 22) != 0)
break;
return 82;
}
break;
case 24:
switch (RuleIdentifier[0]) {
default: break;
case 'b':
if (memcmp(RuleIdentifier.data()+1, "inop_left_undef_to_zero", 23) != 0)
break;
return 78;
case 'm':
if (memcmp(RuleIdentifier.data()+1, "atch_extract_of_element", 23) != 0)
break;
return 22;
case 'n':
if (memcmp(RuleIdentifier.data()+1, "arrow_binop_feeding_and", 23) != 0)
break;
return 116;
case 's':
if (memcmp(RuleIdentifier.data()+1, "ext_inreg_to_zext_inreg", 23) != 0)
break;
return 128;
case 'x':
if (memcmp(RuleIdentifier.data()+1, "or_of_and_with_same_reg", 23) != 0)
break;
return 151;
}
break;
case 25:
switch (RuleIdentifier[0]) {
default: break;
case 'b':
switch (RuleIdentifier[1]) {
default: break;
case 'i':
if (memcmp(RuleIdentifier.data()+2, "tfield_extract_from_", 20) != 0)
break;
switch (RuleIdentifier[22]) {
default: break;
case 'a':
if (memcmp(RuleIdentifier.data()+23, "nd", 2) != 0)
break;
return 166;
case 's':
if (memcmp(RuleIdentifier.data()+23, "hr", 2) != 0)
break;
return 167;
}
break;
case 'u':
if (memcmp(RuleIdentifier.data()+2, "ildvector_identity_fold", 23) != 0)
break;
return 99;
}
break;
case 'e':
if (memcmp(RuleIdentifier.data()+1, "xtract_vec_elt_build_vec", 24) != 0)
break;
return 70;
case 'r':
if (memcmp(RuleIdentifier.data()+1, "ight_identity_neg_one_fp", 24) != 0)
break;
return 105;
}
break;
case 26:
switch (RuleIdentifier[0]) {
default: break;
case 'b':
if (memcmp(RuleIdentifier.data()+1, "inop_right_undef_to_undef", 25) != 0)
break;
return 79;
case 'c':
if (memcmp(RuleIdentifier.data()+1, "ommute_fp_constant_to_rhs", 25) != 0)
break;
return 195;
case 'f':
if (memcmp(RuleIdentifier.data()+1, "unnel_shift_from_or_shift", 25) != 0)
break;
return 157;
case 'r':
if (memcmp(RuleIdentifier.data()+1, "ight_identity_neg_zero_fp", 25) != 0)
break;
return 104;
}
break;
case 27:
switch (RuleIdentifier[0]) {
default: break;
case 'c':
if (memcmp(RuleIdentifier.data()+1, "ommute_int_constant_to_rhs", 26) != 0)
break;
return 194;
case 'd':
if (memcmp(RuleIdentifier.data()+1, "ouble_icmp_zero_or_combine", 26) != 0)
break;
return 200;
case 'r':
if (memcmp(RuleIdentifier.data()+1, "edundant_binop_in_equality", 26) != 0)
break;
return 192;
case 't':
if (memcmp(RuleIdentifier.data()+1, "runc_lshr_buildvector_fold", 26) != 0)
break;
return 101;
}
break;
case 28:
switch (RuleIdentifier[0]) {
default: break;
case 'd':
if (memcmp(RuleIdentifier.data()+1, "ouble_icmp_zero_and_combine", 27) != 0)
break;
return 199;
case 'o':
if (memcmp(RuleIdentifier.data()+1, "pt_brcond_by_inverting_cond", 27) != 0)
break;
return 130;
case 'p':
if (memcmp(RuleIdentifier.data()+1, "ropagate_undef_shuffle_mask", 27) != 0)
break;
return 83;
case 's':
if (memcmp(RuleIdentifier.data()+1, "hift_of_shifted_logic_chain", 27) != 0)
break;
return 154;
}
break;
case 29:
switch (RuleIdentifier[0]) {
default: break;
case 'b':
if (memcmp(RuleIdentifier.data()+1, "itfield_extract_from_shr_and", 28) != 0)
break;
return 168;
case 'c':
if (memcmp(RuleIdentifier.data()+1, "ombine_extracted_vector_load", 28) != 0)
break;
return 74;
case 'i':
if (memcmp(RuleIdentifier.data()+1, "cmp_to_true_false_known_bits", 28) != 0)
break;
return 126;
}
break;
case 30:
if (memcmp(RuleIdentifier.data()+0, "freeze_of_non_undef_non_poison", 30) != 0)
break;
return 53;
case 31:
if (memcmp(RuleIdentifier.data()+0, "insert_vector_element_", 22) != 0)
break;
switch (RuleIdentifier[22]) {
default: break;
case 'e':
if (memcmp(RuleIdentifier.data()+23, "lt_undef", 8) != 0)
break;
return 21;
case 'i':
if (memcmp(RuleIdentifier.data()+23, "dx_undef", 8) != 0)
break;
return 20;
}
break;
case 32:
switch (RuleIdentifier[0]) {
default: break;
case 'b':
if (memcmp(RuleIdentifier.data()+1, "itfield_extract_from_sext_inreg", 31) != 0)
break;
return 165;
case 'c':
if (memcmp(RuleIdentifier.data()+1, "ombine_f", 8) != 0)
break;
switch (RuleIdentifier[9]) {
default: break;
case 'a':
if (memcmp(RuleIdentifier.data()+10, "dd_fmul_to_fmad_or_fma", 22) != 0)
break;
return 181;
case 's':
if (memcmp(RuleIdentifier.data()+10, "ub_fmul_to_fmad_or_fma", 22) != 0)
break;
return 185;
}
break;
case 'e':
if (memcmp(RuleIdentifier.data()+1, "xtract_vector_element_not_const", 31) != 0)
break;
return 24;
}
break;
case 34:
if (memcmp(RuleIdentifier.data()+0, "extract_all_elts_from_build_vector", 34) != 0)
break;
return 71;
case 36:
switch (RuleIdentifier[0]) {
default: break;
case 'c':
if (memcmp(RuleIdentifier.data()+1, "ombine_", 7) != 0)
break;
switch (RuleIdentifier[8]) {
default: break;
case 'f':
if (memcmp(RuleIdentifier.data()+9, "add_fma_fmul_to_fmad_or_fma", 27) != 0)
break;
return 183;
case 'i':
if (memcmp(RuleIdentifier.data()+9, "nsert_vec_elts_build_vector", 27) != 0)
break;
return 69;
}
break;
case 'e':
if (memcmp(RuleIdentifier.data()+1, "xtract_vector_element_build_vector", 34) != 0)
break;
switch (RuleIdentifier[35]) {
default: break;
case '2':
return 26;
case '3':
return 27;
case '4':
return 28;
case '5':
return 29;
case '7':
return 30;
case '8':
return 31;
case '9':
return 32;
}
break;
case 'i':
if (memcmp(RuleIdentifier.data()+1, "nsert_extract_vec_elt_out_of_bounds", 35) != 0)
break;
return 86;
case 'm':
if (memcmp(RuleIdentifier.data()+1, "atch_extract_of_element_undef_index", 35) != 0)
break;
return 19;
}
break;
case 37:
switch (RuleIdentifier[0]) {
default: break;
case 'c':
if (memcmp(RuleIdentifier.data()+1, "ombine_fsub_fneg_fmul_to_fmad_or_fma", 36) != 0)
break;
return 186;
case 'e':
if (memcmp(RuleIdentifier.data()+1, "xtract_vector_element_", 22) != 0)
break;
switch (RuleIdentifier[23]) {
default: break;
case 'b':
if (memcmp(RuleIdentifier.data()+24, "uild_vector1", 12) != 0)
break;
switch (RuleIdentifier[36]) {
default: break;
case '0':
return 33;
case '1':
return 34;
case '2':
return 35;
case '3':
return 36;
case '4':
return 37;
case '5':
return 38;
case '6':
return 39;
}
break;
case 's':
if (memcmp(RuleIdentifier.data()+24, "huffle_vector", 13) != 0)
break;
return 47;
}
break;
case 'h':
if (memcmp(RuleIdentifier.data()+1, "oist_logic_op_with_same_opcode_hands", 36) != 0)
break;
return 108;
case 'm':
if (memcmp(RuleIdentifier.data()+1, "atch_extract_of_element_undef_vector", 36) != 0)
break;
return 18;
}
break;
case 38:
if (memcmp(RuleIdentifier.data()+0, "combine_f", 9) != 0)
break;
switch (RuleIdentifier[9]) {
default: break;
case 'a':
if (memcmp(RuleIdentifier.data()+10, "dd_fpext_fmul_to_fmad_or_fma", 28) != 0)
break;
return 182;
case 's':
if (memcmp(RuleIdentifier.data()+10, "ub_fpext_fmul_to_fmad_or_fma", 28) != 0)
break;
return 187;
}
break;
case 40:
if (memcmp(RuleIdentifier.data()+0, "extract_vector_element_different_indices", 40) != 0)
break;
return 25;
case 42:
switch (RuleIdentifier[0]) {
default: break;
case 'c':
if (memcmp(RuleIdentifier.data()+1, "ombine_fadd_fpext_fma_fmul_to_fmad_or_fma", 41) != 0)
break;
return 184;
case 'e':
if (memcmp(RuleIdentifier.data()+1, "xtract_vector_element_build_vector_trunc", 40) != 0)
break;
switch (RuleIdentifier[41]) {
default: break;
case '2':
return 40;
case '3':
return 41;
case '4':
return 42;
case '5':
return 43;
case '6':
return 44;
case '7':
return 45;
case '8':
return 46;
}
break;
}
break;
case 43:
if (memcmp(RuleIdentifier.data()+0, "combine_fsub_fpext_fneg_fmul_to_fmad_or_fma", 43) != 0)
break;
return 188;
case 44:
if (memcmp(RuleIdentifier.data()+0, "insert_vector_element_extract_vector_element", 44) != 0)
break;
return 48;
case 46:
if (memcmp(RuleIdentifier.data()+0, "push_freeze_to_prevent_poison_from_propagating", 46) != 0)
break;
return 54;
}
#endif
return std::nullopt;
}
static std::optional<std::pair<uint64_t, uint64_t>> getRuleRangeForIdentifier(StringRef RuleIdentifier) {
std::pair<StringRef, StringRef> RangePair = RuleIdentifier.split('-');
if (!RangePair.second.empty()) {
const auto First = getRuleIdxForIdentifier(RangePair.first);
const auto Last = getRuleIdxForIdentifier(RangePair.second);
if (!First || !Last)
return std::nullopt;
if (First >= Last)
report_fatal_error("Beginning of range should be before end of range");
return {{*First, *Last + 1}};
}
if (RangePair.first == "*") {
return {{0, 206}};
}
const auto I = getRuleIdxForIdentifier(RangePair.first);
if (!I)
return std::nullopt;
return {{*I, *I + 1}};
}
bool RISCVPreLegalizerCombinerImplRuleConfig::setRuleEnabled(StringRef RuleIdentifier) {
auto MaybeRange = getRuleRangeForIdentifier(RuleIdentifier);
if (!MaybeRange)
return false;
for (auto I = MaybeRange->first; I < MaybeRange->second; ++I)
DisabledRules.reset(I);
return true;
}
bool RISCVPreLegalizerCombinerImplRuleConfig::setRuleDisabled(StringRef RuleIdentifier) {
auto MaybeRange = getRuleRangeForIdentifier(RuleIdentifier);
if (!MaybeRange)
return false;
for (auto I = MaybeRange->first; I < MaybeRange->second; ++I)
DisabledRules.set(I);
return true;
}
static std::vector<std::string> RISCVPreLegalizerCombinerOption;
static cl::list<std::string> RISCVPreLegalizerCombinerDisableOption(
"riscvprelegalizercombiner-disable-rule",
cl::desc("Disable one or more combiner rules temporarily in the RISCVPreLegalizerCombiner pass"),
cl::CommaSeparated,
cl::Hidden,
cl::cat(GICombinerOptionCategory),
cl::callback([](const std::string &Str) {
RISCVPreLegalizerCombinerOption.push_back(Str);
}));
static cl::list<std::string> RISCVPreLegalizerCombinerOnlyEnableOption(
"riscvprelegalizercombiner-only-enable-rule",
cl::desc("Disable all rules in the RISCVPreLegalizerCombiner pass then re-enable the specified ones"),
cl::Hidden,
cl::cat(GICombinerOptionCategory),
cl::callback([](const std::string &CommaSeparatedArg) {
StringRef Str = CommaSeparatedArg;
RISCVPreLegalizerCombinerOption.push_back("*");
do {
auto X = Str.split(",");
RISCVPreLegalizerCombinerOption.push_back(("!" + X.first).str());
Str = X.second;
} while (!Str.empty());
}));
bool RISCVPreLegalizerCombinerImplRuleConfig::isRuleEnabled(unsigned RuleID) const {
return !DisabledRules.test(RuleID);
}
bool RISCVPreLegalizerCombinerImplRuleConfig::parseCommandLineOption() {
for (StringRef Identifier : RISCVPreLegalizerCombinerOption) {
bool Enabled = Identifier.consume_front("!");
if (Enabled && !setRuleEnabled(Identifier))
return false;
if (!Enabled && !setRuleDisabled(Identifier))
return false;
}
return true;
}
#endif
#ifdef GET_GICOMBINER_TYPES
const unsigned MAX_SUBTARGET_PREDICATES = 0;
using PredicateBitset = llvm::Bitset<MAX_SUBTARGET_PREDICATES>;
#endif
#ifdef GET_GICOMBINER_CLASS_MEMBERS
PredicateBitset AvailableModuleFeatures;
mutable PredicateBitset AvailableFunctionFeatures;
PredicateBitset getAvailableFeatures() const {
return AvailableModuleFeatures | AvailableFunctionFeatures;
}
PredicateBitset
computeAvailableModuleFeatures(const RISCVSubtarget *Subtarget) const;
PredicateBitset
computeAvailableFunctionFeatures(const RISCVSubtarget *Subtarget,
const MachineFunction *MF) const;
void setupGeneratedPerFunctionState(MachineFunction &MF) override;
#endif
#ifdef GET_GICOMBINER_CLASS_MEMBERS
mutable MatcherState State;
typedef ComplexRendererFns(RISCVPreLegalizerCombinerImpl::*ComplexMatcherMemFn)(MachineOperand &) const;
typedef void(RISCVPreLegalizerCombinerImpl::*CustomRendererFn)(MachineInstrBuilder &, const MachineInstr &, int) const;
const ExecInfoTy<PredicateBitset, ComplexMatcherMemFn, CustomRendererFn> ExecInfo;
static RISCVPreLegalizerCombinerImpl::ComplexMatcherMemFn ComplexPredicateFns[];
static RISCVPreLegalizerCombinerImpl::CustomRendererFn CustomRenderers[];
bool testImmPredicate_I64(unsigned PredicateID, int64_t Imm) const override;
bool testImmPredicate_APInt(unsigned PredicateID, const APInt &Imm) const override;
bool testImmPredicate_APFloat(unsigned PredicateID, const APFloat &Imm) const override;
const uint8_t *getMatchTable() const override;
bool testMIPredicate_MI(unsigned PredicateID, const MachineInstr &MI, const MatcherState &State) const override;
bool testSimplePredicate(unsigned PredicateID) const override;
bool runCustomAction(unsigned FnID, const MatcherState &State, NewMIVector &OutMIs) const override;
#endif
#ifdef GET_GICOMBINER_IMPL
enum {
GILLT_s1,
};
const static size_t NumTypeObjects = 1;
const static LLT TypeObjects[] = {
LLT::scalar(1),
};
enum SubtargetFeatureBits : uint8_t {
};
PredicateBitset RISCVPreLegalizerCombinerImpl::
computeAvailableModuleFeatures(const RISCVSubtarget *Subtarget) const {
PredicateBitset Features{};
return Features;
}
void RISCVPreLegalizerCombinerImpl::setupGeneratedPerFunctionState(MachineFunction &MF) {
AvailableFunctionFeatures = computeAvailableFunctionFeatures((const RISCVSubtarget *)&MF.getSubtarget(), &MF);
}
PredicateBitset RISCVPreLegalizerCombinerImpl::
computeAvailableFunctionFeatures(const RISCVSubtarget *Subtarget, const MachineFunction *MF) const {
PredicateBitset Features{};
return Features;
}
enum {
GIFBS_Invalid,
};
constexpr static PredicateBitset FeatureBitsets[] {
{},
};
enum {
GICP_Invalid,
};
RISCVPreLegalizerCombinerImpl::ComplexMatcherMemFn
RISCVPreLegalizerCombinerImpl::ComplexPredicateFns[] = {
nullptr,
};
enum {
GICXXPred_MI_Predicate_GICombiner0 = GICXXPred_Invalid + 1,
GICXXPred_MI_Predicate_GICombiner1,
GICXXPred_MI_Predicate_GICombiner2,
GICXXPred_MI_Predicate_GICombiner3,
GICXXPred_MI_Predicate_GICombiner4,
GICXXPred_MI_Predicate_GICombiner5,
GICXXPred_MI_Predicate_GICombiner6,
GICXXPred_MI_Predicate_GICombiner7,
GICXXPred_MI_Predicate_GICombiner8,
};
bool RISCVPreLegalizerCombinerImpl::testMIPredicate_MI(unsigned PredicateID, const MachineInstr & MI, const MatcherState &State) const {
switch (PredicateID) {
case GICXXPred_MI_Predicate_GICombiner0: {
return isGuaranteedNotToBePoison(State.MIs[0]->getOperand(1).getReg(), MRI);
}
case GICXXPred_MI_Predicate_GICombiner1: {
return isGuaranteedNotToBeUndefOrPoison(State.MIs[0]->getOperand(1).getReg(), MRI);
}
case GICXXPred_MI_Predicate_GICombiner2: {
return Helper.matchConstantFPOp(State.MIs[0]->getOperand(2), 1.0);
}
case GICXXPred_MI_Predicate_GICombiner3: {
return Helper.matchConstantFPOp(State.MIs[0]->getOperand(2), -0.0);
}
case GICXXPred_MI_Predicate_GICombiner4: {
return Helper.matchConstantFPOp(State.MIs[0]->getOperand(2), -1.0);
}
case GICXXPred_MI_Predicate_GICombiner5: {
return Helper.isLegalOrBeforeLegalizer({TargetOpcode::G_LSHR,
{MRI.getType(State.MIs[2]->getOperand(1).getReg()),
MRI.getType(State.MIs[1]->getOperand(2).getReg())}});
}
case GICXXPred_MI_Predicate_GICombiner6: {
return Helper.isLegalOrBeforeLegalizer({TargetOpcode::G_SHL,
{MRI.getType(State.MIs[2]->getOperand(1).getReg()),
MRI.getType(State.MIs[1]->getOperand(2).getReg())}});
}
case GICXXPred_MI_Predicate_GICombiner7: {
return State.MIs[1]->getOperand(1).getPredicate() == CmpInst::ICMP_EQ &&
!MRI.getType(State.MIs[1]->getOperand(2).getReg()).getScalarType().isPointer() &&
(MRI.getType(State.MIs[1]->getOperand(2).getReg()) ==
MRI.getType(State.MIs[2]->getOperand(2).getReg()));
}
case GICXXPred_MI_Predicate_GICombiner8: {
return State.MIs[1]->getOperand(1).getPredicate() == CmpInst::ICMP_NE &&
!MRI.getType(State.MIs[1]->getOperand(2).getReg()).getScalarType().isPointer() &&
(MRI.getType(State.MIs[1]->getOperand(2).getReg()) ==
MRI.getType(State.MIs[2]->getOperand(2).getReg()));
}
}
llvm_unreachable("Unknown predicate");
return false;
}
bool RISCVPreLegalizerCombinerImpl::testImmPredicate_I64(unsigned PredicateID, int64_t Imm) const {
llvm_unreachable("Unknown predicate");
return false;
}
bool RISCVPreLegalizerCombinerImpl::testImmPredicate_APFloat(unsigned PredicateID, const APFloat & Imm) const {
llvm_unreachable("Unknown predicate");
return false;
}
bool RISCVPreLegalizerCombinerImpl::testImmPredicate_APInt(unsigned PredicateID, const APInt & Imm) const {
llvm_unreachable("Unknown predicate");
return false;
}
enum {
GICXXPred_Simple_IsRule0Enabled = GICXXPred_Invalid + 1,
GICXXPred_Simple_IsRule1Enabled,
GICXXPred_Simple_IsRule2Enabled,
GICXXPred_Simple_IsRule3Enabled,
GICXXPred_Simple_IsRule4Enabled,
GICXXPred_Simple_IsRule5Enabled,
GICXXPred_Simple_IsRule6Enabled,
GICXXPred_Simple_IsRule7Enabled,
GICXXPred_Simple_IsRule8Enabled,
GICXXPred_Simple_IsRule9Enabled,
GICXXPred_Simple_IsRule10Enabled,
GICXXPred_Simple_IsRule11Enabled,
GICXXPred_Simple_IsRule12Enabled,
GICXXPred_Simple_IsRule13Enabled,
GICXXPred_Simple_IsRule14Enabled,
GICXXPred_Simple_IsRule15Enabled,
GICXXPred_Simple_IsRule16Enabled,
GICXXPred_Simple_IsRule17Enabled,
GICXXPred_Simple_IsRule18Enabled,
GICXXPred_Simple_IsRule19Enabled,
GICXXPred_Simple_IsRule20Enabled,
GICXXPred_Simple_IsRule21Enabled,
GICXXPred_Simple_IsRule22Enabled,
GICXXPred_Simple_IsRule23Enabled,
GICXXPred_Simple_IsRule24Enabled,
GICXXPred_Simple_IsRule25Enabled,
GICXXPred_Simple_IsRule26Enabled,
GICXXPred_Simple_IsRule27Enabled,
GICXXPred_Simple_IsRule28Enabled,
GICXXPred_Simple_IsRule29Enabled,
GICXXPred_Simple_IsRule30Enabled,
GICXXPred_Simple_IsRule31Enabled,
GICXXPred_Simple_IsRule32Enabled,
GICXXPred_Simple_IsRule33Enabled,
GICXXPred_Simple_IsRule34Enabled,
GICXXPred_Simple_IsRule35Enabled,
GICXXPred_Simple_IsRule36Enabled,
GICXXPred_Simple_IsRule37Enabled,
GICXXPred_Simple_IsRule38Enabled,
GICXXPred_Simple_IsRule39Enabled,
GICXXPred_Simple_IsRule40Enabled,
GICXXPred_Simple_IsRule41Enabled,
GICXXPred_Simple_IsRule42Enabled,
GICXXPred_Simple_IsRule43Enabled,
GICXXPred_Simple_IsRule44Enabled,
GICXXPred_Simple_IsRule45Enabled,
GICXXPred_Simple_IsRule46Enabled,
GICXXPred_Simple_IsRule47Enabled,
GICXXPred_Simple_IsRule48Enabled,
GICXXPred_Simple_IsRule49Enabled,
GICXXPred_Simple_IsRule50Enabled,
GICXXPred_Simple_IsRule51Enabled,
GICXXPred_Simple_IsRule52Enabled,
GICXXPred_Simple_IsRule53Enabled,
GICXXPred_Simple_IsRule54Enabled,
GICXXPred_Simple_IsRule55Enabled,
GICXXPred_Simple_IsRule56Enabled,
GICXXPred_Simple_IsRule57Enabled,
GICXXPred_Simple_IsRule58Enabled,
GICXXPred_Simple_IsRule59Enabled,
GICXXPred_Simple_IsRule60Enabled,
GICXXPred_Simple_IsRule61Enabled,
GICXXPred_Simple_IsRule62Enabled,
GICXXPred_Simple_IsRule63Enabled,
GICXXPred_Simple_IsRule64Enabled,
GICXXPred_Simple_IsRule65Enabled,
GICXXPred_Simple_IsRule66Enabled,
GICXXPred_Simple_IsRule67Enabled,
GICXXPred_Simple_IsRule68Enabled,
GICXXPred_Simple_IsRule69Enabled,
GICXXPred_Simple_IsRule70Enabled,
GICXXPred_Simple_IsRule71Enabled,
GICXXPred_Simple_IsRule72Enabled,
GICXXPred_Simple_IsRule73Enabled,
GICXXPred_Simple_IsRule74Enabled,
GICXXPred_Simple_IsRule75Enabled,
GICXXPred_Simple_IsRule76Enabled,
GICXXPred_Simple_IsRule77Enabled,
GICXXPred_Simple_IsRule78Enabled,
GICXXPred_Simple_IsRule79Enabled,
GICXXPred_Simple_IsRule80Enabled,
GICXXPred_Simple_IsRule81Enabled,
GICXXPred_Simple_IsRule82Enabled,
GICXXPred_Simple_IsRule83Enabled,
GICXXPred_Simple_IsRule84Enabled,
GICXXPred_Simple_IsRule85Enabled,
GICXXPred_Simple_IsRule86Enabled,
GICXXPred_Simple_IsRule87Enabled,
GICXXPred_Simple_IsRule88Enabled,
GICXXPred_Simple_IsRule89Enabled,
GICXXPred_Simple_IsRule90Enabled,
GICXXPred_Simple_IsRule91Enabled,
GICXXPred_Simple_IsRule92Enabled,
GICXXPred_Simple_IsRule93Enabled,
GICXXPred_Simple_IsRule94Enabled,
GICXXPred_Simple_IsRule95Enabled,
GICXXPred_Simple_IsRule96Enabled,
GICXXPred_Simple_IsRule97Enabled,
GICXXPred_Simple_IsRule98Enabled,
GICXXPred_Simple_IsRule99Enabled,
GICXXPred_Simple_IsRule100Enabled,
GICXXPred_Simple_IsRule101Enabled,
GICXXPred_Simple_IsRule102Enabled,
GICXXPred_Simple_IsRule103Enabled,
GICXXPred_Simple_IsRule104Enabled,
GICXXPred_Simple_IsRule105Enabled,
GICXXPred_Simple_IsRule106Enabled,
GICXXPred_Simple_IsRule107Enabled,
GICXXPred_Simple_IsRule108Enabled,
GICXXPred_Simple_IsRule109Enabled,
GICXXPred_Simple_IsRule110Enabled,
GICXXPred_Simple_IsRule111Enabled,
GICXXPred_Simple_IsRule112Enabled,
GICXXPred_Simple_IsRule113Enabled,
GICXXPred_Simple_IsRule114Enabled,
GICXXPred_Simple_IsRule115Enabled,
GICXXPred_Simple_IsRule116Enabled,
GICXXPred_Simple_IsRule117Enabled,
GICXXPred_Simple_IsRule118Enabled,
GICXXPred_Simple_IsRule119Enabled,
GICXXPred_Simple_IsRule120Enabled,
GICXXPred_Simple_IsRule121Enabled,
GICXXPred_Simple_IsRule122Enabled,
GICXXPred_Simple_IsRule123Enabled,
GICXXPred_Simple_IsRule124Enabled,
GICXXPred_Simple_IsRule125Enabled,
GICXXPred_Simple_IsRule126Enabled,
GICXXPred_Simple_IsRule127Enabled,
GICXXPred_Simple_IsRule128Enabled,
GICXXPred_Simple_IsRule129Enabled,
GICXXPred_Simple_IsRule130Enabled,
GICXXPred_Simple_IsRule131Enabled,
GICXXPred_Simple_IsRule132Enabled,
GICXXPred_Simple_IsRule133Enabled,
GICXXPred_Simple_IsRule134Enabled,
GICXXPred_Simple_IsRule135Enabled,
GICXXPred_Simple_IsRule136Enabled,
GICXXPred_Simple_IsRule137Enabled,
GICXXPred_Simple_IsRule138Enabled,
GICXXPred_Simple_IsRule139Enabled,
GICXXPred_Simple_IsRule140Enabled,
GICXXPred_Simple_IsRule141Enabled,
GICXXPred_Simple_IsRule142Enabled,
GICXXPred_Simple_IsRule143Enabled,
GICXXPred_Simple_IsRule144Enabled,
GICXXPred_Simple_IsRule145Enabled,
GICXXPred_Simple_IsRule146Enabled,
GICXXPred_Simple_IsRule147Enabled,
GICXXPred_Simple_IsRule148Enabled,
GICXXPred_Simple_IsRule149Enabled,
GICXXPred_Simple_IsRule150Enabled,
GICXXPred_Simple_IsRule151Enabled,
GICXXPred_Simple_IsRule152Enabled,
GICXXPred_Simple_IsRule153Enabled,
GICXXPred_Simple_IsRule154Enabled,
GICXXPred_Simple_IsRule155Enabled,
GICXXPred_Simple_IsRule156Enabled,
GICXXPred_Simple_IsRule157Enabled,
GICXXPred_Simple_IsRule158Enabled,
GICXXPred_Simple_IsRule159Enabled,
GICXXPred_Simple_IsRule160Enabled,
GICXXPred_Simple_IsRule161Enabled,
GICXXPred_Simple_IsRule162Enabled,
GICXXPred_Simple_IsRule163Enabled,
GICXXPred_Simple_IsRule164Enabled,
GICXXPred_Simple_IsRule165Enabled,
GICXXPred_Simple_IsRule166Enabled,
GICXXPred_Simple_IsRule167Enabled,
GICXXPred_Simple_IsRule168Enabled,
GICXXPred_Simple_IsRule169Enabled,
GICXXPred_Simple_IsRule170Enabled,
GICXXPred_Simple_IsRule171Enabled,
GICXXPred_Simple_IsRule172Enabled,
GICXXPred_Simple_IsRule173Enabled,
GICXXPred_Simple_IsRule174Enabled,
GICXXPred_Simple_IsRule175Enabled,
GICXXPred_Simple_IsRule176Enabled,
GICXXPred_Simple_IsRule177Enabled,
GICXXPred_Simple_IsRule178Enabled,
GICXXPred_Simple_IsRule179Enabled,
GICXXPred_Simple_IsRule180Enabled,
GICXXPred_Simple_IsRule181Enabled,
GICXXPred_Simple_IsRule182Enabled,
GICXXPred_Simple_IsRule183Enabled,
GICXXPred_Simple_IsRule184Enabled,
GICXXPred_Simple_IsRule185Enabled,
GICXXPred_Simple_IsRule186Enabled,
GICXXPred_Simple_IsRule187Enabled,
GICXXPred_Simple_IsRule188Enabled,
GICXXPred_Simple_IsRule189Enabled,
GICXXPred_Simple_IsRule190Enabled,
GICXXPred_Simple_IsRule191Enabled,
GICXXPred_Simple_IsRule192Enabled,
GICXXPred_Simple_IsRule193Enabled,
GICXXPred_Simple_IsRule194Enabled,
GICXXPred_Simple_IsRule195Enabled,
GICXXPred_Simple_IsRule196Enabled,
GICXXPred_Simple_IsRule197Enabled,
GICXXPred_Simple_IsRule198Enabled,
GICXXPred_Simple_IsRule199Enabled,
GICXXPred_Simple_IsRule200Enabled,
GICXXPred_Simple_IsRule201Enabled,
GICXXPred_Simple_IsRule202Enabled,
GICXXPred_Simple_IsRule203Enabled,
GICXXPred_Simple_IsRule204Enabled,
GICXXPred_Simple_IsRule205Enabled,
};
bool RISCVPreLegalizerCombinerImpl::testSimplePredicate(unsigned Predicate) const {
return RuleConfig.isRuleEnabled(Predicate - GICXXPred_Invalid - 1);
}
enum {
GICR_Invalid,
};
RISCVPreLegalizerCombinerImpl::CustomRendererFn
RISCVPreLegalizerCombinerImpl::CustomRenderers[] = {
nullptr,
};
bool RISCVPreLegalizerCombinerImpl::tryCombineAll(MachineInstr &I) const {
const TargetSubtargetInfo &ST = MF.getSubtarget();
const PredicateBitset AvailableFeatures = getAvailableFeatures();
B.setInstrAndDebugLoc(I);
State.MIs.clear();
State.MIs.push_back(&I);
if (executeMatchTable(*this, State, ExecInfo, B, getMatchTable(), *ST.getInstrInfo(), MRI, *MRI.getTargetRegisterInfo(), *ST.getRegBankInfo(), AvailableFeatures, nullptr)) {
return true;
}
return false;
}
enum {
GICXXCustomAction_GICombiner0 = GICXXCustomAction_Invalid + 1,
GICXXCustomAction_GICombiner1,
GICXXCustomAction_GICombiner2,
GICXXCustomAction_GICombiner3,
GICXXCustomAction_GICombiner4,
GICXXCustomAction_GICombiner5,
GICXXCustomAction_GICombiner6,
GICXXCustomAction_GICombiner7,
GICXXCustomAction_GICombiner8,
GICXXCustomAction_GICombiner9,
GICXXCustomAction_GICombiner10,
GICXXCustomAction_GICombiner11,
GICXXCustomAction_GICombiner12,
GICXXCustomAction_GICombiner13,
GICXXCustomAction_GICombiner14,
GICXXCustomAction_GICombiner15,
GICXXCustomAction_GICombiner16,
GICXXCustomAction_GICombiner17,
GICXXCustomAction_GICombiner18,
GICXXCustomAction_GICombiner19,
GICXXCustomAction_GICombiner20,
GICXXCustomAction_GICombiner21,
GICXXCustomAction_GICombiner22,
GICXXCustomAction_GICombiner23,
GICXXCustomAction_GICombiner24,
GICXXCustomAction_GICombiner25,
GICXXCustomAction_GICombiner26,
GICXXCustomAction_GICombiner27,
GICXXCustomAction_GICombiner28,
GICXXCustomAction_GICombiner29,
GICXXCustomAction_GICombiner30,
GICXXCustomAction_GICombiner31,
GICXXCustomAction_GICombiner32,
GICXXCustomAction_GICombiner33,
GICXXCustomAction_GICombiner34,
GICXXCustomAction_GICombiner35,
GICXXCustomAction_GICombiner36,
GICXXCustomAction_GICombiner37,
GICXXCustomAction_GICombiner38,
GICXXCustomAction_GICombiner39,
GICXXCustomAction_GICombiner40,
GICXXCustomAction_GICombiner41,
GICXXCustomAction_GICombiner42,
GICXXCustomAction_GICombiner43,
GICXXCustomAction_GICombiner44,
GICXXCustomAction_GICombiner45,
GICXXCustomAction_GICombiner46,
GICXXCustomAction_GICombiner47,
GICXXCustomAction_GICombiner48,
GICXXCustomAction_GICombiner49,
GICXXCustomAction_GICombiner50,
GICXXCustomAction_GICombiner51,
GICXXCustomAction_GICombiner52,
GICXXCustomAction_GICombiner53,
GICXXCustomAction_GICombiner54,
GICXXCustomAction_GICombiner55,
GICXXCustomAction_GICombiner56,
GICXXCustomAction_GICombiner57,
GICXXCustomAction_GICombiner58,
GICXXCustomAction_GICombiner59,
GICXXCustomAction_GICombiner60,
GICXXCustomAction_GICombiner61,
GICXXCustomAction_GICombiner62,
GICXXCustomAction_GICombiner63,
GICXXCustomAction_GICombiner64,
GICXXCustomAction_GICombiner65,
GICXXCustomAction_GICombiner66,
GICXXCustomAction_GICombiner67,
GICXXCustomAction_GICombiner68,
GICXXCustomAction_GICombiner69,
GICXXCustomAction_GICombiner70,
GICXXCustomAction_GICombiner71,
GICXXCustomAction_GICombiner72,
GICXXCustomAction_GICombiner73,
GICXXCustomAction_GICombiner74,
GICXXCustomAction_GICombiner75,
GICXXCustomAction_GICombiner76,
GICXXCustomAction_GICombiner77,
GICXXCustomAction_GICombiner78,
GICXXCustomAction_GICombiner79,
GICXXCustomAction_GICombiner80,
GICXXCustomAction_GICombiner81,
GICXXCustomAction_GICombiner82,
GICXXCustomAction_GICombiner83,
GICXXCustomAction_GICombiner84,
GICXXCustomAction_GICombiner85,
GICXXCustomAction_GICombiner86,
GICXXCustomAction_GICombiner87,
GICXXCustomAction_GICombiner88,
GICXXCustomAction_GICombiner89,
GICXXCustomAction_GICombiner90,
GICXXCustomAction_GICombiner91,
GICXXCustomAction_GICombiner92,
GICXXCustomAction_GICombiner93,
GICXXCustomAction_GICombiner94,
GICXXCustomAction_GICombiner95,
GICXXCustomAction_GICombiner96,
GICXXCustomAction_GICombiner97,
GICXXCustomAction_GICombiner98,
GICXXCustomAction_GICombiner99,
GICXXCustomAction_GICombiner100,
GICXXCustomAction_GICombiner101,
GICXXCustomAction_GICombiner102,
GICXXCustomAction_GICombiner103,
GICXXCustomAction_GICombiner104,
GICXXCustomAction_GICombiner105,
GICXXCustomAction_GICombiner106,
GICXXCustomAction_GICombiner107,
GICXXCustomAction_GICombiner108,
GICXXCustomAction_GICombiner109,
GICXXCustomAction_GICombiner110,
GICXXCustomAction_GICombiner111,
GICXXCustomAction_GICombiner112,
GICXXCustomAction_GICombiner113,
GICXXCustomAction_GICombiner114,
GICXXCustomAction_GICombiner115,
GICXXCustomAction_GICombiner116,
GICXXCustomAction_GICombiner117,
GICXXCustomAction_GICombiner118,
GICXXCustomAction_GICombiner119,
GICXXCustomAction_GICombiner120,
GICXXCustomAction_GICombiner121,
GICXXCustomAction_GICombiner122,
GICXXCustomAction_GICombiner123,
GICXXCustomAction_GICombiner124,
GICXXCustomAction_GICombiner125,
GICXXCustomAction_GICombiner126,
GICXXCustomAction_GICombiner127,
GICXXCustomAction_GICombiner128,
GICXXCustomAction_GICombiner129,
GICXXCustomAction_GICombiner130,
GICXXCustomAction_GICombiner131,
GICXXCustomAction_GICombiner132,
GICXXCustomAction_GICombiner133,
GICXXCustomAction_GICombiner134,
GICXXCustomAction_GICombiner135,
};
bool RISCVPreLegalizerCombinerImpl::runCustomAction(unsigned ApplyID, const MatcherState &State, NewMIVector &OutMIs) const {
Helper.getBuilder().setInstrAndDebugLoc(*State.MIs[0]);
switch(ApplyID) {
case GICXXCustomAction_GICombiner0:{
std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
if(![&](){return Helper.matchFoldAPlusC1MinusC2(*State.MIs[0], GIMatchData_matchinfo);}()) {
return false;
}
Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
return true;
}
case GICXXCustomAction_GICombiner1:{
std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
if(![&](){return Helper.matchFoldC2MinusAPlusC1(*State.MIs[0], GIMatchData_matchinfo);}()) {
return false;
}
Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
return true;
}
case GICXXCustomAction_GICombiner2:{
std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
if(![&](){return Helper.matchFoldAMinusC1MinusC2(*State.MIs[0], GIMatchData_matchinfo);}()) {
return false;
}
Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
return true;
}
case GICXXCustomAction_GICombiner3:{
std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
if(![&](){return Helper.matchFoldC1Minus2MinusC2(*State.MIs[0], GIMatchData_matchinfo);}()) {
return false;
}
Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
return true;
}
case GICXXCustomAction_GICombiner4:{
std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
if(![&](){return Helper.matchFoldAMinusC1PlusC2(*State.MIs[0], GIMatchData_matchinfo);}()) {
return false;
}
Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
return true;
}
case GICXXCustomAction_GICombiner5:{
if(![&](){return Helper.matchCombineCopy(*State.MIs[0]);}()) {
return false;
}
Helper.applyCombineCopy(*State.MIs[0]);
return true;
}
case GICXXCustomAction_GICombiner6:{
unsigned GIMatchData_matchinfo;
if(![&](){return Helper.matchCombineMulToShl(*State.MIs[0], GIMatchData_matchinfo);}()) {
return false;
}
Helper.applyCombineMulToShl(*State.MIs[0], GIMatchData_matchinfo);
return true;
}
case GICXXCustomAction_GICombiner7:{
std::pair<Register, bool> GIMatchData_info;
if(![&](){return Helper.matchCombineAddP2IToPtrAdd(*State.MIs[0], GIMatchData_info);}()) {
return false;
}
Helper.applyCombineAddP2IToPtrAdd(*State.MIs[0], GIMatchData_info);
return true;
}
case GICXXCustomAction_GICombiner8:{
std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
if(![&](){return Helper.matchExtractVectorElement(*State.MIs[0], GIMatchData_matchinfo);}()) {
return false;
}
Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
return true;
}
case GICXXCustomAction_GICombiner9:{
std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
if(![&](){return Helper.matchInsertVectorElementOOB(*State.MIs[0], GIMatchData_matchinfo);}()) {
return false;
}
Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
return true;
}
case GICXXCustomAction_GICombiner10:{
std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
if(![&](){return Helper.matchExtractVectorElementWithDifferentIndices(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
return false;
}
Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
return true;
}
case GICXXCustomAction_GICombiner11:{
std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
if(![&](){return Helper.matchExtractVectorElementWithBuildVector(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
return false;
}
Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
return true;
}
case GICXXCustomAction_GICombiner12:{
std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
if(![&](){return Helper.matchExtractVectorElementWithBuildVectorTrunc(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
return false;
}
Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
return true;
}
case GICXXCustomAction_GICombiner13:{
std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
if(![&](){return Helper.matchExtractVectorElementWithShuffleVector(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
return false;
}
Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
return true;
}
case GICXXCustomAction_GICombiner14:{
std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
if(![&](){return Helper.matchAddOfVScale(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
return false;
}
Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
return true;
}
case GICXXCustomAction_GICombiner15:{
std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
if(![&](){return Helper.matchMulOfVScale(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
return false;
}
Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
return true;
}
case GICXXCustomAction_GICombiner16:{
std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
if(![&](){return Helper.matchShlOfVScale(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
return false;
}
Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
return true;
}
case GICXXCustomAction_GICombiner17:{
std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
if(![&](){return Helper.matchSubOfVScale(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
return false;
}
Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
return true;
}
case GICXXCustomAction_GICombiner18:{
std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
if(![&](){return !isGuaranteedNotToBePoison(State.MIs[0]->getOperand(1).getReg(), MRI) && Helper.matchFreezeOfSingleMaybePoisonOperand(*State.MIs[0], GIMatchData_matchinfo);}()) {
return false;
}
Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
return true;
}
case GICXXCustomAction_GICombiner19:{
std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
if(![&](){return Helper.matchTruncateOfExt(*State.MIs[0], *State.MIs[1], GIMatchData_matchinfo);}()) {
return false;
}
Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
return true;
}
case GICXXCustomAction_GICombiner20:{
std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
if(![&](){return Helper.matchCastOfSelect(*State.MIs[0], *State.MIs[1], GIMatchData_matchinfo);}()) {
return false;
}
Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
return true;
}
case GICXXCustomAction_GICombiner21:{
std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
if(![&](){return Helper.matchExtOfExt(*State.MIs[0], *State.MIs[1], GIMatchData_matchinfo);}()) {
return false;
}
Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
return true;
}
case GICXXCustomAction_GICombiner22:{
std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
if(![&](){return Helper.matchCastOfBuildVector(*State.MIs[0], *State.MIs[1], GIMatchData_matchinfo);}()) {
return false;
}
Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
return true;
}
case GICXXCustomAction_GICombiner23:{
SmallVector<Register, 4> GIMatchData_info;
if(![&](){return Helper.matchCombineInsertVecElts(*State.MIs[0], GIMatchData_info);}()) {
return false;
}
Helper.applyCombineInsertVecElts(*State.MIs[0], GIMatchData_info);
return true;
}
case GICXXCustomAction_GICombiner24:{
Register GIMatchData_matchinfo;
if(![&](){return Helper.matchExtractVecEltBuildVec(*State.MIs[0], GIMatchData_matchinfo);}()) {
return false;
}
Helper.applyExtractVecEltBuildVec(*State.MIs[0], GIMatchData_matchinfo);
return true;
}
case GICXXCustomAction_GICombiner25:{
SmallVector<std::pair<Register, MachineInstr*>> GIMatchData_matchinfo;
if(![&](){return Helper.matchExtractAllEltsFromBuildVector(*State.MIs[0], GIMatchData_matchinfo);}()) {
return false;
}
Helper.applyExtractAllEltsFromBuildVector(*State.MIs[0], GIMatchData_matchinfo);
return true;
}
case GICXXCustomAction_GICombiner26:{
PreferredTuple GIMatchData_matchinfo;
if(![&](){return Helper.matchCombineExtendingLoads(*State.MIs[0], GIMatchData_matchinfo);}()) {
return false;
}
Helper.applyCombineExtendingLoads(*State.MIs[0], GIMatchData_matchinfo);
return true;
}
case GICXXCustomAction_GICombiner27:{
std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
if(![&](){return Helper.matchCombineLoadWithAndMask(*State.MIs[0], GIMatchData_matchinfo);}()) {
return false;
}
Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
return true;
}
case GICXXCustomAction_GICombiner28:{
std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
if(![&](){return Helper.matchCombineExtractedVectorLoad(*State.MIs[0], GIMatchData_matchinfo);}()) {
return false;
}
Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
return true;
}
case GICXXCustomAction_GICombiner29:{
if(![&](){return Helper.matchAnyExplicitUseIsUndef(*State.MIs[0]);}()) {
return false;
}
Helper.replaceInstWithFConstant(*State.MIs[0], 0.0);
return true;
}
case GICXXCustomAction_GICombiner30:{
if(![&](){return Helper.matchAnyExplicitUseIsUndef(*State.MIs[0]);}()) {
return false;
}
Helper.replaceInstWithConstant(*State.MIs[0], 0);
return true;
}
case GICXXCustomAction_GICombiner31:{
if(![&](){return Helper.matchAnyExplicitUseIsUndef(*State.MIs[0]);}()) {
return false;
}
Helper.replaceInstWithConstant(*State.MIs[0], -1);
return true;
}
case GICXXCustomAction_GICombiner32:{
if(![&](){return Helper.matchOperandIsUndef(*State.MIs[0], 1);}()) {
return false;
}
Helper.replaceInstWithConstant(*State.MIs[0], 0);
return true;
}
case GICXXCustomAction_GICombiner33:{
if(![&](){return Helper.matchOperandIsUndef(*State.MIs[0], 2);}()) {
return false;
}
Helper.replaceInstWithUndef(*State.MIs[0]);
return true;
}
case GICXXCustomAction_GICombiner34:{
if(![&](){return Helper.matchAnyExplicitUseIsUndef(*State.MIs[0]);}()) {
return false;
}
Helper.replaceInstWithUndef(*State.MIs[0]);
return true;
}
case GICXXCustomAction_GICombiner35:{
if(![&](){return Helper.matchAllExplicitUsesAreUndef(*State.MIs[0]);}()) {
return false;
}
Helper.replaceInstWithUndef(*State.MIs[0]);
return true;
}
case GICXXCustomAction_GICombiner36:{
if(![&](){return Helper.matchUndefShuffleVectorMask(*State.MIs[0]);}()) {
return false;
}
Helper.replaceInstWithUndef(*State.MIs[0]);
return true;
}
case GICXXCustomAction_GICombiner37:{
if(![&](){return Helper.matchUndefStore(*State.MIs[0]);}()) {
return false;
}
Helper.eraseInst(*State.MIs[0]);
return true;
}
case GICXXCustomAction_GICombiner38:{
std::function<void(MachineIRBuilder &)> GIMatchData_info;
if(![&](){return Helper.matchCombineUnmergeUndef(*State.MIs[0], GIMatchData_info);}()) {
return false;
}
Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
return true;
}
case GICXXCustomAction_GICombiner39:{
if(![&](){return Helper.matchInsertExtractVecEltOutOfBounds(*State.MIs[0]);}()) {
return false;
}
Helper.replaceInstWithUndef(*State.MIs[0]);
return true;
}
case GICXXCustomAction_GICombiner40:{
if(![&](){return Helper.matchSelectSameVal(*State.MIs[0]);}()) {
return false;
}
Helper.replaceSingleDefInstWithOperand(*State.MIs[0], 2);
return true;
}
case GICXXCustomAction_GICombiner41:{
if(![&](){return Helper.matchOperandIsZero(*State.MIs[0], 1);}()) {
return false;
}
Helper.replaceSingleDefInstWithOperand(*State.MIs[0], 1);
return true;
}
case GICXXCustomAction_GICombiner42:{
Register GIMatchData_info;
if(![&](){return Helper.matchCombineI2PToP2I(*State.MIs[0], GIMatchData_info);}()) {
return false;
}
Helper.applyCombineI2PToP2I(*State.MIs[0], GIMatchData_info);
return true;
}
case GICXXCustomAction_GICombiner43:{
Register GIMatchData_info;
if(![&](){GIMatchData_info = State.MIs[1]->getOperand(1).getReg(); return true;}()) {
return false;
}
Helper.applyCombineP2IToI2P(*State.MIs[0], GIMatchData_info);
return true;
}
case GICXXCustomAction_GICombiner44:{
Register GIMatchData_matchinfo;
if(![&](){return Helper.matchCombineAnyExtTrunc(*State.MIs[0], GIMatchData_matchinfo);}()) {
return false;
}
Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo);
return true;
}
case GICXXCustomAction_GICombiner45:{
Register GIMatchData_matchinfo;
if(![&](){return Helper.matchBuildVectorIdentityFold(*State.MIs[0], GIMatchData_matchinfo);}()) {
return false;
}
Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo);
return true;
}
case GICXXCustomAction_GICombiner46:{
Register GIMatchData_matchinfo;
if(![&](){return Helper.matchTruncBuildVectorFold(*State.MIs[0], GIMatchData_matchinfo);}()) {
return false;
}
Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo);
return true;
}
case GICXXCustomAction_GICombiner47:{
Register GIMatchData_matchinfo;
if(![&](){return Helper.matchTruncLshrBuildVectorFold(*State.MIs[0], GIMatchData_matchinfo);}()) {
return false;
}
Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo);
return true;
}
case GICXXCustomAction_GICombiner48:{
if(![&](){return MRI.getType(State.MIs[1]->getOperand(1).getReg()) == MRI.getType(State.MIs[0]->getOperand(0).getReg());}()) {
return false;
}
Helper.replaceSingleDefInstWithReg(*State.MIs[0], State.MIs[1]->getOperand(1).getReg());
return true;
}
case GICXXCustomAction_GICombiner49:{
MachineInstr* GIMatchData_matchinfo;
if(![&](){return Helper.matchExtendThroughPhis(*State.MIs[0], GIMatchData_matchinfo);}()) {
return false;
}
Helper.applyExtendThroughPhis(*State.MIs[0], GIMatchData_matchinfo);
return true;
}
case GICXXCustomAction_GICombiner50:{
std::tuple<Register, Register> GIMatchData_info;
if(![&](){return Helper.matchSimplifyAddToSub(*State.MIs[0], GIMatchData_info);}()) {
return false;
}
Helper.applySimplifyAddToSub(*State.MIs[0], GIMatchData_info);
return true;
}
case GICXXCustomAction_GICombiner51:{
InstructionStepsMatchInfo GIMatchData_info;
if(![&](){return Helper.matchHoistLogicOpWithSameOpcodeHands(*State.MIs[0], GIMatchData_info);}()) {
return false;
}
Helper.applyBuildInstructionSteps(*State.MIs[0], GIMatchData_info);
return true;
}
case GICXXCustomAction_GICombiner52:{
if(![&](){return Helper.matchShiftsTooBig(*State.MIs[0]);}()) {
return false;
}
Helper.replaceInstWithUndef(*State.MIs[0]);
return true;
}
case GICXXCustomAction_GICombiner53:{
std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
if(![&](){return Helper.matchReassocPtrAdd(*State.MIs[0], GIMatchData_matchinfo);}()) {
return false;
}
Helper.applyBuildFnNoErase(*State.MIs[0], GIMatchData_matchinfo);
return true;
}
case GICXXCustomAction_GICombiner54:{
std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
if(![&](){return Helper.matchReassocCommBinOp(*State.MIs[0], GIMatchData_matchinfo);}()) {
return false;
}
Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
return true;
}
case GICXXCustomAction_GICombiner55:{
PtrAddChain GIMatchData_matchinfo;
if(![&](){return Helper.matchPtrAddImmedChain(*State.MIs[0], GIMatchData_matchinfo);}()) {
return false;
}
Helper.applyPtrAddImmedChain(*State.MIs[0], GIMatchData_matchinfo);
return true;
}
case GICXXCustomAction_GICombiner56:{
std::tuple<Register, int64_t> GIMatchData_info;
if(![&](){return Helper.matchAshrShlToSextInreg(*State.MIs[0], GIMatchData_info);}()) {
return false;
}
Helper.applyAshShlToSextInreg(*State.MIs[0], GIMatchData_info);
return true;
}
case GICXXCustomAction_GICombiner57:{
std::tuple<Register, unsigned> GIMatchData_matchinfo;
if(![&](){return Helper.matchSextInRegOfLoad(*State.MIs[0], GIMatchData_matchinfo);}()) {
return false;
}
Helper.applySextInRegOfLoad(*State.MIs[0], GIMatchData_matchinfo);
return true;
}
case GICXXCustomAction_GICombiner58:{
RegisterImmPair GIMatchData_matchinfo;
if(![&](){return Helper.matchCombineShlOfExtend(*State.MIs[0], GIMatchData_matchinfo);}()) {
return false;
}
Helper.applyCombineShlOfExtend(*State.MIs[0], GIMatchData_matchinfo);
return true;
}
case GICXXCustomAction_GICombiner59:{
std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
if(![&](){return Helper.matchNarrowBinopFeedingAnd(*State.MIs[0], GIMatchData_matchinfo);}()) {
return false;
}
Helper.applyBuildFnNoErase(*State.MIs[0], GIMatchData_matchinfo);
return true;
}
case GICXXCustomAction_GICombiner60:{
unsigned GIMatchData_matchinfo;
if(![&](){return Helper.matchConstantSelectCmp(*State.MIs[0], GIMatchData_matchinfo);}()) {
return false;
}
Helper.replaceSingleDefInstWithOperand(*State.MIs[0], GIMatchData_matchinfo);
return true;
}
case GICXXCustomAction_GICombiner61:{
std::function<void(MachineIRBuilder &)> GIMatchData_info;
if(![&](){return Helper.matchSelectIMinMax(State.MIs[0]->getOperand(0), GIMatchData_info);}()) {
return false;
}
Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_info);
return true;
}
case GICXXCustomAction_GICombiner62:{
std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
if(![&](){return Helper.matchSelect(*State.MIs[0], GIMatchData_matchinfo);}()) {
return false;
}
Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
return true;
}
case GICXXCustomAction_GICombiner63:{
Register GIMatchData_matchinfo;
if(![&](){return Helper.matchRedundantAnd(*State.MIs[0], GIMatchData_matchinfo);}()) {
return false;
}
Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo);
return true;
}
case GICXXCustomAction_GICombiner64:{
if(![&](){return Helper.matchRedundantSExtInReg(*State.MIs[0]);}()) {
return false;
}
Helper.replaceSingleDefInstWithOperand(*State.MIs[0], 1);
return true;
}
case GICXXCustomAction_GICombiner65:{
Register GIMatchData_matchinfo;
if(![&](){return Helper.matchRedundantOr(*State.MIs[0], GIMatchData_matchinfo);}()) {
return false;
}
Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo);
return true;
}
case GICXXCustomAction_GICombiner66:{
if(![&](){return Helper.matchOperandIsKnownToBeAPowerOfTwo(*State.MIs[0], 2);}()) {
return false;
}
Helper.applySimplifyURemByPow2(*State.MIs[0]);
return true;
}
case GICXXCustomAction_GICombiner67:{
Register GIMatchData_matchinfo;
if(![&](){return Helper.matchCombineZextTrunc(*State.MIs[0], GIMatchData_matchinfo);}()) {
return false;
}
Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo);
return true;
}
case GICXXCustomAction_GICombiner68:{
int64_t GIMatchData_matchinfo;
if(![&](){return Helper.matchICmpToTrueFalseKnownBits(*State.MIs[0], GIMatchData_matchinfo);}()) {
return false;
}
Helper.replaceInstWithConstant(*State.MIs[0], GIMatchData_matchinfo);
return true;
}
case GICXXCustomAction_GICombiner69:{
std::function<void(MachineIRBuilder &)> GIMatchData_info;
if(![&](){return Helper.matchICmpToLHSKnownBits(*State.MIs[0], GIMatchData_info);}()) {
return false;
}
Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
return true;
}
case GICXXCustomAction_GICombiner70:{
if(![&](){unsigned BitWidth = MRI.getType(State.MIs[0]->getOperand(1).getReg()).getScalarSizeInBits();
return Helper.getKnownBits()->maskedValueIsZero(State.MIs[0]->getOperand(1).getReg(),
APInt::getOneBitSet(BitWidth, State.MIs[0]->getOperand(2).getImm() - 1));}()) {
return false;
}
Helper.getBuilder().setInstrAndDebugLoc(*State.MIs[0]);
Helper.getBuilder().buildZExtInReg(State.MIs[0]->getOperand(0), State.MIs[0]->getOperand(1), State.MIs[0]->getOperand(2).getImm());
State.MIs[0]->eraseFromParent();
return true;
}
case GICXXCustomAction_GICombiner71:{
SmallVector<Register, 4> GIMatchData_info;
if(![&](){return Helper.matchNotCmp(*State.MIs[0], GIMatchData_info);}()) {
return false;
}
Helper.applyNotCmp(*State.MIs[0], GIMatchData_info);
return true;
}
case GICXXCustomAction_GICombiner72:{
MachineInstr * GIMatchData_matchinfo;
if(![&](){return Helper.matchOptBrCondByInvertingCond(*State.MIs[0], GIMatchData_matchinfo);}()) {
return false;
}
Helper.applyOptBrCondByInvertingCond(*State.MIs[0], GIMatchData_matchinfo);
return true;
}
case GICXXCustomAction_GICombiner73:{
SmallVector<Register, 8> GIMatchData_info;
if(![&](){return Helper.matchCombineUnmergeMergeToPlainValues(*State.MIs[0], GIMatchData_info);}()) {
return false;
}
Helper.applyCombineUnmergeMergeToPlainValues(*State.MIs[0], GIMatchData_info);
return true;
}
case GICXXCustomAction_GICombiner74:{
SmallVector<APInt, 8> GIMatchData_info;
if(![&](){return Helper.matchCombineUnmergeConstant(*State.MIs[0], GIMatchData_info);}()) {
return false;
}
Helper.applyCombineUnmergeConstant(*State.MIs[0], GIMatchData_info);
return true;
}
case GICXXCustomAction_GICombiner75:{
if(![&](){return Helper.matchCombineUnmergeWithDeadLanesToTrunc(*State.MIs[0]);}()) {
return false;
}
Helper.applyCombineUnmergeWithDeadLanesToTrunc(*State.MIs[0]);
return true;
}
case GICXXCustomAction_GICombiner76:{
if(![&](){return Helper.matchCombineUnmergeZExtToZExt(*State.MIs[0]);}()) {
return false;
}
Helper.applyCombineUnmergeZExtToZExt(*State.MIs[0]);
return true;
}
case GICXXCustomAction_GICombiner77:{
Register GIMatchData_matchinfo;
if(![&](){return Helper.matchCombineMergeUnmerge(*State.MIs[0], GIMatchData_matchinfo);}()) {
return false;
}
Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo);
return true;
}
case GICXXCustomAction_GICombiner78:{
std::pair<MachineInstr*, LLT> GIMatchData_matchinfo;
if(![&](){return Helper.matchCombineTruncOfShift(*State.MIs[0], GIMatchData_matchinfo);}()) {
return false;
}
Helper.applyCombineTruncOfShift(*State.MIs[0], GIMatchData_matchinfo);
return true;
}
case GICXXCustomAction_GICombiner79:{
Helper.applyCombineConstantFoldFpUnary(*State.MIs[0], State.MIs[1]->getOperand(1).getFPImm());
return true;
}
case GICXXCustomAction_GICombiner80:{
Helper.replaceInstWithFConstant(*State.MIs[0]->getOperand(0).getParent(), 0.0);
return true;
}
case GICXXCustomAction_GICombiner81:{
APInt GIMatchData_info;
if(![&](){return Helper.matchCombineConstPtrAddToI2P(*State.MIs[0], GIMatchData_info);}()) {
return false;
}
Helper.applyCombineConstPtrAddToI2P(*State.MIs[0], GIMatchData_info);
return true;
}
case GICXXCustomAction_GICombiner82:{
std::function<void(MachineIRBuilder &)> GIMatchData_info;
if(![&](){return Helper.matchOverlappingAnd(*State.MIs[0], GIMatchData_info);}()) {
return false;
}
Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
return true;
}
case GICXXCustomAction_GICombiner83:{
std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
if(![&](){return Helper.matchMulOBy2(*State.MIs[0], GIMatchData_matchinfo);}()) {
return false;
}
Helper.applyBuildFnNoErase(*State.MIs[0], GIMatchData_matchinfo);
return true;
}
case GICXXCustomAction_GICombiner84:{
std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
if(![&](){return Helper.matchMulOBy0(*State.MIs[0], GIMatchData_matchinfo);}()) {
return false;
}
Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
return true;
}
case GICXXCustomAction_GICombiner85:{
std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
if(![&](){return Helper.matchAddEToAddO(*State.MIs[0], GIMatchData_matchinfo);}()) {
return false;
}
Helper.applyBuildFnNoErase(*State.MIs[0], GIMatchData_matchinfo);
return true;
}
case GICXXCustomAction_GICombiner86:{
unsigned GIMatchData_info;
if(![&](){return Helper.matchCombineFMinMaxNaN(*State.MIs[0], GIMatchData_info);}()) {
return false;
}
Helper.replaceSingleDefInstWithOperand(*State.MIs[0], GIMatchData_info);
return true;
}
case GICXXCustomAction_GICombiner87:{
if(![&](){return Helper.matchFPowIExpansion(*State.MIs[0], State.MIs[1]->getOperand(1).getCImm()->getSExtValue());}()) {
return false;
}
Helper.applyExpandFPowI(*State.MIs[0], State.MIs[1]->getOperand(1).getCImm()->getSExtValue());
return true;
}
case GICXXCustomAction_GICombiner88:{
std::pair<Register, Register> GIMatchData_matchinfo;
if(![&](){return Helper.matchXorOfAndWithSameReg(*State.MIs[0], GIMatchData_matchinfo);}()) {
return false;
}
Helper.applyXorOfAndWithSameReg(*State.MIs[0], GIMatchData_matchinfo);
return true;
}
case GICXXCustomAction_GICombiner89:{
if(![&](){return Helper.matchPtrAddZero(*State.MIs[0]);}()) {
return false;
}
Helper.applyPtrAddZero(*State.MIs[0]);
return true;
}
case GICXXCustomAction_GICombiner90:{
RegisterImmPair GIMatchData_matchinfo;
if(![&](){return Helper.matchShiftImmedChain(*State.MIs[0], GIMatchData_matchinfo);}()) {
return false;
}
Helper.applyShiftImmedChain(*State.MIs[0], GIMatchData_matchinfo);
return true;
}
case GICXXCustomAction_GICombiner91:{
ShiftOfShiftedLogic GIMatchData_matchinfo;
if(![&](){return Helper.matchShiftOfShiftedLogic(*State.MIs[0], GIMatchData_matchinfo);}()) {
return false;
}
Helper.applyShiftOfShiftedLogic(*State.MIs[0], GIMatchData_matchinfo);
return true;
}
case GICXXCustomAction_GICombiner92:{
std::function<void(MachineIRBuilder &)> GIMatchData_info;
if(![&](){return Helper.matchLoadOrCombine(*State.MIs[0], GIMatchData_info);}()) {
return false;
}
Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
return true;
}
case GICXXCustomAction_GICombiner93:{
MachineInstr * GIMatchData_matchinfo;
if(![&](){return Helper.matchCombineDivRem(*State.MIs[0], GIMatchData_matchinfo);}()) {
return false;
}
Helper.applyCombineDivRem(*State.MIs[0], GIMatchData_matchinfo);
return true;
}
case GICXXCustomAction_GICombiner94:{
std::function<void(MachineIRBuilder &)> GIMatchData_info;
if(![&](){return Helper.matchOrShiftToFunnelShift(*State.MIs[0], GIMatchData_info);}()) {
return false;
}
Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
return true;
}
case GICXXCustomAction_GICombiner95:{
if(![&](){return Helper.matchFunnelShiftToRotate(*State.MIs[0]);}()) {
return false;
}
Helper.applyFunnelShiftToRotate(*State.MIs[0]);
return true;
}
case GICXXCustomAction_GICombiner96:{
if(![&](){return Helper.matchConstantLargerBitWidth(*State.MIs[0], 3);}()) {
return false;
}
Helper.applyFunnelShiftConstantModulo(*State.MIs[0]);
return true;
}
case GICXXCustomAction_GICombiner97:{
std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
if(![&](){return Helper.matchCommuteShift(*State.MIs[0], GIMatchData_matchinfo);}()) {
return false;
}
Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
return true;
}
case GICXXCustomAction_GICombiner98:{
std::function<void(MachineIRBuilder &)> GIMatchData_info;
if(![&](){return Helper.matchBitfieldExtractFromSExtInReg(*State.MIs[0], GIMatchData_info);}()) {
return false;
}
Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
return true;
}
case GICXXCustomAction_GICombiner99:{
std::function<void(MachineIRBuilder &)> GIMatchData_info;
if(![&](){return Helper.matchBitfieldExtractFromAnd(*State.MIs[0], GIMatchData_info);}()) {
return false;
}
Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
return true;
}
case GICXXCustomAction_GICombiner100:{
std::function<void(MachineIRBuilder &)> GIMatchData_info;
if(![&](){return Helper.matchBitfieldExtractFromShr(*State.MIs[0], GIMatchData_info);}()) {
return false;
}
Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
return true;
}
case GICXXCustomAction_GICombiner101:{
std::function<void(MachineIRBuilder &)> GIMatchData_info;
if(![&](){return Helper.matchBitfieldExtractFromShrAnd(*State.MIs[0], GIMatchData_info);}()) {
return false;
}
Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
return true;
}
case GICXXCustomAction_GICombiner102:{
APInt GIMatchData_matchinfo;
if(![&](){return Helper.matchConstantFoldBinOp(*State.MIs[0], GIMatchData_matchinfo);}()) {
return false;
}
Helper.replaceInstWithConstant(*State.MIs[0], GIMatchData_matchinfo);
return true;
}
case GICXXCustomAction_GICombiner103:{
ConstantFP* GIMatchData_matchinfo;
if(![&](){return Helper.matchConstantFoldFPBinOp(*State.MIs[0], GIMatchData_matchinfo);}()) {
return false;
}
Helper.replaceInstWithFConstant(*State.MIs[0], GIMatchData_matchinfo);
return true;
}
case GICXXCustomAction_GICombiner104:{
ConstantFP* GIMatchData_matchinfo;
if(![&](){return Helper.matchConstantFoldFMA(*State.MIs[0], GIMatchData_matchinfo);}()) {
return false;
}
Helper.replaceInstWithFConstant(*State.MIs[0], GIMatchData_matchinfo);
return true;
}
case GICXXCustomAction_GICombiner105:{
APInt GIMatchData_matchinfo;
if(![&](){return Helper.matchConstantFoldCastOp(*State.MIs[0], GIMatchData_matchinfo);}()) {
return false;
}
Helper.replaceInstWithConstant(*State.MIs[0], GIMatchData_matchinfo);
return true;
}
case GICXXCustomAction_GICombiner106:{
if(![&](){return Helper.matchUDivByConst(*State.MIs[0]);}()) {
return false;
}
Helper.applyUDivByConst(*State.MIs[0]);
return true;
}
case GICXXCustomAction_GICombiner107:{
if(![&](){return Helper.matchSDivByConst(*State.MIs[0]);}()) {
return false;
}
Helper.applySDivByConst(*State.MIs[0]);
return true;
}
case GICXXCustomAction_GICombiner108:{
if(![&](){return Helper.matchDivByPow2(*State.MIs[0], true);}()) {
return false;
}
Helper.applySDivByPow2(*State.MIs[0]);
return true;
}
case GICXXCustomAction_GICombiner109:{
if(![&](){return Helper.matchDivByPow2(*State.MIs[0], false);}()) {
return false;
}
Helper.applyUDivByPow2(*State.MIs[0]);
return true;
}
case GICXXCustomAction_GICombiner110:{
if(![&](){return Helper.matchUMulHToLShr(*State.MIs[0]);}()) {
return false;
}
Helper.applyUMulHToLShr(*State.MIs[0]);
return true;
}
case GICXXCustomAction_GICombiner111:{
std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
if(![&](){return Helper.matchRedundantNegOperands(*State.MIs[0], GIMatchData_matchinfo);}()) {
return false;
}
Helper.applyBuildFnNoErase(*State.MIs[0], GIMatchData_matchinfo);
return true;
}
case GICXXCustomAction_GICombiner112:{
std::function<void(MachineIRBuilder &)> GIMatchData_info;
if(![&](){return Helper.matchAndOrDisjointMask(*State.MIs[0], GIMatchData_info);}()) {
return false;
}
Helper.applyBuildFnNoErase(*State.MIs[0], GIMatchData_info);
return true;
}
case GICXXCustomAction_GICombiner113:{
std::function<void(MachineIRBuilder &)> GIMatchData_info;
if(![&](){return Helper.matchCombineFAddFMulToFMadOrFMA(*State.MIs[0],
GIMatchData_info);}()) {
return false;
}
Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
return true;
}
case GICXXCustomAction_GICombiner114:{
std::function<void(MachineIRBuilder &)> GIMatchData_info;
if(![&](){return Helper.matchCombineFAddFpExtFMulToFMadOrFMA(*State.MIs[0],
GIMatchData_info);}()) {
return false;
}
Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
return true;
}
case GICXXCustomAction_GICombiner115:{
std::function<void(MachineIRBuilder &)> GIMatchData_info;
if(![&](){return Helper.matchCombineFAddFMAFMulToFMadOrFMA(*State.MIs[0],
GIMatchData_info);}()) {
return false;
}
Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
return true;
}
case GICXXCustomAction_GICombiner116:{
std::function<void(MachineIRBuilder &)> GIMatchData_info;
if(![&](){return Helper.matchCombineFAddFpExtFMulToFMadOrFMAAggressive(
*State.MIs[0], GIMatchData_info);}()) {
return false;
}
Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
return true;
}
case GICXXCustomAction_GICombiner117:{
std::function<void(MachineIRBuilder &)> GIMatchData_info;
if(![&](){return Helper.matchCombineFSubFMulToFMadOrFMA(*State.MIs[0],
GIMatchData_info);}()) {
return false;
}
Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
return true;
}
case GICXXCustomAction_GICombiner118:{
std::function<void(MachineIRBuilder &)> GIMatchData_info;
if(![&](){return Helper.matchCombineFSubFNegFMulToFMadOrFMA(*State.MIs[0],
GIMatchData_info);}()) {
return false;
}
Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
return true;
}
case GICXXCustomAction_GICombiner119:{
std::function<void(MachineIRBuilder &)> GIMatchData_info;
if(![&](){return Helper.matchCombineFSubFpExtFMulToFMadOrFMA(*State.MIs[0],
GIMatchData_info);}()) {
return false;
}
Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
return true;
}
case GICXXCustomAction_GICombiner120:{
std::function<void(MachineIRBuilder &)> GIMatchData_info;
if(![&](){return Helper.matchCombineFSubFpExtFNegFMulToFMadOrFMA(
*State.MIs[0], GIMatchData_info);}()) {
return false;
}
Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
return true;
}
case GICXXCustomAction_GICombiner121:{
unsigned GIMatchData_select_op_no;
if(![&](){return Helper.matchFoldBinOpIntoSelect(*State.MIs[0], GIMatchData_select_op_no);}()) {
return false;
}
Helper.applyFoldBinOpIntoSelect(*State.MIs[0], GIMatchData_select_op_no);
return true;
}
case GICXXCustomAction_GICombiner122:{
std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
if(![&](){return Helper.matchSubAddSameReg(*State.MIs[0], GIMatchData_matchinfo);}()) {
return false;
}
Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
return true;
}
case GICXXCustomAction_GICombiner123:{
std::function<void(MachineIRBuilder &)> GIMatchData_info;
if(![&](){return Helper.matchSimplifySelectToMinMax(*State.MIs[0], GIMatchData_info);}()) {
return false;
}
Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
return true;
}
case GICXXCustomAction_GICombiner124:{
std::function<void(MachineIRBuilder &)> GIMatchData_info;
if(![&](){return Helper.matchRedundantBinOpInEquality(*State.MIs[0], GIMatchData_info);}()) {
return false;
}
Helper.applyBuildFn(*State.MIs[0], GIMatchData_info);
return true;
}
case GICXXCustomAction_GICombiner125:{
Register GIMatchData_matchinfo;
if(![&](){return Helper.matchFsubToFneg(*State.MIs[0], GIMatchData_matchinfo);}()) {
return false;
}
Helper.applyFsubToFneg(*State.MIs[0], GIMatchData_matchinfo);
return true;
}
case GICXXCustomAction_GICombiner126:{
if(![&](){return Helper.matchCommuteConstantToRHS(*State.MIs[0]);}()) {
return false;
}
Helper.applyCommuteBinOpOperands(*State.MIs[0]);
return true;
}
case GICXXCustomAction_GICombiner127:{
if(![&](){return Helper.matchCommuteFPConstantToRHS(*State.MIs[0]);}()) {
return false;
}
Helper.applyCommuteBinOpOperands(*State.MIs[0]);
return true;
}
case GICXXCustomAction_GICombiner128:{
std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
if(![&](){return Helper.matchAnd(*State.MIs[0], GIMatchData_matchinfo);}()) {
return false;
}
Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
return true;
}
case GICXXCustomAction_GICombiner129:{
std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
if(![&](){return Helper.matchOr(*State.MIs[0], GIMatchData_matchinfo);}()) {
return false;
}
Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
return true;
}
case GICXXCustomAction_GICombiner130:{
SmallVector<Register> GIMatchData_matchinfo;
if(![&](){return Helper.matchCombineConcatVectors(*State.MIs[0], GIMatchData_matchinfo);}()) {
return false;
}
Helper.applyCombineConcatVectors(*State.MIs[0], GIMatchData_matchinfo);
return true;
}
case GICXXCustomAction_GICombiner131:{
std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
if(![&](){return Helper.matchAddOverflow(*State.MIs[0], GIMatchData_matchinfo);}()) {
return false;
}
Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo);
return true;
}
case GICXXCustomAction_GICombiner132:{
std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
if(![&](){return Helper.matchSextOfTrunc(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
return false;
}
Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
return true;
}
case GICXXCustomAction_GICombiner133:{
std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
if(![&](){return Helper.matchZextOfTrunc(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
return false;
}
Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
return true;
}
case GICXXCustomAction_GICombiner134:{
std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo;
if(![&](){return Helper.matchNonNegZext(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) {
return false;
}
Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);
return true;
}
case GICXXCustomAction_GICombiner135:{
SmallVector<Register> GIMatchData_matchinfo;
if(![&](){return Helper.matchCombineShuffleConcat(*State.MIs[0], GIMatchData_matchinfo);}()) {
return false;
}
Helper.applyCombineShuffleConcat(*State.MIs[0], GIMatchData_matchinfo);
return true;
}
}
llvm_unreachable("Unknown Apply Action");
}
#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
#define GIMT_Encode2 …
#define GIMT_Encode4 …
#define GIMT_Encode8 …
#else
#define GIMT_Encode2 …
#define GIMT_Encode4 …
#define GIMT_Encode8 …
#endif
const uint8_t *RISCVPreLegalizerCombinerImpl::getMatchTable() const {
constexpr static uint8_t MatchTable0[] = {
GIM_SwitchOpcode, 0, GIMT_Encode2(19), GIMT_Encode2(250), GIMT_Encode4(6654),
GIMT_Encode4(934), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
GIMT_Encode4(946),
GIMT_Encode4(1503),
GIMT_Encode4(1746),
GIMT_Encode4(1912),
GIMT_Encode4(1985),
GIMT_Encode4(2069),
GIMT_Encode4(2114), GIMT_Encode4(0), GIMT_Encode4(0),
GIMT_Encode4(2181),
GIMT_Encode4(2462),
GIMT_Encode4(2707), GIMT_Encode4(0),
GIMT_Encode4(2808), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
GIMT_Encode4(2820), GIMT_Encode4(0),
GIMT_Encode4(2876),
GIMT_Encode4(2888),
GIMT_Encode4(2911),
GIMT_Encode4(2923),
GIMT_Encode4(2935),
GIMT_Encode4(2957),
GIMT_Encode4(2969),
GIMT_Encode4(2991), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
GIMT_Encode4(3055),
GIMT_Encode4(3067),
GIMT_Encode4(3079), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
GIMT_Encode4(3091), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
GIMT_Encode4(3103),
GIMT_Encode4(3210), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
GIMT_Encode4(3363),
GIMT_Encode4(3444),
GIMT_Encode4(3489),
GIMT_Encode4(3619),
GIMT_Encode4(3777),
GIMT_Encode4(3889),
GIMT_Encode4(4012),
GIMT_Encode4(4055),
GIMT_Encode4(4098),
GIMT_Encode4(4122),
GIMT_Encode4(4146), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
GIMT_Encode4(4180),
GIMT_Encode4(4275),
GIMT_Encode4(4298), GIMT_Encode4(0),
GIMT_Encode4(4310),
GIMT_Encode4(4322),
GIMT_Encode4(4345), GIMT_Encode4(0),
GIMT_Encode4(4357),
GIMT_Encode4(4369),
GIMT_Encode4(4403),
GIMT_Encode4(4437),
GIMT_Encode4(4460),
GIMT_Encode4(4472),
GIMT_Encode4(4484), GIMT_Encode4(0), GIMT_Encode4(0),
GIMT_Encode4(4496),
GIMT_Encode4(4519),
GIMT_Encode4(4542),
GIMT_Encode4(4554),
GIMT_Encode4(4566),
GIMT_Encode4(4578), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
GIMT_Encode4(4590),
GIMT_Encode4(4702),
GIMT_Encode4(4791),
GIMT_Encode4(4879),
GIMT_Encode4(4902),
GIMT_Encode4(4925),
GIMT_Encode4(4959), GIMT_Encode4(0),
GIMT_Encode4(4971), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
GIMT_Encode4(4993), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
GIMT_Encode4(5015), GIMT_Encode4(0),
GIMT_Encode4(5066),
GIMT_Encode4(5109),
GIMT_Encode4(5121),
GIMT_Encode4(5133),
GIMT_Encode4(5160),
GIMT_Encode4(5187), GIMT_Encode4(0), GIMT_Encode4(0),
GIMT_Encode4(5266),
GIMT_Encode4(5296),
GIMT_Encode4(5330),
GIMT_Encode4(5364),
GIMT_Encode4(5376),
GIMT_Encode4(5388),
GIMT_Encode4(5422), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
GIMT_Encode4(5456), GIMT_Encode4(0),
GIMT_Encode4(5546),
GIMT_Encode4(5580),
GIMT_Encode4(5614),
GIMT_Encode4(5648),
GIMT_Encode4(5682), GIMT_Encode4(0), GIMT_Encode4(0),
GIMT_Encode4(5694), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
GIMT_Encode4(5706),
GIMT_Encode4(5836),
GIMT_Encode4(6509), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
GIMT_Encode4(6543), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
GIMT_Encode4(6632),
GIM_Try, GIMT_Encode4(945),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule13Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner5),
GIM_Reject,
GIM_Try, GIMT_Encode4(957),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule15Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner7),
GIM_Try, GIMT_Encode4(968),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule81Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner34),
GIM_Try, GIMT_Encode4(979),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule107Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner50),
GIM_Try, GIMT_Encode4(990),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule169Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner102),
GIM_Try, GIMT_Encode4(1001),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule189Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner121),
GIM_Try, GIMT_Encode4(1012),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner126),
GIM_Try, GIMT_Encode4(1046),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule0Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_SUB),
GIM_CheckConstantInt8, 1, 1, 0,
GIM_CheckIsSafeToFold, 1,
GIR_BuildRootMI, GIMT_Encode2(TargetOpcode::G_SUB),
GIR_RootToRootCopy, 0,
GIR_RootToRootCopy, 2,
GIR_Copy, 0, 1, 2,
GIR_EraseRootFromParent_Done,
GIM_Try, GIMT_Encode4(1083),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule12Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_SUB),
GIM_RecordInsnIgnoreCopies, 2, 1, 2,
GIM_CheckOpcode, 2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
GIM_RecordInsnIgnoreCopies, 3, 0, 2,
GIM_CheckOpcode, 3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
GIM_CheckIsSafeToFold, 3,
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner4),
GIM_Try, GIMT_Encode4(1117),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule3Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_SUB),
GIM_CheckIsSameOperandIgnoreCopies, 0, 2, 1, 2,
GIM_CheckCanReplaceReg, 0, 0, 1, 1,
GIM_CheckIsSafeToFold, 1,
GIR_ReplaceReg, 0, 0, 1, 1,
GIR_EraseRootFromParent_Done,
GIM_Try, GIMT_Encode4(1151),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule98Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_SUB),
GIM_CheckIsSameOperandIgnoreCopies, 0, 2, 1, 2,
GIM_CheckCanReplaceReg, 0, 0, 1, 1,
GIM_CheckIsSafeToFold, 1,
GIR_ReplaceReg, 0, 0, 1, 1,
GIR_EraseRootFromParent_Done,
GIM_Try, GIMT_Encode4(1196),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule5Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_SUB),
GIM_RecordInsnIgnoreCopies, 2, 0, 2,
GIM_CheckOpcode, 2, GIMT_Encode2(TargetOpcode::G_SUB),
GIM_CheckIsSameOperandIgnoreCopies, 2, 1, 1, 2,
GIM_CheckIsSafeToFold, 2,
GIR_BuildRootMI, GIMT_Encode2(TargetOpcode::G_SUB),
GIR_RootToRootCopy, 0,
GIR_Copy, 0, 1, 1,
GIR_Copy, 0, 2, 2,
GIR_EraseRootFromParent_Done,
GIM_Try, GIMT_Encode4(1241),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule4Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_SUB),
GIM_RecordInsnIgnoreCopies, 2, 0, 2,
GIM_CheckOpcode, 2, GIMT_Encode2(TargetOpcode::G_SUB),
GIM_CheckIsSameOperandIgnoreCopies, 2, 2, 1, 1,
GIM_CheckIsSafeToFold, 2,
GIR_BuildRootMI, GIMT_Encode2(TargetOpcode::G_SUB),
GIR_RootToRootCopy, 0,
GIR_Copy, 0, 2, 1,
GIR_Copy, 0, 1, 2,
GIR_EraseRootFromParent_Done,
GIM_Try, GIMT_Encode4(1276),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule49Enabled),
GIM_MIFlags, 0, GIMT_Encode4(MachineInstr::NoSWrap),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_VSCALE),
GIM_RecordInsnIgnoreCopies, 2, 0, 2,
GIM_CheckOpcode, 2, GIMT_Encode2(TargetOpcode::G_VSCALE),
GIM_CheckIsSafeToFold, 2,
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner14),
GIM_Try, GIMT_Encode4(1310),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule1Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 2,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_SUB),
GIM_CheckConstantInt8, 1, 1, 0,
GIM_CheckIsSafeToFold, 1,
GIR_BuildRootMI, GIMT_Encode2(TargetOpcode::G_SUB),
GIR_RootToRootCopy, 0,
GIR_RootToRootCopy, 1,
GIR_Copy, 0, 1, 2,
GIR_EraseRootFromParent_Done,
GIM_Try, GIMT_Encode4(1344),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule2Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 2,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_SUB),
GIM_CheckIsSameOperandIgnoreCopies, 1, 2, 0, 1,
GIM_CheckCanReplaceReg, 0, 0, 1, 1,
GIM_CheckIsSafeToFold, 1,
GIR_ReplaceReg, 0, 0, 1, 1,
GIR_EraseRootFromParent_Done,
GIM_Try, GIMT_Encode4(1378),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule98Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 2,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_SUB),
GIM_CheckIsSameOperandIgnoreCopies, 1, 2, 0, 1,
GIM_CheckCanReplaceReg, 0, 0, 1, 1,
GIM_CheckIsSafeToFold, 1,
GIR_ReplaceReg, 0, 0, 1, 1,
GIR_EraseRootFromParent_Done,
GIM_Try, GIMT_Encode4(1423),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule6Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 2,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_SUB),
GIM_RecordInsnIgnoreCopies, 2, 1, 2,
GIM_CheckOpcode, 2, GIMT_Encode2(TargetOpcode::G_ADD),
GIM_CheckIsSameOperandIgnoreCopies, 2, 1, 0, 1,
GIM_CheckIsSafeToFold, 2,
GIR_BuildRootMI, GIMT_Encode2(TargetOpcode::G_SUB),
GIR_RootToRootCopy, 0,
GIR_Copy, 0, 1, 1,
GIR_Copy, 0, 2, 2,
GIR_EraseRootFromParent_Done,
GIM_Try, GIMT_Encode4(1468),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule7Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 2,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_SUB),
GIM_RecordInsnIgnoreCopies, 2, 1, 2,
GIM_CheckOpcode, 2, GIMT_Encode2(TargetOpcode::G_ADD),
GIM_CheckIsSameOperandIgnoreCopies, 2, 2, 0, 1,
GIM_CheckIsSafeToFold, 2,
GIR_BuildRootMI, GIMT_Encode2(TargetOpcode::G_SUB),
GIR_RootToRootCopy, 0,
GIR_Copy, 0, 1, 1,
GIR_Copy, 0, 2, 1,
GIR_EraseRootFromParent_Done,
GIM_Try, GIMT_Encode4(1491),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule88Enabled),
GIM_CheckConstantInt8, 0, 2, 0,
GIM_CheckCanReplaceReg, 0, 0, 0, 1,
GIR_ReplaceReg, 0, 0, 0, 1,
GIR_EraseRootFromParent_Done,
GIM_Try, GIMT_Encode4(1502),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule111Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner54),
GIM_Reject,
GIM_Try, GIMT_Encode4(1514),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule81Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner34),
GIM_Try, GIMT_Encode4(1525),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule169Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner102),
GIM_Try, GIMT_Encode4(1536),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule189Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner121),
GIM_Try, GIMT_Encode4(1547),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule190Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner122),
GIM_Try, GIMT_Encode4(1584),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule8Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_ADD),
GIM_RecordInsnIgnoreCopies, 2, 1, 2,
GIM_CheckOpcode, 2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
GIM_RecordInsnIgnoreCopies, 3, 0, 2,
GIM_CheckOpcode, 3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
GIM_CheckIsSafeToFold, 3,
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner0),
GIM_Try, GIMT_Encode4(1621),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule11Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_SUB),
GIM_RecordInsnIgnoreCopies, 2, 1, 1,
GIM_CheckOpcode, 2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
GIM_RecordInsnIgnoreCopies, 3, 0, 2,
GIM_CheckOpcode, 3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
GIM_CheckIsSafeToFold, 3,
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner3),
GIM_Try, GIMT_Encode4(1658),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule10Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_SUB),
GIM_RecordInsnIgnoreCopies, 2, 1, 2,
GIM_CheckOpcode, 2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
GIM_RecordInsnIgnoreCopies, 3, 0, 2,
GIM_CheckOpcode, 3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
GIM_CheckIsSafeToFold, 3,
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner2),
GIM_Try, GIMT_Encode4(1695),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule9Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
GIM_RecordInsnIgnoreCopies, 2, 0, 2,
GIM_CheckOpcode, 2, GIMT_Encode2(TargetOpcode::G_ADD),
GIM_RecordInsnIgnoreCopies, 3, 2, 2,
GIM_CheckOpcode, 3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
GIM_CheckIsSafeToFold, 3,
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner1),
GIM_Try, GIMT_Encode4(1722),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule52Enabled),
GIM_MIFlags, 0, GIMT_Encode4(MachineInstr::NoSWrap),
GIM_RecordInsnIgnoreCopies, 1, 0, 2,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_VSCALE),
GIM_CheckIsSafeToFold, 1,
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner17),
GIM_Try, GIMT_Encode4(1745),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule88Enabled),
GIM_CheckConstantInt8, 0, 2, 0,
GIM_CheckCanReplaceReg, 0, 0, 0, 1,
GIR_ReplaceReg, 0, 0, 0, 1,
GIR_EraseRootFromParent_Done,
GIM_Reject,
GIM_Try, GIMT_Encode4(1757),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule76Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner30),
GIM_Try, GIMT_Encode4(1768),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule169Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner102),
GIM_Try, GIMT_Encode4(1779),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner126),
GIM_Try, GIMT_Encode4(1819),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule16Enabled),
GIM_RecordRegType, 0, 0, uint8_t(-1),
GIM_CheckConstantInt8, 0, 2, uint8_t(-1),
GIR_MakeTempReg, 0, uint8_t(-1),
GIR_BuildConstant, 0, GIMT_Encode8(0),
GIR_BuildRootMI, GIMT_Encode2(TargetOpcode::G_SUB),
GIR_RootToRootCopy, 0,
GIR_AddSimpleTempRegister, 0, 0,
GIR_RootToRootCopy, 1,
GIR_EraseRootFromParent_Done,
GIM_Try, GIMT_Encode4(1854),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule50Enabled),
GIM_MIFlags, 0, GIMT_Encode4(MachineInstr::NoSWrap),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_VSCALE),
GIM_RecordInsnIgnoreCopies, 2, 0, 2,
GIM_CheckOpcode, 2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
GIM_CheckIsSafeToFold, 2,
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner15),
GIM_Try, GIMT_Encode4(1877),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule91Enabled),
GIM_CheckConstantInt8, 0, 2, 0,
GIM_CheckCanReplaceReg, 0, 0, 0, 2,
GIR_ReplaceReg, 0, 0, 0, 2,
GIR_EraseRootFromParent_Done,
GIM_Try, GIMT_Encode4(1900),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule96Enabled),
GIM_CheckConstantInt8, 0, 2, 1,
GIM_CheckCanReplaceReg, 0, 0, 0, 1,
GIR_ReplaceReg, 0, 0, 0, 1,
GIR_EraseRootFromParent_Done,
GIM_Try, GIMT_Encode4(1911),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule14Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner6),
GIM_Reject,
GIM_Try, GIMT_Encode4(1923),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner41),
GIM_Try, GIMT_Encode4(1934),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule156Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner93),
GIM_Try, GIMT_Encode4(1945),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule169Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner102),
GIM_Try, GIMT_Encode4(1956),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule175Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner107),
GIM_Try, GIMT_Encode4(1967),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule189Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner121),
GIM_Try, GIMT_Encode4(1984),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule176Enabled),
GIM_MIFlagsNot, 0, GIMT_Encode4(MachineInstr::IsExact),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner108),
GIM_Reject,
GIM_Try, GIMT_Encode4(1996),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule78Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner32),
GIM_Try, GIMT_Encode4(2007),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner41),
GIM_Try, GIMT_Encode4(2018),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule156Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner93),
GIM_Try, GIMT_Encode4(2029),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule169Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner102),
GIM_Try, GIMT_Encode4(2040),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule174Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner106),
GIM_Try, GIMT_Encode4(2051),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule189Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner121),
GIM_Try, GIMT_Encode4(2068),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule177Enabled),
GIM_MIFlagsNot, 0, GIMT_Encode4(MachineInstr::IsExact),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner109),
GIM_Reject,
GIM_Try, GIMT_Encode4(2080),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner41),
GIM_Try, GIMT_Encode4(2091),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule156Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner93),
GIM_Try, GIMT_Encode4(2102),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule169Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner102),
GIM_Try, GIMT_Encode4(2113),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule189Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner121),
GIM_Reject,
GIM_Try, GIMT_Encode4(2125),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule78Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner32),
GIM_Try, GIMT_Encode4(2136),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner41),
GIM_Try, GIMT_Encode4(2147),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule124Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner66),
GIM_Try, GIMT_Encode4(2158),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule156Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner93),
GIM_Try, GIMT_Encode4(2169),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule169Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner102),
GIM_Try, GIMT_Encode4(2180),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule189Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner121),
GIM_Reject,
GIM_Try, GIMT_Encode4(2192),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule73Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner27),
GIM_Try, GIMT_Encode4(2203),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule76Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner30),
GIM_Try, GIMT_Encode4(2214),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule108Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner51),
GIM_Try, GIMT_Encode4(2225),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule116Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner59),
GIM_Try, GIMT_Encode4(2236),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule121Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner63),
GIM_Try, GIMT_Encode4(2247),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule145Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner82),
GIM_Try, GIMT_Encode4(2258),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule169Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner102),
GIM_Try, GIMT_Encode4(2269),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule180Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner112),
GIM_Try, GIMT_Encode4(2280),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule189Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner121),
GIM_Try, GIMT_Encode4(2291),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner126),
GIM_Try, GIMT_Encode4(2302),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule196Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner128),
GIM_Try, GIMT_Encode4(2400),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule199Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_ICMP),
GIM_RecordRegType, 1, 2, uint8_t(-1),
GIM_CheckConstantInt8, 1, 3, 0,
GIM_RecordInsnIgnoreCopies, 2, 0, 2,
GIM_CheckOpcode, 2, GIMT_Encode2(TargetOpcode::G_ICMP),
GIM_CheckIsSameOperandIgnoreCopies, 2, 1, 1, 1,
GIM_CheckConstantInt8, 2, 3, 0,
GIM_CheckCxxInsnPredicate, 0, GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner7),
GIM_CheckIsSafeToFold, 2,
GIR_MakeTempReg, 1, uint8_t(-1),
GIR_BuildConstant, 1, GIMT_Encode8(0),
GIR_MakeTempReg, 0, uint8_t(-1),
GIR_BuildRootMI, GIMT_Encode2(TargetOpcode::G_OR),
GIR_AddTempRegister, 0, 0, GIMT_Encode2(RegState::Define),
GIR_Copy, 0, 1, 2,
GIR_Copy, 0, 2, 2,
GIR_BuildMI, 1, GIMT_Encode2(TargetOpcode::G_ICMP),
GIR_Copy, 1, 0, 0,
GIR_Copy, 1, 1, 1,
GIR_AddSimpleTempRegister, 1, 0,
GIR_AddSimpleTempRegister, 1, 1,
GIR_EraseRootFromParent_Done,
GIM_Try, GIMT_Encode4(2437),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule166Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_LSHR),
GIM_RecordInsnIgnoreCopies, 2, 1, 2,
GIM_CheckOpcode, 2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
GIM_RecordInsnIgnoreCopies, 3, 0, 2,
GIM_CheckOpcode, 3, GIMT_Encode2(TargetOpcode::G_CONSTANT),
GIM_CheckIsSafeToFold, 3,
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner99),
GIM_Try, GIMT_Encode4(2461),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule89Enabled),
GIM_CheckIsSameOperandIgnoreCopies, 0, 2, 0, 1,
GIM_CheckCanReplaceReg, 0, 0, 0, 1,
GIR_ReplaceReg, 0, 0, 0, 1,
GIR_EraseRootFromParent_Done,
GIM_Reject,
GIM_Try, GIMT_Encode4(2473),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule77Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner31),
GIM_Try, GIMT_Encode4(2484),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule108Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner51),
GIM_Try, GIMT_Encode4(2495),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule123Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner65),
GIM_Try, GIMT_Encode4(2506),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule155Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner92),
GIM_Try, GIMT_Encode4(2517),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule157Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner94),
GIM_Try, GIMT_Encode4(2528),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule169Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner102),
GIM_Try, GIMT_Encode4(2539),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule189Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner121),
GIM_Try, GIMT_Encode4(2550),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner126),
GIM_Try, GIMT_Encode4(2561),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule197Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner129),
GIM_Try, GIMT_Encode4(2659),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule200Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_ICMP),
GIM_RecordRegType, 1, 2, uint8_t(-1),
GIM_CheckConstantInt8, 1, 3, 0,
GIM_RecordInsnIgnoreCopies, 2, 0, 2,
GIM_CheckOpcode, 2, GIMT_Encode2(TargetOpcode::G_ICMP),
GIM_CheckIsSameOperandIgnoreCopies, 2, 1, 1, 1,
GIM_CheckConstantInt8, 2, 3, 0,
GIM_CheckCxxInsnPredicate, 0, GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner8),
GIM_CheckIsSafeToFold, 2,
GIR_MakeTempReg, 1, uint8_t(-1),
GIR_BuildConstant, 1, GIMT_Encode8(0),
GIR_MakeTempReg, 0, uint8_t(-1),
GIR_BuildRootMI, GIMT_Encode2(TargetOpcode::G_OR),
GIR_AddTempRegister, 0, 0, GIMT_Encode2(RegState::Define),
GIR_Copy, 0, 1, 2,
GIR_Copy, 0, 2, 2,
GIR_BuildMI, 1, GIMT_Encode2(TargetOpcode::G_ICMP),
GIR_Copy, 1, 0, 0,
GIR_Copy, 1, 1, 1,
GIR_AddSimpleTempRegister, 1, 0,
GIR_AddSimpleTempRegister, 1, 1,
GIR_EraseRootFromParent_Done,
GIM_Try, GIMT_Encode4(2683),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule89Enabled),
GIM_CheckIsSameOperandIgnoreCopies, 0, 2, 0, 1,
GIM_CheckCanReplaceReg, 0, 0, 0, 1,
GIR_ReplaceReg, 0, 0, 0, 1,
GIR_EraseRootFromParent_Done,
GIM_Try, GIMT_Encode4(2706),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule88Enabled),
GIM_CheckConstantInt8, 0, 2, 0,
GIM_CheckCanReplaceReg, 0, 0, 0, 1,
GIR_ReplaceReg, 0, 0, 0, 1,
GIR_EraseRootFromParent_Done,
GIM_Reject,
GIM_Try, GIMT_Encode4(2718),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule81Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner34),
GIM_Try, GIMT_Encode4(2729),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule108Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner51),
GIM_Try, GIMT_Encode4(2740),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule129Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner71),
GIM_Try, GIMT_Encode4(2751),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule151Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner88),
GIM_Try, GIMT_Encode4(2762),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule169Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner102),
GIM_Try, GIMT_Encode4(2773),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule189Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner121),
GIM_Try, GIMT_Encode4(2784),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner126),
GIM_Try, GIMT_Encode4(2807),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule88Enabled),
GIM_CheckConstantInt8, 0, 2, 0,
GIM_CheckCanReplaceReg, 0, 0, 0, 1,
GIR_ReplaceReg, 0, 0, 0, 1,
GIR_EraseRootFromParent_Done,
GIM_Reject,
GIM_Try, GIMT_Encode4(2819),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule106Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner49),
GIM_Reject,
GIM_Try, GIMT_Encode4(2831),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule85Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner38),
GIM_Try, GIMT_Encode4(2842),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule131Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner73),
GIM_Try, GIMT_Encode4(2853),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule132Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner74),
GIM_Try, GIMT_Encode4(2864),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule133Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner75),
GIM_Try, GIMT_Encode4(2875),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule134Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner76),
GIM_Reject,
GIM_Try, GIMT_Encode4(2887),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule135Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner77),
GIM_Reject,
GIM_Try, GIMT_Encode4(2899),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule71Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner25),
GIM_Try, GIMT_Encode4(2910),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule99Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner45),
GIM_Reject,
GIM_Try, GIMT_Encode4(2922),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule99Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner45),
GIM_Reject,
GIM_Try, GIMT_Encode4(2934),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule198Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner130),
GIM_Reject,
GIM_Try, GIMT_Encode4(2956),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_INTTOPTR),
GIM_CheckIsSafeToFold, 1,
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner43),
GIM_Reject,
GIM_Try, GIMT_Encode4(2968),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule92Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner42),
GIM_Reject,
GIM_Try, GIMT_Encode4(2990),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule102Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_BITCAST),
GIM_CheckIsSafeToFold, 1,
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner48),
GIM_Reject,
GIM_Try, GIMT_Encode4(3020),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule17Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_FREEZE),
GIM_CheckCanReplaceReg, 0, 0, 0, 1,
GIM_CheckIsSafeToFold, 1,
GIR_ReplaceReg, 0, 0, 0, 1,
GIR_EraseRootFromParent_Done,
GIM_Try, GIMT_Encode4(3043),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule53Enabled),
GIM_CheckCxxInsnPredicate, 0, GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner1),
GIM_CheckCanReplaceReg, 0, 0, 0, 1,
GIR_ReplaceReg, 0, 0, 0, 1,
GIR_EraseRootFromParent_Done,
GIM_Try, GIMT_Encode4(3054),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule54Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner18),
GIM_Reject,
GIM_Try, GIMT_Encode4(3066),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule72Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner26),
GIM_Reject,
GIM_Try, GIMT_Encode4(3078),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule72Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner26),
GIM_Reject,
GIM_Try, GIMT_Encode4(3090),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule72Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner26),
GIM_Reject,
GIM_Try, GIMT_Encode4(3102),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule84Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner37),
GIM_Reject,
GIM_Try, GIMT_Encode4(3114),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule94Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner44),
GIM_Try, GIMT_Encode4(3125),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule172Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner105),
GIM_Try, GIMT_Encode4(3146),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule59Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_SELECT),
GIM_CheckIsSafeToFold, 1,
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner20),
GIM_Try, GIMT_Encode4(3167),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule65Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_ANYEXT),
GIM_CheckIsSafeToFold, 1,
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner21),
GIM_Try, GIMT_Encode4(3188),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule67Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_SEXT),
GIM_CheckIsSafeToFold, 1,
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner21),
GIM_Try, GIMT_Encode4(3209),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule66Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_ZEXT),
GIM_CheckIsSafeToFold, 1,
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner21),
GIM_Reject,
GIM_Try, GIMT_Encode4(3221),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule81Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner34),
GIM_Try, GIMT_Encode4(3232),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule100Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner46),
GIM_Try, GIMT_Encode4(3243),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule101Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner47),
GIM_Try, GIMT_Encode4(3254),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule136Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner78),
GIM_Try, GIMT_Encode4(3275),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule60Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_SELECT),
GIM_CheckIsSafeToFold, 1,
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner20),
GIM_Try, GIMT_Encode4(3296),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule57Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_ANYEXT),
GIM_CheckIsSafeToFold, 1,
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner19),
GIM_Try, GIMT_Encode4(3320),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule68Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR),
GIM_CheckNumOperandsGE, 1, 2,
GIM_CheckIsSafeToFold, 1,
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner22),
GIM_Try, GIMT_Encode4(3341),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule56Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_SEXT),
GIM_CheckIsSafeToFold, 1,
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner19),
GIM_Try, GIMT_Encode4(3362),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule55Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_ZEXT),
GIM_CheckIsSafeToFold, 1,
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner19),
GIM_Reject,
GIM_Try, GIMT_Encode4(3374),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule172Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner105),
GIM_Try, GIMT_Encode4(3395),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule64Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_ANYEXT),
GIM_CheckIsSafeToFold, 1,
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner21),
GIM_Try, GIMT_Encode4(3416),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule63Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_SEXT),
GIM_CheckIsSafeToFold, 1,
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner21),
GIM_Try, GIMT_Encode4(3443),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule202Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_TRUNC),
GIM_MIFlags, 1, GIMT_Encode4(MachineInstr::NoSWrap),
GIM_CheckIsSafeToFold, 1,
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner132),
GIM_Reject,
GIM_Try, GIMT_Encode4(3455),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule114Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner57),
GIM_Try, GIMT_Encode4(3466),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule122Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner64),
GIM_Try, GIMT_Encode4(3477),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule165Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner98),
GIM_Try, GIMT_Encode4(3488),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule128Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner70),
GIM_Reject,
GIM_Try, GIMT_Encode4(3500),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule125Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner67),
GIM_Try, GIMT_Encode4(3511),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule172Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner105),
GIM_Try, GIMT_Encode4(3532),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule58Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_SELECT),
GIM_CheckIsSafeToFold, 1,
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner20),
GIM_Try, GIMT_Encode4(3553),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule62Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_ANYEXT),
GIM_CheckIsSafeToFold, 1,
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner21),
GIM_Try, GIMT_Encode4(3580),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule203Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_TRUNC),
GIM_MIFlags, 1, GIMT_Encode4(MachineInstr::NoUWrap),
GIM_CheckIsSafeToFold, 1,
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner133),
GIM_Try, GIMT_Encode4(3601),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule61Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_ZEXT),
GIM_CheckIsSafeToFold, 1,
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner21),
GIM_Try, GIMT_Encode4(3618),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled),
GIM_MIFlags, 0, GIMT_Encode4(MachineInstr::NonNeg),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner134),
GIM_Reject,
GIM_Try, GIMT_Encode4(3630),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule78Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner32),
GIM_Try, GIMT_Encode4(3641),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule79Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner33),
GIM_Try, GIMT_Encode4(3652),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule109Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner52),
GIM_Try, GIMT_Encode4(3663),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule153Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner90),
GIM_Try, GIMT_Encode4(3674),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule154Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner91),
GIM_Try, GIMT_Encode4(3685),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule164Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner97),
GIM_Try, GIMT_Encode4(3696),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule169Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner102),
GIM_Try, GIMT_Encode4(3707),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule189Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner121),
GIM_Try, GIMT_Encode4(3742),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule51Enabled),
GIM_MIFlags, 0, GIMT_Encode4(MachineInstr::NoSWrap),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_VSCALE),
GIM_RecordInsnIgnoreCopies, 2, 0, 2,
GIM_CheckOpcode, 2, GIMT_Encode2(TargetOpcode::G_CONSTANT),
GIM_CheckIsSafeToFold, 2,
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner16),
GIM_Try, GIMT_Encode4(3765),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule88Enabled),
GIM_CheckConstantInt8, 0, 2, 0,
GIM_CheckCanReplaceReg, 0, 0, 0, 1,
GIR_ReplaceReg, 0, 0, 0, 1,
GIR_EraseRootFromParent_Done,
GIM_Try, GIMT_Encode4(3776),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule115Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner58),
GIM_Reject,
GIM_Try, GIMT_Encode4(3788),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule79Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner33),
GIM_Try, GIMT_Encode4(3799),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule109Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner52),
GIM_Try, GIMT_Encode4(3810),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule153Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner90),
GIM_Try, GIMT_Encode4(3821),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule154Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner91),
GIM_Try, GIMT_Encode4(3832),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule167Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner100),
GIM_Try, GIMT_Encode4(3843),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule168Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner101),
GIM_Try, GIMT_Encode4(3854),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule169Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner102),
GIM_Try, GIMT_Encode4(3865),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule189Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner121),
GIM_Try, GIMT_Encode4(3888),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule88Enabled),
GIM_CheckConstantInt8, 0, 2, 0,
GIM_CheckCanReplaceReg, 0, 0, 0, 1,
GIR_ReplaceReg, 0, 0, 0, 1,
GIR_EraseRootFromParent_Done,
GIM_Reject,
GIM_Try, GIMT_Encode4(3900),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule79Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner33),
GIM_Try, GIMT_Encode4(3911),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule109Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner52),
GIM_Try, GIMT_Encode4(3922),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule113Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner56),
GIM_Try, GIMT_Encode4(3933),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule153Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner90),
GIM_Try, GIMT_Encode4(3944),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule154Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner91),
GIM_Try, GIMT_Encode4(3955),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule167Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner100),
GIM_Try, GIMT_Encode4(3966),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule168Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner101),
GIM_Try, GIMT_Encode4(3977),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule169Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner102),
GIM_Try, GIMT_Encode4(3988),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule189Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner121),
GIM_Try, GIMT_Encode4(4011),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule88Enabled),
GIM_CheckConstantInt8, 0, 2, 0,
GIM_CheckCanReplaceReg, 0, 0, 0, 1,
GIR_ReplaceReg, 0, 0, 0, 1,
GIR_EraseRootFromParent_Done,
GIM_Reject,
GIM_Try, GIMT_Encode4(4023),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule158Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner95),
GIM_Try, GIMT_Encode4(4034),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule161Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner96),
GIM_Try, GIMT_Encode4(4054),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule160Enabled),
GIM_CheckConstantInt8, 0, 3, 0,
GIR_BuildRootMI, GIMT_Encode2(TargetOpcode::COPY),
GIR_RootToRootCopy, 0,
GIR_RootToRootCopy, 1,
GIR_EraseRootFromParent_Done,
GIM_Reject,
GIM_Try, GIMT_Encode4(4066),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule158Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner95),
GIM_Try, GIMT_Encode4(4077),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule161Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner96),
GIM_Try, GIMT_Encode4(4097),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule159Enabled),
GIM_CheckConstantInt8, 0, 3, 0,
GIR_BuildRootMI, GIMT_Encode2(TargetOpcode::COPY),
GIR_RootToRootCopy, 0,
GIR_RootToRootCopy, 2,
GIR_EraseRootFromParent_Done,
GIM_Reject,
GIM_Try, GIMT_Encode4(4121),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule88Enabled),
GIM_CheckConstantInt8, 0, 2, 0,
GIM_CheckCanReplaceReg, 0, 0, 0, 1,
GIR_ReplaceReg, 0, 0, 0, 1,
GIR_EraseRootFromParent_Done,
GIM_Reject,
GIM_Try, GIMT_Encode4(4145),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule88Enabled),
GIM_CheckConstantInt8, 0, 2, 0,
GIM_CheckCanReplaceReg, 0, 0, 0, 1,
GIR_ReplaceReg, 0, 0, 0, 1,
GIR_EraseRootFromParent_Done,
GIM_Reject,
GIM_Try, GIMT_Encode4(4157),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule126Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner68),
GIM_Try, GIMT_Encode4(4168),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule127Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner69),
GIM_Try, GIMT_Encode4(4179),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule192Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner124),
GIM_Reject,
GIM_Try, GIMT_Encode4(4191),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule87Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner40),
GIM_Try, GIMT_Encode4(4202),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule118Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner60),
GIM_Try, GIMT_Encode4(4213),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule120Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner62),
GIM_Try, GIMT_Encode4(4224),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule191Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner123),
GIM_Try, GIMT_Encode4(4245),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule119Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_ICMP),
GIM_CheckIsSafeToFold, 1,
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner61),
GIM_Try, GIMT_Encode4(4274),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule117Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
GIM_CheckCanReplaceReg, 0, 0, 0, 3,
GIM_CheckIsSafeToFold, 1,
GIR_ReplaceReg, 0, 0, 0, 3,
GIR_EraseRootFromParent_Done,
GIM_Reject,
GIM_Try, GIMT_Encode4(4286),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner126),
GIM_Try, GIMT_Encode4(4297),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule201Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner131),
GIM_Reject,
GIM_Try, GIMT_Encode4(4309),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule148Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner85),
GIM_Reject,
GIM_Try, GIMT_Encode4(4321),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule148Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner85),
GIM_Reject,
GIM_Try, GIMT_Encode4(4333),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner126),
GIM_Try, GIMT_Encode4(4344),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule201Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner131),
GIM_Reject,
GIM_Try, GIMT_Encode4(4356),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule148Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner85),
GIM_Reject,
GIM_Try, GIMT_Encode4(4368),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule148Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner85),
GIM_Reject,
GIM_Try, GIMT_Encode4(4380),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule146Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner83),
GIM_Try, GIMT_Encode4(4391),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule147Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner84),
GIM_Try, GIMT_Encode4(4402),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner126),
GIM_Reject,
GIM_Try, GIMT_Encode4(4414),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule146Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner83),
GIM_Try, GIMT_Encode4(4425),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule147Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner84),
GIM_Try, GIMT_Encode4(4436),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner126),
GIM_Reject,
GIM_Try, GIMT_Encode4(4448),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule178Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner110),
GIM_Try, GIMT_Encode4(4459),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner126),
GIM_Reject,
GIM_Try, GIMT_Encode4(4471),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner126),
GIM_Reject,
GIM_Try, GIMT_Encode4(4483),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner126),
GIM_Reject,
GIM_Try, GIMT_Encode4(4495),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner126),
GIM_Reject,
GIM_Try, GIMT_Encode4(4507),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule153Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner90),
GIM_Try, GIMT_Encode4(4518),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule154Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner91),
GIM_Reject,
GIM_Try, GIMT_Encode4(4530),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule153Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner90),
GIM_Try, GIMT_Encode4(4541),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule154Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner91),
GIM_Reject,
GIM_Try, GIMT_Encode4(4553),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner126),
GIM_Reject,
GIM_Try, GIMT_Encode4(4565),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner126),
GIM_Reject,
GIM_Try, GIMT_Encode4(4577),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner126),
GIM_Reject,
GIM_Try, GIMT_Encode4(4589),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner126),
GIM_Reject,
GIM_Try, GIMT_Encode4(4601),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule170Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner103),
GIM_Try, GIMT_Encode4(4612),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule179Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner111),
GIM_Try, GIMT_Encode4(4623),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule181Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner113),
GIM_Try, GIMT_Encode4(4634),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule182Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner114),
GIM_Try, GIMT_Encode4(4645),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule183Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner115),
GIM_Try, GIMT_Encode4(4656),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule184Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner116),
GIM_Try, GIMT_Encode4(4667),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule189Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner121),
GIM_Try, GIMT_Encode4(4678),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule195Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner127),
GIM_Try, GIMT_Encode4(4701),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule104Enabled),
GIM_CheckCxxInsnPredicate, 0, GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner3),
GIM_CheckCanReplaceReg, 0, 0, 0, 1,
GIR_ReplaceReg, 0, 0, 0, 1,
GIR_EraseRootFromParent_Done,
GIM_Reject,
GIM_Try, GIMT_Encode4(4713),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule170Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner103),
GIM_Try, GIMT_Encode4(4724),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule179Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner111),
GIM_Try, GIMT_Encode4(4735),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule185Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner117),
GIM_Try, GIMT_Encode4(4746),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule186Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner118),
GIM_Try, GIMT_Encode4(4757),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner119),
GIM_Try, GIMT_Encode4(4768),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule188Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner120),
GIM_Try, GIMT_Encode4(4779),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule189Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner121),
GIM_Try, GIMT_Encode4(4790),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule193Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner125),
GIM_Reject,
GIM_Try, GIMT_Encode4(4802),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule170Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner103),
GIM_Try, GIMT_Encode4(4813),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule179Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner111),
GIM_Try, GIMT_Encode4(4824),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule189Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner121),
GIM_Try, GIMT_Encode4(4835),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule195Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner127),
GIM_Try, GIMT_Encode4(4858),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule97Enabled),
GIM_CheckCxxInsnPredicate, 0, GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner2),
GIM_CheckCanReplaceReg, 0, 0, 0, 1,
GIR_ReplaceReg, 0, 0, 0, 1,
GIR_EraseRootFromParent_Done,
GIM_Try, GIMT_Encode4(4878),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule105Enabled),
GIM_CheckCxxInsnPredicate, 0, GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner4),
GIR_BuildRootMI, GIMT_Encode2(TargetOpcode::G_FNEG),
GIR_RootToRootCopy, 0,
GIR_RootToRootCopy, 1,
GIR_EraseRootFromParent_Done,
GIM_Reject,
GIM_Try, GIMT_Encode4(4890),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule171Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner104),
GIM_Try, GIMT_Encode4(4901),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule179Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner111),
GIM_Reject,
GIM_Try, GIMT_Encode4(4913),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule171Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner104),
GIM_Try, GIMT_Encode4(4924),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule179Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner111),
GIM_Reject,
GIM_Try, GIMT_Encode4(4936),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule170Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner103),
GIM_Try, GIMT_Encode4(4947),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule179Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner111),
GIM_Try, GIMT_Encode4(4958),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule189Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner121),
GIM_Reject,
GIM_Try, GIMT_Encode4(4970),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule189Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner121),
GIM_Reject,
GIM_Try, GIMT_Encode4(4992),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule150Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 2,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_CONSTANT),
GIM_CheckIsSafeToFold, 1,
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner87),
GIM_Reject,
GIM_Try, GIMT_Encode4(5014),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule140Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_FCONSTANT),
GIM_CheckIsSafeToFold, 1,
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner79),
GIM_Reject,
GIM_Try, GIMT_Encode4(5036),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule137Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_FCONSTANT),
GIM_CheckIsSafeToFold, 1,
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner79),
GIM_Try, GIMT_Encode4(5065),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule95Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_FNEG),
GIM_CheckCanReplaceReg, 0, 0, 1, 1,
GIM_CheckIsSafeToFold, 1,
GIR_ReplaceReg, 0, 0, 1, 1,
GIR_EraseRootFromParent_Done,
GIM_Reject,
GIM_Try, GIMT_Encode4(5087),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule141Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_FCONSTANT),
GIM_CheckIsSafeToFold, 1,
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner79),
GIM_Try, GIMT_Encode4(5108),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule103Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_FPEXT),
GIM_CheckIsSafeToFold, 1,
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner48),
GIM_Reject,
GIM_Try, GIMT_Encode4(5120),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule81Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner34),
GIM_Reject,
GIM_Try, GIMT_Encode4(5132),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule81Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner34),
GIM_Reject,
GIM_Try, GIMT_Encode4(5144),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule75Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner29),
GIM_Try, GIMT_Encode4(5159),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule142Enabled),
GIM_CheckConstantInt8, 0, 1, 0,
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner80),
GIM_Reject,
GIM_Try, GIMT_Encode4(5171),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule75Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner29),
GIM_Try, GIMT_Encode4(5186),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule143Enabled),
GIM_CheckConstantInt8, 0, 1, 0,
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner80),
GIM_Reject,
GIM_Try, GIMT_Encode4(5216),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule17Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_FABS),
GIM_CheckCanReplaceReg, 0, 0, 0, 1,
GIM_CheckIsSafeToFold, 1,
GIR_ReplaceReg, 0, 0, 0, 1,
GIR_EraseRootFromParent_Done,
GIM_Try, GIMT_Encode4(5237),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule138Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_FCONSTANT),
GIM_CheckIsSafeToFold, 1,
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner79),
GIM_Try, GIMT_Encode4(5265),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule173Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_FNEG),
GIM_CheckIsSafeToFold, 1,
GIR_BuildRootMI, GIMT_Encode2(TargetOpcode::G_FABS),
GIR_RootToRootCopy, 0,
GIR_Copy, 0, 1, 1,
GIR_EraseRootFromParent_Done,
GIM_Reject,
GIM_Try, GIMT_Encode4(5295),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule17Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_FCANONICALIZE),
GIM_CheckCanReplaceReg, 0, 0, 0, 1,
GIM_CheckIsSafeToFold, 1,
GIR_ReplaceReg, 0, 0, 0, 1,
GIR_EraseRootFromParent_Done,
GIM_Reject,
GIM_Try, GIMT_Encode4(5307),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule149Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner86),
GIM_Try, GIMT_Encode4(5318),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule189Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner121),
GIM_Try, GIMT_Encode4(5329),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule195Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner127),
GIM_Reject,
GIM_Try, GIMT_Encode4(5341),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule149Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner86),
GIM_Try, GIMT_Encode4(5352),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule189Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner121),
GIM_Try, GIMT_Encode4(5363),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule195Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner127),
GIM_Reject,
GIM_Try, GIMT_Encode4(5375),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule195Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner127),
GIM_Reject,
GIM_Try, GIMT_Encode4(5387),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule195Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner127),
GIM_Reject,
GIM_Try, GIMT_Encode4(5399),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule149Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner86),
GIM_Try, GIMT_Encode4(5410),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule189Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner121),
GIM_Try, GIMT_Encode4(5421),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule195Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner127),
GIM_Reject,
GIM_Try, GIMT_Encode4(5433),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule149Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner86),
GIM_Try, GIMT_Encode4(5444),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule189Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner121),
GIM_Try, GIMT_Encode4(5455),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule195Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner127),
GIM_Reject,
GIM_Try, GIMT_Encode4(5467),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule110Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner53),
GIM_Try, GIMT_Encode4(5478),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule112Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner55),
GIM_Try, GIMT_Encode4(5489),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule144Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner81),
GIM_Try, GIMT_Encode4(5500),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule152Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner89),
GIM_Try, GIMT_Encode4(5511),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule169Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner102),
GIM_Try, GIMT_Encode4(5522),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule189Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner121),
GIM_Try, GIMT_Encode4(5545),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule88Enabled),
GIM_CheckConstantInt8, 0, 2, 0,
GIM_CheckCanReplaceReg, 0, 0, 0, 1,
GIR_ReplaceReg, 0, 0, 0, 1,
GIR_EraseRootFromParent_Done,
GIM_Reject,
GIM_Try, GIMT_Encode4(5557),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule169Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner102),
GIM_Try, GIMT_Encode4(5568),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule189Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner121),
GIM_Try, GIMT_Encode4(5579),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner126),
GIM_Reject,
GIM_Try, GIMT_Encode4(5591),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule169Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner102),
GIM_Try, GIMT_Encode4(5602),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule189Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner121),
GIM_Try, GIMT_Encode4(5613),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner126),
GIM_Reject,
GIM_Try, GIMT_Encode4(5625),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule169Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner102),
GIM_Try, GIMT_Encode4(5636),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule189Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner121),
GIM_Try, GIMT_Encode4(5647),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner126),
GIM_Reject,
GIM_Try, GIMT_Encode4(5659),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule169Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner102),
GIM_Try, GIMT_Encode4(5670),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule189Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner121),
GIM_Try, GIMT_Encode4(5681),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner126),
GIM_Reject,
GIM_Try, GIMT_Encode4(5693),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule80Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner32),
GIM_Reject,
GIM_Try, GIMT_Encode4(5705),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule130Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner72),
GIM_Reject,
GIM_Try, GIMT_Encode4(5717),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule23Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner9),
GIM_Try, GIMT_Encode4(5728),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule69Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner23),
GIM_Try, GIMT_Encode4(5739),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule86Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner39),
GIM_Try, GIMT_Encode4(5778),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule48Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 2,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_EXTRACT_VECTOR_ELT),
GIM_CheckIsSameOperandIgnoreCopies, 1, 1, 0, 1,
GIM_CheckIsSameOperandIgnoreCopies, 0, 3, 1, 2,
GIM_CheckCanReplaceReg, 0, 0, 0, 1,
GIM_CheckIsSafeToFold, 1,
GIR_ReplaceReg, 0, 0, 0, 1,
GIR_EraseRootFromParent_Done,
GIM_Try, GIMT_Encode4(5811),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule21Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 2,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
GIM_CheckCxxInsnPredicate, 0, GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner0),
GIM_CheckCanReplaceReg, 0, 0, 0, 1,
GIM_CheckIsSafeToFold, 1,
GIR_ReplaceReg, 0, 0, 0, 1,
GIR_EraseRootFromParent_Done,
GIM_Try, GIMT_Encode4(5835),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule20Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 3,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
GIM_CheckIsSafeToFold, 1,
GIR_BuildRootMI, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
GIR_RootToRootCopy, 0,
GIR_EraseRootFromParent_Done,
GIM_Reject,
GIM_Try, GIMT_Encode4(5847),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule22Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner8),
GIM_Try, GIMT_Encode4(5858),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule70Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner24),
GIM_Try, GIMT_Encode4(5869),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule74Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner28),
GIM_Try, GIMT_Encode4(5880),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule86Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner39),
GIM_Try, GIMT_Encode4(5904),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule39Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR),
GIM_CheckNumOperands, 1, 17,
GIM_CheckIsSafeToFold, 1,
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner11),
GIM_Try, GIMT_Encode4(5928),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule38Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR),
GIM_CheckNumOperands, 1, 16,
GIM_CheckIsSafeToFold, 1,
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner11),
GIM_Try, GIMT_Encode4(5952),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule37Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR),
GIM_CheckNumOperands, 1, 15,
GIM_CheckIsSafeToFold, 1,
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner11),
GIM_Try, GIMT_Encode4(5976),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule36Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR),
GIM_CheckNumOperands, 1, 14,
GIM_CheckIsSafeToFold, 1,
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner11),
GIM_Try, GIMT_Encode4(6000),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule35Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR),
GIM_CheckNumOperands, 1, 13,
GIM_CheckIsSafeToFold, 1,
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner11),
GIM_Try, GIMT_Encode4(6024),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule34Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR),
GIM_CheckNumOperands, 1, 12,
GIM_CheckIsSafeToFold, 1,
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner11),
GIM_Try, GIMT_Encode4(6048),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule33Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR),
GIM_CheckNumOperands, 1, 11,
GIM_CheckIsSafeToFold, 1,
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner11),
GIM_Try, GIMT_Encode4(6072),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule32Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR),
GIM_CheckNumOperands, 1, 10,
GIM_CheckIsSafeToFold, 1,
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner11),
GIM_Try, GIMT_Encode4(6096),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule31Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR),
GIM_CheckNumOperands, 1, 9,
GIM_CheckIsSafeToFold, 1,
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner11),
GIM_Try, GIMT_Encode4(6120),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule46Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR_TRUNC),
GIM_CheckNumOperands, 1, 9,
GIM_CheckIsSafeToFold, 1,
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner12),
GIM_Try, GIMT_Encode4(6144),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule30Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR),
GIM_CheckNumOperands, 1, 8,
GIM_CheckIsSafeToFold, 1,
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner11),
GIM_Try, GIMT_Encode4(6168),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule45Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR_TRUNC),
GIM_CheckNumOperands, 1, 8,
GIM_CheckIsSafeToFold, 1,
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner12),
GIM_Try, GIMT_Encode4(6192),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule44Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR_TRUNC),
GIM_CheckNumOperands, 1, 7,
GIM_CheckIsSafeToFold, 1,
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner12),
GIM_Try, GIMT_Encode4(6216),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule29Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR),
GIM_CheckNumOperands, 1, 6,
GIM_CheckIsSafeToFold, 1,
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner11),
GIM_Try, GIMT_Encode4(6240),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule43Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR_TRUNC),
GIM_CheckNumOperands, 1, 6,
GIM_CheckIsSafeToFold, 1,
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner12),
GIM_Try, GIMT_Encode4(6264),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule28Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR),
GIM_CheckNumOperands, 1, 5,
GIM_CheckIsSafeToFold, 1,
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner11),
GIM_Try, GIMT_Encode4(6288),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule42Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR_TRUNC),
GIM_CheckNumOperands, 1, 5,
GIM_CheckIsSafeToFold, 1,
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner12),
GIM_Try, GIMT_Encode4(6312),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule27Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR),
GIM_CheckNumOperands, 1, 4,
GIM_CheckIsSafeToFold, 1,
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner11),
GIM_Try, GIMT_Encode4(6336),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule41Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR_TRUNC),
GIM_CheckNumOperands, 1, 4,
GIM_CheckIsSafeToFold, 1,
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner12),
GIM_Try, GIMT_Encode4(6370),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule24Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_INSERT_VECTOR_ELT),
GIM_CheckIsSameOperandIgnoreCopies, 0, 2, 1, 3,
GIM_CheckCanReplaceReg, 0, 0, 1, 2,
GIM_CheckIsSafeToFold, 1,
GIR_ReplaceReg, 0, 0, 1, 2,
GIR_EraseRootFromParent_Done,
GIM_Try, GIMT_Encode4(6391),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule25Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_INSERT_VECTOR_ELT),
GIM_CheckIsSafeToFold, 1,
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner10),
GIM_Try, GIMT_Encode4(6412),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule47Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_SHUFFLE_VECTOR),
GIM_CheckIsSafeToFold, 1,
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner13),
GIM_Try, GIMT_Encode4(6436),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule26Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR),
GIM_CheckNumOperands, 1, 3,
GIM_CheckIsSafeToFold, 1,
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner11),
GIM_Try, GIMT_Encode4(6460),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule40Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR_TRUNC),
GIM_CheckNumOperands, 1, 3,
GIM_CheckIsSafeToFold, 1,
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner12),
GIM_Try, GIMT_Encode4(6484),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule18Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
GIM_CheckIsSafeToFold, 1,
GIR_BuildRootMI, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
GIR_RootToRootCopy, 0,
GIR_EraseRootFromParent_Done,
GIM_Try, GIMT_Encode4(6508),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule19Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 2,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
GIM_CheckIsSafeToFold, 1,
GIR_BuildRootMI, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF),
GIR_RootToRootCopy, 0,
GIR_EraseRootFromParent_Done,
GIM_Reject,
GIM_Try, GIMT_Encode4(6520),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule82Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner35),
GIM_Try, GIMT_Encode4(6531),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule83Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner36),
GIM_Try, GIMT_Encode4(6542),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule205Enabled),
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner135),
GIM_Reject,
GIM_Try, GIMT_Encode4(6587),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule163Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_LSHR),
GIM_RecordInsnIgnoreCopies, 2, 1, 1,
GIM_CheckOpcode, 2, GIMT_Encode2(TargetOpcode::G_BITREVERSE),
GIM_CheckCxxInsnPredicate, 0, GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner6),
GIM_CheckIsSafeToFold, 2,
GIR_BuildRootMI, GIMT_Encode2(TargetOpcode::G_SHL),
GIR_RootToRootCopy, 0,
GIR_Copy, 0, 2, 1,
GIR_Copy, 0, 1, 2,
GIR_EraseRootFromParent_Done,
GIM_Try, GIMT_Encode4(6631),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule162Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_SHL),
GIM_RecordInsnIgnoreCopies, 2, 1, 1,
GIM_CheckOpcode, 2, GIMT_Encode2(TargetOpcode::G_BITREVERSE),
GIM_CheckCxxInsnPredicate, 0, GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner5),
GIM_CheckIsSafeToFold, 2,
GIR_BuildRootMI, GIMT_Encode2(TargetOpcode::G_LSHR),
GIR_RootToRootCopy, 0,
GIR_Copy, 0, 2, 1,
GIR_Copy, 0, 1, 2,
GIR_EraseRootFromParent_Done,
GIM_Reject,
GIM_Try, GIMT_Encode4(6653),
GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule139Enabled),
GIM_RecordInsnIgnoreCopies, 1, 0, 1,
GIM_CheckOpcode, 1, GIMT_Encode2(TargetOpcode::G_FCONSTANT),
GIM_CheckIsSafeToFold, 1,
GIR_DoneWithCustomAction, GIMT_Encode2(GICXXCustomAction_GICombiner79),
GIM_Reject,
GIM_Reject,
};
return MatchTable0;
}
#undef GIMT_Encode2
#undef GIMT_Encode4
#undef GIMT_Encode8
#endif
#ifdef GET_GICOMBINER_CONSTRUCTOR_INITS
AvailableModuleFeatures(computeAvailableModuleFeatures(&STI)),
AvailableFunctionFeatures()
#endif
#ifdef GET_GICOMBINER_CONSTRUCTOR_INITS
, State(0),
ExecInfo(TypeObjects, NumTypeObjects, FeatureBitsets, ComplexPredicateFns, CustomRenderers)
#endif