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

[release/7.0] Do not retype small locals in FIELD_LISTs on x86 #75036

Merged
merged 3 commits into from
Sep 6, 2022

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Sep 2, 2022

Backport of #74030 to release/7.0

/cc @BruceForstall @SingleAccretion

Customer Impact

Silent bad codegen on x86 in some cases when using small (less than int sized) local variables.

Testing

New unit test plus normal PR testing

Risk

Low

IMPORTANT: Is this backport for a servicing release? If so and this change touches code that ships in a NuGet package, please make certain that you have added any necessary package authoring and gotten it explicitly reviewed.

This breaks the assumption that all LCL_VAR uses of such locals,
when typed small, are normalized (and equivalent to each other).

Instead, explicitly check for legality of widening the loads in LSRA and codegen.
The load variant in codegen now has double purpose.
@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 Sep 2, 2022
@ghost
Copy link

ghost commented Sep 2, 2022

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

Issue Details

Backport of #74030 to release/7.0

/cc @BruceForstall @SingleAccretion

Customer Impact

Testing

Risk

IMPORTANT: Is this backport for a servicing release? If so and this change touches code that ships in a NuGet package, please make certain that you have added any necessary package authoring and gotten it explicitly reviewed.

Author: github-actions[bot]
Assignees: -
Labels:

area-CodeGen-coreclr

Milestone: -

Copy link
Member

@jeffschwMSFT jeffschwMSFT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approved. we can merge once we get a green ci

@JulieLeeMSFT
Copy link
Member

cc @carlossanlop.

@carlossanlop carlossanlop requested review from marek-safar and removed request for marek-safar September 3, 2022 05:36
@carlossanlop
Copy link
Member

Approved, signed-off, CI is green. This is fully baked and ready to merge. :shipit:

@carlossanlop carlossanlop merged commit 85f02e8 into release/7.0 Sep 6, 2022
@carlossanlop carlossanlop deleted the backport/pr-74030-to-release/7.0 branch September 6, 2022 20:30
@ghost ghost locked as resolved and limited conversation to collaborators Oct 7, 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.

5 participants