[PATCH] D143673: [lld][RISCV] Implement GP relaxation for R_RISCV_HI20/R_RISCV_LO12_I/R_RISCV_LO12_S.
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 22 16:38:30 PST 2023
craig.topper added a comment.
In D143673#4142628 <https://reviews.llvm.org/D143673#4142628>, @jrtc27 wrote:
> In D143673#4142568 <https://reviews.llvm.org/D143673#4142568>, @craig.topper wrote:
>
>> @MaskRay here's some data I collected on SPEC2006 .text size and dynamic instruction counts with and without GP relaxation using the GNU linker. I also measured using GP as a callee-saved register. https://docs.google.com/spreadsheets/d/14V7cPbyc80AcGHzsMaw9hYb232dzRbGCmTApnxj-SpU/edit?usp=sharing
>
> TL;DR is neither really gets you much of a saving and the only real benefit comes from tiny benchmarks / embedded use cases?..
I think that's a fair summary.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D143673/new/
https://reviews.llvm.org/D143673
More information about the llvm-commits
mailing list