[PATCH] D145786: [LLD] Increase thunk pass limit

Peter Smith via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 14 07:58:01 PDT 2023


peter.smith added a comment.

In D145786#4190640 <https://reviews.llvm.org/D145786#4190640>, @efriedma wrote:

> In some other cases of iterative algorithms like this, we change the algorithm after a few passes to a version that converges faster.  For example, you could consider adding extra padding after inserted thunks, in anticipation of the need for more thunks.

We have something like that for when applying one of the erratum fixups that is sensitive to 4 KiB page boundaries, this can involve rounding up the size of the thunk section. It could be possible to switch something like that on after a number of passes that would likely prevent the slow creep of additional thunks.

Thanks for the suggestion!


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D145786/new/

https://reviews.llvm.org/D145786



More information about the llvm-commits mailing list