opt-level >= 4
This commit is contained in:
parent
4c3465c69e
commit
a31518fbf4
2 changed files with 4 additions and 4 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue