Skip to content

Commit

Permalink
Move EarlyOtherwiseBranch to mir-opt-level 2
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ecstatic-morse committed Oct 5, 2020
1 parent f317a93 commit af4b132
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_mir/src/transform/early_otherwise_branch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit af4b132

Please sign in to comment.