This is an archive of the discontinued LLVM Phabricator instance.

[lld-macho] Support --thinlto-jobs
ClosedPublic

Authored by int3 on Mar 25 2021, 10:58 AM.

Details

Reviewers
gkm
Group Reviewers
Restricted Project
Commits
rG050a7a27ca84: [lld-macho] Support --thinlto-jobs
Summary

The test is loosely based off LLD-ELF's thinlto.ll. However, I
found that test questionable because the the -save_temps behavior it
checks for is identical regardless of whether we are running in single-
or multi-threaded mode. I tried writing a test based on --time-trace
but couldn't get it to run deterministically... so I've opted to just
skip checking that behavior for now.

Diff Detail

Unit TestsFailed

Event Timeline

int3 created this revision.Mar 25 2021, 10:58 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 25 2021, 10:58 AM
int3 requested review of this revision.Mar 25 2021, 10:58 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 25 2021, 10:58 AM
alexander-shaposhnikov added inline comments.
lld/test/MachO/Inputs/time_trace_tid_count.py
17
print(len(set(event['tid'] for event in events if event['name'] == event_name)))

LG.. I can port it to test/ELF..

int3 updated this revision to Diff 333626.Mar 26 2021, 1:57 PM

python one-liner

int3 marked an inline comment as done.Mar 26 2021, 1:57 PM
int3 updated this revision to Diff 333926.Mar 29 2021, 10:39 AM

is the test flaky?

int3 added a comment.Mar 29 2021, 2:12 PM

Welp, seems like this test is nondeterministic, even though it passes reliably on my local machine. Any ideas? Otherwise I guess we can just land this without tests

int3 planned changes to this revision.Mar 30 2021, 9:54 AM

I'm just going to remove the FileChecks for now

int3 updated this revision to Diff 335664.Apr 6 2021, 2:45 PM

nerf the test

int3 updated this revision to Diff 335665.Apr 6 2021, 2:47 PM

tweak comment to emphasize determinism

int3 edited the summary of this revision. (Show Details)Apr 7 2021, 4:10 PM
int3 edited the summary of this revision. (Show Details)
gkm accepted this revision.Apr 7 2021, 5:07 PM
gkm added a subscriber: gkm.

LGTM

This revision is now accepted and ready to land.Apr 7 2021, 5:07 PM
This revision was automatically updated to reflect the committed changes.