-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Commit cb1df69
MIR: Stop needing an explicit BB for
So many places to update :D
For this PR I tried to keep things doing essentially the same thing as before. No new passes to try to use it more, no change to MIR building for exhaustive matches, etc.
That said, `UnreachableProp` still picks it up, and thus there's still a bunch of `otherwise` arms removed and `unreachable` blocks that no longer show.otherwise:unreachable
1 parent fa0068b commit cb1df69
File tree
50 files changed
+340
-257
lines changed- compiler
- rustc_codegen_cranelift/src
- rustc_codegen_ssa/src/mir
- rustc_const_eval/src
- interpret
- transform
- rustc_middle/src/mir
- rustc_mir_build/src/build
- custom/parse
- matches
- rustc_mir_dataflow/src
- framework
- rustc_mir_transform/src
- rustc_smir/src
- rustc_internal
- rustc_smir
- convert
- tests/mir-opt
- inline
- instsimplify
- issues
- pre-codegen
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
50 files changed
+340
-257
lines changedLines changed: 8 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
95 | 95 |
| |
96 | 96 |
| |
97 | 97 |
| |
98 | + | ||
98 | 99 |
| |
99 | 100 |
| |
100 | 101 |
| |
| |||
404 | 405 |
| |
405 | 406 |
| |
406 | 407 |
| |
407 | - | ||
408 | + | ||
408 | 409 |
| |
409 | 410 |
| |
410 | 411 |
| |
| |||
435 | 436 |
| |
436 | 437 |
| |
437 | 438 |
| |
438 | - | ||
439 | + | ||
439 | 440 |
| |
440 | 441 |
| |
441 | 442 |
| |
| |||
520 | 521 |
| |
521 | 522 |
| |
522 | 523 |
| |
524 | + | ||
525 | + | ||
526 | + | ||
527 | + | ||
528 | + | ||
523 | 529 |
| |
524 | 530 |
| |
525 | 531 |
| |
|
Lines changed: 12 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
296 | 296 |
| |
297 | 297 |
| |
298 | 298 |
| |
299 | + | ||
299 | 300 |
| |
300 | 301 |
| |
301 | 302 |
| |
| |||
377 | 378 |
| |
378 | 379 |
| |
379 | 380 |
| |
381 | + | ||
382 | + | ||
383 | + | ||
384 | + | ||
385 | + | ||
386 | + | ||
387 | + | ||
388 | + | ||
389 | + | ||
390 | + | ||
391 | + | ||
380 | 392 |
| |
381 | 393 |
| |
382 | 394 |
| |
|
Lines changed: 16 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
95 | 95 |
| |
96 | 96 |
| |
97 | 97 |
| |
98 | + | ||
99 | + | ||
100 | + | ||
101 | + | ||
102 | + | ||
103 | + | ||
104 | + | ||
105 | + | ||
106 | + | ||
107 | + | ||
108 | + | ||
98 | 109 |
| |
99 | 110 |
| |
100 | 111 |
| |
| |||
367 | 378 |
| |
368 | 379 |
| |
369 | 380 |
| |
370 | - | ||
381 | + | ||
371 | 382 |
| |
372 | 383 |
| |
373 | 384 |
| |
| |||
377 | 388 |
| |
378 | 389 |
| |
379 | 390 |
| |
380 | - | ||
391 | + | ||
381 | 392 |
| |
382 | 393 |
| |
383 | 394 |
| |
| |||
393 | 404 |
| |
394 | 405 |
| |
395 | 406 |
| |
396 | - | ||
407 | + | ||
397 | 408 |
| |
398 | 409 |
| |
399 | 410 |
| |
| |||
418 | 429 |
| |
419 | 430 |
| |
420 | 431 |
| |
421 | - | ||
432 | + | ||
422 | 433 |
| |
423 | 434 |
| |
424 | 435 |
| |
| |||
1644 | 1655 |
| |
1645 | 1656 |
| |
1646 | 1657 |
| |
1647 | - | ||
1658 | + | ||
1648 | 1659 |
| |
1649 | 1660 |
| |
1650 | 1661 |
| |
1651 | - | ||
1652 | 1662 |
| |
1653 | 1663 |
| |
1654 | 1664 |
| |
|
Lines changed: 6 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
101 | 101 |
| |
102 | 102 |
| |
103 | 103 |
| |
104 | - | ||
104 | + | ||
105 | 105 |
| |
106 | 106 |
| |
107 | 107 |
| |
108 | 108 |
| |
109 | - | ||
109 | + | ||
110 | + | ||
111 | + | ||
112 | + | ||
113 | + | ||
110 | 114 |
| |
111 | 115 |
| |
112 | 116 |
| |
|
Lines changed: 1 addition & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
373 | 373 |
| |
374 | 374 |
| |
375 | 375 |
| |
376 | - | ||
376 | + | ||
377 | 377 |
| |
378 | 378 |
| |
379 | - | ||
380 | 379 |
| |
381 | 380 |
| |
382 | 381 |
| |
|
Lines changed: 13 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | - | ||
2 | + | ||
3 | + | ||
4 | + | ||
3 | 5 |
| |
4 | 6 |
| |
5 | 7 |
| |
| |||
90 | 92 |
| |
91 | 93 |
| |
92 | 94 |
| |
93 | - | ||
95 | + | ||
96 | + | ||
97 | + | ||
94 | 98 |
| |
95 | 99 |
| |
96 | 100 |
| |
| |||
128 | 132 |
| |
129 | 133 |
| |
130 | 134 |
| |
135 | + | ||
136 | + | ||
137 | + | ||
138 | + | ||
139 | + | ||
140 | + | ||
141 | + | ||
131 | 142 |
| |
132 | 143 |
| |
133 | 144 |
| |
|
Lines changed: 8 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
875 | 875 |
| |
876 | 876 |
| |
877 | 877 |
| |
878 | - | ||
879 | - | ||
880 | - | ||
881 | - | ||
882 | - | ||
883 | - | ||
878 | + | ||
879 | + | ||
880 | + | ||
881 | + | ||
882 | + | ||
883 | + | ||
884 | + | ||
885 | + | ||
884 | 886 |
| |
885 | 887 |
| |
886 | 888 |
| |
|
Lines changed: 34 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
828 | 828 |
| |
829 | 829 |
| |
830 | 830 |
| |
831 | - | ||
832 | - | ||
833 | - | ||
831 | + | ||
832 | + | ||
833 | + | ||
834 | + | ||
835 | + | ||
836 | + | ||
837 | + | ||
838 | + | ||
839 | + | ||
834 | 840 |
| |
835 | 841 |
| |
836 | 842 |
| |
837 | 843 |
| |
838 | 844 |
| |
839 | - | ||
845 | + | ||
840 | 846 |
| |
841 | 847 |
| |
842 | 848 |
| |
843 | 849 |
| |
844 | 850 |
| |
845 | 851 |
| |
852 | + | ||
853 | + | ||
854 | + | ||
855 | + | ||
856 | + | ||
857 | + | ||
858 | + | ||
859 | + | ||
860 | + | ||
861 | + | ||
862 | + | ||
863 | + | ||
864 | + | ||
865 | + | ||
866 | + | ||
867 | + | ||
868 | + | ||
869 | + | ||
870 | + | ||
871 | + | ||
872 | + | ||
873 | + | ||
874 | + | ||
875 | + | ||
846 | 876 |
| |
847 | 877 |
| |
848 | 878 |
| |
|
Lines changed: 22 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
17 | - | ||
17 | + | ||
18 | 18 |
| |
19 | 19 |
| |
20 | - | ||
20 | + | ||
21 | + | ||
22 | + | ||
21 | 23 |
| |
22 | 24 |
| |
23 | 25 |
| |
| |||
39 | 41 |
| |
40 | 42 |
| |
41 | 43 |
| |
42 | - | ||
44 | + | ||
43 | 45 |
| |
44 | - | ||
45 | - | ||
46 | + | ||
47 | + | ||
48 | + | ||
49 | + | ||
50 | + | ||
51 | + | ||
52 | + | ||
53 | + | ||
54 | + | ||
46 | 55 |
| |
47 | 56 |
| |
48 | 57 |
| |
| |||
71 | 80 |
| |
72 | 81 |
| |
73 | 82 |
| |
74 | - | ||
75 | - | ||
83 | + | ||
84 | + | ||
85 | + | ||
76 | 86 |
| |
77 | 87 |
| |
78 | 88 |
| |
| |||
82 | 92 |
| |
83 | 93 |
| |
84 | 94 |
| |
95 | + | ||
96 | + | ||
97 | + | ||
98 | + | ||
85 | 99 |
| |
86 | - | ||
100 | + | ||
87 | 101 |
| |
88 | 102 |
| |
89 | 103 |
| |
|
Lines changed: 3 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
361 | 361 |
| |
362 | 362 |
| |
363 | 363 |
| |
364 | - | ||
365 | - | ||
364 | + | ||
365 | + | ||
366 | + | ||
366 | 367 |
| |
367 | 368 |
| |
368 | 369 |
| |
|
0 commit comments