about summary refs log tree commit diff
path: root/library/std/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-06-21 04:03:51 +0000
committerbors <bors@rust-lang.org>2021-06-21 04:03:51 +0000
commit3824017f8e57ce9dac6d69a1ce07f41c7034f82d (patch)
treef4f4fad8bdb771e4e2e3910ecb430d6fb7b9d60b /library/std/src
parent6a540bd40c6751d6d5efaa7fcc7cd28d473b5946 (diff)
parent40c9aaee138be57bbc98fdb5ccb4c4b70a63e5cf (diff)
downloadrust-3824017f8e57ce9dac6d69a1ce07f41c7034f82d.tar.gz
rust-3824017f8e57ce9dac6d69a1ce07f41c7034f82d.zip
Auto merge of #86166 - tmiasko:no-alloca-for-zsts, r=nagisa
Do not emit alloca for ZST locals with multiple assignments

This extends 35566bfd7dd2e316d190078703de54a4dadda062 to additionally stop emitting unnecessary allocas for zero sized locals that are assigned multiple times.

When rebuilding the standard library with `-Zbuild-std` this reduces the number of locals that require an allocation from 62315 to 61767.
Diffstat (limited to 'library/std/src')
0 files changed, 0 insertions, 0 deletions