]> git.lizzy.rs Git - rust.git/blob - src/test/mir-opt/const_prop/issue_66971.main.ConstProp.diff
Merge commit 'c19edfd71a1d0ddef86c2c67fdb40718d40a72b4' into sync_cg_clif-2022-07-25
[rust.git] / src / test / mir-opt / const_prop / issue_66971.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/issue-66971.rs:15:11: 15:11
6       let _1: ();                          // in scope 0 at $DIR/issue-66971.rs:16:5: 16:23
7       let mut _2: ((), u8, u8);            // in scope 0 at $DIR/issue-66971.rs:16:12: 16:22
8       let mut _3: ();                      // in scope 0 at $DIR/issue-66971.rs:16:13: 16:15
9   
10       bb0: {
11           StorageLive(_1);                 // scope 0 at $DIR/issue-66971.rs:16:5: 16:23
12           StorageLive(_2);                 // scope 0 at $DIR/issue-66971.rs:16:12: 16:22
13           StorageLive(_3);                 // scope 0 at $DIR/issue-66971.rs:16:13: 16:15
14           nop;                             // scope 0 at $DIR/issue-66971.rs:16:13: 16:15
15           Deinit(_2);                      // scope 0 at $DIR/issue-66971.rs:16:12: 16:22
16           nop;                             // scope 0 at $DIR/issue-66971.rs:16:12: 16:22
17           (_2.1: u8) = const 0_u8;         // scope 0 at $DIR/issue-66971.rs:16:12: 16:22
18           (_2.2: u8) = const 0_u8;         // scope 0 at $DIR/issue-66971.rs:16:12: 16:22
19           StorageDead(_3);                 // scope 0 at $DIR/issue-66971.rs:16:21: 16:22
20           _1 = encode(move _2) -> bb1;     // scope 0 at $DIR/issue-66971.rs:16:5: 16:23
21                                            // mir::Constant
22                                            // + span: $DIR/issue-66971.rs:16:5: 16:11
23                                            // + literal: Const { ty: fn(((), u8, u8)) {encode}, val: Value(<ZST>) }
24       }
25   
26       bb1: {
27           StorageDead(_2);                 // scope 0 at $DIR/issue-66971.rs:16:22: 16:23
28           StorageDead(_1);                 // scope 0 at $DIR/issue-66971.rs:16:23: 16:24
29           nop;                             // scope 0 at $DIR/issue-66971.rs:15:11: 17:2
30           return;                          // scope 0 at $DIR/issue-66971.rs:17:2: 17:2
31       }
32   }
33