Skip to content

Commit 779007d

Browse files
committed
Enable SROA by at mir-opt level 3.
1 parent e4f3431 commit 779007d

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_mir_transform/src

1 file changed

+1
-1
lines changed

compiler/rustc_mir_transform/src/sroa.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ pub struct ScalarReplacementOfAggregates;
1010

1111
impl<'tcx> MirPass<'tcx> for ScalarReplacementOfAggregates {
1212
fn is_enabled(&self, sess: &rustc_session::Session) -> bool {
13-
sess.mir_opt_level() >= 4
13+
sess.mir_opt_level() >= 3
1414
}
1515

1616
fn run_pass(&self, tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) {

0 commit comments

Comments
 (0)