File: lower_intrinsics.unchecked.LowerIntrinsics.panic-unwind.diff

package info (click to toggle)
rustc 1.85.0%2Bdfsg3-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental, sid, trixie
  • size: 893,396 kB
  • sloc: xml: 158,127; python: 35,830; javascript: 19,497; cpp: 19,002; sh: 17,245; ansic: 13,127; asm: 4,376; makefile: 1,051; perl: 29; lisp: 29; ruby: 19; sql: 11
file content (195 lines) | stat: -rw-r--r-- 5,610 bytes parent folder | download | duplicates (6)
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
- // MIR for `unchecked` before LowerIntrinsics
+ // MIR for `unchecked` after LowerIntrinsics
  
  fn unchecked(_1: i32, _2: i32, _3: u32) -> () {
      debug a => _1;
      debug b => _2;
      debug c => _3;
      let mut _0: ();
      let _4: i32;
      let mut _5: i32;
      let mut _6: i32;
      let mut _8: i32;
      let mut _9: i32;
      let mut _11: i32;
      let mut _12: i32;
      let mut _14: i32;
      let mut _15: i32;
      let mut _17: i32;
      let mut _18: i32;
      let mut _20: i32;
      let mut _21: i32;
      let mut _23: i32;
      let mut _24: i32;
      let mut _26: i32;
      let mut _27: u32;
      let mut _29: i32;
      let mut _30: u32;
      scope 1 {
          debug _a => _4;
          let _7: i32;
          scope 2 {
              debug _b => _7;
              let _10: i32;
              scope 3 {
                  debug _c => _10;
                  let _13: i32;
                  scope 4 {
                      debug _x => _13;
                      let _16: i32;
                      scope 5 {
                          debug _y => _16;
                          let _19: i32;
                          scope 6 {
                              debug _i => _19;
                              let _22: i32;
                              scope 7 {
                                  debug _j => _22;
                                  let _25: i32;
                                  scope 8 {
                                      debug _k => _25;
                                      let _28: i32;
                                      scope 9 {
                                          debug _l => _28;
                                      }
                                  }
                              }
                          }
                      }
                  }
              }
          }
      }
  
      bb0: {
          StorageLive(_4);
          StorageLive(_5);
          _5 = copy _1;
          StorageLive(_6);
          _6 = copy _2;
-         _4 = unchecked_add::<i32>(move _5, move _6) -> [return: bb1, unwind unreachable];
+         _4 = AddUnchecked(move _5, move _6);
+         goto -> bb1;
      }
  
      bb1: {
          StorageDead(_6);
          StorageDead(_5);
          StorageLive(_7);
          StorageLive(_8);
          _8 = copy _1;
          StorageLive(_9);
          _9 = copy _2;
-         _7 = unchecked_sub::<i32>(move _8, move _9) -> [return: bb2, unwind unreachable];
+         _7 = SubUnchecked(move _8, move _9);
+         goto -> bb2;
      }
  
      bb2: {
          StorageDead(_9);
          StorageDead(_8);
          StorageLive(_10);
          StorageLive(_11);
          _11 = copy _1;
          StorageLive(_12);
          _12 = copy _2;
-         _10 = unchecked_mul::<i32>(move _11, move _12) -> [return: bb3, unwind unreachable];
+         _10 = MulUnchecked(move _11, move _12);
+         goto -> bb3;
      }
  
      bb3: {
          StorageDead(_12);
          StorageDead(_11);
          StorageLive(_13);
          StorageLive(_14);
          _14 = copy _1;
          StorageLive(_15);
          _15 = copy _2;
-         _13 = unchecked_div::<i32>(move _14, move _15) -> [return: bb4, unwind unreachable];
+         _13 = Div(move _14, move _15);
+         goto -> bb4;
      }
  
      bb4: {
          StorageDead(_15);
          StorageDead(_14);
          StorageLive(_16);
          StorageLive(_17);
          _17 = copy _1;
          StorageLive(_18);
          _18 = copy _2;
-         _16 = unchecked_rem::<i32>(move _17, move _18) -> [return: bb5, unwind unreachable];
+         _16 = Rem(move _17, move _18);
+         goto -> bb5;
      }
  
      bb5: {
          StorageDead(_18);
          StorageDead(_17);
          StorageLive(_19);
          StorageLive(_20);
          _20 = copy _1;
          StorageLive(_21);
          _21 = copy _2;
-         _19 = unchecked_shl::<i32, i32>(move _20, move _21) -> [return: bb6, unwind unreachable];
+         _19 = ShlUnchecked(move _20, move _21);
+         goto -> bb6;
      }
  
      bb6: {
          StorageDead(_21);
          StorageDead(_20);
          StorageLive(_22);
          StorageLive(_23);
          _23 = copy _1;
          StorageLive(_24);
          _24 = copy _2;
-         _22 = unchecked_shr::<i32, i32>(move _23, move _24) -> [return: bb7, unwind unreachable];
+         _22 = ShrUnchecked(move _23, move _24);
+         goto -> bb7;
      }
  
      bb7: {
          StorageDead(_24);
          StorageDead(_23);
          StorageLive(_25);
          StorageLive(_26);
          _26 = copy _1;
          StorageLive(_27);
          _27 = copy _3;
-         _25 = unchecked_shl::<i32, u32>(move _26, move _27) -> [return: bb8, unwind unreachable];
+         _25 = ShlUnchecked(move _26, move _27);
+         goto -> bb8;
      }
  
      bb8: {
          StorageDead(_27);
          StorageDead(_26);
          StorageLive(_28);
          StorageLive(_29);
          _29 = copy _1;
          StorageLive(_30);
          _30 = copy _3;
-         _28 = unchecked_shr::<i32, u32>(move _29, move _30) -> [return: bb9, unwind unreachable];
+         _28 = ShrUnchecked(move _29, move _30);
+         goto -> bb9;
      }
  
      bb9: {
          StorageDead(_30);
          StorageDead(_29);
          _0 = const ();
          StorageDead(_28);
          StorageDead(_25);
          StorageDead(_22);
          StorageDead(_19);
          StorageDead(_16);
          StorageDead(_13);
          StorageDead(_10);
          StorageDead(_7);
          StorageDead(_4);
          return;
      }
  }