Skip to content
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

rustc: Set release mode cgus to 16 by default #46910

Merged
merged 1 commit into from
Dec 25, 2017

Conversation

alexcrichton
Copy link
Member

This commit is the next attempt to enable multiple codegen units by default in
release mode, getting some of those sweet, sweet parallelism wins by running
codegen in parallel. Performance should not be lost due to ThinLTO being on by
default as well.

Closes #45320

@rust-highfive
Copy link
Collaborator

r? @estebank

(rust_highfive has picked a reviewer for you, use r? to override)

@alexcrichton
Copy link
Member Author

r? @michaelwoerister

@michaelwoerister
Copy link
Member

@bors r+

Let's try it. We can easily revert before the next release if there's a major problem.

@bors
Copy link
Contributor

bors commented Dec 21, 2017

📌 Commit 24834eb has been approved by michaelwoerister

@kennytm kennytm added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Dec 21, 2017
kennytm added a commit to kennytm/rust that referenced this pull request Dec 23, 2017
…haelwoerister

rustc: Set release mode cgus to 16 by default

This commit is the next attempt to enable multiple codegen units by default in
release mode, getting some of those sweet, sweet parallelism wins by running
codegen in parallel. Performance should not be lost due to ThinLTO being on by
default as well.

Closes rust-lang#45320
kennytm added a commit to kennytm/rust that referenced this pull request Dec 23, 2017
…haelwoerister

rustc: Set release mode cgus to 16 by default

This commit is the next attempt to enable multiple codegen units by default in
release mode, getting some of those sweet, sweet parallelism wins by running
codegen in parallel. Performance should not be lost due to ThinLTO being on by
default as well.

Closes rust-lang#45320
@alexcrichton
Copy link
Member Author

@bors: r-

causes this failure

@alexcrichton
Copy link
Member Author

I've opened an LLVM bug for that failure.

This commit is the next attempt to enable multiple codegen units by default in
release mode, getting some of those sweet, sweet parallelism wins by running
codegen in parallel. Performance should not be lost due to ThinLTO being on by
default as well.

Closes rust-lang#45320
@alexcrichton
Copy link
Member Author

@bors: r=michaelwoerister

@bors
Copy link
Contributor

bors commented Dec 24, 2017

📌 Commit b5361d0 has been approved by michaelwoerister

@bors
Copy link
Contributor

bors commented Dec 25, 2017

⌛ Testing commit b5361d0 with merge ae65dcc...

bors added a commit that referenced this pull request Dec 25, 2017
rustc: Set release mode cgus to 16 by default

This commit is the next attempt to enable multiple codegen units by default in
release mode, getting some of those sweet, sweet parallelism wins by running
codegen in parallel. Performance should not be lost due to ThinLTO being on by
default as well.

Closes #45320
@bors
Copy link
Contributor

bors commented Dec 25, 2017

☀️ Test successful - status-appveyor, status-travis
Approved by: michaelwoerister
Pushing ae65dcc to master...

@bors bors merged commit b5361d0 into rust-lang:master Dec 25, 2017
@alexcrichton alexcrichton deleted the thinlto-default branch December 25, 2017 05:32
@bluss bluss added the relnotes Marks issues that should be documented in the release notes of the next release. label Dec 25, 2017
@leonardo-m
Copy link

leonardo-m commented Dec 26, 2017

Probably because of this I am seeing nearly halved compilation times. (But I am seeing a problem I'll file soon, I don't know if it's the same LLVM failure reported above. Edit: it's #47015 ).

@Aowassoto

This comment was marked as spam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
relnotes Marks issues that should be documented in the release notes of the next release. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tracking issue for enabling multiple CGUs in release mode by default
9 participants