Skip to content

Commit ba7b831

Browse files
committed
Run const propagation at O2
1 parent f336a7d commit ba7b831

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
@@ -632,7 +632,7 @@ impl<'b, 'a, 'tcx> MutVisitor<'tcx> for ConstPropagator<'b, 'a, 'tcx> {
632632
assert!(self.places[local].is_none());
633633
self.places[local] = Some(value);
634634

635-
if self.tcx.sess.opts.debugging_opts.mir_opt_level >= 3 {
635+
if self.tcx.sess.opts.debugging_opts.mir_opt_level >= 2 {
636636
self.replace_with_const(rval, value);
637637
}
638638
}

0 commit comments

Comments
 (0)