Skip to content

Make -Cpasses= only apply to pre-link optimization #97969

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 1 commit into from
Jun 11, 2022

Conversation

inglorion
Copy link
Contributor

This change causes passes specified in -Cpasses= to be applied
only during pre-link optimization, not during LTO. This avoids
such passes running multiple times, which they may not be
designed for.

Fixes #97713

This change causes passes specified in -Cpasses= to be applied
only during pre-link optimization, not during LTO. This avoids
such passes running multiple times, which they may not be
designed for.

Fixes rust-lang#97713
@rust-highfive
Copy link
Contributor

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @petrochenkov (or someone else) soon.

Please see the contribution instructions for more information.

@rustbot rustbot added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Jun 10, 2022
@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jun 10, 2022
@petrochenkov
Copy link
Contributor

r? @nikic or @tmiasko

@rust-highfive rust-highfive assigned nikic and unassigned petrochenkov Jun 11, 2022
@nikic
Copy link
Contributor

nikic commented Jun 11, 2022

@bors r+

This was the legacy PM behavior, so we should restore that. In the future, we might want to provide a more fine-grained way to control where the passes are inserted, but we can think about that once a use-case exists.

@bors
Copy link
Collaborator

bors commented Jun 11, 2022

📌 Commit 6738434 has been approved by nikic

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jun 11, 2022
@klensy
Copy link
Contributor

klensy commented Jun 11, 2022

Silently ignoring passed arguments is bad, maybe emit some error\warning?

@nikic
Copy link
Contributor

nikic commented Jun 11, 2022

@klensy The argument is not being ignored. The passes are still inserted for the non-lto and pre-link-lto pipelines, just not the post-link-lto pipeline.

bors added a commit to rust-lang-ci/rust that referenced this pull request Jun 11, 2022
…askrgr

Rollup of 5 pull requests

Successful merges:

 - rust-lang#97904 (Small grammar fix in the compile_error documentation)
 - rust-lang#97943 (line 1352, change `self` to `*self`, other to `*other`)
 - rust-lang#97969 (Make -Cpasses= only apply to pre-link optimization)
 - rust-lang#97990 (Add more eslint checks)
 - rust-lang#97994 (feat(fix): update some links in `hir.rs`)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit b3d8e71 into rust-lang:master Jun 11, 2022
@rustbot rustbot added this to the 1.63.0 milestone Jun 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

referenced symbols in discarded section using sancov-module with inline-8bit-counters
7 participants