summaryrefslogtreecommitdiffstats
path: root/src/test/mir-opt/inline/inline_any_operand.bar.Inline.after.mir
blob: 6302252581899a41f6d1ab28104954d238921926 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// MIR for `bar` after Inline

fn bar() -> bool {
    let mut _0: bool;                    // return place in scope 0 at $DIR/inline-any-operand.rs:+0:13: +0:17
    let _1: fn(i32, i32) -> bool {foo};  // in scope 0 at $DIR/inline-any-operand.rs:+1:9: +1:10
    let mut _2: fn(i32, i32) -> bool {foo}; // in scope 0 at $DIR/inline-any-operand.rs:+2:5: +2:6
    let mut _3: i32;                     // in scope 0 at $DIR/inline-any-operand.rs:+2:5: +2:13
    let mut _4: i32;                     // in scope 0 at $DIR/inline-any-operand.rs:+2:5: +2:13
    scope 1 {
        debug f => _1;                   // in scope 1 at $DIR/inline-any-operand.rs:+1:9: +1:10
        scope 2 (inlined foo) {          // at $DIR/inline-any-operand.rs:12:5: 12:13
            debug x => _3;               // in scope 2 at $DIR/inline-any-operand.rs:+6:8: +6:9
            debug y => _4;               // in scope 2 at $DIR/inline-any-operand.rs:+6:16: +6:17
            let mut _5: i32;             // in scope 2 at $DIR/inline-any-operand.rs:+7:5: +7:6
            let mut _6: i32;             // in scope 2 at $DIR/inline-any-operand.rs:+7:10: +7:11
        }
    }

    bb0: {
        StorageLive(_1);                 // scope 0 at $DIR/inline-any-operand.rs:+1:9: +1:10
        _1 = foo;                        // scope 0 at $DIR/inline-any-operand.rs:+1:13: +1:16
                                         // mir::Constant
                                         // + span: $DIR/inline-any-operand.rs:11:13: 11:16
                                         // + literal: Const { ty: fn(i32, i32) -> bool {foo}, val: Value(<ZST>) }
        StorageLive(_2);                 // scope 1 at $DIR/inline-any-operand.rs:+2:5: +2:6
        _2 = _1;                         // scope 1 at $DIR/inline-any-operand.rs:+2:5: +2:6
        StorageLive(_3);                 // scope 1 at $DIR/inline-any-operand.rs:+2:5: +2:13
        _3 = const 1_i32;                // scope 1 at $DIR/inline-any-operand.rs:+2:5: +2:13
        StorageLive(_4);                 // scope 1 at $DIR/inline-any-operand.rs:+2:5: +2:13
        _4 = const -1_i32;               // scope 1 at $DIR/inline-any-operand.rs:+2:5: +2:13
        StorageLive(_5);                 // scope 2 at $DIR/inline-any-operand.rs:+7:5: +7:6
        _5 = _3;                         // scope 2 at $DIR/inline-any-operand.rs:+7:5: +7:6
        StorageLive(_6);                 // scope 2 at $DIR/inline-any-operand.rs:+7:10: +7:11
        _6 = _4;                         // scope 2 at $DIR/inline-any-operand.rs:+7:10: +7:11
        _0 = Eq(move _5, move _6);       // scope 2 at $DIR/inline-any-operand.rs:+7:5: +7:11
        StorageDead(_6);                 // scope 2 at $DIR/inline-any-operand.rs:+7:10: +7:11
        StorageDead(_5);                 // scope 2 at $DIR/inline-any-operand.rs:+7:10: +7:11
        StorageDead(_4);                 // scope 1 at $DIR/inline-any-operand.rs:+2:5: +2:13
        StorageDead(_3);                 // scope 1 at $DIR/inline-any-operand.rs:+2:5: +2:13
        StorageDead(_2);                 // scope 1 at $DIR/inline-any-operand.rs:+2:12: +2:13
        StorageDead(_1);                 // scope 0 at $DIR/inline-any-operand.rs:+3:1: +3:2
        return;                          // scope 0 at $DIR/inline-any-operand.rs:+3:2: +3:2
    }
}