Skip to content

Commit d4a2c48

Browse files
committed
Allow dest prop on mir-opt-level=2
1 parent 8f349be commit d4a2c48

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_mir/src/transform/dest_prop.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,9 @@ impl<'tcx> MirPass<'tcx> for DestinationPropagation {
132132
return;
133133
}
134134

135-
// Only run at mir-opt-level=3 or higher for now (we don't fix up debuginfo and remove
135+
// Only run at mir-opt-level=2 or higher for now (we don't fix up debuginfo and remove
136136
// storage statements at the moment).
137-
if tcx.sess.mir_opt_level() < 3 {
137+
if tcx.sess.mir_opt_level() < 2 {
138138
return;
139139
}
140140

0 commit comments

Comments
 (0)