[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
Fri Jul 17 09:59:44 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:
I added a more descriptive comment as per Peter's suggestion.
@aeubanks yeah, one time sort seems simple and sufficient for now. We can consider other approaches later if this doesn't suffice.
https://github.com/llvm/llvm-project/pull/209962
More information about the llvm-commits
mailing list