]> git.lizzy.rs Git - rust.git/blob - tests/mir-opt/simplify_match.main.ConstProp.diff
Rollup merge of #107608 - P1n3appl3:master, r=tmandry
[rust.git] / tests / mir-opt / simplify_match.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/simplify_match.rs:+0:11: +0:11
6       let mut _1: bool;                    // in scope 0 at $DIR/simplify_match.rs:+1:11: +1:31
7       let _2: bool;                        // in scope 0 at $DIR/simplify_match.rs:+1:17: +1:18
8       scope 1 {
9           debug x => _2;                   // in scope 1 at $DIR/simplify_match.rs:+1:17: +1:18
10       }
11   
12       bb0: {
13           _2 = const false;                // scope 0 at $DIR/simplify_match.rs:+1:21: +1:26
14 -         switchInt(_2) -> [0: bb1, otherwise: bb2]; // scope 0 at $DIR/simplify_match.rs:+1:5: +1:31
15 +         switchInt(const false) -> [0: bb1, otherwise: bb2]; // scope 0 at $DIR/simplify_match.rs:+1:5: +1:31
16       }
17   
18       bb1: {
19           goto -> bb3;                     // scope 0 at $DIR/simplify_match.rs:+3:18: +3:20
20       }
21   
22       bb2: {
23           _0 = noop() -> bb3;              // scope 0 at $DIR/simplify_match.rs:+2:17: +2:23
24                                            // mir::Constant
25                                            // + span: $DIR/simplify_match.rs:7:17: 7:21
26                                            // + literal: Const { ty: fn() {noop}, val: Value(<ZST>) }
27       }
28   
29       bb3: {
30           return;                          // scope 0 at $DIR/simplify_match.rs:+5:2: +5:2
31       }
32   }
33