mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-30 04:56:25 +03:00
Run const propagation at O2
This commit is contained in:
@@ -639,7 +639,7 @@ fn visit_statement(
|
||||
assert!(self.places[local].is_none());
|
||||
self.places[local] = Some(value);
|
||||
|
||||
if self.tcx.sess.opts.debugging_opts.mir_opt_level >= 3 {
|
||||
if self.tcx.sess.opts.debugging_opts.mir_opt_level >= 2 {
|
||||
self.replace_with_const(rval, value, statement.source_info.span);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user