]> git.lizzy.rs Git - rust.git/blob - src/test/mir-opt/const_prop/aggregate.main.ConstProp.diff
Merge commit '4c41a222ca5d1325fb4b6709395bd06e766cc042' into clippyup
[rust.git] / src / test / mir-opt / const_prop / aggregate.main.ConstProp.diff
1 - // MIR for `main` before ConstProp
2 + // MIR for `main` after ConstProp
3   
4   fn main() -> () {
5       let mut _0: ();                      // return place in scope 0 at $DIR/aggregate.rs:4:11: 4:11
6       let _1: i32;                         // in scope 0 at $DIR/aggregate.rs:5:9: 5:10
7       let mut _2: i32;                     // in scope 0 at $DIR/aggregate.rs:5:13: 5:24
8       let mut _3: (i32, i32, i32);         // in scope 0 at $DIR/aggregate.rs:5:13: 5:22
9       scope 1 {
10           debug x => _1;                   // in scope 1 at $DIR/aggregate.rs:5:9: 5:10
11       }
12   
13       bb0: {
14           StorageLive(_1);                 // scope 0 at $DIR/aggregate.rs:5:9: 5:10
15           StorageLive(_2);                 // scope 0 at $DIR/aggregate.rs:5:13: 5:24
16           StorageLive(_3);                 // scope 0 at $DIR/aggregate.rs:5:13: 5:22
17           (_3.0: i32) = const 0_i32;       // scope 0 at $DIR/aggregate.rs:5:13: 5:22
18           (_3.1: i32) = const 1_i32;       // scope 0 at $DIR/aggregate.rs:5:13: 5:22
19           (_3.2: i32) = const 2_i32;       // scope 0 at $DIR/aggregate.rs:5:13: 5:22
20 -         _2 = (_3.1: i32);                // scope 0 at $DIR/aggregate.rs:5:13: 5:24
21 -         _1 = Add(move _2, const 0_i32);  // scope 0 at $DIR/aggregate.rs:5:13: 5:28
22 +         _2 = const 1_i32;                // scope 0 at $DIR/aggregate.rs:5:13: 5:24
23 +         _1 = const 1_i32;                // scope 0 at $DIR/aggregate.rs:5:13: 5:28
24           StorageDead(_2);                 // scope 0 at $DIR/aggregate.rs:5:27: 5:28
25           StorageDead(_3);                 // scope 0 at $DIR/aggregate.rs:5:28: 5:29
26           nop;                             // scope 0 at $DIR/aggregate.rs:4:11: 6:2
27           StorageDead(_1);                 // scope 0 at $DIR/aggregate.rs:6:1: 6:2
28           return;                          // scope 0 at $DIR/aggregate.rs:6:2: 6:2
29       }
30   }
31