@@ -60,7 +60,6 @@ mod remove_place_mention;
60
60
mod add_subtyping_projections;
61
61
pub mod cleanup_post_borrowck;
62
62
mod const_debuginfo;
63
- mod const_goto;
64
63
mod const_prop;
65
64
mod const_prop_lint;
66
65
mod copy_prop;
@@ -104,7 +103,6 @@ mod remove_unneeded_drops;
104
103
mod remove_zsts;
105
104
mod required_consts;
106
105
mod reveal_all;
107
- mod separate_const_switch;
108
106
mod shim;
109
107
mod ssa;
110
108
// This pass is public to allow external drivers to perform MIR cleanup
@@ -587,7 +585,6 @@ fn run_optimization_passes<'tcx>(tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) {
587
585
588
586
// Has to run after `slice::len` lowering
589
587
& normalize_array_len:: NormalizeArrayLen ,
590
- & const_goto:: ConstGoto ,
591
588
& ref_prop:: ReferencePropagation ,
592
589
& sroa:: ScalarReplacementOfAggregates ,
593
590
& match_branches:: MatchBranchSimplification ,
@@ -596,10 +593,6 @@ fn run_optimization_passes<'tcx>(tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) {
596
593
& instsimplify:: InstSimplify ,
597
594
& simplify:: SimplifyLocals :: BeforeConstProp ,
598
595
& copy_prop:: CopyProp ,
599
- // Perform `SeparateConstSwitch` after SSA-based analyses, as cloning blocks may
600
- // destroy the SSA property. It should still happen before const-propagation, so the
601
- // latter pass will leverage the created opportunities.
602
- & separate_const_switch:: SeparateConstSwitch ,
603
596
& gvn:: GVN ,
604
597
& simplify:: SimplifyLocals :: AfterGVN ,
605
598
& dataflow_const_prop:: DataflowConstProp ,
0 commit comments