about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-09-04 04:27:00 +0000
committerbors <bors@rust-lang.org>2023-09-04 04:27:00 +0000
commitb14b0745ad4913a21f00795738c047d0107dff4a (patch)
tree90e018780314f145579f6b84bf304d358685d42b /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parentabfc6c44381fb033c6b3b0a6bfb804a799f39afd (diff)
parent9867023f4f501018dd5524366949bd6f09ded192 (diff)
downloadrust-b14b0745ad4913a21f00795738c047d0107dff4a.tar.gz
rust-b14b0745ad4913a21f00795738c047d0107dff4a.zip
Auto merge of #115391 - saethlin:depkind-discrim, r=nnethercote
Encode DepKind as u16

The derived Encodable/Decodable impls serialize/deserialize as a varint, which results in a lot of code size around the encoding/decoding of these types which isn't justified: The full range of values here is rather small but doesn't quite fit in to a `u8`. Growing _all_ serialized `DepKind` to 2 bytes costs us on average 1% size in the incr comp dep graph, which I plan to recoup in https://github.com/rust-lang/rust/pull/110050 by taking advantage of the unused bits in all the serialized `DepKind`.

r? `@nnethercote`
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions