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