This is an archive of the discontinued LLVM Phabricator instance.

[gold] Split plugin options controlling ThinLTO and codegen parallelism.
ClosedPublic

Authored by tejohnson on Sep 23 2016, 9:37 AM.

Details

Summary

As suggested in D24826, use different options for ThinLTO backend
parallelism from the option controlling regular LTO code gen
parallelism. They are already split in the LTO API, and this enables
controlling them with different clang options.

Diff Detail

Repository
rL LLVM

Event Timeline

tejohnson updated this revision to Diff 72300.Sep 23 2016, 9:37 AM
tejohnson retitled this revision from to [gold] Split plugin options controlling ThinLTO and codegen parallelism..
tejohnson updated this object.
tejohnson added reviewers: pcc, mehdi_amini.
tejohnson added subscribers: llvm-commits, dexonsmith.
pcc added inline comments.Sep 23 2016, 11:19 AM
tools/gold/gold-plugin.cpp
707 ↗(On Diff #72300)

Can this just be if (options::Parallelism)? I'd like us to work towards removing the thinlto flag (c.f. D23721).

mehdi_amini accepted this revision.Sep 23 2016, 12:57 PM
mehdi_amini edited edge metadata.

LGTM.

This revision is now accepted and ready to land.Sep 23 2016, 12:57 PM
davide added a subscriber: davide.Sep 23 2016, 1:01 PM

lg modulo nits.

tools/gold/gold-plugin.cpp
124 ↗(On Diff #72300)

same here

219 ↗(On Diff #72300)

Can we either use code generation or codegen (single word?)

tejohnson updated this revision to Diff 72347.Sep 23 2016, 1:42 PM
tejohnson edited edge metadata.

Address review comments

tools/gold/gold-plugin.cpp
124 ↗(On Diff #72300)

Done

219 ↗(On Diff #72300)

Done

707 ↗(On Diff #72300)

Done

This revision was automatically updated to reflect the committed changes.