From d4a2c48844142e2eeff400d0ad5c50320a0eb8f3 Mon Sep 17 00:00:00 2001 From: Santiago Pastorino Date: Mon, 8 Mar 2021 12:16:26 -0300 Subject: [PATCH] Allow dest prop on mir-opt-level=2 --- compiler/rustc_mir/src/transform/dest_prop.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/rustc_mir/src/transform/dest_prop.rs b/compiler/rustc_mir/src/transform/dest_prop.rs index f7568e1d929dd..f3e62928995a3 100644 --- a/compiler/rustc_mir/src/transform/dest_prop.rs +++ b/compiler/rustc_mir/src/transform/dest_prop.rs @@ -132,9 +132,9 @@ impl<'tcx> MirPass<'tcx> for DestinationPropagation { return; } - // Only run at mir-opt-level=3 or higher for now (we don't fix up debuginfo and remove + // 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.mir_opt_level() < 3 { + if tcx.sess.mir_opt_level() < 2 { return; }