1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564
|
- // MIR for `cast` before GVN
+ // MIR for `cast` after GVN
fn cast() -> () {
let mut _0: ();
let _1: i64;
let _4: ();
let mut _5: u8;
let mut _6: i64;
let _7: ();
let mut _8: u16;
let mut _9: i64;
let _10: ();
let mut _11: u32;
let mut _12: i64;
let _13: ();
let mut _14: u64;
let mut _15: i64;
let _16: ();
let mut _17: i8;
let mut _18: i64;
let _19: ();
let mut _20: i16;
let mut _21: i64;
let _22: ();
let mut _23: i32;
let mut _24: i64;
let _25: ();
let mut _26: i64;
let _27: ();
let mut _28: f32;
let mut _29: i64;
let _30: ();
let mut _31: f64;
let mut _32: i64;
let _33: ();
let mut _34: u8;
let mut _35: u64;
let _36: ();
let mut _37: u16;
let mut _38: u64;
let _39: ();
let mut _40: u32;
let mut _41: u64;
let _42: ();
let mut _43: u64;
let _44: ();
let mut _45: i8;
let mut _46: u64;
let _47: ();
let mut _48: i16;
let mut _49: u64;
let _50: ();
let mut _51: i32;
let mut _52: u64;
let _53: ();
let mut _54: i64;
let mut _55: u64;
let _56: ();
let mut _57: f32;
let mut _58: u64;
let _59: ();
let mut _60: f64;
let mut _61: u64;
let _62: ();
let mut _63: u8;
let mut _64: f64;
let _65: ();
let mut _66: u16;
let mut _67: f64;
let _68: ();
let mut _69: u32;
let mut _70: f64;
let _71: ();
let mut _72: u64;
let mut _73: f64;
let _74: ();
let mut _75: i8;
let mut _76: f64;
let _77: ();
let mut _78: i16;
let mut _79: f64;
let _80: ();
let mut _81: i32;
let mut _82: f64;
let _83: ();
let mut _84: i64;
let mut _85: f64;
let _86: ();
let mut _87: f32;
let mut _88: f64;
let _89: ();
let mut _90: f64;
scope 1 {
debug i => _1;
let _2: u64;
scope 2 {
debug u => _2;
let _3: f64;
scope 3 {
debug f => _3;
}
}
}
bb0: {
- StorageLive(_1);
+ nop;
_1 = const 1_i64;
- StorageLive(_2);
+ nop;
_2 = const 1_u64;
- StorageLive(_3);
+ nop;
_3 = const 1f64;
StorageLive(_4);
StorageLive(_5);
StorageLive(_6);
- _6 = copy _1;
- _5 = move _6 as u8 (IntToInt);
+ _6 = const 1_i64;
+ _5 = const 1_u8;
StorageDead(_6);
- _4 = opaque::<u8>(move _5) -> [return: bb1, unwind continue];
+ _4 = opaque::<u8>(const 1_u8) -> [return: bb1, unwind continue];
}
bb1: {
StorageDead(_5);
StorageDead(_4);
StorageLive(_7);
StorageLive(_8);
StorageLive(_9);
- _9 = copy _1;
- _8 = move _9 as u16 (IntToInt);
+ _9 = const 1_i64;
+ _8 = const 1_u16;
StorageDead(_9);
- _7 = opaque::<u16>(move _8) -> [return: bb2, unwind continue];
+ _7 = opaque::<u16>(const 1_u16) -> [return: bb2, unwind continue];
}
bb2: {
StorageDead(_8);
StorageDead(_7);
StorageLive(_10);
StorageLive(_11);
StorageLive(_12);
- _12 = copy _1;
- _11 = move _12 as u32 (IntToInt);
+ _12 = const 1_i64;
+ _11 = const 1_u32;
StorageDead(_12);
- _10 = opaque::<u32>(move _11) -> [return: bb3, unwind continue];
+ _10 = opaque::<u32>(const 1_u32) -> [return: bb3, unwind continue];
}
bb3: {
StorageDead(_11);
StorageDead(_10);
StorageLive(_13);
StorageLive(_14);
StorageLive(_15);
- _15 = copy _1;
- _14 = move _15 as u64 (IntToInt);
+ _15 = const 1_i64;
+ _14 = const 1_u64;
StorageDead(_15);
- _13 = opaque::<u64>(move _14) -> [return: bb4, unwind continue];
+ _13 = opaque::<u64>(const 1_u64) -> [return: bb4, unwind continue];
}
bb4: {
StorageDead(_14);
StorageDead(_13);
StorageLive(_16);
StorageLive(_17);
StorageLive(_18);
- _18 = copy _1;
- _17 = move _18 as i8 (IntToInt);
+ _18 = const 1_i64;
+ _17 = const 1_i8;
StorageDead(_18);
- _16 = opaque::<i8>(move _17) -> [return: bb5, unwind continue];
+ _16 = opaque::<i8>(const 1_i8) -> [return: bb5, unwind continue];
}
bb5: {
StorageDead(_17);
StorageDead(_16);
StorageLive(_19);
StorageLive(_20);
StorageLive(_21);
- _21 = copy _1;
- _20 = move _21 as i16 (IntToInt);
+ _21 = const 1_i64;
+ _20 = const 1_i16;
StorageDead(_21);
- _19 = opaque::<i16>(move _20) -> [return: bb6, unwind continue];
+ _19 = opaque::<i16>(const 1_i16) -> [return: bb6, unwind continue];
}
bb6: {
StorageDead(_20);
StorageDead(_19);
StorageLive(_22);
StorageLive(_23);
StorageLive(_24);
- _24 = copy _1;
- _23 = move _24 as i32 (IntToInt);
+ _24 = const 1_i64;
+ _23 = const 1_i32;
StorageDead(_24);
- _22 = opaque::<i32>(move _23) -> [return: bb7, unwind continue];
+ _22 = opaque::<i32>(const 1_i32) -> [return: bb7, unwind continue];
}
bb7: {
StorageDead(_23);
StorageDead(_22);
StorageLive(_25);
StorageLive(_26);
- _26 = copy _1;
- _25 = opaque::<i64>(move _26) -> [return: bb8, unwind continue];
+ _26 = const 1_i64;
+ _25 = opaque::<i64>(const 1_i64) -> [return: bb8, unwind continue];
}
bb8: {
StorageDead(_26);
StorageDead(_25);
StorageLive(_27);
StorageLive(_28);
StorageLive(_29);
- _29 = copy _1;
- _28 = move _29 as f32 (IntToFloat);
+ _29 = const 1_i64;
+ _28 = const 1f32;
StorageDead(_29);
- _27 = opaque::<f32>(move _28) -> [return: bb9, unwind continue];
+ _27 = opaque::<f32>(const 1f32) -> [return: bb9, unwind continue];
}
bb9: {
StorageDead(_28);
StorageDead(_27);
StorageLive(_30);
StorageLive(_31);
StorageLive(_32);
- _32 = copy _1;
- _31 = move _32 as f64 (IntToFloat);
+ _32 = const 1_i64;
+ _31 = const 1f64;
StorageDead(_32);
- _30 = opaque::<f64>(move _31) -> [return: bb10, unwind continue];
+ _30 = opaque::<f64>(const 1f64) -> [return: bb10, unwind continue];
}
bb10: {
StorageDead(_31);
StorageDead(_30);
StorageLive(_33);
StorageLive(_34);
StorageLive(_35);
- _35 = copy _2;
- _34 = move _35 as u8 (IntToInt);
+ _35 = const 1_u64;
+ _34 = const 1_u8;
StorageDead(_35);
- _33 = opaque::<u8>(move _34) -> [return: bb11, unwind continue];
+ _33 = opaque::<u8>(const 1_u8) -> [return: bb11, unwind continue];
}
bb11: {
StorageDead(_34);
StorageDead(_33);
StorageLive(_36);
StorageLive(_37);
StorageLive(_38);
- _38 = copy _2;
- _37 = move _38 as u16 (IntToInt);
+ _38 = const 1_u64;
+ _37 = const 1_u16;
StorageDead(_38);
- _36 = opaque::<u16>(move _37) -> [return: bb12, unwind continue];
+ _36 = opaque::<u16>(const 1_u16) -> [return: bb12, unwind continue];
}
bb12: {
StorageDead(_37);
StorageDead(_36);
StorageLive(_39);
StorageLive(_40);
StorageLive(_41);
- _41 = copy _2;
- _40 = move _41 as u32 (IntToInt);
+ _41 = const 1_u64;
+ _40 = const 1_u32;
StorageDead(_41);
- _39 = opaque::<u32>(move _40) -> [return: bb13, unwind continue];
+ _39 = opaque::<u32>(const 1_u32) -> [return: bb13, unwind continue];
}
bb13: {
StorageDead(_40);
StorageDead(_39);
StorageLive(_42);
StorageLive(_43);
- _43 = copy _2;
- _42 = opaque::<u64>(move _43) -> [return: bb14, unwind continue];
+ _43 = const 1_u64;
+ _42 = opaque::<u64>(const 1_u64) -> [return: bb14, unwind continue];
}
bb14: {
StorageDead(_43);
StorageDead(_42);
StorageLive(_44);
StorageLive(_45);
StorageLive(_46);
- _46 = copy _2;
- _45 = move _46 as i8 (IntToInt);
+ _46 = const 1_u64;
+ _45 = const 1_i8;
StorageDead(_46);
- _44 = opaque::<i8>(move _45) -> [return: bb15, unwind continue];
+ _44 = opaque::<i8>(const 1_i8) -> [return: bb15, unwind continue];
}
bb15: {
StorageDead(_45);
StorageDead(_44);
StorageLive(_47);
StorageLive(_48);
StorageLive(_49);
- _49 = copy _2;
- _48 = move _49 as i16 (IntToInt);
+ _49 = const 1_u64;
+ _48 = const 1_i16;
StorageDead(_49);
- _47 = opaque::<i16>(move _48) -> [return: bb16, unwind continue];
+ _47 = opaque::<i16>(const 1_i16) -> [return: bb16, unwind continue];
}
bb16: {
StorageDead(_48);
StorageDead(_47);
StorageLive(_50);
StorageLive(_51);
StorageLive(_52);
- _52 = copy _2;
- _51 = move _52 as i32 (IntToInt);
+ _52 = const 1_u64;
+ _51 = const 1_i32;
StorageDead(_52);
- _50 = opaque::<i32>(move _51) -> [return: bb17, unwind continue];
+ _50 = opaque::<i32>(const 1_i32) -> [return: bb17, unwind continue];
}
bb17: {
StorageDead(_51);
StorageDead(_50);
StorageLive(_53);
StorageLive(_54);
StorageLive(_55);
- _55 = copy _2;
- _54 = move _55 as i64 (IntToInt);
+ _55 = const 1_u64;
+ _54 = const 1_i64;
StorageDead(_55);
- _53 = opaque::<i64>(move _54) -> [return: bb18, unwind continue];
+ _53 = opaque::<i64>(const 1_i64) -> [return: bb18, unwind continue];
}
bb18: {
StorageDead(_54);
StorageDead(_53);
StorageLive(_56);
StorageLive(_57);
StorageLive(_58);
- _58 = copy _2;
- _57 = move _58 as f32 (IntToFloat);
+ _58 = const 1_u64;
+ _57 = const 1f32;
StorageDead(_58);
- _56 = opaque::<f32>(move _57) -> [return: bb19, unwind continue];
+ _56 = opaque::<f32>(const 1f32) -> [return: bb19, unwind continue];
}
bb19: {
StorageDead(_57);
StorageDead(_56);
StorageLive(_59);
StorageLive(_60);
StorageLive(_61);
- _61 = copy _2;
- _60 = move _61 as f64 (IntToFloat);
+ _61 = const 1_u64;
+ _60 = const 1f64;
StorageDead(_61);
- _59 = opaque::<f64>(move _60) -> [return: bb20, unwind continue];
+ _59 = opaque::<f64>(const 1f64) -> [return: bb20, unwind continue];
}
bb20: {
StorageDead(_60);
StorageDead(_59);
StorageLive(_62);
StorageLive(_63);
StorageLive(_64);
- _64 = copy _3;
- _63 = move _64 as u8 (FloatToInt);
+ _64 = const 1f64;
+ _63 = const 1_u8;
StorageDead(_64);
- _62 = opaque::<u8>(move _63) -> [return: bb21, unwind continue];
+ _62 = opaque::<u8>(const 1_u8) -> [return: bb21, unwind continue];
}
bb21: {
StorageDead(_63);
StorageDead(_62);
StorageLive(_65);
StorageLive(_66);
StorageLive(_67);
- _67 = copy _3;
- _66 = move _67 as u16 (FloatToInt);
+ _67 = const 1f64;
+ _66 = const 1_u16;
StorageDead(_67);
- _65 = opaque::<u16>(move _66) -> [return: bb22, unwind continue];
+ _65 = opaque::<u16>(const 1_u16) -> [return: bb22, unwind continue];
}
bb22: {
StorageDead(_66);
StorageDead(_65);
StorageLive(_68);
StorageLive(_69);
StorageLive(_70);
- _70 = copy _3;
- _69 = move _70 as u32 (FloatToInt);
+ _70 = const 1f64;
+ _69 = const 1_u32;
StorageDead(_70);
- _68 = opaque::<u32>(move _69) -> [return: bb23, unwind continue];
+ _68 = opaque::<u32>(const 1_u32) -> [return: bb23, unwind continue];
}
bb23: {
StorageDead(_69);
StorageDead(_68);
StorageLive(_71);
StorageLive(_72);
StorageLive(_73);
- _73 = copy _3;
- _72 = move _73 as u64 (FloatToInt);
+ _73 = const 1f64;
+ _72 = const 1_u64;
StorageDead(_73);
- _71 = opaque::<u64>(move _72) -> [return: bb24, unwind continue];
+ _71 = opaque::<u64>(const 1_u64) -> [return: bb24, unwind continue];
}
bb24: {
StorageDead(_72);
StorageDead(_71);
StorageLive(_74);
StorageLive(_75);
StorageLive(_76);
- _76 = copy _3;
- _75 = move _76 as i8 (FloatToInt);
+ _76 = const 1f64;
+ _75 = const 1_i8;
StorageDead(_76);
- _74 = opaque::<i8>(move _75) -> [return: bb25, unwind continue];
+ _74 = opaque::<i8>(const 1_i8) -> [return: bb25, unwind continue];
}
bb25: {
StorageDead(_75);
StorageDead(_74);
StorageLive(_77);
StorageLive(_78);
StorageLive(_79);
- _79 = copy _3;
- _78 = move _79 as i16 (FloatToInt);
+ _79 = const 1f64;
+ _78 = const 1_i16;
StorageDead(_79);
- _77 = opaque::<i16>(move _78) -> [return: bb26, unwind continue];
+ _77 = opaque::<i16>(const 1_i16) -> [return: bb26, unwind continue];
}
bb26: {
StorageDead(_78);
StorageDead(_77);
StorageLive(_80);
StorageLive(_81);
StorageLive(_82);
- _82 = copy _3;
- _81 = move _82 as i32 (FloatToInt);
+ _82 = const 1f64;
+ _81 = const 1_i32;
StorageDead(_82);
- _80 = opaque::<i32>(move _81) -> [return: bb27, unwind continue];
+ _80 = opaque::<i32>(const 1_i32) -> [return: bb27, unwind continue];
}
bb27: {
StorageDead(_81);
StorageDead(_80);
StorageLive(_83);
StorageLive(_84);
StorageLive(_85);
- _85 = copy _3;
- _84 = move _85 as i64 (FloatToInt);
+ _85 = const 1f64;
+ _84 = const 1_i64;
StorageDead(_85);
- _83 = opaque::<i64>(move _84) -> [return: bb28, unwind continue];
+ _83 = opaque::<i64>(const 1_i64) -> [return: bb28, unwind continue];
}
bb28: {
StorageDead(_84);
StorageDead(_83);
StorageLive(_86);
StorageLive(_87);
StorageLive(_88);
- _88 = copy _3;
- _87 = move _88 as f32 (FloatToFloat);
+ _88 = const 1f64;
+ _87 = const 1f32;
StorageDead(_88);
- _86 = opaque::<f32>(move _87) -> [return: bb29, unwind continue];
+ _86 = opaque::<f32>(const 1f32) -> [return: bb29, unwind continue];
}
bb29: {
StorageDead(_87);
StorageDead(_86);
StorageLive(_89);
StorageLive(_90);
- _90 = copy _3;
- _89 = opaque::<f64>(move _90) -> [return: bb30, unwind continue];
+ _90 = const 1f64;
+ _89 = opaque::<f64>(const 1f64) -> [return: bb30, unwind continue];
}
bb30: {
StorageDead(_90);
StorageDead(_89);
_0 = const ();
- StorageDead(_3);
- StorageDead(_2);
- StorageDead(_1);
+ nop;
+ nop;
+ nop;
return;
}
}
|