Skip to content

Commit

Permalink
rustc_mir: add a pass for splitting locals into their fields (aka SROA).
Browse files Browse the repository at this point in the history
  • Loading branch information
eddyb committed Feb 17, 2018
1 parent 94a8139 commit 9a18264
Show file tree
Hide file tree
Showing 7 changed files with 451 additions and 8 deletions.
2 changes: 2 additions & 0 deletions src/librustc_mir/transform/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ pub mod generator;
pub mod inline;
pub mod lower_128bit;
pub mod uniform_array_move_out;
pub mod split_local_fields;

pub(crate) fn provide(providers: &mut Providers) {
self::qualify_consts::provide(providers);
Expand Down Expand Up @@ -265,6 +266,7 @@ fn optimized_mir<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>, def_id: DefId) -> &'tcx

instcombine::InstCombine,
deaggregator::Deaggregator,
split_local_fields::SplitLocalFields,
copy_prop::CopyPropagation,
remove_noop_landing_pads::RemoveNoopLandingPads,
simplify::SimplifyCfg::new("final"),
Expand Down
Loading

0 comments on commit 9a18264

Please sign in to comment.