commit | 9ff62b7c09ecda92bb1f35c969b1214b90bf02c1 | [log] [tgz] |
---|---|---|
author | spupyrev <spupyrev@users.noreply.github.com> | Tue Oct 10 09:06:31 2023 -0700 |
committer | Copybara-Service <copybara-worker@google.com> | Fri Nov 03 16:10:19 2023 -0700 |
tree | ab821e4cc89db90ae7dc1aff1a4b2244fe1c3a41 | |
parent | 989aa341719062cd2fbda01e17d72c29e790fc15 [diff] |
Reapply [ELF] Making cdsort default for function reordering (#68638) Edited lld/ELF/Options.td to cdsort as well CDSort function reordering outperforms the existing default heuristic ( hfsort/C^3) in terms of the performance of generated binaries while being (almost) as fast. Thus, the suggestion is to change the default. The speedup is up to 1.5% perf for large front-end binaries, and can be moderate/neutral for "small" benchmarks. High-level **perf impact** on two selected binaries: clang-10 binary (built with LTO+AutoFDO/CSSPGO): wins on top of C^3 in [0.3%..0.8%] rocksDB-8 binary (built with LTO+CSSPGO): wins on top of C^3 in [0.8%..1.5%] More detailed measurements on the clang binary is at [here](https://reviews.llvm.org/D152834#4445042) GitOrigin-RevId: b53c04a8dac49889b3ee8784fbf6ad32b41aa3d0
This directory and its subdirectories contain source code for the LLVM Linker, a modular cross platform linker which is built as part of the LLVM compiler infrastructure project.
lld is open source software. You may freely distribute it under the terms of the license agreement found in LICENSE.txt.
In order to make sure various developers can evaluate patches over the same tests, we create a collection of self contained programs.
It is hosted at https://s3-us-west-2.amazonaws.com/linker-tests/lld-speed-test.tar.xz
The current sha256 is 10eec685463d5a8bbf08d77f4ca96282161d396c65bd97dc99dbde644a31610f
.