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 {
|
impl<'tcx> MirPass<'tcx> for NormalizeArrayLen {
|
||||||
fn run_pass(&self, tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) {
|
fn run_pass(&self, tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) {
|
||||||
// if tcx.sess.mir_opt_level() < 3 {
|
if tcx.sess.mir_opt_level() < 4 {
|
||||||
// return;
|
return;
|
||||||
// }
|
}
|
||||||
|
|
||||||
// early returns for edge cases of highly unrolled functions
|
// early returns for edge cases of highly unrolled functions
|
||||||
if body.basic_blocks().len() > MAX_NUM_BLOCKS {
|
if body.basic_blocks().len() > MAX_NUM_BLOCKS {
|
||||||
|
|
|
@ -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.NormalizeArrayLen.diff
|
||||||
// EMIT_MIR lower_array_len.array_bound.SimplifyLocals.diff
|
// EMIT_MIR lower_array_len.array_bound.SimplifyLocals.diff
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue