2020-04-04 12:15:01 -05:00
|
|
|
- // MIR for `main` before ConstProp
|
|
|
|
+ // MIR for `main` after ConstProp
|
|
|
|
|
|
|
|
fn main() -> () {
|
2023-06-06 08:47:00 -05:00
|
|
|
let mut _0: ();
|
|
|
|
let _1: ();
|
|
|
|
let mut _2: ((u8, u8),);
|
|
|
|
let mut _3: (u8, u8);
|
2020-04-04 12:15:01 -05:00
|
|
|
|
|
|
|
bb0: {
|
2023-06-06 08:47:00 -05:00
|
|
|
StorageLive(_2);
|
|
|
|
StorageLive(_3);
|
|
|
|
- _3 = (const 1_u8, const 2_u8);
|
2023-02-08 12:54:34 -06:00
|
|
|
- _2 = (move _3,);
|
2023-06-06 08:47:00 -05:00
|
|
|
+ _3 = const (1_u8, 2_u8);
|
2023-02-08 15:05:56 -06:00
|
|
|
+ _2 = const ((1_u8, 2_u8),);
|
2023-06-06 08:47:00 -05:00
|
|
|
StorageDead(_3);
|
2023-02-08 15:05:56 -06:00
|
|
|
- _1 = test(move _2) -> [return: bb1, unwind unreachable];
|
|
|
|
+ _1 = test(const ((1_u8, 2_u8),)) -> [return: bb1, unwind unreachable];
|
2020-04-04 12:15:01 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb1: {
|
2023-06-06 08:47:00 -05:00
|
|
|
StorageDead(_2);
|
|
|
|
return;
|
2020-04-04 12:15:01 -05:00
|
|
|
}
|
2023-09-12 04:33:58 -05:00
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ alloc12 (size: 2, align: 1) {
|
|
|
|
+ 01 02 │ ..
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ alloc11 (size: 2, align: 1) {
|
|
|
|
+ 01 02 │ ..
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ alloc8 (size: 2, align: 1) {
|
|
|
|
+ 01 02 │ ..
|
2020-04-04 12:15:01 -05:00
|
|
|
}
|
|
|
|
|