From 5a448ca2d34e69556d59824b1a67da515c7f49a3 Mon Sep 17 00:00:00 2001 From: James Miller Date: Tue, 20 Sep 2016 15:55:50 +1200 Subject: [PATCH] Add inlining to the set of passes --- src/librustc_driver/driver.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/librustc_driver/driver.rs b/src/librustc_driver/driver.rs index 55892801247b5..fa2d2686a47ad 100644 --- a/src/librustc_driver/driver.rs +++ b/src/librustc_driver/driver.rs @@ -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);