diff options
author | Pengying Xu <xpy66swsry@gmail.com> | 2025-02-03 09:33:19 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-02 17:33:19 -0800 |
commit | 0154dce8d39d2688b09f4e073fe601099a399365 (patch) | |
tree | e9d69da0a9ed6fff8cdbde608c7fc08adadcda0b /llvm/lib/CodeGen/ReachingDefAnalysis.cpp | |
parent | f6578c3d809b22d08524c3ae017c843f478d67e6 (diff) | |
download | llvm-0154dce8d39d2688b09f4e073fe601099a399365.zip llvm-0154dce8d39d2688b09f4e073fe601099a399365.tar.gz llvm-0154dce8d39d2688b09f4e073fe601099a399365.tar.bz2 |
[ELF] Add BPSectionOrderer options (#120514)
Add new ELF linker options for profile-guided section ordering
optimizations:
- `--irpgo-profile=<file>`: Read IRPGO profile data for use with startup
and compression optimizations
- `--bp-startup-sort={none,function}`: Order sections based on profile
data to improve star tup time
- `--bp-compression-sort={none,function,data,both}`: Order sections
using balanced partitioning to improve compressed size
- `--bp-compression-sort-startup-functions`: Additionally optimize
startup functions for compression
- `--verbose-bp-section-orderer`: Print statistics about balanced
partitioning section ordering
Thanks to the @ellishg, @thevinster, and their team's work.
---------
Co-authored-by: Fangrui Song <i@maskray.me>
Diffstat (limited to 'llvm/lib/CodeGen/ReachingDefAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions