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

Fix too narrow loads while unspilling #66675

Merged
merged 3 commits into from
Mar 19, 2022
Merged

Conversation

jakobbotsch
Copy link
Member

Unspilling could produce too narrow loads for normalize-on-load
variables when encountering a narrowly typed LCL_VAR node. This could
result in subsequent uses of the same local using a truncated value.

Fix #66624

Unspilling could produce too narrow loads for normalize-on-load
variables when encountering a narrowly typed LCL_VAR node. This could
result in subsequent uses of the same local using a truncated value.

Fix dotnet#66624
@dotnet-issue-labeler dotnet-issue-labeler bot added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Mar 15, 2022
@ghost ghost assigned jakobbotsch Mar 15, 2022
@ghost
Copy link

ghost commented Mar 15, 2022

Tagging subscribers to this area: @JulieLeeMSFT
See info in area-owners.md if you want to be subscribed.

Issue Details

Unspilling could produce too narrow loads for normalize-on-load
variables when encountering a narrowly typed LCL_VAR node. This could
result in subsequent uses of the same local using a truncated value.

Fix #66624

Author: jakobbotsch
Assignees: -
Labels:

area-CodeGen-coreclr

Milestone: -

@jakobbotsch
Copy link
Member Author

FWIW, it seems likely to me that we could always use 'wide' loads here, at least on non-ARM. We already do so for dependently promoted small fields (even unaligned) and when enregistering incoming stack args, so clearly these rely on upstream code to have inserted casts. However I preferred the smaller set of diffs here.

@jakobbotsch
Copy link
Member Author

/azp run Antigen, Fuzzlyn

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@jakobbotsch
Copy link
Member Author

No diffs
Antigen and Fuzzlyn failures look unrelated.

cc @dotnet/jit-contrib PTAL @BruceForstall

@jakobbotsch jakobbotsch merged commit 3e2a45c into dotnet:main Mar 19, 2022
@jakobbotsch jakobbotsch deleted the fix-66624 branch March 19, 2022 20:55
radekdoulik pushed a commit to radekdoulik/runtime that referenced this pull request Mar 30, 2022
Unspilling could produce too narrow loads for normalize-on-load
variables when encountering a narrowly typed LCL_VAR node. This could
result in subsequent uses of the same local using a truncated value.

Fix dotnet#66624
@ghost ghost locked as resolved and limited conversation to collaborators Apr 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ushort argument mysteriously mutated
2 participants