[PATCH] D113228: [RFC][ELF] Refactor relocation processing

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 19 16:52:42 PDT 2022


MaskRay added a comment.

In D113228#3869752 <https://reviews.llvm.org/D113228#3869752>, @pkasting wrote:

> It's about a year later; I'm curious if you've gained any insight into whether this is a good direction or not.

I think there is value in optimizing relocation scanning. For some workload lld's pass takes 2.x time as mold's.
`InputSectionBase::relocations` takes some time but other checks contribute to the other slowdown.

We probably need to be more aggressive and possibly moving more relocation scanning into arch-specific `ELF/Arch/*.cpp`.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D113228



More information about the llvm-commits mailing list