@@ -57,7 +57,6 @@ mod remove_place_mention;
57
57
mod add_subtyping_projections;
58
58
pub mod cleanup_post_borrowck;
59
59
mod const_debuginfo;
60
- mod const_goto;
61
60
mod const_prop;
62
61
mod const_prop_lint;
63
62
mod copy_prop;
@@ -99,7 +98,6 @@ mod remove_unneeded_drops;
99
98
mod remove_zsts;
100
99
mod required_consts;
101
100
mod reveal_all;
102
- mod separate_const_switch;
103
101
mod shim;
104
102
mod ssa;
105
103
// This pass is public to allow external drivers to perform MIR cleanup
@@ -554,7 +552,6 @@ fn run_optimization_passes<'tcx>(tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) {
554
552
& remove_storage_markers:: RemoveStorageMarkers ,
555
553
& remove_zsts:: RemoveZsts ,
556
554
& normalize_array_len:: NormalizeArrayLen , // has to run after `slice::len` lowering
557
- & const_goto:: ConstGoto ,
558
555
& remove_unneeded_drops:: RemoveUnneededDrops ,
559
556
& ref_prop:: ReferencePropagation ,
560
557
& sroa:: ScalarReplacementOfAggregates ,
@@ -564,10 +561,6 @@ fn run_optimization_passes<'tcx>(tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) {
564
561
& instsimplify:: InstSimplify ,
565
562
& simplify:: SimplifyLocals :: BeforeConstProp ,
566
563
& copy_prop:: CopyProp ,
567
- // Perform `SeparateConstSwitch` after SSA-based analyses, as cloning blocks may
568
- // destroy the SSA property. It should still happen before const-propagation, so the
569
- // latter pass will leverage the created opportunities.
570
- & separate_const_switch:: SeparateConstSwitch ,
571
564
& const_prop:: ConstProp ,
572
565
& gvn:: GVN ,
573
566
& dataflow_const_prop:: DataflowConstProp ,
0 commit comments