about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/Linker.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2025-03-13 16:41:22 +0000
committerbors <bors@rust-lang.org>2025-03-13 16:41:22 +0000
commit52daa7d835e7ff51cb387340082bf9a59b949738 (patch)
treefa7be3f9f0612cf5d80b4d5b9c1a657db6e083bd /compiler/rustc_llvm/llvm-wrapper/Linker.cpp
parent93257e2d20809d82d1bc0fcc1942480d1a66d7cd (diff)
parentb75b67fa4a77deef9e4436ae342fd07030853cb3 (diff)
downloadrust-52daa7d835e7ff51cb387340082bf9a59b949738.tar.gz
rust-52daa7d835e7ff51cb387340082bf9a59b949738.zip
Auto merge of #137152 - saethlin:bss-const-allocs, r=wesleywiser
Add a .bss-like scheme for encoded const allocs

This check if all bytes are zero feel like it should be too slow, and instead we should have a flag that we track, but that seems hard. Let's see how this perfs first.

Also we can probably stash the "it's all zero actually" flag inside one of the other struct members that's already not using an entire byte. This optimization doesn't fire all that often, so it's possible that by sticking it in the varint length field, this PR actually makes rmeta size worse.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/Linker.cpp')
0 files changed, 0 insertions, 0 deletions