llvm-project
882f37c4 - [Offload] Fix inefficient GNU Hash ELF symbol lookup (#191477)

Commit
6 days ago
[Offload] Fix inefficient GNU Hash ELF symbol lookup (#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.
Author
Parents
Loading