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