about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorRémy Rakic <remy.rakic+github@gmail.com>2025-05-27 20:55:58 +0000
committerRémy Rakic <remy.rakic+github@gmail.com>2025-05-27 21:21:28 +0000
commit430e23044914f759f5674cfae542a366f6cca7e9 (patch)
tree4ed983f707204b20939521ed3e99fa6c00917e82 /compiler/rustc_codegen_gcc
parent10d39f52a94e25181609a415742a43cbccebc51e (diff)
downloadrust-430e23044914f759f5674cfae542a366f6cca7e9.tar.gz
rust-430e23044914f759f5674cfae542a366f6cca7e9.zip
fast path: compute `MaybeInitializedPlaces` lazily
Only drop-liveness checks for maybe-initializedness of move paths, and
it does so only for the relevant live locals that have drop points.

This adds a fast path by computing this dataflow analysis only when checking for such
initializedness. This avoids this expensive computation for the common
case.

For example, it avoids computing initializedness for 20K locals in the
`cranelift-codegen` benchmark, it has 7K relevant live locals but none
with drop points. That saves 900ms on end-to-end compilation times.
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions