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

Disable drop range analysis #93284

Merged
merged 3 commits into from
Feb 1, 2022
Merged

Conversation

eholk
Copy link
Contributor

@eholk eholk commented Jan 25, 2022

The previous PR, #93165, still performed the drop range analysis despite ignoring the results. Unfortunately, there were ICEs in the analysis as well, so some packages failed to build (see the issue #93197 for an example). This change further disables the analysis and just provides dummy results in that case.

The previous PR, rust-lang#93165, still performed the drop range analysis
despite ignoring the results. Unfortunately, there were ICEs in
the analysis as well, so some packages failed to build (see the
issue rust-lang#93197 for an example). This change further disables the
analysis and just provides dummy results in that case.
@rustbot rustbot added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Jan 25, 2022
@rust-highfive
Copy link
Collaborator

r? @nagisa

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jan 25, 2022
@eholk
Copy link
Contributor Author

eholk commented Jan 25, 2022

I've confirmed that eww builds with this change (see #93197).

@eholk
Copy link
Contributor Author

eholk commented Jan 25, 2022

r? @nikomatsakis

@RalfJung - you saw the previous change, so feel free to review this one too.

@rust-highfive rust-highfive assigned nikomatsakis and unassigned nagisa Jan 25, 2022
@RalfJung
Copy link
Member

Unfortunately, there were ICEs in the analysis as well,

Is it possible to add a testcase?

@lqd
Copy link
Member

lqd commented Jan 25, 2022

@bors try

@bors
Copy link
Contributor

bors commented Jan 25, 2022

⌛ Trying commit f4d7d09 with merge 51e7fdb3816eebad439712e3bbc700b0408d2468...

@bors
Copy link
Contributor

bors commented Jan 25, 2022

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

@lqd
Copy link
Member

lqd commented Jan 25, 2022

Actually, since the previous PR sometimes still ran the drop range analysis IIUC, let's see if that still had a noticeable impact on perf (in addition to the changes in the soft revert PR), by checking if this new way to disable it has noticeable perf changes.

@rust-timer build 51e7fdb3816eebad439712e3bbc700b0408d2468

@rust-timer
Copy link
Collaborator

Queued 51e7fdb3816eebad439712e3bbc700b0408d2468 with parent 51126be, future comparison URL.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (51e7fdb3816eebad439712e3bbc700b0408d2468): comparison url.

Summary: This change led to moderate relevant improvements 🎉 in compiler performance.

  • Moderate improvement in instruction counts (up to -2.2% on full builds of await-call-tree check)

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 led to changes in compiler perf.

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

@eholk
Copy link
Contributor Author

eholk commented Jan 25, 2022

@RalfJung:

Is it possible to add a testcase?

Yes, I just included the one provided by @hellow554.

@pnkfelix
Copy link
Member

@bors r+

@bors
Copy link
Contributor

bors commented Jan 26, 2022

📌 Commit 520bd69 has been approved by pnkfelix

@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 Jan 26, 2022
@eholk
Copy link
Contributor Author

eholk commented Jan 31, 2022

It looks like bors merged all but the last commit already, so I'll close this PR and fold the last commit into #93180.

@eholk eholk closed this Jan 31, 2022
@eholk
Copy link
Contributor Author

eholk commented Jan 31, 2022

Oh wait, I didn't look closely enough. This didn't actually get merged...

@eholk eholk reopened this Jan 31, 2022
@tmiasko
Copy link
Contributor

tmiasko commented Feb 1, 2022

@bors r=pnkfelix

@bors
Copy link
Contributor

bors commented Feb 1, 2022

📌 Commit 9f9d82a has been approved by pnkfelix

@bors
Copy link
Contributor

bors commented Feb 1, 2022

⌛ Testing commit 9f9d82a with merge 686663a...

@bors
Copy link
Contributor

bors commented Feb 1, 2022

☀️ Test successful - checks-actions
Approved by: pnkfelix
Pushing 686663a to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Feb 1, 2022
@bors bors merged commit 686663a into rust-lang:master Feb 1, 2022
@rustbot rustbot added this to the 1.60.0 milestone Feb 1, 2022
@rust-timer
Copy link
Collaborator

Finished benchmarking commit (686663a): comparison url.

Summary: This benchmark run shows 8 relevant improvements 🎉 to instruction counts.

  • Average relevant improvement: -1.6%
  • Largest improvement in instruction counts: -2.0% on full builds of await-call-tree check

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

@rustbot label: -perf-regression

@eholk eholk deleted the disable-drop-range-analysis branch February 7, 2022 18:40
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.