]> git.proxmox.com Git - rustc.git/blame - src/test/mir-opt/matches_reduce_branches.match_nested_if.MatchBranchSimplification.32bit.diff
New upstream version 1.51.0+dfsg1
[rustc.git] / src / test / mir-opt / matches_reduce_branches.match_nested_if.MatchBranchSimplification.32bit.diff
CommitLineData
29967ef6
XL
1- // MIR for `match_nested_if` before MatchBranchSimplification
2+ // MIR for `match_nested_if` after MatchBranchSimplification
3
4 fn match_nested_if() -> bool {
5 let mut _0: bool; // return place in scope 0 at $DIR/matches_reduce_branches.rs:38:25: 38:29
6 let _1: bool; // in scope 0 at $DIR/matches_reduce_branches.rs:39:9: 39:12
7 let mut _2: (); // in scope 0 at $DIR/matches_reduce_branches.rs:39:21: 39:23
8 let mut _3: bool; // in scope 0 at $DIR/matches_reduce_branches.rs:40:15: 40:88
9 let mut _4: bool; // in scope 0 at $DIR/matches_reduce_branches.rs:40:18: 40:68
10 let mut _5: bool; // in scope 0 at $DIR/matches_reduce_branches.rs:40:21: 40:48
11 let mut _6: bool; // in scope 0 at $DIR/matches_reduce_branches.rs:40:24: 40:28
12+ let mut _7: bool; // in scope 0 at $DIR/matches_reduce_branches.rs:40:21: 40:48
13+ let mut _8: bool; // in scope 0 at $DIR/matches_reduce_branches.rs:40:18: 40:68
14+ let mut _9: bool; // in scope 0 at $DIR/matches_reduce_branches.rs:40:15: 40:88
15+ let mut _10: bool; // in scope 0 at $DIR/matches_reduce_branches.rs:40:15: 40:88
16 scope 1 {
17 debug val => _1; // in scope 1 at $DIR/matches_reduce_branches.rs:39:9: 39:12
18 }
19
20 bb0: {
21 StorageLive(_1); // scope 0 at $DIR/matches_reduce_branches.rs:39:9: 39:12
22 StorageLive(_2); // scope 0 at $DIR/matches_reduce_branches.rs:39:21: 39:23
23 StorageLive(_3); // scope 0 at $DIR/matches_reduce_branches.rs:40:15: 40:88
24 StorageLive(_4); // scope 0 at $DIR/matches_reduce_branches.rs:40:18: 40:68
25 StorageLive(_5); // scope 0 at $DIR/matches_reduce_branches.rs:40:21: 40:48
26 StorageLive(_6); // scope 0 at $DIR/matches_reduce_branches.rs:40:24: 40:28
27 _6 = const true; // scope 0 at $DIR/matches_reduce_branches.rs:40:24: 40:28
5869c6ff 28- switchInt(move _6) -> [false: bb2, otherwise: bb1]; // scope 0 at $DIR/matches_reduce_branches.rs:40:21: 40:48
29967ef6 29+ StorageLive(_7); // scope 0 at $DIR/matches_reduce_branches.rs:40:21: 40:48
5869c6ff 30+ _7 = move _6; // scope 0 at $DIR/matches_reduce_branches.rs:40:21: 40:48
29967ef6
XL
31+ _5 = Ne(_7, const false); // scope 0 at $DIR/matches_reduce_branches.rs:40:42: 40:47
32+ StorageDead(_7); // scope 0 at $DIR/matches_reduce_branches.rs:40:21: 40:48
33+ goto -> bb3; // scope 0 at $DIR/matches_reduce_branches.rs:40:21: 40:48
34 }
35
36 bb1: {
37 _5 = const true; // scope 0 at $DIR/matches_reduce_branches.rs:40:30: 40:34
38 goto -> bb3; // scope 0 at $DIR/matches_reduce_branches.rs:40:21: 40:48
39 }
40
41 bb2: {
42 _5 = const false; // scope 0 at $DIR/matches_reduce_branches.rs:40:42: 40:47
43 goto -> bb3; // scope 0 at $DIR/matches_reduce_branches.rs:40:21: 40:48
44 }
45
46 bb3: {
47 StorageDead(_6); // scope 0 at $DIR/matches_reduce_branches.rs:40:47: 40:48
5869c6ff 48- switchInt(move _5) -> [false: bb5, otherwise: bb4]; // scope 0 at $DIR/matches_reduce_branches.rs:40:18: 40:68
29967ef6 49+ StorageLive(_8); // scope 0 at $DIR/matches_reduce_branches.rs:40:18: 40:68
5869c6ff 50+ _8 = move _5; // scope 0 at $DIR/matches_reduce_branches.rs:40:18: 40:68
29967ef6
XL
51+ _4 = Ne(_8, const false); // scope 0 at $DIR/matches_reduce_branches.rs:40:62: 40:67
52+ StorageDead(_8); // scope 0 at $DIR/matches_reduce_branches.rs:40:18: 40:68
53+ goto -> bb6; // scope 0 at $DIR/matches_reduce_branches.rs:40:18: 40:68
54 }
55
56 bb4: {
5869c6ff 57 _4 = const true; // scope 0 at $DIR/matches_reduce_branches.rs:40:50: 40:54
29967ef6
XL
58 goto -> bb6; // scope 0 at $DIR/matches_reduce_branches.rs:40:18: 40:68
59 }
60
61 bb5: {
5869c6ff 62 _4 = const false; // scope 0 at $DIR/matches_reduce_branches.rs:40:62: 40:67
29967ef6
XL
63 goto -> bb6; // scope 0 at $DIR/matches_reduce_branches.rs:40:18: 40:68
64 }
65
66 bb6: {
67 StorageDead(_5); // scope 0 at $DIR/matches_reduce_branches.rs:40:67: 40:68
5869c6ff 68- switchInt(move _4) -> [false: bb8, otherwise: bb7]; // scope 0 at $DIR/matches_reduce_branches.rs:40:15: 40:88
29967ef6 69+ StorageLive(_9); // scope 0 at $DIR/matches_reduce_branches.rs:40:15: 40:88
5869c6ff 70+ _9 = move _4; // scope 0 at $DIR/matches_reduce_branches.rs:40:15: 40:88
29967ef6
XL
71+ _3 = Ne(_9, const false); // scope 0 at $DIR/matches_reduce_branches.rs:40:82: 40:87
72+ StorageDead(_9); // scope 0 at $DIR/matches_reduce_branches.rs:40:15: 40:88
73+ goto -> bb9; // scope 0 at $DIR/matches_reduce_branches.rs:40:15: 40:88
74 }
75
76 bb7: {
5869c6ff 77 _3 = const true; // scope 0 at $DIR/matches_reduce_branches.rs:40:70: 40:74
29967ef6
XL
78 goto -> bb9; // scope 0 at $DIR/matches_reduce_branches.rs:40:15: 40:88
79 }
80
81 bb8: {
5869c6ff 82 _3 = const false; // scope 0 at $DIR/matches_reduce_branches.rs:40:82: 40:87
29967ef6
XL
83 goto -> bb9; // scope 0 at $DIR/matches_reduce_branches.rs:40:15: 40:88
84 }
85
86 bb9: {
87 StorageDead(_4); // scope 0 at $DIR/matches_reduce_branches.rs:40:87: 40:88
88- switchInt(move _3) -> [false: bb11, otherwise: bb10]; // scope 0 at $DIR/matches_reduce_branches.rs:40:15: 40:88
89+ StorageLive(_10); // scope 0 at $DIR/matches_reduce_branches.rs:40:15: 40:88
90+ _10 = move _3; // scope 0 at $DIR/matches_reduce_branches.rs:40:15: 40:88
91+ StorageDead(_3); // scope 0 at $DIR/matches_reduce_branches.rs:40:95: 40:96
92+ _1 = Ne(_10, const false); // scope 0 at $DIR/matches_reduce_branches.rs:41:14: 41:19
93+ StorageDead(_10); // scope 0 at $DIR/matches_reduce_branches.rs:40:15: 40:88
94+ goto -> bb12; // scope 0 at $DIR/matches_reduce_branches.rs:40:15: 40:88
95 }
96
97 bb10: {
98 StorageDead(_3); // scope 0 at $DIR/matches_reduce_branches.rs:40:95: 40:96
99 _1 = const true; // scope 0 at $DIR/matches_reduce_branches.rs:40:92: 40:96
100 goto -> bb12; // scope 0 at $DIR/matches_reduce_branches.rs:39:15: 42:6
101 }
102
103 bb11: {
104 StorageDead(_3); // scope 0 at $DIR/matches_reduce_branches.rs:40:95: 40:96
105 _1 = const false; // scope 0 at $DIR/matches_reduce_branches.rs:41:14: 41:19
106 goto -> bb12; // scope 0 at $DIR/matches_reduce_branches.rs:39:15: 42:6
107 }
108
109 bb12: {
110 StorageDead(_2); // scope 0 at $DIR/matches_reduce_branches.rs:42:6: 42:7
111 _0 = _1; // scope 1 at $DIR/matches_reduce_branches.rs:43:5: 43:8
112 StorageDead(_1); // scope 0 at $DIR/matches_reduce_branches.rs:44:1: 44:2
113 return; // scope 0 at $DIR/matches_reduce_branches.rs:44:2: 44:2
114 }
115 }
116