Skip to content

Commit e75c0e7

Browse files
ecstatic-morseMark-Simulacrum
authored andcommitted
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.
1 parent 687c08e commit e75c0e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_mir/src/transform/early_otherwise_branch.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ pub struct EarlyOtherwiseBranch;
2929

3030
impl<'tcx> MirPass<'tcx> for EarlyOtherwiseBranch {
3131
fn run_pass(&self, tcx: TyCtxt<'tcx>, source: MirSource<'tcx>, body: &mut Body<'tcx>) {
32-
if tcx.sess.opts.debugging_opts.mir_opt_level < 1 {
32+
if tcx.sess.opts.debugging_opts.mir_opt_level < 2 {
3333
return;
3434
}
3535
trace!("running EarlyOtherwiseBranch on {:?}", source);

0 commit comments

Comments
 (0)