]> git.proxmox.com Git - rustc.git/blob - src/test/mir-opt/simplify_match.main.ConstProp.diff
Update upstream source from tag 'upstream/1.49.0_beta.4+dfsg1'
[rustc.git] / src / test / 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:5:11: 5:11
6 let mut _1: bool; // in scope 0 at $DIR/simplify_match.rs:6:11: 6:31
7 let _2: bool; // in scope 0 at $DIR/simplify_match.rs:6:17: 6:18
8 scope 1 {
9 debug x => _2; // in scope 1 at $DIR/simplify_match.rs:6:17: 6:18
10 }
11
12 bb0: {
13 StorageLive(_1); // scope 0 at $DIR/simplify_match.rs:6:11: 6:31
14 StorageLive(_2); // scope 0 at $DIR/simplify_match.rs:6:17: 6:18
15 _2 = const false; // scope 0 at $DIR/simplify_match.rs:6:21: 6:26
16 - _1 = _2; // scope 1 at $DIR/simplify_match.rs:6:28: 6:29
17 + _1 = const false; // scope 1 at $DIR/simplify_match.rs:6:28: 6:29
18 StorageDead(_2); // scope 0 at $DIR/simplify_match.rs:6:30: 6:31
19 - switchInt(_1) -> [false: bb1, otherwise: bb2]; // scope 0 at $DIR/simplify_match.rs:7:9: 7:13
20 + switchInt(const false) -> [false: bb1, otherwise: bb2]; // scope 0 at $DIR/simplify_match.rs:7:9: 7:13
21 }
22
23 bb1: {
24 _0 = const (); // scope 0 at $DIR/simplify_match.rs:8:18: 8:20
25 goto -> bb3; // scope 0 at $DIR/simplify_match.rs:6:5: 9:6
26 }
27
28 bb2: {
29 _0 = noop() -> bb3; // scope 0 at $DIR/simplify_match.rs:7:17: 7:23
30 // mir::Constant
31 // + span: $DIR/simplify_match.rs:7:17: 7:21
32 // + literal: Const { ty: fn() {noop}, val: Value(Scalar(<ZST>)) }
33 }
34
35 bb3: {
36 StorageDead(_1); // scope 0 at $DIR/simplify_match.rs:10:1: 10:2
37 return; // scope 0 at $DIR/simplify_match.rs:10:2: 10:2
38 }
39 }
40