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 28, 2018
1 parent affe297 commit 229f45b
Show file tree
Hide file tree
Showing 11 changed files with 507 additions and 43 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 229f45b

Please sign in to comment.