Skip to content

[release/6.0-rc1] JIT: don't clone loops where init or limit is a cast local - #57690

Merged
jeffschwMSFT merged 2 commits into
release/6.0-rc1from
backport/pr-57602-to-release/6.0-rc1
Aug 19, 2021
Merged

[release/6.0-rc1] JIT: don't clone loops where init or limit is a cast local#57690
jeffschwMSFT merged 2 commits into
release/6.0-rc1from
backport/pr-57602-to-release/6.0-rc1

Conversation

@github-actions

@github-actionsgithub-actionsBot commented Aug 18, 2021

Copy link
Copy Markdown
Contributor

Backport of #57602 to release/6.0-rc1

/cc @AndyAyersMS

Customer Impact

Already reported by one customer (in 6p7). Caused crossgen2 to fail.

Testing

Verified it fixes the customer issue, plus new tests added. No diffs in existing tests (per SPMI).

Risk

Low, this is a change to disable an optimization in an uncommon situation.

AndyAyersMSand others added 2 commits August 18, 2021 20:54
The loop cloner assumes all computations it introduces are compatible
with TYP_INT, so don't allow cloning when the initial or final value
are variables with incompatible types.
Fixes#57535.
Co-authored-by: SingleAccretion <62474226+SingleAccretion@users.noreply.github.com>
@ghostghost added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Aug 18, 2021
@ghost

Copy link
Copy Markdown

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

Issue Details

Backport of #57602 to release/6.0-rc1

/cc @AndyAyersMS

Customer Impact

Testing

Risk

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

area-CodeGen-coreclr

Milestone:-

@jeffschwMSFTjeffschwMSFT left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Approved. Please ensure to get a CR and we can take for consideration for RC1.

@AndyAyersMS

Copy link
Copy Markdown
Member

@kunalspathak ptal

@kunalspathakkunalspathak left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@jeffschwMSFT
jeffschwMSFT merged commit 3d5987f into release/6.0-rc1Aug 19, 2021
@akoeplinger
akoeplinger deleted the backport/pr-57602-to-release/6.0-rc1 branch August 28, 2021 22:04
@ghostghost locked as resolved and limited conversation to collaborators Sep 27, 2021
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-CodeGen-coreclrCLR 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.

3 participants

@AndyAyersMS@jeffschwMSFT@kunalspathak