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

Only visit reachable blocks in ConstProp lint. #109792

Merged
merged 5 commits into from
Apr 6, 2023

Conversation

cjgillot
Copy link
Contributor

@cjgillot cjgillot commented Mar 30, 2023

Fixes #78803
Fixes #109731

@rustbot
Copy link
Collaborator

rustbot commented Mar 30, 2023

r? @compiler-errors

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

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Mar 30, 2023
@rustbot
Copy link
Collaborator

rustbot commented Mar 30, 2023

Some changes occurred to MIR optimizations

cc @rust-lang/wg-mir-opt

@Noratrieb
Copy link
Member

Does this also fix #78803?

@cjgillot
Copy link
Contributor Author

cjgillot commented Apr 3, 2023

Yes, added a test.

@bors
Copy link
Contributor

bors commented Apr 3, 2023

☔ The latest upstream changes (presumably #109819) made this pull request unmergeable. Please resolve the merge conflicts.

@cjgillot
Copy link
Contributor Author

cjgillot commented Apr 4, 2023

Just in case:
@bors try @rust-timer queue

@rust-timer

This comment has been minimized.

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

bors commented Apr 4, 2023

⌛ Trying commit 2de1e0d360eaffa73ff7e4aa91c2582807771d38 with merge 0e11821993d7df722968873d7817efa9ad6a1f1d...

@bors
Copy link
Contributor

bors commented Apr 4, 2023

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

1 similar comment
@bors
Copy link
Contributor

bors commented Apr 4, 2023

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

@rust-timer

This comment has been minimized.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (0e11821993d7df722968873d7817efa9ad6a1f1d): comparison URL.

Overall result: ✅ improvements - no action needed

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-perf -perf-regression

Instruction count

This is a highly reliable metric that was used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-0.3% [-0.3%, -0.3%] 1
All ❌✅ (primary) - - 0

Max RSS (memory usage)

Results

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
3.2% [3.2%, 3.2%] 1
Regressions ❌
(secondary)
1.3% [1.3%, 1.3%] 2
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 3.2% [3.2%, 3.2%] 1

Cycles

Results

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
1.4% [1.4%, 1.4%] 1
Improvements ✅
(primary)
-2.8% [-4.6%, -0.5%] 10
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) -2.8% [-4.6%, -0.5%] 10

@rustbot rustbot removed the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Apr 4, 2023
@oli-obk
Copy link
Contributor

oli-obk commented Apr 5, 2023

r=me after a rebase

@cjgillot
Copy link
Contributor Author

cjgillot commented Apr 5, 2023

@bors r=oli-obk

@bors
Copy link
Contributor

bors commented Apr 5, 2023

📌 Commit 98255cc has been approved by oli-obk

It is now in the queue for this repository.

@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 Apr 5, 2023
@bors
Copy link
Contributor

bors commented Apr 6, 2023

⌛ Testing commit 98255cc with merge f211da7...

@bors
Copy link
Contributor

bors commented Apr 6, 2023

☀️ Test successful - checks-actions
Approved by: oli-obk
Pushing f211da7 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Apr 6, 2023
@bors bors merged commit f211da7 into rust-lang:master Apr 6, 2023
@rustbot rustbot added this to the 1.70.0 milestone Apr 6, 2023
@cjgillot cjgillot deleted the reachable-lint branch April 6, 2023 06:10
@rust-timer
Copy link
Collaborator

Finished benchmarking commit (f211da7): comparison URL.

Overall result: no relevant changes - no action needed

@rustbot label: -perf-regression

Instruction count

This benchmark run did not return any relevant results for this metric.

Max RSS (memory usage)

Results

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
3.9% [3.9%, 3.9%] 1
Regressions ❌
(secondary)
2.6% [2.6%, 2.6%] 1
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-1.8% [-2.2%, -1.4%] 2
All ❌✅ (primary) 3.9% [3.9%, 3.9%] 1

Cycles

This benchmark run did not return any relevant results for this metric.

@apiraino
Copy link
Contributor

apiraino commented Apr 6, 2023

Going to nominate for a backport because one issue fixed is a P-high

@rustbot label +beta-nominated

@rustbot rustbot added the beta-nominated Nominated for backporting to the compiler in the beta channel. label Apr 6, 2023
@apiraino
Copy link
Contributor

apiraino commented Apr 6, 2023

Beta backport accepted as per compiler team on Zulip

@rustbot label +beta-accepted

@rustbot rustbot added the beta-accepted Accepted for backporting to the compiler in the beta channel. label Apr 6, 2023
@apiraino
Copy link
Contributor

apiraino commented Apr 6, 2023

this was not fixing a beta regression (my bad for misunderstanding the context)

@rustbot label -beta-accepted -beta-nominated

@rustbot rustbot removed beta-accepted Accepted for backporting to the compiler in the beta channel. beta-nominated Nominated for backporting to the compiler in the beta channel. labels Apr 6, 2023
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.

const-propagated arithmetic_overflow in unreachable code Overzealous unconditional_panic (denied) warning
8 participants