Use the same is_enabled as the current const prop
This commit is contained in:
parent
b9dbb81b5e
commit
5696d06e22
1 changed files with 1 additions and 2 deletions
|
@ -15,8 +15,7 @@ pub struct DataflowConstProp;
|
|||
|
||||
impl<'tcx> MirPass<'tcx> for DataflowConstProp {
|
||||
fn is_enabled(&self, sess: &rustc_session::Session) -> bool {
|
||||
// Choose different minimum level?
|
||||
sess.mir_opt_level() >= 4
|
||||
sess.mir_opt_level() >= 1
|
||||
}
|
||||
|
||||
fn run_pass(&self, tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue