Skip to content

Commit 229f45b

Browse files
committed
rustc_mir: add a pass for splitting locals into their fields (aka SROA).
1 parent affe297 commit 229f45b

File tree

11 files changed

+507
-43
lines changed

11 files changed

+507
-43
lines changed

src/librustc_mir/transform/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ pub mod generator;
4545
pub mod inline;
4646
pub mod lower_128bit;
4747
pub mod uniform_array_move_out;
48+
pub mod split_local_fields;
4849

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

266267
instcombine::InstCombine,
267268
deaggregator::Deaggregator,
269+
split_local_fields::SplitLocalFields,
268270
copy_prop::CopyPropagation,
269271
remove_noop_landing_pads::RemoveNoopLandingPads,
270272
simplify::SimplifyCfg::new("final"),

0 commit comments

Comments
 (0)