@@ -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;
@@ -102,7 +101,6 @@ mod remove_unneeded_drops;
102
101
mod remove_zsts;
103
102
mod required_consts;
104
103
mod reveal_all;
105
- mod separate_const_switch;
106
104
mod shim;
107
105
mod ssa;
108
106
// This pass is public to allow external drivers to perform MIR cleanup
@@ -574,7 +572,6 @@ fn run_optimization_passes<'tcx>(tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) {
574
572
& remove_storage_markers:: RemoveStorageMarkers ,
575
573
& remove_zsts:: RemoveZsts ,
576
574
& normalize_array_len:: NormalizeArrayLen , // has to run after `slice::len` lowering
577
- & const_goto:: ConstGoto ,
578
575
& remove_unneeded_drops:: RemoveUnneededDrops ,
579
576
& ref_prop:: ReferencePropagation ,
580
577
& sroa:: ScalarReplacementOfAggregates ,
@@ -584,10 +581,6 @@ fn run_optimization_passes<'tcx>(tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) {
584
581
& instsimplify:: InstSimplify ,
585
582
& simplify:: SimplifyLocals :: BeforeConstProp ,
586
583
& copy_prop:: CopyProp ,
587
- // Perform `SeparateConstSwitch` after SSA-based analyses, as cloning blocks may
588
- // destroy the SSA property. It should still happen before const-propagation, so the
589
- // latter pass will leverage the created opportunities.
590
- & separate_const_switch:: SeparateConstSwitch ,
591
584
& const_prop:: ConstProp ,
592
585
& gvn:: GVN ,
593
586
& simplify:: SimplifyLocals :: AfterGVN ,
0 commit comments