Skip to content

Commit 5a448ca

Browse files
committed
Add inlining to the set of passes
1 parent 1cedff9 commit 5a448ca

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/librustc_driver/driver.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1026,7 +1026,10 @@ pub fn phase_4_translate_to_llvm<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
10261026
passes.push_pass(box mir::transform::simplify_cfg::SimplifyCfg::new("elaborate-drops"));
10271027

10281028
// No lifetime analysis based on borrowing can be done from here on out.
1029+
passes.push_pass(box mir::transform::inline::Inline);
1030+
passes.push_pass(box mir::transform::simplify_cfg::SimplifyCfg::new("inline"));
10291031
passes.push_pass(box mir::transform::instcombine::InstCombine::new());
1032+
10301033
passes.push_pass(box mir::transform::deaggregator::Deaggregator);
10311034
passes.push_pass(box mir::transform::copy_prop::CopyPropagation);
10321035

0 commit comments

Comments
 (0)