]> git.proxmox.com Git - rustc.git/blob - src/test/mir-opt/inline/inline_retag.bar.Inline.after.mir
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / mir-opt / inline / inline_retag.bar.Inline.after.mir
1 // MIR for `bar` after Inline
2
3 fn bar() -> bool {
4 let mut _0: bool; // return place in scope 0 at $DIR/inline-retag.rs:+0:13: +0:17
5 let _1: for<'a, 'b> fn(&'a i32, &'b i32) -> bool {foo}; // in scope 0 at $DIR/inline-retag.rs:+1:9: +1:10
6 let mut _2: for<'a, 'b> fn(&'a i32, &'b i32) -> bool {foo}; // in scope 0 at $DIR/inline-retag.rs:+2:5: +2:6
7 let mut _3: &i32; // in scope 0 at $DIR/inline-retag.rs:+2:7: +2:9
8 let _4: &i32; // in scope 0 at $DIR/inline-retag.rs:+2:7: +2:9
9 let _5: i32; // in scope 0 at $DIR/inline-retag.rs:+2:8: +2:9
10 let mut _6: &i32; // in scope 0 at $DIR/inline-retag.rs:+2:11: +2:14
11 let _7: &i32; // in scope 0 at $DIR/inline-retag.rs:+2:11: +2:14
12 let _8: i32; // in scope 0 at $DIR/inline-retag.rs:+2:12: +2:14
13 scope 1 {
14 debug f => _1; // in scope 1 at $DIR/inline-retag.rs:+1:9: +1:10
15 let mut _9: &i32; // in scope 1 at $DIR/inline-retag.rs:+2:11: +2:14
16 let mut _10: &i32; // in scope 1 at $DIR/inline-retag.rs:+2:7: +2:9
17 scope 2 (inlined foo) { // at $DIR/inline-retag.rs:12:5: 12:15
18 debug x => _3; // in scope 2 at $DIR/inline-retag.rs:16:8: 16:9
19 debug y => _6; // in scope 2 at $DIR/inline-retag.rs:16:17: 16:18
20 let mut _11: i32; // in scope 2 at $DIR/inline-retag.rs:17:5: 17:7
21 let mut _12: i32; // in scope 2 at $DIR/inline-retag.rs:17:11: 17:13
22 }
23 }
24
25 bb0: {
26 StorageLive(_1); // scope 0 at $DIR/inline-retag.rs:+1:9: +1:10
27 _1 = foo; // scope 0 at $DIR/inline-retag.rs:+1:13: +1:16
28 // mir::Constant
29 // + span: $DIR/inline-retag.rs:11:13: 11:16
30 // + literal: Const { ty: for<'a, 'b> fn(&'a i32, &'b i32) -> bool {foo}, val: Value(<ZST>) }
31 StorageLive(_2); // scope 1 at $DIR/inline-retag.rs:+2:5: +2:6
32 _2 = _1; // scope 1 at $DIR/inline-retag.rs:+2:5: +2:6
33 StorageLive(_3); // scope 1 at $DIR/inline-retag.rs:+2:7: +2:9
34 StorageLive(_4); // scope 1 at $DIR/inline-retag.rs:+2:7: +2:9
35 _10 = const _; // scope 1 at $DIR/inline-retag.rs:+2:7: +2:9
36 // mir::Constant
37 // + span: $DIR/inline-retag.rs:12:7: 12:9
38 // + literal: Const { ty: &i32, val: Unevaluated(bar, [], Some(promoted[1])) }
39 Retag(_10); // scope 1 at $DIR/inline-retag.rs:+2:7: +2:9
40 _4 = &(*_10); // scope 1 at $DIR/inline-retag.rs:+2:7: +2:9
41 Retag(_4); // scope 1 at $DIR/inline-retag.rs:+2:7: +2:9
42 _3 = &(*_4); // scope 1 at $DIR/inline-retag.rs:+2:7: +2:9
43 Retag(_3); // scope 1 at $DIR/inline-retag.rs:+2:7: +2:9
44 StorageLive(_6); // scope 1 at $DIR/inline-retag.rs:+2:11: +2:14
45 StorageLive(_7); // scope 1 at $DIR/inline-retag.rs:+2:11: +2:14
46 _9 = const _; // scope 1 at $DIR/inline-retag.rs:+2:11: +2:14
47 // mir::Constant
48 // + span: $DIR/inline-retag.rs:12:11: 12:14
49 // + literal: Const { ty: &i32, val: Unevaluated(bar, [], Some(promoted[0])) }
50 Retag(_9); // scope 1 at $DIR/inline-retag.rs:+2:11: +2:14
51 _7 = &(*_9); // scope 1 at $DIR/inline-retag.rs:+2:11: +2:14
52 Retag(_7); // scope 1 at $DIR/inline-retag.rs:+2:11: +2:14
53 _6 = &(*_7); // scope 1 at $DIR/inline-retag.rs:+2:11: +2:14
54 Retag(_6); // scope 1 at $DIR/inline-retag.rs:+2:11: +2:14
55 Retag(_3); // scope 2 at $DIR/inline-retag.rs:16:8: 16:9
56 Retag(_6); // scope 2 at $DIR/inline-retag.rs:16:17: 16:18
57 StorageLive(_11); // scope 2 at $DIR/inline-retag.rs:17:5: 17:7
58 _11 = (*_3); // scope 2 at $DIR/inline-retag.rs:17:5: 17:7
59 StorageLive(_12); // scope 2 at $DIR/inline-retag.rs:17:11: 17:13
60 _12 = (*_6); // scope 2 at $DIR/inline-retag.rs:17:11: 17:13
61 _0 = Eq(move _11, move _12); // scope 2 at $DIR/inline-retag.rs:17:5: 17:13
62 StorageDead(_12); // scope 2 at $DIR/inline-retag.rs:17:12: 17:13
63 StorageDead(_11); // scope 2 at $DIR/inline-retag.rs:17:12: 17:13
64 StorageDead(_6); // scope 1 at $DIR/inline-retag.rs:+2:14: +2:15
65 StorageDead(_3); // scope 1 at $DIR/inline-retag.rs:+2:14: +2:15
66 StorageDead(_2); // scope 1 at $DIR/inline-retag.rs:+2:14: +2:15
67 StorageDead(_1); // scope 0 at $DIR/inline-retag.rs:+3:1: +3:2
68 StorageDead(_7); // scope 0 at $DIR/inline-retag.rs:+3:1: +3:2
69 StorageDead(_4); // scope 0 at $DIR/inline-retag.rs:+3:1: +3:2
70 return; // scope 0 at $DIR/inline-retag.rs:+3:2: +3:2
71 }
72 }