diff options
| author | Dylan DPC <99973273+Dylan-DPC@users.noreply.github.com> | 2023-02-06 19:54:15 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-06 19:54:15 +0530 |
| commit | e385ca25be4e6893228bcc7b9c6020e98a0742ad (patch) | |
| tree | 130d103cd9469f301547256a76780755f1613d17 /compiler/rustc_codegen_llvm/src/errors.rs | |
| parent | 675976eb21dda25e017a1241fe1fefb53f88aad5 (diff) | |
| parent | 51ef82d19ba97fd60d13d02f708fd0eb43617cc7 (diff) | |
| download | rust-e385ca25be4e6893228bcc7b9c6020e98a0742ad.tar.gz rust-e385ca25be4e6893228bcc7b9c6020e98a0742ad.zip | |
Rollup merge of #107687 - cjgillot:sroa-2, r=oli-obk
Adapt SROA MIR opt for aggregated MIR
The pass was broken by https://github.com/rust-lang/rust/pull/107267.
This PR extends it to replace:
```
x = Struct { 0: a, 1: b }
y = move? x
```
by assignment between locals
```
x_0 = a
x_1 = b
y_0 = move? x_0
y_1 = move? x_1
```
The improved pass runs to fixpoint, so we can flatten nested field accesses.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
