about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDylan MacKenzie <ecstaticmorse@gmail.com>2020-10-05 10:21:14 -0700
committerDylan MacKenzie <ecstaticmorse@gmail.com>2020-10-05 10:21:14 -0700
commitaf4b13283f6632de73a2176371f4e381b396e1ec (patch)
treee3ff20e3799474e7ee244644240a462e3c322047
parentf317a93d4d326442680eaeb78c22eece739433c7 (diff)
downloadrust-af4b13283f6632de73a2176371f4e381b396e1ec.tar.gz
rust-af4b13283f6632de73a2176371f4e381b396e1ec.zip
Move `EarlyOtherwiseBranch` to mir-opt-level 2
This didn't have an effect in most cases, and is not trivially sound.
Let it bake at `mir-opt-level=2` for a while.
-rw-r--r--compiler/rustc_mir/src/transform/early_otherwise_branch.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_mir/src/transform/early_otherwise_branch.rs b/compiler/rustc_mir/src/transform/early_otherwise_branch.rs
index a45b0e86fff..237a5c7864b 100644
--- a/compiler/rustc_mir/src/transform/early_otherwise_branch.rs
+++ b/compiler/rustc_mir/src/transform/early_otherwise_branch.rs
@@ -26,7 +26,7 @@ pub struct EarlyOtherwiseBranch;
 
 impl<'tcx> MirPass<'tcx> for EarlyOtherwiseBranch {
     fn run_pass(&self, tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) {
-        if tcx.sess.opts.debugging_opts.mir_opt_level < 1 {
+        if tcx.sess.opts.debugging_opts.mir_opt_level < 2 {
             return;
         }
         trace!("running EarlyOtherwiseBranch on {:?}", body.source);