Run SimplifyComparisonIntegral with opt-level 2

This commit is contained in:
dianqk 2026-01-11 18:10:05 +08:00
parent 37f83fb11d
commit 3b1756fbf5
No known key found for this signature in database

View file

@ -29,7 +29,7 @@ pub(super) struct SimplifyComparisonIntegral;
impl<'tcx> crate::MirPass<'tcx> for SimplifyComparisonIntegral {
fn is_enabled(&self, sess: &rustc_session::Session) -> bool {
sess.mir_opt_level() > 0
sess.mir_opt_level() > 1
}
fn run_pass(&self, tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) {