diff options
| author | bors <bors@rust-lang.org> | 2022-10-25 15:55:39 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-10-25 15:55:39 +0000 |
| commit | bed4ad65bf7a1cef39e3d66b3670189581b3b073 (patch) | |
| tree | 02263f6f12f29311d0a167b5eda8c688c14683a8 /compiler/rustc_mir_transform/src/shim.rs | |
| parent | 85d089b41e2a0c0f07ab34f6c5a7c451389f25e6 (diff) | |
| parent | be2401b8bfc824026b477f11b876b5611cb204c0 (diff) | |
| download | rust-bed4ad65bf7a1cef39e3d66b3670189581b3b073.tar.gz rust-bed4ad65bf7a1cef39e3d66b3670189581b3b073.zip | |
Auto merge of #102340 - JakobDegen:pass-manager-simplification, r=oli-obk
Split phase change from `MirPass` The main goal here is to simplify the pass manager logic. `MirPass` no longer contains the `phase_change` method, and `run_passes` instead accepts an `Option<PhaseChange>`. The hope is that this addresses the comments (and maybe perf regression) from #99102 . r? `@oli-obk` cc `@RalfJung`
Diffstat (limited to 'compiler/rustc_mir_transform/src/shim.rs')
| -rw-r--r-- | compiler/rustc_mir_transform/src/shim.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_mir_transform/src/shim.rs b/compiler/rustc_mir_transform/src/shim.rs index 6ca58ee458c..c19380ef89c 100644 --- a/compiler/rustc_mir_transform/src/shim.rs +++ b/compiler/rustc_mir_transform/src/shim.rs @@ -17,7 +17,7 @@ use std::iter; use crate::util::expand_aggregate; use crate::{ - abort_unwinding_calls, add_call_guards, add_moves_for_packed_drops, deref_separator, marker, + abort_unwinding_calls, add_call_guards, add_moves_for_packed_drops, deref_separator, pass_manager as pm, remove_noop_landing_pads, simplify, }; use rustc_middle::mir::patch::MirPatch; @@ -97,8 +97,8 @@ fn make_shim<'tcx>(tcx: TyCtxt<'tcx>, instance: ty::InstanceDef<'tcx>) -> Body<' &simplify::SimplifyCfg::new("make_shim"), &add_call_guards::CriticalCallEdges, &abort_unwinding_calls::AbortUnwindingCalls, - &marker::PhaseChange(MirPhase::Runtime(RuntimePhase::Optimized)), ], + Some(MirPhase::Runtime(RuntimePhase::Optimized)), ); debug!("make_shim({:?}) = {:?}", instance, result); |
