diff options
| author | Alexander <alex.m.vlasov@gmail.com> | 2021-10-06 20:37:24 +0200 |
|---|---|---|
| committer | Alexander <alex.m.vlasov@gmail.com> | 2021-10-06 20:37:24 +0200 |
| commit | a31518fbf4843e7c998131a97f4a35beb60dd625 (patch) | |
| tree | 98b43df612cb897dc01f72044b83e4cbe4e2d4aa /compiler/rustc_mir_transform/src | |
| parent | 4c3465c69e564be02c4fc628c2321b8fb764fd63 (diff) | |
opt-level >= 4
Diffstat (limited to 'compiler/rustc_mir_transform/src')
| -rw-r--r-- | compiler/rustc_mir_transform/src/normalize_array_len.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_mir_transform/src/normalize_array_len.rs b/compiler/rustc_mir_transform/src/normalize_array_len.rs index 7ed4cb402c7..60e71130cd1 100644 --- a/compiler/rustc_mir_transform/src/normalize_array_len.rs +++ b/compiler/rustc_mir_transform/src/normalize_array_len.rs @@ -15,9 +15,9 @@ pub struct NormalizeArrayLen; impl<'tcx> MirPass<'tcx> for NormalizeArrayLen { fn run_pass(&self, tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) { - // if tcx.sess.mir_opt_level() < 3 { - // return; - // } + if tcx.sess.mir_opt_level() < 4 { + return; + } // early returns for edge cases of highly unrolled functions if body.basic_blocks().len() > MAX_NUM_BLOCKS { |
