diff options
| author | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2021-03-06 00:00:00 +0000 |
|---|---|---|
| committer | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2021-03-06 00:00:00 +0000 |
| commit | 6f49aadabbd2d487f290fe393c7a69f77ebda9c6 (patch) | |
| tree | 38e03f147d02c151f8b5d3c060e22c98ea61910f /compiler/rustc_mir/src | |
| parent | 51748a8fc77283914d4135f31b5966a407208187 (diff) | |
| download | rust-6f49aadabbd2d487f290fe393c7a69f77ebda9c6.tar.gz rust-6f49aadabbd2d487f290fe393c7a69f77ebda9c6.zip | |
Disable destination propagation on all mir-opt-levels
Diffstat (limited to 'compiler/rustc_mir/src')
| -rw-r--r-- | compiler/rustc_mir/src/transform/dest_prop.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler/rustc_mir/src/transform/dest_prop.rs b/compiler/rustc_mir/src/transform/dest_prop.rs index 0822ab73c4c..f7568e1d929 100644 --- a/compiler/rustc_mir/src/transform/dest_prop.rs +++ b/compiler/rustc_mir/src/transform/dest_prop.rs @@ -127,6 +127,11 @@ pub struct DestinationPropagation; impl<'tcx> MirPass<'tcx> for DestinationPropagation { fn run_pass(&self, tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) { + // FIXME(#79191, #82678) + if !tcx.sess.opts.debugging_opts.unsound_mir_opts { + return; + } + // Only run at mir-opt-level=3 or higher for now (we don't fix up debuginfo and remove // storage statements at the moment). if tcx.sess.mir_opt_level() < 3 { |
