diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-01-30 17:50:09 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-30 17:50:09 +0100 |
| commit | db9774951daab59074c81fb48a189a19cd80265a (patch) | |
| tree | 320e0300371825a636906150a3f069459447cc4e /compiler/rustc_mir_transform/src/lib.rs | |
| parent | 4ac1796267c3af95cb97d630639d8938237586f6 (diff) | |
| parent | b456307cb10584f8ac48492500f0a1bca15d1adb (diff) | |
| download | rust-db9774951daab59074c81fb48a189a19cd80265a.tar.gz rust-db9774951daab59074c81fb48a189a19cd80265a.zip | |
Rollup merge of #107172 - cjgillot:no-nal, r=nagisa
Reimplement NormalizeArrayLen based on SsaLocals Based on https://github.com/rust-lang/rust/pull/106908 Fixes https://github.com/rust-lang/rust/issues/105929 Only the last commit "Reimplement NormalizeArrayLen" is relevant.
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 3d9137fa102..cbebca15483 100644 --- a/compiler/rustc_mir_transform/src/lib.rs +++ b/compiler/rustc_mir_transform/src/lib.rs @@ -548,13 +548,13 @@ fn run_optimization_passes<'tcx>(tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) { &[ &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 - &normalize_array_len::NormalizeArrayLen, // has to run after `slice::len` lowering &unreachable_prop::UnreachablePropagation, &uninhabited_enum_branching::UninhabitedEnumBranching, &o1(simplify::SimplifyCfg::new("after-uninhabited-enum-branching")), &inline::Inline, &remove_storage_markers::RemoveStorageMarkers, &remove_zsts::RemoveZsts, + &normalize_array_len::NormalizeArrayLen, // has to run after `slice::len` lowering &const_goto::ConstGoto, &remove_unneeded_drops::RemoveUnneededDrops, &sroa::ScalarReplacementOfAggregates, |
