[PATCH] D100835: [WIP][LLD][RISCV] Linker Relaxation
Hudson Ayers via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 9 10:57:42 PST 2022
hudson-ayers added a comment.
I rebuilt LLVM with this patch and used it to build a non-public RISC-V binary, compiled with -Os + LTO. I found that it reduced code size of a ~450 kB application by over 28 kB (6.2%). That application is a mixture of Rust and C code; the savings from rustc generated code and Clang generated code were similar. There are also accompanying performance improvements thanks to the removed unnecessary instructions.
It would be really nice to see this patch merged given the magnitude of the improvements.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D100835/new/
https://reviews.llvm.org/D100835
More information about the llvm-commits
mailing list