1
Fork 0

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 {

View file

@ -1,4 +1,4 @@
// compile-flags: -Z mir-opt-level=3
// compile-flags: -Z mir-opt-level=4
// EMIT_MIR lower_array_len.array_bound.NormalizeArrayLen.diff
// EMIT_MIR lower_array_len.array_bound.SimplifyLocals.diff