@@ -59,7 +59,6 @@ mod remove_place_mention;
5959mod add_subtyping_projections;
6060pub mod cleanup_post_borrowck;
6161mod const_debuginfo;
62- mod const_goto;
6362mod const_prop;
6463mod const_prop_lint;
6564mod copy_prop;
@@ -102,7 +101,6 @@ mod remove_unneeded_drops;
102101mod remove_zsts;
103102mod required_consts;
104103mod reveal_all;
105- mod separate_const_switch;
106104mod shim;
107105mod ssa;
108106// 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>) {
574572 & remove_storage_markers:: RemoveStorageMarkers ,
575573 & remove_zsts:: RemoveZsts ,
576574 & normalize_array_len:: NormalizeArrayLen , // has to run after `slice::len` lowering
577- & const_goto:: ConstGoto ,
578575 & remove_unneeded_drops:: RemoveUnneededDrops ,
579576 & ref_prop:: ReferencePropagation ,
580577 & sroa:: ScalarReplacementOfAggregates ,
@@ -584,10 +581,6 @@ fn run_optimization_passes<'tcx>(tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) {
584581 & instsimplify:: InstSimplify ,
585582 & simplify:: SimplifyLocals :: BeforeConstProp ,
586583 & 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 ,
591584 & const_prop:: ConstProp ,
592585 & gvn:: GVN ,
593586 & simplify:: SimplifyLocals :: AfterGVN ,
0 commit comments