Skip to content

Commit

Permalink
Auto merge of #102570 - cjgillot:deagg-debuginfo, r=oli-obk
Browse files Browse the repository at this point in the history
Perform simple scalar replacement of aggregates (SROA) MIR opt

This is a re-open of rust-lang/rust#85796

I copied the debuginfo implementation (first commit) from `@eddyb's` own SROA PR.

This pass replaces plain field accesses by simple locals when possible.
To be eligible, the replaced locals:
- must not be enums or unions;
- must not be used whole;
- must not have their address taken.

The storage and deinit statements are duplicated on each created local.

cc `@tmiasko` who reviewed the former version of this PR.
  • Loading branch information
bors committed Nov 15, 2022
2 parents eff09e7 + eb47a0f commit af95f61
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit af95f61

Please sign in to comment.