Enable SROA by at mir-opt level 3.

This commit is contained in:
Camille GILLOT 2022-11-08 17:38:21 +00:00
parent e4f343191a
commit 779007da06

View file

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