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