[all-commits] [llvm/llvm-project] dfcf1a: [ELF] Improve 2 SmallVector<*, N> usage
Fangrui Song via All-commits
all-commits at lists.llvm.org
Sun Nov 29 14:01:47 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: dfcf1acf13226be0f599a7ab6b395b66dc9545d6
https://github.com/llvm/llvm-project/commit/dfcf1acf13226be0f599a7ab6b395b66dc9545d6
Author: Fangrui Song <i at maskray.me>
Date: 2020-11-29 (Sun, 29 Nov 2020)
Changed paths:
M lld/ELF/MarkLive.cpp
M lld/ELF/OutputSections.h
Log Message:
-----------
[ELF] Improve 2 SmallVector<*, N> usage
For --gc-sections, SmallVector<InputSection *, 256> -> SmallVector<InputSection *, 0> because the code bloat (1296 bytes) is not worthwhile (the saved reallocation is negligible).
For OutputSection::compressedData, N=1 is useless (for a compressed .debug_*, the size is always larger than 1).
More information about the All-commits
mailing list