Only enable ConstProp at mir-opt-level >= 2.
This commit is contained in:
parent
3312a3053b
commit
8a515aab76
8 changed files with 1 additions and 49 deletions
|
@ -54,7 +54,7 @@ pub struct ConstProp;
|
|||
|
||||
impl<'tcx> MirPass<'tcx> for ConstProp {
|
||||
fn is_enabled(&self, sess: &rustc_session::Session) -> bool {
|
||||
sess.mir_opt_level() >= 1
|
||||
sess.mir_opt_level() >= 2
|
||||
}
|
||||
|
||||
#[instrument(skip(self, tcx), level = "debug")]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue