Skip to content

Commit c99a3cb

Browse files
committed
Remove the dummy PreCodegen mir-opt pass
This dummy pass is not needed, because the `runtime-optimized` phase transition can be used to dump the final pre-codegen MIR.
1 parent 299964f commit c99a3cb

2 files changed

Lines changed: 0 additions & 23 deletions

File tree

compiler/rustc_mir_transform/src/dump_mir.rs

Lines changed: 0 additions & 18 deletions
This file was deleted.

compiler/rustc_mir_transform/src/lib.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,6 @@ macro_rules! declare_passes {
9090

9191
static PASS_NAMES: LazyLock<FxIndexSet<&str>> = LazyLock::new(|| {
9292
let mut set = FxIndexSet::default();
93-
// Fake marker pass
94-
set.insert("PreCodegen");
9593
$(
9694
$(
9795
set.extend(pass_names!($mod_name : $pass_name $( { $($ident),* } )? ));
@@ -144,7 +142,6 @@ declare_passes! {
144142
};
145143
mod deref_separator : Derefer;
146144
mod dest_prop : DestinationPropagation;
147-
pub mod dump_mir : Marker;
148145
mod early_otherwise_branch : EarlyOtherwiseBranch;
149146
mod erase_deref_temps : EraseDerefTemps;
150147
mod elaborate_box_derefs : ElaborateBoxDerefs;
@@ -770,8 +767,6 @@ pub(crate) fn run_optimization_passes<'tcx>(tcx: TyCtxt<'tcx>, body: &mut Body<'
770767
// Cleanup for human readability, off by default.
771768
&prettify::ReorderBasicBlocks,
772769
&prettify::ReorderLocals,
773-
// Dump the end result for testing and debugging purposes.
774-
&dump_mir::Marker("PreCodegen"),
775770
],
776771
Some(MirPhase::Runtime(RuntimePhase::Optimized)),
777772
optimizations,

0 commit comments

Comments
 (0)