]> git.lizzy.rs Git - rust.git/blob - tests/mir-opt/inline/inline_any_operand.bar.Inline.after.mir
Test drop_tracking_mir before querying generator.
[rust.git] / tests / mir-opt / inline / inline_any_operand.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_any_operand.rs:+0:13: +0:17
5     let _1: fn(i32, i32) -> bool {foo};  // in scope 0 at $DIR/inline_any_operand.rs:+1:9: +1:10
6     let mut _2: fn(i32, i32) -> bool {foo}; // in scope 0 at $DIR/inline_any_operand.rs:+2:5: +2:6
7     let mut _3: i32;                     // in scope 0 at $DIR/inline_any_operand.rs:+2:5: +2:13
8     let mut _4: i32;                     // in scope 0 at $DIR/inline_any_operand.rs:+2:5: +2:13
9     scope 1 {
10         debug f => _1;                   // in scope 1 at $DIR/inline_any_operand.rs:+1:9: +1:10
11         scope 2 (inlined foo) {          // at $DIR/inline_any_operand.rs:12:5: 12:13
12             debug x => _3;               // in scope 2 at $DIR/inline_any_operand.rs:16:8: 16:9
13             debug y => _4;               // in scope 2 at $DIR/inline_any_operand.rs:16:16: 16:17
14         }
15     }
16
17     bb0: {
18         StorageLive(_1);                 // scope 0 at $DIR/inline_any_operand.rs:+1:9: +1:10
19         _1 = foo;                        // scope 0 at $DIR/inline_any_operand.rs:+1:13: +1:16
20                                          // mir::Constant
21                                          // + span: $DIR/inline_any_operand.rs:11:13: 11:16
22                                          // + literal: Const { ty: fn(i32, i32) -> bool {foo}, val: Value(<ZST>) }
23         StorageLive(_2);                 // scope 1 at $DIR/inline_any_operand.rs:+2:5: +2:6
24         _2 = _1;                         // scope 1 at $DIR/inline_any_operand.rs:+2:5: +2:6
25         StorageLive(_3);                 // scope 1 at $DIR/inline_any_operand.rs:+2:5: +2:13
26         _3 = const 1_i32;                // scope 1 at $DIR/inline_any_operand.rs:+2:5: +2:13
27         StorageLive(_4);                 // scope 1 at $DIR/inline_any_operand.rs:+2:5: +2:13
28         _4 = const -1_i32;               // scope 1 at $DIR/inline_any_operand.rs:+2:5: +2:13
29         _0 = Eq(move _3, move _4);       // scope 2 at $DIR/inline_any_operand.rs:17:5: 17:11
30         StorageDead(_4);                 // scope 1 at $DIR/inline_any_operand.rs:+2:5: +2:13
31         StorageDead(_3);                 // scope 1 at $DIR/inline_any_operand.rs:+2:5: +2:13
32         StorageDead(_2);                 // scope 1 at $DIR/inline_any_operand.rs:+2:12: +2:13
33         StorageDead(_1);                 // scope 0 at $DIR/inline_any_operand.rs:+3:1: +3:2
34         return;                          // scope 0 at $DIR/inline_any_operand.rs:+3:2: +3:2
35     }
36 }