[llvm] [Offload] Fix inefficient GNU Hash ELF symbol lookup (PR #191477)

Joseph Huber via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 10 10:50:48 PDT 2026


https://github.com/jhuber6 created https://github.com/llvm/llvm-project/pull/191477

Summary:
This PR fixes the handling of the GNU Hash table. The chain format uses
the lowest bit to indicate the end of the list. Previously we just
continued the loop instead of breaking, meaning we would exhaustively
search the whole list if the symbol was not found instead of just early
existing. This was still correct and worked in practice, but it was
slightly inefficient. Likely not noticed because the symbol tables on
these GPU binaries tend to be relatively small.


The server is unavailable at this time. Please wait a few minutes before you try again.


More information about the llvm-commits mailing list