5

Normalize types and consts in MIR opts. by cjgillot · Pull Request #110714 · rus...

 1 year ago
source link: https://github.com/rust-lang/rust/pull/110714
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Normalize types and consts in MIR opts. #110714

Conversation

Contributor

Some passes were using a non-RevealAll param_env, which is needlessly restrictive in mir-opts.

As a drive-by, we normalize all constants, since just normalizing their types is not enough.

Collaborator

r? @oli-obk

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

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

Apr 23, 2023

Collaborator

Some changes occurred to MIR optimizations

cc @rust-lang/wg-mir-opt

Contributor

This comment has been minimized.

rustbot

added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label

Apr 23, 2023

Contributor

hourglass Trying commit 4fe5136 with merge 29598da...

Contributor

sunny Try build successful - checks-actions
Build commit: 29598da (29598da8b5f9d3359d6c501b375cf0e4b89b4b87)

This comment has been minimized.

Collaborator

Finished benchmarking commit (29598da): comparison URL.

Overall result: x regressions - 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 x
(primary)
- - 0
Regressions x
(secondary)
0.3% [0.3%, 0.3%] 1
Improvements white_check_mark
(primary)
- - 0
Improvements white_check_mark
(secondary)
- - 0
All xwhite_check_mark (primary) - - 0

Max RSS (memory usage)

Results

Cycles

Results

rustbot

removed the S-waiting-on-perf Status: Waiting on a perf run to be completed. label

Apr 24, 2023

Contributor

@bors r+ rollup

Contributor

pushpin Commit 4fe5136 has been approved by oli-obk

It is now in the queue for this repository.

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 24, 2023

bors

merged commit 2ce9b57 into

rust-lang:master

Apr 24, 2023

12 checks passed

rust-timer

added a commit to rust-lang-ci/rust that referenced this pull request

Apr 24, 2023

cjgillot

deleted the reveal-consts branch

April 24, 2023 21:01

Contributor

@cjgillot can we also run the reveal_all pass unconditionally? Is there a reason we shouldn't?

Contributor

Author

I thought it was already on by default facepalm. No reason we shouldn't.

JakobDegen reacted with thumbs up emoji

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

oli-obk

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

Milestone

1.71.0

Development

Successfully merging this pull request may close these issues.

None yet

6 participants

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK