This is an archive of the discontinued LLVM Phabricator instance.

[ThinLTO] No need to rediscover imports in distributed backend
ClosedPublic

Authored by tejohnson on Dec 28 2016, 9:07 AM.

Details

Summary

We can simply import all external values with summaries included in
the individual index file created for the distributed backend job,
as only those are added to the individual index file created by the
WriteIndexesThinBackend (in addition to summaries for the original
module, which are skipped here).

While computing the cross module imports on this index would come to
the same conclusion as the original thin link import logic, it is
unnecessary work. And when tuning, it avoids the need to pass the
same function importing parameters (e.g. -import-instr-limit) to
both the thin link and the backends (otherwise they won't make the
same decisions).

Diff Detail

Repository
rL LLVM

Event Timeline

tejohnson updated this revision to Diff 82603.Dec 28 2016, 9:07 AM
tejohnson retitled this revision from to [ThinLTO] No need to rediscover imports in distributed backend.
tejohnson updated this object.
tejohnson added reviewers: mehdi_amini, pcc.
tejohnson added a subscriber: cfe-commits.
mehdi_amini accepted this revision.Dec 28 2016, 10:07 AM
mehdi_amini edited edge metadata.

LGTM.

This revision is now accepted and ready to land.Dec 28 2016, 10:07 AM
This revision was automatically updated to reflect the committed changes.