[PATCH] D128093: [lld-macho] Initial support for Linker Optimization Hints
Daniel Bertalan via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 19 10:36:37 PDT 2022
BertalanD updated this revision to Diff 438204.
BertalanD added a comment.
Pre-allocated the vector storing the parsed optimization hints. Changed `parsedRelocs` to be a sorted array instead of a `DenseMap`. This decreased the runtime penalty to under 200 ms when linking Chromium on an M1 <https://reviews.llvm.org/M1> Mac mini. (Chromium has over 4 million LOHs!)
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D128093/new/
https://reviews.llvm.org/D128093
Files:
lld/MachO/Arch/ARM64.cpp
lld/MachO/Config.h
lld/MachO/Driver.cpp
lld/MachO/InputFiles.cpp
lld/MachO/InputFiles.h
lld/MachO/InputSection.cpp
lld/MachO/InputSection.h
lld/MachO/Options.td
lld/MachO/Relocations.h
lld/MachO/Target.h
lld/test/MachO/hint-adrp-add.s
llvm/include/llvm/BinaryFormat/MachO.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D128093.438204.patch
Type: text/x-patch
Size: 17326 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220619/7c497003/attachment.bin>
More information about the llvm-commits
mailing list