Skip to content

Commit

Permalink
Add inlining to the set of passes
Browse files Browse the repository at this point in the history
  • Loading branch information
Aatch committed Sep 22, 2016
1 parent 1cedff9 commit 5a448ca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/librustc_driver/driver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1026,7 +1026,10 @@ pub fn phase_4_translate_to_llvm<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
passes.push_pass(box mir::transform::simplify_cfg::SimplifyCfg::new("elaborate-drops"));

// No lifetime analysis based on borrowing can be done from here on out.
passes.push_pass(box mir::transform::inline::Inline);
passes.push_pass(box mir::transform::simplify_cfg::SimplifyCfg::new("inline"));
passes.push_pass(box mir::transform::instcombine::InstCombine::new());

passes.push_pass(box mir::transform::deaggregator::Deaggregator);
passes.push_pass(box mir::transform::copy_prop::CopyPropagation);

Expand Down

0 comments on commit 5a448ca

Please sign in to comment.