-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Refactor linker code #86911
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
Refactor linker code #86911
Conversation
It is already part of CodegenResults
Some changes occured to rustc_codegen_cranelift cc @bjorn3 |
r? @davidtwco (rust-highfive has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
r=me with fulldeps tests fixed. |
I would like to do a perf run first. I have been bitten by a perf regression during refactorings more than once. @bors try @rust-timer queue |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit 25e45ba with merge 0a0da8444906b2540c2e9df61115d7fb40e2b4a0... |
☀️ Try build successful - checks-actions |
Queued 0a0da8444906b2540c2e9df61115d7fb40e2b4a0 with parent b09dad3, future comparison URL. |
Finished benchmarking try commit (0a0da8444906b2540c2e9df61115d7fb40e2b4a0): comparison url. Summary: This benchmark run did not return any significant changes. If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. @bors rollup=never |
Mostly improvements up to 0.7%. Only a couple regressions up to 0.4%. |
@bors r=petrochenkov |
📌 Commit 25e45ba has been approved by |
I would like to see the commit messages expanded with more of "why" in addition to "what". For example, what is the motivation to move |
I think the changes are reasonable because Yes, it contains some pre-computed properties of the compilation session used when building linker invocation, but it's not clear why they should be separated from similar properties from (maybe misnamed) |
Yeah I don't mean to push back against the changes it's just something that
makes it easier to understand them. Something like your comment is pretty
good and I think it's worthwhile to at least copy it over to the pr
description so that it at least ends up in the merge commit.
…On Tue, 6 Jul 2021, 23:50 Vadim Petrochenkov, ***@***.***> wrote:
I think the changes are reasonable because LinkerInfo generally doesn't
make sense as a separate structure.
Yes, it contains some pre-computed properties of the compilation session
used when building linker invocation, but it's not clear why they should be
separated from similar properties from (maybe misnamed) CrateInfo.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#86911 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFFZUXB7YLU6MGRZFHKPH3TWNUC3ANCNFSM4746PUYQ>
.
|
Edited the PR description to describe the reason behind some changes. |
☀️ Test successful - checks-actions |
This merges
LinkerInfo
intoCrateInfo
as there is no reason to keep them separate.LinkerInfo::to_linker
is merged intoget_linker
as both have different logic for each linker type andto_linker
is directly called afterget_linker
. Also contains a couple of small cleanups.See the individual commits for all changes.