Skip to content

Whole module optimization mode #23

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Oct 21, 2019
Merged

Whole module optimization mode #23

merged 7 commits into from
Oct 21, 2019

Conversation

DougGregor
Copy link
Member

@DougGregor DougGregor commented Oct 20, 2019

Initial implémentation of whole-module optimization (WMO) mode.

Initial implementation of whole module optimization mode, which
processes all of the input files for a target in a single invocation,
and there is no notion of a "primary file".
…jobs.

Eliminates a DRY violation in `emitModuleJob` / `mergeModuleJob` involving
the paths for a number of module-level outputs. Call into a common method
`addCommonModuleOptions` instead of duplicating the logic.
… builds.

For outputs that can only be created when processing the module as a whole,
add them to the compile job for a single-file compile.
This is useful for writing a test, but needs to be generalized.
When we’re performing a single frontend job for the entire module, query
the output file map for that single entry.
`OutputFileMap` is effectively growing a copy of `FileType` in it, which is
unfortunate. Add yet one more entry (for serialized diagnostics files), but
because this isn’t a robust solution, add a TODO to the README to generalize
the implementation.
@DougGregor DougGregor changed the title [WIP] Whole module optimization mode Whole module optimization mode Oct 21, 2019
@DougGregor
Copy link
Member Author

@swift-ci please test

@DougGregor DougGregor merged commit 60e63d5 into master Oct 21, 2019
@DougGregor DougGregor deleted the wmo branch October 21, 2019 05:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants