about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/coverage/debug.rs
diff options
context:
space:
mode:
authorRémy Rakic <remy.rakic+github@gmail.com>2022-05-31 12:36:48 +0200
committerRémy Rakic <remy.rakic+github@gmail.com>2022-06-28 22:09:28 +0200
commit97a0b2e2d0816bcf935b7d925f8f1d4225f7def7 (patch)
treea208e171052803518458d407ea351febf779c697 /compiler/rustc_mir_transform/src/coverage/debug.rs
parent94e93749ab00539a11e90426ea87382c433530a8 (diff)
downloadrust-97a0b2e2d0816bcf935b7d925f8f1d4225f7def7.tar.gz
rust-97a0b2e2d0816bcf935b7d925f8f1d4225f7def7.zip
ctfe interning: don't walk allocations that don't need it
The interning of const allocations visits the mplace looking for references
to intern. Walking big aggregates like big static arrays can be costly,
so we only do it if the allocation we're interning contains references
or interior mutability.

Walking ZSTs was avoided before, and this optimization is now applied
to cases where there are no references/relocations either.
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/debug.rs')
0 files changed, 0 insertions, 0 deletions