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

Clean up derived obligation creation #96892

Merged
merged 15 commits into from
May 17, 2022

Conversation

oli-obk
Copy link
Contributor

@oli-obk oli-obk commented May 10, 2022

r? @estebank

working on fixing the perf regression from #91030 (comment)

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

oli-obk commented May 10, 2022

@bors try @rust-timer queue

@rust-timer
Copy link
Collaborator

Awaiting bors try build completion.

@rustbot label: +S-waiting-on-perf

@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label May 10, 2022
@bors
Copy link
Contributor

bors commented May 10, 2022

⌛ Trying commit 704bbe5 with merge 9701b7f9d6041dd29f744e96144781b84fde126f...

@bors
Copy link
Contributor

bors commented May 10, 2022

☀️ Try build successful - checks-actions
Build commit: 9701b7f9d6041dd29f744e96144781b84fde126f (9701b7f9d6041dd29f744e96144781b84fde126f)

@rust-timer
Copy link
Collaborator

Queued 9701b7f9d6041dd29f744e96144781b84fde126f with parent 2226f19, future comparison URL.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (9701b7f9d6041dd29f744e96144781b84fde126f): comparison url.

Summary:

  • Primary benchmarks: no relevant changes found
  • Secondary benchmarks: 🎉 relevant improvement found
Regressions 😿
(primary)
Regressions 😿
(secondary)
Improvements 🎉
(primary)
Improvements 🎉
(secondary)
All 😿 🎉
(primary)
count1 0 0 0 1 0
mean2 N/A N/A N/A -0.2% N/A
max N/A N/A N/A -0.2% N/A

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. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf.

@bors rollup=never
@rustbot label: +S-waiting-on-review -S-waiting-on-perf -perf-regression

Footnotes

  1. number of relevant changes

  2. the arithmetic mean of the percent change

@rustbot rustbot removed the S-waiting-on-perf Status: Waiting on a perf run to be completed. label May 10, 2022
@oli-obk
Copy link
Contributor Author

oli-obk commented May 10, 2022

@bors try @rust-timer queue

@rust-timer
Copy link
Collaborator

Awaiting bors try build completion.

@rustbot label: +S-waiting-on-perf

@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label May 10, 2022
@bors
Copy link
Contributor

bors commented May 10, 2022

⌛ Trying commit 824e9e4 with merge e3023fae71eed90e195f9053f28ad1605097ac56...

@bors
Copy link
Contributor

bors commented May 10, 2022

☀️ Try build successful - checks-actions
Build commit: e3023fae71eed90e195f9053f28ad1605097ac56 (e3023fae71eed90e195f9053f28ad1605097ac56)

@bors bors added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels May 14, 2022
@ehuss
Copy link
Contributor

ehuss commented May 14, 2022

Sorry for the spam. This PR was causing bors to get stuck, but I think it should be cleared now.

@oli-obk
Copy link
Contributor Author

oli-obk commented May 16, 2022

Without optimizations this is actually a tiny improvement on the regressed benchmark, so any further regressions are due to LLVM randomness

@bors try @rust-timer queue

@rust-timer
Copy link
Collaborator

Awaiting bors try build completion.

@rustbot label: +S-waiting-on-perf

@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label May 16, 2022
@bors
Copy link
Contributor

bors commented May 16, 2022

⌛ Trying commit 0cefa5f with merge e07108b10a51c3252d80b9ec8a6a6a1ae6fb54af...

@bors
Copy link
Contributor

bors commented May 16, 2022

☀️ Try build successful - checks-actions
Build commit: e07108b10a51c3252d80b9ec8a6a6a1ae6fb54af (e07108b10a51c3252d80b9ec8a6a6a1ae6fb54af)

@rust-timer
Copy link
Collaborator

Queued e07108b10a51c3252d80b9ec8a6a6a1ae6fb54af with parent 56d540e, future comparison URL.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (e07108b10a51c3252d80b9ec8a6a6a1ae6fb54af): comparison url.

Summary:

  • Primary benchmarks: 🎉 relevant improvements found
  • Secondary benchmarks: 🎉 relevant improvement found
Regressions 😿
(primary)
Regressions 😿
(secondary)
Improvements 🎉
(primary)
Improvements 🎉
(secondary)
All 😿 🎉
(primary)
count1 0 0 3 1 3
mean2 N/A N/A -0.4% -0.4% -0.4%
max N/A N/A -0.5% -0.4% -0.5%

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. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf.

@bors rollup=never
@rustbot label: +S-waiting-on-review -S-waiting-on-perf -perf-regression

Footnotes

  1. number of relevant changes

  2. the arithmetic mean of the percent change

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-perf Status: Waiting on a perf run to be completed. perf-regression Performance regression. labels May 16, 2022
@oli-obk
Copy link
Contributor Author

oli-obk commented May 16, 2022

Oh yea, I won at inlining golf against LLVM

@rustbot ready

@oli-obk oli-obk removed the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label May 16, 2022
@@ -339,17 +331,17 @@ impl<'a, 'tcx> WfPredicates<'a, 'tcx> {
})
.filter(|(_, arg)| !arg.has_escaping_bound_vars())
.map(|(i, arg)| {
let mut new_cause = cause.clone();
let mut cause = traits::ObligationCause::misc(self.span, self.body_id);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Out of curiosity, could we keep the original clause as part of a chain? I wonder if this would improve the output.

@estebank
Copy link
Contributor

@bors r+

@bors
Copy link
Contributor

bors commented May 16, 2022

📌 Commit 0cefa5f has been approved by estebank

@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 May 16, 2022
@bors
Copy link
Contributor

bors commented May 17, 2022

⌛ Testing commit 0cefa5f with merge c1d65ea...

@bors
Copy link
Contributor

bors commented May 17, 2022

☀️ Test successful - checks-actions
Approved by: estebank
Pushing c1d65ea to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label May 17, 2022
@bors bors merged commit c1d65ea into rust-lang:master May 17, 2022
@rustbot rustbot added this to the 1.63.0 milestone May 17, 2022
@rust-timer
Copy link
Collaborator

Finished benchmarking commit (c1d65ea): comparison url.

Summary:

  • Primary benchmarks: 🎉 relevant improvements found
  • Secondary benchmarks: 🎉 relevant improvement found
Regressions 😿
(primary)
Regressions 😿
(secondary)
Improvements 🎉
(primary)
Improvements 🎉
(secondary)
All 😿 🎉
(primary)
count1 0 0 3 1 3
mean2 N/A N/A -0.4% -0.4% -0.4%
max N/A N/A -0.6% -0.4% -0.6%

If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf.

@rustbot label: -perf-regression

Footnotes

  1. number of relevant changes

  2. the arithmetic mean of the percent change

@oli-obk oli-obk deleted the 🐌_obligation_cause_code_🐌 branch May 17, 2022 06:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged-by-bors This PR was explicitly merged by bors. 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.

7 participants