Files
clang-p2996/llvm/lib/Support
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-09-02 21:00:38 +00:00
2022-02-06 22:18:35 -08:00
2022-02-06 22:18:35 -08:00
2022-03-11 11:41:32 +01:00
2022-05-17 09:11:45 -07:00
2022-03-11 11:41:32 +01:00
2022-03-11 11:41:32 +01:00
2022-03-14 17:29:08 +01:00
2022-06-06 04:27:32 +00:00
2022-03-11 11:41:32 +01:00
2022-08-27 21:21:08 -07:00
2022-02-06 22:18:35 -08:00
2022-07-06 16:05:23 +02:00
2022-03-11 11:41:32 +01:00