rust/compiler
bors 20dd693013 Auto merge of #98675 - eddyb:cg-array-literal, r=nikic
rustc_codegen_ssa: use `project_index`, not `project_field`, for array literals.

See https://github.com/rust-lang/rust/pull/98615#issuecomment-1170082774 for some context.

In short, we were using `project_field` even for array `mir::Rvalue::Aggregate`s, which results in benchmarks like `deep-vector.rs` (and presumably also some real-world usecases?) being impacted by how we handle non-array aggregate fields.

(This is a separate PR so that we can measure the perf effects in isolation)

r? `@nikic`
2022-07-07 12:23:26 +00:00
..
2022-07-02 23:30:03 +01:00
2022-07-02 23:30:03 +01:00
2022-07-02 02:11:49 -05:00
2022-07-06 06:41:53 +01:00
2022-07-05 16:00:20 +01:00
2022-07-06 06:41:53 +01:00
2022-07-06 06:41:53 +01:00
2022-07-04 09:40:58 +02:00