2023-09-20 16:43:33 -05:00
|
|
|
- // MIR for `main` before GVN
|
|
|
|
+ // MIR for `main` after GVN
|
2020-04-22 20:39:47 -05:00
|
|
|
|
|
|
|
fn main() -> () {
|
2023-06-06 08:47:00 -05:00
|
|
|
let mut _0: ();
|
|
|
|
let _1: (u32, u32);
|
|
|
|
let _2: ();
|
|
|
|
let mut _3: (u32, u32);
|
2020-04-22 20:39:47 -05:00
|
|
|
scope 1 {
|
2023-06-06 08:47:00 -05:00
|
|
|
debug x => _1;
|
2020-04-22 20:39:47 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb0: {
|
2023-09-20 16:43:33 -05:00
|
|
|
- StorageLive(_1);
|
2023-06-06 08:47:00 -05:00
|
|
|
- _1 = (const 1_u32, const 2_u32);
|
2023-09-20 16:43:33 -05:00
|
|
|
+ nop;
|
2023-06-06 08:47:00 -05:00
|
|
|
+ _1 = const (1_u32, 2_u32);
|
|
|
|
StorageLive(_2);
|
|
|
|
StorageLive(_3);
|
|
|
|
- _3 = copy _1;
|
2023-02-08 12:54:34 -06:00
|
|
|
- _2 = consume(move _3) -> [return: bb1, unwind continue];
|
2023-06-06 08:47:00 -05:00
|
|
|
+ _3 = const (1_u32, 2_u32);
|
2023-02-08 12:54:34 -06:00
|
|
|
+ _2 = consume(const (1_u32, 2_u32)) -> [return: bb1, unwind continue];
|
2020-04-22 20:39:47 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb1: {
|
2023-06-06 08:47:00 -05:00
|
|
|
StorageDead(_3);
|
|
|
|
StorageDead(_2);
|
|
|
|
_0 = const ();
|
2023-09-20 16:43:33 -05:00
|
|
|
- StorageDead(_1);
|
|
|
|
+ nop;
|
2023-06-06 08:47:00 -05:00
|
|
|
return;
|
2020-04-22 20:39:47 -05:00
|
|
|
}
|
|
|
|
}
|
2024-06-14 18:05:22 -05:00
|
|
|
+
|
|
|
|
+ ALLOC0 (size: 8, align: 4) { .. }
|
2020-04-22 20:39:47 -05:00
|
|
|
|