This is an archive of the discontinued LLVM Phabricator instance.

[LLD][COFF] Support /threads[:no] like the ELF driver
ClosedPublic

Authored by aganea on Feb 24 2019, 8:27 AM.

Details

Summary

This is mostly for debugging for now. With the upcoming parallel ghashes, I need a way to disable iterating in parallel.

Diff Detail

Repository
rLLD LLVM Linker

Event Timeline

aganea created this revision.Feb 24 2019, 8:27 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 24 2019, 8:27 AM
rnk accepted this revision.Feb 25 2019, 11:04 AM

lgtm

At first I was thinking, maybe we should extend this to /threads:N, so some build systems could reduce the parallelism when links run concurrently, but I think for Windows it's best to just let concrt/the system do its thing.

The other big source of expensive concurrency is ThinLTO, which logically we should wire up to /cgthreads.

This revision is now accepted and ready to land.Feb 25 2019, 11:04 AM
ruiu accepted this revision.Feb 25 2019, 12:31 PM

LGTM