[Bug 281765] llvm - ThinLTO never uses more than a single thread by default

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 10 Oct 2024 06:55:59 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281765

--- Comment #7 from Mark Millard <marklmi26-fbsd@yahoo.com> ---
(In reply to Daniel Engberg from comment #6 and the Description)

https://github.com/llvm/llvm-project/blob/main/lld/ELF/Driver.cpp#L1681-L1704

is upstream and does not match https://clang.llvm.org/docs/ThinLTO.html
either. The documentation does not appear to be kept up to date in this
area.

If one looks at the analogous code for various recent tags:
same point. For example, 19.1.1 and 20-init :

https://github.com/llvm/llvm-project/blob/llvmorg-19.1.1/lld/ELF/Driver.cpp#L1656-L1679

https://github.com/llvm/llvm-project/blob/llvmorg-20-init/lld/ELF/Driver.cpp#L1647-L1670

They do not match: https://clang.llvm.org/docs/ThinLTO.html

Comparison to llvm upstream needs to be based on the upstream code, not
the out of date documentation. (For things are they are currently,
anyway.)

-- 
You are receiving this mail because:
You are the assignee for the bug.