-
Notifications
You must be signed in to change notification settings - Fork 13k
/
Copy pathearly_otherwise_branch_3_element_tuple.opt1.EarlyOtherwiseBranch.diff
96 lines (84 loc) · 2.53 KB
/
early_otherwise_branch_3_element_tuple.opt1.EarlyOtherwiseBranch.diff
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
- // MIR for `opt1` before EarlyOtherwiseBranch
+ // MIR for `opt1` after EarlyOtherwiseBranch
fn opt1(_1: Option<u32>, _2: Option<u32>, _3: Option<u32>) -> u32 {
debug x => _1;
debug y => _2;
debug z => _3;
let mut _0: u32;
let mut _4: (std::option::Option<u32>, std::option::Option<u32>, std::option::Option<u32>);
let mut _5: std::option::Option<u32>;
let mut _6: std::option::Option<u32>;
let mut _7: std::option::Option<u32>;
let mut _8: isize;
let mut _9: isize;
let mut _10: isize;
let mut _11: isize;
let mut _12: isize;
let _13: u32;
let _14: u32;
let _15: u32;
scope 1 {
debug a => _13;
debug b => _14;
debug c => _15;
}
bb0: {
StorageLive(_4);
StorageLive(_5);
_5 = copy _1;
StorageLive(_6);
_6 = copy _2;
StorageLive(_7);
_7 = copy _3;
_4 = (move _5, move _6, move _7);
StorageDead(_7);
StorageDead(_6);
StorageDead(_5);
_12 = discriminant((_4.0: std::option::Option<u32>));
switchInt(move _12) -> [0: bb4, 1: bb2, otherwise: bb9];
}
bb1: {
_0 = const 1_u32;
goto -> bb8;
}
bb2: {
_9 = discriminant((_4.1: std::option::Option<u32>));
switchInt(move _9) -> [1: bb3, 0: bb1, otherwise: bb9];
}
bb3: {
_8 = discriminant((_4.2: std::option::Option<u32>));
switchInt(move _8) -> [1: bb7, 0: bb1, otherwise: bb9];
}
bb4: {
_11 = discriminant((_4.1: std::option::Option<u32>));
switchInt(move _11) -> [0: bb5, 1: bb1, otherwise: bb9];
}
bb5: {
_10 = discriminant((_4.2: std::option::Option<u32>));
switchInt(move _10) -> [0: bb6, 1: bb1, otherwise: bb9];
}
bb6: {
_0 = const 2_u32;
goto -> bb8;
}
bb7: {
StorageLive(_13);
_13 = copy (((_4.0: std::option::Option<u32>) as Some).0: u32);
StorageLive(_14);
_14 = copy (((_4.1: std::option::Option<u32>) as Some).0: u32);
StorageLive(_15);
_15 = copy (((_4.2: std::option::Option<u32>) as Some).0: u32);
_0 = const 0_u32;
StorageDead(_15);
StorageDead(_14);
StorageDead(_13);
goto -> bb8;
}
bb8: {
StorageDead(_4);
return;
}
bb9: {
unreachable;
}
}