pm::run_passes(
tcx,
&mut body,
- &[&const_prop::ConstProp, &marker::PhaseChange(MirPhase::Optimization)],
+ &[&const_prop::ConstProp, &marker::PhaseChange(MirPhase::Optimized)],
);
}
}
}
run_post_borrowck_cleanup_passes(tcx, &mut body);
- assert!(body.phase == MirPhase::DropLowering);
+ assert!(body.phase == MirPhase::Deaggregated);
tcx.alloc_steal_mir(body)
}
],
);
- assert!(body.phase == MirPhase::GeneratorLowering);
+ assert!(body.phase == MirPhase::GeneratorsLowered);
// The main optimizations that we do on MIR.
pm::run_passes(
&deduplicate_blocks::DeduplicateBlocks,
// Some cleanup necessary at least for LLVM and potentially other codegen backends.
&add_call_guards::CriticalCallEdges,
- &marker::PhaseChange(MirPhase::Optimization),
+ &marker::PhaseChange(MirPhase::Optimized),
// Dump the end result for testing and debugging purposes.
&dump_mir::Marker("PreCodegen"),
],