diff options
| author | kadmin <julianknodt@gmail.com> | 2023-02-05 22:14:40 +0000 |
|---|---|---|
| committer | kadmin <julianknodt@gmail.com> | 2023-02-08 02:04:07 +0000 |
| commit | 15d4728cda673e90b4db1ea2c60d18a6fae306d0 (patch) | |
| tree | 6fc14e55485198c4b29ea73f9c7619e1bda9644e /compiler/rustc_mir_transform/src/lib.rs | |
| parent | 15f4eec7a986e6c9125ff3e0115d70aef6d5c711 (diff) | |
| download | rust-15d4728cda673e90b4db1ea2c60d18a6fae306d0.tar.gz rust-15d4728cda673e90b4db1ea2c60d18a6fae306d0.zip | |
Add de-init to destination place
Diffstat (limited to 'compiler/rustc_mir_transform/src/lib.rs')
| -rw-r--r-- | compiler/rustc_mir_transform/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_mir_transform/src/lib.rs b/compiler/rustc_mir_transform/src/lib.rs index be3652dd3e7..45cd4024c9f 100644 --- a/compiler/rustc_mir_transform/src/lib.rs +++ b/compiler/rustc_mir_transform/src/lib.rs @@ -547,7 +547,6 @@ fn run_optimization_passes<'tcx>(tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) { tcx, body, &[ - &large_enums::EnumSizeOpt { discrepancy: 128 }, &reveal_all::RevealAll, // has to be done before inlining, since inlined code is in RevealAll mode. &lower_slice_len::LowerSliceLenCalls, // has to be done before inlining, otherwise actual call will be almost always inlined. Also simple, so can just do first &unreachable_prop::UnreachablePropagation, @@ -586,6 +585,7 @@ fn run_optimization_passes<'tcx>(tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) { &simplify::SimplifyLocals::new("final"), &multiple_return_terminators::MultipleReturnTerminators, &deduplicate_blocks::DeduplicateBlocks, + &large_enums::EnumSizeOpt { discrepancy: 128 }, // Some cleanup necessary at least for LLVM and potentially other codegen backends. &add_call_guards::CriticalCallEdges, // Dump the end result for testing and debugging purposes. |
