Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ce01572

Browse files
committedSep 23, 2023
Replace legacy ConstProp by GVN.
1 parent 16df01c commit ce01572

File tree

199 files changed

+1208
-1785
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

199 files changed

+1208
-1785
lines changed
 

‎compiler/rustc_mir_transform/src/const_prop.rs

Lines changed: 9 additions & 505 deletions
Large diffs are not rendered by default.

‎compiler/rustc_mir_transform/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,6 @@ fn run_optimization_passes<'tcx>(tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) {
553553
&separate_const_switch::SeparateConstSwitch,
554554
&gvn::GVN,
555555
&simplify::SimplifyLocals::AfterGVN,
556-
&const_prop::ConstProp,
557556
&dataflow_const_prop::DataflowConstProp,
558557
//
559558
// Const-prop runs unconditionally, but doesn't mutate the MIR at mir-opt-level=0.

0 commit comments

Comments
 (0)
Please sign in to comment.