| 1 | /*===- TableGen'erated file -------------------------------------*- C++ -*-===*\ |
| 2 | |* *| |
| 3 | |* AArch64PostLegalizerCombinerImpl 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 AArch64PostLegalizerCombinerImplRuleConfig { |
| 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: // 3 strings to match. |
| 42 | switch (RuleIdentifier[0]) { |
| 43 | default: break; |
| 44 | case 'c': // 1 string to match. |
| 45 | if (memcmp(RuleIdentifier.data()+1, "opy_prop" , 8) != 0) |
| 46 | break; |
| 47 | return 0; // "copy_prop" |
| 48 | case 'm': // 1 string to match. |
| 49 | if (memcmp(RuleIdentifier.data()+1, "ul_const" , 8) != 0) |
| 50 | break; |
| 51 | return 39; // "mul_const" |
| 52 | case 'o': // 1 string to match. |
| 53 | if (memcmp(RuleIdentifier.data()+1, "r_to_bsp" , 8) != 0) |
| 54 | break; |
| 55 | return 107; // "or_to_bsp" |
| 56 | } |
| 57 | break; |
| 58 | case 10: // 3 strings to match. |
| 59 | switch (RuleIdentifier[0]) { |
| 60 | default: break; |
| 61 | case 'i': // 1 string to match. |
| 62 | if (memcmp(RuleIdentifier.data()+1, "2p_to_p2i" , 9) != 0) |
| 63 | break; |
| 64 | return 76; // "i2p_to_p2i" |
| 65 | case 'p': // 1 string to match. |
| 66 | if (memcmp(RuleIdentifier.data()+1, "2i_to_i2p" , 9) != 0) |
| 67 | break; |
| 68 | return 75; // "p2i_to_i2p" |
| 69 | case 's': // 1 string to match. |
| 70 | if (memcmp(RuleIdentifier.data()+1, "elect_not" , 9) != 0) |
| 71 | break; |
| 72 | return 55; // "select_not" |
| 73 | } |
| 74 | break; |
| 75 | case 11: // 6 strings to match. |
| 76 | switch (RuleIdentifier[0]) { |
| 77 | default: break; |
| 78 | case 'a': // 1 string to match. |
| 79 | if (memcmp(RuleIdentifier.data()+1, "dd_sub_reg" , 10) != 0) |
| 80 | break; |
| 81 | return 81; // "add_sub_reg" |
| 82 | case 'm': // 1 string to match. |
| 83 | if (memcmp(RuleIdentifier.data()+1, "atch_addos" , 10) != 0) |
| 84 | break; |
| 85 | return 47; // "match_addos" |
| 86 | case 't': // 3 strings to match. |
| 87 | if (memcmp(RuleIdentifier.data()+1, "runc_" , 5) != 0) |
| 88 | break; |
| 89 | switch (RuleIdentifier[6]) { |
| 90 | default: break; |
| 91 | case 's': // 2 strings to match. |
| 92 | if (memcmp(RuleIdentifier.data()+7, "sat" , 3) != 0) |
| 93 | break; |
| 94 | switch (RuleIdentifier[10]) { |
| 95 | default: break; |
| 96 | case 's': // 1 string to match. |
| 97 | return 119; // "trunc_ssats" |
| 98 | case 'u': // 1 string to match. |
| 99 | return 120; // "trunc_ssatu" |
| 100 | } |
| 101 | break; |
| 102 | case 'u': // 1 string to match. |
| 103 | if (memcmp(RuleIdentifier.data()+7, "satu" , 4) != 0) |
| 104 | break; |
| 105 | return 121; // "trunc_usatu" |
| 106 | } |
| 107 | break; |
| 108 | case 'u': // 1 string to match. |
| 109 | if (memcmp(RuleIdentifier.data()+1, "nmerge_cst" , 10) != 0) |
| 110 | break; |
| 111 | return 60; // "unmerge_cst" |
| 112 | } |
| 113 | break; |
| 114 | case 12: // 4 strings to match. |
| 115 | switch (RuleIdentifier[0]) { |
| 116 | default: break; |
| 117 | case 'e': // 1 string to match. |
| 118 | if (memcmp(RuleIdentifier.data()+1, "xtmultomull" , 11) != 0) |
| 119 | break; |
| 120 | return 117; // "extmultomull" |
| 121 | case 'r': // 1 string to match. |
| 122 | if (memcmp(RuleIdentifier.data()+1, "edundant_or" , 11) != 0) |
| 123 | break; |
| 124 | return 38; // "redundant_or" |
| 125 | case 's': // 1 string to match. |
| 126 | if (memcmp(RuleIdentifier.data()+1, "ext_of_sext" , 11) != 0) |
| 127 | break; |
| 128 | return 6; // "sext_of_sext" |
| 129 | case 'z': // 1 string to match. |
| 130 | if (memcmp(RuleIdentifier.data()+1, "ext_of_zext" , 11) != 0) |
| 131 | break; |
| 132 | return 4; // "zext_of_zext" |
| 133 | } |
| 134 | break; |
| 135 | case 13: // 7 strings to match. |
| 136 | switch (RuleIdentifier[0]) { |
| 137 | default: break; |
| 138 | case 'l': // 1 string to match. |
| 139 | if (memcmp(RuleIdentifier.data()+1, "oad_and_mask" , 12) != 0) |
| 140 | break; |
| 141 | return 31; // "load_and_mask" |
| 142 | case 'm': // 2 strings to match. |
| 143 | switch (RuleIdentifier[1]) { |
| 144 | default: break; |
| 145 | case 'a': // 1 string to match. |
| 146 | if (memcmp(RuleIdentifier.data()+2, "tch_selects" , 11) != 0) |
| 147 | break; |
| 148 | return 52; // "match_selects" |
| 149 | case 'e': // 1 string to match. |
| 150 | if (memcmp(RuleIdentifier.data()+2, "rge_unmerge" , 11) != 0) |
| 151 | break; |
| 152 | return 59; // "merge_unmerge" |
| 153 | } |
| 154 | break; |
| 155 | case 'r': // 1 string to match. |
| 156 | if (memcmp(RuleIdentifier.data()+1, "edundant_and" , 12) != 0) |
| 157 | break; |
| 158 | return 35; // "redundant_and" |
| 159 | case 's': // 1 string to match. |
| 160 | if (memcmp(RuleIdentifier.data()+1, "ame_val_zero" , 12) != 0) |
| 161 | break; |
| 162 | return 72; // "same_val_zero" |
| 163 | case 'u': // 2 strings to match. |
| 164 | if (memcmp(RuleIdentifier.data()+1, "nmerge_" , 7) != 0) |
| 165 | break; |
| 166 | switch (RuleIdentifier[8]) { |
| 167 | default: break; |
| 168 | case 'm': // 1 string to match. |
| 169 | if (memcmp(RuleIdentifier.data()+9, "erge" , 4) != 0) |
| 170 | break; |
| 171 | return 58; // "unmerge_merge" |
| 172 | case 'u': // 1 string to match. |
| 173 | if (memcmp(RuleIdentifier.data()+9, "ndef" , 4) != 0) |
| 174 | break; |
| 175 | return 61; // "unmerge_undef" |
| 176 | } |
| 177 | break; |
| 178 | } |
| 179 | break; |
| 180 | case 14: // 6 strings to match. |
| 181 | switch (RuleIdentifier[0]) { |
| 182 | default: break; |
| 183 | case 'a': // 2 strings to match. |
| 184 | if (memcmp(RuleIdentifier.data()+1, "nyext_of_" , 9) != 0) |
| 185 | break; |
| 186 | switch (RuleIdentifier[10]) { |
| 187 | default: break; |
| 188 | case 's': // 1 string to match. |
| 189 | if (memcmp(RuleIdentifier.data()+11, "ext" , 3) != 0) |
| 190 | break; |
| 191 | return 10; // "anyext_of_sext" |
| 192 | case 'z': // 1 string to match. |
| 193 | if (memcmp(RuleIdentifier.data()+11, "ext" , 3) != 0) |
| 194 | break; |
| 195 | return 9; // "anyext_of_zext" |
| 196 | } |
| 197 | break; |
| 198 | case 'b': // 1 string to match. |
| 199 | if (memcmp(RuleIdentifier.data()+1, "inop_same_val" , 13) != 0) |
| 200 | break; |
| 201 | return 71; // "binop_same_val" |
| 202 | case 'f': // 1 string to match. |
| 203 | if (memcmp(RuleIdentifier.data()+1, "neg_fneg_fold" , 13) != 0) |
| 204 | break; |
| 205 | return 78; // "fneg_fneg_fold" |
| 206 | case 's': // 1 string to match. |
| 207 | if (memcmp(RuleIdentifier.data()+1, "ext_of_anyext" , 13) != 0) |
| 208 | break; |
| 209 | return 7; // "sext_of_anyext" |
| 210 | case 'z': // 1 string to match. |
| 211 | if (memcmp(RuleIdentifier.data()+1, "ext_of_anyext" , 13) != 0) |
| 212 | break; |
| 213 | return 5; // "zext_of_anyext" |
| 214 | } |
| 215 | break; |
| 216 | case 15: // 3 strings to match. |
| 217 | switch (RuleIdentifier[0]) { |
| 218 | default: break; |
| 219 | case 'e': // 1 string to match. |
| 220 | if (memcmp(RuleIdentifier.data()+1, "xtending_loads" , 14) != 0) |
| 221 | break; |
| 222 | return 30; // "extending_loads" |
| 223 | case 'o': // 1 string to match. |
| 224 | if (memcmp(RuleIdentifier.data()+1, "verlapping_and" , 14) != 0) |
| 225 | break; |
| 226 | return 92; // "overlapping_and" |
| 227 | case 's': // 1 string to match. |
| 228 | if (memcmp(RuleIdentifier.data()+1, "elect_same_val" , 14) != 0) |
| 229 | break; |
| 230 | return 69; // "select_same_val" |
| 231 | } |
| 232 | break; |
| 233 | case 16: // 9 strings to match. |
| 234 | switch (RuleIdentifier[0]) { |
| 235 | default: break; |
| 236 | case 'a': // 1 string to match. |
| 237 | if (memcmp(RuleIdentifier.data()+1, "nyext_of_anyext" , 15) != 0) |
| 238 | break; |
| 239 | return 8; // "anyext_of_anyext" |
| 240 | case 'c': // 1 string to match. |
| 241 | if (memcmp(RuleIdentifier.data()+1, "ombine_mul_cmlt" , 15) != 0) |
| 242 | break; |
| 243 | return 115; // "combine_mul_cmlt" |
| 244 | case 's': // 4 strings to match. |
| 245 | switch (RuleIdentifier[1]) { |
| 246 | default: break; |
| 247 | case 'e': // 3 strings to match. |
| 248 | if (memcmp(RuleIdentifier.data()+2, "lect_" , 5) != 0) |
| 249 | break; |
| 250 | switch (RuleIdentifier[7]) { |
| 251 | default: break; |
| 252 | case 't': // 1 string to match. |
| 253 | if (memcmp(RuleIdentifier.data()+8, "o_minmax" , 8) != 0) |
| 254 | break; |
| 255 | return 106; // "select_to_minmax" |
| 256 | case 'u': // 1 string to match. |
| 257 | if (memcmp(RuleIdentifier.data()+8, "ndef_cmp" , 8) != 0) |
| 258 | break; |
| 259 | return 49; // "select_undef_cmp" |
| 260 | case 'z': // 1 string to match. |
| 261 | if (memcmp(RuleIdentifier.data()+8, "ero_true" , 8) != 0) |
| 262 | break; |
| 263 | return 53; // "select_zero_true" |
| 264 | } |
| 265 | break; |
| 266 | case 'u': // 1 string to match. |
| 267 | if (memcmp(RuleIdentifier.data()+2, "baddmulreassoc" , 14) != 0) |
| 268 | break; |
| 269 | return 118; // "subaddmulreassoc" |
| 270 | } |
| 271 | break; |
| 272 | case 't': // 2 strings to match. |
| 273 | if (memcmp(RuleIdentifier.data()+1, "runcate_of_" , 11) != 0) |
| 274 | break; |
| 275 | switch (RuleIdentifier[12]) { |
| 276 | default: break; |
| 277 | case 's': // 1 string to match. |
| 278 | if (memcmp(RuleIdentifier.data()+13, "ext" , 3) != 0) |
| 279 | break; |
| 280 | return 2; // "truncate_of_sext" |
| 281 | case 'z': // 1 string to match. |
| 282 | if (memcmp(RuleIdentifier.data()+13, "ext" , 3) != 0) |
| 283 | break; |
| 284 | return 1; // "truncate_of_zext" |
| 285 | } |
| 286 | break; |
| 287 | case 'u': // 1 string to match. |
| 288 | if (memcmp(RuleIdentifier.data()+1, "ndef_to_fp_zero" , 15) != 0) |
| 289 | break; |
| 290 | return 94; // "undef_to_fp_zero" |
| 291 | } |
| 292 | break; |
| 293 | case 17: // 5 strings to match. |
| 294 | switch (RuleIdentifier[0]) { |
| 295 | default: break; |
| 296 | case 'a': // 1 string to match. |
| 297 | if (memcmp(RuleIdentifier.data()+1, "nyext_trunc_fold" , 16) != 0) |
| 298 | break; |
| 299 | return 77; // "anyext_trunc_fold" |
| 300 | case 'e': // 1 string to match. |
| 301 | if (memcmp(RuleIdentifier.data()+1, "rase_undef_store" , 16) != 0) |
| 302 | break; |
| 303 | return 104; // "erase_undef_store" |
| 304 | case 's': // 2 strings to match. |
| 305 | if (memcmp(RuleIdentifier.data()+1, "elect_" , 6) != 0) |
| 306 | break; |
| 307 | switch (RuleIdentifier[7]) { |
| 308 | default: break; |
| 309 | case 't': // 1 string to match. |
| 310 | if (memcmp(RuleIdentifier.data()+8, "o_iminmax" , 9) != 0) |
| 311 | break; |
| 312 | return 51; // "select_to_iminmax" |
| 313 | case 'z': // 1 string to match. |
| 314 | if (memcmp(RuleIdentifier.data()+8, "ero_false" , 9) != 0) |
| 315 | break; |
| 316 | return 54; // "select_zero_false" |
| 317 | } |
| 318 | break; |
| 319 | case 'u': // 1 string to match. |
| 320 | if (memcmp(RuleIdentifier.data()+1, "ndef_to_int_zero" , 16) != 0) |
| 321 | break; |
| 322 | return 95; // "undef_to_int_zero" |
| 323 | } |
| 324 | break; |
| 325 | case 18: // 6 strings to match. |
| 326 | switch (RuleIdentifier[0]) { |
| 327 | default: break; |
| 328 | case 'b': // 1 string to match. |
| 329 | if (memcmp(RuleIdentifier.data()+1, "inop_left_to_zero" , 17) != 0) |
| 330 | break; |
| 331 | return 73; // "binop_left_to_zero" |
| 332 | case 'c': // 2 strings to match. |
| 333 | if (memcmp(RuleIdentifier.data()+1, "onstant_fold_f" , 14) != 0) |
| 334 | break; |
| 335 | switch (RuleIdentifier[15]) { |
| 336 | default: break; |
| 337 | case 'a': // 1 string to match. |
| 338 | if (memcmp(RuleIdentifier.data()+16, "bs" , 2) != 0) |
| 339 | break; |
| 340 | return 13; // "constant_fold_fabs" |
| 341 | case 'n': // 1 string to match. |
| 342 | if (memcmp(RuleIdentifier.data()+16, "eg" , 2) != 0) |
| 343 | break; |
| 344 | return 12; // "constant_fold_fneg" |
| 345 | } |
| 346 | break; |
| 347 | case 'f': // 2 strings to match. |
| 348 | switch (RuleIdentifier[1]) { |
| 349 | default: break; |
| 350 | case 'o': // 1 string to match. |
| 351 | if (memcmp(RuleIdentifier.data()+2, "ld_merge_to_zext" , 16) != 0) |
| 352 | break; |
| 353 | return 56; // "fold_merge_to_zext" |
| 354 | case 'p': // 1 string to match. |
| 355 | if (memcmp(RuleIdentifier.data()+2, "trunc_fpext_fold" , 16) != 0) |
| 356 | break; |
| 357 | return 87; // "fptrunc_fpext_fold" |
| 358 | } |
| 359 | break; |
| 360 | case 't': // 1 string to match. |
| 361 | if (memcmp(RuleIdentifier.data()+1, "runcate_of_anyext" , 17) != 0) |
| 362 | break; |
| 363 | return 3; // "truncate_of_anyext" |
| 364 | } |
| 365 | break; |
| 366 | case 19: // 15 strings to match. |
| 367 | switch (RuleIdentifier[0]) { |
| 368 | default: break; |
| 369 | case 'b': // 1 string to match. |
| 370 | if (memcmp(RuleIdentifier.data()+1, "inop_right_to_zero" , 18) != 0) |
| 371 | break; |
| 372 | return 74; // "binop_right_to_zero" |
| 373 | case 'c': // 6 strings to match. |
| 374 | if (memcmp(RuleIdentifier.data()+1, "onstant_fold_" , 13) != 0) |
| 375 | break; |
| 376 | switch (RuleIdentifier[14]) { |
| 377 | default: break; |
| 378 | case 'b': // 1 string to match. |
| 379 | if (memcmp(RuleIdentifier.data()+15, "inop" , 4) != 0) |
| 380 | break; |
| 381 | return 67; // "constant_fold_binop" |
| 382 | case 'f': // 5 strings to match. |
| 383 | switch (RuleIdentifier[15]) { |
| 384 | default: break; |
| 385 | case 'c': // 1 string to match. |
| 386 | if (memcmp(RuleIdentifier.data()+16, "eil" , 3) != 0) |
| 387 | break; |
| 388 | return 18; // "constant_fold_fceil" |
| 389 | case 'l': // 1 string to match. |
| 390 | if (memcmp(RuleIdentifier.data()+16, "og2" , 3) != 0) |
| 391 | break; |
| 392 | return 15; // "constant_fold_flog2" |
| 393 | case 'p': // 1 string to match. |
| 394 | if (memcmp(RuleIdentifier.data()+16, "ext" , 3) != 0) |
| 395 | break; |
| 396 | return 17; // "constant_fold_fpext" |
| 397 | case 'r': // 1 string to match. |
| 398 | if (memcmp(RuleIdentifier.data()+16, "int" , 3) != 0) |
| 399 | break; |
| 400 | return 23; // "constant_fold_frint" |
| 401 | case 's': // 1 string to match. |
| 402 | if (memcmp(RuleIdentifier.data()+16, "qrt" , 3) != 0) |
| 403 | break; |
| 404 | return 14; // "constant_fold_fsqrt" |
| 405 | } |
| 406 | break; |
| 407 | } |
| 408 | break; |
| 409 | case 'i': // 1 string to match. |
| 410 | if (memcmp(RuleIdentifier.data()+1, "nteger_of_truncate" , 18) != 0) |
| 411 | break; |
| 412 | return 28; // "integer_of_truncate" |
| 413 | case 'm': // 1 string to match. |
| 414 | if (memcmp(RuleIdentifier.data()+1, "erge_of_x_and_zero" , 18) != 0) |
| 415 | break; |
| 416 | return 65; // "merge_of_x_and_zero" |
| 417 | case 'p': // 1 string to match. |
| 418 | if (memcmp(RuleIdentifier.data()+1, "tr_add_immed_chain" , 18) != 0) |
| 419 | break; |
| 420 | return 91; // "ptr_add_immed_chain" |
| 421 | case 'r': // 2 strings to match. |
| 422 | switch (RuleIdentifier[1]) { |
| 423 | default: break; |
| 424 | case 'i': // 1 string to match. |
| 425 | if (memcmp(RuleIdentifier.data()+2, "ght_identity_zero" , 17) != 0) |
| 426 | break; |
| 427 | return 70; // "right_identity_zero" |
| 428 | case 'o': // 1 string to match. |
| 429 | if (memcmp(RuleIdentifier.data()+2, "tate_out_of_range" , 17) != 0) |
| 430 | break; |
| 431 | return 45; // "rotate_out_of_range" |
| 432 | } |
| 433 | break; |
| 434 | case 's': // 2 strings to match. |
| 435 | if (RuleIdentifier[1] != 'e') |
| 436 | break; |
| 437 | switch (RuleIdentifier[2]) { |
| 438 | default: break; |
| 439 | case 'l': // 1 string to match. |
| 440 | if (memcmp(RuleIdentifier.data()+3, "ect_constant_cmp" , 16) != 0) |
| 441 | break; |
| 442 | return 50; // "select_constant_cmp" |
| 443 | case 'x': // 1 string to match. |
| 444 | if (memcmp(RuleIdentifier.data()+3, "t_trunc_sextload" , 16) != 0) |
| 445 | break; |
| 446 | return 33; // "sext_trunc_sextload" |
| 447 | } |
| 448 | break; |
| 449 | case 'u': // 1 string to match. |
| 450 | if (memcmp(RuleIdentifier.data()+1, "nary_undef_to_zero" , 18) != 0) |
| 451 | break; |
| 452 | return 99; // "unary_undef_to_zero" |
| 453 | } |
| 454 | break; |
| 455 | case 20: // 7 strings to match. |
| 456 | switch (RuleIdentifier[0]) { |
| 457 | default: break; |
| 458 | case 'b': // 1 string to match. |
| 459 | if (memcmp(RuleIdentifier.data()+1, "itcast_bitcast_fold" , 19) != 0) |
| 460 | break; |
| 461 | return 85; // "bitcast_bitcast_fold" |
| 462 | case 'c': // 1 string to match. |
| 463 | if (memcmp(RuleIdentifier.data()+1, "onstant_fold_ffloor" , 19) != 0) |
| 464 | break; |
| 465 | return 19; // "constant_fold_ffloor" |
| 466 | case 'm': // 1 string to match. |
| 467 | if (memcmp(RuleIdentifier.data()+1, "erge_of_x_and_undef" , 19) != 0) |
| 468 | break; |
| 469 | return 64; // "merge_of_x_and_undef" |
| 470 | case 'r': // 1 string to match. |
| 471 | if (memcmp(RuleIdentifier.data()+1, "edundant_sext_inreg" , 19) != 0) |
| 472 | break; |
| 473 | return 40; // "redundant_sext_inreg" |
| 474 | case 's': // 1 string to match. |
| 475 | if (memcmp(RuleIdentifier.data()+1, "plit_store_zero_128" , 19) != 0) |
| 476 | break; |
| 477 | return 93; // "split_store_zero_128" |
| 478 | case 'u': // 2 strings to match. |
| 479 | if (RuleIdentifier[1] != 'n') |
| 480 | break; |
| 481 | switch (RuleIdentifier[2]) { |
| 482 | default: break; |
| 483 | case 'a': // 1 string to match. |
| 484 | if (memcmp(RuleIdentifier.data()+3, "ry_undef_to_undef" , 17) != 0) |
| 485 | break; |
| 486 | return 100; // "unary_undef_to_undef" |
| 487 | case 'm': // 1 string to match. |
| 488 | if (memcmp(RuleIdentifier.data()+3, "erge_zext_to_zext" , 17) != 0) |
| 489 | break; |
| 490 | return 63; // "unmerge_zext_to_zext" |
| 491 | } |
| 492 | break; |
| 493 | } |
| 494 | break; |
| 495 | case 21: // 8 strings to match. |
| 496 | switch (RuleIdentifier[0]) { |
| 497 | default: break; |
| 498 | case 'c': // 3 strings to match. |
| 499 | if (RuleIdentifier[1] != 'o') |
| 500 | break; |
| 501 | switch (RuleIdentifier[2]) { |
| 502 | default: break; |
| 503 | case 'm': // 2 strings to match. |
| 504 | if (memcmp(RuleIdentifier.data()+3, "bine_" , 5) != 0) |
| 505 | break; |
| 506 | switch (RuleIdentifier[8]) { |
| 507 | default: break; |
| 508 | case 'b': // 1 string to match. |
| 509 | if (memcmp(RuleIdentifier.data()+9, "uild_unmerge" , 12) != 0) |
| 510 | break; |
| 511 | return 66; // "combine_build_unmerge" |
| 512 | case 'c': // 1 string to match. |
| 513 | if (memcmp(RuleIdentifier.data()+9, "oncat_vector" , 12) != 0) |
| 514 | break; |
| 515 | return 108; // "combine_concat_vector" |
| 516 | } |
| 517 | break; |
| 518 | case 'n': // 1 string to match. |
| 519 | if (memcmp(RuleIdentifier.data()+3, "stant_fold_fptrunc" , 18) != 0) |
| 520 | break; |
| 521 | return 16; // "constant_fold_fptrunc" |
| 522 | } |
| 523 | break; |
| 524 | case 'l': // 1 string to match. |
| 525 | if (memcmp(RuleIdentifier.data()+1, "shr_of_trunc_of_lshr" , 20) != 0) |
| 526 | break; |
| 527 | return 123; // "lshr_of_trunc_of_lshr" |
| 528 | case 'm': // 1 string to match. |
| 529 | if (memcmp(RuleIdentifier.data()+1, "utate_anyext_to_zext" , 20) != 0) |
| 530 | break; |
| 531 | return 29; // "mutate_anyext_to_zext" |
| 532 | case 'r': // 1 string to match. |
| 533 | if (memcmp(RuleIdentifier.data()+1, "ight_identity_one_fp" , 20) != 0) |
| 534 | break; |
| 535 | return 80; // "right_identity_one_fp" |
| 536 | case 'u': // 2 strings to match. |
| 537 | if (RuleIdentifier[1] != 'n') |
| 538 | break; |
| 539 | switch (RuleIdentifier[2]) { |
| 540 | default: break; |
| 541 | case 'd': // 1 string to match. |
| 542 | if (memcmp(RuleIdentifier.data()+3, "ef_to_negative_one" , 18) != 0) |
| 543 | break; |
| 544 | return 96; // "undef_to_negative_one" |
| 545 | case 'm': // 1 string to match. |
| 546 | if (memcmp(RuleIdentifier.data()+3, "erge_dead_to_trunc" , 18) != 0) |
| 547 | break; |
| 548 | return 62; // "unmerge_dead_to_trunc" |
| 549 | } |
| 550 | break; |
| 551 | } |
| 552 | break; |
| 553 | case 22: // 5 strings to match. |
| 554 | switch (RuleIdentifier[0]) { |
| 555 | default: break; |
| 556 | case 'c': // 1 string to match. |
| 557 | if (memcmp(RuleIdentifier.data()+1, "onstant_fold_fp_binop" , 21) != 0) |
| 558 | break; |
| 559 | return 68; // "constant_fold_fp_binop" |
| 560 | case 'm': // 1 string to match. |
| 561 | if (memcmp(RuleIdentifier.data()+1, "atch_subo_no_overflow" , 21) != 0) |
| 562 | break; |
| 563 | return 48; // "match_subo_no_overflow" |
| 564 | case 'p': // 1 string to match. |
| 565 | if (memcmp(RuleIdentifier.data()+1, "ropagate_undef_any_op" , 21) != 0) |
| 566 | break; |
| 567 | return 101; // "propagate_undef_any_op" |
| 568 | case 'r': // 1 string to match. |
| 569 | if (memcmp(RuleIdentifier.data()+1, "ight_identity_one_int" , 21) != 0) |
| 570 | break; |
| 571 | return 79; // "right_identity_one_int" |
| 572 | case 't': // 1 string to match. |
| 573 | if (memcmp(RuleIdentifier.data()+1, "runc_buildvector_fold" , 21) != 0) |
| 574 | break; |
| 575 | return 83; // "trunc_buildvector_fold" |
| 576 | } |
| 577 | break; |
| 578 | case 23: // 5 strings to match. |
| 579 | switch (RuleIdentifier[0]) { |
| 580 | default: break; |
| 581 | case 'b': // 1 string to match. |
| 582 | if (memcmp(RuleIdentifier.data()+1, "uildvector_of_truncate" , 22) != 0) |
| 583 | break; |
| 584 | return 27; // "buildvector_of_truncate" |
| 585 | case 'i': // 2 strings to match. |
| 586 | if (memcmp(RuleIdentifier.data()+1, "tof_const_zero_fold_" , 20) != 0) |
| 587 | break; |
| 588 | switch (RuleIdentifier[21]) { |
| 589 | default: break; |
| 590 | case 's': // 1 string to match. |
| 591 | if (RuleIdentifier[22] != 'i') |
| 592 | break; |
| 593 | return 25; // "itof_const_zero_fold_si" |
| 594 | case 'u': // 1 string to match. |
| 595 | if (RuleIdentifier[22] != 'i') |
| 596 | break; |
| 597 | return 26; // "itof_const_zero_fold_ui" |
| 598 | } |
| 599 | break; |
| 600 | case 'p': // 1 string to match. |
| 601 | if (memcmp(RuleIdentifier.data()+1, "ropagate_undef_all_ops" , 22) != 0) |
| 602 | break; |
| 603 | return 102; // "propagate_undef_all_ops" |
| 604 | case 't': // 1 string to match. |
| 605 | if (memcmp(RuleIdentifier.data()+1, "runcusatu_to_fptouisat" , 22) != 0) |
| 606 | break; |
| 607 | return 122; // "truncusatu_to_fptouisat" |
| 608 | } |
| 609 | break; |
| 610 | case 24: // 4 strings to match. |
| 611 | switch (RuleIdentifier[0]) { |
| 612 | default: break; |
| 613 | case 'b': // 1 string to match. |
| 614 | if (memcmp(RuleIdentifier.data()+1, "inop_left_undef_to_zero" , 23) != 0) |
| 615 | break; |
| 616 | return 97; // "binop_left_undef_to_zero" |
| 617 | case 'c': // 1 string to match. |
| 618 | if (memcmp(RuleIdentifier.data()+1, "onstant_fold_fnearbyint" , 23) != 0) |
| 619 | break; |
| 620 | return 24; // "constant_fold_fnearbyint" |
| 621 | case 's': // 1 string to match. |
| 622 | if (memcmp(RuleIdentifier.data()+1, "ext_inreg_of_sext_inreg" , 23) != 0) |
| 623 | break; |
| 624 | return 11; // "sext_inreg_of_sext_inreg" |
| 625 | case 'x': // 1 string to match. |
| 626 | if (memcmp(RuleIdentifier.data()+1, "or_of_and_with_same_reg" , 23) != 0) |
| 627 | break; |
| 628 | return 36; // "xor_of_and_with_same_reg" |
| 629 | } |
| 630 | break; |
| 631 | case 25: // 5 strings to match. |
| 632 | switch (RuleIdentifier[0]) { |
| 633 | default: break; |
| 634 | case 'b': // 3 strings to match. |
| 635 | switch (RuleIdentifier[1]) { |
| 636 | default: break; |
| 637 | case 'i': // 2 strings to match. |
| 638 | if (memcmp(RuleIdentifier.data()+2, "tfield_extract_from_" , 20) != 0) |
| 639 | break; |
| 640 | switch (RuleIdentifier[22]) { |
| 641 | default: break; |
| 642 | case 'a': // 1 string to match. |
| 643 | if (memcmp(RuleIdentifier.data()+23, "nd" , 2) != 0) |
| 644 | break; |
| 645 | return 42; // "bitfield_extract_from_and" |
| 646 | case 's': // 1 string to match. |
| 647 | if (memcmp(RuleIdentifier.data()+23, "hr" , 2) != 0) |
| 648 | break; |
| 649 | return 43; // "bitfield_extract_from_shr" |
| 650 | } |
| 651 | break; |
| 652 | case 'u': // 1 string to match. |
| 653 | if (memcmp(RuleIdentifier.data()+2, "ildvector_identity_fold" , 23) != 0) |
| 654 | break; |
| 655 | return 82; // "buildvector_identity_fold" |
| 656 | } |
| 657 | break; |
| 658 | case 'e': // 1 string to match. |
| 659 | if (memcmp(RuleIdentifier.data()+1, "xtract_vec_elt_build_vec" , 24) != 0) |
| 660 | break; |
| 661 | return 112; // "extract_vec_elt_build_vec" |
| 662 | case 'r': // 1 string to match. |
| 663 | if (memcmp(RuleIdentifier.data()+1, "ight_identity_neg_one_fp" , 24) != 0) |
| 664 | break; |
| 665 | return 90; // "right_identity_neg_one_fp" |
| 666 | } |
| 667 | break; |
| 668 | case 26: // 6 strings to match. |
| 669 | switch (RuleIdentifier[0]) { |
| 670 | default: break; |
| 671 | case 'b': // 2 strings to match. |
| 672 | if (RuleIdentifier[1] != 'i') |
| 673 | break; |
| 674 | switch (RuleIdentifier[2]) { |
| 675 | default: break; |
| 676 | case 'n': // 1 string to match. |
| 677 | if (memcmp(RuleIdentifier.data()+3, "op_right_undef_to_undef" , 23) != 0) |
| 678 | break; |
| 679 | return 98; // "binop_right_undef_to_undef" |
| 680 | case 't': // 1 string to match. |
| 681 | if (memcmp(RuleIdentifier.data()+3, "cast_bitcast_to_bitcast" , 23) != 0) |
| 682 | break; |
| 683 | return 86; // "bitcast_bitcast_to_bitcast" |
| 684 | } |
| 685 | break; |
| 686 | case 'c': // 2 strings to match. |
| 687 | if (memcmp(RuleIdentifier.data()+1, "om" , 2) != 0) |
| 688 | break; |
| 689 | switch (RuleIdentifier[3]) { |
| 690 | default: break; |
| 691 | case 'b': // 1 string to match. |
| 692 | if (memcmp(RuleIdentifier.data()+4, "ine_indexed_load_store" , 22) != 0) |
| 693 | break; |
| 694 | return 32; // "combine_indexed_load_store" |
| 695 | case 'm': // 1 string to match. |
| 696 | if (memcmp(RuleIdentifier.data()+4, "ute_fp_constant_to_rhs" , 22) != 0) |
| 697 | break; |
| 698 | return 111; // "commute_fp_constant_to_rhs" |
| 699 | } |
| 700 | break; |
| 701 | case 'e': // 1 string to match. |
| 702 | if (memcmp(RuleIdentifier.data()+1, "xtractvecelt_pairwise_add" , 25) != 0) |
| 703 | break; |
| 704 | return 37; // "extractvecelt_pairwise_add" |
| 705 | case 'r': // 1 string to match. |
| 706 | if (memcmp(RuleIdentifier.data()+1, "ight_identity_neg_zero_fp" , 25) != 0) |
| 707 | break; |
| 708 | return 88; // "right_identity_neg_zero_fp" |
| 709 | } |
| 710 | break; |
| 711 | case 27: // 4 strings to match. |
| 712 | switch (RuleIdentifier[0]) { |
| 713 | default: break; |
| 714 | case 'c': // 2 strings to match. |
| 715 | if (memcmp(RuleIdentifier.data()+1, "om" , 2) != 0) |
| 716 | break; |
| 717 | switch (RuleIdentifier[3]) { |
| 718 | default: break; |
| 719 | case 'b': // 1 string to match. |
| 720 | if (memcmp(RuleIdentifier.data()+4, "ine_use_vector_truncate" , 23) != 0) |
| 721 | break; |
| 722 | return 116; // "combine_use_vector_truncate" |
| 723 | case 'm': // 1 string to match. |
| 724 | if (memcmp(RuleIdentifier.data()+4, "ute_int_constant_to_rhs" , 23) != 0) |
| 725 | break; |
| 726 | return 110; // "commute_int_constant_to_rhs" |
| 727 | } |
| 728 | break; |
| 729 | case 't': // 1 string to match. |
| 730 | if (memcmp(RuleIdentifier.data()+1, "runc_lshr_buildvector_fold" , 26) != 0) |
| 731 | break; |
| 732 | return 84; // "trunc_lshr_buildvector_fold" |
| 733 | case 'u': // 1 string to match. |
| 734 | if (memcmp(RuleIdentifier.data()+1, "nmerge_anyext_build_vector" , 26) != 0) |
| 735 | break; |
| 736 | return 57; // "unmerge_anyext_build_vector" |
| 737 | } |
| 738 | break; |
| 739 | case 28: // 1 string to match. |
| 740 | if (memcmp(RuleIdentifier.data()+0, "propagate_undef_shuffle_mask" , 28) != 0) |
| 741 | break; |
| 742 | return 103; // "propagate_undef_shuffle_mask" |
| 743 | case 29: // 4 strings to match. |
| 744 | switch (RuleIdentifier[0]) { |
| 745 | default: break; |
| 746 | case 'b': // 1 string to match. |
| 747 | if (memcmp(RuleIdentifier.data()+1, "itfield_extract_from_shr_and" , 28) != 0) |
| 748 | break; |
| 749 | return 44; // "bitfield_extract_from_shr_and" |
| 750 | case 'c': // 2 strings to match. |
| 751 | if (memcmp(RuleIdentifier.data()+1, "onstant_fold_intrinsic_" , 23) != 0) |
| 752 | break; |
| 753 | switch (RuleIdentifier[24]) { |
| 754 | default: break; |
| 755 | case 'r': // 1 string to match. |
| 756 | if (memcmp(RuleIdentifier.data()+25, "ound" , 4) != 0) |
| 757 | break; |
| 758 | return 21; // "constant_fold_intrinsic_round" |
| 759 | case 't': // 1 string to match. |
| 760 | if (memcmp(RuleIdentifier.data()+25, "runc" , 4) != 0) |
| 761 | break; |
| 762 | return 20; // "constant_fold_intrinsic_trunc" |
| 763 | } |
| 764 | break; |
| 765 | case 'i': // 1 string to match. |
| 766 | if (memcmp(RuleIdentifier.data()+1, "cmp_to_true_false_known_bits" , 28) != 0) |
| 767 | break; |
| 768 | return 46; // "icmp_to_true_false_known_bits" |
| 769 | } |
| 770 | break; |
| 771 | case 30: // 1 string to match. |
| 772 | if (memcmp(RuleIdentifier.data()+0, "right_identity_neg_zero_fp_nsz" , 30) != 0) |
| 773 | break; |
| 774 | return 89; // "right_identity_neg_zero_fp_nsz" |
| 775 | case 31: // 1 string to match. |
| 776 | if (memcmp(RuleIdentifier.data()+0, "combine_build_vector_of_bitcast" , 31) != 0) |
| 777 | break; |
| 778 | return 109; // "combine_build_vector_of_bitcast" |
| 779 | case 32: // 1 string to match. |
| 780 | if (memcmp(RuleIdentifier.data()+0, "bitfield_extract_from_sext_inreg" , 32) != 0) |
| 781 | break; |
| 782 | return 41; // "bitfield_extract_from_sext_inreg" |
| 783 | case 33: // 1 string to match. |
| 784 | if (memcmp(RuleIdentifier.data()+0, "constant_fold_intrinsic_roundeven" , 33) != 0) |
| 785 | break; |
| 786 | return 22; // "constant_fold_intrinsic_roundeven" |
| 787 | case 34: // 1 string to match. |
| 788 | if (memcmp(RuleIdentifier.data()+0, "extract_all_elts_from_build_vector" , 34) != 0) |
| 789 | break; |
| 790 | return 113; // "extract_all_elts_from_build_vector" |
| 791 | case 36: // 1 string to match. |
| 792 | if (memcmp(RuleIdentifier.data()+0, "insert_extract_vec_elt_out_of_bounds" , 36) != 0) |
| 793 | break; |
| 794 | return 105; // "insert_extract_vec_elt_out_of_bounds" |
| 795 | case 37: // 1 string to match. |
| 796 | if (memcmp(RuleIdentifier.data()+0, "hoist_logic_op_with_same_opcode_hands" , 37) != 0) |
| 797 | break; |
| 798 | return 34; // "hoist_logic_op_with_same_opcode_hands" |
| 799 | case 46: // 2 strings to match. |
| 800 | switch (RuleIdentifier[0]) { |
| 801 | default: break; |
| 802 | case 'f': // 1 string to match. |
| 803 | if (memcmp(RuleIdentifier.data()+1, "unnel_shift_from_or_shift_constants_are_legal" , 45) != 0) |
| 804 | break; |
| 805 | return 124; // "funnel_shift_from_or_shift_constants_are_legal" |
| 806 | case 'p': // 1 string to match. |
| 807 | if (memcmp(RuleIdentifier.data()+1, "ush_freeze_to_prevent_poison_from_propagating" , 45) != 0) |
| 808 | break; |
| 809 | return 114; // "push_freeze_to_prevent_poison_from_propagating" |
| 810 | } |
| 811 | break; |
| 812 | } |
| 813 | #endif // ifndef NDEBUG |
| 814 | |
| 815 | return std::nullopt; |
| 816 | } |
| 817 | static std::optional<std::pair<uint64_t, uint64_t>> getRuleRangeForIdentifier(StringRef RuleIdentifier) { |
| 818 | std::pair<StringRef, StringRef> RangePair = RuleIdentifier.split('-'); |
| 819 | if (!RangePair.second.empty()) { |
| 820 | const auto First = getRuleIdxForIdentifier(RangePair.first); |
| 821 | const auto Last = getRuleIdxForIdentifier(RangePair.second); |
| 822 | if (!First || !Last) |
| 823 | return std::nullopt; |
| 824 | if (First >= Last) |
| 825 | report_fatal_error("Beginning of range should be before end of range" ); |
| 826 | return {{*First, *Last + 1}}; |
| 827 | } |
| 828 | if (RangePair.first == "*" ) { |
| 829 | return {{0, 125}}; |
| 830 | } |
| 831 | const auto I = getRuleIdxForIdentifier(RangePair.first); |
| 832 | if (!I) |
| 833 | return std::nullopt; |
| 834 | return {{*I, *I + 1}}; |
| 835 | } |
| 836 | |
| 837 | bool AArch64PostLegalizerCombinerImplRuleConfig::setRuleEnabled(StringRef RuleIdentifier) { |
| 838 | auto MaybeRange = getRuleRangeForIdentifier(RuleIdentifier); |
| 839 | if (!MaybeRange) |
| 840 | return false; |
| 841 | for (auto I = MaybeRange->first; I < MaybeRange->second; ++I) |
| 842 | DisabledRules.reset(I); |
| 843 | return true; |
| 844 | } |
| 845 | |
| 846 | bool AArch64PostLegalizerCombinerImplRuleConfig::setRuleDisabled(StringRef RuleIdentifier) { |
| 847 | auto MaybeRange = getRuleRangeForIdentifier(RuleIdentifier); |
| 848 | if (!MaybeRange) |
| 849 | return false; |
| 850 | for (auto I = MaybeRange->first; I < MaybeRange->second; ++I) |
| 851 | DisabledRules.set(I); |
| 852 | return true; |
| 853 | } |
| 854 | |
| 855 | static std::vector<std::string> AArch64PostLegalizerCombinerOption; |
| 856 | static cl::list<std::string> AArch64PostLegalizerCombinerDisableOption( |
| 857 | "aarch64postlegalizercombiner-disable-rule" , |
| 858 | cl::desc("Disable one or more combiner rules temporarily in the AArch64PostLegalizerCombiner pass" ), |
| 859 | cl::CommaSeparated, |
| 860 | cl::Hidden, |
| 861 | cl::cat(GICombinerOptionCategory), |
| 862 | cl::callback([](const std::string &Str) { |
| 863 | AArch64PostLegalizerCombinerOption.push_back(Str); |
| 864 | })); |
| 865 | static cl::list<std::string> AArch64PostLegalizerCombinerOnlyEnableOption( |
| 866 | "aarch64postlegalizercombiner-only-enable-rule" , |
| 867 | cl::desc("Disable all rules in the AArch64PostLegalizerCombiner pass then re-enable the specified ones" ), |
| 868 | cl::Hidden, |
| 869 | cl::cat(GICombinerOptionCategory), |
| 870 | cl::callback([](const std::string &CommaSeparatedArg) { |
| 871 | StringRef Str = CommaSeparatedArg; |
| 872 | AArch64PostLegalizerCombinerOption.push_back("*" ); |
| 873 | do { |
| 874 | auto X = Str.split("," ); |
| 875 | AArch64PostLegalizerCombinerOption.push_back(("!" + X.first).str()); |
| 876 | Str = X.second; |
| 877 | } while (!Str.empty()); |
| 878 | })); |
| 879 | |
| 880 | |
| 881 | bool AArch64PostLegalizerCombinerImplRuleConfig::isRuleEnabled(unsigned RuleID) const { |
| 882 | return !DisabledRules.test(RuleID); |
| 883 | } |
| 884 | bool AArch64PostLegalizerCombinerImplRuleConfig::parseCommandLineOption() { |
| 885 | for (StringRef Identifier : AArch64PostLegalizerCombinerOption) { |
| 886 | bool Enabled = Identifier.consume_front("!" ); |
| 887 | if (Enabled && !setRuleEnabled(Identifier)) |
| 888 | return false; |
| 889 | if (!Enabled && !setRuleDisabled(Identifier)) |
| 890 | return false; |
| 891 | } |
| 892 | return true; |
| 893 | } |
| 894 | |
| 895 | |
| 896 | #endif // GET_GICOMBINER_TYPES |
| 897 | |
| 898 | #ifdef GET_GICOMBINER_TYPES |
| 899 | |
| 900 | const unsigned MAX_SUBTARGET_PREDICATES = 0; |
| 901 | using PredicateBitset = llvm::Bitset<MAX_SUBTARGET_PREDICATES>; |
| 902 | |
| 903 | #endif // GET_GICOMBINER_TYPES |
| 904 | |
| 905 | #ifdef GET_GICOMBINER_CLASS_MEMBERS |
| 906 | |
| 907 | PredicateBitset AvailableModuleFeatures; |
| 908 | mutable PredicateBitset AvailableFunctionFeatures; |
| 909 | PredicateBitset getAvailableFeatures() const { |
| 910 | return AvailableModuleFeatures | AvailableFunctionFeatures; |
| 911 | } |
| 912 | PredicateBitset |
| 913 | computeAvailableModuleFeatures(const AArch64Subtarget *Subtarget) const; |
| 914 | PredicateBitset |
| 915 | computeAvailableFunctionFeatures(const AArch64Subtarget *Subtarget, |
| 916 | const MachineFunction *MF) const; |
| 917 | void setupGeneratedPerFunctionState(MachineFunction &MF) override; |
| 918 | |
| 919 | #endif // GET_GICOMBINER_CLASS_MEMBERS |
| 920 | |
| 921 | #ifdef GET_GICOMBINER_CLASS_MEMBERS |
| 922 | |
| 923 | mutable MatcherState State; |
| 924 | typedef ComplexRendererFns(AArch64PostLegalizerCombinerImpl::*ComplexMatcherMemFn)(MachineOperand &) const; |
| 925 | typedef void(AArch64PostLegalizerCombinerImpl::*CustomRendererFn)(MachineInstrBuilder &, const MachineInstr &, int) const; |
| 926 | const ExecInfoTy<PredicateBitset, ComplexMatcherMemFn, CustomRendererFn> ExecInfo; |
| 927 | static AArch64PostLegalizerCombinerImpl::ComplexMatcherMemFn ComplexPredicateFns[]; |
| 928 | static AArch64PostLegalizerCombinerImpl::CustomRendererFn CustomRenderers[]; |
| 929 | bool testImmPredicate_I64(unsigned PredicateID, int64_t Imm) const override; |
| 930 | bool testImmPredicate_APInt(unsigned PredicateID, const APInt &Imm) const override; |
| 931 | bool testImmPredicate_APFloat(unsigned PredicateID, const APFloat &Imm) const override; |
| 932 | const uint8_t *getMatchTable() const override; |
| 933 | bool testMIPredicate_MI(unsigned PredicateID, const MachineInstr &MI, const MatcherState &State) const override; |
| 934 | bool testMOPredicate_MO(unsigned PredicateID, const MachineOperand &MO, const MatcherState &State) const override; |
| 935 | bool testSimplePredicate(unsigned PredicateID) const override; |
| 936 | bool runCustomAction(unsigned FnID, const MatcherState &State, NewMIVector &OutMIs) const override; |
| 937 | |
| 938 | #endif // GET_GICOMBINER_CLASS_MEMBERS |
| 939 | |
| 940 | #ifdef GET_GICOMBINER_IMPL |
| 941 | |
| 942 | // LLT Objects. |
| 943 | enum { |
| 944 | GILLT_s1, |
| 945 | }; |
| 946 | const static size_t NumTypeObjects = 1; |
| 947 | const static LLT TypeObjects[] = { |
| 948 | LLT::scalar(1), |
| 949 | }; |
| 950 | |
| 951 | // Bits for subtarget features that participate in instruction matching. |
| 952 | enum SubtargetFeatureBits : uint8_t { |
| 953 | }; |
| 954 | |
| 955 | PredicateBitset AArch64PostLegalizerCombinerImpl:: |
| 956 | computeAvailableModuleFeatures(const AArch64Subtarget *Subtarget) const { |
| 957 | PredicateBitset Features{}; |
| 958 | return Features; |
| 959 | } |
| 960 | |
| 961 | void AArch64PostLegalizerCombinerImpl::setupGeneratedPerFunctionState(MachineFunction &MF) { |
| 962 | AvailableFunctionFeatures = computeAvailableFunctionFeatures((const AArch64Subtarget *)&MF.getSubtarget(), &MF); |
| 963 | } |
| 964 | PredicateBitset AArch64PostLegalizerCombinerImpl:: |
| 965 | computeAvailableFunctionFeatures(const AArch64Subtarget *Subtarget, const MachineFunction *MF) const { |
| 966 | PredicateBitset Features{}; |
| 967 | return Features; |
| 968 | } |
| 969 | |
| 970 | // Feature bitsets. |
| 971 | enum { |
| 972 | GIFBS_Invalid, |
| 973 | }; |
| 974 | constexpr static PredicateBitset FeatureBitsets[] { |
| 975 | {}, // GIFBS_Invalid |
| 976 | }; |
| 977 | |
| 978 | // ComplexPattern predicates. |
| 979 | enum { |
| 980 | GICP_Invalid, |
| 981 | }; |
| 982 | // See constructor for table contents |
| 983 | |
| 984 | AArch64PostLegalizerCombinerImpl::ComplexMatcherMemFn |
| 985 | AArch64PostLegalizerCombinerImpl::ComplexPredicateFns[] = { |
| 986 | nullptr, // GICP_Invalid |
| 987 | }; |
| 988 | |
| 989 | enum { |
| 990 | GICXXPred_MI_Predicate_GICombiner0 = GICXXPred_Invalid + 1, |
| 991 | GICXXPred_MI_Predicate_GICombiner1, |
| 992 | GICXXPred_MI_Predicate_GICombiner2, |
| 993 | GICXXPred_MI_Predicate_GICombiner3, |
| 994 | GICXXPred_MI_Predicate_GICombiner4, |
| 995 | GICXXPred_MI_Predicate_GICombiner5, |
| 996 | GICXXPred_MI_Predicate_GICombiner6, |
| 997 | GICXXPred_MI_Predicate_GICombiner7, |
| 998 | }; |
| 999 | bool AArch64PostLegalizerCombinerImpl::testMIPredicate_MI(unsigned PredicateID, const MachineInstr & MI, const MatcherState &State) const { |
| 1000 | switch (PredicateID) { |
| 1001 | case GICXXPred_MI_Predicate_GICombiner0: { |
| 1002 | return MRI.getType(State.MIs[0]->getOperand(1).getReg()) == MRI.getType(State.MIs[0]->getOperand(0).getReg()) && |
| 1003 | VT->computeNumSignBits(State.MIs[0]->getOperand(1).getReg()) == MRI.getType(State.MIs[0]->getOperand(0).getReg()).getScalarSizeInBits(); |
| 1004 | } |
| 1005 | case GICXXPred_MI_Predicate_GICombiner1: { |
| 1006 | return Helper.matchConstantFPOp(State.MIs[0]->getOperand(2), 1.0); |
| 1007 | } |
| 1008 | case GICXXPred_MI_Predicate_GICombiner2: { |
| 1009 | return MRI.getType(State.MIs[1]->getOperand(1).getReg()) != MRI.getType(State.MIs[0]->getOperand(0).getReg()); |
| 1010 | } |
| 1011 | case GICXXPred_MI_Predicate_GICombiner3: { |
| 1012 | return Helper.matchConstantFPOp(State.MIs[0]->getOperand(2), -0.0); |
| 1013 | } |
| 1014 | case GICXXPred_MI_Predicate_GICombiner4: { |
| 1015 | return Helper.matchConstantFPOp(State.MIs[0]->getOperand(2), 0.0); |
| 1016 | } |
| 1017 | case GICXXPred_MI_Predicate_GICombiner5: { |
| 1018 | return Helper.matchConstantFPOp(State.MIs[0]->getOperand(2), -1.0); |
| 1019 | } |
| 1020 | case GICXXPred_MI_Predicate_GICombiner6: { |
| 1021 | return Helper.matchTruncUSatU(*State.MIs[0], *State.MIs[1]); |
| 1022 | } |
| 1023 | case GICXXPred_MI_Predicate_GICombiner7: { |
| 1024 | return Helper.matchTruncUSatUToFPTOUISat(*State.MIs[0], *State.MIs[1]); |
| 1025 | } |
| 1026 | } |
| 1027 | llvm_unreachable("Unknown predicate" ); |
| 1028 | return false; |
| 1029 | } |
| 1030 | bool AArch64PostLegalizerCombinerImpl::testMOPredicate_MO(unsigned PredicateID, const MachineOperand & MO, const MatcherState &State) const { |
| 1031 | llvm_unreachable("Unknown predicate" ); |
| 1032 | return false; |
| 1033 | } |
| 1034 | bool AArch64PostLegalizerCombinerImpl::testImmPredicate_I64(unsigned PredicateID, int64_t Imm) const { |
| 1035 | llvm_unreachable("Unknown predicate" ); |
| 1036 | return false; |
| 1037 | } |
| 1038 | bool AArch64PostLegalizerCombinerImpl::testImmPredicate_APFloat(unsigned PredicateID, const APFloat & Imm) const { |
| 1039 | llvm_unreachable("Unknown predicate" ); |
| 1040 | return false; |
| 1041 | } |
| 1042 | bool AArch64PostLegalizerCombinerImpl::testImmPredicate_APInt(unsigned PredicateID, const APInt & Imm) const { |
| 1043 | llvm_unreachable("Unknown predicate" ); |
| 1044 | return false; |
| 1045 | } |
| 1046 | enum { |
| 1047 | GICXXPred_Simple_IsRule0Enabled = GICXXPred_Invalid + 1, |
| 1048 | GICXXPred_Simple_IsRule1Enabled, |
| 1049 | GICXXPred_Simple_IsRule2Enabled, |
| 1050 | GICXXPred_Simple_IsRule3Enabled, |
| 1051 | GICXXPred_Simple_IsRule4Enabled, |
| 1052 | GICXXPred_Simple_IsRule5Enabled, |
| 1053 | GICXXPred_Simple_IsRule6Enabled, |
| 1054 | GICXXPred_Simple_IsRule7Enabled, |
| 1055 | GICXXPred_Simple_IsRule8Enabled, |
| 1056 | GICXXPred_Simple_IsRule9Enabled, |
| 1057 | GICXXPred_Simple_IsRule10Enabled, |
| 1058 | GICXXPred_Simple_IsRule11Enabled, |
| 1059 | GICXXPred_Simple_IsRule12Enabled, |
| 1060 | GICXXPred_Simple_IsRule13Enabled, |
| 1061 | GICXXPred_Simple_IsRule14Enabled, |
| 1062 | GICXXPred_Simple_IsRule15Enabled, |
| 1063 | GICXXPred_Simple_IsRule16Enabled, |
| 1064 | GICXXPred_Simple_IsRule17Enabled, |
| 1065 | GICXXPred_Simple_IsRule18Enabled, |
| 1066 | GICXXPred_Simple_IsRule19Enabled, |
| 1067 | GICXXPred_Simple_IsRule20Enabled, |
| 1068 | GICXXPred_Simple_IsRule21Enabled, |
| 1069 | GICXXPred_Simple_IsRule22Enabled, |
| 1070 | GICXXPred_Simple_IsRule23Enabled, |
| 1071 | GICXXPred_Simple_IsRule24Enabled, |
| 1072 | GICXXPred_Simple_IsRule25Enabled, |
| 1073 | GICXXPred_Simple_IsRule26Enabled, |
| 1074 | GICXXPred_Simple_IsRule27Enabled, |
| 1075 | GICXXPred_Simple_IsRule28Enabled, |
| 1076 | GICXXPred_Simple_IsRule29Enabled, |
| 1077 | GICXXPred_Simple_IsRule30Enabled, |
| 1078 | GICXXPred_Simple_IsRule31Enabled, |
| 1079 | GICXXPred_Simple_IsRule32Enabled, |
| 1080 | GICXXPred_Simple_IsRule33Enabled, |
| 1081 | GICXXPred_Simple_IsRule34Enabled, |
| 1082 | GICXXPred_Simple_IsRule35Enabled, |
| 1083 | GICXXPred_Simple_IsRule36Enabled, |
| 1084 | GICXXPred_Simple_IsRule37Enabled, |
| 1085 | GICXXPred_Simple_IsRule38Enabled, |
| 1086 | GICXXPred_Simple_IsRule39Enabled, |
| 1087 | GICXXPred_Simple_IsRule40Enabled, |
| 1088 | GICXXPred_Simple_IsRule41Enabled, |
| 1089 | GICXXPred_Simple_IsRule42Enabled, |
| 1090 | GICXXPred_Simple_IsRule43Enabled, |
| 1091 | GICXXPred_Simple_IsRule44Enabled, |
| 1092 | GICXXPred_Simple_IsRule45Enabled, |
| 1093 | GICXXPred_Simple_IsRule46Enabled, |
| 1094 | GICXXPred_Simple_IsRule47Enabled, |
| 1095 | GICXXPred_Simple_IsRule48Enabled, |
| 1096 | GICXXPred_Simple_IsRule49Enabled, |
| 1097 | GICXXPred_Simple_IsRule50Enabled, |
| 1098 | GICXXPred_Simple_IsRule51Enabled, |
| 1099 | GICXXPred_Simple_IsRule52Enabled, |
| 1100 | GICXXPred_Simple_IsRule53Enabled, |
| 1101 | GICXXPred_Simple_IsRule54Enabled, |
| 1102 | GICXXPred_Simple_IsRule55Enabled, |
| 1103 | GICXXPred_Simple_IsRule56Enabled, |
| 1104 | GICXXPred_Simple_IsRule57Enabled, |
| 1105 | GICXXPred_Simple_IsRule58Enabled, |
| 1106 | GICXXPred_Simple_IsRule59Enabled, |
| 1107 | GICXXPred_Simple_IsRule60Enabled, |
| 1108 | GICXXPred_Simple_IsRule61Enabled, |
| 1109 | GICXXPred_Simple_IsRule62Enabled, |
| 1110 | GICXXPred_Simple_IsRule63Enabled, |
| 1111 | GICXXPred_Simple_IsRule64Enabled, |
| 1112 | GICXXPred_Simple_IsRule65Enabled, |
| 1113 | GICXXPred_Simple_IsRule66Enabled, |
| 1114 | GICXXPred_Simple_IsRule67Enabled, |
| 1115 | GICXXPred_Simple_IsRule68Enabled, |
| 1116 | GICXXPred_Simple_IsRule69Enabled, |
| 1117 | GICXXPred_Simple_IsRule70Enabled, |
| 1118 | GICXXPred_Simple_IsRule71Enabled, |
| 1119 | GICXXPred_Simple_IsRule72Enabled, |
| 1120 | GICXXPred_Simple_IsRule73Enabled, |
| 1121 | GICXXPred_Simple_IsRule74Enabled, |
| 1122 | GICXXPred_Simple_IsRule75Enabled, |
| 1123 | GICXXPred_Simple_IsRule76Enabled, |
| 1124 | GICXXPred_Simple_IsRule77Enabled, |
| 1125 | GICXXPred_Simple_IsRule78Enabled, |
| 1126 | GICXXPred_Simple_IsRule79Enabled, |
| 1127 | GICXXPred_Simple_IsRule80Enabled, |
| 1128 | GICXXPred_Simple_IsRule81Enabled, |
| 1129 | GICXXPred_Simple_IsRule82Enabled, |
| 1130 | GICXXPred_Simple_IsRule83Enabled, |
| 1131 | GICXXPred_Simple_IsRule84Enabled, |
| 1132 | GICXXPred_Simple_IsRule85Enabled, |
| 1133 | GICXXPred_Simple_IsRule86Enabled, |
| 1134 | GICXXPred_Simple_IsRule87Enabled, |
| 1135 | GICXXPred_Simple_IsRule88Enabled, |
| 1136 | GICXXPred_Simple_IsRule89Enabled, |
| 1137 | GICXXPred_Simple_IsRule90Enabled, |
| 1138 | GICXXPred_Simple_IsRule91Enabled, |
| 1139 | GICXXPred_Simple_IsRule92Enabled, |
| 1140 | GICXXPred_Simple_IsRule93Enabled, |
| 1141 | GICXXPred_Simple_IsRule94Enabled, |
| 1142 | GICXXPred_Simple_IsRule95Enabled, |
| 1143 | GICXXPred_Simple_IsRule96Enabled, |
| 1144 | GICXXPred_Simple_IsRule97Enabled, |
| 1145 | GICXXPred_Simple_IsRule98Enabled, |
| 1146 | GICXXPred_Simple_IsRule99Enabled, |
| 1147 | GICXXPred_Simple_IsRule100Enabled, |
| 1148 | GICXXPred_Simple_IsRule101Enabled, |
| 1149 | GICXXPred_Simple_IsRule102Enabled, |
| 1150 | GICXXPred_Simple_IsRule103Enabled, |
| 1151 | GICXXPred_Simple_IsRule104Enabled, |
| 1152 | GICXXPred_Simple_IsRule105Enabled, |
| 1153 | GICXXPred_Simple_IsRule106Enabled, |
| 1154 | GICXXPred_Simple_IsRule107Enabled, |
| 1155 | GICXXPred_Simple_IsRule108Enabled, |
| 1156 | GICXXPred_Simple_IsRule109Enabled, |
| 1157 | GICXXPred_Simple_IsRule110Enabled, |
| 1158 | GICXXPred_Simple_IsRule111Enabled, |
| 1159 | GICXXPred_Simple_IsRule112Enabled, |
| 1160 | GICXXPred_Simple_IsRule113Enabled, |
| 1161 | GICXXPred_Simple_IsRule114Enabled, |
| 1162 | GICXXPred_Simple_IsRule115Enabled, |
| 1163 | GICXXPred_Simple_IsRule116Enabled, |
| 1164 | GICXXPred_Simple_IsRule117Enabled, |
| 1165 | GICXXPred_Simple_IsRule118Enabled, |
| 1166 | GICXXPred_Simple_IsRule119Enabled, |
| 1167 | GICXXPred_Simple_IsRule120Enabled, |
| 1168 | GICXXPred_Simple_IsRule121Enabled, |
| 1169 | GICXXPred_Simple_IsRule122Enabled, |
| 1170 | GICXXPred_Simple_IsRule123Enabled, |
| 1171 | GICXXPred_Simple_IsRule124Enabled, |
| 1172 | }; |
| 1173 | |
| 1174 | bool AArch64PostLegalizerCombinerImpl::testSimplePredicate(unsigned Predicate) const { |
| 1175 | return RuleConfig.isRuleEnabled(Predicate - GICXXPred_Invalid - 1); |
| 1176 | } |
| 1177 | // Custom renderers. |
| 1178 | enum { |
| 1179 | GICR_Invalid, |
| 1180 | }; |
| 1181 | AArch64PostLegalizerCombinerImpl::CustomRendererFn |
| 1182 | AArch64PostLegalizerCombinerImpl::CustomRenderers[] = { |
| 1183 | nullptr, // GICR_Invalid |
| 1184 | }; |
| 1185 | |
| 1186 | static bool AArch64PostLegalizerCombinerImpl_canMatchOpcode(unsigned Opc) { |
| 1187 | switch (Opc) { |
| 1188 | case TargetOpcode::G_SELECT: |
| 1189 | case TargetOpcode::G_ADD: |
| 1190 | case TargetOpcode::G_AND: |
| 1191 | case TargetOpcode::G_ASHR: |
| 1192 | case TargetOpcode::G_FADD: |
| 1193 | case TargetOpcode::G_FCOPYSIGN: |
| 1194 | case TargetOpcode::G_FDIV: |
| 1195 | case TargetOpcode::G_FMAXIMUM: |
| 1196 | case TargetOpcode::G_FMAXIMUMNUM: |
| 1197 | case TargetOpcode::G_FMAXNUM: |
| 1198 | case TargetOpcode::G_FMINIMUM: |
| 1199 | case TargetOpcode::G_FMINIMUMNUM: |
| 1200 | case TargetOpcode::G_FMINNUM: |
| 1201 | case TargetOpcode::G_FMUL: |
| 1202 | case TargetOpcode::G_FREM: |
| 1203 | case TargetOpcode::G_FSUB: |
| 1204 | case TargetOpcode::G_LSHR: |
| 1205 | case TargetOpcode::G_MERGE_VALUES: |
| 1206 | case TargetOpcode::G_MUL: |
| 1207 | case TargetOpcode::G_OR: |
| 1208 | case TargetOpcode::G_PTR_ADD: |
| 1209 | case TargetOpcode::G_ROTL: |
| 1210 | case TargetOpcode::G_ROTR: |
| 1211 | case TargetOpcode::G_SDIV: |
| 1212 | case TargetOpcode::G_SEXT_INREG: |
| 1213 | case TargetOpcode::G_SHL: |
| 1214 | case TargetOpcode::G_SREM: |
| 1215 | case TargetOpcode::G_SUB: |
| 1216 | case TargetOpcode::G_UDIV: |
| 1217 | case TargetOpcode::G_UREM: |
| 1218 | case TargetOpcode::G_XOR: |
| 1219 | case TargetOpcode::COPY: |
| 1220 | case TargetOpcode::G_ANYEXT: |
| 1221 | case TargetOpcode::G_BITCAST: |
| 1222 | case TargetOpcode::G_BUILD_VECTOR: |
| 1223 | case TargetOpcode::G_FABS: |
| 1224 | case TargetOpcode::G_FCEIL: |
| 1225 | case TargetOpcode::G_FFLOOR: |
| 1226 | case TargetOpcode::G_FLOG2: |
| 1227 | case TargetOpcode::G_FNEARBYINT: |
| 1228 | case TargetOpcode::G_FNEG: |
| 1229 | case TargetOpcode::G_FPEXT: |
| 1230 | case TargetOpcode::G_FPTOSI: |
| 1231 | case TargetOpcode::G_FPTOUI: |
| 1232 | case TargetOpcode::G_FPTRUNC: |
| 1233 | case TargetOpcode::G_FREEZE: |
| 1234 | case TargetOpcode::G_FRINT: |
| 1235 | case TargetOpcode::G_FSQRT: |
| 1236 | case TargetOpcode::G_INTRINSIC_ROUND: |
| 1237 | case TargetOpcode::G_INTRINSIC_ROUNDEVEN: |
| 1238 | case TargetOpcode::G_INTRINSIC_TRUNC: |
| 1239 | case TargetOpcode::G_INTTOPTR: |
| 1240 | case TargetOpcode::G_PTRTOINT: |
| 1241 | case TargetOpcode::G_SEXT: |
| 1242 | case TargetOpcode::G_SITOFP: |
| 1243 | case TargetOpcode::G_STORE: |
| 1244 | case TargetOpcode::G_TRUNC: |
| 1245 | case TargetOpcode::G_TRUNC_USAT_U: |
| 1246 | case TargetOpcode::G_UITOFP: |
| 1247 | case TargetOpcode::G_ZEXT: |
| 1248 | case TargetOpcode::G_ABS: |
| 1249 | case TargetOpcode::G_BUILD_VECTOR_TRUNC: |
| 1250 | case TargetOpcode::G_CONCAT_VECTORS: |
| 1251 | case TargetOpcode::G_EXTRACT_VECTOR_ELT: |
| 1252 | case TargetOpcode::G_FMAXNUM_IEEE: |
| 1253 | case TargetOpcode::G_FMINNUM_IEEE: |
| 1254 | case TargetOpcode::G_ICMP: |
| 1255 | case TargetOpcode::G_INSERT_VECTOR_ELT: |
| 1256 | case TargetOpcode::G_LOAD: |
| 1257 | case TargetOpcode::G_SADDO: |
| 1258 | case TargetOpcode::G_SADDSAT: |
| 1259 | case TargetOpcode::G_SEXTLOAD: |
| 1260 | case TargetOpcode::G_SHUFFLE_VECTOR: |
| 1261 | case TargetOpcode::G_SMAX: |
| 1262 | case TargetOpcode::G_SMIN: |
| 1263 | case TargetOpcode::G_SMULFIX: |
| 1264 | case TargetOpcode::G_SMULFIXSAT: |
| 1265 | case TargetOpcode::G_SMULH: |
| 1266 | case TargetOpcode::G_SMULO: |
| 1267 | case TargetOpcode::G_SSUBO: |
| 1268 | case TargetOpcode::G_UADDO: |
| 1269 | case TargetOpcode::G_UADDSAT: |
| 1270 | case TargetOpcode::G_UMAX: |
| 1271 | case TargetOpcode::G_UMIN: |
| 1272 | case TargetOpcode::G_UMULFIX: |
| 1273 | case TargetOpcode::G_UMULFIXSAT: |
| 1274 | case TargetOpcode::G_UMULH: |
| 1275 | case TargetOpcode::G_UMULO: |
| 1276 | case TargetOpcode::G_UNMERGE_VALUES: |
| 1277 | case TargetOpcode::G_USUBO: |
| 1278 | case TargetOpcode::G_ZEXTLOAD: |
| 1279 | return true; |
| 1280 | default: |
| 1281 | return false; |
| 1282 | } |
| 1283 | } |
| 1284 | |
| 1285 | bool AArch64PostLegalizerCombinerImpl::tryCombineAll(MachineInstr &I) const { |
| 1286 | if (!AArch64PostLegalizerCombinerImpl_canMatchOpcode(I.getOpcode())) |
| 1287 | return false; |
| 1288 | const PredicateBitset AvailableFeatures = getAvailableFeatures(); |
| 1289 | State.MIs.clear(); |
| 1290 | State.MIs.push_back(&I); |
| 1291 | if (executeMatchTable(*this, State, ExecInfo, B, getMatchTable(), Helper.getTII(), MRI, Helper.getTRI(), Helper.getRBI(), AvailableFeatures, /*CoverageInfo*/ nullptr)) { |
| 1292 | return true; |
| 1293 | } |
| 1294 | |
| 1295 | return false; |
| 1296 | } |
| 1297 | |
| 1298 | enum { |
| 1299 | GICXXCustomAction_GICombiner0 = GICXXCustomAction_Invalid + 1, |
| 1300 | GICXXCustomAction_GICombiner1, |
| 1301 | GICXXCustomAction_GICombiner2, |
| 1302 | GICXXCustomAction_GICombiner3, |
| 1303 | GICXXCustomAction_GICombiner4, |
| 1304 | GICXXCustomAction_GICombiner5, |
| 1305 | GICXXCustomAction_GICombiner6, |
| 1306 | GICXXCustomAction_GICombiner7, |
| 1307 | GICXXCustomAction_GICombiner8, |
| 1308 | GICXXCustomAction_GICombiner9, |
| 1309 | GICXXCustomAction_GICombiner10, |
| 1310 | GICXXCustomAction_GICombiner11, |
| 1311 | GICXXCustomAction_GICombiner12, |
| 1312 | GICXXCustomAction_GICombiner13, |
| 1313 | GICXXCustomAction_GICombiner14, |
| 1314 | GICXXCustomAction_GICombiner15, |
| 1315 | GICXXCustomAction_GICombiner16, |
| 1316 | GICXXCustomAction_GICombiner17, |
| 1317 | GICXXCustomAction_GICombiner18, |
| 1318 | GICXXCustomAction_GICombiner19, |
| 1319 | GICXXCustomAction_GICombiner20, |
| 1320 | GICXXCustomAction_GICombiner21, |
| 1321 | GICXXCustomAction_GICombiner22, |
| 1322 | GICXXCustomAction_GICombiner23, |
| 1323 | GICXXCustomAction_GICombiner24, |
| 1324 | GICXXCustomAction_GICombiner25, |
| 1325 | GICXXCustomAction_GICombiner26, |
| 1326 | GICXXCustomAction_GICombiner27, |
| 1327 | GICXXCustomAction_GICombiner28, |
| 1328 | GICXXCustomAction_GICombiner29, |
| 1329 | GICXXCustomAction_GICombiner30, |
| 1330 | GICXXCustomAction_GICombiner31, |
| 1331 | GICXXCustomAction_GICombiner32, |
| 1332 | GICXXCustomAction_GICombiner33, |
| 1333 | GICXXCustomAction_GICombiner34, |
| 1334 | GICXXCustomAction_GICombiner35, |
| 1335 | GICXXCustomAction_GICombiner36, |
| 1336 | GICXXCustomAction_GICombiner37, |
| 1337 | GICXXCustomAction_GICombiner38, |
| 1338 | GICXXCustomAction_GICombiner39, |
| 1339 | GICXXCustomAction_GICombiner40, |
| 1340 | GICXXCustomAction_GICombiner41, |
| 1341 | GICXXCustomAction_GICombiner42, |
| 1342 | GICXXCustomAction_GICombiner43, |
| 1343 | GICXXCustomAction_GICombiner44, |
| 1344 | GICXXCustomAction_GICombiner45, |
| 1345 | GICXXCustomAction_GICombiner46, |
| 1346 | GICXXCustomAction_GICombiner47, |
| 1347 | GICXXCustomAction_GICombiner48, |
| 1348 | GICXXCustomAction_GICombiner49, |
| 1349 | GICXXCustomAction_GICombiner50, |
| 1350 | GICXXCustomAction_GICombiner51, |
| 1351 | GICXXCustomAction_GICombiner52, |
| 1352 | GICXXCustomAction_GICombiner53, |
| 1353 | GICXXCustomAction_GICombiner54, |
| 1354 | GICXXCustomAction_GICombiner55, |
| 1355 | GICXXCustomAction_GICombiner56, |
| 1356 | GICXXCustomAction_GICombiner57, |
| 1357 | GICXXCustomAction_GICombiner58, |
| 1358 | GICXXCustomAction_GICombiner59, |
| 1359 | GICXXCustomAction_GICombiner60, |
| 1360 | GICXXCustomAction_GICombiner61, |
| 1361 | GICXXCustomAction_GICombiner62, |
| 1362 | GICXXCustomAction_GICombiner63, |
| 1363 | GICXXCustomAction_GICombiner64, |
| 1364 | GICXXCustomAction_GICombiner65, |
| 1365 | GICXXCustomAction_GICombiner66, |
| 1366 | GICXXCustomAction_GICombiner67, |
| 1367 | GICXXCustomAction_GICombiner68, |
| 1368 | GICXXCustomAction_GICombiner69, |
| 1369 | GICXXCustomAction_GICombiner70, |
| 1370 | GICXXCustomAction_GICombiner71, |
| 1371 | GICXXCustomAction_GICombiner72, |
| 1372 | GICXXCustomAction_GICombiner73, |
| 1373 | GICXXCustomAction_GICombiner74, |
| 1374 | GICXXCustomAction_GICombiner75, |
| 1375 | GICXXCustomAction_GICombiner76, |
| 1376 | GICXXCustomAction_GICombiner77, |
| 1377 | GICXXCustomAction_GICombiner78, |
| 1378 | GICXXCustomAction_GICombiner79, |
| 1379 | GICXXCustomAction_GICombiner80, |
| 1380 | GICXXCustomAction_GICombiner81, |
| 1381 | GICXXCustomAction_GICombiner82, |
| 1382 | }; |
| 1383 | bool AArch64PostLegalizerCombinerImpl::runCustomAction(unsigned ApplyID, const MatcherState &State, NewMIVector &OutMIs) const { |
| 1384 | Helper.getBuilder().setInstrAndDebugLoc(*State.MIs[0]); |
| 1385 | switch(ApplyID) { |
| 1386 | case GICXXCustomAction_GICombiner0:{ |
| 1387 | // Match Patterns |
| 1388 | if(![&](){return Helper.matchCombineCopy(*State.MIs[0]);}()) { |
| 1389 | return false; |
| 1390 | } |
| 1391 | // Apply Patterns |
| 1392 | Helper.applyCombineCopy(*State.MIs[0]); |
| 1393 | return true; |
| 1394 | } |
| 1395 | case GICXXCustomAction_GICombiner1:{ |
| 1396 | std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo; |
| 1397 | // Match Patterns |
| 1398 | if(![&](){return Helper.matchTruncateOfExt(*State.MIs[0], *State.MIs[1], GIMatchData_matchinfo);}()) { |
| 1399 | return false; |
| 1400 | } |
| 1401 | // Apply Patterns |
| 1402 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo); |
| 1403 | return true; |
| 1404 | } |
| 1405 | case GICXXCustomAction_GICombiner2:{ |
| 1406 | std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo; |
| 1407 | // Match Patterns |
| 1408 | if(![&](){return Helper.matchExtOfExt(*State.MIs[0], *State.MIs[1], GIMatchData_matchinfo);}()) { |
| 1409 | return false; |
| 1410 | } |
| 1411 | // Apply Patterns |
| 1412 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo); |
| 1413 | return true; |
| 1414 | } |
| 1415 | case GICXXCustomAction_GICombiner3:{ |
| 1416 | std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo; |
| 1417 | // Match Patterns |
| 1418 | if(![&](){return Helper.matchRedundantSextInReg(*State.MIs[0], *State.MIs[1], GIMatchData_matchinfo);}()) { |
| 1419 | return false; |
| 1420 | } |
| 1421 | // Apply Patterns |
| 1422 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo); |
| 1423 | return true; |
| 1424 | } |
| 1425 | case GICXXCustomAction_GICombiner4:{ |
| 1426 | // Apply Patterns |
| 1427 | Helper.applyCombineConstantFoldFpUnary(*State.MIs[0], State.MIs[1]->getOperand(1).getFPImm()); |
| 1428 | return true; |
| 1429 | } |
| 1430 | case GICXXCustomAction_GICombiner5:{ |
| 1431 | // Apply Patterns |
| 1432 | Helper.replaceInstWithFConstant(*State.MIs[0]->getOperand(0).getParent(), 0.0); |
| 1433 | return true; |
| 1434 | } |
| 1435 | case GICXXCustomAction_GICombiner6:{ |
| 1436 | std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo; |
| 1437 | // Match Patterns |
| 1438 | if(![&](){return Helper.matchCastOfBuildVector(*State.MIs[0], *State.MIs[1], GIMatchData_matchinfo);}()) { |
| 1439 | return false; |
| 1440 | } |
| 1441 | // Apply Patterns |
| 1442 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo); |
| 1443 | return true; |
| 1444 | } |
| 1445 | case GICXXCustomAction_GICombiner7:{ |
| 1446 | APInt GIMatchData_matchinfo; |
| 1447 | // Match Patterns |
| 1448 | if(![&](){return Helper.matchCastOfInteger(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 1449 | return false; |
| 1450 | } |
| 1451 | // Apply Patterns |
| 1452 | Helper.replaceInstWithConstant(*State.MIs[0], GIMatchData_matchinfo); |
| 1453 | return true; |
| 1454 | } |
| 1455 | case GICXXCustomAction_GICombiner8:{ |
| 1456 | // Match Patterns |
| 1457 | if(![&](){return matchMutateAnyExtToZExt(*State.MIs[0], MRI);}()) { |
| 1458 | return false; |
| 1459 | } |
| 1460 | // Apply Patterns |
| 1461 | applyMutateAnyExtToZExt(*State.MIs[0], MRI, B, Observer); |
| 1462 | return true; |
| 1463 | } |
| 1464 | case GICXXCustomAction_GICombiner9:{ |
| 1465 | PreferredTuple GIMatchData_matchinfo; |
| 1466 | // Match Patterns |
| 1467 | if(![&](){return Helper.matchCombineExtendingLoads(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 1468 | return false; |
| 1469 | } |
| 1470 | // Apply Patterns |
| 1471 | Helper.applyCombineExtendingLoads(*State.MIs[0], GIMatchData_matchinfo); |
| 1472 | return true; |
| 1473 | } |
| 1474 | case GICXXCustomAction_GICombiner10:{ |
| 1475 | std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo; |
| 1476 | // Match Patterns |
| 1477 | if(![&](){return Helper.matchCombineLoadWithAndMask(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 1478 | return false; |
| 1479 | } |
| 1480 | // Apply Patterns |
| 1481 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo); |
| 1482 | return true; |
| 1483 | } |
| 1484 | case GICXXCustomAction_GICombiner11:{ |
| 1485 | IndexedLoadStoreMatchInfo GIMatchData_matchinfo; |
| 1486 | // Match Patterns |
| 1487 | if(![&](){return Helper.matchCombineIndexedLoadStore(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 1488 | return false; |
| 1489 | } |
| 1490 | // Apply Patterns |
| 1491 | Helper.applyCombineIndexedLoadStore(*State.MIs[0], GIMatchData_matchinfo); |
| 1492 | return true; |
| 1493 | } |
| 1494 | case GICXXCustomAction_GICombiner12:{ |
| 1495 | // Match Patterns |
| 1496 | if(![&](){return Helper.matchSextTruncSextLoad(*State.MIs[0]);}()) { |
| 1497 | return false; |
| 1498 | } |
| 1499 | // Apply Patterns |
| 1500 | Helper.applySextTruncSextLoad(*State.MIs[0]); |
| 1501 | return true; |
| 1502 | } |
| 1503 | case GICXXCustomAction_GICombiner13:{ |
| 1504 | InstructionStepsMatchInfo GIMatchData_info; |
| 1505 | // Match Patterns |
| 1506 | if(![&](){return Helper.matchHoistLogicOpWithSameOpcodeHands(*State.MIs[0], GIMatchData_info);}()) { |
| 1507 | return false; |
| 1508 | } |
| 1509 | // Apply Patterns |
| 1510 | Helper.applyBuildInstructionSteps(*State.MIs[0], GIMatchData_info); |
| 1511 | return true; |
| 1512 | } |
| 1513 | case GICXXCustomAction_GICombiner14:{ |
| 1514 | Register GIMatchData_matchinfo; |
| 1515 | // Match Patterns |
| 1516 | if(![&](){return Helper.matchRedundantAnd(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 1517 | return false; |
| 1518 | } |
| 1519 | // Apply Patterns |
| 1520 | Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo); |
| 1521 | return true; |
| 1522 | } |
| 1523 | case GICXXCustomAction_GICombiner15:{ |
| 1524 | std::pair<Register, Register> GIMatchData_matchinfo; |
| 1525 | // Match Patterns |
| 1526 | if(![&](){return Helper.matchXorOfAndWithSameReg(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 1527 | return false; |
| 1528 | } |
| 1529 | // Apply Patterns |
| 1530 | Helper.applyXorOfAndWithSameReg(*State.MIs[0], GIMatchData_matchinfo); |
| 1531 | return true; |
| 1532 | } |
| 1533 | case GICXXCustomAction_GICombiner16:{ |
| 1534 | std::tuple<unsigned, LLT, Register> GIMatchData_matchinfo; |
| 1535 | // Match Patterns |
| 1536 | if(![&](){return matchExtractVecEltPairwiseAdd(*State.MIs[0], MRI, GIMatchData_matchinfo);}()) { |
| 1537 | return false; |
| 1538 | } |
| 1539 | // Apply Patterns |
| 1540 | applyExtractVecEltPairwiseAdd(*State.MIs[0], MRI, B, GIMatchData_matchinfo); |
| 1541 | return true; |
| 1542 | } |
| 1543 | case GICXXCustomAction_GICombiner17:{ |
| 1544 | Register GIMatchData_matchinfo; |
| 1545 | // Match Patterns |
| 1546 | if(![&](){return Helper.matchRedundantOr(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 1547 | return false; |
| 1548 | } |
| 1549 | // Apply Patterns |
| 1550 | Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo); |
| 1551 | return true; |
| 1552 | } |
| 1553 | case GICXXCustomAction_GICombiner18:{ |
| 1554 | std::function<void(MachineIRBuilder&, Register)> GIMatchData_matchinfo; |
| 1555 | // Match Patterns |
| 1556 | if(![&](){return matchAArch64MulConstCombine(*State.MIs[0], MRI, GIMatchData_matchinfo);}()) { |
| 1557 | return false; |
| 1558 | } |
| 1559 | // Apply Patterns |
| 1560 | applyAArch64MulConstCombine(*State.MIs[0], MRI, B, GIMatchData_matchinfo); |
| 1561 | return true; |
| 1562 | } |
| 1563 | case GICXXCustomAction_GICombiner19:{ |
| 1564 | // Match Patterns |
| 1565 | if(![&](){return Helper.matchRedundantSExtInReg(*State.MIs[0]);}()) { |
| 1566 | return false; |
| 1567 | } |
| 1568 | // Apply Patterns |
| 1569 | Helper.replaceSingleDefInstWithOperand(*State.MIs[0], 1); |
| 1570 | return true; |
| 1571 | } |
| 1572 | case GICXXCustomAction_GICombiner20:{ |
| 1573 | std::function<void(MachineIRBuilder &)> GIMatchData_info; |
| 1574 | // Match Patterns |
| 1575 | if(![&](){return Helper.matchBitfieldExtractFromSExtInReg(*State.MIs[0], GIMatchData_info);}()) { |
| 1576 | return false; |
| 1577 | } |
| 1578 | // Apply Patterns |
| 1579 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_info); |
| 1580 | return true; |
| 1581 | } |
| 1582 | case GICXXCustomAction_GICombiner21:{ |
| 1583 | std::function<void(MachineIRBuilder &)> GIMatchData_info; |
| 1584 | // Match Patterns |
| 1585 | if(![&](){return Helper.matchBitfieldExtractFromAnd(*State.MIs[0], GIMatchData_info);}()) { |
| 1586 | return false; |
| 1587 | } |
| 1588 | // Apply Patterns |
| 1589 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_info); |
| 1590 | return true; |
| 1591 | } |
| 1592 | case GICXXCustomAction_GICombiner22:{ |
| 1593 | std::function<void(MachineIRBuilder &)> GIMatchData_info; |
| 1594 | // Match Patterns |
| 1595 | if(![&](){return Helper.matchBitfieldExtractFromShr(*State.MIs[0], GIMatchData_info);}()) { |
| 1596 | return false; |
| 1597 | } |
| 1598 | // Apply Patterns |
| 1599 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_info); |
| 1600 | return true; |
| 1601 | } |
| 1602 | case GICXXCustomAction_GICombiner23:{ |
| 1603 | std::function<void(MachineIRBuilder &)> GIMatchData_info; |
| 1604 | // Match Patterns |
| 1605 | if(![&](){return Helper.matchBitfieldExtractFromShrAnd(*State.MIs[0], GIMatchData_info);}()) { |
| 1606 | return false; |
| 1607 | } |
| 1608 | // Apply Patterns |
| 1609 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_info); |
| 1610 | return true; |
| 1611 | } |
| 1612 | case GICXXCustomAction_GICombiner24:{ |
| 1613 | // Match Patterns |
| 1614 | if(![&](){return Helper.matchRotateOutOfRange(*State.MIs[0]);}()) { |
| 1615 | return false; |
| 1616 | } |
| 1617 | // Apply Patterns |
| 1618 | Helper.applyRotateOutOfRange(*State.MIs[0]); |
| 1619 | return true; |
| 1620 | } |
| 1621 | case GICXXCustomAction_GICombiner25:{ |
| 1622 | int64_t GIMatchData_matchinfo; |
| 1623 | // Match Patterns |
| 1624 | if(![&](){return Helper.matchICmpToTrueFalseKnownBits(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 1625 | return false; |
| 1626 | } |
| 1627 | // Apply Patterns |
| 1628 | Helper.replaceInstWithConstant(*State.MIs[0], GIMatchData_matchinfo); |
| 1629 | return true; |
| 1630 | } |
| 1631 | case GICXXCustomAction_GICombiner26:{ |
| 1632 | std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo; |
| 1633 | // Match Patterns |
| 1634 | if(![&](){return Helper.matchAddOverflow(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 1635 | return false; |
| 1636 | } |
| 1637 | // Apply Patterns |
| 1638 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo); |
| 1639 | return true; |
| 1640 | } |
| 1641 | case GICXXCustomAction_GICombiner27:{ |
| 1642 | std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo; |
| 1643 | // Match Patterns |
| 1644 | if(![&](){return Helper.matchSuboCarryOut(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 1645 | return false; |
| 1646 | } |
| 1647 | // Apply Patterns |
| 1648 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo); |
| 1649 | return true; |
| 1650 | } |
| 1651 | case GICXXCustomAction_GICombiner28:{ |
| 1652 | unsigned GIMatchData_matchinfo; |
| 1653 | // Match Patterns |
| 1654 | if(![&](){return Helper.matchConstantSelectCmp(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 1655 | return false; |
| 1656 | } |
| 1657 | // Apply Patterns |
| 1658 | Helper.replaceSingleDefInstWithOperand(*State.MIs[0], GIMatchData_matchinfo); |
| 1659 | return true; |
| 1660 | } |
| 1661 | case GICXXCustomAction_GICombiner29:{ |
| 1662 | std::function<void(MachineIRBuilder &)> GIMatchData_info; |
| 1663 | // Match Patterns |
| 1664 | if(![&](){return Helper.matchSelectIMinMax(State.MIs[0]->getOperand(0), GIMatchData_info);}()) { |
| 1665 | return false; |
| 1666 | } |
| 1667 | // Apply Patterns |
| 1668 | Helper.applyBuildFnMO(State.MIs[0]->getOperand(0), GIMatchData_info); |
| 1669 | return true; |
| 1670 | } |
| 1671 | case GICXXCustomAction_GICombiner30:{ |
| 1672 | std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo; |
| 1673 | // Match Patterns |
| 1674 | if(![&](){return Helper.matchSelect(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 1675 | return false; |
| 1676 | } |
| 1677 | // Apply Patterns |
| 1678 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo); |
| 1679 | return true; |
| 1680 | } |
| 1681 | case GICXXCustomAction_GICombiner31:{ |
| 1682 | // Match Patterns |
| 1683 | if(![&](){return matchFoldMergeToZext(*State.MIs[0], MRI);}()) { |
| 1684 | return false; |
| 1685 | } |
| 1686 | // Apply Patterns |
| 1687 | applyFoldMergeToZext(*State.MIs[0], MRI, B, Observer); |
| 1688 | return true; |
| 1689 | } |
| 1690 | case GICXXCustomAction_GICombiner32:{ |
| 1691 | std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo; |
| 1692 | // Match Patterns |
| 1693 | if(![&](){return Helper.matchUnmergeValuesAnyExtBuildVector(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 1694 | return false; |
| 1695 | } |
| 1696 | // Apply Patterns |
| 1697 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo); |
| 1698 | return true; |
| 1699 | } |
| 1700 | case GICXXCustomAction_GICombiner33:{ |
| 1701 | SmallVector<Register> GIMatchData_info; |
| 1702 | // Match Patterns |
| 1703 | if(![&](){return Helper.matchCombineUnmergeMergeToPlainValues(*State.MIs[0], GIMatchData_info);}()) { |
| 1704 | return false; |
| 1705 | } |
| 1706 | // Apply Patterns |
| 1707 | Helper.applyCombineUnmergeMergeToPlainValues(*State.MIs[0], GIMatchData_info); |
| 1708 | return true; |
| 1709 | } |
| 1710 | case GICXXCustomAction_GICombiner34:{ |
| 1711 | Register GIMatchData_src; |
| 1712 | // Match Patterns |
| 1713 | if(![&](){// Check if first source comes from G_UNMERGE_VALUES. |
| 1714 | Register FirstMergeSrc = getRemainingOperands(*State.MIs[0], 1)[0].getReg(); |
| 1715 | MachineInstr *UnmergeMI = MRI.getVRegDef(FirstMergeSrc); |
| 1716 | if (!UnmergeMI || UnmergeMI->getOpcode() != TargetOpcode::G_UNMERGE_VALUES) |
| 1717 | return false; |
| 1718 | |
| 1719 | // Check counts match. |
| 1720 | unsigned NumMergeSrcs = getRemainingOperands(*State.MIs[0], 1).size(); |
| 1721 | unsigned NumUnmergeDefs = UnmergeMI->getNumDefs(); |
| 1722 | if (NumMergeSrcs != NumUnmergeDefs) |
| 1723 | return false; |
| 1724 | |
| 1725 | // Verify all merge sources match unmerge defs in order. |
| 1726 | for (unsigned I = 0; I < NumMergeSrcs; ++I) { |
| 1727 | Register MergeSrc = getRemainingOperands(*State.MIs[0], 1)[I].getReg(); |
| 1728 | Register UnmergeDef = UnmergeMI->getOperand(I).getReg(); |
| 1729 | |
| 1730 | if (MergeSrc != UnmergeDef) |
| 1731 | return false; |
| 1732 | |
| 1733 | if (!MRI.hasOneNonDBGUse(MergeSrc)) |
| 1734 | return false; |
| 1735 | } |
| 1736 | |
| 1737 | // Check size compatibility. |
| 1738 | GIMatchData_src = UnmergeMI->getOperand(NumUnmergeDefs).getReg(); |
| 1739 | LLT SrcTy = MRI.getType(GIMatchData_src); |
| 1740 | LLT DstTy = MRI.getType(State.MIs[0]->getOperand(0).getReg()); |
| 1741 | if (SrcTy.getSizeInBits() != DstTy.getSizeInBits()) |
| 1742 | return false; |
| 1743 | |
| 1744 | // Check bitcast legality. |
| 1745 | if (SrcTy != DstTy) { |
| 1746 | std::array<LLT, 2> Types = {{DstTy, SrcTy}}; |
| 1747 | LegalityQuery Query(TargetOpcode::G_BITCAST, Types); |
| 1748 | if (!Helper.isLegalOrBeforeLegalizer(Query)) |
| 1749 | return false; |
| 1750 | } |
| 1751 | |
| 1752 | return true;}()) { |
| 1753 | return false; |
| 1754 | } |
| 1755 | // Apply Patterns |
| 1756 | LLT SrcTy = MRI.getType(GIMatchData_src); |
| 1757 | LLT DstTy = MRI.getType(State.MIs[0]->getOperand(0).getReg()); |
| 1758 | |
| 1759 | Helper.getBuilder().setInstrAndDebugLoc(*State.MIs[0]); |
| 1760 | |
| 1761 | if (SrcTy == DstTy) { |
| 1762 | Helper.replaceRegWith(MRI, State.MIs[0]->getOperand(0).getReg(), GIMatchData_src); |
| 1763 | } else { |
| 1764 | Helper.getBuilder().buildBitcast(State.MIs[0]->getOperand(0).getReg(), GIMatchData_src); |
| 1765 | } |
| 1766 | |
| 1767 | State.MIs[0]->eraseFromParent(); |
| 1768 | return true; |
| 1769 | } |
| 1770 | case GICXXCustomAction_GICombiner35:{ |
| 1771 | SmallVector<APInt, 8> GIMatchData_info; |
| 1772 | // Match Patterns |
| 1773 | if(![&](){return Helper.matchCombineUnmergeConstant(*State.MIs[0], GIMatchData_info);}()) { |
| 1774 | return false; |
| 1775 | } |
| 1776 | // Apply Patterns |
| 1777 | Helper.applyCombineUnmergeConstant(*State.MIs[0], GIMatchData_info); |
| 1778 | return true; |
| 1779 | } |
| 1780 | case GICXXCustomAction_GICombiner36:{ |
| 1781 | std::function<void(MachineIRBuilder &)> GIMatchData_info; |
| 1782 | // Match Patterns |
| 1783 | if(![&](){return Helper.matchCombineUnmergeUndef(*State.MIs[0], GIMatchData_info);}()) { |
| 1784 | return false; |
| 1785 | } |
| 1786 | // Apply Patterns |
| 1787 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_info); |
| 1788 | return true; |
| 1789 | } |
| 1790 | case GICXXCustomAction_GICombiner37:{ |
| 1791 | // Match Patterns |
| 1792 | if(![&](){return Helper.matchCombineUnmergeWithDeadLanesToTrunc(*State.MIs[0]);}()) { |
| 1793 | return false; |
| 1794 | } |
| 1795 | // Apply Patterns |
| 1796 | Helper.applyCombineUnmergeWithDeadLanesToTrunc(*State.MIs[0]); |
| 1797 | return true; |
| 1798 | } |
| 1799 | case GICXXCustomAction_GICombiner38:{ |
| 1800 | // Match Patterns |
| 1801 | if(![&](){return Helper.matchCombineUnmergeZExtToZExt(*State.MIs[0]);}()) { |
| 1802 | return false; |
| 1803 | } |
| 1804 | // Apply Patterns |
| 1805 | Helper.applyCombineUnmergeZExtToZExt(*State.MIs[0]); |
| 1806 | return true; |
| 1807 | } |
| 1808 | case GICXXCustomAction_GICombiner39:{ |
| 1809 | std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo; |
| 1810 | // Match Patterns |
| 1811 | if(![&](){return Helper.matchMergeXAndUndef(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 1812 | return false; |
| 1813 | } |
| 1814 | // Apply Patterns |
| 1815 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo); |
| 1816 | return true; |
| 1817 | } |
| 1818 | case GICXXCustomAction_GICombiner40:{ |
| 1819 | std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo; |
| 1820 | // Match Patterns |
| 1821 | if(![&](){return Helper.matchMergeXAndZero(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 1822 | return false; |
| 1823 | } |
| 1824 | // Apply Patterns |
| 1825 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo); |
| 1826 | return true; |
| 1827 | } |
| 1828 | case GICXXCustomAction_GICombiner41:{ |
| 1829 | Register GIMatchData_unmergeSrc; |
| 1830 | // Match Patterns |
| 1831 | if(![&](){return Helper.matchCombineBuildUnmerge(*State.MIs[0], MRI, GIMatchData_unmergeSrc);}()) { |
| 1832 | return false; |
| 1833 | } |
| 1834 | // Apply Patterns |
| 1835 | Helper.applyCombineBuildUnmerge(*State.MIs[0], MRI, B, GIMatchData_unmergeSrc); |
| 1836 | return true; |
| 1837 | } |
| 1838 | case GICXXCustomAction_GICombiner42:{ |
| 1839 | APInt GIMatchData_matchinfo; |
| 1840 | // Match Patterns |
| 1841 | if(![&](){return Helper.matchConstantFoldBinOp(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 1842 | return false; |
| 1843 | } |
| 1844 | // Apply Patterns |
| 1845 | Helper.replaceInstWithConstant(*State.MIs[0], GIMatchData_matchinfo); |
| 1846 | return true; |
| 1847 | } |
| 1848 | case GICXXCustomAction_GICombiner43:{ |
| 1849 | ConstantFP* GIMatchData_matchinfo; |
| 1850 | // Match Patterns |
| 1851 | if(![&](){return Helper.matchConstantFoldFPBinOp(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 1852 | return false; |
| 1853 | } |
| 1854 | // Apply Patterns |
| 1855 | Helper.replaceInstWithFConstant(*State.MIs[0], GIMatchData_matchinfo); |
| 1856 | return true; |
| 1857 | } |
| 1858 | case GICXXCustomAction_GICombiner44:{ |
| 1859 | // Match Patterns |
| 1860 | if(![&](){return Helper.matchSelectSameVal(*State.MIs[0]);}()) { |
| 1861 | return false; |
| 1862 | } |
| 1863 | // Apply Patterns |
| 1864 | Helper.replaceSingleDefInstWithOperand(*State.MIs[0], 2); |
| 1865 | return true; |
| 1866 | } |
| 1867 | case GICXXCustomAction_GICombiner45:{ |
| 1868 | Register GIMatchData_info; |
| 1869 | // Match Patterns |
| 1870 | if(![&](){return Helper.matchCombineI2PToP2I(*State.MIs[0], GIMatchData_info);}()) { |
| 1871 | return false; |
| 1872 | } |
| 1873 | // Apply Patterns |
| 1874 | Helper.applyCombineI2PToP2I(*State.MIs[0], GIMatchData_info); |
| 1875 | return true; |
| 1876 | } |
| 1877 | case GICXXCustomAction_GICombiner46:{ |
| 1878 | Register GIMatchData_info; |
| 1879 | // Match Patterns |
| 1880 | if(![&](){GIMatchData_info = State.MIs[1]->getOperand(1).getReg(); return true;}()) { |
| 1881 | return false; |
| 1882 | } |
| 1883 | // Apply Patterns |
| 1884 | Helper.applyCombineP2IToI2P(*State.MIs[0], GIMatchData_info); |
| 1885 | return true; |
| 1886 | } |
| 1887 | case GICXXCustomAction_GICombiner47:{ |
| 1888 | Register GIMatchData_matchinfo; |
| 1889 | // Match Patterns |
| 1890 | if(![&](){return Helper.matchCombineAnyExtTrunc(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 1891 | return false; |
| 1892 | } |
| 1893 | // Apply Patterns |
| 1894 | Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo); |
| 1895 | return true; |
| 1896 | } |
| 1897 | case GICXXCustomAction_GICombiner48:{ |
| 1898 | Register GIMatchData_matchinfo; |
| 1899 | // Match Patterns |
| 1900 | if(![&](){return Helper.matchBuildVectorIdentityFold(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 1901 | return false; |
| 1902 | } |
| 1903 | // Apply Patterns |
| 1904 | Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo); |
| 1905 | return true; |
| 1906 | } |
| 1907 | case GICXXCustomAction_GICombiner49:{ |
| 1908 | Register GIMatchData_matchinfo; |
| 1909 | // Match Patterns |
| 1910 | if(![&](){return Helper.matchTruncBuildVectorFold(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 1911 | return false; |
| 1912 | } |
| 1913 | // Apply Patterns |
| 1914 | Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo); |
| 1915 | return true; |
| 1916 | } |
| 1917 | case GICXXCustomAction_GICombiner50:{ |
| 1918 | Register GIMatchData_matchinfo; |
| 1919 | // Match Patterns |
| 1920 | if(![&](){return Helper.matchTruncLshrBuildVectorFold(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 1921 | return false; |
| 1922 | } |
| 1923 | // Apply Patterns |
| 1924 | Helper.replaceSingleDefInstWithReg(*State.MIs[0], GIMatchData_matchinfo); |
| 1925 | return true; |
| 1926 | } |
| 1927 | case GICXXCustomAction_GICombiner51:{ |
| 1928 | // Match Patterns |
| 1929 | if(![&](){return MRI.getType(State.MIs[1]->getOperand(1).getReg()) == MRI.getType(State.MIs[0]->getOperand(0).getReg());}()) { |
| 1930 | return false; |
| 1931 | } |
| 1932 | // Apply Patterns |
| 1933 | Helper.replaceSingleDefInstWithReg(*State.MIs[0], State.MIs[1]->getOperand(1).getReg()); |
| 1934 | return true; |
| 1935 | } |
| 1936 | case GICXXCustomAction_GICombiner52:{ |
| 1937 | PtrAddChain GIMatchData_matchinfo; |
| 1938 | // Match Patterns |
| 1939 | if(![&](){return Helper.matchPtrAddImmedChain(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 1940 | return false; |
| 1941 | } |
| 1942 | // Apply Patterns |
| 1943 | Helper.applyPtrAddImmedChain(*State.MIs[0], GIMatchData_matchinfo); |
| 1944 | return true; |
| 1945 | } |
| 1946 | case GICXXCustomAction_GICombiner53:{ |
| 1947 | std::function<void(MachineIRBuilder &)> GIMatchData_info; |
| 1948 | // Match Patterns |
| 1949 | if(![&](){return Helper.matchOverlappingAnd(*State.MIs[0], GIMatchData_info);}()) { |
| 1950 | return false; |
| 1951 | } |
| 1952 | // Apply Patterns |
| 1953 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_info); |
| 1954 | return true; |
| 1955 | } |
| 1956 | case GICXXCustomAction_GICombiner54:{ |
| 1957 | // Match Patterns |
| 1958 | if(![&](){return matchSplitStoreZero128(*State.MIs[0], MRI);}()) { |
| 1959 | return false; |
| 1960 | } |
| 1961 | // Apply Patterns |
| 1962 | applySplitStoreZero128(*State.MIs[0], MRI, B, Observer); |
| 1963 | return true; |
| 1964 | } |
| 1965 | case GICXXCustomAction_GICombiner55:{ |
| 1966 | // Match Patterns |
| 1967 | if(![&](){return Helper.matchAnyExplicitUseIsUndef(*State.MIs[0]);}()) { |
| 1968 | return false; |
| 1969 | } |
| 1970 | // Apply Patterns |
| 1971 | Helper.replaceInstWithFConstant(*State.MIs[0], 0.0); |
| 1972 | return true; |
| 1973 | } |
| 1974 | case GICXXCustomAction_GICombiner56:{ |
| 1975 | // Match Patterns |
| 1976 | if(![&](){return Helper.matchAnyExplicitUseIsUndef(*State.MIs[0]);}()) { |
| 1977 | return false; |
| 1978 | } |
| 1979 | // Apply Patterns |
| 1980 | Helper.replaceInstWithConstant(*State.MIs[0], 0); |
| 1981 | return true; |
| 1982 | } |
| 1983 | case GICXXCustomAction_GICombiner57:{ |
| 1984 | // Match Patterns |
| 1985 | if(![&](){return Helper.matchAnyExplicitUseIsUndef(*State.MIs[0]);}()) { |
| 1986 | return false; |
| 1987 | } |
| 1988 | // Apply Patterns |
| 1989 | Helper.replaceInstWithConstant(*State.MIs[0], -1); |
| 1990 | return true; |
| 1991 | } |
| 1992 | case GICXXCustomAction_GICombiner58:{ |
| 1993 | // Match Patterns |
| 1994 | if(![&](){return Helper.matchOperandIsUndef(*State.MIs[0], 1);}()) { |
| 1995 | return false; |
| 1996 | } |
| 1997 | // Apply Patterns |
| 1998 | Helper.replaceInstWithConstant(*State.MIs[0], 0); |
| 1999 | return true; |
| 2000 | } |
| 2001 | case GICXXCustomAction_GICombiner59:{ |
| 2002 | // Match Patterns |
| 2003 | if(![&](){return Helper.matchOperandIsUndef(*State.MIs[0], 2);}()) { |
| 2004 | return false; |
| 2005 | } |
| 2006 | // Apply Patterns |
| 2007 | Helper.replaceInstWithUndef(*State.MIs[0]); |
| 2008 | return true; |
| 2009 | } |
| 2010 | case GICXXCustomAction_GICombiner60:{ |
| 2011 | // Apply Patterns |
| 2012 | Helper.replaceInstWithUndef(*State.MIs[0]->getOperand(0).getParent()); |
| 2013 | return true; |
| 2014 | } |
| 2015 | case GICXXCustomAction_GICombiner61:{ |
| 2016 | // Match Patterns |
| 2017 | if(![&](){return Helper.matchAnyExplicitUseIsUndef(*State.MIs[0]);}()) { |
| 2018 | return false; |
| 2019 | } |
| 2020 | // Apply Patterns |
| 2021 | Helper.replaceInstWithUndef(*State.MIs[0]); |
| 2022 | return true; |
| 2023 | } |
| 2024 | case GICXXCustomAction_GICombiner62:{ |
| 2025 | // Match Patterns |
| 2026 | if(![&](){return Helper.matchAllExplicitUsesAreUndef(*State.MIs[0]);}()) { |
| 2027 | return false; |
| 2028 | } |
| 2029 | // Apply Patterns |
| 2030 | Helper.replaceInstWithUndef(*State.MIs[0]); |
| 2031 | return true; |
| 2032 | } |
| 2033 | case GICXXCustomAction_GICombiner63:{ |
| 2034 | // Match Patterns |
| 2035 | if(![&](){return Helper.matchUndefShuffleVectorMask(*State.MIs[0]);}()) { |
| 2036 | return false; |
| 2037 | } |
| 2038 | // Apply Patterns |
| 2039 | Helper.replaceInstWithUndef(*State.MIs[0]); |
| 2040 | return true; |
| 2041 | } |
| 2042 | case GICXXCustomAction_GICombiner64:{ |
| 2043 | // Match Patterns |
| 2044 | if(![&](){return Helper.matchUndefStore(*State.MIs[0]);}()) { |
| 2045 | return false; |
| 2046 | } |
| 2047 | // Apply Patterns |
| 2048 | Helper.eraseInst(*State.MIs[0]); |
| 2049 | return true; |
| 2050 | } |
| 2051 | case GICXXCustomAction_GICombiner65:{ |
| 2052 | // Match Patterns |
| 2053 | if(![&](){return Helper.matchInsertExtractVecEltOutOfBounds(*State.MIs[0]);}()) { |
| 2054 | return false; |
| 2055 | } |
| 2056 | // Apply Patterns |
| 2057 | Helper.replaceInstWithUndef(*State.MIs[0]); |
| 2058 | return true; |
| 2059 | } |
| 2060 | case GICXXCustomAction_GICombiner66:{ |
| 2061 | std::function<void(MachineIRBuilder &)> GIMatchData_info; |
| 2062 | // Match Patterns |
| 2063 | if(![&](){return Helper.matchSimplifySelectToMinMax(*State.MIs[0], GIMatchData_info);}()) { |
| 2064 | return false; |
| 2065 | } |
| 2066 | // Apply Patterns |
| 2067 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_info); |
| 2068 | return true; |
| 2069 | } |
| 2070 | case GICXXCustomAction_GICombiner67:{ |
| 2071 | std::tuple<Register, Register, Register> GIMatchData_matchinfo; |
| 2072 | // Match Patterns |
| 2073 | if(![&](){return matchOrToBSP(*State.MIs[0], MRI, GIMatchData_matchinfo);}()) { |
| 2074 | return false; |
| 2075 | } |
| 2076 | // Apply Patterns |
| 2077 | applyOrToBSP(*State.MIs[0], MRI, B, GIMatchData_matchinfo); |
| 2078 | return true; |
| 2079 | } |
| 2080 | case GICXXCustomAction_GICombiner68:{ |
| 2081 | SmallVector<Register> GIMatchData_matchinfo; |
| 2082 | // Match Patterns |
| 2083 | if(![&](){return Helper.matchCombineConcatVectors(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 2084 | return false; |
| 2085 | } |
| 2086 | // Apply Patterns |
| 2087 | Helper.applyCombineConcatVectors(*State.MIs[0], GIMatchData_matchinfo); |
| 2088 | return true; |
| 2089 | } |
| 2090 | case GICXXCustomAction_GICombiner69:{ |
| 2091 | SmallVector<Register> GIMatchData_matchinfo; |
| 2092 | // Match Patterns |
| 2093 | if(![&](){return Helper.matchCombineBuildVectorOfBitcast(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 2094 | return false; |
| 2095 | } |
| 2096 | // Apply Patterns |
| 2097 | Helper.applyCombineBuildVectorOfBitcast(*State.MIs[0], GIMatchData_matchinfo); |
| 2098 | return true; |
| 2099 | } |
| 2100 | case GICXXCustomAction_GICombiner70:{ |
| 2101 | // Match Patterns |
| 2102 | if(![&](){return Helper.matchCommuteConstantToRHS(*State.MIs[0]);}()) { |
| 2103 | return false; |
| 2104 | } |
| 2105 | // Apply Patterns |
| 2106 | Helper.applyCommuteBinOpOperands(*State.MIs[0]); |
| 2107 | return true; |
| 2108 | } |
| 2109 | case GICXXCustomAction_GICombiner71:{ |
| 2110 | // Match Patterns |
| 2111 | if(![&](){return Helper.matchCommuteFPConstantToRHS(*State.MIs[0]);}()) { |
| 2112 | return false; |
| 2113 | } |
| 2114 | // Apply Patterns |
| 2115 | Helper.applyCommuteBinOpOperands(*State.MIs[0]); |
| 2116 | return true; |
| 2117 | } |
| 2118 | case GICXXCustomAction_GICombiner72:{ |
| 2119 | Register GIMatchData_matchinfo; |
| 2120 | // Match Patterns |
| 2121 | if(![&](){return Helper.matchExtractVecEltBuildVec(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 2122 | return false; |
| 2123 | } |
| 2124 | // Apply Patterns |
| 2125 | Helper.applyExtractVecEltBuildVec(*State.MIs[0], GIMatchData_matchinfo); |
| 2126 | return true; |
| 2127 | } |
| 2128 | case GICXXCustomAction_GICombiner73:{ |
| 2129 | SmallVector<std::pair<Register, MachineInstr*>> GIMatchData_matchinfo; |
| 2130 | // Match Patterns |
| 2131 | if(![&](){return Helper.matchExtractAllEltsFromBuildVector(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 2132 | return false; |
| 2133 | } |
| 2134 | // Apply Patterns |
| 2135 | Helper.applyExtractAllEltsFromBuildVector(*State.MIs[0], GIMatchData_matchinfo); |
| 2136 | return true; |
| 2137 | } |
| 2138 | case GICXXCustomAction_GICombiner74:{ |
| 2139 | std::function<void(MachineIRBuilder &)> GIMatchData_matchinfo; |
| 2140 | // Match Patterns |
| 2141 | if(![&](){return !isGuaranteedNotToBePoison(State.MIs[0]->getOperand(1).getReg(), MRI) && Helper.matchFreezeOfSingleMaybePoisonOperand(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 2142 | return false; |
| 2143 | } |
| 2144 | // Apply Patterns |
| 2145 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_matchinfo); |
| 2146 | return true; |
| 2147 | } |
| 2148 | case GICXXCustomAction_GICombiner75:{ |
| 2149 | Register GIMatchData_matchinfo; |
| 2150 | // Match Patterns |
| 2151 | if(![&](){return matchCombineMulCMLT(*State.MIs[0], MRI, GIMatchData_matchinfo);}()) { |
| 2152 | return false; |
| 2153 | } |
| 2154 | // Apply Patterns |
| 2155 | applyCombineMulCMLT(*State.MIs[0], MRI, B, GIMatchData_matchinfo); |
| 2156 | return true; |
| 2157 | } |
| 2158 | case GICXXCustomAction_GICombiner76:{ |
| 2159 | Register GIMatchData_matchinfo; |
| 2160 | // Match Patterns |
| 2161 | if(![&](){return Helper.matchUseVectorTruncate(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 2162 | return false; |
| 2163 | } |
| 2164 | // Apply Patterns |
| 2165 | Helper.applyUseVectorTruncate(*State.MIs[0], GIMatchData_matchinfo); |
| 2166 | return true; |
| 2167 | } |
| 2168 | case GICXXCustomAction_GICombiner77:{ |
| 2169 | std::tuple<bool, Register, Register> GIMatchData_matchinfo; |
| 2170 | // Match Patterns |
| 2171 | if(![&](){return matchExtMulToMULL(*State.MIs[0], MRI, VT, GIMatchData_matchinfo);}()) { |
| 2172 | return false; |
| 2173 | } |
| 2174 | // Apply Patterns |
| 2175 | applyExtMulToMULL(*State.MIs[0], MRI, B, Observer, GIMatchData_matchinfo); |
| 2176 | return true; |
| 2177 | } |
| 2178 | case GICXXCustomAction_GICombiner78:{ |
| 2179 | // Match Patterns |
| 2180 | if(![&](){return matchSubAddMulReassoc(State.MIs[1]->getOperand(1).getReg(), State.MIs[1]->getOperand(2).getReg(), |
| 2181 | State.MIs[0]->getOperand(2).getReg(), State.MIs[0]->getOperand(1).getReg(), MRI);}()) { |
| 2182 | return false; |
| 2183 | } |
| 2184 | // Apply Patterns |
| 2185 | applySubAddMulReassoc(*State.MIs[0], *State.MIs[1], MRI, B, Observer); |
| 2186 | return true; |
| 2187 | } |
| 2188 | case GICXXCustomAction_GICombiner79:{ |
| 2189 | Register GIMatchData_matchinfo; |
| 2190 | // Match Patterns |
| 2191 | if(![&](){return Helper.matchTruncSSatS(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 2192 | return false; |
| 2193 | } |
| 2194 | // Apply Patterns |
| 2195 | Helper.applyTruncSSatS(*State.MIs[0], GIMatchData_matchinfo); |
| 2196 | return true; |
| 2197 | } |
| 2198 | case GICXXCustomAction_GICombiner80:{ |
| 2199 | Register GIMatchData_matchinfo; |
| 2200 | // Match Patterns |
| 2201 | if(![&](){return Helper.matchTruncSSatU(*State.MIs[0], GIMatchData_matchinfo);}()) { |
| 2202 | return false; |
| 2203 | } |
| 2204 | // Apply Patterns |
| 2205 | Helper.applyTruncSSatU(*State.MIs[0], GIMatchData_matchinfo); |
| 2206 | return true; |
| 2207 | } |
| 2208 | case GICXXCustomAction_GICombiner81:{ |
| 2209 | LshrOfTruncOfLshr GIMatchData_matchinfo; |
| 2210 | // Match Patterns |
| 2211 | if(![&](){return Helper.matchLshrOfTruncOfLshr(*State.MIs[0], GIMatchData_matchinfo, *State.MIs[2]);}()) { |
| 2212 | return false; |
| 2213 | } |
| 2214 | // Apply Patterns |
| 2215 | Helper.applyLshrOfTruncOfLshr(*State.MIs[0], GIMatchData_matchinfo); |
| 2216 | return true; |
| 2217 | } |
| 2218 | case GICXXCustomAction_GICombiner82:{ |
| 2219 | std::function<void(MachineIRBuilder &)> GIMatchData_info; |
| 2220 | // Match Patterns |
| 2221 | if(![&](){return Helper.matchOrShiftToFunnelShift(*State.MIs[0], true, GIMatchData_info);}()) { |
| 2222 | return false; |
| 2223 | } |
| 2224 | // Apply Patterns |
| 2225 | Helper.applyBuildFn(*State.MIs[0], GIMatchData_info); |
| 2226 | return true; |
| 2227 | } |
| 2228 | } |
| 2229 | llvm_unreachable("Unknown Apply Action" ); |
| 2230 | } |
| 2231 | #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ |
| 2232 | #define GIMT_Encode2(Val) uint8_t(Val), uint8_t((Val) >> 8) |
| 2233 | #define GIMT_Encode4(Val) uint8_t(Val), uint8_t((Val) >> 8), uint8_t((Val) >> 16), uint8_t((Val) >> 24) |
| 2234 | #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) |
| 2235 | #else |
| 2236 | #define GIMT_Encode2(Val) uint8_t((Val) >> 8), uint8_t(Val) |
| 2237 | #define GIMT_Encode4(Val) uint8_t((Val) >> 24), uint8_t((Val) >> 16), uint8_t((Val) >> 8), uint8_t(Val) |
| 2238 | #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) |
| 2239 | #endif |
| 2240 | const uint8_t *AArch64PostLegalizerCombinerImpl::getMatchTable() const { |
| 2241 | constexpr static uint8_t MatchTable0[] = { |
| 2242 | /* 0 */ GIM_SwitchOpcode, /*MI*/0, /*[*/GIMT_Encode2(20), GIMT_Encode2(285), /*)*//*default:*//*Label 91*/ GIMT_Encode4(4942), |
| 2243 | /* 10 */ /*TargetOpcode::COPY*//*Label 0*/ GIMT_Encode4(1070), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), |
| 2244 | /* 150 */ /*TargetOpcode::G_ADD*//*Label 1*/ GIMT_Encode4(1082), |
| 2245 | /* 154 */ /*TargetOpcode::G_SUB*//*Label 2*/ GIMT_Encode4(1207), |
| 2246 | /* 158 */ /*TargetOpcode::G_MUL*//*Label 3*/ GIMT_Encode4(1313), |
| 2247 | /* 162 */ /*TargetOpcode::G_SDIV*//*Label 4*/ GIMT_Encode4(1466), |
| 2248 | /* 166 */ /*TargetOpcode::G_UDIV*//*Label 5*/ GIMT_Encode4(1518), |
| 2249 | /* 170 */ /*TargetOpcode::G_SREM*//*Label 6*/ GIMT_Encode4(1581), |
| 2250 | /* 174 */ /*TargetOpcode::G_UREM*//*Label 7*/ GIMT_Encode4(1633), GIMT_Encode4(0), GIMT_Encode4(0), |
| 2251 | /* 186 */ /*TargetOpcode::G_AND*//*Label 8*/ GIMT_Encode4(1696), |
| 2252 | /* 190 */ /*TargetOpcode::G_OR*//*Label 9*/ GIMT_Encode4(1835), |
| 2253 | /* 194 */ /*TargetOpcode::G_XOR*//*Label 10*/ GIMT_Encode4(1960), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), |
| 2254 | /* 250 */ /*TargetOpcode::G_UNMERGE_VALUES*//*Label 11*/ GIMT_Encode4(2078), GIMT_Encode4(0), |
| 2255 | /* 258 */ /*TargetOpcode::G_MERGE_VALUES*//*Label 12*/ GIMT_Encode4(2145), |
| 2256 | /* 262 */ /*TargetOpcode::G_BUILD_VECTOR*//*Label 13*/ GIMT_Encode4(2233), |
| 2257 | /* 266 */ /*TargetOpcode::G_BUILD_VECTOR_TRUNC*//*Label 14*/ GIMT_Encode4(2309), |
| 2258 | /* 270 */ /*TargetOpcode::G_CONCAT_VECTORS*//*Label 15*/ GIMT_Encode4(2321), |
| 2259 | /* 274 */ /*TargetOpcode::G_PTRTOINT*//*Label 16*/ GIMT_Encode4(2333), |
| 2260 | /* 278 */ /*TargetOpcode::G_INTTOPTR*//*Label 17*/ GIMT_Encode4(2376), |
| 2261 | /* 282 */ /*TargetOpcode::G_BITCAST*//*Label 18*/ GIMT_Encode4(2409), |
| 2262 | /* 286 */ /*TargetOpcode::G_FREEZE*//*Label 19*/ GIMT_Encode4(2484), GIMT_Encode4(0), GIMT_Encode4(0), |
| 2263 | /* 298 */ /*TargetOpcode::G_INTRINSIC_TRUNC*//*Label 20*/ GIMT_Encode4(2496), |
| 2264 | /* 302 */ /*TargetOpcode::G_INTRINSIC_ROUND*//*Label 21*/ GIMT_Encode4(2518), GIMT_Encode4(0), GIMT_Encode4(0), |
| 2265 | /* 314 */ /*TargetOpcode::G_INTRINSIC_ROUNDEVEN*//*Label 22*/ GIMT_Encode4(2540), GIMT_Encode4(0), GIMT_Encode4(0), |
| 2266 | /* 326 */ /*TargetOpcode::G_LOAD*//*Label 23*/ GIMT_Encode4(2562), |
| 2267 | /* 330 */ /*TargetOpcode::G_SEXTLOAD*//*Label 24*/ GIMT_Encode4(2585), |
| 2268 | /* 334 */ /*TargetOpcode::G_ZEXTLOAD*//*Label 25*/ GIMT_Encode4(2608), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), |
| 2269 | /* 354 */ /*TargetOpcode::G_STORE*//*Label 26*/ GIMT_Encode4(2631), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), |
| 2270 | /* 502 */ /*TargetOpcode::G_ANYEXT*//*Label 27*/ GIMT_Encode4(2665), |
| 2271 | /* 506 */ /*TargetOpcode::G_TRUNC*//*Label 28*/ GIMT_Encode4(2772), GIMT_Encode4(0), GIMT_Encode4(0), |
| 2272 | /* 518 */ /*TargetOpcode::G_TRUNC_USAT_U*//*Label 29*/ GIMT_Encode4(2978), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), |
| 2273 | /* 538 */ /*TargetOpcode::G_SEXT*//*Label 30*/ GIMT_Encode4(3011), |
| 2274 | /* 542 */ /*TargetOpcode::G_SEXT_INREG*//*Label 31*/ GIMT_Encode4(3054), |
| 2275 | /* 546 */ /*TargetOpcode::G_ZEXT*//*Label 32*/ GIMT_Encode4(3109), |
| 2276 | /* 550 */ /*TargetOpcode::G_SHL*//*Label 33*/ GIMT_Encode4(3152), |
| 2277 | /* 554 */ /*TargetOpcode::G_LSHR*//*Label 34*/ GIMT_Encode4(3249), |
| 2278 | /* 558 */ /*TargetOpcode::G_ASHR*//*Label 35*/ GIMT_Encode4(3386), GIMT_Encode4(0), GIMT_Encode4(0), |
| 2279 | /* 570 */ /*TargetOpcode::G_ROTR*//*Label 36*/ GIMT_Encode4(3494), |
| 2280 | /* 574 */ /*TargetOpcode::G_ROTL*//*Label 37*/ GIMT_Encode4(3529), |
| 2281 | /* 578 */ /*TargetOpcode::G_ICMP*//*Label 38*/ GIMT_Encode4(3564), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), |
| 2282 | /* 594 */ /*TargetOpcode::G_SELECT*//*Label 39*/ GIMT_Encode4(3576), |
| 2283 | /* 598 */ /*TargetOpcode::G_UADDO*//*Label 40*/ GIMT_Encode4(3836), GIMT_Encode4(0), |
| 2284 | /* 606 */ /*TargetOpcode::G_USUBO*//*Label 41*/ GIMT_Encode4(3859), GIMT_Encode4(0), |
| 2285 | /* 614 */ /*TargetOpcode::G_SADDO*//*Label 42*/ GIMT_Encode4(3871), GIMT_Encode4(0), |
| 2286 | /* 622 */ /*TargetOpcode::G_SSUBO*//*Label 43*/ GIMT_Encode4(3894), GIMT_Encode4(0), |
| 2287 | /* 630 */ /*TargetOpcode::G_UMULO*//*Label 44*/ GIMT_Encode4(3906), |
| 2288 | /* 634 */ /*TargetOpcode::G_SMULO*//*Label 45*/ GIMT_Encode4(3918), |
| 2289 | /* 638 */ /*TargetOpcode::G_UMULH*//*Label 46*/ GIMT_Encode4(3930), |
| 2290 | /* 642 */ /*TargetOpcode::G_SMULH*//*Label 47*/ GIMT_Encode4(3942), |
| 2291 | /* 646 */ /*TargetOpcode::G_UADDSAT*//*Label 48*/ GIMT_Encode4(3954), |
| 2292 | /* 650 */ /*TargetOpcode::G_SADDSAT*//*Label 49*/ GIMT_Encode4(3966), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), |
| 2293 | /* 670 */ /*TargetOpcode::G_SMULFIX*//*Label 50*/ GIMT_Encode4(3978), |
| 2294 | /* 674 */ /*TargetOpcode::G_UMULFIX*//*Label 51*/ GIMT_Encode4(3990), |
| 2295 | /* 678 */ /*TargetOpcode::G_SMULFIXSAT*//*Label 52*/ GIMT_Encode4(4002), |
| 2296 | /* 682 */ /*TargetOpcode::G_UMULFIXSAT*//*Label 53*/ GIMT_Encode4(4014), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), |
| 2297 | /* 702 */ /*TargetOpcode::G_FADD*//*Label 54*/ GIMT_Encode4(4026), |
| 2298 | /* 706 */ /*TargetOpcode::G_FSUB*//*Label 55*/ GIMT_Encode4(4101), |
| 2299 | /* 710 */ /*TargetOpcode::G_FMUL*//*Label 56*/ GIMT_Encode4(4113), GIMT_Encode4(0), GIMT_Encode4(0), |
| 2300 | /* 722 */ /*TargetOpcode::G_FDIV*//*Label 57*/ GIMT_Encode4(4179), |
| 2301 | /* 726 */ /*TargetOpcode::G_FREM*//*Label 58*/ GIMT_Encode4(4191), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), |
| 2302 | /* 758 */ /*TargetOpcode::G_FLOG2*//*Label 59*/ GIMT_Encode4(4203), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), |
| 2303 | /* 774 */ /*TargetOpcode::G_FNEG*//*Label 60*/ GIMT_Encode4(4225), |
| 2304 | /* 778 */ /*TargetOpcode::G_FPEXT*//*Label 61*/ GIMT_Encode4(4276), |
| 2305 | /* 782 */ /*TargetOpcode::G_FPTRUNC*//*Label 62*/ GIMT_Encode4(4298), |
| 2306 | /* 786 */ /*TargetOpcode::G_FPTOSI*//*Label 63*/ GIMT_Encode4(4341), |
| 2307 | /* 790 */ /*TargetOpcode::G_FPTOUI*//*Label 64*/ GIMT_Encode4(4363), |
| 2308 | /* 794 */ /*TargetOpcode::G_SITOFP*//*Label 65*/ GIMT_Encode4(4385), |
| 2309 | /* 798 */ /*TargetOpcode::G_UITOFP*//*Label 66*/ GIMT_Encode4(4412), GIMT_Encode4(0), GIMT_Encode4(0), |
| 2310 | /* 810 */ /*TargetOpcode::G_FABS*//*Label 67*/ GIMT_Encode4(4439), |
| 2311 | /* 814 */ /*TargetOpcode::G_FCOPYSIGN*//*Label 68*/ GIMT_Encode4(4461), GIMT_Encode4(0), GIMT_Encode4(0), |
| 2312 | /* 826 */ /*TargetOpcode::G_FMINNUM*//*Label 69*/ GIMT_Encode4(4473), |
| 2313 | /* 830 */ /*TargetOpcode::G_FMAXNUM*//*Label 70*/ GIMT_Encode4(4496), |
| 2314 | /* 834 */ /*TargetOpcode::G_FMINNUM_IEEE*//*Label 71*/ GIMT_Encode4(4519), |
| 2315 | /* 838 */ /*TargetOpcode::G_FMAXNUM_IEEE*//*Label 72*/ GIMT_Encode4(4531), |
| 2316 | /* 842 */ /*TargetOpcode::G_FMINIMUM*//*Label 73*/ GIMT_Encode4(4543), |
| 2317 | /* 846 */ /*TargetOpcode::G_FMAXIMUM*//*Label 74*/ GIMT_Encode4(4566), |
| 2318 | /* 850 */ /*TargetOpcode::G_FMINIMUMNUM*//*Label 75*/ GIMT_Encode4(4589), |
| 2319 | /* 854 */ /*TargetOpcode::G_FMAXIMUMNUM*//*Label 76*/ GIMT_Encode4(4601), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), |
| 2320 | /* 890 */ /*TargetOpcode::G_PTR_ADD*//*Label 77*/ GIMT_Encode4(4613), GIMT_Encode4(0), |
| 2321 | /* 898 */ /*TargetOpcode::G_SMIN*//*Label 78*/ GIMT_Encode4(4659), |
| 2322 | /* 902 */ /*TargetOpcode::G_SMAX*//*Label 79*/ GIMT_Encode4(4682), |
| 2323 | /* 906 */ /*TargetOpcode::G_UMIN*//*Label 80*/ GIMT_Encode4(4705), |
| 2324 | /* 910 */ /*TargetOpcode::G_UMAX*//*Label 81*/ GIMT_Encode4(4728), |
| 2325 | /* 914 */ /*TargetOpcode::G_ABS*//*Label 82*/ GIMT_Encode4(4751), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), |
| 2326 | /* 946 */ /*TargetOpcode::G_INSERT_VECTOR_ELT*//*Label 83*/ GIMT_Encode4(4763), |
| 2327 | /* 950 */ /*TargetOpcode::G_EXTRACT_VECTOR_ELT*//*Label 84*/ GIMT_Encode4(4775), |
| 2328 | /* 954 */ /*TargetOpcode::G_SHUFFLE_VECTOR*//*Label 85*/ GIMT_Encode4(4809), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), |
| 2329 | /* 1006 */ /*TargetOpcode::G_FCEIL*//*Label 86*/ GIMT_Encode4(4832), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), |
| 2330 | /* 1054 */ /*TargetOpcode::G_FSQRT*//*Label 87*/ GIMT_Encode4(4854), |
| 2331 | /* 1058 */ /*TargetOpcode::G_FFLOOR*//*Label 88*/ GIMT_Encode4(4876), |
| 2332 | /* 1062 */ /*TargetOpcode::G_FRINT*//*Label 89*/ GIMT_Encode4(4898), |
| 2333 | /* 1066 */ /*TargetOpcode::G_FNEARBYINT*//*Label 90*/ GIMT_Encode4(4920), |
| 2334 | /* 1070 */ // Label 0: @1070 |
| 2335 | /* 1070 */ GIM_Try, /*On fail goto*//*Label 92*/ GIMT_Encode4(1081), // Rule ID 0 // |
| 2336 | /* 1075 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule0Enabled), |
| 2337 | /* 1078 */ // MIs[0] d |
| 2338 | /* 1078 */ // No operand predicates |
| 2339 | /* 1078 */ // MIs[0] s |
| 2340 | /* 1078 */ // No operand predicates |
| 2341 | /* 1078 */ // Combiner Rule #0: copy_prop |
| 2342 | /* 1078 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner0), |
| 2343 | /* 1081 */ // Label 92: @1081 |
| 2344 | /* 1081 */ GIM_Reject, |
| 2345 | /* 1082 */ // Label 1: @1082 |
| 2346 | /* 1082 */ GIM_Try, /*On fail goto*//*Label 93*/ GIMT_Encode4(1093), // Rule ID 79 // |
| 2347 | /* 1087 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule67Enabled), |
| 2348 | /* 1090 */ // Combiner Rule #67: constant_fold_binop; wip_match_opcode 'G_ADD' |
| 2349 | /* 1090 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner42), |
| 2350 | /* 1093 */ // Label 93: @1093 |
| 2351 | /* 1093 */ GIM_Try, /*On fail goto*//*Label 94*/ GIMT_Encode4(1104), // Rule ID 173 // |
| 2352 | /* 1098 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule101Enabled), |
| 2353 | /* 1101 */ // Combiner Rule #101: propagate_undef_any_op; wip_match_opcode 'G_ADD' |
| 2354 | /* 1101 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner61), |
| 2355 | /* 1104 */ // Label 94: @1104 |
| 2356 | /* 1104 */ GIM_Try, /*On fail goto*//*Label 95*/ GIMT_Encode4(1115), // Rule ID 186 // |
| 2357 | /* 1109 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule110Enabled), |
| 2358 | /* 1112 */ // Combiner Rule #110: commute_int_constant_to_rhs; wip_match_opcode 'G_ADD' |
| 2359 | /* 1112 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner70), |
| 2360 | /* 1115 */ // Label 95: @1115 |
| 2361 | /* 1115 */ GIM_Try, /*On fail goto*//*Label 96*/ GIMT_Encode4(1149), // Rule ID 140 // |
| 2362 | /* 1120 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule81Enabled), |
| 2363 | /* 1123 */ // MIs[0] dst |
| 2364 | /* 1123 */ // No operand predicates |
| 2365 | /* 1123 */ // MIs[0] __add_sub_reg_match_0.tmp |
| 2366 | /* 1123 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 2367 | /* 1127 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB), |
| 2368 | /* 1131 */ // MIs[1] src |
| 2369 | /* 1131 */ // No operand predicates |
| 2370 | /* 1131 */ // MIs[1] __add_sub_reg_match_0.x |
| 2371 | /* 1131 */ // No operand predicates |
| 2372 | /* 1131 */ // MIs[0] __add_sub_reg_match_0.x |
| 2373 | /* 1131 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/1, /*OtherOpIdx*/2, |
| 2374 | /* 1136 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1, |
| 2375 | /* 1141 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 2376 | /* 1143 */ // Combiner Rule #81: add_sub_reg @ [__add_sub_reg_match_0[1]] |
| 2377 | /* 1143 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1, |
| 2378 | /* 1148 */ GIR_EraseRootFromParent_Done, |
| 2379 | /* 1149 */ // Label 96: @1149 |
| 2380 | /* 1149 */ GIM_Try, /*On fail goto*//*Label 97*/ GIMT_Encode4(1183), // Rule ID 139 // |
| 2381 | /* 1154 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule81Enabled), |
| 2382 | /* 1157 */ // MIs[0] dst |
| 2383 | /* 1157 */ // No operand predicates |
| 2384 | /* 1157 */ // MIs[0] __add_sub_reg_match_0.x |
| 2385 | /* 1157 */ // No operand predicates |
| 2386 | /* 1157 */ // MIs[0] __add_sub_reg_match_0.tmp |
| 2387 | /* 1157 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1] |
| 2388 | /* 1161 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SUB), |
| 2389 | /* 1165 */ // MIs[1] src |
| 2390 | /* 1165 */ // No operand predicates |
| 2391 | /* 1165 */ // MIs[1] __add_sub_reg_match_0.x |
| 2392 | /* 1165 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/1, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1, |
| 2393 | /* 1170 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1, |
| 2394 | /* 1175 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 2395 | /* 1177 */ // Combiner Rule #81: add_sub_reg @ [__add_sub_reg_match_0[0]] |
| 2396 | /* 1177 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1, |
| 2397 | /* 1182 */ GIR_EraseRootFromParent_Done, |
| 2398 | /* 1183 */ // Label 97: @1183 |
| 2399 | /* 1183 */ GIM_Try, /*On fail goto*//*Label 98*/ GIMT_Encode4(1206), // Rule ID 111 // |
| 2400 | /* 1188 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule70Enabled), |
| 2401 | /* 1191 */ // MIs[0] dst |
| 2402 | /* 1191 */ // No operand predicates |
| 2403 | /* 1191 */ // MIs[0] lhs |
| 2404 | /* 1191 */ // No operand predicates |
| 2405 | /* 1191 */ // MIs[0] Operand 2 |
| 2406 | /* 1191 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0, |
| 2407 | /* 1195 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 2408 | /* 1200 */ // Combiner Rule #70: right_identity_zero @ [__right_identity_zero_match_0[1]] |
| 2409 | /* 1200 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 2410 | /* 1205 */ GIR_EraseRootFromParent_Done, |
| 2411 | /* 1206 */ // Label 98: @1206 |
| 2412 | /* 1206 */ GIM_Reject, |
| 2413 | /* 1207 */ // Label 2: @1207 |
| 2414 | /* 1207 */ GIM_Try, /*On fail goto*//*Label 99*/ GIMT_Encode4(1218), // Rule ID 87 // |
| 2415 | /* 1212 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule67Enabled), |
| 2416 | /* 1215 */ // Combiner Rule #67: constant_fold_binop; wip_match_opcode 'G_SUB' |
| 2417 | /* 1215 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner42), |
| 2418 | /* 1218 */ // Label 99: @1218 |
| 2419 | /* 1218 */ GIM_Try, /*On fail goto*//*Label 100*/ GIMT_Encode4(1229), // Rule ID 174 // |
| 2420 | /* 1223 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule101Enabled), |
| 2421 | /* 1226 */ // Combiner Rule #101: propagate_undef_any_op; wip_match_opcode 'G_SUB' |
| 2422 | /* 1226 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner61), |
| 2423 | /* 1229 */ // Label 100: @1229 |
| 2424 | /* 1229 */ GIM_Try, /*On fail goto*//*Label 101*/ GIMT_Encode4(1268), // Rule ID 122 // |
| 2425 | /* 1234 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule72Enabled), |
| 2426 | /* 1237 */ // MIs[0] dst |
| 2427 | /* 1237 */ // No operand predicates |
| 2428 | /* 1237 */ // MIs[0] x |
| 2429 | /* 1237 */ GIM_RecordRegType, /*MI*/0, /*Op*/1, /*TempTypeIdx*/255, |
| 2430 | /* 1241 */ // MIs[0] x |
| 2431 | /* 1241 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1, |
| 2432 | /* 1246 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255, |
| 2433 | /* 1249 */ GIR_BuildConstant, /*TempRegID*/0, /*Val*/GIMT_Encode8(0), |
| 2434 | /* 1259 */ // Combiner Rule #72: same_val_zero @ [__same_val_zero_match_0[0]] |
| 2435 | /* 1259 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::COPY), |
| 2436 | /* 1262 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst |
| 2437 | /* 1264 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/0, |
| 2438 | /* 1267 */ GIR_EraseRootFromParent_Done, |
| 2439 | /* 1268 */ // Label 101: @1268 |
| 2440 | /* 1268 */ GIM_Try, /*On fail goto*//*Label 102*/ GIMT_Encode4(1289), // Rule ID 221 // |
| 2441 | /* 1273 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule118Enabled), |
| 2442 | /* 1276 */ // MIs[0] dst |
| 2443 | /* 1276 */ // No operand predicates |
| 2444 | /* 1276 */ // MIs[0] src3 |
| 2445 | /* 1276 */ // No operand predicates |
| 2446 | /* 1276 */ // MIs[0] tmp |
| 2447 | /* 1276 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1] |
| 2448 | /* 1280 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ADD), |
| 2449 | /* 1284 */ // MIs[1] src1 |
| 2450 | /* 1284 */ // No operand predicates |
| 2451 | /* 1284 */ // MIs[1] src2 |
| 2452 | /* 1284 */ // No operand predicates |
| 2453 | /* 1284 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 2454 | /* 1286 */ // Combiner Rule #118: subaddmulreassoc |
| 2455 | /* 1286 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner78), |
| 2456 | /* 1289 */ // Label 102: @1289 |
| 2457 | /* 1289 */ GIM_Try, /*On fail goto*//*Label 103*/ GIMT_Encode4(1312), // Rule ID 110 // |
| 2458 | /* 1294 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule70Enabled), |
| 2459 | /* 1297 */ // MIs[0] dst |
| 2460 | /* 1297 */ // No operand predicates |
| 2461 | /* 1297 */ // MIs[0] lhs |
| 2462 | /* 1297 */ // No operand predicates |
| 2463 | /* 1297 */ // MIs[0] Operand 2 |
| 2464 | /* 1297 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0, |
| 2465 | /* 1301 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 2466 | /* 1306 */ // Combiner Rule #70: right_identity_zero @ [__right_identity_zero_match_0[0]] |
| 2467 | /* 1306 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 2468 | /* 1311 */ GIR_EraseRootFromParent_Done, |
| 2469 | /* 1312 */ // Label 103: @1312 |
| 2470 | /* 1312 */ GIM_Reject, |
| 2471 | /* 1313 */ // Label 3: @1313 |
| 2472 | /* 1313 */ GIM_Try, /*On fail goto*//*Label 104*/ GIMT_Encode4(1324), // Rule ID 46 // |
| 2473 | /* 1318 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule39Enabled), |
| 2474 | /* 1321 */ // Combiner Rule #39: mul_const; wip_match_opcode 'G_MUL' |
| 2475 | /* 1321 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner18), |
| 2476 | /* 1324 */ // Label 104: @1324 |
| 2477 | /* 1324 */ GIM_Try, /*On fail goto*//*Label 105*/ GIMT_Encode4(1335), // Rule ID 84 // |
| 2478 | /* 1329 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule67Enabled), |
| 2479 | /* 1332 */ // Combiner Rule #67: constant_fold_binop; wip_match_opcode 'G_MUL' |
| 2480 | /* 1332 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner42), |
| 2481 | /* 1335 */ // Label 105: @1335 |
| 2482 | /* 1335 */ GIM_Try, /*On fail goto*//*Label 106*/ GIMT_Encode4(1346), // Rule ID 157 // |
| 2483 | /* 1340 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule95Enabled), |
| 2484 | /* 1343 */ // Combiner Rule #95: undef_to_int_zero; wip_match_opcode 'G_MUL' |
| 2485 | /* 1343 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner56), |
| 2486 | /* 1346 */ // Label 106: @1346 |
| 2487 | /* 1346 */ GIM_Try, /*On fail goto*//*Label 107*/ GIMT_Encode4(1357), // Rule ID 187 // |
| 2488 | /* 1351 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule110Enabled), |
| 2489 | /* 1354 */ // Combiner Rule #110: commute_int_constant_to_rhs; wip_match_opcode 'G_MUL' |
| 2490 | /* 1354 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner70), |
| 2491 | /* 1357 */ // Label 107: @1357 |
| 2492 | /* 1357 */ GIM_Try, /*On fail goto*//*Label 108*/ GIMT_Encode4(1368), // Rule ID 218 // |
| 2493 | /* 1362 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule115Enabled), |
| 2494 | /* 1365 */ // Combiner Rule #115: combine_mul_cmlt; wip_match_opcode 'G_MUL' |
| 2495 | /* 1365 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner75), |
| 2496 | /* 1368 */ // Label 108: @1368 |
| 2497 | /* 1368 */ GIM_Try, /*On fail goto*//*Label 109*/ GIMT_Encode4(1408), // Rule ID 131 // |
| 2498 | /* 1373 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule73Enabled), |
| 2499 | /* 1376 */ // MIs[0] dst |
| 2500 | /* 1376 */ // No operand predicates |
| 2501 | /* 1376 */ // MIs[0] zero |
| 2502 | /* 1376 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 2503 | /* 1380 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT), |
| 2504 | /* 1384 */ // MIs[1] Operand 1 |
| 2505 | /* 1384 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0), |
| 2506 | /* 1395 */ // MIs[0] rhs |
| 2507 | /* 1395 */ // No operand predicates |
| 2508 | /* 1395 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 2509 | /* 1400 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 2510 | /* 1402 */ // Combiner Rule #73: binop_left_to_zero @ [__binop_left_to_zero_match_0[7]] |
| 2511 | /* 1402 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 2512 | /* 1407 */ GIR_EraseRootFromParent_Done, |
| 2513 | /* 1408 */ // Label 109: @1408 |
| 2514 | /* 1408 */ GIM_Try, /*On fail goto*//*Label 110*/ GIMT_Encode4(1431), // Rule ID 132 // |
| 2515 | /* 1413 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule74Enabled), |
| 2516 | /* 1416 */ // MIs[0] dst |
| 2517 | /* 1416 */ // No operand predicates |
| 2518 | /* 1416 */ // MIs[0] lhs |
| 2519 | /* 1416 */ // No operand predicates |
| 2520 | /* 1416 */ // MIs[0] zero |
| 2521 | /* 1416 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0, |
| 2522 | /* 1420 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2, |
| 2523 | /* 1425 */ // Combiner Rule #74: binop_right_to_zero |
| 2524 | /* 1425 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/2, |
| 2525 | /* 1430 */ GIR_EraseRootFromParent_Done, |
| 2526 | /* 1431 */ // Label 110: @1431 |
| 2527 | /* 1431 */ GIM_Try, /*On fail goto*//*Label 111*/ GIMT_Encode4(1454), // Rule ID 137 // |
| 2528 | /* 1436 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule79Enabled), |
| 2529 | /* 1439 */ // MIs[0] dst |
| 2530 | /* 1439 */ // No operand predicates |
| 2531 | /* 1439 */ // MIs[0] x |
| 2532 | /* 1439 */ // No operand predicates |
| 2533 | /* 1439 */ // MIs[0] Operand 2 |
| 2534 | /* 1439 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 1, |
| 2535 | /* 1443 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 2536 | /* 1448 */ // Combiner Rule #79: right_identity_one_int |
| 2537 | /* 1448 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 2538 | /* 1453 */ GIR_EraseRootFromParent_Done, |
| 2539 | /* 1454 */ // Label 111: @1454 |
| 2540 | /* 1454 */ GIM_Try, /*On fail goto*//*Label 112*/ GIMT_Encode4(1465), // Rule ID 220 // |
| 2541 | /* 1459 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule117Enabled), |
| 2542 | /* 1462 */ // MIs[0] dst |
| 2543 | /* 1462 */ // No operand predicates |
| 2544 | /* 1462 */ // MIs[0] src1 |
| 2545 | /* 1462 */ // No operand predicates |
| 2546 | /* 1462 */ // MIs[0] src2 |
| 2547 | /* 1462 */ // No operand predicates |
| 2548 | /* 1462 */ // Combiner Rule #117: extmultomull |
| 2549 | /* 1462 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner77), |
| 2550 | /* 1465 */ // Label 112: @1465 |
| 2551 | /* 1465 */ GIM_Reject, |
| 2552 | /* 1466 */ // Label 4: @1466 |
| 2553 | /* 1466 */ GIM_Try, /*On fail goto*//*Label 113*/ GIMT_Encode4(1477), // Rule ID 90 // |
| 2554 | /* 1471 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule67Enabled), |
| 2555 | /* 1474 */ // Combiner Rule #67: constant_fold_binop; wip_match_opcode 'G_SDIV' |
| 2556 | /* 1474 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner42), |
| 2557 | /* 1477 */ // Label 113: @1477 |
| 2558 | /* 1477 */ GIM_Try, /*On fail goto*//*Label 114*/ GIMT_Encode4(1517), // Rule ID 127 // |
| 2559 | /* 1482 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule73Enabled), |
| 2560 | /* 1485 */ // MIs[0] dst |
| 2561 | /* 1485 */ // No operand predicates |
| 2562 | /* 1485 */ // MIs[0] zero |
| 2563 | /* 1485 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 2564 | /* 1489 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT), |
| 2565 | /* 1493 */ // MIs[1] Operand 1 |
| 2566 | /* 1493 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0), |
| 2567 | /* 1504 */ // MIs[0] rhs |
| 2568 | /* 1504 */ // No operand predicates |
| 2569 | /* 1504 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 2570 | /* 1509 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 2571 | /* 1511 */ // Combiner Rule #73: binop_left_to_zero @ [__binop_left_to_zero_match_0[3]] |
| 2572 | /* 1511 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 2573 | /* 1516 */ GIR_EraseRootFromParent_Done, |
| 2574 | /* 1517 */ // Label 114: @1517 |
| 2575 | /* 1517 */ GIM_Reject, |
| 2576 | /* 1518 */ // Label 5: @1518 |
| 2577 | /* 1518 */ GIM_Try, /*On fail goto*//*Label 115*/ GIMT_Encode4(1529), // Rule ID 89 // |
| 2578 | /* 1523 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule67Enabled), |
| 2579 | /* 1526 */ // Combiner Rule #67: constant_fold_binop; wip_match_opcode 'G_UDIV' |
| 2580 | /* 1526 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner42), |
| 2581 | /* 1529 */ // Label 115: @1529 |
| 2582 | /* 1529 */ GIM_Try, /*On fail goto*//*Label 116*/ GIMT_Encode4(1540), // Rule ID 160 // |
| 2583 | /* 1534 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule97Enabled), |
| 2584 | /* 1537 */ // Combiner Rule #97: binop_left_undef_to_zero; wip_match_opcode 'G_UDIV' |
| 2585 | /* 1537 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner58), |
| 2586 | /* 1540 */ // Label 116: @1540 |
| 2587 | /* 1540 */ GIM_Try, /*On fail goto*//*Label 117*/ GIMT_Encode4(1580), // Rule ID 128 // |
| 2588 | /* 1545 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule73Enabled), |
| 2589 | /* 1548 */ // MIs[0] dst |
| 2590 | /* 1548 */ // No operand predicates |
| 2591 | /* 1548 */ // MIs[0] zero |
| 2592 | /* 1548 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 2593 | /* 1552 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT), |
| 2594 | /* 1556 */ // MIs[1] Operand 1 |
| 2595 | /* 1556 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0), |
| 2596 | /* 1567 */ // MIs[0] rhs |
| 2597 | /* 1567 */ // No operand predicates |
| 2598 | /* 1567 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 2599 | /* 1572 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 2600 | /* 1574 */ // Combiner Rule #73: binop_left_to_zero @ [__binop_left_to_zero_match_0[4]] |
| 2601 | /* 1574 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 2602 | /* 1579 */ GIR_EraseRootFromParent_Done, |
| 2603 | /* 1580 */ // Label 117: @1580 |
| 2604 | /* 1580 */ GIM_Reject, |
| 2605 | /* 1581 */ // Label 6: @1581 |
| 2606 | /* 1581 */ GIM_Try, /*On fail goto*//*Label 118*/ GIMT_Encode4(1592), // Rule ID 92 // |
| 2607 | /* 1586 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule67Enabled), |
| 2608 | /* 1589 */ // Combiner Rule #67: constant_fold_binop; wip_match_opcode 'G_SREM' |
| 2609 | /* 1589 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner42), |
| 2610 | /* 1592 */ // Label 118: @1592 |
| 2611 | /* 1592 */ GIM_Try, /*On fail goto*//*Label 119*/ GIMT_Encode4(1632), // Rule ID 129 // |
| 2612 | /* 1597 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule73Enabled), |
| 2613 | /* 1600 */ // MIs[0] dst |
| 2614 | /* 1600 */ // No operand predicates |
| 2615 | /* 1600 */ // MIs[0] zero |
| 2616 | /* 1600 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 2617 | /* 1604 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT), |
| 2618 | /* 1608 */ // MIs[1] Operand 1 |
| 2619 | /* 1608 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0), |
| 2620 | /* 1619 */ // MIs[0] rhs |
| 2621 | /* 1619 */ // No operand predicates |
| 2622 | /* 1619 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 2623 | /* 1624 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 2624 | /* 1626 */ // Combiner Rule #73: binop_left_to_zero @ [__binop_left_to_zero_match_0[5]] |
| 2625 | /* 1626 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 2626 | /* 1631 */ GIR_EraseRootFromParent_Done, |
| 2627 | /* 1632 */ // Label 119: @1632 |
| 2628 | /* 1632 */ GIM_Reject, |
| 2629 | /* 1633 */ // Label 7: @1633 |
| 2630 | /* 1633 */ GIM_Try, /*On fail goto*//*Label 120*/ GIMT_Encode4(1644), // Rule ID 91 // |
| 2631 | /* 1638 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule67Enabled), |
| 2632 | /* 1641 */ // Combiner Rule #67: constant_fold_binop; wip_match_opcode 'G_UREM' |
| 2633 | /* 1641 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner42), |
| 2634 | /* 1644 */ // Label 120: @1644 |
| 2635 | /* 1644 */ GIM_Try, /*On fail goto*//*Label 121*/ GIMT_Encode4(1655), // Rule ID 161 // |
| 2636 | /* 1649 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule97Enabled), |
| 2637 | /* 1652 */ // Combiner Rule #97: binop_left_undef_to_zero; wip_match_opcode 'G_UREM' |
| 2638 | /* 1652 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner58), |
| 2639 | /* 1655 */ // Label 121: @1655 |
| 2640 | /* 1655 */ GIM_Try, /*On fail goto*//*Label 122*/ GIMT_Encode4(1695), // Rule ID 130 // |
| 2641 | /* 1660 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule73Enabled), |
| 2642 | /* 1663 */ // MIs[0] dst |
| 2643 | /* 1663 */ // No operand predicates |
| 2644 | /* 1663 */ // MIs[0] zero |
| 2645 | /* 1663 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 2646 | /* 1667 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT), |
| 2647 | /* 1671 */ // MIs[1] Operand 1 |
| 2648 | /* 1671 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0), |
| 2649 | /* 1682 */ // MIs[0] rhs |
| 2650 | /* 1682 */ // No operand predicates |
| 2651 | /* 1682 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 2652 | /* 1687 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 2653 | /* 1689 */ // Combiner Rule #73: binop_left_to_zero @ [__binop_left_to_zero_match_0[6]] |
| 2654 | /* 1689 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 2655 | /* 1694 */ GIR_EraseRootFromParent_Done, |
| 2656 | /* 1695 */ // Label 122: @1695 |
| 2657 | /* 1695 */ GIM_Reject, |
| 2658 | /* 1696 */ // Label 8: @1696 |
| 2659 | /* 1696 */ GIM_Try, /*On fail goto*//*Label 123*/ GIMT_Encode4(1707), // Rule ID 33 // |
| 2660 | /* 1701 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule31Enabled), |
| 2661 | /* 1704 */ // Combiner Rule #31: load_and_mask; wip_match_opcode 'G_AND' |
| 2662 | /* 1704 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner10), |
| 2663 | /* 1707 */ // Label 123: @1707 |
| 2664 | /* 1707 */ GIM_Try, /*On fail goto*//*Label 124*/ GIMT_Encode4(1718), // Rule ID 39 // |
| 2665 | /* 1712 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule34Enabled), |
| 2666 | /* 1715 */ // Combiner Rule #34: hoist_logic_op_with_same_opcode_hands; wip_match_opcode 'G_AND' |
| 2667 | /* 1715 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner13), |
| 2668 | /* 1718 */ // Label 124: @1718 |
| 2669 | /* 1718 */ GIM_Try, /*On fail goto*//*Label 125*/ GIMT_Encode4(1729), // Rule ID 42 // |
| 2670 | /* 1723 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule35Enabled), |
| 2671 | /* 1726 */ // Combiner Rule #35: redundant_and; wip_match_opcode 'G_AND' |
| 2672 | /* 1726 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner14), |
| 2673 | /* 1729 */ // Label 125: @1729 |
| 2674 | /* 1729 */ GIM_Try, /*On fail goto*//*Label 126*/ GIMT_Encode4(1740), // Rule ID 81 // |
| 2675 | /* 1734 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule67Enabled), |
| 2676 | /* 1737 */ // Combiner Rule #67: constant_fold_binop; wip_match_opcode 'G_AND' |
| 2677 | /* 1737 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner42), |
| 2678 | /* 1740 */ // Label 126: @1740 |
| 2679 | /* 1740 */ GIM_Try, /*On fail goto*//*Label 127*/ GIMT_Encode4(1751), // Rule ID 152 // |
| 2680 | /* 1745 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule92Enabled), |
| 2681 | /* 1748 */ // Combiner Rule #92: overlapping_and; wip_match_opcode 'G_AND' |
| 2682 | /* 1748 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner53), |
| 2683 | /* 1751 */ // Label 127: @1751 |
| 2684 | /* 1751 */ GIM_Try, /*On fail goto*//*Label 128*/ GIMT_Encode4(1762), // Rule ID 156 // |
| 2685 | /* 1756 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule95Enabled), |
| 2686 | /* 1759 */ // Combiner Rule #95: undef_to_int_zero; wip_match_opcode 'G_AND' |
| 2687 | /* 1759 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner56), |
| 2688 | /* 1762 */ // Label 128: @1762 |
| 2689 | /* 1762 */ GIM_Try, /*On fail goto*//*Label 129*/ GIMT_Encode4(1773), // Rule ID 188 // |
| 2690 | /* 1767 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule110Enabled), |
| 2691 | /* 1770 */ // Combiner Rule #110: commute_int_constant_to_rhs; wip_match_opcode 'G_AND' |
| 2692 | /* 1770 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner70), |
| 2693 | /* 1773 */ // Label 129: @1773 |
| 2694 | /* 1773 */ GIM_Try, /*On fail goto*//*Label 130*/ GIMT_Encode4(1810), // Rule ID 49 // |
| 2695 | /* 1778 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule42Enabled), |
| 2696 | /* 1781 */ // MIs[0] root |
| 2697 | /* 1781 */ // No operand predicates |
| 2698 | /* 1781 */ // MIs[0] shift |
| 2699 | /* 1781 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 2700 | /* 1785 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_LSHR), |
| 2701 | /* 1789 */ // MIs[1] x |
| 2702 | /* 1789 */ // No operand predicates |
| 2703 | /* 1789 */ // MIs[1] lsb |
| 2704 | /* 1789 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/2, // MIs[2] |
| 2705 | /* 1793 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_CONSTANT), |
| 2706 | /* 1797 */ // MIs[2] imm1 |
| 2707 | /* 1797 */ // No operand predicates |
| 2708 | /* 1797 */ // MIs[0] mask |
| 2709 | /* 1797 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/3, /*MI*/0, /*OpIdx*/2, // MIs[3] |
| 2710 | /* 1801 */ GIM_CheckOpcode, /*MI*/3, GIMT_Encode2(TargetOpcode::G_CONSTANT), |
| 2711 | /* 1805 */ // MIs[3] imm2 |
| 2712 | /* 1805 */ // No operand predicates |
| 2713 | /* 1805 */ GIM_CheckIsSafeToFold, /*NumInsns*/3, |
| 2714 | /* 1807 */ // Combiner Rule #42: bitfield_extract_from_and |
| 2715 | /* 1807 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner21), |
| 2716 | /* 1810 */ // Label 130: @1810 |
| 2717 | /* 1810 */ GIM_Try, /*On fail goto*//*Label 131*/ GIMT_Encode4(1834), // Rule ID 120 // |
| 2718 | /* 1815 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule71Enabled), |
| 2719 | /* 1818 */ // MIs[0] dst |
| 2720 | /* 1818 */ // No operand predicates |
| 2721 | /* 1818 */ // MIs[0] src |
| 2722 | /* 1818 */ // No operand predicates |
| 2723 | /* 1818 */ // MIs[0] src |
| 2724 | /* 1818 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1, |
| 2725 | /* 1823 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 2726 | /* 1828 */ // Combiner Rule #71: binop_same_val @ [__binop_same_val_match_0[0]] |
| 2727 | /* 1828 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 2728 | /* 1833 */ GIR_EraseRootFromParent_Done, |
| 2729 | /* 1834 */ // Label 131: @1834 |
| 2730 | /* 1834 */ GIM_Reject, |
| 2731 | /* 1835 */ // Label 9: @1835 |
| 2732 | /* 1835 */ GIM_Try, /*On fail goto*//*Label 132*/ GIMT_Encode4(1846), // Rule ID 40 // |
| 2733 | /* 1840 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule34Enabled), |
| 2734 | /* 1843 */ // Combiner Rule #34: hoist_logic_op_with_same_opcode_hands; wip_match_opcode 'G_OR' |
| 2735 | /* 1843 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner13), |
| 2736 | /* 1846 */ // Label 132: @1846 |
| 2737 | /* 1846 */ GIM_Try, /*On fail goto*//*Label 133*/ GIMT_Encode4(1857), // Rule ID 45 // |
| 2738 | /* 1851 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule38Enabled), |
| 2739 | /* 1854 */ // Combiner Rule #38: redundant_or; wip_match_opcode 'G_OR' |
| 2740 | /* 1854 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner17), |
| 2741 | /* 1857 */ // Label 133: @1857 |
| 2742 | /* 1857 */ GIM_Try, /*On fail goto*//*Label 134*/ GIMT_Encode4(1868), // Rule ID 85 // |
| 2743 | /* 1862 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule67Enabled), |
| 2744 | /* 1865 */ // Combiner Rule #67: constant_fold_binop; wip_match_opcode 'G_OR' |
| 2745 | /* 1865 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner42), |
| 2746 | /* 1868 */ // Label 134: @1868 |
| 2747 | /* 1868 */ GIM_Try, /*On fail goto*//*Label 135*/ GIMT_Encode4(1879), // Rule ID 158 // |
| 2748 | /* 1873 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule96Enabled), |
| 2749 | /* 1876 */ // Combiner Rule #96: undef_to_negative_one; wip_match_opcode 'G_OR' |
| 2750 | /* 1876 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner57), |
| 2751 | /* 1879 */ // Label 135: @1879 |
| 2752 | /* 1879 */ GIM_Try, /*On fail goto*//*Label 136*/ GIMT_Encode4(1890), // Rule ID 189 // |
| 2753 | /* 1884 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule110Enabled), |
| 2754 | /* 1887 */ // Combiner Rule #110: commute_int_constant_to_rhs; wip_match_opcode 'G_OR' |
| 2755 | /* 1887 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner70), |
| 2756 | /* 1890 */ // Label 136: @1890 |
| 2757 | /* 1890 */ GIM_Try, /*On fail goto*//*Label 137*/ GIMT_Encode4(1901), // Rule ID 227 // |
| 2758 | /* 1895 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule124Enabled), |
| 2759 | /* 1898 */ // Combiner Rule #124: funnel_shift_from_or_shift_constants_are_legal; wip_match_opcode 'G_OR' |
| 2760 | /* 1898 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner82), |
| 2761 | /* 1901 */ // Label 137: @1901 |
| 2762 | /* 1901 */ GIM_Try, /*On fail goto*//*Label 138*/ GIMT_Encode4(1925), // Rule ID 121 // |
| 2763 | /* 1906 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule71Enabled), |
| 2764 | /* 1909 */ // MIs[0] dst |
| 2765 | /* 1909 */ // No operand predicates |
| 2766 | /* 1909 */ // MIs[0] src |
| 2767 | /* 1909 */ // No operand predicates |
| 2768 | /* 1909 */ // MIs[0] src |
| 2769 | /* 1909 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1, |
| 2770 | /* 1914 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 2771 | /* 1919 */ // Combiner Rule #71: binop_same_val @ [__binop_same_val_match_0[1]] |
| 2772 | /* 1919 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 2773 | /* 1924 */ GIR_EraseRootFromParent_Done, |
| 2774 | /* 1925 */ // Label 138: @1925 |
| 2775 | /* 1925 */ GIM_Try, /*On fail goto*//*Label 139*/ GIMT_Encode4(1948), // Rule ID 112 // |
| 2776 | /* 1930 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule70Enabled), |
| 2777 | /* 1933 */ // MIs[0] dst |
| 2778 | /* 1933 */ // No operand predicates |
| 2779 | /* 1933 */ // MIs[0] lhs |
| 2780 | /* 1933 */ // No operand predicates |
| 2781 | /* 1933 */ // MIs[0] Operand 2 |
| 2782 | /* 1933 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0, |
| 2783 | /* 1937 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 2784 | /* 1942 */ // Combiner Rule #70: right_identity_zero @ [__right_identity_zero_match_0[2]] |
| 2785 | /* 1942 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 2786 | /* 1947 */ GIR_EraseRootFromParent_Done, |
| 2787 | /* 1948 */ // Label 139: @1948 |
| 2788 | /* 1948 */ GIM_Try, /*On fail goto*//*Label 140*/ GIMT_Encode4(1959), // Rule ID 183 // |
| 2789 | /* 1953 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule107Enabled), |
| 2790 | /* 1956 */ // MIs[0] dst |
| 2791 | /* 1956 */ // No operand predicates |
| 2792 | /* 1956 */ // MIs[0] src1 |
| 2793 | /* 1956 */ // No operand predicates |
| 2794 | /* 1956 */ // MIs[0] src2 |
| 2795 | /* 1956 */ // No operand predicates |
| 2796 | /* 1956 */ // Combiner Rule #107: or_to_bsp |
| 2797 | /* 1956 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner67), |
| 2798 | /* 1959 */ // Label 140: @1959 |
| 2799 | /* 1959 */ GIM_Reject, |
| 2800 | /* 1960 */ // Label 10: @1960 |
| 2801 | /* 1960 */ GIM_Try, /*On fail goto*//*Label 141*/ GIMT_Encode4(1971), // Rule ID 41 // |
| 2802 | /* 1965 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule34Enabled), |
| 2803 | /* 1968 */ // Combiner Rule #34: hoist_logic_op_with_same_opcode_hands; wip_match_opcode 'G_XOR' |
| 2804 | /* 1968 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner13), |
| 2805 | /* 1971 */ // Label 141: @1971 |
| 2806 | /* 1971 */ GIM_Try, /*On fail goto*//*Label 142*/ GIMT_Encode4(1982), // Rule ID 43 // |
| 2807 | /* 1976 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule36Enabled), |
| 2808 | /* 1979 */ // Combiner Rule #36: xor_of_and_with_same_reg; wip_match_opcode 'G_XOR' |
| 2809 | /* 1979 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner15), |
| 2810 | /* 1982 */ // Label 142: @1982 |
| 2811 | /* 1982 */ GIM_Try, /*On fail goto*//*Label 143*/ GIMT_Encode4(1993), // Rule ID 88 // |
| 2812 | /* 1987 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule67Enabled), |
| 2813 | /* 1990 */ // Combiner Rule #67: constant_fold_binop; wip_match_opcode 'G_XOR' |
| 2814 | /* 1990 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner42), |
| 2815 | /* 1993 */ // Label 143: @1993 |
| 2816 | /* 1993 */ GIM_Try, /*On fail goto*//*Label 144*/ GIMT_Encode4(2004), // Rule ID 175 // |
| 2817 | /* 1998 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule101Enabled), |
| 2818 | /* 2001 */ // Combiner Rule #101: propagate_undef_any_op; wip_match_opcode 'G_XOR' |
| 2819 | /* 2001 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner61), |
| 2820 | /* 2004 */ // Label 144: @2004 |
| 2821 | /* 2004 */ GIM_Try, /*On fail goto*//*Label 145*/ GIMT_Encode4(2015), // Rule ID 190 // |
| 2822 | /* 2009 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule110Enabled), |
| 2823 | /* 2012 */ // Combiner Rule #110: commute_int_constant_to_rhs; wip_match_opcode 'G_XOR' |
| 2824 | /* 2012 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner70), |
| 2825 | /* 2015 */ // Label 145: @2015 |
| 2826 | /* 2015 */ GIM_Try, /*On fail goto*//*Label 146*/ GIMT_Encode4(2054), // Rule ID 123 // |
| 2827 | /* 2020 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule72Enabled), |
| 2828 | /* 2023 */ // MIs[0] dst |
| 2829 | /* 2023 */ // No operand predicates |
| 2830 | /* 2023 */ // MIs[0] x |
| 2831 | /* 2023 */ GIM_RecordRegType, /*MI*/0, /*Op*/1, /*TempTypeIdx*/255, |
| 2832 | /* 2027 */ // MIs[0] x |
| 2833 | /* 2027 */ GIM_CheckIsSameOperandIgnoreCopies, /*MI*/0, /*OpIdx*/2, /*OtherMI*/0, /*OtherOpIdx*/1, |
| 2834 | /* 2032 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255, |
| 2835 | /* 2035 */ GIR_BuildConstant, /*TempRegID*/0, /*Val*/GIMT_Encode8(0), |
| 2836 | /* 2045 */ // Combiner Rule #72: same_val_zero @ [__same_val_zero_match_0[1]] |
| 2837 | /* 2045 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::COPY), |
| 2838 | /* 2048 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst |
| 2839 | /* 2050 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/0, |
| 2840 | /* 2053 */ GIR_EraseRootFromParent_Done, |
| 2841 | /* 2054 */ // Label 146: @2054 |
| 2842 | /* 2054 */ GIM_Try, /*On fail goto*//*Label 147*/ GIMT_Encode4(2077), // Rule ID 113 // |
| 2843 | /* 2059 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule70Enabled), |
| 2844 | /* 2062 */ // MIs[0] dst |
| 2845 | /* 2062 */ // No operand predicates |
| 2846 | /* 2062 */ // MIs[0] lhs |
| 2847 | /* 2062 */ // No operand predicates |
| 2848 | /* 2062 */ // MIs[0] Operand 2 |
| 2849 | /* 2062 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0, |
| 2850 | /* 2066 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 2851 | /* 2071 */ // Combiner Rule #70: right_identity_zero @ [__right_identity_zero_match_0[3]] |
| 2852 | /* 2071 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 2853 | /* 2076 */ GIR_EraseRootFromParent_Done, |
| 2854 | /* 2077 */ // Label 147: @2077 |
| 2855 | /* 2077 */ GIM_Reject, |
| 2856 | /* 2078 */ // Label 11: @2078 |
| 2857 | /* 2078 */ GIM_Try, /*On fail goto*//*Label 148*/ GIMT_Encode4(2089), // Rule ID 69 // |
| 2858 | /* 2083 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule57Enabled), |
| 2859 | /* 2086 */ // Combiner Rule #57: unmerge_anyext_build_vector; wip_match_opcode 'G_UNMERGE_VALUES' |
| 2860 | /* 2086 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner32), |
| 2861 | /* 2089 */ // Label 148: @2089 |
| 2862 | /* 2089 */ GIM_Try, /*On fail goto*//*Label 149*/ GIMT_Encode4(2100), // Rule ID 70 // |
| 2863 | /* 2094 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule58Enabled), |
| 2864 | /* 2097 */ // Combiner Rule #58: unmerge_merge; wip_match_opcode 'G_UNMERGE_VALUES' |
| 2865 | /* 2097 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner33), |
| 2866 | /* 2100 */ // Label 149: @2100 |
| 2867 | /* 2100 */ GIM_Try, /*On fail goto*//*Label 150*/ GIMT_Encode4(2111), // Rule ID 72 // |
| 2868 | /* 2105 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule60Enabled), |
| 2869 | /* 2108 */ // Combiner Rule #60: unmerge_cst; wip_match_opcode 'G_UNMERGE_VALUES' |
| 2870 | /* 2108 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner35), |
| 2871 | /* 2111 */ // Label 150: @2111 |
| 2872 | /* 2111 */ GIM_Try, /*On fail goto*//*Label 151*/ GIMT_Encode4(2122), // Rule ID 73 // |
| 2873 | /* 2116 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule61Enabled), |
| 2874 | /* 2119 */ // Combiner Rule #61: unmerge_undef; wip_match_opcode 'G_UNMERGE_VALUES' |
| 2875 | /* 2119 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner36), |
| 2876 | /* 2122 */ // Label 151: @2122 |
| 2877 | /* 2122 */ GIM_Try, /*On fail goto*//*Label 152*/ GIMT_Encode4(2133), // Rule ID 74 // |
| 2878 | /* 2127 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule62Enabled), |
| 2879 | /* 2130 */ // Combiner Rule #62: unmerge_dead_to_trunc; wip_match_opcode 'G_UNMERGE_VALUES' |
| 2880 | /* 2130 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner37), |
| 2881 | /* 2133 */ // Label 152: @2133 |
| 2882 | /* 2133 */ GIM_Try, /*On fail goto*//*Label 153*/ GIMT_Encode4(2144), // Rule ID 75 // |
| 2883 | /* 2138 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule63Enabled), |
| 2884 | /* 2141 */ // Combiner Rule #63: unmerge_zext_to_zext; wip_match_opcode 'G_UNMERGE_VALUES' |
| 2885 | /* 2141 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner38), |
| 2886 | /* 2144 */ // Label 153: @2144 |
| 2887 | /* 2144 */ GIM_Reject, |
| 2888 | /* 2145 */ // Label 12: @2145 |
| 2889 | /* 2145 */ GIM_Try, /*On fail goto*//*Label 154*/ GIMT_Encode4(2156), // Rule ID 68 // |
| 2890 | /* 2150 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule56Enabled), |
| 2891 | /* 2153 */ // Combiner Rule #56: fold_merge_to_zext; wip_match_opcode 'G_MERGE_VALUES' |
| 2892 | /* 2153 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner31), |
| 2893 | /* 2156 */ // Label 154: @2156 |
| 2894 | /* 2156 */ GIM_Try, /*On fail goto*//*Label 155*/ GIMT_Encode4(2170), // Rule ID 71 // |
| 2895 | /* 2161 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule59Enabled), |
| 2896 | /* 2164 */ GIM_CheckNumOperandsGE, /*MI*/0, /*Expected*/2, |
| 2897 | /* 2167 */ // MIs[0] dst |
| 2898 | /* 2167 */ // No operand predicates |
| 2899 | /* 2167 */ // MIs[0] merge_srcs |
| 2900 | /* 2167 */ // No operand predicates |
| 2901 | /* 2167 */ // Combiner Rule #59: merge_unmerge |
| 2902 | /* 2167 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner34), |
| 2903 | /* 2170 */ // Label 155: @2170 |
| 2904 | /* 2170 */ GIM_Try, /*On fail goto*//*Label 156*/ GIMT_Encode4(2232), |
| 2905 | /* 2175 */ GIM_CheckNumOperands, /*MI*/0, /*Expected*/3, |
| 2906 | /* 2178 */ GIM_Try, /*On fail goto*//*Label 157*/ GIMT_Encode4(2199), // Rule ID 76 // |
| 2907 | /* 2183 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule64Enabled), |
| 2908 | /* 2186 */ // MIs[0] root |
| 2909 | /* 2186 */ // No operand predicates |
| 2910 | /* 2186 */ // MIs[0] x |
| 2911 | /* 2186 */ // No operand predicates |
| 2912 | /* 2186 */ // MIs[0] undef |
| 2913 | /* 2186 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1] |
| 2914 | /* 2190 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF), |
| 2915 | /* 2194 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 2916 | /* 2196 */ // Combiner Rule #64: merge_of_x_and_undef |
| 2917 | /* 2196 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner39), |
| 2918 | /* 2199 */ // Label 157: @2199 |
| 2919 | /* 2199 */ GIM_Try, /*On fail goto*//*Label 158*/ GIMT_Encode4(2231), // Rule ID 77 // |
| 2920 | /* 2204 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule65Enabled), |
| 2921 | /* 2207 */ // MIs[0] root |
| 2922 | /* 2207 */ // No operand predicates |
| 2923 | /* 2207 */ // MIs[0] x |
| 2924 | /* 2207 */ // No operand predicates |
| 2925 | /* 2207 */ // MIs[0] zero |
| 2926 | /* 2207 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1] |
| 2927 | /* 2211 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT), |
| 2928 | /* 2215 */ // MIs[1] Operand 1 |
| 2929 | /* 2215 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0), |
| 2930 | /* 2226 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 2931 | /* 2228 */ // Combiner Rule #65: merge_of_x_and_zero |
| 2932 | /* 2228 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner40), |
| 2933 | /* 2231 */ // Label 158: @2231 |
| 2934 | /* 2231 */ GIM_Reject, |
| 2935 | /* 2232 */ // Label 156: @2232 |
| 2936 | /* 2232 */ GIM_Reject, |
| 2937 | /* 2233 */ // Label 13: @2233 |
| 2938 | /* 2233 */ GIM_Try, /*On fail goto*//*Label 159*/ GIMT_Encode4(2244), // Rule ID 142 // |
| 2939 | /* 2238 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule82Enabled), |
| 2940 | /* 2241 */ // Combiner Rule #82: buildvector_identity_fold; wip_match_opcode 'G_BUILD_VECTOR' |
| 2941 | /* 2241 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner48), |
| 2942 | /* 2244 */ // Label 159: @2244 |
| 2943 | /* 2244 */ GIM_Try, /*On fail goto*//*Label 160*/ GIMT_Encode4(2255), // Rule ID 177 // |
| 2944 | /* 2249 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule102Enabled), |
| 2945 | /* 2252 */ // Combiner Rule #102: propagate_undef_all_ops; wip_match_opcode 'G_BUILD_VECTOR' |
| 2946 | /* 2252 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner62), |
| 2947 | /* 2255 */ // Label 160: @2255 |
| 2948 | /* 2255 */ GIM_Try, /*On fail goto*//*Label 161*/ GIMT_Encode4(2266), // Rule ID 216 // |
| 2949 | /* 2260 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule113Enabled), |
| 2950 | /* 2263 */ // Combiner Rule #113: extract_all_elts_from_build_vector; wip_match_opcode 'G_BUILD_VECTOR' |
| 2951 | /* 2263 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner73), |
| 2952 | /* 2266 */ // Label 161: @2266 |
| 2953 | /* 2266 */ GIM_Try, /*On fail goto*//*Label 162*/ GIMT_Encode4(2308), |
| 2954 | /* 2271 */ GIM_CheckNumOperandsGE, /*MI*/0, /*Expected*/2, |
| 2955 | /* 2274 */ GIM_Try, /*On fail goto*//*Label 163*/ GIMT_Encode4(2285), // Rule ID 78 // |
| 2956 | /* 2279 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule66Enabled), |
| 2957 | /* 2282 */ // MIs[0] dst |
| 2958 | /* 2282 */ // No operand predicates |
| 2959 | /* 2282 */ // MIs[0] unused |
| 2960 | /* 2282 */ // No operand predicates |
| 2961 | /* 2282 */ // Combiner Rule #66: combine_build_unmerge |
| 2962 | /* 2282 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner41), |
| 2963 | /* 2285 */ // Label 163: @2285 |
| 2964 | /* 2285 */ GIM_Try, /*On fail goto*//*Label 164*/ GIMT_Encode4(2296), // Rule ID 185 // |
| 2965 | /* 2290 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule109Enabled), |
| 2966 | /* 2293 */ // MIs[0] dst |
| 2967 | /* 2293 */ // No operand predicates |
| 2968 | /* 2293 */ // MIs[0] unused |
| 2969 | /* 2293 */ // No operand predicates |
| 2970 | /* 2293 */ // Combiner Rule #109: combine_build_vector_of_bitcast |
| 2971 | /* 2293 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner69), |
| 2972 | /* 2296 */ // Label 164: @2296 |
| 2973 | /* 2296 */ GIM_Try, /*On fail goto*//*Label 165*/ GIMT_Encode4(2307), // Rule ID 219 // |
| 2974 | /* 2301 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule116Enabled), |
| 2975 | /* 2304 */ // MIs[0] dst |
| 2976 | /* 2304 */ // No operand predicates |
| 2977 | /* 2304 */ // MIs[0] unused |
| 2978 | /* 2304 */ // No operand predicates |
| 2979 | /* 2304 */ // Combiner Rule #116: combine_use_vector_truncate |
| 2980 | /* 2304 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner76), |
| 2981 | /* 2307 */ // Label 165: @2307 |
| 2982 | /* 2307 */ GIM_Reject, |
| 2983 | /* 2308 */ // Label 162: @2308 |
| 2984 | /* 2308 */ GIM_Reject, |
| 2985 | /* 2309 */ // Label 14: @2309 |
| 2986 | /* 2309 */ GIM_Try, /*On fail goto*//*Label 166*/ GIMT_Encode4(2320), // Rule ID 141 // |
| 2987 | /* 2314 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule82Enabled), |
| 2988 | /* 2317 */ // Combiner Rule #82: buildvector_identity_fold; wip_match_opcode 'G_BUILD_VECTOR_TRUNC' |
| 2989 | /* 2317 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner48), |
| 2990 | /* 2320 */ // Label 166: @2320 |
| 2991 | /* 2320 */ GIM_Reject, |
| 2992 | /* 2321 */ // Label 15: @2321 |
| 2993 | /* 2321 */ GIM_Try, /*On fail goto*//*Label 167*/ GIMT_Encode4(2332), // Rule ID 184 // |
| 2994 | /* 2326 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule108Enabled), |
| 2995 | /* 2329 */ // Combiner Rule #108: combine_concat_vector; wip_match_opcode 'G_CONCAT_VECTORS' |
| 2996 | /* 2329 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner68), |
| 2997 | /* 2332 */ // Label 167: @2332 |
| 2998 | /* 2332 */ GIM_Reject, |
| 2999 | /* 2333 */ // Label 16: @2333 |
| 3000 | /* 2333 */ GIM_Try, /*On fail goto*//*Label 168*/ GIMT_Encode4(2354), // Rule ID 134 // |
| 3001 | /* 2338 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule76Enabled), |
| 3002 | /* 2341 */ // MIs[0] dst |
| 3003 | /* 2341 */ // No operand predicates |
| 3004 | /* 2341 */ // MIs[0] t |
| 3005 | /* 2341 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 3006 | /* 2345 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_INTTOPTR), |
| 3007 | /* 2349 */ // MIs[1] ptr |
| 3008 | /* 2349 */ // No operand predicates |
| 3009 | /* 2349 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 3010 | /* 2351 */ // Combiner Rule #76: i2p_to_p2i |
| 3011 | /* 2351 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner46), |
| 3012 | /* 2354 */ // Label 168: @2354 |
| 3013 | /* 2354 */ GIM_Try, /*On fail goto*//*Label 169*/ GIMT_Encode4(2375), // Rule ID 169 // |
| 3014 | /* 2359 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule100Enabled), |
| 3015 | /* 2362 */ // MIs[0] dst |
| 3016 | /* 2362 */ // No operand predicates |
| 3017 | /* 2362 */ // MIs[0] __unary_undef_to_undef_match_0.x |
| 3018 | /* 2362 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 3019 | /* 2366 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF), |
| 3020 | /* 2370 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 3021 | /* 2372 */ // Combiner Rule #100: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[3]] |
| 3022 | /* 2372 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner60), |
| 3023 | /* 2375 */ // Label 169: @2375 |
| 3024 | /* 2375 */ GIM_Reject, |
| 3025 | /* 2376 */ // Label 17: @2376 |
| 3026 | /* 2376 */ GIM_Try, /*On fail goto*//*Label 170*/ GIMT_Encode4(2387), // Rule ID 133 // |
| 3027 | /* 2381 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule75Enabled), |
| 3028 | /* 2384 */ // Combiner Rule #75: p2i_to_i2p; wip_match_opcode 'G_INTTOPTR' |
| 3029 | /* 2384 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner45), |
| 3030 | /* 2387 */ // Label 170: @2387 |
| 3031 | /* 2387 */ GIM_Try, /*On fail goto*//*Label 171*/ GIMT_Encode4(2408), // Rule ID 170 // |
| 3032 | /* 2392 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule100Enabled), |
| 3033 | /* 2395 */ // MIs[0] dst |
| 3034 | /* 2395 */ // No operand predicates |
| 3035 | /* 2395 */ // MIs[0] __unary_undef_to_undef_match_0.x |
| 3036 | /* 2395 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 3037 | /* 2399 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF), |
| 3038 | /* 2403 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 3039 | /* 2405 */ // Combiner Rule #100: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[4]] |
| 3040 | /* 2405 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner60), |
| 3041 | /* 2408 */ // Label 171: @2408 |
| 3042 | /* 2408 */ GIM_Reject, |
| 3043 | /* 2409 */ // Label 18: @2409 |
| 3044 | /* 2409 */ GIM_Try, /*On fail goto*//*Label 172*/ GIMT_Encode4(2441), // Rule ID 146 // |
| 3045 | /* 2414 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule86Enabled), |
| 3046 | /* 2417 */ // MIs[0] dst |
| 3047 | /* 2417 */ // No operand predicates |
| 3048 | /* 2417 */ // MIs[0] src1 |
| 3049 | /* 2417 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 3050 | /* 2421 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BITCAST), |
| 3051 | /* 2425 */ // MIs[1] src0 |
| 3052 | /* 2425 */ // No operand predicates |
| 3053 | /* 2425 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner2), |
| 3054 | /* 2429 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 3055 | /* 2431 */ // Combiner Rule #86: bitcast_bitcast_to_bitcast |
| 3056 | /* 2431 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_BITCAST), |
| 3057 | /* 2434 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst |
| 3058 | /* 2436 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // src0 |
| 3059 | /* 2440 */ GIR_EraseRootFromParent_Done, |
| 3060 | /* 2441 */ // Label 172: @2441 |
| 3061 | /* 2441 */ GIM_Try, /*On fail goto*//*Label 173*/ GIMT_Encode4(2462), // Rule ID 145 // |
| 3062 | /* 2446 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule85Enabled), |
| 3063 | /* 2449 */ // MIs[0] dst |
| 3064 | /* 2449 */ // No operand predicates |
| 3065 | /* 2449 */ // MIs[0] src1 |
| 3066 | /* 2449 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 3067 | /* 2453 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BITCAST), |
| 3068 | /* 2457 */ // MIs[1] src0 |
| 3069 | /* 2457 */ // No operand predicates |
| 3070 | /* 2457 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 3071 | /* 2459 */ // Combiner Rule #85: bitcast_bitcast_fold |
| 3072 | /* 2459 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner51), |
| 3073 | /* 2462 */ // Label 173: @2462 |
| 3074 | /* 2462 */ GIM_Try, /*On fail goto*//*Label 174*/ GIMT_Encode4(2483), // Rule ID 167 // |
| 3075 | /* 2467 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule100Enabled), |
| 3076 | /* 2470 */ // MIs[0] dst |
| 3077 | /* 2470 */ // No operand predicates |
| 3078 | /* 2470 */ // MIs[0] __unary_undef_to_undef_match_0.x |
| 3079 | /* 2470 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 3080 | /* 2474 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF), |
| 3081 | /* 2478 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 3082 | /* 2480 */ // Combiner Rule #100: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[1]] |
| 3083 | /* 2480 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner60), |
| 3084 | /* 2483 */ // Label 174: @2483 |
| 3085 | /* 2483 */ GIM_Reject, |
| 3086 | /* 2484 */ // Label 19: @2484 |
| 3087 | /* 2484 */ GIM_Try, /*On fail goto*//*Label 175*/ GIMT_Encode4(2495), // Rule ID 217 // |
| 3088 | /* 2489 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule114Enabled), |
| 3089 | /* 2492 */ // MIs[0] dst |
| 3090 | /* 2492 */ // No operand predicates |
| 3091 | /* 2492 */ // MIs[0] src |
| 3092 | /* 2492 */ // No operand predicates |
| 3093 | /* 2492 */ // Combiner Rule #114: push_freeze_to_prevent_poison_from_propagating |
| 3094 | /* 2492 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner74), |
| 3095 | /* 2495 */ // Label 175: @2495 |
| 3096 | /* 2495 */ GIM_Reject, |
| 3097 | /* 2496 */ // Label 20: @2496 |
| 3098 | /* 2496 */ GIM_Try, /*On fail goto*//*Label 176*/ GIMT_Encode4(2517), // Rule ID 20 // |
| 3099 | /* 2501 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule20Enabled), |
| 3100 | /* 2504 */ // MIs[0] dst |
| 3101 | /* 2504 */ // No operand predicates |
| 3102 | /* 2504 */ // MIs[0] src0 |
| 3103 | /* 2504 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 3104 | /* 2508 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT), |
| 3105 | /* 2512 */ // MIs[1] cst |
| 3106 | /* 2512 */ // No operand predicates |
| 3107 | /* 2512 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 3108 | /* 2514 */ // Combiner Rule #20: constant_fold_intrinsic_trunc |
| 3109 | /* 2514 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner4), |
| 3110 | /* 2517 */ // Label 176: @2517 |
| 3111 | /* 2517 */ GIM_Reject, |
| 3112 | /* 2518 */ // Label 21: @2518 |
| 3113 | /* 2518 */ GIM_Try, /*On fail goto*//*Label 177*/ GIMT_Encode4(2539), // Rule ID 21 // |
| 3114 | /* 2523 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule21Enabled), |
| 3115 | /* 2526 */ // MIs[0] dst |
| 3116 | /* 2526 */ // No operand predicates |
| 3117 | /* 2526 */ // MIs[0] src0 |
| 3118 | /* 2526 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 3119 | /* 2530 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT), |
| 3120 | /* 2534 */ // MIs[1] cst |
| 3121 | /* 2534 */ // No operand predicates |
| 3122 | /* 2534 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 3123 | /* 2536 */ // Combiner Rule #21: constant_fold_intrinsic_round |
| 3124 | /* 2536 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner4), |
| 3125 | /* 2539 */ // Label 177: @2539 |
| 3126 | /* 2539 */ GIM_Reject, |
| 3127 | /* 2540 */ // Label 22: @2540 |
| 3128 | /* 2540 */ GIM_Try, /*On fail goto*//*Label 178*/ GIMT_Encode4(2561), // Rule ID 22 // |
| 3129 | /* 2545 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule22Enabled), |
| 3130 | /* 2548 */ // MIs[0] dst |
| 3131 | /* 2548 */ // No operand predicates |
| 3132 | /* 2548 */ // MIs[0] src0 |
| 3133 | /* 2548 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 3134 | /* 2552 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT), |
| 3135 | /* 2556 */ // MIs[1] cst |
| 3136 | /* 2556 */ // No operand predicates |
| 3137 | /* 2556 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 3138 | /* 2558 */ // Combiner Rule #22: constant_fold_intrinsic_roundeven |
| 3139 | /* 2558 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner4), |
| 3140 | /* 2561 */ // Label 178: @2561 |
| 3141 | /* 2561 */ GIM_Reject, |
| 3142 | /* 2562 */ // Label 23: @2562 |
| 3143 | /* 2562 */ GIM_Try, /*On fail goto*//*Label 179*/ GIMT_Encode4(2573), // Rule ID 30 // |
| 3144 | /* 2567 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule30Enabled), |
| 3145 | /* 2570 */ // Combiner Rule #30: extending_loads; wip_match_opcode 'G_LOAD' |
| 3146 | /* 2570 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner9), |
| 3147 | /* 2573 */ // Label 179: @2573 |
| 3148 | /* 2573 */ GIM_Try, /*On fail goto*//*Label 180*/ GIMT_Encode4(2584), // Rule ID 34 // |
| 3149 | /* 2578 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule32Enabled), |
| 3150 | /* 2581 */ // Combiner Rule #32: combine_indexed_load_store; wip_match_opcode 'G_LOAD' |
| 3151 | /* 2581 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner11), |
| 3152 | /* 2584 */ // Label 180: @2584 |
| 3153 | /* 2584 */ GIM_Reject, |
| 3154 | /* 2585 */ // Label 24: @2585 |
| 3155 | /* 2585 */ GIM_Try, /*On fail goto*//*Label 181*/ GIMT_Encode4(2596), // Rule ID 31 // |
| 3156 | /* 2590 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule30Enabled), |
| 3157 | /* 2593 */ // Combiner Rule #30: extending_loads; wip_match_opcode 'G_SEXTLOAD' |
| 3158 | /* 2593 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner9), |
| 3159 | /* 2596 */ // Label 181: @2596 |
| 3160 | /* 2596 */ GIM_Try, /*On fail goto*//*Label 182*/ GIMT_Encode4(2607), // Rule ID 35 // |
| 3161 | /* 2601 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule32Enabled), |
| 3162 | /* 2604 */ // Combiner Rule #32: combine_indexed_load_store; wip_match_opcode 'G_SEXTLOAD' |
| 3163 | /* 2604 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner11), |
| 3164 | /* 2607 */ // Label 182: @2607 |
| 3165 | /* 2607 */ GIM_Reject, |
| 3166 | /* 2608 */ // Label 25: @2608 |
| 3167 | /* 2608 */ GIM_Try, /*On fail goto*//*Label 183*/ GIMT_Encode4(2619), // Rule ID 32 // |
| 3168 | /* 2613 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule30Enabled), |
| 3169 | /* 2616 */ // Combiner Rule #30: extending_loads; wip_match_opcode 'G_ZEXTLOAD' |
| 3170 | /* 2616 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner9), |
| 3171 | /* 2619 */ // Label 183: @2619 |
| 3172 | /* 2619 */ GIM_Try, /*On fail goto*//*Label 184*/ GIMT_Encode4(2630), // Rule ID 36 // |
| 3173 | /* 2624 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule32Enabled), |
| 3174 | /* 2627 */ // Combiner Rule #32: combine_indexed_load_store; wip_match_opcode 'G_ZEXTLOAD' |
| 3175 | /* 2627 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner11), |
| 3176 | /* 2630 */ // Label 184: @2630 |
| 3177 | /* 2630 */ GIM_Reject, |
| 3178 | /* 2631 */ // Label 26: @2631 |
| 3179 | /* 2631 */ GIM_Try, /*On fail goto*//*Label 185*/ GIMT_Encode4(2642), // Rule ID 37 // |
| 3180 | /* 2636 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule32Enabled), |
| 3181 | /* 2639 */ // Combiner Rule #32: combine_indexed_load_store; wip_match_opcode 'G_STORE' |
| 3182 | /* 2639 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner11), |
| 3183 | /* 2642 */ // Label 185: @2642 |
| 3184 | /* 2642 */ GIM_Try, /*On fail goto*//*Label 186*/ GIMT_Encode4(2653), // Rule ID 179 // |
| 3185 | /* 2647 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule104Enabled), |
| 3186 | /* 2650 */ // Combiner Rule #104: erase_undef_store; wip_match_opcode 'G_STORE' |
| 3187 | /* 2650 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner64), |
| 3188 | /* 2653 */ // Label 186: @2653 |
| 3189 | /* 2653 */ GIM_Try, /*On fail goto*//*Label 187*/ GIMT_Encode4(2664), // Rule ID 153 // |
| 3190 | /* 2658 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule93Enabled), |
| 3191 | /* 2661 */ // MIs[0] src |
| 3192 | /* 2661 */ // No operand predicates |
| 3193 | /* 2661 */ // MIs[0] addr |
| 3194 | /* 2661 */ // No operand predicates |
| 3195 | /* 2661 */ // Combiner Rule #93: split_store_zero_128 |
| 3196 | /* 2661 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner54), |
| 3197 | /* 2664 */ // Label 187: @2664 |
| 3198 | /* 2664 */ GIM_Reject, |
| 3199 | /* 2665 */ // Label 27: @2665 |
| 3200 | /* 2665 */ GIM_Try, /*On fail goto*//*Label 188*/ GIMT_Encode4(2676), // Rule ID 29 // |
| 3201 | /* 2670 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule29Enabled), |
| 3202 | /* 2673 */ // Combiner Rule #29: mutate_anyext_to_zext; wip_match_opcode 'G_ANYEXT' |
| 3203 | /* 2673 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner8), |
| 3204 | /* 2676 */ // Label 188: @2676 |
| 3205 | /* 2676 */ GIM_Try, /*On fail goto*//*Label 189*/ GIMT_Encode4(2687), // Rule ID 135 // |
| 3206 | /* 2681 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule77Enabled), |
| 3207 | /* 2684 */ // Combiner Rule #77: anyext_trunc_fold; wip_match_opcode 'G_ANYEXT' |
| 3208 | /* 2684 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner47), |
| 3209 | /* 2687 */ // Label 189: @2687 |
| 3210 | /* 2687 */ GIM_Try, /*On fail goto*//*Label 190*/ GIMT_Encode4(2708), // Rule ID 8 // |
| 3211 | /* 2692 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule8Enabled), |
| 3212 | /* 2695 */ // MIs[0] root |
| 3213 | /* 2695 */ // No operand predicates |
| 3214 | /* 2695 */ // MIs[0] second |
| 3215 | /* 2695 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 3216 | /* 2699 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ANYEXT), |
| 3217 | /* 2703 */ // MIs[1] src |
| 3218 | /* 2703 */ // No operand predicates |
| 3219 | /* 2703 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 3220 | /* 2705 */ // Combiner Rule #8: anyext_of_anyext |
| 3221 | /* 2705 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner2), |
| 3222 | /* 2708 */ // Label 190: @2708 |
| 3223 | /* 2708 */ GIM_Try, /*On fail goto*//*Label 191*/ GIMT_Encode4(2729), // Rule ID 10 // |
| 3224 | /* 2713 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule10Enabled), |
| 3225 | /* 2716 */ // MIs[0] root |
| 3226 | /* 2716 */ // No operand predicates |
| 3227 | /* 2716 */ // MIs[0] second |
| 3228 | /* 2716 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 3229 | /* 2720 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SEXT), |
| 3230 | /* 2724 */ // MIs[1] src |
| 3231 | /* 2724 */ // No operand predicates |
| 3232 | /* 2724 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 3233 | /* 2726 */ // Combiner Rule #10: anyext_of_sext |
| 3234 | /* 2726 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner2), |
| 3235 | /* 2729 */ // Label 191: @2729 |
| 3236 | /* 2729 */ GIM_Try, /*On fail goto*//*Label 192*/ GIMT_Encode4(2750), // Rule ID 9 // |
| 3237 | /* 2734 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule9Enabled), |
| 3238 | /* 2737 */ // MIs[0] root |
| 3239 | /* 2737 */ // No operand predicates |
| 3240 | /* 2737 */ // MIs[0] second |
| 3241 | /* 2737 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 3242 | /* 2741 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ZEXT), |
| 3243 | /* 2745 */ // MIs[1] src |
| 3244 | /* 2745 */ // No operand predicates |
| 3245 | /* 2745 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 3246 | /* 2747 */ // Combiner Rule #9: anyext_of_zext |
| 3247 | /* 2747 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner2), |
| 3248 | /* 2750 */ // Label 192: @2750 |
| 3249 | /* 2750 */ GIM_Try, /*On fail goto*//*Label 193*/ GIMT_Encode4(2771), // Rule ID 168 // |
| 3250 | /* 2755 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule100Enabled), |
| 3251 | /* 2758 */ // MIs[0] dst |
| 3252 | /* 2758 */ // No operand predicates |
| 3253 | /* 2758 */ // MIs[0] __unary_undef_to_undef_match_0.x |
| 3254 | /* 2758 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 3255 | /* 2762 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF), |
| 3256 | /* 2766 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 3257 | /* 2768 */ // Combiner Rule #100: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[2]] |
| 3258 | /* 2768 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner60), |
| 3259 | /* 2771 */ // Label 193: @2771 |
| 3260 | /* 2771 */ GIM_Reject, |
| 3261 | /* 2772 */ // Label 28: @2772 |
| 3262 | /* 2772 */ GIM_Try, /*On fail goto*//*Label 194*/ GIMT_Encode4(2783), // Rule ID 143 // |
| 3263 | /* 2777 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule83Enabled), |
| 3264 | /* 2780 */ // Combiner Rule #83: trunc_buildvector_fold; wip_match_opcode 'G_TRUNC' |
| 3265 | /* 2780 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner49), |
| 3266 | /* 2783 */ // Label 194: @2783 |
| 3267 | /* 2783 */ GIM_Try, /*On fail goto*//*Label 195*/ GIMT_Encode4(2794), // Rule ID 144 // |
| 3268 | /* 2788 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule84Enabled), |
| 3269 | /* 2791 */ // Combiner Rule #84: trunc_lshr_buildvector_fold; wip_match_opcode 'G_TRUNC' |
| 3270 | /* 2791 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner50), |
| 3271 | /* 2794 */ // Label 195: @2794 |
| 3272 | /* 2794 */ GIM_Try, /*On fail goto*//*Label 196*/ GIMT_Encode4(2826), // Rule ID 224 // |
| 3273 | /* 2799 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule121Enabled), |
| 3274 | /* 2802 */ // MIs[0] dst |
| 3275 | /* 2802 */ // No operand predicates |
| 3276 | /* 2802 */ // MIs[0] min |
| 3277 | /* 2802 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 3278 | /* 2806 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_UMIN), |
| 3279 | /* 2810 */ // MIs[1] x |
| 3280 | /* 2810 */ // No operand predicates |
| 3281 | /* 2810 */ // MIs[1] y |
| 3282 | /* 2810 */ // No operand predicates |
| 3283 | /* 2810 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner6), |
| 3284 | /* 2814 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 3285 | /* 2816 */ // Combiner Rule #121: trunc_usatu |
| 3286 | /* 2816 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_TRUNC_USAT_U), |
| 3287 | /* 2819 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst |
| 3288 | /* 2821 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x |
| 3289 | /* 2825 */ GIR_EraseRootFromParent_Done, |
| 3290 | /* 2826 */ // Label 196: @2826 |
| 3291 | /* 2826 */ GIM_Try, /*On fail goto*//*Label 197*/ GIMT_Encode4(2847), // Rule ID 3 // |
| 3292 | /* 2831 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule3Enabled), |
| 3293 | /* 2834 */ // MIs[0] root |
| 3294 | /* 2834 */ // No operand predicates |
| 3295 | /* 2834 */ // MIs[0] ext |
| 3296 | /* 2834 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 3297 | /* 2838 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ANYEXT), |
| 3298 | /* 2842 */ // MIs[1] src |
| 3299 | /* 2842 */ // No operand predicates |
| 3300 | /* 2842 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 3301 | /* 2844 */ // Combiner Rule #3: truncate_of_anyext |
| 3302 | /* 2844 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner1), |
| 3303 | /* 2847 */ // Label 197: @2847 |
| 3304 | /* 2847 */ GIM_Try, /*On fail goto*//*Label 198*/ GIMT_Encode4(2871), // Rule ID 27 // |
| 3305 | /* 2852 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule27Enabled), |
| 3306 | /* 2855 */ // MIs[0] root |
| 3307 | /* 2855 */ // No operand predicates |
| 3308 | /* 2855 */ // MIs[0] bv |
| 3309 | /* 2855 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 3310 | /* 2859 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_BUILD_VECTOR), |
| 3311 | /* 2863 */ GIM_CheckNumOperandsGE, /*MI*/1, /*Expected*/2, |
| 3312 | /* 2866 */ // MIs[1] unused |
| 3313 | /* 2866 */ // No operand predicates |
| 3314 | /* 2866 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 3315 | /* 2868 */ // Combiner Rule #27: buildvector_of_truncate |
| 3316 | /* 2868 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner6), |
| 3317 | /* 2871 */ // Label 198: @2871 |
| 3318 | /* 2871 */ GIM_Try, /*On fail goto*//*Label 199*/ GIMT_Encode4(2892), // Rule ID 2 // |
| 3319 | /* 2876 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule2Enabled), |
| 3320 | /* 2879 */ // MIs[0] root |
| 3321 | /* 2879 */ // No operand predicates |
| 3322 | /* 2879 */ // MIs[0] ext |
| 3323 | /* 2879 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 3324 | /* 2883 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SEXT), |
| 3325 | /* 2887 */ // MIs[1] src |
| 3326 | /* 2887 */ // No operand predicates |
| 3327 | /* 2887 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 3328 | /* 2889 */ // Combiner Rule #2: truncate_of_sext |
| 3329 | /* 2889 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner1), |
| 3330 | /* 2892 */ // Label 199: @2892 |
| 3331 | /* 2892 */ GIM_Try, /*On fail goto*//*Label 200*/ GIMT_Encode4(2913), // Rule ID 1 // |
| 3332 | /* 2897 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule1Enabled), |
| 3333 | /* 2900 */ // MIs[0] root |
| 3334 | /* 2900 */ // No operand predicates |
| 3335 | /* 2900 */ // MIs[0] ext |
| 3336 | /* 2900 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 3337 | /* 2904 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ZEXT), |
| 3338 | /* 2908 */ // MIs[1] src |
| 3339 | /* 2908 */ // No operand predicates |
| 3340 | /* 2908 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 3341 | /* 2910 */ // Combiner Rule #1: truncate_of_zext |
| 3342 | /* 2910 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner1), |
| 3343 | /* 2913 */ // Label 200: @2913 |
| 3344 | /* 2913 */ GIM_Try, /*On fail goto*//*Label 201*/ GIMT_Encode4(2934), // Rule ID 166 // |
| 3345 | /* 2918 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule100Enabled), |
| 3346 | /* 2921 */ // MIs[0] dst |
| 3347 | /* 2921 */ // No operand predicates |
| 3348 | /* 2921 */ // MIs[0] __unary_undef_to_undef_match_0.x |
| 3349 | /* 2921 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 3350 | /* 2925 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF), |
| 3351 | /* 2929 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 3352 | /* 2931 */ // Combiner Rule #100: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[0]] |
| 3353 | /* 2931 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner60), |
| 3354 | /* 2934 */ // Label 201: @2934 |
| 3355 | /* 2934 */ GIM_Try, /*On fail goto*//*Label 202*/ GIMT_Encode4(2955), // Rule ID 28 // |
| 3356 | /* 2939 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule28Enabled), |
| 3357 | /* 2942 */ // MIs[0] root |
| 3358 | /* 2942 */ // No operand predicates |
| 3359 | /* 2942 */ // MIs[0] int |
| 3360 | /* 2942 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 3361 | /* 2946 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT), |
| 3362 | /* 2950 */ // MIs[1] imm |
| 3363 | /* 2950 */ // No operand predicates |
| 3364 | /* 2950 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 3365 | /* 2952 */ // Combiner Rule #28: integer_of_truncate |
| 3366 | /* 2952 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner7), |
| 3367 | /* 2955 */ // Label 202: @2955 |
| 3368 | /* 2955 */ GIM_Try, /*On fail goto*//*Label 203*/ GIMT_Encode4(2966), // Rule ID 222 // |
| 3369 | /* 2960 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule119Enabled), |
| 3370 | /* 2963 */ // MIs[0] dst |
| 3371 | /* 2963 */ // No operand predicates |
| 3372 | /* 2963 */ // MIs[0] src |
| 3373 | /* 2963 */ // No operand predicates |
| 3374 | /* 2963 */ // Combiner Rule #119: trunc_ssats |
| 3375 | /* 2963 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner79), |
| 3376 | /* 2966 */ // Label 203: @2966 |
| 3377 | /* 2966 */ GIM_Try, /*On fail goto*//*Label 204*/ GIMT_Encode4(2977), // Rule ID 223 // |
| 3378 | /* 2971 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule120Enabled), |
| 3379 | /* 2974 */ // MIs[0] dst |
| 3380 | /* 2974 */ // No operand predicates |
| 3381 | /* 2974 */ // MIs[0] src |
| 3382 | /* 2974 */ // No operand predicates |
| 3383 | /* 2974 */ // Combiner Rule #120: trunc_ssatu |
| 3384 | /* 2974 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner80), |
| 3385 | /* 2977 */ // Label 204: @2977 |
| 3386 | /* 2977 */ GIM_Reject, |
| 3387 | /* 2978 */ // Label 29: @2978 |
| 3388 | /* 2978 */ GIM_Try, /*On fail goto*//*Label 205*/ GIMT_Encode4(3010), // Rule ID 225 // |
| 3389 | /* 2983 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule122Enabled), |
| 3390 | /* 2986 */ // MIs[0] dst |
| 3391 | /* 2986 */ // No operand predicates |
| 3392 | /* 2986 */ // MIs[0] src |
| 3393 | /* 2986 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 3394 | /* 2990 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FPTOUI), |
| 3395 | /* 2994 */ // MIs[1] x |
| 3396 | /* 2994 */ // No operand predicates |
| 3397 | /* 2994 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner7), |
| 3398 | /* 2998 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 3399 | /* 3000 */ // Combiner Rule #122: truncusatu_to_fptouisat |
| 3400 | /* 3000 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FPTOUI_SAT), |
| 3401 | /* 3003 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst |
| 3402 | /* 3005 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x |
| 3403 | /* 3009 */ GIR_EraseRootFromParent_Done, |
| 3404 | /* 3010 */ // Label 205: @3010 |
| 3405 | /* 3010 */ GIM_Reject, |
| 3406 | /* 3011 */ // Label 30: @3011 |
| 3407 | /* 3011 */ GIM_Try, /*On fail goto*//*Label 206*/ GIMT_Encode4(3032), // Rule ID 7 // |
| 3408 | /* 3016 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule7Enabled), |
| 3409 | /* 3019 */ // MIs[0] root |
| 3410 | /* 3019 */ // No operand predicates |
| 3411 | /* 3019 */ // MIs[0] second |
| 3412 | /* 3019 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 3413 | /* 3023 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ANYEXT), |
| 3414 | /* 3027 */ // MIs[1] src |
| 3415 | /* 3027 */ // No operand predicates |
| 3416 | /* 3027 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 3417 | /* 3029 */ // Combiner Rule #7: sext_of_anyext |
| 3418 | /* 3029 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner2), |
| 3419 | /* 3032 */ // Label 206: @3032 |
| 3420 | /* 3032 */ GIM_Try, /*On fail goto*//*Label 207*/ GIMT_Encode4(3053), // Rule ID 6 // |
| 3421 | /* 3037 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule6Enabled), |
| 3422 | /* 3040 */ // MIs[0] root |
| 3423 | /* 3040 */ // No operand predicates |
| 3424 | /* 3040 */ // MIs[0] second |
| 3425 | /* 3040 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 3426 | /* 3044 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SEXT), |
| 3427 | /* 3048 */ // MIs[1] src |
| 3428 | /* 3048 */ // No operand predicates |
| 3429 | /* 3048 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 3430 | /* 3050 */ // Combiner Rule #6: sext_of_sext |
| 3431 | /* 3050 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner2), |
| 3432 | /* 3053 */ // Label 207: @3053 |
| 3433 | /* 3053 */ GIM_Reject, |
| 3434 | /* 3054 */ // Label 31: @3054 |
| 3435 | /* 3054 */ GIM_Try, /*On fail goto*//*Label 208*/ GIMT_Encode4(3065), // Rule ID 38 // |
| 3436 | /* 3059 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule33Enabled), |
| 3437 | /* 3062 */ // Combiner Rule #33: sext_trunc_sextload; wip_match_opcode 'G_SEXT_INREG' |
| 3438 | /* 3062 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner12), |
| 3439 | /* 3065 */ // Label 208: @3065 |
| 3440 | /* 3065 */ GIM_Try, /*On fail goto*//*Label 209*/ GIMT_Encode4(3076), // Rule ID 47 // |
| 3441 | /* 3070 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule40Enabled), |
| 3442 | /* 3073 */ // Combiner Rule #40: redundant_sext_inreg; wip_match_opcode 'G_SEXT_INREG' |
| 3443 | /* 3073 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner19), |
| 3444 | /* 3076 */ // Label 209: @3076 |
| 3445 | /* 3076 */ GIM_Try, /*On fail goto*//*Label 210*/ GIMT_Encode4(3087), // Rule ID 48 // |
| 3446 | /* 3081 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule41Enabled), |
| 3447 | /* 3084 */ // Combiner Rule #41: bitfield_extract_from_sext_inreg; wip_match_opcode 'G_SEXT_INREG' |
| 3448 | /* 3084 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner20), |
| 3449 | /* 3087 */ // Label 210: @3087 |
| 3450 | /* 3087 */ GIM_Try, /*On fail goto*//*Label 211*/ GIMT_Encode4(3108), // Rule ID 11 // |
| 3451 | /* 3092 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule11Enabled), |
| 3452 | /* 3095 */ // MIs[0] dst |
| 3453 | /* 3095 */ // No operand predicates |
| 3454 | /* 3095 */ // MIs[0] x |
| 3455 | /* 3095 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 3456 | /* 3099 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_SEXT_INREG), |
| 3457 | /* 3103 */ // MIs[1] src |
| 3458 | /* 3103 */ // No operand predicates |
| 3459 | /* 3103 */ // MIs[1] a |
| 3460 | /* 3103 */ // No operand predicates |
| 3461 | /* 3103 */ // MIs[0] b |
| 3462 | /* 3103 */ // No operand predicates |
| 3463 | /* 3103 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 3464 | /* 3105 */ // Combiner Rule #11: sext_inreg_of_sext_inreg |
| 3465 | /* 3105 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner3), |
| 3466 | /* 3108 */ // Label 211: @3108 |
| 3467 | /* 3108 */ GIM_Reject, |
| 3468 | /* 3109 */ // Label 32: @3109 |
| 3469 | /* 3109 */ GIM_Try, /*On fail goto*//*Label 212*/ GIMT_Encode4(3130), // Rule ID 5 // |
| 3470 | /* 3114 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule5Enabled), |
| 3471 | /* 3117 */ // MIs[0] root |
| 3472 | /* 3117 */ // No operand predicates |
| 3473 | /* 3117 */ // MIs[0] second |
| 3474 | /* 3117 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 3475 | /* 3121 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ANYEXT), |
| 3476 | /* 3125 */ // MIs[1] src |
| 3477 | /* 3125 */ // No operand predicates |
| 3478 | /* 3125 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 3479 | /* 3127 */ // Combiner Rule #5: zext_of_anyext |
| 3480 | /* 3127 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner2), |
| 3481 | /* 3130 */ // Label 212: @3130 |
| 3482 | /* 3130 */ GIM_Try, /*On fail goto*//*Label 213*/ GIMT_Encode4(3151), // Rule ID 4 // |
| 3483 | /* 3135 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule4Enabled), |
| 3484 | /* 3138 */ // MIs[0] root |
| 3485 | /* 3138 */ // No operand predicates |
| 3486 | /* 3138 */ // MIs[0] second |
| 3487 | /* 3138 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 3488 | /* 3142 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ZEXT), |
| 3489 | /* 3146 */ // MIs[1] src |
| 3490 | /* 3146 */ // No operand predicates |
| 3491 | /* 3146 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 3492 | /* 3148 */ // Combiner Rule #4: zext_of_zext |
| 3493 | /* 3148 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner2), |
| 3494 | /* 3151 */ // Label 213: @3151 |
| 3495 | /* 3151 */ GIM_Reject, |
| 3496 | /* 3152 */ // Label 33: @3152 |
| 3497 | /* 3152 */ GIM_Try, /*On fail goto*//*Label 214*/ GIMT_Encode4(3163), // Rule ID 86 // |
| 3498 | /* 3157 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule67Enabled), |
| 3499 | /* 3160 */ // Combiner Rule #67: constant_fold_binop; wip_match_opcode 'G_SHL' |
| 3500 | /* 3160 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner42), |
| 3501 | /* 3163 */ // Label 214: @3163 |
| 3502 | /* 3163 */ GIM_Try, /*On fail goto*//*Label 215*/ GIMT_Encode4(3174), // Rule ID 159 // |
| 3503 | /* 3168 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule97Enabled), |
| 3504 | /* 3171 */ // Combiner Rule #97: binop_left_undef_to_zero; wip_match_opcode 'G_SHL' |
| 3505 | /* 3171 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner58), |
| 3506 | /* 3174 */ // Label 215: @3174 |
| 3507 | /* 3174 */ GIM_Try, /*On fail goto*//*Label 216*/ GIMT_Encode4(3185), // Rule ID 162 // |
| 3508 | /* 3179 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule98Enabled), |
| 3509 | /* 3182 */ // Combiner Rule #98: binop_right_undef_to_undef; wip_match_opcode 'G_SHL' |
| 3510 | /* 3182 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner59), |
| 3511 | /* 3185 */ // Label 216: @3185 |
| 3512 | /* 3185 */ GIM_Try, /*On fail goto*//*Label 217*/ GIMT_Encode4(3225), // Rule ID 124 // |
| 3513 | /* 3190 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule73Enabled), |
| 3514 | /* 3193 */ // MIs[0] dst |
| 3515 | /* 3193 */ // No operand predicates |
| 3516 | /* 3193 */ // MIs[0] zero |
| 3517 | /* 3193 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 3518 | /* 3197 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT), |
| 3519 | /* 3201 */ // MIs[1] Operand 1 |
| 3520 | /* 3201 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0), |
| 3521 | /* 3212 */ // MIs[0] rhs |
| 3522 | /* 3212 */ // No operand predicates |
| 3523 | /* 3212 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 3524 | /* 3217 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 3525 | /* 3219 */ // Combiner Rule #73: binop_left_to_zero @ [__binop_left_to_zero_match_0[0]] |
| 3526 | /* 3219 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 3527 | /* 3224 */ GIR_EraseRootFromParent_Done, |
| 3528 | /* 3225 */ // Label 217: @3225 |
| 3529 | /* 3225 */ GIM_Try, /*On fail goto*//*Label 218*/ GIMT_Encode4(3248), // Rule ID 114 // |
| 3530 | /* 3230 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule70Enabled), |
| 3531 | /* 3233 */ // MIs[0] dst |
| 3532 | /* 3233 */ // No operand predicates |
| 3533 | /* 3233 */ // MIs[0] lhs |
| 3534 | /* 3233 */ // No operand predicates |
| 3535 | /* 3233 */ // MIs[0] Operand 2 |
| 3536 | /* 3233 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0, |
| 3537 | /* 3237 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 3538 | /* 3242 */ // Combiner Rule #70: right_identity_zero @ [__right_identity_zero_match_0[4]] |
| 3539 | /* 3242 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 3540 | /* 3247 */ GIR_EraseRootFromParent_Done, |
| 3541 | /* 3248 */ // Label 218: @3248 |
| 3542 | /* 3248 */ GIM_Reject, |
| 3543 | /* 3249 */ // Label 34: @3249 |
| 3544 | /* 3249 */ GIM_Try, /*On fail goto*//*Label 219*/ GIMT_Encode4(3260), // Rule ID 51 // |
| 3545 | /* 3254 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule43Enabled), |
| 3546 | /* 3257 */ // Combiner Rule #43: bitfield_extract_from_shr; wip_match_opcode 'G_LSHR' |
| 3547 | /* 3257 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner22), |
| 3548 | /* 3260 */ // Label 219: @3260 |
| 3549 | /* 3260 */ GIM_Try, /*On fail goto*//*Label 220*/ GIMT_Encode4(3271), // Rule ID 53 // |
| 3550 | /* 3265 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule44Enabled), |
| 3551 | /* 3268 */ // Combiner Rule #44: bitfield_extract_from_shr_and; wip_match_opcode 'G_LSHR' |
| 3552 | /* 3268 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner23), |
| 3553 | /* 3271 */ // Label 220: @3271 |
| 3554 | /* 3271 */ GIM_Try, /*On fail goto*//*Label 221*/ GIMT_Encode4(3282), // Rule ID 83 // |
| 3555 | /* 3276 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule67Enabled), |
| 3556 | /* 3279 */ // Combiner Rule #67: constant_fold_binop; wip_match_opcode 'G_LSHR' |
| 3557 | /* 3279 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner42), |
| 3558 | /* 3282 */ // Label 221: @3282 |
| 3559 | /* 3282 */ GIM_Try, /*On fail goto*//*Label 222*/ GIMT_Encode4(3293), // Rule ID 164 // |
| 3560 | /* 3287 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule98Enabled), |
| 3561 | /* 3290 */ // Combiner Rule #98: binop_right_undef_to_undef; wip_match_opcode 'G_LSHR' |
| 3562 | /* 3290 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner59), |
| 3563 | /* 3293 */ // Label 222: @3293 |
| 3564 | /* 3293 */ GIM_Try, /*On fail goto*//*Label 223*/ GIMT_Encode4(3322), // Rule ID 226 // |
| 3565 | /* 3298 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule123Enabled), |
| 3566 | /* 3301 */ // MIs[0] dst |
| 3567 | /* 3301 */ // No operand predicates |
| 3568 | /* 3301 */ // MIs[0] d2 |
| 3569 | /* 3301 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 3570 | /* 3305 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_TRUNC), |
| 3571 | /* 3309 */ // MIs[1] d1 |
| 3572 | /* 3309 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/2, /*MI*/1, /*OpIdx*/1, // MIs[2] |
| 3573 | /* 3313 */ GIM_CheckOpcode, /*MI*/2, GIMT_Encode2(TargetOpcode::G_LSHR), |
| 3574 | /* 3317 */ // MIs[2] x |
| 3575 | /* 3317 */ // No operand predicates |
| 3576 | /* 3317 */ // MIs[2] y |
| 3577 | /* 3317 */ // No operand predicates |
| 3578 | /* 3317 */ // MIs[0] z |
| 3579 | /* 3317 */ // No operand predicates |
| 3580 | /* 3317 */ GIM_CheckIsSafeToFold, /*NumInsns*/2, |
| 3581 | /* 3319 */ // Combiner Rule #123: lshr_of_trunc_of_lshr |
| 3582 | /* 3319 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner81), |
| 3583 | /* 3322 */ // Label 223: @3322 |
| 3584 | /* 3322 */ GIM_Try, /*On fail goto*//*Label 224*/ GIMT_Encode4(3362), // Rule ID 125 // |
| 3585 | /* 3327 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule73Enabled), |
| 3586 | /* 3330 */ // MIs[0] dst |
| 3587 | /* 3330 */ // No operand predicates |
| 3588 | /* 3330 */ // MIs[0] zero |
| 3589 | /* 3330 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 3590 | /* 3334 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT), |
| 3591 | /* 3338 */ // MIs[1] Operand 1 |
| 3592 | /* 3338 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0), |
| 3593 | /* 3349 */ // MIs[0] rhs |
| 3594 | /* 3349 */ // No operand predicates |
| 3595 | /* 3349 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 3596 | /* 3354 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 3597 | /* 3356 */ // Combiner Rule #73: binop_left_to_zero @ [__binop_left_to_zero_match_0[1]] |
| 3598 | /* 3356 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 3599 | /* 3361 */ GIR_EraseRootFromParent_Done, |
| 3600 | /* 3362 */ // Label 224: @3362 |
| 3601 | /* 3362 */ GIM_Try, /*On fail goto*//*Label 225*/ GIMT_Encode4(3385), // Rule ID 116 // |
| 3602 | /* 3367 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule70Enabled), |
| 3603 | /* 3370 */ // MIs[0] dst |
| 3604 | /* 3370 */ // No operand predicates |
| 3605 | /* 3370 */ // MIs[0] lhs |
| 3606 | /* 3370 */ // No operand predicates |
| 3607 | /* 3370 */ // MIs[0] Operand 2 |
| 3608 | /* 3370 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0, |
| 3609 | /* 3374 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 3610 | /* 3379 */ // Combiner Rule #70: right_identity_zero @ [__right_identity_zero_match_0[6]] |
| 3611 | /* 3379 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 3612 | /* 3384 */ GIR_EraseRootFromParent_Done, |
| 3613 | /* 3385 */ // Label 225: @3385 |
| 3614 | /* 3385 */ GIM_Reject, |
| 3615 | /* 3386 */ // Label 35: @3386 |
| 3616 | /* 3386 */ GIM_Try, /*On fail goto*//*Label 226*/ GIMT_Encode4(3397), // Rule ID 50 // |
| 3617 | /* 3391 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule43Enabled), |
| 3618 | /* 3394 */ // Combiner Rule #43: bitfield_extract_from_shr; wip_match_opcode 'G_ASHR' |
| 3619 | /* 3394 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner22), |
| 3620 | /* 3397 */ // Label 226: @3397 |
| 3621 | /* 3397 */ GIM_Try, /*On fail goto*//*Label 227*/ GIMT_Encode4(3408), // Rule ID 52 // |
| 3622 | /* 3402 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule44Enabled), |
| 3623 | /* 3405 */ // Combiner Rule #44: bitfield_extract_from_shr_and; wip_match_opcode 'G_ASHR' |
| 3624 | /* 3405 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner23), |
| 3625 | /* 3408 */ // Label 227: @3408 |
| 3626 | /* 3408 */ GIM_Try, /*On fail goto*//*Label 228*/ GIMT_Encode4(3419), // Rule ID 82 // |
| 3627 | /* 3413 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule67Enabled), |
| 3628 | /* 3416 */ // Combiner Rule #67: constant_fold_binop; wip_match_opcode 'G_ASHR' |
| 3629 | /* 3416 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner42), |
| 3630 | /* 3419 */ // Label 228: @3419 |
| 3631 | /* 3419 */ GIM_Try, /*On fail goto*//*Label 229*/ GIMT_Encode4(3430), // Rule ID 163 // |
| 3632 | /* 3424 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule98Enabled), |
| 3633 | /* 3427 */ // Combiner Rule #98: binop_right_undef_to_undef; wip_match_opcode 'G_ASHR' |
| 3634 | /* 3427 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner59), |
| 3635 | /* 3430 */ // Label 229: @3430 |
| 3636 | /* 3430 */ GIM_Try, /*On fail goto*//*Label 230*/ GIMT_Encode4(3470), // Rule ID 126 // |
| 3637 | /* 3435 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule73Enabled), |
| 3638 | /* 3438 */ // MIs[0] dst |
| 3639 | /* 3438 */ // No operand predicates |
| 3640 | /* 3438 */ // MIs[0] zero |
| 3641 | /* 3438 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 3642 | /* 3442 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_CONSTANT), |
| 3643 | /* 3446 */ // MIs[1] Operand 1 |
| 3644 | /* 3446 */ GIM_CheckLiteralInt, /*MI*/1, /*Op*/1, GIMT_Encode8(0), |
| 3645 | /* 3457 */ // MIs[0] rhs |
| 3646 | /* 3457 */ // No operand predicates |
| 3647 | /* 3457 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 3648 | /* 3462 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 3649 | /* 3464 */ // Combiner Rule #73: binop_left_to_zero @ [__binop_left_to_zero_match_0[2]] |
| 3650 | /* 3464 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 3651 | /* 3469 */ GIR_EraseRootFromParent_Done, |
| 3652 | /* 3470 */ // Label 230: @3470 |
| 3653 | /* 3470 */ GIM_Try, /*On fail goto*//*Label 231*/ GIMT_Encode4(3493), // Rule ID 115 // |
| 3654 | /* 3475 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule70Enabled), |
| 3655 | /* 3478 */ // MIs[0] dst |
| 3656 | /* 3478 */ // No operand predicates |
| 3657 | /* 3478 */ // MIs[0] lhs |
| 3658 | /* 3478 */ // No operand predicates |
| 3659 | /* 3478 */ // MIs[0] Operand 2 |
| 3660 | /* 3478 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0, |
| 3661 | /* 3482 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 3662 | /* 3487 */ // Combiner Rule #70: right_identity_zero @ [__right_identity_zero_match_0[5]] |
| 3663 | /* 3487 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 3664 | /* 3492 */ GIR_EraseRootFromParent_Done, |
| 3665 | /* 3493 */ // Label 231: @3493 |
| 3666 | /* 3493 */ GIM_Reject, |
| 3667 | /* 3494 */ // Label 36: @3494 |
| 3668 | /* 3494 */ GIM_Try, /*On fail goto*//*Label 232*/ GIMT_Encode4(3505), // Rule ID 54 // |
| 3669 | /* 3499 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule45Enabled), |
| 3670 | /* 3502 */ // Combiner Rule #45: rotate_out_of_range; wip_match_opcode 'G_ROTR' |
| 3671 | /* 3502 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner24), |
| 3672 | /* 3505 */ // Label 232: @3505 |
| 3673 | /* 3505 */ GIM_Try, /*On fail goto*//*Label 233*/ GIMT_Encode4(3528), // Rule ID 119 // |
| 3674 | /* 3510 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule70Enabled), |
| 3675 | /* 3513 */ // MIs[0] dst |
| 3676 | /* 3513 */ // No operand predicates |
| 3677 | /* 3513 */ // MIs[0] lhs |
| 3678 | /* 3513 */ // No operand predicates |
| 3679 | /* 3513 */ // MIs[0] Operand 2 |
| 3680 | /* 3513 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0, |
| 3681 | /* 3517 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 3682 | /* 3522 */ // Combiner Rule #70: right_identity_zero @ [__right_identity_zero_match_0[9]] |
| 3683 | /* 3522 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 3684 | /* 3527 */ GIR_EraseRootFromParent_Done, |
| 3685 | /* 3528 */ // Label 233: @3528 |
| 3686 | /* 3528 */ GIM_Reject, |
| 3687 | /* 3529 */ // Label 37: @3529 |
| 3688 | /* 3529 */ GIM_Try, /*On fail goto*//*Label 234*/ GIMT_Encode4(3540), // Rule ID 55 // |
| 3689 | /* 3534 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule45Enabled), |
| 3690 | /* 3537 */ // Combiner Rule #45: rotate_out_of_range; wip_match_opcode 'G_ROTL' |
| 3691 | /* 3537 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner24), |
| 3692 | /* 3540 */ // Label 234: @3540 |
| 3693 | /* 3540 */ GIM_Try, /*On fail goto*//*Label 235*/ GIMT_Encode4(3563), // Rule ID 118 // |
| 3694 | /* 3545 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule70Enabled), |
| 3695 | /* 3548 */ // MIs[0] dst |
| 3696 | /* 3548 */ // No operand predicates |
| 3697 | /* 3548 */ // MIs[0] lhs |
| 3698 | /* 3548 */ // No operand predicates |
| 3699 | /* 3548 */ // MIs[0] Operand 2 |
| 3700 | /* 3548 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0, |
| 3701 | /* 3552 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 3702 | /* 3557 */ // Combiner Rule #70: right_identity_zero @ [__right_identity_zero_match_0[8]] |
| 3703 | /* 3557 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 3704 | /* 3562 */ GIR_EraseRootFromParent_Done, |
| 3705 | /* 3563 */ // Label 235: @3563 |
| 3706 | /* 3563 */ GIM_Reject, |
| 3707 | /* 3564 */ // Label 38: @3564 |
| 3708 | /* 3564 */ GIM_Try, /*On fail goto*//*Label 236*/ GIMT_Encode4(3575), // Rule ID 56 // |
| 3709 | /* 3569 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule46Enabled), |
| 3710 | /* 3572 */ // Combiner Rule #46: icmp_to_true_false_known_bits; wip_match_opcode 'G_ICMP' |
| 3711 | /* 3572 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner25), |
| 3712 | /* 3575 */ // Label 236: @3575 |
| 3713 | /* 3575 */ GIM_Reject, |
| 3714 | /* 3576 */ // Label 39: @3576 |
| 3715 | /* 3576 */ GIM_Try, /*On fail goto*//*Label 237*/ GIMT_Encode4(3587), // Rule ID 62 // |
| 3716 | /* 3581 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule50Enabled), |
| 3717 | /* 3584 */ // Combiner Rule #50: select_constant_cmp; wip_match_opcode 'G_SELECT' |
| 3718 | /* 3584 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner28), |
| 3719 | /* 3587 */ // Label 237: @3587 |
| 3720 | /* 3587 */ GIM_Try, /*On fail goto*//*Label 238*/ GIMT_Encode4(3598), // Rule ID 64 // |
| 3721 | /* 3592 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule52Enabled), |
| 3722 | /* 3595 */ // Combiner Rule #52: match_selects; wip_match_opcode 'G_SELECT' |
| 3723 | /* 3595 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner30), |
| 3724 | /* 3598 */ // Label 238: @3598 |
| 3725 | /* 3598 */ GIM_Try, /*On fail goto*//*Label 239*/ GIMT_Encode4(3609), // Rule ID 109 // |
| 3726 | /* 3603 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule69Enabled), |
| 3727 | /* 3606 */ // Combiner Rule #69: select_same_val; wip_match_opcode 'G_SELECT' |
| 3728 | /* 3606 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner44), |
| 3729 | /* 3609 */ // Label 239: @3609 |
| 3730 | /* 3609 */ GIM_Try, /*On fail goto*//*Label 240*/ GIMT_Encode4(3620), // Rule ID 182 // |
| 3731 | /* 3614 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule106Enabled), |
| 3732 | /* 3617 */ // Combiner Rule #106: select_to_minmax; wip_match_opcode 'G_SELECT' |
| 3733 | /* 3617 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner66), |
| 3734 | /* 3620 */ // Label 240: @3620 |
| 3735 | /* 3620 */ GIM_Try, /*On fail goto*//*Label 241*/ GIMT_Encode4(3700), // Rule ID 65 // |
| 3736 | /* 3625 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule53Enabled), |
| 3737 | /* 3628 */ // MIs[0] dst |
| 3738 | /* 3628 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255, |
| 3739 | /* 3632 */ // MIs[0] c |
| 3740 | /* 3632 */ // No operand predicates |
| 3741 | /* 3632 */ // MIs[0] Operand 2 |
| 3742 | /* 3632 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0, |
| 3743 | /* 3636 */ // MIs[0] x |
| 3744 | /* 3636 */ // No operand predicates |
| 3745 | /* 3636 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner0), |
| 3746 | /* 3640 */ GIR_MakeTempReg, /*TempRegID*/2, /*TypeID*/255, |
| 3747 | /* 3643 */ GIR_MakeTempReg, /*TempRegID*/1, /*TypeID*/255, |
| 3748 | /* 3646 */ GIR_BuildConstant, /*TempRegID*/1, /*Val*/GIMT_Encode8(18446744073709551615u), |
| 3749 | /* 3656 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255, |
| 3750 | /* 3659 */ // Combiner Rule #53: select_zero_true |
| 3751 | /* 3659 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_XOR), |
| 3752 | /* 3662 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)), |
| 3753 | /* 3667 */ GIR_RootToRootCopy, /*OpIdx*/1, // c |
| 3754 | /* 3669 */ GIR_AddSimpleTempRegister, /*InsnID*/0, /*TempRegID*/1, |
| 3755 | /* 3672 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FREEZE), |
| 3756 | /* 3676 */ GIR_AddTempRegister, /*InsnID*/1, /*TempRegID*/2, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)), |
| 3757 | /* 3681 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/3, // x |
| 3758 | /* 3685 */ GIR_BuildMI, /*InsnID*/2, /*Opcode*/GIMT_Encode2(TargetOpcode::G_AND), |
| 3759 | /* 3689 */ GIR_Copy, /*NewInsnID*/2, /*OldInsnID*/0, /*OpIdx*/0, // dst |
| 3760 | /* 3693 */ GIR_AddSimpleTempRegister, /*InsnID*/2, /*TempRegID*/0, |
| 3761 | /* 3696 */ GIR_AddSimpleTempRegister, /*InsnID*/2, /*TempRegID*/2, |
| 3762 | /* 3699 */ GIR_EraseRootFromParent_Done, |
| 3763 | /* 3700 */ // Label 241: @3700 |
| 3764 | /* 3700 */ GIM_Try, /*On fail goto*//*Label 242*/ GIMT_Encode4(3749), // Rule ID 66 // |
| 3765 | /* 3705 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule54Enabled), |
| 3766 | /* 3708 */ // MIs[0] dst |
| 3767 | /* 3708 */ GIM_RecordRegType, /*MI*/0, /*Op*/0, /*TempTypeIdx*/255, |
| 3768 | /* 3712 */ // MIs[0] c |
| 3769 | /* 3712 */ // No operand predicates |
| 3770 | /* 3712 */ // MIs[0] x |
| 3771 | /* 3712 */ // No operand predicates |
| 3772 | /* 3712 */ // MIs[0] Operand 3 |
| 3773 | /* 3712 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/3, 0, |
| 3774 | /* 3716 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner0), |
| 3775 | /* 3720 */ GIR_MakeTempReg, /*TempRegID*/0, /*TypeID*/255, |
| 3776 | /* 3723 */ // Combiner Rule #54: select_zero_false |
| 3777 | /* 3723 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FREEZE), |
| 3778 | /* 3726 */ GIR_AddTempRegister, /*InsnID*/0, /*TempRegID*/0, /*TempRegFlags*/GIMT_Encode2(static_cast<uint16_t>(RegState::Define)), |
| 3779 | /* 3731 */ GIR_RootToRootCopy, /*OpIdx*/2, // x |
| 3780 | /* 3733 */ GIR_BuildMI, /*InsnID*/1, /*Opcode*/GIMT_Encode2(TargetOpcode::G_AND), |
| 3781 | /* 3737 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/0, // dst |
| 3782 | /* 3741 */ GIR_Copy, /*NewInsnID*/1, /*OldInsnID*/0, /*OpIdx*/1, // c |
| 3783 | /* 3745 */ GIR_AddSimpleTempRegister, /*InsnID*/1, /*TempRegID*/0, |
| 3784 | /* 3748 */ GIR_EraseRootFromParent_Done, |
| 3785 | /* 3749 */ // Label 242: @3749 |
| 3786 | /* 3749 */ GIM_Try, /*On fail goto*//*Label 243*/ GIMT_Encode4(3770), // Rule ID 63 // |
| 3787 | /* 3754 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule51Enabled), |
| 3788 | /* 3757 */ // MIs[0] root |
| 3789 | /* 3757 */ // No operand predicates |
| 3790 | /* 3757 */ // MIs[0] tst |
| 3791 | /* 3757 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 3792 | /* 3761 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_ICMP), |
| 3793 | /* 3765 */ // MIs[1] tst1 |
| 3794 | /* 3765 */ // No operand predicates |
| 3795 | /* 3765 */ // MIs[1] a |
| 3796 | /* 3765 */ // No operand predicates |
| 3797 | /* 3765 */ // MIs[1] b |
| 3798 | /* 3765 */ // No operand predicates |
| 3799 | /* 3765 */ // MIs[0] x |
| 3800 | /* 3765 */ // No operand predicates |
| 3801 | /* 3765 */ // MIs[0] y |
| 3802 | /* 3765 */ // No operand predicates |
| 3803 | /* 3765 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 3804 | /* 3767 */ // Combiner Rule #51: select_to_iminmax |
| 3805 | /* 3767 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner29), |
| 3806 | /* 3770 */ // Label 243: @3770 |
| 3807 | /* 3770 */ GIM_Try, /*On fail goto*//*Label 244*/ GIMT_Encode4(3806), // Rule ID 67 // |
| 3808 | /* 3775 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule55Enabled), |
| 3809 | /* 3778 */ // MIs[0] dst |
| 3810 | /* 3778 */ // No operand predicates |
| 3811 | /* 3778 */ // MIs[0] c |
| 3812 | /* 3778 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 3813 | /* 3782 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_XOR), |
| 3814 | /* 3786 */ // MIs[1] src |
| 3815 | /* 3786 */ // No operand predicates |
| 3816 | /* 3786 */ // MIs[1] Operand 2 |
| 3817 | /* 3786 */ GIM_CheckConstantInt8, /*MI*/1, /*Op*/2, 255, |
| 3818 | /* 3790 */ // MIs[0] x |
| 3819 | /* 3790 */ // No operand predicates |
| 3820 | /* 3790 */ // MIs[0] y |
| 3821 | /* 3790 */ // No operand predicates |
| 3822 | /* 3790 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 3823 | /* 3792 */ // Combiner Rule #55: select_not |
| 3824 | /* 3792 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_SELECT), |
| 3825 | /* 3795 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst |
| 3826 | /* 3797 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // src |
| 3827 | /* 3801 */ GIR_RootToRootCopy, /*OpIdx*/3, // y |
| 3828 | /* 3803 */ GIR_RootToRootCopy, /*OpIdx*/2, // x |
| 3829 | /* 3805 */ GIR_EraseRootFromParent_Done, |
| 3830 | /* 3806 */ // Label 244: @3806 |
| 3831 | /* 3806 */ GIM_Try, /*On fail goto*//*Label 245*/ GIMT_Encode4(3835), // Rule ID 61 // |
| 3832 | /* 3811 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule49Enabled), |
| 3833 | /* 3814 */ // MIs[0] dst |
| 3834 | /* 3814 */ // No operand predicates |
| 3835 | /* 3814 */ // MIs[0] undef |
| 3836 | /* 3814 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 3837 | /* 3818 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF), |
| 3838 | /* 3822 */ // MIs[0] x |
| 3839 | /* 3822 */ // No operand predicates |
| 3840 | /* 3822 */ // MIs[0] y |
| 3841 | /* 3822 */ // No operand predicates |
| 3842 | /* 3822 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/3, |
| 3843 | /* 3827 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 3844 | /* 3829 */ // Combiner Rule #49: select_undef_cmp |
| 3845 | /* 3829 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/3, |
| 3846 | /* 3834 */ GIR_EraseRootFromParent_Done, |
| 3847 | /* 3835 */ // Label 245: @3835 |
| 3848 | /* 3835 */ GIM_Reject, |
| 3849 | /* 3836 */ // Label 40: @3836 |
| 3850 | /* 3836 */ GIM_Try, /*On fail goto*//*Label 246*/ GIMT_Encode4(3847), // Rule ID 58 // |
| 3851 | /* 3841 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule47Enabled), |
| 3852 | /* 3844 */ // Combiner Rule #47: match_addos; wip_match_opcode 'G_UADDO' |
| 3853 | /* 3844 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner26), |
| 3854 | /* 3847 */ // Label 246: @3847 |
| 3855 | /* 3847 */ GIM_Try, /*On fail goto*//*Label 247*/ GIMT_Encode4(3858), // Rule ID 195 // |
| 3856 | /* 3852 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule110Enabled), |
| 3857 | /* 3855 */ // Combiner Rule #110: commute_int_constant_to_rhs; wip_match_opcode 'G_UADDO' |
| 3858 | /* 3855 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner70), |
| 3859 | /* 3858 */ // Label 247: @3858 |
| 3860 | /* 3858 */ GIM_Reject, |
| 3861 | /* 3859 */ // Label 41: @3859 |
| 3862 | /* 3859 */ GIM_Try, /*On fail goto*//*Label 248*/ GIMT_Encode4(3870), // Rule ID 60 // |
| 3863 | /* 3864 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule48Enabled), |
| 3864 | /* 3867 */ // Combiner Rule #48: match_subo_no_overflow; wip_match_opcode 'G_USUBO' |
| 3865 | /* 3867 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner27), |
| 3866 | /* 3870 */ // Label 248: @3870 |
| 3867 | /* 3870 */ GIM_Reject, |
| 3868 | /* 3871 */ // Label 42: @3871 |
| 3869 | /* 3871 */ GIM_Try, /*On fail goto*//*Label 249*/ GIMT_Encode4(3882), // Rule ID 57 // |
| 3870 | /* 3876 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule47Enabled), |
| 3871 | /* 3879 */ // Combiner Rule #47: match_addos; wip_match_opcode 'G_SADDO' |
| 3872 | /* 3879 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner26), |
| 3873 | /* 3882 */ // Label 249: @3882 |
| 3874 | /* 3882 */ GIM_Try, /*On fail goto*//*Label 250*/ GIMT_Encode4(3893), // Rule ID 196 // |
| 3875 | /* 3887 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule110Enabled), |
| 3876 | /* 3890 */ // Combiner Rule #110: commute_int_constant_to_rhs; wip_match_opcode 'G_SADDO' |
| 3877 | /* 3890 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner70), |
| 3878 | /* 3893 */ // Label 250: @3893 |
| 3879 | /* 3893 */ GIM_Reject, |
| 3880 | /* 3894 */ // Label 43: @3894 |
| 3881 | /* 3894 */ GIM_Try, /*On fail goto*//*Label 251*/ GIMT_Encode4(3905), // Rule ID 59 // |
| 3882 | /* 3899 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule48Enabled), |
| 3883 | /* 3902 */ // Combiner Rule #48: match_subo_no_overflow; wip_match_opcode 'G_SSUBO' |
| 3884 | /* 3902 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner27), |
| 3885 | /* 3905 */ // Label 251: @3905 |
| 3886 | /* 3905 */ GIM_Reject, |
| 3887 | /* 3906 */ // Label 44: @3906 |
| 3888 | /* 3906 */ GIM_Try, /*On fail goto*//*Label 252*/ GIMT_Encode4(3917), // Rule ID 197 // |
| 3889 | /* 3911 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule110Enabled), |
| 3890 | /* 3914 */ // Combiner Rule #110: commute_int_constant_to_rhs; wip_match_opcode 'G_UMULO' |
| 3891 | /* 3914 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner70), |
| 3892 | /* 3917 */ // Label 252: @3917 |
| 3893 | /* 3917 */ GIM_Reject, |
| 3894 | /* 3918 */ // Label 45: @3918 |
| 3895 | /* 3918 */ GIM_Try, /*On fail goto*//*Label 253*/ GIMT_Encode4(3929), // Rule ID 198 // |
| 3896 | /* 3923 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule110Enabled), |
| 3897 | /* 3926 */ // Combiner Rule #110: commute_int_constant_to_rhs; wip_match_opcode 'G_SMULO' |
| 3898 | /* 3926 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner70), |
| 3899 | /* 3929 */ // Label 253: @3929 |
| 3900 | /* 3929 */ GIM_Reject, |
| 3901 | /* 3930 */ // Label 46: @3930 |
| 3902 | /* 3930 */ GIM_Try, /*On fail goto*//*Label 254*/ GIMT_Encode4(3941), // Rule ID 199 // |
| 3903 | /* 3935 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule110Enabled), |
| 3904 | /* 3938 */ // Combiner Rule #110: commute_int_constant_to_rhs; wip_match_opcode 'G_UMULH' |
| 3905 | /* 3938 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner70), |
| 3906 | /* 3941 */ // Label 254: @3941 |
| 3907 | /* 3941 */ GIM_Reject, |
| 3908 | /* 3942 */ // Label 47: @3942 |
| 3909 | /* 3942 */ GIM_Try, /*On fail goto*//*Label 255*/ GIMT_Encode4(3953), // Rule ID 200 // |
| 3910 | /* 3947 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule110Enabled), |
| 3911 | /* 3950 */ // Combiner Rule #110: commute_int_constant_to_rhs; wip_match_opcode 'G_SMULH' |
| 3912 | /* 3950 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner70), |
| 3913 | /* 3953 */ // Label 255: @3953 |
| 3914 | /* 3953 */ GIM_Reject, |
| 3915 | /* 3954 */ // Label 48: @3954 |
| 3916 | /* 3954 */ GIM_Try, /*On fail goto*//*Label 256*/ GIMT_Encode4(3965), // Rule ID 201 // |
| 3917 | /* 3959 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule110Enabled), |
| 3918 | /* 3962 */ // Combiner Rule #110: commute_int_constant_to_rhs; wip_match_opcode 'G_UADDSAT' |
| 3919 | /* 3962 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner70), |
| 3920 | /* 3965 */ // Label 256: @3965 |
| 3921 | /* 3965 */ GIM_Reject, |
| 3922 | /* 3966 */ // Label 49: @3966 |
| 3923 | /* 3966 */ GIM_Try, /*On fail goto*//*Label 257*/ GIMT_Encode4(3977), // Rule ID 202 // |
| 3924 | /* 3971 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule110Enabled), |
| 3925 | /* 3974 */ // Combiner Rule #110: commute_int_constant_to_rhs; wip_match_opcode 'G_SADDSAT' |
| 3926 | /* 3974 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner70), |
| 3927 | /* 3977 */ // Label 257: @3977 |
| 3928 | /* 3977 */ GIM_Reject, |
| 3929 | /* 3978 */ // Label 50: @3978 |
| 3930 | /* 3978 */ GIM_Try, /*On fail goto*//*Label 258*/ GIMT_Encode4(3989), // Rule ID 203 // |
| 3931 | /* 3983 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule110Enabled), |
| 3932 | /* 3986 */ // Combiner Rule #110: commute_int_constant_to_rhs; wip_match_opcode 'G_SMULFIX' |
| 3933 | /* 3986 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner70), |
| 3934 | /* 3989 */ // Label 258: @3989 |
| 3935 | /* 3989 */ GIM_Reject, |
| 3936 | /* 3990 */ // Label 51: @3990 |
| 3937 | /* 3990 */ GIM_Try, /*On fail goto*//*Label 259*/ GIMT_Encode4(4001), // Rule ID 204 // |
| 3938 | /* 3995 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule110Enabled), |
| 3939 | /* 3998 */ // Combiner Rule #110: commute_int_constant_to_rhs; wip_match_opcode 'G_UMULFIX' |
| 3940 | /* 3998 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner70), |
| 3941 | /* 4001 */ // Label 259: @4001 |
| 3942 | /* 4001 */ GIM_Reject, |
| 3943 | /* 4002 */ // Label 52: @4002 |
| 3944 | /* 4002 */ GIM_Try, /*On fail goto*//*Label 260*/ GIMT_Encode4(4013), // Rule ID 205 // |
| 3945 | /* 4007 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule110Enabled), |
| 3946 | /* 4010 */ // Combiner Rule #110: commute_int_constant_to_rhs; wip_match_opcode 'G_SMULFIXSAT' |
| 3947 | /* 4010 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner70), |
| 3948 | /* 4013 */ // Label 260: @4013 |
| 3949 | /* 4013 */ GIM_Reject, |
| 3950 | /* 4014 */ // Label 53: @4014 |
| 3951 | /* 4014 */ GIM_Try, /*On fail goto*//*Label 261*/ GIMT_Encode4(4025), // Rule ID 206 // |
| 3952 | /* 4019 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule110Enabled), |
| 3953 | /* 4022 */ // Combiner Rule #110: commute_int_constant_to_rhs; wip_match_opcode 'G_UMULFIXSAT' |
| 3954 | /* 4022 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner70), |
| 3955 | /* 4025 */ // Label 261: @4025 |
| 3956 | /* 4025 */ GIM_Reject, |
| 3957 | /* 4026 */ // Label 54: @4026 |
| 3958 | /* 4026 */ GIM_Try, /*On fail goto*//*Label 262*/ GIMT_Encode4(4037), // Rule ID 207 // |
| 3959 | /* 4031 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule111Enabled), |
| 3960 | /* 4034 */ // Combiner Rule #111: commute_fp_constant_to_rhs; wip_match_opcode 'G_FADD' |
| 3961 | /* 4034 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner71), |
| 3962 | /* 4037 */ // Label 262: @4037 |
| 3963 | /* 4037 */ GIM_Try, /*On fail goto*//*Label 263*/ GIMT_Encode4(4060), // Rule ID 148 // |
| 3964 | /* 4042 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule88Enabled), |
| 3965 | /* 4045 */ // MIs[0] dst |
| 3966 | /* 4045 */ // No operand predicates |
| 3967 | /* 4045 */ // MIs[0] x |
| 3968 | /* 4045 */ // No operand predicates |
| 3969 | /* 4045 */ // MIs[0] y |
| 3970 | /* 4045 */ // No operand predicates |
| 3971 | /* 4045 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner3), |
| 3972 | /* 4049 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 3973 | /* 4054 */ // Combiner Rule #88: right_identity_neg_zero_fp |
| 3974 | /* 4054 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 3975 | /* 4059 */ GIR_EraseRootFromParent_Done, |
| 3976 | /* 4060 */ // Label 263: @4060 |
| 3977 | /* 4060 */ GIM_Try, /*On fail goto*//*Label 264*/ GIMT_Encode4(4089), // Rule ID 149 // |
| 3978 | /* 4065 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule89Enabled), |
| 3979 | /* 4068 */ GIM_MIFlags, /*MI*/0, GIMT_Encode4(MachineInstr::FmNsz), |
| 3980 | /* 4074 */ // MIs[0] dst |
| 3981 | /* 4074 */ // No operand predicates |
| 3982 | /* 4074 */ // MIs[0] x |
| 3983 | /* 4074 */ // No operand predicates |
| 3984 | /* 4074 */ // MIs[0] y |
| 3985 | /* 4074 */ // No operand predicates |
| 3986 | /* 4074 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner4), |
| 3987 | /* 4078 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 3988 | /* 4083 */ // Combiner Rule #89: right_identity_neg_zero_fp_nsz |
| 3989 | /* 4083 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 3990 | /* 4088 */ GIR_EraseRootFromParent_Done, |
| 3991 | /* 4089 */ // Label 264: @4089 |
| 3992 | /* 4089 */ GIM_Try, /*On fail goto*//*Label 265*/ GIMT_Encode4(4100), // Rule ID 97 // |
| 3993 | /* 4094 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule68Enabled), |
| 3994 | /* 4097 */ // MIs[0] d |
| 3995 | /* 4097 */ // No operand predicates |
| 3996 | /* 4097 */ // MIs[0] mi.src0 |
| 3997 | /* 4097 */ // No operand predicates |
| 3998 | /* 4097 */ // MIs[0] mi.src1 |
| 3999 | /* 4097 */ // No operand predicates |
| 4000 | /* 4097 */ // Combiner Rule #68: constant_fold_fp_binop @ [mi[0]] |
| 4001 | /* 4097 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner43), |
| 4002 | /* 4100 */ // Label 265: @4100 |
| 4003 | /* 4100 */ GIM_Reject, |
| 4004 | /* 4101 */ // Label 55: @4101 |
| 4005 | /* 4101 */ GIM_Try, /*On fail goto*//*Label 266*/ GIMT_Encode4(4112), // Rule ID 98 // |
| 4006 | /* 4106 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule68Enabled), |
| 4007 | /* 4109 */ // MIs[0] d |
| 4008 | /* 4109 */ // No operand predicates |
| 4009 | /* 4109 */ // MIs[0] mi.src0 |
| 4010 | /* 4109 */ // No operand predicates |
| 4011 | /* 4109 */ // MIs[0] mi.src1 |
| 4012 | /* 4109 */ // No operand predicates |
| 4013 | /* 4109 */ // Combiner Rule #68: constant_fold_fp_binop @ [mi[1]] |
| 4014 | /* 4109 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner43), |
| 4015 | /* 4112 */ // Label 266: @4112 |
| 4016 | /* 4112 */ GIM_Reject, |
| 4017 | /* 4113 */ // Label 56: @4113 |
| 4018 | /* 4113 */ GIM_Try, /*On fail goto*//*Label 267*/ GIMT_Encode4(4124), // Rule ID 208 // |
| 4019 | /* 4118 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule111Enabled), |
| 4020 | /* 4121 */ // Combiner Rule #111: commute_fp_constant_to_rhs; wip_match_opcode 'G_FMUL' |
| 4021 | /* 4121 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner71), |
| 4022 | /* 4124 */ // Label 267: @4124 |
| 4023 | /* 4124 */ GIM_Try, /*On fail goto*//*Label 268*/ GIMT_Encode4(4147), // Rule ID 138 // |
| 4024 | /* 4129 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule80Enabled), |
| 4025 | /* 4132 */ // MIs[0] dst |
| 4026 | /* 4132 */ // No operand predicates |
| 4027 | /* 4132 */ // MIs[0] x |
| 4028 | /* 4132 */ // No operand predicates |
| 4029 | /* 4132 */ // MIs[0] y |
| 4030 | /* 4132 */ // No operand predicates |
| 4031 | /* 4132 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner1), |
| 4032 | /* 4136 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 4033 | /* 4141 */ // Combiner Rule #80: right_identity_one_fp |
| 4034 | /* 4141 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 4035 | /* 4146 */ GIR_EraseRootFromParent_Done, |
| 4036 | /* 4147 */ // Label 268: @4147 |
| 4037 | /* 4147 */ GIM_Try, /*On fail goto*//*Label 269*/ GIMT_Encode4(4167), // Rule ID 150 // |
| 4038 | /* 4152 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule90Enabled), |
| 4039 | /* 4155 */ // MIs[0] dst |
| 4040 | /* 4155 */ // No operand predicates |
| 4041 | /* 4155 */ // MIs[0] x |
| 4042 | /* 4155 */ // No operand predicates |
| 4043 | /* 4155 */ // MIs[0] y |
| 4044 | /* 4155 */ // No operand predicates |
| 4045 | /* 4155 */ GIM_CheckCxxInsnPredicate, /*MI*/0, /*FnId*/GIMT_Encode2(GICXXPred_MI_Predicate_GICombiner5), |
| 4046 | /* 4159 */ // Combiner Rule #90: right_identity_neg_one_fp |
| 4047 | /* 4159 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_FNEG), |
| 4048 | /* 4162 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst |
| 4049 | /* 4164 */ GIR_RootToRootCopy, /*OpIdx*/1, // x |
| 4050 | /* 4166 */ GIR_EraseRootFromParent_Done, |
| 4051 | /* 4167 */ // Label 269: @4167 |
| 4052 | /* 4167 */ GIM_Try, /*On fail goto*//*Label 270*/ GIMT_Encode4(4178), // Rule ID 99 // |
| 4053 | /* 4172 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule68Enabled), |
| 4054 | /* 4175 */ // MIs[0] d |
| 4055 | /* 4175 */ // No operand predicates |
| 4056 | /* 4175 */ // MIs[0] mi.src0 |
| 4057 | /* 4175 */ // No operand predicates |
| 4058 | /* 4175 */ // MIs[0] mi.src1 |
| 4059 | /* 4175 */ // No operand predicates |
| 4060 | /* 4175 */ // Combiner Rule #68: constant_fold_fp_binop @ [mi[2]] |
| 4061 | /* 4175 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner43), |
| 4062 | /* 4178 */ // Label 270: @4178 |
| 4063 | /* 4178 */ GIM_Reject, |
| 4064 | /* 4179 */ // Label 57: @4179 |
| 4065 | /* 4179 */ GIM_Try, /*On fail goto*//*Label 271*/ GIMT_Encode4(4190), // Rule ID 100 // |
| 4066 | /* 4184 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule68Enabled), |
| 4067 | /* 4187 */ // MIs[0] d |
| 4068 | /* 4187 */ // No operand predicates |
| 4069 | /* 4187 */ // MIs[0] mi.src0 |
| 4070 | /* 4187 */ // No operand predicates |
| 4071 | /* 4187 */ // MIs[0] mi.src1 |
| 4072 | /* 4187 */ // No operand predicates |
| 4073 | /* 4187 */ // Combiner Rule #68: constant_fold_fp_binop @ [mi[3]] |
| 4074 | /* 4187 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner43), |
| 4075 | /* 4190 */ // Label 271: @4190 |
| 4076 | /* 4190 */ GIM_Reject, |
| 4077 | /* 4191 */ // Label 58: @4191 |
| 4078 | /* 4191 */ GIM_Try, /*On fail goto*//*Label 272*/ GIMT_Encode4(4202), // Rule ID 101 // |
| 4079 | /* 4196 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule68Enabled), |
| 4080 | /* 4199 */ // MIs[0] d |
| 4081 | /* 4199 */ // No operand predicates |
| 4082 | /* 4199 */ // MIs[0] mi.src0 |
| 4083 | /* 4199 */ // No operand predicates |
| 4084 | /* 4199 */ // MIs[0] mi.src1 |
| 4085 | /* 4199 */ // No operand predicates |
| 4086 | /* 4199 */ // Combiner Rule #68: constant_fold_fp_binop @ [mi[4]] |
| 4087 | /* 4199 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner43), |
| 4088 | /* 4202 */ // Label 272: @4202 |
| 4089 | /* 4202 */ GIM_Reject, |
| 4090 | /* 4203 */ // Label 59: @4203 |
| 4091 | /* 4203 */ GIM_Try, /*On fail goto*//*Label 273*/ GIMT_Encode4(4224), // Rule ID 15 // |
| 4092 | /* 4208 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule15Enabled), |
| 4093 | /* 4211 */ // MIs[0] dst |
| 4094 | /* 4211 */ // No operand predicates |
| 4095 | /* 4211 */ // MIs[0] src0 |
| 4096 | /* 4211 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 4097 | /* 4215 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT), |
| 4098 | /* 4219 */ // MIs[1] cst |
| 4099 | /* 4219 */ // No operand predicates |
| 4100 | /* 4219 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 4101 | /* 4221 */ // Combiner Rule #15: constant_fold_flog2 |
| 4102 | /* 4221 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner4), |
| 4103 | /* 4224 */ // Label 273: @4224 |
| 4104 | /* 4224 */ GIM_Reject, |
| 4105 | /* 4225 */ // Label 60: @4225 |
| 4106 | /* 4225 */ GIM_Try, /*On fail goto*//*Label 274*/ GIMT_Encode4(4246), // Rule ID 12 // |
| 4107 | /* 4230 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule12Enabled), |
| 4108 | /* 4233 */ // MIs[0] dst |
| 4109 | /* 4233 */ // No operand predicates |
| 4110 | /* 4233 */ // MIs[0] src0 |
| 4111 | /* 4233 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 4112 | /* 4237 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT), |
| 4113 | /* 4241 */ // MIs[1] cst |
| 4114 | /* 4241 */ // No operand predicates |
| 4115 | /* 4241 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 4116 | /* 4243 */ // Combiner Rule #12: constant_fold_fneg |
| 4117 | /* 4243 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner4), |
| 4118 | /* 4246 */ // Label 274: @4246 |
| 4119 | /* 4246 */ GIM_Try, /*On fail goto*//*Label 275*/ GIMT_Encode4(4275), // Rule ID 136 // |
| 4120 | /* 4251 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule78Enabled), |
| 4121 | /* 4254 */ // MIs[0] dst |
| 4122 | /* 4254 */ // No operand predicates |
| 4123 | /* 4254 */ // MIs[0] t |
| 4124 | /* 4254 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 4125 | /* 4258 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FNEG), |
| 4126 | /* 4262 */ // MIs[1] src |
| 4127 | /* 4262 */ // No operand predicates |
| 4128 | /* 4262 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1, |
| 4129 | /* 4267 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 4130 | /* 4269 */ // Combiner Rule #78: fneg_fneg_fold |
| 4131 | /* 4269 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/1, /*NewOpIdx*/1, |
| 4132 | /* 4274 */ GIR_EraseRootFromParent_Done, |
| 4133 | /* 4275 */ // Label 275: @4275 |
| 4134 | /* 4275 */ GIM_Reject, |
| 4135 | /* 4276 */ // Label 61: @4276 |
| 4136 | /* 4276 */ GIM_Try, /*On fail goto*//*Label 276*/ GIMT_Encode4(4297), // Rule ID 17 // |
| 4137 | /* 4281 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule17Enabled), |
| 4138 | /* 4284 */ // MIs[0] dst |
| 4139 | /* 4284 */ // No operand predicates |
| 4140 | /* 4284 */ // MIs[0] src0 |
| 4141 | /* 4284 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 4142 | /* 4288 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT), |
| 4143 | /* 4292 */ // MIs[1] cst |
| 4144 | /* 4292 */ // No operand predicates |
| 4145 | /* 4292 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 4146 | /* 4294 */ // Combiner Rule #17: constant_fold_fpext |
| 4147 | /* 4294 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner4), |
| 4148 | /* 4297 */ // Label 276: @4297 |
| 4149 | /* 4297 */ GIM_Reject, |
| 4150 | /* 4298 */ // Label 62: @4298 |
| 4151 | /* 4298 */ GIM_Try, /*On fail goto*//*Label 277*/ GIMT_Encode4(4319), // Rule ID 16 // |
| 4152 | /* 4303 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule16Enabled), |
| 4153 | /* 4306 */ // MIs[0] dst |
| 4154 | /* 4306 */ // No operand predicates |
| 4155 | /* 4306 */ // MIs[0] src0 |
| 4156 | /* 4306 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 4157 | /* 4310 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT), |
| 4158 | /* 4314 */ // MIs[1] cst |
| 4159 | /* 4314 */ // No operand predicates |
| 4160 | /* 4314 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 4161 | /* 4316 */ // Combiner Rule #16: constant_fold_fptrunc |
| 4162 | /* 4316 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner4), |
| 4163 | /* 4319 */ // Label 277: @4319 |
| 4164 | /* 4319 */ GIM_Try, /*On fail goto*//*Label 278*/ GIMT_Encode4(4340), // Rule ID 147 // |
| 4165 | /* 4324 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule87Enabled), |
| 4166 | /* 4327 */ // MIs[0] dst |
| 4167 | /* 4327 */ // No operand predicates |
| 4168 | /* 4327 */ // MIs[0] src1 |
| 4169 | /* 4327 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 4170 | /* 4331 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FPEXT), |
| 4171 | /* 4335 */ // MIs[1] src0 |
| 4172 | /* 4335 */ // No operand predicates |
| 4173 | /* 4335 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 4174 | /* 4337 */ // Combiner Rule #87: fptrunc_fpext_fold |
| 4175 | /* 4337 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner51), |
| 4176 | /* 4340 */ // Label 278: @4340 |
| 4177 | /* 4340 */ GIM_Reject, |
| 4178 | /* 4341 */ // Label 63: @4341 |
| 4179 | /* 4341 */ GIM_Try, /*On fail goto*//*Label 279*/ GIMT_Encode4(4362), // Rule ID 171 // |
| 4180 | /* 4346 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule100Enabled), |
| 4181 | /* 4349 */ // MIs[0] dst |
| 4182 | /* 4349 */ // No operand predicates |
| 4183 | /* 4349 */ // MIs[0] __unary_undef_to_undef_match_0.x |
| 4184 | /* 4349 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 4185 | /* 4353 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF), |
| 4186 | /* 4357 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 4187 | /* 4359 */ // Combiner Rule #100: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[5]] |
| 4188 | /* 4359 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner60), |
| 4189 | /* 4362 */ // Label 279: @4362 |
| 4190 | /* 4362 */ GIM_Reject, |
| 4191 | /* 4363 */ // Label 64: @4363 |
| 4192 | /* 4363 */ GIM_Try, /*On fail goto*//*Label 280*/ GIMT_Encode4(4384), // Rule ID 172 // |
| 4193 | /* 4368 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule100Enabled), |
| 4194 | /* 4371 */ // MIs[0] dst |
| 4195 | /* 4371 */ // No operand predicates |
| 4196 | /* 4371 */ // MIs[0] __unary_undef_to_undef_match_0.x |
| 4197 | /* 4371 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 4198 | /* 4375 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_IMPLICIT_DEF), |
| 4199 | /* 4379 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 4200 | /* 4381 */ // Combiner Rule #100: unary_undef_to_undef @ [__unary_undef_to_undef_match_0[6]] |
| 4201 | /* 4381 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner60), |
| 4202 | /* 4384 */ // Label 280: @4384 |
| 4203 | /* 4384 */ GIM_Reject, |
| 4204 | /* 4385 */ // Label 65: @4385 |
| 4205 | /* 4385 */ GIM_Try, /*On fail goto*//*Label 281*/ GIMT_Encode4(4396), // Rule ID 155 // |
| 4206 | /* 4390 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule94Enabled), |
| 4207 | /* 4393 */ // Combiner Rule #94: undef_to_fp_zero; wip_match_opcode 'G_SITOFP' |
| 4208 | /* 4393 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner55), |
| 4209 | /* 4396 */ // Label 281: @4396 |
| 4210 | /* 4396 */ GIM_Try, /*On fail goto*//*Label 282*/ GIMT_Encode4(4411), // Rule ID 25 // |
| 4211 | /* 4401 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule25Enabled), |
| 4212 | /* 4404 */ // MIs[0] dst |
| 4213 | /* 4404 */ // No operand predicates |
| 4214 | /* 4404 */ // MIs[0] Operand 1 |
| 4215 | /* 4404 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/1, 0, |
| 4216 | /* 4408 */ // Combiner Rule #25: itof_const_zero_fold_si |
| 4217 | /* 4408 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner5), |
| 4218 | /* 4411 */ // Label 282: @4411 |
| 4219 | /* 4411 */ GIM_Reject, |
| 4220 | /* 4412 */ // Label 66: @4412 |
| 4221 | /* 4412 */ GIM_Try, /*On fail goto*//*Label 283*/ GIMT_Encode4(4423), // Rule ID 154 // |
| 4222 | /* 4417 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule94Enabled), |
| 4223 | /* 4420 */ // Combiner Rule #94: undef_to_fp_zero; wip_match_opcode 'G_UITOFP' |
| 4224 | /* 4420 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner55), |
| 4225 | /* 4423 */ // Label 283: @4423 |
| 4226 | /* 4423 */ GIM_Try, /*On fail goto*//*Label 284*/ GIMT_Encode4(4438), // Rule ID 26 // |
| 4227 | /* 4428 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule26Enabled), |
| 4228 | /* 4431 */ // MIs[0] dst |
| 4229 | /* 4431 */ // No operand predicates |
| 4230 | /* 4431 */ // MIs[0] Operand 1 |
| 4231 | /* 4431 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/1, 0, |
| 4232 | /* 4435 */ // Combiner Rule #26: itof_const_zero_fold_ui |
| 4233 | /* 4435 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner5), |
| 4234 | /* 4438 */ // Label 284: @4438 |
| 4235 | /* 4438 */ GIM_Reject, |
| 4236 | /* 4439 */ // Label 67: @4439 |
| 4237 | /* 4439 */ GIM_Try, /*On fail goto*//*Label 285*/ GIMT_Encode4(4460), // Rule ID 13 // |
| 4238 | /* 4444 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule13Enabled), |
| 4239 | /* 4447 */ // MIs[0] dst |
| 4240 | /* 4447 */ // No operand predicates |
| 4241 | /* 4447 */ // MIs[0] src0 |
| 4242 | /* 4447 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 4243 | /* 4451 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT), |
| 4244 | /* 4455 */ // MIs[1] cst |
| 4245 | /* 4455 */ // No operand predicates |
| 4246 | /* 4455 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 4247 | /* 4457 */ // Combiner Rule #13: constant_fold_fabs |
| 4248 | /* 4457 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner4), |
| 4249 | /* 4460 */ // Label 285: @4460 |
| 4250 | /* 4460 */ GIM_Reject, |
| 4251 | /* 4461 */ // Label 68: @4461 |
| 4252 | /* 4461 */ GIM_Try, /*On fail goto*//*Label 286*/ GIMT_Encode4(4472), // Rule ID 102 // |
| 4253 | /* 4466 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule68Enabled), |
| 4254 | /* 4469 */ // MIs[0] d |
| 4255 | /* 4469 */ // No operand predicates |
| 4256 | /* 4469 */ // MIs[0] mi.src0 |
| 4257 | /* 4469 */ // No operand predicates |
| 4258 | /* 4469 */ // MIs[0] mi.src1 |
| 4259 | /* 4469 */ // No operand predicates |
| 4260 | /* 4469 */ // Combiner Rule #68: constant_fold_fp_binop @ [mi[5]] |
| 4261 | /* 4469 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner43), |
| 4262 | /* 4472 */ // Label 286: @4472 |
| 4263 | /* 4472 */ GIM_Reject, |
| 4264 | /* 4473 */ // Label 69: @4473 |
| 4265 | /* 4473 */ GIM_Try, /*On fail goto*//*Label 287*/ GIMT_Encode4(4484), // Rule ID 209 // |
| 4266 | /* 4478 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule111Enabled), |
| 4267 | /* 4481 */ // Combiner Rule #111: commute_fp_constant_to_rhs; wip_match_opcode 'G_FMINNUM' |
| 4268 | /* 4481 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner71), |
| 4269 | /* 4484 */ // Label 287: @4484 |
| 4270 | /* 4484 */ GIM_Try, /*On fail goto*//*Label 288*/ GIMT_Encode4(4495), // Rule ID 103 // |
| 4271 | /* 4489 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule68Enabled), |
| 4272 | /* 4492 */ // MIs[0] d |
| 4273 | /* 4492 */ // No operand predicates |
| 4274 | /* 4492 */ // MIs[0] mi.src0 |
| 4275 | /* 4492 */ // No operand predicates |
| 4276 | /* 4492 */ // MIs[0] mi.src1 |
| 4277 | /* 4492 */ // No operand predicates |
| 4278 | /* 4492 */ // Combiner Rule #68: constant_fold_fp_binop @ [mi[6]] |
| 4279 | /* 4492 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner43), |
| 4280 | /* 4495 */ // Label 288: @4495 |
| 4281 | /* 4495 */ GIM_Reject, |
| 4282 | /* 4496 */ // Label 70: @4496 |
| 4283 | /* 4496 */ GIM_Try, /*On fail goto*//*Label 289*/ GIMT_Encode4(4507), // Rule ID 210 // |
| 4284 | /* 4501 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule111Enabled), |
| 4285 | /* 4504 */ // Combiner Rule #111: commute_fp_constant_to_rhs; wip_match_opcode 'G_FMAXNUM' |
| 4286 | /* 4504 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner71), |
| 4287 | /* 4507 */ // Label 289: @4507 |
| 4288 | /* 4507 */ GIM_Try, /*On fail goto*//*Label 290*/ GIMT_Encode4(4518), // Rule ID 104 // |
| 4289 | /* 4512 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule68Enabled), |
| 4290 | /* 4515 */ // MIs[0] d |
| 4291 | /* 4515 */ // No operand predicates |
| 4292 | /* 4515 */ // MIs[0] mi.src0 |
| 4293 | /* 4515 */ // No operand predicates |
| 4294 | /* 4515 */ // MIs[0] mi.src1 |
| 4295 | /* 4515 */ // No operand predicates |
| 4296 | /* 4515 */ // Combiner Rule #68: constant_fold_fp_binop @ [mi[7]] |
| 4297 | /* 4515 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner43), |
| 4298 | /* 4518 */ // Label 290: @4518 |
| 4299 | /* 4518 */ GIM_Reject, |
| 4300 | /* 4519 */ // Label 71: @4519 |
| 4301 | /* 4519 */ GIM_Try, /*On fail goto*//*Label 291*/ GIMT_Encode4(4530), // Rule ID 211 // |
| 4302 | /* 4524 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule111Enabled), |
| 4303 | /* 4527 */ // Combiner Rule #111: commute_fp_constant_to_rhs; wip_match_opcode 'G_FMINNUM_IEEE' |
| 4304 | /* 4527 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner71), |
| 4305 | /* 4530 */ // Label 291: @4530 |
| 4306 | /* 4530 */ GIM_Reject, |
| 4307 | /* 4531 */ // Label 72: @4531 |
| 4308 | /* 4531 */ GIM_Try, /*On fail goto*//*Label 292*/ GIMT_Encode4(4542), // Rule ID 212 // |
| 4309 | /* 4536 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule111Enabled), |
| 4310 | /* 4539 */ // Combiner Rule #111: commute_fp_constant_to_rhs; wip_match_opcode 'G_FMAXNUM_IEEE' |
| 4311 | /* 4539 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner71), |
| 4312 | /* 4542 */ // Label 292: @4542 |
| 4313 | /* 4542 */ GIM_Reject, |
| 4314 | /* 4543 */ // Label 73: @4543 |
| 4315 | /* 4543 */ GIM_Try, /*On fail goto*//*Label 293*/ GIMT_Encode4(4554), // Rule ID 213 // |
| 4316 | /* 4548 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule111Enabled), |
| 4317 | /* 4551 */ // Combiner Rule #111: commute_fp_constant_to_rhs; wip_match_opcode 'G_FMINIMUM' |
| 4318 | /* 4551 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner71), |
| 4319 | /* 4554 */ // Label 293: @4554 |
| 4320 | /* 4554 */ GIM_Try, /*On fail goto*//*Label 294*/ GIMT_Encode4(4565), // Rule ID 105 // |
| 4321 | /* 4559 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule68Enabled), |
| 4322 | /* 4562 */ // MIs[0] d |
| 4323 | /* 4562 */ // No operand predicates |
| 4324 | /* 4562 */ // MIs[0] mi.src0 |
| 4325 | /* 4562 */ // No operand predicates |
| 4326 | /* 4562 */ // MIs[0] mi.src1 |
| 4327 | /* 4562 */ // No operand predicates |
| 4328 | /* 4562 */ // Combiner Rule #68: constant_fold_fp_binop @ [mi[8]] |
| 4329 | /* 4562 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner43), |
| 4330 | /* 4565 */ // Label 294: @4565 |
| 4331 | /* 4565 */ GIM_Reject, |
| 4332 | /* 4566 */ // Label 74: @4566 |
| 4333 | /* 4566 */ GIM_Try, /*On fail goto*//*Label 295*/ GIMT_Encode4(4577), // Rule ID 214 // |
| 4334 | /* 4571 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule111Enabled), |
| 4335 | /* 4574 */ // Combiner Rule #111: commute_fp_constant_to_rhs; wip_match_opcode 'G_FMAXIMUM' |
| 4336 | /* 4574 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner71), |
| 4337 | /* 4577 */ // Label 295: @4577 |
| 4338 | /* 4577 */ GIM_Try, /*On fail goto*//*Label 296*/ GIMT_Encode4(4588), // Rule ID 106 // |
| 4339 | /* 4582 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule68Enabled), |
| 4340 | /* 4585 */ // MIs[0] d |
| 4341 | /* 4585 */ // No operand predicates |
| 4342 | /* 4585 */ // MIs[0] mi.src0 |
| 4343 | /* 4585 */ // No operand predicates |
| 4344 | /* 4585 */ // MIs[0] mi.src1 |
| 4345 | /* 4585 */ // No operand predicates |
| 4346 | /* 4585 */ // Combiner Rule #68: constant_fold_fp_binop @ [mi[9]] |
| 4347 | /* 4585 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner43), |
| 4348 | /* 4588 */ // Label 296: @4588 |
| 4349 | /* 4588 */ GIM_Reject, |
| 4350 | /* 4589 */ // Label 75: @4589 |
| 4351 | /* 4589 */ GIM_Try, /*On fail goto*//*Label 297*/ GIMT_Encode4(4600), // Rule ID 107 // |
| 4352 | /* 4594 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule68Enabled), |
| 4353 | /* 4597 */ // MIs[0] d |
| 4354 | /* 4597 */ // No operand predicates |
| 4355 | /* 4597 */ // MIs[0] mi.src0 |
| 4356 | /* 4597 */ // No operand predicates |
| 4357 | /* 4597 */ // MIs[0] mi.src1 |
| 4358 | /* 4597 */ // No operand predicates |
| 4359 | /* 4597 */ // Combiner Rule #68: constant_fold_fp_binop @ [mi[10]] |
| 4360 | /* 4597 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner43), |
| 4361 | /* 4600 */ // Label 297: @4600 |
| 4362 | /* 4600 */ GIM_Reject, |
| 4363 | /* 4601 */ // Label 76: @4601 |
| 4364 | /* 4601 */ GIM_Try, /*On fail goto*//*Label 298*/ GIMT_Encode4(4612), // Rule ID 108 // |
| 4365 | /* 4606 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule68Enabled), |
| 4366 | /* 4609 */ // MIs[0] d |
| 4367 | /* 4609 */ // No operand predicates |
| 4368 | /* 4609 */ // MIs[0] mi.src0 |
| 4369 | /* 4609 */ // No operand predicates |
| 4370 | /* 4609 */ // MIs[0] mi.src1 |
| 4371 | /* 4609 */ // No operand predicates |
| 4372 | /* 4609 */ // Combiner Rule #68: constant_fold_fp_binop @ [mi[11]] |
| 4373 | /* 4609 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner43), |
| 4374 | /* 4612 */ // Label 298: @4612 |
| 4375 | /* 4612 */ GIM_Reject, |
| 4376 | /* 4613 */ // Label 77: @4613 |
| 4377 | /* 4613 */ GIM_Try, /*On fail goto*//*Label 299*/ GIMT_Encode4(4624), // Rule ID 80 // |
| 4378 | /* 4618 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule67Enabled), |
| 4379 | /* 4621 */ // Combiner Rule #67: constant_fold_binop; wip_match_opcode 'G_PTR_ADD' |
| 4380 | /* 4621 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner42), |
| 4381 | /* 4624 */ // Label 299: @4624 |
| 4382 | /* 4624 */ GIM_Try, /*On fail goto*//*Label 300*/ GIMT_Encode4(4635), // Rule ID 151 // |
| 4383 | /* 4629 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule91Enabled), |
| 4384 | /* 4632 */ // Combiner Rule #91: ptr_add_immed_chain; wip_match_opcode 'G_PTR_ADD' |
| 4385 | /* 4632 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner52), |
| 4386 | /* 4635 */ // Label 300: @4635 |
| 4387 | /* 4635 */ GIM_Try, /*On fail goto*//*Label 301*/ GIMT_Encode4(4658), // Rule ID 117 // |
| 4388 | /* 4640 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule70Enabled), |
| 4389 | /* 4643 */ // MIs[0] dst |
| 4390 | /* 4643 */ // No operand predicates |
| 4391 | /* 4643 */ // MIs[0] lhs |
| 4392 | /* 4643 */ // No operand predicates |
| 4393 | /* 4643 */ // MIs[0] Operand 2 |
| 4394 | /* 4643 */ GIM_CheckConstantInt8, /*MI*/0, /*Op*/2, 0, |
| 4395 | /* 4647 */ GIM_CheckCanReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 4396 | /* 4652 */ // Combiner Rule #70: right_identity_zero @ [__right_identity_zero_match_0[7]] |
| 4397 | /* 4652 */ GIR_ReplaceReg, /*OldInsnID*/0, /*OldOpIdx*/0, /*NewInsnId*/0, /*NewOpIdx*/1, |
| 4398 | /* 4657 */ GIR_EraseRootFromParent_Done, |
| 4399 | /* 4658 */ // Label 301: @4658 |
| 4400 | /* 4658 */ GIM_Reject, |
| 4401 | /* 4659 */ // Label 78: @4659 |
| 4402 | /* 4659 */ GIM_Try, /*On fail goto*//*Label 302*/ GIMT_Encode4(4670), // Rule ID 93 // |
| 4403 | /* 4664 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule67Enabled), |
| 4404 | /* 4667 */ // Combiner Rule #67: constant_fold_binop; wip_match_opcode 'G_SMIN' |
| 4405 | /* 4667 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner42), |
| 4406 | /* 4670 */ // Label 302: @4670 |
| 4407 | /* 4670 */ GIM_Try, /*On fail goto*//*Label 303*/ GIMT_Encode4(4681), // Rule ID 191 // |
| 4408 | /* 4675 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule110Enabled), |
| 4409 | /* 4678 */ // Combiner Rule #110: commute_int_constant_to_rhs; wip_match_opcode 'G_SMIN' |
| 4410 | /* 4678 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner70), |
| 4411 | /* 4681 */ // Label 303: @4681 |
| 4412 | /* 4681 */ GIM_Reject, |
| 4413 | /* 4682 */ // Label 79: @4682 |
| 4414 | /* 4682 */ GIM_Try, /*On fail goto*//*Label 304*/ GIMT_Encode4(4693), // Rule ID 94 // |
| 4415 | /* 4687 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule67Enabled), |
| 4416 | /* 4690 */ // Combiner Rule #67: constant_fold_binop; wip_match_opcode 'G_SMAX' |
| 4417 | /* 4690 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner42), |
| 4418 | /* 4693 */ // Label 304: @4693 |
| 4419 | /* 4693 */ GIM_Try, /*On fail goto*//*Label 305*/ GIMT_Encode4(4704), // Rule ID 192 // |
| 4420 | /* 4698 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule110Enabled), |
| 4421 | /* 4701 */ // Combiner Rule #110: commute_int_constant_to_rhs; wip_match_opcode 'G_SMAX' |
| 4422 | /* 4701 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner70), |
| 4423 | /* 4704 */ // Label 305: @4704 |
| 4424 | /* 4704 */ GIM_Reject, |
| 4425 | /* 4705 */ // Label 80: @4705 |
| 4426 | /* 4705 */ GIM_Try, /*On fail goto*//*Label 306*/ GIMT_Encode4(4716), // Rule ID 95 // |
| 4427 | /* 4710 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule67Enabled), |
| 4428 | /* 4713 */ // Combiner Rule #67: constant_fold_binop; wip_match_opcode 'G_UMIN' |
| 4429 | /* 4713 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner42), |
| 4430 | /* 4716 */ // Label 306: @4716 |
| 4431 | /* 4716 */ GIM_Try, /*On fail goto*//*Label 307*/ GIMT_Encode4(4727), // Rule ID 193 // |
| 4432 | /* 4721 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule110Enabled), |
| 4433 | /* 4724 */ // Combiner Rule #110: commute_int_constant_to_rhs; wip_match_opcode 'G_UMIN' |
| 4434 | /* 4724 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner70), |
| 4435 | /* 4727 */ // Label 307: @4727 |
| 4436 | /* 4727 */ GIM_Reject, |
| 4437 | /* 4728 */ // Label 81: @4728 |
| 4438 | /* 4728 */ GIM_Try, /*On fail goto*//*Label 308*/ GIMT_Encode4(4739), // Rule ID 96 // |
| 4439 | /* 4733 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule67Enabled), |
| 4440 | /* 4736 */ // Combiner Rule #67: constant_fold_binop; wip_match_opcode 'G_UMAX' |
| 4441 | /* 4736 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner42), |
| 4442 | /* 4739 */ // Label 308: @4739 |
| 4443 | /* 4739 */ GIM_Try, /*On fail goto*//*Label 309*/ GIMT_Encode4(4750), // Rule ID 194 // |
| 4444 | /* 4744 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule110Enabled), |
| 4445 | /* 4747 */ // Combiner Rule #110: commute_int_constant_to_rhs; wip_match_opcode 'G_UMAX' |
| 4446 | /* 4747 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner70), |
| 4447 | /* 4750 */ // Label 309: @4750 |
| 4448 | /* 4750 */ GIM_Reject, |
| 4449 | /* 4751 */ // Label 82: @4751 |
| 4450 | /* 4751 */ GIM_Try, /*On fail goto*//*Label 310*/ GIMT_Encode4(4762), // Rule ID 165 // |
| 4451 | /* 4756 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule99Enabled), |
| 4452 | /* 4759 */ // Combiner Rule #99: unary_undef_to_zero; wip_match_opcode 'G_ABS' |
| 4453 | /* 4759 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner58), |
| 4454 | /* 4762 */ // Label 310: @4762 |
| 4455 | /* 4762 */ GIM_Reject, |
| 4456 | /* 4763 */ // Label 83: @4763 |
| 4457 | /* 4763 */ GIM_Try, /*On fail goto*//*Label 311*/ GIMT_Encode4(4774), // Rule ID 180 // |
| 4458 | /* 4768 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule105Enabled), |
| 4459 | /* 4771 */ // Combiner Rule #105: insert_extract_vec_elt_out_of_bounds; wip_match_opcode 'G_INSERT_VECTOR_ELT' |
| 4460 | /* 4771 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner65), |
| 4461 | /* 4774 */ // Label 311: @4774 |
| 4462 | /* 4774 */ GIM_Reject, |
| 4463 | /* 4775 */ // Label 84: @4775 |
| 4464 | /* 4775 */ GIM_Try, /*On fail goto*//*Label 312*/ GIMT_Encode4(4786), // Rule ID 44 // |
| 4465 | /* 4780 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule37Enabled), |
| 4466 | /* 4783 */ // Combiner Rule #37: extractvecelt_pairwise_add; wip_match_opcode 'G_EXTRACT_VECTOR_ELT' |
| 4467 | /* 4783 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner16), |
| 4468 | /* 4786 */ // Label 312: @4786 |
| 4469 | /* 4786 */ GIM_Try, /*On fail goto*//*Label 313*/ GIMT_Encode4(4797), // Rule ID 181 // |
| 4470 | /* 4791 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule105Enabled), |
| 4471 | /* 4794 */ // Combiner Rule #105: insert_extract_vec_elt_out_of_bounds; wip_match_opcode 'G_EXTRACT_VECTOR_ELT' |
| 4472 | /* 4794 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner65), |
| 4473 | /* 4797 */ // Label 313: @4797 |
| 4474 | /* 4797 */ GIM_Try, /*On fail goto*//*Label 314*/ GIMT_Encode4(4808), // Rule ID 215 // |
| 4475 | /* 4802 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule112Enabled), |
| 4476 | /* 4805 */ // Combiner Rule #112: extract_vec_elt_build_vec; wip_match_opcode 'G_EXTRACT_VECTOR_ELT' |
| 4477 | /* 4805 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner72), |
| 4478 | /* 4808 */ // Label 314: @4808 |
| 4479 | /* 4808 */ GIM_Reject, |
| 4480 | /* 4809 */ // Label 85: @4809 |
| 4481 | /* 4809 */ GIM_Try, /*On fail goto*//*Label 315*/ GIMT_Encode4(4820), // Rule ID 176 // |
| 4482 | /* 4814 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule102Enabled), |
| 4483 | /* 4817 */ // Combiner Rule #102: propagate_undef_all_ops; wip_match_opcode 'G_SHUFFLE_VECTOR' |
| 4484 | /* 4817 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner62), |
| 4485 | /* 4820 */ // Label 315: @4820 |
| 4486 | /* 4820 */ GIM_Try, /*On fail goto*//*Label 316*/ GIMT_Encode4(4831), // Rule ID 178 // |
| 4487 | /* 4825 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule103Enabled), |
| 4488 | /* 4828 */ // Combiner Rule #103: propagate_undef_shuffle_mask; wip_match_opcode 'G_SHUFFLE_VECTOR' |
| 4489 | /* 4828 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner63), |
| 4490 | /* 4831 */ // Label 316: @4831 |
| 4491 | /* 4831 */ GIM_Reject, |
| 4492 | /* 4832 */ // Label 86: @4832 |
| 4493 | /* 4832 */ GIM_Try, /*On fail goto*//*Label 317*/ GIMT_Encode4(4853), // Rule ID 18 // |
| 4494 | /* 4837 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule18Enabled), |
| 4495 | /* 4840 */ // MIs[0] dst |
| 4496 | /* 4840 */ // No operand predicates |
| 4497 | /* 4840 */ // MIs[0] src0 |
| 4498 | /* 4840 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 4499 | /* 4844 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT), |
| 4500 | /* 4848 */ // MIs[1] cst |
| 4501 | /* 4848 */ // No operand predicates |
| 4502 | /* 4848 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 4503 | /* 4850 */ // Combiner Rule #18: constant_fold_fceil |
| 4504 | /* 4850 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner4), |
| 4505 | /* 4853 */ // Label 317: @4853 |
| 4506 | /* 4853 */ GIM_Reject, |
| 4507 | /* 4854 */ // Label 87: @4854 |
| 4508 | /* 4854 */ GIM_Try, /*On fail goto*//*Label 318*/ GIMT_Encode4(4875), // Rule ID 14 // |
| 4509 | /* 4859 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule14Enabled), |
| 4510 | /* 4862 */ // MIs[0] dst |
| 4511 | /* 4862 */ // No operand predicates |
| 4512 | /* 4862 */ // MIs[0] src0 |
| 4513 | /* 4862 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 4514 | /* 4866 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT), |
| 4515 | /* 4870 */ // MIs[1] cst |
| 4516 | /* 4870 */ // No operand predicates |
| 4517 | /* 4870 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 4518 | /* 4872 */ // Combiner Rule #14: constant_fold_fsqrt |
| 4519 | /* 4872 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner4), |
| 4520 | /* 4875 */ // Label 318: @4875 |
| 4521 | /* 4875 */ GIM_Reject, |
| 4522 | /* 4876 */ // Label 88: @4876 |
| 4523 | /* 4876 */ GIM_Try, /*On fail goto*//*Label 319*/ GIMT_Encode4(4897), // Rule ID 19 // |
| 4524 | /* 4881 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule19Enabled), |
| 4525 | /* 4884 */ // MIs[0] dst |
| 4526 | /* 4884 */ // No operand predicates |
| 4527 | /* 4884 */ // MIs[0] src0 |
| 4528 | /* 4884 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 4529 | /* 4888 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT), |
| 4530 | /* 4892 */ // MIs[1] cst |
| 4531 | /* 4892 */ // No operand predicates |
| 4532 | /* 4892 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 4533 | /* 4894 */ // Combiner Rule #19: constant_fold_ffloor |
| 4534 | /* 4894 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner4), |
| 4535 | /* 4897 */ // Label 319: @4897 |
| 4536 | /* 4897 */ GIM_Reject, |
| 4537 | /* 4898 */ // Label 89: @4898 |
| 4538 | /* 4898 */ GIM_Try, /*On fail goto*//*Label 320*/ GIMT_Encode4(4919), // Rule ID 23 // |
| 4539 | /* 4903 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule23Enabled), |
| 4540 | /* 4906 */ // MIs[0] dst |
| 4541 | /* 4906 */ // No operand predicates |
| 4542 | /* 4906 */ // MIs[0] src0 |
| 4543 | /* 4906 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 4544 | /* 4910 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT), |
| 4545 | /* 4914 */ // MIs[1] cst |
| 4546 | /* 4914 */ // No operand predicates |
| 4547 | /* 4914 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 4548 | /* 4916 */ // Combiner Rule #23: constant_fold_frint |
| 4549 | /* 4916 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner4), |
| 4550 | /* 4919 */ // Label 320: @4919 |
| 4551 | /* 4919 */ GIM_Reject, |
| 4552 | /* 4920 */ // Label 90: @4920 |
| 4553 | /* 4920 */ GIM_Try, /*On fail goto*//*Label 321*/ GIMT_Encode4(4941), // Rule ID 24 // |
| 4554 | /* 4925 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule24Enabled), |
| 4555 | /* 4928 */ // MIs[0] dst |
| 4556 | /* 4928 */ // No operand predicates |
| 4557 | /* 4928 */ // MIs[0] src0 |
| 4558 | /* 4928 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/1, // MIs[1] |
| 4559 | /* 4932 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FCONSTANT), |
| 4560 | /* 4936 */ // MIs[1] cst |
| 4561 | /* 4936 */ // No operand predicates |
| 4562 | /* 4936 */ GIM_CheckIsSafeToFold, /*NumInsns*/1, |
| 4563 | /* 4938 */ // Combiner Rule #24: constant_fold_fnearbyint |
| 4564 | /* 4938 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner4), |
| 4565 | /* 4941 */ // Label 321: @4941 |
| 4566 | /* 4941 */ GIM_Reject, |
| 4567 | /* 4942 */ // Label 91: @4942 |
| 4568 | /* 4942 */ GIM_Reject, |
| 4569 | /* 4943 */ }; // Size: 4943 bytes |
| 4570 | return MatchTable0; |
| 4571 | } |
| 4572 | #undef GIMT_Encode2 |
| 4573 | #undef GIMT_Encode4 |
| 4574 | #undef GIMT_Encode8 |
| 4575 | |
| 4576 | |
| 4577 | #endif // GET_GICOMBINER_IMPL |
| 4578 | |
| 4579 | #ifdef GET_GICOMBINER_CONSTRUCTOR_INITS |
| 4580 | |
| 4581 | AvailableModuleFeatures(computeAvailableModuleFeatures(&STI)), |
| 4582 | AvailableFunctionFeatures() |
| 4583 | |
| 4584 | #endif // GET_GICOMBINER_CONSTRUCTOR_INITS |
| 4585 | |
| 4586 | #ifdef GET_GICOMBINER_CONSTRUCTOR_INITS |
| 4587 | |
| 4588 | , State(0), |
| 4589 | ExecInfo(TypeObjects, NumTypeObjects, FeatureBitsets, ComplexPredicateFns, CustomRenderers) |
| 4590 | |
| 4591 | #endif // GET_GICOMBINER_CONSTRUCTOR_INITS |
| 4592 | |
| 4593 | |