| 1 | /*===- TableGen'erated file -------------------------------------*- C++ -*-===*\ |
| 2 | |* *| |
| 3 | |* AArch64PreLegalizerCombinerImpl Combiner Match Table *| |
| 4 | |* *| |
| 5 | |* Automatically generated file, do not edit! *| |
| 6 | |* *| |
| 7 | \*===----------------------------------------------------------------------===*/ |
| 8 | |
| 9 | #ifdef GET_GICOMBINER_DEPS |
| 10 | |
| 11 | #include "llvm/ADT/SparseBitVector.h" |
| 12 | namespace llvm { |
| 13 | |
| 14 | extern cl::OptionCategory GICombinerOptionCategory; |
| 15 | |
| 16 | } // namespace llvm |
| 17 | |
| 18 | #endif // GET_GICOMBINER_DEPS |
| 19 | |
| 20 | #ifdef GET_GICOMBINER_TYPES |
| 21 | |
| 22 | struct AArch64PreLegalizerCombinerImplRuleConfig { |
| 23 | SparseBitVector<> DisabledRules; |
| 24 | |
| 25 | bool isRuleEnabled(unsigned RuleID) const; |
| 26 | bool parseCommandLineOption(); |
| 27 | bool setRuleEnabled(StringRef RuleIdentifier); |
| 28 | bool setRuleDisabled(StringRef RuleIdentifier); |
| 29 | }; |
| 30 | |
| 31 | static std::optional<uint64_t> getRuleIdxForIdentifier(StringRef RuleIdentifier) { |
| 32 | uint64_t I; |
| 33 | // getAtInteger(...) returns false on success |
| 34 | bool Parsed = !RuleIdentifier.getAsInteger(0, I); |
| 35 | if (Parsed) |
| 36 | return I; |
| 37 | |
| 38 | #ifndef NDEBUG |
| 39 | switch (RuleIdentifier.size()) { |
| 40 | default: break; |
| 41 | case 9: // 7 strings to match. |
| 42 | switch (RuleIdentifier[0]) { |
| 43 | default: break; |
| 44 | case 'a': // 1 string to match. |
| 45 | if (memcmp(RuleIdentifier.data()+1, "dd_shift" , 8) != 0) |
| 46 | break; |
| 47 | return 256; // "add_shift" |
| 48 | case 'c': // 1 string to match. |
| 49 | if (memcmp(RuleIdentifier.data()+1, "opy_prop" , 8) != 0) |
| 50 | break; |
| 51 | return 19; // "copy_prop" |
| 52 | case 'm': // 3 strings to match. |
| 53 | switch (RuleIdentifier[1]) { |
| 54 | default: break; |
| 55 | case 'a': // 1 string to match. |
| 56 | if (memcmp(RuleIdentifier.data()+2, "tch_ors" , 7) != 0) |
| 57 | break; |
| 58 | return 219; // "match_ors" |
| 59 | case 'u': // 2 strings to match. |
| 60 | if (memcmp(RuleIdentifier.data()+2, "lo_by_" , 6) != 0) |
| 61 | break; |
| 62 | switch (RuleIdentifier[8]) { |
| 63 | default: break; |
| 64 | case '0': // 1 string to match. |
| 65 | return 163; // "mulo_by_0" |
| 66 | case '2': // 1 string to match. |
| 67 | return 162; // "mulo_by_2" |
| 68 | } |
| 69 | break; |
| 70 | } |
| 71 | break; |
| 72 | case 'n': // 1 string to match. |
| 73 | if (memcmp(RuleIdentifier.data()+1, "neg_zext" , 8) != 0) |
| 74 | break; |
| 75 | return 230; // "nneg_zext" |
| 76 | case 'o': // 1 string to match. |
| 77 | if (memcmp(RuleIdentifier.data()+1, "r_xor_or" , 8) != 0) |
| 78 | break; |
| 79 | return 224; // "or_xor_or" |
| 80 | } |
| 81 | break; |
| 82 | case 10: // 12 strings to match. |
| 83 | switch (RuleIdentifier[0]) { |
| 84 | default: break; |
| 85 | case 'S': // 2 strings to match. |
| 86 | if (memcmp(RuleIdentifier.data()+1, "ub" , 2) != 0) |
| 87 | break; |
| 88 | switch (RuleIdentifier[3]) { |
| 89 | default: break; |
| 90 | case 'S': // 1 string to match. |
| 91 | if (memcmp(RuleIdentifier.data()+4, "maxSub" , 6) != 0) |
| 92 | break; |
| 93 | return 261; // "SubSmaxSub" |
| 94 | case 'U': // 1 string to match. |
| 95 | if (memcmp(RuleIdentifier.data()+4, "maxSub" , 6) != 0) |
| 96 | break; |
| 97 | return 262; // "SubUmaxSub" |
| 98 | } |
| 99 | break; |
| 100 | case 'e': // 1 string to match. |
| 101 | if (memcmp(RuleIdentifier.data()+1, "mit_bzero" , 9) != 0) |
| 102 | break; |
| 103 | return 286; // "emit_bzero" |
| 104 | case 'i': // 1 string to match. |
| 105 | if (memcmp(RuleIdentifier.data()+1, "2p_to_p2i" , 9) != 0) |
| 106 | break; |
| 107 | return 96; // "i2p_to_p2i" |
| 108 | case 'm': // 2 strings to match. |
| 109 | switch (RuleIdentifier[1]) { |
| 110 | default: break; |
| 111 | case 'a': // 1 string to match. |
| 112 | if (memcmp(RuleIdentifier.data()+2, "tch_ands" , 8) != 0) |
| 113 | break; |
| 114 | return 218; // "match_ands" |
| 115 | case 'u': // 1 string to match. |
| 116 | if (memcmp(RuleIdentifier.data()+2, "l_to_shl" , 8) != 0) |
| 117 | break; |
| 118 | return 20; // "mul_to_shl" |
| 119 | } |
| 120 | break; |
| 121 | case 'o': // 1 string to match. |
| 122 | if (memcmp(RuleIdentifier.data()+1, "r_xor_and" , 9) != 0) |
| 123 | break; |
| 124 | return 225; // "or_xor_and" |
| 125 | case 'p': // 1 string to match. |
| 126 | if (memcmp(RuleIdentifier.data()+1, "2i_to_i2p" , 9) != 0) |
| 127 | break; |
| 128 | return 95; // "p2i_to_i2p" |
| 129 | case 's': // 3 strings to match. |
| 130 | switch (RuleIdentifier[1]) { |
| 131 | default: break; |
| 132 | case 'e': // 2 strings to match. |
| 133 | switch (RuleIdentifier[2]) { |
| 134 | default: break; |
| 135 | case 'l': // 1 string to match. |
| 136 | if (memcmp(RuleIdentifier.data()+3, "ect_not" , 7) != 0) |
| 137 | break; |
| 138 | return 135; // "select_not" |
| 139 | case 'x': // 1 string to match. |
| 140 | if (memcmp(RuleIdentifier.data()+3, "t_trunc" , 7) != 0) |
| 141 | break; |
| 142 | return 228; // "sext_trunc" |
| 143 | } |
| 144 | break; |
| 145 | case 'u': // 1 string to match. |
| 146 | if (memcmp(RuleIdentifier.data()+2, "b_to_add" , 8) != 0) |
| 147 | break; |
| 148 | return 21; // "sub_to_add" |
| 149 | } |
| 150 | break; |
| 151 | case 'z': // 1 string to match. |
| 152 | if (memcmp(RuleIdentifier.data()+1, "ext_trunc" , 9) != 0) |
| 153 | break; |
| 154 | return 229; // "zext_trunc" |
| 155 | } |
| 156 | break; |
| 157 | case 11: // 8 strings to match. |
| 158 | switch (RuleIdentifier[0]) { |
| 159 | default: break; |
| 160 | case 'a': // 1 string to match. |
| 161 | if (memcmp(RuleIdentifier.data()+1, "dd_sub_reg" , 10) != 0) |
| 162 | break; |
| 163 | return 101; // "add_sub_reg" |
| 164 | case 'm': // 1 string to match. |
| 165 | if (memcmp(RuleIdentifier.data()+1, "atch_addos" , 10) != 0) |
| 166 | break; |
| 167 | return 245; // "match_addos" |
| 168 | case 's': // 1 string to match. |
| 169 | if (memcmp(RuleIdentifier.data()+1, "ub_add_reg" , 10) != 0) |
| 170 | break; |
| 171 | return 213; // "sub_add_reg" |
| 172 | case 't': // 4 strings to match. |
| 173 | if (memcmp(RuleIdentifier.data()+1, "runc_" , 5) != 0) |
| 174 | break; |
| 175 | switch (RuleIdentifier[6]) { |
| 176 | default: break; |
| 177 | case 's': // 3 strings to match. |
| 178 | switch (RuleIdentifier[7]) { |
| 179 | default: break; |
| 180 | case 'h': // 1 string to match. |
| 181 | if (memcmp(RuleIdentifier.data()+8, "ift" , 3) != 0) |
| 182 | break; |
| 183 | return 142; // "trunc_shift" |
| 184 | case 's': // 2 strings to match. |
| 185 | if (memcmp(RuleIdentifier.data()+8, "at" , 2) != 0) |
| 186 | break; |
| 187 | switch (RuleIdentifier[10]) { |
| 188 | default: break; |
| 189 | case 's': // 1 string to match. |
| 190 | return 247; // "trunc_ssats" |
| 191 | case 'u': // 1 string to match. |
| 192 | return 248; // "trunc_ssatu" |
| 193 | } |
| 194 | break; |
| 195 | } |
| 196 | break; |
| 197 | case 'u': // 1 string to match. |
| 198 | if (memcmp(RuleIdentifier.data()+7, "satu" , 4) != 0) |
| 199 | break; |
| 200 | return 249; // "trunc_usatu" |
| 201 | } |
| 202 | break; |
| 203 | case 'u': // 1 string to match. |
| 204 | if (memcmp(RuleIdentifier.data()+1, "nmerge_cst" , 10) != 0) |
| 205 | break; |
| 206 | return 238; // "unmerge_cst" |
| 207 | } |
| 208 | break; |
| 209 | case 12: // 12 strings to match. |
| 210 | switch (RuleIdentifier[0]) { |
| 211 | default: break; |
| 212 | case 'A': // 1 string to match. |
| 213 | if (memcmp(RuleIdentifier.data()+1, "PlusBMinusB" , 11) != 0) |
| 214 | break; |
| 215 | return 4; // "APlusBMinusB" |
| 216 | case 'B': // 1 string to match. |
| 217 | if (memcmp(RuleIdentifier.data()+1, "MinusAPlusA" , 11) != 0) |
| 218 | break; |
| 219 | return 5; // "BMinusAPlusA" |
| 220 | case 'a': // 1 string to match. |
| 221 | if (memcmp(RuleIdentifier.data()+1, "dde_to_addo" , 11) != 0) |
| 222 | break; |
| 223 | return 164; // "adde_to_addo" |
| 224 | case 'c': // 1 string to match. |
| 225 | if (memcmp(RuleIdentifier.data()+1, "tlz_to_ctls" , 11) != 0) |
| 226 | break; |
| 227 | return 252; // "ctlz_to_ctls" |
| 228 | case 'f': // 1 string to match. |
| 229 | if (memcmp(RuleIdentifier.data()+1, "sub_to_fneg" , 11) != 0) |
| 230 | break; |
| 231 | return 215; // "fsub_to_fneg" |
| 232 | case 'm': // 1 string to match. |
| 233 | if (memcmp(RuleIdentifier.data()+1, "ulh_to_lshr" , 11) != 0) |
| 234 | break; |
| 235 | return 193; // "mulh_to_lshr" |
| 236 | case 'n': // 1 string to match. |
| 237 | if (memcmp(RuleIdentifier.data()+1, "ot_cmp_fold" , 11) != 0) |
| 238 | break; |
| 239 | return 143; // "not_cmp_fold" |
| 240 | case 'r': // 1 string to match. |
| 241 | if (memcmp(RuleIdentifier.data()+1, "edundant_or" , 11) != 0) |
| 242 | break; |
| 243 | return 138; // "redundant_or" |
| 244 | case 's': // 2 strings to match. |
| 245 | switch (RuleIdentifier[1]) { |
| 246 | default: break; |
| 247 | case 'd': // 1 string to match. |
| 248 | if (memcmp(RuleIdentifier.data()+2, "iv_by_pow2" , 10) != 0) |
| 249 | break; |
| 250 | return 209; // "sdiv_by_pow2" |
| 251 | case 'e': // 1 string to match. |
| 252 | if (memcmp(RuleIdentifier.data()+2, "xt_of_sext" , 10) != 0) |
| 253 | break; |
| 254 | return 54; // "sext_of_sext" |
| 255 | } |
| 256 | break; |
| 257 | case 'u': // 1 string to match. |
| 258 | if (memcmp(RuleIdentifier.data()+1, "div_by_pow2" , 11) != 0) |
| 259 | break; |
| 260 | return 208; // "udiv_by_pow2" |
| 261 | case 'z': // 1 string to match. |
| 262 | if (memcmp(RuleIdentifier.data()+1, "ext_of_zext" , 11) != 0) |
| 263 | break; |
| 264 | return 52; // "zext_of_zext" |
| 265 | } |
| 266 | break; |
| 267 | case 13: // 19 strings to match. |
| 268 | switch (RuleIdentifier[0]) { |
| 269 | default: break; |
| 270 | case 'A': // 2 strings to match. |
| 271 | if (memcmp(RuleIdentifier.data()+1, "MinusBMinus" , 11) != 0) |
| 272 | break; |
| 273 | switch (RuleIdentifier[12]) { |
| 274 | default: break; |
| 275 | case 'A': // 1 string to match. |
| 276 | return 12; // "AMinusBMinusA" |
| 277 | case 'C': // 1 string to match. |
| 278 | return 9; // "AMinusBMinusC" |
| 279 | } |
| 280 | break; |
| 281 | case 'a': // 1 string to match. |
| 282 | if (memcmp(RuleIdentifier.data()+1, "dd_of_vscale" , 12) != 0) |
| 283 | break; |
| 284 | return 43; // "add_of_vscale" |
| 285 | case 'c': // 1 string to match. |
| 286 | if (memcmp(RuleIdentifier.data()+1, "ommute_shift" , 12) != 0) |
| 287 | break; |
| 288 | return 182; // "commute_shift" |
| 289 | case 'l': // 1 string to match. |
| 290 | if (memcmp(RuleIdentifier.data()+1, "oad_and_mask" , 12) != 0) |
| 291 | break; |
| 292 | return 75; // "load_and_mask" |
| 293 | case 'm': // 3 strings to match. |
| 294 | switch (RuleIdentifier[1]) { |
| 295 | default: break; |
| 296 | case 'a': // 1 string to match. |
| 297 | if (memcmp(RuleIdentifier.data()+2, "tch_selects" , 11) != 0) |
| 298 | break; |
| 299 | return 133; // "match_selects" |
| 300 | case 'e': // 1 string to match. |
| 301 | if (memcmp(RuleIdentifier.data()+2, "rge_unmerge" , 11) != 0) |
| 302 | break; |
| 303 | return 237; // "merge_unmerge" |
| 304 | case 'u': // 1 string to match. |
| 305 | if (memcmp(RuleIdentifier.data()+2, "l_of_vscale" , 11) != 0) |
| 306 | break; |
| 307 | return 44; // "mul_of_vscale" |
| 308 | } |
| 309 | break; |
| 310 | case 'r': // 1 string to match. |
| 311 | if (memcmp(RuleIdentifier.data()+1, "edundant_and" , 12) != 0) |
| 312 | break; |
| 313 | return 136; // "redundant_and" |
| 314 | case 's': // 6 strings to match. |
| 315 | switch (RuleIdentifier[1]) { |
| 316 | default: break; |
| 317 | case 'a': // 1 string to match. |
| 318 | if (memcmp(RuleIdentifier.data()+2, "me_val_zero" , 11) != 0) |
| 319 | break; |
| 320 | return 92; // "same_val_zero" |
| 321 | case 'd': // 1 string to match. |
| 322 | if (memcmp(RuleIdentifier.data()+2, "iv_by_const" , 11) != 0) |
| 323 | break; |
| 324 | return 211; // "sdiv_by_const" |
| 325 | case 'h': // 1 string to match. |
| 326 | if (memcmp(RuleIdentifier.data()+2, "l_of_vscale" , 11) != 0) |
| 327 | break; |
| 328 | return 45; // "shl_of_vscale" |
| 329 | case 'r': // 1 string to match. |
| 330 | if (memcmp(RuleIdentifier.data()+2, "em_by_const" , 11) != 0) |
| 331 | break; |
| 332 | return 207; // "srem_by_const" |
| 333 | case 'u': // 2 strings to match. |
| 334 | if (memcmp(RuleIdentifier.data()+2, "b_" , 2) != 0) |
| 335 | break; |
| 336 | switch (RuleIdentifier[4]) { |
| 337 | default: break; |
| 338 | case 'm': // 1 string to match. |
| 339 | if (memcmp(RuleIdentifier.data()+5, "inus_one" , 8) != 0) |
| 340 | break; |
| 341 | return 259; // "sub_minus_one" |
| 342 | case 'o': // 1 string to match. |
| 343 | if (memcmp(RuleIdentifier.data()+5, "f_vscale" , 8) != 0) |
| 344 | break; |
| 345 | return 46; // "sub_of_vscale" |
| 346 | } |
| 347 | break; |
| 348 | } |
| 349 | break; |
| 350 | case 'u': // 4 strings to match. |
| 351 | switch (RuleIdentifier[1]) { |
| 352 | default: break; |
| 353 | case 'd': // 1 string to match. |
| 354 | if (memcmp(RuleIdentifier.data()+2, "iv_by_const" , 11) != 0) |
| 355 | break; |
| 356 | return 210; // "udiv_by_const" |
| 357 | case 'n': // 2 strings to match. |
| 358 | if (memcmp(RuleIdentifier.data()+2, "merge_" , 6) != 0) |
| 359 | break; |
| 360 | switch (RuleIdentifier[8]) { |
| 361 | default: break; |
| 362 | case 'm': // 1 string to match. |
| 363 | if (memcmp(RuleIdentifier.data()+9, "erge" , 4) != 0) |
| 364 | break; |
| 365 | return 236; // "unmerge_merge" |
| 366 | case 'u': // 1 string to match. |
| 367 | if (memcmp(RuleIdentifier.data()+9, "ndef" , 4) != 0) |
| 368 | break; |
| 369 | return 239; // "unmerge_undef" |
| 370 | } |
| 371 | break; |
| 372 | case 'r': // 1 string to match. |
| 373 | if (memcmp(RuleIdentifier.data()+2, "em_by_const" , 11) != 0) |
| 374 | break; |
| 375 | return 206; // "urem_by_const" |
| 376 | } |
| 377 | break; |
| 378 | } |
| 379 | break; |
| 380 | case 14: // 20 strings to match. |
| 381 | switch (RuleIdentifier[0]) { |
| 382 | default: break; |
| 383 | case 'A': // 2 strings to match. |
| 384 | switch (RuleIdentifier[1]) { |
| 385 | default: break; |
| 386 | case 'M': // 1 string to match. |
| 387 | if (memcmp(RuleIdentifier.data()+2, "inusC1PlusC2" , 12) != 0) |
| 388 | break; |
| 389 | return 18; // "AMinusC1PlusC2" |
| 390 | case 'P': // 1 string to match. |
| 391 | if (memcmp(RuleIdentifier.data()+2, "lusC1MinusC2" , 12) != 0) |
| 392 | break; |
| 393 | return 14; // "APlusC1MinusC2" |
| 394 | } |
| 395 | break; |
| 396 | case 'C': // 1 string to match. |
| 397 | if (memcmp(RuleIdentifier.data()+1, "2MinusAPlusC1" , 13) != 0) |
| 398 | break; |
| 399 | return 15; // "C2MinusAPlusC1" |
| 400 | case 'N': // 1 string to match. |
| 401 | if (memcmp(RuleIdentifier.data()+1, "otAPlusNegOne" , 13) != 0) |
| 402 | break; |
| 403 | return 13; // "NotAPlusNegOne" |
| 404 | case 'a': // 2 strings to match. |
| 405 | if (memcmp(RuleIdentifier.data()+1, "nyext_of_" , 9) != 0) |
| 406 | break; |
| 407 | switch (RuleIdentifier[10]) { |
| 408 | default: break; |
| 409 | case 's': // 1 string to match. |
| 410 | if (memcmp(RuleIdentifier.data()+11, "ext" , 3) != 0) |
| 411 | break; |
| 412 | return 58; // "anyext_of_sext" |
| 413 | case 'z': // 1 string to match. |
| 414 | if (memcmp(RuleIdentifier.data()+11, "ext" , 3) != 0) |
| 415 | break; |
| 416 | return 57; // "anyext_of_zext" |
| 417 | } |
| 418 | break; |
| 419 | case 'b': // 3 strings to match. |
| 420 | if (RuleIdentifier[1] != 'i') |
| 421 | break; |
| 422 | switch (RuleIdentifier[2]) { |
| 423 | default: break; |
| 424 | case 'n': // 2 strings to match. |
| 425 | if (memcmp(RuleIdentifier.data()+3, "op_" , 3) != 0) |
| 426 | break; |
| 427 | switch (RuleIdentifier[6]) { |
| 428 | default: break; |
| 429 | case 's': // 1 string to match. |
| 430 | if (memcmp(RuleIdentifier.data()+7, "ame_val" , 7) != 0) |
| 431 | break; |
| 432 | return 91; // "binop_same_val" |
| 433 | case 'w': // 1 string to match. |
| 434 | if (memcmp(RuleIdentifier.data()+7, "ith_neg" , 7) != 0) |
| 435 | break; |
| 436 | return 258; // "binop_with_neg" |
| 437 | } |
| 438 | break; |
| 439 | case 't': // 1 string to match. |
| 440 | if (memcmp(RuleIdentifier.data()+3, "reverse_shl" , 11) != 0) |
| 441 | break; |
| 442 | return 180; // "bitreverse_shl" |
| 443 | } |
| 444 | break; |
| 445 | case 'c': // 2 strings to match. |
| 446 | if (memcmp(RuleIdentifier.data()+1, "ombine_mem" , 10) != 0) |
| 447 | break; |
| 448 | switch (RuleIdentifier[11]) { |
| 449 | default: break; |
| 450 | case 'c': // 1 string to match. |
| 451 | if (memcmp(RuleIdentifier.data()+12, "py" , 2) != 0) |
| 452 | break; |
| 453 | return 283; // "combine_memcpy" |
| 454 | case 's': // 1 string to match. |
| 455 | if (memcmp(RuleIdentifier.data()+12, "et" , 2) != 0) |
| 456 | break; |
| 457 | return 285; // "combine_memset" |
| 458 | } |
| 459 | break; |
| 460 | case 'f': // 2 strings to match. |
| 461 | switch (RuleIdentifier[1]) { |
| 462 | default: break; |
| 463 | case 'a': // 1 string to match. |
| 464 | if (memcmp(RuleIdentifier.data()+2, "bs_fneg_fold" , 12) != 0) |
| 465 | break; |
| 466 | return 192; // "fabs_fneg_fold" |
| 467 | case 'n': // 1 string to match. |
| 468 | if (memcmp(RuleIdentifier.data()+2, "eg_fneg_fold" , 12) != 0) |
| 469 | break; |
| 470 | return 98; // "fneg_fneg_fold" |
| 471 | } |
| 472 | break; |
| 473 | case 'm': // 1 string to match. |
| 474 | if (memcmp(RuleIdentifier.data()+1, "ul_by_neg_one" , 13) != 0) |
| 475 | break; |
| 476 | return 23; // "mul_by_neg_one" |
| 477 | case 'r': // 1 string to match. |
| 478 | if (memcmp(RuleIdentifier.data()+1, "eassoc_ptradd" , 13) != 0) |
| 479 | break; |
| 480 | return 115; // "reassoc_ptradd" |
| 481 | case 's': // 4 strings to match. |
| 482 | switch (RuleIdentifier[1]) { |
| 483 | default: break; |
| 484 | case 'e': // 2 strings to match. |
| 485 | switch (RuleIdentifier[2]) { |
| 486 | default: break; |
| 487 | case 'l': // 1 string to match. |
| 488 | if (memcmp(RuleIdentifier.data()+3, "ect_of_zext" , 11) != 0) |
| 489 | break; |
| 490 | return 60; // "select_of_zext" |
| 491 | case 'x': // 1 string to match. |
| 492 | if (memcmp(RuleIdentifier.data()+3, "t_of_anyext" , 11) != 0) |
| 493 | break; |
| 494 | return 55; // "sext_of_anyext" |
| 495 | } |
| 496 | break; |
| 497 | case 'h': // 1 string to match. |
| 498 | if (memcmp(RuleIdentifier.data()+2, "ifts_too_big" , 12) != 0) |
| 499 | break; |
| 500 | return 114; // "shifts_too_big" |
| 501 | case 'i': // 1 string to match. |
| 502 | if (memcmp(RuleIdentifier.data()+2, "mplify_uaddo" , 12) != 0) |
| 503 | break; |
| 504 | return 280; // "simplify_uaddo" |
| 505 | } |
| 506 | break; |
| 507 | case 'z': // 1 string to match. |
| 508 | if (memcmp(RuleIdentifier.data()+1, "ext_of_anyext" , 13) != 0) |
| 509 | break; |
| 510 | return 53; // "zext_of_anyext" |
| 511 | } |
| 512 | break; |
| 513 | case 15: // 15 strings to match. |
| 514 | switch (RuleIdentifier[0]) { |
| 515 | default: break; |
| 516 | case 'A': // 2 strings to match. |
| 517 | switch (RuleIdentifier[1]) { |
| 518 | default: break; |
| 519 | case 'M': // 1 string to match. |
| 520 | if (memcmp(RuleIdentifier.data()+2, "inusC1MinusC2" , 13) != 0) |
| 521 | break; |
| 522 | return 16; // "AMinusC1MinusC2" |
| 523 | case 'P': // 1 string to match. |
| 524 | if (memcmp(RuleIdentifier.data()+2, "lusZeroMinusB" , 13) != 0) |
| 525 | break; |
| 526 | return 3; // "APlusZeroMinusB" |
| 527 | } |
| 528 | break; |
| 529 | case 'C': // 1 string to match. |
| 530 | if (memcmp(RuleIdentifier.data()+1, "1Minus2MinusC2" , 14) != 0) |
| 531 | break; |
| 532 | return 17; // "C1Minus2MinusC2" |
| 533 | case 'Z': // 1 string to match. |
| 534 | if (memcmp(RuleIdentifier.data()+1, "eroMinusAPlusB" , 14) != 0) |
| 535 | break; |
| 536 | return 2; // "ZeroMinusAPlusB" |
| 537 | case 'a': // 2 strings to match. |
| 538 | if (memcmp(RuleIdentifier.data()+1, "vgceil_" , 7) != 0) |
| 539 | break; |
| 540 | switch (RuleIdentifier[8]) { |
| 541 | default: break; |
| 542 | case 's': // 1 string to match. |
| 543 | if (memcmp(RuleIdentifier.data()+9, "_match" , 6) != 0) |
| 544 | break; |
| 545 | return 266; // "avgceil_s_match" |
| 546 | case 'u': // 1 string to match. |
| 547 | if (memcmp(RuleIdentifier.data()+9, "_match" , 6) != 0) |
| 548 | break; |
| 549 | return 265; // "avgceil_u_match" |
| 550 | } |
| 551 | break; |
| 552 | case 'b': // 1 string to match. |
| 553 | if (memcmp(RuleIdentifier.data()+1, "itreverse_lshr" , 14) != 0) |
| 554 | break; |
| 555 | return 181; // "bitreverse_lshr" |
| 556 | case 'c': // 1 string to match. |
| 557 | if (memcmp(RuleIdentifier.data()+1, "ombine_memmove" , 14) != 0) |
| 558 | break; |
| 559 | return 284; // "combine_memmove" |
| 560 | case 'e': // 1 string to match. |
| 561 | if (memcmp(RuleIdentifier.data()+1, "xtending_loads" , 14) != 0) |
| 562 | break; |
| 563 | return 74; // "extending_loads" |
| 564 | case 'i': // 1 string to match. |
| 565 | if (memcmp(RuleIdentifier.data()+1, "dempotent_prop" , 14) != 0) |
| 566 | break; |
| 567 | return 24; // "idempotent_prop" |
| 568 | case 'l': // 1 string to match. |
| 569 | if (memcmp(RuleIdentifier.data()+1, "oad_or_combine" , 14) != 0) |
| 570 | break; |
| 571 | return 171; // "load_or_combine" |
| 572 | case 'n': // 1 string to match. |
| 573 | if (memcmp(RuleIdentifier.data()+1, "arrow_binop_or" , 14) != 0) |
| 574 | break; |
| 575 | return 68; // "narrow_binop_or" |
| 576 | case 'o': // 1 string to match. |
| 577 | if (memcmp(RuleIdentifier.data()+1, "verlapping_and" , 14) != 0) |
| 578 | break; |
| 579 | return 161; // "overlapping_and" |
| 580 | case 's': // 1 string to match. |
| 581 | if (memcmp(RuleIdentifier.data()+1, "elect_same_val" , 14) != 0) |
| 582 | break; |
| 583 | return 89; // "select_same_val" |
| 584 | case 'z': // 1 string to match. |
| 585 | if (memcmp(RuleIdentifier.data()+1, "ext_trunc_fold" , 14) != 0) |
| 586 | break; |
| 587 | return 140; // "zext_trunc_fold" |
| 588 | } |
| 589 | break; |
| 590 | case 16: // 19 strings to match. |
| 591 | switch (RuleIdentifier[0]) { |
| 592 | default: break; |
| 593 | case 'A': // 1 string to match. |
| 594 | if (memcmp(RuleIdentifier.data()+1, "MinusZeroMinusB" , 15) != 0) |
| 595 | break; |
| 596 | return 11; // "AMinusZeroMinusB" |
| 597 | case 'a': // 3 strings to match. |
| 598 | switch (RuleIdentifier[1]) { |
| 599 | default: break; |
| 600 | case 'n': // 1 string to match. |
| 601 | if (memcmp(RuleIdentifier.data()+2, "yext_of_anyext" , 14) != 0) |
| 602 | break; |
| 603 | return 56; // "anyext_of_anyext" |
| 604 | case 'v': // 2 strings to match. |
| 605 | if (memcmp(RuleIdentifier.data()+2, "gfloor_" , 7) != 0) |
| 606 | break; |
| 607 | switch (RuleIdentifier[9]) { |
| 608 | default: break; |
| 609 | case 's': // 1 string to match. |
| 610 | if (memcmp(RuleIdentifier.data()+10, "_match" , 6) != 0) |
| 611 | break; |
| 612 | return 264; // "avgfloor_s_match" |
| 613 | case 'u': // 1 string to match. |
| 614 | if (memcmp(RuleIdentifier.data()+10, "_match" , 6) != 0) |
| 615 | break; |
| 616 | return 263; // "avgfloor_u_match" |
| 617 | } |
| 618 | break; |
| 619 | } |
| 620 | break; |
| 621 | case 'n': // 5 strings to match. |
| 622 | if (memcmp(RuleIdentifier.data()+1, "arrow_binop_" , 12) != 0) |
| 623 | break; |
| 624 | switch (RuleIdentifier[13]) { |
| 625 | default: break; |
| 626 | case 'a': // 2 strings to match. |
| 627 | switch (RuleIdentifier[14]) { |
| 628 | default: break; |
| 629 | case 'd': // 1 string to match. |
| 630 | if (RuleIdentifier[15] != 'd') |
| 631 | break; |
| 632 | return 64; // "narrow_binop_add" |
| 633 | case 'n': // 1 string to match. |
| 634 | if (RuleIdentifier[15] != 'd') |
| 635 | break; |
| 636 | return 67; // "narrow_binop_and" |
| 637 | } |
| 638 | break; |
| 639 | case 'm': // 1 string to match. |
| 640 | if (memcmp(RuleIdentifier.data()+14, "ul" , 2) != 0) |
| 641 | break; |
| 642 | return 66; // "narrow_binop_mul" |
| 643 | case 's': // 1 string to match. |
| 644 | if (memcmp(RuleIdentifier.data()+14, "ub" , 2) != 0) |
| 645 | break; |
| 646 | return 65; // "narrow_binop_sub" |
| 647 | case 'x': // 1 string to match. |
| 648 | if (memcmp(RuleIdentifier.data()+14, "or" , 2) != 0) |
| 649 | break; |
| 650 | return 69; // "narrow_binop_xor" |
| 651 | } |
| 652 | break; |
| 653 | case 'o': // 1 string to match. |
| 654 | if (memcmp(RuleIdentifier.data()+1, "r_and_xor_to_or" , 15) != 0) |
| 655 | break; |
| 656 | return 220; // "or_and_xor_to_or" |
| 657 | case 's': // 6 strings to match. |
| 658 | switch (RuleIdentifier[1]) { |
| 659 | default: break; |
| 660 | case 'e': // 4 strings to match. |
| 661 | if (memcmp(RuleIdentifier.data()+2, "lect_" , 5) != 0) |
| 662 | break; |
| 663 | switch (RuleIdentifier[7]) { |
| 664 | default: break; |
| 665 | case 'o': // 1 string to match. |
| 666 | if (memcmp(RuleIdentifier.data()+8, "f_anyext" , 8) != 0) |
| 667 | break; |
| 668 | return 61; // "select_of_anyext" |
| 669 | case 't': // 1 string to match. |
| 670 | if (memcmp(RuleIdentifier.data()+8, "o_minmax" , 8) != 0) |
| 671 | break; |
| 672 | return 214; // "select_to_minmax" |
| 673 | case 'u': // 1 string to match. |
| 674 | if (memcmp(RuleIdentifier.data()+8, "ndef_cmp" , 8) != 0) |
| 675 | break; |
| 676 | return 130; // "select_undef_cmp" |
| 677 | case 'z': // 1 string to match. |
| 678 | if (memcmp(RuleIdentifier.data()+8, "ero_true" , 8) != 0) |
| 679 | break; |
| 680 | return 268; // "select_zero_true" |
| 681 | } |
| 682 | break; |
| 683 | case 'u': // 2 strings to match. |
| 684 | if (memcmp(RuleIdentifier.data()+2, "b_o" , 3) != 0) |
| 685 | break; |
| 686 | switch (RuleIdentifier[5]) { |
| 687 | default: break; |
| 688 | case 'f': // 1 string to match. |
| 689 | if (memcmp(RuleIdentifier.data()+6, "_mul_const" , 10) != 0) |
| 690 | break; |
| 691 | return 260; // "sub_of_mul_const" |
| 692 | case 'n': // 1 string to match. |
| 693 | if (memcmp(RuleIdentifier.data()+6, "e_from_sub" , 10) != 0) |
| 694 | break; |
| 695 | return 257; // "sub_one_from_sub" |
| 696 | } |
| 697 | break; |
| 698 | } |
| 699 | break; |
| 700 | case 't': // 2 strings to match. |
| 701 | if (memcmp(RuleIdentifier.data()+1, "runcate_of_" , 11) != 0) |
| 702 | break; |
| 703 | switch (RuleIdentifier[12]) { |
| 704 | default: break; |
| 705 | case 's': // 1 string to match. |
| 706 | if (memcmp(RuleIdentifier.data()+13, "ext" , 3) != 0) |
| 707 | break; |
| 708 | return 50; // "truncate_of_sext" |
| 709 | case 'z': // 1 string to match. |
| 710 | if (memcmp(RuleIdentifier.data()+13, "ext" , 3) != 0) |
| 711 | break; |
| 712 | return 49; // "truncate_of_zext" |
| 713 | } |
| 714 | break; |
| 715 | case 'u': // 1 string to match. |
| 716 | if (memcmp(RuleIdentifier.data()+1, "ndef_to_fp_zero" , 15) != 0) |
| 717 | break; |
| 718 | return 77; // "undef_to_fp_zero" |
| 719 | } |
| 720 | break; |
| 721 | case 17: // 18 strings to match. |
| 722 | switch (RuleIdentifier[0]) { |
| 723 | default: break; |
| 724 | case 'A': // 2 strings to match. |
| 725 | if (memcmp(RuleIdentifier.data()+1, "PlusBMinus" , 10) != 0) |
| 726 | break; |
| 727 | switch (RuleIdentifier[11]) { |
| 728 | default: break; |
| 729 | case 'A': // 1 string to match. |
| 730 | if (memcmp(RuleIdentifier.data()+12, "plusC" , 5) != 0) |
| 731 | break; |
| 732 | return 8; // "APlusBMinusAplusC" |
| 733 | case 'C': // 1 string to match. |
| 734 | if (memcmp(RuleIdentifier.data()+12, "PlusA" , 5) != 0) |
| 735 | break; |
| 736 | return 10; // "APlusBMinusCPlusA" |
| 737 | } |
| 738 | break; |
| 739 | case 'a': // 3 strings to match. |
| 740 | switch (RuleIdentifier[1]) { |
| 741 | default: break; |
| 742 | case 'd': // 1 string to match. |
| 743 | if (memcmp(RuleIdentifier.data()+2, "d_p2i_to_ptradd" , 15) != 0) |
| 744 | break; |
| 745 | return 22; // "add_p2i_to_ptradd" |
| 746 | case 'n': // 2 strings to match. |
| 747 | switch (RuleIdentifier[2]) { |
| 748 | default: break; |
| 749 | case 'd': // 1 string to match. |
| 750 | if (memcmp(RuleIdentifier.data()+3, "_xor_or_to_and" , 14) != 0) |
| 751 | break; |
| 752 | return 222; // "and_xor_or_to_and" |
| 753 | case 'y': // 1 string to match. |
| 754 | if (memcmp(RuleIdentifier.data()+3, "ext_trunc_fold" , 14) != 0) |
| 755 | break; |
| 756 | return 97; // "anyext_trunc_fold" |
| 757 | } |
| 758 | break; |
| 759 | } |
| 760 | break; |
| 761 | case 'c': // 4 strings to match. |
| 762 | switch (RuleIdentifier[1]) { |
| 763 | default: break; |
| 764 | case 'a': // 2 strings to match. |
| 765 | if (memcmp(RuleIdentifier.data()+2, "nonicalize_" , 11) != 0) |
| 766 | break; |
| 767 | switch (RuleIdentifier[13]) { |
| 768 | default: break; |
| 769 | case 'f': // 1 string to match. |
| 770 | if (memcmp(RuleIdentifier.data()+14, "cmp" , 3) != 0) |
| 771 | break; |
| 772 | return 119; // "canonicalize_fcmp" |
| 773 | case 'i': // 1 string to match. |
| 774 | if (memcmp(RuleIdentifier.data()+14, "cmp" , 3) != 0) |
| 775 | break; |
| 776 | return 118; // "canonicalize_icmp" |
| 777 | } |
| 778 | break; |
| 779 | case 'o': // 2 strings to match. |
| 780 | switch (RuleIdentifier[2]) { |
| 781 | default: break; |
| 782 | case 'm': // 1 string to match. |
| 783 | if (memcmp(RuleIdentifier.data()+3, "bine_or_of_and" , 14) != 0) |
| 784 | break; |
| 785 | return 267; // "combine_or_of_and" |
| 786 | case 'n': // 1 string to match. |
| 787 | if (memcmp(RuleIdentifier.data()+3, "stant_fold_fma" , 14) != 0) |
| 788 | break; |
| 789 | return 189; // "constant_fold_fma" |
| 790 | } |
| 791 | break; |
| 792 | } |
| 793 | break; |
| 794 | case 'd': // 1 string to match. |
| 795 | if (memcmp(RuleIdentifier.data()+1, "iv_rem_to_divrem" , 16) != 0) |
| 796 | break; |
| 797 | return 172; // "div_rem_to_divrem" |
| 798 | case 'e': // 1 string to match. |
| 799 | if (memcmp(RuleIdentifier.data()+1, "rase_undef_store" , 16) != 0) |
| 800 | break; |
| 801 | return 87; // "erase_undef_store" |
| 802 | case 'p': // 1 string to match. |
| 803 | if (memcmp(RuleIdentifier.data()+1, "tr_add_with_zero" , 16) != 0) |
| 804 | break; |
| 805 | return 168; // "ptr_add_with_zero" |
| 806 | case 's': // 4 strings to match. |
| 807 | switch (RuleIdentifier[1]) { |
| 808 | default: break; |
| 809 | case 'e': // 2 strings to match. |
| 810 | if (memcmp(RuleIdentifier.data()+2, "lect_" , 5) != 0) |
| 811 | break; |
| 812 | switch (RuleIdentifier[7]) { |
| 813 | default: break; |
| 814 | case 't': // 1 string to match. |
| 815 | if (memcmp(RuleIdentifier.data()+8, "o_iminmax" , 9) != 0) |
| 816 | break; |
| 817 | return 132; // "select_to_iminmax" |
| 818 | case 'z': // 1 string to match. |
| 819 | if (memcmp(RuleIdentifier.data()+8, "ero_false" , 9) != 0) |
| 820 | break; |
| 821 | return 134; // "select_zero_false" |
| 822 | } |
| 823 | break; |
| 824 | case 'h': // 1 string to match. |
| 825 | if (memcmp(RuleIdentifier.data()+2, "ift_immed_chain" , 15) != 0) |
| 826 | break; |
| 827 | return 169; // "shift_immed_chain" |
| 828 | case 'r': // 1 string to match. |
| 829 | if (memcmp(RuleIdentifier.data()+2, "em_pow2_to_mask" , 15) != 0) |
| 830 | break; |
| 831 | return 205; // "srem_pow2_to_mask" |
| 832 | } |
| 833 | break; |
| 834 | case 'u': // 2 strings to match. |
| 835 | switch (RuleIdentifier[1]) { |
| 836 | default: break; |
| 837 | case 'n': // 1 string to match. |
| 838 | if (memcmp(RuleIdentifier.data()+2, "def_to_int_zero" , 15) != 0) |
| 839 | break; |
| 840 | return 78; // "undef_to_int_zero" |
| 841 | case 'r': // 1 string to match. |
| 842 | if (memcmp(RuleIdentifier.data()+2, "em_pow2_to_mask" , 15) != 0) |
| 843 | break; |
| 844 | return 139; // "urem_pow2_to_mask" |
| 845 | } |
| 846 | break; |
| 847 | } |
| 848 | break; |
| 849 | case 18: // 13 strings to match. |
| 850 | switch (RuleIdentifier[0]) { |
| 851 | default: break; |
| 852 | case 'A': // 3 strings to match. |
| 853 | switch (RuleIdentifier[1]) { |
| 854 | default: break; |
| 855 | case 'M': // 2 strings to match. |
| 856 | if (memcmp(RuleIdentifier.data()+2, "inusBPlus" , 9) != 0) |
| 857 | break; |
| 858 | switch (RuleIdentifier[11]) { |
| 859 | default: break; |
| 860 | case 'B': // 1 string to match. |
| 861 | if (memcmp(RuleIdentifier.data()+12, "MinusC" , 6) != 0) |
| 862 | break; |
| 863 | return 7; // "AMinusBPlusBMinusC" |
| 864 | case 'C': // 1 string to match. |
| 865 | if (memcmp(RuleIdentifier.data()+12, "MinusA" , 6) != 0) |
| 866 | break; |
| 867 | return 6; // "AMinusBPlusCMinusA" |
| 868 | } |
| 869 | break; |
| 870 | case 'P': // 1 string to match. |
| 871 | if (memcmp(RuleIdentifier.data()+2, "lusBMinusCMinusB" , 16) != 0) |
| 872 | break; |
| 873 | return 0; // "APlusBMinusCMinusB" |
| 874 | } |
| 875 | break; |
| 876 | case 'b': // 1 string to match. |
| 877 | if (memcmp(RuleIdentifier.data()+1, "inop_left_to_zero" , 17) != 0) |
| 878 | break; |
| 879 | return 93; // "binop_left_to_zero" |
| 880 | case 'c': // 3 strings to match. |
| 881 | if (RuleIdentifier[1] != 'o') |
| 882 | break; |
| 883 | switch (RuleIdentifier[2]) { |
| 884 | default: break; |
| 885 | case 'm': // 1 string to match. |
| 886 | if (memcmp(RuleIdentifier.data()+3, "bine_minmax_nan" , 15) != 0) |
| 887 | break; |
| 888 | return 165; // "combine_minmax_nan" |
| 889 | case 'n': // 2 strings to match. |
| 890 | if (memcmp(RuleIdentifier.data()+3, "stant_fold_f" , 12) != 0) |
| 891 | break; |
| 892 | switch (RuleIdentifier[15]) { |
| 893 | default: break; |
| 894 | case 'a': // 1 string to match. |
| 895 | if (memcmp(RuleIdentifier.data()+16, "bs" , 2) != 0) |
| 896 | break; |
| 897 | return 146; // "constant_fold_fabs" |
| 898 | case 'n': // 1 string to match. |
| 899 | if (memcmp(RuleIdentifier.data()+16, "eg" , 2) != 0) |
| 900 | break; |
| 901 | return 145; // "constant_fold_fneg" |
| 902 | } |
| 903 | break; |
| 904 | } |
| 905 | break; |
| 906 | case 'e': // 1 string to match. |
| 907 | if (memcmp(RuleIdentifier.data()+1, "xpand_const_fpowi" , 17) != 0) |
| 908 | break; |
| 909 | return 166; // "expand_const_fpowi" |
| 910 | case 'f': // 2 strings to match. |
| 911 | switch (RuleIdentifier[1]) { |
| 912 | default: break; |
| 913 | case 'o': // 1 string to match. |
| 914 | if (memcmp(RuleIdentifier.data()+2, "ld_global_offset" , 16) != 0) |
| 915 | break; |
| 916 | return 271; // "fold_global_offset" |
| 917 | case 'p': // 1 string to match. |
| 918 | if (memcmp(RuleIdentifier.data()+2, "trunc_fpext_fold" , 16) != 0) |
| 919 | break; |
| 920 | return 107; // "fptrunc_fpext_fold" |
| 921 | } |
| 922 | break; |
| 923 | case 's': // 2 strings to match. |
| 924 | if (RuleIdentifier[1] != 'e') |
| 925 | break; |
| 926 | switch (RuleIdentifier[2]) { |
| 927 | default: break; |
| 928 | case 'l': // 1 string to match. |
| 929 | if (memcmp(RuleIdentifier.data()+3, "ect_of_truncate" , 15) != 0) |
| 930 | break; |
| 931 | return 62; // "select_of_truncate" |
| 932 | case 'x': // 1 string to match. |
| 933 | if (memcmp(RuleIdentifier.data()+3, "t_inreg_of_load" , 15) != 0) |
| 934 | break; |
| 935 | return 127; // "sext_inreg_of_load" |
| 936 | } |
| 937 | break; |
| 938 | case 't': // 1 string to match. |
| 939 | if (memcmp(RuleIdentifier.data()+1, "runcate_of_anyext" , 17) != 0) |
| 940 | break; |
| 941 | return 51; // "truncate_of_anyext" |
| 942 | } |
| 943 | break; |
| 944 | case 19: // 20 strings to match. |
| 945 | switch (RuleIdentifier[0]) { |
| 946 | default: break; |
| 947 | case 'A': // 1 string to match. |
| 948 | if (memcmp(RuleIdentifier.data()+1, "MinusBMinusCMinusC" , 18) != 0) |
| 949 | break; |
| 950 | return 1; // "AMinusBMinusCMinusC" |
| 951 | case 'b': // 1 string to match. |
| 952 | if (memcmp(RuleIdentifier.data()+1, "inop_right_to_zero" , 18) != 0) |
| 953 | break; |
| 954 | return 94; // "binop_right_to_zero" |
| 955 | case 'c': // 7 strings to match. |
| 956 | if (memcmp(RuleIdentifier.data()+1, "onst" , 4) != 0) |
| 957 | break; |
| 958 | switch (RuleIdentifier[5]) { |
| 959 | default: break; |
| 960 | case '_': // 1 string to match. |
| 961 | if (memcmp(RuleIdentifier.data()+6, "ptradd_to_i2p" , 13) != 0) |
| 962 | break; |
| 963 | return 160; // "const_ptradd_to_i2p" |
| 964 | case 'a': // 6 strings to match. |
| 965 | if (memcmp(RuleIdentifier.data()+6, "nt_fold_" , 8) != 0) |
| 966 | break; |
| 967 | switch (RuleIdentifier[14]) { |
| 968 | default: break; |
| 969 | case 'b': // 1 string to match. |
| 970 | if (memcmp(RuleIdentifier.data()+15, "inop" , 4) != 0) |
| 971 | break; |
| 972 | return 187; // "constant_fold_binop" |
| 973 | case 'f': // 5 strings to match. |
| 974 | switch (RuleIdentifier[15]) { |
| 975 | default: break; |
| 976 | case 'c': // 1 string to match. |
| 977 | if (memcmp(RuleIdentifier.data()+16, "eil" , 3) != 0) |
| 978 | break; |
| 979 | return 151; // "constant_fold_fceil" |
| 980 | case 'l': // 1 string to match. |
| 981 | if (memcmp(RuleIdentifier.data()+16, "og2" , 3) != 0) |
| 982 | break; |
| 983 | return 148; // "constant_fold_flog2" |
| 984 | case 'p': // 1 string to match. |
| 985 | if (memcmp(RuleIdentifier.data()+16, "ext" , 3) != 0) |
| 986 | break; |
| 987 | return 150; // "constant_fold_fpext" |
| 988 | case 'r': // 1 string to match. |
| 989 | if (memcmp(RuleIdentifier.data()+16, "int" , 3) != 0) |
| 990 | break; |
| 991 | return 156; // "constant_fold_frint" |
| 992 | case 's': // 1 string to match. |
| 993 | if (memcmp(RuleIdentifier.data()+16, "qrt" , 3) != 0) |
| 994 | break; |
| 995 | return 147; // "constant_fold_fsqrt" |
| 996 | } |
| 997 | break; |
| 998 | } |
| 999 | break; |
| 1000 | } |
| 1001 | break; |
| 1002 | case 'e': // 2 strings to match. |
| 1003 | if (memcmp(RuleIdentifier.data()+1, "xt" , 2) != 0) |
| 1004 | break; |
| 1005 | switch (RuleIdentifier[3]) { |
| 1006 | default: break; |
| 1007 | case '_': // 1 string to match. |
| 1008 | if (memcmp(RuleIdentifier.data()+4, "uaddv_to_uaddlv" , 15) != 0) |
| 1009 | break; |
| 1010 | return 273; // "ext_uaddv_to_uaddlv" |
| 1011 | case 'e': // 1 string to match. |
| 1012 | if (memcmp(RuleIdentifier.data()+4, "nd_through_phis" , 15) != 0) |
| 1013 | break; |
| 1014 | return 111; // "extend_through_phis" |
| 1015 | } |
| 1016 | break; |
| 1017 | case 'i': // 1 string to match. |
| 1018 | if (memcmp(RuleIdentifier.data()+1, "nteger_of_truncate" , 18) != 0) |
| 1019 | break; |
| 1020 | return 70; // "integer_of_truncate" |
| 1021 | case 'm': // 1 string to match. |
| 1022 | if (memcmp(RuleIdentifier.data()+1, "erge_of_x_and_zero" , 18) != 0) |
| 1023 | break; |
| 1024 | return 243; // "merge_of_x_and_zero" |
| 1025 | case 'p': // 1 string to match. |
| 1026 | if (memcmp(RuleIdentifier.data()+1, "tr_add_immed_chain" , 18) != 0) |
| 1027 | break; |
| 1028 | return 117; // "ptr_add_immed_chain" |
| 1029 | case 'r': // 2 strings to match. |
| 1030 | switch (RuleIdentifier[1]) { |
| 1031 | default: break; |
| 1032 | case 'e': // 1 string to match. |
| 1033 | if (memcmp(RuleIdentifier.data()+2, "assoc_comm_binops" , 17) != 0) |
| 1034 | break; |
| 1035 | return 116; // "reassoc_comm_binops" |
| 1036 | case 'i': // 1 string to match. |
| 1037 | if (memcmp(RuleIdentifier.data()+2, "ght_identity_zero" , 17) != 0) |
| 1038 | break; |
| 1039 | return 90; // "right_identity_zero" |
| 1040 | } |
| 1041 | break; |
| 1042 | case 's': // 3 strings to match. |
| 1043 | switch (RuleIdentifier[1]) { |
| 1044 | default: break; |
| 1045 | case 'e': // 1 string to match. |
| 1046 | if (memcmp(RuleIdentifier.data()+2, "lect_constant_cmp" , 17) != 0) |
| 1047 | break; |
| 1048 | return 131; // "select_constant_cmp" |
| 1049 | case 'i': // 2 strings to match. |
| 1050 | if (memcmp(RuleIdentifier.data()+2, "mplify_" , 7) != 0) |
| 1051 | break; |
| 1052 | switch (RuleIdentifier[9]) { |
| 1053 | default: break; |
| 1054 | case 'a': // 1 string to match. |
| 1055 | if (memcmp(RuleIdentifier.data()+10, "dd_to_sub" , 9) != 0) |
| 1056 | break; |
| 1057 | return 112; // "simplify_add_to_sub" |
| 1058 | case 'n': // 1 string to match. |
| 1059 | if (memcmp(RuleIdentifier.data()+10, "eg_minmax" , 9) != 0) |
| 1060 | break; |
| 1061 | return 226; // "simplify_neg_minmax" |
| 1062 | } |
| 1063 | break; |
| 1064 | } |
| 1065 | break; |
| 1066 | case 'u': // 1 string to match. |
| 1067 | if (memcmp(RuleIdentifier.data()+1, "nary_undef_to_zero" , 18) != 0) |
| 1068 | break; |
| 1069 | return 82; // "unary_undef_to_zero" |
| 1070 | } |
| 1071 | break; |
| 1072 | case 20: // 10 strings to match. |
| 1073 | switch (RuleIdentifier[0]) { |
| 1074 | default: break; |
| 1075 | case 'a': // 1 string to match. |
| 1076 | if (memcmp(RuleIdentifier.data()+1, "nd_or_disjoint_mask" , 19) != 0) |
| 1077 | break; |
| 1078 | return 195; // "and_or_disjoint_mask" |
| 1079 | case 'b': // 1 string to match. |
| 1080 | if (memcmp(RuleIdentifier.data()+1, "itcast_bitcast_fold" , 19) != 0) |
| 1081 | break; |
| 1082 | return 105; // "bitcast_bitcast_fold" |
| 1083 | case 'c': // 1 string to match. |
| 1084 | if (memcmp(RuleIdentifier.data()+1, "onstant_fold_ffloor" , 19) != 0) |
| 1085 | break; |
| 1086 | return 152; // "constant_fold_ffloor" |
| 1087 | case 'i': // 1 string to match. |
| 1088 | if (memcmp(RuleIdentifier.data()+1, "cmp_redundant_trunc" , 19) != 0) |
| 1089 | break; |
| 1090 | return 270; // "icmp_redundant_trunc" |
| 1091 | case 'm': // 1 string to match. |
| 1092 | if (memcmp(RuleIdentifier.data()+1, "erge_of_x_and_undef" , 19) != 0) |
| 1093 | break; |
| 1094 | return 242; // "merge_of_x_and_undef" |
| 1095 | case 'o': // 1 string to match. |
| 1096 | if (memcmp(RuleIdentifier.data()+1, "r_and_xor_to_xor_or" , 19) != 0) |
| 1097 | break; |
| 1098 | return 221; // "or_and_xor_to_xor_or" |
| 1099 | case 'r': // 2 strings to match. |
| 1100 | if (memcmp(RuleIdentifier.data()+1, "edu" , 3) != 0) |
| 1101 | break; |
| 1102 | switch (RuleIdentifier[4]) { |
| 1103 | default: break; |
| 1104 | case 'c': // 1 string to match. |
| 1105 | if (memcmp(RuleIdentifier.data()+5, "e_shl_of_extend" , 15) != 0) |
| 1106 | break; |
| 1107 | return 128; // "reduce_shl_of_extend" |
| 1108 | case 'n': // 1 string to match. |
| 1109 | if (memcmp(RuleIdentifier.data()+5, "dant_sext_inreg" , 15) != 0) |
| 1110 | break; |
| 1111 | return 137; // "redundant_sext_inreg" |
| 1112 | } |
| 1113 | break; |
| 1114 | case 'u': // 2 strings to match. |
| 1115 | if (RuleIdentifier[1] != 'n') |
| 1116 | break; |
| 1117 | switch (RuleIdentifier[2]) { |
| 1118 | default: break; |
| 1119 | case 'a': // 1 string to match. |
| 1120 | if (memcmp(RuleIdentifier.data()+3, "ry_undef_to_undef" , 17) != 0) |
| 1121 | break; |
| 1122 | return 83; // "unary_undef_to_undef" |
| 1123 | case 'm': // 1 string to match. |
| 1124 | if (memcmp(RuleIdentifier.data()+3, "erge_zext_to_zext" , 17) != 0) |
| 1125 | break; |
| 1126 | return 241; // "unmerge_zext_to_zext" |
| 1127 | } |
| 1128 | break; |
| 1129 | } |
| 1130 | break; |
| 1131 | case 21: // 20 strings to match. |
| 1132 | switch (RuleIdentifier[0]) { |
| 1133 | default: break; |
| 1134 | case 'a': // 1 string to match. |
| 1135 | if (memcmp(RuleIdentifier.data()+1, "nd_xor_or_to_xor_and" , 20) != 0) |
| 1136 | break; |
| 1137 | return 223; // "and_xor_or_to_xor_and" |
| 1138 | case 'c': // 6 strings to match. |
| 1139 | if (RuleIdentifier[1] != 'o') |
| 1140 | break; |
| 1141 | switch (RuleIdentifier[2]) { |
| 1142 | default: break; |
| 1143 | case 'm': // 4 strings to match. |
| 1144 | if (memcmp(RuleIdentifier.data()+3, "bine_" , 5) != 0) |
| 1145 | break; |
| 1146 | switch (RuleIdentifier[8]) { |
| 1147 | default: break; |
| 1148 | case 'b': // 1 string to match. |
| 1149 | if (memcmp(RuleIdentifier.data()+9, "uild_unmerge" , 12) != 0) |
| 1150 | break; |
| 1151 | return 244; // "combine_build_unmerge" |
| 1152 | case 'c': // 1 string to match. |
| 1153 | if (memcmp(RuleIdentifier.data()+9, "oncat_vector" , 12) != 0) |
| 1154 | break; |
| 1155 | return 227; // "combine_concat_vector" |
| 1156 | case 'm': // 2 strings to match. |
| 1157 | if (memcmp(RuleIdentifier.data()+9, "em" , 2) != 0) |
| 1158 | break; |
| 1159 | switch (RuleIdentifier[11]) { |
| 1160 | default: break; |
| 1161 | case 'c': // 1 string to match. |
| 1162 | if (memcmp(RuleIdentifier.data()+12, "py_inline" , 9) != 0) |
| 1163 | break; |
| 1164 | return 281; // "combine_memcpy_inline" |
| 1165 | case 's': // 1 string to match. |
| 1166 | if (memcmp(RuleIdentifier.data()+12, "et_inline" , 9) != 0) |
| 1167 | break; |
| 1168 | return 282; // "combine_memset_inline" |
| 1169 | } |
| 1170 | break; |
| 1171 | } |
| 1172 | break; |
| 1173 | case 'n': // 2 strings to match. |
| 1174 | if (memcmp(RuleIdentifier.data()+3, "stant_fold_" , 11) != 0) |
| 1175 | break; |
| 1176 | switch (RuleIdentifier[14]) { |
| 1177 | default: break; |
| 1178 | case 'c': // 1 string to match. |
| 1179 | if (memcmp(RuleIdentifier.data()+15, "ast_op" , 6) != 0) |
| 1180 | break; |
| 1181 | return 190; // "constant_fold_cast_op" |
| 1182 | case 'f': // 1 string to match. |
| 1183 | if (memcmp(RuleIdentifier.data()+15, "ptrunc" , 6) != 0) |
| 1184 | break; |
| 1185 | return 149; // "constant_fold_fptrunc" |
| 1186 | } |
| 1187 | break; |
| 1188 | } |
| 1189 | break; |
| 1190 | case 'e': // 1 string to match. |
| 1191 | if (memcmp(RuleIdentifier.data()+1, "xt_addv_to_udot_addv" , 20) != 0) |
| 1192 | break; |
| 1193 | return 272; // "ext_addv_to_udot_addv" |
| 1194 | case 'f': // 1 string to match. |
| 1195 | if (memcmp(RuleIdentifier.data()+1, "div_repeated_divison" , 20) != 0) |
| 1196 | break; |
| 1197 | return 212; // "fdiv_repeated_divison" |
| 1198 | case 'i': // 1 string to match. |
| 1199 | if (memcmp(RuleIdentifier.data()+1, "nsert_vector_elt_oob" , 20) != 0) |
| 1200 | break; |
| 1201 | return 30; // "insert_vector_elt_oob" |
| 1202 | case 'l': // 1 string to match. |
| 1203 | if (memcmp(RuleIdentifier.data()+1, "shr_of_trunc_of_lshr" , 20) != 0) |
| 1204 | break; |
| 1205 | return 251; // "lshr_of_trunc_of_lshr" |
| 1206 | case 'p': // 6 strings to match. |
| 1207 | if (memcmp(RuleIdentifier.data()+1, "ush_" , 4) != 0) |
| 1208 | break; |
| 1209 | switch (RuleIdentifier[5]) { |
| 1210 | default: break; |
| 1211 | case 'a': // 2 strings to match. |
| 1212 | if (memcmp(RuleIdentifier.data()+6, "dd_through_" , 11) != 0) |
| 1213 | break; |
| 1214 | switch (RuleIdentifier[17]) { |
| 1215 | default: break; |
| 1216 | case 's': // 1 string to match. |
| 1217 | if (memcmp(RuleIdentifier.data()+18, "ext" , 3) != 0) |
| 1218 | break; |
| 1219 | return 278; // "push_add_through_sext" |
| 1220 | case 'z': // 1 string to match. |
| 1221 | if (memcmp(RuleIdentifier.data()+18, "ext" , 3) != 0) |
| 1222 | break; |
| 1223 | return 275; // "push_add_through_zext" |
| 1224 | } |
| 1225 | break; |
| 1226 | case 'm': // 2 strings to match. |
| 1227 | if (memcmp(RuleIdentifier.data()+6, "ul_through_" , 11) != 0) |
| 1228 | break; |
| 1229 | switch (RuleIdentifier[17]) { |
| 1230 | default: break; |
| 1231 | case 's': // 1 string to match. |
| 1232 | if (memcmp(RuleIdentifier.data()+18, "ext" , 3) != 0) |
| 1233 | break; |
| 1234 | return 279; // "push_mul_through_sext" |
| 1235 | case 'z': // 1 string to match. |
| 1236 | if (memcmp(RuleIdentifier.data()+18, "ext" , 3) != 0) |
| 1237 | break; |
| 1238 | return 276; // "push_mul_through_zext" |
| 1239 | } |
| 1240 | break; |
| 1241 | case 's': // 2 strings to match. |
| 1242 | if (memcmp(RuleIdentifier.data()+6, "ub_through_" , 11) != 0) |
| 1243 | break; |
| 1244 | switch (RuleIdentifier[17]) { |
| 1245 | default: break; |
| 1246 | case 's': // 1 string to match. |
| 1247 | if (memcmp(RuleIdentifier.data()+18, "ext" , 3) != 0) |
| 1248 | break; |
| 1249 | return 277; // "push_sub_through_sext" |
| 1250 | case 'z': // 1 string to match. |
| 1251 | if (memcmp(RuleIdentifier.data()+18, "ext" , 3) != 0) |
| 1252 | break; |
| 1253 | return 274; // "push_sub_through_zext" |
| 1254 | } |
| 1255 | break; |
| 1256 | } |
| 1257 | break; |
| 1258 | case 'r': // 1 string to match. |
| 1259 | if (memcmp(RuleIdentifier.data()+1, "ight_identity_one_fp" , 20) != 0) |
| 1260 | break; |
| 1261 | return 100; // "right_identity_one_fp" |
| 1262 | case 'u': // 2 strings to match. |
| 1263 | if (RuleIdentifier[1] != 'n') |
| 1264 | break; |
| 1265 | switch (RuleIdentifier[2]) { |
| 1266 | default: break; |
| 1267 | case 'd': // 1 string to match. |
| 1268 | if (memcmp(RuleIdentifier.data()+3, "ef_to_negative_one" , 18) != 0) |
| 1269 | break; |
| 1270 | return 79; // "undef_to_negative_one" |
| 1271 | case 'm': // 1 string to match. |
| 1272 | if (memcmp(RuleIdentifier.data()+3, "erge_dead_to_trunc" , 18) != 0) |
| 1273 | break; |
| 1274 | return 240; // "unmerge_dead_to_trunc" |
| 1275 | } |
| 1276 | break; |
| 1277 | } |
| 1278 | break; |
| 1279 | case 22: // 14 strings to match. |
| 1280 | switch (RuleIdentifier[0]) { |
| 1281 | default: break; |
| 1282 | case 'c': // 3 strings to match. |
| 1283 | if (RuleIdentifier[1] != 'o') |
| 1284 | break; |
| 1285 | switch (RuleIdentifier[2]) { |
| 1286 | default: break; |
| 1287 | case 'm': // 2 strings to match. |
| 1288 | if (memcmp(RuleIdentifier.data()+3, "bine_shuffle_" , 13) != 0) |
| 1289 | break; |
| 1290 | switch (RuleIdentifier[16]) { |
| 1291 | default: break; |
| 1292 | case 'c': // 1 string to match. |
| 1293 | if (memcmp(RuleIdentifier.data()+17, "oncat" , 5) != 0) |
| 1294 | break; |
| 1295 | return 231; // "combine_shuffle_concat" |
| 1296 | case 'v': // 1 string to match. |
| 1297 | if (memcmp(RuleIdentifier.data()+17, "ector" , 5) != 0) |
| 1298 | break; |
| 1299 | return 269; // "combine_shuffle_vector" |
| 1300 | } |
| 1301 | break; |
| 1302 | case 'n': // 1 string to match. |
| 1303 | if (memcmp(RuleIdentifier.data()+3, "stant_fold_fp_binop" , 19) != 0) |
| 1304 | break; |
| 1305 | return 188; // "constant_fold_fp_binop" |
| 1306 | } |
| 1307 | break; |
| 1308 | case 'f': // 4 strings to match. |
| 1309 | switch (RuleIdentifier[1]) { |
| 1310 | default: break; |
| 1311 | case 'o': // 1 string to match. |
| 1312 | if (memcmp(RuleIdentifier.data()+2, "ld_binop_into_select" , 20) != 0) |
| 1313 | break; |
| 1314 | return 204; // "fold_binop_into_select" |
| 1315 | case 'u': // 3 strings to match. |
| 1316 | if (memcmp(RuleIdentifier.data()+2, "nnel_shift_" , 11) != 0) |
| 1317 | break; |
| 1318 | switch (RuleIdentifier[13]) { |
| 1319 | default: break; |
| 1320 | case 'l': // 1 string to match. |
| 1321 | if (memcmp(RuleIdentifier.data()+14, "eft_zero" , 8) != 0) |
| 1322 | break; |
| 1323 | return 176; // "funnel_shift_left_zero" |
| 1324 | case 'o': // 1 string to match. |
| 1325 | if (memcmp(RuleIdentifier.data()+14, "vershift" , 8) != 0) |
| 1326 | break; |
| 1327 | return 177; // "funnel_shift_overshift" |
| 1328 | case 't': // 1 string to match. |
| 1329 | if (memcmp(RuleIdentifier.data()+14, "o_rotate" , 8) != 0) |
| 1330 | break; |
| 1331 | return 174; // "funnel_shift_to_rotate" |
| 1332 | } |
| 1333 | break; |
| 1334 | } |
| 1335 | break; |
| 1336 | case 'i': // 1 string to match. |
| 1337 | if (memcmp(RuleIdentifier.data()+1, "cmp_to_lhs_known_bits" , 21) != 0) |
| 1338 | break; |
| 1339 | return 121; // "icmp_to_lhs_known_bits" |
| 1340 | case 'm': // 1 string to match. |
| 1341 | if (memcmp(RuleIdentifier.data()+1, "atch_subo_no_overflow" , 21) != 0) |
| 1342 | break; |
| 1343 | return 246; // "match_subo_no_overflow" |
| 1344 | case 'p': // 1 string to match. |
| 1345 | if (memcmp(RuleIdentifier.data()+1, "ropagate_undef_any_op" , 21) != 0) |
| 1346 | break; |
| 1347 | return 84; // "propagate_undef_any_op" |
| 1348 | case 'r': // 2 strings to match. |
| 1349 | switch (RuleIdentifier[1]) { |
| 1350 | default: break; |
| 1351 | case 'e': // 1 string to match. |
| 1352 | if (memcmp(RuleIdentifier.data()+2, "dundant_neg_operands" , 20) != 0) |
| 1353 | break; |
| 1354 | return 194; // "redundant_neg_operands" |
| 1355 | case 'i': // 1 string to match. |
| 1356 | if (memcmp(RuleIdentifier.data()+2, "ght_identity_one_int" , 20) != 0) |
| 1357 | break; |
| 1358 | return 99; // "right_identity_one_int" |
| 1359 | } |
| 1360 | break; |
| 1361 | case 's': // 1 string to match. |
| 1362 | if (memcmp(RuleIdentifier.data()+1, "hl_ashr_to_sext_inreg" , 21) != 0) |
| 1363 | break; |
| 1364 | return 125; // "shl_ashr_to_sext_inreg" |
| 1365 | case 't': // 1 string to match. |
| 1366 | if (memcmp(RuleIdentifier.data()+1, "runc_buildvector_fold" , 21) != 0) |
| 1367 | break; |
| 1368 | return 103; // "trunc_buildvector_fold" |
| 1369 | } |
| 1370 | break; |
| 1371 | case 23: // 6 strings to match. |
| 1372 | switch (RuleIdentifier[0]) { |
| 1373 | default: break; |
| 1374 | case 'b': // 1 string to match. |
| 1375 | if (memcmp(RuleIdentifier.data()+1, "uildvector_of_truncate" , 22) != 0) |
| 1376 | break; |
| 1377 | return 63; // "buildvector_of_truncate" |
| 1378 | case 'f': // 1 string to match. |
| 1379 | if (memcmp(RuleIdentifier.data()+1, "unnel_shift_right_zero" , 22) != 0) |
| 1380 | break; |
| 1381 | return 175; // "funnel_shift_right_zero" |
| 1382 | case 'i': // 2 strings to match. |
| 1383 | if (memcmp(RuleIdentifier.data()+1, "tof_const_zero_fold_" , 20) != 0) |
| 1384 | break; |
| 1385 | switch (RuleIdentifier[21]) { |
| 1386 | default: break; |
| 1387 | case 's': // 1 string to match. |
| 1388 | if (RuleIdentifier[22] != 'i') |
| 1389 | break; |
| 1390 | return 158; // "itof_const_zero_fold_si" |
| 1391 | case 'u': // 1 string to match. |
| 1392 | if (RuleIdentifier[22] != 'i') |
| 1393 | break; |
| 1394 | return 159; // "itof_const_zero_fold_ui" |
| 1395 | } |
| 1396 | break; |
| 1397 | case 'p': // 1 string to match. |
| 1398 | if (memcmp(RuleIdentifier.data()+1, "ropagate_undef_all_ops" , 22) != 0) |
| 1399 | break; |
| 1400 | return 85; // "propagate_undef_all_ops" |
| 1401 | case 't': // 1 string to match. |
| 1402 | if (memcmp(RuleIdentifier.data()+1, "runcusatu_to_fptouisat" , 22) != 0) |
| 1403 | break; |
| 1404 | return 250; // "truncusatu_to_fptouisat" |
| 1405 | } |
| 1406 | break; |
| 1407 | case 24: // 10 strings to match. |
| 1408 | switch (RuleIdentifier[0]) { |
| 1409 | default: break; |
| 1410 | case 'b': // 1 string to match. |
| 1411 | if (memcmp(RuleIdentifier.data()+1, "inop_left_undef_to_zero" , 23) != 0) |
| 1412 | break; |
| 1413 | return 80; // "binop_left_undef_to_zero" |
| 1414 | case 'c': // 4 strings to match. |
| 1415 | switch (RuleIdentifier[1]) { |
| 1416 | default: break; |
| 1417 | case 'o': // 1 string to match. |
| 1418 | if (memcmp(RuleIdentifier.data()+2, "nstant_fold_fnearbyint" , 22) != 0) |
| 1419 | break; |
| 1420 | return 157; // "constant_fold_fnearbyint" |
| 1421 | case 't': // 3 strings to match. |
| 1422 | switch (RuleIdentifier[2]) { |
| 1423 | default: break; |
| 1424 | case 'l': // 2 strings to match. |
| 1425 | if (memcmp(RuleIdentifier.data()+3, "z_" , 2) != 0) |
| 1426 | break; |
| 1427 | switch (RuleIdentifier[5]) { |
| 1428 | default: break; |
| 1429 | case 't': // 1 string to match. |
| 1430 | if (memcmp(RuleIdentifier.data()+6, "o_ctlz_zero_poison" , 18) != 0) |
| 1431 | break; |
| 1432 | return 254; // "ctlz_to_ctlz_zero_poison" |
| 1433 | case 'z': // 1 string to match. |
| 1434 | if (memcmp(RuleIdentifier.data()+6, "ero_poison_to_ctls" , 18) != 0) |
| 1435 | break; |
| 1436 | return 253; // "ctlz_zero_poison_to_ctls" |
| 1437 | } |
| 1438 | break; |
| 1439 | case 't': // 1 string to match. |
| 1440 | if (memcmp(RuleIdentifier.data()+3, "z_to_cttz_zero_poison" , 21) != 0) |
| 1441 | break; |
| 1442 | return 255; // "cttz_to_cttz_zero_poison" |
| 1443 | } |
| 1444 | break; |
| 1445 | } |
| 1446 | break; |
| 1447 | case 'm': // 1 string to match. |
| 1448 | if (memcmp(RuleIdentifier.data()+1, "atch_extract_of_element" , 23) != 0) |
| 1449 | break; |
| 1450 | return 29; // "match_extract_of_element" |
| 1451 | case 'n': // 1 string to match. |
| 1452 | if (memcmp(RuleIdentifier.data()+1, "arrow_binop_feeding_and" , 23) != 0) |
| 1453 | break; |
| 1454 | return 129; // "narrow_binop_feeding_and" |
| 1455 | case 's': // 2 strings to match. |
| 1456 | if (memcmp(RuleIdentifier.data()+1, "ext_inreg_" , 10) != 0) |
| 1457 | break; |
| 1458 | switch (RuleIdentifier[11]) { |
| 1459 | default: break; |
| 1460 | case 'o': // 1 string to match. |
| 1461 | if (memcmp(RuleIdentifier.data()+12, "f_sext_inreg" , 12) != 0) |
| 1462 | break; |
| 1463 | return 59; // "sext_inreg_of_sext_inreg" |
| 1464 | case 't': // 1 string to match. |
| 1465 | if (memcmp(RuleIdentifier.data()+12, "o_zext_inreg" , 12) != 0) |
| 1466 | break; |
| 1467 | return 141; // "sext_inreg_to_zext_inreg" |
| 1468 | } |
| 1469 | break; |
| 1470 | case 'x': // 1 string to match. |
| 1471 | if (memcmp(RuleIdentifier.data()+1, "or_of_and_with_same_reg" , 23) != 0) |
| 1472 | break; |
| 1473 | return 167; // "xor_of_and_with_same_reg" |
| 1474 | } |
| 1475 | break; |
| 1476 | case 25: // 7 strings to match. |
| 1477 | switch (RuleIdentifier[0]) { |
| 1478 | default: break; |
| 1479 | case 'b': // 3 strings to match. |
| 1480 | switch (RuleIdentifier[1]) { |
| 1481 | default: break; |
| 1482 | case 'i': // 2 strings to match. |
| 1483 | if (memcmp(RuleIdentifier.data()+2, "tfield_extract_from_" , 20) != 0) |
| 1484 | break; |
| 1485 | switch (RuleIdentifier[22]) { |
| 1486 | default: break; |
| 1487 | case 'a': // 1 string to match. |
| 1488 | if (memcmp(RuleIdentifier.data()+23, "nd" , 2) != 0) |
| 1489 | break; |
| 1490 | return 184; // "bitfield_extract_from_and" |
| 1491 | case 's': // 1 string to match. |
| 1492 | if (memcmp(RuleIdentifier.data()+23, "hr" , 2) != 0) |
| 1493 | break; |
| 1494 | return 185; // "bitfield_extract_from_shr" |
| 1495 | } |
| 1496 | break; |
| 1497 | case 'u': // 1 string to match. |
| 1498 | if (memcmp(RuleIdentifier.data()+2, "ildvector_identity_fold" , 23) != 0) |
| 1499 | break; |
| 1500 | return 102; // "buildvector_identity_fold" |
| 1501 | } |
| 1502 | break; |
| 1503 | case 'c': // 1 string to match. |
| 1504 | if (memcmp(RuleIdentifier.data()+1, "ombine_shuffle_undef_rhs" , 24) != 0) |
| 1505 | break; |
| 1506 | return 232; // "combine_shuffle_undef_rhs" |
| 1507 | case 'e': // 1 string to match. |
| 1508 | if (memcmp(RuleIdentifier.data()+1, "xtract_vec_elt_build_vec" , 24) != 0) |
| 1509 | break; |
| 1510 | return 72; // "extract_vec_elt_build_vec" |
| 1511 | case 'n': // 1 string to match. |
| 1512 | if (memcmp(RuleIdentifier.data()+1, "eg_and_one_to_sext_inreg" , 24) != 0) |
| 1513 | break; |
| 1514 | return 126; // "neg_and_one_to_sext_inreg" |
| 1515 | case 'r': // 1 string to match. |
| 1516 | if (memcmp(RuleIdentifier.data()+1, "ight_identity_neg_one_fp" , 24) != 0) |
| 1517 | break; |
| 1518 | return 110; // "right_identity_neg_one_fp" |
| 1519 | } |
| 1520 | break; |
| 1521 | case 26: // 6 strings to match. |
| 1522 | switch (RuleIdentifier[0]) { |
| 1523 | default: break; |
| 1524 | case 'b': // 2 strings to match. |
| 1525 | if (RuleIdentifier[1] != 'i') |
| 1526 | break; |
| 1527 | switch (RuleIdentifier[2]) { |
| 1528 | default: break; |
| 1529 | case 'n': // 1 string to match. |
| 1530 | if (memcmp(RuleIdentifier.data()+3, "op_right_undef_to_undef" , 23) != 0) |
| 1531 | break; |
| 1532 | return 81; // "binop_right_undef_to_undef" |
| 1533 | case 't': // 1 string to match. |
| 1534 | if (memcmp(RuleIdentifier.data()+3, "cast_bitcast_to_bitcast" , 23) != 0) |
| 1535 | break; |
| 1536 | return 106; // "bitcast_bitcast_to_bitcast" |
| 1537 | } |
| 1538 | break; |
| 1539 | case 'c': // 2 strings to match. |
| 1540 | if (RuleIdentifier[1] != 'o') |
| 1541 | break; |
| 1542 | switch (RuleIdentifier[2]) { |
| 1543 | default: break; |
| 1544 | case 'm': // 1 string to match. |
| 1545 | if (memcmp(RuleIdentifier.data()+3, "mute_fp_constant_to_rhs" , 23) != 0) |
| 1546 | break; |
| 1547 | return 217; // "commute_fp_constant_to_rhs" |
| 1548 | case 'n': // 1 string to match. |
| 1549 | if (memcmp(RuleIdentifier.data()+3, "stant_fold_unary_int_op" , 23) != 0) |
| 1550 | break; |
| 1551 | return 191; // "constant_fold_unary_int_op" |
| 1552 | } |
| 1553 | break; |
| 1554 | case 'f': // 1 string to match. |
| 1555 | if (memcmp(RuleIdentifier.data()+1, "unnel_shift_from_or_shift" , 25) != 0) |
| 1556 | break; |
| 1557 | return 173; // "funnel_shift_from_or_shift" |
| 1558 | case 'r': // 1 string to match. |
| 1559 | if (memcmp(RuleIdentifier.data()+1, "ight_identity_neg_zero_fp" , 25) != 0) |
| 1560 | break; |
| 1561 | return 108; // "right_identity_neg_zero_fp" |
| 1562 | } |
| 1563 | break; |
| 1564 | case 27: // 6 strings to match. |
| 1565 | switch (RuleIdentifier[0]) { |
| 1566 | default: break; |
| 1567 | case 'c': // 2 strings to match. |
| 1568 | if (memcmp(RuleIdentifier.data()+1, "om" , 2) != 0) |
| 1569 | break; |
| 1570 | switch (RuleIdentifier[3]) { |
| 1571 | default: break; |
| 1572 | case 'b': // 1 string to match. |
| 1573 | if (memcmp(RuleIdentifier.data()+4, "ine_use_vector_truncate" , 23) != 0) |
| 1574 | break; |
| 1575 | return 234; // "combine_use_vector_truncate" |
| 1576 | case 'm': // 1 string to match. |
| 1577 | if (memcmp(RuleIdentifier.data()+4, "ute_int_constant_to_rhs" , 23) != 0) |
| 1578 | break; |
| 1579 | return 216; // "commute_int_constant_to_rhs" |
| 1580 | } |
| 1581 | break; |
| 1582 | case 'd': // 1 string to match. |
| 1583 | if (memcmp(RuleIdentifier.data()+1, "ouble_icmp_zero_or_combine" , 26) != 0) |
| 1584 | break; |
| 1585 | return 123; // "double_icmp_zero_or_combine" |
| 1586 | case 'r': // 1 string to match. |
| 1587 | if (memcmp(RuleIdentifier.data()+1, "edundant_binop_in_equality" , 26) != 0) |
| 1588 | break; |
| 1589 | return 124; // "redundant_binop_in_equality" |
| 1590 | case 't': // 1 string to match. |
| 1591 | if (memcmp(RuleIdentifier.data()+1, "runc_lshr_buildvector_fold" , 26) != 0) |
| 1592 | break; |
| 1593 | return 104; // "trunc_lshr_buildvector_fold" |
| 1594 | case 'u': // 1 string to match. |
| 1595 | if (memcmp(RuleIdentifier.data()+1, "nmerge_anyext_build_vector" , 26) != 0) |
| 1596 | break; |
| 1597 | return 235; // "unmerge_anyext_build_vector" |
| 1598 | } |
| 1599 | break; |
| 1600 | case 28: // 4 strings to match. |
| 1601 | switch (RuleIdentifier[0]) { |
| 1602 | default: break; |
| 1603 | case 'd': // 1 string to match. |
| 1604 | if (memcmp(RuleIdentifier.data()+1, "ouble_icmp_zero_and_combine" , 27) != 0) |
| 1605 | break; |
| 1606 | return 122; // "double_icmp_zero_and_combine" |
| 1607 | case 'o': // 1 string to match. |
| 1608 | if (memcmp(RuleIdentifier.data()+1, "pt_brcond_by_inverting_cond" , 27) != 0) |
| 1609 | break; |
| 1610 | return 144; // "opt_brcond_by_inverting_cond" |
| 1611 | case 'p': // 1 string to match. |
| 1612 | if (memcmp(RuleIdentifier.data()+1, "ropagate_undef_shuffle_mask" , 27) != 0) |
| 1613 | break; |
| 1614 | return 86; // "propagate_undef_shuffle_mask" |
| 1615 | case 's': // 1 string to match. |
| 1616 | if (memcmp(RuleIdentifier.data()+1, "hift_of_shifted_logic_chain" , 27) != 0) |
| 1617 | break; |
| 1618 | return 170; // "shift_of_shifted_logic_chain" |
| 1619 | } |
| 1620 | break; |
| 1621 | case 29: // 6 strings to match. |
| 1622 | switch (RuleIdentifier[0]) { |
| 1623 | default: break; |
| 1624 | case 'b': // 1 string to match. |
| 1625 | if (memcmp(RuleIdentifier.data()+1, "itfield_extract_from_shr_and" , 28) != 0) |
| 1626 | break; |
| 1627 | return 186; // "bitfield_extract_from_shr_and" |
| 1628 | case 'c': // 4 strings to match. |
| 1629 | if (RuleIdentifier[1] != 'o') |
| 1630 | break; |
| 1631 | switch (RuleIdentifier[2]) { |
| 1632 | default: break; |
| 1633 | case 'm': // 2 strings to match. |
| 1634 | if (memcmp(RuleIdentifier.data()+3, "bine_" , 5) != 0) |
| 1635 | break; |
| 1636 | switch (RuleIdentifier[8]) { |
| 1637 | default: break; |
| 1638 | case 'e': // 1 string to match. |
| 1639 | if (memcmp(RuleIdentifier.data()+9, "xtracted_vector_load" , 20) != 0) |
| 1640 | break; |
| 1641 | return 76; // "combine_extracted_vector_load" |
| 1642 | case 's': // 1 string to match. |
| 1643 | if (memcmp(RuleIdentifier.data()+9, "huffle_disjoint_mask" , 20) != 0) |
| 1644 | break; |
| 1645 | return 233; // "combine_shuffle_disjoint_mask" |
| 1646 | } |
| 1647 | break; |
| 1648 | case 'n': // 2 strings to match. |
| 1649 | if (memcmp(RuleIdentifier.data()+3, "stant_fold_intrinsic_" , 21) != 0) |
| 1650 | break; |
| 1651 | switch (RuleIdentifier[24]) { |
| 1652 | default: break; |
| 1653 | case 'r': // 1 string to match. |
| 1654 | if (memcmp(RuleIdentifier.data()+25, "ound" , 4) != 0) |
| 1655 | break; |
| 1656 | return 154; // "constant_fold_intrinsic_round" |
| 1657 | case 't': // 1 string to match. |
| 1658 | if (memcmp(RuleIdentifier.data()+25, "runc" , 4) != 0) |
| 1659 | break; |
| 1660 | return 153; // "constant_fold_intrinsic_trunc" |
| 1661 | } |
| 1662 | break; |
| 1663 | } |
| 1664 | break; |
| 1665 | case 'i': // 1 string to match. |
| 1666 | if (memcmp(RuleIdentifier.data()+1, "cmp_to_true_false_known_bits" , 28) != 0) |
| 1667 | break; |
| 1668 | return 120; // "icmp_to_true_false_known_bits" |
| 1669 | } |
| 1670 | break; |
| 1671 | case 30: // 2 strings to match. |
| 1672 | switch (RuleIdentifier[0]) { |
| 1673 | default: break; |
| 1674 | case 'f': // 1 string to match. |
| 1675 | if (memcmp(RuleIdentifier.data()+1, "reeze_of_non_undef_non_poison" , 29) != 0) |
| 1676 | break; |
| 1677 | return 47; // "freeze_of_non_undef_non_poison" |
| 1678 | case 'r': // 1 string to match. |
| 1679 | if (memcmp(RuleIdentifier.data()+1, "ight_identity_neg_zero_fp_nsz" , 29) != 0) |
| 1680 | break; |
| 1681 | return 109; // "right_identity_neg_zero_fp_nsz" |
| 1682 | } |
| 1683 | break; |
| 1684 | case 31: // 2 strings to match. |
| 1685 | if (memcmp(RuleIdentifier.data()+0, "insert_vector_element_" , 22) != 0) |
| 1686 | break; |
| 1687 | switch (RuleIdentifier[22]) { |
| 1688 | default: break; |
| 1689 | case 'e': // 1 string to match. |
| 1690 | if (memcmp(RuleIdentifier.data()+23, "lt_undef" , 8) != 0) |
| 1691 | break; |
| 1692 | return 28; // "insert_vector_element_elt_undef" |
| 1693 | case 'i': // 1 string to match. |
| 1694 | if (memcmp(RuleIdentifier.data()+23, "dx_undef" , 8) != 0) |
| 1695 | break; |
| 1696 | return 27; // "insert_vector_element_idx_undef" |
| 1697 | } |
| 1698 | break; |
| 1699 | case 32: // 4 strings to match. |
| 1700 | switch (RuleIdentifier[0]) { |
| 1701 | default: break; |
| 1702 | case 'b': // 1 string to match. |
| 1703 | if (memcmp(RuleIdentifier.data()+1, "itfield_extract_from_sext_inreg" , 31) != 0) |
| 1704 | break; |
| 1705 | return 183; // "bitfield_extract_from_sext_inreg" |
| 1706 | case 'c': // 2 strings to match. |
| 1707 | if (memcmp(RuleIdentifier.data()+1, "ombine_f" , 8) != 0) |
| 1708 | break; |
| 1709 | switch (RuleIdentifier[9]) { |
| 1710 | default: break; |
| 1711 | case 'a': // 1 string to match. |
| 1712 | if (memcmp(RuleIdentifier.data()+10, "dd_fmul_to_fmad_or_fma" , 22) != 0) |
| 1713 | break; |
| 1714 | return 196; // "combine_fadd_fmul_to_fmad_or_fma" |
| 1715 | case 's': // 1 string to match. |
| 1716 | if (memcmp(RuleIdentifier.data()+10, "ub_fmul_to_fmad_or_fma" , 22) != 0) |
| 1717 | break; |
| 1718 | return 200; // "combine_fsub_fmul_to_fmad_or_fma" |
| 1719 | } |
| 1720 | break; |
| 1721 | case 'e': // 1 string to match. |
| 1722 | if (memcmp(RuleIdentifier.data()+1, "xtract_vector_element_not_const" , 31) != 0) |
| 1723 | break; |
| 1724 | return 31; // "extract_vector_element_not_const" |
| 1725 | } |
| 1726 | break; |
| 1727 | case 33: // 1 string to match. |
| 1728 | if (memcmp(RuleIdentifier.data()+0, "constant_fold_intrinsic_roundeven" , 33) != 0) |
| 1729 | break; |
| 1730 | return 155; // "constant_fold_intrinsic_roundeven" |
| 1731 | case 34: // 1 string to match. |
| 1732 | if (memcmp(RuleIdentifier.data()+0, "extract_all_elts_from_build_vector" , 34) != 0) |
| 1733 | break; |
| 1734 | return 73; // "extract_all_elts_from_build_vector" |
| 1735 | case 35: // 1 string to match. |
| 1736 | if (memcmp(RuleIdentifier.data()+0, "extract_vector_element_build_vector" , 35) != 0) |
| 1737 | break; |
| 1738 | return 33; // "extract_vector_element_build_vector" |
| 1739 | case 36: // 4 strings to match. |
| 1740 | switch (RuleIdentifier[0]) { |
| 1741 | default: break; |
| 1742 | case 'c': // 2 strings to match. |
| 1743 | if (memcmp(RuleIdentifier.data()+1, "ombine_" , 7) != 0) |
| 1744 | break; |
| 1745 | switch (RuleIdentifier[8]) { |
| 1746 | default: break; |
| 1747 | case 'f': // 1 string to match. |
| 1748 | if (memcmp(RuleIdentifier.data()+9, "add_fma_fmul_to_fmad_or_fma" , 27) != 0) |
| 1749 | break; |
| 1750 | return 198; // "combine_fadd_fma_fmul_to_fmad_or_fma" |
| 1751 | case 'i': // 1 string to match. |
| 1752 | if (memcmp(RuleIdentifier.data()+9, "nsert_vec_elts_build_vector" , 27) != 0) |
| 1753 | break; |
| 1754 | return 71; // "combine_insert_vec_elts_build_vector" |
| 1755 | } |
| 1756 | break; |
| 1757 | case 'i': // 1 string to match. |
| 1758 | if (memcmp(RuleIdentifier.data()+1, "nsert_extract_vec_elt_out_of_bounds" , 35) != 0) |
| 1759 | break; |
| 1760 | return 88; // "insert_extract_vec_elt_out_of_bounds" |
| 1761 | case 'm': // 1 string to match. |
| 1762 | if (memcmp(RuleIdentifier.data()+1, "atch_extract_of_element_undef_index" , 35) != 0) |
| 1763 | break; |
| 1764 | return 26; // "match_extract_of_element_undef_index" |
| 1765 | } |
| 1766 | break; |
| 1767 | case 37: // 4 strings to match. |
| 1768 | switch (RuleIdentifier[0]) { |
| 1769 | default: break; |
| 1770 | case 'c': // 1 string to match. |
| 1771 | if (memcmp(RuleIdentifier.data()+1, "ombine_fsub_fneg_fmul_to_fmad_or_fma" , 36) != 0) |
| 1772 | break; |
| 1773 | return 201; // "combine_fsub_fneg_fmul_to_fmad_or_fma" |
| 1774 | case 'e': // 1 string to match. |
| 1775 | if (memcmp(RuleIdentifier.data()+1, "xtract_vector_element_shuffle_vector" , 36) != 0) |
| 1776 | break; |
| 1777 | return 41; // "extract_vector_element_shuffle_vector" |
| 1778 | case 'h': // 1 string to match. |
| 1779 | if (memcmp(RuleIdentifier.data()+1, "oist_logic_op_with_same_opcode_hands" , 36) != 0) |
| 1780 | break; |
| 1781 | return 113; // "hoist_logic_op_with_same_opcode_hands" |
| 1782 | case 'm': // 1 string to match. |
| 1783 | if (memcmp(RuleIdentifier.data()+1, "atch_extract_of_element_undef_vector" , 36) != 0) |
| 1784 | break; |
| 1785 | return 25; // "match_extract_of_element_undef_vector" |
| 1786 | } |
| 1787 | break; |
| 1788 | case 38: // 2 strings to match. |
| 1789 | if (memcmp(RuleIdentifier.data()+0, "combine_f" , 9) != 0) |
| 1790 | break; |
| 1791 | switch (RuleIdentifier[9]) { |
| 1792 | default: break; |
| 1793 | case 'a': // 1 string to match. |
| 1794 | if (memcmp(RuleIdentifier.data()+10, "dd_fpext_fmul_to_fmad_or_fma" , 28) != 0) |
| 1795 | break; |
| 1796 | return 197; // "combine_fadd_fpext_fmul_to_fmad_or_fma" |
| 1797 | case 's': // 1 string to match. |
| 1798 | if (memcmp(RuleIdentifier.data()+10, "ub_fpext_fmul_to_fmad_or_fma" , 28) != 0) |
| 1799 | break; |
| 1800 | return 202; // "combine_fsub_fpext_fmul_to_fmad_or_fma" |
| 1801 | } |
| 1802 | break; |
| 1803 | case 40: // 1 string to match. |
| 1804 | if (memcmp(RuleIdentifier.data()+0, "extract_vector_element_different_indices" , 40) != 0) |
| 1805 | break; |
| 1806 | return 32; // "extract_vector_element_different_indices" |
| 1807 | case 42: // 9 strings to match. |
| 1808 | switch (RuleIdentifier[0]) { |
| 1809 | default: break; |
| 1810 | case 'c': // 1 string to match. |
| 1811 | if (memcmp(RuleIdentifier.data()+1, "ombine_fadd_fpext_fma_fmul_to_fmad_or_fma" , 41) != 0) |
| 1812 | break; |
| 1813 | return 199; // "combine_fadd_fpext_fma_fmul_to_fmad_or_fma" |
| 1814 | case 'e': // 7 strings to match. |
| 1815 | if (memcmp(RuleIdentifier.data()+1, "xtract_vector_element_build_vector_trunc" , 40) != 0) |
| 1816 | break; |
| 1817 | switch (RuleIdentifier[41]) { |
| 1818 | default: break; |
| 1819 | case '2': // 1 string to match. |
| 1820 | return 34; // "extract_vector_element_build_vector_trunc2" |
| 1821 | case '3': // 1 string to match. |
| 1822 | return 35; // "extract_vector_element_build_vector_trunc3" |
| 1823 | case '4': // 1 string to match. |
| 1824 | return 36; // "extract_vector_element_build_vector_trunc4" |
| 1825 | case '5': // 1 string to match. |
| 1826 | return 37; // "extract_vector_element_build_vector_trunc5" |
| 1827 | case '6': // 1 string to match. |
| 1828 | return 38; // "extract_vector_element_build_vector_trunc6" |
| 1829 | case '7': // 1 string to match. |
| 1830 | return 39; // "extract_vector_element_build_vector_trunc7" |
| 1831 | case '8': // 1 string to match. |
| 1832 | return 40; // "extract_vector_element_build_vector_trunc8" |
| 1833 | } |
| 1834 | break; |
| 1835 | case 'f': // 1 string to match. |
| 1836 | if (memcmp(RuleIdentifier.data()+1, "unnel_shift_or_shift_to_funnel_shift_left" , 41) != 0) |
| 1837 | break; |
| 1838 | return 178; // "funnel_shift_or_shift_to_funnel_shift_left" |
| 1839 | } |
| 1840 | break; |
| 1841 | case 43: // 2 strings to match. |
| 1842 | switch (RuleIdentifier[0]) { |
| 1843 | default: break; |
| 1844 | case 'c': // 1 string to match. |
| 1845 | if (memcmp(RuleIdentifier.data()+1, "ombine_fsub_fpext_fneg_fmul_to_fmad_or_fma" , 42) != 0) |
| 1846 | break; |
| 1847 | return 203; // "combine_fsub_fpext_fneg_fmul_to_fmad_or_fma" |
| 1848 | case 'f': // 1 string to match. |
| 1849 | if (memcmp(RuleIdentifier.data()+1, "unnel_shift_or_shift_to_funnel_shift_right" , 42) != 0) |
| 1850 | break; |
| 1851 | return 179; // "funnel_shift_or_shift_to_funnel_shift_right" |
| 1852 | } |
| 1853 | break; |
| 1854 | case 44: // 1 string to match. |
| 1855 | if (memcmp(RuleIdentifier.data()+0, "insert_vector_element_extract_vector_element" , 44) != 0) |
| 1856 | break; |
| 1857 | return 42; // "insert_vector_element_extract_vector_element" |
| 1858 | case 46: // 1 string to match. |
| 1859 | if (memcmp(RuleIdentifier.data()+0, "push_freeze_to_prevent_poison_from_propagating" , 46) != 0) |
| 1860 | break; |
| 1861 | return 48; // "push_freeze_to_prevent_poison_from_propagating" |
| 1862 | } |
| 1863 | #endif // ifndef NDEBUG |
| 1864 | |
| 1865 | return std::nullopt; |
| 1866 | } |
| 1867 | static std::optional<std::pair<uint64_t, uint64_t>> getRuleRangeForIdentifier(StringRef RuleIdentifier) { |
| 1868 | std::pair<StringRef, StringRef> RangePair = RuleIdentifier.split('-'); |
| 1869 | if (!RangePair.second.empty()) { |
| 1870 | const auto First = getRuleIdxForIdentifier(RangePair.first); |
| 1871 | const auto Last = getRuleIdxForIdentifier(RangePair.second); |
| 1872 | if (!First || !Last) |
| 1873 | return std::nullopt; |
| 1874 | if (First >= Last) |
| 1875 | report_fatal_error("Beginning of range should be before end of range" ); |
| 1876 | return {{*First, *Last + 1}}; |
| 1877 | } |
| 1878 | if (RangePair.first == "*" ) { |
| 1879 | return {{0, 287}}; |
| 1880 | } |
| 1881 | const auto I = getRuleIdxForIdentifier(RangePair.first); |
| 1882 | if (!I) |
| 1883 | return std::nullopt; |
| 1884 | return {{*I, *I + 1}}; |
| 1885 | } |
| 1886 | |
| 1887 | bool AArch64PreLegalizerCombinerImplRuleConfig::setRuleEnabled(StringRef RuleIdentifier) { |
| 1888 | auto MaybeRange = getRuleRangeForIdentifier(RuleIdentifier); |
| 1889 | if (!MaybeRange) |
| 1890 | return false; |
| 1891 | for (auto I = MaybeRange->first; I < MaybeRange->second; ++I) |
| 1892 | DisabledRules.reset(I); |
| 1893 | return true; |
| 1894 | } |
| 1895 | |
| 1896 | bool AArch64PreLegalizerCombinerImplRuleConfig::setRuleDisabled(StringRef RuleIdentifier) { |
| 1897 | auto MaybeRange = getRuleRangeForIdentifier(RuleIdentifier); |
| 1898 | if (!MaybeRange) |
| 1899 | return false; |
| 1900 | for (auto I = MaybeRange->first; I < MaybeRange->second; ++I) |
| 1901 | DisabledRules.set(I); |
| 1902 | return true; |
| 1903 | } |
| 1904 | |
| 1905 | static std::vector<std::string> AArch64PreLegalizerCombinerOption; |
| 1906 | static cl::list<std::string> AArch64PreLegalizerCombinerDisableOption( |
| 1907 | "aarch64prelegalizercombiner-disable-rule" , |
| 1908 | cl::desc("Disable one or more combiner rules temporarily in the AArch64PreLegalizerCombiner pass" ), |
| 1909 | cl::CommaSeparated, |
| 1910 | cl::Hidden, |
| 1911 | cl::cat(GICombinerOptionCategory), |
| 1912 | cl::callback([](const std::string &Str) { |
| 1913 | AArch64PreLegalizerCombinerOption.push_back(Str); |
| 1914 | })); |
| 1915 | static cl::list<std::string> AArch64PreLegalizerCombinerOnlyEnableOption( |
| 1916 | "aarch64prelegalizercombiner-only-enable-rule" , |
| 1917 | cl::desc("Disable all rules in the AArch64PreLegalizerCombiner pass then re-enable the specified ones" ), |
| 1918 | cl::Hidden, |
| 1919 | cl::cat(GICombinerOptionCategory), |
| 1920 | cl::callback([](const std::string &CommaSeparatedArg) { |
| 1921 | StringRef Str = CommaSeparatedArg; |
| 1922 | AArch64PreLegalizerCombinerOption.push_back("*" ); |
| 1923 | do { |
| 1924 | auto X = Str.split("," ); |
| 1925 | AArch64PreLegalizerCombinerOption.push_back(("!" + X.first).str()); |
| 1926 | Str = X.second; |
| 1927 | } while (!Str.empty()); |
| 1928 | })); |
| 1929 | |
| 1930 | |
| 1931 | bool AArch64PreLegalizerCombinerImplRuleConfig::isRuleEnabled(unsigned RuleID) const { |
| 1932 | return !DisabledRules.test(RuleID); |
| 1933 | } |
| 1934 | bool AArch64PreLegalizerCombinerImplRuleConfig::parseCommandLineOption() { |
| 1935 | for (StringRef Identifier : AArch64PreLegalizerCombinerOption) { |
| 1936 | bool Enabled = Identifier.consume_front("!" ); |
| 1937 | if (Enabled && !setRuleEnabled(Identifier)) |
| 1938 | return false; |
| 1939 | if (!Enabled && !setRuleDisabled(Identifier)) |
| 1940 | return false; |
| 1941 | } |
| 1942 | return true; |
| 1943 | } |
| 1944 | |
| 1945 | |
| 1946 | #endif // GET_GICOMBINER_TYPES |
| 1947 | |
| 1948 | #ifdef GET_GICOMBINER_TYPES |
| 1949 | |
| 1950 | const unsigned MAX_SUBTARGET_PREDICATES = 1; |
| 1951 | using PredicateBitset = llvm::Bitset<MAX_SUBTARGET_PREDICATES>; |
| 1952 | |
| 1953 | #endif // GET_GICOMBINER_TYPES |
| 1954 | |
| 1955 | #ifdef GET_GICOMBINER_CLASS_MEMBERS |
| 1956 | |
| 1957 | bool canMatchOpcode(unsigned Opc) const override; |
| 1958 | |
| 1959 | #endif // GET_GICOMBINER_CLASS_MEMBERS |
| 1960 | |
| 1961 | #ifdef GET_GICOMBINER_CLASS_MEMBERS |
| 1962 | |
| 1963 | PredicateBitset AvailableModuleFeatures; |
| 1964 | mutable PredicateBitset AvailableFunctionFeatures; |
| 1965 | PredicateBitset getAvailableFeatures() const { |
| 1966 | return AvailableModuleFeatures | AvailableFunctionFeatures; |
| 1967 | } |
| 1968 | PredicateBitset |
| 1969 | computeAvailableModuleFeatures(const AArch64Subtarget *Subtarget) const; |
| 1970 | PredicateBitset |
| 1971 | computeAvailableFunctionFeatures(const AArch64Subtarget *Subtarget, |
| 1972 | const MachineFunction *MF) const; |
| 1973 | void setupGeneratedPerFunctionState(MachineFunction &MF) override; |
| 1974 | |
| 1975 | #endif // GET_GICOMBINER_CLASS_MEMBERS |
| 1976 | |
| 1977 | #ifdef GET_GICOMBINER_CLASS_MEMBERS |
| 1978 | |
| 1979 | mutable MatcherState State; |
| 1980 | typedef ComplexRendererFns(AArch64PreLegalizerCombinerImpl::*ComplexMatcherMemFn)(MachineOperand &) const; |
| 1981 | typedef void(AArch64PreLegalizerCombinerImpl::*CustomRendererFn)(MachineInstrBuilder &, const MachineInstr &, int) const; |
| 1982 | const ExecInfoTy<PredicateBitset, ComplexMatcherMemFn, CustomRendererFn> ExecInfo; |
| 1983 | static AArch64PreLegalizerCombinerImpl::ComplexMatcherMemFn ComplexPredicateFns[]; |
| 1984 | static AArch64PreLegalizerCombinerImpl::CustomRendererFn CustomRenderers[]; |
| 1985 | bool testImmPredicate_I64(unsigned PredicateID, int64_t Imm) const override; |
| 1986 | bool testImmPredicate_APInt(unsigned PredicateID, const APInt &Imm) const override; |
| 1987 | bool testImmPredicate_APFloat(unsigned PredicateID, const APFloat &Imm) const override; |
| 1988 | const uint8_t *getMatchTable() const override; |
| 1989 | bool testMIPredicate_MI(unsigned PredicateID, const MachineInstr &MI, const MatcherState &State) const override; |
| 1990 | bool testMOPredicate_MO(unsigned PredicateID, const MachineOperand &MO, const MatcherState &State) const override; |
| 1991 | bool testSimplePredicate(unsigned PredicateID) const override; |
| 1992 | bool runCustomAction(unsigned FnID, const MatcherState &State, NewMIVector &OutMIs) const override; |
| 1993 | |
| 1994 | #endif // GET_GICOMBINER_CLASS_MEMBERS |
| 1995 | |
| 1996 | #ifdef GET_GICOMBINER_IMPL |
| 1997 | |
| 1998 | // LLT Objects. |
| 1999 | enum { |
| 2000 | GILLT_s1, |
| 2001 | }; |
| 2002 | const static size_t NumTypeObjects = 1; |
| 2003 | const static LLT TypeObjects[] = { |
| 2004 | LLT::scalar(1), |
| 2005 | }; |
| 2006 | |
| 2007 | // Bits for subtarget features that participate in instruction matching. |
| 2008 | enum SubtargetFeatureBits : uint8_t { |
| 2009 | Feature_HasDotProdBit = 0, |
| 2010 | }; |
| 2011 | |
| 2012 | PredicateBitset AArch64PreLegalizerCombinerImpl:: |
| 2013 | computeAvailableModuleFeatures(const AArch64Subtarget *Subtarget) const { |
| 2014 | PredicateBitset Features{}; |
| 2015 | if (Subtarget->hasDotProd()) |
| 2016 | Features.set(Feature_HasDotProdBit); |
| 2017 | return Features; |
| 2018 | } |
| 2019 | |
| 2020 | void AArch64PreLegalizerCombinerImpl::setupGeneratedPerFunctionState(MachineFunction &MF) { |
| 2021 | AvailableFunctionFeatures = computeAvailableFunctionFeatures((const AArch64Subtarget *)&MF.getSubtarget(), &MF); |
| 2022 | } |
| 2023 | PredicateBitset AArch64PreLegalizerCombinerImpl:: |
| 2024 | computeAvailableFunctionFeatures(const AArch64Subtarget *Subtarget, const MachineFunction *MF) const { |
| 2025 | PredicateBitset Features{}; |
| 2026 | return Features; |
| 2027 | } |
| 2028 | |
| 2029 | // Feature bitsets. |
| 2030 | enum { |
| 2031 | GIFBS_Invalid, |
| 2032 | GIFBS_HasDotProd, |
| 2033 | }; |
| 2034 | constexpr static PredicateBitset FeatureBitsets[] { |
| 2035 | {}, // GIFBS_Invalid |
| 2036 | {Feature_HasDotProdBit, }, |
| 2037 | }; |
| 2038 | |
| 2039 | // ComplexPattern predicates. |
| 2040 | enum { |
| 2041 | GICP_Invalid, |
| 2042 | }; |
| 2043 | // See constructor for table contents |
| 2044 | |
| 2045 | AArch64PreLegalizerCombinerImpl::ComplexMatcherMemFn |
| 2046 | AArch64PreLegalizerCombinerImpl::ComplexPredicateFns[] = { |
| 2047 | nullptr, // GICP_Invalid |
| 2048 | }; |
| 2049 | |
| 2050 | enum { |
| 2051 | GICXXPred_MI_Predicate_GICombiner0 = GICXXPred_Invalid + 1, |
| 2052 | GICXXPred_MI_Predicate_GICombiner1, |
| 2053 | GICXXPred_MI_Predicate_GICombiner2, |
| 2054 | GICXXPred_MI_Predicate_GICombiner3, |
| 2055 | GICXXPred_MI_Predicate_GICombiner4, |
| 2056 | GICXXPred_MI_Predicate_GICombiner5, |
| 2057 | GICXXPred_MI_Predicate_GICombiner6, |
| 2058 | GICXXPred_MI_Predicate_GICombiner7, |
| 2059 | GICXXPred_MI_Predicate_GICombiner8, |
| 2060 | GICXXPred_MI_Predicate_GICombiner9, |
| 2061 | GICXXPred_MI_Predicate_GICombiner10, |
| 2062 | GICXXPred_MI_Predicate_GICombiner11, |
| 2063 | GICXXPred_MI_Predicate_GICombiner12, |
| 2064 | GICXXPred_MI_Predicate_GICombiner13, |
| 2065 | GICXXPred_MI_Predicate_GICombiner14, |
| 2066 | GICXXPred_MI_Predicate_GICombiner15, |
| 2067 | GICXXPred_MI_Predicate_GICombiner16, |
| 2068 | GICXXPred_MI_Predicate_GICombiner17, |
| 2069 | GICXXPred_MI_Predicate_GICombiner18, |
| 2070 | GICXXPred_MI_Predicate_GICombiner19, |
| 2071 | GICXXPred_MI_Predicate_GICombiner20, |
| 2072 | GICXXPred_MI_Predicate_GICombiner21, |
| 2073 | GICXXPred_MI_Predicate_GICombiner22, |
| 2074 | GICXXPred_MI_Predicate_GICombiner23, |
| 2075 | }; |
| 2076 | bool AArch64PreLegalizerCombinerImpl::testMIPredicate_MI(unsigned PredicateID, const MachineInstr & MI, const MatcherState &State) const { |
| 2077 | switch (PredicateID) { |
| 2078 | case GICXXPred_MI_Predicate_GICombiner0: { |
| 2079 | return MRI.hasOneNonDBGUse(State.MIs[0]->getOperand(2).getReg()); |
| 2080 | } |
| 2081 | case GICXXPred_MI_Predicate_GICombiner1: { |
| 2082 | return MRI.hasOneNonDBGUse(State.MIs[0]->getOperand(1).getReg()); |
| 2083 | } |
| 2084 | case GICXXPred_MI_Predicate_GICombiner2: { |
| 2085 | return isGuaranteedNotToBePoison(State.MIs[0]->getOperand(1).getReg(), MRI); |
| 2086 | } |
| 2087 | case GICXXPred_MI_Predicate_GICombiner3: { |
| 2088 | return isGuaranteedNotToBeUndefOrPoison(State.MIs[0]->getOperand(1).getReg(), MRI); |
| 2089 | } |
| 2090 | case GICXXPred_MI_Predicate_GICombiner4: { |
| 2091 | return Helper.matchConstantFPOp(State.MIs[0]->getOperand(2), 1.0); |
| 2092 | } |
| 2093 | case GICXXPred_MI_Predicate_GICombiner5: { |
| 2094 | return MRI.getType(State.MIs[1]->getOperand(1).getReg()) != MRI.getType(State.MIs[0]->getOperand(0).getReg()); |
| 2095 | } |
| 2096 | case GICXXPred_MI_Predicate_GICombiner6: { |
| 2097 | return Helper.matchConstantFPOp(State.MIs[0]->getOperand(2), -0.0); |
| 2098 | } |
| 2099 | case GICXXPred_MI_Predicate_GICombiner7: { |
| 2100 | return Helper.matchConstantFPOp(State.MIs[0]->getOperand(2), 0.0); |
| 2101 | } |
| 2102 | case GICXXPred_MI_Predicate_GICombiner8: { |
| 2103 | return Helper.matchConstantFPOp(State.MIs[0]->getOperand(2), -1.0); |
| 2104 | } |
| 2105 | case GICXXPred_MI_Predicate_GICombiner9: { |
| 2106 | return State.MIs[1]->getOperand(1).getPredicate() == CmpInst::ICMP_EQ && |
| 2107 | !MRI.getType(State.MIs[1]->getOperand(2).getReg()).getScalarType().isPointer() && |
| 2108 | (MRI.getType(State.MIs[1]->getOperand(2).getReg()) == |
| 2109 | MRI.getType(State.MIs[2]->getOperand(2).getReg())); |
| 2110 | } |
| 2111 | case GICXXPred_MI_Predicate_GICombiner10: { |
| 2112 | return State.MIs[1]->getOperand(1).getPredicate() == CmpInst::ICMP_NE && |
| 2113 | !MRI.getType(State.MIs[1]->getOperand(2).getReg()).getScalarType().isPointer() && |
| 2114 | (MRI.getType(State.MIs[1]->getOperand(2).getReg()) == |
| 2115 | MRI.getType(State.MIs[2]->getOperand(2).getReg())); |
| 2116 | } |
| 2117 | case GICXXPred_MI_Predicate_GICombiner11: { |
| 2118 | return MRI.hasOneNonDBGUse(State.MIs[0]->getOperand(2).getReg()) && |
| 2119 | Helper.isLegalOrBeforeLegalizer( |
| 2120 | {TargetOpcode::G_SEXT_INREG, {MRI.getType(State.MIs[1]->getOperand(1).getReg())}}); |
| 2121 | } |
| 2122 | case GICXXPred_MI_Predicate_GICombiner12: { |
| 2123 | return MRI.getType(State.MIs[0]->getOperand(1).getReg()) == MRI.getType(State.MIs[0]->getOperand(0).getReg()) && |
| 2124 | VT->computeNumSignBits(State.MIs[0]->getOperand(1).getReg()) == MRI.getType(State.MIs[0]->getOperand(0).getReg()).getScalarSizeInBits(); |
| 2125 | } |
| 2126 | case GICXXPred_MI_Predicate_GICombiner13: { |
| 2127 | return Helper.isLegalOrBeforeLegalizer({TargetOpcode::G_LSHR, |
| 2128 | {MRI.getType(State.MIs[2]->getOperand(1).getReg()), |
| 2129 | MRI.getType(State.MIs[1]->getOperand(2).getReg())}}); |
| 2130 | } |
| 2131 | case GICXXPred_MI_Predicate_GICombiner14: { |
| 2132 | return Helper.isLegalOrBeforeLegalizer({TargetOpcode::G_SHL, |
| 2133 | {MRI.getType(State.MIs[2]->getOperand(1).getReg()), |
| 2134 | MRI.getType(State.MIs[1]->getOperand(2).getReg())}}); |
| 2135 | } |
| 2136 | case GICXXPred_MI_Predicate_GICombiner15: { |
| 2137 | return Helper.matchTruncUSatU(*State.MIs[0], *State.MIs[1]); |
| 2138 | } |
| 2139 | case GICXXPred_MI_Predicate_GICombiner16: { |
| 2140 | return Helper.matchTruncUSatUToFPTOUISat(*State.MIs[0], *State.MIs[1]); |
| 2141 | } |
| 2142 | case GICXXPred_MI_Predicate_GICombiner17: { |
| 2143 | return MRI.hasOneNonDBGUse(State.MIs[0]->getOperand(2).getReg()) && |
| 2144 | MRI.hasOneNonDBGUse(State.MIs[1]->getOperand(1).getReg()); |
| 2145 | } |
| 2146 | case GICXXPred_MI_Predicate_GICombiner18: { |
| 2147 | return MRI.hasOneNonDBGUse(State.MIs[0]->getOperand(1).getReg()) && |
| 2148 | MRI.hasOneNonDBGUse(State.MIs[1]->getOperand(1).getReg()); |
| 2149 | } |
| 2150 | case GICXXPred_MI_Predicate_GICombiner19: { |
| 2151 | return MRI.hasOneNonDBGUse(State.MIs[1]->getOperand(2).getReg()) && |
| 2152 | MRI.hasOneNonDBGUse(State.MIs[0]->getOperand(2).getReg()); |
| 2153 | } |
| 2154 | case GICXXPred_MI_Predicate_GICombiner20: { |
| 2155 | return Helper.matchAVG(*State.MIs[0], MRI, State.MIs[2]->getOperand(1).getReg(), State.MIs[3]->getOperand(1).getReg(), TargetOpcode::G_UAVGFLOOR); |
| 2156 | } |
| 2157 | case GICXXPred_MI_Predicate_GICombiner21: { |
| 2158 | return Helper.matchAVG(*State.MIs[0], MRI, State.MIs[2]->getOperand(1).getReg(), State.MIs[3]->getOperand(1).getReg(), TargetOpcode::G_SAVGFLOOR); |
| 2159 | } |
| 2160 | case GICXXPred_MI_Predicate_GICombiner22: { |
| 2161 | return Helper.matchAVG(*State.MIs[0], MRI, State.MIs[3]->getOperand(1).getReg(), State.MIs[4]->getOperand(1).getReg(), TargetOpcode::G_UAVGCEIL); |
| 2162 | } |
| 2163 | case GICXXPred_MI_Predicate_GICombiner23: { |
| 2164 | return Helper.matchAVG(*State.MIs[0], MRI, State.MIs[3]->getOperand(1).getReg(), State.MIs[4]->getOperand(1).getReg(), TargetOpcode::G_SAVGCEIL); |
| 2165 | } |
| 2166 | } |
| 2167 | llvm_unreachable("Unknown predicate" ); |
| 2168 | return false; |
| 2169 | } |
| 2170 | bool AArch64PreLegalizerCombinerImpl::testMOPredicate_MO(unsigned PredicateID, const MachineOperand & MO, const MatcherState &State) const { |
| 2171 | llvm_unreachable("Unknown predicate" ); |
| 2172 | return false; |
| 2173 | } |
| 2174 | bool AArch64PreLegalizerCombinerImpl::testImmPredicate_I64(unsigned PredicateID, int64_t Imm) const { |
| 2175 | llvm_unreachable("Unknown predicate" ); |
| 2176 | return false; |
| 2177 | } |
| 2178 | bool AArch64PreLegalizerCombinerImpl::testImmPredicate_APFloat(unsigned PredicateID, const APFloat & Imm) const { |
| 2179 | llvm_unreachable("Unknown predicate" ); |
| 2180 | return false; |
| 2181 | } |
| 2182 | bool AArch64PreLegalizerCombinerImpl::testImmPredicate_APInt(unsigned PredicateID, const APInt & Imm) const { |
| 2183 | llvm_unreachable("Unknown predicate" ); |
| 2184 | return false; |
| 2185 | } |
| 2186 | enum { |
| 2187 | GICXXPred_Simple_IsRule0Enabled = GICXXPred_Invalid + 1, |
| 2188 | GICXXPred_Simple_IsRule1Enabled, |
| 2189 | GICXXPred_Simple_IsRule2Enabled, |
| 2190 | GICXXPred_Simple_IsRule3Enabled, |
| 2191 | GICXXPred_Simple_IsRule4Enabled, |
| 2192 | GICXXPred_Simple_IsRule5Enabled, |
| 2193 | GICXXPred_Simple_IsRule6Enabled, |
| 2194 | GICXXPred_Simple_IsRule7Enabled, |
| 2195 | GICXXPred_Simple_IsRule8Enabled, |
| 2196 | GICXXPred_Simple_IsRule9Enabled, |
| 2197 | GICXXPred_Simple_IsRule10Enabled, |
| 2198 | GICXXPred_Simple_IsRule11Enabled, |
| 2199 | GICXXPred_Simple_IsRule12Enabled, |
| 2200 | GICXXPred_Simple_IsRule13Enabled, |
| 2201 | GICXXPred_Simple_IsRule14Enabled, |
| 2202 | GICXXPred_Simple_IsRule15Enabled, |
| 2203 | GICXXPred_Simple_IsRule16Enabled, |
| 2204 | GICXXPred_Simple_IsRule17Enabled, |
| 2205 | GICXXPred_Simple_IsRule18Enabled, |
| 2206 | GICXXPred_Simple_IsRule19Enabled, |
| 2207 | GICXXPred_Simple_IsRule20Enabled, |
| 2208 | GICXXPred_Simple_IsRule21Enabled, |
| 2209 | GICXXPred_Simple_IsRule22Enabled, |
| 2210 | GICXXPred_Simple_IsRule23Enabled, |
| 2211 | GICXXPred_Simple_IsRule24Enabled, |
| 2212 | GICXXPred_Simple_IsRule25Enabled, |
| 2213 | GICXXPred_Simple_IsRule26Enabled, |
| 2214 | GICXXPred_Simple_IsRule27Enabled, |
| 2215 | GICXXPred_Simple_IsRule28Enabled, |
| 2216 | GICXXPred_Simple_IsRule29Enabled, |
| 2217 | GICXXPred_Simple_IsRule30Enabled, |
| 2218 | GICXXPred_Simple_IsRule31Enabled, |
| 2219 | GICXXPred_Simple_IsRule32Enabled, |
| 2220 | GICXXPred_Simple_IsRule33Enabled, |
| 2221 | GICXXPred_Simple_IsRule34Enabled, |
| 2222 | GICXXPred_Simple_IsRule35Enabled, |
| 2223 | GICXXPred_Simple_IsRule36Enabled, |
| 2224 | GICXXPred_Simple_IsRule37Enabled, |
| 2225 | GICXXPred_Simple_IsRule38Enabled, |
| 2226 | GICXXPred_Simple_IsRule39Enabled, |
| 2227 | GICXXPred_Simple_IsRule40Enabled, |
| 2228 | GICXXPred_Simple_IsRule41Enabled, |
| 2229 | GICXXPred_Simple_IsRule42Enabled, |
| 2230 | GICXXPred_Simple_IsRule43Enabled, |
| 2231 | GICXXPred_Simple_IsRule44Enabled, |
| 2232 | GICXXPred_Simple_IsRule45Enabled, |
| 2233 | GICXXPred_Simple_IsRule46Enabled, |
| 2234 | GICXXPred_Simple_IsRule47Enabled, |
| 2235 | GICXXPred_Simple_IsRule48Enabled, |
| 2236 | GICXXPred_Simple_IsRule49Enabled, |
| 2237 | GICXXPred_Simple_IsRule50Enabled, |
| 2238 | GICXXPred_Simple_IsRule51Enabled, |
| 2239 | GICXXPred_Simple_IsRule52Enabled, |
| 2240 | GICXXPred_Simple_IsRule53Enabled, |
| 2241 | GICXXPred_Simple_IsRule54Enabled, |
| 2242 | GICXXPred_Simple_IsRule55Enabled, |
| 2243 | GICXXPred_Simple_IsRule56Enabled, |
| 2244 | GICXXPred_Simple_IsRule57Enabled, |
| 2245 | GICXXPred_Simple_IsRule58Enabled, |
| 2246 | GICXXPred_Simple_IsRule59Enabled, |
| 2247 | GICXXPred_Simple_IsRule60Enabled, |
| 2248 | GICXXPred_Simple_IsRule61Enabled, |
| 2249 | GICXXPred_Simple_IsRule62Enabled, |
| 2250 | GICXXPred_Simple_IsRule63Enabled, |
| 2251 | GICXXPred_Simple_IsRule64Enabled, |
| 2252 | GICXXPred_Simple_IsRule65Enabled, |
| 2253 | GICXXPred_Simple_IsRule66Enabled, |
| 2254 | GICXXPred_Simple_IsRule67Enabled, |
| 2255 | GICXXPred_Simple_IsRule68Enabled, |
| 2256 | GICXXPred_Simple_IsRule69Enabled, |
| 2257 | GICXXPred_Simple_IsRule70Enabled, |
| 2258 | GICXXPred_Simple_IsRule71Enabled, |
| 2259 | GICXXPred_Simple_IsRule72Enabled, |
| 2260 | GICXXPred_Simple_IsRule73Enabled, |
| 2261 | GICXXPred_Simple_IsRule74Enabled, |
| 2262 | GICXXPred_Simple_IsRule75Enabled, |
| 2263 | GICXXPred_Simple_IsRule76Enabled, |
| 2264 | GICXXPred_Simple_IsRule77Enabled, |
| 2265 | GICXXPred_Simple_IsRule78Enabled, |
| 2266 | GICXXPred_Simple_IsRule79Enabled, |
| 2267 | GICXXPred_Simple_IsRule80Enabled, |
| 2268 | GICXXPred_Simple_IsRule81Enabled, |
| 2269 | GICXXPred_Simple_IsRule82Enabled, |
| 2270 | GICXXPred_Simple_IsRule83Enabled, |
| 2271 | GICXXPred_Simple_IsRule84Enabled, |
| 2272 | GICXXPred_Simple_IsRule85Enabled, |
| 2273 | GICXXPred_Simple_IsRule86Enabled, |
| 2274 | GICXXPred_Simple_IsRule87Enabled, |
| 2275 | GICXXPred_Simple_IsRule88Enabled, |
| 2276 | GICXXPred_Simple_IsRule89Enabled, |
| 2277 | GICXXPred_Simple_IsRule90Enabled, |
| 2278 | GICXXPred_Simple_IsRule91Enabled, |
| 2279 | GICXXPred_Simple_IsRule92Enabled, |
| 2280 | GICXXPred_Simple_IsRule93Enabled, |
| 2281 | GICXXPred_Simple_IsRule94Enabled, |
| 2282 | GICXXPred_Simple_IsRule95Enabled, |
| 2283 | GICXXPred_Simple_IsRule96Enabled, |
| 2284 | GICXXPred_Simple_IsRule97Enabled, |
| 2285 | GICXXPred_Simple_IsRule98Enabled, |
| 2286 | GICXXPred_Simple_IsRule99Enabled, |
| 2287 | GICXXPred_Simple_IsRule100Enabled, |
| 2288 | GICXXPred_Simple_IsRule101Enabled, |
| 2289 | GICXXPred_Simple_IsRule102Enabled, |
| 2290 | GICXXPred_Simple_IsRule103Enabled, |
| 2291 | GICXXPred_Simple_IsRule104Enabled, |
| 2292 | GICXXPred_Simple_IsRule105Enabled, |
| 2293 | GICXXPred_Simple_IsRule106Enabled, |
| 2294 | GICXXPred_Simple_IsRule107Enabled, |
| 2295 | GICXXPred_Simple_IsRule108Enabled, |
| 2296 | GICXXPred_Simple_IsRule109Enabled, |
| 2297 | GICXXPred_Simple_IsRule110Enabled, |
| 2298 | GICXXPred_Simple_IsRule111Enabled, |
| 2299 | GICXXPred_Simple_IsRule112Enabled, |
| 2300 | GICXXPred_Simple_IsRule113Enabled, |
| 2301 | GICXXPred_Simple_IsRule114Enabled, |
| 2302 | GICXXPred_Simple_IsRule115Enabled, |
| 2303 | GICXXPred_Simple_IsRule116Enabled, |
| 2304 | GICXXPred_Simple_IsRule117Enabled, |
| 2305 | GICXXPred_Simple_IsRule118Enabled, |
| 2306 | GICXXPred_Simple_IsRule119Enabled, |
| 2307 | GICXXPred_Simple_IsRule120Enabled, |
| 2308 | GICXXPred_Simple_IsRule121Enabled, |
| 2309 | GICXXPred_Simple_IsRule122Enabled, |
| 2310 | GICXXPred_Simple_IsRule123Enabled, |
| 2311 | GICXXPred_Simple_IsRule124Enabled, |
| 2312 | GICXXPred_Simple_IsRule125Enabled, |
| 2313 | GICXXPred_Simple_IsRule126Enabled, |
| 2314 | GICXXPred_Simple_IsRule127Enabled, |
| 2315 | GICXXPred_Simple_IsRule128Enabled, |
| 2316 | GICXXPred_Simple_IsRule129Enabled, |
| 2317 | GICXXPred_Simple_IsRule130Enabled, |
| 2318 | GICXXPred_Simple_IsRule131Enabled, |
| 2319 | GICXXPred_Simple_IsRule132Enabled, |
| 2320 | GICXXPred_Simple_IsRule133Enabled, |
| 2321 | GICXXPred_Simple_IsRule134Enabled, |
| 2322 | GICXXPred_Simple_IsRule135Enabled, |
| 2323 | GICXXPred_Simple_IsRule136Enabled, |
| 2324 | GICXXPred_Simple_IsRule137Enabled, |
| 2325 | GICXXPred_Simple_IsRule138Enabled, |
| 2326 | GICXXPred_Simple_IsRule139Enabled, |
| 2327 | GICXXPred_Simple_IsRule140Enabled, |
| 2328 | GICXXPred_Simple_IsRule141Enabled, |
| 2329 | GICXXPred_Simple_IsRule142Enabled, |
| 2330 | GICXXPred_Simple_IsRule143Enabled, |
| 2331 | GICXXPred_Simple_IsRule144Enabled, |
| 2332 | GICXXPred_Simple_IsRule145Enabled, |
| 2333 | GICXXPred_Simple_IsRule146Enabled, |
| 2334 | GICXXPred_Simple_IsRule147Enabled, |
| 2335 | GICXXPred_Simple_IsRule148Enabled, |
| 2336 | GICXXPred_Simple_IsRule149Enabled, |
| 2337 | GICXXPred_Simple_IsRule150Enabled, |
| 2338 | GICXXPred_Simple_IsRule151Enabled, |
| 2339 | GICXXPred_Simple_IsRule152Enabled, |
| 2340 | GICXXPred_Simple_IsRule153Enabled, |
| 2341 | GICXXPred_Simple_IsRule154Enabled, |
| 2342 | GICXXPred_Simple_IsRule155Enabled, |
| 2343 | GICXXPred_Simple_IsRule156Enabled, |
| 2344 | GICXXPred_Simple_IsRule157Enabled, |
| 2345 | GICXXPred_Simple_IsRule158Enabled, |
| 2346 | GICXXPred_Simple_IsRule159Enabled, |
| 2347 | GICXXPred_Simple_IsRule160Enabled, |
| 2348 | GICXXPred_Simple_IsRule161Enabled, |
| 2349 | GICXXPred_Simple_IsRule162Enabled, |
| 2350 | GICXXPred_Simple_IsRule163Enabled, |
| 2351 | GICXXPred_Simple_IsRule164Enabled, |
| 2352 | GICXXPred_Simple_IsRule165Enabled, |
| 2353 | GICXXPred_Simple_IsRule166Enabled, |
| 2354 | GICXXPred_Simple_IsRule167Enabled, |
| 2355 | GICXXPred_Simple_IsRule168Enabled, |
| 2356 | GICXXPred_Simple_IsRule169Enabled, |
| 2357 | GICXXPred_Simple_IsRule170Enabled, |
| 2358 | GICXXPred_Simple_IsRule171Enabled, |
| 2359 | GICXXPred_Simple_IsRule172Enabled, |
| 2360 | GICXXPred_Simple_IsRule173Enabled, |
| 2361 | GICXXPred_Simple_IsRule174Enabled, |
| 2362 | GICXXPred_Simple_IsRule175Enabled, |
| 2363 | GICXXPred_Simple_IsRule176Enabled, |
| 2364 | GICXXPred_Simple_IsRule177Enabled, |
| 2365 | GICXXPred_Simple_IsRule178Enabled, |
| 2366 | GICXXPred_Simple_IsRule179Enabled, |
| 2367 | GICXXPred_Simple_IsRule180Enabled, |
| 2368 | GICXXPred_Simple_IsRule181Enabled, |
| 2369 | GICXXPred_Simple_IsRule182Enabled, |
| 2370 | GICXXPred_Simple_IsRule183Enabled, |
| 2371 | GICXXPred_Simple_IsRule184Enabled, |
| 2372 | GICXXPred_Simple_IsRule185Enabled, |
| 2373 | GICXXPred_Simple_IsRule186Enabled, |
| 2374 | GICXXPred_Simple_IsRule187Enabled, |
| 2375 | GICXXPred_Simple_IsRule188Enabled, |
| 2376 | GICXXPred_Simple_IsRule189Enabled, |
| 2377 | GICXXPred_Simple_IsRule190Enabled, |
| 2378 | GICXXPred_Simple_IsRule191Enabled, |
| 2379 | GICXXPred_Simple_IsRule192Enabled, |
| 2380 | GICXXPred_Simple_IsRule193Enabled, |
| 2381 | GICXXPred_Simple_IsRule194Enabled, |
| 2382 | GICXXPred_Simple_IsRule195Enabled, |
| 2383 | GICXXPred_Simple_IsRule196Enabled, |
| 2384 | GICXXPred_Simple_IsRule197Enabled, |
| 2385 | GICXXPred_Simple_IsRule198Enabled, |
| 2386 | GICXXPred_Simple_IsRule199Enabled, |
| 2387 | GICXXPred_Simple_IsRule200Enabled, |
| 2388 | GICXXPred_Simple_IsRule201Enabled, |
| 2389 | GICXXPred_Simple_IsRule202Enabled, |
| 2390 | GICXXPred_Simple_IsRule203Enabled, |
| 2391 | GICXXPred_Simple_IsRule204Enabled, |
| 2392 | GICXXPred_Simple_IsRule205Enabled, |
| 2393 | GICXXPred_Simple_IsRule206Enabled, |
| 2394 | GICXXPred_Simple_IsRule207Enabled, |
| 2395 | GICXXPred_Simple_IsRule208Enabled, |
| 2396 | GICXXPred_Simple_IsRule209Enabled, |
| 2397 | GICXXPred_Simple_IsRule210Enabled, |
| 2398 | GICXXPred_Simple_IsRule211Enabled, |
| 2399 | GICXXPred_Simple_IsRule212Enabled, |
| 2400 | GICXXPred_Simple_IsRule213Enabled, |
| 2401 | GICXXPred_Simple_IsRule214Enabled, |
| 2402 | GICXXPred_Simple_IsRule215Enabled, |
| 2403 | GICXXPred_Simple_IsRule216Enabled, |
| 2404 | GICXXPred_Simple_IsRule217Enabled, |
| 2405 | GICXXPred_Simple_IsRule218Enabled, |
| 2406 | GICXXPred_Simple_IsRule219Enabled, |
| 2407 | GICXXPred_Simple_IsRule220Enabled, |
| 2408 | GICXXPred_Simple_IsRule221Enabled, |
| 2409 | GICXXPred_Simple_IsRule222Enabled, |
| 2410 | GICXXPred_Simple_IsRule223Enabled, |
| 2411 | GICXXPred_Simple_IsRule224Enabled, |
| 2412 | GICXXPred_Simple_IsRule225Enabled, |
| 2413 | GICXXPred_Simple_IsRule226Enabled, |
| 2414 | GICXXPred_Simple_IsRule227Enabled, |
| 2415 | GICXXPred_Simple_IsRule228Enabled, |
| 2416 | GICXXPred_Simple_IsRule229Enabled, |
| 2417 | GICXXPred_Simple_IsRule230Enabled, |
| 2418 | GICXXPred_Simple_IsRule231Enabled, |
| 2419 | GICXXPred_Simple_IsRule232Enabled, |
| 2420 | GICXXPred_Simple_IsRule233Enabled, |
| 2421 | GICXXPred_Simple_IsRule234Enabled, |
| 2422 | GICXXPred_Simple_IsRule235Enabled, |
| 2423 | GICXXPred_Simple_IsRule236Enabled, |
| 2424 | GICXXPred_Simple_IsRule237Enabled, |
| 2425 | GICXXPred_Simple_IsRule238Enabled, |
| 2426 | GICXXPred_Simple_IsRule239Enabled, |
| 2427 | GICXXPred_Simple_IsRule240Enabled, |
| 2428 | GICXXPred_Simple_IsRule241Enabled, |
| 2429 | GICXXPred_Simple_IsRule242Enabled, |
| 2430 | GICXXPred_Simple_IsRule243Enabled, |
| 2431 | GICXXPred_Simple_IsRule244Enabled, |
| 2432 | GICXXPred_Simple_IsRule245Enabled, |
| 2433 | GICXXPred_Simple_IsRule246Enabled, |
| 2434 | GICXXPred_Simple_IsRule247Enabled, |
| 2435 | GICXXPred_Simple_IsRule248Enabled, |
| 2436 | GICXXPred_Simple_IsRule249Enabled, |
| 2437 | GICXXPred_Simple_IsRule250Enabled, |
| 2438 | GICXXPred_Simple_IsRule251Enabled, |
| 2439 | GICXXPred_Simple_IsRule252Enabled, |
| 2440 | GICXXPred_Simple_IsRule253Enabled, |
| 2441 | GICXXPred_Simple_IsRule254Enabled, |
| 2442 | GICXXPred_Simple_IsRule255Enabled, |
| 2443 | GICXXPred_Simple_IsRule256Enabled, |
| 2444 | GICXXPred_Simple_IsRule257Enabled, |
| 2445 | GICXXPred_Simple_IsRule258Enabled, |
| 2446 | GICXXPred_Simple_IsRule259Enabled, |
| 2447 | GICXXPred_Simple_IsRule260Enabled, |
| 2448 | GICXXPred_Simple_IsRule261Enabled, |
| 2449 | GICXXPred_Simple_IsRule262Enabled, |
| 2450 | GICXXPred_Simple_IsRule263Enabled, |
| 2451 | GICXXPred_Simple_IsRule264Enabled, |
| 2452 | GICXXPred_Simple_IsRule265Enabled, |
| 2453 | GICXXPred_Simple_IsRule266Enabled, |
| 2454 | GICXXPred_Simple_IsRule267Enabled, |
| 2455 | GICXXPred_Simple_IsRule268Enabled, |
| 2456 | GICXXPred_Simple_IsRule269Enabled, |
| 2457 | GICXXPred_Simple_IsRule270Enabled, |
| 2458 | GICXXPred_Simple_IsRule271Enabled, |
| 2459 | GICXXPred_Simple_IsRule272Enabled, |
| 2460 | GICXXPred_Simple_IsRule273Enabled, |
| 2461 | GICXXPred_Simple_IsRule274Enabled, |
| 2462 | GICXXPred_Simple_IsRule275Enabled, |
| 2463 | GICXXPred_Simple_IsRule276Enabled, |
| 2464 | GICXXPred_Simple_IsRule277Enabled, |
| 2465 | GICXXPred_Simple_IsRule278Enabled, |
| 2466 | GICXXPred_Simple_IsRule279Enabled, |
| 2467 | GICXXPred_Simple_IsRule280Enabled, |
| 2468 | GICXXPred_Simple_IsRule281Enabled, |
| 2469 | GICXXPred_Simple_IsRule282Enabled, |
| 2470 | GICXXPred_Simple_IsRule283Enabled, |
| 2471 | GICXXPred_Simple_IsRule284Enabled, |
| 2472 | GICXXPred_Simple_IsRule285Enabled, |
| 2473 | GICXXPred_Simple_IsRule286Enabled, |
| 2474 | }; |
| 2475 | |
| 2476 | bool AArch64PreLegalizerCombinerImpl::testSimplePredicate(unsigned Predicate) const { |
| 2477 | return RuleConfig.isRuleEnabled(Predicate - GICXXPred_Invalid - 1); |
| 2478 | } |
| 2479 | // Custom renderers. |
| 2480 | enum { |
| 2481 | GICR_Invalid, |
| 2482 | }; |
| 2483 | AArch64PreLegalizerCombinerImpl::CustomRendererFn |
| 2484 | AArch64PreLegalizerCombinerImpl::CustomRenderers[] = { |
| 2485 | nullptr, // GICR_Invalid |
| 2486 | }; |
| 2487 | |
| 2488 | bool AArch64PreLegalizerCombinerImpl::canMatchOpcode(unsigned Opc) const { |
| 2489 | switch (Opc) { |
| 2490 | case TargetOpcode::G_FCMP: |
| 2491 | case TargetOpcode::G_FSHL: |
| 2492 | case TargetOpcode::G_FSHR: |
| 2493 | case TargetOpcode::G_ICMP: |
| 2494 | case TargetOpcode::G_INSERT_VECTOR_ELT: |
| 2495 | case TargetOpcode::G_MEMCPY: |
| 2496 | case TargetOpcode::G_MEMMOVE: |
| 2497 | case TargetOpcode::G_MEMSET: |
| 2498 | case TargetOpcode::G_SELECT: |
| 2499 | case TargetOpcode::G_SHUFFLE_VECTOR: |
| 2500 | case TargetOpcode::G_UADDO: |
| 2501 | case TargetOpcode::G_ADD: |
| 2502 | case TargetOpcode::G_AND: |
| 2503 | case TargetOpcode::G_ASHR: |
| 2504 | case TargetOpcode::G_EXTRACT_VECTOR_ELT: |
| 2505 | case TargetOpcode::G_FADD: |
| 2506 | case TargetOpcode::G_FCOPYSIGN: |
| 2507 | case TargetOpcode::G_FDIV: |
| 2508 | case TargetOpcode::G_FMAXIMUM: |
| 2509 | case TargetOpcode::G_FMAXIMUMNUM: |
| 2510 | case TargetOpcode::G_FMAXNUM: |
| 2511 | case TargetOpcode::G_FMINIMUM: |
| 2512 | case TargetOpcode::G_FMINIMUMNUM: |
| 2513 | case TargetOpcode::G_FMINNUM: |
| 2514 | case TargetOpcode::G_FMUL: |
| 2515 | case TargetOpcode::G_FPOWI: |
| 2516 | case TargetOpcode::G_FREM: |
| 2517 | case TargetOpcode::G_FSUB: |
| 2518 | case TargetOpcode::G_LSHR: |
| 2519 | case TargetOpcode::G_MEMCPY_INLINE: |
| 2520 | case TargetOpcode::G_MEMSET_INLINE: |
| 2521 | case TargetOpcode::G_MERGE_VALUES: |
| 2522 | case TargetOpcode::G_MUL: |
| 2523 | case TargetOpcode::G_OR: |
| 2524 | case TargetOpcode::G_PTR_ADD: |
| 2525 | case TargetOpcode::G_ROTL: |
| 2526 | case TargetOpcode::G_ROTR: |
| 2527 | case TargetOpcode::G_SDIV: |
| 2528 | case TargetOpcode::G_SEXT_INREG: |
| 2529 | case TargetOpcode::G_SHL: |
| 2530 | case TargetOpcode::G_SREM: |
| 2531 | case TargetOpcode::G_SUB: |
| 2532 | case TargetOpcode::G_UDIV: |
| 2533 | case TargetOpcode::G_UREM: |
| 2534 | case TargetOpcode::G_XOR: |
| 2535 | case TargetOpcode::COPY: |
| 2536 | case TargetOpcode::G_ABS: |
| 2537 | case TargetOpcode::G_ANYEXT: |
| 2538 | case TargetOpcode::G_BITCAST: |
| 2539 | case TargetOpcode::G_BITREVERSE: |
| 2540 | case TargetOpcode::G_BSWAP: |
| 2541 | case TargetOpcode::G_BUILD_VECTOR: |
| 2542 | case TargetOpcode::G_CTLZ: |
| 2543 | case TargetOpcode::G_CTLZ_ZERO_POISON: |
| 2544 | case TargetOpcode::G_CTPOP: |
| 2545 | case TargetOpcode::G_CTTZ: |
| 2546 | case TargetOpcode::G_CTTZ_ZERO_POISON: |
| 2547 | case TargetOpcode::G_FABS: |
| 2548 | case TargetOpcode::G_FCANONICALIZE: |
| 2549 | case TargetOpcode::G_FCEIL: |
| 2550 | case TargetOpcode::G_FFLOOR: |
| 2551 | case TargetOpcode::G_FLOG2: |
| 2552 | case TargetOpcode::G_FNEARBYINT: |
| 2553 | case TargetOpcode::G_FNEG: |
| 2554 | case TargetOpcode::G_FPEXT: |
| 2555 | case TargetOpcode::G_FPTOSI: |
| 2556 | case TargetOpcode::G_FPTOUI: |
| 2557 | case TargetOpcode::G_FPTRUNC: |
| 2558 | case TargetOpcode::G_FREEZE: |
| 2559 | case TargetOpcode::G_FRINT: |
| 2560 | case TargetOpcode::G_FSQRT: |
| 2561 | case TargetOpcode::G_INTRINSIC_ROUND: |
| 2562 | case TargetOpcode::G_INTRINSIC_ROUNDEVEN: |
| 2563 | case TargetOpcode::G_INTRINSIC_TRUNC: |
| 2564 | case TargetOpcode::G_INTTOPTR: |
| 2565 | case TargetOpcode::G_PTRTOINT: |
| 2566 | case TargetOpcode::G_SEXT: |
| 2567 | case TargetOpcode::G_SITOFP: |
| 2568 | case TargetOpcode::G_TRUNC: |
| 2569 | case TargetOpcode::G_TRUNC_USAT_U: |
| 2570 | case TargetOpcode::G_UITOFP: |
| 2571 | case TargetOpcode::G_ZEXT: |
| 2572 | case TargetOpcode::G_BR: |
| 2573 | case TargetOpcode::G_BUILD_VECTOR_TRUNC: |
| 2574 | case TargetOpcode::G_CONCAT_VECTORS: |
| 2575 | case TargetOpcode::G_FMA: |
| 2576 | case TargetOpcode::G_FMAD: |
| 2577 | case TargetOpcode::G_FMAXNUM_IEEE: |
| 2578 | case TargetOpcode::G_FMINNUM_IEEE: |
| 2579 | case TargetOpcode::G_GLOBAL_VALUE: |
| 2580 | case TargetOpcode::G_LOAD: |
| 2581 | case TargetOpcode::G_PHI: |
| 2582 | case TargetOpcode::G_SADDE: |
| 2583 | case TargetOpcode::G_SADDO: |
| 2584 | case TargetOpcode::G_SADDSAT: |
| 2585 | case TargetOpcode::G_SEXTLOAD: |
| 2586 | case TargetOpcode::G_SMAX: |
| 2587 | case TargetOpcode::G_SMIN: |
| 2588 | case TargetOpcode::G_SMULFIX: |
| 2589 | case TargetOpcode::G_SMULFIXSAT: |
| 2590 | case TargetOpcode::G_SMULH: |
| 2591 | case TargetOpcode::G_SMULO: |
| 2592 | case TargetOpcode::G_SSHLSAT: |
| 2593 | case TargetOpcode::G_SSUBE: |
| 2594 | case TargetOpcode::G_SSUBO: |
| 2595 | case TargetOpcode::G_STORE: |
| 2596 | case TargetOpcode::G_UADDE: |
| 2597 | case TargetOpcode::G_UADDSAT: |
| 2598 | case TargetOpcode::G_UMAX: |
| 2599 | case TargetOpcode::G_UMIN: |
| 2600 | case TargetOpcode::G_UMULFIX: |
| 2601 | case TargetOpcode::G_UMULFIXSAT: |
| 2602 | case TargetOpcode::G_UMULH: |
| 2603 | case TargetOpcode::G_UMULO: |
| 2604 | case TargetOpcode::G_UNMERGE_VALUES: |
| 2605 | case TargetOpcode::G_USHLSAT: |
| 2606 | case TargetOpcode::G_USUBE: |
| 2607 | case TargetOpcode::G_USUBO: |
| 2608 | case TargetOpcode::G_VECREDUCE_ADD: |
| 2609 | case TargetOpcode::G_ZEXTLOAD: |
| 2610 | return true; |
| 2611 | default: |
| 2612 | return false; |
| 2613 | } |
| 2614 | } |
| 2615 | |
| 2616 | bool AArch64PreLegalizerCombinerImpl::tryCombineAllImpl(MachineInstr &I) const { |
| 2617 | const PredicateBitset AvailableFeatures = getAvailableFeatures(); |
| 2618 | State.MIs.clear(); |
| 2619 | State.MIs.push_back(&I); |
| 2620 | if (executeMatchTable(*this, State, ExecInfo, B, getMatchTable(), Helper.getTII(), MRI, Helper.getTRI(), Helper.getRBI(), AvailableFeatures, /*CoverageInfo*/ nullptr)) { |
| 2621 | return true; |
| 2622 | } |
| 2623 | |
| 2624 | return false; |
| 2625 | } |
| 2626 | |
| 2627 | enum { |
| 2628 | GICXXCustomAction_GICombiner0 = GICXXCustomAction_Invalid + 1, |
| 2629 | GICXXCustomAction_GICombiner1, |
| 2630 | GICXXCustomAction_GICombiner2, |
| 2631 | GICXXCustomAction_GICombiner3, |
| 2632 | GICXXCustomAction_GICombiner4, |
| 2633 | GICXXCustomAction_GICombiner5, |
| 2634 | GICXXCustomAction_GICombiner6, |
| 2635 | GICXXCustomAction_GICombiner7, |
| 2636 | GICXXCustomAction_GICombiner8, |
| 2637 | GICXXCustomAction_GICombiner9, |
| 2638 | GICXXCustomAction_GICombiner10, |
| 2639 | GICXXCustomAction_GICombiner11, |
| 2640 | GICXXCustomAction_GICombiner12, |
| 2641 | GICXXCustomAction_GICombiner13, |
| 2642 | GICXXCustomAction_GICombiner14, |
| 2643 | GICXXCustomAction_GICombiner15, |
| 2644 | GICXXCustomAction_GICombiner16, |
| 2645 | GICXXCustomAction_GICombiner17, |
| 2646 | GICXXCustomAction_GICombiner18, |
| 2647 | GICXXCustomAction_GICombiner19, |
| 2648 | GICXXCustomAction_GICombiner20, |
| 2649 | GICXXCustomAction_GICombiner21, |
| 2650 | GICXXCustomAction_GICombiner22, |
| 2651 | GICXXCustomAction_GICombiner23, |
| 2652 | GICXXCustomAction_GICombiner24, |
| 2653 | GICXXCustomAction_GICombiner25, |
| 2654 | GICXXCustomAction_GICombiner26, |
| 2655 | GICXXCustomAction_GICombiner27, |
| 2656 | GICXXCustomAction_GICombiner28, |
| 2657 | GICXXCustomAction_GICombiner29, |
| 2658 | GICXXCustomAction_GICombiner30, |
| 2659 | GICXXCustomAction_GICombiner31, |
| 2660 | GICXXCustomAction_GICombiner32, |
| 2661 | GICXXCustomAction_GICombiner33, |
| 2662 | GICXXCustomAction_GICombiner34, |
| 2663 | GICXXCustomAction_GICombiner35, |
| 2664 | GICXXCustomAction_GICombiner36, |
| 2665 | GICXXCustomAction_GICombiner37, |
| 2666 | GICXXCustomAction_GICombiner38, |
| 2667 | GICXXCustomAction_GICombiner39, |
| 2668 | GICXXCustomAction_GICombiner40, |
| 2669 | GICXXCustomAction_GICombiner41, |
| 2670 | GICXXCustomAction_GICombiner42, |
| 2671 | GICXXCustomAction_GICombiner43, |
| 2672 | GICXXCustomAction_GICombiner44, |
| 2673 | GICXXCustomAction_GICombiner45, |
| 2674 | GICXXCustomAction_GICombiner46, |
| 2675 | GICXXCustomAction_GICombiner47, |
| 2676 | GICXXCustomAction_GICombiner48, |
| 2677 | GICXXCustomAction_GICombiner49, |
| 2678 | GICXXCustomAction_GICombiner50, |
| 2679 | GICXXCustomAction_GICombiner51, |
| 2680 | GICXXCustomAction_GICombiner52, |
| 2681 | GICXXCustomAction_GICombiner53, |
| 2682 | GICXXCustomAction_GICombiner54, |
| 2683 | GICXXCustomAction_GICombiner55, |
| 2684 | GICXXCustomAction_GICombiner56, |
| 2685 | GICXXCustomAction_GICombiner57, |
| 2686 | GICXXCustomAction_GICombiner58, |
| 2687 | GICXXCustomAction_GICombiner59, |
| 2688 | GICXXCustomAction_GICombiner60, |
| 2689 | GICXXCustomAction_GICombiner61, |
| 2690 | GICXXCustomAction_GICombiner62, |
| 2691 | GICXXCustomAction_GICombiner63, |
| 2692 | GICXXCustomAction_GICombiner64, |
| 2693 | GICXXCustomAction_GICombiner65, |
| 2694 | GICXXCustomAction_GICombiner66, |
| 2695 | GICXXCustomAction_GICombiner67, |
| 2696 | GICXXCustomAction_GICombiner68, |
| 2697 | GICXXCustomAction_GICombiner69, |
| 2698 | GICXXCustomAction_GICombiner70, |
| 2699 | GICXXCustomAction_GICombiner71, |
| 2700 | GICXXCustomAction_GICombiner72, |
| 2701 | GICXXCustomAction_GICombiner73, |
| 2702 | GICXXCustomAction_GICombiner74, |
| 2703 | GICXXCustomAction_GICombiner75, |
| 2704 | GICXXCustomAction_GICombiner76, |
| 2705 | GICXXCustomAction_GICombiner77, |
| 2706 | GICXXCustomAction_GICombiner78, |
| 2707 | GICXXCustomAction_GICombiner79, |
| 2708 | GICXXCustomAction_GICombiner80, |
| 2709 | GICXXCustomAction_GICombiner81, |
| 2710 | GICXXCustomAction_GICombiner82, |
| 2711 | GICXXCustomAction_GICombiner83, |
| 2712 | GICXXCustomAction_GICombiner84, |
| 2713 | GICXXCustomAction_GICombiner85, |
| 2714 | GICXXCustomAction_GICombiner86, |
| 2715 | GICXXCustomAction_GICombiner87, |
| 2716 | GICXXCustomAction_GICombiner88, |
| 2717 | GICXXCustomAction_GICombiner89, |
| 2718 | GICXXCustomAction_GICombiner90, |
| 2719 | GICXXCustomAction_GICombiner91, |
| 2720 | GICXXCustomAction_GICombiner92, |
| 2721 | GICXXCustomAction_GICombiner93, |
| 2722 | GICXXCustomAction_GICombiner94, |
| 2723 | GICXXCustomAction_GICombiner95, |
| 2724 | GICXXCustomAction_GICombiner96, |
| 2725 | GICXXCustomAction_GICombiner97, |
| 2726 | GICXXCustomAction_GICombiner98, |
| 2727 | GICXXCustomAction_GICombiner99, |
| 2728 | GICXXCustomAction_GICombiner100, |
| 2729 | GICXXCustomAction_GICombiner101, |
| 2730 | GICXXCustomAction_GICombiner102, |
| 2731 | GICXXCustomAction_GICombiner103, |
| 2732 | GICXXCustomAction_GICombiner104, |
| 2733 | GICXXCustomAction_GICombiner105, |
| 2734 | GICXXCustomAction_GICombiner106, |
| 2735 | GICXXCustomAction_GICombiner107, |
| 2736 | GICXXCustomAction_GICombiner108, |
| 2737 | GICXXCustomAction_GICombiner109, |
| 2738 | GICXXCustomAction_GICombiner110, |
| 2739 | GICXXCustomAction_GICombiner111, |
| 2740 | GICXXCustomAction_GICombiner112, |
| 2741 | GICXXCustomAction_GICombiner113, |
| 2742 | GICXXCustomAction_GICombiner114, |
| 2743 | GICXXCustomAction_GICombiner115, |
| 2744 | GICXXCustomAction_GICombiner116, |
| 2745 | GICXXCustomAction_GICombiner117, |
| 2746 | GICXXCustomAction_GICombiner118, |
| 2747 | GICXXCustomAction_GICombiner119, |
| 2748 | GICXXCustomAction_GICombiner120, |
| 2749 | GICXXCustomAction_GICombiner121, |
| 2750 | GICXXCustomAction_GICombiner122, |
| 2751 | GICXXCustomAction_GICombiner123, |
| 2752 | GICXXCustomAction_GICombiner124, |
| 2753 | GICXXCustomAction_GICombiner125, |
| 2754 | GICXXCustomAction_GICombiner126, |
| 2755 | GICXXCustomAction_GICombiner127, |
| 2756 | GICXXCustomAction_GICombiner128, |
| 2757 | GICXXCustomAction_GICombiner129, |
| 2758 | GICXXCustomAction_GICombiner130, |
| 2759 | GICXXCustomAction_GICombiner131, |
| 2760 | GICXXCustomAction_GICombiner132, |
| 2761 | GICXXCustomAction_GICombiner133, |
| 2762 | GICXXCustomAction_GICombiner134, |
| 2763 | GICXXCustomAction_GICombiner135, |
| 2764 | GICXXCustomAction_GICombiner136, |
| 2765 | GICXXCustomAction_GICombiner137, |
| 2766 | GICXXCustomAction_GICombiner138, |
| 2767 | GICXXCustomAction_GICombiner139, |
| 2768 | GICXXCustomAction_GICombiner140, |
| 2769 | GICXXCustomAction_GICombiner141, |
| 2770 | GICXXCustomAction_GICombiner142, |
| 2771 | GICXXCustomAction_GICombiner143, |
| 2772 | GICXXCustomAction_GICombiner144, |
| 2773 | GICXXCustomAction_GICombiner145, |
| 2774 | GICXXCustomAction_GICombiner146, |
| 2775 | GICXXCustomAction_GICombiner147, |
| 2776 | GICXXCustomAction_GICombiner148, |
| 2777 | GICXXCustomAction_GICombiner149, |
| 2778 | GICXXCustomAction_GICombiner150, |
| 2779 | GICXXCustomAction_GICombiner151, |
| 2780 | GICXXCustomAction_GICombiner152, |
| 2781 | GICXXCustomAction_GICombiner153, |
| 2782 | GICXXCustomAction_GICombiner154, |
| 2783 | GICXXCustomAction_GICombiner155, |
| 2784 | GICXXCustomAction_GICombiner156, |
| 2785 | GICXXCustomAction_GICombiner157, |
| 2786 | GICXXCustomAction_GICombiner158, |
| 2787 | GICXXCustomAction_GICombiner159, |
| 2788 | GICXXCustomAction_GICombiner160, |
| 2789 | GICXXCustomAction_GICombiner161, |
| 2790 | GICXXCustomAction_GICombiner162, |
| 2791 | GICXXCustomAction_GICombiner163, |
| 2792 | GICXXCustomAction_GICombiner164, |
| 2793 | GICXXCustomAction_GICombiner165, |
| 2794 | GICXXCustomAction_GICombiner166, |
| 2795 | GICXXCustomAction_GICombiner167, |
| 2796 | GICXXCustomAction_GICombiner168, |
| 2797 | GICXXCustomAction_GICombiner169, |
| 2798 | }; |
| 2799 | bool AArch64PreLegalizerCombinerImpl::runCustomAction(unsigned ApplyID, const MatcherState &State, NewMIVector &OutMIs) const { |
| 2800 | Helper.getBuilder().setInstrAndDebugLoc(*State.MIs[0]); |
| 2801 | switch(ApplyID) { |
| 2802 | case GICXXCustomAction_GICombiner0:{ |
| 2803 | std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo; |
| 2804 | // Match Patterns |
| 2805 | if(![&](){return Helper.matchFoldAPlusC1MinusC2(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 2806 | return false; |
| 2807 | } |
| 2808 | // Apply Patterns |
| 2809 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo); |
| 2810 | return true; |
| 2811 | } |
| 2812 | case GICXXCustomAction_GICombiner1:{ |
| 2813 | std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo; |
| 2814 | // Match Patterns |
| 2815 | if(![&](){return Helper.matchFoldC2MinusAPlusC1(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 2816 | return false; |
| 2817 | } |
| 2818 | // Apply Patterns |
| 2819 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo); |
| 2820 | return true; |
| 2821 | } |
| 2822 | case GICXXCustomAction_GICombiner2:{ |
| 2823 | std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo; |
| 2824 | // Match Patterns |
| 2825 | if(![&](){return Helper.matchFoldAMinusC1MinusC2(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 2826 | return false; |
| 2827 | } |
| 2828 | // Apply Patterns |
| 2829 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo); |
| 2830 | return true; |
| 2831 | } |
| 2832 | case GICXXCustomAction_GICombiner3:{ |
| 2833 | std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo; |
| 2834 | // Match Patterns |
| 2835 | if(![&](){return Helper.matchFoldC1Minus2MinusC2(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 2836 | return false; |
| 2837 | } |
| 2838 | // Apply Patterns |
| 2839 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo); |
| 2840 | return true; |
| 2841 | } |
| 2842 | case GICXXCustomAction_GICombiner4:{ |
| 2843 | std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo; |
| 2844 | // Match Patterns |
| 2845 | if(![&](){return Helper.matchFoldAMinusC1PlusC2(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 2846 | return false; |
| 2847 | } |
| 2848 | // Apply Patterns |
| 2849 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo); |
| 2850 | return true; |
| 2851 | } |
| 2852 | case GICXXCustomAction_GICombiner5:{ |
| 2853 | // Match Patterns |
| 2854 | if(![&](){return Helper.matchCombineCopy(*State.MIs[0]);}()) { |
| 2855 | return false; |
| 2856 | } |
| 2857 | // Apply Patterns |
| 2858 | Helper.applyCombineCopy(*State.MIs[0]); |
| 2859 | return true; |
| 2860 | } |
| 2861 | case GICXXCustomAction_GICombiner6:{ |
| 2862 | unsigned GIMatchData_matchinfo; |
| 2863 | // Match Patterns |
| 2864 | if(![&](){return Helper.matchCombineMulToShl(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 2865 | return false; |
| 2866 | } |
| 2867 | // Apply Patterns |
| 2868 | Helper.applyCombineMulToShl(*State.MIs[0], GIMatchData_matchinfo); |
| 2869 | return true; |
| 2870 | } |
| 2871 | case GICXXCustomAction_GICombiner7:{ |
| 2872 | std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo; |
| 2873 | // Match Patterns |
| 2874 | if(![&](){return Helper.matchCombineSubToAdd(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 2875 | return false; |
| 2876 | } |
| 2877 | // Apply Patterns |
| 2878 | Helper.applyBuildFnNoErase(*State.MIs[0], GIMatchData_matchinfo); |
| 2879 | return true; |
| 2880 | } |
| 2881 | case GICXXCustomAction_GICombiner8:{ |
| 2882 | std::pair<Register, bool> GIMatchData_info; |
| 2883 | // Match Patterns |
| 2884 | if(![&](){return Helper.matchCombineAddP2IToPtrAdd(*State.MIs[0], GIMatchData_info);}()) { |
| 2885 | return false; |
| 2886 | } |
| 2887 | // Apply Patterns |
| 2888 | Helper.applyCombineAddP2IToPtrAdd(*State.MIs[0], GIMatchData_info); |
| 2889 | return true; |
| 2890 | } |
| 2891 | case GICXXCustomAction_GICombiner9:{ |
| 2892 | std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo; |
| 2893 | // Match Patterns |
| 2894 | if(![&](){return Helper.matchExtractVectorElement(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 2895 | return false; |
| 2896 | } |
| 2897 | // Apply Patterns |
| 2898 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo); |
| 2899 | return true; |
| 2900 | } |
| 2901 | case GICXXCustomAction_GICombiner10:{ |
| 2902 | std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo; |
| 2903 | // Match Patterns |
| 2904 | if(![&](){return Helper.matchInsertVectorElementOOB(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 2905 | return false; |
| 2906 | } |
| 2907 | // Apply Patterns |
| 2908 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo); |
| 2909 | return true; |
| 2910 | } |
| 2911 | case GICXXCustomAction_GICombiner11:{ |
| 2912 | std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo; |
| 2913 | // Match Patterns |
| 2914 | if(![&](){return Helper.matchExtractVectorElementWithDifferentIndices(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) { |
| 2915 | return false; |
| 2916 | } |
| 2917 | // Apply Patterns |
| 2918 | Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo); |
| 2919 | return true; |
| 2920 | } |
| 2921 | case GICXXCustomAction_GICombiner12:{ |
| 2922 | std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo; |
| 2923 | // Match Patterns |
| 2924 | if(![&](){return Helper.matchExtractVectorElementWithBuildVector(*State.MIs[0], *State.MIs[1], |
| 2925 | GIMatchData_matchinfo);}()) { |
| 2926 | return false; |
| 2927 | } |
| 2928 | // Apply Patterns |
| 2929 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo); |
| 2930 | return true; |
| 2931 | } |
| 2932 | case GICXXCustomAction_GICombiner13:{ |
| 2933 | std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo; |
| 2934 | // Match Patterns |
| 2935 | if(![&](){return Helper.matchExtractVectorElementWithBuildVectorTrunc(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) { |
| 2936 | return false; |
| 2937 | } |
| 2938 | // Apply Patterns |
| 2939 | Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo); |
| 2940 | return true; |
| 2941 | } |
| 2942 | case GICXXCustomAction_GICombiner14:{ |
| 2943 | std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo; |
| 2944 | // Match Patterns |
| 2945 | if(![&](){return Helper.matchExtractVectorElementWithShuffleVector(*State.MIs[0], *State.MIs[1], |
| 2946 | GIMatchData_matchinfo);}()) { |
| 2947 | return false; |
| 2948 | } |
| 2949 | // Apply Patterns |
| 2950 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo); |
| 2951 | return true; |
| 2952 | } |
| 2953 | case GICXXCustomAction_GICombiner15:{ |
| 2954 | std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo; |
| 2955 | // Match Patterns |
| 2956 | if(![&](){return Helper.matchAddOfVScale(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) { |
| 2957 | return false; |
| 2958 | } |
| 2959 | // Apply Patterns |
| 2960 | Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo); |
| 2961 | return true; |
| 2962 | } |
| 2963 | case GICXXCustomAction_GICombiner16:{ |
| 2964 | std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo; |
| 2965 | // Match Patterns |
| 2966 | if(![&](){return Helper.matchMulOfVScale(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) { |
| 2967 | return false; |
| 2968 | } |
| 2969 | // Apply Patterns |
| 2970 | Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo); |
| 2971 | return true; |
| 2972 | } |
| 2973 | case GICXXCustomAction_GICombiner17:{ |
| 2974 | std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo; |
| 2975 | // Match Patterns |
| 2976 | if(![&](){return Helper.matchShlOfVScale(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) { |
| 2977 | return false; |
| 2978 | } |
| 2979 | // Apply Patterns |
| 2980 | Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo); |
| 2981 | return true; |
| 2982 | } |
| 2983 | case GICXXCustomAction_GICombiner18:{ |
| 2984 | std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo; |
| 2985 | // Match Patterns |
| 2986 | if(![&](){return Helper.matchSubOfVScale(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) { |
| 2987 | return false; |
| 2988 | } |
| 2989 | // Apply Patterns |
| 2990 | Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo); |
| 2991 | return true; |
| 2992 | } |
| 2993 | case GICXXCustomAction_GICombiner19:{ |
| 2994 | std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo; |
| 2995 | // Match Patterns |
| 2996 | if(![&](){return !isGuaranteedNotToBePoison(State.MIs[0]->getOperand(1).getReg(), MRI) && Helper.matchFreezeOfSingleMaybePoisonOperand(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 2997 | return false; |
| 2998 | } |
| 2999 | // Apply Patterns |
| 3000 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo); |
| 3001 | return true; |
| 3002 | } |
| 3003 | case GICXXCustomAction_GICombiner20:{ |
| 3004 | std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo; |
| 3005 | // Match Patterns |
| 3006 | if(![&](){return Helper.matchTruncateOfExt(*State.MIs[0], *State.MIs[1], GIMatchData_matchinfo);}()) { |
| 3007 | return false; |
| 3008 | } |
| 3009 | // Apply Patterns |
| 3010 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo); |
| 3011 | return true; |
| 3012 | } |
| 3013 | case GICXXCustomAction_GICombiner21:{ |
| 3014 | std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo; |
| 3015 | // Match Patterns |
| 3016 | if(![&](){return Helper.matchExtOfExt(*State.MIs[0], *State.MIs[1], GIMatchData_matchinfo);}()) { |
| 3017 | return false; |
| 3018 | } |
| 3019 | // Apply Patterns |
| 3020 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo); |
| 3021 | return true; |
| 3022 | } |
| 3023 | case GICXXCustomAction_GICombiner22:{ |
| 3024 | std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo; |
| 3025 | // Match Patterns |
| 3026 | if(![&](){return Helper.matchRedundantSextInReg(*State.MIs[0], *State.MIs[1], GIMatchData_matchinfo);}()) { |
| 3027 | return false; |
| 3028 | } |
| 3029 | // Apply Patterns |
| 3030 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo); |
| 3031 | return true; |
| 3032 | } |
| 3033 | case GICXXCustomAction_GICombiner23:{ |
| 3034 | std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo; |
| 3035 | // Match Patterns |
| 3036 | if(![&](){return Helper.matchCastOfSelect(*State.MIs[0], *State.MIs[1], GIMatchData_matchinfo);}()) { |
| 3037 | return false; |
| 3038 | } |
| 3039 | // Apply Patterns |
| 3040 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo); |
| 3041 | return true; |
| 3042 | } |
| 3043 | case GICXXCustomAction_GICombiner24:{ |
| 3044 | std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo; |
| 3045 | // Match Patterns |
| 3046 | if(![&](){return Helper.matchCastOfBuildVector(*State.MIs[0], *State.MIs[1], GIMatchData_matchinfo);}()) { |
| 3047 | return false; |
| 3048 | } |
| 3049 | // Apply Patterns |
| 3050 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo); |
| 3051 | return true; |
| 3052 | } |
| 3053 | case GICXXCustomAction_GICombiner25:{ |
| 3054 | std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo; |
| 3055 | // Match Patterns |
| 3056 | if(![&](){return Helper.matchNarrowBinop(*State.MIs[0], *State.MIs[1], GIMatchData_matchinfo);}()) { |
| 3057 | return false; |
| 3058 | } |
| 3059 | // Apply Patterns |
| 3060 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo); |
| 3061 | return true; |
| 3062 | } |
| 3063 | case GICXXCustomAction_GICombiner26:{ |
| 3064 | APInt GIMatchData_matchinfo; |
| 3065 | // Match Patterns |
| 3066 | if(![&](){return Helper.matchCastOfInteger(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 3067 | return false; |
| 3068 | } |
| 3069 | // Apply Patterns |
| 3070 | Helper.replaceInstWithConstant(*State.MIs[0], GIMatchData_matchinfo); |
| 3071 | return true; |
| 3072 | } |
| 3073 | case GICXXCustomAction_GICombiner27:{ |
| 3074 | SmallVector<Register> GIMatchData_info; |
| 3075 | // Match Patterns |
| 3076 | if(![&](){return Helper.matchCombineInsertVecElts(*State.MIs[0], GIMatchData_info);}()) { |
| 3077 | return false; |
| 3078 | } |
| 3079 | // Apply Patterns |
| 3080 | Helper.applyCombineInsertVecElts(*State.MIs[0], GIMatchData_info); |
| 3081 | return true; |
| 3082 | } |
| 3083 | case GICXXCustomAction_GICombiner28:{ |
| 3084 | Register GIMatchData_matchinfo; |
| 3085 | // Match Patterns |
| 3086 | if(![&](){return Helper.matchExtractVecEltBuildVec(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 3087 | return false; |
| 3088 | } |
| 3089 | // Apply Patterns |
| 3090 | Helper.applyExtractVecEltBuildVec(*State.MIs[0], GIMatchData_matchinfo); |
| 3091 | return true; |
| 3092 | } |
| 3093 | case GICXXCustomAction_GICombiner29:{ |
| 3094 | SmallVector<std::pair<Register, MachineInstr*>> GIMatchData_matchinfo; |
| 3095 | // Match Patterns |
| 3096 | if(![&](){return Helper.matchExtractAllEltsFromBuildVector(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 3097 | return false; |
| 3098 | } |
| 3099 | // Apply Patterns |
| 3100 | Helper.applyExtractAllEltsFromBuildVector(*State.MIs[0], GIMatchData_matchinfo); |
| 3101 | return true; |
| 3102 | } |
| 3103 | case GICXXCustomAction_GICombiner30:{ |
| 3104 | PreferredTuple GIMatchData_matchinfo; |
| 3105 | // Match Patterns |
| 3106 | if(![&](){return Helper.matchCombineExtendingLoads(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 3107 | return false; |
| 3108 | } |
| 3109 | // Apply Patterns |
| 3110 | Helper.applyCombineExtendingLoads(*State.MIs[0], GIMatchData_matchinfo); |
| 3111 | return true; |
| 3112 | } |
| 3113 | case GICXXCustomAction_GICombiner31:{ |
| 3114 | std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo; |
| 3115 | // Match Patterns |
| 3116 | if(![&](){return Helper.matchCombineLoadWithAndMask(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 3117 | return false; |
| 3118 | } |
| 3119 | // Apply Patterns |
| 3120 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo); |
| 3121 | return true; |
| 3122 | } |
| 3123 | case GICXXCustomAction_GICombiner32:{ |
| 3124 | std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo; |
| 3125 | // Match Patterns |
| 3126 | if(![&](){return Helper.matchCombineExtractedVectorLoad(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 3127 | return false; |
| 3128 | } |
| 3129 | // Apply Patterns |
| 3130 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo); |
| 3131 | return true; |
| 3132 | } |
| 3133 | case GICXXCustomAction_GICombiner33:{ |
| 3134 | // Match Patterns |
| 3135 | if(![&](){return Helper.matchAnyExplicitUseIsUndef(*State.MIs[0]);}()) { |
| 3136 | return false; |
| 3137 | } |
| 3138 | // Apply Patterns |
| 3139 | Helper.replaceInstWithFConstant(*State.MIs[0], 0.0); |
| 3140 | return true; |
| 3141 | } |
| 3142 | case GICXXCustomAction_GICombiner34:{ |
| 3143 | // Match Patterns |
| 3144 | if(![&](){return Helper.matchAnyExplicitUseIsUndef(*State.MIs[0]);}()) { |
| 3145 | return false; |
| 3146 | } |
| 3147 | // Apply Patterns |
| 3148 | Helper.replaceInstWithConstant(*State.MIs[0], 0); |
| 3149 | return true; |
| 3150 | } |
| 3151 | case GICXXCustomAction_GICombiner35:{ |
| 3152 | // Match Patterns |
| 3153 | if(![&](){return Helper.matchAnyExplicitUseIsUndef(*State.MIs[0]);}()) { |
| 3154 | return false; |
| 3155 | } |
| 3156 | // Apply Patterns |
| 3157 | Helper.replaceInstWithConstant(*State.MIs[0], -1); |
| 3158 | return true; |
| 3159 | } |
| 3160 | case GICXXCustomAction_GICombiner36:{ |
| 3161 | // Match Patterns |
| 3162 | if(![&](){return Helper.matchOperandIsUndef(*State.MIs[0], 1);}()) { |
| 3163 | return false; |
| 3164 | } |
| 3165 | // Apply Patterns |
| 3166 | Helper.replaceInstWithConstant(*State.MIs[0], 0); |
| 3167 | return true; |
| 3168 | } |
| 3169 | case GICXXCustomAction_GICombiner37:{ |
| 3170 | // Match Patterns |
| 3171 | if(![&](){return Helper.matchOperandIsUndef(*State.MIs[0], 2);}()) { |
| 3172 | return false; |
| 3173 | } |
| 3174 | // Apply Patterns |
| 3175 | Helper.replaceInstWithUndef(*State.MIs[0]); |
| 3176 | return true; |
| 3177 | } |
| 3178 | case GICXXCustomAction_GICombiner38:{ |
| 3179 | // Apply Patterns |
| 3180 | Helper.replaceInstWithUndef(*State.MIs[0]->getOperand(0).getParent()); |
| 3181 | return true; |
| 3182 | } |
| 3183 | case GICXXCustomAction_GICombiner39:{ |
| 3184 | // Match Patterns |
| 3185 | if(![&](){return Helper.matchAnyExplicitUseIsUndef(*State.MIs[0]);}()) { |
| 3186 | return false; |
| 3187 | } |
| 3188 | // Apply Patterns |
| 3189 | Helper.replaceInstWithUndef(*State.MIs[0]); |
| 3190 | return true; |
| 3191 | } |
| 3192 | case GICXXCustomAction_GICombiner40:{ |
| 3193 | // Match Patterns |
| 3194 | if(![&](){return Helper.matchAllExplicitUsesAreUndef(*State.MIs[0]);}()) { |
| 3195 | return false; |
| 3196 | } |
| 3197 | // Apply Patterns |
| 3198 | Helper.replaceInstWithUndef(*State.MIs[0]); |
| 3199 | return true; |
| 3200 | } |
| 3201 | case GICXXCustomAction_GICombiner41:{ |
| 3202 | // Match Patterns |
| 3203 | if(![&](){return Helper.matchUndefShuffleVectorMask(*State.MIs[0]);}()) { |
| 3204 | return false; |
| 3205 | } |
| 3206 | // Apply Patterns |
| 3207 | Helper.replaceInstWithUndef(*State.MIs[0]); |
| 3208 | return true; |
| 3209 | } |
| 3210 | case GICXXCustomAction_GICombiner42:{ |
| 3211 | // Match Patterns |
| 3212 | if(![&](){return Helper.matchUndefStore(*State.MIs[0]);}()) { |
| 3213 | return false; |
| 3214 | } |
| 3215 | // Apply Patterns |
| 3216 | Helper.eraseInst(*State.MIs[0]); |
| 3217 | return true; |
| 3218 | } |
| 3219 | case GICXXCustomAction_GICombiner43:{ |
| 3220 | // Match Patterns |
| 3221 | if(![&](){return Helper.matchInsertExtractVecEltOutOfBounds(*State.MIs[0]);}()) { |
| 3222 | return false; |
| 3223 | } |
| 3224 | // Apply Patterns |
| 3225 | Helper.replaceInstWithUndef(*State.MIs[0]); |
| 3226 | return true; |
| 3227 | } |
| 3228 | case GICXXCustomAction_GICombiner44:{ |
| 3229 | // Match Patterns |
| 3230 | if(![&](){return Helper.matchSelectSameVal(*State.MIs[0]);}()) { |
| 3231 | return false; |
| 3232 | } |
| 3233 | // Apply Patterns |
| 3234 | Helper.replaceSingleDefInstWithOperand(*State.MIs[0], 2); |
| 3235 | return true; |
| 3236 | } |
| 3237 | case GICXXCustomAction_GICombiner45:{ |
| 3238 | Register GIMatchData_info; |
| 3239 | // Match Patterns |
| 3240 | if(![&](){return Helper.matchCombineI2PToP2I(*State.MIs[0], GIMatchData_info);}()) { |
| 3241 | return false; |
| 3242 | } |
| 3243 | // Apply Patterns |
| 3244 | Helper.applyCombineI2PToP2I(*State.MIs[0], GIMatchData_info); |
| 3245 | return true; |
| 3246 | } |
| 3247 | case GICXXCustomAction_GICombiner46:{ |
| 3248 | Register GIMatchData_info; |
| 3249 | // Match Patterns |
| 3250 | if(![&](){GIMatchData_info = State.MIs[1]->getOperand(1).getReg(); return true;}()) { |
| 3251 | return false; |
| 3252 | } |
| 3253 | // Apply Patterns |
| 3254 | Helper.applyCombineP2IToI2P(*State.MIs[0], GIMatchData_info); |
| 3255 | return true; |
| 3256 | } |
| 3257 | case GICXXCustomAction_GICombiner47:{ |
| 3258 | Register GIMatchData_matchinfo; |
| 3259 | // Match Patterns |
| 3260 | if(![&](){return Helper.matchCombineAnyExtTrunc(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 3261 | return false; |
| 3262 | } |
| 3263 | // Apply Patterns |
| 3264 | Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo); |
| 3265 | return true; |
| 3266 | } |
| 3267 | case GICXXCustomAction_GICombiner48:{ |
| 3268 | Register GIMatchData_matchinfo; |
| 3269 | // Match Patterns |
| 3270 | if(![&](){return Helper.matchBuildVectorIdentityFold(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 3271 | return false; |
| 3272 | } |
| 3273 | // Apply Patterns |
| 3274 | Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo); |
| 3275 | return true; |
| 3276 | } |
| 3277 | case GICXXCustomAction_GICombiner49:{ |
| 3278 | Register GIMatchData_matchinfo; |
| 3279 | // Match Patterns |
| 3280 | if(![&](){return Helper.matchTruncBuildVectorFold(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 3281 | return false; |
| 3282 | } |
| 3283 | // Apply Patterns |
| 3284 | Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo); |
| 3285 | return true; |
| 3286 | } |
| 3287 | case GICXXCustomAction_GICombiner50:{ |
| 3288 | Register GIMatchData_matchinfo; |
| 3289 | // Match Patterns |
| 3290 | if(![&](){return Helper.matchTruncLshrBuildVectorFold(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 3291 | return false; |
| 3292 | } |
| 3293 | // Apply Patterns |
| 3294 | Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo); |
| 3295 | return true; |
| 3296 | } |
| 3297 | case GICXXCustomAction_GICombiner51:{ |
| 3298 | // Match Patterns |
| 3299 | if(![&](){return MRI.getType(State.MIs[1]->getOperand(1).getReg()) == MRI.getType(State.MIs[0]->getOperand(0).getReg());}()) { |
| 3300 | return false; |
| 3301 | } |
| 3302 | // Apply Patterns |
| 3303 | Helper.replaceSingleDefInstWithReg(*State.MIs[0], State.MIs[1]->getOperand(1).getReg()); |
| 3304 | return true; |
| 3305 | } |
| 3306 | case GICXXCustomAction_GICombiner52:{ |
| 3307 | MachineInstr* GIMatchData_matchinfo; |
| 3308 | // Match Patterns |
| 3309 | if(![&](){return Helper.matchExtendThroughPhis(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 3310 | return false; |
| 3311 | } |
| 3312 | // Apply Patterns |
| 3313 | Helper.applyExtendThroughPhis(*State.MIs[0], GIMatchData_matchinfo); |
| 3314 | return true; |
| 3315 | } |
| 3316 | case GICXXCustomAction_GICombiner53:{ |
| 3317 | std::tuple<Register, Register> GIMatchData_info; |
| 3318 | // Match Patterns |
| 3319 | if(![&](){return Helper.matchSimplifyAddToSub(*State.MIs[0], GIMatchData_info);}()) { |
| 3320 | return false; |
| 3321 | } |
| 3322 | // Apply Patterns |
| 3323 | Helper.applySimplifyAddToSub(*State.MIs[0], GIMatchData_info); |
| 3324 | return true; |
| 3325 | } |
| 3326 | case GICXXCustomAction_GICombiner54:{ |
| 3327 | InstructionStepsMatchInfo GIMatchData_info; |
| 3328 | // Match Patterns |
| 3329 | if(![&](){return Helper.matchHoistLogicOpWithSameOpcodeHands(*State.MIs[0], GIMatchData_info);}()) { |
| 3330 | return false; |
| 3331 | } |
| 3332 | // Apply Patterns |
| 3333 | Helper.applyBuildInstructionSteps(*State.MIs[0], GIMatchData_info); |
| 3334 | return true; |
| 3335 | } |
| 3336 | case GICXXCustomAction_GICombiner55:{ |
| 3337 | std::optional<int64_t> GIMatchData_matchinfo; |
| 3338 | // Match Patterns |
| 3339 | if(![&](){return Helper.matchShiftsTooBig(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 3340 | return false; |
| 3341 | } |
| 3342 | // Apply Patterns |
| 3343 | if (GIMatchData_matchinfo) { |
| 3344 | Helper.replaceInstWithConstant(*State.MIs[0], *GIMatchData_matchinfo); |
| 3345 | } else { |
| 3346 | Helper.replaceInstWithUndef(*State.MIs[0]); |
| 3347 | } |
| 3348 | return true; |
| 3349 | } |
| 3350 | case GICXXCustomAction_GICombiner56:{ |
| 3351 | std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo; |
| 3352 | // Match Patterns |
| 3353 | if(![&](){return Helper.matchReassocPtrAdd(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 3354 | return false; |
| 3355 | } |
| 3356 | // Apply Patterns |
| 3357 | Helper.applyBuildFnNoErase(*State.MIs[0], GIMatchData_matchinfo); |
| 3358 | return true; |
| 3359 | } |
| 3360 | case GICXXCustomAction_GICombiner57:{ |
| 3361 | std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo; |
| 3362 | // Match Patterns |
| 3363 | if(![&](){return Helper.matchReassocCommBinOp(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 3364 | return false; |
| 3365 | } |
| 3366 | // Apply Patterns |
| 3367 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo); |
| 3368 | return true; |
| 3369 | } |
| 3370 | case GICXXCustomAction_GICombiner58:{ |
| 3371 | PtrAddChain GIMatchData_matchinfo; |
| 3372 | // Match Patterns |
| 3373 | if(![&](){return Helper.matchPtrAddImmedChain(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 3374 | return false; |
| 3375 | } |
| 3376 | // Apply Patterns |
| 3377 | Helper.applyPtrAddImmedChain(*State.MIs[0], GIMatchData_matchinfo); |
| 3378 | return true; |
| 3379 | } |
| 3380 | case GICXXCustomAction_GICombiner59:{ |
| 3381 | std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo; |
| 3382 | // Match Patterns |
| 3383 | if(![&](){return Helper.matchCanonicalizeICmp(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 3384 | return false; |
| 3385 | } |
| 3386 | // Apply Patterns |
| 3387 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo); |
| 3388 | return true; |
| 3389 | } |
| 3390 | case GICXXCustomAction_GICombiner60:{ |
| 3391 | std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo; |
| 3392 | // Match Patterns |
| 3393 | if(![&](){return Helper.matchCanonicalizeFCmp(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 3394 | return false; |
| 3395 | } |
| 3396 | // Apply Patterns |
| 3397 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo); |
| 3398 | return true; |
| 3399 | } |
| 3400 | case GICXXCustomAction_GICombiner61:{ |
| 3401 | int64_t GIMatchData_matchinfo; |
| 3402 | // Match Patterns |
| 3403 | if(![&](){return Helper.matchICmpToTrueFalseKnownBits(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 3404 | return false; |
| 3405 | } |
| 3406 | // Apply Patterns |
| 3407 | Helper.replaceInstWithConstant(*State.MIs[0], GIMatchData_matchinfo); |
| 3408 | return true; |
| 3409 | } |
| 3410 | case GICXXCustomAction_GICombiner62:{ |
| 3411 | std::function<void(MachineIRBuilder &)> GIMatchData_info; |
| 3412 | // Match Patterns |
| 3413 | if(![&](){return Helper.matchICmpToLHSKnownBits(*State.MIs[0], GIMatchData_info);}()) { |
| 3414 | return false; |
| 3415 | } |
| 3416 | // Apply Patterns |
| 3417 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_info); |
| 3418 | return true; |
| 3419 | } |
| 3420 | case GICXXCustomAction_GICombiner63:{ |
| 3421 | std::function<void(MachineIRBuilder &)> GIMatchData_info; |
| 3422 | // Match Patterns |
| 3423 | if(![&](){return Helper.matchRedundantBinOpInEquality(*State.MIs[0], GIMatchData_info);}()) { |
| 3424 | return false; |
| 3425 | } |
| 3426 | // Apply Patterns |
| 3427 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_info); |
| 3428 | return true; |
| 3429 | } |
| 3430 | case GICXXCustomAction_GICombiner64:{ |
| 3431 | std::tuple<Register, int64_t> GIMatchData_info; |
| 3432 | // Match Patterns |
| 3433 | if(![&](){return Helper.matchAshrShlToSextInreg(*State.MIs[0], GIMatchData_info);}()) { |
| 3434 | return false; |
| 3435 | } |
| 3436 | // Apply Patterns |
| 3437 | Helper.applyAshShlToSextInreg(*State.MIs[0], GIMatchData_info); |
| 3438 | return true; |
| 3439 | } |
| 3440 | case GICXXCustomAction_GICombiner65:{ |
| 3441 | std::tuple<Register, unsigned> GIMatchData_matchinfo; |
| 3442 | // Match Patterns |
| 3443 | if(![&](){return Helper.matchSextInRegOfLoad(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 3444 | return false; |
| 3445 | } |
| 3446 | // Apply Patterns |
| 3447 | Helper.applySextInRegOfLoad(*State.MIs[0], GIMatchData_matchinfo); |
| 3448 | return true; |
| 3449 | } |
| 3450 | case GICXXCustomAction_GICombiner66:{ |
| 3451 | RegisterImmPair GIMatchData_matchinfo; |
| 3452 | // Match Patterns |
| 3453 | if(![&](){return Helper.matchCombineShlOfExtend(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 3454 | return false; |
| 3455 | } |
| 3456 | // Apply Patterns |
| 3457 | Helper.applyCombineShlOfExtend(*State.MIs[0], GIMatchData_matchinfo); |
| 3458 | return true; |
| 3459 | } |
| 3460 | case GICXXCustomAction_GICombiner67:{ |
| 3461 | std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo; |
| 3462 | // Match Patterns |
| 3463 | if(![&](){return Helper.matchNarrowBinopFeedingAnd(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 3464 | return false; |
| 3465 | } |
| 3466 | // Apply Patterns |
| 3467 | Helper.applyBuildFnNoErase(*State.MIs[0], GIMatchData_matchinfo); |
| 3468 | return true; |
| 3469 | } |
| 3470 | case GICXXCustomAction_GICombiner68:{ |
| 3471 | unsigned GIMatchData_matchinfo; |
| 3472 | // Match Patterns |
| 3473 | if(![&](){return Helper.matchConstantSelectCmp(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 3474 | return false; |
| 3475 | } |
| 3476 | // Apply Patterns |
| 3477 | Helper.replaceSingleDefInstWithOperand(*State.MIs[0], GIMatchData_matchinfo); |
| 3478 | return true; |
| 3479 | } |
| 3480 | case GICXXCustomAction_GICombiner69:{ |
| 3481 | std::function<void(MachineIRBuilder &)> GIMatchData_info; |
| 3482 | // Match Patterns |
| 3483 | if(![&](){return Helper.matchSelectIMinMax(State.MIs[0]->getOperand(0), GIMatchData_info);}()) { |
| 3484 | return false; |
| 3485 | } |
| 3486 | // Apply Patterns |
| 3487 | Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_info); |
| 3488 | return true; |
| 3489 | } |
| 3490 | case GICXXCustomAction_GICombiner70:{ |
| 3491 | std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo; |
| 3492 | // Match Patterns |
| 3493 | if(![&](){return Helper.matchSelect(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 3494 | return false; |
| 3495 | } |
| 3496 | // Apply Patterns |
| 3497 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo); |
| 3498 | return true; |
| 3499 | } |
| 3500 | case GICXXCustomAction_GICombiner71:{ |
| 3501 | Register GIMatchData_matchinfo; |
| 3502 | // Match Patterns |
| 3503 | if(![&](){return Helper.matchRedundantAnd(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 3504 | return false; |
| 3505 | } |
| 3506 | // Apply Patterns |
| 3507 | Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo); |
| 3508 | return true; |
| 3509 | } |
| 3510 | case GICXXCustomAction_GICombiner72:{ |
| 3511 | // Match Patterns |
| 3512 | if(![&](){return Helper.matchRedundantSExtInReg(*State.MIs[0]);}()) { |
| 3513 | return false; |
| 3514 | } |
| 3515 | // Apply Patterns |
| 3516 | Helper.replaceSingleDefInstWithOperand(*State.MIs[0], 1); |
| 3517 | return true; |
| 3518 | } |
| 3519 | case GICXXCustomAction_GICombiner73:{ |
| 3520 | Register GIMatchData_matchinfo; |
| 3521 | // Match Patterns |
| 3522 | if(![&](){return Helper.matchRedundantOr(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 3523 | return false; |
| 3524 | } |
| 3525 | // Apply Patterns |
| 3526 | Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo); |
| 3527 | return true; |
| 3528 | } |
| 3529 | case GICXXCustomAction_GICombiner74:{ |
| 3530 | // Match Patterns |
| 3531 | if(![&](){return Helper.matchOperandIsKnownToBeAPowerOfTwo(State.MIs[0]->getOperand(2));}()) { |
| 3532 | return false; |
| 3533 | } |
| 3534 | // Apply Patterns |
| 3535 | Helper.applySimplifyURemByPow2(*State.MIs[0]); |
| 3536 | return true; |
| 3537 | } |
| 3538 | case GICXXCustomAction_GICombiner75:{ |
| 3539 | Register GIMatchData_matchinfo; |
| 3540 | // Match Patterns |
| 3541 | if(![&](){return Helper.matchCombineZextTrunc(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 3542 | return false; |
| 3543 | } |
| 3544 | // Apply Patterns |
| 3545 | Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo); |
| 3546 | return true; |
| 3547 | } |
| 3548 | case GICXXCustomAction_GICombiner76:{ |
| 3549 | // Match Patterns |
| 3550 | if(![&](){unsigned BitWidth = MRI.getType(State.MIs[0]->getOperand(1).getReg()).getScalarSizeInBits(); |
| 3551 | return Helper.getValueTracking()->maskedValueIsZero(State.MIs[0]->getOperand(1).getReg(), |
| 3552 | APInt::getOneBitSet(BitWidth, State.MIs[0]->getOperand(2).getImm() - 1));}()) { |
| 3553 | return false; |
| 3554 | } |
| 3555 | // Apply Patterns |
| 3556 | Helper.getBuilder().setInstrAndDebugLoc(*State.MIs[0]); |
| 3557 | Helper.getBuilder().buildZExtInReg(State.MIs[0]->getOperand(0), State.MIs[0]->getOperand(1), State.MIs[0]->getOperand(2).getImm()); |
| 3558 | State.MIs[0]->eraseFromParent(); |
| 3559 | return true; |
| 3560 | } |
| 3561 | case GICXXCustomAction_GICombiner77:{ |
| 3562 | std::pair<MachineInstr*, LLT> GIMatchData_matchinfo; |
| 3563 | // Match Patterns |
| 3564 | if(![&](){return Helper.matchCombineTruncOfShift(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 3565 | return false; |
| 3566 | } |
| 3567 | // Apply Patterns |
| 3568 | Helper.applyCombineTruncOfShift(*State.MIs[0], GIMatchData_matchinfo); |
| 3569 | return true; |
| 3570 | } |
| 3571 | case GICXXCustomAction_GICombiner78:{ |
| 3572 | SmallVector<Register> GIMatchData_info; |
| 3573 | // Match Patterns |
| 3574 | if(![&](){return Helper.matchNotCmp(*State.MIs[0], GIMatchData_info);}()) { |
| 3575 | return false; |
| 3576 | } |
| 3577 | // Apply Patterns |
| 3578 | Helper.applyNotCmp(*State.MIs[0], GIMatchData_info); |
| 3579 | return true; |
| 3580 | } |
| 3581 | case GICXXCustomAction_GICombiner79:{ |
| 3582 | MachineInstr * GIMatchData_matchinfo; |
| 3583 | // Match Patterns |
| 3584 | if(![&](){return Helper.matchOptBrCondByInvertingCond(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 3585 | return false; |
| 3586 | } |
| 3587 | // Apply Patterns |
| 3588 | Helper.applyOptBrCondByInvertingCond(*State.MIs[0], GIMatchData_matchinfo); |
| 3589 | return true; |
| 3590 | } |
| 3591 | case GICXXCustomAction_GICombiner80:{ |
| 3592 | // Apply Patterns |
| 3593 | Helper.applyCombineConstantFoldFpUnary(*State.MIs[0], State.MIs[1]->getOperand(1).getFPImm()); |
| 3594 | return true; |
| 3595 | } |
| 3596 | case GICXXCustomAction_GICombiner81:{ |
| 3597 | // Apply Patterns |
| 3598 | Helper.replaceInstWithFConstant(*State.MIs[0]->getOperand(0).getParent(), 0.0); |
| 3599 | return true; |
| 3600 | } |
| 3601 | case GICXXCustomAction_GICombiner82:{ |
| 3602 | APInt GIMatchData_info; |
| 3603 | // Match Patterns |
| 3604 | if(![&](){return Helper.matchCombineConstPtrAddToI2P(*State.MIs[0], GIMatchData_info);}()) { |
| 3605 | return false; |
| 3606 | } |
| 3607 | // Apply Patterns |
| 3608 | Helper.applyCombineConstPtrAddToI2P(*State.MIs[0], GIMatchData_info); |
| 3609 | return true; |
| 3610 | } |
| 3611 | case GICXXCustomAction_GICombiner83:{ |
| 3612 | std::function<void(MachineIRBuilder &)> GIMatchData_info; |
| 3613 | // Match Patterns |
| 3614 | if(![&](){return Helper.matchOverlappingAnd(*State.MIs[0], GIMatchData_info);}()) { |
| 3615 | return false; |
| 3616 | } |
| 3617 | // Apply Patterns |
| 3618 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_info); |
| 3619 | return true; |
| 3620 | } |
| 3621 | case GICXXCustomAction_GICombiner84:{ |
| 3622 | std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo; |
| 3623 | // Match Patterns |
| 3624 | if(![&](){return Helper.matchMulOBy2(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 3625 | return false; |
| 3626 | } |
| 3627 | // Apply Patterns |
| 3628 | Helper.applyBuildFnNoErase(*State.MIs[0], GIMatchData_matchinfo); |
| 3629 | return true; |
| 3630 | } |
| 3631 | case GICXXCustomAction_GICombiner85:{ |
| 3632 | std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo; |
| 3633 | // Match Patterns |
| 3634 | if(![&](){return Helper.matchMulOBy0(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 3635 | return false; |
| 3636 | } |
| 3637 | // Apply Patterns |
| 3638 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo); |
| 3639 | return true; |
| 3640 | } |
| 3641 | case GICXXCustomAction_GICombiner86:{ |
| 3642 | std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo; |
| 3643 | // Match Patterns |
| 3644 | if(![&](){return Helper.matchAddEToAddO(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 3645 | return false; |
| 3646 | } |
| 3647 | // Apply Patterns |
| 3648 | Helper.applyBuildFnNoErase(*State.MIs[0], GIMatchData_matchinfo); |
| 3649 | return true; |
| 3650 | } |
| 3651 | case GICXXCustomAction_GICombiner87:{ |
| 3652 | unsigned GIMatchData_info; |
| 3653 | // Match Patterns |
| 3654 | if(![&](){return Helper.matchCombineFMinMaxNaN(*State.MIs[0], GIMatchData_info);}()) { |
| 3655 | return false; |
| 3656 | } |
| 3657 | // Apply Patterns |
| 3658 | Helper.replaceSingleDefInstWithOperand(*State.MIs[0], GIMatchData_info); |
| 3659 | return true; |
| 3660 | } |
| 3661 | case GICXXCustomAction_GICombiner88:{ |
| 3662 | // Match Patterns |
| 3663 | if(![&](){return Helper.matchFPowIExpansion(*State.MIs[0], State.MIs[1]->getOperand(1).getCImm()->getSExtValue());}()) { |
| 3664 | return false; |
| 3665 | } |
| 3666 | // Apply Patterns |
| 3667 | Helper.applyExpandFPowI(*State.MIs[0], State.MIs[1]->getOperand(1).getCImm()->getSExtValue()); |
| 3668 | return true; |
| 3669 | } |
| 3670 | case GICXXCustomAction_GICombiner89:{ |
| 3671 | std::pair<Register, Register> GIMatchData_matchinfo; |
| 3672 | // Match Patterns |
| 3673 | if(![&](){return Helper.matchXorOfAndWithSameReg(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 3674 | return false; |
| 3675 | } |
| 3676 | // Apply Patterns |
| 3677 | Helper.applyXorOfAndWithSameReg(*State.MIs[0], GIMatchData_matchinfo); |
| 3678 | return true; |
| 3679 | } |
| 3680 | case GICXXCustomAction_GICombiner90:{ |
| 3681 | // Match Patterns |
| 3682 | if(![&](){return Helper.matchPtrAddZero(*State.MIs[0]);}()) { |
| 3683 | return false; |
| 3684 | } |
| 3685 | // Apply Patterns |
| 3686 | Helper.applyPtrAddZero(*State.MIs[0]); |
| 3687 | return true; |
| 3688 | } |
| 3689 | case GICXXCustomAction_GICombiner91:{ |
| 3690 | RegisterImmPair GIMatchData_matchinfo; |
| 3691 | // Match Patterns |
| 3692 | if(![&](){return Helper.matchShiftImmedChain(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 3693 | return false; |
| 3694 | } |
| 3695 | // Apply Patterns |
| 3696 | Helper.applyShiftImmedChain(*State.MIs[0], GIMatchData_matchinfo); |
| 3697 | return true; |
| 3698 | } |
| 3699 | case GICXXCustomAction_GICombiner92:{ |
| 3700 | ShiftOfShiftedLogic GIMatchData_matchinfo; |
| 3701 | // Match Patterns |
| 3702 | if(![&](){return Helper.matchShiftOfShiftedLogic(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 3703 | return false; |
| 3704 | } |
| 3705 | // Apply Patterns |
| 3706 | Helper.applyShiftOfShiftedLogic(*State.MIs[0], GIMatchData_matchinfo); |
| 3707 | return true; |
| 3708 | } |
| 3709 | case GICXXCustomAction_GICombiner93:{ |
| 3710 | std::function<void(MachineIRBuilder &)> GIMatchData_info; |
| 3711 | // Match Patterns |
| 3712 | if(![&](){return Helper.matchLoadOrCombine(*State.MIs[0], GIMatchData_info);}()) { |
| 3713 | return false; |
| 3714 | } |
| 3715 | // Apply Patterns |
| 3716 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_info); |
| 3717 | return true; |
| 3718 | } |
| 3719 | case GICXXCustomAction_GICombiner94:{ |
| 3720 | MachineInstr * GIMatchData_matchinfo; |
| 3721 | // Match Patterns |
| 3722 | if(![&](){return Helper.matchCombineDivRem(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 3723 | return false; |
| 3724 | } |
| 3725 | // Apply Patterns |
| 3726 | Helper.applyCombineDivRem(*State.MIs[0], GIMatchData_matchinfo); |
| 3727 | return true; |
| 3728 | } |
| 3729 | case GICXXCustomAction_GICombiner95:{ |
| 3730 | std::function<void(MachineIRBuilder &)> GIMatchData_info; |
| 3731 | // Match Patterns |
| 3732 | if(![&](){return Helper.matchOrShiftToFunnelShift(*State.MIs[0], false, GIMatchData_info);}()) { |
| 3733 | return false; |
| 3734 | } |
| 3735 | // Apply Patterns |
| 3736 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_info); |
| 3737 | return true; |
| 3738 | } |
| 3739 | case GICXXCustomAction_GICombiner96:{ |
| 3740 | // Match Patterns |
| 3741 | if(![&](){return Helper.matchFunnelShiftToRotate(*State.MIs[0]);}()) { |
| 3742 | return false; |
| 3743 | } |
| 3744 | // Apply Patterns |
| 3745 | Helper.applyFunnelShiftToRotate(*State.MIs[0]); |
| 3746 | return true; |
| 3747 | } |
| 3748 | case GICXXCustomAction_GICombiner97:{ |
| 3749 | // Match Patterns |
| 3750 | if(![&](){return Helper.matchConstantLargerBitWidth(*State.MIs[0], 3);}()) { |
| 3751 | return false; |
| 3752 | } |
| 3753 | // Apply Patterns |
| 3754 | Helper.applyFunnelShiftConstantModulo(*State.MIs[0]); |
| 3755 | return true; |
| 3756 | } |
| 3757 | case GICXXCustomAction_GICombiner98:{ |
| 3758 | std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo; |
| 3759 | // Match Patterns |
| 3760 | if(![&](){return Helper.matchCommuteShift(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 3761 | return false; |
| 3762 | } |
| 3763 | // Apply Patterns |
| 3764 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo); |
| 3765 | return true; |
| 3766 | } |
| 3767 | case GICXXCustomAction_GICombiner99:{ |
| 3768 | std::function<void(MachineIRBuilder &)> GIMatchData_info; |
| 3769 | // Match Patterns |
| 3770 | if(![&](){return Helper.matchBitfieldExtractFromSExtInReg(*State.MIs[0], GIMatchData_info);}()) { |
| 3771 | return false; |
| 3772 | } |
| 3773 | // Apply Patterns |
| 3774 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_info); |
| 3775 | return true; |
| 3776 | } |
| 3777 | case GICXXCustomAction_GICombiner100:{ |
| 3778 | std::function<void(MachineIRBuilder &)> GIMatchData_info; |
| 3779 | // Match Patterns |
| 3780 | if(![&](){return Helper.matchBitfieldExtractFromAnd(*State.MIs[0], GIMatchData_info);}()) { |
| 3781 | return false; |
| 3782 | } |
| 3783 | // Apply Patterns |
| 3784 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_info); |
| 3785 | return true; |
| 3786 | } |
| 3787 | case GICXXCustomAction_GICombiner101:{ |
| 3788 | std::function<void(MachineIRBuilder &)> GIMatchData_info; |
| 3789 | // Match Patterns |
| 3790 | if(![&](){return Helper.matchBitfieldExtractFromShr(*State.MIs[0], GIMatchData_info);}()) { |
| 3791 | return false; |
| 3792 | } |
| 3793 | // Apply Patterns |
| 3794 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_info); |
| 3795 | return true; |
| 3796 | } |
| 3797 | case GICXXCustomAction_GICombiner102:{ |
| 3798 | std::function<void(MachineIRBuilder &)> GIMatchData_info; |
| 3799 | // Match Patterns |
| 3800 | if(![&](){return Helper.matchBitfieldExtractFromShrAnd(*State.MIs[0], GIMatchData_info);}()) { |
| 3801 | return false; |
| 3802 | } |
| 3803 | // Apply Patterns |
| 3804 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_info); |
| 3805 | return true; |
| 3806 | } |
| 3807 | case GICXXCustomAction_GICombiner103:{ |
| 3808 | APInt GIMatchData_matchinfo; |
| 3809 | // Match Patterns |
| 3810 | if(![&](){return Helper.matchConstantFoldBinOp(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 3811 | return false; |
| 3812 | } |
| 3813 | // Apply Patterns |
| 3814 | Helper.replaceInstWithConstant(*State.MIs[0], GIMatchData_matchinfo); |
| 3815 | return true; |
| 3816 | } |
| 3817 | case GICXXCustomAction_GICombiner104:{ |
| 3818 | ConstantFP* GIMatchData_matchinfo; |
| 3819 | // Match Patterns |
| 3820 | if(![&](){return Helper.matchConstantFoldFPBinOp(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 3821 | return false; |
| 3822 | } |
| 3823 | // Apply Patterns |
| 3824 | Helper.replaceInstWithFConstant(*State.MIs[0], GIMatchData_matchinfo); |
| 3825 | return true; |
| 3826 | } |
| 3827 | case GICXXCustomAction_GICombiner105:{ |
| 3828 | ConstantFP* GIMatchData_matchinfo; |
| 3829 | // Match Patterns |
| 3830 | if(![&](){return Helper.matchConstantFoldFMA(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 3831 | return false; |
| 3832 | } |
| 3833 | // Apply Patterns |
| 3834 | Helper.replaceInstWithFConstant(*State.MIs[0], GIMatchData_matchinfo); |
| 3835 | return true; |
| 3836 | } |
| 3837 | case GICXXCustomAction_GICombiner106:{ |
| 3838 | APInt GIMatchData_matchinfo; |
| 3839 | // Match Patterns |
| 3840 | if(![&](){return Helper.matchConstantFoldCastOp(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 3841 | return false; |
| 3842 | } |
| 3843 | // Apply Patterns |
| 3844 | Helper.replaceInstWithConstant(*State.MIs[0], GIMatchData_matchinfo); |
| 3845 | return true; |
| 3846 | } |
| 3847 | case GICXXCustomAction_GICombiner107:{ |
| 3848 | std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo; |
| 3849 | // Match Patterns |
| 3850 | if(![&](){return Helper.matchConstantFoldUnaryIntOp(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 3851 | return false; |
| 3852 | } |
| 3853 | // Apply Patterns |
| 3854 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo); |
| 3855 | return true; |
| 3856 | } |
| 3857 | case GICXXCustomAction_GICombiner108:{ |
| 3858 | // Match Patterns |
| 3859 | if(![&](){return Helper.matchUMulHToLShr(*State.MIs[0]);}()) { |
| 3860 | return false; |
| 3861 | } |
| 3862 | // Apply Patterns |
| 3863 | Helper.applyUMulHToLShr(*State.MIs[0]); |
| 3864 | return true; |
| 3865 | } |
| 3866 | case GICXXCustomAction_GICombiner109:{ |
| 3867 | std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo; |
| 3868 | // Match Patterns |
| 3869 | if(![&](){return Helper.matchRedundantNegOperands(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 3870 | return false; |
| 3871 | } |
| 3872 | // Apply Patterns |
| 3873 | Helper.applyBuildFnNoErase(*State.MIs[0], GIMatchData_matchinfo); |
| 3874 | return true; |
| 3875 | } |
| 3876 | case GICXXCustomAction_GICombiner110:{ |
| 3877 | std::function<void(MachineIRBuilder &)> GIMatchData_info; |
| 3878 | // Match Patterns |
| 3879 | if(![&](){return Helper.matchAndOrDisjointMask(*State.MIs[0], GIMatchData_info);}()) { |
| 3880 | return false; |
| 3881 | } |
| 3882 | // Apply Patterns |
| 3883 | Helper.applyBuildFnNoErase(*State.MIs[0], GIMatchData_info); |
| 3884 | return true; |
| 3885 | } |
| 3886 | case GICXXCustomAction_GICombiner111:{ |
| 3887 | std::function<void(MachineIRBuilder &)> GIMatchData_info; |
| 3888 | // Match Patterns |
| 3889 | if(![&](){return Helper.matchCombineFAddFMulToFMadOrFMA(*State.MIs[0], |
| 3890 | GIMatchData_info);}()) { |
| 3891 | return false; |
| 3892 | } |
| 3893 | // Apply Patterns |
| 3894 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_info); |
| 3895 | return true; |
| 3896 | } |
| 3897 | case GICXXCustomAction_GICombiner112:{ |
| 3898 | std::function<void(MachineIRBuilder &)> GIMatchData_info; |
| 3899 | // Match Patterns |
| 3900 | if(![&](){return Helper.matchCombineFAddFpExtFMulToFMadOrFMA(*State.MIs[0], |
| 3901 | GIMatchData_info);}()) { |
| 3902 | return false; |
| 3903 | } |
| 3904 | // Apply Patterns |
| 3905 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_info); |
| 3906 | return true; |
| 3907 | } |
| 3908 | case GICXXCustomAction_GICombiner113:{ |
| 3909 | std::function<void(MachineIRBuilder &)> GIMatchData_info; |
| 3910 | // Match Patterns |
| 3911 | if(![&](){return Helper.matchCombineFAddFMAFMulToFMadOrFMA(*State.MIs[0], |
| 3912 | GIMatchData_info);}()) { |
| 3913 | return false; |
| 3914 | } |
| 3915 | // Apply Patterns |
| 3916 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_info); |
| 3917 | return true; |
| 3918 | } |
| 3919 | case GICXXCustomAction_GICombiner114:{ |
| 3920 | std::function<void(MachineIRBuilder &)> GIMatchData_info; |
| 3921 | // Match Patterns |
| 3922 | if(![&](){return Helper.matchCombineFAddFpExtFMulToFMadOrFMAAggressive( |
| 3923 | *State.MIs[0], GIMatchData_info);}()) { |
| 3924 | return false; |
| 3925 | } |
| 3926 | // Apply Patterns |
| 3927 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_info); |
| 3928 | return true; |
| 3929 | } |
| 3930 | case GICXXCustomAction_GICombiner115:{ |
| 3931 | std::function<void(MachineIRBuilder &)> GIMatchData_info; |
| 3932 | // Match Patterns |
| 3933 | if(![&](){return Helper.matchCombineFSubFMulToFMadOrFMA(*State.MIs[0], |
| 3934 | GIMatchData_info);}()) { |
| 3935 | return false; |
| 3936 | } |
| 3937 | // Apply Patterns |
| 3938 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_info); |
| 3939 | return true; |
| 3940 | } |
| 3941 | case GICXXCustomAction_GICombiner116:{ |
| 3942 | std::function<void(MachineIRBuilder &)> GIMatchData_info; |
| 3943 | // Match Patterns |
| 3944 | if(![&](){return Helper.matchCombineFSubFNegFMulToFMadOrFMA(*State.MIs[0], |
| 3945 | GIMatchData_info);}()) { |
| 3946 | return false; |
| 3947 | } |
| 3948 | // Apply Patterns |
| 3949 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_info); |
| 3950 | return true; |
| 3951 | } |
| 3952 | case GICXXCustomAction_GICombiner117:{ |
| 3953 | std::function<void(MachineIRBuilder &)> GIMatchData_info; |
| 3954 | // Match Patterns |
| 3955 | if(![&](){return Helper.matchCombineFSubFpExtFMulToFMadOrFMA(*State.MIs[0], |
| 3956 | GIMatchData_info);}()) { |
| 3957 | return false; |
| 3958 | } |
| 3959 | // Apply Patterns |
| 3960 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_info); |
| 3961 | return true; |
| 3962 | } |
| 3963 | case GICXXCustomAction_GICombiner118:{ |
| 3964 | std::function<void(MachineIRBuilder &)> GIMatchData_info; |
| 3965 | // Match Patterns |
| 3966 | if(![&](){return Helper.matchCombineFSubFpExtFNegFMulToFMadOrFMA( |
| 3967 | *State.MIs[0], GIMatchData_info);}()) { |
| 3968 | return false; |
| 3969 | } |
| 3970 | // Apply Patterns |
| 3971 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_info); |
| 3972 | return true; |
| 3973 | } |
| 3974 | case GICXXCustomAction_GICombiner119:{ |
| 3975 | unsigned GIMatchData_select_op_no; |
| 3976 | // Match Patterns |
| 3977 | if(![&](){return Helper.matchFoldBinOpIntoSelect(*State.MIs[0], GIMatchData_select_op_no);}()) { |
| 3978 | return false; |
| 3979 | } |
| 3980 | // Apply Patterns |
| 3981 | Helper.applyFoldBinOpIntoSelect(*State.MIs[0], GIMatchData_select_op_no); |
| 3982 | return true; |
| 3983 | } |
| 3984 | case GICXXCustomAction_GICombiner120:{ |
| 3985 | // Match Patterns |
| 3986 | if(![&](){return Helper.matchOperandIsKnownToBeAPowerOfTwo(State.MIs[0]->getOperand(2), |
| 3987 | /*OrNegative=*/true);}()) { |
| 3988 | return false; |
| 3989 | } |
| 3990 | // Apply Patterns |
| 3991 | Helper.applySimplifySRemByPow2(*State.MIs[0]); |
| 3992 | return true; |
| 3993 | } |
| 3994 | case GICXXCustomAction_GICombiner121:{ |
| 3995 | // Match Patterns |
| 3996 | if(![&](){return Helper.matchUDivOrURemByConst(*State.MIs[0]);}()) { |
| 3997 | return false; |
| 3998 | } |
| 3999 | // Apply Patterns |
| 4000 | Helper.applyUDivOrURemByConst(*State.MIs[0]); |
| 4001 | return true; |
| 4002 | } |
| 4003 | case GICXXCustomAction_GICombiner122:{ |
| 4004 | // Match Patterns |
| 4005 | if(![&](){return Helper.matchSDivOrSRemByConst(*State.MIs[0]);}()) { |
| 4006 | return false; |
| 4007 | } |
| 4008 | // Apply Patterns |
| 4009 | Helper.applySDivOrSRemByConst(*State.MIs[0]); |
| 4010 | return true; |
| 4011 | } |
| 4012 | case GICXXCustomAction_GICombiner123:{ |
| 4013 | // Match Patterns |
| 4014 | if(![&](){return Helper.matchDivByPow2(*State.MIs[0], /*IsSigned=*/false);}()) { |
| 4015 | return false; |
| 4016 | } |
| 4017 | // Apply Patterns |
| 4018 | Helper.applyUDivByPow2(*State.MIs[0]); |
| 4019 | return true; |
| 4020 | } |
| 4021 | case GICXXCustomAction_GICombiner124:{ |
| 4022 | // Match Patterns |
| 4023 | if(![&](){return Helper.matchDivByPow2(*State.MIs[0], /*IsSigned=*/true);}()) { |
| 4024 | return false; |
| 4025 | } |
| 4026 | // Apply Patterns |
| 4027 | Helper.applySDivByPow2(*State.MIs[0]); |
| 4028 | return true; |
| 4029 | } |
| 4030 | case GICXXCustomAction_GICombiner125:{ |
| 4031 | SmallVector<MachineInstr *> GIMatchData_matchinfo; |
| 4032 | // Match Patterns |
| 4033 | if(![&](){return Helper.matchRepeatedFPDivisor(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 4034 | return false; |
| 4035 | } |
| 4036 | // Apply Patterns |
| 4037 | Helper.applyRepeatedFPDivisor(GIMatchData_matchinfo); |
| 4038 | return true; |
| 4039 | } |
| 4040 | case GICXXCustomAction_GICombiner126:{ |
| 4041 | std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo; |
| 4042 | // Match Patterns |
| 4043 | if(![&](){return Helper.matchSubAddSameReg(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 4044 | return false; |
| 4045 | } |
| 4046 | // Apply Patterns |
| 4047 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo); |
| 4048 | return true; |
| 4049 | } |
| 4050 | case GICXXCustomAction_GICombiner127:{ |
| 4051 | std::function<void(MachineIRBuilder &)> GIMatchData_info; |
| 4052 | // Match Patterns |
| 4053 | if(![&](){return Helper.matchSimplifySelectToMinMax(*State.MIs[0], GIMatchData_info);}()) { |
| 4054 | return false; |
| 4055 | } |
| 4056 | // Apply Patterns |
| 4057 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_info); |
| 4058 | return true; |
| 4059 | } |
| 4060 | case GICXXCustomAction_GICombiner128:{ |
| 4061 | Register GIMatchData_matchinfo; |
| 4062 | // Match Patterns |
| 4063 | if(![&](){return Helper.matchFsubToFneg(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 4064 | return false; |
| 4065 | } |
| 4066 | // Apply Patterns |
| 4067 | Helper.applyFsubToFneg(*State.MIs[0], GIMatchData_matchinfo); |
| 4068 | return true; |
| 4069 | } |
| 4070 | case GICXXCustomAction_GICombiner129:{ |
| 4071 | // Match Patterns |
| 4072 | if(![&](){return Helper.matchCommuteConstantToRHS(*State.MIs[0]);}()) { |
| 4073 | return false; |
| 4074 | } |
| 4075 | // Apply Patterns |
| 4076 | Helper.applyCommuteBinOpOperands(*State.MIs[0]); |
| 4077 | return true; |
| 4078 | } |
| 4079 | case GICXXCustomAction_GICombiner130:{ |
| 4080 | // Match Patterns |
| 4081 | if(![&](){return Helper.matchCommuteFPConstantToRHS(*State.MIs[0]);}()) { |
| 4082 | return false; |
| 4083 | } |
| 4084 | // Apply Patterns |
| 4085 | Helper.applyCommuteBinOpOperands(*State.MIs[0]); |
| 4086 | return true; |
| 4087 | } |
| 4088 | case GICXXCustomAction_GICombiner131:{ |
| 4089 | std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo; |
| 4090 | // Match Patterns |
| 4091 | if(![&](){return Helper.matchAnd(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 4092 | return false; |
| 4093 | } |
| 4094 | // Apply Patterns |
| 4095 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo); |
| 4096 | return true; |
| 4097 | } |
| 4098 | case GICXXCustomAction_GICombiner132:{ |
| 4099 | std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo; |
| 4100 | // Match Patterns |
| 4101 | if(![&](){return Helper.matchOr(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 4102 | return false; |
| 4103 | } |
| 4104 | // Apply Patterns |
| 4105 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo); |
| 4106 | return true; |
| 4107 | } |
| 4108 | case GICXXCustomAction_GICombiner133:{ |
| 4109 | std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo; |
| 4110 | // Match Patterns |
| 4111 | if(![&](){return Helper.matchSimplifyNegMinMax(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 4112 | return false; |
| 4113 | } |
| 4114 | // Apply Patterns |
| 4115 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo); |
| 4116 | return true; |
| 4117 | } |
| 4118 | case GICXXCustomAction_GICombiner134:{ |
| 4119 | SmallVector<Register> GIMatchData_matchinfo; |
| 4120 | // Match Patterns |
| 4121 | if(![&](){return Helper.matchCombineConcatVectors(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 4122 | return false; |
| 4123 | } |
| 4124 | // Apply Patterns |
| 4125 | Helper.applyCombineConcatVectors(*State.MIs[0], GIMatchData_matchinfo); |
| 4126 | return true; |
| 4127 | } |
| 4128 | case GICXXCustomAction_GICombiner135:{ |
| 4129 | std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo; |
| 4130 | // Match Patterns |
| 4131 | if(![&](){return Helper.matchSextOfTrunc(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) { |
| 4132 | return false; |
| 4133 | } |
| 4134 | // Apply Patterns |
| 4135 | Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo); |
| 4136 | return true; |
| 4137 | } |
| 4138 | case GICXXCustomAction_GICombiner136:{ |
| 4139 | std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo; |
| 4140 | // Match Patterns |
| 4141 | if(![&](){return Helper.matchZextOfTrunc(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) { |
| 4142 | return false; |
| 4143 | } |
| 4144 | // Apply Patterns |
| 4145 | Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo); |
| 4146 | return true; |
| 4147 | } |
| 4148 | case GICXXCustomAction_GICombiner137:{ |
| 4149 | std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo; |
| 4150 | // Match Patterns |
| 4151 | if(![&](){return Helper.matchNonNegZext(State.MIs[0]->getOperand(0), GIMatchData_matchinfo);}()) { |
| 4152 | return false; |
| 4153 | } |
| 4154 | // Apply Patterns |
| 4155 | Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_matchinfo); |
| 4156 | return true; |
| 4157 | } |
| 4158 | case GICXXCustomAction_GICombiner138:{ |
| 4159 | SmallVector<Register> GIMatchData_matchinfo; |
| 4160 | // Match Patterns |
| 4161 | if(![&](){return Helper.matchCombineShuffleConcat(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 4162 | return false; |
| 4163 | } |
| 4164 | // Apply Patterns |
| 4165 | Helper.applyCombineShuffleConcat(*State.MIs[0], GIMatchData_matchinfo); |
| 4166 | return true; |
| 4167 | } |
| 4168 | case GICXXCustomAction_GICombiner139:{ |
| 4169 | std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo; |
| 4170 | // Match Patterns |
| 4171 | if(![&](){return Helper.matchShuffleUndefRHS(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 4172 | return false; |
| 4173 | } |
| 4174 | // Apply Patterns |
| 4175 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo); |
| 4176 | return true; |
| 4177 | } |
| 4178 | case GICXXCustomAction_GICombiner140:{ |
| 4179 | std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo; |
| 4180 | // Match Patterns |
| 4181 | if(![&](){return Helper.matchShuffleDisjointMask(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 4182 | return false; |
| 4183 | } |
| 4184 | // Apply Patterns |
| 4185 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo); |
| 4186 | return true; |
| 4187 | } |
| 4188 | case GICXXCustomAction_GICombiner141:{ |
| 4189 | Register GIMatchData_matchinfo; |
| 4190 | // Match Patterns |
| 4191 | if(![&](){return Helper.matchUseVectorTruncate(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 4192 | return false; |
| 4193 | } |
| 4194 | // Apply Patterns |
| 4195 | Helper.applyUseVectorTruncate(*State.MIs[0], GIMatchData_matchinfo); |
| 4196 | return true; |
| 4197 | } |
| 4198 | case GICXXCustomAction_GICombiner142:{ |
| 4199 | std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo; |
| 4200 | // Match Patterns |
| 4201 | if(![&](){return Helper.matchUnmergeValuesAnyExtBuildVector(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 4202 | return false; |
| 4203 | } |
| 4204 | // Apply Patterns |
| 4205 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo); |
| 4206 | return true; |
| 4207 | } |
| 4208 | case GICXXCustomAction_GICombiner143:{ |
| 4209 | SmallVector<Register> GIMatchData_info; |
| 4210 | // Match Patterns |
| 4211 | if(![&](){return Helper.matchCombineUnmergeMergeToPlainValues(*State.MIs[0], GIMatchData_info);}()) { |
| 4212 | return false; |
| 4213 | } |
| 4214 | // Apply Patterns |
| 4215 | Helper.applyCombineUnmergeMergeToPlainValues(*State.MIs[0], GIMatchData_info); |
| 4216 | return true; |
| 4217 | } |
| 4218 | case GICXXCustomAction_GICombiner144:{ |
| 4219 | Register GIMatchData_src; |
| 4220 | // Match Patterns |
| 4221 | if(![&](){// Check if first source comes from G_UNMERGE_VALUES. |
| 4222 | Register FirstMergeSrc = getRemainingOperands(*State.MIs[0], 1)[0].getReg(); |
| 4223 | MachineInstr *UnmergeMI = MRI.getVRegDef(FirstMergeSrc); |
| 4224 | if (!UnmergeMI || UnmergeMI->getOpcode() != TargetOpcode::G_UNMERGE_VALUES) |
| 4225 | return false; |
| 4226 | |
| 4227 | // Check counts match. |
| 4228 | unsigned NumMergeSrcs = getRemainingOperands(*State.MIs[0], 1).size(); |
| 4229 | unsigned NumUnmergeDefs = UnmergeMI->getNumDefs(); |
| 4230 | if (NumMergeSrcs != NumUnmergeDefs) |
| 4231 | return false; |
| 4232 | |
| 4233 | // Verify all merge sources match unmerge defs in order. |
| 4234 | for (unsigned I = 0; I < NumMergeSrcs; ++I) { |
| 4235 | Register MergeSrc = getRemainingOperands(*State.MIs[0], 1)[I].getReg(); |
| 4236 | Register UnmergeDef = UnmergeMI->getOperand(I).getReg(); |
| 4237 | |
| 4238 | if (MergeSrc != UnmergeDef) |
| 4239 | return false; |
| 4240 | |
| 4241 | if (!MRI.hasOneNonDBGUse(MergeSrc)) |
| 4242 | return false; |
| 4243 | } |
| 4244 | |
| 4245 | // Check size compatibility. |
| 4246 | GIMatchData_src = UnmergeMI->getOperand(NumUnmergeDefs).getReg(); |
| 4247 | LLT SrcTy = MRI.getType(GIMatchData_src); |
| 4248 | LLT DstTy = MRI.getType(State.MIs[0]->getOperand(0).getReg()); |
| 4249 | if (SrcTy.getSizeInBits() != DstTy.getSizeInBits()) |
| 4250 | return false; |
| 4251 | |
| 4252 | // Check bitcast legality. |
| 4253 | if (SrcTy != DstTy) { |
| 4254 | std::array<LLT, 2> Types = {{DstTy, SrcTy}}; |
| 4255 | LegalityQuery Query(TargetOpcode::G_BITCAST, Types); |
| 4256 | if (!Helper.isLegalOrBeforeLegalizer(Query)) |
| 4257 | return false; |
| 4258 | } |
| 4259 | |
| 4260 | return true;}()) { |
| 4261 | return false; |
| 4262 | } |
| 4263 | // Apply Patterns |
| 4264 | LLT SrcTy = MRI.getType(GIMatchData_src); |
| 4265 | LLT DstTy = MRI.getType(State.MIs[0]->getOperand(0).getReg()); |
| 4266 | |
| 4267 | Helper.getBuilder().setInstrAndDebugLoc(*State.MIs[0]); |
| 4268 | |
| 4269 | if (SrcTy == DstTy) { |
| 4270 | Helper.replaceRegWith(MRI, State.MIs[0]->getOperand(0).getReg(), GIMatchData_src); |
| 4271 | } else { |
| 4272 | Helper.getBuilder().buildBitcast(State.MIs[0]->getOperand(0).getReg(), GIMatchData_src); |
| 4273 | } |
| 4274 | |
| 4275 | State.MIs[0]->eraseFromParent(); |
| 4276 | return true; |
| 4277 | } |
| 4278 | case GICXXCustomAction_GICombiner145:{ |
| 4279 | SmallVector<APInt, 8> GIMatchData_info; |
| 4280 | // Match Patterns |
| 4281 | if(![&](){return Helper.matchCombineUnmergeConstant(*State.MIs[0], GIMatchData_info);}()) { |
| 4282 | return false; |
| 4283 | } |
| 4284 | // Apply Patterns |
| 4285 | Helper.applyCombineUnmergeConstant(*State.MIs[0], GIMatchData_info); |
| 4286 | return true; |
| 4287 | } |
| 4288 | case GICXXCustomAction_GICombiner146:{ |
| 4289 | std::function<void(MachineIRBuilder &)> GIMatchData_info; |
| 4290 | // Match Patterns |
| 4291 | if(![&](){return Helper.matchCombineUnmergeUndef(*State.MIs[0], GIMatchData_info);}()) { |
| 4292 | return false; |
| 4293 | } |
| 4294 | // Apply Patterns |
| 4295 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_info); |
| 4296 | return true; |
| 4297 | } |
| 4298 | case GICXXCustomAction_GICombiner147:{ |
| 4299 | // Match Patterns |
| 4300 | if(![&](){return Helper.matchCombineUnmergeWithDeadLanesToTrunc(*State.MIs[0]);}()) { |
| 4301 | return false; |
| 4302 | } |
| 4303 | // Apply Patterns |
| 4304 | Helper.applyCombineUnmergeWithDeadLanesToTrunc(*State.MIs[0]); |
| 4305 | return true; |
| 4306 | } |
| 4307 | case GICXXCustomAction_GICombiner148:{ |
| 4308 | // Match Patterns |
| 4309 | if(![&](){return Helper.matchCombineUnmergeZExtToZExt(*State.MIs[0]);}()) { |
| 4310 | return false; |
| 4311 | } |
| 4312 | // Apply Patterns |
| 4313 | Helper.applyCombineUnmergeZExtToZExt(*State.MIs[0]); |
| 4314 | return true; |
| 4315 | } |
| 4316 | case GICXXCustomAction_GICombiner149:{ |
| 4317 | std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo; |
| 4318 | // Match Patterns |
| 4319 | if(![&](){return Helper.matchMergeXAndUndef(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 4320 | return false; |
| 4321 | } |
| 4322 | // Apply Patterns |
| 4323 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo); |
| 4324 | return true; |
| 4325 | } |
| 4326 | case GICXXCustomAction_GICombiner150:{ |
| 4327 | std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo; |
| 4328 | // Match Patterns |
| 4329 | if(![&](){return Helper.matchMergeXAndZero(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 4330 | return false; |
| 4331 | } |
| 4332 | // Apply Patterns |
| 4333 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo); |
| 4334 | return true; |
| 4335 | } |
| 4336 | case GICXXCustomAction_GICombiner151:{ |
| 4337 | Register GIMatchData_unmergeSrc; |
| 4338 | // Match Patterns |
| 4339 | if(![&](){return Helper.matchCombineBuildUnmerge(*State.MIs[0], MRI, GIMatchData_unmergeSrc);}()) { |
| 4340 | return false; |
| 4341 | } |
| 4342 | // Apply Patterns |
| 4343 | Helper.applyCombineBuildUnmerge(*State.MIs[0], MRI, B, GIMatchData_unmergeSrc); |
| 4344 | return true; |
| 4345 | } |
| 4346 | case GICXXCustomAction_GICombiner152:{ |
| 4347 | std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo; |
| 4348 | // Match Patterns |
| 4349 | if(![&](){return Helper.matchAddOverflow(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 4350 | return false; |
| 4351 | } |
| 4352 | // Apply Patterns |
| 4353 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo); |
| 4354 | return true; |
| 4355 | } |
| 4356 | case GICXXCustomAction_GICombiner153:{ |
| 4357 | std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo; |
| 4358 | // Match Patterns |
| 4359 | if(![&](){return Helper.matchSuboCarryOut(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 4360 | return false; |
| 4361 | } |
| 4362 | // Apply Patterns |
| 4363 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo); |
| 4364 | return true; |
| 4365 | } |
| 4366 | case GICXXCustomAction_GICombiner154:{ |
| 4367 | Register GIMatchData_matchinfo; |
| 4368 | // Match Patterns |
| 4369 | if(![&](){return Helper.matchTruncSSatS(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 4370 | return false; |
| 4371 | } |
| 4372 | // Apply Patterns |
| 4373 | Helper.applyTruncSSatS(*State.MIs[0], GIMatchData_matchinfo); |
| 4374 | return true; |
| 4375 | } |
| 4376 | case GICXXCustomAction_GICombiner155:{ |
| 4377 | Register GIMatchData_matchinfo; |
| 4378 | // Match Patterns |
| 4379 | if(![&](){return Helper.matchTruncSSatU(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 4380 | return false; |
| 4381 | } |
| 4382 | // Apply Patterns |
| 4383 | Helper.applyTruncSSatU(*State.MIs[0], GIMatchData_matchinfo); |
| 4384 | return true; |
| 4385 | } |
| 4386 | case GICXXCustomAction_GICombiner156:{ |
| 4387 | LshrOfTruncOfLshr GIMatchData_matchinfo; |
| 4388 | // Match Patterns |
| 4389 | if(![&](){return Helper.matchLshrOfTruncOfLshr(*State.MIs[0], GIMatchData_matchinfo, *State.MIs[2]);}()) { |
| 4390 | return false; |
| 4391 | } |
| 4392 | // Apply Patterns |
| 4393 | Helper.applyLshrOfTruncOfLshr(*State.MIs[0], GIMatchData_matchinfo); |
| 4394 | return true; |
| 4395 | } |
| 4396 | case GICXXCustomAction_GICombiner157:{ |
| 4397 | std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo; |
| 4398 | // Match Patterns |
| 4399 | if(![&](){return Helper.matchCtls(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 4400 | return false; |
| 4401 | } |
| 4402 | // Apply Patterns |
| 4403 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo); |
| 4404 | return true; |
| 4405 | } |
| 4406 | case GICXXCustomAction_GICombiner158:{ |
| 4407 | // Match Patterns |
| 4408 | if(![&](){return Helper.matchCountZeroToZeroPoison(*State.MIs[0]);}()) { |
| 4409 | return false; |
| 4410 | } |
| 4411 | // Apply Patterns |
| 4412 | Helper.applyCountZeroToZeroPoison(*State.MIs[0]); |
| 4413 | return true; |
| 4414 | } |
| 4415 | case GICXXCustomAction_GICombiner159:{ |
| 4416 | std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo; |
| 4417 | // Match Patterns |
| 4418 | if(![&](){return Helper.matchBinopWithNeg(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 4419 | return false; |
| 4420 | } |
| 4421 | // Apply Patterns |
| 4422 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo); |
| 4423 | return true; |
| 4424 | } |
| 4425 | case GICXXCustomAction_GICombiner160:{ |
| 4426 | SmallVector<Register> GIMatchData_matchinfo; |
| 4427 | // Match Patterns |
| 4428 | if(![&](){return Helper.matchCombineShuffleVector(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 4429 | return false; |
| 4430 | } |
| 4431 | // Apply Patterns |
| 4432 | Helper.applyCombineShuffleVector(*State.MIs[0], GIMatchData_matchinfo); |
| 4433 | return true; |
| 4434 | } |
| 4435 | case GICXXCustomAction_GICombiner161:{ |
| 4436 | Register GIMatchData_matchinfo; |
| 4437 | // Match Patterns |
| 4438 | if(![&](){return matchICmpRedundantTrunc(*State.MIs[0], MRI, Helper.getValueTracking(), GIMatchData_matchinfo);}()) { |
| 4439 | return false; |
| 4440 | } |
| 4441 | // Apply Patterns |
| 4442 | applyICmpRedundantTrunc(*State.MIs[0], MRI, B, Observer, GIMatchData_matchinfo); |
| 4443 | return true; |
| 4444 | } |
| 4445 | case GICXXCustomAction_GICombiner162:{ |
| 4446 | std::pair<uint64_t, uint64_t> GIMatchData_matchinfo; |
| 4447 | // Match Patterns |
| 4448 | if(![&](){return matchFoldGlobalOffset(*State.MIs[0], MRI, GIMatchData_matchinfo);}()) { |
| 4449 | return false; |
| 4450 | } |
| 4451 | // Apply Patterns |
| 4452 | applyFoldGlobalOffset(*State.MIs[0], MRI, B, Observer, GIMatchData_matchinfo); |
| 4453 | return true; |
| 4454 | } |
| 4455 | case GICXXCustomAction_GICombiner163:{ |
| 4456 | std::tuple<Register, Register, bool> GIMatchData_matchinfo; |
| 4457 | // Match Patterns |
| 4458 | if(![&](){return matchExtAddvToDotAddv(*State.MIs[0], MRI, STI, GIMatchData_matchinfo);}()) { |
| 4459 | return false; |
| 4460 | } |
| 4461 | // Apply Patterns |
| 4462 | applyExtAddvToDotAddv(*State.MIs[0], MRI, B, Observer, STI, GIMatchData_matchinfo); |
| 4463 | return true; |
| 4464 | } |
| 4465 | case GICXXCustomAction_GICombiner164:{ |
| 4466 | std::pair<Register, bool> GIMatchData_matchinfo; |
| 4467 | // Match Patterns |
| 4468 | if(![&](){return matchExtUaddvToUaddlv(*State.MIs[0], MRI, GIMatchData_matchinfo);}()) { |
| 4469 | return false; |
| 4470 | } |
| 4471 | // Apply Patterns |
| 4472 | applyExtUaddvToUaddlv(*State.MIs[0], MRI, B, Observer, GIMatchData_matchinfo); |
| 4473 | return true; |
| 4474 | } |
| 4475 | case GICXXCustomAction_GICombiner165:{ |
| 4476 | // Match Patterns |
| 4477 | if(![&](){return matchPushAddSubExt(*State.MIs[0], MRI, State.MIs[0]->getOperand(0).getReg(), State.MIs[1]->getOperand(1).getReg(), State.MIs[2]->getOperand(1).getReg());}()) { |
| 4478 | return false; |
| 4479 | } |
| 4480 | // Apply Patterns |
| 4481 | applyPushAddSubExt(*State.MIs[0], MRI, B, State.MIs[1]->getOpcode() == TargetOpcode::G_SEXT, State.MIs[0]->getOperand(0).getReg(), State.MIs[1]->getOperand(1).getReg(), State.MIs[2]->getOperand(1).getReg()); |
| 4482 | return true; |
| 4483 | } |
| 4484 | case GICXXCustomAction_GICombiner166:{ |
| 4485 | std::pair<Register, Register> GIMatchData_matchinfo; |
| 4486 | // Match Patterns |
| 4487 | if(![&](){return matchSimplifyUADDO(*State.MIs[0], MRI, GIMatchData_matchinfo);}()) { |
| 4488 | return false; |
| 4489 | } |
| 4490 | // Apply Patterns |
| 4491 | applySimplifyUADDO(*State.MIs[0], MRI, B, Observer, Helper, |
| 4492 | GIMatchData_matchinfo); |
| 4493 | return true; |
| 4494 | } |
| 4495 | case GICXXCustomAction_GICombiner167:{ |
| 4496 | MemCpyFamilyLoweringInfo GIMatchData_matchinfo; |
| 4497 | // Match Patterns |
| 4498 | if(![&](){return Helper.matchCombineMemCpyFamily(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 4499 | return false; |
| 4500 | } |
| 4501 | // Apply Patterns |
| 4502 | Helper.applyCombineMemCpyFamily(*State.MIs[0], GIMatchData_matchinfo); |
| 4503 | return true; |
| 4504 | } |
| 4505 | case GICXXCustomAction_GICombiner168:{ |
| 4506 | MemCpyFamilyLoweringInfo GIMatchData_matchinfo; |
| 4507 | // Match Patterns |
| 4508 | if(![&](){return Helper.matchCombineMemCpyFamily(*State.MIs[0], GIMatchData_matchinfo, |
| 4509 | CInfo.EnableOpt ? 0 : 32);}()) { |
| 4510 | return false; |
| 4511 | } |
| 4512 | // Apply Patterns |
| 4513 | Helper.applyCombineMemCpyFamily(*State.MIs[0], GIMatchData_matchinfo); |
| 4514 | return true; |
| 4515 | } |
| 4516 | case GICXXCustomAction_GICombiner169:{ |
| 4517 | // Match Patterns |
| 4518 | if(![&](){return llvm::AArch64GISelUtils::matchEmitBZero(*State.MIs[0], MRI, |
| 4519 | Libcalls, |
| 4520 | CInfo.EnableMinSize);}()) { |
| 4521 | return false; |
| 4522 | } |
| 4523 | // Apply Patterns |
| 4524 | llvm::AArch64GISelUtils::applyEmitBZero(*State.MIs[0], B); |
| 4525 | return true; |
| 4526 | } |
| 4527 | } |
| 4528 | llvm_unreachable("Unknown Apply Action" ); |
| 4529 | } |
| 4530 | #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ |
| 4531 | #define GIMT_Encode2(Val) uint8_t(Val), uint8_t((Val) >> 8) |
| 4532 | #define GIMT_Encode4(Val) uint8_t(Val), uint8_t((Val) >> 8), uint8_t((Val) >> 16), uint8_t((Val) >> 24) |
| 4533 | #define GIMT_Encode8(Val) uint8_t(Val), uint8_t((Val) >> 8), uint8_t((Val) >> 16), uint8_t((Val) >> 24), uint8_t(uint64_t(Val) >> 32), uint8_t(uint64_t(Val) >> 40), uint8_t(uint64_t(Val) >> 48), uint8_t(uint64_t(Val) >> 56) |
| 4534 | #else |
| 4535 | #define GIMT_Encode2(Val) uint8_t((Val) >> 8), uint8_t(Val) |
| 4536 | #define GIMT_Encode4(Val) uint8_t((Val) >> 24), uint8_t((Val) >> 16), uint8_t((Val) >> 8), uint8_t(Val) |
| 4537 | #define GIMT_Encode8(Val) uint8_t(uint64_t(Val) >> 56), uint8_t(uint64_t(Val) >> 48), uint8_t(uint64_t(Val) >> 40), uint8_t(uint64_t(Val) >> 32), uint8_t((Val) >> 24), uint8_t((Val) >> 16), uint8_t((Val) >> 8), uint8_t(Val) |
| 4538 | #endif |
| 4539 | const uint8_t *AArch64PreLegalizerCombinerImpl::getMatchTable() const { |
| 4540 | constexpr static uint8_t MatchTable0[] = { |
| 4541 | /* 0 */ GIM_SwitchOpcode, /*MI*/0, /*[*/GIMT_Encode2(20), GIMT_Encode2(321), /*)*//*default:*//*Label 120*/ GIMT_Encode4(10613), |
| 4542 | /* 10 */ /*TargetOpcode::COPY*//*Label 0*/ GIMT_Encode4(1214), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), |
| 4543 | /* 150 */ /*TargetOpcode::G_ADD*//*Label 1*/ GIMT_Encode4(1226), |
| 4544 | /* 154 */ /*TargetOpcode::G_SUB*//*Label 2*/ GIMT_Encode4(2017), |
| 4545 | /* 158 */ /*TargetOpcode::G_MUL*//*Label 3*/ GIMT_Encode4(3056), |
| 4546 | /* 162 */ /*TargetOpcode::G_SDIV*//*Label 4*/ GIMT_Encode4(3320), |
| 4547 | /* 166 */ /*TargetOpcode::G_UDIV*//*Label 5*/ GIMT_Encode4(3422), |
| 4548 | /* 170 */ /*TargetOpcode::G_SREM*//*Label 6*/ GIMT_Encode4(3535), |
| 4549 | /* 174 */ /*TargetOpcode::G_UREM*//*Label 7*/ GIMT_Encode4(3631), GIMT_Encode4(0), GIMT_Encode4(0), |
| 4550 | /* 186 */ /*TargetOpcode::G_AND*//*Label 8*/ GIMT_Encode4(3738), |
| 4551 | /* 190 */ /*TargetOpcode::G_OR*//*Label 9*/ GIMT_Encode4(4165), |
| 4552 | /* 194 */ /*TargetOpcode::G_XOR*//*Label 10*/ GIMT_Encode4(4980), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), |
| 4553 | /* 226 */ /*TargetOpcode::G_PHI*//*Label 11*/ GIMT_Encode4(5191), GIMT_Encode4(0), |
| 4554 | /* 234 */ /*TargetOpcode::G_GLOBAL_VALUE*//*Label 12*/ GIMT_Encode4(5203), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), |
| 4555 | /* 250 */ /*TargetOpcode::G_UNMERGE_VALUES*//*Label 13*/ GIMT_Encode4(5215), GIMT_Encode4(0), |
| 4556 | /* 258 */ /*TargetOpcode::G_MERGE_VALUES*//*Label 14*/ GIMT_Encode4(5282), |
| 4557 | /* 262 */ /*TargetOpcode::G_BUILD_VECTOR*//*Label 15*/ GIMT_Encode4(5359), |
| 4558 | /* 266 */ /*TargetOpcode::G_BUILD_VECTOR_TRUNC*//*Label 16*/ GIMT_Encode4(5424), |
| 4559 | /* 270 */ /*TargetOpcode::G_CONCAT_VECTORS*//*Label 17*/ GIMT_Encode4(5436), |
| 4560 | /* 274 */ /*TargetOpcode::G_PTRTOINT*//*Label 18*/ GIMT_Encode4(5448), |
| 4561 | /* 278 */ /*TargetOpcode::G_INTTOPTR*//*Label 19*/ GIMT_Encode4(5491), |
| 4562 | /* 282 */ /*TargetOpcode::G_BITCAST*//*Label 20*/ GIMT_Encode4(5524), |
| 4563 | /* 286 */ /*TargetOpcode::G_FREEZE*//*Label 21*/ GIMT_Encode4(5599), GIMT_Encode4(0), GIMT_Encode4(0), |
| 4564 | /* 298 */ /*TargetOpcode::G_INTRINSIC_TRUNC*//*Label 22*/ GIMT_Encode4(5663), |
| 4565 | /* 302 */ /*TargetOpcode::G_INTRINSIC_ROUND*//*Label 23*/ GIMT_Encode4(5685), GIMT_Encode4(0), GIMT_Encode4(0), |
| 4566 | /* 314 */ /*TargetOpcode::G_INTRINSIC_ROUNDEVEN*//*Label 24*/ GIMT_Encode4(5707), GIMT_Encode4(0), GIMT_Encode4(0), |
| 4567 | /* 326 */ /*TargetOpcode::G_LOAD*//*Label 25*/ GIMT_Encode4(5729), |
| 4568 | /* 330 */ /*TargetOpcode::G_SEXTLOAD*//*Label 26*/ GIMT_Encode4(5741), |
| 4569 | /* 334 */ /*TargetOpcode::G_ZEXTLOAD*//*Label 27*/ GIMT_Encode4(5753), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), |
| 4570 | /* 354 */ /*TargetOpcode::G_STORE*//*Label 28*/ GIMT_Encode4(5765), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), |
| 4571 | /* 502 */ /*TargetOpcode::G_ANYEXT*//*Label 29*/ GIMT_Encode4(5777), |
| 4572 | /* 506 */ /*TargetOpcode::G_TRUNC*//*Label 30*/ GIMT_Encode4(5905), GIMT_Encode4(0), GIMT_Encode4(0), |
| 4573 | /* 518 */ /*TargetOpcode::G_TRUNC_USAT_U*//*Label 31*/ GIMT_Encode4(6317), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), |
| 4574 | /* 538 */ /*TargetOpcode::G_SEXT*//*Label 32*/ GIMT_Encode4(6350), |
| 4575 | /* 542 */ /*TargetOpcode::G_SEXT_INREG*//*Label 33*/ GIMT_Encode4(6425), |
| 4576 | /* 546 */ /*TargetOpcode::G_ZEXT*//*Label 34*/ GIMT_Encode4(6491), |
| 4577 | /* 550 */ /*TargetOpcode::G_SHL*//*Label 35*/ GIMT_Encode4(6621), |
| 4578 | /* 554 */ /*TargetOpcode::G_LSHR*//*Label 36*/ GIMT_Encode4(6819), |
| 4579 | /* 558 */ /*TargetOpcode::G_ASHR*//*Label 37*/ GIMT_Encode4(7166), |
| 4580 | /* 562 */ /*TargetOpcode::G_FSHL*//*Label 38*/ GIMT_Encode4(7495), |
| 4581 | /* 566 */ /*TargetOpcode::G_FSHR*//*Label 39*/ GIMT_Encode4(7538), |
| 4582 | /* 570 */ /*TargetOpcode::G_ROTR*//*Label 40*/ GIMT_Encode4(7581), |
| 4583 | /* 574 */ /*TargetOpcode::G_ROTL*//*Label 41*/ GIMT_Encode4(7605), |
| 4584 | /* 578 */ /*TargetOpcode::G_ICMP*//*Label 42*/ GIMT_Encode4(7629), |
| 4585 | /* 582 */ /*TargetOpcode::G_FCMP*//*Label 43*/ GIMT_Encode4(7685), GIMT_Encode4(0), GIMT_Encode4(0), |
| 4586 | /* 594 */ /*TargetOpcode::G_SELECT*//*Label 44*/ GIMT_Encode4(7697), |
| 4587 | /* 598 */ /*TargetOpcode::G_UADDO*//*Label 45*/ GIMT_Encode4(7957), |
| 4588 | /* 602 */ /*TargetOpcode::G_UADDE*//*Label 46*/ GIMT_Encode4(7991), |
| 4589 | /* 606 */ /*TargetOpcode::G_USUBO*//*Label 47*/ GIMT_Encode4(8003), |
| 4590 | /* 610 */ /*TargetOpcode::G_USUBE*//*Label 48*/ GIMT_Encode4(8015), |
| 4591 | /* 614 */ /*TargetOpcode::G_SADDO*//*Label 49*/ GIMT_Encode4(8027), |
| 4592 | /* 618 */ /*TargetOpcode::G_SADDE*//*Label 50*/ GIMT_Encode4(8050), |
| 4593 | /* 622 */ /*TargetOpcode::G_SSUBO*//*Label 51*/ GIMT_Encode4(8062), |
| 4594 | /* 626 */ /*TargetOpcode::G_SSUBE*//*Label 52*/ GIMT_Encode4(8074), |
| 4595 | /* 630 */ /*TargetOpcode::G_UMULO*//*Label 53*/ GIMT_Encode4(8086), |
| 4596 | /* 634 */ /*TargetOpcode::G_SMULO*//*Label 54*/ GIMT_Encode4(8120), |
| 4597 | /* 638 */ /*TargetOpcode::G_UMULH*//*Label 55*/ GIMT_Encode4(8154), |
| 4598 | /* 642 */ /*TargetOpcode::G_SMULH*//*Label 56*/ GIMT_Encode4(8177), |
| 4599 | /* 646 */ /*TargetOpcode::G_UADDSAT*//*Label 57*/ GIMT_Encode4(8189), |
| 4600 | /* 650 */ /*TargetOpcode::G_SADDSAT*//*Label 58*/ GIMT_Encode4(8201), GIMT_Encode4(0), GIMT_Encode4(0), |
| 4601 | /* 662 */ /*TargetOpcode::G_USHLSAT*//*Label 59*/ GIMT_Encode4(8213), |
| 4602 | /* 666 */ /*TargetOpcode::G_SSHLSAT*//*Label 60*/ GIMT_Encode4(8236), |
| 4603 | /* 670 */ /*TargetOpcode::G_SMULFIX*//*Label 61*/ GIMT_Encode4(8259), |
| 4604 | /* 674 */ /*TargetOpcode::G_UMULFIX*//*Label 62*/ GIMT_Encode4(8271), |
| 4605 | /* 678 */ /*TargetOpcode::G_SMULFIXSAT*//*Label 63*/ GIMT_Encode4(8283), |
| 4606 | /* 682 */ /*TargetOpcode::G_UMULFIXSAT*//*Label 64*/ GIMT_Encode4(8295), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), |
| 4607 | /* 702 */ /*TargetOpcode::G_FADD*//*Label 65*/ GIMT_Encode4(8307), |
| 4608 | /* 706 */ /*TargetOpcode::G_FSUB*//*Label 66*/ GIMT_Encode4(8448), |
| 4609 | /* 710 */ /*TargetOpcode::G_FMUL*//*Label 67*/ GIMT_Encode4(8537), |
| 4610 | /* 714 */ /*TargetOpcode::G_FMA*//*Label 68*/ GIMT_Encode4(8625), |
| 4611 | /* 718 */ /*TargetOpcode::G_FMAD*//*Label 69*/ GIMT_Encode4(8648), |
| 4612 | /* 722 */ /*TargetOpcode::G_FDIV*//*Label 70*/ GIMT_Encode4(8671), |
| 4613 | /* 726 */ /*TargetOpcode::G_FREM*//*Label 71*/ GIMT_Encode4(8716), GIMT_Encode4(0), GIMT_Encode4(0), |
| 4614 | /* 738 */ /*TargetOpcode::G_FPOWI*//*Label 72*/ GIMT_Encode4(8739), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), |
| 4615 | /* 758 */ /*TargetOpcode::G_FLOG2*//*Label 73*/ GIMT_Encode4(8761), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), |
| 4616 | /* 774 */ /*TargetOpcode::G_FNEG*//*Label 74*/ GIMT_Encode4(8783), |
| 4617 | /* 778 */ /*TargetOpcode::G_FPEXT*//*Label 75*/ GIMT_Encode4(8834), |
| 4618 | /* 782 */ /*TargetOpcode::G_FPTRUNC*//*Label 76*/ GIMT_Encode4(8856), |
| 4619 | /* 786 */ /*TargetOpcode::G_FPTOSI*//*Label 77*/ GIMT_Encode4(8899), |
| 4620 | /* 790 */ /*TargetOpcode::G_FPTOUI*//*Label 78*/ GIMT_Encode4(8921), |
| 4621 | /* 794 */ /*TargetOpcode::G_SITOFP*//*Label 79*/ GIMT_Encode4(8943), |
| 4622 | /* 798 */ /*TargetOpcode::G_UITOFP*//*Label 80*/ GIMT_Encode4(8970), GIMT_Encode4(0), GIMT_Encode4(0), |
| 4623 | /* 810 */ /*TargetOpcode::G_FABS*//*Label 81*/ GIMT_Encode4(8997), |
| 4624 | /* 814 */ /*TargetOpcode::G_FCOPYSIGN*//*Label 82*/ GIMT_Encode4(9076), GIMT_Encode4(0), |
| 4625 | /* 822 */ /*TargetOpcode::G_FCANONICALIZE*//*Label 83*/ GIMT_Encode4(9088), |
| 4626 | /* 826 */ /*TargetOpcode::G_FMINNUM*//*Label 84*/ GIMT_Encode4(9118), |
| 4627 | /* 830 */ /*TargetOpcode::G_FMAXNUM*//*Label 85*/ GIMT_Encode4(9163), |
| 4628 | /* 834 */ /*TargetOpcode::G_FMINNUM_IEEE*//*Label 86*/ GIMT_Encode4(9208), |
| 4629 | /* 838 */ /*TargetOpcode::G_FMAXNUM_IEEE*//*Label 87*/ GIMT_Encode4(9220), |
| 4630 | /* 842 */ /*TargetOpcode::G_FMINIMUM*//*Label 88*/ GIMT_Encode4(9232), |
| 4631 | /* 846 */ /*TargetOpcode::G_FMAXIMUM*//*Label 89*/ GIMT_Encode4(9277), |
| 4632 | /* 850 */ /*TargetOpcode::G_FMINIMUMNUM*//*Label 90*/ GIMT_Encode4(9322), |
| 4633 | /* 854 */ /*TargetOpcode::G_FMAXIMUMNUM*//*Label 91*/ GIMT_Encode4(9334), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), |
| 4634 | /* 890 */ /*TargetOpcode::G_PTR_ADD*//*Label 92*/ GIMT_Encode4(9346), GIMT_Encode4(0), |
| 4635 | /* 898 */ /*TargetOpcode::G_SMIN*//*Label 93*/ GIMT_Encode4(9436), |
| 4636 | /* 902 */ /*TargetOpcode::G_SMAX*//*Label 94*/ GIMT_Encode4(9470), |
| 4637 | /* 906 */ /*TargetOpcode::G_UMIN*//*Label 95*/ GIMT_Encode4(9504), |
| 4638 | /* 910 */ /*TargetOpcode::G_UMAX*//*Label 96*/ GIMT_Encode4(9538), |
| 4639 | /* 914 */ /*TargetOpcode::G_ABS*//*Label 97*/ GIMT_Encode4(9572), GIMT_Encode4(0), GIMT_Encode4(0), |
| 4640 | /* 926 */ /*TargetOpcode::G_BR*//*Label 98*/ GIMT_Encode4(9595), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), |
| 4641 | /* 946 */ /*TargetOpcode::G_INSERT_VECTOR_ELT*//*Label 99*/ GIMT_Encode4(9607), |
| 4642 | /* 950 */ /*TargetOpcode::G_EXTRACT_VECTOR_ELT*//*Label 100*/ GIMT_Encode4(9737), |
| 4643 | /* 954 */ /*TargetOpcode::G_SHUFFLE_VECTOR*//*Label 101*/ GIMT_Encode4(10114), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), |
| 4644 | /* 970 */ /*TargetOpcode::G_CTTZ*//*Label 102*/ GIMT_Encode4(10191), |
| 4645 | /* 974 */ /*TargetOpcode::G_CTTZ_ZERO_POISON*//*Label 103*/ GIMT_Encode4(10214), |
| 4646 | /* 978 */ /*TargetOpcode::G_CTLZ*//*Label 104*/ GIMT_Encode4(10226), |
| 4647 | /* 982 */ /*TargetOpcode::G_CTLZ_ZERO_POISON*//*Label 105*/ GIMT_Encode4(10260), GIMT_Encode4(0), |
| 4648 | /* 990 */ /*TargetOpcode::G_CTPOP*//*Label 106*/ GIMT_Encode4(10283), |
| 4649 | /* 994 */ /*TargetOpcode::G_BSWAP*//*Label 107*/ GIMT_Encode4(10295), |
| 4650 | /* 998 */ /*TargetOpcode::G_BITREVERSE*//*Label 108*/ GIMT_Encode4(10307), GIMT_Encode4(0), |
| 4651 | /* 1006 */ /*TargetOpcode::G_FCEIL*//*Label 109*/ GIMT_Encode4(10407), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), |
| 4652 | /* 1054 */ /*TargetOpcode::G_FSQRT*//*Label 110*/ GIMT_Encode4(10429), |
| 4653 | /* 1058 */ /*TargetOpcode::G_FFLOOR*//*Label 111*/ GIMT_Encode4(10451), |
| 4654 | /* 1062 */ /*TargetOpcode::G_FRINT*//*Label 112*/ GIMT_Encode4(10473), |
| 4655 | /* 1066 */ /*TargetOpcode::G_FNEARBYINT*//*Label 113*/ GIMT_Encode4(10495), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), |
| 4656 | /* 1142 */ /*TargetOpcode::G_MEMCPY*//*Label 114*/ GIMT_Encode4(10517), |
| 4657 | /* 1146 */ /*TargetOpcode::G_MEMCPY_INLINE*//*Label 115*/ GIMT_Encode4(10529), |
| 4658 | /* 1150 */ /*TargetOpcode::G_MEMMOVE*//*Label 116*/ GIMT_Encode4(10541), |
| 4659 | /* 1154 */ /*TargetOpcode::G_MEMSET*//*Label 117*/ GIMT_Encode4(10553), GIMT_Encode4(0), |
| 4660 | /* 1162 */ /*TargetOpcode::G_MEMSET_INLINE*//*Label 118*/ GIMT_Encode4(10576), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), |
| 4661 | /* 1210 */ /*TargetOpcode::G_VECREDUCE_ADD*//*Label 119*/ GIMT_Encode4(10588), |
| 4662 | /* 1214 */ // Label 0: @1214 |
| 4663 | /* 1214 */ GIM_Try, /*On fail goto*//*Label 121*/ GIMT_Encode4(1225), // Rule ID 19 // |
| 4664 | /* 1219 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule19Enabled), |
| 4665 | /* 1222 */ // MIs[0] d |
| 4666 | /* 1222 */ // No operand predicates |
| 4667 | /* 1222 */ // MIs[0] s |
| 4668 | /* 1222 */ // No operand predicates |
| 4669 | /* 1222 */ // Combiner Rule #19: copy_prop |
| 4670 | /* 1222 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner5), |
| 4671 | /* 1225 */ // Label 121: @1225 |
| 4672 | /* 1225 */ GIM_Reject, |
| 4673 | /* 1226 */ // Label 1: @1226 |
| 4674 | /* 1226 */ GIM_Try, /*On fail goto*//*Label 122*/ GIMT_Encode4(1237), // Rule ID 22 // |
| 4675 | /* 1231 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule22Enabled), |
| 4676 | /* 1234 */ // Combiner Rule #22: add_p2i_to_ptradd; wip_match_opcode 'G_ADD' |
| 4677 | /* 1234 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner8), |
| 4678 | /* 1237 */ // Label 122: @1237 |
| 4679 | /* 1237 */ GIM_Try, /*On fail goto*//*Label 123*/ GIMT_Encode4(1248), // Rule ID 100 // |
| 4680 | /* 1242 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule84Enabled), |
| 4681 | /* 1245 */ // Combiner Rule #84: propagate_undef_any_op; wip_match_opcode 'G_ADD' |
| 4682 | /* 1245 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner39), |
| 4683 | /* 1248 */ // Label 123: @1248 |
| 4684 | /* 1248 */ GIM_Try, /*On fail goto*//*Label 124*/ GIMT_Encode4(1259), // Rule ID 152 // |
| 4685 | /* 1253 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule112Enabled), |
| 4686 | /* 1256 */ // Combiner Rule #112: simplify_add_to_sub; wip_match_opcode 'G_ADD' |
| 4687 | /* 1256 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner53), |
| 4688 | /* 1259 */ // Label 124: @1259 |
| 4689 | /* 1259 */ GIM_Try, /*On fail goto*//*Label 125*/ GIMT_Encode4(1270), // Rule ID 256 // |
| 4690 | /* 1264 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled), |
| 4691 | /* 1267 */ // Combiner Rule #187: constant_fold_binop; wip_match_opcode 'G_ADD' |
| 4692 | /* 1267 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103), |
| 4693 | /* 1270 */ // Label 125: @1270 |
| 4694 | /* 1270 */ GIM_Try, /*On fail goto*//*Label 126*/ GIMT_Encode4(1281), // Rule ID 316 // |
| 4695 | /* 1275 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled), |
| 4696 | /* 1278 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_ADD' |
| 4697 | /* 1278 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119), |
| 4698 | /* 1281 */ // Label 126: @1281 |
| 4699 | /* 1281 */ GIM_Try, /*On fail goto*//*Label 127*/ GIMT_Encode4(1292), // Rule ID 353 // |
| 4700 | /* 1286 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled), |
| 4701 | /* 1289 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_ADD' |
| 4702 | /* 1289 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129), |
| 4703 | /* 1292 */ // Label 127: @1292 |
| 4704 | /* 1292 */ GIM_Try, /*On fail goto*//*Label 128*/ GIMT_Encode4(1380), // Rule ID 423 // |
| 4705 | /* 1297 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule256Enabled), |
| 4706 | /* 1300 */ // MIs[0] dst |
| 4707 | /* 1300 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255, |
| 4708 | /* 1304 */ // MIs[0] __add_shift_match_0.shl_neg |
| 4709 | /* 1304 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 4710 | /* 1308 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SHL), |
| 4711 | /* 1312 */ // MIs[1] __add_shift_match_0.neg_y |
| 4712 | /* 1312 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2] |
| 4713 | /* 1316 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB), |
| 4714 | /* 1320 */ // MIs[2] __add_shift_match_0.zero |
| 4715 | /* 1320 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/2, /*OpIdx*/1, // MIs[3] |
| 4716 | /* 1324 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT), |
| 4717 | /* 1328 */ // MIs[3] Operand 1 |
| 4718 | /* 1328 */ GIM_CheckLiteralInt, /*MI*/3, /*Op*/1, GIMT_Encode8(0), |
| 4719 | /* 1339 */ // MIs[2] y |
| 4720 | /* 1339 */ // No operand predicates |
| 4721 | /* 1339 */ // MIs[1] n |
| 4722 | /* 1339 */ // No operand predicates |
| 4723 | /* 1339 */ // MIs[0] x |
| 4724 | /* 1339 */ // No operand predicates |
| 4725 | /* 1339 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner18), |
| 4726 | /* 1343 */ GIM_CheckIsSafeToFold, /*NumInsns*/3, |
| 4727 | /* 1345 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255, |
| 4728 | /* 1348 */ // Combiner Rule #256: add_shift @ [__add_shift_match_0[1]] |
| 4729 | /* 1348 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SHL), |
| 4730 | /* 1351 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)), |
| 4731 | /* 1356 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/2, // y |
| 4732 | /* 1360 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // n |
| 4733 | /* 1364 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB), |
| 4734 | /* 1368 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst |
| 4735 | /* 1372 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/2, // x |
| 4736 | /* 1376 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0, |
| 4737 | /* 1379 */ GIR_EraseRootFromParent_Done, |
| 4738 | /* 1380 */ // Label 128: @1380 |
| 4739 | /* 1380 */ GIM_Try, /*On fail goto*//*Label 129*/ GIMT_Encode4(1468), // Rule ID 422 // |
| 4740 | /* 1385 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule256Enabled), |
| 4741 | /* 1388 */ // MIs[0] dst |
| 4742 | /* 1388 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255, |
| 4743 | /* 1392 */ // MIs[0] x |
| 4744 | /* 1392 */ // No operand predicates |
| 4745 | /* 1392 */ // MIs[0] __add_shift_match_0.shl_neg |
| 4746 | /* 1392 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1] |
| 4747 | /* 1396 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SHL), |
| 4748 | /* 1400 */ // MIs[1] __add_shift_match_0.neg_y |
| 4749 | /* 1400 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2] |
| 4750 | /* 1404 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB), |
| 4751 | /* 1408 */ // MIs[2] __add_shift_match_0.zero |
| 4752 | /* 1408 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/2, /*OpIdx*/1, // MIs[3] |
| 4753 | /* 1412 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT), |
| 4754 | /* 1416 */ // MIs[3] Operand 1 |
| 4755 | /* 1416 */ GIM_CheckLiteralInt, /*MI*/3, /*Op*/1, GIMT_Encode8(0), |
| 4756 | /* 1427 */ // MIs[2] y |
| 4757 | /* 1427 */ // No operand predicates |
| 4758 | /* 1427 */ // MIs[1] n |
| 4759 | /* 1427 */ // No operand predicates |
| 4760 | /* 1427 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner17), |
| 4761 | /* 1431 */ GIM_CheckIsSafeToFold, /*NumInsns*/3, |
| 4762 | /* 1433 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255, |
| 4763 | /* 1436 */ // Combiner Rule #256: add_shift @ [__add_shift_match_0[0]] |
| 4764 | /* 1436 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SHL), |
| 4765 | /* 1439 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)), |
| 4766 | /* 1444 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/2, // y |
| 4767 | /* 1448 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // n |
| 4768 | /* 1452 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB), |
| 4769 | /* 1456 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst |
| 4770 | /* 1460 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/1, // x |
| 4771 | /* 1464 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0, |
| 4772 | /* 1467 */ GIR_EraseRootFromParent_Done, |
| 4773 | /* 1468 */ // Label 129: @1468 |
| 4774 | /* 1468 */ GIM_Try, /*On fail goto*//*Label 130*/ GIMT_Encode4(1502), // Rule ID 2 // |
| 4775 | /* 1473 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule2Enabled), |
| 4776 | /* 1476 */ // MIs[0] root |
| 4777 | /* 1476 */ // No operand predicates |
| 4778 | /* 1476 */ // MIs[0] sub |
| 4779 | /* 1476 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 4780 | /* 1480 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB), |
| 4781 | /* 1484 */ // MIs[1] Operand 1 |
| 4782 | /* 1484 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/1, 0, |
| 4783 | /* 1488 */ // MIs[1] A |
| 4784 | /* 1488 */ // No operand predicates |
| 4785 | /* 1488 */ // MIs[0] B |
| 4786 | /* 1488 */ // No operand predicates |
| 4787 | /* 1488 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 4788 | /* 1490 */ // Combiner Rule #2: ZeroMinusAPlusB |
| 4789 | /* 1490 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB), |
| 4790 | /* 1493 */ GIR_RootToRootCopy, /*OpIdx*/0, // root |
| 4791 | /* 1495 */ GIR_RootToRootCopy, /*OpIdx*/2, // B |
| 4792 | /* 1497 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // A |
| 4793 | /* 1501 */ GIR_EraseRootFromParent_Done, |
| 4794 | /* 1502 */ // Label 130: @1502 |
| 4795 | /* 1502 */ GIM_Try, /*On fail goto*//*Label 131*/ GIMT_Encode4(1539), // Rule ID 18 // |
| 4796 | /* 1507 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule18Enabled), |
| 4797 | /* 1510 */ // MIs[0] root |
| 4798 | /* 1510 */ // No operand predicates |
| 4799 | /* 1510 */ // MIs[0] sub |
| 4800 | /* 1510 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 4801 | /* 1514 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB), |
| 4802 | /* 1518 */ // MIs[1] A |
| 4803 | /* 1518 */ // No operand predicates |
| 4804 | /* 1518 */ // MIs[1] c1 |
| 4805 | /* 1518 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2] |
| 4806 | /* 1522 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT), |
| 4807 | /* 1526 */ // MIs[2] imm1 |
| 4808 | /* 1526 */ // No operand predicates |
| 4809 | /* 1526 */ // MIs[0] c2 |
| 4810 | /* 1526 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/0, /*OpIdx*/2, // MIs[3] |
| 4811 | /* 1530 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT), |
| 4812 | /* 1534 */ // MIs[3] imm2 |
| 4813 | /* 1534 */ // No operand predicates |
| 4814 | /* 1534 */ GIM_CheckIsSafeToFold, /*NumInsns*/3, |
| 4815 | /* 1536 */ // Combiner Rule #18: AMinusC1PlusC2 |
| 4816 | /* 1536 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner4), |
| 4817 | /* 1539 */ // Label 131: @1539 |
| 4818 | /* 1539 */ GIM_Try, /*On fail goto*//*Label 132*/ GIMT_Encode4(1573), // Rule ID 5 // |
| 4819 | /* 1544 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule5Enabled), |
| 4820 | /* 1547 */ // MIs[0] root |
| 4821 | /* 1547 */ // No operand predicates |
| 4822 | /* 1547 */ // MIs[0] sub |
| 4823 | /* 1547 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 4824 | /* 1551 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB), |
| 4825 | /* 1555 */ // MIs[1] B |
| 4826 | /* 1555 */ // No operand predicates |
| 4827 | /* 1555 */ // MIs[1] A |
| 4828 | /* 1555 */ // No operand predicates |
| 4829 | /* 1555 */ // MIs[0] A |
| 4830 | /* 1555 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/2, |
| 4831 | /* 1560 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1, |
| 4832 | /* 1565 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 4833 | /* 1567 */ // Combiner Rule #5: BMinusAPlusA |
| 4834 | /* 1567 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1, |
| 4835 | /* 1572 */ GIR_EraseRootFromParent_Done, |
| 4836 | /* 1573 */ // Label 132: @1573 |
| 4837 | /* 1573 */ GIM_Try, /*On fail goto*//*Label 133*/ GIMT_Encode4(1607), // Rule ID 140 // |
| 4838 | /* 1578 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule101Enabled), |
| 4839 | /* 1581 */ // MIs[0] dst |
| 4840 | /* 1581 */ // No operand predicates |
| 4841 | /* 1581 */ // MIs[0] __add_sub_reg_match_0.tmp |
| 4842 | /* 1581 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 4843 | /* 1585 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB), |
| 4844 | /* 1589 */ // MIs[1] src |
| 4845 | /* 1589 */ // No operand predicates |
| 4846 | /* 1589 */ // MIs[1] __add_sub_reg_match_0.x |
| 4847 | /* 1589 */ // No operand predicates |
| 4848 | /* 1589 */ // MIs[0] __add_sub_reg_match_0.x |
| 4849 | /* 1589 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/2, |
| 4850 | /* 1594 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1, |
| 4851 | /* 1599 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 4852 | /* 1601 */ // Combiner Rule #101: add_sub_reg @ [__add_sub_reg_match_0[1]] |
| 4853 | /* 1601 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1, |
| 4854 | /* 1606 */ GIR_EraseRootFromParent_Done, |
| 4855 | /* 1607 */ // Label 133: @1607 |
| 4856 | /* 1607 */ GIM_Try, /*On fail goto*//*Label 134*/ GIMT_Encode4(1652), // Rule ID 7 // |
| 4857 | /* 1612 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule7Enabled), |
| 4858 | /* 1615 */ // MIs[0] root |
| 4859 | /* 1615 */ // No operand predicates |
| 4860 | /* 1615 */ // MIs[0] sub1 |
| 4861 | /* 1615 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 4862 | /* 1619 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB), |
| 4863 | /* 1623 */ // MIs[1] A |
| 4864 | /* 1623 */ // No operand predicates |
| 4865 | /* 1623 */ // MIs[1] B |
| 4866 | /* 1623 */ // No operand predicates |
| 4867 | /* 1623 */ // MIs[0] sub2 |
| 4868 | /* 1623 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2] |
| 4869 | /* 1627 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB), |
| 4870 | /* 1631 */ // MIs[2] B |
| 4871 | /* 1631 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/2, |
| 4872 | /* 1636 */ // MIs[2] C |
| 4873 | /* 1636 */ // No operand predicates |
| 4874 | /* 1636 */ GIM_CheckIsSafeToFold, /*NumInsns*/2, |
| 4875 | /* 1638 */ // Combiner Rule #7: AMinusBPlusBMinusC |
| 4876 | /* 1638 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB), |
| 4877 | /* 1641 */ GIR_RootToRootCopy, /*OpIdx*/0, // root |
| 4878 | /* 1643 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // A |
| 4879 | /* 1647 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/2, // C |
| 4880 | /* 1651 */ GIR_EraseRootFromParent_Done, |
| 4881 | /* 1652 */ // Label 134: @1652 |
| 4882 | /* 1652 */ GIM_Try, /*On fail goto*//*Label 135*/ GIMT_Encode4(1697), // Rule ID 6 // |
| 4883 | /* 1657 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule6Enabled), |
| 4884 | /* 1660 */ // MIs[0] root |
| 4885 | /* 1660 */ // No operand predicates |
| 4886 | /* 1660 */ // MIs[0] sub1 |
| 4887 | /* 1660 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 4888 | /* 1664 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB), |
| 4889 | /* 1668 */ // MIs[1] A |
| 4890 | /* 1668 */ // No operand predicates |
| 4891 | /* 1668 */ // MIs[1] B |
| 4892 | /* 1668 */ // No operand predicates |
| 4893 | /* 1668 */ // MIs[0] sub2 |
| 4894 | /* 1668 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2] |
| 4895 | /* 1672 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB), |
| 4896 | /* 1676 */ // MIs[2] C |
| 4897 | /* 1676 */ // No operand predicates |
| 4898 | /* 1676 */ // MIs[2] A |
| 4899 | /* 1676 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/1, |
| 4900 | /* 1681 */ GIM_CheckIsSafeToFold, /*NumInsns*/2, |
| 4901 | /* 1683 */ // Combiner Rule #6: AMinusBPlusCMinusA |
| 4902 | /* 1683 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB), |
| 4903 | /* 1686 */ GIR_RootToRootCopy, /*OpIdx*/0, // root |
| 4904 | /* 1688 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // C |
| 4905 | /* 1692 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // B |
| 4906 | /* 1696 */ GIR_EraseRootFromParent_Done, |
| 4907 | /* 1697 */ // Label 135: @1697 |
| 4908 | /* 1697 */ GIM_Try, /*On fail goto*//*Label 136*/ GIMT_Encode4(1726), // Rule ID 450 // |
| 4909 | /* 1702 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule278Enabled), |
| 4910 | /* 1705 */ // MIs[0] dst |
| 4911 | /* 1705 */ // No operand predicates |
| 4912 | /* 1705 */ // MIs[0] ext1 |
| 4913 | /* 1705 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 4914 | /* 1709 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SEXT), |
| 4915 | /* 1713 */ // MIs[1] src1 |
| 4916 | /* 1713 */ // No operand predicates |
| 4917 | /* 1713 */ // MIs[0] ext2 |
| 4918 | /* 1713 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2] |
| 4919 | /* 1717 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SEXT), |
| 4920 | /* 1721 */ // MIs[2] src2 |
| 4921 | /* 1721 */ // No operand predicates |
| 4922 | /* 1721 */ GIM_CheckIsSafeToFold, /*NumInsns*/2, |
| 4923 | /* 1723 */ // Combiner Rule #278: push_add_through_sext |
| 4924 | /* 1723 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner165), |
| 4925 | /* 1726 */ // Label 136: @1726 |
| 4926 | /* 1726 */ GIM_Try, /*On fail goto*//*Label 137*/ GIMT_Encode4(1761), // Rule ID 45 // |
| 4927 | /* 1731 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule43Enabled), |
| 4928 | /* 1734 */ GIM_MIFlags, /*MI*/0, GIMT_Encode4(MachineInstr::NoSWrap), |
| 4929 | /* 1740 */ // MIs[0] root |
| 4930 | /* 1740 */ // No operand predicates |
| 4931 | /* 1740 */ // MIs[0] left |
| 4932 | /* 1740 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 4933 | /* 1744 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_VSCALE), |
| 4934 | /* 1748 */ // MIs[1] imm1 |
| 4935 | /* 1748 */ // No operand predicates |
| 4936 | /* 1748 */ // MIs[0] right |
| 4937 | /* 1748 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2] |
| 4938 | /* 1752 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_VSCALE), |
| 4939 | /* 1756 */ // MIs[2] imm2 |
| 4940 | /* 1756 */ // No operand predicates |
| 4941 | /* 1756 */ GIM_CheckIsSafeToFold, /*NumInsns*/2, |
| 4942 | /* 1758 */ // Combiner Rule #43: add_of_vscale |
| 4943 | /* 1758 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner15), |
| 4944 | /* 1761 */ // Label 137: @1761 |
| 4945 | /* 1761 */ GIM_Try, /*On fail goto*//*Label 138*/ GIMT_Encode4(1790), // Rule ID 447 // |
| 4946 | /* 1766 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule275Enabled), |
| 4947 | /* 1769 */ // MIs[0] dst |
| 4948 | /* 1769 */ // No operand predicates |
| 4949 | /* 1769 */ // MIs[0] ext1 |
| 4950 | /* 1769 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 4951 | /* 1773 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ZEXT), |
| 4952 | /* 1777 */ // MIs[1] src1 |
| 4953 | /* 1777 */ // No operand predicates |
| 4954 | /* 1777 */ // MIs[0] ext2 |
| 4955 | /* 1777 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2] |
| 4956 | /* 1781 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ZEXT), |
| 4957 | /* 1785 */ // MIs[2] src2 |
| 4958 | /* 1785 */ // No operand predicates |
| 4959 | /* 1785 */ GIM_CheckIsSafeToFold, /*NumInsns*/2, |
| 4960 | /* 1787 */ // Combiner Rule #275: push_add_through_zext |
| 4961 | /* 1787 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner165), |
| 4962 | /* 1790 */ // Label 138: @1790 |
| 4963 | /* 1790 */ GIM_Try, /*On fail goto*//*Label 139*/ GIMT_Encode4(1824), // Rule ID 3 // |
| 4964 | /* 1795 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule3Enabled), |
| 4965 | /* 1798 */ // MIs[0] root |
| 4966 | /* 1798 */ // No operand predicates |
| 4967 | /* 1798 */ // MIs[0] A |
| 4968 | /* 1798 */ // No operand predicates |
| 4969 | /* 1798 */ // MIs[0] sub |
| 4970 | /* 1798 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1] |
| 4971 | /* 1802 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB), |
| 4972 | /* 1806 */ // MIs[1] Operand 1 |
| 4973 | /* 1806 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/1, 0, |
| 4974 | /* 1810 */ // MIs[1] B |
| 4975 | /* 1810 */ // No operand predicates |
| 4976 | /* 1810 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 4977 | /* 1812 */ // Combiner Rule #3: APlusZeroMinusB |
| 4978 | /* 1812 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB), |
| 4979 | /* 1815 */ GIR_RootToRootCopy, /*OpIdx*/0, // root |
| 4980 | /* 1817 */ GIR_RootToRootCopy, /*OpIdx*/1, // A |
| 4981 | /* 1819 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // B |
| 4982 | /* 1823 */ GIR_EraseRootFromParent_Done, |
| 4983 | /* 1824 */ // Label 139: @1824 |
| 4984 | /* 1824 */ GIM_Try, /*On fail goto*//*Label 140*/ GIMT_Encode4(1858), // Rule ID 4 // |
| 4985 | /* 1829 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule4Enabled), |
| 4986 | /* 1832 */ // MIs[0] root |
| 4987 | /* 1832 */ // No operand predicates |
| 4988 | /* 1832 */ // MIs[0] A |
| 4989 | /* 1832 */ // No operand predicates |
| 4990 | /* 1832 */ // MIs[0] sub |
| 4991 | /* 1832 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1] |
| 4992 | /* 1836 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB), |
| 4993 | /* 1840 */ // MIs[1] B |
| 4994 | /* 1840 */ // No operand predicates |
| 4995 | /* 1840 */ // MIs[1] A |
| 4996 | /* 1840 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/1, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1, |
| 4997 | /* 1845 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1, |
| 4998 | /* 1850 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 4999 | /* 1852 */ // Combiner Rule #4: APlusBMinusB |
| 5000 | /* 1852 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1, |
| 5001 | /* 1857 */ GIR_EraseRootFromParent_Done, |
| 5002 | /* 1858 */ // Label 140: @1858 |
| 5003 | /* 1858 */ GIM_Try, /*On fail goto*//*Label 141*/ GIMT_Encode4(1892), // Rule ID 139 // |
| 5004 | /* 1863 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule101Enabled), |
| 5005 | /* 1866 */ // MIs[0] dst |
| 5006 | /* 1866 */ // No operand predicates |
| 5007 | /* 1866 */ // MIs[0] __add_sub_reg_match_0.x |
| 5008 | /* 1866 */ // No operand predicates |
| 5009 | /* 1866 */ // MIs[0] __add_sub_reg_match_0.tmp |
| 5010 | /* 1866 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1] |
| 5011 | /* 1870 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB), |
| 5012 | /* 1874 */ // MIs[1] src |
| 5013 | /* 1874 */ // No operand predicates |
| 5014 | /* 1874 */ // MIs[1] __add_sub_reg_match_0.x |
| 5015 | /* 1874 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/1, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1, |
| 5016 | /* 1879 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1, |
| 5017 | /* 1884 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 5018 | /* 1886 */ // Combiner Rule #101: add_sub_reg @ [__add_sub_reg_match_0[0]] |
| 5019 | /* 1886 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1, |
| 5020 | /* 1891 */ GIR_EraseRootFromParent_Done, |
| 5021 | /* 1892 */ // Label 141: @1892 |
| 5022 | /* 1892 */ GIM_Try, /*On fail goto*//*Label 142*/ GIMT_Encode4(1937), // Rule ID 8 // |
| 5023 | /* 1897 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule8Enabled), |
| 5024 | /* 1900 */ // MIs[0] root |
| 5025 | /* 1900 */ // No operand predicates |
| 5026 | /* 1900 */ // MIs[0] A |
| 5027 | /* 1900 */ // No operand predicates |
| 5028 | /* 1900 */ // MIs[0] sub1 |
| 5029 | /* 1900 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1] |
| 5030 | /* 1904 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB), |
| 5031 | /* 1908 */ // MIs[1] B |
| 5032 | /* 1908 */ // No operand predicates |
| 5033 | /* 1908 */ // MIs[1] add1 |
| 5034 | /* 1908 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2] |
| 5035 | /* 1912 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ADD), |
| 5036 | /* 1916 */ // MIs[2] A |
| 5037 | /* 1916 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/0, /*OtherOpIdx*/1, |
| 5038 | /* 1921 */ // MIs[2] C |
| 5039 | /* 1921 */ // No operand predicates |
| 5040 | /* 1921 */ GIM_CheckIsSafeToFold, /*NumInsns*/2, |
| 5041 | /* 1923 */ // Combiner Rule #8: APlusBMinusAplusC |
| 5042 | /* 1923 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB), |
| 5043 | /* 1926 */ GIR_RootToRootCopy, /*OpIdx*/0, // root |
| 5044 | /* 1928 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // B |
| 5045 | /* 1932 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/2, // C |
| 5046 | /* 1936 */ GIR_EraseRootFromParent_Done, |
| 5047 | /* 1937 */ // Label 142: @1937 |
| 5048 | /* 1937 */ GIM_Try, /*On fail goto*//*Label 143*/ GIMT_Encode4(1982), // Rule ID 10 // |
| 5049 | /* 1942 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule10Enabled), |
| 5050 | /* 1945 */ // MIs[0] root |
| 5051 | /* 1945 */ // No operand predicates |
| 5052 | /* 1945 */ // MIs[0] A |
| 5053 | /* 1945 */ // No operand predicates |
| 5054 | /* 1945 */ // MIs[0] sub1 |
| 5055 | /* 1945 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1] |
| 5056 | /* 1949 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB), |
| 5057 | /* 1953 */ // MIs[1] B |
| 5058 | /* 1953 */ // No operand predicates |
| 5059 | /* 1953 */ // MIs[1] add1 |
| 5060 | /* 1953 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2] |
| 5061 | /* 1957 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ADD), |
| 5062 | /* 1961 */ // MIs[2] C |
| 5063 | /* 1961 */ // No operand predicates |
| 5064 | /* 1961 */ // MIs[2] A |
| 5065 | /* 1961 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1, |
| 5066 | /* 1966 */ GIM_CheckIsSafeToFold, /*NumInsns*/2, |
| 5067 | /* 1968 */ // Combiner Rule #10: APlusBMinusCPlusA |
| 5068 | /* 1968 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB), |
| 5069 | /* 1971 */ GIR_RootToRootCopy, /*OpIdx*/0, // root |
| 5070 | /* 1973 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // B |
| 5071 | /* 1977 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // C |
| 5072 | /* 1981 */ GIR_EraseRootFromParent_Done, |
| 5073 | /* 1982 */ // Label 143: @1982 |
| 5074 | /* 1982 */ GIM_Try, /*On fail goto*//*Label 144*/ GIMT_Encode4(2005), // Rule ID 111 // |
| 5075 | /* 1987 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled), |
| 5076 | /* 1990 */ // MIs[0] dst |
| 5077 | /* 1990 */ // No operand predicates |
| 5078 | /* 1990 */ // MIs[0] lhs |
| 5079 | /* 1990 */ // No operand predicates |
| 5080 | /* 1990 */ // MIs[0] Operand 2 |
| 5081 | /* 1990 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0, |
| 5082 | /* 1994 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 5083 | /* 1999 */ // Combiner Rule #90: right_identity_zero @ [__right_identity_zero_match_0[1]] |
| 5084 | /* 1999 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 5085 | /* 2004 */ GIR_EraseRootFromParent_Done, |
| 5086 | /* 2005 */ // Label 144: @2005 |
| 5087 | /* 2005 */ GIM_Try, /*On fail goto*//*Label 145*/ GIMT_Encode4(2016), // Rule ID 160 // |
| 5088 | /* 2010 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule116Enabled), |
| 5089 | /* 2013 */ // MIs[0] root |
| 5090 | /* 2013 */ // No operand predicates |
| 5091 | /* 2013 */ // MIs[0] src1 |
| 5092 | /* 2013 */ // No operand predicates |
| 5093 | /* 2013 */ // MIs[0] src2 |
| 5094 | /* 2013 */ // No operand predicates |
| 5095 | /* 2013 */ // Combiner Rule #116: reassoc_comm_binops |
| 5096 | /* 2013 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner57), |
| 5097 | /* 2016 */ // Label 145: @2016 |
| 5098 | /* 2016 */ GIM_Reject, |
| 5099 | /* 2017 */ // Label 2: @2017 |
| 5100 | /* 2017 */ GIM_Try, /*On fail goto*//*Label 146*/ GIMT_Encode4(2028), // Rule ID 101 // |
| 5101 | /* 2022 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule84Enabled), |
| 5102 | /* 2025 */ // Combiner Rule #84: propagate_undef_any_op; wip_match_opcode 'G_SUB' |
| 5103 | /* 2025 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner39), |
| 5104 | /* 2028 */ // Label 146: @2028 |
| 5105 | /* 2028 */ GIM_Try, /*On fail goto*//*Label 147*/ GIMT_Encode4(2039), // Rule ID 264 // |
| 5106 | /* 2033 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled), |
| 5107 | /* 2036 */ // Combiner Rule #187: constant_fold_binop; wip_match_opcode 'G_SUB' |
| 5108 | /* 2036 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103), |
| 5109 | /* 2039 */ // Label 147: @2039 |
| 5110 | /* 2039 */ GIM_Try, /*On fail goto*//*Label 148*/ GIMT_Encode4(2050), // Rule ID 317 // |
| 5111 | /* 2044 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled), |
| 5112 | /* 2047 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_SUB' |
| 5113 | /* 2047 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119), |
| 5114 | /* 2050 */ // Label 148: @2050 |
| 5115 | /* 2050 */ GIM_Try, /*On fail goto*//*Label 149*/ GIMT_Encode4(2061), // Rule ID 350 // |
| 5116 | /* 2055 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule213Enabled), |
| 5117 | /* 2058 */ // Combiner Rule #213: sub_add_reg; wip_match_opcode 'G_SUB' |
| 5118 | /* 2058 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner126), |
| 5119 | /* 2061 */ // Label 149: @2061 |
| 5120 | /* 2061 */ GIM_Try, /*On fail goto*//*Label 150*/ GIMT_Encode4(2072), // Rule ID 390 // |
| 5121 | /* 2066 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule226Enabled), |
| 5122 | /* 2069 */ // Combiner Rule #226: simplify_neg_minmax; wip_match_opcode 'G_SUB' |
| 5123 | /* 2069 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner133), |
| 5124 | /* 2072 */ // Label 150: @2072 |
| 5125 | /* 2072 */ GIM_Try, /*On fail goto*//*Label 151*/ GIMT_Encode4(2149), // Rule ID 424 // |
| 5126 | /* 2077 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule257Enabled), |
| 5127 | /* 2080 */ // MIs[0] dst |
| 5128 | /* 2080 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255, |
| 5129 | /* 2084 */ // MIs[0] sub1 |
| 5130 | /* 2084 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 5131 | /* 2088 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB), |
| 5132 | /* 2092 */ // MIs[1] a |
| 5133 | /* 2092 */ // No operand predicates |
| 5134 | /* 2092 */ // MIs[1] b |
| 5135 | /* 2092 */ // No operand predicates |
| 5136 | /* 2092 */ // MIs[0] Operand 2 |
| 5137 | /* 2092 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 1, |
| 5138 | /* 2096 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner1), |
| 5139 | /* 2100 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 5140 | /* 2102 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255, |
| 5141 | /* 2105 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(18446744073709551615u), |
| 5142 | /* 2115 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255, |
| 5143 | /* 2118 */ // Combiner Rule #257: sub_one_from_sub |
| 5144 | /* 2118 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_XOR), |
| 5145 | /* 2121 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)), |
| 5146 | /* 2126 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // b |
| 5147 | /* 2130 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/1, |
| 5148 | /* 2133 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ADD), |
| 5149 | /* 2137 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst |
| 5150 | /* 2141 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0, |
| 5151 | /* 2144 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // a |
| 5152 | /* 2148 */ GIR_EraseRootFromParent_Done, |
| 5153 | /* 2149 */ // Label 151: @2149 |
| 5154 | /* 2149 */ GIM_Try, /*On fail goto*//*Label 152*/ GIMT_Encode4(2243), // Rule ID 430 // |
| 5155 | /* 2154 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule261Enabled), |
| 5156 | /* 2157 */ // MIs[0] root |
| 5157 | /* 2157 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255, |
| 5158 | /* 2161 */ // MIs[0] Operand 1 |
| 5159 | /* 2161 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/1, 0, |
| 5160 | /* 2165 */ // MIs[0] max |
| 5161 | /* 2165 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1] |
| 5162 | /* 2169 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SMAX), |
| 5163 | /* 2173 */ // MIs[1] A |
| 5164 | /* 2173 */ // No operand predicates |
| 5165 | /* 2173 */ // MIs[1] sub |
| 5166 | /* 2173 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2] |
| 5167 | /* 2177 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB), |
| 5168 | /* 2181 */ // MIs[2] Operand 1 |
| 5169 | /* 2181 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/1, 0, |
| 5170 | /* 2185 */ // MIs[2] A |
| 5171 | /* 2185 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/1, |
| 5172 | /* 2190 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner19), |
| 5173 | /* 2194 */ GIM_CheckIsSafeToFold, /*NumInsns*/2, |
| 5174 | /* 2196 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255, |
| 5175 | /* 2199 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(0), |
| 5176 | /* 2209 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255, |
| 5177 | /* 2212 */ // Combiner Rule #261: SubSmaxSub |
| 5178 | /* 2212 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB), |
| 5179 | /* 2215 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)), |
| 5180 | /* 2220 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/1, |
| 5181 | /* 2223 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // A |
| 5182 | /* 2227 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SMIN), |
| 5183 | /* 2231 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // root |
| 5184 | /* 2235 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // A |
| 5185 | /* 2239 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0, |
| 5186 | /* 2242 */ GIR_EraseRootFromParent_Done, |
| 5187 | /* 2243 */ // Label 152: @2243 |
| 5188 | /* 2243 */ GIM_Try, /*On fail goto*//*Label 153*/ GIMT_Encode4(2337), // Rule ID 431 // |
| 5189 | /* 2248 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule262Enabled), |
| 5190 | /* 2251 */ // MIs[0] root |
| 5191 | /* 2251 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255, |
| 5192 | /* 2255 */ // MIs[0] Operand 1 |
| 5193 | /* 2255 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/1, 0, |
| 5194 | /* 2259 */ // MIs[0] max |
| 5195 | /* 2259 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1] |
| 5196 | /* 2263 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_UMAX), |
| 5197 | /* 2267 */ // MIs[1] A |
| 5198 | /* 2267 */ // No operand predicates |
| 5199 | /* 2267 */ // MIs[1] sub |
| 5200 | /* 2267 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2] |
| 5201 | /* 2271 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB), |
| 5202 | /* 2275 */ // MIs[2] Operand 1 |
| 5203 | /* 2275 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/1, 0, |
| 5204 | /* 2279 */ // MIs[2] A |
| 5205 | /* 2279 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/1, |
| 5206 | /* 2284 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner19), |
| 5207 | /* 2288 */ GIM_CheckIsSafeToFold, /*NumInsns*/2, |
| 5208 | /* 2290 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255, |
| 5209 | /* 2293 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(0), |
| 5210 | /* 2303 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255, |
| 5211 | /* 2306 */ // Combiner Rule #262: SubUmaxSub |
| 5212 | /* 2306 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB), |
| 5213 | /* 2309 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)), |
| 5214 | /* 2314 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/1, |
| 5215 | /* 2317 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // A |
| 5216 | /* 2321 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UMIN), |
| 5217 | /* 2325 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // root |
| 5218 | /* 2329 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // A |
| 5219 | /* 2333 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0, |
| 5220 | /* 2336 */ GIR_EraseRootFromParent_Done, |
| 5221 | /* 2337 */ // Label 153: @2337 |
| 5222 | /* 2337 */ GIM_Try, /*On fail goto*//*Label 154*/ GIMT_Encode4(2377), // Rule ID 428 // |
| 5223 | /* 2342 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule259Enabled), |
| 5224 | /* 2345 */ // MIs[0] root |
| 5225 | /* 2345 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255, |
| 5226 | /* 2349 */ // MIs[0] Operand 1 |
| 5227 | /* 2349 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/1, 255, |
| 5228 | /* 2353 */ // MIs[0] op1 |
| 5229 | /* 2353 */ // No operand predicates |
| 5230 | /* 2353 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255, |
| 5231 | /* 2356 */ GIR_BuildConstant, /*TempRegID*/0, /*Val*/GIMT_Encode8(18446744073709551615u), |
| 5232 | /* 2366 */ // Combiner Rule #259: sub_minus_one |
| 5233 | /* 2366 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_XOR), |
| 5234 | /* 2369 */ GIR_RootToRootCopy, /*OpIdx*/0, // root |
| 5235 | /* 2371 */ GIR_RootToRootCopy, /*OpIdx*/2, // op1 |
| 5236 | /* 2373 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/0, |
| 5237 | /* 2376 */ GIR_EraseRootFromParent_Done, |
| 5238 | /* 2377 */ // Label 154: @2377 |
| 5239 | /* 2377 */ GIM_Try, /*On fail goto*//*Label 155*/ GIMT_Encode4(2477), // Rule ID 429 // |
| 5240 | /* 2382 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule260Enabled), |
| 5241 | /* 2385 */ // MIs[0] d |
| 5242 | /* 2385 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255, |
| 5243 | /* 2389 */ // MIs[0] a |
| 5244 | /* 2389 */ // No operand predicates |
| 5245 | /* 2389 */ // MIs[0] mul |
| 5246 | /* 2389 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1] |
| 5247 | /* 2393 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_MUL), |
| 5248 | /* 2397 */ // MIs[1] x |
| 5249 | /* 2397 */ // No operand predicates |
| 5250 | /* 2397 */ // MIs[1] c |
| 5251 | /* 2397 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2] |
| 5252 | /* 2401 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT), |
| 5253 | /* 2405 */ // MIs[2] imm |
| 5254 | /* 2405 */ // No operand predicates |
| 5255 | /* 2405 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner0), |
| 5256 | /* 2409 */ GIM_CheckIsSafeToFold, /*NumInsns*/2, |
| 5257 | /* 2411 */ GIR_MakeTempReg, /*TempRegID*/2, /*TypeID*/255, |
| 5258 | /* 2414 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255, |
| 5259 | /* 2417 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(0), |
| 5260 | /* 2427 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255, |
| 5261 | /* 2430 */ // Combiner Rule #260: sub_of_mul_const |
| 5262 | /* 2430 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB), |
| 5263 | /* 2433 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)), |
| 5264 | /* 2438 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/1, |
| 5265 | /* 2441 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // c |
| 5266 | /* 2445 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_MUL), |
| 5267 | /* 2449 */ GIR_AddTempRegister, /*InsnID*/1, /*TempRegID*/2, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)), |
| 5268 | /* 2454 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // x |
| 5269 | /* 2458 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0, |
| 5270 | /* 2461 */ GIR_BuildMI, /*InsnID*/2, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ADD), |
| 5271 | /* 2465 */ GIR_Copy, /*NewInsnID*/2, /*OldInsnID*/0, /*OpIdx*/0, // d |
| 5272 | /* 2469 */ GIR_Copy, /*NewInsnID*/2, /*OldInsnID*/0, /*OpIdx*/1, // a |
| 5273 | /* 2473 */ GIR_AddSimpleTempRegister, /*InsnID*/2, /*TempRegID*/2, |
| 5274 | /* 2476 */ GIR_EraseRootFromParent_Done, |
| 5275 | /* 2477 */ // Label 155: @2477 |
| 5276 | /* 2477 */ GIM_Try, /*On fail goto*//*Label 156*/ GIMT_Encode4(2538), // Rule ID 9 // |
| 5277 | /* 2482 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule9Enabled), |
| 5278 | /* 2485 */ // MIs[0] root |
| 5279 | /* 2485 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255, |
| 5280 | /* 2489 */ // MIs[0] A |
| 5281 | /* 2489 */ // No operand predicates |
| 5282 | /* 2489 */ // MIs[0] sub1 |
| 5283 | /* 2489 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1] |
| 5284 | /* 2493 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB), |
| 5285 | /* 2497 */ // MIs[1] B |
| 5286 | /* 2497 */ // No operand predicates |
| 5287 | /* 2497 */ // MIs[1] C |
| 5288 | /* 2497 */ // No operand predicates |
| 5289 | /* 2497 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner0), |
| 5290 | /* 2501 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 5291 | /* 2503 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255, |
| 5292 | /* 2506 */ // Combiner Rule #9: AMinusBMinusC |
| 5293 | /* 2506 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB), |
| 5294 | /* 2509 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)), |
| 5295 | /* 2514 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // C |
| 5296 | /* 2518 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // B |
| 5297 | /* 2522 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ADD), |
| 5298 | /* 2526 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // root |
| 5299 | /* 2530 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/1, // A |
| 5300 | /* 2534 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0, |
| 5301 | /* 2537 */ GIR_EraseRootFromParent_Done, |
| 5302 | /* 2538 */ // Label 156: @2538 |
| 5303 | /* 2538 */ GIM_Try, /*On fail goto*//*Label 157*/ GIMT_Encode4(2583), // Rule ID 0 // |
| 5304 | /* 2543 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule0Enabled), |
| 5305 | /* 2546 */ // MIs[0] root |
| 5306 | /* 2546 */ // No operand predicates |
| 5307 | /* 2546 */ // MIs[0] add1 |
| 5308 | /* 2546 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 5309 | /* 2550 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD), |
| 5310 | /* 2554 */ // MIs[1] A |
| 5311 | /* 2554 */ // No operand predicates |
| 5312 | /* 2554 */ // MIs[1] sub1 |
| 5313 | /* 2554 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2] |
| 5314 | /* 2558 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB), |
| 5315 | /* 2562 */ // MIs[2] B |
| 5316 | /* 2562 */ // No operand predicates |
| 5317 | /* 2562 */ // MIs[2] C |
| 5318 | /* 2562 */ // No operand predicates |
| 5319 | /* 2562 */ // MIs[0] B |
| 5320 | /* 2562 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/2, /*OtherOpIdx*/1, |
| 5321 | /* 2567 */ GIM_CheckIsSafeToFold, /*NumInsns*/2, |
| 5322 | /* 2569 */ // Combiner Rule #0: APlusBMinusCMinusB |
| 5323 | /* 2569 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB), |
| 5324 | /* 2572 */ GIR_RootToRootCopy, /*OpIdx*/0, // root |
| 5325 | /* 2574 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // A |
| 5326 | /* 2578 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/2, // C |
| 5327 | /* 2582 */ GIR_EraseRootFromParent_Done, |
| 5328 | /* 2583 */ // Label 157: @2583 |
| 5329 | /* 2583 */ GIM_Try, /*On fail goto*//*Label 158*/ GIMT_Encode4(2620), // Rule ID 14 // |
| 5330 | /* 2588 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule14Enabled), |
| 5331 | /* 2591 */ // MIs[0] root |
| 5332 | /* 2591 */ // No operand predicates |
| 5333 | /* 2591 */ // MIs[0] add |
| 5334 | /* 2591 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 5335 | /* 2595 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD), |
| 5336 | /* 2599 */ // MIs[1] A |
| 5337 | /* 2599 */ // No operand predicates |
| 5338 | /* 2599 */ // MIs[1] c1 |
| 5339 | /* 2599 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2] |
| 5340 | /* 2603 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT), |
| 5341 | /* 2607 */ // MIs[2] imm1 |
| 5342 | /* 2607 */ // No operand predicates |
| 5343 | /* 2607 */ // MIs[0] c2 |
| 5344 | /* 2607 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/0, /*OpIdx*/2, // MIs[3] |
| 5345 | /* 2611 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT), |
| 5346 | /* 2615 */ // MIs[3] imm2 |
| 5347 | /* 2615 */ // No operand predicates |
| 5348 | /* 2615 */ GIM_CheckIsSafeToFold, /*NumInsns*/3, |
| 5349 | /* 2617 */ // Combiner Rule #14: APlusC1MinusC2 |
| 5350 | /* 2617 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner0), |
| 5351 | /* 2620 */ // Label 158: @2620 |
| 5352 | /* 2620 */ GIM_Try, /*On fail goto*//*Label 159*/ GIMT_Encode4(2657), // Rule ID 17 // |
| 5353 | /* 2625 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule17Enabled), |
| 5354 | /* 2628 */ // MIs[0] root |
| 5355 | /* 2628 */ // No operand predicates |
| 5356 | /* 2628 */ // MIs[0] sub1 |
| 5357 | /* 2628 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 5358 | /* 2632 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB), |
| 5359 | /* 2636 */ // MIs[1] c1 |
| 5360 | /* 2636 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2] |
| 5361 | /* 2640 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT), |
| 5362 | /* 2644 */ // MIs[2] imm1 |
| 5363 | /* 2644 */ // No operand predicates |
| 5364 | /* 2644 */ // MIs[1] A |
| 5365 | /* 2644 */ // No operand predicates |
| 5366 | /* 2644 */ // MIs[0] c2 |
| 5367 | /* 2644 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/0, /*OpIdx*/2, // MIs[3] |
| 5368 | /* 2648 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT), |
| 5369 | /* 2652 */ // MIs[3] imm2 |
| 5370 | /* 2652 */ // No operand predicates |
| 5371 | /* 2652 */ GIM_CheckIsSafeToFold, /*NumInsns*/3, |
| 5372 | /* 2654 */ // Combiner Rule #17: C1Minus2MinusC2 |
| 5373 | /* 2654 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner3), |
| 5374 | /* 2657 */ // Label 159: @2657 |
| 5375 | /* 2657 */ GIM_Try, /*On fail goto*//*Label 160*/ GIMT_Encode4(2702), // Rule ID 1 // |
| 5376 | /* 2662 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule1Enabled), |
| 5377 | /* 2665 */ // MIs[0] root |
| 5378 | /* 2665 */ // No operand predicates |
| 5379 | /* 2665 */ // MIs[0] sub2 |
| 5380 | /* 2665 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 5381 | /* 2669 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB), |
| 5382 | /* 2673 */ // MIs[1] A |
| 5383 | /* 2673 */ // No operand predicates |
| 5384 | /* 2673 */ // MIs[1] sub1 |
| 5385 | /* 2673 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2] |
| 5386 | /* 2677 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SUB), |
| 5387 | /* 2681 */ // MIs[2] B |
| 5388 | /* 2681 */ // No operand predicates |
| 5389 | /* 2681 */ // MIs[2] C |
| 5390 | /* 2681 */ // No operand predicates |
| 5391 | /* 2681 */ // MIs[0] C |
| 5392 | /* 2681 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/2, /*OtherOpIdx*/2, |
| 5393 | /* 2686 */ GIM_CheckIsSafeToFold, /*NumInsns*/2, |
| 5394 | /* 2688 */ // Combiner Rule #1: AMinusBMinusCMinusC |
| 5395 | /* 2688 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB), |
| 5396 | /* 2691 */ GIR_RootToRootCopy, /*OpIdx*/0, // root |
| 5397 | /* 2693 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // A |
| 5398 | /* 2697 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // B |
| 5399 | /* 2701 */ GIR_EraseRootFromParent_Done, |
| 5400 | /* 2702 */ // Label 160: @2702 |
| 5401 | /* 2702 */ GIM_Try, /*On fail goto*//*Label 161*/ GIMT_Encode4(2739), // Rule ID 16 // |
| 5402 | /* 2707 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule16Enabled), |
| 5403 | /* 2710 */ // MIs[0] root |
| 5404 | /* 2710 */ // No operand predicates |
| 5405 | /* 2710 */ // MIs[0] sub1 |
| 5406 | /* 2710 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 5407 | /* 2714 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB), |
| 5408 | /* 2718 */ // MIs[1] A |
| 5409 | /* 2718 */ // No operand predicates |
| 5410 | /* 2718 */ // MIs[1] c1 |
| 5411 | /* 2718 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2] |
| 5412 | /* 2722 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT), |
| 5413 | /* 2726 */ // MIs[2] imm1 |
| 5414 | /* 2726 */ // No operand predicates |
| 5415 | /* 2726 */ // MIs[0] c2 |
| 5416 | /* 2726 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/0, /*OpIdx*/2, // MIs[3] |
| 5417 | /* 2730 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT), |
| 5418 | /* 2734 */ // MIs[3] imm2 |
| 5419 | /* 2734 */ // No operand predicates |
| 5420 | /* 2734 */ GIM_CheckIsSafeToFold, /*NumInsns*/3, |
| 5421 | /* 2736 */ // Combiner Rule #16: AMinusC1MinusC2 |
| 5422 | /* 2736 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner2), |
| 5423 | /* 2739 */ // Label 161: @2739 |
| 5424 | /* 2739 */ GIM_Try, /*On fail goto*//*Label 162*/ GIMT_Encode4(2768), // Rule ID 449 // |
| 5425 | /* 2744 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule277Enabled), |
| 5426 | /* 2747 */ // MIs[0] dst |
| 5427 | /* 2747 */ // No operand predicates |
| 5428 | /* 2747 */ // MIs[0] ext1 |
| 5429 | /* 2747 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 5430 | /* 2751 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SEXT), |
| 5431 | /* 2755 */ // MIs[1] src1 |
| 5432 | /* 2755 */ // No operand predicates |
| 5433 | /* 2755 */ // MIs[0] ext2 |
| 5434 | /* 2755 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2] |
| 5435 | /* 2759 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SEXT), |
| 5436 | /* 2763 */ // MIs[2] src2 |
| 5437 | /* 2763 */ // No operand predicates |
| 5438 | /* 2763 */ GIM_CheckIsSafeToFold, /*NumInsns*/2, |
| 5439 | /* 2765 */ // Combiner Rule #277: push_sub_through_sext |
| 5440 | /* 2765 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner165), |
| 5441 | /* 2768 */ // Label 162: @2768 |
| 5442 | /* 2768 */ GIM_Try, /*On fail goto*//*Label 163*/ GIMT_Encode4(2797), // Rule ID 446 // |
| 5443 | /* 2773 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule274Enabled), |
| 5444 | /* 2776 */ // MIs[0] dst |
| 5445 | /* 2776 */ // No operand predicates |
| 5446 | /* 2776 */ // MIs[0] ext1 |
| 5447 | /* 2776 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 5448 | /* 2780 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ZEXT), |
| 5449 | /* 2784 */ // MIs[1] src1 |
| 5450 | /* 2784 */ // No operand predicates |
| 5451 | /* 2784 */ // MIs[0] ext2 |
| 5452 | /* 2784 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2] |
| 5453 | /* 2788 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ZEXT), |
| 5454 | /* 2792 */ // MIs[2] src2 |
| 5455 | /* 2792 */ // No operand predicates |
| 5456 | /* 2792 */ GIM_CheckIsSafeToFold, /*NumInsns*/2, |
| 5457 | /* 2794 */ // Combiner Rule #274: push_sub_through_zext |
| 5458 | /* 2794 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner165), |
| 5459 | /* 2797 */ // Label 163: @2797 |
| 5460 | /* 2797 */ GIM_Try, /*On fail goto*//*Label 164*/ GIMT_Encode4(2840), // Rule ID 170 // |
| 5461 | /* 2802 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule126Enabled), |
| 5462 | /* 2805 */ // MIs[0] dst |
| 5463 | /* 2805 */ // No operand predicates |
| 5464 | /* 2805 */ // MIs[0] Operand 1 |
| 5465 | /* 2805 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/1, 0, |
| 5466 | /* 2809 */ // MIs[0] and |
| 5467 | /* 2809 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1] |
| 5468 | /* 2813 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_AND), |
| 5469 | /* 2817 */ // MIs[1] x |
| 5470 | /* 2817 */ // No operand predicates |
| 5471 | /* 2817 */ // MIs[1] Operand 2 |
| 5472 | /* 2817 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/2, 1, |
| 5473 | /* 2821 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner11), |
| 5474 | /* 2825 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 5475 | /* 2827 */ // Combiner Rule #126: neg_and_one_to_sext_inreg |
| 5476 | /* 2827 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SEXT_INREG), |
| 5477 | /* 2830 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst |
| 5478 | /* 2832 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x |
| 5479 | /* 2836 */ GIR_AddImm8, /*InsnID*/0, /*Imm*/1, |
| 5480 | /* 2839 */ GIR_EraseRootFromParent_Done, |
| 5481 | /* 2840 */ // Label 164: @2840 |
| 5482 | /* 2840 */ GIM_Try, /*On fail goto*//*Label 165*/ GIMT_Encode4(2877), // Rule ID 15 // |
| 5483 | /* 2845 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule15Enabled), |
| 5484 | /* 2848 */ // MIs[0] root |
| 5485 | /* 2848 */ // No operand predicates |
| 5486 | /* 2848 */ // MIs[0] c2 |
| 5487 | /* 2848 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 5488 | /* 2852 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT), |
| 5489 | /* 2856 */ // MIs[1] imm2 |
| 5490 | /* 2856 */ // No operand predicates |
| 5491 | /* 2856 */ // MIs[0] add |
| 5492 | /* 2856 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2] |
| 5493 | /* 2860 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ADD), |
| 5494 | /* 2864 */ // MIs[2] A |
| 5495 | /* 2864 */ // No operand predicates |
| 5496 | /* 2864 */ // MIs[2] c1 |
| 5497 | /* 2864 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/2, /*OpIdx*/2, // MIs[3] |
| 5498 | /* 2868 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT), |
| 5499 | /* 2872 */ // MIs[3] imm1 |
| 5500 | /* 2872 */ // No operand predicates |
| 5501 | /* 2872 */ GIM_CheckIsSafeToFold, /*NumInsns*/3, |
| 5502 | /* 2874 */ // Combiner Rule #15: C2MinusAPlusC1 |
| 5503 | /* 2874 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner1), |
| 5504 | /* 2877 */ // Label 165: @2877 |
| 5505 | /* 2877 */ GIM_Try, /*On fail goto*//*Label 166*/ GIMT_Encode4(2916), // Rule ID 122 // |
| 5506 | /* 2882 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule92Enabled), |
| 5507 | /* 2885 */ // MIs[0] dst |
| 5508 | /* 2885 */ // No operand predicates |
| 5509 | /* 2885 */ // MIs[0] x |
| 5510 | /* 2885 */ GIM_RecordRegType, /*MI*/0, /*Op*/1, /*TempTypeIdx*/255, |
| 5511 | /* 2889 */ // MIs[0] x |
| 5512 | /* 2889 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1, |
| 5513 | /* 2894 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255, |
| 5514 | /* 2897 */ GIR_BuildConstant, /*TempRegID*/0, /*Val*/GIMT_Encode8(0), |
| 5515 | /* 2907 */ // Combiner Rule #92: same_val_zero @ [__same_val_zero_match_0[0]] |
| 5516 | /* 2907 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::COPY), |
| 5517 | /* 2910 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst |
| 5518 | /* 2912 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/0, |
| 5519 | /* 2915 */ GIR_EraseRootFromParent_Done, |
| 5520 | /* 2916 */ // Label 166: @2916 |
| 5521 | /* 2916 */ GIM_Try, /*On fail goto*//*Label 167*/ GIMT_Encode4(2950), // Rule ID 12 // |
| 5522 | /* 2921 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule12Enabled), |
| 5523 | /* 2924 */ // MIs[0] root |
| 5524 | /* 2924 */ // No operand predicates |
| 5525 | /* 2924 */ // MIs[0] A |
| 5526 | /* 2924 */ // No operand predicates |
| 5527 | /* 2924 */ // MIs[0] add |
| 5528 | /* 2924 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1] |
| 5529 | /* 2928 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB), |
| 5530 | /* 2932 */ // MIs[1] A |
| 5531 | /* 2932 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/1, /*OpIdx*/1, /*OtherMI*/0, /*OtherOpIdx*/1, |
| 5532 | /* 2937 */ // MIs[1] B |
| 5533 | /* 2937 */ // No operand predicates |
| 5534 | /* 2937 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/2, |
| 5535 | /* 2942 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 5536 | /* 2944 */ // Combiner Rule #12: AMinusBMinusA |
| 5537 | /* 2944 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/2, |
| 5538 | /* 2949 */ GIR_EraseRootFromParent_Done, |
| 5539 | /* 2950 */ // Label 167: @2950 |
| 5540 | /* 2950 */ GIM_Try, /*On fail goto*//*Label 168*/ GIMT_Encode4(2984), // Rule ID 11 // |
| 5541 | /* 2955 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule11Enabled), |
| 5542 | /* 2958 */ // MIs[0] root |
| 5543 | /* 2958 */ // No operand predicates |
| 5544 | /* 2958 */ // MIs[0] A |
| 5545 | /* 2958 */ // No operand predicates |
| 5546 | /* 2958 */ // MIs[0] sub1 |
| 5547 | /* 2958 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1] |
| 5548 | /* 2962 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB), |
| 5549 | /* 2966 */ // MIs[1] Operand 1 |
| 5550 | /* 2966 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/1, 0, |
| 5551 | /* 2970 */ // MIs[1] B |
| 5552 | /* 2970 */ // No operand predicates |
| 5553 | /* 2970 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 5554 | /* 2972 */ // Combiner Rule #11: AMinusZeroMinusB |
| 5555 | /* 2972 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ADD), |
| 5556 | /* 2975 */ GIR_RootToRootCopy, /*OpIdx*/0, // root |
| 5557 | /* 2977 */ GIR_RootToRootCopy, /*OpIdx*/1, // A |
| 5558 | /* 2979 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // B |
| 5559 | /* 2983 */ GIR_EraseRootFromParent_Done, |
| 5560 | /* 2984 */ // Label 168: @2984 |
| 5561 | /* 2984 */ GIM_Try, /*On fail goto*//*Label 169*/ GIMT_Encode4(3011), // Rule ID 48 // |
| 5562 | /* 2989 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule46Enabled), |
| 5563 | /* 2992 */ GIM_MIFlags, /*MI*/0, GIMT_Encode4(MachineInstr::NoSWrap), |
| 5564 | /* 2998 */ // MIs[0] root |
| 5565 | /* 2998 */ // No operand predicates |
| 5566 | /* 2998 */ // MIs[0] x |
| 5567 | /* 2998 */ // No operand predicates |
| 5568 | /* 2998 */ // MIs[0] right |
| 5569 | /* 2998 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1] |
| 5570 | /* 3002 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_VSCALE), |
| 5571 | /* 3006 */ // MIs[1] imm |
| 5572 | /* 3006 */ // No operand predicates |
| 5573 | /* 3006 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 5574 | /* 3008 */ // Combiner Rule #46: sub_of_vscale |
| 5575 | /* 3008 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner18), |
| 5576 | /* 3011 */ // Label 169: @3011 |
| 5577 | /* 3011 */ GIM_Try, /*On fail goto*//*Label 170*/ GIMT_Encode4(3034), // Rule ID 110 // |
| 5578 | /* 3016 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled), |
| 5579 | /* 3019 */ // MIs[0] dst |
| 5580 | /* 3019 */ // No operand predicates |
| 5581 | /* 3019 */ // MIs[0] lhs |
| 5582 | /* 3019 */ // No operand predicates |
| 5583 | /* 3019 */ // MIs[0] Operand 2 |
| 5584 | /* 3019 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0, |
| 5585 | /* 3023 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 5586 | /* 3028 */ // Combiner Rule #90: right_identity_zero @ [__right_identity_zero_match_0[0]] |
| 5587 | /* 3028 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 5588 | /* 3033 */ GIR_EraseRootFromParent_Done, |
| 5589 | /* 3034 */ // Label 170: @3034 |
| 5590 | /* 3034 */ GIM_Try, /*On fail goto*//*Label 171*/ GIMT_Encode4(3055), // Rule ID 21 // |
| 5591 | /* 3039 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule21Enabled), |
| 5592 | /* 3042 */ // MIs[0] d |
| 5593 | /* 3042 */ // No operand predicates |
| 5594 | /* 3042 */ // MIs[0] op1 |
| 5595 | /* 3042 */ // No operand predicates |
| 5596 | /* 3042 */ // MIs[0] c |
| 5597 | /* 3042 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1] |
| 5598 | /* 3046 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT), |
| 5599 | /* 3050 */ // MIs[1] imm |
| 5600 | /* 3050 */ // No operand predicates |
| 5601 | /* 3050 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 5602 | /* 3052 */ // Combiner Rule #21: sub_to_add |
| 5603 | /* 3052 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner7), |
| 5604 | /* 3055 */ // Label 171: @3055 |
| 5605 | /* 3055 */ GIM_Reject, |
| 5606 | /* 3056 */ // Label 3: @3056 |
| 5607 | /* 3056 */ GIM_Try, /*On fail goto*//*Label 172*/ GIMT_Encode4(3067), // Rule ID 84 // |
| 5608 | /* 3061 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule78Enabled), |
| 5609 | /* 3064 */ // Combiner Rule #78: undef_to_int_zero; wip_match_opcode 'G_MUL' |
| 5610 | /* 3064 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner34), |
| 5611 | /* 3067 */ // Label 172: @3067 |
| 5612 | /* 3067 */ GIM_Try, /*On fail goto*//*Label 173*/ GIMT_Encode4(3078), // Rule ID 261 // |
| 5613 | /* 3072 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled), |
| 5614 | /* 3075 */ // Combiner Rule #187: constant_fold_binop; wip_match_opcode 'G_MUL' |
| 5615 | /* 3075 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103), |
| 5616 | /* 3078 */ // Label 173: @3078 |
| 5617 | /* 3078 */ GIM_Try, /*On fail goto*//*Label 174*/ GIMT_Encode4(3089), // Rule ID 354 // |
| 5618 | /* 3083 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled), |
| 5619 | /* 3086 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_MUL' |
| 5620 | /* 3086 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129), |
| 5621 | /* 3089 */ // Label 174: @3089 |
| 5622 | /* 3089 */ GIM_Try, /*On fail goto*//*Label 175*/ GIMT_Encode4(3129), // Rule ID 23 // |
| 5623 | /* 3094 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule23Enabled), |
| 5624 | /* 3097 */ // MIs[0] dst |
| 5625 | /* 3097 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255, |
| 5626 | /* 3101 */ // MIs[0] x |
| 5627 | /* 3101 */ // No operand predicates |
| 5628 | /* 3101 */ // MIs[0] Operand 2 |
| 5629 | /* 3101 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 255, |
| 5630 | /* 3105 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255, |
| 5631 | /* 3108 */ GIR_BuildConstant, /*TempRegID*/0, /*Val*/GIMT_Encode8(0), |
| 5632 | /* 3118 */ // Combiner Rule #23: mul_by_neg_one |
| 5633 | /* 3118 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB), |
| 5634 | /* 3121 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst |
| 5635 | /* 3123 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/0, |
| 5636 | /* 3126 */ GIR_RootToRootCopy, /*OpIdx*/1, // x |
| 5637 | /* 3128 */ GIR_EraseRootFromParent_Done, |
| 5638 | /* 3129 */ // Label 175: @3129 |
| 5639 | /* 3129 */ GIM_Try, /*On fail goto*//*Label 176*/ GIMT_Encode4(3158), // Rule ID 451 // |
| 5640 | /* 3134 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule279Enabled), |
| 5641 | /* 3137 */ // MIs[0] dst |
| 5642 | /* 3137 */ // No operand predicates |
| 5643 | /* 3137 */ // MIs[0] ext1 |
| 5644 | /* 3137 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 5645 | /* 3141 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SEXT), |
| 5646 | /* 3145 */ // MIs[1] src1 |
| 5647 | /* 3145 */ // No operand predicates |
| 5648 | /* 3145 */ // MIs[0] ext2 |
| 5649 | /* 3145 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2] |
| 5650 | /* 3149 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SEXT), |
| 5651 | /* 3153 */ // MIs[2] src2 |
| 5652 | /* 3153 */ // No operand predicates |
| 5653 | /* 3153 */ GIM_CheckIsSafeToFold, /*NumInsns*/2, |
| 5654 | /* 3155 */ // Combiner Rule #279: push_mul_through_sext |
| 5655 | /* 3155 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner165), |
| 5656 | /* 3158 */ // Label 176: @3158 |
| 5657 | /* 3158 */ GIM_Try, /*On fail goto*//*Label 177*/ GIMT_Encode4(3193), // Rule ID 46 // |
| 5658 | /* 3163 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule44Enabled), |
| 5659 | /* 3166 */ GIM_MIFlags, /*MI*/0, GIMT_Encode4(MachineInstr::NoSWrap), |
| 5660 | /* 3172 */ // MIs[0] root |
| 5661 | /* 3172 */ // No operand predicates |
| 5662 | /* 3172 */ // MIs[0] left |
| 5663 | /* 3172 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 5664 | /* 3176 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_VSCALE), |
| 5665 | /* 3180 */ // MIs[1] scale |
| 5666 | /* 3180 */ // No operand predicates |
| 5667 | /* 3180 */ // MIs[0] x |
| 5668 | /* 3180 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2] |
| 5669 | /* 3184 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT), |
| 5670 | /* 3188 */ // MIs[2] imm1 |
| 5671 | /* 3188 */ // No operand predicates |
| 5672 | /* 3188 */ GIM_CheckIsSafeToFold, /*NumInsns*/2, |
| 5673 | /* 3190 */ // Combiner Rule #44: mul_of_vscale |
| 5674 | /* 3190 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner16), |
| 5675 | /* 3193 */ // Label 177: @3193 |
| 5676 | /* 3193 */ GIM_Try, /*On fail goto*//*Label 178*/ GIMT_Encode4(3222), // Rule ID 448 // |
| 5677 | /* 3198 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule276Enabled), |
| 5678 | /* 3201 */ // MIs[0] dst |
| 5679 | /* 3201 */ // No operand predicates |
| 5680 | /* 3201 */ // MIs[0] ext1 |
| 5681 | /* 3201 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 5682 | /* 3205 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ZEXT), |
| 5683 | /* 3209 */ // MIs[1] src1 |
| 5684 | /* 3209 */ // No operand predicates |
| 5685 | /* 3209 */ // MIs[0] ext2 |
| 5686 | /* 3209 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2] |
| 5687 | /* 3213 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ZEXT), |
| 5688 | /* 3217 */ // MIs[2] src2 |
| 5689 | /* 3217 */ // No operand predicates |
| 5690 | /* 3217 */ GIM_CheckIsSafeToFold, /*NumInsns*/2, |
| 5691 | /* 3219 */ // Combiner Rule #276: push_mul_through_zext |
| 5692 | /* 3219 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner165), |
| 5693 | /* 3222 */ // Label 178: @3222 |
| 5694 | /* 3222 */ GIM_Try, /*On fail goto*//*Label 179*/ GIMT_Encode4(3262), // Rule ID 131 // |
| 5695 | /* 3227 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled), |
| 5696 | /* 3230 */ // MIs[0] dst |
| 5697 | /* 3230 */ // No operand predicates |
| 5698 | /* 3230 */ // MIs[0] zero |
| 5699 | /* 3230 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 5700 | /* 3234 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT), |
| 5701 | /* 3238 */ // MIs[1] Operand 1 |
| 5702 | /* 3238 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0), |
| 5703 | /* 3249 */ // MIs[0] rhs |
| 5704 | /* 3249 */ // No operand predicates |
| 5705 | /* 3249 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 5706 | /* 3254 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 5707 | /* 3256 */ // Combiner Rule #93: binop_left_to_zero @ [__binop_left_to_zero_match_0[7]] |
| 5708 | /* 3256 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 5709 | /* 3261 */ GIR_EraseRootFromParent_Done, |
| 5710 | /* 3262 */ // Label 179: @3262 |
| 5711 | /* 3262 */ GIM_Try, /*On fail goto*//*Label 180*/ GIMT_Encode4(3285), // Rule ID 132 // |
| 5712 | /* 3267 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule94Enabled), |
| 5713 | /* 3270 */ // MIs[0] dst |
| 5714 | /* 3270 */ // No operand predicates |
| 5715 | /* 3270 */ // MIs[0] lhs |
| 5716 | /* 3270 */ // No operand predicates |
| 5717 | /* 3270 */ // MIs[0] zero |
| 5718 | /* 3270 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0, |
| 5719 | /* 3274 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2, |
| 5720 | /* 3279 */ // Combiner Rule #94: binop_right_to_zero |
| 5721 | /* 3279 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2, |
| 5722 | /* 3284 */ GIR_EraseRootFromParent_Done, |
| 5723 | /* 3285 */ // Label 180: @3285 |
| 5724 | /* 3285 */ GIM_Try, /*On fail goto*//*Label 181*/ GIMT_Encode4(3308), // Rule ID 137 // |
| 5725 | /* 3290 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule99Enabled), |
| 5726 | /* 3293 */ // MIs[0] dst |
| 5727 | /* 3293 */ // No operand predicates |
| 5728 | /* 3293 */ // MIs[0] x |
| 5729 | /* 3293 */ // No operand predicates |
| 5730 | /* 3293 */ // MIs[0] Operand 2 |
| 5731 | /* 3293 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 1, |
| 5732 | /* 3297 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 5733 | /* 3302 */ // Combiner Rule #99: right_identity_one_int |
| 5734 | /* 3302 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 5735 | /* 3307 */ GIR_EraseRootFromParent_Done, |
| 5736 | /* 3308 */ // Label 181: @3308 |
| 5737 | /* 3308 */ GIM_Try, /*On fail goto*//*Label 182*/ GIMT_Encode4(3319), // Rule ID 20 // |
| 5738 | /* 3313 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule20Enabled), |
| 5739 | /* 3316 */ // MIs[0] d |
| 5740 | /* 3316 */ // No operand predicates |
| 5741 | /* 3316 */ // MIs[0] op1 |
| 5742 | /* 3316 */ // No operand predicates |
| 5743 | /* 3316 */ // MIs[0] op2 |
| 5744 | /* 3316 */ // No operand predicates |
| 5745 | /* 3316 */ // Combiner Rule #20: mul_to_shl |
| 5746 | /* 3316 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner6), |
| 5747 | /* 3319 */ // Label 182: @3319 |
| 5748 | /* 3319 */ GIM_Reject, |
| 5749 | /* 3320 */ // Label 4: @3320 |
| 5750 | /* 3320 */ GIM_Try, /*On fail goto*//*Label 183*/ GIMT_Encode4(3331), // Rule ID 232 // |
| 5751 | /* 3325 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule172Enabled), |
| 5752 | /* 3328 */ // Combiner Rule #172: div_rem_to_divrem; wip_match_opcode 'G_SDIV' |
| 5753 | /* 3328 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94), |
| 5754 | /* 3331 */ // Label 183: @3331 |
| 5755 | /* 3331 */ GIM_Try, /*On fail goto*//*Label 184*/ GIMT_Encode4(3342), // Rule ID 267 // |
| 5756 | /* 3336 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled), |
| 5757 | /* 3339 */ // Combiner Rule #187: constant_fold_binop; wip_match_opcode 'G_SDIV' |
| 5758 | /* 3339 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103), |
| 5759 | /* 3342 */ // Label 184: @3342 |
| 5760 | /* 3342 */ GIM_Try, /*On fail goto*//*Label 185*/ GIMT_Encode4(3353), // Rule ID 322 // |
| 5761 | /* 3347 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled), |
| 5762 | /* 3350 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_SDIV' |
| 5763 | /* 3350 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119), |
| 5764 | /* 3353 */ // Label 185: @3353 |
| 5765 | /* 3353 */ GIM_Try, /*On fail goto*//*Label 186*/ GIMT_Encode4(3393), // Rule ID 127 // |
| 5766 | /* 3358 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled), |
| 5767 | /* 3361 */ // MIs[0] dst |
| 5768 | /* 3361 */ // No operand predicates |
| 5769 | /* 3361 */ // MIs[0] zero |
| 5770 | /* 3361 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 5771 | /* 3365 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT), |
| 5772 | /* 3369 */ // MIs[1] Operand 1 |
| 5773 | /* 3369 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0), |
| 5774 | /* 3380 */ // MIs[0] rhs |
| 5775 | /* 3380 */ // No operand predicates |
| 5776 | /* 3380 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 5777 | /* 3385 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 5778 | /* 3387 */ // Combiner Rule #93: binop_left_to_zero @ [__binop_left_to_zero_match_0[3]] |
| 5779 | /* 3387 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 5780 | /* 3392 */ GIR_EraseRootFromParent_Done, |
| 5781 | /* 3393 */ // Label 186: @3393 |
| 5782 | /* 3393 */ GIM_Try, /*On fail goto*//*Label 187*/ GIMT_Encode4(3410), // Rule ID 346 // |
| 5783 | /* 3398 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule209Enabled), |
| 5784 | /* 3401 */ GIM_MIFlagsNot, /*MI*/0, GIMT_Encode4(MachineInstr::IsExact), |
| 5785 | /* 3407 */ // MIs[0] dst |
| 5786 | /* 3407 */ // No operand predicates |
| 5787 | /* 3407 */ // MIs[0] x |
| 5788 | /* 3407 */ // No operand predicates |
| 5789 | /* 3407 */ // MIs[0] y |
| 5790 | /* 3407 */ // No operand predicates |
| 5791 | /* 3407 */ // Combiner Rule #209: sdiv_by_pow2 |
| 5792 | /* 3407 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner124), |
| 5793 | /* 3410 */ // Label 187: @3410 |
| 5794 | /* 3410 */ GIM_Try, /*On fail goto*//*Label 188*/ GIMT_Encode4(3421), // Rule ID 348 // |
| 5795 | /* 3415 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule211Enabled), |
| 5796 | /* 3418 */ // MIs[0] dst |
| 5797 | /* 3418 */ // No operand predicates |
| 5798 | /* 3418 */ // MIs[0] x |
| 5799 | /* 3418 */ // No operand predicates |
| 5800 | /* 3418 */ // MIs[0] y |
| 5801 | /* 3418 */ // No operand predicates |
| 5802 | /* 3418 */ // Combiner Rule #211: sdiv_by_const |
| 5803 | /* 3418 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner122), |
| 5804 | /* 3421 */ // Label 188: @3421 |
| 5805 | /* 3421 */ GIM_Reject, |
| 5806 | /* 3422 */ // Label 5: @3422 |
| 5807 | /* 3422 */ GIM_Try, /*On fail goto*//*Label 189*/ GIMT_Encode4(3433), // Rule ID 87 // |
| 5808 | /* 3427 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule80Enabled), |
| 5809 | /* 3430 */ // Combiner Rule #80: binop_left_undef_to_zero; wip_match_opcode 'G_UDIV' |
| 5810 | /* 3430 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner36), |
| 5811 | /* 3433 */ // Label 189: @3433 |
| 5812 | /* 3433 */ GIM_Try, /*On fail goto*//*Label 190*/ GIMT_Encode4(3444), // Rule ID 233 // |
| 5813 | /* 3438 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule172Enabled), |
| 5814 | /* 3441 */ // Combiner Rule #172: div_rem_to_divrem; wip_match_opcode 'G_UDIV' |
| 5815 | /* 3441 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94), |
| 5816 | /* 3444 */ // Label 190: @3444 |
| 5817 | /* 3444 */ GIM_Try, /*On fail goto*//*Label 191*/ GIMT_Encode4(3455), // Rule ID 266 // |
| 5818 | /* 3449 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled), |
| 5819 | /* 3452 */ // Combiner Rule #187: constant_fold_binop; wip_match_opcode 'G_UDIV' |
| 5820 | /* 3452 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103), |
| 5821 | /* 3455 */ // Label 191: @3455 |
| 5822 | /* 3455 */ GIM_Try, /*On fail goto*//*Label 192*/ GIMT_Encode4(3466), // Rule ID 324 // |
| 5823 | /* 3460 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled), |
| 5824 | /* 3463 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_UDIV' |
| 5825 | /* 3463 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119), |
| 5826 | /* 3466 */ // Label 192: @3466 |
| 5827 | /* 3466 */ GIM_Try, /*On fail goto*//*Label 193*/ GIMT_Encode4(3506), // Rule ID 128 // |
| 5828 | /* 3471 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled), |
| 5829 | /* 3474 */ // MIs[0] dst |
| 5830 | /* 3474 */ // No operand predicates |
| 5831 | /* 3474 */ // MIs[0] zero |
| 5832 | /* 3474 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 5833 | /* 3478 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT), |
| 5834 | /* 3482 */ // MIs[1] Operand 1 |
| 5835 | /* 3482 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0), |
| 5836 | /* 3493 */ // MIs[0] rhs |
| 5837 | /* 3493 */ // No operand predicates |
| 5838 | /* 3493 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 5839 | /* 3498 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 5840 | /* 3500 */ // Combiner Rule #93: binop_left_to_zero @ [__binop_left_to_zero_match_0[4]] |
| 5841 | /* 3500 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 5842 | /* 3505 */ GIR_EraseRootFromParent_Done, |
| 5843 | /* 3506 */ // Label 193: @3506 |
| 5844 | /* 3506 */ GIM_Try, /*On fail goto*//*Label 194*/ GIMT_Encode4(3523), // Rule ID 345 // |
| 5845 | /* 3511 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule208Enabled), |
| 5846 | /* 3514 */ GIM_MIFlagsNot, /*MI*/0, GIMT_Encode4(MachineInstr::IsExact), |
| 5847 | /* 3520 */ // MIs[0] dst |
| 5848 | /* 3520 */ // No operand predicates |
| 5849 | /* 3520 */ // MIs[0] x |
| 5850 | /* 3520 */ // No operand predicates |
| 5851 | /* 3520 */ // MIs[0] y |
| 5852 | /* 3520 */ // No operand predicates |
| 5853 | /* 3520 */ // Combiner Rule #208: udiv_by_pow2 |
| 5854 | /* 3520 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner123), |
| 5855 | /* 3523 */ // Label 194: @3523 |
| 5856 | /* 3523 */ GIM_Try, /*On fail goto*//*Label 195*/ GIMT_Encode4(3534), // Rule ID 347 // |
| 5857 | /* 3528 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule210Enabled), |
| 5858 | /* 3531 */ // MIs[0] dst |
| 5859 | /* 3531 */ // No operand predicates |
| 5860 | /* 3531 */ // MIs[0] x |
| 5861 | /* 3531 */ // No operand predicates |
| 5862 | /* 3531 */ // MIs[0] y |
| 5863 | /* 3531 */ // No operand predicates |
| 5864 | /* 3531 */ // Combiner Rule #210: udiv_by_const |
| 5865 | /* 3531 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner121), |
| 5866 | /* 3534 */ // Label 195: @3534 |
| 5867 | /* 3534 */ GIM_Reject, |
| 5868 | /* 3535 */ // Label 6: @3535 |
| 5869 | /* 3535 */ GIM_Try, /*On fail goto*//*Label 196*/ GIMT_Encode4(3546), // Rule ID 234 // |
| 5870 | /* 3540 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule172Enabled), |
| 5871 | /* 3543 */ // Combiner Rule #172: div_rem_to_divrem; wip_match_opcode 'G_SREM' |
| 5872 | /* 3543 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94), |
| 5873 | /* 3546 */ // Label 196: @3546 |
| 5874 | /* 3546 */ GIM_Try, /*On fail goto*//*Label 197*/ GIMT_Encode4(3557), // Rule ID 269 // |
| 5875 | /* 3551 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled), |
| 5876 | /* 3554 */ // Combiner Rule #187: constant_fold_binop; wip_match_opcode 'G_SREM' |
| 5877 | /* 3554 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103), |
| 5878 | /* 3557 */ // Label 197: @3557 |
| 5879 | /* 3557 */ GIM_Try, /*On fail goto*//*Label 198*/ GIMT_Encode4(3568), // Rule ID 323 // |
| 5880 | /* 3562 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled), |
| 5881 | /* 3565 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_SREM' |
| 5882 | /* 3565 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119), |
| 5883 | /* 3568 */ // Label 198: @3568 |
| 5884 | /* 3568 */ GIM_Try, /*On fail goto*//*Label 199*/ GIMT_Encode4(3608), // Rule ID 129 // |
| 5885 | /* 3573 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled), |
| 5886 | /* 3576 */ // MIs[0] dst |
| 5887 | /* 3576 */ // No operand predicates |
| 5888 | /* 3576 */ // MIs[0] zero |
| 5889 | /* 3576 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 5890 | /* 3580 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT), |
| 5891 | /* 3584 */ // MIs[1] Operand 1 |
| 5892 | /* 3584 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0), |
| 5893 | /* 3595 */ // MIs[0] rhs |
| 5894 | /* 3595 */ // No operand predicates |
| 5895 | /* 3595 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 5896 | /* 3600 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 5897 | /* 3602 */ // Combiner Rule #93: binop_left_to_zero @ [__binop_left_to_zero_match_0[5]] |
| 5898 | /* 3602 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 5899 | /* 3607 */ GIR_EraseRootFromParent_Done, |
| 5900 | /* 3608 */ // Label 199: @3608 |
| 5901 | /* 3608 */ GIM_Try, /*On fail goto*//*Label 200*/ GIMT_Encode4(3619), // Rule ID 342 // |
| 5902 | /* 3613 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule205Enabled), |
| 5903 | /* 3616 */ // MIs[0] dst |
| 5904 | /* 3616 */ // No operand predicates |
| 5905 | /* 3616 */ // MIs[0] x |
| 5906 | /* 3616 */ // No operand predicates |
| 5907 | /* 3616 */ // MIs[0] y |
| 5908 | /* 3616 */ // No operand predicates |
| 5909 | /* 3616 */ // Combiner Rule #205: srem_pow2_to_mask |
| 5910 | /* 3616 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner120), |
| 5911 | /* 3619 */ // Label 200: @3619 |
| 5912 | /* 3619 */ GIM_Try, /*On fail goto*//*Label 201*/ GIMT_Encode4(3630), // Rule ID 344 // |
| 5913 | /* 3624 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule207Enabled), |
| 5914 | /* 3627 */ // MIs[0] dst |
| 5915 | /* 3627 */ // No operand predicates |
| 5916 | /* 3627 */ // MIs[0] x |
| 5917 | /* 3627 */ // No operand predicates |
| 5918 | /* 3627 */ // MIs[0] y |
| 5919 | /* 3627 */ // No operand predicates |
| 5920 | /* 3627 */ // Combiner Rule #207: srem_by_const |
| 5921 | /* 3627 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner122), |
| 5922 | /* 3630 */ // Label 201: @3630 |
| 5923 | /* 3630 */ GIM_Reject, |
| 5924 | /* 3631 */ // Label 7: @3631 |
| 5925 | /* 3631 */ GIM_Try, /*On fail goto*//*Label 202*/ GIMT_Encode4(3642), // Rule ID 88 // |
| 5926 | /* 3636 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule80Enabled), |
| 5927 | /* 3639 */ // Combiner Rule #80: binop_left_undef_to_zero; wip_match_opcode 'G_UREM' |
| 5928 | /* 3639 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner36), |
| 5929 | /* 3642 */ // Label 202: @3642 |
| 5930 | /* 3642 */ GIM_Try, /*On fail goto*//*Label 203*/ GIMT_Encode4(3653), // Rule ID 235 // |
| 5931 | /* 3647 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule172Enabled), |
| 5932 | /* 3650 */ // Combiner Rule #172: div_rem_to_divrem; wip_match_opcode 'G_UREM' |
| 5933 | /* 3650 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner94), |
| 5934 | /* 3653 */ // Label 203: @3653 |
| 5935 | /* 3653 */ GIM_Try, /*On fail goto*//*Label 204*/ GIMT_Encode4(3664), // Rule ID 268 // |
| 5936 | /* 3658 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled), |
| 5937 | /* 3661 */ // Combiner Rule #187: constant_fold_binop; wip_match_opcode 'G_UREM' |
| 5938 | /* 3661 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103), |
| 5939 | /* 3664 */ // Label 204: @3664 |
| 5940 | /* 3664 */ GIM_Try, /*On fail goto*//*Label 205*/ GIMT_Encode4(3675), // Rule ID 325 // |
| 5941 | /* 3669 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled), |
| 5942 | /* 3672 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_UREM' |
| 5943 | /* 3672 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119), |
| 5944 | /* 3675 */ // Label 205: @3675 |
| 5945 | /* 3675 */ GIM_Try, /*On fail goto*//*Label 206*/ GIMT_Encode4(3715), // Rule ID 130 // |
| 5946 | /* 3680 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled), |
| 5947 | /* 3683 */ // MIs[0] dst |
| 5948 | /* 3683 */ // No operand predicates |
| 5949 | /* 3683 */ // MIs[0] zero |
| 5950 | /* 3683 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 5951 | /* 3687 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT), |
| 5952 | /* 3691 */ // MIs[1] Operand 1 |
| 5953 | /* 3691 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0), |
| 5954 | /* 3702 */ // MIs[0] rhs |
| 5955 | /* 3702 */ // No operand predicates |
| 5956 | /* 3702 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 5957 | /* 3707 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 5958 | /* 3709 */ // Combiner Rule #93: binop_left_to_zero @ [__binop_left_to_zero_match_0[6]] |
| 5959 | /* 3709 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 5960 | /* 3714 */ GIR_EraseRootFromParent_Done, |
| 5961 | /* 3715 */ // Label 206: @3715 |
| 5962 | /* 3715 */ GIM_Try, /*On fail goto*//*Label 207*/ GIMT_Encode4(3726), // Rule ID 183 // |
| 5963 | /* 3720 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule139Enabled), |
| 5964 | /* 3723 */ // MIs[0] dst |
| 5965 | /* 3723 */ // No operand predicates |
| 5966 | /* 3723 */ // MIs[0] x |
| 5967 | /* 3723 */ // No operand predicates |
| 5968 | /* 3723 */ // MIs[0] y |
| 5969 | /* 3723 */ // No operand predicates |
| 5970 | /* 3723 */ // Combiner Rule #139: urem_pow2_to_mask |
| 5971 | /* 3723 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner74), |
| 5972 | /* 3726 */ // Label 207: @3726 |
| 5973 | /* 3726 */ GIM_Try, /*On fail goto*//*Label 208*/ GIMT_Encode4(3737), // Rule ID 343 // |
| 5974 | /* 3731 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule206Enabled), |
| 5975 | /* 3734 */ // MIs[0] dst |
| 5976 | /* 3734 */ // No operand predicates |
| 5977 | /* 3734 */ // MIs[0] x |
| 5978 | /* 3734 */ // No operand predicates |
| 5979 | /* 3734 */ // MIs[0] y |
| 5980 | /* 3734 */ // No operand predicates |
| 5981 | /* 3734 */ // Combiner Rule #206: urem_by_const |
| 5982 | /* 3734 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner121), |
| 5983 | /* 3737 */ // Label 208: @3737 |
| 5984 | /* 3737 */ GIM_Reject, |
| 5985 | /* 3738 */ // Label 8: @3738 |
| 5986 | /* 3738 */ GIM_Try, /*On fail goto*//*Label 209*/ GIMT_Encode4(3749), // Rule ID 79 // |
| 5987 | /* 3743 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule75Enabled), |
| 5988 | /* 3746 */ // Combiner Rule #75: load_and_mask; wip_match_opcode 'G_AND' |
| 5989 | /* 3746 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner31), |
| 5990 | /* 3749 */ // Label 209: @3749 |
| 5991 | /* 3749 */ GIM_Try, /*On fail goto*//*Label 210*/ GIMT_Encode4(3760), // Rule ID 83 // |
| 5992 | /* 3754 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule78Enabled), |
| 5993 | /* 3757 */ // Combiner Rule #78: undef_to_int_zero; wip_match_opcode 'G_AND' |
| 5994 | /* 3757 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner34), |
| 5995 | /* 3760 */ // Label 210: @3760 |
| 5996 | /* 3760 */ GIM_Try, /*On fail goto*//*Label 211*/ GIMT_Encode4(3771), // Rule ID 153 // |
| 5997 | /* 3765 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule113Enabled), |
| 5998 | /* 3768 */ // Combiner Rule #113: hoist_logic_op_with_same_opcode_hands; wip_match_opcode 'G_AND' |
| 5999 | /* 3768 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner54), |
| 6000 | /* 3771 */ // Label 211: @3771 |
| 6001 | /* 3771 */ GIM_Try, /*On fail goto*//*Label 212*/ GIMT_Encode4(3782), // Rule ID 173 // |
| 6002 | /* 3776 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule129Enabled), |
| 6003 | /* 3779 */ // Combiner Rule #129: narrow_binop_feeding_and; wip_match_opcode 'G_AND' |
| 6004 | /* 3779 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner67), |
| 6005 | /* 3782 */ // Label 212: @3782 |
| 6006 | /* 3782 */ GIM_Try, /*On fail goto*//*Label 213*/ GIMT_Encode4(3793), // Rule ID 180 // |
| 6007 | /* 3787 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule136Enabled), |
| 6008 | /* 3790 */ // Combiner Rule #136: redundant_and; wip_match_opcode 'G_AND' |
| 6009 | /* 3790 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner71), |
| 6010 | /* 3793 */ // Label 213: @3793 |
| 6011 | /* 3793 */ GIM_Try, /*On fail goto*//*Label 214*/ GIMT_Encode4(3804), // Rule ID 205 // |
| 6012 | /* 3798 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule161Enabled), |
| 6013 | /* 3801 */ // Combiner Rule #161: overlapping_and; wip_match_opcode 'G_AND' |
| 6014 | /* 3801 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner83), |
| 6015 | /* 3804 */ // Label 214: @3804 |
| 6016 | /* 3804 */ GIM_Try, /*On fail goto*//*Label 215*/ GIMT_Encode4(3815), // Rule ID 258 // |
| 6017 | /* 3809 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled), |
| 6018 | /* 3812 */ // Combiner Rule #187: constant_fold_binop; wip_match_opcode 'G_AND' |
| 6019 | /* 3812 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103), |
| 6020 | /* 3815 */ // Label 215: @3815 |
| 6021 | /* 3815 */ GIM_Try, /*On fail goto*//*Label 216*/ GIMT_Encode4(3826), // Rule ID 307 // |
| 6022 | /* 3820 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule195Enabled), |
| 6023 | /* 3823 */ // Combiner Rule #195: and_or_disjoint_mask; wip_match_opcode 'G_AND' |
| 6024 | /* 3823 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner110), |
| 6025 | /* 3826 */ // Label 216: @3826 |
| 6026 | /* 3826 */ GIM_Try, /*On fail goto*//*Label 217*/ GIMT_Encode4(3837), // Rule ID 319 // |
| 6027 | /* 3831 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled), |
| 6028 | /* 3834 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_AND' |
| 6029 | /* 3834 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119), |
| 6030 | /* 3837 */ // Label 217: @3837 |
| 6031 | /* 3837 */ GIM_Try, /*On fail goto*//*Label 218*/ GIMT_Encode4(3848), // Rule ID 355 // |
| 6032 | /* 3842 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled), |
| 6033 | /* 3845 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_AND' |
| 6034 | /* 3845 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129), |
| 6035 | /* 3848 */ // Label 218: @3848 |
| 6036 | /* 3848 */ GIM_Try, /*On fail goto*//*Label 219*/ GIMT_Encode4(3859), // Rule ID 382 // |
| 6037 | /* 3853 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule218Enabled), |
| 6038 | /* 3856 */ // Combiner Rule #218: match_ands; wip_match_opcode 'G_AND' |
| 6039 | /* 3856 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner131), |
| 6040 | /* 3859 */ // Label 219: @3859 |
| 6041 | /* 3859 */ GIM_Try, /*On fail goto*//*Label 220*/ GIMT_Encode4(3870), // Rule ID 425 // |
| 6042 | /* 3864 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule258Enabled), |
| 6043 | /* 3867 */ // Combiner Rule #258: binop_with_neg; wip_match_opcode 'G_AND' |
| 6044 | /* 3867 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner159), |
| 6045 | /* 3870 */ // Label 220: @3870 |
| 6046 | /* 3870 */ GIM_Try, /*On fail goto*//*Label 221*/ GIMT_Encode4(3956), // Rule ID 387 // |
| 6047 | /* 3875 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule223Enabled), |
| 6048 | /* 3878 */ // MIs[0] root |
| 6049 | /* 3878 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255, |
| 6050 | /* 3882 */ // MIs[0] or |
| 6051 | /* 3882 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 6052 | /* 3886 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_OR), |
| 6053 | /* 3890 */ // MIs[1] x |
| 6054 | /* 3890 */ // No operand predicates |
| 6055 | /* 3890 */ // MIs[1] y |
| 6056 | /* 3890 */ // No operand predicates |
| 6057 | /* 3890 */ // MIs[0] not |
| 6058 | /* 3890 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2] |
| 6059 | /* 3894 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_XOR), |
| 6060 | /* 3898 */ // MIs[2] y |
| 6061 | /* 3898 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/2, |
| 6062 | /* 3903 */ // MIs[2] Operand 2 |
| 6063 | /* 3903 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/2, 255, |
| 6064 | /* 3907 */ GIM_CheckIsSafeToFold, /*NumInsns*/2, |
| 6065 | /* 3909 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255, |
| 6066 | /* 3912 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(18446744073709551615u), |
| 6067 | /* 3922 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255, |
| 6068 | /* 3925 */ // Combiner Rule #223: and_xor_or_to_xor_and |
| 6069 | /* 3925 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_XOR), |
| 6070 | /* 3928 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)), |
| 6071 | /* 3933 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // y |
| 6072 | /* 3937 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/1, |
| 6073 | /* 3940 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_AND), |
| 6074 | /* 3944 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // root |
| 6075 | /* 3948 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // x |
| 6076 | /* 3952 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0, |
| 6077 | /* 3955 */ GIR_EraseRootFromParent_Done, |
| 6078 | /* 3956 */ // Label 221: @3956 |
| 6079 | /* 3956 */ GIM_Try, /*On fail goto*//*Label 222*/ GIMT_Encode4(4054), // Rule ID 166 // |
| 6080 | /* 3961 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule122Enabled), |
| 6081 | /* 3964 */ // MIs[0] root |
| 6082 | /* 3964 */ // No operand predicates |
| 6083 | /* 3964 */ // MIs[0] d1 |
| 6084 | /* 3964 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 6085 | /* 3968 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ICMP), |
| 6086 | /* 3972 */ // MIs[1] p |
| 6087 | /* 3972 */ // No operand predicates |
| 6088 | /* 3972 */ // MIs[1] s1 |
| 6089 | /* 3972 */ GIM_RecordRegType, /*MI*/1, /*Op*/2, /*TempTypeIdx*/255, |
| 6090 | /* 3976 */ // MIs[1] Operand 3 |
| 6091 | /* 3976 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/3, 0, |
| 6092 | /* 3980 */ // MIs[0] d2 |
| 6093 | /* 3980 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2] |
| 6094 | /* 3984 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ICMP), |
| 6095 | /* 3988 */ // MIs[2] p |
| 6096 | /* 3988 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/1, |
| 6097 | /* 3993 */ // MIs[2] s2 |
| 6098 | /* 3993 */ // No operand predicates |
| 6099 | /* 3993 */ // MIs[2] Operand 3 |
| 6100 | /* 3993 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/3, 0, |
| 6101 | /* 3997 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner9), |
| 6102 | /* 4001 */ GIM_CheckIsSafeToFold, /*NumInsns*/2, |
| 6103 | /* 4003 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255, |
| 6104 | /* 4006 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(0), |
| 6105 | /* 4016 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255, |
| 6106 | /* 4019 */ // Combiner Rule #122: double_icmp_zero_and_combine |
| 6107 | /* 4019 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR), |
| 6108 | /* 4022 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)), |
| 6109 | /* 4027 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // s1 |
| 6110 | /* 4031 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/2, // s2 |
| 6111 | /* 4035 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ICMP), |
| 6112 | /* 4039 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // root |
| 6113 | /* 4043 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // p |
| 6114 | /* 4047 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0, |
| 6115 | /* 4050 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/1, |
| 6116 | /* 4053 */ GIR_EraseRootFromParent_Done, |
| 6117 | /* 4054 */ // Label 222: @4054 |
| 6118 | /* 4054 */ GIM_Try, /*On fail goto*//*Label 223*/ GIMT_Encode4(4091), // Rule ID 251 // |
| 6119 | /* 4059 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule184Enabled), |
| 6120 | /* 4062 */ // MIs[0] root |
| 6121 | /* 4062 */ // No operand predicates |
| 6122 | /* 4062 */ // MIs[0] shift |
| 6123 | /* 4062 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 6124 | /* 4066 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_LSHR), |
| 6125 | /* 4070 */ // MIs[1] x |
| 6126 | /* 4070 */ // No operand predicates |
| 6127 | /* 4070 */ // MIs[1] lsb |
| 6128 | /* 4070 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2] |
| 6129 | /* 4074 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT), |
| 6130 | /* 4078 */ // MIs[2] imm1 |
| 6131 | /* 4078 */ // No operand predicates |
| 6132 | /* 4078 */ // MIs[0] mask |
| 6133 | /* 4078 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/0, /*OpIdx*/2, // MIs[3] |
| 6134 | /* 4082 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT), |
| 6135 | /* 4086 */ // MIs[3] imm2 |
| 6136 | /* 4086 */ // No operand predicates |
| 6137 | /* 4086 */ GIM_CheckIsSafeToFold, /*NumInsns*/3, |
| 6138 | /* 4088 */ // Combiner Rule #184: bitfield_extract_from_and |
| 6139 | /* 4088 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner100), |
| 6140 | /* 4091 */ // Label 223: @4091 |
| 6141 | /* 4091 */ GIM_Try, /*On fail goto*//*Label 224*/ GIMT_Encode4(4140), // Rule ID 386 // |
| 6142 | /* 4096 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule222Enabled), |
| 6143 | /* 4099 */ // MIs[0] root |
| 6144 | /* 4099 */ // No operand predicates |
| 6145 | /* 4099 */ // MIs[0] or |
| 6146 | /* 4099 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 6147 | /* 4103 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_OR), |
| 6148 | /* 4107 */ // MIs[1] x |
| 6149 | /* 4107 */ // No operand predicates |
| 6150 | /* 4107 */ // MIs[1] not |
| 6151 | /* 4107 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2] |
| 6152 | /* 4111 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_XOR), |
| 6153 | /* 4115 */ // MIs[2] y |
| 6154 | /* 4115 */ // No operand predicates |
| 6155 | /* 4115 */ // MIs[2] Operand 2 |
| 6156 | /* 4115 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/2, 255, |
| 6157 | /* 4119 */ // MIs[0] y |
| 6158 | /* 4119 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/2, /*OtherOpIdx*/1, |
| 6159 | /* 4124 */ GIM_CheckIsSafeToFold, /*NumInsns*/2, |
| 6160 | /* 4126 */ // Combiner Rule #222: and_xor_or_to_and |
| 6161 | /* 4126 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_AND), |
| 6162 | /* 4129 */ GIR_RootToRootCopy, /*OpIdx*/0, // root |
| 6163 | /* 4131 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x |
| 6164 | /* 4135 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // y |
| 6165 | /* 4139 */ GIR_EraseRootFromParent_Done, |
| 6166 | /* 4140 */ // Label 224: @4140 |
| 6167 | /* 4140 */ GIM_Try, /*On fail goto*//*Label 225*/ GIMT_Encode4(4164), // Rule ID 120 // |
| 6168 | /* 4145 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule91Enabled), |
| 6169 | /* 4148 */ // MIs[0] dst |
| 6170 | /* 4148 */ // No operand predicates |
| 6171 | /* 4148 */ // MIs[0] src |
| 6172 | /* 4148 */ // No operand predicates |
| 6173 | /* 4148 */ // MIs[0] src |
| 6174 | /* 4148 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1, |
| 6175 | /* 4153 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 6176 | /* 4158 */ // Combiner Rule #91: binop_same_val @ [__binop_same_val_match_0[0]] |
| 6177 | /* 4158 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 6178 | /* 4163 */ GIR_EraseRootFromParent_Done, |
| 6179 | /* 4164 */ // Label 225: @4164 |
| 6180 | /* 4164 */ GIM_Reject, |
| 6181 | /* 4165 */ // Label 9: @4165 |
| 6182 | /* 4165 */ GIM_Try, /*On fail goto*//*Label 226*/ GIMT_Encode4(4176), // Rule ID 85 // |
| 6183 | /* 4170 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule79Enabled), |
| 6184 | /* 4173 */ // Combiner Rule #79: undef_to_negative_one; wip_match_opcode 'G_OR' |
| 6185 | /* 4173 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner35), |
| 6186 | /* 4176 */ // Label 226: @4176 |
| 6187 | /* 4176 */ GIM_Try, /*On fail goto*//*Label 227*/ GIMT_Encode4(4187), // Rule ID 154 // |
| 6188 | /* 4181 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule113Enabled), |
| 6189 | /* 4184 */ // Combiner Rule #113: hoist_logic_op_with_same_opcode_hands; wip_match_opcode 'G_OR' |
| 6190 | /* 4184 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner54), |
| 6191 | /* 4187 */ // Label 227: @4187 |
| 6192 | /* 4187 */ GIM_Try, /*On fail goto*//*Label 228*/ GIMT_Encode4(4198), // Rule ID 182 // |
| 6193 | /* 4192 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule138Enabled), |
| 6194 | /* 4195 */ // Combiner Rule #138: redundant_or; wip_match_opcode 'G_OR' |
| 6195 | /* 4195 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner73), |
| 6196 | /* 4198 */ // Label 228: @4198 |
| 6197 | /* 4198 */ GIM_Try, /*On fail goto*//*Label 229*/ GIMT_Encode4(4209), // Rule ID 231 // |
| 6198 | /* 4203 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule171Enabled), |
| 6199 | /* 4206 */ // Combiner Rule #171: load_or_combine; wip_match_opcode 'G_OR' |
| 6200 | /* 4206 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner93), |
| 6201 | /* 4209 */ // Label 229: @4209 |
| 6202 | /* 4209 */ GIM_Try, /*On fail goto*//*Label 230*/ GIMT_Encode4(4220), // Rule ID 236 // |
| 6203 | /* 4214 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule173Enabled), |
| 6204 | /* 4217 */ // Combiner Rule #173: funnel_shift_from_or_shift; wip_match_opcode 'G_OR' |
| 6205 | /* 4217 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner95), |
| 6206 | /* 4220 */ // Label 230: @4220 |
| 6207 | /* 4220 */ GIM_Try, /*On fail goto*//*Label 231*/ GIMT_Encode4(4231), // Rule ID 262 // |
| 6208 | /* 4225 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled), |
| 6209 | /* 4228 */ // Combiner Rule #187: constant_fold_binop; wip_match_opcode 'G_OR' |
| 6210 | /* 4228 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103), |
| 6211 | /* 4231 */ // Label 231: @4231 |
| 6212 | /* 4231 */ GIM_Try, /*On fail goto*//*Label 232*/ GIMT_Encode4(4242), // Rule ID 320 // |
| 6213 | /* 4236 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled), |
| 6214 | /* 4239 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_OR' |
| 6215 | /* 4239 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119), |
| 6216 | /* 4242 */ // Label 232: @4242 |
| 6217 | /* 4242 */ GIM_Try, /*On fail goto*//*Label 233*/ GIMT_Encode4(4253), // Rule ID 356 // |
| 6218 | /* 4247 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled), |
| 6219 | /* 4250 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_OR' |
| 6220 | /* 4250 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129), |
| 6221 | /* 4253 */ // Label 233: @4253 |
| 6222 | /* 4253 */ GIM_Try, /*On fail goto*//*Label 234*/ GIMT_Encode4(4264), // Rule ID 383 // |
| 6223 | /* 4258 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule219Enabled), |
| 6224 | /* 4261 */ // Combiner Rule #219: match_ors; wip_match_opcode 'G_OR' |
| 6225 | /* 4261 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner132), |
| 6226 | /* 4264 */ // Label 234: @4264 |
| 6227 | /* 4264 */ GIM_Try, /*On fail goto*//*Label 235*/ GIMT_Encode4(4275), // Rule ID 426 // |
| 6228 | /* 4269 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule258Enabled), |
| 6229 | /* 4272 */ // Combiner Rule #258: binop_with_neg; wip_match_opcode 'G_OR' |
| 6230 | /* 4272 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner159), |
| 6231 | /* 4275 */ // Label 235: @4275 |
| 6232 | /* 4275 */ GIM_Try, /*On fail goto*//*Label 236*/ GIMT_Encode4(4361), // Rule ID 385 // |
| 6233 | /* 4280 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule221Enabled), |
| 6234 | /* 4283 */ // MIs[0] root |
| 6235 | /* 4283 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255, |
| 6236 | /* 4287 */ // MIs[0] and |
| 6237 | /* 4287 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 6238 | /* 4291 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_AND), |
| 6239 | /* 4295 */ // MIs[1] x |
| 6240 | /* 4295 */ // No operand predicates |
| 6241 | /* 4295 */ // MIs[1] y |
| 6242 | /* 4295 */ // No operand predicates |
| 6243 | /* 4295 */ // MIs[0] not |
| 6244 | /* 4295 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2] |
| 6245 | /* 4299 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_XOR), |
| 6246 | /* 4303 */ // MIs[2] y |
| 6247 | /* 4303 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/2, |
| 6248 | /* 4308 */ // MIs[2] Operand 2 |
| 6249 | /* 4308 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/2, 255, |
| 6250 | /* 4312 */ GIM_CheckIsSafeToFold, /*NumInsns*/2, |
| 6251 | /* 4314 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255, |
| 6252 | /* 4317 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(18446744073709551615u), |
| 6253 | /* 4327 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255, |
| 6254 | /* 4330 */ // Combiner Rule #221: or_and_xor_to_xor_or |
| 6255 | /* 4330 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_XOR), |
| 6256 | /* 4333 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)), |
| 6257 | /* 4338 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // y |
| 6258 | /* 4342 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/1, |
| 6259 | /* 4345 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR), |
| 6260 | /* 4349 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // root |
| 6261 | /* 4353 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // x |
| 6262 | /* 4357 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0, |
| 6263 | /* 4360 */ GIR_EraseRootFromParent_Done, |
| 6264 | /* 4361 */ // Label 236: @4361 |
| 6265 | /* 4361 */ GIM_Try, /*On fail goto*//*Label 237*/ GIMT_Encode4(4408), // Rule ID 243 // |
| 6266 | /* 4366 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule178Enabled), |
| 6267 | /* 4369 */ // MIs[0] root |
| 6268 | /* 4369 */ // No operand predicates |
| 6269 | /* 4369 */ // MIs[0] out1 |
| 6270 | /* 4369 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 6271 | /* 4373 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FSHL), |
| 6272 | /* 4377 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_left_match_0.x |
| 6273 | /* 4377 */ // No operand predicates |
| 6274 | /* 4377 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_left_match_0.z |
| 6275 | /* 4377 */ // No operand predicates |
| 6276 | /* 4377 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_left_match_0.y |
| 6277 | /* 4377 */ // No operand predicates |
| 6278 | /* 4377 */ // MIs[0] out2 |
| 6279 | /* 4377 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2] |
| 6280 | /* 4381 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SHL), |
| 6281 | /* 4385 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_left_match_0.x |
| 6282 | /* 4385 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/1, |
| 6283 | /* 4390 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_left_match_0.y |
| 6284 | /* 4390 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/3, |
| 6285 | /* 4395 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 6286 | /* 4400 */ GIM_CheckIsSafeToFold, /*NumInsns*/2, |
| 6287 | /* 4402 */ // Combiner Rule #178: funnel_shift_or_shift_to_funnel_shift_left @ [__funnel_shift_or_shift_to_funnel_shift_left_match_0[0]] |
| 6288 | /* 4402 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 6289 | /* 4407 */ GIR_EraseRootFromParent_Done, |
| 6290 | /* 4408 */ // Label 237: @4408 |
| 6291 | /* 4408 */ GIM_Try, /*On fail goto*//*Label 238*/ GIMT_Encode4(4455), // Rule ID 245 // |
| 6292 | /* 4413 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule179Enabled), |
| 6293 | /* 4416 */ // MIs[0] root |
| 6294 | /* 4416 */ // No operand predicates |
| 6295 | /* 4416 */ // MIs[0] out1 |
| 6296 | /* 4416 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 6297 | /* 4420 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FSHR), |
| 6298 | /* 4424 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_right_match_0.z |
| 6299 | /* 4424 */ // No operand predicates |
| 6300 | /* 4424 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_right_match_0.x |
| 6301 | /* 4424 */ // No operand predicates |
| 6302 | /* 4424 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_right_match_0.y |
| 6303 | /* 4424 */ // No operand predicates |
| 6304 | /* 4424 */ // MIs[0] out2 |
| 6305 | /* 4424 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2] |
| 6306 | /* 4428 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_LSHR), |
| 6307 | /* 4432 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_right_match_0.x |
| 6308 | /* 4432 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/2, |
| 6309 | /* 4437 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_right_match_0.y |
| 6310 | /* 4437 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/3, |
| 6311 | /* 4442 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 6312 | /* 4447 */ GIM_CheckIsSafeToFold, /*NumInsns*/2, |
| 6313 | /* 4449 */ // Combiner Rule #179: funnel_shift_or_shift_to_funnel_shift_right @ [__funnel_shift_or_shift_to_funnel_shift_right_match_0[0]] |
| 6314 | /* 4449 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 6315 | /* 4454 */ GIR_EraseRootFromParent_Done, |
| 6316 | /* 4455 */ // Label 238: @4455 |
| 6317 | /* 4455 */ GIM_Try, /*On fail goto*//*Label 239*/ GIMT_Encode4(4553), // Rule ID 167 // |
| 6318 | /* 4460 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule123Enabled), |
| 6319 | /* 4463 */ // MIs[0] root |
| 6320 | /* 4463 */ // No operand predicates |
| 6321 | /* 4463 */ // MIs[0] d1 |
| 6322 | /* 4463 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 6323 | /* 4467 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ICMP), |
| 6324 | /* 4471 */ // MIs[1] p |
| 6325 | /* 4471 */ // No operand predicates |
| 6326 | /* 4471 */ // MIs[1] s1 |
| 6327 | /* 4471 */ GIM_RecordRegType, /*MI*/1, /*Op*/2, /*TempTypeIdx*/255, |
| 6328 | /* 4475 */ // MIs[1] Operand 3 |
| 6329 | /* 4475 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/3, 0, |
| 6330 | /* 4479 */ // MIs[0] d2 |
| 6331 | /* 4479 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2] |
| 6332 | /* 4483 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ICMP), |
| 6333 | /* 4487 */ // MIs[2] p |
| 6334 | /* 4487 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/1, |
| 6335 | /* 4492 */ // MIs[2] s2 |
| 6336 | /* 4492 */ // No operand predicates |
| 6337 | /* 4492 */ // MIs[2] Operand 3 |
| 6338 | /* 4492 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/3, 0, |
| 6339 | /* 4496 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner10), |
| 6340 | /* 4500 */ GIM_CheckIsSafeToFold, /*NumInsns*/2, |
| 6341 | /* 4502 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255, |
| 6342 | /* 4505 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(0), |
| 6343 | /* 4515 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255, |
| 6344 | /* 4518 */ // Combiner Rule #123: double_icmp_zero_or_combine |
| 6345 | /* 4518 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR), |
| 6346 | /* 4521 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)), |
| 6347 | /* 4526 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // s1 |
| 6348 | /* 4530 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/2, // s2 |
| 6349 | /* 4534 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ICMP), |
| 6350 | /* 4538 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // root |
| 6351 | /* 4542 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/1, /*OpIdx*/1, // p |
| 6352 | /* 4546 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0, |
| 6353 | /* 4549 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/1, |
| 6354 | /* 4552 */ GIR_EraseRootFromParent_Done, |
| 6355 | /* 4553 */ // Label 239: @4553 |
| 6356 | /* 4553 */ GIM_Try, /*On fail goto*//*Label 240*/ GIMT_Encode4(4602), // Rule ID 384 // |
| 6357 | /* 4558 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule220Enabled), |
| 6358 | /* 4561 */ // MIs[0] root |
| 6359 | /* 4561 */ // No operand predicates |
| 6360 | /* 4561 */ // MIs[0] and |
| 6361 | /* 4561 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 6362 | /* 4565 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_AND), |
| 6363 | /* 4569 */ // MIs[1] x |
| 6364 | /* 4569 */ // No operand predicates |
| 6365 | /* 4569 */ // MIs[1] not |
| 6366 | /* 4569 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2] |
| 6367 | /* 4573 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_XOR), |
| 6368 | /* 4577 */ // MIs[2] y |
| 6369 | /* 4577 */ // No operand predicates |
| 6370 | /* 4577 */ // MIs[2] Operand 2 |
| 6371 | /* 4577 */ GIM_CheckConstantInt8, /*MI*/2, /*Op*/2, 255, |
| 6372 | /* 4581 */ // MIs[0] y |
| 6373 | /* 4581 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/2, /*OtherOpIdx*/1, |
| 6374 | /* 4586 */ GIM_CheckIsSafeToFold, /*NumInsns*/2, |
| 6375 | /* 4588 */ // Combiner Rule #220: or_and_xor_to_or |
| 6376 | /* 4588 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR), |
| 6377 | /* 4591 */ GIR_RootToRootCopy, /*OpIdx*/0, // root |
| 6378 | /* 4593 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x |
| 6379 | /* 4597 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // y |
| 6380 | /* 4601 */ GIR_EraseRootFromParent_Done, |
| 6381 | /* 4602 */ // Label 240: @4602 |
| 6382 | /* 4602 */ GIM_Try, /*On fail goto*//*Label 241*/ GIMT_Encode4(4636), // Rule ID 436 // |
| 6383 | /* 4607 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule267Enabled), |
| 6384 | /* 4610 */ // MIs[0] dst |
| 6385 | /* 4610 */ // No operand predicates |
| 6386 | /* 4610 */ // MIs[0] __combine_or_of_and_match_0.and |
| 6387 | /* 4610 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 6388 | /* 4614 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_AND), |
| 6389 | /* 4618 */ // MIs[1] x |
| 6390 | /* 4618 */ // No operand predicates |
| 6391 | /* 4618 */ // MIs[1] y |
| 6392 | /* 4618 */ // No operand predicates |
| 6393 | /* 4618 */ // MIs[0] x |
| 6394 | /* 4618 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/1, |
| 6395 | /* 4623 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1, |
| 6396 | /* 4628 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 6397 | /* 4630 */ // Combiner Rule #267: combine_or_of_and @ [__combine_or_of_and_match_0[0]] |
| 6398 | /* 4630 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1, |
| 6399 | /* 4635 */ GIR_EraseRootFromParent_Done, |
| 6400 | /* 4636 */ // Label 241: @4636 |
| 6401 | /* 4636 */ GIM_Try, /*On fail goto*//*Label 242*/ GIMT_Encode4(4670), // Rule ID 437 // |
| 6402 | /* 4641 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule267Enabled), |
| 6403 | /* 4644 */ // MIs[0] dst |
| 6404 | /* 4644 */ // No operand predicates |
| 6405 | /* 4644 */ // MIs[0] __combine_or_of_and_match_0.and |
| 6406 | /* 4644 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 6407 | /* 4648 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_AND), |
| 6408 | /* 4652 */ // MIs[1] y |
| 6409 | /* 4652 */ // No operand predicates |
| 6410 | /* 4652 */ // MIs[1] x |
| 6411 | /* 4652 */ // No operand predicates |
| 6412 | /* 4652 */ // MIs[0] x |
| 6413 | /* 4652 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/2, |
| 6414 | /* 4657 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/2, |
| 6415 | /* 4662 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 6416 | /* 4664 */ // Combiner Rule #267: combine_or_of_and @ [__combine_or_of_and_match_0[1]] |
| 6417 | /* 4664 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/2, |
| 6418 | /* 4669 */ GIR_EraseRootFromParent_Done, |
| 6419 | /* 4670 */ // Label 242: @4670 |
| 6420 | /* 4670 */ GIM_Try, /*On fail goto*//*Label 243*/ GIMT_Encode4(4717), // Rule ID 246 // |
| 6421 | /* 4675 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule179Enabled), |
| 6422 | /* 4678 */ // MIs[0] root |
| 6423 | /* 4678 */ // No operand predicates |
| 6424 | /* 4678 */ // MIs[0] out2 |
| 6425 | /* 4678 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 6426 | /* 4682 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_LSHR), |
| 6427 | /* 4686 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_right_match_0.x |
| 6428 | /* 4686 */ // No operand predicates |
| 6429 | /* 4686 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_right_match_0.y |
| 6430 | /* 4686 */ // No operand predicates |
| 6431 | /* 4686 */ // MIs[0] out1 |
| 6432 | /* 4686 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2] |
| 6433 | /* 4690 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_FSHR), |
| 6434 | /* 4694 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_right_match_0.z |
| 6435 | /* 4694 */ // No operand predicates |
| 6436 | /* 4694 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_right_match_0.x |
| 6437 | /* 4694 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/1, |
| 6438 | /* 4699 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_right_match_0.y |
| 6439 | /* 4699 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/3, /*OtherMI*/1, /*OtherOpIdx*/2, |
| 6440 | /* 4704 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2, |
| 6441 | /* 4709 */ GIM_CheckIsSafeToFold, /*NumInsns*/2, |
| 6442 | /* 4711 */ // Combiner Rule #179: funnel_shift_or_shift_to_funnel_shift_right @ [__funnel_shift_or_shift_to_funnel_shift_right_match_0[1]] |
| 6443 | /* 4711 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2, |
| 6444 | /* 4716 */ GIR_EraseRootFromParent_Done, |
| 6445 | /* 4717 */ // Label 243: @4717 |
| 6446 | /* 4717 */ GIM_Try, /*On fail goto*//*Label 244*/ GIMT_Encode4(4764), // Rule ID 244 // |
| 6447 | /* 4722 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule178Enabled), |
| 6448 | /* 4725 */ // MIs[0] root |
| 6449 | /* 4725 */ // No operand predicates |
| 6450 | /* 4725 */ // MIs[0] out2 |
| 6451 | /* 4725 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 6452 | /* 4729 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SHL), |
| 6453 | /* 4733 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_left_match_0.x |
| 6454 | /* 4733 */ // No operand predicates |
| 6455 | /* 4733 */ // MIs[1] __funnel_shift_or_shift_to_funnel_shift_left_match_0.y |
| 6456 | /* 4733 */ // No operand predicates |
| 6457 | /* 4733 */ // MIs[0] out1 |
| 6458 | /* 4733 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2] |
| 6459 | /* 4737 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_FSHL), |
| 6460 | /* 4741 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_left_match_0.x |
| 6461 | /* 4741 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/1, |
| 6462 | /* 4746 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_left_match_0.z |
| 6463 | /* 4746 */ // No operand predicates |
| 6464 | /* 4746 */ // MIs[2] __funnel_shift_or_shift_to_funnel_shift_left_match_0.y |
| 6465 | /* 4746 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/3, /*OtherMI*/1, /*OtherOpIdx*/2, |
| 6466 | /* 4751 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2, |
| 6467 | /* 4756 */ GIM_CheckIsSafeToFold, /*NumInsns*/2, |
| 6468 | /* 4758 */ // Combiner Rule #178: funnel_shift_or_shift_to_funnel_shift_left @ [__funnel_shift_or_shift_to_funnel_shift_left_match_0[1]] |
| 6469 | /* 4758 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2, |
| 6470 | /* 4763 */ GIR_EraseRootFromParent_Done, |
| 6471 | /* 4764 */ // Label 244: @4764 |
| 6472 | /* 4764 */ GIM_Try, /*On fail goto*//*Label 245*/ GIMT_Encode4(4814), // Rule ID 389 // |
| 6473 | /* 4769 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule225Enabled), |
| 6474 | /* 4772 */ // MIs[0] root |
| 6475 | /* 4772 */ // No operand predicates |
| 6476 | /* 4772 */ // MIs[0] xor |
| 6477 | /* 4772 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 6478 | /* 4776 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_XOR), |
| 6479 | /* 4780 */ // MIs[1] x |
| 6480 | /* 4780 */ // No operand predicates |
| 6481 | /* 4780 */ // MIs[1] y |
| 6482 | /* 4780 */ // No operand predicates |
| 6483 | /* 4780 */ // MIs[0] and |
| 6484 | /* 4780 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2] |
| 6485 | /* 4784 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_AND), |
| 6486 | /* 4788 */ // MIs[2] x |
| 6487 | /* 4788 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/1, |
| 6488 | /* 4793 */ // MIs[2] y |
| 6489 | /* 4793 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/2, |
| 6490 | /* 4798 */ GIM_CheckIsSafeToFold, /*NumInsns*/2, |
| 6491 | /* 4800 */ // Combiner Rule #225: or_xor_and |
| 6492 | /* 4800 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR), |
| 6493 | /* 4803 */ GIR_RootToRootCopy, /*OpIdx*/0, // root |
| 6494 | /* 4805 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x |
| 6495 | /* 4809 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // y |
| 6496 | /* 4813 */ GIR_EraseRootFromParent_Done, |
| 6497 | /* 4814 */ // Label 245: @4814 |
| 6498 | /* 4814 */ GIM_Try, /*On fail goto*//*Label 246*/ GIMT_Encode4(4864), // Rule ID 388 // |
| 6499 | /* 4819 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule224Enabled), |
| 6500 | /* 4822 */ // MIs[0] root |
| 6501 | /* 4822 */ // No operand predicates |
| 6502 | /* 4822 */ // MIs[0] xor |
| 6503 | /* 4822 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 6504 | /* 4826 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_XOR), |
| 6505 | /* 4830 */ // MIs[1] x |
| 6506 | /* 4830 */ // No operand predicates |
| 6507 | /* 4830 */ // MIs[1] y |
| 6508 | /* 4830 */ // No operand predicates |
| 6509 | /* 4830 */ // MIs[0] or |
| 6510 | /* 4830 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2] |
| 6511 | /* 4834 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_OR), |
| 6512 | /* 4838 */ // MIs[2] x |
| 6513 | /* 4838 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/1, /*OtherMI*/1, /*OtherOpIdx*/1, |
| 6514 | /* 4843 */ // MIs[2] y |
| 6515 | /* 4843 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/2, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/2, |
| 6516 | /* 4848 */ GIM_CheckIsSafeToFold, /*NumInsns*/2, |
| 6517 | /* 4850 */ // Combiner Rule #224: or_xor_or |
| 6518 | /* 4850 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_OR), |
| 6519 | /* 4853 */ GIR_RootToRootCopy, /*OpIdx*/0, // root |
| 6520 | /* 4855 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x |
| 6521 | /* 4859 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // y |
| 6522 | /* 4863 */ GIR_EraseRootFromParent_Done, |
| 6523 | /* 4864 */ // Label 246: @4864 |
| 6524 | /* 4864 */ GIM_Try, /*On fail goto*//*Label 247*/ GIMT_Encode4(4888), // Rule ID 121 // |
| 6525 | /* 4869 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule91Enabled), |
| 6526 | /* 4872 */ // MIs[0] dst |
| 6527 | /* 4872 */ // No operand predicates |
| 6528 | /* 4872 */ // MIs[0] src |
| 6529 | /* 4872 */ // No operand predicates |
| 6530 | /* 4872 */ // MIs[0] src |
| 6531 | /* 4872 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1, |
| 6532 | /* 4877 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 6533 | /* 4882 */ // Combiner Rule #91: binop_same_val @ [__binop_same_val_match_0[1]] |
| 6534 | /* 4882 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 6535 | /* 4887 */ GIR_EraseRootFromParent_Done, |
| 6536 | /* 4888 */ // Label 247: @4888 |
| 6537 | /* 4888 */ GIM_Try, /*On fail goto*//*Label 248*/ GIMT_Encode4(4922), // Rule ID 438 // |
| 6538 | /* 4893 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule267Enabled), |
| 6539 | /* 4896 */ // MIs[0] dst |
| 6540 | /* 4896 */ // No operand predicates |
| 6541 | /* 4896 */ // MIs[0] x |
| 6542 | /* 4896 */ // No operand predicates |
| 6543 | /* 4896 */ // MIs[0] __combine_or_of_and_match_0.and |
| 6544 | /* 4896 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1] |
| 6545 | /* 4900 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_AND), |
| 6546 | /* 4904 */ // MIs[1] x |
| 6547 | /* 4904 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/1, /*OpIdx*/1, /*OtherMI*/0, /*OtherOpIdx*/1, |
| 6548 | /* 4909 */ // MIs[1] y |
| 6549 | /* 4909 */ // No operand predicates |
| 6550 | /* 4909 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 6551 | /* 4914 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 6552 | /* 4916 */ // Combiner Rule #267: combine_or_of_and @ [__combine_or_of_and_match_0[2]] |
| 6553 | /* 4916 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 6554 | /* 4921 */ GIR_EraseRootFromParent_Done, |
| 6555 | /* 4922 */ // Label 248: @4922 |
| 6556 | /* 4922 */ GIM_Try, /*On fail goto*//*Label 249*/ GIMT_Encode4(4956), // Rule ID 439 // |
| 6557 | /* 4927 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule267Enabled), |
| 6558 | /* 4930 */ // MIs[0] dst |
| 6559 | /* 4930 */ // No operand predicates |
| 6560 | /* 4930 */ // MIs[0] x |
| 6561 | /* 4930 */ // No operand predicates |
| 6562 | /* 4930 */ // MIs[0] __combine_or_of_and_match_0.and |
| 6563 | /* 4930 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1] |
| 6564 | /* 4934 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_AND), |
| 6565 | /* 4938 */ // MIs[1] y |
| 6566 | /* 4938 */ // No operand predicates |
| 6567 | /* 4938 */ // MIs[1] x |
| 6568 | /* 4938 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/1, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1, |
| 6569 | /* 4943 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 6570 | /* 4948 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 6571 | /* 4950 */ // Combiner Rule #267: combine_or_of_and @ [__combine_or_of_and_match_0[3]] |
| 6572 | /* 4950 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 6573 | /* 4955 */ GIR_EraseRootFromParent_Done, |
| 6574 | /* 4956 */ // Label 249: @4956 |
| 6575 | /* 4956 */ GIM_Try, /*On fail goto*//*Label 250*/ GIMT_Encode4(4979), // Rule ID 112 // |
| 6576 | /* 4961 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled), |
| 6577 | /* 4964 */ // MIs[0] dst |
| 6578 | /* 4964 */ // No operand predicates |
| 6579 | /* 4964 */ // MIs[0] lhs |
| 6580 | /* 4964 */ // No operand predicates |
| 6581 | /* 4964 */ // MIs[0] Operand 2 |
| 6582 | /* 4964 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0, |
| 6583 | /* 4968 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 6584 | /* 4973 */ // Combiner Rule #90: right_identity_zero @ [__right_identity_zero_match_0[2]] |
| 6585 | /* 4973 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 6586 | /* 4978 */ GIR_EraseRootFromParent_Done, |
| 6587 | /* 4979 */ // Label 250: @4979 |
| 6588 | /* 4979 */ GIM_Reject, |
| 6589 | /* 4980 */ // Label 10: @4980 |
| 6590 | /* 4980 */ GIM_Try, /*On fail goto*//*Label 251*/ GIMT_Encode4(4991), // Rule ID 102 // |
| 6591 | /* 4985 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule84Enabled), |
| 6592 | /* 4988 */ // Combiner Rule #84: propagate_undef_any_op; wip_match_opcode 'G_XOR' |
| 6593 | /* 4988 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner39), |
| 6594 | /* 4991 */ // Label 251: @4991 |
| 6595 | /* 4991 */ GIM_Try, /*On fail goto*//*Label 252*/ GIMT_Encode4(5002), // Rule ID 155 // |
| 6596 | /* 4996 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule113Enabled), |
| 6597 | /* 4999 */ // Combiner Rule #113: hoist_logic_op_with_same_opcode_hands; wip_match_opcode 'G_XOR' |
| 6598 | /* 4999 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner54), |
| 6599 | /* 5002 */ // Label 252: @5002 |
| 6600 | /* 5002 */ GIM_Try, /*On fail goto*//*Label 253*/ GIMT_Encode4(5013), // Rule ID 187 // |
| 6601 | /* 5007 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule143Enabled), |
| 6602 | /* 5010 */ // Combiner Rule #143: not_cmp_fold; wip_match_opcode 'G_XOR' |
| 6603 | /* 5010 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner78), |
| 6604 | /* 5013 */ // Label 253: @5013 |
| 6605 | /* 5013 */ GIM_Try, /*On fail goto*//*Label 254*/ GIMT_Encode4(5024), // Rule ID 219 // |
| 6606 | /* 5018 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule167Enabled), |
| 6607 | /* 5021 */ // Combiner Rule #167: xor_of_and_with_same_reg; wip_match_opcode 'G_XOR' |
| 6608 | /* 5021 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner89), |
| 6609 | /* 5024 */ // Label 254: @5024 |
| 6610 | /* 5024 */ GIM_Try, /*On fail goto*//*Label 255*/ GIMT_Encode4(5035), // Rule ID 265 // |
| 6611 | /* 5029 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled), |
| 6612 | /* 5032 */ // Combiner Rule #187: constant_fold_binop; wip_match_opcode 'G_XOR' |
| 6613 | /* 5032 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103), |
| 6614 | /* 5035 */ // Label 255: @5035 |
| 6615 | /* 5035 */ GIM_Try, /*On fail goto*//*Label 256*/ GIMT_Encode4(5046), // Rule ID 321 // |
| 6616 | /* 5040 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled), |
| 6617 | /* 5043 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_XOR' |
| 6618 | /* 5043 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119), |
| 6619 | /* 5046 */ // Label 256: @5046 |
| 6620 | /* 5046 */ GIM_Try, /*On fail goto*//*Label 257*/ GIMT_Encode4(5057), // Rule ID 357 // |
| 6621 | /* 5051 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled), |
| 6622 | /* 5054 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_XOR' |
| 6623 | /* 5054 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129), |
| 6624 | /* 5057 */ // Label 257: @5057 |
| 6625 | /* 5057 */ GIM_Try, /*On fail goto*//*Label 258*/ GIMT_Encode4(5068), // Rule ID 427 // |
| 6626 | /* 5062 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule258Enabled), |
| 6627 | /* 5065 */ // Combiner Rule #258: binop_with_neg; wip_match_opcode 'G_XOR' |
| 6628 | /* 5065 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner159), |
| 6629 | /* 5068 */ // Label 258: @5068 |
| 6630 | /* 5068 */ GIM_Try, /*On fail goto*//*Label 259*/ GIMT_Encode4(5128), // Rule ID 13 // |
| 6631 | /* 5073 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule13Enabled), |
| 6632 | /* 5076 */ // MIs[0] root |
| 6633 | /* 5076 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255, |
| 6634 | /* 5080 */ // MIs[0] add |
| 6635 | /* 5080 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 6636 | /* 5084 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD), |
| 6637 | /* 5088 */ // MIs[1] A |
| 6638 | /* 5088 */ // No operand predicates |
| 6639 | /* 5088 */ // MIs[1] Operand 2 |
| 6640 | /* 5088 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/2, 255, |
| 6641 | /* 5092 */ // MIs[0] Operand 2 |
| 6642 | /* 5092 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 255, |
| 6643 | /* 5096 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner1), |
| 6644 | /* 5100 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 6645 | /* 5102 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255, |
| 6646 | /* 5105 */ GIR_BuildConstant, /*TempRegID*/0, /*Val*/GIMT_Encode8(0), |
| 6647 | /* 5115 */ // Combiner Rule #13: NotAPlusNegOne |
| 6648 | /* 5115 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SUB), |
| 6649 | /* 5118 */ GIR_RootToRootCopy, /*OpIdx*/0, // root |
| 6650 | /* 5120 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/0, |
| 6651 | /* 5123 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // A |
| 6652 | /* 5127 */ GIR_EraseRootFromParent_Done, |
| 6653 | /* 5128 */ // Label 259: @5128 |
| 6654 | /* 5128 */ GIM_Try, /*On fail goto*//*Label 260*/ GIMT_Encode4(5167), // Rule ID 123 // |
| 6655 | /* 5133 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule92Enabled), |
| 6656 | /* 5136 */ // MIs[0] dst |
| 6657 | /* 5136 */ // No operand predicates |
| 6658 | /* 5136 */ // MIs[0] x |
| 6659 | /* 5136 */ GIM_RecordRegType, /*MI*/0, /*Op*/1, /*TempTypeIdx*/255, |
| 6660 | /* 5140 */ // MIs[0] x |
| 6661 | /* 5140 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1, |
| 6662 | /* 5145 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255, |
| 6663 | /* 5148 */ GIR_BuildConstant, /*TempRegID*/0, /*Val*/GIMT_Encode8(0), |
| 6664 | /* 5158 */ // Combiner Rule #92: same_val_zero @ [__same_val_zero_match_0[1]] |
| 6665 | /* 5158 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::COPY), |
| 6666 | /* 5161 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst |
| 6667 | /* 5163 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/0, |
| 6668 | /* 5166 */ GIR_EraseRootFromParent_Done, |
| 6669 | /* 5167 */ // Label 260: @5167 |
| 6670 | /* 5167 */ GIM_Try, /*On fail goto*//*Label 261*/ GIMT_Encode4(5190), // Rule ID 113 // |
| 6671 | /* 5172 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled), |
| 6672 | /* 5175 */ // MIs[0] dst |
| 6673 | /* 5175 */ // No operand predicates |
| 6674 | /* 5175 */ // MIs[0] lhs |
| 6675 | /* 5175 */ // No operand predicates |
| 6676 | /* 5175 */ // MIs[0] Operand 2 |
| 6677 | /* 5175 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0, |
| 6678 | /* 5179 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 6679 | /* 5184 */ // Combiner Rule #90: right_identity_zero @ [__right_identity_zero_match_0[3]] |
| 6680 | /* 5184 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 6681 | /* 5189 */ GIR_EraseRootFromParent_Done, |
| 6682 | /* 5190 */ // Label 261: @5190 |
| 6683 | /* 5190 */ GIM_Reject, |
| 6684 | /* 5191 */ // Label 11: @5191 |
| 6685 | /* 5191 */ GIM_Try, /*On fail goto*//*Label 262*/ GIMT_Encode4(5202), // Rule ID 151 // |
| 6686 | /* 5196 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule111Enabled), |
| 6687 | /* 5199 */ // Combiner Rule #111: extend_through_phis; wip_match_opcode 'G_PHI' |
| 6688 | /* 5199 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner52), |
| 6689 | /* 5202 */ // Label 262: @5202 |
| 6690 | /* 5202 */ GIM_Reject, |
| 6691 | /* 5203 */ // Label 12: @5203 |
| 6692 | /* 5203 */ GIM_Try, /*On fail goto*//*Label 263*/ GIMT_Encode4(5214), // Rule ID 443 // |
| 6693 | /* 5208 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule271Enabled), |
| 6694 | /* 5211 */ // Combiner Rule #271: fold_global_offset; wip_match_opcode 'G_GLOBAL_VALUE' |
| 6695 | /* 5211 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner162), |
| 6696 | /* 5214 */ // Label 263: @5214 |
| 6697 | /* 5214 */ GIM_Reject, |
| 6698 | /* 5215 */ // Label 13: @5215 |
| 6699 | /* 5215 */ GIM_Try, /*On fail goto*//*Label 264*/ GIMT_Encode4(5226), // Rule ID 399 // |
| 6700 | /* 5220 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule235Enabled), |
| 6701 | /* 5223 */ // Combiner Rule #235: unmerge_anyext_build_vector; wip_match_opcode 'G_UNMERGE_VALUES' |
| 6702 | /* 5223 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner142), |
| 6703 | /* 5226 */ // Label 264: @5226 |
| 6704 | /* 5226 */ GIM_Try, /*On fail goto*//*Label 265*/ GIMT_Encode4(5237), // Rule ID 400 // |
| 6705 | /* 5231 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule236Enabled), |
| 6706 | /* 5234 */ // Combiner Rule #236: unmerge_merge; wip_match_opcode 'G_UNMERGE_VALUES' |
| 6707 | /* 5234 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner143), |
| 6708 | /* 5237 */ // Label 265: @5237 |
| 6709 | /* 5237 */ GIM_Try, /*On fail goto*//*Label 266*/ GIMT_Encode4(5248), // Rule ID 402 // |
| 6710 | /* 5242 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule238Enabled), |
| 6711 | /* 5245 */ // Combiner Rule #238: unmerge_cst; wip_match_opcode 'G_UNMERGE_VALUES' |
| 6712 | /* 5245 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner145), |
| 6713 | /* 5248 */ // Label 266: @5248 |
| 6714 | /* 5248 */ GIM_Try, /*On fail goto*//*Label 267*/ GIMT_Encode4(5259), // Rule ID 403 // |
| 6715 | /* 5253 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule239Enabled), |
| 6716 | /* 5256 */ // Combiner Rule #239: unmerge_undef; wip_match_opcode 'G_UNMERGE_VALUES' |
| 6717 | /* 5256 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner146), |
| 6718 | /* 5259 */ // Label 267: @5259 |
| 6719 | /* 5259 */ GIM_Try, /*On fail goto*//*Label 268*/ GIMT_Encode4(5270), // Rule ID 404 // |
| 6720 | /* 5264 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule240Enabled), |
| 6721 | /* 5267 */ // Combiner Rule #240: unmerge_dead_to_trunc; wip_match_opcode 'G_UNMERGE_VALUES' |
| 6722 | /* 5267 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner147), |
| 6723 | /* 5270 */ // Label 268: @5270 |
| 6724 | /* 5270 */ GIM_Try, /*On fail goto*//*Label 269*/ GIMT_Encode4(5281), // Rule ID 405 // |
| 6725 | /* 5275 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule241Enabled), |
| 6726 | /* 5278 */ // Combiner Rule #241: unmerge_zext_to_zext; wip_match_opcode 'G_UNMERGE_VALUES' |
| 6727 | /* 5278 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner148), |
| 6728 | /* 5281 */ // Label 269: @5281 |
| 6729 | /* 5281 */ GIM_Reject, |
| 6730 | /* 5282 */ // Label 14: @5282 |
| 6731 | /* 5282 */ GIM_Try, /*On fail goto*//*Label 270*/ GIMT_Encode4(5296), // Rule ID 401 // |
| 6732 | /* 5287 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule237Enabled), |
| 6733 | /* 5290 */ GIM_CheckNumOperandsGE, /*MI*/0, /*Expected*/2, |
| 6734 | /* 5293 */ // MIs[0] dst |
| 6735 | /* 5293 */ // No operand predicates |
| 6736 | /* 5293 */ // MIs[0] merge_srcs |
| 6737 | /* 5293 */ // No operand predicates |
| 6738 | /* 5293 */ // Combiner Rule #237: merge_unmerge |
| 6739 | /* 5293 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner144), |
| 6740 | /* 5296 */ // Label 270: @5296 |
| 6741 | /* 5296 */ GIM_Try, /*On fail goto*//*Label 271*/ GIMT_Encode4(5358), |
| 6742 | /* 5301 */ GIM_CheckNumOperands, /*MI*/0, /*Expected*/3, |
| 6743 | /* 5304 */ GIM_Try, /*On fail goto*//*Label 272*/ GIMT_Encode4(5325), // Rule ID 406 // |
| 6744 | /* 5309 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule242Enabled), |
| 6745 | /* 5312 */ // MIs[0] root |
| 6746 | /* 5312 */ // No operand predicates |
| 6747 | /* 5312 */ // MIs[0] x |
| 6748 | /* 5312 */ // No operand predicates |
| 6749 | /* 5312 */ // MIs[0] undef |
| 6750 | /* 5312 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1] |
| 6751 | /* 5316 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF), |
| 6752 | /* 5320 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 6753 | /* 5322 */ // Combiner Rule #242: merge_of_x_and_undef |
| 6754 | /* 5322 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner149), |
| 6755 | /* 5325 */ // Label 272: @5325 |
| 6756 | /* 5325 */ GIM_Try, /*On fail goto*//*Label 273*/ GIMT_Encode4(5357), // Rule ID 407 // |
| 6757 | /* 5330 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule243Enabled), |
| 6758 | /* 5333 */ // MIs[0] root |
| 6759 | /* 5333 */ // No operand predicates |
| 6760 | /* 5333 */ // MIs[0] x |
| 6761 | /* 5333 */ // No operand predicates |
| 6762 | /* 5333 */ // MIs[0] zero |
| 6763 | /* 5333 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1] |
| 6764 | /* 5337 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT), |
| 6765 | /* 5341 */ // MIs[1] Operand 1 |
| 6766 | /* 5341 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0), |
| 6767 | /* 5352 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 6768 | /* 5354 */ // Combiner Rule #243: merge_of_x_and_zero |
| 6769 | /* 5354 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner150), |
| 6770 | /* 5357 */ // Label 273: @5357 |
| 6771 | /* 5357 */ GIM_Reject, |
| 6772 | /* 5358 */ // Label 271: @5358 |
| 6773 | /* 5358 */ GIM_Reject, |
| 6774 | /* 5359 */ // Label 15: @5359 |
| 6775 | /* 5359 */ GIM_Try, /*On fail goto*//*Label 274*/ GIMT_Encode4(5370), // Rule ID 75 // |
| 6776 | /* 5364 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule73Enabled), |
| 6777 | /* 5367 */ // Combiner Rule #73: extract_all_elts_from_build_vector; wip_match_opcode 'G_BUILD_VECTOR' |
| 6778 | /* 5367 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner29), |
| 6779 | /* 5370 */ // Label 274: @5370 |
| 6780 | /* 5370 */ GIM_Try, /*On fail goto*//*Label 275*/ GIMT_Encode4(5381), // Rule ID 104 // |
| 6781 | /* 5375 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule85Enabled), |
| 6782 | /* 5378 */ // Combiner Rule #85: propagate_undef_all_ops; wip_match_opcode 'G_BUILD_VECTOR' |
| 6783 | /* 5378 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner40), |
| 6784 | /* 5381 */ // Label 275: @5381 |
| 6785 | /* 5381 */ GIM_Try, /*On fail goto*//*Label 276*/ GIMT_Encode4(5392), // Rule ID 142 // |
| 6786 | /* 5386 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule102Enabled), |
| 6787 | /* 5389 */ // Combiner Rule #102: buildvector_identity_fold; wip_match_opcode 'G_BUILD_VECTOR' |
| 6788 | /* 5389 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner48), |
| 6789 | /* 5392 */ // Label 276: @5392 |
| 6790 | /* 5392 */ GIM_Try, /*On fail goto*//*Label 277*/ GIMT_Encode4(5423), |
| 6791 | /* 5397 */ GIM_CheckNumOperandsGE, /*MI*/0, /*Expected*/2, |
| 6792 | /* 5400 */ GIM_Try, /*On fail goto*//*Label 278*/ GIMT_Encode4(5411), // Rule ID 398 // |
| 6793 | /* 5405 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule234Enabled), |
| 6794 | /* 5408 */ // MIs[0] dst |
| 6795 | /* 5408 */ // No operand predicates |
| 6796 | /* 5408 */ // MIs[0] unused |
| 6797 | /* 5408 */ // No operand predicates |
| 6798 | /* 5408 */ // Combiner Rule #234: combine_use_vector_truncate |
| 6799 | /* 5408 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner141), |
| 6800 | /* 5411 */ // Label 278: @5411 |
| 6801 | /* 5411 */ GIM_Try, /*On fail goto*//*Label 279*/ GIMT_Encode4(5422), // Rule ID 408 // |
| 6802 | /* 5416 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule244Enabled), |
| 6803 | /* 5419 */ // MIs[0] dst |
| 6804 | /* 5419 */ // No operand predicates |
| 6805 | /* 5419 */ // MIs[0] unused |
| 6806 | /* 5419 */ // No operand predicates |
| 6807 | /* 5419 */ // Combiner Rule #244: combine_build_unmerge |
| 6808 | /* 5419 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner151), |
| 6809 | /* 5422 */ // Label 279: @5422 |
| 6810 | /* 5422 */ GIM_Reject, |
| 6811 | /* 5423 */ // Label 277: @5423 |
| 6812 | /* 5423 */ GIM_Reject, |
| 6813 | /* 5424 */ // Label 16: @5424 |
| 6814 | /* 5424 */ GIM_Try, /*On fail goto*//*Label 280*/ GIMT_Encode4(5435), // Rule ID 141 // |
| 6815 | /* 5429 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule102Enabled), |
| 6816 | /* 5432 */ // Combiner Rule #102: buildvector_identity_fold; wip_match_opcode 'G_BUILD_VECTOR_TRUNC' |
| 6817 | /* 5432 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner48), |
| 6818 | /* 5435 */ // Label 280: @5435 |
| 6819 | /* 5435 */ GIM_Reject, |
| 6820 | /* 5436 */ // Label 17: @5436 |
| 6821 | /* 5436 */ GIM_Try, /*On fail goto*//*Label 281*/ GIMT_Encode4(5447), // Rule ID 391 // |
| 6822 | /* 5441 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule227Enabled), |
| 6823 | /* 5444 */ // Combiner Rule #227: combine_concat_vector; wip_match_opcode 'G_CONCAT_VECTORS' |
| 6824 | /* 5444 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner134), |
| 6825 | /* 5447 */ // Label 281: @5447 |
| 6826 | /* 5447 */ GIM_Reject, |
| 6827 | /* 5448 */ // Label 18: @5448 |
| 6828 | /* 5448 */ GIM_Try, /*On fail goto*//*Label 282*/ GIMT_Encode4(5469), // Rule ID 134 // |
| 6829 | /* 5453 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule96Enabled), |
| 6830 | /* 5456 */ // MIs[0] dst |
| 6831 | /* 5456 */ // No operand predicates |
| 6832 | /* 5456 */ // MIs[0] t |
| 6833 | /* 5456 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 6834 | /* 5460 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_INTTOPTR), |
| 6835 | /* 5464 */ // MIs[1] ptr |
| 6836 | /* 5464 */ // No operand predicates |
| 6837 | /* 5464 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 6838 | /* 5466 */ // Combiner Rule #96: i2p_to_p2i |
| 6839 | /* 5466 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner46), |
| 6840 | /* 5469 */ // Label 282: @5469 |
| 6841 | /* 5469 */ GIM_Try, /*On fail goto*//*Label 283*/ GIMT_Encode4(5490), // Rule ID 96 // |
| 6842 | /* 5474 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule83Enabled), |
| 6843 | /* 5477 */ // MIs[0] dst |
| 6844 | /* 5477 */ // No operand predicates |
| 6845 | /* 5477 */ // MIs[0] __unary_undef_to_undef_match_0.x |
| 6846 | /* 5477 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 6847 | /* 5481 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF), |
| 6848 | /* 5485 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 6849 | /* 5487 */ // Combiner Rule #83: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[3]] |
| 6850 | /* 5487 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner38), |
| 6851 | /* 5490 */ // Label 283: @5490 |
| 6852 | /* 5490 */ GIM_Reject, |
| 6853 | /* 5491 */ // Label 19: @5491 |
| 6854 | /* 5491 */ GIM_Try, /*On fail goto*//*Label 284*/ GIMT_Encode4(5502), // Rule ID 133 // |
| 6855 | /* 5496 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule95Enabled), |
| 6856 | /* 5499 */ // Combiner Rule #95: p2i_to_i2p; wip_match_opcode 'G_INTTOPTR' |
| 6857 | /* 5499 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner45), |
| 6858 | /* 5502 */ // Label 284: @5502 |
| 6859 | /* 5502 */ GIM_Try, /*On fail goto*//*Label 285*/ GIMT_Encode4(5523), // Rule ID 97 // |
| 6860 | /* 5507 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule83Enabled), |
| 6861 | /* 5510 */ // MIs[0] dst |
| 6862 | /* 5510 */ // No operand predicates |
| 6863 | /* 5510 */ // MIs[0] __unary_undef_to_undef_match_0.x |
| 6864 | /* 5510 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 6865 | /* 5514 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF), |
| 6866 | /* 5518 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 6867 | /* 5520 */ // Combiner Rule #83: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[4]] |
| 6868 | /* 5520 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner38), |
| 6869 | /* 5523 */ // Label 285: @5523 |
| 6870 | /* 5523 */ GIM_Reject, |
| 6871 | /* 5524 */ // Label 20: @5524 |
| 6872 | /* 5524 */ GIM_Try, /*On fail goto*//*Label 286*/ GIMT_Encode4(5556), // Rule ID 146 // |
| 6873 | /* 5529 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule106Enabled), |
| 6874 | /* 5532 */ // MIs[0] dst |
| 6875 | /* 5532 */ // No operand predicates |
| 6876 | /* 5532 */ // MIs[0] src1 |
| 6877 | /* 5532 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 6878 | /* 5536 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BITCAST), |
| 6879 | /* 5540 */ // MIs[1] src0 |
| 6880 | /* 5540 */ // No operand predicates |
| 6881 | /* 5540 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner5), |
| 6882 | /* 5544 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 6883 | /* 5546 */ // Combiner Rule #106: bitcast_bitcast_to_bitcast |
| 6884 | /* 5546 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_BITCAST), |
| 6885 | /* 5549 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst |
| 6886 | /* 5551 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // src0 |
| 6887 | /* 5555 */ GIR_EraseRootFromParent_Done, |
| 6888 | /* 5556 */ // Label 286: @5556 |
| 6889 | /* 5556 */ GIM_Try, /*On fail goto*//*Label 287*/ GIMT_Encode4(5577), // Rule ID 145 // |
| 6890 | /* 5561 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule105Enabled), |
| 6891 | /* 5564 */ // MIs[0] dst |
| 6892 | /* 5564 */ // No operand predicates |
| 6893 | /* 5564 */ // MIs[0] src1 |
| 6894 | /* 5564 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 6895 | /* 5568 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BITCAST), |
| 6896 | /* 5572 */ // MIs[1] src0 |
| 6897 | /* 5572 */ // No operand predicates |
| 6898 | /* 5572 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 6899 | /* 5574 */ // Combiner Rule #105: bitcast_bitcast_fold |
| 6900 | /* 5574 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner51), |
| 6901 | /* 5577 */ // Label 287: @5577 |
| 6902 | /* 5577 */ GIM_Try, /*On fail goto*//*Label 288*/ GIMT_Encode4(5598), // Rule ID 94 // |
| 6903 | /* 5582 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule83Enabled), |
| 6904 | /* 5585 */ // MIs[0] dst |
| 6905 | /* 5585 */ // No operand predicates |
| 6906 | /* 5585 */ // MIs[0] __unary_undef_to_undef_match_0.x |
| 6907 | /* 5585 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 6908 | /* 5589 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF), |
| 6909 | /* 5593 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 6910 | /* 5595 */ // Combiner Rule #83: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[1]] |
| 6911 | /* 5595 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner38), |
| 6912 | /* 5598 */ // Label 288: @5598 |
| 6913 | /* 5598 */ GIM_Reject, |
| 6914 | /* 5599 */ // Label 21: @5599 |
| 6915 | /* 5599 */ GIM_Try, /*On fail goto*//*Label 289*/ GIMT_Encode4(5628), // Rule ID 24 // |
| 6916 | /* 5604 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule24Enabled), |
| 6917 | /* 5607 */ // MIs[0] dst |
| 6918 | /* 5607 */ // No operand predicates |
| 6919 | /* 5607 */ // MIs[0] src |
| 6920 | /* 5607 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 6921 | /* 5611 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FREEZE), |
| 6922 | /* 5615 */ // MIs[1] __idempotent_prop_match_0.x |
| 6923 | /* 5615 */ // No operand predicates |
| 6924 | /* 5615 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 6925 | /* 5620 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 6926 | /* 5622 */ // Combiner Rule #24: idempotent_prop @ [__idempotent_prop_match_0[0]] |
| 6927 | /* 5622 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 6928 | /* 5627 */ GIR_EraseRootFromParent_Done, |
| 6929 | /* 5628 */ // Label 289: @5628 |
| 6930 | /* 5628 */ GIM_Try, /*On fail goto*//*Label 290*/ GIMT_Encode4(5651), // Rule ID 49 // |
| 6931 | /* 5633 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule47Enabled), |
| 6932 | /* 5636 */ // MIs[0] root |
| 6933 | /* 5636 */ // No operand predicates |
| 6934 | /* 5636 */ // MIs[0] src |
| 6935 | /* 5636 */ // No operand predicates |
| 6936 | /* 5636 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner3), |
| 6937 | /* 5640 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 6938 | /* 5645 */ // Combiner Rule #47: freeze_of_non_undef_non_poison |
| 6939 | /* 5645 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 6940 | /* 5650 */ GIR_EraseRootFromParent_Done, |
| 6941 | /* 5651 */ // Label 290: @5651 |
| 6942 | /* 5651 */ GIM_Try, /*On fail goto*//*Label 291*/ GIMT_Encode4(5662), // Rule ID 50 // |
| 6943 | /* 5656 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule48Enabled), |
| 6944 | /* 5659 */ // MIs[0] dst |
| 6945 | /* 5659 */ // No operand predicates |
| 6946 | /* 5659 */ // MIs[0] src |
| 6947 | /* 5659 */ // No operand predicates |
| 6948 | /* 5659 */ // Combiner Rule #48: push_freeze_to_prevent_poison_from_propagating |
| 6949 | /* 5659 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner19), |
| 6950 | /* 5662 */ // Label 291: @5662 |
| 6951 | /* 5662 */ GIM_Reject, |
| 6952 | /* 5663 */ // Label 22: @5663 |
| 6953 | /* 5663 */ GIM_Try, /*On fail goto*//*Label 292*/ GIMT_Encode4(5684), // Rule ID 197 // |
| 6954 | /* 5668 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule153Enabled), |
| 6955 | /* 5671 */ // MIs[0] dst |
| 6956 | /* 5671 */ // No operand predicates |
| 6957 | /* 5671 */ // MIs[0] src0 |
| 6958 | /* 5671 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 6959 | /* 5675 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT), |
| 6960 | /* 5679 */ // MIs[1] cst |
| 6961 | /* 5679 */ // No operand predicates |
| 6962 | /* 5679 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 6963 | /* 5681 */ // Combiner Rule #153: constant_fold_intrinsic_trunc |
| 6964 | /* 5681 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80), |
| 6965 | /* 5684 */ // Label 292: @5684 |
| 6966 | /* 5684 */ GIM_Reject, |
| 6967 | /* 5685 */ // Label 23: @5685 |
| 6968 | /* 5685 */ GIM_Try, /*On fail goto*//*Label 293*/ GIMT_Encode4(5706), // Rule ID 198 // |
| 6969 | /* 5690 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule154Enabled), |
| 6970 | /* 5693 */ // MIs[0] dst |
| 6971 | /* 5693 */ // No operand predicates |
| 6972 | /* 5693 */ // MIs[0] src0 |
| 6973 | /* 5693 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 6974 | /* 5697 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT), |
| 6975 | /* 5701 */ // MIs[1] cst |
| 6976 | /* 5701 */ // No operand predicates |
| 6977 | /* 5701 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 6978 | /* 5703 */ // Combiner Rule #154: constant_fold_intrinsic_round |
| 6979 | /* 5703 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80), |
| 6980 | /* 5706 */ // Label 293: @5706 |
| 6981 | /* 5706 */ GIM_Reject, |
| 6982 | /* 5707 */ // Label 24: @5707 |
| 6983 | /* 5707 */ GIM_Try, /*On fail goto*//*Label 294*/ GIMT_Encode4(5728), // Rule ID 199 // |
| 6984 | /* 5712 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule155Enabled), |
| 6985 | /* 5715 */ // MIs[0] dst |
| 6986 | /* 5715 */ // No operand predicates |
| 6987 | /* 5715 */ // MIs[0] src0 |
| 6988 | /* 5715 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 6989 | /* 5719 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT), |
| 6990 | /* 5723 */ // MIs[1] cst |
| 6991 | /* 5723 */ // No operand predicates |
| 6992 | /* 5723 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 6993 | /* 5725 */ // Combiner Rule #155: constant_fold_intrinsic_roundeven |
| 6994 | /* 5725 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80), |
| 6995 | /* 5728 */ // Label 294: @5728 |
| 6996 | /* 5728 */ GIM_Reject, |
| 6997 | /* 5729 */ // Label 25: @5729 |
| 6998 | /* 5729 */ GIM_Try, /*On fail goto*//*Label 295*/ GIMT_Encode4(5740), // Rule ID 76 // |
| 6999 | /* 5734 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule74Enabled), |
| 7000 | /* 5737 */ // Combiner Rule #74: extending_loads; wip_match_opcode 'G_LOAD' |
| 7001 | /* 5737 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner30), |
| 7002 | /* 5740 */ // Label 295: @5740 |
| 7003 | /* 5740 */ GIM_Reject, |
| 7004 | /* 5741 */ // Label 26: @5741 |
| 7005 | /* 5741 */ GIM_Try, /*On fail goto*//*Label 296*/ GIMT_Encode4(5752), // Rule ID 77 // |
| 7006 | /* 5746 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule74Enabled), |
| 7007 | /* 5749 */ // Combiner Rule #74: extending_loads; wip_match_opcode 'G_SEXTLOAD' |
| 7008 | /* 5749 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner30), |
| 7009 | /* 5752 */ // Label 296: @5752 |
| 7010 | /* 5752 */ GIM_Reject, |
| 7011 | /* 5753 */ // Label 27: @5753 |
| 7012 | /* 5753 */ GIM_Try, /*On fail goto*//*Label 297*/ GIMT_Encode4(5764), // Rule ID 78 // |
| 7013 | /* 5758 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule74Enabled), |
| 7014 | /* 5761 */ // Combiner Rule #74: extending_loads; wip_match_opcode 'G_ZEXTLOAD' |
| 7015 | /* 5761 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner30), |
| 7016 | /* 5764 */ // Label 297: @5764 |
| 7017 | /* 5764 */ GIM_Reject, |
| 7018 | /* 5765 */ // Label 28: @5765 |
| 7019 | /* 5765 */ GIM_Try, /*On fail goto*//*Label 298*/ GIMT_Encode4(5776), // Rule ID 106 // |
| 7020 | /* 5770 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule87Enabled), |
| 7021 | /* 5773 */ // Combiner Rule #87: erase_undef_store; wip_match_opcode 'G_STORE' |
| 7022 | /* 5773 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner42), |
| 7023 | /* 5776 */ // Label 298: @5776 |
| 7024 | /* 5776 */ GIM_Reject, |
| 7025 | /* 5777 */ // Label 29: @5777 |
| 7026 | /* 5777 */ GIM_Try, /*On fail goto*//*Label 299*/ GIMT_Encode4(5788), // Rule ID 135 // |
| 7027 | /* 5782 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule97Enabled), |
| 7028 | /* 5785 */ // Combiner Rule #97: anyext_trunc_fold; wip_match_opcode 'G_ANYEXT' |
| 7029 | /* 5785 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner47), |
| 7030 | /* 5788 */ // Label 299: @5788 |
| 7031 | /* 5788 */ GIM_Try, /*On fail goto*//*Label 300*/ GIMT_Encode4(5799), // Rule ID 290 // |
| 7032 | /* 5793 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule190Enabled), |
| 7033 | /* 5796 */ // Combiner Rule #190: constant_fold_cast_op; wip_match_opcode 'G_ANYEXT' |
| 7034 | /* 5796 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner106), |
| 7035 | /* 5799 */ // Label 300: @5799 |
| 7036 | /* 5799 */ GIM_Try, /*On fail goto*//*Label 301*/ GIMT_Encode4(5820), // Rule ID 63 // |
| 7037 | /* 5804 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule61Enabled), |
| 7038 | /* 5807 */ // MIs[0] root |
| 7039 | /* 5807 */ // No operand predicates |
| 7040 | /* 5807 */ // MIs[0] select |
| 7041 | /* 5807 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 7042 | /* 5811 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SELECT), |
| 7043 | /* 5815 */ // MIs[1] cond |
| 7044 | /* 5815 */ // No operand predicates |
| 7045 | /* 5815 */ // MIs[1] true |
| 7046 | /* 5815 */ // No operand predicates |
| 7047 | /* 5815 */ // MIs[1] false |
| 7048 | /* 5815 */ // No operand predicates |
| 7049 | /* 5815 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 7050 | /* 5817 */ // Combiner Rule #61: select_of_anyext |
| 7051 | /* 5817 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner23), |
| 7052 | /* 5820 */ // Label 301: @5820 |
| 7053 | /* 5820 */ GIM_Try, /*On fail goto*//*Label 302*/ GIMT_Encode4(5841), // Rule ID 58 // |
| 7054 | /* 5825 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule56Enabled), |
| 7055 | /* 5828 */ // MIs[0] root |
| 7056 | /* 5828 */ // No operand predicates |
| 7057 | /* 5828 */ // MIs[0] second |
| 7058 | /* 5828 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 7059 | /* 5832 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ANYEXT), |
| 7060 | /* 5836 */ // MIs[1] src |
| 7061 | /* 5836 */ // No operand predicates |
| 7062 | /* 5836 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 7063 | /* 5838 */ // Combiner Rule #56: anyext_of_anyext |
| 7064 | /* 5838 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner21), |
| 7065 | /* 5841 */ // Label 302: @5841 |
| 7066 | /* 5841 */ GIM_Try, /*On fail goto*//*Label 303*/ GIMT_Encode4(5862), // Rule ID 60 // |
| 7067 | /* 5846 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule58Enabled), |
| 7068 | /* 5849 */ // MIs[0] root |
| 7069 | /* 5849 */ // No operand predicates |
| 7070 | /* 5849 */ // MIs[0] second |
| 7071 | /* 5849 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 7072 | /* 5853 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SEXT), |
| 7073 | /* 5857 */ // MIs[1] src |
| 7074 | /* 5857 */ // No operand predicates |
| 7075 | /* 5857 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 7076 | /* 5859 */ // Combiner Rule #58: anyext_of_sext |
| 7077 | /* 5859 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner21), |
| 7078 | /* 5862 */ // Label 303: @5862 |
| 7079 | /* 5862 */ GIM_Try, /*On fail goto*//*Label 304*/ GIMT_Encode4(5883), // Rule ID 59 // |
| 7080 | /* 5867 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule57Enabled), |
| 7081 | /* 5870 */ // MIs[0] root |
| 7082 | /* 5870 */ // No operand predicates |
| 7083 | /* 5870 */ // MIs[0] second |
| 7084 | /* 5870 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 7085 | /* 5874 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ZEXT), |
| 7086 | /* 5878 */ // MIs[1] src |
| 7087 | /* 5878 */ // No operand predicates |
| 7088 | /* 5878 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 7089 | /* 5880 */ // Combiner Rule #57: anyext_of_zext |
| 7090 | /* 5880 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner21), |
| 7091 | /* 5883 */ // Label 304: @5883 |
| 7092 | /* 5883 */ GIM_Try, /*On fail goto*//*Label 305*/ GIMT_Encode4(5904), // Rule ID 95 // |
| 7093 | /* 5888 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule83Enabled), |
| 7094 | /* 5891 */ // MIs[0] dst |
| 7095 | /* 5891 */ // No operand predicates |
| 7096 | /* 5891 */ // MIs[0] __unary_undef_to_undef_match_0.x |
| 7097 | /* 5891 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 7098 | /* 5895 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF), |
| 7099 | /* 5899 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 7100 | /* 5901 */ // Combiner Rule #83: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[2]] |
| 7101 | /* 5901 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner38), |
| 7102 | /* 5904 */ // Label 305: @5904 |
| 7103 | /* 5904 */ GIM_Reject, |
| 7104 | /* 5905 */ // Label 30: @5905 |
| 7105 | /* 5905 */ GIM_Try, /*On fail goto*//*Label 306*/ GIMT_Encode4(5916), // Rule ID 143 // |
| 7106 | /* 5910 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule103Enabled), |
| 7107 | /* 5913 */ // Combiner Rule #103: trunc_buildvector_fold; wip_match_opcode 'G_TRUNC' |
| 7108 | /* 5913 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner49), |
| 7109 | /* 5916 */ // Label 306: @5916 |
| 7110 | /* 5916 */ GIM_Try, /*On fail goto*//*Label 307*/ GIMT_Encode4(5927), // Rule ID 144 // |
| 7111 | /* 5921 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule104Enabled), |
| 7112 | /* 5924 */ // Combiner Rule #104: trunc_lshr_buildvector_fold; wip_match_opcode 'G_TRUNC' |
| 7113 | /* 5924 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner50), |
| 7114 | /* 5927 */ // Label 307: @5927 |
| 7115 | /* 5927 */ GIM_Try, /*On fail goto*//*Label 308*/ GIMT_Encode4(5938), // Rule ID 186 // |
| 7116 | /* 5932 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule142Enabled), |
| 7117 | /* 5935 */ // Combiner Rule #142: trunc_shift; wip_match_opcode 'G_TRUNC' |
| 7118 | /* 5935 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner77), |
| 7119 | /* 5938 */ // Label 308: @5938 |
| 7120 | /* 5938 */ GIM_Try, /*On fail goto*//*Label 309*/ GIMT_Encode4(5959), // Rule ID 64 // |
| 7121 | /* 5943 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule62Enabled), |
| 7122 | /* 5946 */ // MIs[0] root |
| 7123 | /* 5946 */ // No operand predicates |
| 7124 | /* 5946 */ // MIs[0] select |
| 7125 | /* 5946 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 7126 | /* 5950 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SELECT), |
| 7127 | /* 5954 */ // MIs[1] cond |
| 7128 | /* 5954 */ // No operand predicates |
| 7129 | /* 5954 */ // MIs[1] true |
| 7130 | /* 5954 */ // No operand predicates |
| 7131 | /* 5954 */ // MIs[1] false |
| 7132 | /* 5954 */ // No operand predicates |
| 7133 | /* 5954 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 7134 | /* 5956 */ // Combiner Rule #62: select_of_truncate |
| 7135 | /* 5956 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner23), |
| 7136 | /* 5959 */ // Label 309: @5959 |
| 7137 | /* 5959 */ GIM_Try, /*On fail goto*//*Label 310*/ GIMT_Encode4(5988), // Rule ID 66 // |
| 7138 | /* 5964 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule64Enabled), |
| 7139 | /* 5967 */ // MIs[0] root |
| 7140 | /* 5967 */ // No operand predicates |
| 7141 | /* 5967 */ // MIs[0] binop |
| 7142 | /* 5967 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 7143 | /* 5971 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD), |
| 7144 | /* 5975 */ // MIs[1] x |
| 7145 | /* 5975 */ // No operand predicates |
| 7146 | /* 5975 */ // MIs[1] const |
| 7147 | /* 5975 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2] |
| 7148 | /* 5979 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT), |
| 7149 | /* 5983 */ // MIs[2] imm |
| 7150 | /* 5983 */ // No operand predicates |
| 7151 | /* 5983 */ GIM_CheckIsSafeToFold, /*NumInsns*/2, |
| 7152 | /* 5985 */ // Combiner Rule #64: narrow_binop_add |
| 7153 | /* 5985 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner25), |
| 7154 | /* 5988 */ // Label 310: @5988 |
| 7155 | /* 5988 */ GIM_Try, /*On fail goto*//*Label 311*/ GIMT_Encode4(6017), // Rule ID 69 // |
| 7156 | /* 5993 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule67Enabled), |
| 7157 | /* 5996 */ // MIs[0] root |
| 7158 | /* 5996 */ // No operand predicates |
| 7159 | /* 5996 */ // MIs[0] binop |
| 7160 | /* 5996 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 7161 | /* 6000 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_AND), |
| 7162 | /* 6004 */ // MIs[1] x |
| 7163 | /* 6004 */ // No operand predicates |
| 7164 | /* 6004 */ // MIs[1] const |
| 7165 | /* 6004 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2] |
| 7166 | /* 6008 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT), |
| 7167 | /* 6012 */ // MIs[2] imm |
| 7168 | /* 6012 */ // No operand predicates |
| 7169 | /* 6012 */ GIM_CheckIsSafeToFold, /*NumInsns*/2, |
| 7170 | /* 6014 */ // Combiner Rule #67: narrow_binop_and |
| 7171 | /* 6014 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner25), |
| 7172 | /* 6017 */ // Label 311: @6017 |
| 7173 | /* 6017 */ GIM_Try, /*On fail goto*//*Label 312*/ GIMT_Encode4(6046), // Rule ID 68 // |
| 7174 | /* 6022 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule66Enabled), |
| 7175 | /* 6025 */ // MIs[0] root |
| 7176 | /* 6025 */ // No operand predicates |
| 7177 | /* 6025 */ // MIs[0] binop |
| 7178 | /* 6025 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 7179 | /* 6029 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_MUL), |
| 7180 | /* 6033 */ // MIs[1] x |
| 7181 | /* 6033 */ // No operand predicates |
| 7182 | /* 6033 */ // MIs[1] const |
| 7183 | /* 6033 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2] |
| 7184 | /* 6037 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT), |
| 7185 | /* 6041 */ // MIs[2] imm |
| 7186 | /* 6041 */ // No operand predicates |
| 7187 | /* 6041 */ GIM_CheckIsSafeToFold, /*NumInsns*/2, |
| 7188 | /* 6043 */ // Combiner Rule #66: narrow_binop_mul |
| 7189 | /* 6043 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner25), |
| 7190 | /* 6046 */ // Label 312: @6046 |
| 7191 | /* 6046 */ GIM_Try, /*On fail goto*//*Label 313*/ GIMT_Encode4(6075), // Rule ID 70 // |
| 7192 | /* 6051 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule68Enabled), |
| 7193 | /* 6054 */ // MIs[0] root |
| 7194 | /* 6054 */ // No operand predicates |
| 7195 | /* 6054 */ // MIs[0] binop |
| 7196 | /* 6054 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 7197 | /* 6058 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_OR), |
| 7198 | /* 6062 */ // MIs[1] x |
| 7199 | /* 6062 */ // No operand predicates |
| 7200 | /* 6062 */ // MIs[1] const |
| 7201 | /* 6062 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2] |
| 7202 | /* 6066 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT), |
| 7203 | /* 6070 */ // MIs[2] imm |
| 7204 | /* 6070 */ // No operand predicates |
| 7205 | /* 6070 */ GIM_CheckIsSafeToFold, /*NumInsns*/2, |
| 7206 | /* 6072 */ // Combiner Rule #68: narrow_binop_or |
| 7207 | /* 6072 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner25), |
| 7208 | /* 6075 */ // Label 313: @6075 |
| 7209 | /* 6075 */ GIM_Try, /*On fail goto*//*Label 314*/ GIMT_Encode4(6104), // Rule ID 67 // |
| 7210 | /* 6080 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule65Enabled), |
| 7211 | /* 6083 */ // MIs[0] root |
| 7212 | /* 6083 */ // No operand predicates |
| 7213 | /* 6083 */ // MIs[0] binop |
| 7214 | /* 6083 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 7215 | /* 6087 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB), |
| 7216 | /* 6091 */ // MIs[1] x |
| 7217 | /* 6091 */ // No operand predicates |
| 7218 | /* 6091 */ // MIs[1] const |
| 7219 | /* 6091 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2] |
| 7220 | /* 6095 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT), |
| 7221 | /* 6099 */ // MIs[2] imm |
| 7222 | /* 6099 */ // No operand predicates |
| 7223 | /* 6099 */ GIM_CheckIsSafeToFold, /*NumInsns*/2, |
| 7224 | /* 6101 */ // Combiner Rule #65: narrow_binop_sub |
| 7225 | /* 6101 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner25), |
| 7226 | /* 6104 */ // Label 314: @6104 |
| 7227 | /* 6104 */ GIM_Try, /*On fail goto*//*Label 315*/ GIMT_Encode4(6136), // Rule ID 415 // |
| 7228 | /* 6109 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule249Enabled), |
| 7229 | /* 6112 */ // MIs[0] dst |
| 7230 | /* 6112 */ // No operand predicates |
| 7231 | /* 6112 */ // MIs[0] min |
| 7232 | /* 6112 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 7233 | /* 6116 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_UMIN), |
| 7234 | /* 6120 */ // MIs[1] x |
| 7235 | /* 6120 */ // No operand predicates |
| 7236 | /* 6120 */ // MIs[1] y |
| 7237 | /* 6120 */ // No operand predicates |
| 7238 | /* 6120 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner15), |
| 7239 | /* 6124 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 7240 | /* 6126 */ // Combiner Rule #249: trunc_usatu |
| 7241 | /* 6126 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_TRUNC_USAT_U), |
| 7242 | /* 6129 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst |
| 7243 | /* 6131 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x |
| 7244 | /* 6135 */ GIR_EraseRootFromParent_Done, |
| 7245 | /* 6136 */ // Label 315: @6136 |
| 7246 | /* 6136 */ GIM_Try, /*On fail goto*//*Label 316*/ GIMT_Encode4(6165), // Rule ID 71 // |
| 7247 | /* 6141 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule69Enabled), |
| 7248 | /* 6144 */ // MIs[0] root |
| 7249 | /* 6144 */ // No operand predicates |
| 7250 | /* 6144 */ // MIs[0] binop |
| 7251 | /* 6144 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 7252 | /* 6148 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_XOR), |
| 7253 | /* 6152 */ // MIs[1] x |
| 7254 | /* 6152 */ // No operand predicates |
| 7255 | /* 6152 */ // MIs[1] const |
| 7256 | /* 6152 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2] |
| 7257 | /* 6156 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT), |
| 7258 | /* 6160 */ // MIs[2] imm |
| 7259 | /* 6160 */ // No operand predicates |
| 7260 | /* 6160 */ GIM_CheckIsSafeToFold, /*NumInsns*/2, |
| 7261 | /* 6162 */ // Combiner Rule #69: narrow_binop_xor |
| 7262 | /* 6162 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner25), |
| 7263 | /* 6165 */ // Label 316: @6165 |
| 7264 | /* 6165 */ GIM_Try, /*On fail goto*//*Label 317*/ GIMT_Encode4(6186), // Rule ID 53 // |
| 7265 | /* 6170 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule51Enabled), |
| 7266 | /* 6173 */ // MIs[0] root |
| 7267 | /* 6173 */ // No operand predicates |
| 7268 | /* 6173 */ // MIs[0] ext |
| 7269 | /* 6173 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 7270 | /* 6177 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ANYEXT), |
| 7271 | /* 6181 */ // MIs[1] src |
| 7272 | /* 6181 */ // No operand predicates |
| 7273 | /* 6181 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 7274 | /* 6183 */ // Combiner Rule #51: truncate_of_anyext |
| 7275 | /* 6183 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner20), |
| 7276 | /* 6186 */ // Label 317: @6186 |
| 7277 | /* 6186 */ GIM_Try, /*On fail goto*//*Label 318*/ GIMT_Encode4(6210), // Rule ID 65 // |
| 7278 | /* 6191 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule63Enabled), |
| 7279 | /* 6194 */ // MIs[0] root |
| 7280 | /* 6194 */ // No operand predicates |
| 7281 | /* 6194 */ // MIs[0] bv |
| 7282 | /* 6194 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 7283 | /* 6198 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR), |
| 7284 | /* 6202 */ GIM_CheckNumOperandsGE, /*MI*/1, /*Expected*/2, |
| 7285 | /* 6205 */ // MIs[1] unused |
| 7286 | /* 6205 */ // No operand predicates |
| 7287 | /* 6205 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 7288 | /* 6207 */ // Combiner Rule #63: buildvector_of_truncate |
| 7289 | /* 6207 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner24), |
| 7290 | /* 6210 */ // Label 318: @6210 |
| 7291 | /* 6210 */ GIM_Try, /*On fail goto*//*Label 319*/ GIMT_Encode4(6231), // Rule ID 52 // |
| 7292 | /* 6215 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule50Enabled), |
| 7293 | /* 6218 */ // MIs[0] root |
| 7294 | /* 6218 */ // No operand predicates |
| 7295 | /* 6218 */ // MIs[0] ext |
| 7296 | /* 6218 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 7297 | /* 6222 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SEXT), |
| 7298 | /* 6226 */ // MIs[1] src |
| 7299 | /* 6226 */ // No operand predicates |
| 7300 | /* 6226 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 7301 | /* 6228 */ // Combiner Rule #50: truncate_of_sext |
| 7302 | /* 6228 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner20), |
| 7303 | /* 6231 */ // Label 319: @6231 |
| 7304 | /* 6231 */ GIM_Try, /*On fail goto*//*Label 320*/ GIMT_Encode4(6252), // Rule ID 51 // |
| 7305 | /* 6236 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule49Enabled), |
| 7306 | /* 6239 */ // MIs[0] root |
| 7307 | /* 6239 */ // No operand predicates |
| 7308 | /* 6239 */ // MIs[0] ext |
| 7309 | /* 6239 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 7310 | /* 6243 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ZEXT), |
| 7311 | /* 6247 */ // MIs[1] src |
| 7312 | /* 6247 */ // No operand predicates |
| 7313 | /* 6247 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 7314 | /* 6249 */ // Combiner Rule #49: truncate_of_zext |
| 7315 | /* 6249 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner20), |
| 7316 | /* 6252 */ // Label 320: @6252 |
| 7317 | /* 6252 */ GIM_Try, /*On fail goto*//*Label 321*/ GIMT_Encode4(6273), // Rule ID 93 // |
| 7318 | /* 6257 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule83Enabled), |
| 7319 | /* 6260 */ // MIs[0] dst |
| 7320 | /* 6260 */ // No operand predicates |
| 7321 | /* 6260 */ // MIs[0] __unary_undef_to_undef_match_0.x |
| 7322 | /* 6260 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 7323 | /* 6264 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF), |
| 7324 | /* 6268 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 7325 | /* 6270 */ // Combiner Rule #83: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[0]] |
| 7326 | /* 6270 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner38), |
| 7327 | /* 6273 */ // Label 321: @6273 |
| 7328 | /* 6273 */ GIM_Try, /*On fail goto*//*Label 322*/ GIMT_Encode4(6294), // Rule ID 72 // |
| 7329 | /* 6278 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule70Enabled), |
| 7330 | /* 6281 */ // MIs[0] root |
| 7331 | /* 6281 */ // No operand predicates |
| 7332 | /* 6281 */ // MIs[0] int |
| 7333 | /* 6281 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 7334 | /* 6285 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT), |
| 7335 | /* 6289 */ // MIs[1] imm |
| 7336 | /* 6289 */ // No operand predicates |
| 7337 | /* 6289 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 7338 | /* 6291 */ // Combiner Rule #70: integer_of_truncate |
| 7339 | /* 6291 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner26), |
| 7340 | /* 6294 */ // Label 322: @6294 |
| 7341 | /* 6294 */ GIM_Try, /*On fail goto*//*Label 323*/ GIMT_Encode4(6305), // Rule ID 413 // |
| 7342 | /* 6299 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule247Enabled), |
| 7343 | /* 6302 */ // MIs[0] dst |
| 7344 | /* 6302 */ // No operand predicates |
| 7345 | /* 6302 */ // MIs[0] src |
| 7346 | /* 6302 */ // No operand predicates |
| 7347 | /* 6302 */ // Combiner Rule #247: trunc_ssats |
| 7348 | /* 6302 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner154), |
| 7349 | /* 6305 */ // Label 323: @6305 |
| 7350 | /* 6305 */ GIM_Try, /*On fail goto*//*Label 324*/ GIMT_Encode4(6316), // Rule ID 414 // |
| 7351 | /* 6310 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule248Enabled), |
| 7352 | /* 6313 */ // MIs[0] dst |
| 7353 | /* 6313 */ // No operand predicates |
| 7354 | /* 6313 */ // MIs[0] src |
| 7355 | /* 6313 */ // No operand predicates |
| 7356 | /* 6313 */ // Combiner Rule #248: trunc_ssatu |
| 7357 | /* 6313 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner155), |
| 7358 | /* 6316 */ // Label 324: @6316 |
| 7359 | /* 6316 */ GIM_Reject, |
| 7360 | /* 6317 */ // Label 31: @6317 |
| 7361 | /* 6317 */ GIM_Try, /*On fail goto*//*Label 325*/ GIMT_Encode4(6349), // Rule ID 416 // |
| 7362 | /* 6322 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule250Enabled), |
| 7363 | /* 6325 */ // MIs[0] dst |
| 7364 | /* 6325 */ // No operand predicates |
| 7365 | /* 6325 */ // MIs[0] src |
| 7366 | /* 6325 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 7367 | /* 6329 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FPTOUI), |
| 7368 | /* 6333 */ // MIs[1] x |
| 7369 | /* 6333 */ // No operand predicates |
| 7370 | /* 6333 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner16), |
| 7371 | /* 6337 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 7372 | /* 6339 */ // Combiner Rule #250: truncusatu_to_fptouisat |
| 7373 | /* 6339 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FPTOUI_SAT), |
| 7374 | /* 6342 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst |
| 7375 | /* 6344 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x |
| 7376 | /* 6348 */ GIR_EraseRootFromParent_Done, |
| 7377 | /* 6349 */ // Label 325: @6349 |
| 7378 | /* 6349 */ GIM_Reject, |
| 7379 | /* 6350 */ // Label 32: @6350 |
| 7380 | /* 6350 */ GIM_Try, /*On fail goto*//*Label 326*/ GIMT_Encode4(6361), // Rule ID 289 // |
| 7381 | /* 6355 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule190Enabled), |
| 7382 | /* 6358 */ // Combiner Rule #190: constant_fold_cast_op; wip_match_opcode 'G_SEXT' |
| 7383 | /* 6358 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner106), |
| 7384 | /* 6361 */ // Label 326: @6361 |
| 7385 | /* 6361 */ GIM_Try, /*On fail goto*//*Label 327*/ GIMT_Encode4(6382), // Rule ID 57 // |
| 7386 | /* 6366 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule55Enabled), |
| 7387 | /* 6369 */ // MIs[0] root |
| 7388 | /* 6369 */ // No operand predicates |
| 7389 | /* 6369 */ // MIs[0] second |
| 7390 | /* 6369 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 7391 | /* 6373 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ANYEXT), |
| 7392 | /* 6377 */ // MIs[1] src |
| 7393 | /* 6377 */ // No operand predicates |
| 7394 | /* 6377 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 7395 | /* 6379 */ // Combiner Rule #55: sext_of_anyext |
| 7396 | /* 6379 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner21), |
| 7397 | /* 6382 */ // Label 327: @6382 |
| 7398 | /* 6382 */ GIM_Try, /*On fail goto*//*Label 328*/ GIMT_Encode4(6403), // Rule ID 56 // |
| 7399 | /* 6387 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule54Enabled), |
| 7400 | /* 6390 */ // MIs[0] root |
| 7401 | /* 6390 */ // No operand predicates |
| 7402 | /* 6390 */ // MIs[0] second |
| 7403 | /* 6390 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 7404 | /* 6394 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SEXT), |
| 7405 | /* 6398 */ // MIs[1] src |
| 7406 | /* 6398 */ // No operand predicates |
| 7407 | /* 6398 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 7408 | /* 6400 */ // Combiner Rule #54: sext_of_sext |
| 7409 | /* 6400 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner21), |
| 7410 | /* 6403 */ // Label 328: @6403 |
| 7411 | /* 6403 */ GIM_Try, /*On fail goto*//*Label 329*/ GIMT_Encode4(6424), // Rule ID 392 // |
| 7412 | /* 6408 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule228Enabled), |
| 7413 | /* 6411 */ // MIs[0] root |
| 7414 | /* 6411 */ // No operand predicates |
| 7415 | /* 6411 */ // MIs[0] src |
| 7416 | /* 6411 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 7417 | /* 6415 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_TRUNC), |
| 7418 | /* 6419 */ // MIs[1] x |
| 7419 | /* 6419 */ // No operand predicates |
| 7420 | /* 6419 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 7421 | /* 6421 */ // Combiner Rule #228: sext_trunc |
| 7422 | /* 6421 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner135), |
| 7423 | /* 6424 */ // Label 329: @6424 |
| 7424 | /* 6424 */ GIM_Reject, |
| 7425 | /* 6425 */ // Label 33: @6425 |
| 7426 | /* 6425 */ GIM_Try, /*On fail goto*//*Label 330*/ GIMT_Encode4(6436), // Rule ID 171 // |
| 7427 | /* 6430 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule127Enabled), |
| 7428 | /* 6433 */ // Combiner Rule #127: sext_inreg_of_load; wip_match_opcode 'G_SEXT_INREG' |
| 7429 | /* 6433 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner65), |
| 7430 | /* 6436 */ // Label 330: @6436 |
| 7431 | /* 6436 */ GIM_Try, /*On fail goto*//*Label 331*/ GIMT_Encode4(6447), // Rule ID 181 // |
| 7432 | /* 6441 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule137Enabled), |
| 7433 | /* 6444 */ // Combiner Rule #137: redundant_sext_inreg; wip_match_opcode 'G_SEXT_INREG' |
| 7434 | /* 6444 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner72), |
| 7435 | /* 6447 */ // Label 331: @6447 |
| 7436 | /* 6447 */ GIM_Try, /*On fail goto*//*Label 332*/ GIMT_Encode4(6458), // Rule ID 250 // |
| 7437 | /* 6452 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule183Enabled), |
| 7438 | /* 6455 */ // Combiner Rule #183: bitfield_extract_from_sext_inreg; wip_match_opcode 'G_SEXT_INREG' |
| 7439 | /* 6455 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner99), |
| 7440 | /* 6458 */ // Label 332: @6458 |
| 7441 | /* 6458 */ GIM_Try, /*On fail goto*//*Label 333*/ GIMT_Encode4(6479), // Rule ID 61 // |
| 7442 | /* 6463 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule59Enabled), |
| 7443 | /* 6466 */ // MIs[0] dst |
| 7444 | /* 6466 */ // No operand predicates |
| 7445 | /* 6466 */ // MIs[0] x |
| 7446 | /* 6466 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 7447 | /* 6470 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SEXT_INREG), |
| 7448 | /* 6474 */ // MIs[1] src |
| 7449 | /* 6474 */ // No operand predicates |
| 7450 | /* 6474 */ // MIs[1] a |
| 7451 | /* 6474 */ // No operand predicates |
| 7452 | /* 6474 */ // MIs[0] b |
| 7453 | /* 6474 */ // No operand predicates |
| 7454 | /* 6474 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 7455 | /* 6476 */ // Combiner Rule #59: sext_inreg_of_sext_inreg |
| 7456 | /* 6476 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner22), |
| 7457 | /* 6479 */ // Label 333: @6479 |
| 7458 | /* 6479 */ GIM_Try, /*On fail goto*//*Label 334*/ GIMT_Encode4(6490), // Rule ID 185 // |
| 7459 | /* 6484 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule141Enabled), |
| 7460 | /* 6487 */ // MIs[0] dst |
| 7461 | /* 6487 */ // No operand predicates |
| 7462 | /* 6487 */ // MIs[0] src |
| 7463 | /* 6487 */ // No operand predicates |
| 7464 | /* 6487 */ // MIs[0] imm |
| 7465 | /* 6487 */ // No operand predicates |
| 7466 | /* 6487 */ // Combiner Rule #141: sext_inreg_to_zext_inreg |
| 7467 | /* 6487 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner76), |
| 7468 | /* 6490 */ // Label 334: @6490 |
| 7469 | /* 6490 */ GIM_Reject, |
| 7470 | /* 6491 */ // Label 34: @6491 |
| 7471 | /* 6491 */ GIM_Try, /*On fail goto*//*Label 335*/ GIMT_Encode4(6502), // Rule ID 184 // |
| 7472 | /* 6496 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule140Enabled), |
| 7473 | /* 6499 */ // Combiner Rule #140: zext_trunc_fold; wip_match_opcode 'G_ZEXT' |
| 7474 | /* 6499 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner75), |
| 7475 | /* 6502 */ // Label 335: @6502 |
| 7476 | /* 6502 */ GIM_Try, /*On fail goto*//*Label 336*/ GIMT_Encode4(6513), // Rule ID 288 // |
| 7477 | /* 6507 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule190Enabled), |
| 7478 | /* 6510 */ // Combiner Rule #190: constant_fold_cast_op; wip_match_opcode 'G_ZEXT' |
| 7479 | /* 6510 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner106), |
| 7480 | /* 6513 */ // Label 336: @6513 |
| 7481 | /* 6513 */ GIM_Try, /*On fail goto*//*Label 337*/ GIMT_Encode4(6534), // Rule ID 62 // |
| 7482 | /* 6518 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule60Enabled), |
| 7483 | /* 6521 */ // MIs[0] root |
| 7484 | /* 6521 */ // No operand predicates |
| 7485 | /* 6521 */ // MIs[0] select |
| 7486 | /* 6521 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 7487 | /* 6525 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SELECT), |
| 7488 | /* 6529 */ // MIs[1] cond |
| 7489 | /* 6529 */ // No operand predicates |
| 7490 | /* 6529 */ // MIs[1] true |
| 7491 | /* 6529 */ // No operand predicates |
| 7492 | /* 6529 */ // MIs[1] false |
| 7493 | /* 6529 */ // No operand predicates |
| 7494 | /* 6529 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 7495 | /* 6531 */ // Combiner Rule #60: select_of_zext |
| 7496 | /* 6531 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner23), |
| 7497 | /* 6534 */ // Label 337: @6534 |
| 7498 | /* 6534 */ GIM_Try, /*On fail goto*//*Label 338*/ GIMT_Encode4(6555), // Rule ID 55 // |
| 7499 | /* 6539 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule53Enabled), |
| 7500 | /* 6542 */ // MIs[0] root |
| 7501 | /* 6542 */ // No operand predicates |
| 7502 | /* 6542 */ // MIs[0] second |
| 7503 | /* 6542 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 7504 | /* 6546 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ANYEXT), |
| 7505 | /* 6550 */ // MIs[1] src |
| 7506 | /* 6550 */ // No operand predicates |
| 7507 | /* 6550 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 7508 | /* 6552 */ // Combiner Rule #53: zext_of_anyext |
| 7509 | /* 6552 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner21), |
| 7510 | /* 6555 */ // Label 338: @6555 |
| 7511 | /* 6555 */ GIM_Try, /*On fail goto*//*Label 339*/ GIMT_Encode4(6582), // Rule ID 393 // |
| 7512 | /* 6560 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule229Enabled), |
| 7513 | /* 6563 */ // MIs[0] root |
| 7514 | /* 6563 */ // No operand predicates |
| 7515 | /* 6563 */ // MIs[0] src |
| 7516 | /* 6563 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 7517 | /* 6567 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_TRUNC), |
| 7518 | /* 6571 */ GIM_MIFlags, /*MI*/1, GIMT_Encode4(MachineInstr::NoUWrap), |
| 7519 | /* 6577 */ // MIs[1] x |
| 7520 | /* 6577 */ // No operand predicates |
| 7521 | /* 6577 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 7522 | /* 6579 */ // Combiner Rule #229: zext_trunc |
| 7523 | /* 6579 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner136), |
| 7524 | /* 6582 */ // Label 339: @6582 |
| 7525 | /* 6582 */ GIM_Try, /*On fail goto*//*Label 340*/ GIMT_Encode4(6603), // Rule ID 54 // |
| 7526 | /* 6587 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule52Enabled), |
| 7527 | /* 6590 */ // MIs[0] root |
| 7528 | /* 6590 */ // No operand predicates |
| 7529 | /* 6590 */ // MIs[0] second |
| 7530 | /* 6590 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 7531 | /* 6594 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ZEXT), |
| 7532 | /* 6598 */ // MIs[1] src |
| 7533 | /* 6598 */ // No operand predicates |
| 7534 | /* 6598 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 7535 | /* 6600 */ // Combiner Rule #52: zext_of_zext |
| 7536 | /* 6600 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner21), |
| 7537 | /* 6603 */ // Label 340: @6603 |
| 7538 | /* 6603 */ GIM_Try, /*On fail goto*//*Label 341*/ GIMT_Encode4(6620), // Rule ID 394 // |
| 7539 | /* 6608 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule230Enabled), |
| 7540 | /* 6611 */ GIM_MIFlags, /*MI*/0, GIMT_Encode4(MachineInstr::NonNeg), |
| 7541 | /* 6617 */ // MIs[0] root |
| 7542 | /* 6617 */ // No operand predicates |
| 7543 | /* 6617 */ // MIs[0] x |
| 7544 | /* 6617 */ // No operand predicates |
| 7545 | /* 6617 */ // Combiner Rule #230: nneg_zext |
| 7546 | /* 6617 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner137), |
| 7547 | /* 6620 */ // Label 341: @6620 |
| 7548 | /* 6620 */ GIM_Reject, |
| 7549 | /* 6621 */ // Label 35: @6621 |
| 7550 | /* 6621 */ GIM_Try, /*On fail goto*//*Label 342*/ GIMT_Encode4(6632), // Rule ID 86 // |
| 7551 | /* 6626 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule80Enabled), |
| 7552 | /* 6629 */ // Combiner Rule #80: binop_left_undef_to_zero; wip_match_opcode 'G_SHL' |
| 7553 | /* 6629 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner36), |
| 7554 | /* 6632 */ // Label 342: @6632 |
| 7555 | /* 6632 */ GIM_Try, /*On fail goto*//*Label 343*/ GIMT_Encode4(6643), // Rule ID 89 // |
| 7556 | /* 6637 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule81Enabled), |
| 7557 | /* 6640 */ // Combiner Rule #81: binop_right_undef_to_undef; wip_match_opcode 'G_SHL' |
| 7558 | /* 6640 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner37), |
| 7559 | /* 6643 */ // Label 343: @6643 |
| 7560 | /* 6643 */ GIM_Try, /*On fail goto*//*Label 344*/ GIMT_Encode4(6654), // Rule ID 221 // |
| 7561 | /* 6648 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule169Enabled), |
| 7562 | /* 6651 */ // Combiner Rule #169: shift_immed_chain; wip_match_opcode 'G_SHL' |
| 7563 | /* 6651 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner91), |
| 7564 | /* 6654 */ // Label 344: @6654 |
| 7565 | /* 6654 */ GIM_Try, /*On fail goto*//*Label 345*/ GIMT_Encode4(6665), // Rule ID 226 // |
| 7566 | /* 6659 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule170Enabled), |
| 7567 | /* 6662 */ // Combiner Rule #170: shift_of_shifted_logic_chain; wip_match_opcode 'G_SHL' |
| 7568 | /* 6662 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner92), |
| 7569 | /* 6665 */ // Label 345: @6665 |
| 7570 | /* 6665 */ GIM_Try, /*On fail goto*//*Label 346*/ GIMT_Encode4(6676), // Rule ID 249 // |
| 7571 | /* 6670 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule182Enabled), |
| 7572 | /* 6673 */ // Combiner Rule #182: commute_shift; wip_match_opcode 'G_SHL' |
| 7573 | /* 6673 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner98), |
| 7574 | /* 6676 */ // Label 346: @6676 |
| 7575 | /* 6676 */ GIM_Try, /*On fail goto*//*Label 347*/ GIMT_Encode4(6687), // Rule ID 263 // |
| 7576 | /* 6681 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled), |
| 7577 | /* 6684 */ // Combiner Rule #187: constant_fold_binop; wip_match_opcode 'G_SHL' |
| 7578 | /* 6684 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103), |
| 7579 | /* 6687 */ // Label 347: @6687 |
| 7580 | /* 6687 */ GIM_Try, /*On fail goto*//*Label 348*/ GIMT_Encode4(6698), // Rule ID 328 // |
| 7581 | /* 6692 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled), |
| 7582 | /* 6695 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_SHL' |
| 7583 | /* 6695 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119), |
| 7584 | /* 6698 */ // Label 348: @6698 |
| 7585 | /* 6698 */ GIM_Try, /*On fail goto*//*Label 349*/ GIMT_Encode4(6733), // Rule ID 47 // |
| 7586 | /* 6703 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule45Enabled), |
| 7587 | /* 6706 */ GIM_MIFlags, /*MI*/0, GIMT_Encode4(MachineInstr::NoSWrap), |
| 7588 | /* 6712 */ // MIs[0] root |
| 7589 | /* 6712 */ // No operand predicates |
| 7590 | /* 6712 */ // MIs[0] left |
| 7591 | /* 6712 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 7592 | /* 6716 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_VSCALE), |
| 7593 | /* 6720 */ // MIs[1] imm |
| 7594 | /* 6720 */ // No operand predicates |
| 7595 | /* 6720 */ // MIs[0] x |
| 7596 | /* 6720 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2] |
| 7597 | /* 6724 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT), |
| 7598 | /* 6728 */ // MIs[2] imm1 |
| 7599 | /* 6728 */ // No operand predicates |
| 7600 | /* 6728 */ GIM_CheckIsSafeToFold, /*NumInsns*/2, |
| 7601 | /* 6730 */ // Combiner Rule #45: shl_of_vscale |
| 7602 | /* 6730 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner17), |
| 7603 | /* 6733 */ // Label 349: @6733 |
| 7604 | /* 6733 */ GIM_Try, /*On fail goto*//*Label 350*/ GIMT_Encode4(6773), // Rule ID 124 // |
| 7605 | /* 6738 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled), |
| 7606 | /* 6741 */ // MIs[0] dst |
| 7607 | /* 6741 */ // No operand predicates |
| 7608 | /* 6741 */ // MIs[0] zero |
| 7609 | /* 6741 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 7610 | /* 6745 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT), |
| 7611 | /* 6749 */ // MIs[1] Operand 1 |
| 7612 | /* 6749 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0), |
| 7613 | /* 6760 */ // MIs[0] rhs |
| 7614 | /* 6760 */ // No operand predicates |
| 7615 | /* 6760 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 7616 | /* 6765 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 7617 | /* 6767 */ // Combiner Rule #93: binop_left_to_zero @ [__binop_left_to_zero_match_0[0]] |
| 7618 | /* 6767 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 7619 | /* 6772 */ GIR_EraseRootFromParent_Done, |
| 7620 | /* 6773 */ // Label 350: @6773 |
| 7621 | /* 6773 */ GIM_Try, /*On fail goto*//*Label 351*/ GIMT_Encode4(6796), // Rule ID 114 // |
| 7622 | /* 6778 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled), |
| 7623 | /* 6781 */ // MIs[0] dst |
| 7624 | /* 6781 */ // No operand predicates |
| 7625 | /* 6781 */ // MIs[0] lhs |
| 7626 | /* 6781 */ // No operand predicates |
| 7627 | /* 6781 */ // MIs[0] Operand 2 |
| 7628 | /* 6781 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0, |
| 7629 | /* 6785 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 7630 | /* 6790 */ // Combiner Rule #90: right_identity_zero @ [__right_identity_zero_match_0[4]] |
| 7631 | /* 6790 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 7632 | /* 6795 */ GIR_EraseRootFromParent_Done, |
| 7633 | /* 6796 */ // Label 351: @6796 |
| 7634 | /* 6796 */ GIM_Try, /*On fail goto*//*Label 352*/ GIMT_Encode4(6807), // Rule ID 156 // |
| 7635 | /* 6801 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule114Enabled), |
| 7636 | /* 6804 */ // MIs[0] root |
| 7637 | /* 6804 */ // No operand predicates |
| 7638 | /* 6804 */ // MIs[0] mi.shifted |
| 7639 | /* 6804 */ // No operand predicates |
| 7640 | /* 6804 */ // MIs[0] mi.amt |
| 7641 | /* 6804 */ // No operand predicates |
| 7642 | /* 6804 */ // Combiner Rule #114: shifts_too_big @ [mi[0]] |
| 7643 | /* 6804 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner55), |
| 7644 | /* 6807 */ // Label 352: @6807 |
| 7645 | /* 6807 */ GIM_Try, /*On fail goto*//*Label 353*/ GIMT_Encode4(6818), // Rule ID 172 // |
| 7646 | /* 6812 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule128Enabled), |
| 7647 | /* 6815 */ // MIs[0] dst |
| 7648 | /* 6815 */ // No operand predicates |
| 7649 | /* 6815 */ // MIs[0] src0 |
| 7650 | /* 6815 */ // No operand predicates |
| 7651 | /* 6815 */ // MIs[0] src1 |
| 7652 | /* 6815 */ // No operand predicates |
| 7653 | /* 6815 */ // Combiner Rule #128: reduce_shl_of_extend |
| 7654 | /* 6815 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner66), |
| 7655 | /* 6818 */ // Label 353: @6818 |
| 7656 | /* 6818 */ GIM_Reject, |
| 7657 | /* 6819 */ // Label 36: @6819 |
| 7658 | /* 6819 */ GIM_Try, /*On fail goto*//*Label 354*/ GIMT_Encode4(6830), // Rule ID 91 // |
| 7659 | /* 6824 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule81Enabled), |
| 7660 | /* 6827 */ // Combiner Rule #81: binop_right_undef_to_undef; wip_match_opcode 'G_LSHR' |
| 7661 | /* 6827 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner37), |
| 7662 | /* 6830 */ // Label 354: @6830 |
| 7663 | /* 6830 */ GIM_Try, /*On fail goto*//*Label 355*/ GIMT_Encode4(6841), // Rule ID 223 // |
| 7664 | /* 6835 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule169Enabled), |
| 7665 | /* 6838 */ // Combiner Rule #169: shift_immed_chain; wip_match_opcode 'G_LSHR' |
| 7666 | /* 6838 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner91), |
| 7667 | /* 6841 */ // Label 355: @6841 |
| 7668 | /* 6841 */ GIM_Try, /*On fail goto*//*Label 356*/ GIMT_Encode4(6852), // Rule ID 228 // |
| 7669 | /* 6846 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule170Enabled), |
| 7670 | /* 6849 */ // Combiner Rule #170: shift_of_shifted_logic_chain; wip_match_opcode 'G_LSHR' |
| 7671 | /* 6849 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner92), |
| 7672 | /* 6852 */ // Label 356: @6852 |
| 7673 | /* 6852 */ GIM_Try, /*On fail goto*//*Label 357*/ GIMT_Encode4(6863), // Rule ID 253 // |
| 7674 | /* 6857 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule185Enabled), |
| 7675 | /* 6860 */ // Combiner Rule #185: bitfield_extract_from_shr; wip_match_opcode 'G_LSHR' |
| 7676 | /* 6860 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner101), |
| 7677 | /* 6863 */ // Label 357: @6863 |
| 7678 | /* 6863 */ GIM_Try, /*On fail goto*//*Label 358*/ GIMT_Encode4(6874), // Rule ID 255 // |
| 7679 | /* 6868 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule186Enabled), |
| 7680 | /* 6871 */ // Combiner Rule #186: bitfield_extract_from_shr_and; wip_match_opcode 'G_LSHR' |
| 7681 | /* 6871 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner102), |
| 7682 | /* 6874 */ // Label 358: @6874 |
| 7683 | /* 6874 */ GIM_Try, /*On fail goto*//*Label 359*/ GIMT_Encode4(6885), // Rule ID 260 // |
| 7684 | /* 6879 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled), |
| 7685 | /* 6882 */ // Combiner Rule #187: constant_fold_binop; wip_match_opcode 'G_LSHR' |
| 7686 | /* 6882 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103), |
| 7687 | /* 6885 */ // Label 359: @6885 |
| 7688 | /* 6885 */ GIM_Try, /*On fail goto*//*Label 360*/ GIMT_Encode4(6896), // Rule ID 326 // |
| 7689 | /* 6890 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled), |
| 7690 | /* 6893 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_LSHR' |
| 7691 | /* 6893 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119), |
| 7692 | /* 6896 */ // Label 360: @6896 |
| 7693 | /* 6896 */ GIM_Try, /*On fail goto*//*Label 361*/ GIMT_Encode4(6985), // Rule ID 434 // |
| 7694 | /* 6901 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule265Enabled), |
| 7695 | /* 6904 */ // MIs[0] dst |
| 7696 | /* 6904 */ // No operand predicates |
| 7697 | /* 6904 */ // MIs[0] sum |
| 7698 | /* 6904 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 7699 | /* 6908 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD), |
| 7700 | /* 6912 */ // MIs[1] inner |
| 7701 | /* 6912 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2] |
| 7702 | /* 6916 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ADD), |
| 7703 | /* 6920 */ // MIs[2] ext1 |
| 7704 | /* 6920 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/2, /*OpIdx*/1, // MIs[3] |
| 7705 | /* 6924 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_ZEXT), |
| 7706 | /* 6928 */ // MIs[3] x |
| 7707 | /* 6928 */ GIM_RecordRegType, /*MI*/3, /*Op*/1, /*TempTypeIdx*/255, |
| 7708 | /* 6932 */ // MIs[2] ext2 |
| 7709 | /* 6932 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/4, /*MI*/2, /*OpIdx*/2, // MIs[4] |
| 7710 | /* 6936 */ GIM_CheckOpcode, /*MI*/4, GIMT_Encode2(TargetOpcode::G_ZEXT), |
| 7711 | /* 6940 */ // MIs[4] y |
| 7712 | /* 6940 */ // No operand predicates |
| 7713 | /* 6940 */ // MIs[1] Operand 2 |
| 7714 | /* 6940 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/2, 1, |
| 7715 | /* 6944 */ // MIs[0] Operand 2 |
| 7716 | /* 6944 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 1, |
| 7717 | /* 6948 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner22), |
| 7718 | /* 6952 */ GIM_CheckIsSafeToFold, /*NumInsns*/4, |
| 7719 | /* 6954 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255, |
| 7720 | /* 6957 */ // Combiner Rule #265: avgceil_u_match |
| 7721 | /* 6957 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UAVGCEIL), |
| 7722 | /* 6960 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)), |
| 7723 | /* 6965 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/3, /*OpIdx*/1, // x |
| 7724 | /* 6969 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/4, /*OpIdx*/1, // y |
| 7725 | /* 6973 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ZEXT), |
| 7726 | /* 6977 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst |
| 7727 | /* 6981 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0, |
| 7728 | /* 6984 */ GIR_EraseRootFromParent_Done, |
| 7729 | /* 6985 */ // Label 361: @6985 |
| 7730 | /* 6985 */ GIM_Try, /*On fail goto*//*Label 362*/ GIMT_Encode4(7062), // Rule ID 432 // |
| 7731 | /* 6990 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule263Enabled), |
| 7732 | /* 6993 */ // MIs[0] dst |
| 7733 | /* 6993 */ // No operand predicates |
| 7734 | /* 6993 */ // MIs[0] sum |
| 7735 | /* 6993 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 7736 | /* 6997 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD), |
| 7737 | /* 7001 */ // MIs[1] ext1 |
| 7738 | /* 7001 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2] |
| 7739 | /* 7005 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ZEXT), |
| 7740 | /* 7009 */ // MIs[2] x |
| 7741 | /* 7009 */ GIM_RecordRegType, /*MI*/2, /*Op*/1, /*TempTypeIdx*/255, |
| 7742 | /* 7013 */ // MIs[1] ext2 |
| 7743 | /* 7013 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/1, /*OpIdx*/2, // MIs[3] |
| 7744 | /* 7017 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_ZEXT), |
| 7745 | /* 7021 */ // MIs[3] y |
| 7746 | /* 7021 */ // No operand predicates |
| 7747 | /* 7021 */ // MIs[0] Operand 2 |
| 7748 | /* 7021 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 1, |
| 7749 | /* 7025 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner20), |
| 7750 | /* 7029 */ GIM_CheckIsSafeToFold, /*NumInsns*/3, |
| 7751 | /* 7031 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255, |
| 7752 | /* 7034 */ // Combiner Rule #263: avgfloor_u_match |
| 7753 | /* 7034 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_UAVGFLOOR), |
| 7754 | /* 7037 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)), |
| 7755 | /* 7042 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // x |
| 7756 | /* 7046 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/3, /*OpIdx*/1, // y |
| 7757 | /* 7050 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_ZEXT), |
| 7758 | /* 7054 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst |
| 7759 | /* 7058 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0, |
| 7760 | /* 7061 */ GIR_EraseRootFromParent_Done, |
| 7761 | /* 7062 */ // Label 362: @7062 |
| 7762 | /* 7062 */ GIM_Try, /*On fail goto*//*Label 363*/ GIMT_Encode4(7091), // Rule ID 417 // |
| 7763 | /* 7067 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule251Enabled), |
| 7764 | /* 7070 */ // MIs[0] dst |
| 7765 | /* 7070 */ // No operand predicates |
| 7766 | /* 7070 */ // MIs[0] d2 |
| 7767 | /* 7070 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 7768 | /* 7074 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_TRUNC), |
| 7769 | /* 7078 */ // MIs[1] d1 |
| 7770 | /* 7078 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2] |
| 7771 | /* 7082 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_LSHR), |
| 7772 | /* 7086 */ // MIs[2] x |
| 7773 | /* 7086 */ // No operand predicates |
| 7774 | /* 7086 */ // MIs[2] y |
| 7775 | /* 7086 */ // No operand predicates |
| 7776 | /* 7086 */ // MIs[0] z |
| 7777 | /* 7086 */ // No operand predicates |
| 7778 | /* 7086 */ GIM_CheckIsSafeToFold, /*NumInsns*/2, |
| 7779 | /* 7088 */ // Combiner Rule #251: lshr_of_trunc_of_lshr |
| 7780 | /* 7088 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner156), |
| 7781 | /* 7091 */ // Label 363: @7091 |
| 7782 | /* 7091 */ GIM_Try, /*On fail goto*//*Label 364*/ GIMT_Encode4(7131), // Rule ID 125 // |
| 7783 | /* 7096 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled), |
| 7784 | /* 7099 */ // MIs[0] dst |
| 7785 | /* 7099 */ // No operand predicates |
| 7786 | /* 7099 */ // MIs[0] zero |
| 7787 | /* 7099 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 7788 | /* 7103 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT), |
| 7789 | /* 7107 */ // MIs[1] Operand 1 |
| 7790 | /* 7107 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0), |
| 7791 | /* 7118 */ // MIs[0] rhs |
| 7792 | /* 7118 */ // No operand predicates |
| 7793 | /* 7118 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 7794 | /* 7123 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 7795 | /* 7125 */ // Combiner Rule #93: binop_left_to_zero @ [__binop_left_to_zero_match_0[1]] |
| 7796 | /* 7125 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 7797 | /* 7130 */ GIR_EraseRootFromParent_Done, |
| 7798 | /* 7131 */ // Label 364: @7131 |
| 7799 | /* 7131 */ GIM_Try, /*On fail goto*//*Label 365*/ GIMT_Encode4(7154), // Rule ID 116 // |
| 7800 | /* 7136 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled), |
| 7801 | /* 7139 */ // MIs[0] dst |
| 7802 | /* 7139 */ // No operand predicates |
| 7803 | /* 7139 */ // MIs[0] lhs |
| 7804 | /* 7139 */ // No operand predicates |
| 7805 | /* 7139 */ // MIs[0] Operand 2 |
| 7806 | /* 7139 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0, |
| 7807 | /* 7143 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 7808 | /* 7148 */ // Combiner Rule #90: right_identity_zero @ [__right_identity_zero_match_0[6]] |
| 7809 | /* 7148 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 7810 | /* 7153 */ GIR_EraseRootFromParent_Done, |
| 7811 | /* 7154 */ // Label 365: @7154 |
| 7812 | /* 7154 */ GIM_Try, /*On fail goto*//*Label 366*/ GIMT_Encode4(7165), // Rule ID 158 // |
| 7813 | /* 7159 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule114Enabled), |
| 7814 | /* 7162 */ // MIs[0] root |
| 7815 | /* 7162 */ // No operand predicates |
| 7816 | /* 7162 */ // MIs[0] mi.shifted |
| 7817 | /* 7162 */ // No operand predicates |
| 7818 | /* 7162 */ // MIs[0] mi.amt |
| 7819 | /* 7162 */ // No operand predicates |
| 7820 | /* 7162 */ // Combiner Rule #114: shifts_too_big @ [mi[2]] |
| 7821 | /* 7162 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner55), |
| 7822 | /* 7165 */ // Label 366: @7165 |
| 7823 | /* 7165 */ GIM_Reject, |
| 7824 | /* 7166 */ // Label 37: @7166 |
| 7825 | /* 7166 */ GIM_Try, /*On fail goto*//*Label 367*/ GIMT_Encode4(7177), // Rule ID 90 // |
| 7826 | /* 7171 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule81Enabled), |
| 7827 | /* 7174 */ // Combiner Rule #81: binop_right_undef_to_undef; wip_match_opcode 'G_ASHR' |
| 7828 | /* 7174 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner37), |
| 7829 | /* 7177 */ // Label 367: @7177 |
| 7830 | /* 7177 */ GIM_Try, /*On fail goto*//*Label 368*/ GIMT_Encode4(7188), // Rule ID 169 // |
| 7831 | /* 7182 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule125Enabled), |
| 7832 | /* 7185 */ // Combiner Rule #125: shl_ashr_to_sext_inreg; wip_match_opcode 'G_ASHR' |
| 7833 | /* 7185 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner64), |
| 7834 | /* 7188 */ // Label 368: @7188 |
| 7835 | /* 7188 */ GIM_Try, /*On fail goto*//*Label 369*/ GIMT_Encode4(7199), // Rule ID 222 // |
| 7836 | /* 7193 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule169Enabled), |
| 7837 | /* 7196 */ // Combiner Rule #169: shift_immed_chain; wip_match_opcode 'G_ASHR' |
| 7838 | /* 7196 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner91), |
| 7839 | /* 7199 */ // Label 369: @7199 |
| 7840 | /* 7199 */ GIM_Try, /*On fail goto*//*Label 370*/ GIMT_Encode4(7210), // Rule ID 227 // |
| 7841 | /* 7204 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule170Enabled), |
| 7842 | /* 7207 */ // Combiner Rule #170: shift_of_shifted_logic_chain; wip_match_opcode 'G_ASHR' |
| 7843 | /* 7207 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner92), |
| 7844 | /* 7210 */ // Label 370: @7210 |
| 7845 | /* 7210 */ GIM_Try, /*On fail goto*//*Label 371*/ GIMT_Encode4(7221), // Rule ID 252 // |
| 7846 | /* 7215 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule185Enabled), |
| 7847 | /* 7218 */ // Combiner Rule #185: bitfield_extract_from_shr; wip_match_opcode 'G_ASHR' |
| 7848 | /* 7218 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner101), |
| 7849 | /* 7221 */ // Label 371: @7221 |
| 7850 | /* 7221 */ GIM_Try, /*On fail goto*//*Label 372*/ GIMT_Encode4(7232), // Rule ID 254 // |
| 7851 | /* 7226 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule186Enabled), |
| 7852 | /* 7229 */ // Combiner Rule #186: bitfield_extract_from_shr_and; wip_match_opcode 'G_ASHR' |
| 7853 | /* 7229 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner102), |
| 7854 | /* 7232 */ // Label 372: @7232 |
| 7855 | /* 7232 */ GIM_Try, /*On fail goto*//*Label 373*/ GIMT_Encode4(7243), // Rule ID 259 // |
| 7856 | /* 7237 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled), |
| 7857 | /* 7240 */ // Combiner Rule #187: constant_fold_binop; wip_match_opcode 'G_ASHR' |
| 7858 | /* 7240 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103), |
| 7859 | /* 7243 */ // Label 373: @7243 |
| 7860 | /* 7243 */ GIM_Try, /*On fail goto*//*Label 374*/ GIMT_Encode4(7254), // Rule ID 327 // |
| 7861 | /* 7248 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled), |
| 7862 | /* 7251 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_ASHR' |
| 7863 | /* 7251 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119), |
| 7864 | /* 7254 */ // Label 374: @7254 |
| 7865 | /* 7254 */ GIM_Try, /*On fail goto*//*Label 375*/ GIMT_Encode4(7343), // Rule ID 435 // |
| 7866 | /* 7259 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule266Enabled), |
| 7867 | /* 7262 */ // MIs[0] dst |
| 7868 | /* 7262 */ // No operand predicates |
| 7869 | /* 7262 */ // MIs[0] sum |
| 7870 | /* 7262 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 7871 | /* 7266 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD), |
| 7872 | /* 7270 */ // MIs[1] inner |
| 7873 | /* 7270 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2] |
| 7874 | /* 7274 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_ADD), |
| 7875 | /* 7278 */ // MIs[2] ext1 |
| 7876 | /* 7278 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/2, /*OpIdx*/1, // MIs[3] |
| 7877 | /* 7282 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_SEXT), |
| 7878 | /* 7286 */ // MIs[3] x |
| 7879 | /* 7286 */ GIM_RecordRegType, /*MI*/3, /*Op*/1, /*TempTypeIdx*/255, |
| 7880 | /* 7290 */ // MIs[2] ext2 |
| 7881 | /* 7290 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/4, /*MI*/2, /*OpIdx*/2, // MIs[4] |
| 7882 | /* 7294 */ GIM_CheckOpcode, /*MI*/4, GIMT_Encode2(TargetOpcode::G_SEXT), |
| 7883 | /* 7298 */ // MIs[4] y |
| 7884 | /* 7298 */ // No operand predicates |
| 7885 | /* 7298 */ // MIs[1] Operand 2 |
| 7886 | /* 7298 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/2, 1, |
| 7887 | /* 7302 */ // MIs[0] Operand 2 |
| 7888 | /* 7302 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 1, |
| 7889 | /* 7306 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner23), |
| 7890 | /* 7310 */ GIM_CheckIsSafeToFold, /*NumInsns*/4, |
| 7891 | /* 7312 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255, |
| 7892 | /* 7315 */ // Combiner Rule #266: avgceil_s_match |
| 7893 | /* 7315 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SAVGCEIL), |
| 7894 | /* 7318 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)), |
| 7895 | /* 7323 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/3, /*OpIdx*/1, // x |
| 7896 | /* 7327 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/4, /*OpIdx*/1, // y |
| 7897 | /* 7331 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SEXT), |
| 7898 | /* 7335 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst |
| 7899 | /* 7339 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0, |
| 7900 | /* 7342 */ GIR_EraseRootFromParent_Done, |
| 7901 | /* 7343 */ // Label 375: @7343 |
| 7902 | /* 7343 */ GIM_Try, /*On fail goto*//*Label 376*/ GIMT_Encode4(7420), // Rule ID 433 // |
| 7903 | /* 7348 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule264Enabled), |
| 7904 | /* 7351 */ // MIs[0] dst |
| 7905 | /* 7351 */ // No operand predicates |
| 7906 | /* 7351 */ // MIs[0] sum |
| 7907 | /* 7351 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 7908 | /* 7355 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD), |
| 7909 | /* 7359 */ // MIs[1] ext1 |
| 7910 | /* 7359 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2] |
| 7911 | /* 7363 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_SEXT), |
| 7912 | /* 7367 */ // MIs[2] x |
| 7913 | /* 7367 */ GIM_RecordRegType, /*MI*/2, /*Op*/1, /*TempTypeIdx*/255, |
| 7914 | /* 7371 */ // MIs[1] ext2 |
| 7915 | /* 7371 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/1, /*OpIdx*/2, // MIs[3] |
| 7916 | /* 7375 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_SEXT), |
| 7917 | /* 7379 */ // MIs[3] y |
| 7918 | /* 7379 */ // No operand predicates |
| 7919 | /* 7379 */ // MIs[0] Operand 2 |
| 7920 | /* 7379 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 1, |
| 7921 | /* 7383 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner21), |
| 7922 | /* 7387 */ GIM_CheckIsSafeToFold, /*NumInsns*/3, |
| 7923 | /* 7389 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255, |
| 7924 | /* 7392 */ // Combiner Rule #264: avgfloor_s_match |
| 7925 | /* 7392 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SAVGFLOOR), |
| 7926 | /* 7395 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)), |
| 7927 | /* 7400 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // x |
| 7928 | /* 7404 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/3, /*OpIdx*/1, // y |
| 7929 | /* 7408 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SEXT), |
| 7930 | /* 7412 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst |
| 7931 | /* 7416 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0, |
| 7932 | /* 7419 */ GIR_EraseRootFromParent_Done, |
| 7933 | /* 7420 */ // Label 376: @7420 |
| 7934 | /* 7420 */ GIM_Try, /*On fail goto*//*Label 377*/ GIMT_Encode4(7460), // Rule ID 126 // |
| 7935 | /* 7425 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled), |
| 7936 | /* 7428 */ // MIs[0] dst |
| 7937 | /* 7428 */ // No operand predicates |
| 7938 | /* 7428 */ // MIs[0] zero |
| 7939 | /* 7428 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 7940 | /* 7432 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT), |
| 7941 | /* 7436 */ // MIs[1] Operand 1 |
| 7942 | /* 7436 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0), |
| 7943 | /* 7447 */ // MIs[0] rhs |
| 7944 | /* 7447 */ // No operand predicates |
| 7945 | /* 7447 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 7946 | /* 7452 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 7947 | /* 7454 */ // Combiner Rule #93: binop_left_to_zero @ [__binop_left_to_zero_match_0[2]] |
| 7948 | /* 7454 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 7949 | /* 7459 */ GIR_EraseRootFromParent_Done, |
| 7950 | /* 7460 */ // Label 377: @7460 |
| 7951 | /* 7460 */ GIM_Try, /*On fail goto*//*Label 378*/ GIMT_Encode4(7483), // Rule ID 115 // |
| 7952 | /* 7465 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled), |
| 7953 | /* 7468 */ // MIs[0] dst |
| 7954 | /* 7468 */ // No operand predicates |
| 7955 | /* 7468 */ // MIs[0] lhs |
| 7956 | /* 7468 */ // No operand predicates |
| 7957 | /* 7468 */ // MIs[0] Operand 2 |
| 7958 | /* 7468 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0, |
| 7959 | /* 7472 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 7960 | /* 7477 */ // Combiner Rule #90: right_identity_zero @ [__right_identity_zero_match_0[5]] |
| 7961 | /* 7477 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 7962 | /* 7482 */ GIR_EraseRootFromParent_Done, |
| 7963 | /* 7483 */ // Label 378: @7483 |
| 7964 | /* 7483 */ GIM_Try, /*On fail goto*//*Label 379*/ GIMT_Encode4(7494), // Rule ID 157 // |
| 7965 | /* 7488 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule114Enabled), |
| 7966 | /* 7491 */ // MIs[0] root |
| 7967 | /* 7491 */ // No operand predicates |
| 7968 | /* 7491 */ // MIs[0] mi.shifted |
| 7969 | /* 7491 */ // No operand predicates |
| 7970 | /* 7491 */ // MIs[0] mi.amt |
| 7971 | /* 7491 */ // No operand predicates |
| 7972 | /* 7491 */ // Combiner Rule #114: shifts_too_big @ [mi[1]] |
| 7973 | /* 7491 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner55), |
| 7974 | /* 7494 */ // Label 379: @7494 |
| 7975 | /* 7494 */ GIM_Reject, |
| 7976 | /* 7495 */ // Label 38: @7495 |
| 7977 | /* 7495 */ GIM_Try, /*On fail goto*//*Label 380*/ GIMT_Encode4(7506), // Rule ID 237 // |
| 7978 | /* 7500 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule174Enabled), |
| 7979 | /* 7503 */ // Combiner Rule #174: funnel_shift_to_rotate; wip_match_opcode 'G_FSHL' |
| 7980 | /* 7503 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner96), |
| 7981 | /* 7506 */ // Label 380: @7506 |
| 7982 | /* 7506 */ GIM_Try, /*On fail goto*//*Label 381*/ GIMT_Encode4(7517), // Rule ID 241 // |
| 7983 | /* 7511 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule177Enabled), |
| 7984 | /* 7514 */ // Combiner Rule #177: funnel_shift_overshift; wip_match_opcode 'G_FSHL' |
| 7985 | /* 7514 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner97), |
| 7986 | /* 7517 */ // Label 381: @7517 |
| 7987 | /* 7517 */ GIM_Try, /*On fail goto*//*Label 382*/ GIMT_Encode4(7537), // Rule ID 240 // |
| 7988 | /* 7522 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule176Enabled), |
| 7989 | /* 7525 */ // MIs[0] x |
| 7990 | /* 7525 */ // No operand predicates |
| 7991 | /* 7525 */ // MIs[0] y |
| 7992 | /* 7525 */ // No operand predicates |
| 7993 | /* 7525 */ // MIs[0] z |
| 7994 | /* 7525 */ // No operand predicates |
| 7995 | /* 7525 */ // MIs[0] Operand 3 |
| 7996 | /* 7525 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/3, 0, |
| 7997 | /* 7529 */ // Combiner Rule #176: funnel_shift_left_zero |
| 7998 | /* 7529 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::COPY), |
| 7999 | /* 7532 */ GIR_RootToRootCopy, /*OpIdx*/0, // x |
| 8000 | /* 7534 */ GIR_RootToRootCopy, /*OpIdx*/1, // y |
| 8001 | /* 7536 */ GIR_EraseRootFromParent_Done, |
| 8002 | /* 7537 */ // Label 382: @7537 |
| 8003 | /* 7537 */ GIM_Reject, |
| 8004 | /* 7538 */ // Label 39: @7538 |
| 8005 | /* 7538 */ GIM_Try, /*On fail goto*//*Label 383*/ GIMT_Encode4(7549), // Rule ID 238 // |
| 8006 | /* 7543 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule174Enabled), |
| 8007 | /* 7546 */ // Combiner Rule #174: funnel_shift_to_rotate; wip_match_opcode 'G_FSHR' |
| 8008 | /* 7546 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner96), |
| 8009 | /* 7549 */ // Label 383: @7549 |
| 8010 | /* 7549 */ GIM_Try, /*On fail goto*//*Label 384*/ GIMT_Encode4(7560), // Rule ID 242 // |
| 8011 | /* 7554 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule177Enabled), |
| 8012 | /* 7557 */ // Combiner Rule #177: funnel_shift_overshift; wip_match_opcode 'G_FSHR' |
| 8013 | /* 7557 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner97), |
| 8014 | /* 7560 */ // Label 384: @7560 |
| 8015 | /* 7560 */ GIM_Try, /*On fail goto*//*Label 385*/ GIMT_Encode4(7580), // Rule ID 239 // |
| 8016 | /* 7565 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule175Enabled), |
| 8017 | /* 7568 */ // MIs[0] x |
| 8018 | /* 7568 */ // No operand predicates |
| 8019 | /* 7568 */ // MIs[0] y |
| 8020 | /* 7568 */ // No operand predicates |
| 8021 | /* 7568 */ // MIs[0] z |
| 8022 | /* 7568 */ // No operand predicates |
| 8023 | /* 7568 */ // MIs[0] Operand 3 |
| 8024 | /* 7568 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/3, 0, |
| 8025 | /* 7572 */ // Combiner Rule #175: funnel_shift_right_zero |
| 8026 | /* 7572 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::COPY), |
| 8027 | /* 7575 */ GIR_RootToRootCopy, /*OpIdx*/0, // x |
| 8028 | /* 7577 */ GIR_RootToRootCopy, /*OpIdx*/2, // z |
| 8029 | /* 7579 */ GIR_EraseRootFromParent_Done, |
| 8030 | /* 7580 */ // Label 385: @7580 |
| 8031 | /* 7580 */ GIM_Reject, |
| 8032 | /* 7581 */ // Label 40: @7581 |
| 8033 | /* 7581 */ GIM_Try, /*On fail goto*//*Label 386*/ GIMT_Encode4(7604), // Rule ID 119 // |
| 8034 | /* 7586 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled), |
| 8035 | /* 7589 */ // MIs[0] dst |
| 8036 | /* 7589 */ // No operand predicates |
| 8037 | /* 7589 */ // MIs[0] lhs |
| 8038 | /* 7589 */ // No operand predicates |
| 8039 | /* 7589 */ // MIs[0] Operand 2 |
| 8040 | /* 7589 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0, |
| 8041 | /* 7593 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 8042 | /* 7598 */ // Combiner Rule #90: right_identity_zero @ [__right_identity_zero_match_0[9]] |
| 8043 | /* 7598 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 8044 | /* 7603 */ GIR_EraseRootFromParent_Done, |
| 8045 | /* 7604 */ // Label 386: @7604 |
| 8046 | /* 7604 */ GIM_Reject, |
| 8047 | /* 7605 */ // Label 41: @7605 |
| 8048 | /* 7605 */ GIM_Try, /*On fail goto*//*Label 387*/ GIMT_Encode4(7628), // Rule ID 118 // |
| 8049 | /* 7610 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled), |
| 8050 | /* 7613 */ // MIs[0] dst |
| 8051 | /* 7613 */ // No operand predicates |
| 8052 | /* 7613 */ // MIs[0] lhs |
| 8053 | /* 7613 */ // No operand predicates |
| 8054 | /* 7613 */ // MIs[0] Operand 2 |
| 8055 | /* 7613 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0, |
| 8056 | /* 7617 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 8057 | /* 7622 */ // Combiner Rule #90: right_identity_zero @ [__right_identity_zero_match_0[8]] |
| 8058 | /* 7622 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 8059 | /* 7627 */ GIR_EraseRootFromParent_Done, |
| 8060 | /* 7628 */ // Label 387: @7628 |
| 8061 | /* 7628 */ GIM_Reject, |
| 8062 | /* 7629 */ // Label 42: @7629 |
| 8063 | /* 7629 */ GIM_Try, /*On fail goto*//*Label 388*/ GIMT_Encode4(7640), // Rule ID 164 // |
| 8064 | /* 7634 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule120Enabled), |
| 8065 | /* 7637 */ // Combiner Rule #120: icmp_to_true_false_known_bits; wip_match_opcode 'G_ICMP' |
| 8066 | /* 7637 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner61), |
| 8067 | /* 7640 */ // Label 388: @7640 |
| 8068 | /* 7640 */ GIM_Try, /*On fail goto*//*Label 389*/ GIMT_Encode4(7651), // Rule ID 165 // |
| 8069 | /* 7645 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule121Enabled), |
| 8070 | /* 7648 */ // Combiner Rule #121: icmp_to_lhs_known_bits; wip_match_opcode 'G_ICMP' |
| 8071 | /* 7648 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner62), |
| 8072 | /* 7651 */ // Label 389: @7651 |
| 8073 | /* 7651 */ GIM_Try, /*On fail goto*//*Label 390*/ GIMT_Encode4(7662), // Rule ID 168 // |
| 8074 | /* 7656 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule124Enabled), |
| 8075 | /* 7659 */ // Combiner Rule #124: redundant_binop_in_equality; wip_match_opcode 'G_ICMP' |
| 8076 | /* 7659 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner63), |
| 8077 | /* 7662 */ // Label 390: @7662 |
| 8078 | /* 7662 */ GIM_Try, /*On fail goto*//*Label 391*/ GIMT_Encode4(7673), // Rule ID 162 // |
| 8079 | /* 7667 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule118Enabled), |
| 8080 | /* 7670 */ // MIs[0] root |
| 8081 | /* 7670 */ // No operand predicates |
| 8082 | /* 7670 */ // MIs[0] pred |
| 8083 | /* 7670 */ // No operand predicates |
| 8084 | /* 7670 */ // MIs[0] lhs |
| 8085 | /* 7670 */ // No operand predicates |
| 8086 | /* 7670 */ // MIs[0] rhs |
| 8087 | /* 7670 */ // No operand predicates |
| 8088 | /* 7670 */ // Combiner Rule #118: canonicalize_icmp |
| 8089 | /* 7670 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner59), |
| 8090 | /* 7673 */ // Label 391: @7673 |
| 8091 | /* 7673 */ GIM_Try, /*On fail goto*//*Label 392*/ GIMT_Encode4(7684), // Rule ID 442 // |
| 8092 | /* 7678 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule270Enabled), |
| 8093 | /* 7681 */ // MIs[0] dst |
| 8094 | /* 7681 */ // No operand predicates |
| 8095 | /* 7681 */ // MIs[0] tst |
| 8096 | /* 7681 */ // No operand predicates |
| 8097 | /* 7681 */ // MIs[0] src1 |
| 8098 | /* 7681 */ // No operand predicates |
| 8099 | /* 7681 */ // MIs[0] src2 |
| 8100 | /* 7681 */ // No operand predicates |
| 8101 | /* 7681 */ // Combiner Rule #270: icmp_redundant_trunc |
| 8102 | /* 7681 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner161), |
| 8103 | /* 7684 */ // Label 392: @7684 |
| 8104 | /* 7684 */ GIM_Reject, |
| 8105 | /* 7685 */ // Label 43: @7685 |
| 8106 | /* 7685 */ GIM_Try, /*On fail goto*//*Label 393*/ GIMT_Encode4(7696), // Rule ID 163 // |
| 8107 | /* 7690 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule119Enabled), |
| 8108 | /* 7693 */ // MIs[0] root |
| 8109 | /* 7693 */ // No operand predicates |
| 8110 | /* 7693 */ // MIs[0] pred |
| 8111 | /* 7693 */ // No operand predicates |
| 8112 | /* 7693 */ // MIs[0] lhs |
| 8113 | /* 7693 */ // No operand predicates |
| 8114 | /* 7693 */ // MIs[0] rhs |
| 8115 | /* 7693 */ // No operand predicates |
| 8116 | /* 7693 */ // Combiner Rule #119: canonicalize_fcmp |
| 8117 | /* 7693 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner60), |
| 8118 | /* 7696 */ // Label 393: @7696 |
| 8119 | /* 7696 */ GIM_Reject, |
| 8120 | /* 7697 */ // Label 44: @7697 |
| 8121 | /* 7697 */ GIM_Try, /*On fail goto*//*Label 394*/ GIMT_Encode4(7708), // Rule ID 109 // |
| 8122 | /* 7702 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule89Enabled), |
| 8123 | /* 7705 */ // Combiner Rule #89: select_same_val; wip_match_opcode 'G_SELECT' |
| 8124 | /* 7705 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner44), |
| 8125 | /* 7708 */ // Label 394: @7708 |
| 8126 | /* 7708 */ GIM_Try, /*On fail goto*//*Label 395*/ GIMT_Encode4(7719), // Rule ID 175 // |
| 8127 | /* 7713 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule131Enabled), |
| 8128 | /* 7716 */ // Combiner Rule #131: select_constant_cmp; wip_match_opcode 'G_SELECT' |
| 8129 | /* 7716 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner68), |
| 8130 | /* 7719 */ // Label 395: @7719 |
| 8131 | /* 7719 */ GIM_Try, /*On fail goto*//*Label 396*/ GIMT_Encode4(7730), // Rule ID 177 // |
| 8132 | /* 7724 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule133Enabled), |
| 8133 | /* 7727 */ // Combiner Rule #133: match_selects; wip_match_opcode 'G_SELECT' |
| 8134 | /* 7727 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner70), |
| 8135 | /* 7730 */ // Label 396: @7730 |
| 8136 | /* 7730 */ GIM_Try, /*On fail goto*//*Label 397*/ GIMT_Encode4(7741), // Rule ID 351 // |
| 8137 | /* 7735 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule214Enabled), |
| 8138 | /* 7738 */ // Combiner Rule #214: select_to_minmax; wip_match_opcode 'G_SELECT' |
| 8139 | /* 7738 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner127), |
| 8140 | /* 7741 */ // Label 397: @7741 |
| 8141 | /* 7741 */ GIM_Try, /*On fail goto*//*Label 398*/ GIMT_Encode4(7821), // Rule ID 440 // |
| 8142 | /* 7746 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule268Enabled), |
| 8143 | /* 7749 */ // MIs[0] dst |
| 8144 | /* 7749 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255, |
| 8145 | /* 7753 */ // MIs[0] c |
| 8146 | /* 7753 */ // No operand predicates |
| 8147 | /* 7753 */ // MIs[0] Operand 2 |
| 8148 | /* 7753 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0, |
| 8149 | /* 7757 */ // MIs[0] x |
| 8150 | /* 7757 */ // No operand predicates |
| 8151 | /* 7757 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner12), |
| 8152 | /* 7761 */ GIR_MakeTempReg, /*TempRegID*/2, /*TypeID*/255, |
| 8153 | /* 7764 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255, |
| 8154 | /* 7767 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(18446744073709551615u), |
| 8155 | /* 7777 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255, |
| 8156 | /* 7780 */ // Combiner Rule #268: select_zero_true |
| 8157 | /* 7780 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_XOR), |
| 8158 | /* 7783 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)), |
| 8159 | /* 7788 */ GIR_RootToRootCopy, /*OpIdx*/1, // c |
| 8160 | /* 7790 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/1, |
| 8161 | /* 7793 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FREEZE), |
| 8162 | /* 7797 */ GIR_AddTempRegister, /*InsnID*/1, /*TempRegID*/2, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)), |
| 8163 | /* 7802 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/3, // x |
| 8164 | /* 7806 */ GIR_BuildMI, /*InsnID*/2, /*Opcode*/GIMT_Encode2(TargetOpcode::G_AND), |
| 8165 | /* 7810 */ GIR_Copy, /*NewInsnID*/2, /*OldInsnID*/0, /*OpIdx*/0, // dst |
| 8166 | /* 7814 */ GIR_AddSimpleTempRegister, /*InsnID*/2, /*TempRegID*/0, |
| 8167 | /* 7817 */ GIR_AddSimpleTempRegister, /*InsnID*/2, /*TempRegID*/2, |
| 8168 | /* 7820 */ GIR_EraseRootFromParent_Done, |
| 8169 | /* 7821 */ // Label 398: @7821 |
| 8170 | /* 7821 */ GIM_Try, /*On fail goto*//*Label 399*/ GIMT_Encode4(7870), // Rule ID 178 // |
| 8171 | /* 7826 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule134Enabled), |
| 8172 | /* 7829 */ // MIs[0] dst |
| 8173 | /* 7829 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255, |
| 8174 | /* 7833 */ // MIs[0] c |
| 8175 | /* 7833 */ // No operand predicates |
| 8176 | /* 7833 */ // MIs[0] x |
| 8177 | /* 7833 */ // No operand predicates |
| 8178 | /* 7833 */ // MIs[0] Operand 3 |
| 8179 | /* 7833 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/3, 0, |
| 8180 | /* 7837 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner12), |
| 8181 | /* 7841 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255, |
| 8182 | /* 7844 */ // Combiner Rule #134: select_zero_false |
| 8183 | /* 7844 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FREEZE), |
| 8184 | /* 7847 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)), |
| 8185 | /* 7852 */ GIR_RootToRootCopy, /*OpIdx*/2, // x |
| 8186 | /* 7854 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_AND), |
| 8187 | /* 7858 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst |
| 8188 | /* 7862 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/1, // c |
| 8189 | /* 7866 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0, |
| 8190 | /* 7869 */ GIR_EraseRootFromParent_Done, |
| 8191 | /* 7870 */ // Label 399: @7870 |
| 8192 | /* 7870 */ GIM_Try, /*On fail goto*//*Label 400*/ GIMT_Encode4(7891), // Rule ID 176 // |
| 8193 | /* 7875 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule132Enabled), |
| 8194 | /* 7878 */ // MIs[0] root |
| 8195 | /* 7878 */ // No operand predicates |
| 8196 | /* 7878 */ // MIs[0] tst |
| 8197 | /* 7878 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 8198 | /* 7882 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ICMP), |
| 8199 | /* 7886 */ // MIs[1] tst1 |
| 8200 | /* 7886 */ // No operand predicates |
| 8201 | /* 7886 */ // MIs[1] a |
| 8202 | /* 7886 */ // No operand predicates |
| 8203 | /* 7886 */ // MIs[1] b |
| 8204 | /* 7886 */ // No operand predicates |
| 8205 | /* 7886 */ // MIs[0] x |
| 8206 | /* 7886 */ // No operand predicates |
| 8207 | /* 7886 */ // MIs[0] y |
| 8208 | /* 7886 */ // No operand predicates |
| 8209 | /* 7886 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 8210 | /* 7888 */ // Combiner Rule #132: select_to_iminmax |
| 8211 | /* 7888 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner69), |
| 8212 | /* 7891 */ // Label 400: @7891 |
| 8213 | /* 7891 */ GIM_Try, /*On fail goto*//*Label 401*/ GIMT_Encode4(7927), // Rule ID 179 // |
| 8214 | /* 7896 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule135Enabled), |
| 8215 | /* 7899 */ // MIs[0] dst |
| 8216 | /* 7899 */ // No operand predicates |
| 8217 | /* 7899 */ // MIs[0] c |
| 8218 | /* 7899 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 8219 | /* 7903 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_XOR), |
| 8220 | /* 7907 */ // MIs[1] src |
| 8221 | /* 7907 */ // No operand predicates |
| 8222 | /* 7907 */ // MIs[1] Operand 2 |
| 8223 | /* 7907 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/2, 255, |
| 8224 | /* 7911 */ // MIs[0] x |
| 8225 | /* 7911 */ // No operand predicates |
| 8226 | /* 7911 */ // MIs[0] y |
| 8227 | /* 7911 */ // No operand predicates |
| 8228 | /* 7911 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 8229 | /* 7913 */ // Combiner Rule #135: select_not |
| 8230 | /* 7913 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SELECT), |
| 8231 | /* 7916 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst |
| 8232 | /* 7918 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // src |
| 8233 | /* 7922 */ GIR_RootToRootCopy, /*OpIdx*/3, // y |
| 8234 | /* 7924 */ GIR_RootToRootCopy, /*OpIdx*/2, // x |
| 8235 | /* 7926 */ GIR_EraseRootFromParent_Done, |
| 8236 | /* 7927 */ // Label 401: @7927 |
| 8237 | /* 7927 */ GIM_Try, /*On fail goto*//*Label 402*/ GIMT_Encode4(7956), // Rule ID 174 // |
| 8238 | /* 7932 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule130Enabled), |
| 8239 | /* 7935 */ // MIs[0] dst |
| 8240 | /* 7935 */ // No operand predicates |
| 8241 | /* 7935 */ // MIs[0] undef |
| 8242 | /* 7935 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 8243 | /* 7939 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF), |
| 8244 | /* 7943 */ // MIs[0] x |
| 8245 | /* 7943 */ // No operand predicates |
| 8246 | /* 7943 */ // MIs[0] y |
| 8247 | /* 7943 */ // No operand predicates |
| 8248 | /* 7943 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/3, |
| 8249 | /* 7948 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 8250 | /* 7950 */ // Combiner Rule #130: select_undef_cmp |
| 8251 | /* 7950 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/3, |
| 8252 | /* 7955 */ GIR_EraseRootFromParent_Done, |
| 8253 | /* 7956 */ // Label 402: @7956 |
| 8254 | /* 7956 */ GIM_Reject, |
| 8255 | /* 7957 */ // Label 45: @7957 |
| 8256 | /* 7957 */ GIM_Try, /*On fail goto*//*Label 403*/ GIMT_Encode4(7968), // Rule ID 362 // |
| 8257 | /* 7962 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled), |
| 8258 | /* 7965 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_UADDO' |
| 8259 | /* 7965 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129), |
| 8260 | /* 7968 */ // Label 403: @7968 |
| 8261 | /* 7968 */ GIM_Try, /*On fail goto*//*Label 404*/ GIMT_Encode4(7979), // Rule ID 410 // |
| 8262 | /* 7973 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule245Enabled), |
| 8263 | /* 7976 */ // Combiner Rule #245: match_addos; wip_match_opcode 'G_UADDO' |
| 8264 | /* 7976 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner152), |
| 8265 | /* 7979 */ // Label 404: @7979 |
| 8266 | /* 7979 */ GIM_Try, /*On fail goto*//*Label 405*/ GIMT_Encode4(7990), // Rule ID 452 // |
| 8267 | /* 7984 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule280Enabled), |
| 8268 | /* 7987 */ // MIs[0] dst |
| 8269 | /* 7987 */ // No operand predicates |
| 8270 | /* 7987 */ // MIs[0] carry_out |
| 8271 | /* 7987 */ // No operand predicates |
| 8272 | /* 7987 */ // MIs[0] src1 |
| 8273 | /* 7987 */ // No operand predicates |
| 8274 | /* 7987 */ // MIs[0] src2 |
| 8275 | /* 7987 */ // No operand predicates |
| 8276 | /* 7987 */ // Combiner Rule #280: simplify_uaddo |
| 8277 | /* 7987 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner166), |
| 8278 | /* 7990 */ // Label 405: @7990 |
| 8279 | /* 7990 */ GIM_Reject, |
| 8280 | /* 7991 */ // Label 46: @7991 |
| 8281 | /* 7991 */ GIM_Try, /*On fail goto*//*Label 406*/ GIMT_Encode4(8002), // Rule ID 210 // |
| 8282 | /* 7996 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule164Enabled), |
| 8283 | /* 7999 */ // Combiner Rule #164: adde_to_addo; wip_match_opcode 'G_UADDE' |
| 8284 | /* 7999 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner86), |
| 8285 | /* 8002 */ // Label 406: @8002 |
| 8286 | /* 8002 */ GIM_Reject, |
| 8287 | /* 8003 */ // Label 47: @8003 |
| 8288 | /* 8003 */ GIM_Try, /*On fail goto*//*Label 407*/ GIMT_Encode4(8014), // Rule ID 412 // |
| 8289 | /* 8008 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule246Enabled), |
| 8290 | /* 8011 */ // Combiner Rule #246: match_subo_no_overflow; wip_match_opcode 'G_USUBO' |
| 8291 | /* 8011 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner153), |
| 8292 | /* 8014 */ // Label 407: @8014 |
| 8293 | /* 8014 */ GIM_Reject, |
| 8294 | /* 8015 */ // Label 48: @8015 |
| 8295 | /* 8015 */ GIM_Try, /*On fail goto*//*Label 408*/ GIMT_Encode4(8026), // Rule ID 212 // |
| 8296 | /* 8020 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule164Enabled), |
| 8297 | /* 8023 */ // Combiner Rule #164: adde_to_addo; wip_match_opcode 'G_USUBE' |
| 8298 | /* 8023 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner86), |
| 8299 | /* 8026 */ // Label 408: @8026 |
| 8300 | /* 8026 */ GIM_Reject, |
| 8301 | /* 8027 */ // Label 49: @8027 |
| 8302 | /* 8027 */ GIM_Try, /*On fail goto*//*Label 409*/ GIMT_Encode4(8038), // Rule ID 363 // |
| 8303 | /* 8032 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled), |
| 8304 | /* 8035 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_SADDO' |
| 8305 | /* 8035 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129), |
| 8306 | /* 8038 */ // Label 409: @8038 |
| 8307 | /* 8038 */ GIM_Try, /*On fail goto*//*Label 410*/ GIMT_Encode4(8049), // Rule ID 409 // |
| 8308 | /* 8043 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule245Enabled), |
| 8309 | /* 8046 */ // Combiner Rule #245: match_addos; wip_match_opcode 'G_SADDO' |
| 8310 | /* 8046 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner152), |
| 8311 | /* 8049 */ // Label 410: @8049 |
| 8312 | /* 8049 */ GIM_Reject, |
| 8313 | /* 8050 */ // Label 50: @8050 |
| 8314 | /* 8050 */ GIM_Try, /*On fail goto*//*Label 411*/ GIMT_Encode4(8061), // Rule ID 211 // |
| 8315 | /* 8055 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule164Enabled), |
| 8316 | /* 8058 */ // Combiner Rule #164: adde_to_addo; wip_match_opcode 'G_SADDE' |
| 8317 | /* 8058 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner86), |
| 8318 | /* 8061 */ // Label 411: @8061 |
| 8319 | /* 8061 */ GIM_Reject, |
| 8320 | /* 8062 */ // Label 51: @8062 |
| 8321 | /* 8062 */ GIM_Try, /*On fail goto*//*Label 412*/ GIMT_Encode4(8073), // Rule ID 411 // |
| 8322 | /* 8067 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule246Enabled), |
| 8323 | /* 8070 */ // Combiner Rule #246: match_subo_no_overflow; wip_match_opcode 'G_SSUBO' |
| 8324 | /* 8070 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner153), |
| 8325 | /* 8073 */ // Label 412: @8073 |
| 8326 | /* 8073 */ GIM_Reject, |
| 8327 | /* 8074 */ // Label 52: @8074 |
| 8328 | /* 8074 */ GIM_Try, /*On fail goto*//*Label 413*/ GIMT_Encode4(8085), // Rule ID 213 // |
| 8329 | /* 8079 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule164Enabled), |
| 8330 | /* 8082 */ // Combiner Rule #164: adde_to_addo; wip_match_opcode 'G_SSUBE' |
| 8331 | /* 8082 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner86), |
| 8332 | /* 8085 */ // Label 413: @8085 |
| 8333 | /* 8085 */ GIM_Reject, |
| 8334 | /* 8086 */ // Label 53: @8086 |
| 8335 | /* 8086 */ GIM_Try, /*On fail goto*//*Label 414*/ GIMT_Encode4(8097), // Rule ID 206 // |
| 8336 | /* 8091 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule162Enabled), |
| 8337 | /* 8094 */ // Combiner Rule #162: mulo_by_2; wip_match_opcode 'G_UMULO' |
| 8338 | /* 8094 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner84), |
| 8339 | /* 8097 */ // Label 414: @8097 |
| 8340 | /* 8097 */ GIM_Try, /*On fail goto*//*Label 415*/ GIMT_Encode4(8108), // Rule ID 208 // |
| 8341 | /* 8102 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule163Enabled), |
| 8342 | /* 8105 */ // Combiner Rule #163: mulo_by_0; wip_match_opcode 'G_UMULO' |
| 8343 | /* 8105 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner85), |
| 8344 | /* 8108 */ // Label 415: @8108 |
| 8345 | /* 8108 */ GIM_Try, /*On fail goto*//*Label 416*/ GIMT_Encode4(8119), // Rule ID 364 // |
| 8346 | /* 8113 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled), |
| 8347 | /* 8116 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_UMULO' |
| 8348 | /* 8116 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129), |
| 8349 | /* 8119 */ // Label 416: @8119 |
| 8350 | /* 8119 */ GIM_Reject, |
| 8351 | /* 8120 */ // Label 54: @8120 |
| 8352 | /* 8120 */ GIM_Try, /*On fail goto*//*Label 417*/ GIMT_Encode4(8131), // Rule ID 207 // |
| 8353 | /* 8125 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule162Enabled), |
| 8354 | /* 8128 */ // Combiner Rule #162: mulo_by_2; wip_match_opcode 'G_SMULO' |
| 8355 | /* 8128 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner84), |
| 8356 | /* 8131 */ // Label 417: @8131 |
| 8357 | /* 8131 */ GIM_Try, /*On fail goto*//*Label 418*/ GIMT_Encode4(8142), // Rule ID 209 // |
| 8358 | /* 8136 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule163Enabled), |
| 8359 | /* 8139 */ // Combiner Rule #163: mulo_by_0; wip_match_opcode 'G_SMULO' |
| 8360 | /* 8139 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner85), |
| 8361 | /* 8142 */ // Label 418: @8142 |
| 8362 | /* 8142 */ GIM_Try, /*On fail goto*//*Label 419*/ GIMT_Encode4(8153), // Rule ID 365 // |
| 8363 | /* 8147 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled), |
| 8364 | /* 8150 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_SMULO' |
| 8365 | /* 8150 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129), |
| 8366 | /* 8153 */ // Label 419: @8153 |
| 8367 | /* 8153 */ GIM_Reject, |
| 8368 | /* 8154 */ // Label 55: @8154 |
| 8369 | /* 8154 */ GIM_Try, /*On fail goto*//*Label 420*/ GIMT_Encode4(8165), // Rule ID 300 // |
| 8370 | /* 8159 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule193Enabled), |
| 8371 | /* 8162 */ // Combiner Rule #193: mulh_to_lshr; wip_match_opcode 'G_UMULH' |
| 8372 | /* 8162 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner108), |
| 8373 | /* 8165 */ // Label 420: @8165 |
| 8374 | /* 8165 */ GIM_Try, /*On fail goto*//*Label 421*/ GIMT_Encode4(8176), // Rule ID 366 // |
| 8375 | /* 8170 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled), |
| 8376 | /* 8173 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_UMULH' |
| 8377 | /* 8173 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129), |
| 8378 | /* 8176 */ // Label 421: @8176 |
| 8379 | /* 8176 */ GIM_Reject, |
| 8380 | /* 8177 */ // Label 56: @8177 |
| 8381 | /* 8177 */ GIM_Try, /*On fail goto*//*Label 422*/ GIMT_Encode4(8188), // Rule ID 367 // |
| 8382 | /* 8182 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled), |
| 8383 | /* 8185 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_SMULH' |
| 8384 | /* 8185 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129), |
| 8385 | /* 8188 */ // Label 422: @8188 |
| 8386 | /* 8188 */ GIM_Reject, |
| 8387 | /* 8189 */ // Label 57: @8189 |
| 8388 | /* 8189 */ GIM_Try, /*On fail goto*//*Label 423*/ GIMT_Encode4(8200), // Rule ID 368 // |
| 8389 | /* 8194 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled), |
| 8390 | /* 8197 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_UADDSAT' |
| 8391 | /* 8197 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129), |
| 8392 | /* 8200 */ // Label 423: @8200 |
| 8393 | /* 8200 */ GIM_Reject, |
| 8394 | /* 8201 */ // Label 58: @8201 |
| 8395 | /* 8201 */ GIM_Try, /*On fail goto*//*Label 424*/ GIMT_Encode4(8212), // Rule ID 369 // |
| 8396 | /* 8206 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled), |
| 8397 | /* 8209 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_SADDSAT' |
| 8398 | /* 8209 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129), |
| 8399 | /* 8212 */ // Label 424: @8212 |
| 8400 | /* 8212 */ GIM_Reject, |
| 8401 | /* 8213 */ // Label 59: @8213 |
| 8402 | /* 8213 */ GIM_Try, /*On fail goto*//*Label 425*/ GIMT_Encode4(8224), // Rule ID 225 // |
| 8403 | /* 8218 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule169Enabled), |
| 8404 | /* 8221 */ // Combiner Rule #169: shift_immed_chain; wip_match_opcode 'G_USHLSAT' |
| 8405 | /* 8221 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner91), |
| 8406 | /* 8224 */ // Label 425: @8224 |
| 8407 | /* 8224 */ GIM_Try, /*On fail goto*//*Label 426*/ GIMT_Encode4(8235), // Rule ID 229 // |
| 8408 | /* 8229 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule170Enabled), |
| 8409 | /* 8232 */ // Combiner Rule #170: shift_of_shifted_logic_chain; wip_match_opcode 'G_USHLSAT' |
| 8410 | /* 8232 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner92), |
| 8411 | /* 8235 */ // Label 426: @8235 |
| 8412 | /* 8235 */ GIM_Reject, |
| 8413 | /* 8236 */ // Label 60: @8236 |
| 8414 | /* 8236 */ GIM_Try, /*On fail goto*//*Label 427*/ GIMT_Encode4(8247), // Rule ID 224 // |
| 8415 | /* 8241 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule169Enabled), |
| 8416 | /* 8244 */ // Combiner Rule #169: shift_immed_chain; wip_match_opcode 'G_SSHLSAT' |
| 8417 | /* 8244 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner91), |
| 8418 | /* 8247 */ // Label 427: @8247 |
| 8419 | /* 8247 */ GIM_Try, /*On fail goto*//*Label 428*/ GIMT_Encode4(8258), // Rule ID 230 // |
| 8420 | /* 8252 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule170Enabled), |
| 8421 | /* 8255 */ // Combiner Rule #170: shift_of_shifted_logic_chain; wip_match_opcode 'G_SSHLSAT' |
| 8422 | /* 8255 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner92), |
| 8423 | /* 8258 */ // Label 428: @8258 |
| 8424 | /* 8258 */ GIM_Reject, |
| 8425 | /* 8259 */ // Label 61: @8259 |
| 8426 | /* 8259 */ GIM_Try, /*On fail goto*//*Label 429*/ GIMT_Encode4(8270), // Rule ID 370 // |
| 8427 | /* 8264 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled), |
| 8428 | /* 8267 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_SMULFIX' |
| 8429 | /* 8267 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129), |
| 8430 | /* 8270 */ // Label 429: @8270 |
| 8431 | /* 8270 */ GIM_Reject, |
| 8432 | /* 8271 */ // Label 62: @8271 |
| 8433 | /* 8271 */ GIM_Try, /*On fail goto*//*Label 430*/ GIMT_Encode4(8282), // Rule ID 371 // |
| 8434 | /* 8276 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled), |
| 8435 | /* 8279 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_UMULFIX' |
| 8436 | /* 8279 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129), |
| 8437 | /* 8282 */ // Label 430: @8282 |
| 8438 | /* 8282 */ GIM_Reject, |
| 8439 | /* 8283 */ // Label 63: @8283 |
| 8440 | /* 8283 */ GIM_Try, /*On fail goto*//*Label 431*/ GIMT_Encode4(8294), // Rule ID 372 // |
| 8441 | /* 8288 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled), |
| 8442 | /* 8291 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_SMULFIXSAT' |
| 8443 | /* 8291 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129), |
| 8444 | /* 8294 */ // Label 431: @8294 |
| 8445 | /* 8294 */ GIM_Reject, |
| 8446 | /* 8295 */ // Label 64: @8295 |
| 8447 | /* 8295 */ GIM_Try, /*On fail goto*//*Label 432*/ GIMT_Encode4(8306), // Rule ID 373 // |
| 8448 | /* 8300 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled), |
| 8449 | /* 8303 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_UMULFIXSAT' |
| 8450 | /* 8303 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129), |
| 8451 | /* 8306 */ // Label 432: @8306 |
| 8452 | /* 8306 */ GIM_Reject, |
| 8453 | /* 8307 */ // Label 65: @8307 |
| 8454 | /* 8307 */ GIM_Try, /*On fail goto*//*Label 433*/ GIMT_Encode4(8318), // Rule ID 301 // |
| 8455 | /* 8312 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled), |
| 8456 | /* 8315 */ // Combiner Rule #194: redundant_neg_operands; wip_match_opcode 'G_FADD' |
| 8457 | /* 8315 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner109), |
| 8458 | /* 8318 */ // Label 433: @8318 |
| 8459 | /* 8318 */ GIM_Try, /*On fail goto*//*Label 434*/ GIMT_Encode4(8329), // Rule ID 308 // |
| 8460 | /* 8323 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule196Enabled), |
| 8461 | /* 8326 */ // Combiner Rule #196: combine_fadd_fmul_to_fmad_or_fma; wip_match_opcode 'G_FADD' |
| 8462 | /* 8326 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner111), |
| 8463 | /* 8329 */ // Label 434: @8329 |
| 8464 | /* 8329 */ GIM_Try, /*On fail goto*//*Label 435*/ GIMT_Encode4(8340), // Rule ID 309 // |
| 8465 | /* 8334 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule197Enabled), |
| 8466 | /* 8337 */ // Combiner Rule #197: combine_fadd_fpext_fmul_to_fmad_or_fma; wip_match_opcode 'G_FADD' |
| 8467 | /* 8337 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner112), |
| 8468 | /* 8340 */ // Label 435: @8340 |
| 8469 | /* 8340 */ GIM_Try, /*On fail goto*//*Label 436*/ GIMT_Encode4(8351), // Rule ID 310 // |
| 8470 | /* 8345 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule198Enabled), |
| 8471 | /* 8348 */ // Combiner Rule #198: combine_fadd_fma_fmul_to_fmad_or_fma; wip_match_opcode 'G_FADD' |
| 8472 | /* 8348 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner113), |
| 8473 | /* 8351 */ // Label 436: @8351 |
| 8474 | /* 8351 */ GIM_Try, /*On fail goto*//*Label 437*/ GIMT_Encode4(8362), // Rule ID 311 // |
| 8475 | /* 8356 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule199Enabled), |
| 8476 | /* 8359 */ // Combiner Rule #199: combine_fadd_fpext_fma_fmul_to_fmad_or_fma; wip_match_opcode 'G_FADD' |
| 8477 | /* 8359 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner114), |
| 8478 | /* 8362 */ // Label 437: @8362 |
| 8479 | /* 8362 */ GIM_Try, /*On fail goto*//*Label 438*/ GIMT_Encode4(8373), // Rule ID 334 // |
| 8480 | /* 8367 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled), |
| 8481 | /* 8370 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_FADD' |
| 8482 | /* 8370 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119), |
| 8483 | /* 8373 */ // Label 438: @8373 |
| 8484 | /* 8373 */ GIM_Try, /*On fail goto*//*Label 439*/ GIMT_Encode4(8384), // Rule ID 374 // |
| 8485 | /* 8378 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule217Enabled), |
| 8486 | /* 8381 */ // Combiner Rule #217: commute_fp_constant_to_rhs; wip_match_opcode 'G_FADD' |
| 8487 | /* 8381 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner130), |
| 8488 | /* 8384 */ // Label 439: @8384 |
| 8489 | /* 8384 */ GIM_Try, /*On fail goto*//*Label 440*/ GIMT_Encode4(8407), // Rule ID 148 // |
| 8490 | /* 8389 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule108Enabled), |
| 8491 | /* 8392 */ // MIs[0] dst |
| 8492 | /* 8392 */ // No operand predicates |
| 8493 | /* 8392 */ // MIs[0] x |
| 8494 | /* 8392 */ // No operand predicates |
| 8495 | /* 8392 */ // MIs[0] y |
| 8496 | /* 8392 */ // No operand predicates |
| 8497 | /* 8392 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner6), |
| 8498 | /* 8396 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 8499 | /* 8401 */ // Combiner Rule #108: right_identity_neg_zero_fp |
| 8500 | /* 8401 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 8501 | /* 8406 */ GIR_EraseRootFromParent_Done, |
| 8502 | /* 8407 */ // Label 440: @8407 |
| 8503 | /* 8407 */ GIM_Try, /*On fail goto*//*Label 441*/ GIMT_Encode4(8436), // Rule ID 149 // |
| 8504 | /* 8412 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule109Enabled), |
| 8505 | /* 8415 */ GIM_MIFlags, /*MI*/0, GIMT_Encode4(MachineInstr::FmNsz), |
| 8506 | /* 8421 */ // MIs[0] dst |
| 8507 | /* 8421 */ // No operand predicates |
| 8508 | /* 8421 */ // MIs[0] x |
| 8509 | /* 8421 */ // No operand predicates |
| 8510 | /* 8421 */ // MIs[0] y |
| 8511 | /* 8421 */ // No operand predicates |
| 8512 | /* 8421 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner7), |
| 8513 | /* 8425 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 8514 | /* 8430 */ // Combiner Rule #109: right_identity_neg_zero_fp_nsz |
| 8515 | /* 8430 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 8516 | /* 8435 */ GIR_EraseRootFromParent_Done, |
| 8517 | /* 8436 */ // Label 441: @8436 |
| 8518 | /* 8436 */ GIM_Try, /*On fail goto*//*Label 442*/ GIMT_Encode4(8447), // Rule ID 274 // |
| 8519 | /* 8441 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule188Enabled), |
| 8520 | /* 8444 */ // MIs[0] d |
| 8521 | /* 8444 */ // No operand predicates |
| 8522 | /* 8444 */ // MIs[0] mi.src0 |
| 8523 | /* 8444 */ // No operand predicates |
| 8524 | /* 8444 */ // MIs[0] mi.src1 |
| 8525 | /* 8444 */ // No operand predicates |
| 8526 | /* 8444 */ // Combiner Rule #188: constant_fold_fp_binop @ [mi[0]] |
| 8527 | /* 8444 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner104), |
| 8528 | /* 8447 */ // Label 442: @8447 |
| 8529 | /* 8447 */ GIM_Reject, |
| 8530 | /* 8448 */ // Label 66: @8448 |
| 8531 | /* 8448 */ GIM_Try, /*On fail goto*//*Label 443*/ GIMT_Encode4(8459), // Rule ID 302 // |
| 8532 | /* 8453 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled), |
| 8533 | /* 8456 */ // Combiner Rule #194: redundant_neg_operands; wip_match_opcode 'G_FSUB' |
| 8534 | /* 8456 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner109), |
| 8535 | /* 8459 */ // Label 443: @8459 |
| 8536 | /* 8459 */ GIM_Try, /*On fail goto*//*Label 444*/ GIMT_Encode4(8470), // Rule ID 312 // |
| 8537 | /* 8464 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule200Enabled), |
| 8538 | /* 8467 */ // Combiner Rule #200: combine_fsub_fmul_to_fmad_or_fma; wip_match_opcode 'G_FSUB' |
| 8539 | /* 8467 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner115), |
| 8540 | /* 8470 */ // Label 444: @8470 |
| 8541 | /* 8470 */ GIM_Try, /*On fail goto*//*Label 445*/ GIMT_Encode4(8481), // Rule ID 313 // |
| 8542 | /* 8475 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule201Enabled), |
| 8543 | /* 8478 */ // Combiner Rule #201: combine_fsub_fneg_fmul_to_fmad_or_fma; wip_match_opcode 'G_FSUB' |
| 8544 | /* 8478 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner116), |
| 8545 | /* 8481 */ // Label 445: @8481 |
| 8546 | /* 8481 */ GIM_Try, /*On fail goto*//*Label 446*/ GIMT_Encode4(8492), // Rule ID 314 // |
| 8547 | /* 8486 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule202Enabled), |
| 8548 | /* 8489 */ // Combiner Rule #202: combine_fsub_fpext_fmul_to_fmad_or_fma; wip_match_opcode 'G_FSUB' |
| 8549 | /* 8489 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner117), |
| 8550 | /* 8492 */ // Label 446: @8492 |
| 8551 | /* 8492 */ GIM_Try, /*On fail goto*//*Label 447*/ GIMT_Encode4(8503), // Rule ID 315 // |
| 8552 | /* 8497 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule203Enabled), |
| 8553 | /* 8500 */ // Combiner Rule #203: combine_fsub_fpext_fneg_fmul_to_fmad_or_fma; wip_match_opcode 'G_FSUB' |
| 8554 | /* 8500 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner118), |
| 8555 | /* 8503 */ // Label 447: @8503 |
| 8556 | /* 8503 */ GIM_Try, /*On fail goto*//*Label 448*/ GIMT_Encode4(8514), // Rule ID 335 // |
| 8557 | /* 8508 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled), |
| 8558 | /* 8511 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_FSUB' |
| 8559 | /* 8511 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119), |
| 8560 | /* 8514 */ // Label 448: @8514 |
| 8561 | /* 8514 */ GIM_Try, /*On fail goto*//*Label 449*/ GIMT_Encode4(8525), // Rule ID 352 // |
| 8562 | /* 8519 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule215Enabled), |
| 8563 | /* 8522 */ // Combiner Rule #215: fsub_to_fneg; wip_match_opcode 'G_FSUB' |
| 8564 | /* 8522 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner128), |
| 8565 | /* 8525 */ // Label 449: @8525 |
| 8566 | /* 8525 */ GIM_Try, /*On fail goto*//*Label 450*/ GIMT_Encode4(8536), // Rule ID 275 // |
| 8567 | /* 8530 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule188Enabled), |
| 8568 | /* 8533 */ // MIs[0] d |
| 8569 | /* 8533 */ // No operand predicates |
| 8570 | /* 8533 */ // MIs[0] mi.src0 |
| 8571 | /* 8533 */ // No operand predicates |
| 8572 | /* 8533 */ // MIs[0] mi.src1 |
| 8573 | /* 8533 */ // No operand predicates |
| 8574 | /* 8533 */ // Combiner Rule #188: constant_fold_fp_binop @ [mi[1]] |
| 8575 | /* 8533 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner104), |
| 8576 | /* 8536 */ // Label 450: @8536 |
| 8577 | /* 8536 */ GIM_Reject, |
| 8578 | /* 8537 */ // Label 67: @8537 |
| 8579 | /* 8537 */ GIM_Try, /*On fail goto*//*Label 451*/ GIMT_Encode4(8548), // Rule ID 303 // |
| 8580 | /* 8542 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled), |
| 8581 | /* 8545 */ // Combiner Rule #194: redundant_neg_operands; wip_match_opcode 'G_FMUL' |
| 8582 | /* 8545 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner109), |
| 8583 | /* 8548 */ // Label 451: @8548 |
| 8584 | /* 8548 */ GIM_Try, /*On fail goto*//*Label 452*/ GIMT_Encode4(8559), // Rule ID 333 // |
| 8585 | /* 8553 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled), |
| 8586 | /* 8556 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_FMUL' |
| 8587 | /* 8556 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119), |
| 8588 | /* 8559 */ // Label 452: @8559 |
| 8589 | /* 8559 */ GIM_Try, /*On fail goto*//*Label 453*/ GIMT_Encode4(8570), // Rule ID 375 // |
| 8590 | /* 8564 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule217Enabled), |
| 8591 | /* 8567 */ // Combiner Rule #217: commute_fp_constant_to_rhs; wip_match_opcode 'G_FMUL' |
| 8592 | /* 8567 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner130), |
| 8593 | /* 8570 */ // Label 453: @8570 |
| 8594 | /* 8570 */ GIM_Try, /*On fail goto*//*Label 454*/ GIMT_Encode4(8593), // Rule ID 138 // |
| 8595 | /* 8575 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule100Enabled), |
| 8596 | /* 8578 */ // MIs[0] dst |
| 8597 | /* 8578 */ // No operand predicates |
| 8598 | /* 8578 */ // MIs[0] x |
| 8599 | /* 8578 */ // No operand predicates |
| 8600 | /* 8578 */ // MIs[0] y |
| 8601 | /* 8578 */ // No operand predicates |
| 8602 | /* 8578 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner4), |
| 8603 | /* 8582 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 8604 | /* 8587 */ // Combiner Rule #100: right_identity_one_fp |
| 8605 | /* 8587 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 8606 | /* 8592 */ GIR_EraseRootFromParent_Done, |
| 8607 | /* 8593 */ // Label 454: @8593 |
| 8608 | /* 8593 */ GIM_Try, /*On fail goto*//*Label 455*/ GIMT_Encode4(8613), // Rule ID 150 // |
| 8609 | /* 8598 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule110Enabled), |
| 8610 | /* 8601 */ // MIs[0] dst |
| 8611 | /* 8601 */ // No operand predicates |
| 8612 | /* 8601 */ // MIs[0] x |
| 8613 | /* 8601 */ // No operand predicates |
| 8614 | /* 8601 */ // MIs[0] y |
| 8615 | /* 8601 */ // No operand predicates |
| 8616 | /* 8601 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner8), |
| 8617 | /* 8605 */ // Combiner Rule #110: right_identity_neg_one_fp |
| 8618 | /* 8605 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FNEG), |
| 8619 | /* 8608 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst |
| 8620 | /* 8610 */ GIR_RootToRootCopy, /*OpIdx*/1, // x |
| 8621 | /* 8612 */ GIR_EraseRootFromParent_Done, |
| 8622 | /* 8613 */ // Label 455: @8613 |
| 8623 | /* 8613 */ GIM_Try, /*On fail goto*//*Label 456*/ GIMT_Encode4(8624), // Rule ID 276 // |
| 8624 | /* 8618 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule188Enabled), |
| 8625 | /* 8621 */ // MIs[0] d |
| 8626 | /* 8621 */ // No operand predicates |
| 8627 | /* 8621 */ // MIs[0] mi.src0 |
| 8628 | /* 8621 */ // No operand predicates |
| 8629 | /* 8621 */ // MIs[0] mi.src1 |
| 8630 | /* 8621 */ // No operand predicates |
| 8631 | /* 8621 */ // Combiner Rule #188: constant_fold_fp_binop @ [mi[2]] |
| 8632 | /* 8621 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner104), |
| 8633 | /* 8624 */ // Label 456: @8624 |
| 8634 | /* 8624 */ GIM_Reject, |
| 8635 | /* 8625 */ // Label 68: @8625 |
| 8636 | /* 8625 */ GIM_Try, /*On fail goto*//*Label 457*/ GIMT_Encode4(8636), // Rule ID 287 // |
| 8637 | /* 8630 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule189Enabled), |
| 8638 | /* 8633 */ // Combiner Rule #189: constant_fold_fma; wip_match_opcode 'G_FMA' |
| 8639 | /* 8633 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner105), |
| 8640 | /* 8636 */ // Label 457: @8636 |
| 8641 | /* 8636 */ GIM_Try, /*On fail goto*//*Label 458*/ GIMT_Encode4(8647), // Rule ID 306 // |
| 8642 | /* 8641 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled), |
| 8643 | /* 8644 */ // Combiner Rule #194: redundant_neg_operands; wip_match_opcode 'G_FMA' |
| 8644 | /* 8644 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner109), |
| 8645 | /* 8647 */ // Label 458: @8647 |
| 8646 | /* 8647 */ GIM_Reject, |
| 8647 | /* 8648 */ // Label 69: @8648 |
| 8648 | /* 8648 */ GIM_Try, /*On fail goto*//*Label 459*/ GIMT_Encode4(8659), // Rule ID 286 // |
| 8649 | /* 8653 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule189Enabled), |
| 8650 | /* 8656 */ // Combiner Rule #189: constant_fold_fma; wip_match_opcode 'G_FMAD' |
| 8651 | /* 8656 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner105), |
| 8652 | /* 8659 */ // Label 459: @8659 |
| 8653 | /* 8659 */ GIM_Try, /*On fail goto*//*Label 460*/ GIMT_Encode4(8670), // Rule ID 305 // |
| 8654 | /* 8664 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled), |
| 8655 | /* 8667 */ // Combiner Rule #194: redundant_neg_operands; wip_match_opcode 'G_FMAD' |
| 8656 | /* 8667 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner109), |
| 8657 | /* 8670 */ // Label 460: @8670 |
| 8658 | /* 8670 */ GIM_Reject, |
| 8659 | /* 8671 */ // Label 70: @8671 |
| 8660 | /* 8671 */ GIM_Try, /*On fail goto*//*Label 461*/ GIMT_Encode4(8682), // Rule ID 304 // |
| 8661 | /* 8676 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule194Enabled), |
| 8662 | /* 8679 */ // Combiner Rule #194: redundant_neg_operands; wip_match_opcode 'G_FDIV' |
| 8663 | /* 8679 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner109), |
| 8664 | /* 8682 */ // Label 461: @8682 |
| 8665 | /* 8682 */ GIM_Try, /*On fail goto*//*Label 462*/ GIMT_Encode4(8693), // Rule ID 336 // |
| 8666 | /* 8687 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled), |
| 8667 | /* 8690 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_FDIV' |
| 8668 | /* 8690 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119), |
| 8669 | /* 8693 */ // Label 462: @8693 |
| 8670 | /* 8693 */ GIM_Try, /*On fail goto*//*Label 463*/ GIMT_Encode4(8704), // Rule ID 277 // |
| 8671 | /* 8698 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule188Enabled), |
| 8672 | /* 8701 */ // MIs[0] d |
| 8673 | /* 8701 */ // No operand predicates |
| 8674 | /* 8701 */ // MIs[0] mi.src0 |
| 8675 | /* 8701 */ // No operand predicates |
| 8676 | /* 8701 */ // MIs[0] mi.src1 |
| 8677 | /* 8701 */ // No operand predicates |
| 8678 | /* 8701 */ // Combiner Rule #188: constant_fold_fp_binop @ [mi[3]] |
| 8679 | /* 8701 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner104), |
| 8680 | /* 8704 */ // Label 463: @8704 |
| 8681 | /* 8704 */ GIM_Try, /*On fail goto*//*Label 464*/ GIMT_Encode4(8715), // Rule ID 349 // |
| 8682 | /* 8709 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule212Enabled), |
| 8683 | /* 8712 */ // MIs[0] dst |
| 8684 | /* 8712 */ // No operand predicates |
| 8685 | /* 8712 */ // MIs[0] src1 |
| 8686 | /* 8712 */ // No operand predicates |
| 8687 | /* 8712 */ // MIs[0] src2 |
| 8688 | /* 8712 */ // No operand predicates |
| 8689 | /* 8712 */ // Combiner Rule #212: fdiv_repeated_divison |
| 8690 | /* 8712 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner125), |
| 8691 | /* 8715 */ // Label 464: @8715 |
| 8692 | /* 8715 */ GIM_Reject, |
| 8693 | /* 8716 */ // Label 71: @8716 |
| 8694 | /* 8716 */ GIM_Try, /*On fail goto*//*Label 465*/ GIMT_Encode4(8727), // Rule ID 337 // |
| 8695 | /* 8721 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled), |
| 8696 | /* 8724 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_FREM' |
| 8697 | /* 8724 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119), |
| 8698 | /* 8727 */ // Label 465: @8727 |
| 8699 | /* 8727 */ GIM_Try, /*On fail goto*//*Label 466*/ GIMT_Encode4(8738), // Rule ID 278 // |
| 8700 | /* 8732 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule188Enabled), |
| 8701 | /* 8735 */ // MIs[0] d |
| 8702 | /* 8735 */ // No operand predicates |
| 8703 | /* 8735 */ // MIs[0] mi.src0 |
| 8704 | /* 8735 */ // No operand predicates |
| 8705 | /* 8735 */ // MIs[0] mi.src1 |
| 8706 | /* 8735 */ // No operand predicates |
| 8707 | /* 8735 */ // Combiner Rule #188: constant_fold_fp_binop @ [mi[4]] |
| 8708 | /* 8735 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner104), |
| 8709 | /* 8738 */ // Label 466: @8738 |
| 8710 | /* 8738 */ GIM_Reject, |
| 8711 | /* 8739 */ // Label 72: @8739 |
| 8712 | /* 8739 */ GIM_Try, /*On fail goto*//*Label 467*/ GIMT_Encode4(8760), // Rule ID 218 // |
| 8713 | /* 8744 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule166Enabled), |
| 8714 | /* 8747 */ // MIs[0] dst |
| 8715 | /* 8747 */ // No operand predicates |
| 8716 | /* 8747 */ // MIs[0] float |
| 8717 | /* 8747 */ // No operand predicates |
| 8718 | /* 8747 */ // MIs[0] int |
| 8719 | /* 8747 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1] |
| 8720 | /* 8751 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT), |
| 8721 | /* 8755 */ // MIs[1] imm |
| 8722 | /* 8755 */ // No operand predicates |
| 8723 | /* 8755 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 8724 | /* 8757 */ // Combiner Rule #166: expand_const_fpowi |
| 8725 | /* 8757 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner88), |
| 8726 | /* 8760 */ // Label 467: @8760 |
| 8727 | /* 8760 */ GIM_Reject, |
| 8728 | /* 8761 */ // Label 73: @8761 |
| 8729 | /* 8761 */ GIM_Try, /*On fail goto*//*Label 468*/ GIMT_Encode4(8782), // Rule ID 192 // |
| 8730 | /* 8766 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule148Enabled), |
| 8731 | /* 8769 */ // MIs[0] dst |
| 8732 | /* 8769 */ // No operand predicates |
| 8733 | /* 8769 */ // MIs[0] src0 |
| 8734 | /* 8769 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 8735 | /* 8773 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT), |
| 8736 | /* 8777 */ // MIs[1] cst |
| 8737 | /* 8777 */ // No operand predicates |
| 8738 | /* 8777 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 8739 | /* 8779 */ // Combiner Rule #148: constant_fold_flog2 |
| 8740 | /* 8779 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80), |
| 8741 | /* 8782 */ // Label 468: @8782 |
| 8742 | /* 8782 */ GIM_Reject, |
| 8743 | /* 8783 */ // Label 74: @8783 |
| 8744 | /* 8783 */ GIM_Try, /*On fail goto*//*Label 469*/ GIMT_Encode4(8804), // Rule ID 189 // |
| 8745 | /* 8788 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule145Enabled), |
| 8746 | /* 8791 */ // MIs[0] dst |
| 8747 | /* 8791 */ // No operand predicates |
| 8748 | /* 8791 */ // MIs[0] src0 |
| 8749 | /* 8791 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 8750 | /* 8795 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT), |
| 8751 | /* 8799 */ // MIs[1] cst |
| 8752 | /* 8799 */ // No operand predicates |
| 8753 | /* 8799 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 8754 | /* 8801 */ // Combiner Rule #145: constant_fold_fneg |
| 8755 | /* 8801 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80), |
| 8756 | /* 8804 */ // Label 469: @8804 |
| 8757 | /* 8804 */ GIM_Try, /*On fail goto*//*Label 470*/ GIMT_Encode4(8833), // Rule ID 136 // |
| 8758 | /* 8809 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule98Enabled), |
| 8759 | /* 8812 */ // MIs[0] dst |
| 8760 | /* 8812 */ // No operand predicates |
| 8761 | /* 8812 */ // MIs[0] t |
| 8762 | /* 8812 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 8763 | /* 8816 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FNEG), |
| 8764 | /* 8820 */ // MIs[1] src |
| 8765 | /* 8820 */ // No operand predicates |
| 8766 | /* 8820 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1, |
| 8767 | /* 8825 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 8768 | /* 8827 */ // Combiner Rule #98: fneg_fneg_fold |
| 8769 | /* 8827 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1, |
| 8770 | /* 8832 */ GIR_EraseRootFromParent_Done, |
| 8771 | /* 8833 */ // Label 470: @8833 |
| 8772 | /* 8833 */ GIM_Reject, |
| 8773 | /* 8834 */ // Label 75: @8834 |
| 8774 | /* 8834 */ GIM_Try, /*On fail goto*//*Label 471*/ GIMT_Encode4(8855), // Rule ID 194 // |
| 8775 | /* 8839 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule150Enabled), |
| 8776 | /* 8842 */ // MIs[0] dst |
| 8777 | /* 8842 */ // No operand predicates |
| 8778 | /* 8842 */ // MIs[0] src0 |
| 8779 | /* 8842 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 8780 | /* 8846 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT), |
| 8781 | /* 8850 */ // MIs[1] cst |
| 8782 | /* 8850 */ // No operand predicates |
| 8783 | /* 8850 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 8784 | /* 8852 */ // Combiner Rule #150: constant_fold_fpext |
| 8785 | /* 8852 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80), |
| 8786 | /* 8855 */ // Label 471: @8855 |
| 8787 | /* 8855 */ GIM_Reject, |
| 8788 | /* 8856 */ // Label 76: @8856 |
| 8789 | /* 8856 */ GIM_Try, /*On fail goto*//*Label 472*/ GIMT_Encode4(8877), // Rule ID 193 // |
| 8790 | /* 8861 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule149Enabled), |
| 8791 | /* 8864 */ // MIs[0] dst |
| 8792 | /* 8864 */ // No operand predicates |
| 8793 | /* 8864 */ // MIs[0] src0 |
| 8794 | /* 8864 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 8795 | /* 8868 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT), |
| 8796 | /* 8872 */ // MIs[1] cst |
| 8797 | /* 8872 */ // No operand predicates |
| 8798 | /* 8872 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 8799 | /* 8874 */ // Combiner Rule #149: constant_fold_fptrunc |
| 8800 | /* 8874 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80), |
| 8801 | /* 8877 */ // Label 472: @8877 |
| 8802 | /* 8877 */ GIM_Try, /*On fail goto*//*Label 473*/ GIMT_Encode4(8898), // Rule ID 147 // |
| 8803 | /* 8882 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule107Enabled), |
| 8804 | /* 8885 */ // MIs[0] dst |
| 8805 | /* 8885 */ // No operand predicates |
| 8806 | /* 8885 */ // MIs[0] src1 |
| 8807 | /* 8885 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 8808 | /* 8889 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FPEXT), |
| 8809 | /* 8893 */ // MIs[1] src0 |
| 8810 | /* 8893 */ // No operand predicates |
| 8811 | /* 8893 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 8812 | /* 8895 */ // Combiner Rule #107: fptrunc_fpext_fold |
| 8813 | /* 8895 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner51), |
| 8814 | /* 8898 */ // Label 473: @8898 |
| 8815 | /* 8898 */ GIM_Reject, |
| 8816 | /* 8899 */ // Label 77: @8899 |
| 8817 | /* 8899 */ GIM_Try, /*On fail goto*//*Label 474*/ GIMT_Encode4(8920), // Rule ID 98 // |
| 8818 | /* 8904 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule83Enabled), |
| 8819 | /* 8907 */ // MIs[0] dst |
| 8820 | /* 8907 */ // No operand predicates |
| 8821 | /* 8907 */ // MIs[0] __unary_undef_to_undef_match_0.x |
| 8822 | /* 8907 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 8823 | /* 8911 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF), |
| 8824 | /* 8915 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 8825 | /* 8917 */ // Combiner Rule #83: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[5]] |
| 8826 | /* 8917 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner38), |
| 8827 | /* 8920 */ // Label 474: @8920 |
| 8828 | /* 8920 */ GIM_Reject, |
| 8829 | /* 8921 */ // Label 78: @8921 |
| 8830 | /* 8921 */ GIM_Try, /*On fail goto*//*Label 475*/ GIMT_Encode4(8942), // Rule ID 99 // |
| 8831 | /* 8926 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule83Enabled), |
| 8832 | /* 8929 */ // MIs[0] dst |
| 8833 | /* 8929 */ // No operand predicates |
| 8834 | /* 8929 */ // MIs[0] __unary_undef_to_undef_match_0.x |
| 8835 | /* 8929 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 8836 | /* 8933 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF), |
| 8837 | /* 8937 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 8838 | /* 8939 */ // Combiner Rule #83: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[6]] |
| 8839 | /* 8939 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner38), |
| 8840 | /* 8942 */ // Label 475: @8942 |
| 8841 | /* 8942 */ GIM_Reject, |
| 8842 | /* 8943 */ // Label 79: @8943 |
| 8843 | /* 8943 */ GIM_Try, /*On fail goto*//*Label 476*/ GIMT_Encode4(8954), // Rule ID 82 // |
| 8844 | /* 8948 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule77Enabled), |
| 8845 | /* 8951 */ // Combiner Rule #77: undef_to_fp_zero; wip_match_opcode 'G_SITOFP' |
| 8846 | /* 8951 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner33), |
| 8847 | /* 8954 */ // Label 476: @8954 |
| 8848 | /* 8954 */ GIM_Try, /*On fail goto*//*Label 477*/ GIMT_Encode4(8969), // Rule ID 202 // |
| 8849 | /* 8959 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule158Enabled), |
| 8850 | /* 8962 */ // MIs[0] dst |
| 8851 | /* 8962 */ // No operand predicates |
| 8852 | /* 8962 */ // MIs[0] Operand 1 |
| 8853 | /* 8962 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/1, 0, |
| 8854 | /* 8966 */ // Combiner Rule #158: itof_const_zero_fold_si |
| 8855 | /* 8966 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner81), |
| 8856 | /* 8969 */ // Label 477: @8969 |
| 8857 | /* 8969 */ GIM_Reject, |
| 8858 | /* 8970 */ // Label 80: @8970 |
| 8859 | /* 8970 */ GIM_Try, /*On fail goto*//*Label 478*/ GIMT_Encode4(8981), // Rule ID 81 // |
| 8860 | /* 8975 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule77Enabled), |
| 8861 | /* 8978 */ // Combiner Rule #77: undef_to_fp_zero; wip_match_opcode 'G_UITOFP' |
| 8862 | /* 8978 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner33), |
| 8863 | /* 8981 */ // Label 478: @8981 |
| 8864 | /* 8981 */ GIM_Try, /*On fail goto*//*Label 479*/ GIMT_Encode4(8996), // Rule ID 203 // |
| 8865 | /* 8986 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule159Enabled), |
| 8866 | /* 8989 */ // MIs[0] dst |
| 8867 | /* 8989 */ // No operand predicates |
| 8868 | /* 8989 */ // MIs[0] Operand 1 |
| 8869 | /* 8989 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/1, 0, |
| 8870 | /* 8993 */ // Combiner Rule #159: itof_const_zero_fold_ui |
| 8871 | /* 8993 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner81), |
| 8872 | /* 8996 */ // Label 479: @8996 |
| 8873 | /* 8996 */ GIM_Reject, |
| 8874 | /* 8997 */ // Label 81: @8997 |
| 8875 | /* 8997 */ GIM_Try, /*On fail goto*//*Label 480*/ GIMT_Encode4(9026), // Rule ID 25 // |
| 8876 | /* 9002 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule24Enabled), |
| 8877 | /* 9005 */ // MIs[0] dst |
| 8878 | /* 9005 */ // No operand predicates |
| 8879 | /* 9005 */ // MIs[0] src |
| 8880 | /* 9005 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 8881 | /* 9009 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FABS), |
| 8882 | /* 9013 */ // MIs[1] __idempotent_prop_match_0.x |
| 8883 | /* 9013 */ // No operand predicates |
| 8884 | /* 9013 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 8885 | /* 9018 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 8886 | /* 9020 */ // Combiner Rule #24: idempotent_prop @ [__idempotent_prop_match_0[1]] |
| 8887 | /* 9020 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 8888 | /* 9025 */ GIR_EraseRootFromParent_Done, |
| 8889 | /* 9026 */ // Label 480: @9026 |
| 8890 | /* 9026 */ GIM_Try, /*On fail goto*//*Label 481*/ GIMT_Encode4(9047), // Rule ID 190 // |
| 8891 | /* 9031 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule146Enabled), |
| 8892 | /* 9034 */ // MIs[0] dst |
| 8893 | /* 9034 */ // No operand predicates |
| 8894 | /* 9034 */ // MIs[0] src0 |
| 8895 | /* 9034 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 8896 | /* 9038 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT), |
| 8897 | /* 9042 */ // MIs[1] cst |
| 8898 | /* 9042 */ // No operand predicates |
| 8899 | /* 9042 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 8900 | /* 9044 */ // Combiner Rule #146: constant_fold_fabs |
| 8901 | /* 9044 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80), |
| 8902 | /* 9047 */ // Label 481: @9047 |
| 8903 | /* 9047 */ GIM_Try, /*On fail goto*//*Label 482*/ GIMT_Encode4(9075), // Rule ID 299 // |
| 8904 | /* 9052 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule192Enabled), |
| 8905 | /* 9055 */ // MIs[0] dst |
| 8906 | /* 9055 */ // No operand predicates |
| 8907 | /* 9055 */ // MIs[0] tmp |
| 8908 | /* 9055 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 8909 | /* 9059 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FNEG), |
| 8910 | /* 9063 */ // MIs[1] x |
| 8911 | /* 9063 */ // No operand predicates |
| 8912 | /* 9063 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 8913 | /* 9065 */ // Combiner Rule #192: fabs_fneg_fold |
| 8914 | /* 9065 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FABS), |
| 8915 | /* 9068 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst |
| 8916 | /* 9070 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x |
| 8917 | /* 9074 */ GIR_EraseRootFromParent_Done, |
| 8918 | /* 9075 */ // Label 482: @9075 |
| 8919 | /* 9075 */ GIM_Reject, |
| 8920 | /* 9076 */ // Label 82: @9076 |
| 8921 | /* 9076 */ GIM_Try, /*On fail goto*//*Label 483*/ GIMT_Encode4(9087), // Rule ID 279 // |
| 8922 | /* 9081 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule188Enabled), |
| 8923 | /* 9084 */ // MIs[0] d |
| 8924 | /* 9084 */ // No operand predicates |
| 8925 | /* 9084 */ // MIs[0] mi.src0 |
| 8926 | /* 9084 */ // No operand predicates |
| 8927 | /* 9084 */ // MIs[0] mi.src1 |
| 8928 | /* 9084 */ // No operand predicates |
| 8929 | /* 9084 */ // Combiner Rule #188: constant_fold_fp_binop @ [mi[5]] |
| 8930 | /* 9084 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner104), |
| 8931 | /* 9087 */ // Label 483: @9087 |
| 8932 | /* 9087 */ GIM_Reject, |
| 8933 | /* 9088 */ // Label 83: @9088 |
| 8934 | /* 9088 */ GIM_Try, /*On fail goto*//*Label 484*/ GIMT_Encode4(9117), // Rule ID 26 // |
| 8935 | /* 9093 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule24Enabled), |
| 8936 | /* 9096 */ // MIs[0] dst |
| 8937 | /* 9096 */ // No operand predicates |
| 8938 | /* 9096 */ // MIs[0] src |
| 8939 | /* 9096 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 8940 | /* 9100 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCANONICALIZE), |
| 8941 | /* 9104 */ // MIs[1] __idempotent_prop_match_0.x |
| 8942 | /* 9104 */ // No operand predicates |
| 8943 | /* 9104 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 8944 | /* 9109 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 8945 | /* 9111 */ // Combiner Rule #24: idempotent_prop @ [__idempotent_prop_match_0[2]] |
| 8946 | /* 9111 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 8947 | /* 9116 */ GIR_EraseRootFromParent_Done, |
| 8948 | /* 9117 */ // Label 484: @9117 |
| 8949 | /* 9117 */ GIM_Reject, |
| 8950 | /* 9118 */ // Label 84: @9118 |
| 8951 | /* 9118 */ GIM_Try, /*On fail goto*//*Label 485*/ GIMT_Encode4(9129), // Rule ID 214 // |
| 8952 | /* 9123 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule165Enabled), |
| 8953 | /* 9126 */ // Combiner Rule #165: combine_minmax_nan; wip_match_opcode 'G_FMINNUM' |
| 8954 | /* 9126 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner87), |
| 8955 | /* 9129 */ // Label 485: @9129 |
| 8956 | /* 9129 */ GIM_Try, /*On fail goto*//*Label 486*/ GIMT_Encode4(9140), // Rule ID 338 // |
| 8957 | /* 9134 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled), |
| 8958 | /* 9137 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_FMINNUM' |
| 8959 | /* 9137 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119), |
| 8960 | /* 9140 */ // Label 486: @9140 |
| 8961 | /* 9140 */ GIM_Try, /*On fail goto*//*Label 487*/ GIMT_Encode4(9151), // Rule ID 376 // |
| 8962 | /* 9145 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule217Enabled), |
| 8963 | /* 9148 */ // Combiner Rule #217: commute_fp_constant_to_rhs; wip_match_opcode 'G_FMINNUM' |
| 8964 | /* 9148 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner130), |
| 8965 | /* 9151 */ // Label 487: @9151 |
| 8966 | /* 9151 */ GIM_Try, /*On fail goto*//*Label 488*/ GIMT_Encode4(9162), // Rule ID 280 // |
| 8967 | /* 9156 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule188Enabled), |
| 8968 | /* 9159 */ // MIs[0] d |
| 8969 | /* 9159 */ // No operand predicates |
| 8970 | /* 9159 */ // MIs[0] mi.src0 |
| 8971 | /* 9159 */ // No operand predicates |
| 8972 | /* 9159 */ // MIs[0] mi.src1 |
| 8973 | /* 9159 */ // No operand predicates |
| 8974 | /* 9159 */ // Combiner Rule #188: constant_fold_fp_binop @ [mi[6]] |
| 8975 | /* 9159 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner104), |
| 8976 | /* 9162 */ // Label 488: @9162 |
| 8977 | /* 9162 */ GIM_Reject, |
| 8978 | /* 9163 */ // Label 85: @9163 |
| 8979 | /* 9163 */ GIM_Try, /*On fail goto*//*Label 489*/ GIMT_Encode4(9174), // Rule ID 215 // |
| 8980 | /* 9168 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule165Enabled), |
| 8981 | /* 9171 */ // Combiner Rule #165: combine_minmax_nan; wip_match_opcode 'G_FMAXNUM' |
| 8982 | /* 9171 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner87), |
| 8983 | /* 9174 */ // Label 489: @9174 |
| 8984 | /* 9174 */ GIM_Try, /*On fail goto*//*Label 490*/ GIMT_Encode4(9185), // Rule ID 339 // |
| 8985 | /* 9179 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled), |
| 8986 | /* 9182 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_FMAXNUM' |
| 8987 | /* 9182 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119), |
| 8988 | /* 9185 */ // Label 490: @9185 |
| 8989 | /* 9185 */ GIM_Try, /*On fail goto*//*Label 491*/ GIMT_Encode4(9196), // Rule ID 377 // |
| 8990 | /* 9190 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule217Enabled), |
| 8991 | /* 9193 */ // Combiner Rule #217: commute_fp_constant_to_rhs; wip_match_opcode 'G_FMAXNUM' |
| 8992 | /* 9193 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner130), |
| 8993 | /* 9196 */ // Label 491: @9196 |
| 8994 | /* 9196 */ GIM_Try, /*On fail goto*//*Label 492*/ GIMT_Encode4(9207), // Rule ID 281 // |
| 8995 | /* 9201 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule188Enabled), |
| 8996 | /* 9204 */ // MIs[0] d |
| 8997 | /* 9204 */ // No operand predicates |
| 8998 | /* 9204 */ // MIs[0] mi.src0 |
| 8999 | /* 9204 */ // No operand predicates |
| 9000 | /* 9204 */ // MIs[0] mi.src1 |
| 9001 | /* 9204 */ // No operand predicates |
| 9002 | /* 9204 */ // Combiner Rule #188: constant_fold_fp_binop @ [mi[7]] |
| 9003 | /* 9204 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner104), |
| 9004 | /* 9207 */ // Label 492: @9207 |
| 9005 | /* 9207 */ GIM_Reject, |
| 9006 | /* 9208 */ // Label 86: @9208 |
| 9007 | /* 9208 */ GIM_Try, /*On fail goto*//*Label 493*/ GIMT_Encode4(9219), // Rule ID 378 // |
| 9008 | /* 9213 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule217Enabled), |
| 9009 | /* 9216 */ // Combiner Rule #217: commute_fp_constant_to_rhs; wip_match_opcode 'G_FMINNUM_IEEE' |
| 9010 | /* 9216 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner130), |
| 9011 | /* 9219 */ // Label 493: @9219 |
| 9012 | /* 9219 */ GIM_Reject, |
| 9013 | /* 9220 */ // Label 87: @9220 |
| 9014 | /* 9220 */ GIM_Try, /*On fail goto*//*Label 494*/ GIMT_Encode4(9231), // Rule ID 379 // |
| 9015 | /* 9225 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule217Enabled), |
| 9016 | /* 9228 */ // Combiner Rule #217: commute_fp_constant_to_rhs; wip_match_opcode 'G_FMAXNUM_IEEE' |
| 9017 | /* 9228 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner130), |
| 9018 | /* 9231 */ // Label 494: @9231 |
| 9019 | /* 9231 */ GIM_Reject, |
| 9020 | /* 9232 */ // Label 88: @9232 |
| 9021 | /* 9232 */ GIM_Try, /*On fail goto*//*Label 495*/ GIMT_Encode4(9243), // Rule ID 216 // |
| 9022 | /* 9237 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule165Enabled), |
| 9023 | /* 9240 */ // Combiner Rule #165: combine_minmax_nan; wip_match_opcode 'G_FMINIMUM' |
| 9024 | /* 9240 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner87), |
| 9025 | /* 9243 */ // Label 495: @9243 |
| 9026 | /* 9243 */ GIM_Try, /*On fail goto*//*Label 496*/ GIMT_Encode4(9254), // Rule ID 340 // |
| 9027 | /* 9248 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled), |
| 9028 | /* 9251 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_FMINIMUM' |
| 9029 | /* 9251 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119), |
| 9030 | /* 9254 */ // Label 496: @9254 |
| 9031 | /* 9254 */ GIM_Try, /*On fail goto*//*Label 497*/ GIMT_Encode4(9265), // Rule ID 380 // |
| 9032 | /* 9259 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule217Enabled), |
| 9033 | /* 9262 */ // Combiner Rule #217: commute_fp_constant_to_rhs; wip_match_opcode 'G_FMINIMUM' |
| 9034 | /* 9262 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner130), |
| 9035 | /* 9265 */ // Label 497: @9265 |
| 9036 | /* 9265 */ GIM_Try, /*On fail goto*//*Label 498*/ GIMT_Encode4(9276), // Rule ID 282 // |
| 9037 | /* 9270 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule188Enabled), |
| 9038 | /* 9273 */ // MIs[0] d |
| 9039 | /* 9273 */ // No operand predicates |
| 9040 | /* 9273 */ // MIs[0] mi.src0 |
| 9041 | /* 9273 */ // No operand predicates |
| 9042 | /* 9273 */ // MIs[0] mi.src1 |
| 9043 | /* 9273 */ // No operand predicates |
| 9044 | /* 9273 */ // Combiner Rule #188: constant_fold_fp_binop @ [mi[8]] |
| 9045 | /* 9273 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner104), |
| 9046 | /* 9276 */ // Label 498: @9276 |
| 9047 | /* 9276 */ GIM_Reject, |
| 9048 | /* 9277 */ // Label 89: @9277 |
| 9049 | /* 9277 */ GIM_Try, /*On fail goto*//*Label 499*/ GIMT_Encode4(9288), // Rule ID 217 // |
| 9050 | /* 9282 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule165Enabled), |
| 9051 | /* 9285 */ // Combiner Rule #165: combine_minmax_nan; wip_match_opcode 'G_FMAXIMUM' |
| 9052 | /* 9285 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner87), |
| 9053 | /* 9288 */ // Label 499: @9288 |
| 9054 | /* 9288 */ GIM_Try, /*On fail goto*//*Label 500*/ GIMT_Encode4(9299), // Rule ID 341 // |
| 9055 | /* 9293 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled), |
| 9056 | /* 9296 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_FMAXIMUM' |
| 9057 | /* 9296 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119), |
| 9058 | /* 9299 */ // Label 500: @9299 |
| 9059 | /* 9299 */ GIM_Try, /*On fail goto*//*Label 501*/ GIMT_Encode4(9310), // Rule ID 381 // |
| 9060 | /* 9304 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule217Enabled), |
| 9061 | /* 9307 */ // Combiner Rule #217: commute_fp_constant_to_rhs; wip_match_opcode 'G_FMAXIMUM' |
| 9062 | /* 9307 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner130), |
| 9063 | /* 9310 */ // Label 501: @9310 |
| 9064 | /* 9310 */ GIM_Try, /*On fail goto*//*Label 502*/ GIMT_Encode4(9321), // Rule ID 283 // |
| 9065 | /* 9315 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule188Enabled), |
| 9066 | /* 9318 */ // MIs[0] d |
| 9067 | /* 9318 */ // No operand predicates |
| 9068 | /* 9318 */ // MIs[0] mi.src0 |
| 9069 | /* 9318 */ // No operand predicates |
| 9070 | /* 9318 */ // MIs[0] mi.src1 |
| 9071 | /* 9318 */ // No operand predicates |
| 9072 | /* 9318 */ // Combiner Rule #188: constant_fold_fp_binop @ [mi[9]] |
| 9073 | /* 9318 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner104), |
| 9074 | /* 9321 */ // Label 502: @9321 |
| 9075 | /* 9321 */ GIM_Reject, |
| 9076 | /* 9322 */ // Label 90: @9322 |
| 9077 | /* 9322 */ GIM_Try, /*On fail goto*//*Label 503*/ GIMT_Encode4(9333), // Rule ID 284 // |
| 9078 | /* 9327 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule188Enabled), |
| 9079 | /* 9330 */ // MIs[0] d |
| 9080 | /* 9330 */ // No operand predicates |
| 9081 | /* 9330 */ // MIs[0] mi.src0 |
| 9082 | /* 9330 */ // No operand predicates |
| 9083 | /* 9330 */ // MIs[0] mi.src1 |
| 9084 | /* 9330 */ // No operand predicates |
| 9085 | /* 9330 */ // Combiner Rule #188: constant_fold_fp_binop @ [mi[10]] |
| 9086 | /* 9330 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner104), |
| 9087 | /* 9333 */ // Label 503: @9333 |
| 9088 | /* 9333 */ GIM_Reject, |
| 9089 | /* 9334 */ // Label 91: @9334 |
| 9090 | /* 9334 */ GIM_Try, /*On fail goto*//*Label 504*/ GIMT_Encode4(9345), // Rule ID 285 // |
| 9091 | /* 9339 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule188Enabled), |
| 9092 | /* 9342 */ // MIs[0] d |
| 9093 | /* 9342 */ // No operand predicates |
| 9094 | /* 9342 */ // MIs[0] mi.src0 |
| 9095 | /* 9342 */ // No operand predicates |
| 9096 | /* 9342 */ // MIs[0] mi.src1 |
| 9097 | /* 9342 */ // No operand predicates |
| 9098 | /* 9342 */ // Combiner Rule #188: constant_fold_fp_binop @ [mi[11]] |
| 9099 | /* 9342 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner104), |
| 9100 | /* 9345 */ // Label 504: @9345 |
| 9101 | /* 9345 */ GIM_Reject, |
| 9102 | /* 9346 */ // Label 92: @9346 |
| 9103 | /* 9346 */ GIM_Try, /*On fail goto*//*Label 505*/ GIMT_Encode4(9357), // Rule ID 159 // |
| 9104 | /* 9351 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule115Enabled), |
| 9105 | /* 9354 */ // Combiner Rule #115: reassoc_ptradd; wip_match_opcode 'G_PTR_ADD' |
| 9106 | /* 9354 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner56), |
| 9107 | /* 9357 */ // Label 505: @9357 |
| 9108 | /* 9357 */ GIM_Try, /*On fail goto*//*Label 506*/ GIMT_Encode4(9368), // Rule ID 161 // |
| 9109 | /* 9362 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule117Enabled), |
| 9110 | /* 9365 */ // Combiner Rule #117: ptr_add_immed_chain; wip_match_opcode 'G_PTR_ADD' |
| 9111 | /* 9365 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner58), |
| 9112 | /* 9368 */ // Label 506: @9368 |
| 9113 | /* 9368 */ GIM_Try, /*On fail goto*//*Label 507*/ GIMT_Encode4(9379), // Rule ID 204 // |
| 9114 | /* 9373 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule160Enabled), |
| 9115 | /* 9376 */ // Combiner Rule #160: const_ptradd_to_i2p; wip_match_opcode 'G_PTR_ADD' |
| 9116 | /* 9376 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner82), |
| 9117 | /* 9379 */ // Label 507: @9379 |
| 9118 | /* 9379 */ GIM_Try, /*On fail goto*//*Label 508*/ GIMT_Encode4(9390), // Rule ID 220 // |
| 9119 | /* 9384 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule168Enabled), |
| 9120 | /* 9387 */ // Combiner Rule #168: ptr_add_with_zero; wip_match_opcode 'G_PTR_ADD' |
| 9121 | /* 9387 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner90), |
| 9122 | /* 9390 */ // Label 508: @9390 |
| 9123 | /* 9390 */ GIM_Try, /*On fail goto*//*Label 509*/ GIMT_Encode4(9401), // Rule ID 257 // |
| 9124 | /* 9395 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled), |
| 9125 | /* 9398 */ // Combiner Rule #187: constant_fold_binop; wip_match_opcode 'G_PTR_ADD' |
| 9126 | /* 9398 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103), |
| 9127 | /* 9401 */ // Label 509: @9401 |
| 9128 | /* 9401 */ GIM_Try, /*On fail goto*//*Label 510*/ GIMT_Encode4(9412), // Rule ID 318 // |
| 9129 | /* 9406 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled), |
| 9130 | /* 9409 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_PTR_ADD' |
| 9131 | /* 9409 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119), |
| 9132 | /* 9412 */ // Label 510: @9412 |
| 9133 | /* 9412 */ GIM_Try, /*On fail goto*//*Label 511*/ GIMT_Encode4(9435), // Rule ID 117 // |
| 9134 | /* 9417 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled), |
| 9135 | /* 9420 */ // MIs[0] dst |
| 9136 | /* 9420 */ // No operand predicates |
| 9137 | /* 9420 */ // MIs[0] lhs |
| 9138 | /* 9420 */ // No operand predicates |
| 9139 | /* 9420 */ // MIs[0] Operand 2 |
| 9140 | /* 9420 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0, |
| 9141 | /* 9424 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 9142 | /* 9429 */ // Combiner Rule #90: right_identity_zero @ [__right_identity_zero_match_0[7]] |
| 9143 | /* 9429 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 9144 | /* 9434 */ GIR_EraseRootFromParent_Done, |
| 9145 | /* 9435 */ // Label 511: @9435 |
| 9146 | /* 9435 */ GIM_Reject, |
| 9147 | /* 9436 */ // Label 93: @9436 |
| 9148 | /* 9436 */ GIM_Try, /*On fail goto*//*Label 512*/ GIMT_Encode4(9447), // Rule ID 270 // |
| 9149 | /* 9441 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled), |
| 9150 | /* 9444 */ // Combiner Rule #187: constant_fold_binop; wip_match_opcode 'G_SMIN' |
| 9151 | /* 9444 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103), |
| 9152 | /* 9447 */ // Label 512: @9447 |
| 9153 | /* 9447 */ GIM_Try, /*On fail goto*//*Label 513*/ GIMT_Encode4(9458), // Rule ID 329 // |
| 9154 | /* 9452 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled), |
| 9155 | /* 9455 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_SMIN' |
| 9156 | /* 9455 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119), |
| 9157 | /* 9458 */ // Label 513: @9458 |
| 9158 | /* 9458 */ GIM_Try, /*On fail goto*//*Label 514*/ GIMT_Encode4(9469), // Rule ID 358 // |
| 9159 | /* 9463 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled), |
| 9160 | /* 9466 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_SMIN' |
| 9161 | /* 9466 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129), |
| 9162 | /* 9469 */ // Label 514: @9469 |
| 9163 | /* 9469 */ GIM_Reject, |
| 9164 | /* 9470 */ // Label 94: @9470 |
| 9165 | /* 9470 */ GIM_Try, /*On fail goto*//*Label 515*/ GIMT_Encode4(9481), // Rule ID 271 // |
| 9166 | /* 9475 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled), |
| 9167 | /* 9478 */ // Combiner Rule #187: constant_fold_binop; wip_match_opcode 'G_SMAX' |
| 9168 | /* 9478 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103), |
| 9169 | /* 9481 */ // Label 515: @9481 |
| 9170 | /* 9481 */ GIM_Try, /*On fail goto*//*Label 516*/ GIMT_Encode4(9492), // Rule ID 330 // |
| 9171 | /* 9486 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled), |
| 9172 | /* 9489 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_SMAX' |
| 9173 | /* 9489 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119), |
| 9174 | /* 9492 */ // Label 516: @9492 |
| 9175 | /* 9492 */ GIM_Try, /*On fail goto*//*Label 517*/ GIMT_Encode4(9503), // Rule ID 359 // |
| 9176 | /* 9497 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled), |
| 9177 | /* 9500 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_SMAX' |
| 9178 | /* 9500 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129), |
| 9179 | /* 9503 */ // Label 517: @9503 |
| 9180 | /* 9503 */ GIM_Reject, |
| 9181 | /* 9504 */ // Label 95: @9504 |
| 9182 | /* 9504 */ GIM_Try, /*On fail goto*//*Label 518*/ GIMT_Encode4(9515), // Rule ID 272 // |
| 9183 | /* 9509 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled), |
| 9184 | /* 9512 */ // Combiner Rule #187: constant_fold_binop; wip_match_opcode 'G_UMIN' |
| 9185 | /* 9512 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103), |
| 9186 | /* 9515 */ // Label 518: @9515 |
| 9187 | /* 9515 */ GIM_Try, /*On fail goto*//*Label 519*/ GIMT_Encode4(9526), // Rule ID 331 // |
| 9188 | /* 9520 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled), |
| 9189 | /* 9523 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_UMIN' |
| 9190 | /* 9523 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119), |
| 9191 | /* 9526 */ // Label 519: @9526 |
| 9192 | /* 9526 */ GIM_Try, /*On fail goto*//*Label 520*/ GIMT_Encode4(9537), // Rule ID 360 // |
| 9193 | /* 9531 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled), |
| 9194 | /* 9534 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_UMIN' |
| 9195 | /* 9534 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129), |
| 9196 | /* 9537 */ // Label 520: @9537 |
| 9197 | /* 9537 */ GIM_Reject, |
| 9198 | /* 9538 */ // Label 96: @9538 |
| 9199 | /* 9538 */ GIM_Try, /*On fail goto*//*Label 521*/ GIMT_Encode4(9549), // Rule ID 273 // |
| 9200 | /* 9543 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule187Enabled), |
| 9201 | /* 9546 */ // Combiner Rule #187: constant_fold_binop; wip_match_opcode 'G_UMAX' |
| 9202 | /* 9546 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner103), |
| 9203 | /* 9549 */ // Label 521: @9549 |
| 9204 | /* 9549 */ GIM_Try, /*On fail goto*//*Label 522*/ GIMT_Encode4(9560), // Rule ID 332 // |
| 9205 | /* 9554 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule204Enabled), |
| 9206 | /* 9557 */ // Combiner Rule #204: fold_binop_into_select; wip_match_opcode 'G_UMAX' |
| 9207 | /* 9557 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner119), |
| 9208 | /* 9560 */ // Label 522: @9560 |
| 9209 | /* 9560 */ GIM_Try, /*On fail goto*//*Label 523*/ GIMT_Encode4(9571), // Rule ID 361 // |
| 9210 | /* 9565 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule216Enabled), |
| 9211 | /* 9568 */ // Combiner Rule #216: commute_int_constant_to_rhs; wip_match_opcode 'G_UMAX' |
| 9212 | /* 9568 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner129), |
| 9213 | /* 9571 */ // Label 523: @9571 |
| 9214 | /* 9571 */ GIM_Reject, |
| 9215 | /* 9572 */ // Label 97: @9572 |
| 9216 | /* 9572 */ GIM_Try, /*On fail goto*//*Label 524*/ GIMT_Encode4(9583), // Rule ID 92 // |
| 9217 | /* 9577 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule82Enabled), |
| 9218 | /* 9580 */ // Combiner Rule #82: unary_undef_to_zero; wip_match_opcode 'G_ABS' |
| 9219 | /* 9580 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner36), |
| 9220 | /* 9583 */ // Label 524: @9583 |
| 9221 | /* 9583 */ GIM_Try, /*On fail goto*//*Label 525*/ GIMT_Encode4(9594), // Rule ID 296 // |
| 9222 | /* 9588 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule191Enabled), |
| 9223 | /* 9591 */ // MIs[0] dst |
| 9224 | /* 9591 */ // No operand predicates |
| 9225 | /* 9591 */ // MIs[0] mi.src |
| 9226 | /* 9591 */ // No operand predicates |
| 9227 | /* 9591 */ // Combiner Rule #191: constant_fold_unary_int_op @ [mi[5]] |
| 9228 | /* 9591 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner107), |
| 9229 | /* 9594 */ // Label 525: @9594 |
| 9230 | /* 9594 */ GIM_Reject, |
| 9231 | /* 9595 */ // Label 98: @9595 |
| 9232 | /* 9595 */ GIM_Try, /*On fail goto*//*Label 526*/ GIMT_Encode4(9606), // Rule ID 188 // |
| 9233 | /* 9600 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule144Enabled), |
| 9234 | /* 9603 */ // Combiner Rule #144: opt_brcond_by_inverting_cond; wip_match_opcode 'G_BR' |
| 9235 | /* 9603 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner79), |
| 9236 | /* 9606 */ // Label 526: @9606 |
| 9237 | /* 9606 */ GIM_Reject, |
| 9238 | /* 9607 */ // Label 99: @9607 |
| 9239 | /* 9607 */ GIM_Try, /*On fail goto*//*Label 527*/ GIMT_Encode4(9618), // Rule ID 32 // |
| 9240 | /* 9612 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule30Enabled), |
| 9241 | /* 9615 */ // Combiner Rule #30: insert_vector_elt_oob; wip_match_opcode 'G_INSERT_VECTOR_ELT' |
| 9242 | /* 9615 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner10), |
| 9243 | /* 9618 */ // Label 527: @9618 |
| 9244 | /* 9618 */ GIM_Try, /*On fail goto*//*Label 528*/ GIMT_Encode4(9629), // Rule ID 73 // |
| 9245 | /* 9623 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule71Enabled), |
| 9246 | /* 9626 */ // Combiner Rule #71: combine_insert_vec_elts_build_vector; wip_match_opcode 'G_INSERT_VECTOR_ELT' |
| 9247 | /* 9626 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner27), |
| 9248 | /* 9629 */ // Label 528: @9629 |
| 9249 | /* 9629 */ GIM_Try, /*On fail goto*//*Label 529*/ GIMT_Encode4(9640), // Rule ID 107 // |
| 9250 | /* 9634 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule88Enabled), |
| 9251 | /* 9637 */ // Combiner Rule #88: insert_extract_vec_elt_out_of_bounds; wip_match_opcode 'G_INSERT_VECTOR_ELT' |
| 9252 | /* 9637 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner43), |
| 9253 | /* 9640 */ // Label 529: @9640 |
| 9254 | /* 9640 */ GIM_Try, /*On fail goto*//*Label 530*/ GIMT_Encode4(9679), // Rule ID 44 // |
| 9255 | /* 9645 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule42Enabled), |
| 9256 | /* 9648 */ // MIs[0] root |
| 9257 | /* 9648 */ // No operand predicates |
| 9258 | /* 9648 */ // MIs[0] src |
| 9259 | /* 9648 */ // No operand predicates |
| 9260 | /* 9648 */ // MIs[0] elt |
| 9261 | /* 9648 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1] |
| 9262 | /* 9652 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_EXTRACT_VECTOR_ELT), |
| 9263 | /* 9656 */ // MIs[1] src |
| 9264 | /* 9656 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/1, /*OpIdx*/1, /*OtherMI*/0, /*OtherOpIdx*/1, |
| 9265 | /* 9661 */ // MIs[1] idx |
| 9266 | /* 9661 */ // No operand predicates |
| 9267 | /* 9661 */ // MIs[0] idx |
| 9268 | /* 9661 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/3, /*OtherMI*/1, /*OtherOpIdx*/2, |
| 9269 | /* 9666 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 9270 | /* 9671 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 9271 | /* 9673 */ // Combiner Rule #42: insert_vector_element_extract_vector_element |
| 9272 | /* 9673 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 9273 | /* 9678 */ GIR_EraseRootFromParent_Done, |
| 9274 | /* 9679 */ // Label 530: @9679 |
| 9275 | /* 9679 */ GIM_Try, /*On fail goto*//*Label 531*/ GIMT_Encode4(9712), // Rule ID 30 // |
| 9276 | /* 9684 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule28Enabled), |
| 9277 | /* 9687 */ // MIs[0] root |
| 9278 | /* 9687 */ // No operand predicates |
| 9279 | /* 9687 */ // MIs[0] src |
| 9280 | /* 9687 */ // No operand predicates |
| 9281 | /* 9687 */ // MIs[0] elt |
| 9282 | /* 9687 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1] |
| 9283 | /* 9691 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF), |
| 9284 | /* 9695 */ // MIs[0] idx |
| 9285 | /* 9695 */ // No operand predicates |
| 9286 | /* 9695 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner2), |
| 9287 | /* 9699 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 9288 | /* 9704 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 9289 | /* 9706 */ // Combiner Rule #28: insert_vector_element_elt_undef |
| 9290 | /* 9706 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 9291 | /* 9711 */ GIR_EraseRootFromParent_Done, |
| 9292 | /* 9712 */ // Label 531: @9712 |
| 9293 | /* 9712 */ GIM_Try, /*On fail goto*//*Label 532*/ GIMT_Encode4(9736), // Rule ID 29 // |
| 9294 | /* 9717 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule27Enabled), |
| 9295 | /* 9720 */ // MIs[0] root |
| 9296 | /* 9720 */ // No operand predicates |
| 9297 | /* 9720 */ // MIs[0] src |
| 9298 | /* 9720 */ // No operand predicates |
| 9299 | /* 9720 */ // MIs[0] elt |
| 9300 | /* 9720 */ // No operand predicates |
| 9301 | /* 9720 */ // MIs[0] idx |
| 9302 | /* 9720 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/3, // MIs[1] |
| 9303 | /* 9724 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF), |
| 9304 | /* 9728 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 9305 | /* 9730 */ // Combiner Rule #27: insert_vector_element_idx_undef |
| 9306 | /* 9730 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF), |
| 9307 | /* 9733 */ GIR_RootToRootCopy, /*OpIdx*/0, // root |
| 9308 | /* 9735 */ GIR_EraseRootFromParent_Done, |
| 9309 | /* 9736 */ // Label 532: @9736 |
| 9310 | /* 9736 */ GIM_Reject, |
| 9311 | /* 9737 */ // Label 100: @9737 |
| 9312 | /* 9737 */ GIM_Try, /*On fail goto*//*Label 533*/ GIMT_Encode4(9748), // Rule ID 31 // |
| 9313 | /* 9742 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule29Enabled), |
| 9314 | /* 9745 */ // Combiner Rule #29: match_extract_of_element; wip_match_opcode 'G_EXTRACT_VECTOR_ELT' |
| 9315 | /* 9745 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner9), |
| 9316 | /* 9748 */ // Label 533: @9748 |
| 9317 | /* 9748 */ GIM_Try, /*On fail goto*//*Label 534*/ GIMT_Encode4(9759), // Rule ID 74 // |
| 9318 | /* 9753 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule72Enabled), |
| 9319 | /* 9756 */ // Combiner Rule #72: extract_vec_elt_build_vec; wip_match_opcode 'G_EXTRACT_VECTOR_ELT' |
| 9320 | /* 9756 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner28), |
| 9321 | /* 9759 */ // Label 534: @9759 |
| 9322 | /* 9759 */ GIM_Try, /*On fail goto*//*Label 535*/ GIMT_Encode4(9770), // Rule ID 80 // |
| 9323 | /* 9764 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule76Enabled), |
| 9324 | /* 9767 */ // Combiner Rule #76: combine_extracted_vector_load; wip_match_opcode 'G_EXTRACT_VECTOR_ELT' |
| 9325 | /* 9767 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner32), |
| 9326 | /* 9770 */ // Label 535: @9770 |
| 9327 | /* 9770 */ GIM_Try, /*On fail goto*//*Label 536*/ GIMT_Encode4(9781), // Rule ID 108 // |
| 9328 | /* 9775 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule88Enabled), |
| 9329 | /* 9778 */ // Combiner Rule #88: insert_extract_vec_elt_out_of_bounds; wip_match_opcode 'G_EXTRACT_VECTOR_ELT' |
| 9330 | /* 9778 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner43), |
| 9331 | /* 9781 */ // Label 536: @9781 |
| 9332 | /* 9781 */ GIM_Try, /*On fail goto*//*Label 537*/ GIMT_Encode4(9805), // Rule ID 42 // |
| 9333 | /* 9786 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule40Enabled), |
| 9334 | /* 9789 */ // MIs[0] root |
| 9335 | /* 9789 */ // No operand predicates |
| 9336 | /* 9789 */ // MIs[0] src |
| 9337 | /* 9789 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 9338 | /* 9793 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR_TRUNC), |
| 9339 | /* 9797 */ GIM_CheckNumOperands, /*MI*/1, /*Expected*/9, |
| 9340 | /* 9800 */ // MIs[1] x |
| 9341 | /* 9800 */ // No operand predicates |
| 9342 | /* 9800 */ // MIs[1] y |
| 9343 | /* 9800 */ // No operand predicates |
| 9344 | /* 9800 */ // MIs[1] z |
| 9345 | /* 9800 */ // No operand predicates |
| 9346 | /* 9800 */ // MIs[1] a |
| 9347 | /* 9800 */ // No operand predicates |
| 9348 | /* 9800 */ // MIs[1] b |
| 9349 | /* 9800 */ // No operand predicates |
| 9350 | /* 9800 */ // MIs[1] c |
| 9351 | /* 9800 */ // No operand predicates |
| 9352 | /* 9800 */ // MIs[1] d |
| 9353 | /* 9800 */ // No operand predicates |
| 9354 | /* 9800 */ // MIs[1] e |
| 9355 | /* 9800 */ // No operand predicates |
| 9356 | /* 9800 */ // MIs[0] idx |
| 9357 | /* 9800 */ // No operand predicates |
| 9358 | /* 9800 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 9359 | /* 9802 */ // Combiner Rule #40: extract_vector_element_build_vector_trunc8 |
| 9360 | /* 9802 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner13), |
| 9361 | /* 9805 */ // Label 537: @9805 |
| 9362 | /* 9805 */ GIM_Try, /*On fail goto*//*Label 538*/ GIMT_Encode4(9829), // Rule ID 41 // |
| 9363 | /* 9810 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule39Enabled), |
| 9364 | /* 9813 */ // MIs[0] root |
| 9365 | /* 9813 */ // No operand predicates |
| 9366 | /* 9813 */ // MIs[0] src |
| 9367 | /* 9813 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 9368 | /* 9817 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR_TRUNC), |
| 9369 | /* 9821 */ GIM_CheckNumOperands, /*MI*/1, /*Expected*/8, |
| 9370 | /* 9824 */ // MIs[1] x |
| 9371 | /* 9824 */ // No operand predicates |
| 9372 | /* 9824 */ // MIs[1] y |
| 9373 | /* 9824 */ // No operand predicates |
| 9374 | /* 9824 */ // MIs[1] z |
| 9375 | /* 9824 */ // No operand predicates |
| 9376 | /* 9824 */ // MIs[1] a |
| 9377 | /* 9824 */ // No operand predicates |
| 9378 | /* 9824 */ // MIs[1] b |
| 9379 | /* 9824 */ // No operand predicates |
| 9380 | /* 9824 */ // MIs[1] c |
| 9381 | /* 9824 */ // No operand predicates |
| 9382 | /* 9824 */ // MIs[1] d |
| 9383 | /* 9824 */ // No operand predicates |
| 9384 | /* 9824 */ // MIs[0] idx |
| 9385 | /* 9824 */ // No operand predicates |
| 9386 | /* 9824 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 9387 | /* 9826 */ // Combiner Rule #39: extract_vector_element_build_vector_trunc7 |
| 9388 | /* 9826 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner13), |
| 9389 | /* 9829 */ // Label 538: @9829 |
| 9390 | /* 9829 */ GIM_Try, /*On fail goto*//*Label 539*/ GIMT_Encode4(9853), // Rule ID 40 // |
| 9391 | /* 9834 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule38Enabled), |
| 9392 | /* 9837 */ // MIs[0] root |
| 9393 | /* 9837 */ // No operand predicates |
| 9394 | /* 9837 */ // MIs[0] src |
| 9395 | /* 9837 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 9396 | /* 9841 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR_TRUNC), |
| 9397 | /* 9845 */ GIM_CheckNumOperands, /*MI*/1, /*Expected*/7, |
| 9398 | /* 9848 */ // MIs[1] x |
| 9399 | /* 9848 */ // No operand predicates |
| 9400 | /* 9848 */ // MIs[1] y |
| 9401 | /* 9848 */ // No operand predicates |
| 9402 | /* 9848 */ // MIs[1] z |
| 9403 | /* 9848 */ // No operand predicates |
| 9404 | /* 9848 */ // MIs[1] a |
| 9405 | /* 9848 */ // No operand predicates |
| 9406 | /* 9848 */ // MIs[1] b |
| 9407 | /* 9848 */ // No operand predicates |
| 9408 | /* 9848 */ // MIs[1] c |
| 9409 | /* 9848 */ // No operand predicates |
| 9410 | /* 9848 */ // MIs[0] idx |
| 9411 | /* 9848 */ // No operand predicates |
| 9412 | /* 9848 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 9413 | /* 9850 */ // Combiner Rule #38: extract_vector_element_build_vector_trunc6 |
| 9414 | /* 9850 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner13), |
| 9415 | /* 9853 */ // Label 539: @9853 |
| 9416 | /* 9853 */ GIM_Try, /*On fail goto*//*Label 540*/ GIMT_Encode4(9877), // Rule ID 39 // |
| 9417 | /* 9858 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule37Enabled), |
| 9418 | /* 9861 */ // MIs[0] root |
| 9419 | /* 9861 */ // No operand predicates |
| 9420 | /* 9861 */ // MIs[0] src |
| 9421 | /* 9861 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 9422 | /* 9865 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR_TRUNC), |
| 9423 | /* 9869 */ GIM_CheckNumOperands, /*MI*/1, /*Expected*/6, |
| 9424 | /* 9872 */ // MIs[1] x |
| 9425 | /* 9872 */ // No operand predicates |
| 9426 | /* 9872 */ // MIs[1] y |
| 9427 | /* 9872 */ // No operand predicates |
| 9428 | /* 9872 */ // MIs[1] z |
| 9429 | /* 9872 */ // No operand predicates |
| 9430 | /* 9872 */ // MIs[1] a |
| 9431 | /* 9872 */ // No operand predicates |
| 9432 | /* 9872 */ // MIs[1] b |
| 9433 | /* 9872 */ // No operand predicates |
| 9434 | /* 9872 */ // MIs[0] idx |
| 9435 | /* 9872 */ // No operand predicates |
| 9436 | /* 9872 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 9437 | /* 9874 */ // Combiner Rule #37: extract_vector_element_build_vector_trunc5 |
| 9438 | /* 9874 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner13), |
| 9439 | /* 9877 */ // Label 540: @9877 |
| 9440 | /* 9877 */ GIM_Try, /*On fail goto*//*Label 541*/ GIMT_Encode4(9901), // Rule ID 38 // |
| 9441 | /* 9882 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule36Enabled), |
| 9442 | /* 9885 */ // MIs[0] root |
| 9443 | /* 9885 */ // No operand predicates |
| 9444 | /* 9885 */ // MIs[0] src |
| 9445 | /* 9885 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 9446 | /* 9889 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR_TRUNC), |
| 9447 | /* 9893 */ GIM_CheckNumOperands, /*MI*/1, /*Expected*/5, |
| 9448 | /* 9896 */ // MIs[1] x |
| 9449 | /* 9896 */ // No operand predicates |
| 9450 | /* 9896 */ // MIs[1] y |
| 9451 | /* 9896 */ // No operand predicates |
| 9452 | /* 9896 */ // MIs[1] z |
| 9453 | /* 9896 */ // No operand predicates |
| 9454 | /* 9896 */ // MIs[1] a |
| 9455 | /* 9896 */ // No operand predicates |
| 9456 | /* 9896 */ // MIs[0] idx |
| 9457 | /* 9896 */ // No operand predicates |
| 9458 | /* 9896 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 9459 | /* 9898 */ // Combiner Rule #36: extract_vector_element_build_vector_trunc4 |
| 9460 | /* 9898 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner13), |
| 9461 | /* 9901 */ // Label 541: @9901 |
| 9462 | /* 9901 */ GIM_Try, /*On fail goto*//*Label 542*/ GIMT_Encode4(9925), // Rule ID 37 // |
| 9463 | /* 9906 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule35Enabled), |
| 9464 | /* 9909 */ // MIs[0] root |
| 9465 | /* 9909 */ // No operand predicates |
| 9466 | /* 9909 */ // MIs[0] src |
| 9467 | /* 9909 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 9468 | /* 9913 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR_TRUNC), |
| 9469 | /* 9917 */ GIM_CheckNumOperands, /*MI*/1, /*Expected*/4, |
| 9470 | /* 9920 */ // MIs[1] x |
| 9471 | /* 9920 */ // No operand predicates |
| 9472 | /* 9920 */ // MIs[1] y |
| 9473 | /* 9920 */ // No operand predicates |
| 9474 | /* 9920 */ // MIs[1] z |
| 9475 | /* 9920 */ // No operand predicates |
| 9476 | /* 9920 */ // MIs[0] idx |
| 9477 | /* 9920 */ // No operand predicates |
| 9478 | /* 9920 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 9479 | /* 9922 */ // Combiner Rule #35: extract_vector_element_build_vector_trunc3 |
| 9480 | /* 9922 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner13), |
| 9481 | /* 9925 */ // Label 542: @9925 |
| 9482 | /* 9925 */ GIM_Try, /*On fail goto*//*Label 543*/ GIMT_Encode4(9959), // Rule ID 33 // |
| 9483 | /* 9930 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule31Enabled), |
| 9484 | /* 9933 */ // MIs[0] root |
| 9485 | /* 9933 */ // No operand predicates |
| 9486 | /* 9933 */ // MIs[0] src |
| 9487 | /* 9933 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 9488 | /* 9937 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_INSERT_VECTOR_ELT), |
| 9489 | /* 9941 */ // MIs[1] x |
| 9490 | /* 9941 */ // No operand predicates |
| 9491 | /* 9941 */ // MIs[1] value |
| 9492 | /* 9941 */ // No operand predicates |
| 9493 | /* 9941 */ // MIs[1] idx |
| 9494 | /* 9941 */ // No operand predicates |
| 9495 | /* 9941 */ // MIs[0] idx |
| 9496 | /* 9941 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/3, |
| 9497 | /* 9946 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/2, |
| 9498 | /* 9951 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 9499 | /* 9953 */ // Combiner Rule #31: extract_vector_element_not_const |
| 9500 | /* 9953 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/2, |
| 9501 | /* 9958 */ GIR_EraseRootFromParent_Done, |
| 9502 | /* 9959 */ // Label 543: @9959 |
| 9503 | /* 9959 */ GIM_Try, /*On fail goto*//*Label 544*/ GIMT_Encode4(9980), // Rule ID 34 // |
| 9504 | /* 9964 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule32Enabled), |
| 9505 | /* 9967 */ // MIs[0] root |
| 9506 | /* 9967 */ // No operand predicates |
| 9507 | /* 9967 */ // MIs[0] src |
| 9508 | /* 9967 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 9509 | /* 9971 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_INSERT_VECTOR_ELT), |
| 9510 | /* 9975 */ // MIs[1] x |
| 9511 | /* 9975 */ // No operand predicates |
| 9512 | /* 9975 */ // MIs[1] value |
| 9513 | /* 9975 */ // No operand predicates |
| 9514 | /* 9975 */ // MIs[1] idx2 |
| 9515 | /* 9975 */ // No operand predicates |
| 9516 | /* 9975 */ // MIs[0] idx1 |
| 9517 | /* 9975 */ // No operand predicates |
| 9518 | /* 9975 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 9519 | /* 9977 */ // Combiner Rule #32: extract_vector_element_different_indices |
| 9520 | /* 9977 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner11), |
| 9521 | /* 9980 */ // Label 544: @9980 |
| 9522 | /* 9980 */ GIM_Try, /*On fail goto*//*Label 545*/ GIMT_Encode4(10009), // Rule ID 43 // |
| 9523 | /* 9985 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule41Enabled), |
| 9524 | /* 9988 */ // MIs[0] root |
| 9525 | /* 9988 */ // No operand predicates |
| 9526 | /* 9988 */ // MIs[0] src |
| 9527 | /* 9988 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 9528 | /* 9992 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SHUFFLE_VECTOR), |
| 9529 | /* 9996 */ // MIs[1] src1 |
| 9530 | /* 9996 */ // No operand predicates |
| 9531 | /* 9996 */ // MIs[1] src2 |
| 9532 | /* 9996 */ // No operand predicates |
| 9533 | /* 9996 */ // MIs[1] mask |
| 9534 | /* 9996 */ // No operand predicates |
| 9535 | /* 9996 */ // MIs[0] idx |
| 9536 | /* 9996 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2] |
| 9537 | /* 10000 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT), |
| 9538 | /* 10004 */ // MIs[2] imm |
| 9539 | /* 10004 */ // No operand predicates |
| 9540 | /* 10004 */ GIM_CheckIsSafeToFold, /*NumInsns*/2, |
| 9541 | /* 10006 */ // Combiner Rule #41: extract_vector_element_shuffle_vector |
| 9542 | /* 10006 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner14), |
| 9543 | /* 10009 */ // Label 545: @10009 |
| 9544 | /* 10009 */ GIM_Try, /*On fail goto*//*Label 546*/ GIMT_Encode4(10033), // Rule ID 36 // |
| 9545 | /* 10014 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule34Enabled), |
| 9546 | /* 10017 */ // MIs[0] root |
| 9547 | /* 10017 */ // No operand predicates |
| 9548 | /* 10017 */ // MIs[0] src |
| 9549 | /* 10017 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 9550 | /* 10021 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR_TRUNC), |
| 9551 | /* 10025 */ GIM_CheckNumOperands, /*MI*/1, /*Expected*/3, |
| 9552 | /* 10028 */ // MIs[1] x |
| 9553 | /* 10028 */ // No operand predicates |
| 9554 | /* 10028 */ // MIs[1] y |
| 9555 | /* 10028 */ // No operand predicates |
| 9556 | /* 10028 */ // MIs[0] idx |
| 9557 | /* 10028 */ // No operand predicates |
| 9558 | /* 10028 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 9559 | /* 10030 */ // Combiner Rule #34: extract_vector_element_build_vector_trunc2 |
| 9560 | /* 10030 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner13), |
| 9561 | /* 10033 */ // Label 546: @10033 |
| 9562 | /* 10033 */ GIM_Try, /*On fail goto*//*Label 547*/ GIMT_Encode4(10065), // Rule ID 35 // |
| 9563 | /* 10038 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule33Enabled), |
| 9564 | /* 10041 */ // MIs[0] root |
| 9565 | /* 10041 */ // No operand predicates |
| 9566 | /* 10041 */ // MIs[0] src |
| 9567 | /* 10041 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 9568 | /* 10045 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR), |
| 9569 | /* 10049 */ GIM_CheckNumOperandsGE, /*MI*/1, /*Expected*/2, |
| 9570 | /* 10052 */ // MIs[1] unused |
| 9571 | /* 10052 */ // No operand predicates |
| 9572 | /* 10052 */ // MIs[0] idx |
| 9573 | /* 10052 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/0, /*OpIdx*/2, // MIs[2] |
| 9574 | /* 10056 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT), |
| 9575 | /* 10060 */ // MIs[2] imm |
| 9576 | /* 10060 */ // No operand predicates |
| 9577 | /* 10060 */ GIM_CheckIsSafeToFold, /*NumInsns*/2, |
| 9578 | /* 10062 */ // Combiner Rule #33: extract_vector_element_build_vector |
| 9579 | /* 10062 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner12), |
| 9580 | /* 10065 */ // Label 547: @10065 |
| 9581 | /* 10065 */ GIM_Try, /*On fail goto*//*Label 548*/ GIMT_Encode4(10089), // Rule ID 27 // |
| 9582 | /* 10070 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule25Enabled), |
| 9583 | /* 10073 */ // MIs[0] root |
| 9584 | /* 10073 */ // No operand predicates |
| 9585 | /* 10073 */ // MIs[0] vector |
| 9586 | /* 10073 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 9587 | /* 10077 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF), |
| 9588 | /* 10081 */ // MIs[0] idx |
| 9589 | /* 10081 */ // No operand predicates |
| 9590 | /* 10081 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 9591 | /* 10083 */ // Combiner Rule #25: match_extract_of_element_undef_vector |
| 9592 | /* 10083 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF), |
| 9593 | /* 10086 */ GIR_RootToRootCopy, /*OpIdx*/0, // root |
| 9594 | /* 10088 */ GIR_EraseRootFromParent_Done, |
| 9595 | /* 10089 */ // Label 548: @10089 |
| 9596 | /* 10089 */ GIM_Try, /*On fail goto*//*Label 549*/ GIMT_Encode4(10113), // Rule ID 28 // |
| 9597 | /* 10094 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule26Enabled), |
| 9598 | /* 10097 */ // MIs[0] root |
| 9599 | /* 10097 */ // No operand predicates |
| 9600 | /* 10097 */ // MIs[0] vector |
| 9601 | /* 10097 */ // No operand predicates |
| 9602 | /* 10097 */ // MIs[0] idx |
| 9603 | /* 10097 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1] |
| 9604 | /* 10101 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF), |
| 9605 | /* 10105 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 9606 | /* 10107 */ // Combiner Rule #26: match_extract_of_element_undef_index |
| 9607 | /* 10107 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF), |
| 9608 | /* 10110 */ GIR_RootToRootCopy, /*OpIdx*/0, // root |
| 9609 | /* 10112 */ GIR_EraseRootFromParent_Done, |
| 9610 | /* 10113 */ // Label 549: @10113 |
| 9611 | /* 10113 */ GIM_Reject, |
| 9612 | /* 10114 */ // Label 101: @10114 |
| 9613 | /* 10114 */ GIM_Try, /*On fail goto*//*Label 550*/ GIMT_Encode4(10125), // Rule ID 103 // |
| 9614 | /* 10119 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule85Enabled), |
| 9615 | /* 10122 */ // Combiner Rule #85: propagate_undef_all_ops; wip_match_opcode 'G_SHUFFLE_VECTOR' |
| 9616 | /* 10122 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner40), |
| 9617 | /* 10125 */ // Label 550: @10125 |
| 9618 | /* 10125 */ GIM_Try, /*On fail goto*//*Label 551*/ GIMT_Encode4(10136), // Rule ID 105 // |
| 9619 | /* 10130 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule86Enabled), |
| 9620 | /* 10133 */ // Combiner Rule #86: propagate_undef_shuffle_mask; wip_match_opcode 'G_SHUFFLE_VECTOR' |
| 9621 | /* 10133 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner41), |
| 9622 | /* 10136 */ // Label 551: @10136 |
| 9623 | /* 10136 */ GIM_Try, /*On fail goto*//*Label 552*/ GIMT_Encode4(10147), // Rule ID 395 // |
| 9624 | /* 10141 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule231Enabled), |
| 9625 | /* 10144 */ // Combiner Rule #231: combine_shuffle_concat; wip_match_opcode 'G_SHUFFLE_VECTOR' |
| 9626 | /* 10144 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner138), |
| 9627 | /* 10147 */ // Label 552: @10147 |
| 9628 | /* 10147 */ GIM_Try, /*On fail goto*//*Label 553*/ GIMT_Encode4(10158), // Rule ID 397 // |
| 9629 | /* 10152 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule233Enabled), |
| 9630 | /* 10155 */ // Combiner Rule #233: combine_shuffle_disjoint_mask; wip_match_opcode 'G_SHUFFLE_VECTOR' |
| 9631 | /* 10155 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner140), |
| 9632 | /* 10158 */ // Label 553: @10158 |
| 9633 | /* 10158 */ GIM_Try, /*On fail goto*//*Label 554*/ GIMT_Encode4(10169), // Rule ID 441 // |
| 9634 | /* 10163 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule269Enabled), |
| 9635 | /* 10166 */ // Combiner Rule #269: combine_shuffle_vector; wip_match_opcode 'G_SHUFFLE_VECTOR' |
| 9636 | /* 10166 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner160), |
| 9637 | /* 10169 */ // Label 554: @10169 |
| 9638 | /* 10169 */ GIM_Try, /*On fail goto*//*Label 555*/ GIMT_Encode4(10190), // Rule ID 396 // |
| 9639 | /* 10174 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule232Enabled), |
| 9640 | /* 10177 */ // MIs[0] root |
| 9641 | /* 10177 */ // No operand predicates |
| 9642 | /* 10177 */ // MIs[0] src1 |
| 9643 | /* 10177 */ // No operand predicates |
| 9644 | /* 10177 */ // MIs[0] undef |
| 9645 | /* 10177 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1] |
| 9646 | /* 10181 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF), |
| 9647 | /* 10185 */ // MIs[0] mask |
| 9648 | /* 10185 */ // No operand predicates |
| 9649 | /* 10185 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 9650 | /* 10187 */ // Combiner Rule #232: combine_shuffle_undef_rhs |
| 9651 | /* 10187 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner139), |
| 9652 | /* 10190 */ // Label 555: @10190 |
| 9653 | /* 10190 */ GIM_Reject, |
| 9654 | /* 10191 */ // Label 102: @10191 |
| 9655 | /* 10191 */ GIM_Try, /*On fail goto*//*Label 556*/ GIMT_Encode4(10202), // Rule ID 293 // |
| 9656 | /* 10196 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule191Enabled), |
| 9657 | /* 10199 */ // MIs[0] dst |
| 9658 | /* 10199 */ // No operand predicates |
| 9659 | /* 10199 */ // MIs[0] mi.src |
| 9660 | /* 10199 */ // No operand predicates |
| 9661 | /* 10199 */ // Combiner Rule #191: constant_fold_unary_int_op @ [mi[2]] |
| 9662 | /* 10199 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner107), |
| 9663 | /* 10202 */ // Label 556: @10202 |
| 9664 | /* 10202 */ GIM_Try, /*On fail goto*//*Label 557*/ GIMT_Encode4(10213), // Rule ID 421 // |
| 9665 | /* 10207 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule255Enabled), |
| 9666 | /* 10210 */ // MIs[0] dst |
| 9667 | /* 10210 */ // No operand predicates |
| 9668 | /* 10210 */ // MIs[0] src |
| 9669 | /* 10210 */ // No operand predicates |
| 9670 | /* 10210 */ // Combiner Rule #255: cttz_to_cttz_zero_poison |
| 9671 | /* 10210 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner158), |
| 9672 | /* 10213 */ // Label 557: @10213 |
| 9673 | /* 10213 */ GIM_Reject, |
| 9674 | /* 10214 */ // Label 103: @10214 |
| 9675 | /* 10214 */ GIM_Try, /*On fail goto*//*Label 558*/ GIMT_Encode4(10225), // Rule ID 294 // |
| 9676 | /* 10219 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule191Enabled), |
| 9677 | /* 10222 */ // MIs[0] dst |
| 9678 | /* 10222 */ // No operand predicates |
| 9679 | /* 10222 */ // MIs[0] mi.src |
| 9680 | /* 10222 */ // No operand predicates |
| 9681 | /* 10222 */ // Combiner Rule #191: constant_fold_unary_int_op @ [mi[3]] |
| 9682 | /* 10222 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner107), |
| 9683 | /* 10225 */ // Label 558: @10225 |
| 9684 | /* 10225 */ GIM_Reject, |
| 9685 | /* 10226 */ // Label 104: @10226 |
| 9686 | /* 10226 */ GIM_Try, /*On fail goto*//*Label 559*/ GIMT_Encode4(10237), // Rule ID 291 // |
| 9687 | /* 10231 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule191Enabled), |
| 9688 | /* 10234 */ // MIs[0] dst |
| 9689 | /* 10234 */ // No operand predicates |
| 9690 | /* 10234 */ // MIs[0] mi.src |
| 9691 | /* 10234 */ // No operand predicates |
| 9692 | /* 10234 */ // Combiner Rule #191: constant_fold_unary_int_op @ [mi[0]] |
| 9693 | /* 10234 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner107), |
| 9694 | /* 10237 */ // Label 559: @10237 |
| 9695 | /* 10237 */ GIM_Try, /*On fail goto*//*Label 560*/ GIMT_Encode4(10248), // Rule ID 418 // |
| 9696 | /* 10242 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule252Enabled), |
| 9697 | /* 10245 */ // MIs[0] dst |
| 9698 | /* 10245 */ // No operand predicates |
| 9699 | /* 10245 */ // MIs[0] src |
| 9700 | /* 10245 */ // No operand predicates |
| 9701 | /* 10245 */ // Combiner Rule #252: ctlz_to_ctls |
| 9702 | /* 10245 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner157), |
| 9703 | /* 10248 */ // Label 560: @10248 |
| 9704 | /* 10248 */ GIM_Try, /*On fail goto*//*Label 561*/ GIMT_Encode4(10259), // Rule ID 420 // |
| 9705 | /* 10253 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule254Enabled), |
| 9706 | /* 10256 */ // MIs[0] dst |
| 9707 | /* 10256 */ // No operand predicates |
| 9708 | /* 10256 */ // MIs[0] src |
| 9709 | /* 10256 */ // No operand predicates |
| 9710 | /* 10256 */ // Combiner Rule #254: ctlz_to_ctlz_zero_poison |
| 9711 | /* 10256 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner158), |
| 9712 | /* 10259 */ // Label 561: @10259 |
| 9713 | /* 10259 */ GIM_Reject, |
| 9714 | /* 10260 */ // Label 105: @10260 |
| 9715 | /* 10260 */ GIM_Try, /*On fail goto*//*Label 562*/ GIMT_Encode4(10271), // Rule ID 292 // |
| 9716 | /* 10265 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule191Enabled), |
| 9717 | /* 10268 */ // MIs[0] dst |
| 9718 | /* 10268 */ // No operand predicates |
| 9719 | /* 10268 */ // MIs[0] mi.src |
| 9720 | /* 10268 */ // No operand predicates |
| 9721 | /* 10268 */ // Combiner Rule #191: constant_fold_unary_int_op @ [mi[1]] |
| 9722 | /* 10268 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner107), |
| 9723 | /* 10271 */ // Label 562: @10271 |
| 9724 | /* 10271 */ GIM_Try, /*On fail goto*//*Label 563*/ GIMT_Encode4(10282), // Rule ID 419 // |
| 9725 | /* 10276 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule253Enabled), |
| 9726 | /* 10279 */ // MIs[0] dst |
| 9727 | /* 10279 */ // No operand predicates |
| 9728 | /* 10279 */ // MIs[0] src |
| 9729 | /* 10279 */ // No operand predicates |
| 9730 | /* 10279 */ // Combiner Rule #253: ctlz_zero_poison_to_ctls |
| 9731 | /* 10279 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner157), |
| 9732 | /* 10282 */ // Label 563: @10282 |
| 9733 | /* 10282 */ GIM_Reject, |
| 9734 | /* 10283 */ // Label 106: @10283 |
| 9735 | /* 10283 */ GIM_Try, /*On fail goto*//*Label 564*/ GIMT_Encode4(10294), // Rule ID 295 // |
| 9736 | /* 10288 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule191Enabled), |
| 9737 | /* 10291 */ // MIs[0] dst |
| 9738 | /* 10291 */ // No operand predicates |
| 9739 | /* 10291 */ // MIs[0] mi.src |
| 9740 | /* 10291 */ // No operand predicates |
| 9741 | /* 10291 */ // Combiner Rule #191: constant_fold_unary_int_op @ [mi[4]] |
| 9742 | /* 10291 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner107), |
| 9743 | /* 10294 */ // Label 564: @10294 |
| 9744 | /* 10294 */ GIM_Reject, |
| 9745 | /* 10295 */ // Label 107: @10295 |
| 9746 | /* 10295 */ GIM_Try, /*On fail goto*//*Label 565*/ GIMT_Encode4(10306), // Rule ID 297 // |
| 9747 | /* 10300 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule191Enabled), |
| 9748 | /* 10303 */ // MIs[0] dst |
| 9749 | /* 10303 */ // No operand predicates |
| 9750 | /* 10303 */ // MIs[0] mi.src |
| 9751 | /* 10303 */ // No operand predicates |
| 9752 | /* 10303 */ // Combiner Rule #191: constant_fold_unary_int_op @ [mi[6]] |
| 9753 | /* 10303 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner107), |
| 9754 | /* 10306 */ // Label 565: @10306 |
| 9755 | /* 10306 */ GIM_Reject, |
| 9756 | /* 10307 */ // Label 108: @10307 |
| 9757 | /* 10307 */ GIM_Try, /*On fail goto*//*Label 566*/ GIMT_Encode4(10351), // Rule ID 248 // |
| 9758 | /* 10312 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule181Enabled), |
| 9759 | /* 10315 */ // MIs[0] d |
| 9760 | /* 10315 */ // No operand predicates |
| 9761 | /* 10315 */ // MIs[0] src |
| 9762 | /* 10315 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 9763 | /* 10319 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_LSHR), |
| 9764 | /* 10323 */ // MIs[1] rev |
| 9765 | /* 10323 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2] |
| 9766 | /* 10327 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_BITREVERSE), |
| 9767 | /* 10331 */ // MIs[2] val |
| 9768 | /* 10331 */ // No operand predicates |
| 9769 | /* 10331 */ // MIs[1] amt |
| 9770 | /* 10331 */ // No operand predicates |
| 9771 | /* 10331 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner14), |
| 9772 | /* 10335 */ GIM_CheckIsSafeToFold, /*NumInsns*/2, |
| 9773 | /* 10337 */ // Combiner Rule #181: bitreverse_lshr |
| 9774 | /* 10337 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SHL), |
| 9775 | /* 10340 */ GIR_RootToRootCopy, /*OpIdx*/0, // d |
| 9776 | /* 10342 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // val |
| 9777 | /* 10346 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // amt |
| 9778 | /* 10350 */ GIR_EraseRootFromParent_Done, |
| 9779 | /* 10351 */ // Label 566: @10351 |
| 9780 | /* 10351 */ GIM_Try, /*On fail goto*//*Label 567*/ GIMT_Encode4(10395), // Rule ID 247 // |
| 9781 | /* 10356 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule180Enabled), |
| 9782 | /* 10359 */ // MIs[0] d |
| 9783 | /* 10359 */ // No operand predicates |
| 9784 | /* 10359 */ // MIs[0] src |
| 9785 | /* 10359 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 9786 | /* 10363 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SHL), |
| 9787 | /* 10367 */ // MIs[1] rev |
| 9788 | /* 10367 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2] |
| 9789 | /* 10371 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_BITREVERSE), |
| 9790 | /* 10375 */ // MIs[2] val |
| 9791 | /* 10375 */ // No operand predicates |
| 9792 | /* 10375 */ // MIs[1] amt |
| 9793 | /* 10375 */ // No operand predicates |
| 9794 | /* 10375 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner13), |
| 9795 | /* 10379 */ GIM_CheckIsSafeToFold, /*NumInsns*/2, |
| 9796 | /* 10381 */ // Combiner Rule #180: bitreverse_shl |
| 9797 | /* 10381 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_LSHR), |
| 9798 | /* 10384 */ GIR_RootToRootCopy, /*OpIdx*/0, // d |
| 9799 | /* 10386 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/2, /*OpIdx*/1, // val |
| 9800 | /* 10390 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // amt |
| 9801 | /* 10394 */ GIR_EraseRootFromParent_Done, |
| 9802 | /* 10395 */ // Label 567: @10395 |
| 9803 | /* 10395 */ GIM_Try, /*On fail goto*//*Label 568*/ GIMT_Encode4(10406), // Rule ID 298 // |
| 9804 | /* 10400 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule191Enabled), |
| 9805 | /* 10403 */ // MIs[0] dst |
| 9806 | /* 10403 */ // No operand predicates |
| 9807 | /* 10403 */ // MIs[0] mi.src |
| 9808 | /* 10403 */ // No operand predicates |
| 9809 | /* 10403 */ // Combiner Rule #191: constant_fold_unary_int_op @ [mi[7]] |
| 9810 | /* 10403 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner107), |
| 9811 | /* 10406 */ // Label 568: @10406 |
| 9812 | /* 10406 */ GIM_Reject, |
| 9813 | /* 10407 */ // Label 109: @10407 |
| 9814 | /* 10407 */ GIM_Try, /*On fail goto*//*Label 569*/ GIMT_Encode4(10428), // Rule ID 195 // |
| 9815 | /* 10412 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule151Enabled), |
| 9816 | /* 10415 */ // MIs[0] dst |
| 9817 | /* 10415 */ // No operand predicates |
| 9818 | /* 10415 */ // MIs[0] src0 |
| 9819 | /* 10415 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 9820 | /* 10419 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT), |
| 9821 | /* 10423 */ // MIs[1] cst |
| 9822 | /* 10423 */ // No operand predicates |
| 9823 | /* 10423 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 9824 | /* 10425 */ // Combiner Rule #151: constant_fold_fceil |
| 9825 | /* 10425 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80), |
| 9826 | /* 10428 */ // Label 569: @10428 |
| 9827 | /* 10428 */ GIM_Reject, |
| 9828 | /* 10429 */ // Label 110: @10429 |
| 9829 | /* 10429 */ GIM_Try, /*On fail goto*//*Label 570*/ GIMT_Encode4(10450), // Rule ID 191 // |
| 9830 | /* 10434 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule147Enabled), |
| 9831 | /* 10437 */ // MIs[0] dst |
| 9832 | /* 10437 */ // No operand predicates |
| 9833 | /* 10437 */ // MIs[0] src0 |
| 9834 | /* 10437 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 9835 | /* 10441 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT), |
| 9836 | /* 10445 */ // MIs[1] cst |
| 9837 | /* 10445 */ // No operand predicates |
| 9838 | /* 10445 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 9839 | /* 10447 */ // Combiner Rule #147: constant_fold_fsqrt |
| 9840 | /* 10447 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80), |
| 9841 | /* 10450 */ // Label 570: @10450 |
| 9842 | /* 10450 */ GIM_Reject, |
| 9843 | /* 10451 */ // Label 111: @10451 |
| 9844 | /* 10451 */ GIM_Try, /*On fail goto*//*Label 571*/ GIMT_Encode4(10472), // Rule ID 196 // |
| 9845 | /* 10456 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule152Enabled), |
| 9846 | /* 10459 */ // MIs[0] dst |
| 9847 | /* 10459 */ // No operand predicates |
| 9848 | /* 10459 */ // MIs[0] src0 |
| 9849 | /* 10459 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 9850 | /* 10463 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT), |
| 9851 | /* 10467 */ // MIs[1] cst |
| 9852 | /* 10467 */ // No operand predicates |
| 9853 | /* 10467 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 9854 | /* 10469 */ // Combiner Rule #152: constant_fold_ffloor |
| 9855 | /* 10469 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80), |
| 9856 | /* 10472 */ // Label 571: @10472 |
| 9857 | /* 10472 */ GIM_Reject, |
| 9858 | /* 10473 */ // Label 112: @10473 |
| 9859 | /* 10473 */ GIM_Try, /*On fail goto*//*Label 572*/ GIMT_Encode4(10494), // Rule ID 200 // |
| 9860 | /* 10478 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule156Enabled), |
| 9861 | /* 10481 */ // MIs[0] dst |
| 9862 | /* 10481 */ // No operand predicates |
| 9863 | /* 10481 */ // MIs[0] src0 |
| 9864 | /* 10481 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 9865 | /* 10485 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT), |
| 9866 | /* 10489 */ // MIs[1] cst |
| 9867 | /* 10489 */ // No operand predicates |
| 9868 | /* 10489 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 9869 | /* 10491 */ // Combiner Rule #156: constant_fold_frint |
| 9870 | /* 10491 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80), |
| 9871 | /* 10494 */ // Label 572: @10494 |
| 9872 | /* 10494 */ GIM_Reject, |
| 9873 | /* 10495 */ // Label 113: @10495 |
| 9874 | /* 10495 */ GIM_Try, /*On fail goto*//*Label 573*/ GIMT_Encode4(10516), // Rule ID 201 // |
| 9875 | /* 10500 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule157Enabled), |
| 9876 | /* 10503 */ // MIs[0] dst |
| 9877 | /* 10503 */ // No operand predicates |
| 9878 | /* 10503 */ // MIs[0] src0 |
| 9879 | /* 10503 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 9880 | /* 10507 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT), |
| 9881 | /* 10511 */ // MIs[1] cst |
| 9882 | /* 10511 */ // No operand predicates |
| 9883 | /* 10511 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 9884 | /* 10513 */ // Combiner Rule #157: constant_fold_fnearbyint |
| 9885 | /* 10513 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80), |
| 9886 | /* 10516 */ // Label 573: @10516 |
| 9887 | /* 10516 */ GIM_Reject, |
| 9888 | /* 10517 */ // Label 114: @10517 |
| 9889 | /* 10517 */ GIM_Try, /*On fail goto*//*Label 574*/ GIMT_Encode4(10528), // Rule ID 455 // |
| 9890 | /* 10522 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule283Enabled), |
| 9891 | /* 10525 */ // MIs[0] dst_addr |
| 9892 | /* 10525 */ // No operand predicates |
| 9893 | /* 10525 */ // MIs[0] src_addr |
| 9894 | /* 10525 */ // No operand predicates |
| 9895 | /* 10525 */ // MIs[0] size |
| 9896 | /* 10525 */ // No operand predicates |
| 9897 | /* 10525 */ // MIs[0] tailcall |
| 9898 | /* 10525 */ // No operand predicates |
| 9899 | /* 10525 */ // Combiner Rule #283: combine_memcpy |
| 9900 | /* 10525 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner168), |
| 9901 | /* 10528 */ // Label 574: @10528 |
| 9902 | /* 10528 */ GIM_Reject, |
| 9903 | /* 10529 */ // Label 115: @10529 |
| 9904 | /* 10529 */ GIM_Try, /*On fail goto*//*Label 575*/ GIMT_Encode4(10540), // Rule ID 453 // |
| 9905 | /* 10534 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule281Enabled), |
| 9906 | /* 10537 */ // MIs[0] dst_addr |
| 9907 | /* 10537 */ // No operand predicates |
| 9908 | /* 10537 */ // MIs[0] src_addr |
| 9909 | /* 10537 */ // No operand predicates |
| 9910 | /* 10537 */ // MIs[0] size |
| 9911 | /* 10537 */ // No operand predicates |
| 9912 | /* 10537 */ // Combiner Rule #281: combine_memcpy_inline |
| 9913 | /* 10537 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner167), |
| 9914 | /* 10540 */ // Label 575: @10540 |
| 9915 | /* 10540 */ GIM_Reject, |
| 9916 | /* 10541 */ // Label 116: @10541 |
| 9917 | /* 10541 */ GIM_Try, /*On fail goto*//*Label 576*/ GIMT_Encode4(10552), // Rule ID 456 // |
| 9918 | /* 10546 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule284Enabled), |
| 9919 | /* 10549 */ // MIs[0] dst_addr |
| 9920 | /* 10549 */ // No operand predicates |
| 9921 | /* 10549 */ // MIs[0] src_addr |
| 9922 | /* 10549 */ // No operand predicates |
| 9923 | /* 10549 */ // MIs[0] size |
| 9924 | /* 10549 */ // No operand predicates |
| 9925 | /* 10549 */ // MIs[0] tailcall |
| 9926 | /* 10549 */ // No operand predicates |
| 9927 | /* 10549 */ // Combiner Rule #284: combine_memmove |
| 9928 | /* 10549 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner168), |
| 9929 | /* 10552 */ // Label 576: @10552 |
| 9930 | /* 10552 */ GIM_Reject, |
| 9931 | /* 10553 */ // Label 117: @10553 |
| 9932 | /* 10553 */ GIM_Try, /*On fail goto*//*Label 577*/ GIMT_Encode4(10564), // Rule ID 457 // |
| 9933 | /* 10558 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule285Enabled), |
| 9934 | /* 10561 */ // MIs[0] dst_addr |
| 9935 | /* 10561 */ // No operand predicates |
| 9936 | /* 10561 */ // MIs[0] value |
| 9937 | /* 10561 */ // No operand predicates |
| 9938 | /* 10561 */ // MIs[0] size |
| 9939 | /* 10561 */ // No operand predicates |
| 9940 | /* 10561 */ // MIs[0] tailcall |
| 9941 | /* 10561 */ // No operand predicates |
| 9942 | /* 10561 */ // Combiner Rule #285: combine_memset |
| 9943 | /* 10561 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner168), |
| 9944 | /* 10564 */ // Label 577: @10564 |
| 9945 | /* 10564 */ GIM_Try, /*On fail goto*//*Label 578*/ GIMT_Encode4(10575), // Rule ID 458 // |
| 9946 | /* 10569 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule286Enabled), |
| 9947 | /* 10572 */ // MIs[0] dst_addr |
| 9948 | /* 10572 */ // No operand predicates |
| 9949 | /* 10572 */ // MIs[0] value |
| 9950 | /* 10572 */ // No operand predicates |
| 9951 | /* 10572 */ // MIs[0] size |
| 9952 | /* 10572 */ // No operand predicates |
| 9953 | /* 10572 */ // MIs[0] tailcall |
| 9954 | /* 10572 */ // No operand predicates |
| 9955 | /* 10572 */ // Combiner Rule #286: emit_bzero |
| 9956 | /* 10572 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner169), |
| 9957 | /* 10575 */ // Label 578: @10575 |
| 9958 | /* 10575 */ GIM_Reject, |
| 9959 | /* 10576 */ // Label 118: @10576 |
| 9960 | /* 10576 */ GIM_Try, /*On fail goto*//*Label 579*/ GIMT_Encode4(10587), // Rule ID 454 // |
| 9961 | /* 10581 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule282Enabled), |
| 9962 | /* 10584 */ // MIs[0] dst_addr |
| 9963 | /* 10584 */ // No operand predicates |
| 9964 | /* 10584 */ // MIs[0] value |
| 9965 | /* 10584 */ // No operand predicates |
| 9966 | /* 10584 */ // MIs[0] size |
| 9967 | /* 10584 */ // No operand predicates |
| 9968 | /* 10584 */ // Combiner Rule #282: combine_memset_inline |
| 9969 | /* 10584 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner167), |
| 9970 | /* 10587 */ // Label 579: @10587 |
| 9971 | /* 10587 */ GIM_Reject, |
| 9972 | /* 10588 */ // Label 119: @10588 |
| 9973 | /* 10588 */ GIM_Try_CheckFeatures, /*On fail goto*//*Label 580*/ GIMT_Encode4(10601), GIMT_Encode2(GIFBS_HasDotProd), // Rule ID 444 // |
| 9974 | /* 10595 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule272Enabled), |
| 9975 | /* 10598 */ // Combiner Rule #272: ext_addv_to_udot_addv; wip_match_opcode 'G_VECREDUCE_ADD' |
| 9976 | /* 10598 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner163), |
| 9977 | /* 10601 */ // Label 580: @10601 |
| 9978 | /* 10601 */ GIM_Try, /*On fail goto*//*Label 581*/ GIMT_Encode4(10612), // Rule ID 445 // |
| 9979 | /* 10606 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule273Enabled), |
| 9980 | /* 10609 */ // Combiner Rule #273: ext_uaddv_to_uaddlv; wip_match_opcode 'G_VECREDUCE_ADD' |
| 9981 | /* 10609 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner164), |
| 9982 | /* 10612 */ // Label 581: @10612 |
| 9983 | /* 10612 */ GIM_Reject, |
| 9984 | /* 10613 */ // Label 120: @10613 |
| 9985 | /* 10613 */ GIM_Reject, |
| 9986 | /* 10614 */ }; // Size: 10614 bytes |
| 9987 | return MatchTable0; |
| 9988 | } |
| 9989 | #undef GIMT_Encode2 |
| 9990 | #undef GIMT_Encode4 |
| 9991 | #undef GIMT_Encode8 |
| 9992 | |
| 9993 | |
| 9994 | #endif // GET_GICOMBINER_IMPL |
| 9995 | |
| 9996 | #ifdef GET_GICOMBINER_CONSTRUCTOR_INITS |
| 9997 | |
| 9998 | AvailableModuleFeatures(computeAvailableModuleFeatures(&STI)), |
| 9999 | AvailableFunctionFeatures() |
| 10000 | |
| 10001 | #endif // GET_GICOMBINER_CONSTRUCTOR_INITS |
| 10002 | |
| 10003 | #ifdef GET_GICOMBINER_CONSTRUCTOR_INITS |
| 10004 | |
| 10005 | , State(0), |
| 10006 | ExecInfo(TypeObjects, NumTypeObjects, FeatureBitsets, ComplexPredicateFns, CustomRenderers) |
| 10007 | |
| 10008 | #endif // GET_GICOMBINER_CONSTRUCTOR_INITS |
| 10009 | |
| 10010 | |