Skip to content

Commit d36b287

Browse files
[perf] run destination propagation by default
1 parent b760023 commit d36b287

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_mir/transform/dest_prop.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ impl<'tcx> MirPass<'tcx> for DestinationPropagation {
128128
fn run_pass(&self, tcx: TyCtxt<'tcx>, source: MirSource<'tcx>, body: &mut Body<'tcx>) {
129129
// Only run at mir-opt-level=2 or higher for now (we don't fix up debuginfo and remove
130130
// storage statements at the moment).
131-
if tcx.sess.opts.debugging_opts.mir_opt_level <= 1 {
131+
if tcx.sess.opts.debugging_opts.mir_opt_level == 0 {
132132
return;
133133
}
134134

0 commit comments

Comments
 (0)