Skip to content

Commit c32c65a

Browse files
committed
Add a duplicate SimplifyCfg pass
1 parent fa51fc0 commit c32c65a

File tree

1 file changed

+1
-0
lines changed
  • compiler/rustc_mir_transform/src

1 file changed

+1
-0
lines changed

compiler/rustc_mir_transform/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -577,6 +577,7 @@ fn run_optimization_passes<'tcx>(tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) {
577577
&o1(simplify::SimplifyCfg::new("final")),
578578
&nrvo::RenameReturnPlace,
579579
&simplify::SimplifyLocals::new("final"),
580+
&o1(simplify::SimplifyCfg::new("final")),
580581
&multiple_return_terminators::MultipleReturnTerminators,
581582
&deduplicate_blocks::DeduplicateBlocks,
582583
// Some cleanup necessary at least for LLVM and potentially other codegen backends.

0 commit comments

Comments
 (0)