Skip to content

Commit 45214ed

Browse files
committed
Run const propagation at O2
1 parent b1c4fb2 commit 45214ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_mir/transform/const_prop.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ impl<'b, 'a, 'tcx> MutVisitor<'tcx> for ConstPropagator<'b, 'a, 'tcx> {
639639
assert!(self.places[local].is_none());
640640
self.places[local] = Some(value);
641641

642-
if self.tcx.sess.opts.debugging_opts.mir_opt_level >= 3 {
642+
if self.tcx.sess.opts.debugging_opts.mir_opt_level >= 2 {
643643
self.replace_with_const(rval, value, statement.source_info.span);
644644
}
645645
}

0 commit comments

Comments
 (0)