Skip to content

Commit 5696d06

Browse files
committed
Use the same is_enabled as the current const prop
1 parent b9dbb81 commit 5696d06

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

compiler/rustc_mir_transform/src/dataflow_const_prop.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ pub struct DataflowConstProp;
1515

1616
impl<'tcx> MirPass<'tcx> for DataflowConstProp {
1717
fn is_enabled(&self, sess: &rustc_session::Session) -> bool {
18-
// Choose different minimum level?
19-
sess.mir_opt_level() >= 4
18+
sess.mir_opt_level() >= 1
2019
}
2120

2221
fn run_pass(&self, tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) {

0 commit comments

Comments
 (0)