Enable SROA by at mir-opt level 3.
This commit is contained in:
parent
e4f343191a
commit
779007da06
1 changed files with 1 additions and 1 deletions
|
@ -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>) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue