opt-level >= 4

This commit is contained in:
Alexander 2021-10-06 20:37:24 +02:00
parent 4c3465c69e
commit a31518fbf4
2 changed files with 4 additions and 4 deletions

View file

@ -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 {