Re-enable the early otherwise branch optimization
This commit is contained in:
parent
f5c256fa0f
commit
a334848ba3
@ -92,8 +92,7 @@
|
||||
|
||||
impl<'tcx> MirPass<'tcx> for EarlyOtherwiseBranch {
|
||||
fn is_enabled(&self, sess: &rustc_session::Session) -> bool {
|
||||
// unsound: https://github.com/rust-lang/rust/issues/95162
|
||||
sess.mir_opt_level() >= 3 && sess.opts.unstable_opts.unsound_mir_opts
|
||||
sess.mir_opt_level() >= 2
|
||||
}
|
||||
|
||||
fn run_pass(&self, tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) {
|
||||
|
Loading…
Reference in New Issue
Block a user