about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/Linker.cpp
diff options
context:
space:
mode:
authorScott McMurray <scottmcm@users.noreply.github.com>2024-06-21 02:20:18 -0700
committerScott McMurray <scottmcm@users.noreply.github.com>2024-06-21 18:02:05 -0700
commitb28efb11af6c3aea1117df81df9fc6ddf5b88077 (patch)
tree0b7ee85999c65aab801e636ff4284f32cb5f0933 /compiler/rustc_llvm/llvm-wrapper/Linker.cpp
parent25c9f2ca06d6d8d5f314362ffd17e71a8df55546 (diff)
downloadrust-b28efb11af6c3aea1117df81df9fc6ddf5b88077.tar.gz
rust-b28efb11af6c3aea1117df81df9fc6ddf5b88077.zip
Save 2 pointers in `TerminatorKind` (96 → 80 bytes)
These things don't need to be `Vec`s; boxed slices are enough.

The frequent one here is call arguments, but MIR building knows the number of arguments from the THIR, so the collect is always getting the allocation right in the first place, and thus this shouldn't ever add the shrink-in-place overhead.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/Linker.cpp')
0 files changed, 0 insertions, 0 deletions