[lld] [lld][ELF] Sort thunks by their destination to allow quicker convergence (PR #209962)
Pranav Kant via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 16 14:01:20 PDT 2026
================
@@ -4107,7 +4084,21 @@ InputSection *ThunkSection::getTargetInputSection() const {
return t->getTargetInputSection();
}
-bool ThunkSection::assignOffsets() {
+bool ThunkSection::assignOffsets(bool sort) {
+ if (sort) {
----------------
pranavk wrote:
added a comment to make it more descriptive.
@aeubanks yeah, one time sort seems simple and sufficient for our case without increasing complexity. We can look at increasing complexity if this problem comes up again.
https://github.com/llvm/llvm-project/pull/209962
More information about the llvm-commits
mailing list