aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/FileCheck/FileCheck.cpp
diff options
context:
space:
mode:
authorEllis Hoag <ellis.sparky.hoag@gmail.com>2025-02-13 08:57:44 -0800
committerGitHub <noreply@github.com>2025-02-13 08:57:44 -0800
commit79fff6aa324c560f4a32d5d2b0276744a2c49668 (patch)
treeb0b8448f115a9a8bc21bf98e65d3f63cb417293a /llvm/lib/FileCheck/FileCheck.cpp
parent55f3df875d3a266c566f593357e2290879f49321 (diff)
downloadllvm-79fff6aa324c560f4a32d5d2b0276744a2c49668.zip
llvm-79fff6aa324c560f4a32d5d2b0276744a2c49668.tar.gz
llvm-79fff6aa324c560f4a32d5d2b0276744a2c49668.tar.bz2
[lld][BP] Avoid ordering ICF'ed sections (#126327)
ICF runs before BPSectionOrderer. When a section is ICF'ed, it seems that the original sections are marked as not live, but are still kept around. Prior to this patch, those ICF'ed sections would be passed to BP and ordered before being skipped when writing the output. Now, these sections are no longer passed to BP, saving runtime and possibly improving BP's output. In a large binary, I found that the number of sections ordered using BP decreased, while the number of duplicate sections drastically decreased as expected. ``` Functions for startup: 50755 -> 50520 Functions for compression: 165734 -> 105328 Duplicate functions: 1827231 -> 55230 ```
Diffstat (limited to 'llvm/lib/FileCheck/FileCheck.cpp')
0 files changed, 0 insertions, 0 deletions