Skip to content

Commit

Permalink
Allow early otherwise branch on mir-opt-level=2
Browse files Browse the repository at this point in the history
  • Loading branch information
spastorino committed Mar 8, 2021
1 parent 27885a9 commit f37adef
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.mir_opt_level() < 3 {
if tcx.sess.mir_opt_level() < 2 {
return;
}
trace!("running EarlyOtherwiseBranch on {:?}", body.source);
Expand Down

0 comments on commit f37adef

Please sign in to comment.