Skip to content

Commit 07f1631

Browse files
committed
Try to delete dead calls instead of inlining them
1 parent 4f9a2bd commit 07f1631

File tree

1 file changed

+4
-0
lines changed
  • compiler/rustc_mir_transform/src

1 file changed

+4
-0
lines changed

compiler/rustc_mir_transform/src/lib.rs

+4
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,10 @@ fn run_optimization_passes<'tcx>(tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) {
555555
&unreachable_prop::UnreachablePropagation,
556556
&uninhabited_enum_branching::UninhabitedEnumBranching,
557557
&o1(simplify::SimplifyCfg::new("after-uninhabited-enum-branching")),
558+
&const_prop::ConstProp,
559+
&const_debuginfo::ConstDebugInfo,
560+
&o1(simplify_branches::SimplifyConstCondition::new("before-inline")),
561+
&o1(simplify::SimplifyCfg::new("before-inline")),
558562
&inline::Inline,
559563
&remove_storage_markers::RemoveStorageMarkers,
560564
&remove_zsts::RemoveZsts,

0 commit comments

Comments
 (0)