enable on opt level 1

This commit is contained in:
Ze'ev Maor 2022-07-06 00:03:32 +03:00
parent 099cb5ad8a
commit 728fb05f1f

View File

@ -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")]