mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
enable on opt level 1
This commit is contained in:
parent
099cb5ad8a
commit
728fb05f1f
@ -61,7 +61,7 @@ pub struct ConstProp;
|
||||
|
||||
impl<'tcx> MirPass<'tcx> for ConstProp {
|
||||
fn is_enabled(&self, sess: &rustc_session::Session) -> bool {
|
||||
sess.mir_opt_level() >= 2
|
||||
sess.mir_opt_level() >= 1
|
||||
}
|
||||
|
||||
#[instrument(skip(self, tcx), level = "debug")]
|
||||
|
Loading…
Reference in New Issue
Block a user