Skip to content

Commit

Permalink
Add a duplicate SimplifyCfg pass
Browse files Browse the repository at this point in the history
  • Loading branch information
saethlin committed Jan 11, 2023
1 parent fa51fc0 commit c32c65a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler/rustc_mir_transform/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,7 @@ fn run_optimization_passes<'tcx>(tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) {
&o1(simplify::SimplifyCfg::new("final")),
&nrvo::RenameReturnPlace,
&simplify::SimplifyLocals::new("final"),
&o1(simplify::SimplifyCfg::new("final")),
&multiple_return_terminators::MultipleReturnTerminators,
&deduplicate_blocks::DeduplicateBlocks,
// Some cleanup necessary at least for LLVM and potentially other codegen backends.
Expand Down

0 comments on commit c32c65a

Please sign in to comment.