1
Fork 0

Implement SSA CopyProp pass.

This commit is contained in:
Camille GILLOT 2023-01-12 18:23:48 +00:00
parent c4fe96c323
commit 6ed9f8f62e
32 changed files with 935 additions and 538 deletions

View file

@ -54,6 +54,7 @@ mod const_debuginfo;
mod const_goto;
mod const_prop;
mod const_prop_lint;
mod copy_prop;
mod coverage;
mod dataflow_const_prop;
mod dead_store_elimination;
@ -556,6 +557,7 @@ fn run_optimization_passes<'tcx>(tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) {
&instcombine::InstCombine,
&separate_const_switch::SeparateConstSwitch,
&simplify::SimplifyLocals::new("before-const-prop"),
&copy_prop::CopyProp,
//
// FIXME(#70073): This pass is responsible for both optimization as well as some lints.
&const_prop::ConstProp,