Enable SeparateConstSwitch by default.
This commit is contained in:
parent
48786886fb
commit
89bf30e73d
4 changed files with 37 additions and 69 deletions
|
@ -46,7 +46,7 @@ pub struct SeparateConstSwitch;
|
|||
|
||||
impl<'tcx> MirPass<'tcx> for SeparateConstSwitch {
|
||||
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>) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue