[PATCH] D44969: ELF: Place ordered sections in the middle of the unordered section list on targets with limited-range branches.

Peter Smith via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 28 10:31:29 PDT 2018


peter.smith added a comment.

That looks reasonable to me. Another heuristic that can be used in at least C programs is to look for the sections with the most number of calls to them and place these in the centre. This tends to reduce the number of thunks as many library functions are called from all over the program, however I think the performance loss of going through a thunk means that moving the hot functions makes more sense.


https://reviews.llvm.org/D44969





More information about the llvm-commits mailing list