6

Correct codegen of `ConstValue::Indirect` scalar and scalar pair by cjgillot · P...

 11 months ago
source link: https://github.com/rust-lang/rust/pull/116102
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

Correct codegen of ConstValue::Indirect scalar and scalar pair #116102

Conversation

Contributor

This concerns 3 tricky cases with ConstValue::Indirect:

  • if we want a non-pointer scalar;
  • if we have non-zero offset;
  • if offset points to uninit memory => generate poison instead of an ICE. This case could happen in unreachable code, trying to extract a field from the wrong variant.

Those cases are not currently emitted by the compiler, but are exercised by #116012.

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

Sep 23, 2023

Contributor

@bors r+ rollup

Contributor

📌 Commit ac0683b 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

Sep 26, 2023

Member

@bors rollup=iffy

Contributor

⌛ Testing commit ac0683b with merge 5899a80...

Contributor

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

bors

added the merged-by-bors This PR was explicitly merged by bors label

Sep 26, 2023

bors

merged commit 5899a80 into

rust-lang:master

Sep 26, 2023

12 checks passed

cjgillot

deleted the indirect-scalar branch

September 26, 2023 21:08

Collaborator

Finished benchmarking commit (5899a80): 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

Cycles

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

Binary size

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

Bootstrap: 632.697s -> 633.132s (0.07%)
Artifact size: 317.03 MiB -> 317.17 MiB (0.04%)

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

Milestone

1.74.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