Skip to content

Commit

Permalink
[perf] run destination propagation by default
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-schievink committed Jun 24, 2020
1 parent b760023 commit d36b287
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_mir/transform/dest_prop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ impl<'tcx> MirPass<'tcx> for DestinationPropagation {
fn run_pass(&self, tcx: TyCtxt<'tcx>, source: MirSource<'tcx>, body: &mut Body<'tcx>) {
// Only run at mir-opt-level=2 or higher for now (we don't fix up debuginfo and remove
// storage statements at the moment).
if tcx.sess.opts.debugging_opts.mir_opt_level <= 1 {
if tcx.sess.opts.debugging_opts.mir_opt_level == 0 {
return;
}

Expand Down

0 comments on commit d36b287

Please sign in to comment.