From c32c65ae8392c5fe755731e7baf2b38fa89fbda3 Mon Sep 17 00:00:00 2001 From: Ben Kimock Date: Wed, 11 Jan 2023 00:03:04 -0500 Subject: [PATCH] Add a duplicate SimplifyCfg pass --- compiler/rustc_mir_transform/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/rustc_mir_transform/src/lib.rs b/compiler/rustc_mir_transform/src/lib.rs index 16b8a901f3651..10ac6904e0e7a 100644 --- a/compiler/rustc_mir_transform/src/lib.rs +++ b/compiler/rustc_mir_transform/src/lib.rs @@ -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.