Enable ConstGoto pass by default.

This commit is contained in:
Camille GILLOT 2023-05-28 13:51:57 +00:00
parent 89bf30e73d
commit e11e4081df

View File

@ -28,7 +28,7 @@ pub struct ConstGoto;
impl<'tcx> MirPass<'tcx> for ConstGoto {
fn is_enabled(&self, sess: &rustc_session::Session) -> bool {
sess.mir_opt_level() >= 4
sess.mir_opt_level() >= 2
}
fn run_pass(&self, tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) {