@@ -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;
@@ -101,7 +100,6 @@ mod remove_unneeded_drops;
101100mod remove_zsts;
102101mod required_consts;
103102mod reveal_all;
104- mod separate_const_switch;
105103mod shim;
106104mod ssa;
107105// This pass is public to allow external drivers to perform MIR cleanup
@@ -573,7 +571,6 @@ fn run_optimization_passes<'tcx>(tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) {
573571 & remove_storage_markers:: RemoveStorageMarkers ,
574572 & remove_zsts:: RemoveZsts ,
575573 & normalize_array_len:: NormalizeArrayLen , // has to run after `slice::len` lowering
576- & const_goto:: ConstGoto ,
577574 & remove_unneeded_drops:: RemoveUnneededDrops ,
578575 & ref_prop:: ReferencePropagation ,
579576 & sroa:: ScalarReplacementOfAggregates ,
@@ -583,10 +580,6 @@ fn run_optimization_passes<'tcx>(tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) {
583580 & instsimplify:: InstSimplify ,
584581 & simplify:: SimplifyLocals :: BeforeConstProp ,
585582 & copy_prop:: CopyProp ,
586- // Perform `SeparateConstSwitch` after SSA-based analyses, as cloning blocks may
587- // destroy the SSA property. It should still happen before const-propagation, so the
588- // latter pass will leverage the created opportunities.
589- & separate_const_switch:: SeparateConstSwitch ,
590583 & const_prop:: ConstProp ,
591584 & gvn:: GVN ,
592585 & simplify:: SimplifyLocals :: AfterGVN ,
0 commit comments