Skip to content

Commit 2c9cd17

Browse files
committed
Some perf experiments
1 parent 4af35b8 commit 2c9cd17

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compiler/rustc_mir_transform/src/pass_manager.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ where
7474

7575
/// Run the sequence of passes without validating the MIR after each pass. The MIR is still
7676
/// validated at the end.
77+
#[inline(always)]
7778
pub fn run_passes_no_validate<'tcx>(
7879
tcx: TyCtxt<'tcx>,
7980
body: &mut Body<'tcx>,
@@ -82,6 +83,7 @@ pub fn run_passes_no_validate<'tcx>(
8283
run_passes_inner(tcx, body, passes, false);
8384
}
8485

86+
#[inline(always)]
8587
pub fn run_passes<'tcx>(tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>, passes: &[&dyn MirPass<'tcx>]) {
8688
run_passes_inner(tcx, body, passes, true);
8789
}

0 commit comments

Comments
 (0)