diff options
| author | bors <bors@rust-lang.org> | 2021-08-26 15:24:01 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-08-26 15:24:01 +0000 |
| commit | 4b9f4b221b92193c7e95b1beb502c6eb32c3b613 (patch) | |
| tree | d2ecb2a06dba763092dedb6af14ff1315f108969 /compiler/rustc_codegen_llvm/src/builder.rs | |
| parent | 20997f6ad81721542e9ef97bb2f58190903a34d8 (diff) | |
| parent | edb4b2d8c2a9eafc3bdfdb97d5b676afc3f31248 (diff) | |
| download | rust-4b9f4b221b92193c7e95b1beb502c6eb32c3b613.tar.gz rust-4b9f4b221b92193c7e95b1beb502c6eb32c3b613.zip | |
Auto merge of #88308 - eddyb:cooked-layouts, r=nagisa
Morph `layout_raw` query into `layout_of`. Before this PR, `LayoutCx::layout_of` wrapped the `layout_raw` query, to: * normalize the type, before attempting to compute the layout * pass the layout to `record_layout_for_printing`, for `-Zprint-type-sizes` Moving those two responsibilities into the query may reduce overhead (due to cached calls skipping those steps), but I want to do a perf run to know. One of the changes I had to make was changing the return type of the query, to be able to both get out the type produced by normalizing inside the query *and* to match the signature of the old `TyCtxt::layout_of`. This change may be worse, perf-wise, so that's another reason I want to check. r? `@nagisa` cc `@oli-obk`
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/builder.rs')
0 files changed, 0 insertions, 0 deletions
