Files
rust/compiler/rustc_codegen_ssa
Mike Hommey 6d9e4076ff codegen: skip stores for entirely-uninit constant aggregate fields
MIR GVN propagates MaybeUninit::uninit() as `const <uninit>` in aggregate
constructions and codegen emits a memcpy from an `[N x i8] undef` global for
each such field, which LLVM materializes as zero-initialization.

We extract the existing `all_bytes_uninit` skip already present for
`Rvalue::Use` and `Rvalue::Repeat` to a separate helper function, and use
it in the `Rvalue::Aggregate` field loop.
2026-07-28 18:48:00 +09:00
..
…

Please read the rustc-dev-guide chapter on Backend Agnostic Codegen.