Files
clang-p2996/lld/test/ELF
Fangrui Song e6aebff674 [ELF] Parallelize relocation scanning
* Change `Symbol::flags` to a `std::atomic<uint16_t>`
* Add `llvm::parallel::threadIndex` as a thread-local non-negative integer
* Add `relocsVec` to part.relaDyn and part.relrDyn so that relative relocations can be added without a mutex
* Arbitrarily change -z nocombreloc to move relative relocations to the end. Disable parallelism for deterministic output.

MIPS and PPC64 use global states for relocation scanning. Keep serial scanning.

Speed-up with mimalloc and --threads=8 on an Intel Skylake machine:

* clang (Release): 1.27x as fast
* clang (Debug): 1.06x as fast
* chrome (default): 1.05x as fast
* scylladb (default): 1.04x as fast

Speed-up with glibc malloc and --threads=16 on a ThunderX2 (AArch64):

* clang (Release): 1.31x as fast
* scylladb (default): 1.06x as fast

Reviewed By: andrewng

Differential Revision: https://reviews.llvm.org/D133003
2022-09-12 12:56:35 -07:00
..
2022-08-02 09:52:31 -04:00
2021-10-31 12:10:43 -07:00
2022-08-15 18:49:02 -04:00
2021-10-04 11:10:10 +01:00
2021-10-04 11:10:10 +01:00
2021-10-04 11:10:10 +01:00
2021-10-04 11:10:10 +01:00
2022-08-02 09:52:31 -04:00
2022-01-15 22:33:51 -08:00
2022-01-15 22:33:51 -08:00
2022-01-29 14:45:58 -08:00
2021-10-31 12:10:43 -07:00
2022-07-07 10:16:09 -07:00
2022-06-26 17:26:44 -07:00
2022-09-12 12:56:35 -07:00
2021-10-31 12:10:43 -07:00